forked from github/dataease
179 lines
5.0 MiB
179 lines
5.0 MiB
var vendor_a9cfc25f7cd85ed5fee5=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=1784)}([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 M})),n.d(e,"reduce",(function(){return A})),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 D})),n.d(e,"isFunction",(function(){return R})),n.d(e,"isString",(function(){return N})),n.d(e,"isStringSafe",(function(){return F})),n.d(e,"isNumber",(function(){return B})),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 $})),n.d(e,"retrieve",(function(){return X})),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 J})),n.d(e,"assert",(function(){return Q})),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 lt})),n.d(e,"noop",(function(){return ut})),n.d(e,"RADIAN_TO_DEGREE",(function(){return ct}));var r=n(98),i=A(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],(function(t,e){return t["[object "+e+"]"]=!0,t}),{}),o=A(["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,l=s.forEach,u=s.filter,c=s.slice,h=s.map,d=function(){}.constructor,f=d?d.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 l=t.constructor;if(l.from)e=l.from(t);else{e=new l(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 u in e={},t)t.hasOwnProperty(u)&&"__proto__"!==u&&(e[u]=m(t[u]));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)||D(o)||D(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===l)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 M(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 A(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===u)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=f&&R(f.bind)?f.call.bind(f.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 D(t){return Array.isArray?Array.isArray(t):"[object Array]"===a.call(t)}function R(t){return"function"==typeof t}function N(t){return"string"==typeof t}function F(t){return"[object String]"===a.call(t)}function B(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 $(t){return t!=t}function X(){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 J(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 Q(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=D(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 lt(t,e){return t.hasOwnProperty(e)}function ut(){}var ct=180/Math.PI},function(t,e,n){"use strict";n.r(e);var r=n(386);n.d(e,"contains",(function(){return r.default})),n.d(e,"includes",(function(){return r.default}));var i=n(930);n.d(e,"difference",(function(){return i.default}));var o=n(931);n.d(e,"find",(function(){return o.default}));var a=n(932);n.d(e,"findIndex",(function(){return a.default}));var s=n(933);n.d(e,"firstValue",(function(){return s.default}));var l=n(934);n.d(e,"flatten",(function(){return l.default}));var u=n(935);n.d(e,"flattenDeep",(function(){return u.default}));var c=n(936);n.d(e,"getRange",(function(){return c.default}));var h=n(937);n.d(e,"pull",(function(){return h.default}));var d=n(598);n.d(e,"pullAt",(function(){return d.default}));var f=n(599);n.d(e,"reduce",(function(){return f.default}));var p=n(938);n.d(e,"remove",(function(){return p.default}));var g=n(939);n.d(e,"sortBy",(function(){return g.default}));var v=n(940);n.d(e,"union",(function(){return v.default}));var m=n(600);n.d(e,"uniq",(function(){return m.default}));var y=n(941);n.d(e,"valuesOfKey",(function(){return y.default}));var b=n(942);n.d(e,"head",(function(){return b.default}));var _=n(943);n.d(e,"last",(function(){return _.default}));var x=n(944);n.d(e,"startsWith",(function(){return x.default}));var w=n(945);n.d(e,"endsWith",(function(){return w.default}));var O=n(593);n.d(e,"filter",(function(){return O.default}));var S=n(946);n.d(e,"every",(function(){return S.default}));var C=n(947);n.d(e,"some",(function(){return C.default}));var E=n(948);n.d(e,"group",(function(){return E.default}));var T=n(602);n.d(e,"groupBy",(function(){return T.default}));var M=n(601);n.d(e,"groupToMap",(function(){return M.default}));var A=n(949);n.d(e,"getWrapBehavior",(function(){return A.default}));var I=n(950);n.d(e,"wrapBehavior",(function(){return I.default}));var j=n(951);n.d(e,"number2color",(function(){return j.default}));var k=n(952);n.d(e,"parseRadius",(function(){return k.default}));var P=n(953);n.d(e,"clamp",(function(){return P.default}));var L=n(954);n.d(e,"fixedBase",(function(){return L.default}));var D=n(955);n.d(e,"isDecimal",(function(){return D.default}));var R=n(956);n.d(e,"isEven",(function(){return R.default}));var N=n(957);n.d(e,"isInteger",(function(){return N.default}));var F=n(958);n.d(e,"isNegative",(function(){return F.default}));var B=n(959);n.d(e,"isNumberEqual",(function(){return B.default}));var z=n(960);n.d(e,"isOdd",(function(){return z.default}));var V=n(961);n.d(e,"isPositive",(function(){return V.default}));var U=n(596);n.d(e,"max",(function(){return U.default}));var G=n(962);n.d(e,"maxBy",(function(){return G.default}));var H=n(597);n.d(e,"min",(function(){return H.default}));var W=n(963);n.d(e,"minBy",(function(){return W.default}));var Y=n(964);n.d(e,"mod",(function(){return Y.default}));var $=n(965);n.d(e,"toDegree",(function(){return $.default}));var X=n(966);n.d(e,"toInteger",(function(){return X.default}));var q=n(967);n.d(e,"toRadian",(function(){return q.default}));var Z=n(968);n.d(e,"forIn",(function(){return Z.default}));var K=n(603);n.d(e,"has",(function(){return K.default}));var J=n(969);n.d(e,"hasKey",(function(){return J.default}));var Q=n(970);n.d(e,"hasValue",(function(){return Q.default}));var tt=n(595);n.d(e,"keys",(function(){return tt.default}));var et=n(594);n.d(e,"isMatch",(function(){return et.default}));var nt=n(429);n.d(e,"values",(function(){return nt.default}));var rt=n(971);n.d(e,"lowerCase",(function(){return rt.default}));var it=n(972);n.d(e,"lowerFirst",(function(){return it.default}));var ot=n(973);n.d(e,"substitute",(function(){return ot.default}));var at=n(974);n.d(e,"upperCase",(function(){return at.default}));var st=n(975);n.d(e,"upperFirst",(function(){return st.default}));var lt=n(604);n.d(e,"getType",(function(){return lt.default}));var ut=n(976);n.d(e,"isArguments",(function(){return ut.default}));var ct=n(74);n.d(e,"isArray",(function(){return ct.default}));var ht=n(111);n.d(e,"isArrayLike",(function(){return ht.default}));var dt=n(977);n.d(e,"isBoolean",(function(){return dt.default}));var ft=n(978);n.d(e,"isDate",(function(){return ft.default}));var pt=n(979);n.d(e,"isError",(function(){return pt.default}));var gt=n(115);n.d(e,"isFunction",(function(){return gt.default}));var vt=n(980);n.d(e,"isFinite",(function(){return vt.default}));var mt=n(183);n.d(e,"isNil",(function(){return mt.default}));var yt=n(981);n.d(e,"isNull",(function(){return yt.default}));var bt=n(162);n.d(e,"isNumber",(function(){return bt.default}));var _t=n(349);n.d(e,"isObject",(function(){return _t.default}));var xt=n(390);n.d(e,"isObjectLike",(function(){return xt.default}));var wt=n(269);n.d(e,"isPlainObject",(function(){return wt.default}));var Ot=n(605);n.d(e,"isPrototype",(function(){return Ot.default}));var St=n(982);n.d(e,"isRegExp",(function(){return St.default}));var Ct=n(154);n.d(e,"isString",(function(){return Ct.default}));var Et=n(131);n.d(e,"isType",(function(){return Et.default}));var Tt=n(983);n.d(e,"isUndefined",(function(){return Tt.default}));var Mt=n(984);n.d(e,"isElement",(function(){return Mt.default}));var At=n(985);n.d(e,"requestAnimationFrame",(function(){return At.default}));var It=n(986);n.d(e,"clearAnimationFrame",(function(){return It.default}));var jt=n(987);n.d(e,"augment",(function(){return jt.default}));var kt=n(988);n.d(e,"clone",(function(){return kt.default}));var Pt=n(989);n.d(e,"debounce",(function(){return Pt.default}));var Lt=n(606);n.d(e,"memoize",(function(){return Lt.default}));var Dt=n(990);n.d(e,"deepMix",(function(){return Dt.default}));var Rt=n(241);n.d(e,"each",(function(){return Rt.default}));var Nt=n(991);n.d(e,"extend",(function(){return Nt.default}));var Ft=n(992);n.d(e,"indexOf",(function(){return Ft.default}));var Bt=n(993);n.d(e,"isEmpty",(function(){return Bt.default}));var zt=n(607);n.d(e,"isEqual",(function(){return zt.default}));var Vt=n(994);n.d(e,"isEqualWith",(function(){return Vt.default}));var Ut=n(995);n.d(e,"map",(function(){return Ut.default}));var Gt=n(996);n.d(e,"mapValues",(function(){return Gt.default}));var Ht=n(327);n.d(e,"mix",(function(){return Ht.default})),n.d(e,"assign",(function(){return Ht.default}));var Wt=n(997);n.d(e,"get",(function(){return Wt.default}));var Yt=n(998);n.d(e,"set",(function(){return Yt.default}));var $t=n(999);n.d(e,"pick",(function(){return $t.default}));var Xt=n(1e3);n.d(e,"omit",(function(){return Xt.default}));var qt=n(1001);n.d(e,"throttle",(function(){return qt.default}));var Zt=n(1002);n.d(e,"toArray",(function(){return Zt.default}));var Kt=n(242);n.d(e,"toString",(function(){return Kt.default}));var Jt=n(1003);n.d(e,"uniqueId",(function(){return Jt.default}));var Qt=n(1004);n.d(e,"noop",(function(){return Qt.default}));var te=n(1005);n.d(e,"identity",(function(){return te.default}));var ee=n(1006);n.d(e,"size",(function(){return ee.default}));var ne=n(395);n.d(e,"measureTextWidth",(function(){return ne.default}));var re=n(1007);n.d(e,"getEllipsisText",(function(){return re.default}));var ie=n(1008);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 l})),n.d(e,"__metadata",(function(){return u})),n.d(e,"__awaiter",(function(){return c})),n.d(e,"__generator",(function(){return h})),n.d(e,"__createBinding",(function(){return d})),n.d(e,"__exportStar",(function(){return f})),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 M})),n.d(e,"__classPrivateFieldIn",(function(){return A}));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 l(t,e){return function(n,r){e(n,r,t)}}function u(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{l(r.next(t))}catch(t){o(t)}}function s(t){try{l(r.throw(t))}catch(t){o(t)}}function l(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}l((r=r.apply(t,e||[])).next())}))}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 d=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 f(t,e){for(var n in t)"default"===n||Object.prototype.hasOwnProperty.call(e,n)||d(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(l,u):c(o[0][2],n)}catch(t){c(o[0][3],t)}var n}function l(t){s("next",t)}function u(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)&&d(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 M(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 A(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){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);var r=n(1098);n.d(e,"flow",(function(){return r.flow}));var i=n(625);n.d(e,"pick",(function(){return i.pick}));var o=n(1099);n.d(e,"template",(function(){return o.template}));var a=n(388);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(1100);n.d(e,"getContainerSize",(function(){return s.getContainerSize}));var l=n(1101);n.d(e,"findGeometry",(function(){return l.findGeometry})),n.d(e,"getAllElements",(function(){return l.getAllElements})),n.d(e,"getAllElementsRecursively",(function(){return l.getAllElementsRecursively})),n.d(e,"getAllGeometriesRecursively",(function(){return l.getAllGeometriesRecursively}));var u=n(110);n.d(e,"findViewById",(function(){return u.findViewById})),n.d(e,"getViews",(function(){return u.getViews})),n.d(e,"getSiblingViews",(function(){return u.getSiblingViews}));var c=n(1102);n.d(e,"transformLabel",(function(){return c.transformLabel}));var h=n(1103);n.d(e,"getSplinePath",(function(){return h.getSplinePath}));var d=n(626);n.d(e,"deepAssign",(function(){return d.deepAssign}));var f=n(1104);n.d(e,"kebabCase",(function(){return f.kebabCase}));var p=n(519);n.d(e,"renderStatistic",(function(){return p.renderStatistic})),n.d(e,"renderGaugeStatistic",(function(){return p.renderGaugeStatistic}));var g=n(1105);n.d(e,"measureTextWidth",(function(){return g.measureTextWidth}));var v=n(298);n.d(e,"isBetween",(function(){return v.isBetween})),n.d(e,"isRealNumber",(function(){return v.isRealNumber}));var m=n(354);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(207);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,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 l})),n.d(e,"__metadata",(function(){return u})),n.d(e,"__awaiter",(function(){return c})),n.d(e,"__generator",(function(){return h})),n.d(e,"__createBinding",(function(){return d})),n.d(e,"__exportStar",(function(){return f})),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 M}));
|
||
/*! *****************************************************************************
|
||
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 l(t,e){return function(n,r){e(n,r,t)}}function u(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{l(r.next(t))}catch(t){o(t)}}function s(t){try{l(r.throw(t))}catch(t){o(t)}}function l(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}l((r=r.apply(t,e||[])).next())}))}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 d=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 f(t,e){for(var n in t)"default"===n||Object.prototype.hasOwnProperty.call(e,n)||d(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(l,u):c(o[0][2],n)}catch(t){c(o[0][3],t)}var n}function l(t){s("next",t)}function u(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)&&d(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 M(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 l})),n.d(e,"getPrecisionSafe",(function(){return u})),n.d(e,"getPixelPrecision",(function(){return c})),n.d(e,"getPercentWithPrecision",(function(){return h})),n.d(e,"addSafe",(function(){return d})),n.d(e,"MAX_SAFE_INTEGER",(function(){return f})),n.d(e,"remRadian",(function(){return p})),n.d(e,"isRadianAroundZero",(function(){return g})),n.d(e,"parseDate",(function(){return m})),n.d(e,"quantity",(function(){return y})),n.d(e,"quantityExponent",(function(){return b})),n.d(e,"nice",(function(){return _})),n.d(e,"quantile",(function(){return x})),n.d(e,"reformIntervals",(function(){return w})),n.d(e,"numericToNumber",(function(){return O})),n.d(e,"isNumeric",(function(){return S})),n.d(e,"getRandomIdBase",(function(){return C})),n.d(e,"getGreatestCommonDividor",(function(){return E})),n.d(e,"getLeastCommonMultiple",(function(){return T}));var r=n(0);function i(t,e,n,r){var i=e[0],o=e[1],a=n[0],s=n[1],l=o-i,u=s-a;if(0===l)return 0===u?a:(a+s)/2;if(r)if(l>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)/l*u+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 l(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 u(t)}function u(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){if(!t[e])return 0;var i=r.reduce(t,(function(t,e){return t+(isNaN(e)?0:e)}),0);if(0===i)return 0;for(var o=Math.pow(10,n),a=r.map(t,(function(t){return(isNaN(t)?0:t)/i*o*100})),s=100*o,l=r.map(a,(function(t){return Math.floor(t)})),u=r.reduce(l,(function(t,e){return t+e}),0),c=r.map(a,(function(t,e){return t-l[e]}));u<s;){for(var h=Number.NEGATIVE_INFINITY,d=null,f=0,p=c.length;f<p;++f)c[f]>h&&(h=c[f],d=f);++l[d],c[d]=0,++u}return l[e]/o}function d(t,e){var n=Math.max(l(t),l(e)),r=t+e;return n>20?r:a(r,n)}var f=9007199254740991;function p(t){var e=2*Math.PI;return(t%e+e)%e}function g(t){return t>-1e-4&&t<1e-4}var v=/^(?:(\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 m(t){if(t instanceof Date)return t;if(r.isString(t)){var e=v.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 y(t){return Math.pow(10,b(t))}function b(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 _(t,e){var n=b(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 x(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 w(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 O(t){var e=parseFloat(t);return e==t&&(0!==e||!r.isString(t)||t.indexOf("x")<=0)?e:NaN}function S(t){return!isNaN(O(t))}function C(){return Math.round(9*Math.random())}function E(t,e){return 0===e?t:E(e,t%e)}function T(t,e){return null==t?e:null==e?t:t*e/E(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 l})),n.d(e,"ELEMENT_STATE",(function(){return u})),n.d(e,"GROUP_ATTRS",(function(){return h})),n.d(e,"FIELD_ORIGIN",(function(){return d})),n.d(e,"MIN_CHART_WIDTH",(function(){return f})),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,l,u,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"}(l||(l={})),function(t){t.ACTIVE="active",t.INACTIVE="inactive",t.SELECTED="selected",t.DEFAULT="default"}(u||(u={}));var h=["color","shape","size"],d="_origin",f=1,p=1,g=.25},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,"legend",(function(){return l})),n.d(e,"tooltip",(function(){return u})),n.d(e,"interaction",(function(){return c})),n.d(e,"animation",(function(){return h})),n.d(e,"theme",(function(){return d})),n.d(e,"state",(function(){return f})),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(134),a=n(4),s=n(243);function l(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 u(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"boolean"==typeof n?e.animate(n):e.animate(!0),Object(i.each)(e.geometries,(function(t){t.animate(n)})),t}function d(t){var e=t.chart,n=t.options.theme;return n&&e.theme(n),t}function f(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,l={};return Object(i.each)(t,(function(t,e){l[e]=Object(a.pick)(t,o.AXIS_META_CONFIG_KEYS)})),l=Object(a.deepAssign)({},e,s.meta,l),r.scale(l),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 l})),n.d(e,"TEXT_STYLE_OPTIONS",(function(){return u})),n.d(e,"getDataItemValue",(function(){return c})),n.d(e,"isDataItemOption",(function(){return h})),n.d(e,"mappingToExists",(function(){return d})),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 M})),n.d(e,"setAttribute",(function(){return A})),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(49),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 l(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 u=["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 d(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 l,u,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),l=n.get(s);if(null!=l){var u=t[l];Object(r.assert)(!u.newOption,'Duplicated option on id "'+s+'".'),u.newOption=o,u.existing=e[l],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)&&f("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&&!f("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),l=c,u=Object(r.createHashMap)(),Object(r.each)(l,(function(t){var e=t.existing;e&&u.set(e.id,t)})),Object(r.each)(l,(function(t){var e=t.newOption;Object(r.assert)(!e||null==e.id||!u.get(e.id)||u.get(e.id)===t,"id duplicates: "+(e&&e.id)),e&&null!=e.id&&u.set(e.id,t),!t.keyInfo&&(t.keyInfo={})})),Object(r.each)(l,(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(u.get(o.id))}u.set(o.id,t)}})),c}function f(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),l=n&&n[o],u=0,c=a.length;u<c;u++){var h=a[u];l&&l[h]?l[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=M(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)$/)||[],l=i[1],u=(i[2]||"").toLowerCase();if(l&&u&&!(e&&e.includeMainTypes&&Object(r.indexOf)(e.includeMainTypes,l)<0))s=s||!!l,(o.get(l)||o.set(l,{}))[u]=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 M(t,e,n,i){i=i||E;var o=n.index,a=n.id,s=n.name,l={models:null,specified:null!=o||null!=a||null!=s};if(!l.specified){var u=void 0;return l.models=i.useDefault&&(u=t.getComponent(e))?[u]:[],l}return"none"===o||!1===o?(Object(r.assert)(i.enableNone,'`"none"` or `false` is not a valid value on index option.'),l.models=[],l):("all"===o&&(Object(r.assert)(i.enableAll,'`"all"` is not a valid value on index option.'),o=a=s=null),l.models=t.queryComponents({mainType:e,index:o,id:a,name:s}),l)}function A(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 l=null==e||"auto"===e;if(null==i)return i;if(Object(r.isNumber)(i)){var u=a(n||0,i,s);return Object(o.round)(u,l?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,d=i,f=Math.max(h?h.length:0,d.length),p=0;p<f;++p){var g=t.getDimensionInfo(p);if(g&&"ordinal"===g.type)c[p]=(s<1&&h?h:d)[p];else{var v=h&&h[p]?h[p]:0,m=d[p];u=a(v,m,s);c[p]=Object(o.round)(u,l?Math.max(Object(o.getPrecision)(v),Object(o.getPrecision)(m)):e)}}return c}},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";n.r(e),n.d(e,"HOVER_STATE_NORMAL",(function(){return f})),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 F})),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 $})),n.d(e,"leaveSelect",(function(){return X})),n.d(e,"allLeaveBlur",(function(){return Z})),n.d(e,"blurSeries",(function(){return K})),n.d(e,"blurComponent",(function(){return J})),n.d(e,"blurSeriesFromHighlightPayload",(function(){return Q})),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 lt})),n.d(e,"enableHoverFocus",(function(){return ut})),n.d(e,"setStatesStylesFromModel",(function(){return dt})),n.d(e,"setAsHighDownDispatcher",(function(){return ft})),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(291),i=n(0),o=n(32),a=n(71),s=n(10),l=n(36),u=1,c={},h=Object(s.makeInner)(),d=Object(s.makeInner)(),f=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 M(t,e,n){t.onHoverStateChange&&(t.hoverState||0)!==n&&t.onHoverStateChange(e),t.hoverState=n}function A(t){M(t,"emphasis",g)}function I(t){t.hoverState===g&&M(t,"normal",f)}function j(t){M(t,"blur",p)}function k(t){t.hoverState===p&&M(t,"normal",f)}function P(t){t.selected=!0}function L(t){t.selected=!1}function D(t,e,n){e(t,n)}function R(t,e,n){D(t,e,n),t.isGroup&&t.traverse((function(t){D(t,e,n)}))}function N(t,e){switch(e){case"emphasis":t.hoverState=g;break;case"normal":t.hoverState=f;break;case"blur":t.hoverState=p;break;case"select":t.selected=!0}}function F(t){t.isGroup?t.traverse((function(t){t.clearStates()})):t.clearStates()}function B(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 l.default){var s=h(t),u=o&&s.selectFill||s.normalFill,c=o&&s.selectStroke||s.normalStroke;if(C(u)||C(c)){var d=(r=r||{}).style||{};"inherit"===d.fill?(a=!0,r=Object(i.extend)({},r),(d=Object(i.extend)({},d)).fill=u):!C(d.fill)&&C(u)?(a=!0,r=Object(i.extend)({},r),(d=Object(i.extend)({},d)).fill=T(u)):!C(d.stroke)&&C(c)&&(a||(r=Object(i.extend)({},r),d=Object(i.extend)({},d)),d.stroke=T(c)),r.style=d}}if(r&&null==r.z2){a||(r=Object(i.extend)({},r));var f=t.z2EmphasisLift;r.z2=t.z2+(null!=f?f: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],l=i[s];o[s]=null==l?r&&r[s]:l}for(a=0;a<t.animators.length;a++){var u=t.animators[a];u.__fromStateTransition&&u.__fromStateTransition.indexOf(n)<0&&"style"===u.targetName&&u.saveTo(o,e)}return o}(t,["opacity"],e,{opacity:1}),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=B;var e=t.getTextContent(),n=t.getTextGuideLine();e&&(e.stateProxy=B),n&&(n.stateProxy=B)}function V(t,e){!q(t,e)&&!t.__highByOuter&&R(t,A)}function U(t,e){!q(t,e)&&!t.__highByOuter&&R(t,I)}function G(t,e){t.__highByOuter|=1<<(e||0),R(t,A)}function H(t,e){!(t.__highByOuter&=~(1<<(e||0)))&&R(t,I)}function W(t){R(t,j)}function Y(t){R(t,k)}function $(t){R(t,P)}function X(t){R(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=d(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),l=s.coordinateSystem;l&&l.master&&(l=l.master);var u=[];o.eachSeries((function(t){var o=s===t,c=t.coordinateSystem;if(c&&c.master&&(c=c.master),!("series"===n&&!o||"coordinateSystem"===n&&!(c&&l?c===l: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),f=0;f<h.length;f++)a(t.getData(h[f]),e[h[f]]);u.push(t),d(t).isBlured=!0}})),o.eachComponent((function(t,e){if("series"!==t){var n=r.getViewOfComponentModel(e);n&&n.toggleBlurSeries&&n.toggleBlurSeries(u,!0,o)}}))}}function J(t,e,n){if(null!=t&&null!=e){var r=n.getModel().getComponent(t,e);if(r){d(r).isBlured=!0;var i=n.getViewOfComponentModel(r);i&&i.focusBlurEnabled&&i.group.traverse((function(t){j(t)}))}}}function Q(t,e,n){var r=t.seriesIndex,a=t.getData(e.dataType);if(a){var l=Object(s.queryDataIndex)(a,e);l=(Object(i.isArray)(l)?l[0]:l)||0;var u=a.getItemGraphicEl(l);if(!u)for(var c=a.count(),h=0;!u&&h<c;)u=a.getItemGraphicEl(h++);if(u){var d=Object(o.getECData)(u);K(r,d.focus,d.blurScope,n)}else{var f=t.get(["emphasis","focus"]),p=t.get(["emphasis","blurScope"]);null!=f&&K(r,f,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 l,u=s.findHighDownDispatchers(n),c=0;c<u.length;c++)if("self"===Object(o.getECData)(u[c]).focus){l=!0;break}return{focusSelf:l,dispatchers:u}}function et(t,e,n){var r=Object(o.getECData)(t),a=tt(r.componentMainType,r.componentIndex,r.componentHighDownName,n),s=a.dispatchers,l=a.focusSelf;s?(l&&J(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&&J(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)?$(e):X(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){ft(t,!0),R(t,z),ut(t,e,n)}function st(t){ft(t,!1)}function lt(t,e,n,r){r?st(t):at(t,e,n)}function ut(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 dt(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 ft(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&&u<=32&&(e=c[t]=u++),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 D})),n.d(e,"extendPath",(function(){return N})),n.d(e,"registerShape",(function(){return F})),n.d(e,"getShapeClass",(function(){return B})),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 $})),n.d(e,"getTransform",(function(){return X})),n.d(e,"applyTransform",(function(){return q})),n.d(e,"transformDirection",(function(){return Z})),n.d(e,"groupTransition",(function(){return J})),n.d(e,"clipPointsByRect",(function(){return Q})),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(248),i=n(41),o=n(20),a=n(36);n.d(e,"Path",(function(){return a.default}));var s=n(119),l=n(106);n.d(e,"Image",(function(){return l.default}));var u=n(39);n.d(e,"Group",(function(){return u.default}));var c=n(66);n.d(e,"Text",(function(){return c.default}));var h=n(233);n.d(e,"Circle",(function(){return h.default}));var d=n(427);n.d(e,"Ellipse",(function(){return d.default}));var f=n(174);n.d(e,"Sector",(function(){return f.default}));var p=n(443);n.d(e,"Ring",(function(){return p.default}));var g=n(165);n.d(e,"Polygon",(function(){return g.default}));var v=n(175);n.d(e,"Polyline",(function(){return v.default}));var m=n(70);n.d(e,"Rect",(function(){return m.default}));var y=n(144);n.d(e,"Line",(function(){return y.default}));var b=n(444);n.d(e,"BezierCurve",(function(){return b.default}));var _=n(521);n.d(e,"Arc",(function(){return _.default}));var x=n(428);n.d(e,"CompoundPath",(function(){return x.default}));var w=n(326);n.d(e,"LinearGradient",(function(){return w.default}));var O=n(516);n.d(e,"RadialGradient",(function(){return O.default}));var S=n(35);n.d(e,"BoundingRect",(function(){return S.default}));var C=n(532);n.d(e,"OrientedBoundingRect",(function(){return C.default}));var E=n(52);n.d(e,"Point",(function(){return E.default}));var T=n(792);n.d(e,"IncrementalDisplayable",(function(){return T.default}));var M=n(363),A=n(0),I=n(32),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 D(t){return a.default.extend(t)}var R=r.extendFromString;function N(t,e){return R(t,e)}function F(t,e){L[t]=e}function B(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 l.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){return M.subPixelOptimizeLine(t.shape,t.shape,t.style),t}function Y(t){return M.subPixelOptimizeRect(t.shape,t.shape,t.style),t}var $=M.subPixelOptimize;function X(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(A.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 J(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(A.extend)({},t.shape)),e}}function Q(t,e){return Object(A.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(A.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(A.defaults)(i,n),new l.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 l,u=n-t,c=r-e,h=a-i,d=s-o,f=it(h,d,u,c);if((l=f)<=1e-6&&l>=-1e-6)return!1;var p=t-i,g=e-o,v=it(p,g,u,c)/f;if(v<0||v>1)return!1;var m=it(p,g,h,d)/f;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(A.isString)(e)?{formatter:e}:e,o=n.mainType,a=n.componentIndex,s={componentType:o,name:r,$vars:["name"]};s[o+"Index"]=a;var l=t.formatterParamsExtra;l&&Object(A.each)(Object(A.keys)(l),(function(t){Object(A.hasOwn)(s,t)||(s[t]=l[t],s.$vars.push(t))}));var u=Object(I.getECData)(t.el);u.componentMainType=o,u.componentIndex=a,u.tooltipConfig={name:r,option:Object(A.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(A.isArray)(t))for(var n=0;n<t.length;n++)at(t[n],e);else at(t,e)}F("circle",h.default),F("ellipse",d.default),F("sector",f.default),F("ring",p.default),F("polygon",g.default),F("polyline",v.default),F("rect",m.default),F("line",y.default),F("bezierCurve",b.default),F("arc",_.default)},function(t,e,n){"use strict";n.r(e);var r=n(19),i=n(1534),o=n(695),a=n(699),s=n(1538),l=n(1545),u=n(1546),c=n(1547),h=n(1548),d=n(1549),f=n(463),p=n(1550),g=n(1551),v=n(1552),m=n(1553),y=(n(1881),n(1882),n(1883),n(1884),n(1885),n(1886),n(1887),n(1888),n(1889),n(1890),n(1891),n(1892),n(1893),n(1894),n(1895),n(1896),n(1897),n(1898),n(1899),n(1900),n(352)),b=n(1554),_=n(1555),x=n(704),w=n(1556),O=n(1557),S=n(1558),C=n(1559),E=n(1560),T=n(861),M=n(1561),A=n(1565),I=n(1567),j=n(1568),k=n(1569),P=n(1570),L=n(1571),D=n(862),R=n(758),N=n(1574),F=n(1575),B=n(863),z=n(1576),V=n(1577),U=n(864),G=n(1578),H=n(1579),W=n(1580),Y=n(1581),$=n(1582),X=n(1583),q=n(1584),Z=n(1585),K=n(1586),J=n(1587),Q=n(623),tt=n(1588),et=n(1589),nt=n(1590),rt=n(706),it=n(1591),ot=n(1592),at=n(1593),st=n(1594),lt=n(1595),ut=n(260),ct=n(1596),ht=n(1597),dt=n(707);n.d(e,"ELEMENT_RANGE_HIGHLIGHT_EVENTS",(function(){return dt.ELEMENT_RANGE_HIGHLIGHT_EVENTS}));var ft=n(1598),pt=n(1599),gt=n(1600),vt=n(1601),mt=n(1602),yt=n(761),bt=n(1604),_t=n(1605),xt=n(1606),wt=n(1607),Ot=n(1608),St=n(1609),Ct=n(865),Et=n(709),Tt=n(708),Mt=n(1610),At=n(1611),It=n(1612),jt=n(400);n.d(e,"BRUSH_FILTER_EVENTS",(function(){return jt.BRUSH_FILTER_EVENTS}));var kt=n(762),Pt=n(1613),Lt=n(866),Dt=n(1614),Rt=n(1615),Nt=n(1616),Ft=n(1617),Bt=n(1618),zt=n(1619),Vt=n(1620),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",f.default),Object(r.registerGeometry)("Point",p.default),Object(r.registerGeometry)("Line",d.default),Object(r.registerGeometry)("Area",l.default),Object(r.registerGeometry)("Edge",u.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",M.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",A.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",D.fadeIn),Object(r.registerAnimation)("fade-out",D.fadeOut),Object(r.registerAnimation)("grow-in-x",R.growInX),Object(r.registerAnimation)("grow-in-xy",R.growInXY),Object(r.registerAnimation)("grow-in-y",R.growInY),Object(r.registerAnimation)("scale-in-x",B.scaleInX),Object(r.registerAnimation)("scale-in-y",B.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",F.positionUpdate),Object(r.registerAnimation)("sector-path-update",z.sectorPathUpdate),Object(r.registerAnimation)("path-in",N.pathIn),Object(r.registerFacet)("rect",$.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",X.default),Object(r.registerComponentController)("axis",Z.default),Object(r.registerComponentController)("legend",K.default),Object(r.registerComponentController)("tooltip",Q.default),Object(r.registerComponentController)("annotation",q.default),Object(r.registerComponentController)("slider",J.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",lt.default),Object(r.registerAction)("element-range-active",st.default),Object(r.registerAction)("element-highlight",ut.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",ft.default),Object(r.registerAction)("element-range-highlight",dt.default),Object(r.registerAction)("element-sibling-highlight",dt.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",Mt.default),Object(r.registerAction)("cursor",At.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",Rt.default),Object(r.registerAction)("view-move",Nt.default),Object(r.registerAction)("scale-translate",Ft.default),Object(r.registerAction)("scale-zoom",Bt.default),Object(r.registerAction)("reset-button",Dt.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: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:["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:["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,n){"use strict";n.r(e);var r=n(22);n.d(e,"glMatrix",(function(){return r}));var i=n(1019);n.d(e,"mat2",(function(){return i}));var o=n(1020);n.d(e,"mat2d",(function(){return o}));var a=n(612);n.d(e,"mat3",(function(){return a}));var s=n(135);n.d(e,"mat4",(function(){return s}));var l=n(259);n.d(e,"quat",(function(){return l}));var u=n(1021);n.d(e,"quat2",(function(){return u}));var c=n(251);n.d(e,"vec2",(function(){return c}));var h=n(187);n.d(e,"vec3",(function(){return h}));var d=n(158);n.d(e,"vec4",(function(){return d}))},function(t,e,n){"use strict";n.r(e);var r=n(801);n.d(e,"djb2hash",(function(){return r.djb2hash})),n.d(e,"BKDRHash",(function(){return r.BKDRHash}));var i=n(1163);n.d(e,"DOM",(function(){return i}));var o=n(1168);n.d(e,"Satistics",(function(){return o}));var a=n(120);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(1169);n.d(e,"getJSON",(function(){return s.getJSON})),n.d(e,"getArrayBuffer",(function(){return s.getArrayBuffer})),n.d(e,"getImage",(function(){return s.getImage}));var l=n(1170);n.d(e,"extent",(function(){return l.extent})),n.d(e,"tranfrormCoord",(function(){return l.tranfrormCoord})),n.d(e,"lngLatToMeters",(function(){return l.lngLatToMeters})),n.d(e,"metersToLngLat",(function(){return l.metersToLngLat})),n.d(e,"longitude",(function(){return l.longitude})),n.d(e,"latitude",(function(){return l.latitude})),n.d(e,"validateLngLat",(function(){return l.validateLngLat})),n.d(e,"aProjectFlat",(function(){return l.aProjectFlat})),n.d(e,"unProjectFlat",(function(){return l.unProjectFlat})),n.d(e,"amap2Project",(function(){return l.amap2Project})),n.d(e,"lnglatDistance",(function(){return l.lnglatDistance})),n.d(e,"project",(function(){return l.project})),n.d(e,"padBounds",(function(){return l.padBounds})),n.d(e,"boundsContains",(function(){return l.boundsContains})),n.d(e,"bBoxToBounds",(function(){return l.bBoxToBounds})),n.d(e,"normalize",(function(){return l.normalize})),n.d(e,"calDistance",(function(){return l.calDistance})),n.d(e,"calAngle",(function(){return l.calAngle})),n.d(e,"getAngle",(function(){return l.getAngle})),n.d(e,"flow",(function(){return l.flow}));var u=n(1171);n.d(e,"LRUCache",(function(){return u.LRUCache}));var c=n(1172);n.d(e,"bindAll",(function(){return c.bindAll})),n.d(e,"FrequencyController",(function(){return c.FrequencyController}));var h=n(1173);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 d=n(1174);n.d(e,"anchorType",(function(){return d.anchorType})),n.d(e,"anchorTranslate",(function(){return d.anchorTranslate})),n.d(e,"applyAnchorClass",(function(){return d.applyAnchorClass}));var f=n(1175);n.d(e,"getMask",(function(){return f.getMask}));var p=n(1176);n.d(e,"getCullFace",(function(){return p.getCullFace}));var g=n(1177);n.d(e,"isURLTemplate",(function(){return g.isURLTemplate})),n.d(e,"getURLFromTemplate",(function(){return g.getURLFromTemplate})),n.d(e,"UpdateTileStrategy",(function(){return g.UpdateTileStrategy})),n.d(e,"LoadTileDataStatus",(function(){return g.LoadTileDataStatus})),n.d(e,"Tile",(function(){return g.Tile})),n.d(e,"TilesetManager",(function(){return g.TilesetManager}))},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,"VERSION",(function(){return T})),n.d(e,"Util",(function(){return M}));var r=n(161);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(203);n.d(e,"ComponentController",(function(){return i.Controller}));var o=n(623);n.d(e,"TooltipController",(function(){return o.default}));var a=n(163);n.d(e,"Geometry",(function(){return a.default}));var s=n(437);n.d(e,"Element",(function(){return s.default}));var l=n(352);n.d(e,"GeometryLabel",(function(){return l.default}));var u=n(286);n.d(e,"Interaction",(function(){return u.Interaction})),n.d(e,"Action",(function(){return u.Action}));var c=n(383);n.d(e,"Facet",(function(){return c.Facet}));var h=n(87);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 d=n(38);n.d(e,"registerShape",(function(){return d.registerShape})),n.d(e,"registerShapeFactory",(function(){return d.registerShapeFactory})),n.d(e,"getShapeFactory",(function(){return d.getShapeFactory}));var f=n(325);n.d(e,"registerGeometryLabel",(function(){return f.registerGeometryLabel})),n.d(e,"registerGeometryLabelLayout",(function(){return f.registerGeometryLabelLayout})),n.d(e,"getGeometryLabel",(function(){return f.getGeometryLabel})),n.d(e,"getGeometryLabelLayout",(function(){return f.getGeometryLabelLayout})),n.d(e,"getInteraction",(function(){return u.getInteraction})),n.d(e,"registerInteraction",(function(){return u.registerInteraction})),n.d(e,"registerAction",(function(){return u.registerAction})),n.d(e,"getActionClass",(function(){return u.getActionClass})),n.d(e,"getFacet",(function(){return c.getFacet})),n.d(e,"registerFacet",(function(){return c.registerFacet}));var p=n(392);n.d(e,"getTheme",(function(){return p.getTheme})),n.d(e,"registerTheme",(function(){return p.registerTheme}));var g=n(517);n.d(e,"registerEngine",(function(){return g.registerEngine})),n.d(e,"getEngine",(function(){return g.getEngine}));var v=n(436);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}));n(1873);var y=n(89);n.d(e,"Coordinate",(function(){return y.Coordinate})),n.d(e,"Scale",(function(){return y.Scale}));var b=n(547),_=n(318),x=n(69),w=n(186),O=n(359),S=n(24),C=n(194),E=n(624),T="4.2.2",M={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,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 l(t,e,n,r){return t[0]=e[0]+n[0]*r,t[1]=e[1]+n[1]*r,t}function u(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t}function c(t){return Math.sqrt(d(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 l})),n.d(e,"sub",(function(){return u})),n.d(e,"len",(function(){return c})),n.d(e,"length",(function(){return h})),n.d(e,"lenSquare",(function(){return d})),n.d(e,"lengthSquare",(function(){return f})),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 d(t){return t[0]*t[0]+t[1]*t[1]}var f=d;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";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(160);e.METADATA_KEY=r;var i=n(1936);Object.defineProperty(e,"Container",{enumerable:!0,get:function(){return i.Container}});var o=n(324);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(1952);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(1953);Object.defineProperty(e,"injectable",{enumerable:!0,get:function(){return s.injectable}});var l=n(1954);Object.defineProperty(e,"tagged",{enumerable:!0,get:function(){return l.tagged}});var u=n(1955);Object.defineProperty(e,"named",{enumerable:!0,get:function(){return u.named}});var c=n(1159);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(1956);Object.defineProperty(e,"optional",{enumerable:!0,get:function(){return h.optional}});var d=n(1957);Object.defineProperty(e,"unmanaged",{enumerable:!0,get:function(){return d.unmanaged}});var f=n(1958);Object.defineProperty(e,"multiInject",{enumerable:!0,get:function(){return f.multiInject}});var p=n(1959);Object.defineProperty(e,"targetName",{enumerable:!0,get:function(){return p.targetName}});var g=n(1960);Object.defineProperty(e,"postConstruct",{enumerable:!0,get:function(){return g.postConstruct}});var v=n(1157);Object.defineProperty(e,"MetadataReader",{enumerable:!0,get:function(){return v.MetadataReader}});var m=n(382);Object.defineProperty(e,"id",{enumerable:!0,get:function(){return m.id}});var y=n(347);Object.defineProperty(e,"decorate",{enumerable:!0,get:function(){return y.decorate}});var b=n(1162);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(514);Object.defineProperty(e,"getServiceIdentifierAsString",{enumerable:!0,get:function(){return _.getServiceIdentifierAsString}});var x=n(1961);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 l})),n.d(e,"equals",(function(){return u}));var r=1e-6,i="undefined"!=typeof Float32Array?Float32Array:Array,o=Math.random;function a(t){i=t}var s=Math.PI/180;function l(t){return t*s}function u(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 l})),n.d(e,"initProps",(function(){return u})),n.d(e,"isElementRemoved",(function(){return c})),n.d(e,"removeElement",(function(){return h})),n.d(e,"removeElementWithFadeOut",(function(){return f})),n.d(e,"saveOldStyle",(function(){return p})),n.d(e,"getOldStyle",(function(){return g}));var r=n(0),i=n(10),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 l="update"===t;if(e&&e.isAnimationEnabled()){var u=void 0,c=void 0,h=void 0;return i?(u=Object(r.retrieve2)(i.duration,200),c=Object(r.retrieve2)(i.easing,"cubicOut"),h=0):(u=e.getShallow(l?"animationDurationUpdate":"animationDuration"),c=e.getShallow(l?"animationEasingUpdate":"animationEasing"),h=e.getShallow(l?"animationDelayUpdate":"animationDelay")),a&&(null!=a.duration&&(u=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)(u)&&(u=u(n)),{duration:u||0,delay:h,easing:c}}return null}function s(t,e,n,i,o,s,l){var u,c=!1;Object(r.isFunction)(o)?(l=s,s=o,o=null):Object(r.isObject)(o)&&(s=o.cb,l=o.during,c=o.isFrom,u=o.removeOpt,o=o.dataIndex);var h="leave"===t;h||e.stopAnimation("leave");var d=a(t,i,o,h?u||{}:null,i&&i.getAnimationDelayParams?i.getAnimationDelayParams(e,o):null);if(d&&d.duration>0){var f={duration:d.duration,delay:d.delay||0,easing:d.easing,done:s,force:!!s||!!l,setToFinal:!h,scope:t,during:l};c?e.animateFrom(n,f):e.animateTo(n,f)}else e.stopAnimation(),!c&&e.attr(n),l&&l(1),s&&s()}function l(t,e,n,r,i,o){s("update",t,e,n,r,i,o)}function u(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 d(t,e,n,r){t.removeTextContent(),t.removeTextGuideLine(),h(t,{style:{opacity:0}},e,n,r)}function f(t,e,n){function r(){t.parent&&t.parent.remove(t)}t.isGroup?t.traverse((function(t){t.isGroup||d(t,e,n,r)})):d(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 l})),n.d(e,"getDelegationObject",(function(){return u})),n.d(e,"isElementChange",(function(){return c})),n.d(e,"isList",(function(){return h})),n.d(e,"isSlider",(function(){return d})),n.d(e,"isMask",(function(){return f})),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 M})),n.d(e,"getSiblingPoint",(function(){return A})),n.d(e,"isInRecords",(function(){return I})),n.d(e,"getScaleByField",(function(){return j}));var r=n(1),i=n(172),o=n(116),a=n(193);function s(t,e){var n=t.event.target.getCanvasBBox();return n.width>=e||n.height>=e?n:null}function l(t){var e,n=t.event.target;return n&&(e=n.get("element")),e}function u(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 d(t){return t&&t.component&&t.component.isSlider()}function f(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=A(i,e,{x:r.x,y:r.y}),a=A(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 M(t){var e=t.parent,n=null;return e&&(n=e.views.filter((function(e){return e!==t}))),n}function A(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(16);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(1018);n.d(e,"ext",(function(){return i}))},function(t,e,n){"use strict";n.r(e),n.d(e,"PLOT_CONTAINER_OPTIONS",(function(){return u})),n.d(e,"Plot",(function(){return c}));var r=n(2),i=n(15),o=n(1),a=n(456),s=n(1624),l=n(4),u=["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(l.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(l.pick)(this.options,u)),{defaultInteractions:o})),this.container.setAttribute("data-chart-source-type","G2Plot")},e.prototype.getChartSize=function(t,e){var n=Object(l.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(l.deepAssign)({},this.options,t)},e.prototype.setState=function(t,e,n){void 0===n&&(n=!0);var r=Object(l.getAllElementsRecursively)(this.chart);Object(o.each)(r,(function(r){e(r.getData())&&r.setState(t,n)}))},e.prototype.getStates=function(){var t=Object(l.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(l.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(l.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 u})),n.d(e,"setLabelStyle",(function(){return h})),n.d(e,"getLabelStatesModels",(function(){return d})),n.d(e,"createTextStyle",(function(){return f})),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(66),i=n(0),o=n(13),a=n(10),s=n(23),l={};function u(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,l=t.labelDimIndex,u=e.normal;a&&(r=a.getFormattedLabel(s,"normal",null,l,u&&u.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 d=o.SPECIAL_STATES[h],f=e[d];c[d]=Object(i.retrieve2)(a?a.getFormattedLabel(s,d,null,l,f&&f.get("formatter")):null,r)}return c}function h(t,e,n,a){n=n||l;for(var s=t instanceof r.default,h=!1,d=0;d<o.DISPLAY_STATES.length;d++){if((x=e[o.DISPLAY_STATES[d]])&&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=f(m,a&&a.normal,n,!1,!s);b.text=v.normal,s||t.setTextConfig(p(m,n,!1));for(d=0;d<o.SPECIAL_STATES.length;d++){var x,w=o.SPECIAL_STATES[d];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=f(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);u(g,r)})}else g&&(g.ignore=!0);t.dirty()}function d(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 f(t,e,n,r,o){var a={};return function(t,e,n,r,o){n=n||l;var a,s=e.ecModel,u=s&&s.option.textStyle,c=function(t){var e;for(;t&&t!==t.ecModel;){var n=(t.option||l).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 d=e.getModel(["rich",h]);y(a[h]={},d,u,n,r,o,!1,!0)}a&&(t.rich=a);var f=e.get("overflow");f&&(t.overflow=f);var p=e.get("minMargin");null!=p&&(t.margin=p);y(t,e,u,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),l=t.getShallow("offset");return"outside"===(r=t.getShallow("position")||(n?null:"inside"))&&(r=e.defaultOutsidePosition||"top"),null!=r&&(o.position=r),null!=l&&(o.offset=l),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,u){n=!o&&n||l;var c=r&&r.inheritColor,h=e.getShallow("color"),d=e.getShallow("textBorderColor"),f=Object(i.retrieve2)(e.getShallow("opacity"),n.opacity);"inherit"!==h&&"auto"!==h||(h=c||null),"inherit"!==d&&"auto"!==d||(d=c||null),a||(h=h||n.color,d=d||n.textBorderColor),null!=h&&(t.fill=h),null!=d&&(t.stroke=d);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!=f||u||(f=r&&r.defaultOpacity),null!=f&&(t.opacity=f),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 l=_(t);if(l.valueAnimation&&l.prevValue!==l.value){var h=l.defaultInterpolatedText,d=Object(i.retrieve2)(l.interpolatedValue,l.prevValue),f=l.value;t.percent=0,(null==l.prevValue?s.initProps:s.updateProps)(t,{percent:1},r,e,null,(function(r){var i=Object(a.interpolateRawValues)(n,l.precision,d,f,r);l.interpolatedValue=1===r?null:i;var s=c({labelDataIndex:e,labelFetcher:o,defaultText:h?h(i):i+""},l.statesModels,i);u(t,s)}))}}},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 l})),n.d(e,"SOURCE_FORMAT_TYPED_ARRAY",(function(){return u})),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 d}));var r=n(0),i=Object(r.createHashMap)(["tooltip","label","itemName","itemId","itemGroupId","seriesName"]),o="original",a="arrayRows",s="objectRows",l="keyedColumns",u="typedArray",c="unknown",h="column",d="row"},function(t,e,n){var r=n(798);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(440).default,i=n(8);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";n.r(e),n.d(e,"getECData",(function(){return i})),n.d(e,"setCommonECData",(function(){return o}));var r=n(10),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";n.r(e),n.d(e,"LOCATION_PARAMS",(function(){return l})),n.d(e,"HV_NAMES",(function(){return u})),n.d(e,"box",(function(){return h})),n.d(e,"vbox",(function(){return d})),n.d(e,"hbox",(function(){return f})),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(48),s=r.each,l=["left","right","top","bottom","width","height"],u=[["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(l,u){var c,h,d=l.getBoundingRect(),f=e.childAt(u+1),p=f&&f.getBoundingRect();if("horizontal"===t){var g=d.width+(p?-p.x+d.x:0);(c=o+g)>r||l.newline?(o=0,c=g,a+=s+n,s=d.height):s=Math.max(s,d.height)}else{var v=d.height+(p?-p.y+d.y:0);(h=a+v)>i||l.newline?(o+=s+n,a=0,h=v,s=d.width):s=Math.max(s,d.width)}l.newline||(l.x=o,l.y=a,l.markRedraw(),"horizontal"===t?o=c+n:a=h+n)}))}var h=c,d=r.curry(c,"vertical"),f=r.curry(c,"horizontal");function p(t,e,n){var r=e.width,i=e.height,s=Object(o.parsePercent)(t.left,r),l=Object(o.parsePercent)(t.top,i),u=Object(o.parsePercent)(t.right,r),c=Object(o.parsePercent)(t.bottom,i);return(isNaN(s)||isNaN(parseFloat(t.left)))&&(s=0),(isNaN(u)||isNaN(parseFloat(t.right)))&&(u=r),(isNaN(l)||isNaN(parseFloat(t.top)))&&(l=0),(isNaN(c)||isNaN(parseFloat(t.bottom)))&&(c=i),n=a.normalizeCssArray(n||0),{width:Math.max(u-s-n[1]-n[3],0),height:Math.max(c-l-n[0]-n[2],0)}}function g(t,e,n){n=a.normalizeCssArray(n||0);var r=e.width,s=e.height,l=Object(o.parsePercent)(t.left,r),u=Object(o.parsePercent)(t.top,s),c=Object(o.parsePercent)(t.right,r),h=Object(o.parsePercent)(t.bottom,s),d=Object(o.parsePercent)(t.width,r),f=Object(o.parsePercent)(t.height,s),p=n[2]+n[0],g=n[1]+n[3],v=t.aspect;switch(isNaN(d)&&(d=r-c-g-l),isNaN(f)&&(f=s-h-p-u),null!=v&&(isNaN(d)&&isNaN(f)&&(v>r/s?d=.8*r:f=.8*s),isNaN(d)&&(d=v*f),isNaN(f)&&(f=d/v)),isNaN(l)&&(l=r-c-d-g),isNaN(u)&&(u=s-h-f-p),t.left||t.right){case"center":l=r/2-d/2-n[3];break;case"right":l=r-d-g}switch(t.top||t.bottom){case"middle":case"center":u=s/2-f/2-n[0];break;case"bottom":u=s-f-p}l=l||0,u=u||0,isNaN(d)&&(d=r-g-l-(c||0)),isNaN(f)&&(f=s-p-u-(h||0));var m=new i.default(l+n[3],u+n[0],d,f);return m.margin=n,m}function v(t,e,n,o,a,s){var l,u=!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,!u&&!c)return!1;if("raw"===h)l="group"===t.type?new i.default(0,0,+e.width||0,+e.height||0):t.getBoundingRect();else if(l=t.getBoundingRect(),t.needLocalTransform()){var d=t.getLocalTransform();(l=l.clone()).applyTransform(d)}var f=g(r.defaults({width:l.width,height:l.height},e),n,o),p=u?f.x-l.x:0,v=c?f.y-l.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[u[e][0]]||null!=t[u[e][1]]&&null!=t[u[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=l(u[0],0),a=l(u[1],1);function l(n,r){var o={},a=0,l={},u=0;if(s(n,(function(e){l[e]=t[e]})),s(n,(function(t){c(e,t)&&(o[t]=l[t]=e[t]),h(o,t)&&a++,h(l,t)&&u++})),i[r])return h(e,n[1])?l[n[2]]=null:h(e,n[2])&&(l[n[1]]=null),l;if(2!==u&&a){if(a>=2)return o;for(var d=0;d<n.length;d++){var f=n[d];if(!c(o,f)&&c(t,f)){o[f]=t[f];break}}return o}return l}function c(t,e){return t.hasOwnProperty(e)}function h(t,e){return null!=t[e]&&"auto"!==t[e]}function d(t,e,n){s(t,(function(t){e[t]=n[t]}))}d(u[0],t,o),d(u[1],t,a)}function _(t){return x({},t)}function x(t,e){return e&&t&&s(l,(function(n){e.hasOwnProperty(n)&&(t[n]=e[n])})),t}},function(t,e,n){"use strict";n.r(e);var r=n(1120);n.d(e,"area",(function(){return r.area}));var i=n(1121);n.d(e,"line",(function(){return i.line}));var o=n(630);n.d(e,"point",(function(){return o.point}));var a=n(1122);n.d(e,"interval",(function(){return a.interval}));var s=n(631);n.d(e,"polygon",(function(){return s.polygon}));var l=n(1123);n.d(e,"edge",(function(){return l.edge}));var u=n(1124);n.d(e,"schema",(function(){return u.schema}));var c=n(1125);n.d(e,"violin",(function(){return c.violin}))},function(t,e,n){"use strict";n.r(e);var r=n(41),i=n(52),o=Math.min,a=Math.max,s=new i.default,l=new i.default,u=new i.default,c=new i.default,h=new i.default,d=new i.default,f=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,l=r.y+r.height,u=e.x,c=e.x+e.width,f=e.y,p=e.y+e.height,g=!(a<u||c<o||l<f||p<s);if(n){var v=1/0,m=0,y=Math.abs(a-u),b=Math.abs(c-o),_=Math.abs(l-f),x=Math.abs(p-s),w=Math.min(y,b),O=Math.min(_,x);a<u||c<o?w>m&&(m=w,y<b?i.default.set(d,-y,0):i.default.set(d,b,0)):w<v&&(v=w,y<b?i.default.set(h,y,0):i.default.set(h,-b,0)),l<f||p<s?O>m&&(m=O,_<x?i.default.set(d,0,-_):i.default.set(d,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:d),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],d=r[4],f=r[5];return e.x=n.x*i+d,e.y=n.y*h+f,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=u.x=n.x,s.y=c.y=n.y,l.x=c.x=n.x+n.width,l.y=u.y=n.y+n.height,s.transform(r),c.transform(r),l.transform(r),u.transform(r),e.x=o(s.x,l.x,u.x,c.x),e.y=o(s.y,l.y,u.y,c.y);var p=a(s.x,l.x,u.x,c.x),g=a(s.y,l.y,u.y,c.y);e.width=p-e.x,e.height=g-e.y}else e!==n&&t.copy(e,n)},t}();e.default=f},function(t,e,n){"use strict";n.r(e),n.d(e,"DEFAULT_PATH_STYLE",(function(){return d})),n.d(e,"DEFAULT_PATH_ANIMATION_PROPS",(function(){return f}));var r=n(59),i=n(97),o=n(138),a=n(827),s=n(0),l=n(71),u=n(151),c=n(100),h=n(119),d=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),f={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(l.lum)(t,0);return e>.5?u.DARK_LABEL_COLOR:e>.2?u.LIGHTER_LABEL_COLOR:u.LIGHT_LABEL_COLOR}if(t)return u.LIGHT_LABEL_COLOR}return u.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(l.lum)(t,0)<u.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 l=this.strokeContainThreshold;s=Math.max(s,null==l?4:l)}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,l=i.strokeNoScale?this.getLineScale():1;if(l>1e-10&&(this.hasFill()||(s=Math.max(s,this.strokeContainThreshold)),a.containStroke(o,s/l,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)(d,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 l,u=!(n&&i);if(n&&n.shape?o?i?l=n.shape:(l=Object(s.extend)({},r.shape),Object(s.extend)(l,n.shape)):(l=Object(s.extend)({},i?this.shape:r.shape),Object(s.extend)(l,n.shape)):u&&(l=r.shape),l)if(o){this.shape=Object(s.extend)({},this.shape);for(var c={},h=Object(s.keys)(l),d=0;d<h.length;d++){var f=h[d];"object"==typeof l[f]?this.shape[f]=l[f]:c[f]=l[f]}this._transitionState(e,{shape:c},a)}else this.shape=l,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 f},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),n.d(e,"log",(function(){return a})),n.d(e,"warn",(function(){return s})),n.d(e,"error",(function(){return l})),n.d(e,"deprecateLog",(function(){return u})),n.d(e,"deprecateReplaceLog",(function(){return c})),n.d(e,"makePrintable",(function(){return h})),n.d(e,"throwError",(function(){return d}));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 l(t,e){o("error",t,e)}function u(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 d(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 d}));var r=n(2),i=n(193),o=n(1),a=n(172),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)}},l={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){}},u={};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 u[n]=i,i}function h(t,e,n){var i=Object(o.upperFirst)(t),a=u[i],s=Object(r.__assign)(Object(r.__assign)({},l),n);return a[e]=s,s}function d(t){var e=Object(o.upperFirst)(t);return u[e]}},function(t,e,n){"use strict";n.r(e);var r=n(59),i=n(0),o=n(650),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 l=s.getBoundingRect(),u=s.getLocalTransform(r);u?(a.default.applyTransform(e,l,u),(i=i||e.clone()).union(e)):(i=i||l.clone()).union(l)}}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(57),a=n(103),s=n(117),l=n(10),u=n(33),c=Object(l.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=u.fetchLayoutMode(this),r=n?u.getLayoutParams(t):{},o=e.getTheme();i.merge(t,o.get(this.mainType)),i.merge(t,this.getDefaultOption()),n&&u.mergeLayoutParam(t,r,n)},e.prototype.mergeOption=function(t,e){i.merge(this.option,t,!0);var n=u.fetchLayoutMode(this);n&&u.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={},l=n.length-1;l>=0;l--)a=i.merge(a,n[l],!0);e.defaultOption=a}return e.defaultOption},e.prototype.getReferringComponents=function(t,e){var n=t+"Index",r=t+"Id";return Object(l.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],l=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]=l,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 l(t,e,n){var r=e[0],i=e[2],o=e[4],a=e[1],s=e[3],l=e[5],u=Math.sin(n),c=Math.cos(n);return t[0]=r*c+a*u,t[1]=-r*u+a*c,t[2]=i*c+s*u,t[3]=-i*u+c*s,t[4]=c*o+u*l,t[5]=c*l-u*o,t}function u(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],l=n*a-o*r;return l?(l=1/l,t[0]=a*l,t[1]=-o*l,t[2]=-r*l,t[3]=n*l,t[4]=(r*s-a*i)*l,t[5]=(o*i-n*s)*l,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 l})),n.d(e,"scale",(function(){return u})),n.d(e,"invert",(function(){return c})),n.d(e,"clone",(function(){return h}))},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),n.d(e,"ONE_SECOND",(function(){return s})),n.d(e,"ONE_MINUTE",(function(){return l})),n.d(e,"ONE_HOUR",(function(){return u})),n.d(e,"ONE_DAY",(function(){return c})),n.d(e,"ONE_YEAR",(function(){return h})),n.d(e,"defaultLeveledFormatter",(function(){return d})),n.d(e,"fullLeveledFormatter",(function(){return f})),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 M})),n.d(e,"secondsGetterName",(function(){return A})),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 D})),n.d(e,"secondsSetterName",(function(){return R})),n.d(e,"millisecondsSetterName",(function(){return N}));var r=n(0),i=n(6),o=n(247),a=n(57),s=1e3,l=60*s,u=60*l,c=24*u,h=365*c,d={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}"},f={year:"{yyyy}",month:"{yyyy}-{MM}",day:"{yyyy}-{MM}-{dd}",hour:"{yyyy}-{MM}-{dd} "+d.hour,minute:"{yyyy}-{MM}-{dd} "+d.minute,second:"{yyyy}-{MM}-{dd} "+d.second,millisecond:d.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),l=s[S(n)](),u=s[C(n)]()+1,c=Math.floor((u-1)/4)+1,h=s[E(n)](),d=s["get"+(n?"UTC":"")+"Day"](),f=s[T(n)](),p=(f-1)%12+1,g=s[M(n)](),m=s[A(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,l+"").replace(/{yy}/g,l%100+"").replace(/{Q}/g,c+"").replace(/{MMMM}/g,_[u-1]).replace(/{MMM}/g,x[u-1]).replace(/{MM}/g,v(u,2)).replace(/{M}/g,u+"").replace(/{dd}/g,v(h,2)).replace(/{d}/g,h+"").replace(/{eeee}/g,w[d]).replace(/{ee}/g,O[d]).replace(/{e}/g,d+"").replace(/{HH}/g,v(f,2)).replace(/{H}/g,f+"").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({},d);if(t.level>0)for(var l=0;l<p.length;++l)s[p[l]]="{primary|"+s[p[l]]+"}";var u=n?!1===n.inherit?n:r.defaults(n,s):s,c=w(t.value,o);if(u[c])a=u[c];else if(u.inherit){for(l=g.indexOf(c)-1;l>=0;--l)if(u[c]){a=u[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[M(e)](),l=n[A(e)](),u=0===n[I(e)](),c=u&&0===l,h=c&&0===s,d=h&&0===a,f=d&&1===o;return f&&1===r?"year":f?"month":d?"day":h?"hour":c?"minute":u?"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[M(n)]();case"second":return o[A(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 M(t){return t?"getUTCMinutes":"getMinutes"}function A(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 D(t){return t?"setUTCMinutes":"setMinutes"}function R(t){return t?"setUTCSeconds":"setSeconds"}function N(t){return t?"setUTCMilliseconds":"setMilliseconds"}},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 l})),n.d(e,"createBBox",(function(){return u})),n.d(e,"getValueByPercent",(function(){return c})),n.d(e,"getCirclePoint",(function(){return h})),n.d(e,"distance",(function(){return d})),n.d(e,"wait",(function(){return f})),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 l(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 u(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 d(t,e){var n=e.x-t.x,r=e.y-t.y;return Math.sqrt(n*n+r*r)}var f=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 u(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 u(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,l=-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]),u=t.applyToMatrix([e.maxX,e.maxY,1]),c=Math.min(n[0],r[0],i[0],u[0]),h=Math.max(n[0],r[0],i[0],u[0]),d=Math.min(n[1],r[1],i[1],u[1]),f=Math.max(n[1],r[1],i[1],u[1]);c<o&&(o=c),h>a&&(a=h),d<s&&(s=d),f>l&&(l=f)}})):(o=0,a=0,s=0,l=0),e=u(o,s,a-o,l-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/d(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 f}));var r=n(126),i=n(62),o=n(53),a=n(40),s=n(54),l=n(0),u=n(533),c=n(389),h=[],d={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:u.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 f(t){Object(l.isArray)(t)?Object(l.each)(t,(function(t){f(t)})):Object(l.indexOf)(h,t)>=0||(h.push(t),Object(l.isFunction)(t)&&(t={install:t}),t.install(d))}},function(t,e,n){"use strict";n.r(e),n.d(e,"cubicAt",(function(){return d})),n.d(e,"cubicDerivativeAt",(function(){return f})),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(20),i=Math.pow,o=Math.sqrt,a=o(3),s=Object(r.create)(),l=Object(r.create)(),u=Object(r.create)();function c(t){return t>-1e-8&&t<1e-8}function h(t){return t>1e-8||t<-1e-8}function d(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 f(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,l){var u=r+3*(e-n)-t,h=3*(n-2*e+t),d=3*(e-t),f=t-s,p=h*h-3*u*d,g=h*d-9*u*f,v=d*d-3*h*f,m=0;if(c(p)&&c(g)){if(c(h))l[0]=0;else(M=-d/h)>=0&&M<=1&&(l[m++]=M)}else{var y=g*g-4*p*v;if(c(y)){var b=g/p,_=-b/2;(M=-h/u+b)>=0&&M<=1&&(l[m++]=M),_>=0&&_<=1&&(l[m++]=_)}else if(y>0){var x=o(y),w=p*h+1.5*u*(-g+x),O=p*h+1.5*u*(-g-x);(M=(-h-((w=w<0?-i(-w,1/3):i(w,1/3))+(O=O<0?-i(-O,1/3):i(O,1/3))))/(3*u))>=0&&M<=1&&(l[m++]=M)}else{var S=(2*p*h-3*u*g)/(2*o(p*p*p)),C=Math.acos(S)/3,E=o(p),T=Math.cos(C),M=(-h-2*E*T)/(3*u),A=(_=(-h+E*(T+a*Math.sin(C)))/(3*u),(-h+E*(T-a*Math.sin(C)))/(3*u));M>=0&&M<=1&&(l[m++]=M),_>=0&&_<=1&&(l[m++]=_),A>=0&&A<=1&&(l[m++]=A)}}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,l=3*e-3*t,u=0;if(c(s)){if(h(a))(f=-l/a)>=0&&f<=1&&(i[u++]=f)}else{var d=a*a-4*s*l;if(c(d))i[0]=-a/(2*s);else if(d>0){var f,p=o(d),g=(-a-p)/(2*s);(f=(-a+p)/(2*s))>=0&&f<=1&&(i[u++]=f),g>=0&&g<=1&&(i[u++]=g)}}return u}function v(t,e,n,r,i,o){var a=(e-t)*i+t,s=(n-e)*i+e,l=(r-n)*i+n,u=(s-a)*i+a,c=(l-s)*i+s,h=(c-u)*i+u;o[0]=t,o[1]=a,o[2]=u,o[3]=h,o[4]=h,o[5]=c,o[6]=l,o[7]=r}function m(t,e,n,i,a,c,h,f,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)l[0]=d(t,n,a,h,S),l[1]=d(e,i,c,f,S),(_=Object(r.distSquare)(s,l))<O&&(m=S,O=_);O=1/0;for(var C=0;C<32&&!(w<1e-4);C++)y=m-w,b=m+w,l[0]=d(t,n,a,h,y),l[1]=d(e,i,c,f,y),_=Object(r.distSquare)(l,s),y>=0&&_<O?(m=y,O=_):(u[0]=d(t,n,a,h,b),u[1]=d(e,i,c,f,b),x=Object(r.distSquare)(u,s),b<=1&&x<O?(m=b,O=x):w*=.5);return v&&(v[0]=d(t,n,a,h,m),v[1]=d(e,i,c,f,m)),o(O)}function y(t,e,n,r,i,o,a,s,l){for(var u=t,c=e,h=0,f=1/l,p=1;p<=l;p++){var g=p*f,v=d(t,n,i,a,g),m=d(e,r,o,s,g),y=v-u,b=m-c;h+=Math.sqrt(y*y+b*b),u=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),l=t-r,u=0;if(c(a)){if(h(s))(f=-l/s)>=0&&f<=1&&(i[u++]=f)}else{var d=s*s-4*a*l;if(c(d))(f=-s/(2*a))>=0&&f<=1&&(i[u++]=f);else if(d>0){var f,p=o(d),g=(-s-p)/(2*a);(f=(-s+p)/(2*a))>=0&&f<=1&&(i[u++]=f),g>=0&&g<=1&&(i[u++]=g)}}return u}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,d,f){var p,g=.005,v=1/0;s[0]=h,s[1]=d;for(var m=0;m<1;m+=.05){l[0]=b(t,n,a,m),l[1]=b(e,i,c,m),(w=Object(r.distSquare)(s,l))<v&&(p=m,v=w)}v=1/0;for(var y=0;y<32&&!(g<1e-4);y++){var _=p-g,x=p+g;l[0]=b(t,n,a,_),l[1]=b(e,i,c,_);var w=Object(r.distSquare)(l,s);if(_>=0&&w<v)p=_,v=w;else{u[0]=b(t,n,a,x),u[1]=b(e,i,c,x);var O=Object(r.distSquare)(u,s);x<=1&&O<v?(p=x,v=O):g*=.5}}return f&&(f[0]=b(t,n,a,p),f[1]=b(e,i,c,p)),o(v)}function C(t,e,n,r,i,o,a){for(var s=t,l=e,u=0,c=1/a,h=1;h<=a;h++){var d=h*c,f=b(t,n,i,d),p=b(e,r,o,d),g=f-s,v=p-l;u+=Math.sqrt(g*g+v*v),s=f,l=p}return u}},function(t,e,n){"use strict";n.r(e),n.d(e,"addCommas",(function(){return l})),n.d(e,"toCamelCase",(function(){return u})),n.d(e,"normalizeCssArray",(function(){return c})),n.d(e,"encodeHTML",(function(){return f})),n.d(e,"makeValueReadable",(function(){return p})),n.d(e,"formatTpl",(function(){return m})),n.d(e,"formatTplSimple",(function(){return y})),n.d(e,"getTooltipMarker",(function(){return b})),n.d(e,"formatTime",(function(){return _})),n.d(e,"capitalFirst",(function(){return x})),n.d(e,"convertToColorString",(function(){return w})),n.d(e,"windowOpen",(function(){return O}));var r=n(0),i=n(6),o=n(43),a=n(426);n.d(e,"truncateText",(function(){return a.truncateText}));var s=n(791);function l(t){if(!Object(i.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 u(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 s.getTextRect}));var c=r.normalizeCssArray,h=/([&<>"'])/g,d={"&":"&","<":"<",">":">",'"':""","'":"'"};function f(t){return null==t?"":(t+"").replace(h,(function(t,e){return d[e]}))}function p(t,e,n){function a(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(i.parseDate)(t):t;if(!isNaN(+h))return Object(o.format)(h,"{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}",n);if(c)return"-"}if("ordinal"===e)return r.isStringSafe(t)?a(t):r.isNumber(t)&&s(t)?t+"":"-";var d=Object(i.numericToNumber)(t);return s(d)?l(d):r.isStringSafe(t)?a(t):"boolean"==typeof t?t+"":"-"}var g=["a","b","c","d","e","f","g"],v=function(t,e){return"{"+t+(null==e?"":e)+"}"};function m(t,e,n){r.isArray(e)||(e=[e]);var i=e.length;if(!i)return"";for(var o=e[0].$vars||[],a=0;a<o.length;a++){var s=g[a];t=t.replace(v(s),v(s,0))}for(var l=0;l<i;l++)for(var u=0;u<o.length;u++){var c=e[l][o[u]];t=t.replace(v(g[u],l),n?f(c):c)}return t}function y(t,e,n){return r.each(e,(function(e,r){t=t.replace("{"+r+"}",n?f(e):e)})),t}function b(t,e){var n=r.isString(t)?{color:t,extraCssText:e}:t||{},i=n.color,o=n.type;e=n.extraCssText;var a=n.renderMode||"html";return i?"html"===a?"subItem"===o?'<span style="display:inline-block;vertical-align:middle;margin-right:8px;margin-left:3px;border-radius:4px;width:4px;height:4px;background-color:'+f(i)+";"+(e||"")+'"></span>':'<span style="display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:'+f(i)+";"+(e||"")+'"></span>':{renderMode:a,content:"{"+(n.markerId||"markerX")+"|} ",style:"subItem"===o?{width:4,height:4,borderRadius:2,backgroundColor:i}:{width:10,height:10,borderRadius:5,backgroundColor:i}}:""}function _(t,e,n){"week"!==t&&"month"!==t&&"quarter"!==t&&"half-year"!==t&&"year"!==t||(t="MM-dd\nyyyy");var r=Object(i.parseDate)(e),a=n?"getUTC":"get",s=r[a+"FullYear"](),l=r[a+"Month"]()+1,u=r[a+"Date"](),c=r[a+"Hours"](),h=r[a+"Minutes"](),d=r[a+"Seconds"](),f=r[a+"Milliseconds"]();return t=t.replace("MM",Object(o.pad)(l,2)).replace("M",l).replace("yyyy",s).replace("yy",s%100+"").replace("dd",Object(o.pad)(u,2)).replace("d",u).replace("hh",Object(o.pad)(c,2)).replace("h",c).replace("mm",Object(o.pad)(h,2)).replace("m",h).replace("ss",Object(o.pad)(d,2)).replace("s",d).replace("SSS",Object(o.pad)(f,3))}function x(t){return t?t.charAt(0).toUpperCase()+t.substr(1):t}function w(t,e){return e=e||"transparent",r.isString(t)?t:r.isObject(t)&&t.colorStops&&(t.colorStops[0]||{}).color||e}function O(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);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 l})),n.d(e,"format",(function(){return u})),n.d(e,"isEmptyValue",(function(){return c})),n.d(e,"isEmptyObject",(function(){return h})),n.d(e,"asyncMap",(function(){return f})),n.d(e,"complementError",(function(){return p})),n.d(e,"deepMerge",(function(){return g}));var r=n(405),i=n.n(r),o=n(254),a=n.n(o),s=/%[sdj%]/g,l=function(){};function u(){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}})),l=e[r];r<o;l=e[++r])a+=" "+l;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 d(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 f(t,e,n,r){if(e.first)return d(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,l=[],u=function(t){l.push.apply(l,t),++s===a&&r(l)};o.forEach((function(e){var r=t[e];-1!==i.indexOf(e)?d(r,n,u):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,u)}))}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(39),o=n(103),a=n(117),s=n(10),l=n(13),u=n(364),c=n(244),h=n(14),d=s.makeInner(),f=Object(c.default)(),p=function(){function t(){this.group=new i.default,this.uid=o.getUID("viewChart"),this.renderTask=Object(u.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){d(t).updateMethod=e},t.protoInitialize=void(t.prototype.type="chart"),t}();function g(t,e,n){t&&Object(l.isHighDownDispatcher)(t)&&("emphasis"===e?l.enterEmphasis:l.leaveEmphasis)(t,n)}function v(t,e,n){var i=s.queryDataIndex(t,e),o=e&&null!=e.highlightKey?Object(l.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 f(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&&d(i).updateMethod,l=o?"incrementalPrepareRender":s&&a[s]?s:"render";return"render"!==l&&a[l](e,n,r,i),b[l]}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(49),a=n(10),s=n(40),l=n(302),u=n(329),c=n(33),h=n(364),d=n(117),f=n(476),p=n(660),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 f.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=l.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 l=o.selectedMap,u=0;u<s;u++){var c=e[u];l[d=v(t,c)]=!0,this._selectedDataIndicesMap[d]=t.getRawIndex(c)}}else if("single"===a||!0===a){var h=e[s-1],d=v(t,h);o.selectedMap=((n={})[d]=!0,n),this._selectedDataIndicesMap=((r={})[d]=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,u.DataFormatMixin),i.mixin(y,l.PaletteMixin),Object(d.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 l})),n.d(e,"getBoundingRect",(function(){return u})),n.d(e,"adjustTextX",(function(){return c})),n.d(e,"adjustTextY",(function(){return h})),n.d(e,"getLineHeight",(function(){return d})),n.d(e,"measureText",(function(){return f})),n.d(e,"parsePercent",(function(){return p})),n.d(e,"calculateTextPosition",(function(){return g}));var r=n(35),i=n(291),o=n(98),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 l(t,e,n,i){var o=s(t,e),a=d(e),l=c(0,o,n),u=h(0,a,i);return new r.default(l,u,o,a)}function u(t,e,n,i){var o=((t||"")+"").split("\n");if(1===o.length)return l(o[0],e,n,i);for(var a=new r.default(0,0,0,0),s=0;s<o.length;s++){var u=l(o[s],e,n,i);0===s?a.copy(u):a.union(u)}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 d(t){return s("国",t)}function f(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,l=n.x,u=n.y,c="left",h="top";if(r instanceof Array)l+=p(r[0],n.width),u+=p(r[1],n.height),c=null,h=null;else switch(r){case"left":l-=i,u+=s,c="right",h="middle";break;case"right":l+=i+a,u+=s,h="middle";break;case"top":l+=a/2,u-=i,c="center",h="bottom";break;case"bottom":l+=a/2,u+=o+i,c="center";break;case"inside":l+=a/2,u+=s,c="center",h="middle";break;case"insideLeft":l+=i,u+=s,h="middle";break;case"insideRight":l+=a-i,u+=s,c="right",h="middle";break;case"insideTop":l+=a/2,u+=i,c="center";break;case"insideBottom":l+=a/2,u+=o-i,c="center",h="bottom";break;case"insideTopLeft":l+=i,u+=i;break;case"insideTopRight":l+=a-i,u+=i,c="right";break;case"insideBottomLeft":l+=i,u+=o-i,h="bottom";break;case"insideBottomRight":l+=a-i,u+=o-i,c="right",h="bottom"}return(t=t||{}).x=l,t.y=u,t.align=c,t.verticalAlign=h,t}},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 l})),n.d(e,"isSamePoint",(function(){return u}));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 l(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 u(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);var r=n(49),i=n(117),o=n(1265),a=n(1266),s=n(651),l=n(652),u=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(u.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(u.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(u.mixin)(c,s.LineStyleMixin),Object(u.mixin)(c,l.ItemStyleMixin),Object(u.mixin)(c,o.AreaStyleMixin),Object(u.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 l})),n.d(e,"__metadata",(function(){return u})),n.d(e,"__awaiter",(function(){return c})),n.d(e,"__generator",(function(){return h})),n.d(e,"__createBinding",(function(){return d})),n.d(e,"__exportStar",(function(){return f})),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 M}));
|
||
/*! *****************************************************************************
|
||
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 l(t,e){return function(n,r){e(n,r,t)}}function u(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{l(r.next(t))}catch(t){o(t)}}function s(t){try{l(r.throw(t))}catch(t){o(t)}}function l(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}l((r=r.apply(t,e||[])).next())}))}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 d=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 f(t,e){for(var n in t)"default"===n||Object.prototype.hasOwnProperty.call(e,n)||d(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(l,u):c(o[0][2],n)}catch(t){c(o[0][3],t)}var n}function l(t){s("next",t)}function u(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)&&d(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 M(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(144),a=n(70),s=n(233),l=n(14),u=n(35),c=n(55),h=n(6),d=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()}}),f=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),l=r-o+a+s,u=Math.asin(s/a),c=Math.cos(u)*a,h=Math.sin(u),d=Math.cos(u),f=.6*a,p=.7*a;t.moveTo(n-c,l+s),t.arc(n,l,a,Math.PI-u,2*Math.PI+u),t.bezierCurveTo(n+c-h*f,l+s+d*f,n,r-p,n,r),t.bezierCurveTo(n,r-p,n-c+h*f,l+s+d*f,n-c,l+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:f,pin:p,arrow:g,triangle:d},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://")?l.makeImage(t.slice(8),new u.default(e,n,r,i),a?"center":"cover"):0===t.indexOf("path://")?l.makePath(t.slice(7),{},new u.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";n.r(e),n.d(e,"wrap",(function(){return u})),n.d(e,"clamp",(function(){return c})),n.d(e,"interpolate",(function(){return h})),n.d(e,"bezier",(function(){return d})),n.d(e,"ease",(function(){return f})),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(17),o=n(1762),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 l(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 l(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 l(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 u(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 d(t,e,n,r){var i=new a.a(t,e,n,r);return function(t){return i.solve(t)}}var f=d(.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(39),i=n(103),o=n(117),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){var r=n(1935)();t.exports=r;try{regeneratorRuntime=r}catch(t){"object"==typeof globalThis?globalThis.regeneratorRuntime=r:Function("r","regeneratorRuntime = r")(r)}},function(t,e,n){"use strict";n.r(e);var r=n(648),i=n(1240),o=n(1241),a=n(1242),s=n(1243),l=n(1244);e.default={required:r.default,whitespace:i.default,type:o.default,range:a.default,enum:s.default,pattern:l.default}},function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return u}));var r=n(11),i=n.n(r),o=n(12),a=n.n(o),s=n(3),l=n.n(s),u=function(){function t(e,n){i()(this,t),l()(this,"x",void 0),l()(this,"y",void 0),this.x=e,this.y=n}return a()(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),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(59),i=n(426),o=n(328),a=n(0),s=n(55),l=n(106),u=n(70),c=n(35),h=n(97),d=n(98),f={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=f,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||f},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||d.DEFAULT_FONT,n=t.padding,r=T(t),a=Object(i.parsePlainText)(r,t),l=M(t),u=!!t.backgroundColor,h=a.outerHeight,f=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,A=Object(s.adjustTextY)(b,a.contentHeight,w);if(l||n){var I=Object(s.adjustTextX)(y,f,x),j=Object(s.adjustTextY)(b,h,w);l&&this._renderBackground(t,t,I,j,f,h)}A+=v/2,n&&(O=E(y,x,n),"top"===w?A+=n[0]:"bottom"===w&&(A-=n[2]));for(var k=0,P=!1,L=(C("fill"in t?t.fill:(P=!0,m.fill))),D=(S("stroke"in t?t.stroke:u||m.autoStroke&&!P?null:(k=2,m.stroke))),R=t.textShadowBlur>0,N=null!=t.width&&("truncate"===t.overflow||"break"===t.overflow||"breakAll"===t.overflow),F=a.calculatedLineHeight,B=0;B<g.length;B++){var z=this._getOrCreateChild(o.default),V=z.createStyle();z.useStyle(V),V.text=g[B],V.x=O,V.y=A,x&&(V.textAlign=x),V.textBaseline="middle",V.opacity=t.opacity,V.strokeFirst=!0,R&&(V.shadowBlur=t.textShadowBlur||0,V.shadowColor=t.textShadowColor||"transparent",V.shadowOffsetX=t.textShadowOffsetX||0,V.shadowOffsetY=t.textShadowOffsetY||0),V.stroke=D,V.fill=L,D&&(V.lineWidth=t.lineWidth||k,V.lineDash=t.lineDash,V.lineDashOffset=t.lineDashOffset||0),V.font=e,_(V,t),A+=v,N&&z.setBoundingRect(new c.default(Object(s.adjustTextX)(V.x,t.width,V.textAlign),Object(s.adjustTextY)(V.y,F,V.textBaseline),p,F))}},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,l=t.padding,u=t.x||0,c=t.y||0,h=this._defaultStyle,d=t.align||h.align,f=t.verticalAlign||h.verticalAlign,p=Object(s.adjustTextX)(u,o,d),g=Object(s.adjustTextY)(c,a,f),v=p,m=g;l&&(v+=l[3],m+=l[0]);var y=v+r;M(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,A=v,I=y,j=O-1,k=void 0;E<O&&(!(k=w[E]).align||"left"===k.align);)this._placeToken(k,t,S,m,A,"left",b),C-=k.width,A+=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(A+=(r-(A-v)-(y-I)-C)/2;E<=j;)k=w[E],this._placeToken(k,t,S,m,A+k.width/2,"center",b),A+=k.width,E++;m+=S}},e.prototype._placeToken=function(t,e,n,r,i,l,u){var h=e.rich[t.styleName]||{};h.text=t.text;var f=t.verticalAlign,p=r+n/2;"top"===f?p=r+t.height/2:"bottom"===f&&(p=r+n-t.height/2),!t.isLineHolder&&M(h)&&this._renderBackground(h,e,"right"===l?i-t.width:"center"===l?i-t.width/2:i,p-t.height/2,t.width,t.height);var g=!!h.backgroundColor,v=t.textPadding;v&&(i=E(i,l,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||u||b.autoStroke&&!x?null:(w=2,b.stroke)),A=h.textShadowBlur>0||e.textShadowBlur>0;y.text=t.text,y.x=i,y.y=p,A&&(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=l,y.textBaseline="middle",y.font=t.font||d.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,d=t.backgroundColor,f=t.borderWidth,p=t.borderColor,g=d&&d.image,v=d&&!g,m=t.borderRadius,y=this;if(v||t.lineHeight||f&&p){(s=this._getOrCreateChild(u.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=d||null,h.fillOpacity=Object(a.retrieve2)(t.fillOpacity,1);else if(g){(c=this._getOrCreateChild(l.default)).onload=function(){y.dirtyStyle()};var _=c.style;_.image=d.image,_.x=n,_.y=r,_.width=i,_.height=o}f&&p&&((h=s.style).lineWidth=f,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)?d.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 M(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(421);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(147);n.d(e,"BasePostProcessingPass",(function(){return i.default}));var o=n(28);n.d(e,"TYPES",(function(){return o.TYPES}));var a=n(1198);n.d(e,"packCircleVertex",(function(){return a.packCircleVertex}));var s=n(1200);n.d(e,"BlendType",(function(){return s.BlendType}));var l=n(1201);n.d(e,"ScaleTypes",(function(){return l.ScaleTypes})),n.d(e,"StyleScaleType",(function(){return l.StyleScaleType})),n.d(e,"AttributeType",(function(){return l.AttributeType}));n(1202);var u=n(1203);n.d(e,"MapServiceEvent",(function(){return u.MapServiceEvent}));var c=n(404);n.d(e,"CoordinateSystem",(function(){return c.CoordinateSystem})),n.d(e,"CoordinateUniform",(function(){return c.CoordinateUniform}));n(1204);var h=n(1205);n.d(e,"CameraUniform",(function(){return h.CameraUniform}));n(1206);var d=n(1207);n.d(e,"SceneEventList",(function(){return d.SceneEventList}));n(1208),n(1209),n(1210);var f=n(1211);n.d(e,"PositionType",(function(){return f.PositionType}));n(1212),n(1213);var p=n(143);n.d(e,"InteractionEvent",(function(){return p.InteractionEvent}));n(1214),n(1215),n(1216),n(1217),n(1218),n(1219);var g=n(204);n.d(e,"PassType",(function(){return g.PassType}));n(1220),n(1221),n(1222);var v=n(85);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,l=t.defaultStyle,u=t.color,c=t.size,h=Object(r.__assign)(Object(r.__assign)({},l),s);return u&&(e&&(s.stroke||(h.stroke=u)),n&&(s.fill||(h.fill=u))),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 l})),n.d(e,"getAngle",(function(){return u})),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),l=a(t,e,n,i),u=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),d=a(t,e,o,r+Math.PI),f=[["M",s.x,s.y],["A",n,n,0,1,1,h.x,h.y],["A",n,n,0,1,1,l.x,l.y],["M",u.x,u.y]];return o&&(f.push(["A",o,o,0,1,0,d.x,d.y]),f.push(["A",o,o,0,1,0,c.x,c.y])),f.push(["M",s.x,s.y]),f.push(["Z"]),f}var p=i-r<=Math.PI?0:1,g=[["M",s.x,s.y],["A",n,n,0,p,1,l.x,l.y],["L",c.x,c.y]];return o&&g.push(["A",o,o,0,p,0,u.x,u.y]),g.push(["L",s.x,s.y]),g.push(["Z"]),g}function l(t,e,n,i,o){var s=a(t,e,n,i),l=a(t,e,n,o);if(Object(r.isNumberEqual)(o-i,2*Math.PI)){var u=a(t,e,n,i+Math.PI);return[["M",s.x,s.y],["A",n,n,0,1,1,u.x,u.y],["A",n,n,0,1,1,s.x,s.y],["A",n,n,0,1,0,u.x,u.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,l.x,l.y]]}function u(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,l=0,u=0,c=t.length-1,h=0;++s<t.length;)n=c,c=s,h+=a=t[n]*e[c]-t[c]*e[n],l+=(t[n]+t[c])*a,u+=(e[n]+e[c])*a;return[l/(h*=3),u/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(59),i=n(36),o=n(1269),a=n(363),s=function(){this.x=0,this.y=0,this.width=0,this.height=0},l={},u=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 u=Object(a.subPixelOptimizeRect)(l,e,this.style);n=u.x,r=u.y,i=u.width,s=u.height,u.r=e.r,e=u}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);u.prototype.type="rect",e.default=u},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 M}));var r=n(291),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 l(t){var e=t;return e.length&&"%"===e.charAt(e.length-1)?a(parseFloat(e)/100):a(parseFloat(e))}function u(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 d(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t}var f=new r.default(20),p=null;function g(t,e){p&&d(p,e),p=f.put(t,p||e.slice())}function v(t,e){if(t){e=e||[];var n=f.get(t);if(n)return d(e,n);var r=(t+="").replace(/ /g,"").toLowerCase();if(r in i)return d(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 u=r.indexOf("("),c=r.indexOf(")");if(-1!==u&&c+1===a){var p=r.substr(0,u),v=r.substr(u+1,c-(u+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=l(v.pop());case"rgb":return 3!==v.length?void h(e,0,0,0,1):(h(e,s(v[0]),s(v[1]),s(v[2]),y),g(t,e),e);case"hsla":return 4!==v.length?void h(e,0,0,0,1):(v[3]=l(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=l(t[1]),i=l(t[2]),a=i<=.5?i*(r+1):i+r-i*r,s=2*i-a;return h(e=e||[],o(255*u(s,a,n+1/3)),o(255*u(s,a,n)),o(255*u(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),l=e[i],u=e[s],h=r-i;return n[0]=o(c(l[0],u[0],h)),n[1]=o(c(l[1],u[1],h)),n[2]=o(c(l[2],u[2],h)),n[3]=a(c(l[3],u[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),l=v(e[i]),u=v(e[s]),h=r-i,d=E([o(c(l[0],u[0],h)),o(c(l[1],u[1],h)),o(c(l[2],u[2],h)),a(c(l[3],u[3],h))],"rgba");return n?{color:d,leftIndex:i,rightIndex:s,value:r}:d}}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),l=s-a,u=(s+a)/2;if(0===l)e=0,n=0;else{n=u<.5?l/(s+a):l/(2-s-a);var c=((s-r)/6+l/2)/l,h=((s-i)/6+l/2)/l,d=((s-o)/6+l/2)/l;r===s?e=d-h:i===s?e=1/3+c-d:o===s&&(e=2/3+h-c),e<0&&(e+=1),e>1&&(e-=1)}var f=[360*e,n,u];return null!=t[3]&&f.push(t[3]),f}}(o),null!=e&&(o[0]=(i=e,(i=Math.round(i))<0?0:i>360?360:i)),null!=n&&(o[1]=l(n)),null!=r&&(o[2]=l(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 M(){return E([Math.round(255*Math.random()),Math.round(255*Math.random()),Math.round(255*Math.random())],"rgb")}},function(t,e,n){var r=n(1932),i=n(1933),o=n(1156),a=n(1934);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){"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 l})),n.d(e,"PLOYGON_Y",(function(){return u})),n.d(e,"DEFAULT_OPTIONS",(function(){return c}));var i="$$percentage$$",o="$$mappingValue$$",a="$$conversion$$",s="$$totalPercentage$$",l="$$x$$",u="$$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(131);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 c})),n.d(e,"buildTooltipMarkup",(function(){return g})),n.d(e,"retrieveVisualColorForTooltipMarker",(function(){return y})),n.d(e,"getPaddingFromTooltipModel",(function(){return b})),n.d(e,"TooltipMarkupStyleCreator",(function(){return _}));var r=n(48),i=n(0),o=n(150),a=n(6);function s(t,e){var n=t.color||"#6e7079",i=t.fontSize||12,o=t.fontWeight||"400",a=t.color||"#464646",s=t.fontSize||14,l=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)(l+"")}:{nameStyle:{fontSize:i,fill:n,fontWeight:o},valueStyle:{fontSize:s,fill:a,fontWeight:l}}}var l=[0,10,20,30],u=["","\n","\n\n","\n\n\n"];function c(t,e){return e.type=t,e}function h(t){return"section"===t.type}function d(t){return h(t)?f:p}function f(t,e,n,a){var c,f=e.noHeader,p=(c=function t(e){if(h(e)){var n=0,r=e.blocks.length,o=r>1||r>0&&!e.noHeader;return Object(i.each)(e.blocks,(function(e){var r=t(e);r>=n&&(n=r+ +(o&&(!r||h(e)&&!e.noHeader)))})),n}return 0}(e),{html:l[c],richText:u[c]}),g=[],y=e.blocks||[];Object(i.assert)(!y||Object(i.isArray)(y)),y=y||[];var b=t.orderMode;if(e.sortBlocks&&b){y=y.slice();var _={valueAsc:"asc",valueDesc:"desc"};if(Object(i.hasOwn)(_,b)){var x=new o.SortOrderComparator(_[b],null);y.sort((function(t,e){return x.evaluate(t.sortParam,e.sortParam)}))}else"seriesDesc"===b&&y.reverse()}Object(i.each)(y,(function(n,r){var o=e.valueFormatter,s=d(n)(o?Object(i.extend)(Object(i.extend)({},t),{valueFormatter:o}):t,n,r>0?p.html:0,a);null!=s&&g.push(s)}));var w="richText"===t.renderMode?g.join(p.richText):v(g.join(""),f?n:p.html);if(f)return w;var O=Object(r.makeValueReadable)(e.header,"ordinal",t.useUTC),S=s(a,t.renderMode).nameStyle;return"richText"===t.renderMode?m(t,O,S)+p.richText+w:v('<div style="'+S+';line-height:1;">'+Object(r.encodeHTML)(O)+"</div>"+w,n)}function p(t,e,n,o){var a=t.renderMode,l=e.noName,u=e.noValue,c=!e.markerType,h=e.name,d=t.useUTC,f=e.valueFormatter||t.valueFormatter||function(t){return t=Object(i.isArray)(t)?t:[t],Object(i.map)(t,(function(t,e){return Object(r.makeValueReadable)(t,Object(i.isArray)(y)?y[e]:y,d)}))};if(!l||!u){var p=c?"":t.markupStyleCreator.makeTooltipMarker(e.markerType,e.markerColor||"#333",a),g=l?"":Object(r.makeValueReadable)(h,"ordinal",d),y=e.valueType,b=u?[]:f(e.value),_=!c||!l,x=!c&&l,w=s(o,a),O=w.nameStyle,S=w.valueStyle;return"richText"===a?(c?"":p)+(l?"":m(t,g,O))+(u?"":function(t,e,n,r,o){var a=[o],s=r?10:20;return n&&a.push({padding:[0,0,0,s],align:"right"}),t.markupStyleCreator.wrapRichTextStyle(Object(i.isArray)(e)?e.join(" "):e,a)}(t,b,_,x,S)):v((c?"":p)+(l?"":function(t,e,n){return'<span style="'+n+";"+(e?"margin-left:2px":"")+'">'+Object(r.encodeHTML)(t)+"</span>"}(g,!c,O))+(u?"":function(t,e,n,o){var a=n?"10px":"20px",s=e?"float:right;margin-left:"+a:"";return t=Object(i.isArray)(t)?t:[t],'<span style="'+s+";"+o+'">'+Object(i.map)(t,(function(t){return Object(r.encodeHTML)(t)})).join(" ")+"</span>"}(b,_,x,S)),n)}}function g(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 v(t,e){return'<div style="'+("margin: "+e+"px 0 0")+';line-height:1;">'+t+'<div style="clear:both"></div></div>'}function m(t,e,n){return t.markupStyleCreator.wrapRichTextStyle(e,n)}function y(t,e){var n=t.getData().getItemVisual(e,"style")[t.visualDrawType];return Object(r.convertToColorString)(n)}function b(t,e){var n=t.get("padding");return null!=n?n:"richText"===e?[8,10]:10}var _=function(){function t(){this.richTextStyles={},this._nextStyleNameId=Object(a.getRandomIdBase)()}return t.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},t.prototype.makeTooltipMarker=function(t,e,n){var o="richText"===n?this._generateStyleName():null,a=Object(r.getTooltipMarker)({color:e,type:t,renderMode:n,markerId:o});return Object(i.isString)(a)?a:(this.richTextStyles[o]=a.style,a.content)},t.prototype.wrapRichTextStyle=function(t,e){var n={};Object(i.isArray)(e)?Object(i.each)(e,(function(t){return Object(i.extend)(n,t)})):Object(i.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 l})),n.d(e,"round3",(function(){return u})),n.d(e,"round4",(function(){return c})),n.d(e,"round1",(function(){return h})),n.d(e,"getMatrixStr",(function(){return d})),n.d(e,"TEXT_ALIGN_TO_ANCHOR",(function(){return f})),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(71),o=n(49),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 l(t){return t<1e-4&&t>-1e-4}function u(t){return a(1e3*t)/1e3}function c(t){return a(1e4*t)/1e4}function h(t){return a(10*t)/10}function d(t){return"matrix("+u(t[0])+","+u(t[1])+","+u(t[2])+","+u(t[3])+","+c(t[4])+","+c(t[5])+")"}var f={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),l=t.skewX||0,u=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+")"),(l||u)&&c.push("skew("+a(l*r.RADIAN_TO_DEGREE)+"deg, "+a(u*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(1868).Buffer)},function(t,e,n){"use strict";n.r(e),n.d(e,"getScaleExtent",(function(){return f})),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(535),o=n(209),a=n(211),s=n(255),l=n(35),u=n(662),c=n(1283),h=n(133),d=n(661);function f(t,e){var n=t.type,i=Object(d.ensureScaleRawExtentInfo)(t,e,t.getExtent()).calculate();t.setBlank(i.isBlank);var o=i.min,a=i.max,l=e.ecModel;if(l&&"time"===n){var u=Object(s.prepareLayoutBarSeries)("bar",l),c=!1;if(r.each(u,(function(t){c=c||t.getBaseAxis()===e.axis})),c){var h=Object(s.makeColumnLayout)(u),f=function(t,e,n,i){var o=n.axis.getExtent(),a=o[1]-o[0],l=Object(s.retrieveColumnLayout)(i,n.axis);if(void 0===l)return{min:t,max:e};var u=1/0;r.each(l,(function(t){u=Math.min(t.offset,u)}));var c=-1/0;r.each(l,(function(t){c=Math.max(t.offset+t.width,c)})),u=Math.abs(u),c=Math.abs(c);var h=u+c,d=e-t,f=d/(1-(u+c)/a)-d;return{min:t-=f*(u/h),max:e+=f*(c/h)}}(o,a,e,h);o=f.min,a=f.max}}return{extent:[o,a],fixMin:i.minFixed,fixMax:i.maxFixed}}function p(t,e){var n=e,r=f(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"),l="interval"===a||"time"===a;t.setExtent(i[0],i[1]),t.calcNiceExtent({splitNumber:o,fixMin:r.fixMin,fixMax:r.fixMax,minInterval:l?n.get("minInterval"):null,maxInterval:l?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 u.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,u,c,h,d,f,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=(u=w,c=v.get("rotate")||0,h=void 0,d=void 0,f=void 0,p=void 0,g=void 0,void 0,h=c*Math.PI/180,d=u.width,f=u.height,p=d*Math.abs(Math.cos(h))+Math.abs(f*Math.sin(h)),g=d*Math.abs(Math.sin(h))+Math.abs(f*Math.cos(h)),new l.default(u.x,u.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 l}));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 l(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 l=s.value;n.has(l)||(e.push(l),n.set(l,!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,"version",(function(){return g}));var r=n(312);n.d(e,"PathUtil",(function(){return r}));n(1015),n(1016);var i=n(610);n.d(e,"Event",(function(){return i.default}));var o=n(611);n.d(e,"Base",(function(){return o.default}));var a=n(1017);n.d(e,"AbstractCanvas",(function(){return a.default}));var s=n(1023);n.d(e,"AbstractGroup",(function(){return s.default}));var l=n(1024);n.d(e,"AbstractShape",(function(){return l.default}));var u=n(793);n.d(e,"getBBoxMethod",(function(){return u.getBBoxMethod})),n.d(e,"registerBBox",(function(){return u.registerBBox}));var c=n(391);n.d(e,"getTextHeight",(function(){return c.getTextHeight})),n.d(e,"assembleFont",(function(){return c.assembleFont}));var h=n(92);n.d(e,"isAllowCapture",(function(){return h.isAllowCapture}));var d=n(212);n.d(e,"multiplyVec2",(function(){return d.multiplyVec2})),n.d(e,"invert",(function(){return d.invert}));var f=n(615);n.d(e,"getOffScreenContext",(function(){return f.getOffScreenContext}));var p=n(613);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 u})),n.d(e,"getNativeEvent",(function(){return h})),n.d(e,"normalizeEvent",(function(){return d})),n.d(e,"addEventListener",(function(){return f})),n.d(e,"removeEventListener",(function(){return p})),n.d(e,"stop",(function(){return g})),n.d(e,"isMiddleOrRightButtonOnMouseUpDown",(function(){return v}));var r=n(129);n.d(e,"Dispatcher",(function(){return r.default}));var i=n(49),o=n(530),a=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,s=[],l=i.default.browser.firefox&&+i.default.browser.version.split(".")[0]<39;function u(t,e,n,r){return n=n||{},r?c(t,e,n):l&&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 l=t.getBoundingClientRect();return n.zrX=r-l.left,void(n.zrY=a-l.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 d(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&&u(t,i,e,n)}else{u(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 f(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 h}));var r=n(12),i=n.n(r),o=n(11),a=n.n(o),s=n(3),l=n.n(s),u=n(96),c=n.n(u),h=i()((function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};a()(this,t),l()(this,"type",void 0),c()(this,n),this.type=e}))},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 l})),n.d(e,"isPointInCoordinate",(function(){return u})),n.d(e,"getAngleByPoint",(function(){return c})),n.d(e,"getCoordinateClipCfg",(function(){return h})),n.d(e,"getCoordinateBBox",(function(){return d}));var r=n(69),i=n(78),o=n(116);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 l(t,e){var n=t.getCenter();return Math.sqrt(Math.pow(e.x-n.x,2)+Math.pow(e.y-n.y,2))}function u(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 l=t.startAngle,u=t.endAngle,c=t.getCenter(),h=t.getRadius();return{type:"path",startState:{path:Object(r.getSectorPath)(c.x,c.y,h+e,l,l)},endState:function(t){var n=(u-l)*t+l;return{path:Object(r.getSectorPath)(c.x,c.y,h+e,l,n)}},attrs:{path:Object(r.getSectorPath)(c.x,c.y,h+e,l,u)}}}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 d(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),l=Math.min(n.y,r.y);return o.BBox.fromRange(s-e,l-e,s+i+e,l+a+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 l(t,e,n,o){return{minX:r([t,n]),maxX:i([t,n]),minY:r([e,o]),maxY:i([e,o])}}function u(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 l})),n.d(e,"piMod",(function(){return u}))},function(t,e,n){"use strict";n.r(e);var r=n(1009);n.d(e,"addEventListener",(function(){return r.default}));var i=n(1010);n.d(e,"createDom",(function(){return i.default}));var o=n(608);n.d(e,"getHeight",(function(){return o.default}));var a=n(1011);n.d(e,"getOuterHeight",(function(){return a.default}));var s=n(1012);n.d(e,"getOuterWidth",(function(){return s.default}));var l=n(1013);n.d(e,"getRatio",(function(){return l.default}));var u=n(152);n.d(e,"getStyle",(function(){return u.default}));var c=n(609);n.d(e,"getWidth",(function(){return c.default}));var h=n(1014);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,l=!a&&!s,u={create:a?function(){return P(Object.create(null))}:s?function(){return P({__proto__:null})}:function(){return P({})},has:l?function(t,e){return n.call(t,e)}:function(t,e){return e in t},get:l?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,d=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,f=h||"function"!=typeof Set||"function"!=typeof Set.prototype.entries?function(){function t(){this._map=new d}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=u.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&&u.has(e,this._key)},t.prototype.get=function(t){var e=i(t,!1);return void 0!==e?u.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(u.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:u.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 d,p.set(t,r)}var i=r.get(e);if(x(i)){if(!n)return;i=new d,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=A(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 l=s.value;try{n[a]=l}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=A(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 M(t){return"function"==typeof t}function A(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(!M(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(!M(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 f,s=[],l=0,u=r;l<u.length;l++){var c=u[l];a.has(c)||(a.add(c),s.push(c))}for(var h=0,d=o;h<d.length;h++){c=d[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(416),n(322))},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(621),a=n(118),s=n(44),l=n(431),u=["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"),l=t.getChildren().slice(0);Object(i.each)(l,(function(t){var l=t.get("id"),h=r.getElementById(l),d=t.get("name");if(h)if(t.get("isComponent")){var f=t.get("component"),p=h.get("component"),g=Object(i.pick)(f.cfg,Object(i.difference)(Object(i.keys)(f.cfg),c));p.update(g),h.set("update_status","update")}else{var v=r.getReplaceAttrs(h,t);o&&a.update?r.updateAnimation(d,h,v,a.update):h.attr(v),t.isGroup()&&r.updateElements(t,h),Object(i.each)(u,(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"))(f=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(d,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 l=s.get("name");if(r&&o.leave){var u=Object(i.mix)({callback:function(){t.removeElement(s)}},o.leave);t.removeAnimation(l,s,u)}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}(l.default);e.default=h},function(t,e,n){"use strict";n.r(e),n.d(e,"LineAxis",(function(){return u})),n.d(e,"CircleAxis",(function(){return c})),n.d(e,"LineGrid",(function(){return h})),n.d(e,"CircleGrid",(function(){return d})),n.d(e,"CategoryLegend",(function(){return f})),n.d(e,"ContinuousLegend",(function(){return p})),n.d(e,"HtmlTooltip",(function(){return g}));var r=n(79);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(424);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(384);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(584);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(287);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 l=n(91);n.d(e,"HtmlComponent",(function(){return l.HtmlComponent})),n.d(e,"GroupComponent",(function(){return l.GroupComponent})),n.d(e,"Component",(function(){return l.Component})),n.d(e,"Crosshair",(function(){return l.Crosshair})),n.d(e,"Annotation",(function(){return l.Annotation})),n.d(e,"Slider",(function(){return l.Slider})),n.d(e,"Scrollbar",(function(){return l.Scrollbar}));var u=l.Axis.Line,c=l.Axis.Circle,h=l.Grid.Line,d=l.Grid.Circle,f=l.Legend.Category,p=l.Legend.Continuous,g=l.Tooltip.Html},function(t,e,n){"use strict";n.r(e),n.d(e,"SVGNS",(function(){return i})),n.d(e,"XLINKNS",(function(){return o})),n.d(e,"XMLNS",(function(){return a})),n.d(e,"XML_NAMESPACE",(function(){return s})),n.d(e,"createElement",(function(){return l})),n.d(e,"createVNode",(function(){return u})),n.d(e,"vNodeToString",(function(){return c})),n.d(e,"getCssString",(function(){return h})),n.d(e,"createBrushScope",(function(){return d})),n.d(e,"createSVGVNode",(function(){return f}));var r=n(0),i="http://www.w3.org/2000/svg",o="http://www.w3.org/1999/xlink",a="http://www.w3.org/2000/xmlns/",s="http://www.w3.org/XML/1998/namespace";function l(t){return document.createElementNS(i,t)}function u(t,e,n,r,i){return{tag:t,attrs:n||{},children:r,text:i,key:e}}function c(t,e){var n=(e=e||{}).newline?"\n":"";return function t(e){var i=e.children,o=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(" ")+">"}(o,e.attrs)+(e.text||"")+(i?""+n+Object(r.map)(i,(function(e){return t(e)})).join(n)+n:"")+("</"+o+">")}(t)}function h(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),l=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||l?["<![CDATA[",s,l,"]]>"].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 f(t,e,n,r){return u("svg","root",{width:t,height:e,xmlns:i,"xmlns:xlink":o,version:"1.1",baseProfile:"full",viewBox:!!r&&"0 0 "+t+" "+e},n)}},function(t,e,n){"use strict";n.r(e);var r=n(1039);n.d(e,"Annotation",(function(){return r}));var i=n(1050);n.d(e,"Axis",(function(){return i}));var o=n(1056);n.d(e,"Crosshair",(function(){return o}));var a=n(1060);n.d(e,"Grid",(function(){return a}));var s=n(1063);n.d(e,"Legend",(function(){return s}));var l=n(1066);n.d(e,"Tooltip",(function(){return l}));var u=n(431);n.d(e,"Component",(function(){return u.default}));var c=n(88);n.d(e,"GroupComponent",(function(){return c.default}));var h=n(351);n.d(e,"HtmlComponent",(function(){return h.default}));var d=n(1068);n.d(e,"Slider",(function(){return d.Slider}));var f=n(1070);n.d(e,"Scrollbar",(function(){return f.Scrollbar}));var p=n(1072);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(1073);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(621);n.d(e,"propagationDelegate",(function(){return m.propagationDelegate}));var y=n(123);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 d})),n.d(e,"default",(function(){return f}));var r=n(440),i=n.n(r),o=n(11),a=n.n(o),s=n(12),l=n.n(s),u=n(3),c=n.n(u),h=n(61),d=6371008.8,f=function(){function t(e,n){if(a()(this,t),c()(this,"lng",void 0),c()(this,"lat",void 0),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 l()(t,[{key:"wrap",value:function(){return new t(Object(h.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 d*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"===i()(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 l})),n.d(e,"QUANTILE_FIELD",(function(){return u})),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 d})),n.d(e,"QUANTILE_VIEW_ID",(function(){return f})),n.d(e,"MEDIAN_VIEW_ID",(function(){return p})),n.d(e,"DEFAULT_OPTIONS",(function(){return g}));var r=n(26),i=n(4),o="x",a="violinY",s="violinSize",l="minMax",u="quantile",c="median",h="violin_view",d="min_max_view",f="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(1025);n.d(e,"Quad",(function(){return r.default}));var i=n(1026);n.d(e,"Cubic",(function(){return i.default}));var o=n(1027);n.d(e,"Arc",(function(){return o.default}));var a=n(213);n.d(e,"Line",(function(){return a.default}));var s=n(1028);n.d(e,"Polygon",(function(){return s.default}));var l=n(614);n.d(e,"Polyline",(function(){return l.default}));var u=n(83);n.d(e,"Util",(function(){return u}))},function(t,e,n){var r=n(1964),i=n(2020)((function(t,e,n){r(t,e,n)}));t.exports=i},function(t,e,n){"use strict";n.r(e),n.d(e,"DEFAULT_COMMON_STYLE",(function(){return u})),n.d(e,"DEFAULT_COMMON_ANIMATION_PROPS",(function(){return c}));var r=n(59),i=n(650),o=n(35),a=n(0),s=n(100),l="__zr_style_"+Math.round(10*Math.random()),u={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}};u[l]=!0;var h=["z","z2","invisible"],d=["invisible"],f=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 l=this.dirtyRectTolerance;t.isZero()||(t.x=Math.floor(t.x-l),t.y=Math.floor(t.y-l),t.width=Math.ceil(t.width+1+2*l),t.height=Math.ceil(t.height+1+2*l))}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)(u,t)},e.prototype.useStyle=function(t){t[l]||(t=this.createStyle(t)),this.__inHover?this.__hoverStyle=t:this.style=t,this.dirtyStyle()},e.prototype.isStyleObject=function(t){return t[l]},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 l,u=!(n&&i);if(n&&n.style?o?i?l=n.style:(l=this._mergeStyle(this.createStyle(),r.style),this._mergeStyle(l,n.style)):(l=this._mergeStyle(this.createStyle(),i?this.style:r.style),this._mergeStyle(l,n.style)):u&&(l=r.style),l)if(o){var c=this.style;if(this.style=this.createStyle(u?{}:c),u)for(var f=Object(a.keys)(c),p=0;p<f.length;p++){(v=f[p])in l&&(l[v]=l[v],this.style[v]=c[v])}var g=Object(a.keys)(l);for(p=0;p<g.length;p++){var v=g[p];this.style[v]=this.style[v]}this._transitionState(e,{style:l},s,this.getAnimationStyleProps())}else this.useStyle(l);var m=this.__inHover?d:h;for(p=0;p<m.length;p++){v=m[p];n&&null!=n[v]?this[v]=n[v]:u&&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=f},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 l})),n.d(e,"platformApi",(function(){return u})),n.d(e,"setPlatformAPI",(function(){return c}));var r=12,i="sans-serif",o=r+"px "+i;var a,s,l=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"),u={createCanvas:function(){return"undefined"!=typeof document&&document.createElement("canvas")},measureText:function(t,e){if(!a){var n=u.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 d=0;d<t.length;d++){var f=l[t[d]];h+=null==f?c:f*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 u)t[e]&&(u[e]=t[e])}},function(t,e){function n(t,e,n,r,i,o,a){try{var s=t[o](a),l=s.value}catch(t){return void n(t)}s.done?e(l):Promise.resolve(l).then(r,i)}t.exports=function(t){return function(){var e=this,r=arguments;return new Promise((function(i,o){var a=t.apply(e,r);function s(t){n(a,i,o,s,l,"next",t)}function l(t){n(a,i,o,s,l,"throw",t)}s(void 0)}))}},t.exports.__esModule=!0,t.exports.default=t.exports},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 l})),n.d(e,"MINUTE",(function(){return u})),n.d(e,"HOUR",(function(){return c})),n.d(e,"DAY",(function(){return h})),n.d(e,"MONTH",(function(){return d})),n.d(e,"YEAR",(function(){return f})),n.d(e,"getTickInterval",(function(){return g}));var r=n(1),i=n(691),o=n(1504);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 l=1e3,u=60*l,c=60*u,h=24*c,d=31*h,f=365*h,p=[["HH:mm:ss",l],["HH:mm:ss",10*l],["HH:mm:ss",30*l],["HH:mm",u],["HH:mm",10*u],["HH:mm",30*u],["HH",c],["HH",6*c],["HH",12*c],["YYYY-MM-DD",h],["YYYY-MM-DD",4*h],["YYYY-WW",7*h],["YYYY-MM",d],["YYYY-MM",4*d],["YYYY-MM",6*d],["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 l}));var r=n(2),i=n(1),o=n(4);function a(t,e){var n=t.type,o=t.xField,a=t.yField,s=t.colorField,l=t.shapeField,u=t.sizeField,c=t.styleField,h=t.rawFields,d=void 0===h?[]:h,f=[];if("color"===e)f=Object(r.__spreadArrays)([s||o],d);else if("shape"===e)f=Object(r.__spreadArrays)([l||o],d);else if("size"===e)f=Object(r.__spreadArrays)([u||o],d);else{f=Object(r.__spreadArrays)([o,a,s,l,u,c],d);var p=["x","y","color","shape","size","style"].indexOf(e),g=f[p];f.splice(p,1),f.unshift(g)}var v=Object(i.uniq)(f.filter((function(t){return!!t}))),m="line"===n&&[o,a].includes(v.join("*"))?"":v.join("*");return{mappingFields:v,tileMappingField:m}}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 l(t){var e=t.chart,n=t.options,l=n.type,u=n.args,c=n.mapping,h=n.xField,d=n.yField,f=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[l](u).position(h+"*"+d);if(Object(i.isString)(_))f?C.color(f,_):C.color(_);else if(Object(i.isFunction)(_)){var E=a(n,"color"),T=E.mappingFields,M=E.tileMappingField;C.color(M,s(T,_))}else f&&C.color(f,_);if(Object(i.isString)(x))p?C.shape(p,[x]):C.shape(x);else if(Object(i.isFunction)(x)){var A=a(n,"shape");T=A.mappingFields,M=A.tileMappingField;C.shape(M,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,M=I.tileMappingField;C.size(M,s(T,w))}else g&&C.size(g,w);if(Object(i.isFunction)(O)){var j=a(n,"style");T=j.mappingFields,M=j.tileMappingField;C.style(M,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||[d],callback:k,cfg:Object(o.transformLabel)(L)})}return y&&C.state(y),b&&C.customInfo(b),[h,d].filter((function(t){return t!==f})).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 l})),n.d(e,"inheritDefaultOption",(function(){return u}));var r=n(0),i=n(117),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 l(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),l=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=l.length,0===s.entryCount&&o.push(a),r.each(l,(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),l=s.graph,u=s.noEntryList,c={};for(r.each(t,(function(t){c[t]=!0}));u.length;){var h=u.pop(),d=l[h],f=!!c[h];f&&(o.call(a,h,d.originalDeps.slice()),delete c[h]),r.each(d.successor,f?g:p)}r.each(c,(function(){throw new Error("")}))}function p(t){l[t].entryCount--,0===l[t].entryCount&&u.push(t)}function g(t){c[t]=!0,p(t)}}}function u(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 l}));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"}),l=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 l}));var r=n(59),i=n(97),o=n(35),a=n(0),s=Object(a.defaults)({x:0,y:0},i.DEFAULT_COMMON_STYLE),l={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 u=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 l},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);u.prototype.type="image",e.default=u},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(16);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(1030);n.d(e,"ext",(function(){return i}))},function(t,e,n){"use strict";n.r(e);var r,i,o,a,s,l,u,c=n(0),h=n(57),d=n(169),f=n(171),p=n(331),g=n(477),v=n(29),m=n(10),y=n(32),b=n(140),_=n(394),x=n(339),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,l={},u=0;u<n.length;u++){var h=n[u],d=c.isString(h)?new g.default({name:h}):h instanceof g.default?h:new g.default(h),f=d.name;d.type=d.type||"float",d.coordDim||(d.coordDim=f,d.coordDimIndex=0);var p=d.otherDims=d.otherDims||{};o.push(f),i[f]=d,null!=l[f]&&(s=!0),d.createInvertedIndices&&(a[f]=[]),0===p.itemName&&(this._nameDimIdx=u),0===p.itemId&&(this._idDimIdx=u),r&&(d.storeDimIndex=u)}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 f.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&&u(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 l=n.getItem(s,a);if(!this.hasItemOption&&Object(m.isDataItemOption)(l)&&(this.hasItemOption=!0),l){var c=l.name;null==i[s]&&null!=c&&(i[s]=Object(m.convertOptionIdName)(c,null));var h=l.id;null==o[s]&&null!=h&&(o[s]=Object(m.convertOptionIdName)(h,null))}}if(this._shouldMakeIdFromName())for(s=t;s<e;s++)u(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=l(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=l(this);return i._store=this._store.downSample(this._getStoreDimIndex(t),e,n,r),i},t.prototype.lttbDownSample=function(t,e){var n=l(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 d.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},l=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(u=function(t,e){var n=t._nameList,r=t._idList,i=t._nameDimIdx,a=t._idDimIdx,s=n[e],l=r[e];if(null==s&&null!=i&&(n[e]=s=o(t,i,e)),null==l&&null!=a&&(r[e]=l=o(t,a,e)),null==l&&null!=s){var u=t._nameRepeatCount,c=u[s]=(u[s]||0)+1;l=s,c>1&&(l+="__ec__"+c),r[e]=l}})),t}();e.default=T},function(t,e,n){"use strict";function r(t,e){return t.views.find((function(t){return t.id===e}))}function i(t){var e=t.parent;return e?e.views:[]}function o(t){return i(t).filter((function(e){return e!==t}))}n.r(e),n.d(e,"findViewById",(function(){return r})),n.d(e,"getViews",(function(){return i})),n.d(e,"getSiblingViews",(function(){return o}))},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 l}));var r=n(1),i=n(58);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 l(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){"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 l})),n.d(e,"fixExtent",(function(){return c})),n.d(e,"contain",(function(){return h})),n.d(e,"normalize",(function(){return d})),n.d(e,"scale",(function(){return f}));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 u=o.intervalPrecision=l(s);return c(o.niceTickExtent=[Object(r.round)(Math.ceil(t[0]/s)*s,u),Object(r.round)(Math.floor(t[1]/s)*s,u)],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 l(t){return Object(r.getPrecision)(t)+2}function u(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]),u(t,0,e),u(t,1,e),t[0]>t[1]&&(t[0]=t[1])}function h(t,e){return t>=e[0]&&t<=e[1]}function d(t,e){return e[1]===e[0]?.5:(t-e[0])/(e[1]-e[0])}function f(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 l})),n.d(e,"getAxisRegion",(function(){return u})),n.d(e,"getAxisFactor",(function(){return c})),n.d(e,"isVertical",(function(){return h})),n.d(e,"getAxisFactorByRegion",(function(){return d})),n.d(e,"getAxisThemeCfg",(function(){return f})),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(155),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 l(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 u(t,e){var n={start:{x:0,y:0},end:{x:0,y:0}};t.isRect?n=s(e):t.isPolar&&(n=l(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 d(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 f(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],l=[1,0],u=o.y>r.y?a.vec2.angle(s,l):-1*a.vec2.angle(s,l),c=u+(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:u,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(131);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 l}));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 l(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 l})),n.d(e,"mountExtend",(function(){return u})),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 l(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=d,e.superApply=f,e.superClass=o,e}}function u(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 d(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 f(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 u})),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 l(t,e){var n=[0,0];return r.vec2.transformMat3(n,e,t),n}function u(t,e){var n=l(t,[e.minX,e.minY]),r=l(t,[e.maxX,e.minY]),i=l(t,[e.minX,e.maxY]),o=l(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]),u=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:u,minX:a,minY:u,maxX:s,maxY:c,width:s-a,height:c-u}}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 d})),n.d(e,"copyTransform",(function(){return f}));var r=n(41),i=n(20),o=r.identity;function a(t){return t>5e-5||t<-5e-5}var s=[],l=[],u=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(l,t.invTransform,e),e=l);var n=this.originX,i=this.originY;(n||i)&&(u[4]=n,u[5]=i,r.mul(l,e,u),l[4]-=n,l[5]-=i,e=l),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){f(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,l=t.anchorY,u=t.rotation||0,c=t.x,h=t.y,d=t.skewX?Math.tan(t.skewX):0,f=t.skewY?Math.tan(-t.skewY):0;if(n||i||s||l){var p=n+s,g=i+l;e[4]=-p*o-d*g*a,e[5]=-g*a-f*p*o}else e[4]=e[5]=0;return e[0]=o,e[3]=a,e[1]=f*o,e[2]=d*a,u&&r.rotate(e,e,u),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}(),d=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function f(t,e){for(var n=0;n<d.length;n++){var r=d[n];t[r]=e[r]}}e.default=h},function(t,e,n){"use strict";n.r(e),n.d(e,"isMiniAli",(function(){return M})),n.d(e,"isWeChatMiniProgram",(function(){return A})),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(559),i=n(1699),o=n(560),a=n(258),s=n(732),l=n(299),u=n(472),c=n(1700),h=n(342),d=n(735),f=n(734),p=n(736),g=n(1701),v=n(737),m=n(1702),y=n(733),b=n(1703),_=n(878),x=n(410),w=n(1704),O=n(1705),S=n(1706),C=n(879),E=n(216),T=n(1164);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 M="undefined"!=typeof my&&!!my&&"function"==typeof my.showToast&&!0!==my.isFRM,A="undefined"!=typeof wx&&null!==wx&&(void 0!==wx.request||void 0!==wx.miniProgram),I=M||A,j={atob:r.atob,btoa:r.btoa,devicePixelRatio:o.default,Blob:i.Blob,document:a.$document,Element:s.Element,Event:l.Event,EventTarget:u.default,HTMLCanvasElement:c.HTMLCanvasElement,HTMLElement:h.HTMLElement,HTMLMediaElement:d.HTMLMediaElement,HTMLVideoElement:f.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 l}));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 l(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,"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 l})),n.d(e,"NAME_CLASS",(function(){return u})),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",l="g2-tooltip-value",u="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(79),o=n(188),a=n(112),s=n(399),l=n(58),u=n(353),c=n(439),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 u},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,l=this.getHitLineWidth(),u=l/2,c=r-u,h=o-u;return{x:c,y:h,minX:c,minY:h,maxX:r+a+u,maxY:o+s+u,width:a+l,height:s+l}}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,u=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(l.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),u&&h.setAttribute(l.SVG_ATTR_MAP.strokeOpacity,u),c&&h.setAttribute(l.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(l.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(l.SVG_ATTR_MAP[e],"url(#"+i+")")}else r.setAttribute(l.SVG_ATTR_MAP[e],n);else r.setAttribute(l.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,l=r.shadowColor;(i||a||s||l)&&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 $})),n.d(e,"init",(function(){return Dt})),n.d(e,"connect",(function(){return Rt})),n.d(e,"disConnect",(function(){return Nt})),n.d(e,"disconnect",(function(){return Ft})),n.d(e,"dispose",(function(){return Bt})),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 $t})),n.d(e,"registerAction",(function(){return Xt})),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 Jt})),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(389),o=n(0),a=n(49),s=n(475),l=n(129),u=n(654),c=n(656),h=n(273),d=n(1273),f=n(826),p=n(1278),g=n(54),v=n(62),m=n(53),y=n(70),b=n(106),_=n(23),x=n(36),w=n(32),O=n(13),S=n(10),C=n(130),E=n(747),T=n(1279),M=n(828),A=n(1280),I=n(1281),j=n(117),k=n(1257),P=n(830),L=n(185),D=n(37),R=n(442),N=n(659),F=n(247),B=n(338),z=n(1276),V=n(264),U=n(98),G=n(533);n.d(e,"registerLocale",(function(){return F.registerLocale}));var H="undefined"!=typeof window,W="5.3.2",Y={zrender:"5.3.1"},$={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}},X="__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 J(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 J(this,t,e)}}function J(t,e,n){return n[0]=n[0]&&n[0].toLowerCase(),l.default.prototype[e].apply(t,n)}var Q,tt,et,nt,rt,it,ot,at,st,lt,ut,ct,ht,dt,ft,pt,gt,vt,mt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r.__extends)(e,t),e}(l.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=Mt[n]),a._dom=e;var l=a._zr=i.init(e,{renderer:r.renderer||"canvas",devicePixelRatio:r.devicePixelRatio,width:r.width,height:r.height,ssr:r.ssr,useDirtyRect:null!=r.useDirtyRect&&r.useDirtyRect});a._ssr=r.ssr,a._throttledZrFlush=Object(C.throttle)(Object(o.bind)(l.flush,l),17),(n=Object(o.clone)(n))&&Object(f.default)(n,!0),a._theme=n,a._locale=Object(F.createLocaleObject)(r.locale||F.SYSTEM_LANG),a._coordSysMgr=new h.default;var u=a._api=ft(a);function c(t,e){return t.__prio-e.__prio}return Object(s.default)(Tt,c),Object(s.default)(Ct,c),a._scheduler=new M.default(a,u,Ct,Tt),a._messageCenter=new mt,a._initEvents(),a.resize=Object(o.bind)(a.resize,a),l.animation.on("frame",a._onframe,a),lt(l,a),ut(l,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[X]){var e=this[X].silent;this.__flagInMainProcess=!0;try{Q(this),nt.update.call(this,null,this[X].updateParams)}catch(t){throw this.__flagInMainProcess=!1,this[X]=null,t}this._zr.flush(),this.__flagInMainProcess=!1,this[X]=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),dt(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 d.default(this._api),l=this._theme,c=this._model=new u.default;c.scheduler=this._scheduler,c.ssr=this._ssr,c.init(null,null,null,l,this._locale,s)}this._model.setOption(t,{replaceMerge:i},Et);var h={seriesTransition:a,optionChanged:!0};if(n)this[X]={silent:r,updateParams:h},this.__flagInMainProcess=!1,this.getZr().wakeUp();else{try{Q(this),nt.update.call(this,null,h)}catch(t){throw this[X]=null,this.__flagInMainProcess=!1,t}this._ssr||this._zr.flush(),this[X]=null,this.__flagInMainProcess=!1,at.call(this,r),st.call(this,r)}}},e.prototype.setTheme=function(){Object(D.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,l=1/0,u=-1/0,c=-1/0,h=[],d=t&&t.pixelRatio||this.getDevicePixelRatio();Object(o.each)(It,(function(i,d){if(i.group===n){var f=e?i.getZr().painter.getSvgDom().innerHTML:i.renderToCanvas(Object(o.clone)(t)),p=i.getDom().getBoundingClientRect();s=r(p.left,s),l=r(p.top,l),u=a(p.right,u),c=a(p.bottom,c),h.push({dom:f,left:p.left,top:p.top})}}));var f=(u*=d)-(s*=d),p=(c*=d)-(l*=d),g=U.platformApi.createCanvas(),v=i.init(g,{renderer:e?"svg":"canvas"});if(v.resize({width:f,height:p}),e){var m="";return Object(o.each)(h,(function(t){var e=t.left-s,n=t.top-l;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:f,height:p},style:{fill:t.connectedBackgroundColor}})),Object(o.each)(h,(function(t){var e=new b.default({style:{x:t.left*d-s,y:t.top*d-l,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(B.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,l=r.componentIndex;"markLine"!==s&&"markPoint"!==s&&"markArea"!==s||(s="series",l=r.seriesIndex);var u=s&&null!=l&&i.getComponent(s,l),c=u&&t["series"===u.mainType?"_chartsMap":"_componentsMap"][u.__viewId];0,r.event=n,r.type=e,t._$eventProcessor.eventInfo={targetEl:a,packedEvent:r,model:u,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(R.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[X]&&(null==r&&(r=this[X].silent),n=!0,this[X]=null),this.__flagInMainProcess=!0;try{n&&Q(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(),At[t]){var n=At[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(),l=0;l<s.length;l++)i=Math.max(t(s[l],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 u=e.textGuideLineConfig;a.z=n,a.zlevel=r,isFinite(i)&&(a.z2=i+(u&&u.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 l(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)}}))}Q=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,l=0;l<i.length;l++)i[l].__alive=!1;function u(t){var l=t.__requireNewView;t.__requireNewView=!1;var u="_ec_"+t.id+"_"+t.type,c=!l&&o[u];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[u]=c,i.push(c),a.add(c.group)}t.__viewId=c.__id=u,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&&u(e)})):n.eachSeries(u);for(l=0;l<i.length;){var c=i[l];c.__alive?l++:(!e&&c.renderTask.dispose(),a.remove(c.group),c.dispose(n,s),i.splice(l,1),o[c.__id]===c&&delete o[c.__id],c.__id=c.group.__ecComponentInfo=null)}},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 l={mainType:r,query:s};i&&(l.subType=i);var u,c=n.excludeSeriesId;null!=c&&(u=Object(o.createHashMap)(),Object(o.each)(S.normalizeToArray(c),(function(t){var e=S.convertOptionIdName(t,null);null!=e&&u.set(e,!0)}))),a&&a.eachComponent(l,(function(e){if(!(u&&null!==u.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(l,(function(e){u&&null!==u.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){Q(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 l=r.get("backgroundColor")||"transparent",u=r.get("darkMode");o.setBackgroundColor(l),null!=u&&"auto"!==u&&o.setDarkMode(u),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 l=s.updateTransform(o,r,i,e);l&&l.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}),dt(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),l=0;l<a.length;l++){var u=a[l];if(u[e]&&null!=(i=u[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],l=s.actionInfo,u=(l.update||"update").split(":"),c=u.pop(),h=null!=u[0]&&Object(j.parseClassType)(u[0]);this.__flagInMainProcess=!0;var d=[t],f=!1;t.batch&&(f=!0,d=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)(d,(function(e){if((p=(p=s.action(e,n._model,n._api))||Object(o.extend)({},e)).type=l.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[X]?(Q(this),nt.update.call(this,t),this[X]=null):nt[c].call(this,t)}catch(t){throw this.__flagInMainProcess=!1,t}if(p=f?{type:l.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")},lt=function(t,e){t.on("rendered",(function(n){e.trigger("rendered",n),!t.animation.isFinished()||e[X]||e._scheduler.unfinished||e._pendingActions.length||e.trigger("finished")}))},ut=function(t,e){t.on("mouseover",(function(t){var n=t.target,r=Object(B.findEventDispatcher)(n,O.isHighDownDispatcher);r&&(Object(O.handleGlobalMouseOverForHighDown)(r,t,e._api),gt(e))})).on("mouseout",(function(t){var n=t.target,r=Object(B.findEventDispatcher)(n,O.isHighDownDispatcher);r&&(Object(O.handleGlobalMouseOutForHighDown)(r,t,e._api),gt(e))})).on("click",(function(t){var n=t.target,r=Object(B.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,l=e.concat(n);Object(s.default)(l,(function(t,e){return t.zlevel===e.zlevel?t.z-e.z:t.zlevel-e.zlevel})),Object(o.each)(l,(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})),dt(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,u){Object(o.each)(u||t._componentsViews,(function(t){var o=t.__model;i(o,t),t.render(o,e,r,a),n(o,t),l(o,t)}))},dt=function(t,e,r,s,u,c){var h=t._scheduler;u=Object(o.extend)(u||{},{updatedSeries:e.getSeries()}),V.default.trigger("series:beforeupdate",e,r,u);var d=!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))&&(d=!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=d||h.unfinished,V.default.trigger("series:layoutlabels",e,r,u),V.default.trigger("series:transition",e,r,u),e.eachSeries((function(e){var r=t._chartsMap[e.__viewId];n(e,r),l(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,u)},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)},ft=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}(l.default),_t=bt.prototype;_t.on=Z("on"),_t.off=Z("off"),_t.one=function(t,e,n){var r=this;Object(D.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=[],Mt={},At={},It={},jt={},kt=+new Date-0,Pt=+new Date-0,Lt="_echarts_instance_";function Dt(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 Rt(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 Ft=Nt;function Bt(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){Mt[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){$t("afterinit",t)}function Yt(t){$t("afterupdate",t)}function $t(t,e){V.default.on(t,e)}function Xt(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 Jt(t,e){te(Tt,t,e,3e3,"visual")}var Qt=[];function te(t,e,n,r,i){if((Object(o.isFunction)(e)||Object(o.isObject)(e))&&(n=e,e=r),!(Object(o.indexOf)(Qt,n)>=0)){Qt.push(n);var a=M.default.wrapStageHandler(n,i);a.__prio=e,a.__raw=n,t.push(a)}}function ee(t,e){At[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;Jt(2e3,E.seriesStyleTask),Jt(4500,E.dataStyleTask),Jt(4500,E.dataColorPaletteTask),Jt(2e3,P.seriesSymbolTask),Jt(4500,P.dataSymbolTask),Jt(7e3,z.default),Gt(f.default),Ht(900,p.default),ee("default",T.default),Xt({type:O.HIGHLIGHT_ACTION_TYPE,event:O.HIGHLIGHT_ACTION_TYPE,update:O.HIGHLIGHT_ACTION_TYPE},o.noop),Xt({type:O.DOWNPLAY_ACTION_TYPE,event:O.DOWNPLAY_ACTION_TYPE,update:O.DOWNPLAY_ACTION_TYPE},o.noop),Xt({type:O.SELECT_ACTION_TYPE,event:O.SELECT_ACTION_TYPE,update:O.SELECT_ACTION_TYPE},o.noop),Xt({type:O.UNSELECT_ACTION_TYPE,event:O.UNSELECT_ACTION_TYPE,update:O.UNSELECT_ACTION_TYPE},o.noop),Xt({type:O.TOGGLE_SELECT_ACTION_TYPE,event:O.TOGGLE_SELECT_ACTION_TYPE,update:O.TOGGLE_SELECT_ACTION_TYPE},o.noop),Ut("light",A.default),Ut("dark",I.default);var ae={}},function(t,e,n){"use strict";n.r(e);var r=n(0),i=n(71),o=n(6),a=(n(37),r.each),s=r.isObject,l=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?(u(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):u(o,!0):(r.assert("linear"!==n||o.dataExtent),u(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 l=e[a].value;if(null!=l){if(l===t||r.isString(l)&&l===t+"")return a;n&&d(l,a)}}for(a=0,s=e.length;a<s;a++){var u=e[a],c=u.interval,h=u.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&&d(c[0],a),n&&d(c[1],a)}}if(n)return t===1/0?e.length-1:t===-1/0?0:i;function d(e,n){var r=Math.abs(e-t);r<o&&(o=r,i=n)}},t.visualHandlers={color:{applyVisual:d("color"),getColorMapper:function(){var t=this.option;return r.bind("category"===t.mappingMethod?function(t,e){return!e&&(t=this._normalizeData(t)),f.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:f,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:d("decal"),_normalizedToVisual:{linear:null,category:f,piecewise:null,fixed:null}},opacity:{applyVisual:d("opacity"),_normalizedToVisual:g([0,1])},liftZ:{applyVisual:d("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:f,piecewise:function(t,e){var n=v.call(this,e);return null==n&&(n=h.call(this,t)),n},fixed:p}},symbolSize:{applyVisual:d("symbolSize"),_normalizedToVisual:g([0,1])}},t}();function u(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 d(t){return function(e,n,r){r(t,this.mapValueToVisual(e))}}function f(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:f,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[l.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=l.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=l},function(t,e,n){"use strict";n.r(e);var r=n(17),i=n(65);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,l=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return s=t.done,t},e:function(t){l=!0,o=t},f:function(){try{s||null==n.return||n.return()}finally{if(l)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 l=r.$window.document&&r.$window.document.documentElement.style;function u(t){if(!l)return t[0];var e,n=o(t);try{for(n.s();!(e=n.n()).done;){var r=e.value;if(r in l)return r}}catch(t){n.e(t)}finally{n.f()}return t[0]}var c,h=u(["userSelect","MozUserSelect","WebkitUserSelect","msUserSelect"]);s.disableDrag=function(){l&&h&&(c=l[h],l[h]="none")},s.enableDrag=function(){l&&h&&(l[h]=c)};var d=u(["transform","WebkitTransform"]);s.setTransform=function(t,e){t.style[d]=e};var f=!1;try{var p=Object.defineProperty({},"passive",{get:function(){f=!0}});r.$window.addEventListener("test",p,p),r.$window.removeEventListener("test",p,p)}catch(t){f=!1}s.addEventListener=function(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};"passive"in r&&f?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&&f?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 l=n.value;a.push(new i.default(l.clientX-t.left,l.clientY-t.top))}}catch(t){s.e(t)}finally{s.f()}return a}var u,c=t.getBoundingClientRect(),h=[],d=o(e);try{for(d.s();!(u=d.n()).done;){var f=u.value;h.push(new i.default(f.clientX-c.left-t.clientLeft,f.clientY-c.top-t.clientTop))}}catch(t){d.e(t)}finally{d.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},l=i[t].length-1,u=i[t][l];return u&&u.callAtLast?i[t].splice(l,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 l=r[s];if(!i||!i.filter||null==l.query||i.filter(t,l.query))switch(o){case 0:l.h.call(l.ctx);break;case 1:l.h.call(l.ctx,e[0]);break;case 2:l.h.call(l.ctx,e[0],e[1]);break;default:l.h.apply(l.ctx,e)}}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,l=0;l<s;l++){var u=r[l];if(!i||!i.filter||null==u.query||i.filter(t,u.query))switch(o){case 0:u.h.call(a);break;case 1:u.h.call(a,e[0]);break;case 2:u.h.call(a,e[0],e[1]);break;default:u.h.apply(a,e.slice(1,o-1))}}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,l=0,u=0,c=null;function h(){u=(new Date).getTime(),c=null,t.apply(o,a||[])}e=e||0;var d=function(){for(var t=[],d=0;d<arguments.length;d++)t[d]=arguments[d];r=(new Date).getTime(),o=this,a=t;var f=s||e,p=s||n;s=null,i=r-(p?l:u)-f,clearTimeout(c),p?c=setTimeout(h,f):i>=0?h():c=setTimeout(h,-i),l=r};return d.clear=function(){c&&(clearTimeout(c),c=null)},d.debounceNextCall=function(t){s=t},d}function a(t,e,n,a){var s=t[e];if(s){var l=s[r]||s,u=s["\0__throttleType"];if(s[i]!==n||u!==a){if(null==n||!a)return t[e]=l;(s=t[e]=o(l,n,"debounce"===a))[r]=l,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);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(79),o=n(56),a=n(136),s=n(270),l=n(438),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),{lineWidth:1,lineAppendWidth:0,strokeOpacity:1,fillOpacity:1})},e.prototype.getShapeBase=function(){return s},e.prototype.getGroupBase=function(){return l.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,l=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:l}},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=u},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(339);function o(t,e,n){var o,a,s,l=(n=n||{}).byIndex,u=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,d,f,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&&(l||c||!t.ordinalMeta||(c=t),h||"ordinal"===t.type||"time"===t.type||u&&u!==t.coordDim||(h=t))})),!h||l||c||(l=!0),h){d="__\0ecstackresult_"+t.id,f="__\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:d,coordDim:g,coordDimIndex:m,type:v,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:o.length},b={name:f,coordDim:f,coordDimIndex:m+1,type:v,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:o.length+1};a?(s&&(y.storeDimIndex=s.ensureCalculationDimension(f,v),b.storeDimIndex=s.ensureCalculationDimension(d,v)),a.appendCalculationDimension(y),a.appendCalculationDimension(b)):(o.push(y),o.push(b))}return{stackedDimension:h&&h.name,stackedByDimension:c&&c.name,isStackedByIndex:l,stackedOverDimension:f,stackResultDimension:d}}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 l})),n.d(e,"identity",(function(){return u})),n.d(e,"transpose",(function(){return c})),n.d(e,"invert",(function(){return h})),n.d(e,"adjoint",(function(){return d})),n.d(e,"determinant",(function(){return f})),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 M})),n.d(e,"getTranslation",(function(){return A})),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 D})),n.d(e,"perspectiveNO",(function(){return R})),n.d(e,"perspective",(function(){return N})),n.d(e,"perspectiveZO",(function(){return F})),n.d(e,"perspectiveFromFieldOfView",(function(){return B})),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 $})),n.d(e,"subtract",(function(){return X})),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 J})),n.d(e,"mul",(function(){return Q})),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,l,u,c,h,d,f,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]=l,m[8]=u,m[9]=c,m[10]=h,m[11]=d,m[12]=f,m[13]=p,m[14]=g,m[15]=v,m}function l(t,e,n,r,i,o,a,s,l,u,c,h,d,f,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]=l,t[8]=u,t[9]=c,t[10]=h,t[11]=d,t[12]=f,t[13]=p,t[14]=g,t[15]=v,t}function u(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],l=e[6],u=e[7],c=e[8],h=e[9],d=e[10],f=e[11],p=e[12],g=e[13],v=e[14],m=e[15],y=n*s-r*a,b=n*l-i*a,_=n*u-o*a,x=r*l-i*s,w=r*u-o*s,O=i*u-o*l,S=c*g-h*p,C=c*v-d*p,E=c*m-f*p,T=h*v-d*g,M=h*m-f*g,A=d*m-f*v,I=y*A-b*M+_*T+x*E-w*C+O*S;return I?(I=1/I,t[0]=(s*A-l*M+u*T)*I,t[1]=(i*M-r*A-o*T)*I,t[2]=(g*O-v*w+m*x)*I,t[3]=(d*w-h*O-f*x)*I,t[4]=(l*E-a*A-u*C)*I,t[5]=(n*A-i*E+o*C)*I,t[6]=(v*_-p*O-m*b)*I,t[7]=(c*O-d*_+f*b)*I,t[8]=(a*M-s*E+u*S)*I,t[9]=(r*E-n*M-o*S)*I,t[10]=(p*w-g*_+m*y)*I,t[11]=(h*_-c*w-f*y)*I,t[12]=(s*C-a*T-l*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+d*y)*I,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],l=e[6],u=e[7],c=e[8],h=e[9],d=e[10],f=e[11],p=e[12],g=e[13],v=e[14],m=e[15];return t[0]=s*(d*m-f*v)-h*(l*m-u*v)+g*(l*f-u*d),t[1]=-(r*(d*m-f*v)-h*(i*m-o*v)+g*(i*f-o*d)),t[2]=r*(l*m-u*v)-s*(i*m-o*v)+g*(i*u-o*l),t[3]=-(r*(l*f-u*d)-s*(i*f-o*d)+h*(i*u-o*l)),t[4]=-(a*(d*m-f*v)-c*(l*m-u*v)+p*(l*f-u*d)),t[5]=n*(d*m-f*v)-c*(i*m-o*v)+p*(i*f-o*d),t[6]=-(n*(l*m-u*v)-a*(i*m-o*v)+p*(i*u-o*l)),t[7]=n*(l*f-u*d)-a*(i*f-o*d)+c*(i*u-o*l),t[8]=a*(h*m-f*g)-c*(s*m-u*g)+p*(s*f-u*h),t[9]=-(n*(h*m-f*g)-c*(r*m-o*g)+p*(r*f-o*h)),t[10]=n*(s*m-u*g)-a*(r*m-o*g)+p*(r*u-o*s),t[11]=-(n*(s*f-u*h)-a*(r*f-o*h)+c*(r*u-o*s)),t[12]=-(a*(h*v-d*g)-c*(s*v-l*g)+p*(s*d-l*h)),t[13]=n*(h*v-d*g)-c*(r*v-i*g)+p*(r*d-i*h),t[14]=-(n*(s*v-l*g)-a*(r*v-i*g)+p*(r*l-i*s)),t[15]=n*(s*d-l*h)-a*(r*d-i*h)+c*(r*l-i*s),t}function f(t){var e=t[0],n=t[1],r=t[2],i=t[3],o=t[4],a=t[5],s=t[6],l=t[7],u=t[8],c=t[9],h=t[10],d=t[11],f=t[12],p=t[13],g=t[14],v=t[15];return(e*a-n*o)*(h*v-d*g)-(e*s-r*o)*(c*v-d*p)+(e*l-i*o)*(c*g-h*p)+(n*s-r*a)*(u*v-d*f)-(n*l-i*a)*(u*g-h*f)+(r*l-i*s)*(u*p-c*f)}function p(t,e,n){var r=e[0],i=e[1],o=e[2],a=e[3],s=e[4],l=e[5],u=e[6],c=e[7],h=e[8],d=e[9],f=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+_*l+x*d+w*v,t[2]=b*o+_*u+x*f+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+_*l+x*d+w*v,t[6]=b*o+_*u+x*f+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+_*l+x*d+w*v,t[10]=b*o+_*u+x*f+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+_*l+x*d+w*v,t[14]=b*o+_*u+x*f+w*m,t[15]=b*a+_*c+x*p+w*y,t}function g(t,e,n){var r,i,o,a,s,l,u,c,h,d,f,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],l=e[5],u=e[6],c=e[7],h=e[8],d=e[9],f=e[10],p=e[11],t[0]=r,t[1]=i,t[2]=o,t[3]=a,t[4]=s,t[5]=l,t[6]=u,t[7]=c,t[8]=h,t[9]=d,t[10]=f,t[11]=p,t[12]=r*g+s*v+h*m+e[12],t[13]=i*g+l*v+d*m+e[13],t[14]=o*g+u*v+f*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,l,u,c,h,d,f,p,g,v,m,y,b,_,x,w,O,S,C,E,T,M,A=i[0],I=i[1],j=i[2],k=Math.hypot(A,I,j);return k<r.EPSILON?null:(A*=k=1/k,I*=k,j*=k,o=Math.sin(n),s=1-(a=Math.cos(n)),l=e[0],u=e[1],c=e[2],h=e[3],d=e[4],f=e[5],p=e[6],g=e[7],v=e[8],m=e[9],y=e[10],b=e[11],_=A*A*s+a,x=I*A*s+j*o,w=j*A*s-I*o,O=A*I*s-j*o,S=I*I*s+a,C=j*I*s+A*o,E=A*j*s+I*o,T=I*j*s-A*o,M=j*j*s+a,t[0]=l*_+d*x+v*w,t[1]=u*_+f*x+m*w,t[2]=c*_+p*x+y*w,t[3]=h*_+g*x+b*w,t[4]=l*O+d*S+v*C,t[5]=u*O+f*S+m*C,t[6]=c*O+p*S+y*C,t[7]=h*O+g*S+b*C,t[8]=l*E+d*T+v*M,t[9]=u*E+f*T+m*M,t[10]=c*E+p*T+y*M,t[11]=h*E+g*T+b*M,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],l=e[7],u=e[8],c=e[9],h=e[10],d=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+u*r,t[5]=a*i+c*r,t[6]=s*i+h*r,t[7]=l*i+d*r,t[8]=u*i-o*r,t[9]=c*i-a*r,t[10]=h*i-s*r,t[11]=d*i-l*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],l=e[3],u=e[8],c=e[9],h=e[10],d=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-u*r,t[1]=a*i-c*r,t[2]=s*i-h*r,t[3]=l*i-d*r,t[8]=o*r+u*i,t[9]=a*r+c*i,t[10]=s*r+h*i,t[11]=l*r+d*i,t}function _(t,e,n){var r=Math.sin(n),i=Math.cos(n),o=e[0],a=e[1],s=e[2],l=e[3],u=e[4],c=e[5],h=e[6],d=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+u*r,t[1]=a*i+c*r,t[2]=s*i+h*r,t[3]=l*i+d*r,t[4]=u*i-o*r,t[5]=c*i-a*r,t[6]=h*i-s*r,t[7]=d*i-l*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],l=n[1],u=n[2],c=Math.hypot(s,l,u);return c<r.EPSILON?null:(s*=c=1/c,l*=c,u*=c,i=Math.sin(e),a=1-(o=Math.cos(e)),t[0]=s*s*a+o,t[1]=l*s*a+u*i,t[2]=u*s*a-l*i,t[3]=0,t[4]=s*l*a-u*i,t[5]=l*l*a+o,t[6]=u*l*a+s*i,t[7]=0,t[8]=s*u*a+l*i,t[9]=l*u*a-s*i,t[10]=u*u*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,l=i+i,u=o+o,c=r*s,h=r*l,d=r*u,f=i*l,p=i*u,g=o*u,v=a*s,m=a*l,y=a*u;return t[0]=1-(f+g),t[1]=h+y,t[2]=d-m,t[3]=0,t[4]=h-y,t[5]=1-(c+g),t[6]=p+v,t[7]=0,t[8]=d+m,t[9]=p-v,t[10]=1-(c+f),t[11]=0,t[12]=n[0],t[13]=n[1],t[14]=n[2],t[15]=1,t}function M(t,e){var n=new r.ARRAY_TYPE(3),i=-e[0],o=-e[1],a=-e[2],s=e[3],l=e[4],u=e[5],c=e[6],h=e[7],d=i*i+o*o+a*a+s*s;return d>0?(n[0]=2*(l*s+h*i+u*a-c*o)/d,n[1]=2*(u*s+h*o+c*i-l*a)/d,n[2]=2*(c*s+h*a+l*o-u*i)/d):(n[0]=2*(l*s+h*i+u*a-c*o),n[1]=2*(u*s+h*o+c*i-l*a),n[2]=2*(c*s+h*a+l*o-u*i)),T(t,e,n),t}function A(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],l=e[8],u=e[9],c=e[10];return t[0]=Math.hypot(n,r,i),t[1]=Math.hypot(o,a,s),t[2]=Math.hypot(l,u,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,l=e[1]*o,u=e[2]*a,c=e[4]*i,h=e[5]*o,d=e[6]*a,f=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]=(d-p)/m,t[1]=(f-u)/m,t[2]=(l-c)/m):s>h&&s>g?(m=2*Math.sqrt(1+s-h-g),t[3]=(d-p)/m,t[0]=.25*m,t[1]=(l+c)/m,t[2]=(f+u)/m):h>g?(m=2*Math.sqrt(1+h-s-g),t[3]=(f-u)/m,t[0]=(l+c)/m,t[1]=.25*m,t[2]=(d+p)/m):(m=2*Math.sqrt(1+g-s-h),t[3]=(l-c)/m,t[0]=(f+u)/m,t[1]=(d+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],l=i+i,u=o+o,c=a+a,h=i*l,d=i*u,f=i*c,p=o*u,g=o*c,v=a*c,m=s*l,y=s*u,b=s*c,_=r[0],x=r[1],w=r[2];return t[0]=(1-(p+v))*_,t[1]=(d+b)*_,t[2]=(f-y)*_,t[3]=0,t[4]=(d-b)*x,t[5]=(1-(h+v))*x,t[6]=(g+m)*x,t[7]=0,t[8]=(f+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],l=e[3],u=o+o,c=a+a,h=s+s,d=o*u,f=o*c,p=o*h,g=a*c,v=a*h,m=s*h,y=l*u,b=l*c,_=l*h,x=r[0],w=r[1],O=r[2],S=i[0],C=i[1],E=i[2],T=(1-(g+m))*x,M=(f+_)*x,A=(p-b)*x,I=(f-_)*w,j=(1-(d+m))*w,k=(v+y)*w,P=(p+b)*O,L=(v-y)*O,D=(1-(d+g))*O;return t[0]=T,t[1]=M,t[2]=A,t[3]=0,t[4]=I,t[5]=j,t[6]=k,t[7]=0,t[8]=P,t[9]=L,t[10]=D,t[11]=0,t[12]=n[0]+S-(T*S+I*C+P*E),t[13]=n[1]+C-(M*S+j*C+L*E),t[14]=n[2]+E-(A*S+k*C+D*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,l=i+i,u=n*a,c=r*a,h=r*s,d=i*a,f=i*s,p=i*l,g=o*a,v=o*s,m=o*l;return t[0]=1-h-p,t[1]=c+m,t[2]=d-v,t[3]=0,t[4]=c-m,t[5]=1-u-p,t[6]=f+g,t[7]=0,t[8]=d+v,t[9]=f-g,t[10]=1-u-h,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}function D(t,e,n,r,i,o,a){var s=1/(n-e),l=1/(i-r),u=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*l,t[6]=0,t[7]=0,t[8]=(n+e)*s,t[9]=(i+r)*l,t[10]=(a+o)*u,t[11]=-1,t[12]=0,t[13]=0,t[14]=a*o*2*u,t[15]=0,t}function R(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=R;function F(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 B(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),l=2/(a+s),u=2/(i+o);return t[0]=l,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=u,t[6]=0,t[7]=0,t[8]=-(a-s)*l*.5,t[9]=(i-o)*u*.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),l=1/(r-i),u=1/(o-a);return t[0]=-2*s,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=-2*l,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=2*u,t[11]=0,t[12]=(e+n)*s,t[13]=(i+r)*l,t[14]=(a+o)*u,t[15]=1,t}var V=z;function U(t,e,n,r,i,o,a){var s=1/(e-n),l=1/(r-i),u=1/(o-a);return t[0]=-2*s,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=-2*l,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=u,t[11]=0,t[12]=(e+n)*s,t[13]=(i+r)*l,t[14]=o*u,t[15]=1,t}function G(t,e,n,i){var o,a,s,l,c,h,d,f,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?u(t):(d=v-w,f=m-O,p=y-S,o=_*(p*=g=1/Math.hypot(d,f,p))-x*(f*=g),a=x*(d*=g)-b*p,s=b*f-_*d,(g=Math.hypot(o,a,s))?(o*=g=1/g,a*=g,s*=g):(o=0,a=0,s=0),l=f*s-p*a,c=p*o-d*s,h=d*a-f*o,(g=Math.hypot(l,c,h))?(l*=g=1/g,c*=g,h*=g):(l=0,c=0,h=0),t[0]=o,t[1]=l,t[2]=d,t[3]=0,t[4]=a,t[5]=c,t[6]=f,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]=-(l*v+c*m+h*y),t[14]=-(d*v+f*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],l=r[1],u=r[2],c=i-n[0],h=o-n[1],d=a-n[2],f=c*c+h*h+d*d;f>0&&(c*=f=1/Math.sqrt(f),h*=f,d*=f);var p=l*d-u*h,g=u*c-s*d,v=s*h-l*c;return(f=p*p+g*g+v*v)>0&&(p*=f=1/Math.sqrt(f),g*=f,v*=f),t[0]=p,t[1]=g,t[2]=v,t[3]=0,t[4]=h*v-d*g,t[5]=d*p-c*v,t[6]=c*g-h*p,t[7]=0,t[8]=c,t[9]=h,t[10]=d,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 $(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 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 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 J(t,e){var n=t[0],i=t[1],o=t[2],a=t[3],s=t[4],l=t[5],u=t[6],c=t[7],h=t[8],d=t[9],f=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],M=e[9],A=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(l-S)<=r.EPSILON*Math.max(1,Math.abs(l),Math.abs(S))&&Math.abs(u-C)<=r.EPSILON*Math.max(1,Math.abs(u),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(d-M)<=r.EPSILON*Math.max(1,Math.abs(d),Math.abs(M))&&Math.abs(f-A)<=r.EPSILON*Math.max(1,Math.abs(f),Math.abs(A))&&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 Q=p,tt=X},function(t,e,n){"use strict";n.r(e),n.d(e,"applyAttrsToContext",(function(){return u})),n.d(e,"drawChildren",(function(){return c})),n.d(e,"checkRefresh",(function(){return h})),n.d(e,"checkChildrenRefresh",(function(){return d})),n.d(e,"clearChanged",(function(){return f})),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(700),o=n(528),a=n(56),s=n(176),l={fill:"fillStyle",stroke:"strokeStyle",opacity:"globalAlpha"};function u(t,e){var n=e.attr();for(var o in n){var a=n[o],s=l[o]?l[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):d(e,n)}function d(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()&&d(r.cfg.children,e);else{var i=g(r,e);r.cfg.refresh=i,i&&r.isGroup()&&d(r.cfg.children,e)}}}function f(t){for(var e=0;e<t.length;e++){var n=t[e];n.cfg.hasChanged=!1,n.isGroup()&&!n.destroyed&&f(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,l=n.endArrow;if(i){var u=[0,0],c=[0,0],h={dx:0,dy:0};e.beginPath();for(var d=0;d<i.length;d++){var f=i[d],p=f[0];if(0===d&&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(d===i.length-2&&"Z"===i[d+1][0]&&l&&l.d){if("Z"===i[d+1][0]){g=t.getEndTangent();h=s.getShortenOffset(g[0][0],g[0][1],g[1][0],g[1][1],l.d)}}else if(d===i.length-1&&l&&l.d&&"Z"!==i[0]){g=t.getEndTangent();h=s.getShortenOffset(g[0][0],g[0][1],g[1][0],g[1][1],l.d)}var v=h.dx,m=h.dy;switch(p){case"M":e.moveTo(f[1]-v,f[2]-m),c=[f[1],f[2]];break;case"L":e.lineTo(f[1]-v,f[2]-m);break;case"Q":e.quadraticCurveTo(f[1],f[2],f[3]-v,f[4]-m);break;case"C":e.bezierCurveTo(f[1],f[2],f[3],f[4],f[5]-v,f[6]-m);break;case"A":var y=void 0;r?(y=r[d])||(y=Object(o.default)(u,f),r[d]=y):y=Object(o.default)(u,f);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,M=x>w?1:x/w,A=x>w?w/x:1;e.translate(b,_),e.rotate(C),e.scale(M,A),e.arc(0,0,T,O,S,1-E),e.scale(1/M,1/A),e.rotate(-C),e.translate(-b,-_)}break;case"Z":e.closePath()}if("Z"===p)u=c;else{var I=f.length;u=[f[I-2],f[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";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 l})),n.d(e,"RANGE_VIEW_ID",(function(){return u})),n.d(e,"DEFAULT_OPTIONS",(function(){return c}));var i="range",o="type",a="percent",s="#f0f0f0",l="indicator-view",u="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,"normalizeArcAngles",(function(){return C}));var r=n(20),i=n(35),o=n(151),a=n(232),s=n(47),l={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},u=[],c=[],h=[],d=[],f=[],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(l.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(l.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(l.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(l.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(l.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(l.R,t,e,n,r),this},t.prototype.closePath=function(){this._drawPendingPt(),this.addData(l.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,l){if(this._saveData){var u=this.data;this._len+arguments.length>u.length&&(this._expandData(),u=this.data);for(var c=0;c<arguments.length;c++)u[this._len++]=arguments[c]}},t.prototype._drawPendingPt=function(){this._pendingPtDist>0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},t.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var 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]=f[0]=f[1]=Number.MAX_VALUE,d[0]=d[1]=p[0]=p[1]=-Number.MAX_VALUE;var t,e=this.data,n=0,o=0,s=0,u=0;for(t=0;t<this._len;){var c=e[t++],g=1===t;switch(g&&(s=n=e[t],u=o=e[t+1]),c){case l.M:n=s=e[t++],o=u=e[t++],f[0]=s,f[1]=u,p[0]=s,p[1]=u;break;case l.L:Object(a.fromLine)(n,o,e[t],e[t+1],f,p),n=e[t++],o=e[t++];break;case l.C:Object(a.fromCubic)(n,o,e[t++],e[t++],e[t++],e[t++],e[t],e[t+1],f,p),n=e[t++],o=e[t++];break;case l.Q:Object(a.fromQuadratic)(n,o,e[t++],e[t++],e[t],e[t+1],f,p),n=e[t++],o=e[t++];break;case l.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,u=y(w)*x+b),Object(a.fromArc)(v,b,_,x,w,O,S,f,p),n=m(O)*_+v,o=y(O)*x+b;break;case l.R:s=n=e[t++],u=o=e[t++];var C=e[t++],E=e[t++];Object(a.fromLine)(s,u,s+C,u+E,f,p);break;case l.Z:n=s,o=u}r.min(h,h,f),r.max(d,d,p)}return 0===t&&(h[0]=h[1]=d[0]=d[1]=0),new i.default(h[0],h[1],d[0]-h[0],d[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,u=0;this._pathSegLen||(this._pathSegLen=[]);for(var c=this._pathSegLen,h=0,d=0,f=0;f<e;){var p=t[f++],_=1===f;_&&(a=i=t[f],u=o=t[f+1]);var w=-1;switch(p){case l.M:i=a=t[f++],o=u=t[f++];break;case l.L:var O=t[f++],S=(T=t[f++])-o;(b(N=O-i)>n||b(S)>r||f===e-1)&&(w=Math.sqrt(N*N+S*S),i=O,o=T);break;case l.C:var C=t[f++],E=t[f++],T=(O=t[f++],t[f++]),M=t[f++],A=t[f++];w=Object(s.cubicLength)(i,o,C,E,O,T,M,A,10),i=M,o=A;break;case l.Q:C=t[f++],E=t[f++],O=t[f++],T=t[f++];w=Object(s.quadraticLength)(i,o,C,E,O,T,10),i=O,o=T;break;case l.A:var I=t[f++],j=t[f++],k=t[f++],P=t[f++],L=t[f++],D=t[f++],R=D+L;f+=1;t[f++];_&&(a=m(L)*k+I,u=y(L)*P+j),w=v(k,P)*g(x,Math.abs(D)),i=m(R)*k+I,o=y(R)*P+j;break;case l.R:a=i=t[f++],u=o=t[f++],w=2*t[f++]+2*t[f++];break;case l.Z:var N=a-i;S=u-o;w=Math.sqrt(N*N+S*S),i=a,o=u}w>=0&&(c[d++]=w,h+=w)}return this._pathLen=h,h},t.prototype.rebuildPath=function(t,e){var n,r,i,o,a,h,d,f,p,_,x=this.data,w=this._ux,O=this._uy,S=this._len,C=e<1,E=0,T=0,M=0;if(!C||(this._pathSegLen||this._calculateLength(),d=this._pathSegLen,f=e*this._pathLen))t:for(var A=0;A<S;){var I=x[A++],j=1===A;switch(j&&(n=i=x[A],r=o=x[A+1]),I!==l.L&&M>0&&(t.lineTo(p,_),M=0),I){case l.M:n=i=x[A++],r=o=x[A++],t.moveTo(i,o);break;case l.L:a=x[A++],h=x[A++];var k=b(a-i),P=b(h-o);if(k>w||P>O){if(C){if(E+(rt=d[T++])>f){var L=(f-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,M=0}else{var D=k*k+P*P;D>M&&(p=a,_=h,M=D)}break;case l.C:var R=x[A++],N=x[A++],F=x[A++],B=x[A++],z=x[A++],V=x[A++];if(C){if(E+(rt=d[T++])>f){L=(f-E)/rt;Object(s.cubicSubdivide)(i,R,F,z,L,u),Object(s.cubicSubdivide)(o,N,B,V,L,c),t.bezierCurveTo(u[1],c[1],u[2],c[2],u[3],c[3]);break t}E+=rt}t.bezierCurveTo(R,N,F,B,z,V),i=z,o=V;break;case l.Q:R=x[A++],N=x[A++],F=x[A++],B=x[A++];if(C){if(E+(rt=d[T++])>f){L=(f-E)/rt;Object(s.quadraticSubdivide)(i,R,F,L,u),Object(s.quadraticSubdivide)(o,N,B,L,c),t.quadraticCurveTo(u[1],c[1],u[2],c[2]);break t}E+=rt}t.quadraticCurveTo(R,N,F,B),i=F,o=B;break;case l.A:var U=x[A++],G=x[A++],H=x[A++],W=x[A++],Y=x[A++],$=x[A++],X=x[A++],q=!x[A++],Z=H>W?H:W,K=b(H-W)>.001,J=Y+$,Q=!1;if(C)E+(rt=d[T++])>f&&(J=Y+$*(f-E)/rt,Q=!0),E+=rt;if(K&&t.ellipse?t.ellipse(U,G,H,W,X,Y,J,q):t.arc(U,G,Z,Y,J,q),Q)break t;j&&(n=m(Y)*H+U,r=y(Y)*W+G),i=m(J)*H+U,o=y(J)*W+G;break;case l.R:n=i=x[A],r=o=x[A+1],a=x[A++],h=x[A++];var tt=x[A++],et=x[A++];if(C){if(E+(rt=d[T++])>f){var nt=f-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 l.Z:if(C){var rt;if(E+(rt=d[T++])>f){L=(f-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=l,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 l})),n.d(e,"makeSeriesEncodeForAxisCoordSys",(function(){return u})),n.d(e,"makeSeriesEncodeForNameBased",(function(){return c})),n.d(e,"querySeriesUpstreamDatasetModel",(function(){return h})),n.d(e,"queryDatasetUpstreamDatasetModels",(function(){return d})),n.d(e,"guessOrdinal",(function(){return f}));var r=n(10),i=n(0),o=n(29),a={Must:1,Might:2,Not:3},s=Object(r.makeInner)();function l(t){s(t).datasetMap=Object(i.createHashMap)()}function u(t,e,n){var r={},o=h(e);if(!o||!t)return r;var a,l,u=[],c=[],d=e.ecModel,f=s(d).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,l=m(o)),r[o.name]=[]}));var g=f.get(p)||f.set(p,{categoryWayDim:l,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(u,0,i);else{o=g.categoryWayDim;v(r[n],o,i),v(c,o,i),g.categoryWayDim+=i}})),u.length&&(r.itemName=u),c.length&&(r.seriesName=c),r}function c(t,e,n){var r={};if(!h(t))return r;var s,l=e.sourceFormat,u=e.dimensionsDefine;l!==o.SOURCE_FORMAT_OBJECT_ROWS&&l!==o.SOURCE_FORMAT_KEYED_COLUMNS||Object(i.each)(u,(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,l,e.seriesLayoutBy,u,e.startIndex,o);i.push(h);var d=h===a.Not;if(d&&null==t.v&&o!==s&&(t.v=o),(null==t.n||t.n===t.v||!d&&i[t.n]===a.Not)&&(t.n=o),f(t)&&i[t.n]!==a.Not)return t;d||(h===a.Might&&null==r.v&&o!==s&&(r.v=o),null!=r.n&&r.n!==r.v||(r.n=o))}function f(t){return null!=t.v&&null!=t.n}return f(t)?t:f(r)?r:null}();if(c){r.value=[c.v];var d=null!=s?s:c.n;r.itemName=[d],r.seriesName=[d]}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 d(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 f(t,e){return p(t.data,t.sourceFormat,t.seriesLayoutBy,t.dimensionsDefine,t.startIndex,e)}function p(t,e,n,s,l,u){var c,h,d;if(Object(i.isTypedArray)(t))return a.Not;if(s){var f=s[u];Object(i.isObject)(f)?(h=f.name,d=f.type):Object(i.isString)(f)&&(h=f)}if(null!=d)return"ordinal"===d?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[u],v=0;v<(g||[]).length&&v<5;v++)if(null!=(c=O(g[l+v])))return c}else for(v=0;v<p.length&&v<5;v++){var m=p[l+v];if(m&&null!=(c=O(m[u])))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[u])))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 l})),n.d(e,"createSource",(function(){return u})),n.d(e,"createSourceFromSeriesDataOption",(function(){return c})),n.d(e,"cloneSourceShallow",(function(){return h})),n.d(e,"detectSourceFormat",(function(){return d})),n.d(e,"shouldRetrieveDataByName",(function(){return g}));var r=n(0),i=n(29),o=n(10),a=n(139),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 l(t){return t instanceof s}function u(t,e,n){n=n||d(t);var a=e.seriesLayoutBy,l=function(t,e,n,a,s){var l,u;if(!t)return{dimensionsDefine:f(s),startIndex:u,dimensionsDetectedCount:l};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==u&&(u=1):u=0)}),n,c,10):u=Object(r.isNumber)(a)?a:a?1:0,s||1!==u||(s=[],p((function(t,e){s[e]=null!=t?t+"":""}),n,c,1/0)),l=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]);l=Object(r.isArray)(h)&&h.length||1}else i.SOURCE_FORMAT_TYPED_ARRAY;return{startIndex:u,dimensionsDefine:f(s),dimensionsDetectedCount:l}}(t,n,a,e.sourceHeader,e.dimensions);return new s({data:t,sourceFormat:n,seriesLayoutBy:a,dimensionsDefine:l.dimensionsDefine,startIndex:l.startIndex,dimensionsDetectedCount:l.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 d(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 f(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 d}));var r=n(2),i=n(1),o=n(7),a=n(436),s={appear:{duration:450,easing:"easeQuadOut"},update:{duration:400,easing:"easeQuadInOut"},enter:{duration:400,easing:"easeQuadInOut"},leave:{duration:350,easing:"easeQuadIn"}},l={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"}}},u={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=l[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,l=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 u=Object(a.getAnimation)(s);u&&u(t,l,n)}else t.animate(n.toAttrs,l)}function d(t,e,n,o,l){if(u[n]){var c=u[n](o),h=Object(a.getAnimation)(Object(i.get)(c,"animation",""));if(h){var d=Object(r.__assign)(Object(r.__assign)(Object(r.__assign)({},s.appear),c),e);t.stopAnimate(),h(t,d,{coordinate:o,minYPoint:l,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(59),i=n(36),o=n(363),a={},s=function(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1},l=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 l=Object(o.subPixelOptimizeLine)(a,e,this.style);n=l.x1,r=l.y1,i=l.x2,s=l.y2}else n=e.x1,r=e.y1,i=e.x2,s=e.y2;var u=e.percent;0!==u&&(t.moveTo(n,r),u<1&&(i=n*(1-u)+i*u,s=r*(1-u)+s*u),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);l.prototype.type="line",e.default=l},function(t,e,n){"use strict";n.r(e),n.d(e,"parentNode",(function(){return s})),n.d(e,"style",(function(){return l})),n.d(e,"clientRegion",(function(){return u})),n.d(e,"offsetRegion",(function(){return c})),n.d(e,"scrollRegion",(function(){return h})),n.d(e,"classList",(function(){return d}));var r=n(410),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 l(t){t.style=t.style||{},Object.assign(t.style,{top:"0px",left:"0px",width:i+"px",height:o+"px",margin:"0px",padding:"0px"})}function u(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 d(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 l(t){return t.parentNode}function u(t){return t.nextSibling}function c(t){return t.tagName}function h(t,e){t.textContent=e}function d(t){return t.textContent}function f(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 l})),n.d(e,"nextSibling",(function(){return u})),n.d(e,"tagName",(function(){return c})),n.d(e,"setTextContent",(function(){return h})),n.d(e,"getTextContent",(function(){return d})),n.d(e,"isElement",(function(){return f})),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,l=n(45),u=n.n(l),c=n(11),h=n.n(c),d=n(12),f=n.n(d),p=n(3),g=n.n(p),v=n(42),m=n.n(v),y=(n(182),n(824)),b=n.n(y),_=n(253),x=n.n(_),w=n(1732),O=n.n(w),S=n(21),C=(n(86),n(85)),E=n(28),T=n(204);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 A(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){g()(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 I=(r=Object(S.injectable)(),i=Object(S.inject)(E.TYPES.IShaderModuleService),r((a=function(){function t(){h()(this,t),u()(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 f()(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,l=a.fs,u=a.uniforms;this.model=o({vs:s,fs:l,attributes:{a_Position:r({buffer:i({data:[-4,-4,4,-4,0,4],type:C.gl.FLOAT}),size:2})},uniforms:A(A({u_Texture:null},u),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,l=a(),u=l.width,c=l.height;o(this.renderToScreen?null:r.getWriteFBO(),(function(){s({framebuffer:r.getWriteFBO(),color:[0,0,0,0],depth:1,stencil:0});var t=A({u_BloomFinal:0,u_Texture:r.getReadFBO(),u_ViewportSize:[u,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=A(A({},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(109),o=n(240),a=n(331),s=n(10),l=n(273),u=n(1282),c=n(140),h=n(133),d=n(139),f=n(29);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===f.SOURCE_FORMAT_ORIGINAL;var m=Object(u.getCoordSysInfoBySeries)(e),y=function(t,e){var n,i=t.get("coordinateSystem"),o=l.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(d.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===f.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(748),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&&l(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&&l(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,l,u=t.getExtent();if(1===a)e[0].coord=u[0],s=e[1]={coord:u[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 d=t.scale.getExtent();l=1+d[1]-e[a-1].tickValue,s={coord:e[a-1].coord+h*l},e.push(s)}var f=u[0]>u[1];p(e[0].coord,u[0])&&(o?e[0].coord=u[0]:e.shift());o&&p(u[0],e[0].coord)&&e.unshift({coord:u[0]});p(u[1],s.coord)&&(o?s.coord=u[1]:e.pop());o&&p(s.coord,u[1])&&e.push({coord:u[1]});function p(t,e){return t=Object(i.round)(t),e=Object(i.round)(e),f?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 l(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 l})),n.d(e,"SortOrderComparator",(function(){return h})),n.d(e,"createFilterComparator",(function(){return f}));var r=n(6),i=n(0),o=n(37);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 l(t){return s.get(t)}var u={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=u[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 l=Object(i.isString)(t),u=Object(i.isString)(e);l&&(n=u?t:0),u&&(o=l?e:0)}return n<o?this._resultLT:n>o?-this._resultLT:0},t}(),d=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 f(t,e){return"eq"===t||"ne"===t?new d("eq"===t,e):Object(i.hasOwn)(u,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 l})),n.d(e,"LIGHTER_LABEL_COLOR",(function(){return u}));var r=1;n(49).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",l="#ccc",u="#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";n.r(e),n.d(e,"buildElStyle",(function(){return h})),n.d(e,"buildLabelElOption",(function(){return d})),n.d(e,"getValueLabel",(function(){return f})),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(14),o=n(55),a=n(48),s=n(41),l=n(77),u=n(170),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 d(t,e,n,r,i){var s=f(n.get("value"),e.axis,e.ecModel,n.get("seriesDataIndices"),{precision:n.get(["label","precision"]),formatter:n.get(["label","formatter"])}),l=n.getModel("label"),u=a.normalizeCssArray(l.get("padding")||0),h=l.getFont(),d=o.getBoundingRect(s,h),p=i.position,g=d.width+u[1]+u[3],v=d.height+u[0]+u[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=l.get("backgroundColor");b&&"auto"!==b||(b=e.get(["axisLine","lineStyle","color"])),t.label={x:p[0],y:p[1],style:Object(c.createTextStyle)(l,{text:s,font:h,fill:l.getTextColor(),padding:u,backgroundColor:b}),z2:10}}function f(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 u={value:l.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&&u.seriesData.push(i)})),r.isString(s)?a=s.replace("{value}",a):r.isFunction(s)&&(a=s(u))}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=u.default.innerTextLayout(n.rotation,0,n.labelDirection);n.labelMargin=i.get(["label","margin"]),d(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(131);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 u})),n.d(e,"createScaleByField",(function(){return c})),n.d(e,"syncScale",(function(){return h})),n.d(e,"getName",(function(){return d})),n.d(e,"getDefaultCategoryScaleRange",(function(){return f})),n.d(e,"getMaxScale",(function(){return p}));var r=n(2),i=n(1),o=n(7),a=n(89),s=n(82),l=/^(?:(?!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 u(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),u=Object(i.get)(n,"type",function(t){var e="linear";return l.test(t)?e="timeCat":Object(i.isString)(t)&&(e="cat"),e}(s[0]));return new(Object(a.getScale)(u))(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 d(t){return t.alias||t.field}function f(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 l})),n.d(e,"getAxisIdPropName",(function(){return u})),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 l(t){return t+"AxisIndex"}function u(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)||l(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)&&(l(t),n=!0)}function l(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,l=n.infoMap.get(a);l||(l={model:o,axisModels:[]},n.infoList.push(l),n.infoMap.set(a,l)),l.axisModels.push(i)}}})),n}},function(t,e,n){var r=n(1928),i=n(1929),o=n(1156),a=n(1930);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,"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 l})),n.d(e,"add",(function(){return u})),n.d(e,"subtract",(function(){return c})),n.d(e,"multiply",(function(){return h})),n.d(e,"divide",(function(){return d})),n.d(e,"ceil",(function(){return f})),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 M})),n.d(e,"lerp",(function(){return A})),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 D})),n.d(e,"equals",(function(){return R})),n.d(e,"sub",(function(){return F})),n.d(e,"mul",(function(){return B})),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 l(t,e,n,r,i){return t[0]=e,t[1]=n,t[2]=r,t[3]=i,t}function u(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 d(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){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 M(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],l=n[1]*r[3]-n[3]*r[1],u=n[2]*r[3]-n[3]*r[2],c=e[0],h=e[1],d=e[2],f=e[3];return t[0]=h*u-d*l+f*s,t[1]=-c*u+d*a-f*o,t[2]=c*l-h*a+f*i,t[3]=-c*s+h*o-d*i,t}function A(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,l;e=e||1;do{s=(n=2*r.RANDOM()-1)*n+(i=2*r.RANDOM()-1)*i}while(s>=1);do{l=(o=2*r.RANDOM()-1)*o+(a=2*r.RANDOM()-1)*a}while(l>=1);var u=Math.sqrt((1-s)/l);return t[0]=e*n,t[1]=e*i,t[2]=e*o*u,t[3]=e*a*u,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],l=n[2],u=n[3],c=u*r+s*o-l*i,h=u*i+l*r-a*o,d=u*o+a*i-s*r,f=-a*r-s*i-l*o;return t[0]=c*u+f*-a+h*-l-d*-s,t[1]=h*u+f*-s+d*-a-c*-l,t[2]=d*u+f*-l+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 D(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]&&t[3]===e[3]}function R(t,e){var n=t[0],i=t[1],o=t[2],a=t[3],s=e[0],l=e[1],u=e[2],c=e[3];return Math.abs(n-s)<=r.EPSILON*Math.max(1,Math.abs(n),Math.abs(s))&&Math.abs(i-l)<=r.EPSILON*Math.max(1,Math.abs(i),Math.abs(l))&&Math.abs(o-u)<=r.EPSILON*Math.max(1,Math.abs(o),Math.abs(u))&&Math.abs(a-c)<=r.EPSILON*Math.max(1,Math.abs(a),Math.abs(c))}var N,F=c,B=h,z=d,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 l(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 l}))},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(929);n.d(e,"Chart",(function(){return r.default}));var i=n(518);n.d(e,"View",(function(){return i.default})),n.d(e,"registerGeometry",(function(){return i.registerGeometry}));var o=n(256);n.d(e,"Event",(function(){return o.default}));var a=n(527);n.d(e,"registerComponentController",(function(){return a.registerComponentController}))},function(t,e,n){"use strict";n.r(e);var r=n(131);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(424),o=n(384),a=n(1),s=n(142),l=n(455),u=n(7),c=n(78),h=n(437),d=n(325),f=n(38),p=n(1531),g=n(696),v=n(497),m=n(697),y=n(155),b=n(82),_=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,l=void 0!==s&&s,u=e.visible,c=void 0===u||u,h=e.theme,d=e.scales,f=void 0===d?{}:d,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=l,n.visible=c,n.userTheme=h,n.scales=f,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 l=i[o];this.dataArray[o]=this.mapping(l)}if(this.updateElements(this.dataArray,t),this.lastElementsMap=this.elementsMap,this.canDoGroupAnimation(t)){var u=this.container,c=this.type,h=this.coordinate,d=Object(a.get)(this.animateOption,"appear"),f=this.getYScale(),p=h.convert({x:0,y:f.scale(this.getYMinValue())});Object(s.doGroupAppearAnimate)(u,d,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){u.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],l=s.field;s.isIdentity?n.push(s.values):n.push(e[l])}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)[u.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,l=this.getXScale(),c=this.getYScale(),h=l.field||"x",d=e[c.field||"y"];i="identity"===l.type?l.values[0]:e[h],o="interval"===s||"schema"===s?"".concat(i):"line"===s||"area"===s||"path"===s?s:"".concat(i,"-").concat(d);for(var f=this.groupScales,p=(r=0,f.length);r<p;r++){var g=f[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=u.GROUP_ATTRS.length;n<r;n++){var i=u.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[u.FIELD_ORIGIN][n])-e.translate(r[u.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(f.getShapeFactory)(t))return this.shapeFactory||(this.shapeFactory=Object(a.clone)(Object(f.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[u.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,l;void 0===e&&(e=!1);for(var u=new Map,c=[],h=new Map,d=0,f=0;f<t.length;f++)for(var p=t[f],v=0;v<p.length;v++){var y=p[v],b=this.getElementId(y),_=u.has(b)?"".concat(b,"-").concat(f,"-").concat(v):b;c.push(_),u.set(_,y),h.set(_,d),d++}this.elements=new Array(d);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=u.get(b),f=h.get(b);var T=this.createElement(y,f,e);this.elements[f]=T,this.elementsMap[b]=T,T.shape&&T.shape.set("zIndex",this.zIndexReversed?this.elements.length-f:f)}}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 M=Object(r.__values)(O),A=M.next();!A.done;A=M.next()){b=A.value,T=this.lastElementsMap[b],y=u.get(b);var I=this.getDrawCfg(y),j=T.getModel();f=h.get(b);(this.isCoordinateChanged||Object(g.isModelChange)(I,j))&&(T.animate=this.animateOption,T.update(I)),this.elements[f]=T,this.elementsMap[b]=T,T.shape&&T.shape.set("zIndex",this.zIndexReversed?this.elements.length-f:f)}}catch(t){o={error:t}}finally{try{A&&!A.done&&(a=M.return)&&a.call(M)}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&&(l=k.return)&&l.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 l={},c=function(c){if(n.hasOwnProperty(c)){var h=n[c];if(!h)return{value:void 0};var d=Object(r.__assign)({},h),f=d.callback,p=d.values,g=d.fields,v=(void 0===g?[]:g).map((function(e){var n=t.scales[e];!l[e]&&u.GROUP_ATTRS.includes(c)&&("cat"===Object(y.inferScaleType)(n,Object(a.get)(t.scaleDefs,e),c,t.type)&&(t.groupScales.push(n),l[e]=!0));return n}));d.scales=v,"position"!==c&&1===v.length&&"identity"===v[0].type?d.values=v[0].values:f||p||("size"===c?d.values=i.sizes:"shape"===c?d.values=i.shapes[s]||[]:"color"===c&&(v.length?d.values=v[0].values.length<=10?i.colors10:i.colors20:d.values=i.colors10));var m=Object(o.getAttribute)(c);e[c]=new m(d)}};for(var h in n){var d=c(h);if("object"==typeof d)return d.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,l=o.length;s<l;s++){for(var c=o[s],h=[],d=0,f=c.length;d<f;d++){var p=c[d],g={};for(var v in p)g[v]=p[v];g[u.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,l=this.maxColumnWidth||s.maxColumnWidth,u=this.minColumnWidth||s.minColumnWidth,c=this.columnWidthRatio||s.columnWidthRatio,h=t;if(e){var d=this.getXScale(),f=this.getYScale(),p=d.field,g=f?f.field:null,v=Object(b.getXDimensionLength)(this.coordinate),m=d.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:l,minColumnWidth:u,columnWidthRatio:c},O),C=O.type;if("dodge"===C){var E=[];if(d.isCategory||"identity"===d.type)E.push("x");else{if(f)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(!f){S.height=T.getHeight();var M=this.getDefaultValue("size")||3;S.size=M}!T.isTransposed&&Object(a.isNil)(S.reverseOrder)&&(S.reverseOrder=!0)}var A=Object(i.getAdjust)(C);S.dimValuesMap={},d&&d.values&&(S.dimValuesMap[d.field]=d.values.map((function(t){return d.translate(t)})));var I=new A(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 l=n[s],u=Math.min.apply(null,l[r]),c=Math.max.apply(null,l[r]);u<i&&(i=u),c>o&&(o=c)}var h=this.scaleDefs,d={};i<t.min&&!Object(a.get)(h,[r,"min"])&&(d.min=i),o>t.max&&!Object(a.get)(h,[r,"max"])&&(d.max=o),t.change(d)},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[u.FIELD_ORIGIN],points:i.points,nextPoints:i.nextPoints};for(var s in e)if(e.hasOwnProperty(s)){var l=e[s],c=l.names,h=this.getAttributeValues(l,i);if(c.length>1)for(var d=0;d<h.length;d+=1){var f=h[d];o[c[d]]=Object(a.isArray)(f)&&1===f.length?f[0]:f}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 l=0,u=0,c=i.length,h=o.length;l<c&&u<h;l+=1,u+=1)r=s.convert({x:i[l],y:o[u]}),e.push(r.x),n.push(r.y)}else if(Object(a.isArray)(o)){n=[];for(var d=0;d<o.length;d++){var f=o[d];r=s.convert({x:i,y:f}),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(d=0;d<i.length;d++){var p=i[d];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,l,c,h,f,p,g,v,m,y=this;return Object(r.__generator)(this,(function(b){switch(b.label){case 0:return n=this.geometryLabel,this.emit(u.GEOMETRY_LIFE_CIRCLE.BEFORE_RENDER_LABEL),n||(i=this.getLabelType(),o=Object(d.getGeometryLabel)(i),n=new o(this),this.geometryLabel=n),[4,n.render(t,e)];case 1:b.sent(),s=n.labelsRenderer.shapesMap,l=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=l.get(o)||new Set;a.add(t),l.set(o,a)}}}));try{for(c=Object(r.__values)(l.entries()),h=c.next();!h.done;h=c.next())f=Object(r.__read)(h.value,2),p=f[0],g=f[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(u.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}(l.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(59),i=n(36),o=n(657),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 l}));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"}},l={appendPadding:2,tooltip:Object(r.__assign)({},s),animation:{}}},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.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,"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 l})),n.d(e,"getCenter",(function(){return u}));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=l(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,d=[];if(s.length>1){var f=u(s);for(n=0;n<s.length;++n){var p=s[n];p.angle=Math.atan2(p.x-f.x,p.y-f.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&&(d.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,d.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=d,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 l(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),l=t.x+o*(e.x-t.x)/n,u=t.y+o*(e.y-t.y)/n,c=-(e.y-t.y)*(s/n),h=-(e.x-t.x)*(s/n);return[{x:l+c,y:u-h},{x:l-c,y:u+h}]}function u(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],l=n[s],u=r(l);if(u>1){var c=l.shift();1===l.length&&(n[s]=l[0]),this._update&&this._update(c,a)}else 1===u?(n[s]=null,this._update&&this._update(l,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 l=o[s],u=n[l],c=i[l],h=r(u),d=r(c);if(h>1&&1===d)this._updateManyToOne&&this._updateManyToOne(c,u),i[l]=null;else if(1===h&&d>1)this._updateOneToMany&&this._updateOneToMany(c,u),i[l]=null;else if(1===h&&1===d)this._update&&this._update(c,u),i[l]=null;else if(h>1&&d>1)this._updateManyToMany&&this._updateManyToMany(c,u),i[l]=null;else if(h>1)for(var f=0;f<h;f++)this._remove&&this._remove(u[f]);else this._remove&&this._remove(u)}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 l=e[s],u=r(l);0===u?(e[s]=a,o&&n.push(s)):1===u?e[s]=[l,a]:l.push(a)}}},t}();e.default=o},function(t,e,n){"use strict";n.r(e);var r=n(0),i=n(39),o=n(144),a=n(66),s=n(14),l=n(32),u=n(27),c=n(57),h=n(6),d=n(60),f=n(41),p=n(20),g=n(77),v=n(310),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 a=e.get(["axisLine","show"]);if("auto"===a&&t.handleAutoShown&&(a=t.handleAutoShown("axisLine")),a){var s=e.axis.getExtent(),l=i.transform,u=[s[0],0],c=[s[1],0];l&&(Object(p.applyTransform)(u,u,l),Object(p.applyTransform)(c,c,l));var h=Object(r.extend)({lineCap:"round"},e.getModel(["axisLine","lineStyle"]).getLineStyle()),f=new o.default({subPixelOptimize:!0,shape:{x1:u[0],y1:u[1],x2:c[0],y2:c[1]},style:h,strokeContainThreshold:t.strokeContainThreshold||5,silent:!0,z2:1});f.anid="line",n.add(f);var g=e.get(["axisLine","symbol"]);if(null!=g){var v=e.get(["axisLine","symbolSize"]);Object(r.isString)(g)&&(g=[g,g]),(Object(r.isString)(v)||Object(r.isNumber)(v))&&(v=[v,v]);var m=Object(d.normalizeSymbolOffset)(e.get(["axisLine","symbolOffset"])||0,v),y=v[0],b=v[1];Object(r.each)([{rotate:t.rotation+Math.PI/2,offset:m[0],r:0},{rotate:t.rotation-Math.PI/2,offset:m[1],r:Math.sqrt((u[0]-c[0])*(u[0]-c[0])+(u[1]-c[1])*(u[1]-c[1]))}],(function(e,r){if("none"!==g[r]&&null!=g[r]){var i=Object(d.createSymbol)(g[r],-y/2,-b/2,y,b,h.stroke,!0),o=e.r+e.offset;i.attr({rotation:e.rotate,x:u[0]+o*Math.cos(t.rotation),y:u[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 l=a.getModel("lineStyle"),u=i.tickDirection*a.get("length"),c=O(o.getTicksCoords(),e.transform,u,Object(r.defaults)(l.getLineStyle(),{stroke:n.get(["axisLine","lineStyle","color"])}),"ticks"),h=0;h<c.length;h++)t.add(c[h]);return c}(n,i,e,t),s=function(t,e,n,i){var o=n.axis;if(!Object(r.retrieve)(i.axisLabelShow,n.get(["axisLabel","show"]))||o.scale.isBlank())return;var s=n.getModel("axisLabel"),h=s.get("margin"),d=o.getViewLabels(),f=(Object(r.retrieve)(i.labelRotate,s.get("rotate"))||0)*m/180,p=y.innerTextLayout(i.rotation,f,i.labelDirection),g=n.getCategories&&n.getCategories(!0),v=[],b=y.isLabelSilent(n),_=n.get("triggerEvent");return Object(r.each)(d,(function(d,f){var m="ordinal"===o.scale.type?o.scale.getRawOrdinalNumber(d.tickValue):d.tickValue,x=d.formattedLabel,w=d.rawLabel,O=s;if(g&&g[m]){var S=g[m];Object(r.isObject)(S)&&S.textStyle&&(O=new c.default(S.textStyle,s,n.ecModel))}var C=O.getTextColor()||n.get(["axisLine","lineStyle","color"]),E=o.dataToCoord(m),T=new a.default({x:E,y:i.labelOffset+i.labelDirection*h,rotation:p.rotation,silent:b,z2:10+(d.level||0),style:Object(u.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,f):C})});if(T.anid="label_"+m,_){var M=y.makeAxisEventDataBase(n);M.targetType="axisLabel",M.value=w,M.tickIndex=f,"category"===o.type&&(M.dataIndex=m),Object(l.getECData)(T).eventData=M}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],l=e[e.length-2],u=n[0],c=n[1],h=n[n.length-1],d=n[n.length-2];!1===r?(_(o),_(u)):x(o,a)&&(r?(_(a),_(c)):(_(o),_(u)));!1===i?(_(s),_(h)):x(l,s)&&(i?(_(l),_(d)):(_(s),_(h)))}(e,s,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 l=a.getModel("lineStyle"),u=i*a.get("length"),c=Object(r.defaults)(l.getLineStyle(),Object(r.defaults)(n.getModel("axisTick").getLineStyle(),{stroke:n.get(["axisLine","lineStyle","color"])})),h=0;h<s.length;h++)for(var d=O(s[h],e.transform,u,c,"minorticks_"+h),f=0;f<d.length;f++)t.add(d[f])}(n,i,e,t.tickDirection),e.get(["axisLabel","hideOverlap"])){var h=Object(v.prepareLayoutList)(Object(r.map)(s,(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,d,f=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"===f?b[0]-_*v:"end"===f?b[1]+_*v:(b[0]+b[1])/2,w(f)?t.labelOffset+p*v:0],O=e.get("nameRotate");null!=O&&(O=O*m/180),w(f)?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],l="start"===e&&!s||"start"!==e&&s;Object(h.isRadianAroundZero)(a-m/2)?(o=l?"bottom":"top",i="center"):Object(h.isRadianAroundZero)(a-1.5*m)?(o=l?"top":"bottom",i="center"):(o="middle",i=a<1.5*m&&a>m/2?l?"left":"right":l?"right":"left");return{rotation:a,textAlign:i,textVerticalAlign:o}}(t.rotation,f,O||0,b),null!=(d=t.axisNameAvailableWidth)&&(d=Math.abs(d/Math.sin(c.rotation)),!isFinite(d)&&(d=null)));var S=g.getFont(),C=e.get("nameTruncate",!0)||{},E=C.ellipsis,T=Object(r.retrieve)(t.nameTruncateMaxWidth,C.maxWidth,d),M=new a.default({x:x[0],y:x[1],rotation:c.rotation,silent:y.isLabelSilent(e),style:Object(u.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(s.setTooltipConfig({el:M,componentModel:e,itemName:o}),M.__fullText=o,M.anid="name",e.get("triggerEvent")){var A=y.makeAxisEventDataBase(e);A.targetType="axisName",A.name=o,Object(l.getECData)(M).eventData=A}i.add(M),M.updateTransform(),n.add(M),M.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=f.identity([]);return f.rotate(i,i,-t.rotation),n.applyTransform(f.mul([],i,t.getLocalTransform())),r.applyTransform(f.mul([],i,e.getLocalTransform())),n.intersect(r)}}function w(t){return"middle"===t||"center"===t}function O(t,e,n,r,i){for(var a=[],s=[],l=[],u=0;u<t.length;u++){var c=t[u].coord;s[0]=c,s[1]=0,l[0]=c,l[1]=n,e&&(Object(p.applyTransform)(s,s,e),Object(p.applyTransform)(l,l,e));var h=new o.default({subPixelOptimize:!0,shape:{x1:s[0],y1:s[1],x2:l[0],y2:l[1]},style:r,z2:2,autoBatch:!0,silent:!0});h.anid=i+"_"+t[u].tickValue,a.push(h)}return a}e.default=y},function(t,e,n){"use strict";n.r(e),n.d(e,"DefaultDataProvider",(function(){return d})),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,l=n(0),u=n(10),c=n(140),h=n(29),d=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,u=o.seriesLayoutBy,c=o.startIndex,d=o.dimensionsDefine,f=a[w(s,u)];if(Object(l.extend)(t,f),s===h.SOURCE_FORMAT_TYPED_ARRAY)t.getItem=e,t.count=r,t.fillStorage=n;else{var p=g(s,u);t.getItem=Object(l.bind)(p,null,i,c,d);var v=y(s,u);t.count=Object(l.bind)(v,null,i,c,d)}};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],l=null==s[0]?1/0:s[0],u=null==s[1]?-1/0:s[1],c=e-t,h=n[a],d=0;d<c;d++){var f=i[d*o+a];h[t+d]=f,f<l&&(l=f),f>u&&(u=f)}s[0]=l,s[1]=u}},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(l.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}(),f=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 l=a[s];o[s]=l?l[r]:null}return o},r[h.SOURCE_FORMAT_OBJECT_ROWS]=f,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]=f,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(u.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 l=r;return o===h.SOURCE_FORMAT_ORIGINAL&&(l=Object(u.getDataItemValue)(r)),l}}}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(l.isObject)(i)||(i=null),i?i[n]:void 0}}}},function(t,e,n){"use strict";n.r(e),n.d(e,"smoothBezier",(function(){return u})),n.d(e,"catmullRom2bezier",(function(){return c})),n.d(e,"getLinePath",(function(){return h})),n.d(e,"getSplinePath",(function(){return d})),n.d(e,"convertNormalPath",(function(){return f})),n.d(e,"convertPolarPath",(function(){return p}));var r=n(2),i=n(25),o=n(1),a=n(82);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 l(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 u=function(t,e,n,o){var a,s,l,u,c,h,d,f,p=[],g=!!o;if(g){u=(a=Object(r.__read)(o,2))[0],c=a[1];for(var v=0,m=t.length;v<m;v++){var y=t[v];u=i.vec2.min([0,0],u,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],l=t[n?(v+1)%b:v+1];var _=[0,0];_=i.vec2.sub(_,l,s),_=i.vec2.scale(_,_,e);var x=i.vec2.distance(y,s),w=i.vec2.distance(y,l),O=x+w;0!==O&&(x/=O,w/=O);var S=i.vec2.scale([0,0],_,-x),C=i.vec2.scale([0,0],_,w);d=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],l,y)),h=i.vec2.max([0,0],h,i.vec2.min([0,0],l,y)),S=i.vec2.sub([0,0],h,y),S=i.vec2.scale([0,0],S,-x/w),d=i.vec2.add([0,0],y,S),d=i.vec2.min([0,0],d,i.vec2.max([0,0],s,y)),d=i.vec2.max([0,0],d,i.vec2.min([0,0],s,y)),C=i.vec2.sub([0,0],y,d),C=i.vec2.scale([0,0],C,w/x),h=i.vec2.add([0,0],y,C),g&&(d=i.vec2.max([0,0],d,u),d=i.vec2.min([0,0],d,c),h=i.vec2.max([0,0],h,u),h=i.vec2.min([0,0],h,c)),p.push(f),p.push(d),f=h}else d=y,p.push(f),p.push(d);else f=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,l,c,h=u(i,.4,r,n),d=i.length,f=[];for(o=0;o<d-1;o++)s=h[2*o],l=h[2*o+1],c=i[o+1],f.push(["C",s[0],s[1],l[0],l[1],c[0],c[1]]);return r&&(s=h[d],l=h[d+1],c=i[0],f.push(["C",s[0],s[1],l[0],l[1],c[0],c[1]])),f}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 d(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 l=t[a];o&&o.x===l.x&&o.y===l.y||(r.push(l.x),r.push(l.y),o=l)}var u=c(r,e,n||[[0,0],[1,1]]);return u.unshift(["M",i.x,i.y]),u}function f(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(l(e,t));break;case"z":default:n.push(e)}})),n}function p(t,e){var n,r,i,u=[];return Object(o.each)(e,(function(o,c){switch(o[0].toLowerCase()){case"m":case"c":case"q":u.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])?u=u.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]},l={x:e[1],y:e[2]},u=[],c=r?"y":"x",h=Math.abs(l[c]-s[c])*(o-i),d=l[c]>=s[c]?1:0,f=h>Math.PI?1:0,p=n.convert(l),g=Object(a.getDistanceToCenter)(n,p);if(g>=.5)if(h===2*Math.PI){var v={x:(l.x+s.x)/2,y:(l.y+s.y)/2},m=n.convert(v);u.push(["A",g,g,0,f,d,m.x,m.y]),u.push(["A",g,g,0,f,d,p.x,p.y])}else u.push(["A",g,g,0,f,d,p.x,p.y]);return u}(n,r,t)):u.push(s(o,t));break;case"a":u.push(l(o,t));break;case"z":default:u.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")}}))}(u),u}},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 l}));var r=n(1),i=n(186);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(),l=s.x,u=s.y,c=s.width,h=s.height;a.destroy();var d=n;return Object(r.isNil)(d)?d=[2,2,2,2]:Object(r.isNumber)(d)&&(d=new Array(4).fill(d)),{x:l-d[3],y:u-d[0],width:c+d[1]+d[3],height:h+d[0]+d[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 l(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(59),i=n(36),o=n(1274),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(59),i=n(36),o=n(657),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 d})),n.d(e,"addEndArrow",(function(){return f}));var r=n(2),i=n(270),o=Math.sin,a=Math.cos,s=Math.atan2,l=Math.PI;function u(t,e,n,r,u,c,h){var d=e.stroke,f=e.lineWidth,p=s(r-c,n-u),g=new i.Path({type:"path",canvas:t.get("canvas"),isArrowShape:!0,attrs:{path:"M"+10*a(l/6)+","+10*o(l/6)+" L0,0 L"+10*a(l/6)+",-"+10*o(l/6),stroke:d,lineWidth:f}});g.translate(u,c),g.rotateAtPoint(u,c,p),t.set(h?"startArrowShape":"endArrowShape",g)}function c(t,e,n,l,u,c,h){var d=e.startArrow,f=e.endArrow,p=e.stroke,g=e.lineWidth,v=h?d:f,m=v.d,y=v.fill,b=v.stroke,_=v.lineWidth,x=Object(r.__rest)(v,["d","fill","stroke","lineWidth"]),w=s(l-c,n-u);m&&(u-=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(u,c),O.rotateAtPoint(u,c,w),t.set(h?"startArrowShape":"endArrowShape",O)}function h(t,e,n,r,i){var l=s(r-e,n-t);return{dx:a(l)*i,dy:o(l)*i}}function d(t,e,n,r,i,o){"object"==typeof e.startArrow?c(t,e,n,r,i,o,!0):e.startArrow?u(t,e,n,r,i,o,!0):t.set("startArrowShape",null)}function f(t,e,n,r,i,o){"object"==typeof e.endArrow?c(t,e,n,r,i,o,!1):e.endArrow?u(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,"dataTransform",(function(){return u})),n.d(e,"getAxisInfo",(function(){return c})),n.d(e,"dataFilter",(function(){return h})),n.d(e,"createMarkerDimValueGetter",(function(){return d})),n.d(e,"numCalculate",(function(){return f}));var r=n(6),i=n(133),o=n(0),a=n(150);function s(t,e,n,o,a,s){var l=[],u=Object(i.isDimensionStacked)(e,o)?e.getCalculationInfo("stackResultDimension"):o,c=f(e,u,t),h=e.indicesOfNearest(u,c)[0];l[a]=e.get(n,h),l[s]=e.get(u,h);var d=e.get(o,h),p=r.getPrecision(e.get(o,h));return(p=Math.min(p,20))>=0&&(l[s]=+l[s].toFixed(p)),[l,d]}var l={min:Object(o.curry)(s,"min"),max:Object(o.curry)(s,"max"),average:Object(o.curry)(s,"average"),median:Object(o.curry)(s,"median")};function u(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=c(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),h=l[e.type](n,a.baseDataDim,a.valueDataDim,s,u);e.coord=h[0],e.value=h[1]}else{for(var d=[null!=e.xAxis?e.xAxis:e.radiusAxis,null!=e.yAxis?e.yAxis:e.angleAxis],p=0;p<2;p++)l[d[p]]&&(d[p]=f(n,n.mapDimension(i[p]),d[p]));e.coord=d}}return e}function c(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 h(t,e){return!(t&&t.containData&&e.coord&&!function(t){return!(isNaN(parseFloat(t.x))&&isNaN(parseFloat(t.y)))}(e))||t.containData(e.coord)}function d(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 f(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,"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 l})),n.d(e,"DEFAULT_TOOLTIP_OPTIONS",(function(){return u})),n.d(e,"DEFAULT_OPTIONS",(function(){return c}));var r=n(26),i=n(4),o="$$stock-range$$",a="trend",s="up",l="down",u={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:u,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,n){"use strict";n.r(e),n.d(e,"default",(function(){return s}));var r=n(1755),i=n(1756),o=n(1757),a=n(1758);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){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){var r=n(2043);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";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 l}));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 l(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 l})),n.d(e,"set",(function(){return u})),n.d(e,"add",(function(){return c})),n.d(e,"subtract",(function(){return h})),n.d(e,"multiply",(function(){return d})),n.d(e,"divide",(function(){return f})),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 M})),n.d(e,"lerp",(function(){return A})),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 D})),n.d(e,"rotateX",(function(){return R})),n.d(e,"rotateY",(function(){return N})),n.d(e,"rotateZ",(function(){return F})),n.d(e,"angle",(function(){return B})),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 $})),n.d(e,"dist",(function(){return X})),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 J}));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 l(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t}function u(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 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 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 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 M(t,e,n){var r=e[0],i=e[1],o=e[2],a=n[0],s=n[1],l=n[2];return t[0]=i*l-o*s,t[1]=o*a-r*l,t[2]=r*s-i*a,t}function A(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,l=a*(o-2)+o,u=a*(o-1),c=a*(3-2*o);return t[0]=e[0]*s+n[0]*l+r[0]*u+i[0]*c,t[1]=e[1]*s+n[1]*l+r[1]*u+i[1]*c,t[2]=e[2]*s+n[2]*l+r[2]*u+i[2]*c,t}function j(t,e,n,r,i,o){var a=1-o,s=a*a,l=o*o,u=s*a,c=3*o*s,h=3*l*a,d=l*o;return t[0]=e[0]*u+n[0]*c+r[0]*h+i[0]*d,t[1]=e[1]*u+n[1]*c+r[1]*h+i[1]*d,t[2]=e[2]*u+n[2]*c+r[2]*h+i[2]*d,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 D(t,e,n){var r=n[0],i=n[1],o=n[2],a=n[3],s=e[0],l=e[1],u=e[2],c=i*u-o*l,h=o*s-r*u,d=r*l-i*s,f=i*d-o*h,p=o*c-r*d,g=r*h-i*c,v=2*a;return c*=v,h*=v,d*=v,f*=2,p*=2,g*=2,t[0]=s+c+f,t[1]=l+h+p,t[2]=u+d+g,t}function R(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 F(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 B(t,e){var n=t[0],r=t[1],i=t[2],o=e[0],a=e[1],s=e[2],l=Math.sqrt(n*n+r*r+i*i)*Math.sqrt(o*o+a*a+s*s),u=l&&T(t,e)/l;return Math.acos(Math.min(Math.max(u,-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],l=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-l)<=r.EPSILON*Math.max(1,Math.abs(o),Math.abs(l))}var H,W=h,Y=d,$=f,X=x,q=w,Z=a,K=O,J=(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(112);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 l})),n.d(e,"getBackgroundRectPath",(function(){return u})),n.d(e,"getIntervalRectPath",(function(){return c})),n.d(e,"getFunnelPath",(function(){return h})),n.d(e,"getRectWithCornerRadius",(function(){return f}));var r=n(2),i=n(1),o=n(69);function a(t){var e,n,o,a,s,l,u=t.x,c=t.y,h=t.y0,d=t.size;Object(i.isArray)(c)?(o=(e=Object(r.__read)(c,2))[0],a=e[1]):(o=h,a=c),Object(i.isArray)(u)?(s=(n=Object(r.__read)(u,2))[0],l=n[1]):(s=u-d/2,l=u+d/2);var f=[{x:s,y:o},{x:s,y:a}];return f.push({x:l,y:a},{x:l,y:o}),f}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 l(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 u(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},u=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,d=n.isTransposed?n.getWidth():n.getHeight(),f=Object(r.__read)(l(c,Math.min(h,d)),4),p=f[0],g=f[1],v=f[2],m=f[3];a.push(["M",s.x,u.y+p]),0!==p&&a.push(["A",p,p,0,0,1,s.x+p,u.y]),a.push(["L",u.x-g,u.y]),0!==g&&a.push(["A",g,g,0,0,1,u.x,u.y+g]),a.push(["L",u.x,s.y-v]),0!==v&&a.push(["A",v,v,0,0,1,u.x-v,s.y]),a.push(["L",s.x+m,s.y]),0!==m&&a.push(["A",m,m,0,0,1,s.x,s.y-m])}else a.push(["M",s.x,s.y]),a.push(["L",u.x,s.y]),a.push(["L",u.x,u.y]),a.push(["L",s.x,u.y]),a.push(["L",s.x,s.y]);a.push(["z"])}if(n.isPolar){var y=n.getCenter(),b=Object(o.getAngle)(t,n),_=b.startAngle,x=b.endAngle;if("theta"===n.type||n.isTransposed){var w=function(t){return Math.pow(t,2)};p=Math.sqrt(w(y.x-e[0].x)+w(y.y-e[0].y)),g=Math.sqrt(w(y.x-e[2].x)+w(y.y-e[2].y));a=Object(o.getSectorPath)(y.x,y.y,p,n.startAngle,n.endAngle,g)}else a=Object(o.getSectorPath)(y.x,y.y,n.getRadius(),_,x)}return a}function c(t,e,n){var r=n.getWidth(),i=n.getHeight(),o="rect"===n.type,a=[],l=(t[2].x-t[1].x)/2,u=n.isTransposed?l*i/r:l*r/i;return"round"===e?(o?(a.push(["M",t[0].x,t[0].y+u]),a.push(["L",t[1].x,t[1].y-u]),a.push(["A",l,l,0,0,1,t[2].x,t[2].y-u]),a.push(["L",t[3].x,t[3].y+u]),a.push(["A",l,l,0,0,1,t[0].x,t[0].y+u])):(a.push(["M",t[0].x,t[0].y]),a.push(["L",t[1].x,t[1].y]),a.push(["A",l,l,0,0,1,t[2].x,t[2].y]),a.push(["L",t[3].x,t[3].y]),a.push(["A",l,l,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 d(t,e){return[e,t]}function f(t,e,n){var i,o,a,s,u,c,h,f=Object(r.__read)(Object(r.__spreadArray)([],Object(r.__read)(t),!1),4),p=f[0],g=f[1],v=f[2],m=f[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)(d(g,m),2))[0],m=i[1]),e.isReflect("y")&&(p=(o=Object(r.__read)(d(p,g),2))[0],g=o[1],v=(a=Object(r.__read)(d(v,m),2))[0],m=a[1]),e.isReflect("x")&&(p=(s=Object(r.__read)(d(p,m),2))[0],m=s[1],g=(u=Object(r.__read)(d(g,v),2))[0],v=u[1]);var O=[],S=function(t){return Math.abs(t)};return b=(c=Object(r.__read)(l([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 l})),n.d(e,"__metadata",(function(){return u})),n.d(e,"__awaiter",(function(){return c})),n.d(e,"__generator",(function(){return h})),n.d(e,"__createBinding",(function(){return d})),n.d(e,"__exportStar",(function(){return f})),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 l(t,e){return function(n,r){e(n,r,t)}}function u(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{l(r.next(t))}catch(t){o(t)}}function s(t){try{l(r.throw(t))}catch(t){o(t)}}function l(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}l((r=r.apply(t,e||[])).next())}))}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 d(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}function f(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(l,u):c(o[0][2],n)}catch(t){c(o[0][3],t)}var n}function l(t){s("next",t)}function u(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);var r=n(1227);n.d(e,"MapMouseEvent",(function(){return r.default}));var i=n(1228);n.d(e,"MapTouchEvent",(function(){return i.default}));var o=n(1229);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(49),a=n(329),s=n(40),l=n(10),u=n(75);function c(t){Object(l.defaultEmphasis)(t,"label",["show"])}var h=Object(l.makeInner)(),d=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(u.createTooltipMarkup)("section",{header:this.name,blocks:[Object(u.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(d,a.DataFormatMixin.prototype),e.default=d},function(t,e,n){"use strict";n.r(e);var r=n(616);n.d(e,"parsePath",(function(){return r.default}));var i=n(1029);n.d(e,"catmullRom2Bezier",(function(){return i.default}));var o=n(1031);n.d(e,"fillPath",(function(){return o.default}));var a=n(1032);n.d(e,"fillPathByDiff",(function(){return a.default}));var s=n(1033);n.d(e,"formatPath",(function(){return s.default}));var l=n(1034);n.d(e,"pathIntersection",(function(){return l.default}));var u=n(1035);n.d(e,"parsePathArray",(function(){return u.default}));var c=n(619);n.d(e,"parsePathString",(function(){return c.default}));var h=n(523);n.d(e,"path2Curve",(function(){return h.default}));var d=n(618);n.d(e,"path2Absolute",(function(){return d.default}));var f=n(617);n.d(e,"reactPath",(function(){return f.default}));var p=n(430);n.d(e,"getArcParams",(function(){return p.default}));var g=n(1036);n.d(e,"path2Segments",(function(){return g.default}));var v=n(620);n.d(e,"getLineIntersect",(function(){return v.default}));var m=n(1037);n.d(e,"isPolygonsIntersect",(function(){return m.default}));var y=n(524);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 l})),n.d(e,"getSmoothViolinPath",(function(){return u}));var r=n(1),i=n(172);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(u=t[i])||r.push(u)}return[r]}var s=[],l=[];for(i=0,o=t.length;i<o;i++){var u;a(u=t[i])?l.length&&((1!==l.length||n)&&s.push(l),l=[]):l.push(u)}return l.length&&s.push(l),s}function l(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 u(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 l=a.concat(s);return n.length&&l.push(["L",n[0].x,n[0].y]),l.push(["z"]),l}},function(t,e,n){"use strict";n.r(e);var r=n(0),i=n(1314),o=n(1315),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 l}));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 l(t){var e,n,s=[];t&&t.each?t.each((function(t){var l,u;t.parent!==e?(e=t.parent,n=0):n+=1;var c=Object(r.filter)(((null===(l=t.ancestors)||void 0===l?void 0:l.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===(u=t.children)||void 0===u?void 0:u.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(){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 l(t){return null!==t&&"object"==typeof t}var u=Object.prototype.toString;function c(t){return"[object Object]"===u.call(t)}function h(t){return"[object RegExp]"===u.call(t)}function d(t){var e=parseFloat(String(t));return e>=0&&Math.floor(e)===e&&isFinite(t)}function f(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===u?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 M(t,e){e=e||0;for(var n=t.length-e,r=new Array(n);n--;)r[n]=t[n+e];return r}function A(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]&&A(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=l(t),r=l(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 D(t,e){for(var n=0;n<t.length;n++)if(L(t[n],e))return n;return-1}function R(t){var e=!1;return function(){e||(e=!0,t.apply(this,arguments))}}var N=["component","directive","filter"],F=["beforeCreate","created","beforeMount","mounted","beforeUpdate","updated","beforeDestroy","destroyed","activated","deactivated","errorCaptured","serverPrefetch"],B={optionMergeStrategies:Object.create(null),silent:!1,productionTip:!1,devtools:!1,performance:!1,errorHandler:null,warnHandler:null,ignoredElements:[],keyCodes:Object.create(null),isReservedTag:k,isReservedAttr:k,isUnknownElement:k,getTagNamespace:j,parsePlatformTagName:P,mustUseProp:k,async:!0,_lifecycleHooks:F},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,$=Y&&WXEnvironment.platform.toLowerCase(),X=W&&window.navigator.userAgent.toLowerCase(),q=X&&/msie|trident/.test(X),Z=X&&X.indexOf("msie 9.0")>0,K=X&&X.indexOf("edge/")>0,J=(X&&X.indexOf("android"),X&&/iphone|ipad|ipod|ios/.test(X)||"ios"===$),Q=(X&&/chrome\/\d+/.test(X),X&&/phantomjs/.test(X),X&&X.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 lt=j,ut=0,ct=function(){this.id=ut++,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 dt(t){ht.push(t),ct.target=t}function ft(){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(l(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,l=a&&a.set;s&&!l||2!==arguments.length||(n=t[e]);var u=!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(),u&&(u.dep.depend(),Array.isArray(e)&&At(e))),e},set:function(e){var r=s?s.call(t):n;e===r||e!=e&&r!=r||s&&!l||(l?l.call(t,e):n=e,u=!i&&Ct(e),o.notify())}})}}function Tt(t,e,n){if(Array.isArray(t)&&d(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 Mt(t,e){if(Array.isArray(t)&&d(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 At(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)&&At(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=B.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?A(i,e):i}It.data=function(t,e,n){return n?kt(t,e,n):e&&"function"!=typeof e?t:kt(t,e)},F.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 A(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 A(i,t),e&&A(i,e),i},It.provide=kt;var Dt=function(t,e){return void 0===e?t:e};function Rt(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)?A({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=Rt(t,e.extends,n)),e.mixins))for(var r=0,i=e.mixins.length;r<i;r++)t=Rt(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]||Dt;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 Ft(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 l=Vt(String,i.type);(l<0||s<l)&&(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"!==Bt(e.type)?r.call(t):r}(r,i,t);var u=wt;Ot(!0),Ct(a),Ot(u)}return a}function Bt(t){var e=t&&t.toString().match(/^\s*function (\w+)/);return e?e[1]:""}function zt(t,e){return Bt(t)===Bt(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){dt();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{ft()}}function Gt(t,e,n,r,i){var o;try{(o=n?t.apply(e,n):t.call(e))&&!o._isVue&&f(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(B.errorHandler)try{return B.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,$t=!1,Xt=[],qt=!1;function Zt(){qt=!1;var t=Xt.slice(0);Xt.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),J&&setTimeout(j)},$t=!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 Jt=1,Qt=new MutationObserver(Zt),te=document.createTextNode(String(Jt));Qt.observe(te,{characterData:!0}),Yt=function(){Jt=(Jt+1)%2,te.data=String(Jt)},$t=!0}function ee(t,e){var n;if(Xt.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&&!l(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 l,u,c,h;for(l in t)u=t[l],c=e[l],h=ie(l),i(u)||(i(c)?(i(u.fns)&&(u=t[l]=oe(u,s)),a(h.once)&&(u=t[l]=o(h.name,u,h.capture)),n(h.name,u,h.capture,h.passive,h.params)):u!==c&&(c.fns=u,t[l]=c));for(l in e)i(t[l])&&r((h=ie(l)).name,e[l],h.capture)}function se(t,e,n){var r;t instanceof pt&&(t=t.data.hook||(t.data.hook={}));var s=t[e];function l(){n.apply(this,arguments),y(r.fns,l)}i(s)?r=oe([l]):o(s.fns)&&a(s.merged)?(r=s).fns.push(l):r=oe([s,l]),r.merged=!0,t[e]=r}function le(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 ue(t){return s(t)?[mt(t)]:Array.isArray(t)?function t(e,n){var r,l,u,c,h=[];for(r=0;r<e.length;r++)i(l=e[r])||"boolean"==typeof l||(u=h.length-1,c=h[u],Array.isArray(l)?l.length>0&&(ce((l=t(l,(n||"")+"_"+r))[0])&&ce(c)&&(h[u]=mt(c.text+l[0].text),l.shift()),h.push.apply(h,l)):s(l)?ce(c)?h[u]=mt(c.text+l):""!==l&&h.push(mt(l)):ce(l)&&ce(c)?h[u]=mt(c.text+l.text):(a(e._isVList)&&o(l.tag)&&i(l.key)&&o(n)&&(l.key="__vlist"+n+"_"+r+"__"),h.push(l)));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 l=t[o].default;n[o]="function"==typeof l?l.call(e):l}else 0}}return n}}function de(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,l=n[s]||(n[s]=[]);"template"===o.tag?l.push.apply(l,o.children||[]):l.push(o)}}for(var u in n)n[u].every(fe)&&delete n[u];return n}function fe(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 l in i={},t)t[l]&&"$"!==l[0]&&(i[l]=ge(e,l,t[l]))}else i={};for(var u in e)u in i||(i[u]=ve(e,u));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]:ue(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(l(t))if(st&&t[Symbol.iterator]){n=[];for(var u=t[Symbol.iterator](),c=u.next();!c.done;)n.push(e(c.value,n.length)),c=u.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=A(A({},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=B.keyCodes[e]||n;return i&&r&&!B.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(l(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||B.mustUseProp(e,s,a)?t.domProps||(t.domProps={}):t.attrs||(t.attrs={})}var l=O(a),u=E(a);l in o||u 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?A({},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 Me(t,e,n,r){e=e||{$stable:!n};for(var i=0;i<t.length;i++){var o=t[i];Array.isArray(o)?Me(o,e,n):o&&(o.proxy&&(o.fn.proxy=!0),e[o.key]=o.fn)}return r&&(e.$key=r),e}function Ae(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=D,t._m=Oe,t._f=be,t._k=xe,t._b=we,t._v=mt,t._e=vt,t._u=Me,t._g=Te,t._d=Ae,t._p=Ie}function ke(t,e,n,i,o){var s,l=this,u=o.options;_(i,"_uid")?(s=Object.create(i))._original=i:(s=i,i=i._original);var c=a(u._compiled),h=!c;this.data=t,this.props=e,this.children=n,this.parent=i,this.listeners=t.on||r,this.injections=he(u.inject,i),this.slots=function(){return l.$slots||pe(t.scopedSlots,l.$slots=de(n,i)),l.$slots},Object.defineProperty(this,"scopedSlots",{enumerable:!0,get:function(){return pe(t.scopedSlots,this.slots())}}),c&&(this.$options=u,this.$slots=this.slots(),this.$scopedSlots=pe(t.scopedSlots,this.$slots)),u._scopeId?this._c=function(t,e,n,r){var o=Be(s,t,e,n,r,h);return o&&!Array.isArray(o)&&(o.fnScopeId=u._scopeId,o.fnContext=i),o}:this._c=function(t,e,n,r){return Be(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 De={init:function(t,e){if(t.componentInstance&&!t.componentInstance._isDestroyed&&t.data.keepAlive){var n=t;De.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,l=!!(a&&!a.$stable||s!==r&&!s.$stable||a&&t.$scopedSlots.$key!==a.$key),u=!!(o||t.$options._renderChildren||l);t.$options._parentVnode=i,t.$vnode=i,t._vnode&&(t._vnode.parent=i);if(t.$options._renderChildren=o,t.$attrs=i.data.attrs||r,t.$listeners=n||r,e&&t.$options.props){Ot(!1);for(var c=t._props,h=t.$options._propKeys||[],d=0;d<h.length;d++){var f=h[d],p=t.$options.props;c[f]=Ft(f,p,e,t)}Ot(!0),t.$options.propsData=e}n=n||r;var g=t.$options._parentListeners;t.$options._parentListeners=n,Xe(t,n,g),u&&(t.$slots=de(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,Qe(r,"mounted")),t.data.keepAlive&&(n._isMounted?((e=r)._inactive=!1,en.push(e)):Je(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]);Qe(e,"deactivated")}}(e,!0):e.$destroy())}},Re=Object.keys(De);function Ne(t,e,n,s,u){if(!i(t)){var c=n.$options._base;if(l(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,u=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!==u&&(clearTimeout(u),u=null),null!==c&&(clearTimeout(c),c=null))},d=R((function(n){t.resolved=Ue(n,e),s?r.length=0:h(!0)})),p=R((function(e){o(t.errorComp)&&(t.error=!0,h(!0))})),g=t(d,p);return l(g)&&(f(g)?i(t.resolved)&&g.then(d,p):f(g.component)&&(g.component.then(d,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:u=setTimeout((function(){u=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,u);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 d=function(t,e,n){var r=e.options.props;if(!i(r)){var a={},s=t.attrs,l=t.props;if(o(s)||o(l))for(var u in r){var c=E(u);le(a,l,u,c,!0)||le(a,s,u,c,!1)}return a}}(e,t);if(a(t.options.functional))return function(t,e,n,i,a){var s=t.options,l={},u=s.props;if(o(u))for(var c in u)l[c]=Ft(c,u,e||r);else o(n.attrs)&&Le(l,n.attrs),o(n.props)&&Le(l,n.props);var h=new ke(n,l,a,i,t),d=s.render.call(null,h._c,h);if(d instanceof pt)return Pe(d,n,h.parent,s,h);if(Array.isArray(d)){for(var f=ue(d)||[],p=new Array(f.length),g=0;g<f.length;g++)p[g]=Pe(f[g],n,h.parent,s,h);return p}}(t,d,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<Re.length;n++){var r=Re[n],i=e[r],o=De[r];i===o||i&&i._merged||(e[r]=i?Fe(o,i):o)}}(e);var v=t.options.name||u;return new pt("vue-component-"+t.cid+(v?"-"+v:""),e,void 0,void 0,void 0,n,{Ctor:t,propsData:d,listeners:p,tag:u,children:s},h)}}}function Fe(t,e){var n=function(n,r){t(n,r),e(n,r)};return n._merged=!0,n}function Be(t,e,n,r,u,c){return(Array.isArray(n)||s(n))&&(u=r,r=n,n=void 0),a(c)&&(u=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=ue(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 u,c;if("string"==typeof e){var h;c=t.$vnode&&t.$vnode.ns||B.getTagNamespace(e),u=B.isReservedTag(e)?new pt(B.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 u=Ne(e,n,t,r);return Array.isArray(u)?u:o(u)?(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,l=e.children.length;s<l;s++){var u=e.children[s];o(u.tag)&&(i(u.ns)||a(r)&&"svg"!==u.tag)&&t(u,n,r)}}(u,c),o(n)&&function(t){l(t.style)&&re(t.style);l(t.class)&&re(t.class)}(n),u):vt()}(t,e,n,r,u)}var ze,Ve=null;function Ue(t,e){return(t.__esModule||st&&"Module"===t[Symbol.toStringTag])&&(t=t.default),l(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 $e(t,e){var n=ze;return function r(){var i=e.apply(null,arguments);null!==i&&n.$off(t,r)}}function Xe(t,e,n){ze=t,ae(e,n||{},We,Ye,$e,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 Je(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++)Je(t.$children[n]);Qe(t,"activated")}}function Qe(t,e){dt();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),ft()}var tn=[],en=[],nn={},rn=!1,on=!1,an=0;var sn=0,ln=Date.now;if(W&&!q){var un=window.performance;un&&"function"==typeof un.now&&ln()>document.createEvent("Event").timeStamp&&(ln=function(){return un.now()})}function cn(){var t,e;for(sn=ln(),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,Je(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&&Qe(r,"updated")}}(r),it&&B.devtools&&it.emit("flush")}var hn=0,dn=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()};dn.prototype.get=function(){var t;dt(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),ft(),this.cleanupDeps()}return t},dn.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))},dn.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},dn.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)},dn.prototype.run=function(){if(this.active){var t=this.get();if(t!==this.value||l(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)}}},dn.prototype.evaluate=function(){this.value=this.get(),this.dirty=!1},dn.prototype.depend=function(){for(var t=this.deps.length;t--;)this.deps[t].depend()},dn.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 fn={enumerable:!0,configurable:!0,get:j,set:j};function pn(t,e,n){fn.get=function(){return this[e][n]},fn.set=function(t){this[e][n]=t},Object.defineProperty(t,n,fn)}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=Ft(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){dt();try{return t.call(e,e)}catch(t){return Ut(t,e,"data()"),{}}finally{ft()}}(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 dn(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?(fn.get=r?yn(e):bn(n),fn.set=j):(fn.get=n.get?r&&!1!==n.cache?yn(e):bn(n.get):j,fn.set=n.set||j),Object.defineProperty(t,e,fn)}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&&A(t.extendOptions,r),(e=t.options=Rt(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=Rt(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=A({},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)&&Mn(n,o,r,i)}}}function Mn(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=Rt(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&&Xe(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=de(e._renderChildren,i),t.$scopedSlots=r,t._c=function(e,n,r,i){return Be(t,e,n,r,i,!1)},t.$createElement=function(e,n,r,i){return Be(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),Qe(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),Qe(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=Mt,t.prototype.$watch=function(t,e,n){if(c(e))return _n(this,t,e,n);(n=n||{}).user=!0;var r=new dn(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?M(n):n;for(var r=M(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){Qe(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),Qe(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 An=[String,RegExp,Array],In={KeepAlive:{name:"keep-alive",abstract:!0,props:{include:An,exclude:An,max:[String,Number]},created:function(){this.cache=Object.create(null),this.keys=[]},destroyed:function(){for(var t in this.cache)Mn(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,l=null==e.key?n.Ctor.cid+(n.tag?"::"+n.tag:""):e.key;a[l]?(e.componentInstance=a[l].componentInstance,y(s,l),s.push(l)):(a[l]=e,s.push(l),this.max&&s.length>parseInt(this.max)&&Mn(a,s[0],s,this._vnode)),e.data.keepAlive=!0}return e||t&&t[0]}}};!function(t){var e={get:function(){return B}};Object.defineProperty(t,"config",e),t.util={warn:lt,extend:A,mergeOptions:Rt,defineReactive:Et},t.set=Tt,t.delete=Mt,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,A(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=M(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=Rt(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"),Dn=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"),Rn="http://www.w3.org/1999/xlink",Nn=function(t){return":"===t.charAt(5)&&"xlink"===t.slice(0,5)},Fn=function(t){return Nn(t)?t.slice(6,t.length):""},Bn=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):l(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),$n=function(t){return Wn(t)||Yn(t)};var Xn=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){Jn(e)},update:function(t,e){t.data.ref!==e.data.ref&&(Jn(t,!0),Jn(e))},destroy:function(t){Jn(t,!0)}};function Jn(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 Qn=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,Qn)}};function ir(t,e){(t.data.directives||e.data.directives)&&function(t,e){var n,r,i,o=t===Qn,a=e===Qn,s=ar(t.data.directives,t.context),l=ar(e.data.directives,e.context),u=[],c=[];for(n in l)r=s[n],i=l[n],r?(i.oldValue=r.value,i.oldArg=r.arg,lr(i,"update",e,t),i.def&&i.def.componentUpdated&&c.push(i)):(lr(i,"bind",e,t),i.def&&i.def.inserted&&u.push(i));if(u.length){var h=function(){for(var n=0;n<u.length;n++)lr(u[n],"inserted",e,t)};o?se(e,"insert",h):h()}c.length&&se(e,"postpatch",(function(){for(var n=0;n<c.length;n++)lr(c[n],"componentUpdated",e,t)}));if(!o)for(n in s)l[n]||lr(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 lr(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 ur=[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,l=t.data.attrs||{},u=e.data.attrs||{};for(r in o(u.__ob__)&&(u=e.data.attrs=A({},u)),u)a=u[r],l[r]!==a&&hr(s,r,a);for(r in(q||K)&&u.value!==l.value&&hr(s,"value",u.value),l)i(u[r])&&(Nn(r)?s.removeAttributeNS(Rn,Fn(r)):Pn(r)||s.removeAttribute(r))}}function hr(t,e,n){t.tagName.indexOf("-")>-1?dr(t,e,n):Dn(e)?Bn(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 Bn(e)||"false"===e?"false":"contenteditable"===t&&Ln(e)?e:"true"}(e,n)):Nn(e)?Bn(n)?t.removeAttributeNS(Rn,Fn(e)):t.setAttributeNS(Rn,e,n):dr(t,e,n)}function dr(t,e,n){if(Bn(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 fr={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),l=n._transitionClasses;o(l)&&(s=Un(s,Gn(l))),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=$t&&!(Q&&Number(Q[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||{},l=e.data.domProps||{};for(n in o(l.__ob__)&&(l=e.data.domProps=A({},l)),s)n in l||(a[n]="");for(n in l){if(r=l[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 u=i(r)?"":String(r);Cr(a,u)&&(a.value=u)}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 Mr(t){var e=Ar(t.style);return t.staticStyle?A(t.staticStyle,e):e}function Ar(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=Dr(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"],Dr=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 Rr(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,l=e.elm,u=r.staticStyle,c=r.normalizedStyle||r.style||{},h=u||c,d=Ar(e.data.style)||{};e.data.normalizedStyle=o(d.__ob__)?A({},d):d;var f=function(t,e){var n,r={};if(e)for(var i=t;i.componentInstance;)(i=i.componentInstance._vnode)&&i.data&&(n=Mr(i.data))&&A(r,n);(n=Mr(t.data))&&A(r,n);for(var o=t;o=o.parent;)o.data&&(n=Mr(o.data))&&A(r,n);return r}(e,!0);for(s in h)i(f[s])&&Pr(l,s,"");for(s in f)(a=f[s])!==h[s]&&Pr(l,s,null==a?"":a)}}var Nr={create:Rr,update:Rr},Fr=/\s+/;function Br(t,e){if(e&&(e=e.trim()))if(t.classList)e.indexOf(" ")>-1?e.split(Fr).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(Fr).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&&A(e,Ur(t.name||"v")),A(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",$r="animationend";Gr&&(void 0===window.ontransitionend&&void 0!==window.onwebkittransitionend&&(Hr="WebkitTransition",Wr="webkitTransitionEnd"),void 0===window.onanimationend&&void 0!==window.onwebkitanimationend&&(Yr="WebkitAnimation",$r="webkitAnimationEnd"));var Xr=W?window.requestAnimationFrame?window.requestAnimationFrame.bind(window):setTimeout:function(t){return t()};function qr(t){Xr((function(){Xr(t)}))}function Zr(t,e){var n=t._transitionClasses||(t._transitionClasses=[]);n.indexOf(e)<0&&(n.push(e),Br(t,e))}function Kr(t,e){t._transitionClasses&&y(t._transitionClasses,e),zr(t,e)}function Jr(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:$r,l=0,u=function(){t.removeEventListener(s,c),n()},c=function(e){e.target===t&&++l>=a&&u()};setTimeout((function(){l<a&&u()}),o+1),t.addEventListener(s,c)}var Qr=/\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(", "),l=(r[Yr+"Duration"]||"").split(", "),u=ei(s,l),c=0,h=0;return"transition"===e?a>0&&(n="transition",c=a,h=o.length):"animation"===e?u>0&&(n="animation",c=u,h=l.length):h=(n=(c=Math.max(a,u))>0?a>u?"transition":"animation":null)?"transition"===n?o.length:l.length:0,{type:n,timeout:c,propCount:h,hasTransform:"transition"===n&&Qr.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,u=r.enterClass,c=r.enterToClass,h=r.enterActiveClass,d=r.appearClass,f=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 M=T&&d?d:u,A=T&&p?p:h,I=T&&f?f:c,j=T&&_||v,k=T&&"function"==typeof x?x:m,P=T&&w||y,L=T&&O||b,D=g(l(S)?S.enter:S);0;var N=!1!==a&&!Z,F=ai(k),B=n._enterCb=R((function(){N&&(Kr(n,I),Kr(n,A)),B.cancelled?(N&&Kr(n,M),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,B)})),j&&j(n),N&&(Zr(n,M),Zr(n,A),qr((function(){Kr(n,M),B.cancelled||(Zr(n,I),F||(oi(D)?setTimeout(B,D):Jr(n,s,B)))}))),t.data.show&&(e&&e(),k&&k(n,B)),N||F||B()}}}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,u=r.leaveClass,c=r.leaveToClass,h=r.leaveActiveClass,d=r.beforeLeave,f=r.leave,p=r.afterLeave,v=r.leaveCancelled,m=r.delayLeave,y=r.duration,b=!1!==a&&!Z,_=ai(f),x=g(l(y)?y.leave:y);0;var w=n._leaveCb=R((function(){n.parentNode&&n.parentNode._pending&&(n.parentNode._pending[t.key]=null),b&&(Kr(n,c),Kr(n,h)),w.cancelled?(b&&Kr(n,u),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),d&&d(n),b&&(Zr(n,u),Zr(n,h),qr((function(){Kr(n,u),w.cancelled||(Zr(n,c),_||(oi(x)?setTimeout(w,x):Jr(n,s,w)))}))),f&&f(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 li=function(t){var e,n,r={},l=t.modules,u=t.nodeOps;for(e=0;e<tr.length;++e)for(r[tr[e]]=[],n=0;n<l.length;++n)o(l[n][tr[e]])&&r[tr[e]].push(l[n][tr[e]]);function c(t){var e=u.parentNode(t);o(e)&&u.removeChild(e,t)}function h(t,e,n,i,s,l,c){if(o(t.elm)&&o(l)&&(t=l[c]=yt(t)),t.isRootInsert=!s,!function(t,e,n,i){var s=t.data;if(o(s)){var l=o(t.componentInstance)&&s.keepAlive;if(o(s=s.hook)&&o(s=s.init)&&s(t,!1),o(t.componentInstance))return d(t,e),f(n,t.elm,i),a(l)&&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](Qn,s);e.push(s);break}f(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?u.createElementNS(t.ns,v):u.createElement(v,t),y(t),p(t,g,e),o(h)&&m(t,e),f(n,t.elm,i)):a(t.isComment)?(t.elm=u.createComment(t.text),f(n,t.elm,i)):(t.elm=u.createTextNode(t.text),f(n,t.elm,i))}}function d(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)):(Jn(t),e.push(t))}function f(t,e,n){o(t)&&(o(n)?u.parentNode(n)===t&&u.insertBefore(t,e,n):u.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)&&u.appendChild(t.elm,u.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](Qn,t);o(e=t.data.hook)&&(o(e.create)&&e.create(Qn,t),o(e.insert)&&n.push(t))}function y(t){var e;if(o(e=t.fnScopeId))u.setStyleScope(t.elm,e);else for(var n=t;n;)o(e=n.context)&&o(e=e.$options._scopeId)&&u.setStyleScope(t.elm,e),n=n.parent;o(e=qe)&&e!==t.context&&e!==t.fnContext&&o(e=e.$options._scopeId)&&u.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,l,c){if(t!==e){o(e.elm)&&o(s)&&(e=s[l]=yt(e));var d=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 f,p=e.data;o(p)&&o(f=p.hook)&&o(f=f.prepatch)&&f(t,e);var v=t.children,m=e.children;if(o(p)&&g(e)){for(f=0;f<r.update.length;++f)r.update[f](t,e);o(f=p.hook)&&o(f=f.update)&&f(t,e)}i(e.text)?o(v)&&o(m)?v!==m&&function(t,e,n,r,a){var s,l,c,d=0,f=0,p=e.length-1,g=e[0],v=e[p],m=n.length-1,y=n[0],_=n[m],w=!a;for(0;d<=p&&f<=m;)i(g)?g=e[++d]:i(v)?v=e[--p]:er(g,y)?(S(g,y,r,n,f),g=e[++d],y=n[++f]):er(v,_)?(S(v,_,r,n,m),v=e[--p],_=n[--m]):er(g,_)?(S(g,_,r,n,m),w&&u.insertBefore(t,g.elm,u.nextSibling(v.elm)),g=e[++d],_=n[--m]):er(v,y)?(S(v,y,r,n,f),w&&u.insertBefore(t,v.elm,g.elm),v=e[--p],y=n[++f]):(i(s)&&(s=nr(e,d,p)),i(l=o(y.key)?s[y.key]:O(y,e,d,p))?h(y,r,t,g.elm,!1,n,f):er(c=e[l],y)?(S(c,y,r,n,f),e[l]=void 0,w&&u.insertBefore(t,c.elm,g.elm)):h(y,r,t,g.elm,!1,n,f),y=n[++f]);d>p?b(t,i(n[m+1])?null:n[m+1].elm,n,f,m,r):f>m&&x(0,e,d,p)}(d,v,m,n,c):o(m)?(o(t.text)&&u.setTextContent(d,""),b(d,null,m,0,m.length-1,n)):o(v)?x(0,v,0,v.length-1):o(t.text)&&u.setTextContent(d,""):t.text!==e.text&&u.setTextContent(d,e.text),o(p)&&o(f=p.hook)&&o(f=f.postpatch)&&f(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,l=e.data,u=e.children;if(r=r||l&&l.pre,e.elm=t,a(e.isComment)&&o(e.asyncFactory))return e.isAsyncPlaceholder=!0,!0;if(o(l)&&(o(i=l.hook)&&o(i=i.init)&&i(e,!0),o(i=e.componentInstance)))return d(e,n),!0;if(o(s)){if(o(u))if(t.hasChildNodes())if(o(i=l)&&o(i=i.domProps)&&o(i=i.innerHTML)){if(i!==t.innerHTML)return!1}else{for(var c=!0,h=t.firstChild,f=0;f<u.length;f++){if(!h||!T(h,u[f],n,r)){c=!1;break}h=h.nextSibling}if(!c||h)return!1}else p(e,u,n);if(o(l)){var g=!1;for(var v in l)if(!E(v)){g=!0,m(e,n);break}!g&&l.class&&re(l.class)}}else t.data!==e.text&&(t.data=e.text);return!0}return function(t,e,n,s){if(!i(e)){var l,c=!1,d=[];if(i(t))c=!0,h(e,d);else{var f=o(t.nodeType);if(!f&&er(t,e))S(t,e,d,null,null,s);else{if(f){if(1===t.nodeType&&t.hasAttribute("data-server-rendered")&&(t.removeAttribute("data-server-rendered"),n=!0),a(n)&&T(t,e,d))return C(e,d,!0),t;l=t,t=new pt(u.tagName(l).toLowerCase(),{},[],void 0,l)}var p=t.elm,v=u.parentNode(p);if(h(e,d,p._leaveCb?null:v,u.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](Qn,m);var O=m.data.hook.insert;if(O.merged)for(var E=1;E<O.fns.length;E++)O.fns[E]()}else Jn(m);m=m.parent}o(v)?x(0,[t],0,0):o(t.tag)&&_(t)}}return C(e,d,c),e.elm}o(t)&&_(t)}}({nodeOps:Zn,modules:[fr,vr,Or,Er,Nr,W?{create:si,activate:si,remove:function(t,e){!0!==t.data.show?ii(t,e):e()}}:{}].concat(ur)});Z&&document.addEventListener("selectionchange",(function(){var t=document.activeElement;t&&t.vmodel&&vi(t,"input")}));var ui={inserted:function(t,e,n,r){"select"===n.tag?(r.elm&&!r.elm._vOptions?se(n,"postpatch",(function(){ui.componentUpdated(t,e,n)})):ci(t,e,n.context),t._vOptions=[].map.call(t.options,fi)):("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,fi);if(i.some((function(t,e){return!L(t,r[e])})))(t.multiple?e.value.some((function(t){return di(t,i)})):e.value!==e.oldValue&&di(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,l=t.options.length;s<l;s++)if(a=t.options[s],i)o=D(r,fi(a))>-1,a.selected!==o&&(a.selected=o);else if(L(fi(a),r))return void(t.selectedIndex!==s&&(t.selectedIndex=s));i||(t.selectedIndex=-1)}}function di(t,e){return e.every((function(e){return!L(e,t)}))}function fi(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:ui,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 l=(o.data||(o.data={})).transition=xi(this),u=this._vnode,c=_i(u);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=A({},l);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 u;var d,f=function(){d()};se(l,"afterEnter",f),se(l,"enterCancelled",f),se(h,"delayLeave",(function(t){d=t}))}}return i}}},Ei=A({tag:String,moveClass:String},bi);function Ti(t){t.elm._moveCb&&t.elm._moveCb(),t.elm._enterCb&&t.elm._enterCb()}function Mi(t){t.data.newPos=t.elm.getBoundingClientRect()}function Ai(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 l=i[s];if(l.tag)if(null!=l.key&&0!==String(l.key).indexOf("__vlist"))o.push(l),n[l.key]=l,(l.data||(l.data={})).transition=a;else;}if(r){for(var u=[],c=[],h=0;h<r.length;h++){var d=r[h];d.data.transition=a,d.data.pos=d.elm.getBoundingClientRect(),n[d.key]?u.push(d):c.push(d)}this.kept=t(e,null,u),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(Mi),t.forEach(Ai),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)})),Br(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=$n,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($n(t))return!1;if(t=t.toLowerCase(),null!=Xn[t])return Xn[t];var e=document.createElement(t);return t.indexOf("-")>-1?Xn[t]=e.constructor===window.HTMLUnknownElement||e.constructor===window.HTMLElement:Xn[t]=/HTMLUnknownElement/.test(e.toString())},A(On.options.directives,yi),A(On.options.components,Ii),On.prototype.__patch__=W?li: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),Qe(t,"beforeMount"),r=function(){t._update(t._render(),n)},new dn(t,r,j,{before:function(){t._isMounted&&!t._isDestroyed&&Qe(t,"beforeUpdate")}},!0),n=!1,null==t.$vnode&&(t._isMounted=!0,Qe(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(){B.devtools&&it&&it.emit("init",On)}),0),e.default=On}.call(this,n(322),n(893).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,l=void 0===s?[]:s,u=t.values,c=void 0===u?[]:u,h=t.callback;this.type=i,this.scales=l,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(114),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],l=(1+a)/(0===e?1:e)-a,u=(1+s)/(0===t?1:t)-s,c={x:(l+a)*n,y:(u+s)*i};return{start:c,end:{x:c.x+l,y:c.y+u}}},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 l=n.axes,u=Object(r.__read)(s[0].getXYFields(),2),c=u[0],h=u[1],d=Object(a.getAxisOption)(l,c),f=Object(a.getAxisOption)(l,h);!1!==d&&(n.axes[c]=this.getXAxisOption(c,l,d,e)),!1!==f&&(n.axes[h]=this.getYAxisOption(h,l,f,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(333),o=n(62),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(87),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),l=o.getText(s);this.setItemsState(t,l,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,l=o.component;this.allowSetStateByElement(l)&&this.allowSetStateByItem(s,l)&&this.setItemState(l,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";n.r(e);var r=n(5),i=n(6),o=n(48),a=n(211),s=n(113),l=i.round,u=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:l(r[0]-e,i)}):o.push({value:n[0]}));for(var a=r[0];a<=r[1]&&(o.push({value:a}),(a=l(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:l(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,u=[],c=(o.value-a.value)/t;s<t-1;){var h=l(a.value+(s+1)*c);h>r[0]&&h<r[1]&&u.push(h),s++}n.push(u)}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=l(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=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]=l(Math.floor(e[0]/i)*i)),t.fixMax||(e[1]=l(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(u),e.default=u},function(t,e,n){var r=n(1931);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(117),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],l=t[5],u=t[6],c=t[7],h=t[8],d=e[0],f=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]=d*r+f*a+p*u,n[1]=d*i+f*s+p*c,n[2]=d*o+f*l+p*h,n[3]=g*r+v*a+m*u,n[4]=g*i+v*s+m*c,n[5]=g*o+v*l+m*h,n[6]=y*r+b*a+_*u,n[7]=y*i+b*s+_*c,n[8]=y*o+b*l+_*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],l=t[6],u=t[7],c=t[8],h=c*a-s*u,d=-c*o+s*l,f=u*o-a*l,p=n*h+r*d+i*f;return p?(p=1/p,e[0]=h*p,e[1]=(-c*r+i*u)*p,e[2]=(s*r-i*a)*p,e[3]=d*p,e[4]=(c*n-i*l)*p,e[5]=(-s*n+i*o)*p,e[6]=f*p,e[7]=(-u*n+r*l)*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(83),i=n(251);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 l=[-s[1],s[0]];i.normalize(l,l);var u=[o-t,a-e];return Math.abs(i.dot(u,l))},tangentAngle:function(t,e,n,r){return Math.atan2(r-e,n-t)}}},function(t,e,n){"use strict";function r(t,e,n){var r=null==e.x?0:e.x,i=null==e.x2?1:e.x2,o=null==e.y?0:e.y,a=null==e.y2?0:e.y2;return e.global||(r=r*n.width+n.x,i=i*n.width+n.x,o=o*n.height+n.y,a=a*n.height+n.y),r=isNaN(r)?0:r,i=isNaN(i)?1:i,o=isNaN(o)?0:o,a=isNaN(a)?0:a,t.createLinearGradient(r,o,i,a)}function i(t,e,n){var r=n.width,i=n.height,o=Math.min(r,i),a=null==e.x?.5:e.x,s=null==e.y?.5:e.y,l=null==e.r?.5:e.r;return e.global||(a=a*r+n.x,s=s*i+n.y,l*=o),t.createRadialGradient(a,s,0,a,s,l)}function o(t,e,n){for(var o="radial"===e.type?i(t,e,n):r(t,e,n),a=e.colorStops,s=0;s<a.length;s++)o.addColorStop(a[s].offset,a[s].color);return o}function a(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 s(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 l=document.defaultView.getComputedStyle(t);return(t[i]||s(l[r])||s(t.style[r]))-(s(l[o])||0)-(s(l[a])||0)|0}n.r(e),n.d(e,"createLinearGradient",(function(){return r})),n.d(e,"createRadialGradient",(function(){return i})),n.d(e,"getCanvasGradient",(function(){return o})),n.d(e,"isClipPathChanged",(function(){return a})),n.d(e,"getSize",(function(){return l}))},function(t,e,n){"use strict";n.r(e),n.d(e,"updateLabelLinePoints",(function(){return M})),n.d(e,"limitTurnAngle",(function(){return j})),n.d(e,"limitSurfaceAngle",(function(){return k})),n.d(e,"setLabelLineStyle",(function(){return D})),n.d(e,"getLabelLineStatesModels",(function(){return R}));var r=n(52),i=n(36),o=n(175),a=n(138),s=n(314),l=n(47),u=n(0),c=n(41),h=n(20),d=n(13),f=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,l,u){a-=t,l-=e;var c=Math.sqrt(a*a+l*l),h=(a/=c)*n+t,d=(l/=c)*n+e;if(Math.abs(r-i)%f<1e-4)return u[0]=h,u[1]=d,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+=f);var g=Math.atan2(l,a);if(g<0&&(g+=f),g>=r&&g<=i||g+f>=r&&g+f<=i)return u[0]=h,u[1]=d,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-l)*(m-l),x=(y-a)*(y-a)+(b-l)*(b-l);return _<x?(u[0]=v,u[1]=m,Math.sqrt(_)):(u[0]=y,u[1]=b,Math.sqrt(x))}function y(t,e,n,r,i,o,a,s){var l=i-t,u=o-e,c=n-t,h=r-e,d=Math.sqrt(c*c+h*h),f=(l*(c/=d)+u*(h/=d))/d;s&&(f=Math.min(Math.max(f,0),1)),f*=d;var p=a[0]=t+f*c,g=a[1]=e+f*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,l=e+r,u=a[0]=Math.min(Math.max(i,t),s),c=a[1]=Math.min(Math.max(o,e),l);return Math.sqrt((u-i)*(u-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,u=0,c=1/0,h=e.data,d=t.x,f=t.y,g=0;g<h.length;){var v=h[g++];1===g&&(s=o=h[g],u=a=h[g+1]);var x=c;switch(v){case p.M:o=s=h[g++],a=u=h[g++];break;case p.L:x=y(o,a,h[g],h[g+1],d,f,_,!0),o=h[g++],a=h[g++];break;case p.C:x=Object(l.cubicProjectPoint)(o,a,h[g++],h[g++],h[g++],h[g++],h[g],h[g+1],d,f,_),o=h[g++],a=h[g++];break;case p.Q:x=Object(l.quadraticProjectPoint)(o,a,h[g++],h[g++],h[g],h[g+1],d,f,_),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 M=!!(1-h[g++]);r=Math.cos(E)*S+w,i=Math.sin(E)*C+O,g<=1&&(s=r,u=i),x=m(w,O,C,E,E+T,M,(d-w)*C/S+w,f,_),o=Math.cos(E+T)*S+w,a=Math.sin(E+T)*C+O;break;case p.R:x=b(s=o=h[g++],u=a=h[g++],h[g++],h[g++],d,f,_);break;case p.Z:x=y(o,a,s,u,d,f,_,!0),o=s,a=u}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 M(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]],l=a.candidates||g,u=o.getBoundingRect().clone();u.applyTransform(o.getComputedTransform());var h=1/0,d=a.anchor,f=t.getComputedTransform(),p=f&&Object(c.invert)([],f),m=e.get("length2")||0;d&&C.copy(d);for(var y=0;y<l.length;y++){v(l[y],0,u,O,E),r.default.scaleAndAdd(S,O,E,m),S.transform(p);var b=t.getBoundingRect(),_=d?d.distance(S):t instanceof i.default?w(S,t.path,C):x(S,b,C);_<h&&(h=_,S.transform(f),C.transform(f),C.toArray(s[0]),S.toArray(s[1]),O.toArray(s[2]))}j(s,e.get("minTurnAngle")),n.setShape({points:s})}}}var A=[],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,A,!1);I.fromArray(A),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,A,!1);I.fromArray(A);var s=Math.PI/2,l=s+Math.acos(T.dot(e))-n;if(l>=s)r.default.copy(I,C);else{I.scaleAndAdd(T,a/Math.tan(Math.PI/2-l));var u=C.x!==S.x?(I.x-S.x)/(C.x-S.x):(I.y-S.y)/(C.y-S.y);if(isNaN(u))return;u<0?r.default.copy(I,S):u>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),l=h.lerp([],r[1],r[2],a/o),u=h.lerp([],s,l,.5);t.bezierCurveTo(s[0],s[1],s[0],s[1],u[0],u[1]),t.bezierCurveTo(l[0],l[1],l[0],l[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 D(t,e,n){var r=t.getTextGuideLine(),i=t.getTextContent();if(i){for(var a=e.normal,s=a.get("show"),l=i.ignore,c=0;c<d.DISPLAY_STATES.length;c++){var h=d.DISPLAY_STATES[c],f=e[h],p="normal"===h;if(f){var g=f.get("show");if((p?l:Object(u.retrieve2)(i.states[h]&&i.states[h].ignore,l))||!Object(u.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||!l&&s||P(r,!0,"normal",e.normal),t.stateProxy&&(r.stateProxy=t.stateProxy)),P(r,!1,h,f)}}if(r){Object(u.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 R(t,e){e=e||"labelLine";for(var n={normal:t.getModel(e)},r=0;r<d.SPECIAL_STATES.length;r++){var i=d.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),n.d(e,"ELEMENT_ANIMATABLE_PROPS",(function(){return d})),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(10),i=n(0),o=n(362),a=n(97),s=n(23),l=n(36),u=n(119),c={position:["x","y"],scale:["scaleX","scaleY"],origin:["originX","originY"]},h=Object(i.keys)(c),d=(Object(i.reduce)(u.TRANSFORMABLE_PROPS,(function(t,e){return t[e]=1,t}),{}),u.TRANSFORMABLE_PROPS.join(", "),["","style","shape","extra"]),f=Object(r.makeInner)();function p(t,e,n,r,o){var a=t+"Animation",l=Object(s.getAnimationConfig)(t,r,o)||{},u=f(e).userDuring;return l.duration>0&&(l.during=u?Object(i.bind)(x,{el:e,userDuring:u}):null,l.setToFinal=!0,l.scope=t),Object(i.extend)(l,n[a]),l}function g(t,e,n,o){var s=(o=o||{}).dataIndex,g=o.isInit,m=o.clearStyle,b=n.isAnimationEnabled(),_=f(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<u.TRANSFORMABLE_PROPS.length;r++){var s=u.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)?u.TRANSFORMABLE_PROPS:Object(r.normalizeToArray)(i||[]),a=0;a<o.length;a++){var s=o[a];if("style"!==s&&"shape"!==s&&"extra"!==s){var l=t[s];0,n[s]=l}}}(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 l=n.transition,u=e.transition;if(l&&!y(l)){var c=Object(r.normalizeToArray)(l);!a&&(a=o.style={});for(var h=0;h<c.length;h++){var d=c[h],f=s[d];a[d]=f}}else if(t.getAnimationStyleProps&&(y(u)||y(l)||Object(i.indexOf)(u,"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++){d=v[h];if(g[d]){f=s[d];a[d]=f}}}}}}(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 l.default&&Object(i.hasOwn)(e,"autoBatch")&&(t.autoBatch=e.autoBatch)}(t,e),b)if(g){var E={};Object(i.each)(d,(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=f(t).leaveToProps,r=0;r<d.length;r++){var o=d[r],a=o?e[o]:e;a&&a.leaveTo&&(n||(n=f(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=f(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=f(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,l=e[t];if(l){var u=n.transition,c=a.transition;if(c)if(!s&&(s=o[t]={}),y(c))Object(i.extend)(s,l);else for(var h=Object(r.normalizeToArray)(c),d=0;d<h.length;d++){var f=l[g=h[d]];s[g]=f}else if(y(u)||Object(i.indexOf)(u,t)>=0){!s&&(s=o[t]={});var p=Object(i.keys)(l);for(d=0;d<p.length;d++){var g;f=l[g=p[d]];S(a[g],f)&&(s[g]=f)}}}}}function O(t,e,n){var r=e[t];if(r)for(var a=n[t]={},s=Object(i.keys)(r),l=0;l<s.length;l++){var u=s[l];a[u]=Object(o.cloneValue)(r[u])}}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 l})),n.d(e,"isColumn",(function(){return u})),n.d(e,"getGeometryOption",(function(){return c})),n.d(e,"transformObjectToArray",(function(){return h})),n.d(e,"getYAxisWithDefault",(function(){return d}));var r=n(2),i=n(1),o=n(4),a=n(280),s=n(105);function l(t){return Object(i.get)(t,"geometry")===a.DualAxesGeometry.Line}function u(t){return Object(i.get)(t,"geometry")===a.DualAxesGeometry.Column}function c(t,e,n){return u(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 d(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 l})),n.d(e,"RAW_FIELDS",(function(){return u})),n.d(e,"DEFAULT_OPTIONS",(function(){return c}));var r=n(26),i=n(4),o=n(197),a="ancestor-node",s="value",l="path",u=[l,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 l})),n.d(e,"customInnerStore",(function(){return u}));var r=n(5),i=n(148),o=n(10),a=n(54),s={color:"fill",borderColor:"stroke"},l={symbol:1,symbolSize:1,symbolKeepAspect:1,legendIcon:1,visualMeta:1,liftZ:1,decal:1},u=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=u(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 f})),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(181),i=n(283),o=n(135),a=n(251),s=n(187),l=n(320),u=Math.PI,c=u/4,h=u/180,d=180/u;function f(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(l.default)(Number.isFinite(i)&&Number.isFinite(e)),Object(l.default)(Number.isFinite(o)&&o>=-90&&o<=90,"invalid latitude");var a=o*h;return[(e*=512)*(i*h+u)/(2*u),e*(u-Math.log(Math.tan(c+.5*a)))/(2*u)]}function v(t,e){var n=Object(r.default)(t,2),i=n[0],o=n[1],a=i/(e*=512)*(2*u)-u,s=2*(Math.atan(Math.exp(u-o/e*(2*u)))-c);return[a*d,s*d]}function m(t){var e=t.latitude;return Object(l.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:f(r),Object(l.default)(Number.isFinite(e)&&Number.isFinite(n)&&Number.isFinite(i));var s={},u=512*i,c=Math.cos(e*h),d=u/360,p=d/c,g=u/4003e4/c;if(s.pixelsPerMeter=[g,-g,g],s.metersPerPixel=[1/g,-1/g,1/g],s.pixelsPerDegree=[d,-p,g],s.degreesPerPixel=[1/d,-1/p,1/g],a){var v=h*Math.tan(e*h)/c,m=d*v/2,y=u/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),l=s[0],u=s[1],c=s[2],h=y({longitude:i,latitude:o,scale:1,highPrecision:!0}),d=h.pixelsPerMeter,f=h.pixelsPerMeter2,p=g(t,1);p[0]+=l*(d[0]+f[0]*u),p[1]+=u*(d[1]+f[1]*u);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,l=t.center,u=void 0===l?null:l,c=t.flipY,d=void 0!==c&&c,f=Object(i.createMat4)();return o.translate(f,f,[0,0,-a]),o.scale(f,f,[1,1,1/e]),o.rotateX(f,f,-n*h),o.rotateZ(f,f,r*h),d&&o.scale(f,f,[1,-1,1]),u&&o.translate(f,f,s.negate([],u)),f}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,l=void 0===s?1:s,u=t.farZMultiplier,c=void 0===u?1:u,d=a*h,f=Math.atan(.5/i),p=Math.sin(f)*i/Math.sin(Math.PI/2-d-f),g=Math.cos(Math.PI/2-d)*p+i;return{fov:2*Math.atan(n/2/i),aspect:e/n,focalDistance:i,near:l,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,l=i.near,u=i.far;return o.perspective([],a,s,l,u)}function O(t,e){var n=Object(r.default)(t,3),o=n[0],a=n[1],s=n[2],u=void 0===s?0:s;return Object(l.default)(Number.isFinite(o)&&Number.isFinite(a)&&Number.isFinite(u)),Object(i.transformVector)(e,[o,a,u,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],u=o[1],c=o[2];if(Object(l.default)(Number.isFinite(s)&&Number.isFinite(u),"invalid pixel coordinate"),Number.isFinite(c)){var h=Object(i.transformVector)(e,[s,u,c,1]);return h}var d=Object(i.transformVector)(e,[s,u,0,1]),f=Object(i.transformVector)(e,[s,u,1,1]),p=d[2],g=f[2],v=p===g?0:((n||0)-p)/(g-p);return a.lerp([],d,f,v)}},function(t,e,n){"use strict";var r=n(894),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 l(t){if("[object Object]"!==i.call(t))return!1;var e=Object.getPrototypeOf(t);return null===e||e===Object.prototype}function u(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:l,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:u,isStream:function(t){return s(t)&&u(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){l(e[r])&&l(n)?e[r]=t(e[r],n):l(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 l=t[s][1];if(!(i&&r.indexOf(i,l)>=0||o&&r.indexOf(o,l)<0)){var u=n.getShallow(l,e);null!=u&&(a[t[s][0]]=u)}}return a}}},function(t,e,n){"use strict";function r(t,e,n,r,a,s){t=t||0;var l=n[1]-n[0];if(null!=a&&(a=o(a,[0,l])),null!=s&&(s=Math.max(s,null!=a?a:0)),"all"===r){var u=Math.abs(e[1]-e[0]);u=o(u,[0,l]),a=s=o(u,[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,d=a||0,f=n.slice();return c.sign<0?f[0]+=d:f[1]-=d,e[r]=o(e[r],f),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 l}));var r=n(2),i=n(1),o=n(298);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,l=t[e],u=t[n],c=Object(o.isRealNumber)(l)&&0!==s.get(u)?l/s.get(u):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,l=r[e];return s=Object(o.isRealNumber)(l)?s+l:s,t.set(a,s),t}),new Map);return Object(i.map)(t,(function(t){var l,u=t[e],c=Object(i.reduce)(n,(function(e,n){return""+e+t[n]}),""),h=Object(o.isRealNumber)(u)&&0!==s.get(c)?u/s.get(c):0;return Object(r.__assign)(Object(r.__assign)({},t),((l={})[a]=h,l))}))}function l(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";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),l=i?i+e:e;return t._events[l]?t._events[l].fn?t._events[l]=[t._events[l],s]:t._events[l].push(s):(t._events[l]=s,t._eventsCount++),t}function l(t,e){0==--t._eventsCount?t._events=new o:delete t._events[e]}function u(){this._events=new o,this._eventsCount=0}Object.create&&(o.prototype=Object.create(null),(new o).__proto__||(i=!1)),u.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},u.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},u.prototype.listenerCount=function(t){var e=i?i+t:t,n=this._events[e];return n?n.fn?1:n.length:0},u.prototype.emit=function(t,e,n,r,o,a){var s=i?i+t:t;if(!this._events[s])return!1;var l,u,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(u=1,l=new Array(h-1);u<h;u++)l[u-1]=arguments[u];c.fn.apply(c.context,l)}else{var d,f=c.length;for(u=0;u<f;u++)switch(c[u].once&&this.removeListener(t,c[u].fn,void 0,!0),h){case 1:c[u].fn.call(c[u].context);break;case 2:c[u].fn.call(c[u].context,e);break;case 3:c[u].fn.call(c[u].context,e,n);break;case 4:c[u].fn.call(c[u].context,e,n,r);break;default:if(!l)for(d=1,l=new Array(h-1);d<h;d++)l[d-1]=arguments[d];c[u].fn.apply(c[u].context,l)}}return!0},u.prototype.on=function(t,e,n){return s(this,t,e,n,!1)},u.prototype.once=function(t,e,n){return s(this,t,e,n,!0)},u.prototype.removeListener=function(t,e,n,r){var o=i?i+t:t;if(!this._events[o])return this;if(!e)return l(this,o),this;var a=this._events[o];if(a.fn)a.fn!==e||r&&!a.once||n&&a.context!==n||l(this,o);else{for(var s=0,u=[],c=a.length;s<c;s++)(a[s].fn!==e||r&&!a[s].once||n&&a[s].context!==n)&&u.push(a[s]);u.length?this._events[o]=1===u.length?u[0]:u:l(this,o)}return this},u.prototype.removeAllListeners=function(t){var e;return t?(e=i?i+t:t,this._events[e]&&l(this,e)):(this._events=new o,this._eventsCount=0),this},u.prototype.off=u.prototype.removeListener,u.prototype.addListener=u.prototype.on,u.prefixed=i,u.EventEmitter=u,t.exports=u},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(171),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,l=function(t,e,n,r){return t[r]+(e[r]-t[r])*n};function u(t){return"#"+d(t[0])+d(t[1])+d(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)]},d=function(t){var e=Math.round(t).toString(16);return 1===e.length?"0"+e:e},f=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=u(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("#")?f(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 u([l(a,s,o,0),l(a,s,o,1),l(a,s,o,2)])}(n,t)}},toRGB:Object(r.memoize)(f),toCSSGradient:function(t){if(/^[r,R,L,l]{1}[\s]*\(/.test(t)){var e,n=void 0;if("l"===t[0]){var i=+(l=o.exec(t))[1]+90;n=l[2],e="linear-gradient("+i+"deg, "}else if("r"===t[0]){var l;e="radial-gradient(",n=(l=a.exec(t))[4]}var u=n.match(s);return Object(r.each)(u,(function(t,n){var r=t.split(":");e+=r[1]+" "+100*r[0]+"%",n!==u.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 l}));var r=n(1),i=n(857);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 l=e[o].charCodeAt(s);a+=l>=19968&&l<=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 l(t,e,n,o){var s;void 0===o&&(o="tail");var l=null!==(s=e.attr("text"))&&void 0!==s?s:"";if("tail"===o){var u=Object(r.pick)(e.attr(),["fontSize","fontFamily","fontWeight","fontStyle","fontVariant"]),c=Object(r.getEllipsisText)(l,n,u,"…");return l!==c?(e.attr("text",c),e.set("tip",l),!0):(e.set("tip",null),!1)}var h=a(t,e),d=Object(i.strLen)(l),f=!1;if(n<h){var p=Math.floor(n/h*d)-2,g=void 0;(g=p>=0?Object(i.ellipsisString)(l,p,o):"…")&&(e.attr("text",g),f=!0)}return f?e.set("tip",l):e.set("tip",null),f}},function(t,e,n){"use strict";n.r(e),n.d(e,"fromPoints",(function(){return f})),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(20),i=n(47),o=Math.min,a=Math.max,s=Math.sin,l=Math.cos,u=2*Math.PI,c=r.create(),h=r.create(),d=r.create();function f(t,e,n){if(0!==t.length){for(var r=t[0],i=r[0],s=r[0],l=r[1],u=r[1],c=1;c<t.length;c++)r=t[c],i=o(i,r[0]),s=a(s,r[0]),l=o(l,r[1]),u=a(u,r[1]);e[0]=i,e[1]=l,n[0]=s,n[1]=u}}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,l,u,c,h,d){var f=i.cubicExtrema,p=i.cubicAt,m=f(t,n,s,u,g);h[0]=1/0,h[1]=1/0,d[0]=-1/0,d[1]=-1/0;for(var y=0;y<m;y++){var b=p(t,n,s,u,g[y]);h[0]=o(b,h[0]),d[0]=a(b,d[0])}m=f(e,r,l,c,v);for(y=0;y<m;y++){var _=p(e,r,l,c,v[y]);h[1]=o(_,h[1]),d[1]=a(_,d[1])}h[0]=o(t,h[0]),d[0]=a(t,d[0]),h[0]=o(u,h[0]),d[0]=a(u,d[0]),h[1]=o(e,h[1]),d[1]=a(e,d[1]),h[1]=o(c,h[1]),d[1]=a(c,d[1])}function y(t,e,n,r,s,l,u,c){var h=i.quadraticExtremum,d=i.quadraticAt,f=a(o(h(t,n,s),1),0),p=a(o(h(e,r,l),1),0),g=d(t,n,s,f),v=d(e,r,l,p);u[0]=o(t,s,g),u[1]=o(e,l,v),c[0]=a(t,s,g),c[1]=a(e,l,v)}function b(t,e,n,i,o,a,f,p,g){var v=r.min,m=r.max,y=Math.abs(o-a);if(y%u<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]=l(o)*n+t,c[1]=s(o)*i+e,h[0]=l(a)*n+t,h[1]=s(a)*i+e,v(p,c,h),m(g,c,h),(o%=u)<0&&(o+=u),(a%=u)<0&&(a+=u),o>a&&!f?a+=u:o<a&&f&&(o+=u),f){var b=a;a=o,o=b}for(var _=0;_<a;_+=Math.PI/2)_>o&&(d[0]=l(_)*n+t,d[1]=s(_)*i+e,v(p,d,p),m(g,d,g))}},function(t,e,n){"use strict";n.r(e),n.d(e,"CircleShape",(function(){return o}));var r=n(59),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 l})),n.d(e,"getCanvas",(function(){return u})),n.d(e,"getCanvas2D",(function(){return c}));var r=n(560),i=n(145),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 l(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 u(){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(288);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 l})),n.d(e,"getViewRect",(function(){return u}));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,l=i.hierNode.modifier,u=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-u+r(s,o);v>0&&(f(d(s,t,n),t,v),u+=v,l+=v),g+=s.hierNode.modifier,u+=o.hierNode.modifier,l+=i.hierNode.modifier,p+=a.hierNode.modifier}s&&!c(i)&&(i.hierNode.thread=s,i.hierNode.modifier+=g-l),o&&!h(a)&&(a.hierNode.thread=o,a.hierNode.modifier+=u-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 l(t,e){return t-=Math.PI/2,{x:e*Math.cos(t),y:e*Math.sin(t)}}function u(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 d(t,e,n){return t.hierNode.ancestor.parentNode===e.parentNode?t.hierNode.ancestor:n}function f(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(366),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 d}));var r=n(29),i=n(477),o=n(0),a=n(140),s=n(394),l=n(10),u=n(139),c=n(339);function h(t,e){return d(t,e).dimensions}function d(t,e){Object(a.isSourceInstance)(t)||(t=Object(a.createSourceFromSeriesDataOption)(t));var n=(e=e||{}).coordDimensions||[],h=e.dimensionsDefine||t.dimensionsDefine||[],d=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 l=p.length;return x[t]=l,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(l.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,d.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(l.normalizeToArray)(s)).length)for(var u=0;u<(n&&n.length||1);u++){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 l=n[a];!Object(o.isObject)(l)&&(l={name:l}),s.name=s.displayName=l.name,s.defaultTooltip=l.defaultTooltip}r&&Object(o.defaults)(s.otherDims,r)}))}}));var E=e.generateCoord,T=e.generateCoordCount,M=null!=T;T=E?T||1:0;var A=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=f(A,d,M),k.coordDimIndex=0,(!E||T<=0)&&(k.isExtraCoord=!0),T--),I(k),null!=k.type||Object(u.guessOrdinal)(t,j)!==u.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 f(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(74),i=n(349);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(183);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 l}));var r=n(2),i=n(15),o=n(1),a=n(629),s=n(4);function l(t){var e=this;return function(n){var l,u=n.options,c=n.chart,h=u.pattern;if(!h)return n;return Object(s.deepAssign)({},n,{options:(l={},l[t]=function(n){for(var l,d,f,p=[],g=1;g<arguments.length;g++)p[g-1]=arguments[g];var v=c.getTheme().defaultColor,m=v,y=null===(d=null===(l=c.geometries)||void 0===l?void 0:l[0])||void 0===d?void 0:d.getAttribute("color");if(y){var b=y.getFields()[0],_=Object(o.get)(n,b);m=i.Util.getMappingValue(y,_,(null===(f=y.values)||void 0===f?void 0:f[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=u[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})},l)})}}},function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return i}));var r=n(10);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(240),i=n(109),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,l=new i.default(s,t);return l.initData(a,n),l}},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 d})),n.d(e,"getLocaleModel",(function(){return f})),n.d(e,"getDefaultLocaleModel",(function(){return p}));var r=n(57),i=n(49),o=n(1270),a=n(1271),s=n(0),l={},u={},c=i.default.domSupported&&(document.documentElement.lang||navigator.language||navigator.browserLanguage).toUpperCase().indexOf("ZH")>-1?"ZH":"EN";function h(t,e){t=t.toUpperCase(),u[t]=new r.default(e),l[t]=e}function d(t){if(Object(s.isString)(t)){var e=l[t.toUpperCase()]||{};return"ZH"===t||"EN"===t?Object(s.clone)(e):Object(s.merge)(Object(s.clone)(e),Object(s.clone)(l.EN),!1)}return Object(s.merge)(Object(s.clone)(t),Object(s.clone)(l.EN),!1)}function f(t){return u[t]}function p(){return u.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(59),i=n(36),o=n(138),a=n(829),s=n(0),l=Math.sqrt,u=Math.sin,c=Math.cos,h=Math.PI;function d(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1])}function f(t,e){return(t[0]*e[0]+t[1]*e[1])/(d(t)*d(e))}function p(t,e){return(t[0]*e[1]<t[1]*e[0]?-1:1)*Math.acos(f(t,e))}function g(t,e,n,r,i,o,a,s,d,g,v){var m=d*(h/180),y=c(m)*(t-n)/2+u(m)*(e-r)/2,b=-1*u(m)*(t-n)/2+c(m)*(e-r)/2,_=y*y/(a*a)+b*b/(s*s);_>1&&(a*=l(_),s*=l(_));var x=(i===o?-1:1)*l((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-u(m)*O,C=(e+r)/2+u(m)*w+c(m)*O,E=p([1,0],[(y-w)/a,(b-O)/s]),T=[(y-w)/a,(b-O)/s],M=[(-1*y-w)/a,(-1*b-O)/s],A=p(T,M);if(f(T,M)<=-1&&(A=h),f(T,M)>=1&&(A=0),A<0){var I=Math.round(A/h*1e6)/1e6;A=2*h+I%2*h}v.addData(g,S,C,a,s,E,A,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,l=o.default.CMD,u=t.match(v);if(!u)return e;for(var c=0;c<u.length;c++){for(var h=u[c],d=h.charAt(0),f=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,M=r,A=i,I=void 0,j=void 0;switch(d){case"l":r+=p[_++],i+=p[_++],f=l.L,e.addData(f,r,i);break;case"L":r=p[_++],i=p[_++],f=l.L,e.addData(f,r,i);break;case"m":r+=p[_++],i+=p[_++],f=l.M,e.addData(f,r,i),a=r,s=i,d="l";break;case"M":r=p[_++],i=p[_++],f=l.M,e.addData(f,r,i),a=r,s=i,d="L";break;case"h":r+=p[_++],f=l.L,e.addData(f,r,i);break;case"H":r=p[_++],f=l.L,e.addData(f,r,i);break;case"v":i+=p[_++],f=l.L,e.addData(f,r,i);break;case"V":i=p[_++],f=l.L,e.addData(f,r,i);break;case"C":f=l.C,e.addData(f,p[_++],p[_++],p[_++],p[_++],p[_++],p[_++]),r=p[_-2],i=p[_-1];break;case"c":f=l.C,e.addData(f,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===l.C&&(x+=r-j[I-4],w+=i-j[I-3]),f=l.C,M=p[_++],A=p[_++],r=p[_++],i=p[_++],e.addData(f,x,w,M,A,r,i);break;case"s":x=r,w=i,I=e.len(),j=e.data,n===l.C&&(x+=r-j[I-4],w+=i-j[I-3]),f=l.C,M=r+p[_++],A=i+p[_++],r+=p[_++],i+=p[_++],e.addData(f,x,w,M,A,r,i);break;case"Q":M=p[_++],A=p[_++],r=p[_++],i=p[_++],f=l.Q,e.addData(f,M,A,r,i);break;case"q":M=p[_++]+r,A=p[_++]+i,r+=p[_++],i+=p[_++],f=l.Q,e.addData(f,M,A,r,i);break;case"T":x=r,w=i,I=e.len(),j=e.data,n===l.Q&&(x+=r-j[I-4],w+=i-j[I-3]),r=p[_++],i=p[_++],f=l.Q,e.addData(f,x,w,r,i);break;case"t":x=r,w=i,I=e.len(),j=e.data,n===l.Q&&(x+=r-j[I-4],w+=i-j[I-3]),r+=p[_++],i+=p[_++],f=l.Q,e.addData(f,x,w,r,i);break;case"A":O=p[_++],S=p[_++],C=p[_++],E=p[_++],T=p[_++],g(M=r,A=i,r=p[_++],i=p[_++],E,T,O,S,C,f=l.A,e);break;case"a":O=p[_++],S=p[_++],C=p[_++],E=p[_++],T=p[_++],g(M=r,A=i,r+=p[_++],i+=p[_++],E,T,O,S,C,f=l.A,e)}}"z"!==d&&"Z"!==d||(f=l.Z,e.addData(f),r=a,i=s),n=f}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 M})),n.d(e,"brush",(function(){return A}));var r=n(97),i=n(138),o=n(308),a=n(214),s=n(36),l=n(106),u=n(328),c=n(0),h=n(534),d=n(100),f=n(98),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 l=0;l<x.length;l++){var u=x[l];(i||e[u]!==n[u])&&(a||(E(t,o),a=!0),t[u]=t.dpr*(e[u]||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 l=o.lineWidth/(o.strokeNoScale&&e.getLineScale?e.getLineScale():1);t.lineWidth!==l&&(s||(E(t,i),s=!0),t.lineWidth=l)}for(var u=0;u<w.length;u++){var c=w[u],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 M(t,e){A(t,e,{inHover:!1,viewWidth:0,viewHeight:0},!0)}function A(t,e,n,r){var i=e.transform;if(!e.shouldBePainted(n.viewWidth,n.viewHeight,!1,!1))return e.__dirty&=~d.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 M=n.prevEl;M||(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=M.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,M,w,n),k&&(n.batchFill||n.batchStroke)||t.beginPath(),function(t,e,n,r){var i,o=g(n),s=m(n),l=n.strokePercent,u=l<1,c=!e.path;e.silent&&!u||!c||e.createPathProxy();var f=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,M=void 0,A=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&&(M=v?Object(a.getCanvasGradient)(t,w,j):e.__canvasStrokeGradient,e.__canvasStrokeGradient=M),C&&(A=v||!e.__canvasFillPattern?_(t,x,e):e.__canvasFillPattern,e.__canvasFillPattern=A),E&&(I=v||!e.__canvasStrokePattern?_(t,w,e):e.__canvasStrokePattern,e.__canvasStrokePattern=A),O?t.fillStyle=T:C&&(A?t.fillStyle=A:s=!1),S?t.strokeStyle=M:E&&(I?t.strokeStyle=I:o=!1)}var k,P,L=e.getGlobalScale();f.setScale(L[0],L[1],e.segmentIgnoreThreshold),t.setLineDash&&n.lineDash&&(k=(i=Object(h.getLineDash)(e))[0],P=i[1]);var D=!0;(c||v&d.SHAPE_CHANGED_BIT)&&(f.setDPR(t.dpr),u?f.setContext(null):(f.setContext(t),D=!1),f.reset(),e.buildPath(f,e.shape,r),f.toStatic(),e.pathUpdated()),D&&f.rebuildPath(t,u?l: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 u.default?(3!==n.lastDrawType&&(w=!0,n.lastDrawType=3),S(t,e,M,w,n),function(t,e,n){var r,i=n.text;if(null!=i&&(i+=""),i){t.font=n.font||f.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 l.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,M,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(),l=e.getHeight(),u=r.width/r.height;if(null==s&&null!=l?s=l*u:null==l&&null!=s?l=s/u:null==s&&null==l&&(s=r.width,l=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,l)}else if(n.sx&&n.sy){var d=s-(c=n.sx),f=l-(h=n.sy);t.drawImage(r,c,h,d,f,i,a,s,l)}else t.drawImage(r,i,a,s,l)}}(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(),A(t,c,s,o===a-1),c.innerAfterBrush(),c.afterBrush&&c.afterBrush(),s.prevEl=c}for(var l=0,u=i.length;l<u;l++){var c;(c=i[l]).beforeBrush&&c.beforeBrush(),c.innerBeforeBrush(),A(t,c,s,l===u-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 l})),n.d(e,"add",(function(){return u})),n.d(e,"subtract",(function(){return c})),n.d(e,"multiply",(function(){return h})),n.d(e,"divide",(function(){return d})),n.d(e,"ceil",(function(){return f})),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 M})),n.d(e,"lerp",(function(){return A})),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 D})),n.d(e,"angle",(function(){return R})),n.d(e,"zero",(function(){return N})),n.d(e,"str",(function(){return F})),n.d(e,"exactEquals",(function(){return B})),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 $})),n.d(e,"sqrLen",(function(){return X})),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 l(t,e,n){return t[0]=e,t[1]=n,t}function u(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 d(t,e,n){return t[0]=e[0]/n[0],t[1]=e[1]/n[1],t}function f(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 M(t,e,n){var r=e[0]*n[1]-e[1]*n[0];return t[0]=t[1]=0,t[2]=r,t}function A(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 D(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 R(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 F(t){return"vec2("+t[0]+", "+t[1]+")"}function B(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=d,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(1841)),i=a(n(1853)),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 d})),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(133),a=n(244),s=n(196);function l(t){return t.get("stack")||"__ec_stack_"+t.seriesIndex}function u(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=f(e),s=[];for(o=0;o<t.count;o++){var l=a.axis0["__ec_stack_"+o];l.offsetCenter=l.offset+l.width/2,s.push(l)}return s}}function h(t,e){var n=[];return e.eachSeriesByType(t,(function(t){m(t)&&n.push(t)})),n}function d(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,l=a.count();s<l;++s){var u=a.get(o,s);e[i]?e[i].push(u):e[i]=[u]}}));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 l=o[s]-o[s-1];l>0&&(a=null===a?l:Math.min(a,l))}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]),d=o.scale.getExtent(),f=Math.abs(d[1]-d[0]);r=c?h/f*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:u(o),stackId:l(t)})})),f(n)}function f(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 l=t.barWidth;l&&!a[s].width&&(a[s].width=l,l=Math.min(o.remainedWidth,l),o.remainedWidth-=l);var u=t.barMaxWidth;u&&(a[s].maxWidth=u);var c=t.barMinWidth;c&&(a[s].minWidth=c);var h=t.barGap;null!=h&&(o.gap=h);var d=t.barCategoryGap;null!=d&&(o.categoryGap=d)}));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 l=Object(r.keys)(o).length;s=Math.max(35-4*l,15)+"%"}var u=Object(i.parsePercent)(s,a),c=Object(i.parsePercent)(t.gap,1),h=t.remainedWidth,d=t.autoWidthCount,f=(h-u)/(d+(d-1)*c);f=Math.max(f,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,d--}else{var r=f;e&&e<r&&(r=Math.min(e,h)),n&&n>r&&(r=n),r!==f&&(t.width=r,h-=r+c*r,d--)}})),f=(h-u)/(d+(d-1)*c),f=Math.max(f,0);var p,g=0;Object(r.each)(o,(function(t,e){t.width||(t.width=f),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[u(e)];return null!=r&&null!=n?r[l(n)]:r}}function g(t,e){var n=h(t,e),i=d(n);Object(r.each)(n,(function(t){var e=t.getData(),n=t.coordinateSystem.getBaseAxis(),r=l(t),o=i[u(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)),l=e.getDimensionIndex(e.mapDimension(r.dim)),u=t.get("showBackground",!0),c=e.mapDimension(i.dim),h=e.getCalculationInfo("stackResultDimension"),d=Object(o.isDimensionStacked)(e,c)&&!!e.getCalculationInfo("stackedOnSeries"),f=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&&u&&Object(s.createFloat32Array)(3*i),h=g&&Object(s.createFloat32Array)(i),m=n.master.getRect(),y=f?m.width:m.height,w=e.getStore(),O=0;null!=(r=t.next());){var S=w.get(d?b:a,r),C=w.get(l,r),E=p,T=void 0;d&&(T=+S-w.get(a,r));var M=void 0,A=void 0,I=void 0,j=void 0;if(f){var k=n.dataToPoint([S,C]);if(d)E=n.dataToPoint([T,C])[0];M=E,A=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(d)E=n.dataToPoint([C,T])[1];M=k[0]+x,A=E,I=_,j=k[1]-E,Math.abs(j)<v&&(j=(j<=0?-1:1)*v)}g?(o[O]=M,o[O+1]=A,o[O+2]=f?I:j,c&&(c[O]=f?m.x:M,c[O+1]=f?A:m.y,c[O+2]=y),h[r]=r):e.setItemLayout(r,{x:M,y:A,width:I,height:j}),O+=3}g&&e.setLayout({largePoints:o,largeDataIndices:h,largeBackgroundPoints:c,valueAxisHorizontal:f})}}}}}}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(89),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(95);function i(t,e,n,i,o,a,s){var l=Math.min(t,n),u=Math.max(t,n),c=Math.min(e,i),h=Math.max(e,i),d=o/2;return a>=l-d&&a<=u+d&&s>=c-d&&s<=h+d&&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(11),i=n.n(r),o=n(12),a=n.n(o),s=n(30),l=n.n(s),u=n(31),c=n.n(u),h=n(18),d=n.n(h),f=n(299),p=n(342),g=n(734),v=n(736),m=n(737);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=d()(t);if(e){var i=d()(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return c()(this,n)}}var b=function(t){l()(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){l()(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 f.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,"create",(function(){return s})),n.d(e,"identity",(function(){return l})),n.d(e,"setAxisAngle",(function(){return u})),n.d(e,"getAxisAngle",(function(){return c})),n.d(e,"getAngle",(function(){return h})),n.d(e,"multiply",(function(){return d})),n.d(e,"rotateX",(function(){return f})),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 D})),n.d(e,"set",(function(){return R})),n.d(e,"add",(function(){return N})),n.d(e,"mul",(function(){return F})),n.d(e,"scale",(function(){return B})),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 $})),n.d(e,"equals",(function(){return X})),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(612),o=n(187),a=n(158);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 l(t){return t[0]=0,t[1]=0,t[2]=0,t[3]=1,t}function u(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 d(t,e,n){var r=e[0],i=e[1],o=e[2],a=e[3],s=n[0],l=n[1],u=n[2],c=n[3];return t[0]=r*c+a*s+i*u-o*l,t[1]=i*c+a*l+o*s-r*u,t[2]=o*c+a*u+r*l-i*s,t[3]=a*c-r*s-i*l-o*u,t}function f(t,e,n){n*=.5;var r=e[0],i=e[1],o=e[2],a=e[3],s=Math.sin(n),l=Math.cos(n);return t[0]=r*l+a*s,t[1]=i*l+o*s,t[2]=o*l-i*s,t[3]=a*l-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),l=Math.cos(n);return t[0]=r*l-o*s,t[1]=i*l+a*s,t[2]=o*l+r*s,t[3]=a*l-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),l=Math.cos(n);return t[0]=r*l+i*s,t[1]=i*l-r*s,t[2]=o*l+a*s,t[3]=a*l-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),l=a>0?s*Math.sin(a)/a:0;return t[0]=n*l,t[1]=r*l,t[2]=i*l,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),B(t,t,n),m(t,t),t}function _(t,e,n,i){var o,a,s,l,u,c=e[0],h=e[1],d=e[2],f=e[3],p=n[0],g=n[1],v=n[2],m=n[3];return(a=c*p+h*g+d*v+f*m)<0&&(a=-a,p=-p,g=-g,v=-v,m=-m),1-a>r.EPSILON?(o=Math.acos(a),s=Math.sin(o),l=Math.sin((1-i)*o)/s,u=Math.sin(i*o)/s):(l=1-i,u=i),t[0]=l*c+u*p,t[1]=l*h+u*g,t[2]=l*d+u*v,t[3]=l*f+u*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),l=Math.cos(n),u=Math.sin(r),c=Math.cos(r);return t[0]=o*l*c-a*s*u,t[1]=a*s*c+o*l*u,t[2]=a*l*u-o*s*c,t[3]=a*l*c+o*s*u,t}function E(t){return"quat("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+")"}var T,M,A,I,j,k,P=a.clone,L=a.fromValues,D=a.copy,R=a.set,N=a.add,F=d,B=a.scale,z=a.dot,V=a.lerp,U=a.length,G=U,H=a.squaredLength,W=H,Y=a.normalize,$=a.exactEquals,X=a.equals,q=(T=o.create(),M=o.fromValues(1,0,0),A=o.fromValues(0,1,0),function(t,e,n){var r=o.dot(e,n);return r<-.999999?(o.cross(T,M,e),o.len(T)<1e-6&&o.cross(T,A,e),o.normalize(T,T),u(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 u})),n.d(e,"STATUS_ACTIVE",(function(){return c}));var r=n(2),i=n(1),o=n(24),a=n(368),s=n(465),l=n(7),u=l.ELEMENT_STATE.INACTIVE,c=l.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(u)&&t.setState(u,!1),t.setState(c,!0)):t.hasState(c)||t.setState(u,!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(u,!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 l})),n.d(e,"OUTLIERS_VIEW_ID",(function(){return u})),n.d(e,"DEFAULT_OPTIONS",(function(){return c}));var r,i=n(26),o=n(4),a="$$range$$",s="low-q1-median-q3-high",l="$$y_outliers$$",u="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),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(4),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,l){var u=r.fx,c=n(r.fxprime,e),h=u,d=u,f=c,p=0;function g(d,p,g){for(var v=0;v<16;++v)if(a=(d+p)/2,o(i.x,1,r.x,a,e),h=i.fx=t(i.x,i.fxprime),f=n(i.fxprime,e),h>u+s*a*c||h>=g)p=a;else{if(Math.abs(f)<=-l*c)return a;f*(p-d)>=0&&(p=d),d=a,g=h}return 0}a=a||1,s=s||1e-6,l=l||.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),f=n(i.fxprime,e),h>u+s*a*c||v&&h>=d)return g(p,a,d);if(Math.abs(f)<=-l*c)return a;if(f>=0)return g(a,p,h);d=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),l=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 u=0;u<i;++u){var c=e+(l/=2),h=t(c);if(h*a>=0&&(e=c),Math.abs(l)<o||0===h)return c}return e+l},t.nelderMead=function(t,e,n){var r,i=(n=n||{}).maxIterations||200*e.length,a=n.nonZeroDelta||1.05,s=n.zeroDelta||.001,l=n.minErrorDelta||1e-6,u=n.minErrorDelta||1e-5,c=void 0!==n.rho?n.rho:1,h=void 0!==n.chi?n.chi:2,d=void 0!==n.psi?n.psi:-.5,f=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)<l&&r<u)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 M=!1;if(x.fx>T.fx?(o(w,1+d,_,-d,T),w.fx=t(w),w.fx<T.fx?y(w):M=!0):(o(w,1-d*c,_,d*c,T),w.fx=t(w),w.fx<x.fx?y(w):M=!0),M){if(f>=1)break;for(v=1;v<g.length;++v)o(g[v],1-f,g[0],f,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 l,u,c,h={x:e.slice(),fx:0,fxprime:e.slice()},d={x:e.slice(),fx:0,fxprime:e.slice()},f=e.slice(),p=1;c=(s=s||{}).maxIterations||20*e.length,h.fx=t(h.x,h.fxprime),i(l=h.fxprime.slice(),h.fxprime,-1);for(var g=0;g<c;++g){if(p=a(t,l,h,d,p),s.history&&s.history.push({x:h.x.slice(),fx:h.fx,fxprime:h.fxprime.slice(),alpha:p}),p){o(f,1,d.fxprime,-1,h.fxprime);var v=n(h.fxprime,h.fxprime);o(l,Math.max(0,n(f,d.fxprime)/v),l,-1,d.fxprime),u=h,h=d,d=u}else i(l,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()},l=0;l<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));++l);return s},t.gradientDescentLineSearch=function(t,e,n){n=n||{};var o,s={x:e.slice(),fx:0,fxprime:e.slice()},l={x:e.slice(),fx:0,fxprime:e.slice()},u=n.maxIterations||100*e.length,c=n.learnRate||1,h=e.slice(),d=n.c1||.001,f=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<u&&(i(h,s.fxprime,-1),c=a(t,h,s,l,c,d,f),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=l,l=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(129).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 l=(e.value+s)/2;i.push({points:[t.convert("y"===n?{x:0,y:l}:{x:l,y:0}),t.convert("y"===n?{x:1,y:l}:{x:l,y:1})]})}return o}),o[0]),i}function a(t,e,n,i,o){var a=e.values.length,s=[],l=n.getTicks();return l.reduce((function(e,n){var l=e?e.value:n.value,u=n.value,c=(l+u)/2;return"x"===o?s.push({points:[t.convert({x:i?u:c,y:0}),t.convert({x:i?u:c,y:1})]}):s.push({points:Object(r.map)(Array(a+1),(function(e,n){return t.convert({x:n/a,y:i?u:c})}))}),n}),l[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 d})),n.d(e,"mercatorYfromLat",(function(){return f})),n.d(e,"mercatorZfromAltitude",(function(){return p})),n.d(e,"lngFromMercatorX",(function(){return g})),n.d(e,"latFromMercatorY",(function(){return v})),n.d(e,"altitudeFromMercatorZ",(function(){return m})),n.d(e,"mercatorScale",(function(){return y})),n.d(e,"default",(function(){return b}));var r=n(11),i=n.n(r),o=n(12),a=n.n(o),s=n(3),l=n.n(s),u=n(93),c=2*Math.PI*u.earthRadius;function h(t){return c*Math.cos(t*Math.PI/180)}function d(t){return(180+t)/360}function f(t){return(180-180/Math.PI*Math.log(Math.tan(Math.PI/4+t*Math.PI/360)))/360}function p(t,e){return t/h(e)}function g(t){return 360*t-180}function v(t){var e=180-360*t;return 360/Math.PI*Math.atan(Math.exp(e*Math.PI/180))-90}function m(t,e){return t*h(v(e))}function y(t){return 1/Math.cos(t*Math.PI/180)}var b=function(){function t(e,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;i()(this,t),l()(this,"x",void 0),l()(this,"y",void 0),l()(this,"z",void 0),this.x=+e,this.y=+n,this.z=+r}return a()(t,[{key:"toLngLat",value:function(){return new u.default(g(this.x),v(this.y))}},{key:"toAltitude",value:function(){return m(this.z,this.y)}},{key:"meterInMercatorCoordinateUnits",value:function(){return 1/c*y(v(this.y))}}],[{key:"fromLngLat",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=u.default.convert(e);return new t(d(r.lng),f(r.lat),p(n,r.lat))}}]),t}()},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Metadata=void 0;var r=n(160),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(390),i=n(131);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(132);n.d(e,"Base",(function(){return r.default}));var i=n(1075);n.d(e,"Circle",(function(){return i.default}));var o=n(1076);n.d(e,"Ellipse",(function(){return o.default}));var a=n(1077);n.d(e,"Image",(function(){return a.default}));var s=n(1078);n.d(e,"Line",(function(){return s.default}));var l=n(1079);n.d(e,"Marker",(function(){return l.default}));var u=n(1080);n.d(e,"Path",(function(){return u.default}));var c=n(1081);n.d(e,"Polygon",(function(){return c.default}));var h=n(1082);n.d(e,"Polyline",(function(){return h.default}));var d=n(1083);n.d(e,"Rect",(function(){return d.default}));var f=n(1084);n.d(e,"Text",(function(){return f.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(9),a=n(1631),s=n(1632),l=n(34),u=n(243),c=n(712),h=n(4),d=n(226);function f(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,u=n.isPercent,c=n.isGroup,f=n.isStack,p=n.xField,g=n.yField,v=n.seriesField,m=n.groupField,y=n.tooltip,b=n.shape,_=u&&c&&f?Object(d.getDeepPercent)(i,g,[p,m],g):Object(d.getDataWhetherPercentage)(i,g,p,g,u),x=[];f&&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=u?Object(r.__assign)({formatter:function(t){return{name:c&&f?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(l.interval)(O),O}function g(t){var e,n,i=t.options,a=i.xAxis,s=i.yAxis,l=i.xField,u=i.yField,c=i.data,d=i.isPercent?{max:1,min:0,minLimit:0,maxLimit:1}:{};return Object(h.flow)(Object(o.scale)(((e={})[l]=a,e[u]=s,e),((n={})[l]={type:"cat"},n[u]=Object(r.__assign)(Object(r.__assign)({},Object(h.adjustYMetaByZero)(c,u)),d),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 l=i.callback,u=Object(r.__rest)(i,["callback"]);s.label({fields:[o],callback:l,cfg:Object(r.__assign)({layout:(null==u?void 0:u.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("-")}},u):u))})}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,l=n.groupField,u=n.data,c=n.xField,d=n.yField,f=n.seriesField;if(!1===o)e.tooltip(!1);else{var p=o;if(a&&s){var g=(null==p?void 0:p.formatter)||function(t){return{name:t[f]+" - "+t[l],value:t[d]}};p=Object(r.__assign)(Object(r.__assign)({},p),{customItems:function(t){var e=[];return Object(i.each)(t,(function(t){Object(i.filter)(u,(function(e){return Object(i.isMatch)(e,Object(h.pick)(t.data,[c,f]))})).forEach((function(n){e.push(Object(r.__assign)(Object(r.__assign)(Object(r.__assign)({},t),{value:n[d],data:n,mappingData:{_origin:n}}),g(n)))}))})),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)(f,o.theme,Object(u.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(9),i=n(4),o=n(34),a=n(166),s=n(227),l=n(354);function u(t){var e=t.chart,n=t.options,r=n.data,l=n.color,u=n.areaStyle,c=n.point,h=n.line,d=null==c?void 0:c.state,f=Object(s.getTinyData)(r);e.data(f);var p=Object(i.deepAssign)({},t,{options:{xField:a.X_FIELD,yField:a.Y_FIELD,area:{color:l,style:u},line:h,point:c}}),g=Object(i.deepAssign)({},p,{options:{tooltip:!1}}),v=Object(i.deepAssign)({},p,{options:{tooltip:!1,state:d}});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,u=o.xAxis,c=o.yAxis,h=o.data,d=Object(s.getTinyData)(h);return Object(i.flow)(Object(r.scale)(((e={})[a.X_FIELD]=u,e[a.Y_FIELD]=c,e),((n={})[a.X_FIELD]={type:"cat"},n[a.Y_FIELD]=Object(l.adjustYMetaByZero)(d,a.Y_FIELD),n)))(t)}function h(t){return Object(i.flow)(Object(r.pattern)("areaStyle"),u,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,"createGridClipPath",(function(){return l})),n.d(e,"createPolarClipPath",(function(){return u})),n.d(e,"createClipPath",(function(){return c}));var r=n(70),i=n(23),o=n(174),a=n(6),s=n(0);function l(t,e,n,o,a){var l=t.getArea(),u=l.x,c=l.y,h=l.width,d=l.height,f=n.get(["lineStyle","width"])||2;u-=f/2,c-=f/2,h+=f,d+=f,u=Math.floor(u),h=Math.round(h);var p=new r.default({shape:{x:u,y:c,width:h,height:d}});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+=d),p.shape.height=0);var y=Object(s.isFunction)(a)?function(t){a(t,p)}:null;i.initProps(p,{shape:{width:h,height:d,x:u,y:c}},n,null,o,y)}return p}function u(t,e,n){var r=t.getArea(),s=Object(a.round)(r.r0,1),l=Object(a.round)(r.r,1),u=new o.default({shape:{cx:Object(a.round)(t.cx,1),cy:Object(a.round)(t.cy,1),r0:s,r:l,startAngle:r.startAngle,endAngle:r.endAngle,clockwise:r.clockwise}});e&&("angle"===t.getBaseAxis().dim?u.shape.endAngle=r.startAngle:u.shape.r=s,i.initProps(u,{shape:{endAngle:r.endAngle,r:l}},n));return u}function c(t,e,n,r,i){return t?"polar"===t.type?u(t,e,n):"cartesian2d"===t.type?l(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 l}));var r=n(1),i=n(4),o=n(627),a={};function s(t,e){a[t]=e}function l(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";n.r(e),n.d(e,"createVisualMappings",(function(){return l})),n.d(e,"replaceVisualOption",(function(){return u})),n.d(e,"applyVisual",(function(){return c})),n.d(e,"incrementalApplyVisual",(function(){return h}));var r=n(0),i=n(127),o=n(185),a=r.each;function s(t){if(t)for(var e in t)if(t.hasOwnProperty(e))return!0}function l(t,e,n){var o={};return a(e,(function(e){var s,l=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),l[o]=new i.default(a),"opacity"===o&&((a=r.clone(a)).type="colorAlpha",l.__hidden.__alphaForOpacity=new i.default(a))}}))})),o}function u(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,l){var u,c={};function h(t){return Object(o.getItemVisualFromData)(n,u,t)}function d(t,e){Object(o.setItemVisualFromData)(n,u,t,e)}function f(t,r){u=null==l?t:r;var i=n.getRawDataItem(u);if(!i||!1!==i.visualMap)for(var o=a.call(s,t),f=e[o],p=c[o],g=0,v=p.length;g<v;g++){var m=p[g];f[m]&&f[m].applyVisual(t,h,d)}}r.each(t,(function(t){var n=i.default.prepareVisualTypes(e[t]);c[t]=n})),null==l?n.each(f):n.each([l],f)}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,l;function u(t){return Object(o.getItemVisualFromData)(r,l,t)}function c(t,e){Object(o.setItemVisualFromData)(r,l,t,e)}null!=a&&(i=r.getDimensionIndex(a));for(var h=r.getStore();null!=(l=t.next());){var d=r.getRawDataItem(l);if(!d||!1!==d.visualMap)for(var f=null!=a?h.get(i,l):l,p=n(f),g=e[p],v=s[p],m=0,y=v.length;m<y;m++){var b=v[m];g[b]&&g[b].applyVisual(f,u,c)}}}}}},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 l=a*(n-t)+t;return l===i?1/0:l>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 l})),n.d(e,"enableDrillInteraction",(function(){return u})),n.d(e,"resetDrillDown",(function(){return c})),n.d(e,"transformData",(function(){return h}));var r=n(2),i=n(1),o=n(360),a=n(726);function s(t,e){if(Object(i.isArray)(t))return t.find((function(t){return t.type===e}))}function l(t,e){var n=s(t,e);return n&&!1!==n.enable}function u(t){var e=t.interactions,n=t.drilldown;return Object(i.get)(n,"enabled")||l(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,l=t.hierarchyConfig,u=Object(a.treemap)(e,Object(r.__assign)(Object(r.__assign)({},l),{type:"hierarchy.treemap",field:"value",as:["x","y"]})),c=[];return u.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}})),u=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:u},t));if(!t.data[n]&&t.parent){var d=t.ancestors().find((function(t){return t.data[n]}));h[n]=null==d?void 0:d.data[n]}else h[n]=t.data[n];h[o.HIERARCHY_DATA_TRANSFORM_PARAMS]={hierarchyConfig:l,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 l}));var r=n(1),i="x",o="y",a="name",s="source",l={nodeStyle:{opacity:1,fillOpacity:1,lineWidth:1},edgeStyle:{opacity:.5,lineWidth:2},label:{fields:["x","name"],callback:function(t,e){return{labelEmit:!0,style:{fill:"#8c8c8c"},offsetX:(t[0]+t[1])/2>.5?-4:4,content:e}}},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(158);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,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 l.call(t,e)},e.toObject=function(t){for(var e={},n=0;n<t.length;n++)t[n]&&u(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 f(t)?[]:[t]};var i,o=n(200),a=(i=o)&&i.__esModule?i:{default:i},s=n(903);var l=Object.prototype.hasOwnProperty;function u(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)}),d=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},f=(e.isEqual=function(t,e){return Array.isArray(t)&&Array.isArray(e)?d(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){t.exports=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}},function(t,e,n){"use strict";n.r(e),n.d(e,"getInteraction",(function(){return l})),n.d(e,"registerInteraction",(function(){return u})),n.d(e,"createInteraction",(function(){return c}));var r=n(1),i=n(1522),o=n(622);n.d(e,"Interaction",(function(){return o.default}));var a=n(289);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 l(t){return s[Object(r.lowerCase)(t)]}function u(t,e){s[Object(r.lowerCase)(t)]=e}function c(t,e,n){var o=l(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(288);n.d(e,"Scale",(function(){return r.default}));var i=n(458);n.d(e,"Category",(function(){return i.default}));var o=n(813);n.d(e,"TimeCat",(function(){return o.default}));var a=n(525);n.d(e,"Linear",(function(){return a.default}));var s=n(814);n.d(e,"Log",(function(){return s.default}));var l=n(815);n.d(e,"Pow",(function(){return l.default}));var u=n(816);n.d(e,"Time",(function(){return u.default}));var c=n(526);n.d(e,"Quantize",(function(){return c.default}));var h=n(817);n.d(e,"Quantile",(function(){return h.default}));var d=n(237);n.d(e,"getScale",(function(){return d.getScale})),n.d(e,"registerScale",(function(){return d.registerScale}));var f=n(818);n.d(e,"Identity",(function(){return f.default}));var p=n(794);n.d(e,"getTickMethod",(function(){return p.getTickMethod})),n.d(e,"registerTickMethod",(function(){return p.registerTickMethod})),Object(d.registerScale)("cat",i.default),Object(d.registerScale)("category",i.default),Object(d.registerScale)("identity",f.default),Object(d.registerScale)("linear",a.default),Object(d.registerScale)("log",s.default),Object(d.registerScale)("pow",l.default),Object(d.registerScale)("time",u.default),Object(d.registerScale)("timeCat",o.default),Object(d.registerScale)("quantize",c.default),Object(d.registerScale)("quantile",h.default)},function(t,e,n){"use strict";n.r(e);var r=n(1),i=n(198),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(87);n.d(e,"Action",(function(){return r.default}));var i=n(387);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,l=a.length,u=t.value&&(r-e)/t.value;++s<l;)(o=a[s]).y0=n,o.y1=i,o.x0=e,o.x1=e+=o.value*u}},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 l=n.head;n.remove(l),delete i[l.key],o=l.value,this._lastRemovedEntry=l}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(39),i=n(23),o=n(14),a=n(332),s=n(0),l=n(27);function u(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(l.getLabelStatesModels)(e),cursorStyle:e.get("cursor")}}var d=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,l=h(t),d={disableAnimation:s},f=e.getSymbolPoint||function(e){return t.getItemLayout(e)};o||n.removeAll(),t.diff(o).add((function(r){var i=f(r);if(u(t,i,r,e)){var o=new a(t,r,l,d);o.setPosition(i),t.setItemGraphicEl(r,o),n.add(o)}})).update((function(c,h){var p=o.getItemGraphicEl(h),g=f(c);if(u(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,l,d)).setPosition(g);else{p.updateData(t,c,l,d);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=f,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(u(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=d},function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return s}));var r=n(0),i=n(244),o=n(133),a=n(196);function s(t,e){return{seriesType:t,plan:Object(i.default)(),reset:function(t){var n=t.getData(),i=t.coordinateSystem,s=t.pipelineContext,l=e||s.large;if(i){var u=Object(r.map)(i.dimensions,(function(t){return n.mapDimension(t)})).slice(0,2),c=u.length,h=n.getCalculationInfo("stackResultDimension");Object(o.isDimensionStacked)(n,u[0])&&(u[0]=h),Object(o.isDimensionStacked)(n,u[1])&&(u[1]=h);var d=n.getStore(),f=n.getDimensionIndex(u[0]),p=n.getDimensionIndex(u[1]);return c&&{progress:function(t,e){for(var n=t.end-t.start,r=l&&Object(a.createFloat32Array)(n*c),o=[],s=[],u=t.start,h=0;u<t.end;u++){var g=void 0;if(1===c){var v=d.get(f,u);g=i.dataToPoint(v,null,s)}else o[0]=d.get(f,u),o[1]=d.get(p,u),g=i.dataToPoint(o,null,s);l?(r[h++]=g[0],r[h++]=g[1]):e.setItemLayout(u,g.slice())}l&&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(129),o=n(80),a=n(482),s=n(0),l=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),l=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",l))},n.disable=function(){e.off("mousedown",r),e.off("mousemove",i),e.off("mouseup",o),e.off("mousewheel",a),e.off("pinch",l)},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)||t.target&&t.target.draggable)){var e=t.offsetX,n=t.offsetY;this.pointerChecker&&this.pointerChecker(t,e,n)&&(this._x=e,this._y=n,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,l=n-i;this._x=e,this._y=n,this._opt.preventDefaultMouseMove&&o.stop(t.event),c(this,"pan","moveOnMouseMove",t,{dx:s,dy:l,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;u(this,"zoom","zoomOnMouseWheel",t,{scale:r>0?s:1/s,originX:o,originY:a,isAvailableBehavior:null})}if(n){var l=Math.abs(r);u(this,"scrollMove","moveOnMouseWheel",t,{scrollDelta:(r>0?1:-1)*(l>3?.4:l>1?.15:.05),originX:o,originY:a,isAvailableBehavior:null})}}},e.prototype._pinchHandler=function(t){a.isTaken(this._zr,"globalPan")||u(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 u(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=l},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 l})),n.d(e,"__metadata",(function(){return u})),n.d(e,"__awaiter",(function(){return c})),n.d(e,"__generator",(function(){return h})),n.d(e,"__createBinding",(function(){return d})),n.d(e,"__exportStar",(function(){return f})),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 l(t,e){return function(n,r){e(n,r,t)}}function u(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{l(r.next(t))}catch(t){o(t)}}function s(t){try{l(r.throw(t))}catch(t){o(t)}}function l(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}l((r=r.apply(t,e||[])).next())}))}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 d(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}function f(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(l,u):c(o[0][2],n)}catch(t){c(o[0][3],t)}var n}function l(t){s("next",t)}function u(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 u}));var r=n(12),i=n.n(r),o=n(11),a=n.n(o),s=n(3),l=n.n(s),u=i()((function t(e,n){a()(this,t),l()(this,"cancelBubble",void 0),l()(this,"cancelable",void 0),l()(this,"target",void 0),l()(this,"currentTarget",void 0),l()(this,"preventDefault",void 0),l()(this,"stopPropagation",void 0),l()(this,"type",void 0),l()(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 u}));var r=n(11),i=n.n(r),o=n(12),a=n.n(o),s=n(3),l=n.n(s),u=function(){function t(e){i()(this,t),l()(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(45),s=n.n(a),l=n(11),u=n.n(l),c=n(12),h=n.n(c),d=n(3),f=n.n(d),p=n(42),g=n.n(p),v=(n(182),n(67));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){f()(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){u()(this,t),s()(this,"configService",o,this),f()(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,"getDecalFromPalette",(function(){return s})),n.d(e,"PaletteMixin",(function(){return a}));var r=n(10),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 l(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 l(t,o,a,null,e,n,i)}function l(t,e,n,r,i,o,a){var s=e(o=o||t),l=s.paletteIdx||0,u=s.paletteNameMap=s.paletteNameMap||{};if(u.hasOwnProperty(i))return u[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[l];return i&&(u[i]=h),s.paletteIdx=(l+1)%c.length,h}}},function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return u}));var r=n(5),i=n(668),o=n(33),a=n(536),s=n(1301),l=n(0);function u(t,e,n,u){Object(l.each)(s.AXIS_TYPES,(function(s,h){var d=Object(l.merge)(Object(l.merge)({},i.default[h],!0),u,!0),f=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(l.merge)(t,i.get(h+"Axis")),Object(l.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=d,n}(n);t.registerComponentModel(f)})),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 l})),n.d(e,"getConstraint",(function(){return u}));var r=n(1),i=n(194),o=n(68),a=n(172);function s(t,e,n,i,o){var s=[];if(t.length){for(var l=[],u=[],c=0,h=t.length;c<h;c++){var d=t[c];l.push(d[1]),u.push(d[0])}u=u.reverse(),Object(r.each)([l,u],(function(t,r){var c=[],h=i.parsePoints(t),d=h[0];1===l.length&&1===u.length?c=0===r?[["M",d.x-.5,d.y],["L",d.x+.5,d.y]]:[["L",d.x+.5,d.y],["L",d.x-.5,d.y]]:(e&&h.push({x:d.x,y:d.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 l(t,e,n,r,a){for(var l=Object(o.getStyle)(t,e,!e,"lineWidth"),u=t.connectNulls,c=t.isInCircle,h=t.points,d=t.showSinglePoint,f=Object(i.getPathPoints)(h,u,d),p=[],g=0,v=f.length;g<v;g++){var m=f[g];p=p.concat(s(m,c,n,r,a))}return l.path=p,l}function u(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 d})),n.d(e,"legend",(function(){return f})),n.d(e,"adjust",(function(){return g})),n.d(e,"adaptor",(function(){return v}));var r=n(2),i=n(1),o=n(9),a=n(4),s=n(34),l=n(354);function u(t){var e=t.chart,n=t.options,i=n.data,o=n.color,l=n.lineStyle,u=n.lineShape,c=n.point,h=n.area,d=n.seriesField,f=null==c?void 0:c.state,p=null==h?void 0:h.state;e.data(i);var g=Object(a.deepAssign)({},t,{options:{shapeField:d,line:{color:o,style:l,shape:u},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:f}}),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,u=r.xField,c=r.yField,h=r.data;return Object(a.flow)(Object(o.scale)(((e={})[u]=i,e[c]=s,e),((n={})[u]={type:"cat"},n[c]=Object(l.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 d(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.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 l=i.callback,u=Object(r.__rest)(i,["callback"]);s.label({fields:[o],callback:l,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)(u))})}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)(u,c,g,o.theme,h,d,f,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(1666),i=n(1667),o=n(1669),a=n(1668),s=n(1670),l=n(1671),u=n(1672),c=n(1673),h=n(1674),d=n(1675),f=n(1676),p=n(1677),g=n(1678);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),l=[s];n=l.pop();)if((i=e(n.data))&&(a=(i=Array.from(i)).length))for(n.children=i,o=a-1;o>=0;--o)l.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:l.default,sort:u.default,path:c.default,ancestors:h.default,descendants:d.default,leaves:f.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 a})),n.d(e,"RIGHT_BUTTON",(function(){return s})),n.d(e,"BUTTONS_FLAGS",(function(){return l})),n.d(e,"buttonStillPressed",(function(){return u}));var r,i=n(3),o=n.n(i),a=0,s=2,l=(r={},o()(r,a,1),o()(r,s,2),r);function u(t,e){var n=l[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 u}));var r=n(291),i=n(98),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};if(s)!u(e=s.image)&&s.pending.push(c);else{var h=i.platformApi.loadImage(t,l,l);h.__zrImageSrc=t,o.put(t,h.__cachedImgObj={image:h,pending:[c]})}return e}return t}return e}function l(){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 u(t){return t&&t.width&&t.height}},function(t,e,n){"use strict";n.r(e),n.d(e,"Region",(function(){return d})),n.d(e,"GeoJSONPolygonGeometry",(function(){return f})),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(20),a=n(343),s=n(41),l=n(0),u=[];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 d=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}(),f=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 l=t[s][0],u=t[s][1],c=o*u-l*a;e+=c,n+=(o+l)*c,r+=(a+u)*c,o=l,a=u}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(l.each)(o,(function(e){"polygon"===e.type?h(e.exterior,n,r,t):Object(l.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,l=o.interiors;if(a.contain(s,t[0],t[1])){for(var u=0;u<(l?l.length:0);u++)if(a.contain(l[u],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),u=o.calculateTransform(s),h=this.geometries,d=0;d<h.length;d++){var f=h[d];"polygon"===f.type?(c(f.exterior,u),Object(l.each)(f.interiors,(function(t){c(t,u)}))):Object(l.each)(f.points,(function(t){c(t,u)}))}(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}(d),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(u),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}(d)},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 l})),n.d(e,"hideOverlap",(function(){return u}));var r=n(532),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(),l=!a||a[1]<1e-5&&a[2]<1e-5,u=o.style.margin||0,c=s.clone();c.applyTransform(a),c.x-=u/2,c.y-=u/2,c.width+=u,c.height+=u;var h=l?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:l,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,l=0,u=!1,c=[],h=0,d=0;d<a;d++){var f=t[d],p=f.rect;(s=p[e]-l)<0&&(p[e]-=s,f.label[e]-=s,u=!0);var g=Math.max(-s,0);c.push(g),h+=g,l=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),u}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&&(u=!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,l=1;l<a;l++){var u=t[l-1].rect,c=Math.max(t[l].rect[e]-u[e]-u[n],0);o.push(c),s+=c}if(s){var h=Math.min(Math.abs(r)/s,i);if(r>0)for(l=0;l<a-1;l++){w(o[l]*h,0,l+1)}else for(l=a-1;l>0;l--){w(-(o[l-1]*h),l,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 l(t,e,n,r){return a(t,"y","height",e,n,r)}function u(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],l=s.axisAligned,u=s.localRect,c=s.transform,h=s.label,d=s.labelLine;n.copy(s.rect),n.width-=.1,n.height-=.1,n.x+=.05,n.y+=.05;for(var f=s.obb,p=!1,g=0;g<e.length;g++){var v=e[g];if(n.intersect(v.rect)){if(l&&v.axisAligned){p=!0;break}if(v.obb||(v.obb=new r.default(v.localRect,v.transform)),f||(f=new r.default(u,c)),f.intersect(v.obb)){p=!0;break}}}p?(o(h),d&&o(d)):(h.attr("ignore",s.defaultAttr.ignore),d&&d.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(10);function o(t,e,n){n=n||{};var i=t.coordinateSystem,o=e.axis,a={},s=o.getAxesOnZeroOf()[0],l=o.position,u=s?"onZero":l,c=o.dim,h=i.getRect(),d=[h.x,h.x+h.width,h.y,h.y+h.height],f={left:0,right:1,top:0,bottom:1,onZero:2},p=e.get("offset")||0,g="x"===c?[d[2]-p,d[3]+p]:[d[0]-p,d[1]+p];if(s){var v=s.toGlobalCoord(s.dataToCoord(0));g[f.onZero]=Math.max(Math.min(v,g[1]),g[0])}a.position=["y"===c?g[f[u]]:d[0],"x"===c?g[f[u]]:d[3]],a.rotation=Math.PI/2*("x"===c?0:1);a.labelDirection=a.tickDirection=a.nameDirection={top:-1,bottom:1,left:-1,right:1}[l],a.labelOffset=s?g[f[l]]-g[f.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"===u?-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 l})),n.d(e,"fillPath",(function(){return I})),n.d(e,"fillPathByDiff",(function(){return P})),n.d(e,"formatPath",(function(){return R})),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=[],l=i.toLowerCase();if(o.replace(a,(function(t,e){e&&s.push(+e)})),"m"===l&&s.length>2&&(n.push([i].concat(s.splice(0,2))),l="l",i="m"===i?"l":"L"),"o"===l&&1===s.length&&n.push([i,s[0]]),"r"===l)n.push([i].concat(s));else for(;s.length>=e[l]&&(n.push([i].concat(s.splice(0,e[l]))),e[l]););return t})),n},l=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},u=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),l=t+n*Math.cos(-i*a);o=[["M",s,e+n*Math.sin(-r*a)],["A",n,n,0,+(i-r>180),0,l,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 d=3===t.length&&"M"===t[0][0]&&"R"===t[1][0].toUpperCase()&&"Z"===t[2][0].toUpperCase(),f=void 0,p=void 0,g=h,v=t.length;g<v;g++){if(r.push(f=[]),(e=(p=t[g])[0])!==e.toUpperCase())switch(f[0]=e.toUpperCase(),f[0]){case"A":f[1]=p[1],f[2]=p[2],f[3]=p[3],f[4]=p[4],f[5]=p[5],f[6]=+p[6]+i,f[7]=+p[7]+o;break;case"V":f[1]=+p[1]+o;break;case"H":f[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(l(n,d));break;case"O":r.pop(),(n=u(i,o,p[1],p[2])).push(n[0]),r=r.concat(n);break;case"U":r.pop(),r=r.concat(u(i,o,p[1],p[2],p[3])),f=["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++)f[m]=+p[m]+(m%2?i:o)}else if("R"===e)n=[i,o].concat(p.slice(1)),r.pop(),r=r.concat(l(n,d)),f=["R"].concat(p.slice(-2));else if("O"===e)r.pop(),(n=u(i,o,p[1],p[2])).push(n[0]),r=r.concat(n);else if("U"===e)r.pop(),r=r.concat(u(i,o,p[1],p[2],p[3])),f=["U"].concat(r[r.length-1].slice(-2));else for(var b=0,_=p.length;b<_;b++)f[b]=p[b];if("O"!==(e=e.toUpperCase()))switch(f[0]){case"Z":i=+a,o=+c;break;case"H":i=f[1];break;case"V":o=f[1];break;case"M":a=f[f.length-2],c=f[f.length-1];break;default:i=f[f.length-2],o=f[f.length-1]}}return r},h=function(t,e,n,r){return[t,e,n,r,n,r]},d=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]},f=function(t,e,n,r,i,o,a,s,l,u){n===r&&(n+=1);var c,h,d,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(u)h=u[0],d=u[1],p=u[2],g=u[3];else{t=(c=b(t,e,-m)).x,e=c.y,s=(c=b(s,l,-m)).x,l=c.y,t===s&&e===l&&(s+=1,l+=1);var _=(t-s)/2,x=(e-l)/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+l)/2,h=Math.asin(((e-g)/r).toFixed(9)),d=Math.asin(((l-g)/r).toFixed(9)),h=t<p?Math.PI-h:h,d=s<p?Math.PI-d:d,h<0&&(h=2*Math.PI+h),d<0&&(d=2*Math.PI+d),a&&h>d&&(h-=2*Math.PI),!a&&d>h&&(d-=2*Math.PI)}var E=d-h;if(Math.abs(E)>v){var T=d,M=s,A=l;d=h+v*(a&&d>h?1:-1),s=p+n*Math.cos(d),l=g+r*Math.sin(d),y=f(s,l,n,r,i,0,a,M,A,[d,T,p,g])}E=d-h;var I=Math.cos(h),j=Math.sin(h),k=Math.cos(d),P=Math.sin(d),L=Math.tan(E/4),D=4/3*n*L,R=4/3*r*L,N=[t,e],F=[t+D*j,e-R*I],B=[s+D*P,l-R*k],z=[s,l];if(F[0]=2*N[0]-F[0],F[1]=2*N[1]-F[1],u)return[F,B,z].concat(y);for(var V=[],U=0,G=(y=[F,B,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=[],l=[],u="",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(f.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(d(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(d(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&&(l[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]&&(u=r[y][0]),"C"!==u&&(s[y]=u,y&&(p=s[y-1])),r[y]=g(r[y],o,p),"A"!==s[y]&&"C"===u&&(s[y]="C"),v(r,y),i&&(i[y]&&(u=i[y][0]),"C"!==u&&(l[y]=u,y&&(p=l[y-1])),i[y]=g(i[y],a,p),"A"!==l[y]&&"C"===u&&(l[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,l){null===l&&(l=1);for(var u=(l=l>1?1:l<0?0:l)/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],d=0,f=0;f<12;f++){var p=u*c[f]+u,g=m(p,t,n,i,a),v=m(p,e,r,o,s),y=g*g+v*v;d+=h[f]*Math.sqrt(y)}return u*d},b=function(t,e,n,r,i,o,a,s){for(var l,u,c,h,d=[],f=[[],[]],p=0;p<2;++p)if(0===p?(u=6*t-12*n+6*i,l=-3*t+9*n-9*i+3*a,c=3*n-3*t):(u=6*e-12*r+6*o,l=-3*e+9*r-9*o+3*s,c=3*r-3*e),Math.abs(l)<1e-12){if(Math.abs(u)<1e-12)continue;(h=-c/u)>0&&h<1&&d.push(h)}else{var g=u*u-4*c*l,v=Math.sqrt(g);if(!(g<0)){var m=(-u+v)/(2*l);m>0&&m<1&&d.push(m);var y=(-u-v)/(2*l);y>0&&y<1&&d.push(y)}}for(var b,_=d.length,x=_;_--;)b=1-(h=d[_]),f[0][_]=b*b*b*t+3*b*b*h*n+3*b*h*h*i+h*h*h*a,f[1][_]=b*b*b*e+3*b*b*h*r+3*b*h*h*o+h*h*h*s;return f[0][x]=t,f[1][x]=e,f[0][x+1]=a,f[1][x+1]=s,f[0].length=f[1].length=x+2,{min:{x:Math.min.apply(0,f[0]),y:Math.min.apply(0,f[1])},max:{x:Math.max.apply(0,f[0]),y:Math.max.apply(0,f[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 l=(t-n)*(o-s)-(e-r)*(i-a);if(l){var u=((t*r-e*n)*(i-a)-(t-n)*(i*s-o*a))/l,c=((t*r-e*n)*(o-s)-(e-r)*(i*s-o*a))/l,h=+u.toFixed(2),d=+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)||d<+Math.min(e,r).toFixed(2)||d>+Math.max(e,r).toFixed(2)||d<+Math.min(o,s).toFixed(2)||d>+Math.max(o,s).toFixed(2)))return{x:u,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,l){Object(r.isArray)(t)||(t=[t,e,n,i,o,a,s,l]);var u=b.apply(null,t);return O(u.min.x,u.min.y,u.max.x-u.min.x,u.max.y-u.min.y)},C=function(t,e,n,r,i,o,a,s,l){var u=1-l,c=Math.pow(u,3),h=Math.pow(u,2),d=l*l,f=d*l,p=t+2*l*(n-t)+d*(i-2*n+t),g=e+2*l*(r-e)+d*(o-2*r+e),v=n+2*l*(i-n)+d*(a-2*i+n),m=r+2*l*(o-r)+d*(s-2*o+r);return{x:c*t+3*h*l*n+3*u*l*l*i+f*a,y:c*e+3*h*l*r+3*u*l*l*o+f*s,m:{x:p,y:g},n:{x:v,y:m},start:{x:u*t+l*n,y:u*e+l*r},end:{x:u*i+l*a,y:u*o+l*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={},l=n?0:[],u=0;u<r+1;u++){var c=C.apply(0,t.concat(u/r));o.push({x:c.x,y:c.y,t:u/r})}for(u=0;u<i+1;u++){c=C.apply(0,e.concat(u/i));a.push({x:c.x,y:c.y,t:u/i})}for(u=0;u<r;u++)for(var h=0;h<i;h++){var d=o[u],f=o[u+1],p=a[h],g=a[h+1],v=Math.abs(f.x-d.x)<.001?"y":"x",m=Math.abs(g.x-p.x)<.001?"y":"x",b=_(d.x,d.y,f.x,f.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=d.t+Math.abs((b[v]-d[v])/(f[v]-d[v]))*(f.t-d.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?l+=1:l.push({x:b.x,y:b.y,t1:w,t2:E}))}}return l},T=function(t,e){return function(t,e,n){var r,i,o,a,s,l,u,c,h,d;t=p(t),e=p(e);for(var f=n?0:[],g=0,v=t.length;g<v;g++){var m=t[g];if("M"===m[0])r=s=m[1],i=l=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,l,s,l],r=s,i=l);for(var y=0,b=e.length;y<b;y++){var _=e[y];if("M"===_[0])o=u=_[1],a=c=_[2];else{"C"===_[0]?(d=[o,a].concat(_.slice(1)),o=d[6],a=d[7]):(d=[o,a,o,a,u,c,u,c],o=u,a=c);var x=E(h,d,n);if(n)f+=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=d;f=f.concat(x)}}}}}return f}(t,e)};function M(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 A=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 l=M(o,a/(1-a*s));i.push(l.left),o=l.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 l=o.reduce((function(e,r,i){return i===n?e.concat(t[n]):e.concat(A(t[i],t[i+1],r))}),[]);return l.unshift(t[0]),"Z"!==e[r]&&"z"!==e[r]||l.push("Z"),l},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=[],l=0;l<=i;l++)s[l]=[],s[l][0]={min:l};for(var u=0;u<=o;u++)s[0][u]={min:u};for(l=1;l<=i;l++){n=t[l-1];for(u=1;u<=o;u++){r=e[u-1],a=j(n,r)?0:1;var c=s[l-1][u].min+1,h=s[l][u-1].min+1,d=s[l-1][u-1].min+a;s[l][u]=k(c,h,d)}}return s}(t,e),r=t.length,i=e.length,o=[],a=1,s=1;if(n[r][i].min!==r){for(var l=1;l<=r;l++){var u=n[l][l].min;s=l;for(var c=a;c<=i;c++)n[l][c].min<u&&(u=n[l][c].min,s=c);a=s,n[l][a].type&&o.push({index:l-1,type:n[l][a].type})}for(l=o.length-1;l>=0;l--)a=o[l].index,"add"===o[l].type?t.splice(a,0,[].concat(t[a])):t.splice(a,1)}var h=i-(r=t.length);if(r<i)for(l=0;l<h;l++)"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=D(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 D(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 R=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=D(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,l=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 u=(l=(e-r)/(t-n))*o-a+(t*r-n*e)/(t-n);return u*u/(l*l+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 l})),n.d(e,"toCSSVendorPrefix",(function(){return u})),n.d(e,"getComputedStyle",(function(){return c}));var r=n(48),i=n(49);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"]),l=a(["webkitTransition","transition","OTransition","MozTransition","msTransition"]);function u(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 l})),n.d(e,"distanceAtSegment",(function(){return u}));var r=n(213),i=n(83);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]),l={from:o,to:a,length:s};n.push(l),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,l=null,u=0;u<i.length;u++){var c=i[u],h=c.from,d=c.to,f=c.length/a;if(e>=s&&e<=s+f){var p=(e-s)/f;l=r.default.pointAt(h[0],h[1],d[0],d[1],p);break}s+=f}return l}function l(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,l=0;l<r.length;l++){var u=r[l],c=u.from,h=u.to,d=u.length/i;if(e>=a&&e<=a+d){s=Math.atan2(h[1]-c[1],h[0]-c[0]);break}a+=d}return s}function u(t,e,n){for(var i=1/0,o=0;o<t.length-1;o++){var a=t[o],s=t[o+1],l=r.default.pointDistance(a[0],a[1],s[0],s[1],e,n);l<i&&(i=l)}return i}},function(t,e,n){"use strict";n.r(e),n.d(e,"getLegendLayout",(function(){return h})),n.d(e,"getLegendItems",(function(){return d})),n.d(e,"getCustomLegendItems",(function(){return f})),n.d(e,"getLegendThemeCfg",(function(){return p}));var r=n(2),i=n(1),o=n(7),a=n(547),s=n(78),l=n(252),u=["line","cross","tick","plus","hyphen"];function c(t){var e=t.symbol;Object(i.isString)(e)&&l.MarkerSymbols[e]&&(t.symbol=l.MarkerSymbols[e])}function h(t){return t.startsWith(o.DIRECTION.LEFT)||t.startsWith(o.DIRECTION.RIGHT)?"vertical":"horizontal"}function d(t,e,n,o,l){var h=n.getScale(n.type);if(h.isCategory){var d=h.field,f=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(d,[(y={},y[d]=w,y)]).length;Object(i.each)(t.views,(function(t){var e;t.filterFieldData(d,[(e={},e[d]=w,e)]).length||(O=!0)}));var S,C,E=Object(a.getMappingValue)(f,w,g),T=Object(a.getMappingValue)(p,w,"point"),M=e.getShapeMarker(T,{color:E,isInPolar:v}),A=l;return Object(i.isFunction)(A)&&(A=A(x,m,Object(r.__assign)({name:x,value:w},Object(i.deepMix)({},o,M)))),function(t,e){var n=t.symbol;if(Object(i.isString)(n)&&-1!==u.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})}}(M=Object(i.deepMix)({},o,M,Object(s.omit)(Object(r.__assign)({},A),["style"])),E),A&&A.style&&(M.style=(S=M.style,C=A.style,Object(i.isFunction)(C)?C(S):Object(i.deepMix)({},S,C))),c(M),{id:w,name:x,value:w,marker:M,unchecked:O}}))}return[]}function f(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)),l=s[0],u=void 0===l?[]:l,c=s[1],h=void 0===c?[]:c;return o?[u.reverse(),h.reverse()]:[u,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,l=t.__axisPosition,u=l.layout,c=l.position;if(o(u)&&"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(u)&&"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(u)&&"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(u)&&"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 d}));var r=n(566),i=n(36),o=n(0),a=n(23),s=n(248);function l(t){return Object(o.isArray)(t[0])}function u(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 l=n[s].many;if(l.length<=1){if(!s)return n;s=0}o=l.length;var u=Math.ceil(o/2);n[i].many=l.slice(u,o),n[s].many=l.slice(0,u),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 d=Object(a.getAnimationConfig)("update",i,s);if(d&&d.duration>0){var f,p,g=i.getModel("universalTransition").get("delay"),v=Object.assign({setToFinal:!0},d);l(t)&&(f=t,p=e),l(e)&&(f=e,p=t);for(var m=f?f===t:t.length>e.length,y=f?u(p,f):u(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 l=t.many,u=t.one;if(1!==l.length||s)for(var d=Object(o.defaults)({dividePath:c[n],individualDelay:g&&function(t,e,n,r){return g(t+i,a)}},v),f=e?Object(r.combineMorph)(l,u,d):Object(r.separateMorph)(u,l,d),p=f.fromIndividuals,m=f.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?l[b]:t.one,e?t.one:l[b],O)}else{var _=e?l[0]:u,x=e?u:l[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 d(t){if(!t)return[];if(Object(o.isArray)(t)){for(var e=[],n=0;n<t.length;n++)e.push(d(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){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.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=f,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):f(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):f(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))&&u<9?e.style.filter=isNaN(i)?"":"alpha(opacity="+100*i+")":e.style[n]=i};var i,o=n(200);var a=((i=o)&&i.__esModule?i:{default:i}).default.prototype.$isServer,s=/([\:\-\_]+(.))/g,l=/^moz([A-Z])/,u=a?0:Number(document.documentMode),c=function(t){return t.replace(s,(function(t,e,n,r){return r?n.toUpperCase():n})).replace(l,"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)},d=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),d(t,e,r)}))};function f(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=u<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 l}));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 l(t,e){i[t.toLowerCase()]=e}},function(t,e,n){"use strict";n.r(e);var r=n(59),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(658).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 u}));var r=n(59),i=n(97),o=n(55),a=n(36),s=n(0),l=n(98),u=Object(s.defaults)({strokeFirst:!0,font:l.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)(u,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 l}));var r=n(0),i=n(171),o=n(48),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"),l=s&&s[n.getItemVisual(t,"drawType")||"fill"],u=s&&s.stroke,c=this.mainType,h="series"===c,d=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:l,borderColor:u,dimensionNames:d?d.fullDimensions:null,encode:d?d.encode:null,$vars:["seriesName","name","value"]}},t.prototype.getFormattedLabel=function(t,e,n,s,l,u){e=e||"normal";var c=this.getData(n),h=this.getDataParams(t,n);(u&&(h.value=u.interpolatedValue),null!=s&&r.isArray(h.value)&&(h.value=h.value[s]),l)||(l=c.getItemModel(t).get("normal"===e?["label","formatter"]:[e,"label","formatter"]));return r.isFunction(l)?(h.status=e,h.dimensionIndex=s,l(h)):r.isString(l)?Object(o.formatTpl)(l,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(u&&r.isArray(u.interpolatedValue)){var l=c.getDimensionIndex(a);l>=0&&(s=u.interpolatedValue[l])}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 l(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,"createOrUpdatePatternFromDecal",(function(){return f}));var r=n(1277),i=n(291),o=n(0),a=n(6),s=n(60),l=n(249),u=n(98),c=new r.default,h=new i.default(100),d=["symbol","symbolSize","symbolKeepAspect","color","backgroundColor","dashArrayX","dashArrayY","maxTileWidth","maxTileHeight"];function f(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 f=c.get(t);if(f)return f;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],f=!0,v=0;v<d.length;++v){var m=g[d[v]];if(null!=m&&!Object(o.isArray)(m)&&!Object(o.isString)(m)&&!Object(o.isNumber)(m)&&"boolean"!=typeof m){f=!1;break}c.push(m)}if(f){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=(M=_,Object(o.map)(M,(function(t){return p(t)}))),S=p(x),C=!i&&u.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 M;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,u=0,c=0;for(;o<T.height;){if(a%2==0){for(var h=u/2%w.length,d=0,f=0,p=0;d<2*T.width;){var v=0;for(e=0;e<_[c].length;++e)v+=_[c][e];if(v<=0)break;if(f%2==0){var m=.5*(1-g.symbolSize),y=d+_[c][f]*m,O=o+x[a]*m,M=_[c][f]*g.symbolSize,A=x[a]*g.symbolSize,I=p/2%w[h].length;j(y,O,M,A,w[h][I])}d+=_[c][f],++p,++f===_[c].length&&(f=0)}++c===_.length&&(c=0)}o+=x[a],++u,++a===x.length&&(a=0)}function j(t,e,o,a,u){var c=i?1:n,h=Object(s.createSymbol)(u,t*c,e*c,o*c,a*c,g.color,g.symbolKeepAspect);if(i){var d=r.painter.renderOneToVNode(h);d&&E.children.push(d)}else Object(l.brushSingle)(b,h)}})(),f&&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,"summarizeDimensions",(function(){return a})),n.d(e,"getDimensionTypeByAxis",(function(){return l}));var r=n(0),i=n(29),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={},l=Object(r.createHashMap)(),u=[],c=[],h={};Object(r.each)(t.dimensions,(function(e){var n,r=t.getDimensionInfo(e),o=r.coordDim;if(o){0;var d=r.coordDimIndex;s(a,o)[d]=e,r.isExtraCoord||(l.set(o,1),"ordinal"!==(n=r.type)&&"time"!==n&&(u[0]=e),s(h,o)[d]=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 d=[],f={};l.each((function(t,e){var n=a[e];f[e]=n[0],d=d.concat(n)})),n.dataDimsOnCoord=d,n.dataDimIndicesOnCoord=Object(r.map)(d,(function(e){return t.getDimensionInfo(e).storeDimIndex})),n.encodeFirstDimNotExtra=f;var p=a.label;p&&p.length&&(u=p.slice());var g=a.tooltip;return g&&g.length?c=g.slice():c.length||(c=u.slice()),a.defaultedLabel=u,a.defaultedTooltip=c,n.userOutput=new o(h,e),n}function s(t,e){return t.hasOwnProperty(e)||(t[e]=[]),t[e]}function l(t){return"category"===t?"ordinal":"time"===t?"time":"float"}},function(t,e,n){"use strict";n.r(e);var r=n(5),i=n(60),o=n(23),a=n(39),s=n(32),l=n(13),u=n(229),c=n(0),h=n(27),d=n(106),f=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(l.enterEmphasis)(this.childAt(0))},e.prototype.downplay=function(){Object(l.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){var e=this.childAt(0);e.draggable=t,e.cursor=t?"move":e.cursor},e.prototype.updateData=function(t,n,r,i){this.silent=!1;var a=t.getItemVisual(n,"symbol")||"circle",s=t.hostModel,l=e.getSymbolSize(t,n),u=a!==this._symbolType,c=i&&i.disableAnimation;if(u){var h=t.getItemVisual(n,"symbolKeepAspect");this._createSymbol(a,t,n,l,h)}else{(f=this.childAt(0)).silent=!1;var d={scaleX:l[0]/2,scaleY:l[1]/2};c?f.attr(d):o.updateProps(f,d,s,n),Object(o.saveOldStyle)(f)}if(this._updateCommon(t,n,l,r,i),u){var f=this.childAt(0);if(!c){d={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:f.style.opacity}};f.scaleX=f.scaleY=0,f.style.opacity=0,o.initProps(f,d,s,n)}}c&&this.childAt(0).stopAnimation("leave")},e.prototype._updateCommon=function(t,e,n,r,o){var a,s,f,p,g,v,m,y,b,_=this.childAt(0),x=t.hostModel;if(r&&(a=r.emphasisItemStyle,s=r.blurItemStyle,f=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(),f=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 d.default){var M=_.style;_.useStyle(Object(c.extend)({image:M.image,x:M.x,y:M.y,width:M.width,height:M.height},E))}else _.__isEmptyBrush?_.useStyle(Object(c.extend)({},E)):_.useStyle(E),_.style.decal=null,_.setColor(T,o&&o.symbolInnerColor),_.style.strokeNoScale=!0;var A=t.getItemVisual(e,"liftZ"),I=this._z2;null!=A?null==I&&(this._z2=_.z2,_.z2+=A):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(u.getDefaultLabel)(t,e)},inheritColor:T,defaultOpacity:E.opacity}),this._sizeX=n[0]/2,this._sizeY=n[1]/2;var k=_.ensureState("emphasis");if(k.style=a,_.ensureState("select").style=f,_.ensureState("blur").style=s,y){var P=Math.max(Object(c.isNumber)(y)?y:1.1,3/this._sizeY);k.scaleX=this._sizeX*P,k.scaleY=this._sizeY*P}this.setSymbolScale(1),Object(l.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 l=r.getTextContent();l&&o.removeElement(l,{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=f},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 l})),n.d(e,"getAxisPointerModel",(function(){return u})),n.d(e,"makeKey",(function(){return h}));var r=n(57),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"),l=s.get("link",!0)||[],u=[];Object(i.each)(n.getCoordinateSystems(),(function(n){if(n.axisPointerEnabled){var d=h(n.model),f=t.coordSysAxesInfo[d]={};t.coordSysMap[d]=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,d,g){var v=g.model.getModel("axisPointer",s),m=v.get("show");if(m&&("auto"!==m||o||c(v))){null==d&&(d=v.get("triggerTooltip"));var y=(v=o?function(t,e,n,o,a,s){var l=e.getModel("axisPointer"),u={};Object(i.each)(["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],(function(t){u[t]=Object(i.clone)(l.get(t))})),u.snap="category"!==t.type&&!!s,"cross"===l.get("type")&&(u.type="line");var c=u.label||(u.label={});if(null==c.show&&(c.show=!1),"cross"===a){var h=l.get(["label","show"]);if(c.show=null==h||h,!s){var d=u.lineStyle=l.get("crossStyle");d&&Object(i.defaults)(c,d.textStyle)}}return t.model.getModel("axisPointer",new r.default(u,n,o))}(g,p,s,e,o,d):v).get("snap"),b=h(g.model),_=d||y||"category"===g.type,x=t.axesInfo[b]={key:b,axis:g,coordSys:n,axisPointerModel:v,triggerTooltip:d,involveSeries:_,snap:y,useHandle:c(v),seriesModels:[],linkGroup:null};f[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}}(l,g);if(null!=w){var O=u[w]||(u[w]={axesInfo:{}});O.axesInfo[b]=x,O.mapper=l[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=l(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 u=r.getExtent().slice();u[0]>u[1]&&u.reverse(),(null==a||a>u[1])&&(a=u[1]),a<u[0]&&(a=u[0]),i.value=a,s&&(i.status=e.axis.scale.isBlank()?"hide":"show")}}function l(t){var e=(t.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return e&&e.axesInfo[h(t)]}function u(t){var e=l(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(20),o=n(41),a=n(35),s=n(119),l=i.applyTransform,u=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){t&&(this._center=t,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=c(e);return r===this?r.dataToPoint(n):null},e.prototype.convertFromPixel=function(t,e,n){var r=c(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 c(t){var e=t.seriesModel;return e?e.coordinateSystem:null}e.default=u},function(t,e,n){"use strict";n.r(e),n.d(e,"initCurvenessList",(function(){return u})),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 l=0;l<s;l++)a.push((l%2?l+1:l)/10*(l%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")},l=function(t,e){var n=e.__edgeMap;return n[t]?n[t].length:0};function u(t){i(t)&&(t.__curvenessList=[],t.__edgeMap={},o(t))}function c(t,e,n,r){if(i(n)){var o=a(t,e,n),l=n.__edgeMap,u=l[s(o)];l[o]&&!u?l[o].isForward=!0:u&&l[o]&&(u.isForward=!0,l[o].isForward=!1),l[o]=l[o]||[],l[o].push(r)}}function h(t,e,n,u){var c=i(e),h=r.isArray(c);if(!c)return null;var d=function(t,e){var n=a(t.node1,t.node2,e);return e.__edgeMap[n]}(t,e);if(!d)return null;for(var f=-1,p=0;p<d.length;p++)if(d[p]===n){f=p;break}var g=function(t,e){return l(a(t.node1,t.node2,e),e)+l(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(d.isForward)return m[y+f];var b=s(v),_=l(b,e),x=m[f+_+y];return u?h?c&&0===c[0]?(_+y)%2?x:-x:((_%2?0:1)+y)%2?x:-x:(_+y)%2?x:-x:m[f+_+y]}},function(t,e,n){"use strict";n.r(e),n.d(e,"install",(function(){return c}));var r=n(205),i=n(1407),o=n(1408),a=n(1409),s=n(0),l=n(333),u=n(1410);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(l.collect)(t,e)})),t.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},u.default)}},function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return c}));var r=n(11),i=n.n(r),o=n(12),a=n.n(o),s=n(3),l=n.n(s),u=n(93),c=function(){function t(e,n){i()(this,t),l()(this,"ne",void 0),l()(this,"sw",void 0),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 a()(t,[{key:"setNorthEast",value:function(t){return this.ne=t instanceof u.default?new u.default(t.lng,t.lat):u.default.convert(t),this}},{key:"setSouthWest",value:function(t){return this.sw=t instanceof u.default?new u.default(t.lng,t.lat):u.default.convert(t),this}},{key:"extend",value:function(e){var n,r,i=this.sw,o=this.ne;if(e instanceof u.default)n=e,r=e;else{if(!(e instanceof t)){if(Array.isArray(e)){if(4===e.length||e.every(Array.isArray)){var a=e;return this.extend(t.convert(a))}var s=e;return this.extend(u.default.convert(s))}return this}if(n=e.sw,r=e.ne,!n||!r)return this}return i||o?(i.lng=Math.min(n.lng,i.lng),i.lat=Math.min(n.lat,i.lat),o.lng=Math.max(r.lng,o.lng),o.lat=Math.max(r.lat,o.lat)):(this.sw=new u.default(n.lng,n.lat),this.ne=new u.default(r.lng,r.lat)),this}},{key:"getCenter",value:function(){return new u.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 u.default(this.getWest(),this.getNorth())}},{key:"getSouthEast",value:function(){return new u.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=u.default.convert(t),n=e.lng,r=e.lat,i=this.sw.lat<=r&&r<=this.ne.lat,o=this.sw.lng<=n&&n<=this.ne.lng;return this.sw.lng>this.ne.lng&&(o=this.sw.lng>=n&&n>=this.ne.lng),i&&o}}],[{key:"convert",value:function(e){return e instanceof t?e:new t(e)}}]),t}()},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,"SeriesDataSchema",(function(){return l})),n.d(e,"isSeriesDataSchema",(function(){return u})),n.d(e,"createDimNameMap",(function(){return c})),n.d(e,"ensureSourceDimNameMap",(function(){return h})),n.d(e,"shouldOmitUnusedDimensions",(function(){return d}));var r=n(0),i=n(10),o=n(140),a=Object(i.makeInner)(),s={float:"f",int:"i",ordinal:"o",number:"n",time:"t"},l=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=!d(t),r="",i=[],a=0,l=0;a<t;a++){var u=void 0,c=void 0,h=void 0,f=this.dimensions[l];if(f&&f.storeDimIndex===a)u=e?f.name:null,c=f.type,h=f.ordinalMeta,l++;else{var p=this.getSourceDimension(a);p&&(u=e?p.name:null,c=p.type)}i.push({property:u,type:c,ordinalMeta:h}),!e||null==u||f&&f.isCalculationCoord||(r+=n?u.replace(/\`/g,"`1").replace(/\$/g,"`2"):u),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 u(t){return t instanceof l}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 d(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,l=o.max||1/0;a=Math.max(Math.min(l,a),s)}var u=a/t.zoom;t.zoom=a,i.x-=(n-i.x)*(u-1),i.y-=(r-i.y)*(u-1),i.scaleX*=u,i.scaleY*=u,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 l}));var r=n(2),i=n(252),o=n(68),a=["circle","square","bowtie","diamond","hexagon","triangle","triangle-down"],s=["cross","tick","plus","hyphen","line"];function l(t,e,n,a,s){var l,u,c=Object(o.getStyle)(e,s,!s,"r"),h=t.parsePoints(e.points),d=h[0];if(e.isStack)d=h[1];else if(h.length>1){var f=n.addGroup();try{for(var p=Object(r.__values)(h),g=p.next();!g.done;g=p.next()){var v=g.value;f.addShape({type:"marker",attrs:Object(r.__assign)(Object(r.__assign)(Object(r.__assign)({},c),{symbol:i.MarkerSymbols[a]||a}),v)})}}catch(t){l={error:t}}finally{try{g&&!g.done&&(u=p.return)&&u.call(p)}finally{if(l)throw l.error}}return f}return n.addShape({type:"marker",attrs:Object(r.__assign)(Object(r.__assign)(Object(r.__assign)({},c),{symbol:i.MarkerSymbols[a]||a}),d)})}},function(t,e,n){"use strict";n.r(e),n.d(e,"HTMLElement",(function(){return x}));var r=n(12),i=n.n(r),o=n(11),a=n.n(o),s=n(8),l=n.n(s),u=n(30),c=n.n(u),h=n(31),d=n.n(h),f=n(18),p=n.n(f),g=n(3),v=n.n(g),m=n(732),y=n(145);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 d()(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()(l()(t),"className",void 0),v()(l()(t),"children",void 0),v()(l()(t),"focus",void 0),v()(l()(t),"blur",void 0),v()(l()(t),"insertBefore",void 0),v()(l()(t),"appendChild",void 0),v()(l()(t),"removeChild",void 0),v()(l()(t),"remove",void 0),v()(l()(t),"innerHTML",void 0),v()(l()(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(l()(t),i),y.style(l()(t)),y.classList(l()(t)),y.clientRegion(l()(t)),y.offsetRegion(l()(t)),y.scrollRegion(l()(t)),t}return i()(n)}(m.Element)},function(t,e,n){"use strict";n.r(e),n.d(e,"contain",(function(){return o}));var r=n(278);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 l=t[s];o+=Object(r.default)(a[0],a[1],l[0],l[1],e,n),a=l}var u=t[0];return i(a[0],u[0])&&i(a[1],u[1])||(o+=Object(r.default)(a[0],a[1],u[0],u[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 l}));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},l="sliderchange"},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(223),i=n(160);function o(t,e,n,i,o){var a={},s="number"==typeof o,l=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 u=a[l];if(Array.isArray(u))for(var c=0,h=u;c<h.length;c++){var d=h[c];if(d.key===i.key)throw new Error(r.DUPLICATED_METADATA+" "+d.key.toString())}else u=[];u.push(i),a[l]=u,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,n){var r=n(1181),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),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(84),o=n(1),a=n(44),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(431).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(142),s=n(69),l=n(1532);function u(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 l=Object(i.isArray)(s.content)?s.content:[s.content];s.content=l;var u=l.length;Object(i.each)(l,(function(o,a){if(Object(i.isNil)(o)||""===o)n.push(null);else{var l=Object(r.__assign)(Object(r.__assign)({},s),e.getLabelPoint(s,t,a));l.textAlign||(l.textAlign=e.getLabelAlign(l,a,u)),l.offset<=0&&(l.labelLine=null),n.push(l)}}))}})),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?u(o):o.length<=2?o[e.length-1]:u(o):o[n]),o}var l={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 d=Object(s.getPolygonCentroid)(e.x,e.y);l.x=d[0],l.y=d[1]}else"interval"!==this.geometry.type||h?(l.x=a(e.x,n),l.y=a(e.y,n)):(l.x=a(e.x,n,!0),l.y=a(e.y,n));if(h){var f=Object(i.get)(e,"nextPoints"),p=Object(i.get)(e,"points");if(f){var g=r.convert(p[1]),v=r.convert(f[1]);l.x=(g.x+v.x)/2,l.y=(g.y+v.y)/2}else if("pyramid"===c){g=r.convert(p[1]),v=r.convert(p[2]);l.x=(g.x+v.x)/2,l.y=(g.y+v.y)/2}}t.position&&this.setLabelPosition(l,e,n,t.position);var m=this.getLabelOffsetPoint(t,n,o);return l.start={x:l.x,y:l.y},l.x+=m.x,l.y+=m.y,l.color=e.color,l},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,u=this.labelsRenderer;return u||(u=new l.default({container:e,layout:Object(i.get)(n,["cfg","layout"],{type:this.defaultLayout})}),this.labelsRenderer=u),u.region=r,u.animate=!!o&&Object(a.getDefaultAnimateCfg)("label",s),u},t.prototype.getLabelCfgs=function(t){var e=this,n=this.geometry,a=n.labelOption,s=n.scales,l=n.coordinate,u=a,c=u.fields,h=u.callback,d=u.cfg,f=c.map((function(t){return s[t]})),p=[];return Object(i.each)(t,(function(t,n){var a,s=t[o.FIELD_ORIGIN],u=e.getLabelText(s,f);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:l},d),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=u[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(124);n.d(e,"Base",(function(){return r.default}));var i=n(1086);n.d(e,"Circle",(function(){return i.default}));var o=n(1087);n.d(e,"Dom",(function(){return o.default}));var a=n(1088);n.d(e,"Ellipse",(function(){return a.default}));var s=n(1089);n.d(e,"Image",(function(){return s.default}));var l=n(1090);n.d(e,"Line",(function(){return l.default}));var u=n(1091);n.d(e,"Marker",(function(){return u.default}));var c=n(1092);n.d(e,"Path",(function(){return c.default}));var h=n(1093);n.d(e,"Polygon",(function(){return h.default}));var d=n(1094);n.d(e,"Polyline",(function(){return d.default}));var f=n(1095);n.d(e,"Rect",(function(){return f.default}));var p=n(1096);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 l})),n.d(e,"processIllegalData",(function(){return u}));var r=n(2),i=n(1),o=n(388),a=n(625);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 l(t,e,n,i,o){if(void 0===o&&(o=[]),!Array.isArray(t))return{nodes:[],links:[]};var s=[],l={},u=-1;return t.forEach((function(t){var c=t[e],h=t[n],d=t[i],f=Object(a.pick)(t,o);l[c]||(l[c]=Object(r.__assign)({id:++u,name:c},f)),l[h]||(l[h]=Object(r.__assign)({id:++u,name:h},f)),s.push(Object(r.__assign)({source:l[c].id,target:l[h].id,value:d},f))})),{nodes:Object.values(l).sort((function(t,e){return t.id-e.id})),links:s}}function u(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,l=a.length,u=t.value&&(i-n)/t.value;++s<l;)(o=a[s]).x0=e,o.x1=r,o.y0=n,o.y1=n+=o.value*u}},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(288).default);e.default=o},function(t,e,n){"use strict";n.r(e),n.d(e,"renderTag",(function(){return l}));var r=n(2),i=n(1),o=n(231),a=n(118),s=n(44);function l(t,e){var n=e.x,l=e.y,u=e.content,c=e.style,h=e.id,d=e.name,f=e.rotate,p=e.maxLength,g=e.autoEllipsis,v=e.isVertical,m=e.ellipsisPosition,y=e.background,b=t.addGroup({id:h+"-group",name:d+"-group",attrs:{x:n,y:l}}),_=b.addShape({type:"text",id:h,name:d,attrs:Object(r.__assign)({x:0,y:0,text:u},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,M=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:M+x[0]+x[2]},O)}).toBack()}Object(a.applyTranslate)(b,n,l),Object(a.applyRotate)(b,f,n,l)}},function(t,e,n){"use strict";n.r(e),n.d(e,"findDataByPoint",(function(){return h})),n.d(e,"getTooltipItems",(function(){return d})),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(155);function s(t,e,n){var r=n.translate(t),o=n.translate(e);return Object(i.isNumberEqual)(r,o)}function l(t,e,n){var r=n.coordinate,a=n.getYScale(),s=a.field,l=r.invert(e),u=a.invert(l.y);return Object(i.find)(t,(function(t){var e=t[o.FIELD_ORIGIN];return e[s][0]<=u&&e[s][1]>=u}))||t[t.length-1]}var u=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,l=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 u=Object(r.__values)(l),c=u.next();!c.done;c=u.next()){var h=c.value,d=h.getScale(h.type);if(d&&d.isLinear){var f=Object(i.get)(t.scaleDefs,d.field);if("cat"!==Object(a.inferScaleType)(d,f,h.type,t.type)){s=d;break}}}}catch(t){e={error:t}}finally{try{c&&!c.done&&(n=u.return)&&n.call(u)}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,d=c.field,f=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(_[d]-v,2);x<m&&(m=x,f=b)}return f}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][d],T=O[o.FIELD_ORIGIN][h],M=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(!M){f=L;break}Object(i.isArray)(f)||(f=[]),f.push(L)}}Object(i.isArray)(f)&&(f=l(f,t,n))}else{var A=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],A=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(!M){f=L;break}Object(i.isArray)(f)||(f=[]),f.push(L)}else a.translate(_[h])<=S&&(O=L,A=e[y+1])}Object(i.isArray)(f)&&(f=l(f,t,n))}O&&A&&Math.abs(a.translate(O[o.FIELD_ORIGIN][h])-S)>Math.abs(a.translate(A[o.FIELD_ORIGIN][h])-S)&&(O=A)}var D=u(n.getXScale());return!f&&Math.abs(a.translate(O[o.FIELD_ORIGIN][h])-S)<=D/2&&(f=O),f}function d(t,e,n,s){var l,u;void 0===n&&(n=""),void 0===s&&(s=!1);var h,d=t[o.FIELD_ORIGIN],f=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],l=s?s.getText(t[a]):t[a]||a;return Object(i.isFunction)(n)?n(l,t):l}(d,e,n),p=e.tooltipOption,g=e.theme.defaultColor,v=[];function m(e,n){if(s||!Object(i.isNil)(n)&&""!==n){var r={title:f,data:d,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:f,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)(d[E])){var T=O[E];m(Object(a.getName)(T),h=T.getText(d[E]))}}}catch(t){l={error:t}}finally{try{C&&!C.done&&(u=S.return)&&u.call(S)}finally{if(l)throw l.error}}}}else{var M=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)}(d,M),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)}(d,e),h)}return v}function f(t,e,n,o){var a,s,l=o.showNil,u=[],c=t.dataArray;if(!Object(i.isEmpty)(c)){t.sort(c);try{for(var f=Object(r.__values)(c),p=f.next();!p.done;p=f.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=d(g,t,n,l);y.length&&u.push(y)}}}}catch(t){a={error:t}}finally{try{p&&!p.done&&(s=f.return)&&s.call(f)}finally{if(a)throw a.error}}}return u}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=d(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,l=n.shared,u=n.title,c=n.reversed;try{for(var h=Object(r.__values)(s),d=h.next();!d.done;d=h.next()){var g=d.value;if(g.visible&&!1!==g.tooltipOption){var v=g.type,m=void 0;(m=["point","edge","polygon"].includes(v)?p(g,e,u,n):["area","line","path","heatmap"].includes(v)||!1!==l?f(g,e,u,n):p(g,e,u,n)).length&&(c&&m.reverse(),a.push(m))}}}catch(t){i={error:t}}finally{try{d&&!d.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),l=s.next();!l.done;l=s.next()){var u=l.value;a=a.concat(g(u,e,n))}}catch(t){i={error:t}}finally{try{l&&!l.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 l})),n.d(e,"DEFAULT_BREAD_CRUMB_CONFIG",(function(){return u})),n.d(e,"HIERARCHY_DATA_TRANSFORM_PARAMS",(function(){return c})),n.d(e,"DrillDownAction",(function(){return h}));var r=n(2),i=n(15),o=n(1),a=n(626),s=5,l="drilldown-bread-crumb",u={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=u,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 l=s.data;a.unshift({id:l.name+"_"+s.height+"_"+s.depth,name:l.name,children:n(Object(r.__assign)({data:l},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:l});var i=0;n.forEach((function(a,s){var u=t.breadCrumbGroup.addShape({type:"text",id:a.id,name:l+"_"+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=u.getBBox();if(i+=c.width+4,u.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)}})),u.on("mouseenter",(function(t){var r;t.target.get("id")!==(null===(r=Object(o.last)(n))||void 0===r?void 0:r.id)?u.attr(e.activeTextStyle):u.attr({cursor:"default"})})),u.on("mouseleave",(function(){u.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){"use strict";n.r(e),n.d(e,"default",(function(){return f}));var r,i=n(11),o=n.n(i),a=n(12),s=n.n(a),l=n(3),u=n.n(l),c=n(21),h=(n(86),n(28)),d=n(204),f=Object(c.injectable)()(r=function(){function t(){o()(this,t),u()(this,"shaderModuleService",void 0),u()(this,"rendererService",void 0),u()(this,"cameraService",void 0),u()(this,"mapService",void 0),u()(this,"interactionService",void 0),u()(this,"layerService",void 0),u()(this,"config",void 0)}return s()(t,[{key:"getName",value:function(){return""}},{key:"getType",value:function(){return d.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,"cloneValue",(function(){return v}));var r=n(1263),i=n(71),o=n(0),a=n(649),s=n(441),l=n(76),u=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 d(t,e,n,r){for(var i=e.length,o=0;o<i;o++)t[o]=e[o]+n[o]*r;return t}function f(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]:u.call(i[s]));var l=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<l;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(u.call(t[r]));return n}return u.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,u=r.length,c=!1,h=6,d=e;if(Object(o.isArrayLike)(e)){var f=function(t){return Object(o.isArrayLike)(t&&t[0])?2:1}(e);h=f,(1===f&&!Object(o.isNumber)(e[0])||2===f&&!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&&(d=p,h=3)}else h=0;else if(Object(o.isGradientObject)(e)){var g=Object(o.extend)({},d);g.colorStops=Object(o.map)(e.colorStops,(function(t){return{offset:t.offset,color:i.parse(t.color)}})),Object(l.isLinearGradient)(e)?h=4:Object(l.isRadialGradient)(e)&&(h=5),d=g}0===u?this.valType=h:h===this.valType&&6!==h||(c=!0),this.discrete=this.discrete||c;var v={time:t,value:d,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),l=y(r),u=0;u<i;u++){var c=n[u],h=c.value,v=o.value;c.percent=c.time/t,a||(s&&u!==i-1?g(h,v,r):l&&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(u=0;u<i;u++)0===r?n[u].additiveValue=n[u].value-m:3===r?n[u].additiveValue=d([],n[u].value,m,-1):b(r)&&(n[u].additiveValue=1===r?d([],n[u].value,m,-1):f([],n[u].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",l=this.valType,u=this.keyframes,d=u.length,f=this.propName,p=3===l,g=this._lastFr,v=Math.min;if(1===d)r=i=u[0];else{if(e<0)n=0;else if(e<this._lastFrP){for(n=v(g+1,d-1);n>=0&&!(u[n].percent<=e);n--);n=v(n,d-2)}else{for(n=g;n<d&&!(u[n].percent>e);n++);n=v(n-1,d-2)}i=u[n+1],r=u[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[f];if(!b(l)&&!p||O||(O=this._additiveValue=[]),this.discrete)t[f]=w<1?r.rawValue:i.rawValue;else if(b(l))1===l?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(l)){var S=r[s],C=i[s],E=4===l;t[f]={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[f].x2=c(S.x2,C.x2,w),t[f].y2=c(S.y2,C.y2,w)):t[f].r=c(S.r,C.r,w)}else if(p)h(O,r[s],i[s],w),a||(t[f]=m(O));else{var T=c(r[s],i[s],w);a?this._additiveValue=T:t[f]=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],_),d(_,_,r,1),t[n]=m(_)):1===e?d(t[n],t[n],r,1):2===e&&f(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 l=void 0,u=this._getAdditiveTrack(a);if(u){var c=u.keyframes,h=c[c.length-1];l=h&&h.value,3===u.valType&&l&&(l=m(l))}else l=this._target[a];if(null==l)continue;t>0&&s.addKeyframe(0,v(l),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],l=this._getAdditiveTrack(a),u=s.keyframes,c=u.length;if(s.prepare(i,l),s.needsAnimate())if(!this._allowDiscrete&&s.discrete){var h=u[c-1];h&&(e._target[s.propName]=h.rawValue),s.setFinished()}else n.push(s)}if(n.length||this._force){var d=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=d,this.animation&&this.animation.addClip(d),t&&d.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,l=e.y2;t.x1=i,t.x2=o,t.y1=s,t.y2=l;var u=n&&n.lineWidth;return u?(r(2*i)===r(2*o)&&(t.x1=t.x2=a(i,u,!0)),r(2*s)===r(2*l)&&(t.y1=t.y2=a(s,u,!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 l=n&&n.lineWidth;return l?(t.x=a(r,l,!0),t.y=a(i,l,!0),t.width=Math.max(a(r+o,l,!1)-t.x,0===o?0:1),t.height=Math.max(a(i+s,l,!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),l=this._modDataCount||0,u=h(t&&t.modBy),c=t&&t.modDataCount||0;function h(t){return!(t>=1)&&(t=1),t}s===u&&l===c||(e="reset"),(this._dirty||"reset"===e)&&(this._dirty=!1,a=this._doReset(i)),this._modBy=u,this._modDataCount=c;var d=t&&t.step;if(this._dueEnd=n?n._outputDueEnd:this._count?this._count(this.context):1/0,this._progress){var f=this._dueIndex,p=Math.min(null!=d?this._dueIndex+d:1/0,this._dueEnd);if(!i&&(a||f<p)){var g=this._progress;if(Object(r.isArray)(g))for(var v=0;v<g.length;v++)this._doProgress(g[v],f,p,u,c);else this._doProgress(g,f,p,u,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(l,u,c,h){e=l,t=u,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(40),a=n(156),s=n(10),l=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}(),u=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 l;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";u(n.findComponents({mainType:o+"Axis"}),o)}r&&u(n.findComponents({mainType:"singleAxis",filter:function(t){return t.get("orient",!0)===e}}),"single");function u(e,n){var o=e[0];if(o){var a=new l;if(a.add(o.componentIndex),t.set(n,a),r=!1,"x"===n||"y"===n){var u=o.getReferringComponents("grid",s.SINGLE_REFERRING).models[0];u&&Object(i.each)(e,(function(t){o.componentIndex!==t.componentIndex&&u===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 l;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=u},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(201);n.d(e,"Attribute",(function(){return r.default}));var i=n(583);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,"transformData",(function(){return a})),n.d(e,"conversionTagComponent",(function(){return s}));var r=n(2),i=n(1),o=n(73);function a(t,e,n){var r=n.yField,a=n.maxSize,s=n.minSize,l=Object(i.get)(Object(i.maxBy)(e,r),[r]),u=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)/l;return e[o.FUNNEL_PERCENT]=a,e[o.FUNNEL_MAPPING_VALUE]=(u-c)*a+c,e[o.FUNNEL_CONVERSATION]=[Object(i.get)(t,[n-1,r]),e[r]],e}))}function s(t){return function(e){var n=e.chart,a=e.options.conversionTag,s=n.getOptions().data;if(a){var l=a.formatter;s.forEach((function(e,u){if(!(u<=0||Number.isNaN(e[o.FUNNEL_MAPPING_VALUE]))){var c=t(e,u,s,{top:!0,text:{content:Object(i.isFunction)(l)?l(e,s):l,offsetX:a.offsetX,offsetY:a.offsetY,position:"end",autoRotate:!1,style:Object(r.__assign)({textAlign:"start",textBaseline:"middle"},a.style)}});n.annotation().line(c)}}))}return e}}},function(t,e,n){"use strict";n.r(e),n.d(e,"getSectorCornerRadius",(function(){return o}));var r=n(0),i=n(55);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 l}));var r=n(35),i=n(356),o=n(14);function a(t){return t=u(t),function(e){return o.clipPointsByRect(e,t)}}function s(t,e){return t=u(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 l(t,e,n){var r=u(t);return function(t,o){return r.contain(o[0],o[1])&&!Object(i.onIrrelevantElement)(t,e,n)}}function u(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 u}));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,l=t;if("text"===e)s=l;else{s={},Object(r.hasOwn)(l,"text")&&(s.text=l.text),Object(r.hasOwn)(l,"rich")&&(s.rich=l.rich),Object(r.hasOwn)(l,"textFill")&&(s.fill=l.textFill),Object(r.hasOwn)(l,"textStroke")&&(s.stroke=l.textStroke),Object(r.hasOwn)(l,"fontFamily")&&(s.fontFamily=l.fontFamily),Object(r.hasOwn)(l,"fontSize")&&(s.fontSize=l.fontSize),Object(r.hasOwn)(l,"fontStyle")&&(s.fontStyle=l.fontStyle),Object(r.hasOwn)(l,"fontWeight")&&(s.fontWeight=l.fontWeight),o={type:"text",style:s,silent:!0},i={};var u=Object(r.hasOwn)(l,"textPosition");n?i.position=u?l.textPosition:"inside":u&&(i.position=l.textPosition),Object(r.hasOwn)(l,"textPosition")&&(i.position=l.textPosition),Object(r.hasOwn)(l,"textOffset")&&(i.offset=l.textOffset),Object(r.hasOwn)(l,"textRotation")&&(i.rotation=l.textRotation),Object(r.hasOwn)(l,"textDistance")&&(i.distance=l.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";l(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){l(t,t)})),i}function l(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 u(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()},l="horizontal"===r.orient?1:0,u=o[l],c=[0,null,10],h={},d=0;d<3;d++)h[o[1-l][d]]=c[d],h[u[d]]=2===d?n[0]:r[u[d]];var f=[["x","width",3],["y","height",0]][l],p=Object(i.getLayoutRect)(h,s,r.padding);return u[(p.margin[f[2]]||0)+p[f[0]]+.5*p[f[1]]<.5*s[f[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(4);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 d})),n.d(e,"tooltip",(function(){return y})),n.d(e,"adaptor",(function(){return b}));var r=n(2),i=n(1),o=n(4),a=n(34),s=n(712),l=n(9),u=n(763);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,l=n[0],c=void 0,h=1;h<n.length&&(c=n[h],l[r]!==c[r]&&(a=!1),l[i]!==c[i]&&(s=!1),a||s);h++)l=c;var d=[];a&&d.push(r),s&&d.push(i);var f=Object(o.pick)(Object(u.getMeta)(t),d);return Object(o.deepAssign)({},t,{meta:f})}return t}function h(t){var e=t.chart,n=t.options,s=n.data,l=n.type,u=n.color,c=n.shape,h=n.pointStyle,d=n.shapeField,f=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,f,v,d]})),e.data(s),Object(a.point)(Object(o.deepAssign)({},t,{options:{seriesField:f,point:{color:u,shape:c,size:m,style:h},tooltip:y}}));var b=Object(o.findGeometry)(e,"point");return l&&b.adjust(l),t}function d(t){var e,n=t.options,r=n.xAxis,i=n.yAxis,a=n.xField,s=n.yField,u=c(n);return Object(o.flow)(Object(l.scale)(((e={})[a]=r,e[s]=i,e)))(Object(o.deepAssign)({},t,{options:u}))}function f(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,l=n.sizeLegend,u=!1!==r;return i&&e.legend(i,!!u&&r),o&&(s?e.legend(o,s):e.legend(o,!1!==s&&r)),a&&e.legend(a,l||!1),u||s||l||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 l=i.callback,u=Object(r.__rest)(i,["callback"]);s.label({fields:[a],callback:l,cfg:Object(o.transformLabel)(u)})}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,d=e.regionStyle,f=e.lineStyle,p=Object(u.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==d?void 0:d[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,f)},{type:"line",top:!1,start:[a,"min"],end:[a,"max"],style:Object(o.deepAssign)({},p.lineStyle,f)})}return Object(o.flow)(Object(l.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,l={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(u.getPath)({view:i,options:e});a.addShape("path",{name:"regression-line",attrs:Object(r.__assign)(Object(r.__assign)({path:s},l),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,d,f,p,y,g,s.brushInteraction,l.slider,l.scrollbar,l.interaction,v,l.animation,l.theme,m)(t)}},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 l})),n.d(e,"point",(function(){return u})),n.d(e,"points",(function(){return c})),n.d(e,"polygon",(function(){return h})),n.d(e,"polygons",(function(){return d})),n.d(e,"lineString",(function(){return f})),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 M})),n.d(e,"isNumber",(function(){return A})),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 l(t,e,n){switch(void 0===n&&(n={}),t){case"Point":return u(e).geometry;case"LineString":return f(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 u(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(!A(t[0])||!A(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 u(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 d(t,e,n){return void 0===n&&(n={}),g(t.map((function(t){return h(t,e)})),n)}function f(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 f(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 M(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 A(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(!A(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){!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,l=new Float64Array(s),u=new Float64Array(s),c=0,h=0,d=0;d<s;)a=t[d],l[d]=i=+e(a,d,t),u[d]=o=+n(a,d,t),c+=(i-c)/++d,h+=(o-h)/d;for(var f=0;f<s;++f)l[f]-=c,u[f]-=h;return[l,u,c,h]}function r(t,e,n,r){for(var i=0,o=0,a=t.length;o<a;o++){var s=t[o],l=+e(s,o,t),u=+n(s,o,t);null!=l&&isFinite(l)&&null!=u&&isFinite(u)&&r(l,u,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=[l(t),l(e)],s=0;u(a)&&s<1e4;);return a;function l(t){return[t,n(t)]}function u(t){s++;for(var e,n=t.length,r=!1,a=0;a<n-1;a++){var u=t[a],c=t[a+1],h=[((e=[u,c])[0][0]+e[1][0])/2,(e[0][1]+e[1][1])/2],d=l(h[0]),f=o([u,h]),p=o([u,d]);Math.abs(f-p)>i&&(t.splice(a+1,0,d),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 l(){var t,n=function(t){return t[0]},o=function(t){return t[1]};function a(a){var l=0,u=0,c=0,h=0,d=0,f=t?+t[0]:1/0,p=t?+t[1]:-1/0;r(a,n,o,(function(e,n){++l,u+=(e-u)/l,c+=(n-c)/l,h+=(e*n-h)/l,d+=(e*e-d)/l,t||(e<f&&(f=e),e>p&&(p=e))}));var g=e(s(u,c,h,d),2),v=g[0],m=g[1],y=function(t){return m*t+v},b=[[f,y(f)],[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 u(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 d(){var t,o=function(t){return t[0]},s=function(t){return t[1]};function l(l){var u,c,h,d,f=e(n(l,o,s),4),p=f[0],g=f[1],v=f[2],m=f[3],y=p.length,b=0,_=0,x=0,w=0,O=0;for(u=0;u<y;)c=p[u],h=g[u++],b+=((d=c*c)-b)/u,_+=(d*c-_)/u,x+=(d*d-x)/u,w+=(c*h-w)/u,O+=(d*h-O)/u;var S=0,C=0,E=t?+t[0]:1/0,T=t?+t[1]:-1/0;r(l,o,s,(function(e,n){C++,S+=(n-S)/C,t||(e<E&&(E=e),e>T&&(T=e))}));var M=x-b*b,A=b*M-_*_,I=(O*b-w*_)/A,j=(w*M-O*_)/A,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(l,o,s,S,P),L}return l.domain=function(e){return arguments.length?(t=e,l):t},l.x=function(t){return arguments.length?(o=t,l):o},l.y=function(t){return arguments.length?(s=t,l):s},l}t.regressionExp=function(){var t,n=function(t){return t[0]},o=function(t){return t[1]};function l(l){var u=0,c=0,h=0,d=0,f=0,p=0,g=t?+t[0]:1/0,v=t?+t[1]:-1/0;r(l,n,o,(function(e,n){var r=Math.log(n),i=e*n;++u,c+=(n-c)/u,d+=(i-d)/u,p+=(e*i-p)/u,h+=(n*r-h)/u,f+=(i*r-f)/u,t||(e<g&&(g=e),e>v&&(v=e))}));var m=e(s(d/c,h/c,f/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(l,n,o,c,_),x}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},t.regressionLinear=l,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),l=a[0],d=a[1],f=a[2],p=a[3],g=l.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=l[w],S=x[0],C=x[1],E=O-l[S]>l[C]-O?S:C,T=0,M=0,A=0,I=0,j=0,k=1/Math.abs(l[E]-O||1),P=S;P<=C;++P){var L=l[P],D=d[P],R=c(Math.abs(O-L)*k)*b[P],N=L*R;T+=R,M+=N,A+=D*R,I+=D*N,j+=L*N}var F=e(s(M/T,A/T,I/T,j/T),2),B=F[0],z=F[1];m[w]=B+z*O,y[w]=Math.abs(d[w]-m[w]),h(l,w+1,x)}if(2===_)break;var V=u(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,l=0,u=[];s<o;++s)i=t[s]+n,u[0]===i?u[1]+=(e[s]-u[1])/++l:(l=0,u[1]+=r,u=[i,e[s]],a.push(u));return u[1]+=r,a}(l,m,f,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]},l=Math.E;function u(u){var c=0,h=0,d=0,f=0,p=0,g=t?+t[0]:1/0,v=t?+t[1]:-1/0,m=Math.log(l);r(u,n,o,(function(e,n){var r=Math.log(e)/m;++c,h+=(r-h)/c,d+=(n-d)/c,f+=(r*n-f)/c,p+=(r*r-p)/c,t||(e<g&&(g=e),e>v&&(v=e))}));var y=e(s(h,d,f,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(u,n,o,d,x),w}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.base=function(t){return arguments.length?(l=t,u):l},u},t.regressionPoly=function(){var t,o=function(t){return t[0]},s=function(t){return t[1]},u=3;function c(c){if(1===u){var h=l().x(o).y(s).domain(t)(c);return h.coefficients=[h.b,h.a],delete h.a,delete h.b,h}if(2===u){var f=d().x(o).y(s).domain(t)(c);return f.coefficients=[f.c,f.b,f.a],delete f.a,delete f.b,delete f.c,f}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=u+1,M=0,A=0,I=t?+t[0]:1/0,j=t?+t[1]:-1/0;for(r(c,o,s,(function(e,n){++A,M+=(n-M)/A,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,l=Array(t);for(i=0;i<t;++i)l[i]=0;for(i=t-1;i>=0;--i)for(a=e[i],s=1,l[i]+=a,o=1;o<=i;++o)s*=(i+1-o)/o,l[i-o]+=a*Math.pow(n,o)*s;return l[0]+=r,l}(T,k,-w,O),L.predict=P,L.rSquared=i(c,o,s,M,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?(u=t,c):u},c},t.regressionPow=function(){var t,n=function(t){return t[0]},o=function(t){return t[1]};function l(l){var u=0,c=0,h=0,d=0,f=0,p=0,g=t?+t[0]:1/0,v=t?+t[1]:-1/0;r(l,n,o,(function(e,n){var r=Math.log(e),i=Math.log(n);++u,c+=(r-c)/u,h+=(i-h)/u,d+=(r*i-d)/u,f+=(r*r-f)/u,p+=(n-p)/u,t||(e<g&&(g=e),e>v&&(v=e))}));var m=e(s(c,h,d,f),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(l,n,o,p,_),x}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},t.regressionQuad=d,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(504)((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){"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(202);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(201);n.d(e,"Attribute",(function(){return r.default}));var i=n(808);n.d(e,"Color",(function(){return i.default}));var o=n(809);n.d(e,"Opacity",(function(){return o.default}));var a=n(810);n.d(e,"Position",(function(){return a.default}));var s=n(811);n.d(e,"Shape",(function(){return s.default}));var l=n(812);n.d(e,"Size",(function(){return l.default}));var u=n(367);n.d(e,"registerAttribute",(function(){return u.registerAttribute})),n.d(e,"getAttribute",(function(){return u.getAttribute}));var c=n(583);n.d(e,"Scale",(function(){return c.Scale})),Object(u.registerAttribute)("Color",i.default),Object(u.registerAttribute)("Opacity",o.default),Object(u.registerAttribute)("Position",a.default),Object(u.registerAttribute)("Shape",s.default),Object(u.registerAttribute)("Size",l.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 l}));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 l(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(111);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 l})),n.d(e,"unregisterAction",(function(){return u})),n.d(e,"createCallbackAction",(function(){return c}));var r=n(1523),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 l(t,e,n){o[t]={ActionClass:e,cfg:n}}function u(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 l}));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 l(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(49),i=n(0),o=n(1260),a=n(1258),s=n(746),l=n(1259),u=n(71),c=n(151),h=n(39),d={},f={};var p=function(){function t(t,e,n){var u=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";d[h]||(h=i.keys(d)[0]),n.useDirtyRect=null!=n.useDirtyRect&&n.useDirtyRect;var f=new d[h](e,c,n,t),p=n.ssr||f.ssrOnly;this.storage=c,this.painter=f;var g=r.default.node||r.default.worker||p?null:new l.default(f.getViewportRoot(),f.root);this.handler=new o.default(c,f,g,f.root),this.animation=new s.default({stage:{update:p?null:function(){return u._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(u.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(u.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 f[t]},t}();function g(t,e){var n=new p(i.guid(),t,e);return f[n.id]=n,n}function v(t){t.dispose()}function m(){for(var t in f)f.hasOwnProperty(t)&&f[t].dispose();f={}}function y(t){return f[t]}function b(t,e){d[t]=e}var _="5.3.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 l}));var r=n(92),i=n(615);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 l(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(488),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(290),i=n(355),o=(1+Math.sqrt(5))/2;function a(t,e,n,o,a,s){for(var l,u,c,h,d,f,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{d=_[w++].value}while(!d&&w<O);for(f=p=d,y=d*d*(m=Math.max(h/c,c/h)/(S*t)),v=Math.max(p/y,y/f);w<O;++w){if(d+=u=_[w].value,u<f&&(f=u),u>p&&(p=u),y=d*d*m,(g=Math.max(p/y,y/f))>v){d-=u;break}v=g}b.push(l={value:d,dice:c<h,children:_.slice(x,w)}),l.dice?Object(r.default)(l,n,o,a,S?o+=h*d/S:s):Object(i.default)(l,n,o,S?n+=c*d/S:a,s),S-=d,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 l})),n.d(e,"CtorInt32Array",(function(){return u})),n.d(e,"CtorFloat64Array",(function(){return c}));var r,i=n(0),o=n(150),a=n(140),s="undefined"==typeof Uint32Array?Array:Uint32Array,l="undefined"==typeof Uint16Array?Array:Uint16Array,u="undefined"==typeof Int32Array?Array:Int32Array,c="undefined"==typeof Float64Array?Array:Float64Array,h={float:c,int:u,ordinal:Array,number:Array,time:c};function d(t){return t>65535?s:l}function f(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 l=new o(r),u=0;u<s;u++)l[u]=a[u];t[e]=l}}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],l=o;l<a;l++){var u=n[l]=e.parseAndCollect(n[l]);isNaN(u)||(s[0]=Math.min(u,s[0]),s[1]=Math.max(u,s[1]))}r.ordinalMeta=e,r.ordinalOffset=a,r.type="ordinal"},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(),l=s+Math.max(t.length,e||0),u=0;u<o;u++){f(n,u,(g=i[u]).type,l,!0)}for(var c=[],h=s;h<l;h++)for(var d=h-s,p=0;p<o;p++){var g=i[p],v=r.arrayRows.call(this,t[d]||c,g.property,d,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=l,{start:s,end:l}},t.prototype._initDataFromProvider=function(t,e,n){for(var r=this._provider,o=this._chunks,a=this._dimensions,s=a.length,l=this._rawExtent,u=Object(i.map)(a,(function(t){return t.property})),c=0;c<s;c++){var h=a[c];l[c]||(l[c]=[1/0,-1/0]),f(o,c,h.type,e,n)}if(r.fillStorage)r.fillStorage(t,e,o,l);else for(var d=[],p=t;p<e;p++){d=r.getItem(p,d);for(var g=0;g<s;g++){var v=o[g],m=this._dimValueGetter(d,u[g],p,g);v[p]=m;var y=l[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,l=0,u=this.count();l<u;l++){var c=e-r[this.getRawIndex(l)],h=Math.abs(c);h<=n&&((h<o||h===o&&c>=0&&a<0)&&(o=h,a=c,s=0),c===a&&(i[s++]=l))}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=d(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(d(n._rawCount))(r),o=[],a=t.length,s=0,l=t[0],u=n._chunks,c=0;c<r;c++){var h=void 0,f=n.getRawIndex(c);if(0===a)h=e(c);else if(1===a){h=e(u[l][f],c)}else{for(var p=0;p<a;p++)o[p]=u[t[p]][f];o[p]=c,h=e.apply(null,o)}h&&(i[s++]=f)}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(d(e._rawCount))(a),l=0,u=r[0],c=t[u][0],h=t[u][1],f=e._chunks,p=!1;if(!e._indices){var g=0;if(1===o){for(var v=f[r[0]],m=0;m<n;m++){((x=v[m])>=c&&x<=h||isNaN(x))&&(s[l++]=g),g++}p=!0}else if(2===o){v=f[r[0]];var y=f[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[l++]=g),g++}p=!0}}if(!p)if(1===o)for(m=0;m<a;m++){var O=e.getRawIndex(m);((x=f[r[0]][O])>=c&&x<=h||isNaN(x))&&(s[l++]=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=f[E][O])<t[E][0]||x>t[E][1])&&(S=!1)}S&&(s[l++]=e.getRawIndex(m))}return l<a&&(e._indices=s),e._count=l,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=[],l=t._rawExtent,u=0;u<e.length;u++)l[e[u]]=[1/0,-1/0];for(var c=0;c<a;c++){for(var h=t.getRawIndex(c),d=0;d<o;d++)s[d]=r[e[d]][h];s[o]=c;var f=n&&n.apply(null,s);if(null!=f){"object"!=typeof f&&(i[0]=f,f=i);for(u=0;u<f.length;u++){var p=e[u],g=f[u],v=l[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(),l=0,u=Math.floor(1/e),c=this.getRawIndex(0),h=new(d(this._rawCount))(Math.min(2*(Math.ceil(s/u)+2),s));h[l++]=c;for(var f=1;f<s-1;f+=u){for(var p=Math.min(f+u,s-1),g=Math.min(f+2*u,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 _=f,x=Math.min(f+u,s),w=f-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[l++]=Math.min(S,i),i=Math.max(S,i)),h[l++]=i,c=i}return h[l++]=this.getRawIndex(s-1),o._count=l,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),l=o[t],u=this.count(),c=i._rawExtent[t]=[1/0,-1/0],h=new(d(this._rawCount))(Math.ceil(u/s)),f=0,p=0;p<u;p+=s){s>u-p&&(s=u-p,a.length=s);for(var g=0;g<s;g++){var v=this.getRawIndex(p+g);a[g]=l[v]}var m=n(a),y=this.getRawIndex(Math.min(p+r(a,m)||0,u-1));l[y]=m,m<c[0]&&(c[0]=m),m>c[1]&&(c[1]=m),h[f++]=y}return i._count=f,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,l=[];s<n;s++)l[s]=r[t[s]][a];l[s]=i,e.apply(null,l)}}},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 l=e[this.getRawIndex(s)];l<o&&(o=l),l>a&&(a=l)}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,l=e&&Object(i.reduce)(e,(function(t,e){return t[e]=!0,t}),{});if(l)for(var u=0;u<s.length;u++)a._chunks[u]=l[u]?(r=s[u],o=void 0,(o=r.constructor)===Array?r.slice():new o(r)):s[u];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);var r,i=n(2),o=n(429),a=n(606),s=n(154);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,l=e.fontVariant;return r||(r=document.createElement("canvas").getContext("2d")),r.font=[a,l,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 l}));var r=n(239);n.d(e,"Adjust",(function(){return r.default}));var i=n(582);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()]},l=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(1038);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(188),i=n(112);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],l=t.get("el");if("remove"===e)if(t.get("isClipShape")){var u=l&&l.parentNode,c=u&&u.parentNode;u&&c&&c.removeChild(u)}else l&&l.parentNode&&l.parentNode.removeChild(l);else if("show"===e)l.setAttribute("visibility","visible");else if("hide"===e)l.setAttribute("visibility","hidden");else if("zIndex"===e)Object(i.moveTo)(l,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?l&&(l.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(161),a=n(87),s=n(24);function l(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),l=s[0],u=s[1];if(o<l&&(o=l),a>u&&(a=u),o===u&&a===u)return null;var c=t.invert(o),h=t.invert(a);if(t.isCategory){var d=t.values.indexOf(c),f=t.values.indexOf(h),p=t.values.slice(d,f+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 u=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,u={view:a,event:i.event,dims:this.dims};a.emit(r.BEFORE_FILTER,o.Event.fromData(a,r.BEFORE_FILTER,u));var c=a.getCoordinate(),h=c.invert(e),d=c.invert(t);if(this.hasDim("x")){var f=a.getXScale(),p=l(f,"x",h,d);this.filterView(a,f.field,p)}if(this.hasDim("y")){var g=a.getYScales()[0];p=l(g,"y",h,d);this.filterView(a,g.field,p)}this.reRender(a,{source:r.FILTER}),a.emit(r.AFTER_FILTER,o.Event.fromData(a,r.AFTER_FILTER,u))}},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=u},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(798),i=n(1927);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(1832),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 u})),n.d(e,"applyKeyframeAnimation",(function(){return c}));var r=n(0),i=n(217),o=n(23),a=n(10),s=Object(a.makeInner)(),l=["percent","easing","shape","style","extra"];function u(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,u=e.duration;if(n&&null==u){var h=Object(o.getAnimationConfig)("enter",n,0);u=h&&h.duration}if(a&&u){var d=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)(l,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&&(d[n]=d[n]||{});var f=n?d[n]:d;Object(r.each)(c,(function(e){f[e]=((n?t[n]:t)||{})[e]})),i.whenWithKeys(u*o.percent,s,c,o.easing)}}})),i&&i.delay(e.delay||0).duration(u).start(e.easing)}}))}}}},function(t,e,n){"use strict";n.r(e),n.d(e,"register",(function(){return l})),n.d(e,"unregister",(function(){return h}));var r=n(0),i=n(49),o=n(10),a=Object(o.makeInner)(),s=r.each;function l(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",u)}(o,e),(a(o).records[t]||(a(o).records[t]={})).handler=n}}function u(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(56);function i(t,e,n,i,o,a,s,l){var u=(Math.atan2(l-e,s-t)+2*Math.PI)%(2*Math.PI);if(u<i||u>o)return!1;var c={x:t+n*Math.cos(u),y:e+n*Math.sin(u)};return Object(r.distance)(c.x,c.y,s,l)<=a/2}},function(t,e,n){"use strict";n.r(e),n.d(e,"isMiniAli",(function(){return l})),n.d(e,"screen",(function(){return d}));var r,i,o,a,s=n(216),l="undefined"!=typeof my&&!!my&&"function"==typeof my.showToast&&!0!==my.isFRM;if(l){var u=my.getSystemInfoSync();r=u.screenWidth,i=u.screenHeight,o=u.windowWidth,a=u.windowHeight}else{var c=s.globalWindow.innerWidth,h=s.globalWindow.innerHeight;r=c,i=h,o=c,a=h}var d={width:r,height:i,availWidth:o,availHeight:a,availLeft:0,availTop:0}},function(t,e,n){"use strict";n.r(e),n.d(e,"TILE_SIZE",(function(){return l})),n.d(e,"DEFAULT_EXTENT",(function(){return u})),n.d(e,"DEFAULT_CACHE_SCALE",(function(){return c})),n.d(e,"UPDATE_TILE_STRATEGIES",(function(){return h})),n.d(e,"NOOP",(function(){return d}));var r,i=n(3),o=n.n(i),a=n(167),s=n(880),l=256,u=[-1/0,-1/0,1/0,1/0],c=5,h=(r={},o()(r,a.UpdateTileStrategy.Overlap,s.updateTileStateOverlap),o()(r,a.UpdateTileStrategy.Replace,s.updateTileStateReplace),r),d=function(){}},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";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(1148);n.d(e,"sankey",(function(){return r.Sankey}));var i=n(385);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,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(496);function i(){}var o=.7,a=1/o,s="\\s*([+-]?\\d+)\\s*",l="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",u="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",c=/^#([0-9a-f]{3,8})$/,h=new RegExp("^rgb\\("+[s,s,s]+"\\)$"),d=new RegExp("^rgb\\("+[u,u,u]+"\\)$"),f=new RegExp("^rgba\\("+[s,s,s,l]+"\\)$"),p=new RegExp("^rgba\\("+[u,u,u,l]+"\\)$"),g=new RegExp("^hsl\\("+[l,u,u]+"\\)$"),v=new RegExp("^hsla\\("+[l,u,u,l]+"\\)$"),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=d.exec(t))?new C(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=f.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))?A(e[1],e[2]/100,e[3]/100,1):(e=v.exec(t))?A(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"#"+M(this.r)+M(this.g)+M(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 M(t){return((t=Math.max(0,Math.min(255,Math.round(t)||0)))<16?"0":"")+t.toString(16)}function A(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,l=a-o,u=(a+o)/2;return l?(s=e===a?(n-r)/l+6*(n<r):n===a?(r-e)/l+2:(e-n)/l+4,l/=u<.5?a+o:2-a-o,s*=60):l=u>0&&u<1?0:s,new k(s,l,u,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,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 l,u=[],c=!1,h=-1;function d(){c&&l&&(c=!1,l.length?u=l.concat(u):h=-1,u.length&&f())}function f(){if(!c){var t=s(d);c=!0;for(var e=u.length;e;){for(l=u,u=[];++h<e;)l&&l[h].run();h=-1,e=u.length}l=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];u.push(new p(t,e)),1!==u.length||c||s(f)},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(418),i=n(577);t.exports=n(380)?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(576),i=n(911),o=n(779),a=Object.defineProperty;e.f=n(380)?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(914),i=n(780);t.exports=function(t){return r(i(t))}},function(t,e,n){var r=n(783)("wks"),i=n(580),o=n(346).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 B})),n.d(e,"lazyMultiInject",(function(){return z})),n.d(e,"createSceneContainer",(function(){return U})),n.d(e,"createLayerContainer",(function(){return G}));n(86);var r=n(228),i=n(21),o=n(1697),a=n.n(o),s=n(28),l=n(1698),u=n(1710),c=n(1711),h=n(1712),d=n(1713),f=n(1714),p=n(1715),g=n(1717),v=n(1718),m=n(1719),y=n(1720),b=n(1722),_=n(1724),x=n(1726),w=n(1728),O=n(1729),S=n(1730),C=n(1731),E=n(1733),T=n(1734),M=n(1735),A=n(1736),I=n(1737),j=n(1738),k=n(1739),P=n(1740),L=n(1741),D=n(1742),R=n(1743),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 F=a()(N,!1),B=function(t){var e=F.lazyInject(t);return function(t,n,r){e.call(this,t,n),r&&(r.initializer=function(){return t[n]})}},z=function(t){var e=F.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(d.default).inSingletonScope(),t.bind(s.TYPES.IIconService).to(u.default).inSingletonScope(),t.bind(s.TYPES.IFontService).to(l.default).inSingletonScope(),t.bind(s.TYPES.IPopupService).to(f.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(D.default).whenTargetNamed("render"),t.bind(s.TYPES.INormalPass).to(R.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(A.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(M.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(309);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,l=t.charCodeAt(a+1)-64;s=s>>1^-(1&s),l=l>>1^-(1&l),i=s+=i,o=l+=o,r.push([s/n,l/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 l=new i.GeoJSONRegion(n[e||"name"],a,n.cp);return l.properties=n,l}))}},function(t,e,n){"use strict";n.r(e);var r=n(396);n.d(e,"getAdjust",(function(){return r.getAdjust})),n.d(e,"registerAdjust",(function(){return r.registerAdjust}));var i=n(239);n.d(e,"Adjust",(function(){return i.default}));var o=n(1500),a=n(1501),s=n(1502),l=n(1503),u=n(582);for(var c in u)["default","getAdjust","registerAdjust","Adjust"].indexOf(c)<0&&function(t){n.d(e,t,(function(){return u[t]}))}(c);Object(r.registerAdjust)("Dodge",o.default),Object(r.registerAdjust)("Jitter",a.default),Object(r.registerAdjust)("Stack",s.default),Object(r.registerAdjust)("Symmetric",l.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(1692),a=(n(1924),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(308),i=n(0),o=n(55),a=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;function s(t,e,n,r,i){if(!e)return"";var o=(t+"").split("\n");i=l(e,n,r,i);for(var a=0,s=o.length;a<s;a++)o[a]=u(o[a],i);return o.join("\n")}function l(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 l=a.ascCharWidth=Object(o.getWidth)("a",e);a.placeholder=Object(i.retrieve2)(r.placeholder,"");for(var u=t=Math.max(0,t-1),c=0;c<s&&u>=l;c++)u-=l;var h=Object(o.getWidth)(n,e);return h>u&&(n="",h=0),u=t-h,a.ellipsis=n,a.ellipsisWidth=h,a.contentWidth=u,a.containerWidth=t,a}function u(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 l=0===s?c(t,i,e.ascCharWidth,e.cnCharWidth):a>0?Math.floor(t.length*i/a):0;t=t.substr(0,l),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),d=Object(i.retrieve2)(e.lineHeight,h),f=!!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*d,m=Object(i.retrieve2)(e.height,v);if(v>m&&p){var y=Math.floor(m/d);n=n.slice(0,y)}if(t&&c&&null!=g)for(var _=l(g,s,e.ellipsis,{minChar:e.truncateMinChar,placeholder:e.placeholder}),x=0;x<n.length;x++)n[x]=u(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]),f&&(S=g),{lines:n,height:m,outerWidth:S,outerHeight:w,lineHeight:d,calculatedLineHeight:h,contentWidth:O,contentHeight:v,width:g}}var d=function(){},f=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 l,u=e.width,c=e.height,h=e.overflow,d="break"!==h&&"breakAll"!==h||null==u?null:{width:u,accumWidth:0,breakAll:"breakAll"===h},f=a.lastIndex=0;null!=(l=a.exec(t));){var g=l.index;g>f&&v(n,t.substring(f,g),e,d),v(n,l[2],e,d,l[1]),f=a.lastIndex}f<t.length&&v(n,t.substring(f,t.length),e,d);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,M=0;M<C.tokens.length;M++){var A=(B=C.tokens[M]).styleName&&e.rich[B.styleName]||{},I=B.textPadding=A.padding,j=I?I[1]+I[3]:0,k=B.font=A.font||e.font;B.contentHeight=Object(o.getLineHeight)(k);var P=Object(i.retrieve2)(A.height,B.contentHeight);if(B.innerHeight=P,I&&(P+=I[0]+I[2]),B.height=P,B.lineHeight=Object(i.retrieve3)(A.lineHeight,e.lineHeight,P),B.align=A&&A.align||e.align,B.verticalAlign=A&&A.verticalAlign||"middle",w&&null!=c&&y+B.lineHeight>c){M>0?(C.tokens=C.tokens.slice(0,M),O(C,T,E),n.lines=n.lines.slice(0,S+1)):n.lines=n.lines.slice(0,S);break t}var L=A.width,D=null==L||"auto"===L;if("string"==typeof L&&"%"===L.charAt(L.length-1))B.percentWidth=L,m.push(B),B.contentWidth=Object(o.getWidth)(B.text,k);else{if(D){var R=A.backgroundColor,N=R&&R.image;N&&(N=r.findExistImage(N),r.isImageReady(N)&&(B.width=Math.max(B.width,N.width*P/N.height)))}var F=x&&null!=u?u-T:null;null!=F&&F<B.width?!D||F<j?(B.text="",B.width=B.contentWidth=0):(B.text=s(B.text,F-j,k,e.ellipsis,{minChar:e.truncateMinChar}),B.width=B.contentWidth=Object(o.getWidth)(B.text,k)):B.contentWidth=Object(o.getWidth)(B.text,k)}B.width+=j,T+=B.width,A&&(E=Math.max(E,B.lineHeight))}O(C,T,E)}n.outerWidth=n.width=Object(i.retrieve2)(u,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 B,z=(B=m[S]).percentWidth;B.width=parseInt(z,10)/100*n.width}return n}function v(t,e,n,r,i){var a,s,l=""===e,u=i&&n.rich[i]||{},c=t.lines,h=u.font||n.font,p=!1;if(r){var g=u.padding,v=g?g[1]+g[3]:0;if(null!=u.width&&"auto"!==u.width){var m=Object(o.parsePercent)(u.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 d;if(w.styleName=i,w.text=x,w.isLineHolder=!x&&!l,"number"==typeof u.width?w.width=u.width:w.width=s?s[_]:Object(o.getWidth)(x,h),_||p)c.push(new f([w]));else{var O=(c[c.length-1]||(c[0]=new f)).tokens,S=O.length;1===S&&O[0].isLineHolder?O[0]=w:(x||!S||l)&&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=[],l="",u="",c=0,h=0,d=0;d<t.length;d++){var f=t.charAt(d);if("\n"!==f){var p=Object(o.getWidth)(f,e),g=!r&&!y(f);(a.length?h+p>n:i+h+p>n)?h?(l||u)&&(g?(l||(l=u,u="",h=c=0),a.push(l),s.push(h-c),u+=f,l="",h=c+=p):(u&&(l+=u,u="",c=0),a.push(l),s.push(h),l=f,h=p)):g?(a.push(u),s.push(c),u=f,c=p):(a.push(f),s.push(p)):(h+=p,g?(u+=f,c+=p):(u&&(l+=u,u="",c=0),l+=f))}else u&&(l+=u,h+=c),a.push(l),s.push(h),l="",u="",c=0,h=0}return a.length||l||(l=t,u="",c=0),u&&(l+=u),l&&(a.push(l),s.push(h)),1===a.length&&(h+=i),{accumWidth:h,lines:a,linesWidths:s}}},function(t,e,n){"use strict";n.r(e),n.d(e,"EllipseShape",(function(){return o}));var r=n(59),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,l=a*n;t.moveTo(r-o,i),t.bezierCurveTo(r-o,i-l,r-s,i-a,r,i-a),t.bezierCurveTo(r+s,i-a,r+o,i-l,r+o,i),t.bezierCurveTo(r+o,i+l,r+s,i+a,r,i+a),t.bezierCurveTo(r-s,i+a,r-o,i+l,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(59),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(241),i=n(115),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 l}));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 l(t,e){var n=e[1],i=e[2],l=Object(r.mod)(Object(r.toRadian)(e[3]),2*Math.PI),u=e[4],c=e[5],h=t[0],d=t[1],f=e[6],p=e[7],g=Math.cos(l)*(h-f)/2+Math.sin(l)*(d-p)/2,v=-1*Math.sin(l)*(h-f)/2+Math.cos(l)*(d-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;u===c&&(b*=-1),isNaN(b)&&(b=0);var _=i?b*n*v/i:0,x=n?b*-i*g/n:0,w=(h+f)/2+Math.cos(l)*_-Math.sin(l)*x,O=(d+p)/2+Math.sin(l)*_+Math.cos(l)*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,[f,p])?0:n,ry:s(t,[f,p])?0:i,startAngle:E,endAngle:E+T,xRotation:l,arcFlag:u,sweepFlag:c}}},function(t,e,n){"use strict";n.r(e);var r=n(2),i=n(79),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(88),s=n(118),l=n(408),u=n(51),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:u.default.lineColor}},tickLine:{style:{lineWidth:1,stroke:u.default.lineColor},alignTick:!0,length:5,displayWithLabel:!0},subTickLine:{style:{lineWidth:1,stroke:u.default.lineColor},count:4,length:2},label:{autoRotate:!0,autoHide:!1,autoEllipsis:!1,style:{fontSize:12,fill:u.default.textColor,fontFamily:u.default.fontFamily,fontWeight:"normal"},offset:10,offsetX:0,offsetY:0},title:{autoRotate:!0,spacing:5,position:"center",style:{fontSize:12,fill:u.default.textColor,textBaseline:"middle",fontFamily:u.default.fontFamily,textAlign:"center"},iconStyle:{fill:u.default.descriptionIconFill,stroke:u.default.descriptionIconStroke},description:""},tickStates:{active:{labelStyle:{fontWeight:500},tickLineStyle:{lineWidth:2}},inactive:{labelStyle:{fill:u.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],l=0;l<r;l++){var u=(l+1)/(r+1),c=(1-u)*a.tickValue+u*s.tickValue,h=this.getTickPoint(c),d=this.getSidePoint(h,n.length);e.push({startPoint:h,endPoint:d,tickValue:c,id:"sub-"+a.id+"-"+l})}return e},e.prototype.getTickLineAttrs=function(t,e,n,i){var a=this.get(e).style,s={points:[t.startPoint,t.endPoint]},l=Object(o.get)(this.get("theme"),["tickLine","style"],{});a=Object(o.isFunction)(a)?Object(o.mix)({},l,a(s,n,i)):a;var u=t.startPoint,c=t.endPoint;return Object(r.__assign)({x1:u.x,y1:u.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 l=this.getSubTickLineItems(i);Object(o.each)(l,(function(t,n){e.drawTick(t,a,"subTickLine",n,l)}))}},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,l=r.offsetY,u=r.rotate,c=r.formatter,h=this.getSidePoint(t.point,i),d=this.getSideVector(i,h),f=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+l,text:f,textAlign:this.getTextAnchor(d),textBaseline:this.getTextBaseline(d)},p);return u&&(g.matrix=Object(s.getMatrixByAngle)(h,u)),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"),l=s.style,u=s.formatter;if(Object(o.isFunction)(l)){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=u?u(n.name,n,e):n.name,i=Object(o.mix)({},a,l(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,l=void 0===a?0:a,u=t.autoRotate,c=e.fontSize,h=.5;"start"===n?h=0:"end"===n&&(h=1);var d=this.getTickPoint(h),f=this.getSidePoint(d,r||l+c/2),p=Object(o.mix)({x:f.x,y:f.y,text:t.text},e),g=t.rotate,v=g;if(Object(o.isNil)(g)&&u){var m=this.getAxisVector(d);v=i.ext.angleTo(m,[1,0],!0)}if(v){var y=Object(s.getMatrixByAngle)(f,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,l=o.height,u=this.get("title").iconStyle,c=l/2,h=c/6,d=a+4,f=s-l/2,p=[d+c,f-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=[d,v+c],S=O[0],C=O[1],E=[d+c,f-l/4],T=E[0],M=E[1],A=[T,M+h],I=A[0],j=A[1],k=[I,j+h],P=k[0],L=k[1],D=[P,L+3*c/4],R=D[0],N=D[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,M],["L",I,j],["M",P,L],["L",R,N]],lineWidth:h,matrix:n},u)}),this.addShape(i,{type:"rect",id:this.getElementId("title-description-rect"),name:"axis-title-description-rect",attrs:{x:d,y:f-l/2,width:l,height:l,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(l.getStatesStyle)(t,"label",n);o&&i.attr(o)}var a=this.getElementId("tickline-"+t.id),s=e.findById(a);if(s){var u=Object(l.getStatesStyle)(t,"tickLine",n);u&&s.attr(u)}}},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(l.getStatesStyle)(t,"label",n);s&&i.attr(s)}if(a){var u=Object(l.getStatesStyle)(t,"tickLine",n);u&&a.attr(u)}}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(88),a=n(118),s=n(51),l=n(44),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:"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 l=this.getTextPoint(),u=null;if(o){var c=this.getRotateAngle();u=Object(a.getMatrixByAngle)(l,c)}this.addShape(t,{type:"text",name:"crosshair-text",id:this.getElementId("text"),attrs:Object(r.__assign)(Object(r.__assign)(Object(r.__assign)({},l),{text:s,matrix:u}),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(l.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=u},function(t,e,n){"use strict";n.r(e);var r=n(2),i=n(1),o=n(88),a=n(51),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,l){var u=s.id||l;if(n){var c=e.getPathStyle();c=Object(i.isFunction)(c)?c(s,l,r):c;var h=e.getElementId("line-"+u),d=e.getGridPath(s.points);e.addShape(t,{type:"path",name:"grid-line",id:h,attrs:Object(i.mix)({path:d},c)})}if(o&&l>0){var f=e.getElementId("region-"+u),p=l%2==0;if(Object(i.isString)(o))p&&e.drawAlternateRegion(f,t,a.points,s.points,o);else{var g=p?o[1]:o[0];e.drawAlternateRegion(f,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(88),o=n(44),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(91),a=n(142),s=n(455),l=n(69),u=n(7),c=n(461),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,l=void 0===s||s;return n.shapeFactory=r,n.container=i,n.offscreenGroup=o,n.visible=l,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,l=n.shapeType,u=r.indexOf(t);if(e){if(u>-1)return;r.push(t),"active"!==t&&"selected"!==t||null==s||s.toFront()}else{if(-1===u)return;if(r.splice(u,1),"active"===t||"selected"===t){var c=this.geometry,h=c.sortZIndex,d=c.zIndexReversed?this.geometry.elements.length-this.elementIndex:this.elementIndex;h?s.setZIndex(d):s.set("zIndex",d)}}var f=i.drawShape(l,a,this.getOffscreenGroup());r.length?this.syncShapeStyle(s,f,r,null):this.syncShapeStyle(s,f,["reset"],null),f.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(u.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,l=this.shapeType;if(this.shape=o.drawShape(l,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",d=this.getAnimateCfg(h);d&&(null===(n=this.geometry)||void 0===n||n.emit(u.GEOMETRY_LIFE_CIRCLE.BEFORE_DRAW_ANIMATE),Object(a.doAnimate)(this.shape,d,{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 d=t.get("clipShape"),f=e.get("clipShape");if(this.syncShapeStyle(d,f,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(l.getReplaceAttrs)(t,e);this.animate?r?(null===(s=this.geometry)||void 0===s||s.emit(u.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(79),o=n(270),a=n(136),s=n(1),l=n(56),u=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),u=Object(s.max)(n);r={minX:i,minY:a,x:i,y:a,maxX:o,maxY:u,width:o-i,height:u-a};var c=this.cfg.canvas;if(c){var h=c.getViewRange();this.set("isInView",Object(l.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=u},function(t,e,n){"use strict";n.r(e);var r=n(2),i=n(79),o=n(1),a=n(353),s=n(399),l=n(188),u=n(58),c=n(112),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(l.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){u.SVG_ATTR_MAP[e]&&r.setAttribute(u.SVG_ATTR_MAP[e],t)})),Object(l.setTransform)(this)},e}(i.AbstractGroup);e.default=h},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),n.d(e,"createCubicEasingFunc",(function(){return a}));var r=n(47),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]),l=+Object(i.trim)(n[2]),u=+Object(i.trim)(n[3]);if(isNaN(a+s+l+u))return;var c=[];return function(t){return t<=0?0:t>=1?1:Object(r.cubicRootAt)(0,a,l,1,t,c)&&Object(r.cubicAt)(0,s,u,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(10);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,l=a.selected,u=0;u<l.length;u++)if(l[u].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(59),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 l}));var r=n(59),i=n(36),o=n(20),a=n(47),s=[],l=function(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.percent=1};function u(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 l},e.prototype.buildPath=function(t,e){var n=e.x1,r=e.y1,i=e.x2,o=e.y2,l=e.cpx1,u=e.cpy1,c=e.cpx2,h=e.cpy2,d=e.percent;0!==d&&(t.moveTo(n,r),null==c||null==h?(d<1&&(Object(a.quadraticSubdivide)(n,l,i,d,s),l=s[1],i=s[2],Object(a.quadraticSubdivide)(r,u,o,d,s),u=s[1],o=s[2]),t.quadraticCurveTo(l,u,i,o)):(d<1&&(Object(a.cubicSubdivide)(n,l,c,i,d,s),l=s[1],c=s[2],i=s[3],Object(a.cubicSubdivide)(r,u,h,o,d,s),u=s[1],h=s[2],o=s[3]),t.bezierCurveTo(l,u,c,h,i,o)))},e.prototype.pointAt=function(t){return u(this.shape,t,!1)},e.prototype.tangentAt=function(t){var e=u(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){var i=t.getZoom(),o=t.getCenter(),a=e.zoom,s=t.projectedToPoint?t.projectedToPoint(o):t.dataToPoint(o);if(null!=e.dx&&null!=e.dy&&(s[0]-=e.dx,s[1]-=e.dy,t.setCenter(r(t,s))),null!=a){if(n){var l=n.min||0,u=n.max||1/0;a=Math.max(Math.min(i*a,u),l)/i}t.scaleX*=a,t.scaleY*=a;var c=(e.originX-t.x)*(a-1),h=(e.originY-t.y)*(a-1);t.x-=c,t.y-=h,t.updateTransform(),t.setCenter(r(t,s)),t.setZoom(a*i)}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 l}));var r=n(0),i=n(671),o=n(109),a=n(240),s=n(10),l=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}(),u=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,u){var c=new t(n),h=[],d=1;!function t(e,n){var i=e.value;d=Math.max(d,r.isArray(i)?i.length:1),h.push(e);var o=new l(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 u=0;u<a.length;u++)t(a[u],o)}(e),c.root.updateDepthAndHeight(0);var f=Object(a.default)(h,{coordDimensions:["value"],dimensionsCount:d}).dimensions,p=new o.default(f,n);return p.initData(h),u&&u(p),Object(i.default)({mainData:p,struct:c,structAttr:"tree"}),c.update(),c},t}();e.default=u},function(t,e,n){"use strict";n.r(e);var r=n(39),i=n(14),o=n(448),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=l(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=l(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 l(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 u(t){return isNaN(t[0])||isNaN(t[1])}function c(t){return t&&!u(t[0])&&!u(t[1])}e.default=s},function(t,e,n){"use strict";n.r(e);var r=n(5),i=n(0),o=n(20),a=n(60),s=n(1338),l=n(23),u=n(39),c=n(13),h=n(27),d=n(6),f=["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"),l=e.getItemVisual(n,t+"KeepAspect"),u=a.normalizeSymbolSize(i),c=a.normalizeSymbolOffset(s||0,u),h=a.createSymbol(r,-u[0]/2+c[0],-u[1]/2+c[1],u[0],u[1],null,l);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,l.initProps(o,{shape:{percent:1}},r,e),this.add(o),Object(i.each)(f,(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),l.updateProps(o,s,r,e),Object(i.each)(f,(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,l=n&&n.selectLineStyle,u=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(),l=m.getModel(["select","lineStyle"]).getLineStyle(),p=y.get("disabled"),g=y.get("focus"),v=y.get("blurScope"),u=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=l,Object(i.each)(f,(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),l=s.style||(s.style={});null!=a.stroke&&(l[e.__isEmptyBrush?"stroke":"fill"]=a.stroke),null!=a.opacity&&(l.opacity=a.opacity)}}e.markRedraw()}}),this);var x=r.getRawValue(e);Object(h.setLabelStyle)(this,u,{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(d.round)(x):x)+""});var w=this.getTextContent();if(w){var O=u.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,l=a.pointAt(0),u=a.pointAt(s),c=o.sub([],u,l);if(o.normalize(c,c),t&&(t.setPosition(l),O(t,0),t.scaleX=t.scaleY=r*s,t.markRedraw()),e&&(e.setPosition(u),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,d=void 0,f=n.__labelDistance,p=f[0]*r,g=f[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]);u[0]<l[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,d="bottom";break;case"insideStartBottom":case"insideMiddleBottom":case"insideEndBottom":w=g,d="top";break;default:w=0,d="middle"}switch(n.__position){case"end":n.x=c[0]*p+u[0],n.y=c[1]*g+u[1],h=c[0]>.8?"left":c[0]<-.8?"right":"center",d=c[1]>.8?"top":c[1]<-.8?"bottom":"middle";break;case"start":n.x=-c[0]*p+l[0],n.y=-c[1]*g+l[1],h=c[0]>.8?"right":c[0]<-.8?"left":"center",d=c[1]>.8?"bottom":c[1]<-.8?"top":"middle";break;case"insideStartTop":case"insideStart":case"insideStartBottom":n.x=p*_+l[0],n.y=l[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*_+u[0],n.y=u[1]+w,h=m[0]>=0?"right":"left",n.originX=p*_,n.originY=-w}n.scaleX=n.scaleY=r,n.setStyle({verticalAlign:n.__verticalAlign||d,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}(u.default);e.default=m},function(t,e,n){"use strict";n.r(e);var r=n(5),i=n(0),o=n(129),a=n(39),s=n(70),l=n(14),u=n(175),c=n(165),h=n(482),d=n(169),f=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)($,(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 d.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 l=n[i]=null!=a?(e[a].__brushOption=s,e[a]):w(r,x(r,s));C(r,l)}}},e.prototype.unmount=function(){return this.enableBrush(!1),A(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 M(t,e){var n=t._panels;if(!n)return!0;var r=e.__brushOption.panelId;return null==r||n[r]}function A(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:R(n),silent:!0,draggable:!0,cursor:"move",drift:Object(i.curry)(B,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)(B,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],l=a-i/2,u=s-i/2,c=n[0][1],h=n[1][1],d=c-o+i/2,f=h-o+i/2,g=c-a,v=h-s,m=g+i,y=v+i;D(t,e,"main",a,s,g,v),r.transformable&&(D(t,e,"w",l,u,o,y),D(t,e,"e",d,u,o,y),D(t,e,"n",l,u,m,o),D(t,e,"s",l,f,m,o),D(t,e,"nw",l,u,o,o),D(t,e,"ne",d,u,o,o),D(t,e,"sw",l,f,o,o),D(t,e,"se",d,f,o,o))}function L(t,e){var n=e.__brushOption,r=n.transformable,o=e.childAt(0);o.useStyle(R(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?F(t,n[0]):function(t,e){var n=[F(t,e[0]),F(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 D(t,e,n,r,i,o,a){var s,l,u,c,h,d=e.childOfName(n);d&&d.setShape((s=U(t,e,[[r,i],[r+o,i+a]]),l=f(s[0][0],s[1][0]),u=f(s[0][1],s[1][1]),c=p(s[0][0],s[1][0]),h=p(s[0][1],s[1][1]),{x:l,y:u,width:c-l,height:h-u}))}function R(t){return Object(i.defaults)({strokeNoScale:!0},t.brushStyle)}function N(t,e,n,r){var i=[f(t,n),f(e,r)],o=[p(t,n),p(e,r)];return[[i[0],o[0]],[i[1],o[1]]]}function F(t,e){return{left:"w",right:"e",top:"n",bottom:"s"}[l.transformDirection({w:"left",e:"right",n:"top",s:"bottom"}[e],function(t){return l.getTransform(t.group)}(t))]}function B(t,e,n,r,o,a){var s=n.__brushOption,l=t.toRectRange(s.range),u=V(e,o,a);Object(i.each)(r,(function(t){var e=v[t];l[e[0]][e[1]]+=u[e[0]]})),s.range=t.fromRectRange(N(l[0][0],l[1][0],l[0][1],l[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=M(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,l=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"===l.brushMode&&A(t);var u=Object(i.clone)(l);u.brushType=Y(u.brushType,s),u.panelId=!0===s?null:s.panelId,a=t._creatingCover=x(t,u),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"===l.brushMode&&l.removeOnClick&&T(t,e,n)&&A(t)&&(o={isEnd:r,removeOnClick:!0});return o}function Y(t,e){return"auto"===t?e.defaultBrushType:t}var $={mousedown:function(t){if(this._dragging)X(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){X(this,t)}};function X(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 u.default({name:"main",style:R(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[f(n[0][t],n[1][t]),p(n[0][t],n[1][t])]},updateCoverShape:function(e,n,r,i){var o,a=M(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 l=[r,o];t&&l.reverse(),P(e,n,l,i)},updateCommon:L,contain:H}}e.default=_},function(t,e,n){"use strict";n.r(e);var r=n(0),i=n(39),o=n(14),a=n(66),s=n(23),l=n(333),u=n(80),c=n(130),h=n(10),d=Object(h.makeInner)(),f=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 l=this._group,u=this._handle;if(!s||"hide"===s)return l&&l.hide(),void(u&&u.hide());l&&l.show(),u&&u.show();var c={};this.makeElOption(c,a,t,e,n);var h=c.graphicKey;h!==this._lastGraphicKey&&this.clear(n),this._lastGraphicKey=h;var d=this._moveAnimation=this.determineAnimation(t,e);if(l){var f=r.curry(v,e,d);this.updatePointerEl(l,c,f),this.updateLabelEl(l,c,f,e)}else l=this._group=new i.default,this.createPointerEl(l,c,t,e),this.createLabelEl(l,c,t,e),n.getZr().add(l);b(l,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=l.getAxisInfo(t).seriesDataCount,u=r.getExtent();return Math.abs(u[0]-u[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=d(t).pointerEl=new o[i.type](f(e.pointer));t.add(a)}},t.prototype.createLabelEl=function(t,e,n,r){if(e.label){var i=d(t).labelEl=new a.default(f(e.label));t.add(i),m(i,r)}},t.prototype.updatePointerEl=function(t,e,n){var r=d(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=d(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"),l=n.get("status");if(!s.get("show")||!l||"hide"===l)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){u.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)),d(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})(d(n).lastProp,i)||(d(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(62).default);e.default=i},function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return a}));var r=n(1438),i=n(1440),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(62),o=n(0),a=n(192),s=n(10),l=n(13),u=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){u(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){!u(t).keep&&r.group.remove(t.group)}))},e.prototype.markKeep=function(t){u(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(l.enterBlur)(t):Object(l.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(456).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(288).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=[],l=Math.max((a-o)/(Math.pow(2,12)-1),n),u=o;u<=a;u+=l){var c=Object(r.fixedBase)(u,l);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,l=t.max,u=t.tickCount,c=void 0===u?5:u,h=Object(r.isNil)(o)?Object(r.isNil)(e)?s:e:o,d=Object(r.isNil)(a)?Object(r.isNil)(n)?l:n:a;if(h>d&&(d=(i=[h,d])[0],h=i[1]),c<=2)return[h,d];for(var f=(d-h)/(c-1),p=[],g=0;g<c;g++)p.push(h+f*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(163),a=n(437),s=(n(624),n(696)),l=n(697),u=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,u,c,h;void 0===e&&(e=!1);for(var d=new Map,f=new Map,p=[],g=0,v=0;v<t.length;v++){var m=t[v],y=this.getElementId(m);p.push(y),d.set(y,m),f.set(y,g),g++}this.elements=new Array(g);var b=Object(l.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=d.get(y);var C=this.getShapeFactory(),E=this.getShapeInfo(m);v=f.get(y);(A=new a.default({shapeFactory:C,container:this.container,offscreenGroup:this.getOffscreenGroup(),elementIndex:v})).geometry=this,A.animate=this.animateOption,A.draw(E,e),this.elementsMap[y]=A,this.elements[v]=A}}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),M=T.next();!M.done;M=T.next()){y=M.value,m=d.get(y);var A=this.lastElementsMap[y],I=(v=f.get(y),E=this.getShapeInfo(m),A.getModel());(this.isCoordinateChanged||Object(s.isModelChange)(I,E))&&(A.animate=this.animateOption,A.update(E)),this.elementsMap[y]=A,this.elements[v]=A}}catch(t){o={error:t}}finally{try{M&&!M.done&&(u=T.return)&&u.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;(A=this.lastElementsMap[y]).animate=this.animateOption,A.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=u},function(t,e,n){"use strict";n.r(e),n.d(e,"getDefaultSize",(function(){return o}));var r=n(1),i=n(82);function o(t){var e=t.theme,n=t.coordinate,o=t.getXScale(),a=o.values,s=t.beforeMappingData,l=a.length,u=Object(i.getXDimensionLength)(t.coordinate),c=t.intervalPadding,h=t.dodgePadding,d=t.maxColumnWidth||e.maxColumnWidth,f=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);l=(o.max-o.min)/m,a.length>l&&(l=a.length)}var y=o.range,b=1/l,_=1;(n.isPolar?_=n.isTransposed&&l>1?g:v:(o.isLinear&&(b*=y[1]-y[0]),_=p),!Object(r.isNil)(c)&&c>=0)?b=(1-(l-1)*(c/u))/l: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/u*(x-1))/x;else!Object(r.isNil)(c)&&c>=0?(b*=_,b/=x):b/=x;b=b>=0?b:0}if(!Object(r.isNil)(d)&&d>=0){var w=d/u;b>w&&(b=w)}if(!Object(r.isNil)(f)&&f>=0){var O=f/u;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(466).default);e.default=s},function(t,e,n){"use strict";n.r(e);var r=n(2),i=n(1),o=n(87),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})),l=r.getXScale().field,u=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,l,u)}));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(466).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(466).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(87).default);e.default=o},function(t,e,n){"use strict";n.r(e),n.d(e,"geometry",(function(){return u})),n.d(e,"adaptor",(function(){return h}));var r=n(1),i=n(4),o=n(9),a=n(34),s=n(716),l=n(471);function u(t){var e=t.chart,n=t.options,o=n.percent,u=n.progressStyle,c=n.color,h=n.barWidthRatio;e.data(Object(l.getProgressData)(o));var d=Object(i.deepAssign)({},t,{options:{xField:"1",yField:"percent",seriesField:"type",isStack:!0,widthRatio:h,interval:{style:u,color:Object(r.isString)(c)?[c,s.DEFAULT_COLOR[1]]:c},args:{zIndexReversed:!0,sortZIndex:!0}}});return Object(a.interval)(d),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)(u,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(298);function o(t){var e=Object(r.clamp)(Object(i.isRealNumber)(t)?t:0,0,1);return[{type:"current",percent:e},{type:"target",percent:1-e}]}},function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return c}));var r=n(11),i=n.n(r),o=n(12),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 l(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 l(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 l(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 u=new WeakMap,c=function(){function t(){i()(this,t),u.set(this,{})}return a()(t,[{key:"addEventListener",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=u.get(this);r||(r={}),r[t]||(r[t]=[]),r[t].push(e),u.set(this,r),n.capture,n.once,n.passive}},{key:"removeEventListener",value:function(t,e){var n=u.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=u.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";n.r(e),n.d(e,"default",(function(){return h}));var r=n(11),i=n.n(r),o=n(12),a=n.n(o),s=n(3),l=n.n(s),u=n(128),c=n(307),h=function(){function t(e){i()(this,t),l()(this,"enabled",void 0),l()(this,"active",void 0),l()(this,"lastPoint",void 0),l()(this,"eventButton",void 0),l()(this,"moved",void 0),l()(this,"clickTolerance",void 0),this.reset(),this.clickTolerance=e.clickTolerance||1}return a()(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=u.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(c.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&&(u.default.mouseButton(t)===this.eventButton&&(this.moved&&u.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 d}));var r=n(72),i=n.n(r),o=n(11),a=n.n(o),s=n(12),l=n.n(s),u=n(3),c=n.n(u),h=n(128),d=function(){function t(){a()(this,t),c()(this,"enabled",void 0),c()(this,"active",void 0),c()(this,"firstTwoTouches",void 0),c()(this,"vector",void 0),c()(this,"startVector",void 0),c()(this,"aroundCenter",void 0),this.reset()}return l()(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 r=i()(this.firstTwoTouches,2),o=r[0],a=r[1],s=f(n,e,o),l=f(n,e,a);if(s&&l){var u=this.aroundCenter?null:s.add(l).div(2);return this.move([s,l],u,t)}}}},{key:"touchend",value:function(t,e,n){if(this.firstTwoTouches){var r=i()(this.firstTwoTouches,2),o=r[0],a=r[1],s=f(n,e,o),l=f(n,e,a);s&&l||(this.active&&h.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 f(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 l}));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,l=r;s<l;)i(a,t[o=s+l>>>1])<0?l=o:s=o+1;var u=r-s;switch(u){case 3:t[s+3]=t[s+2];case 2:t[s+2]=t[s+1];case 1:t[s+1]=t[s];break;default:for(;u>0;)t[s+u]=t[s+u-1],u--}t[s]=a}}function o(t,e,n,r,i,o){var a=0,s=0,l=1;if(o(t,e[n+i])>0){for(s=r-i;l<s&&o(t,e[n+i+l])>0;)a=l,(l=1+(l<<1))<=0&&(l=s);l>s&&(l=s),a+=i,l+=i}else{for(s=i+1;l<s&&o(t,e[n+i-l])<=0;)a=l,(l=1+(l<<1))<=0&&(l=s);l>s&&(l=s);var u=a;a=i-l,l=i-u}for(a++;a<l;){var c=a+(l-a>>>1);o(t,e[n+c])>0?a=c+1:l=c}return l}function a(t,e,n,r,i,o){var a=0,s=0,l=1;if(o(t,e[n+i])<0){for(s=i+1;l<s&&o(t,e[n+i-l])<0;)a=l,(l=1+(l<<1))<=0&&(l=s);l>s&&(l=s);var u=a;a=i-l,l=i-u}else{for(s=r-i;l<s&&o(t,e[n+i+l])>=0;)a=l,(l=1+(l<<1))<=0&&(l=s);l>s&&(l=s),a+=i,l+=i}for(a++;a<l;){var c=a+(l-a>>>1);o(t,e[n+c])<0?l=c:a=c+1}return l}function s(t,e){var n,r,i,s=7,l=0;n=t.length;var u=[];function c(n){var c=r[n],h=i[n],d=r[n+1],f=i[n+1];i[n]=h+f,n===l-3&&(r[n+1]=r[n+2],i[n+1]=i[n+2]),l--;var p=a(t[d],t,c,h,0,e);c+=p,0!==(h-=p)&&0!==(f=o(t[c+h-1],t,d,f,f-1,e))&&(h<=f?function(n,r,i,l){var c=0;for(c=0;c<r;c++)u[c]=t[n+c];var h=0,d=i,f=n;if(t[f++]=t[d++],0==--l){for(c=0;c<r;c++)t[f+c]=u[h+c];return}if(1===r){for(c=0;c<l;c++)t[f+c]=t[d+c];return void(t[f+l]=u[h])}var p,g,v,m=s;for(;;){p=0,g=0,v=!1;do{if(e(t[d],u[h])<0){if(t[f++]=t[d++],g++,p=0,0==--l){v=!0;break}}else if(t[f++]=u[h++],p++,g=0,1==--r){v=!0;break}}while((p|g)<m);if(v)break;do{if(0!==(p=a(t[d],u,h,r,0,e))){for(c=0;c<p;c++)t[f+c]=u[h+c];if(f+=p,h+=p,(r-=p)<=1){v=!0;break}}if(t[f++]=t[d++],0==--l){v=!0;break}if(0!==(g=o(u[h],t,d,l,0,e))){for(c=0;c<g;c++)t[f+c]=t[d+c];if(f+=g,d+=g,0===(l-=g)){v=!0;break}}if(t[f++]=u[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<l;c++)t[f+c]=t[d+c];t[f+l]=u[h]}else{if(0===r)throw new Error;for(c=0;c<r;c++)t[f+c]=u[h+c]}}(c,h,d,f):function(n,r,i,l){var c=0;for(c=0;c<l;c++)u[c]=t[i+c];var h=n+r-1,d=l-1,f=i+l-1,p=0,g=0;if(t[f--]=t[h--],0==--r){for(p=f-(l-1),c=0;c<l;c++)t[p+c]=u[c];return}if(1===l){for(g=(f-=r)+1,p=(h-=r)+1,c=r-1;c>=0;c--)t[g+c]=t[p+c];return void(t[f]=u[d])}var v=s;for(;;){var m=0,y=0,b=!1;do{if(e(u[d],t[h])<0){if(t[f--]=t[h--],m++,y=0,0==--r){b=!0;break}}else if(t[f--]=u[d--],y++,m=0,1==--l){b=!0;break}}while((m|y)<v);if(b)break;do{if(0!==(m=r-a(u[d],t,n,r,r-1,e))){for(r-=m,g=(f-=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[f--]=u[d--],1==--l){b=!0;break}if(0!==(y=l-o(t[h],u,0,l,l-1,e))){for(l-=y,g=(f-=y)+1,p=(d-=y)+1,c=0;c<y;c++)t[g+c]=u[p+c];if(l<=1){b=!0;break}}if(t[f--]=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===l){for(g=(f-=r)+1,p=(h-=r)+1,c=r-1;c>=0;c--)t[g+c]=t[p+c];t[f]=u[d]}else{if(0===l)throw new Error;for(p=f-(l-1),c=0;c<l;c++)t[p+c]=u[c]}}(c,h,d,f))}return n<120?5:n<1542?10:n<119151?19:40,r=[],i=[],{mergeRuns:function(){for(;l>1;){var t=l-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(;l>1;){var t=l-2;t>0&&i[t-1]<i[t+1]&&t--,c(t)}},pushRun:function(t,e){r[l]=t,i[l]=e,l+=1}}}function l(t,e,n,o){n||(n=0),o||(o=t.length);var a=o-n;if(!(a<2)){var l=0;if(a<32)i(t,n,o,n+(l=r(t,n,o,e)),e);else{var u=s(t,e),c=function(t){for(var e=0;t>=32;)e|=1&t,t>>=1;return t+e}(a);do{if((l=r(t,n,o,e))<c){var h=a;h>c&&(h=c),i(t,n,n+h,n+l,e),l=h}u.pushRun(n,l),u.mergeRuns(),a-=l,n+=l}while(0!==a);u.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(140),o=n(29),a=n(139),s=n(659),l=n(394),u=n(171),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(d(n)){var l=n,u=void 0,c=void 0,h=void 0;if(s){var f=a[0];f.prepareSource(),u=(h=f.getSource()).data,c=h.sourceFormat,e=[f._getVersionSign()]}else u=l.get("data",!0),c=Object(r.isTypedArray)(u)?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)(u,{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&&f("")}var l=[],u=[];return Object(r.each)(t,(function(t){t.prepareSource();var e=t.getSource(a||0);null==a||e||f(""),l.push(e),u.push(t._getVersionSign())})),o?e=Object(s.applyDataTransform)(o,l,{datasetIndex:n.componentIndex}):null!=a&&(e=[Object(i.cloneSourceShallow)(l[0])]),{sourceList:e,upstreamSignList:u}},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];d(this._sourceHost)&&a?o=a._innerGetDataStore(t,e,n):(o=new l.default).initData(new u.DefaultDataProvider(e,t.length),t),i[n]=o}return o},t.prototype._getUpstreamSourceManagers=function(){var t=this._sourceHost;if(d(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(d(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 d(t){return"series"===t.mainType}function f(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(133),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),l=o.dim,u=a.dim,c=e.mapDimension(u),h=e.mapDimension(l),d="x"===u||"radius"===u?1:0,f=Object(i.map)(t.dimensions,(function(t){return e.mapDimension(t)})),p=!1,g=e.getCalculationInfo("stackResultDimension");return Object(r.isDimensionStacked)(e,f[0])&&(p=!0,f[0]=g),Object(r.isDimensionStacked)(e,f[1])&&(p=!0,f[1]=g),{dataDimsForPoint:f,valueStart:s,valueAxisDim:u,baseAxisDim:l,stacked:!!p,valueDim:c,baseDim:h,baseDataOffset:d,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,l=e.startAngle,u=e.endAngle,c=e.clockwise,h=2*Math.PI,d=c?u-l<h:l-u<h;d||(l=u-(c?h:-h));var f=Math.cos(l),p=Math.sin(l),g=Math.cos(u),v=Math.sin(u);d?(t.moveTo(f*i+n,p*i+r),t.arc(f*s+n,p*s+r,a,-Math.PI+l,l,!c)):t.moveTo(f*o+n,p*o+r),t.arc(n,r,o,l,u,!c),t.arc(g*s+n,v*s+r,a,u-2*Math.PI,u-Math.PI,!c),0!==i&&t.arc(n,r,i,u,l,c)},e}(i.default);e.default=a},function(t,e,n){"use strict";n.r(e);var r=n(5),i=n(54),o=n(148),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 l}));var r=n(0),i=n(70),o=n(10),a=Object(o.makeInner)();function s(t,e,n,o){var s=n.axis;if(!s.scale.isBlank()){var l=n.getModel("splitArea"),u=l.getModel("areaStyle"),c=u.get("color"),h=o.coordinateSystem.getRect(),d=s.getTicksCoords({tickModel:l,clamp:!0});if(d.length){var f=c.length,p=a(t).splitAreaColors,g=r.createHashMap(),v=0;if(p)for(var m=0;m<d.length;m++){var y=p.get(d[m].tickValue);if(null!=y){v=(y+(f-1)*m)%f;break}}var b=s.toGlobalCoord(d[0].coord),_=u.getAreaStyle();c=r.isArray(c)?c:[c];for(m=1;m<d.length;m++){var x=s.toGlobalCoord(d[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=d[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)%f}a(t).splitAreaColors=g}}}function l(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 l}));var r=n(126),i=n(0),o="\0_ec_interaction_mutex";function a(t,e,n){u(t)[e]=n}function s(t,e,n){var r=u(t);r[e]===n&&(r[e]=null)}function l(t,e){return!!u(t)[e]}function u(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 l})),n.d(e,"clear",(function(){return u})),n.d(e,"count",(function(){return c}));var r=n(0),i=n(10),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 l(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 u(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(684),a=n(127),s=n(276),l=n(10),u=n(6),c=n(40),h=a.default.mapVisual,d=a.default.eachVisual,f=i.isArray,p=i.each,g=u.asc,v=u.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=l.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,l=o.formatter;n=n||["<",">"],i.isArray(t)&&(t=t.slice(),r=!0);var u=e?t:r?[c(t[0]),c(t[1])]:c(t);return i.isString(l)?l.replace("{value}",r?u[0]:u).replace("{value2}",r?u[1]:u):i.isFunction(l)?r?l(t[0],t[1]):l(t):r?t[0]===s[0]?n[0]+" "+u[1]:t[1]===s[1]?n[1]+" "+u[0]:u[0]+" - "+u[1]:u;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 l=this.isCategory();function u(n){f(e.color)&&!n.inRange&&(n.inRange={color:e.color.slice().reverse()}),n.inRange=n.inRange||{color:t.get("gradientColor")}}u.call(this,r),u.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",l);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,u=t[a];u||(u=t[a]={color:l?r:[r]}),null==u.symbol&&(u.symbol=e&&i.clone(e)||(l?o:[o])),null==u.symbolSize&&(u.symbolSize=n&&i.clone(n)||(l?s[0]:[s[0],s[0]])),u.symbol=h(u.symbol,(function(t){return"none"===t?o:t}));var c=u.symbolSize;if(null!=c){var f=-1/0;d(c,(function(t){t>f&&(f=t)})),u.symbolSize=h(c,(function(t){return v(t,[0,f],[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(415),i=n(851),o=n(853),a=n(1487),s=n(545),l=n(1488),u=n(1486),c=n(486),h=n(487);e.default=function(t,e){var n,d=typeof e;return null==e||"boolean"===d?Object(c.default)(e):("number"===d?s.default:"string"===d?(n=Object(r.default)(e))?(e=n,i.default):u.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)?l.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(1074);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(137);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})).filter((function(t){return!!t[i.RANGE_VALUE]}))}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"],[]);return o(Object(r.size)(n)?n:[0,Object(r.clamp)(t,0,1),1],t)}},function(t,e,n){"use strict";n.r(e),n.d(e,"toPaddingOptions",(function(){return s}));var r=n(3),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 f})),n.d(e,"MAX_TOUCH_TIME",(function(){return p})),n.d(e,"MAX_DIST",(function(){return g})),n.d(e,"default",(function(){return v}));var r=n(11),i=n.n(r),o=n(12),a=n.n(o),s=n(3),l=n.n(s),u=n(65),c=n(563);function h(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 d(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 d(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 d(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 f=500,p=500,g=30,v=function(){function t(e){i()(this,t),l()(this,"numTouches",void 0),l()(this,"centroid",void 0),l()(this,"startTime",void 0),l()(this,"aborted",void 0),l()(this,"touches",void 0),this.reset(),this.numTouches=e.numTouches}return a()(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 u.default(0,0),r=h(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(c.indexTouches)(n,e)))}},{key:"touchmove",value:function(t,e,n){if(!this.aborted&&this.centroid){var r=Object(c.indexTouches)(n,e);for(var i in this.touches)if(this.touches[i]){var o=this.touches[i],a=r[i];(!a||a.dist(o)>g)&&(this.aborted=!0)}}}},{key:"touchend",value:function(t,e,n){if((!this.centroid||t.timeStamp-this.startTime>p)&&(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 l}));var r=n(17),i=null,o=[],a=r.$window.performance,s={create:"create",load:"load",fullLoad:"fullLoad"},l={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(84);function o(t){return"number"==typeof t&&!isNaN(t)}function a(t,e,n,i){var a=n,s=i;if(e){var l=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=l.width?l.width:a,s=l.height?l.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=u,n=h,r=c,i=d,o=f,a=m,s=Math.random,w=[],O=1/0,S=l,C=c,E=b,T={};function M(e,n,r){for(var i,o,l,u,c,h=n.x,d=n.y,f=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],l=~~i[1],!(Math.min(Math.abs(o),Math.abs(l))>=f));)if(n.x=h+o,n.y=d+l,!(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,!((u=n).x+u.x1>c[0].x&&u.x+u.x0<c[1].x&&u.y+u.y1>c[0].y&&u.y+u.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 M=0;M<=b;M++)e[E+M]|=C<<O|(M<b?(C=y[T*b+M])>>>w:0);E+=_}return delete n.sprite,!0}return!1}return T.start=function(){var a=t[0],l=t[1],u=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,d=[],f=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:l}]:null;return function(){var e=Date.now();for(;Date.now()-e<O&&++g<h;){var n=f[g];n.x=a*(s()+.5)>>1,n.y=l*(s()+.5)>>1,p(u,n,f,g),n.hasText&&M(c,n,m)&&(d.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=d,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 l=s.getImageData(0,0,r,i).data,u=0;u<i;u++)for(var c=0;c<r;c++){var h=o*u+(c>>5),d=u*r+c<<2,f=l[d]>=250&&l[d+1]>=250&&l[d+2]>=250?1<<31-c%32:0;a[h]|=f}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 l(t){return t.text}function u(){return"serif"}function c(){return"normal"}function h(t){return t.value}function d(){return 90*~~(2*Math.random())}function f(){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,l=0,u=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,d=e.size<<1;if(e.rotate){var f=Math.sin(e.rotate*s),p=Math.cos(e.rotate*s),g=h*p,v=h*f,m=d*p,y=d*f;h=Math.max(Math.abs(g+y),Math.abs(g-y))+31>>5<<5,d=~~Math.max(Math.abs(v+m),Math.abs(v-m))}else h=h+31>>5<<5;if(d>u&&(u=d),a+h>=2048&&(a=0,l+=u,u=0),l+d>=2048)break;i.translate((a+(h>>1))/o,(l+(d>>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=d,e.xoff=a,e.yoff=l,e.x1=h>>1,e.y1=d>>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=(d=e.y1-e.y0,0);w<d*x;w++)_[w]=0;if(null==(a=e.xoff))return;l=e.yoff;for(var O=0,S=-1,C=0;C<d;C++){for(w=0;w<h;w++){var E=x*C+(w>>5),T=b[2048*(l+C)+(a+w)<<2]?1<<31-w%32:0;_[E]|=T,O|=T}O?S=C:(e.y0++,d--,C--,l++)}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,l=32-s,u=t.y1-t.y0,c=(t.y+t.y0)*n+(a>>5),h=0;h<u;h++){r=0;for(var d=0;d<=o;d++)if((r<<l|(d<o?(r=i[h*o+d])>>>s:0))&e[c+d])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,l=Math.log(a),u=.5*Math.exp(2*l/3),c=.5*Math.sqrt(l*u*(a-u)/a);s-a/2<0&&(c*=-1),o(t,e,Math.max(n,Math.floor(e-s*u/a+c)),Math.min(r,Math.floor(e+(a-s)*u/a+c)))}var h=t[e],d=n,f=r;for(i(t,n,e),t[r]>h&&i(t,n,r);d<f;){for(i(t,d,f),d++,f--;t[d]<h;)d++;for(;t[f]>h;)f--}t[n]===h?i(t,n,f):i(t,++f,r),f<=e&&(n=f+1),e<=f&&(r=f-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(u(t.length,e[r]));n.push(t.length-1),n.sort(l);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,u(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 l(t,e){return t-e}function u(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 l,u="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=u||c,d=["","webkit","Moz","MS","ms","o"],f=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)}}l="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&&l(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 M(t,e,n){b(j(e),(function(e){t.removeEventListener(e,n,!1)}))}function A(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 D(t,e){for(var n,r,i=e[0].toUpperCase()+e.slice(1),o=0;o<d.length;){if((r=(n=d[o])?n+i:e)in t)return r;o++}}var R=1;function N(t){var e=t.ownerDocument||t;return e.defaultView||e.parentWindow||i}var F="ontouchstart"in i,B=void 0!==D(i,"PointerEvent"),z=F&&/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,l=e.center=Y(r);e.timeStamp=v(),e.deltaTime=e.timeStamp-o.timeStamp,e.angle=Z(s,l),e.distance=q(s,l),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=X(e.deltaX,e.deltaY);var u=$(e.deltaTime,e.deltaX,e.deltaY);e.overallVelocityX=u.x,e.overallVelocityY=u.y,e.overallVelocity=g(u.x)>g(u.y)?u.x:u.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 l=e.deltaX-a.deltaX,u=e.deltaY-a.deltaY,c=$(s,l,u);r=c.x,i=c.y,n=g(c.x)>g(c.y)?c.x:c.y,o=X(l,u),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 d=t.element;A(e.srcEvent.target,d)&&(d=e.srcEvent.target);e.target=d}(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 $(t,e,n){return{x:e/t||0,y:n/t||0}}function X(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&&M(this.element,this.evEl,this.domHandler),this.evTarget&&M(this.target,this.evTarget,this.domHandler),this.evWin&&M(N(this.element),this.evWin,this.domHandler)}};var K={mousedown:1,mousemove:2,mouseup:4};function J(){this.evEl="mousedown",this.evWin="mousemove mouseup",this.pressed=!1,G.apply(this,arguments)}O(J,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 Q={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=Q[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 lt(){this.evTarget="touchstart touchmove touchend touchcancel",this.targetIds={},G.apply(this,arguments)}function ut(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=[],l=this.target;if(o=n.filter((function(t){return A(t.target,l)})),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(lt,G,{handler:function(t){var e=st[t.type],n=ut.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 lt(this.manager,t),this.mouse=new J(this.manager,t),this.primaryTouch=null,this.lastTouches=[]}function ht(t,e){1&t?(this.primaryTouch=e.changedPointers[0].identifier,dt.call(this,e)):12&t&&dt.call(this,e)}function dt(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 ft(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&&ft.call(this,n))return;this.callback(t,e,n)}},destroy:function(){this.touch.destroy(),this.mouse.destroy()}});var pt=h?void 0:D(f.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,l=t.distance<2,u=t.deltaTime<250;if(s&&l&&u)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=l({},this.defaults,t||{}),this.id=R++,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 Mt(){yt.apply(this,arguments),this.pTime=!1,this.pCenter=!1,this._timer=null,this._input=null,this.count=0}function At(t,e){return(e=e||{}).recognizers=E(e.recognizers,At.defaults.preset),new It(t,e)}yt.prototype={defaults:{},set:function(t){return l(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=l({},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(Mt,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))}}),At.VERSION="2.0.7",At.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"]],[Mt],[Mt,{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=l({},At.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||(B?rt:z?lt:F?ct:J))(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=D(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 l(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)||(l(At,{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:lt,MouseInput:J,PointerEventInput:rt,TouchMouseInput:ct,SingleTouchInput:ot,Recognizer:yt,AttrRecognizer:wt,Tap:Mt,Pan:Ot,Swipe:Tt,Pinch:St,Rotate:Et,Press:Ct,on:T,off:M,each:b,merge:w,extend:x,assign:l,inherit:O,bindFn:S,prefixed:D}),("undefined"!=typeof window?window:"undefined"!=typeof self?self:{}).Hammer=At,void 0===(r=function(){return At}.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 l(t,e,r,i){var o=new n(t,e,r,i);return function(t){return o.solve(t)}}var u=l(.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 d(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 f=1;function p(){return f++}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 M=null;function A(t){if(null==M){var e=t.navigator?t.navigator.userAgent:null;M=!!t.safari||!(!e||!(/\b(iPad|iPhone|iPod)\b/.test(e)||e.match("Safari")&&!e.match("Chrome")))}return M}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,D=a.performance&&a.performance.now?a.performance.now.bind(a.performance):Date.now.bind(Date),R=a.requestAnimationFrame||a.mozRequestAnimationFrame||a.webkitRequestAnimationFrame||a.msRequestAnimationFrame,N=a.cancelAnimationFrame||a.mozCancelAnimationFrame||a.webkitCancelAnimationFrame||a.msCancelAnimationFrame,F={now:D,frame:function(t){var e=R(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)}},B={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*)(?=$)/,(F.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)||B.ACCESS_TOKEN;return B.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];X(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(B.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),!B.REQUIRE_ACCESS_TOKEN)return K(t);if(!(e=e||B.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 $=/^((https?:)?\/\/)?([^\/]+\.)?mapbox\.c(n|om)(\/|\?|$)/i;function X(t){return $.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 J(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 Q=function(t){this.type=t,this.anonId=null,this.eventData={},this.queue=[],this.pendingRequest=null};Q.prototype.getStorageKey=function(t){var e,n=J(B.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))}))):B.ACCESS_TOKEN||"",t?"mapbox.eventData."+t+":"+e:"mapbox.eventData:"+e},Q.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")}},Q.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")}},Q.prototype.processRequests=function(t){},Q.prototype.postEvent=function(t,e,n,r){var i=this;if(B.EVENTS_URL){var o=Z(B.EVENTS_URL);o.params.push("access_token="+(r||B.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?d(a,e):a,l={url:K(o),headers:{"Content-Type":"text/plain"},body:JSON.stringify([s])};this.pendingRequest=xt(l,(function(t){i.pendingRequest=null,n(t),i.saveEventData(),i.processRequests(r)}))}},Q.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,(B.EVENTS_URL&&r||B.ACCESS_TOKEN&&Array.isArray(t)&&t.some((function(t){return Y(t)||X(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}(Q),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){B.EVENTS_URL&&B.ACCESS_TOKEN&&Array.isArray(t)&&t.some((function(t){return Y(t)||X(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=J(B.ACCESS_TOKEN),r=n?n.u:B.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),l=(o-this.eventData.lastSuccess)/864e5;i=i||l>=1||l<-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}(Q)),it=rt.postTurnstileEvent.bind(rt),ot=new nt,at=ot.postMapLoadEvent.bind(ot),st=500,lt=50;function ut(){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,dt=1/0;function ft(){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&&X(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,l=(n=i.url).indexOf("sku=")>0&&X(n);"json"===t.type&&i.headers.set("Accept","application/json");var u=function(n,r,o){if(!s){if(n&&"SecurityError"!==n.message&&O(n),r&&o)return c(r);var u=Date.now();a.fetch(i).then((function(n){if(n.ok){var r=l?n.clone():null;return c(n,r,u)}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,l){("arrayBuffer"===t.type?n.arrayBuffer():"json"===t.type?n.json():n.text()).then((function(t){s||(r&&l&&function(t,e,n){if(ut(),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);ut(),tt&&tt.then((function(e){return e.put(ct(t.url),n)})).catch((function(t){return O(t.message)}))})))}}(i,r,l),o=!0,e(null,t,n.headers.get("Cache-Control"),n.headers.get("Expires")))})).catch((function(t){s||e(new Error(t.message))}))};return l?function(t,e){if(ut(),!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,u):u(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(d(t,{type:"arrayBuffer"}),e)},xt=function(t,e){return bt(d(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>=B.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<B.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&&(ft()?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={}),d(this,e),this.type=t},Tt=function(t){function e(e,n){void 0===n&&(n={}),t.call(this,"error",d({error:e},n))}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e}(Et),Mt=function(){};Mt.prototype.on=function(t,e){return this._listeners=this._listeners||{},St(t,e,this._listeners),this},Mt.prototype.off=function(t,e){return Ct(t,e,this._listeners),Ct(t,e,this._oneTimeListeners),this},Mt.prototype.once=function(t,e){return this._oneTimeListeners=this._oneTimeListeners||{},St(t,e,this._oneTimeListeners),this},Mt.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 l=this._eventedParent;l&&(d(t,"function"==typeof this._eventedParentData?this._eventedParentData():this._eventedParentData),l.fire(t))}else t instanceof Tt&&console.error(t.error);return this},Mt.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)},Mt.prototype.setEventedParent=function(t,e){return this._eventedParent=t,this._eventedParentData=e,this};var At={$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 Dt=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),Rt=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]}};Rt.prototype.concat=function(t){return new Rt(this,t)},Rt.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.")},Rt.prototype.has=function(t){return!!this.bindings[t]||!!this.parent&&this.parent.has(t)};var Nt={kind:"null"},Ft={kind:"number"},Bt={kind:"string"},zt={kind:"boolean"},Vt={kind:"color"},Ut={kind:"object"},Gt={kind:"value"},Ht={kind:"collator"},Wt={kind:"formatted"},Yt={kind:"resolvedImage"};function $t(t,e){return{kind:"array",itemType:t,N:e}}function Xt(t){if("array"===t.kind){var e=Xt(t.itemType);return"number"==typeof t.N?"array<"+e+", "+t.N+">":"value"===t.itemType.kind?"array":"array<"+e+">"}return t.kind}var qt=[Nt,Ft,Bt,zt,Vt,Wt,Ut,$t(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 "+Xt(t)+" but found "+Xt(e)+" instead."}function Kt(t,e){return e.some((function(e){return e.kind===t.kind}))}function Jt(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 Qt=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 l=s.indexOf("("),u=s.indexOf(")");if(-1!==l&&u+1===s.length){var c=s.substr(0,l),h=s.substr(l+1,u-(l+1)).split(","),d=1;switch(c){case"rgba":if(4!==h.length)return null;d=o(h.pop());case"rgb":return 3!==h.length?null:[i(h[0]),i(h[1]),i(h[2]),d];case"hsla":if(4!==h.length)return null;d=o(h.pop());case"hsl":if(3!==h.length)return null;var f=(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,f+1/3)),r(255*a(m,v,f)),r(255*a(m,v,f-1/3)),d];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=Qt(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 Bt;if("boolean"==typeof t)return zt;if("number"==typeof t)return Ft;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 $t(e||Gt,n)}return Ut}function le(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 ue=function(t,e){this.type=t,this.value=e};ue.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 ue(r,n)},ue.prototype.evaluate=function(){return this.value},ue.prototype.eachChild=function(){},ue.prototype.outputDefined=function(){return!0},ue.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:Bt,number:Ft,boolean:zt,object:Ut},de=function(t,e){this.type=t,this.args=e};de.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=$t(o,a)}else n=he[i];for(var l=[];r<t.length;r++){var u=e.parse(t[r],r,Gt);if(!u)return null;l.push(u)}return new de(n,l)},de.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 "+Xt(this.type)+", but found "+Xt(se(n))+" instead.")}return null},de.prototype.eachChild=function(t){this.args.forEach(t)},de.prototype.outputDefined=function(){return this.args.every((function(t){return t.outputDefined()}))},de.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 fe=function(t){this.type=Wt,this.sections=t};fe.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,Ft)))return null;var l=null;if(a["text-font"]&&!(l=e.parse(a["text-font"],1,$t(Bt))))return null;var u=null;if(a["text-color"]&&!(u=e.parse(a["text-color"],1,Vt)))return null;var c=r[r.length-1];c.scale=s,c.font=l,c.textColor=u}else{var h=e.parse(t[o],1,Gt);if(!h)return null;var d=h.type.kind;if("string"!==d&&"value"!==d&&"null"!==d&&"resolvedImage"!==d)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 fe(r)},fe.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(le(n),null,e.scale?e.scale.evaluate(t):null,e.font?e.font.evaluate(t).join(","):null,e.textColor?e.textColor.evaluate(t):null)})))},fe.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)}},fe.prototype.outputDefined=function(){return!1},fe.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,Bt);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":Ft,"to-string":Bt},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,l=this.args;s<l.length;s+=1){if(null===(a=l[s].evaluate(t)))return 0;var u=Number(a);if(!isNaN(u))return u}throw new ce("Could not convert "+JSON.stringify(a)+" to number.")}return"formatted"===this.type.kind?re.fromString(le(this.args[0].evaluate(t))):"resolvedImage"===this.type.kind?ie.fromString(le(this.args[0].evaluate(t))):le(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 fe([{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})),l=null,u=0,c=s;u<c.length;u+=1){var h=c[u],d=h[0],f=h[1];l=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(d)?d[v-1]:d.type,b=l.parse(m,1+p.length,y);if(!b){g=!0;break}p.push(b)}if(!g)if(Array.isArray(d)&&d.length!==p.length)l.error("Expected "+d.length+" arguments, but found "+p.length+" instead.");else{for(var _=0;_<p.length;_++){var x=Array.isArray(d)?d[_]:d.type,w=p[_];l.concat(_+1).checkSubtype(x,w.type)}if(0===l.errors.length)return new be(r,o,f,p)}}if(1===s.length)(n=e.errors).push.apply(n,l.errors);else{for(var O=(s.length?s:a).map((function(t){var e;return e=t[0],Array.isArray(e)?"("+e.map(Xt).join(", ")+")":"("+Xt(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(Xt(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,l,u=!1,c=0,h=e.length;c<h;c++)for(var d=e[c],f=0,p=d.length;f<p-1;f++){if((o=(n=t)[0]-(r=d[f])[0])*(l=n[1]-(i=d[f+1])[1])-(s=n[0]-i[0])*(a=n[1]-r[1])==0&&o*s<=0&&a*l<=0)return!1;Se(t,d[f],d[f+1])&&(u=!u)}return u}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 Me(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]-(u=o[a])[0],c[1]-u[1]])[0]*(d=[(l=e)[0]-(s=t)[0],l[1]-s[1]])[1]-h[1]*d[0]&&Te(s,l,u,c)&&Te(u,c,s,l))return!0;var s,l,u,c,h,d;return!1}function Ae(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(Me(t[r],t[r+1],e))return!1;return!0}function Ie(t,e){for(var n=0;n<e.length;n++)if(Ae(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,l=t;s<l.length;s+=1)for(var u=0,c=l[s];u<c.length;u+=1){var h=c[u],d=[h.x+o[0],h.y+o[1]];Pe(d,e,n,i),a.push(d)}return a}function De(t,e,n,r){for(var i,o=8192*Math.pow(2,r.z),a=[8192*r.x,8192*r.y],s=[],l=0,u=t;l<u.length;l+=1){for(var c=[],h=0,d=u[l];h<d.length;h+=1){var f=d[h],p=[f.x+a[0],f.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,Bt))?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 Re=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 Re)return!1;var e=!0;return t.eachChild((function(t){e&&!Ne(t)&&(e=!1)})),e}function Fe(t){if(t instanceof be&&"feature-state"===t.name)return!1;var e=!0;return t.eachChild((function(t){e&&!Fe(t)&&(e=!1)})),e}function Be(t,e){if(t instanceof be&&e.indexOf(t.name)>=0)return!1;var n=!0;return t.eachChild((function(t){n&&!Be(t,e)&&(n=!1)})),n}Re.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 Re(n,n.features[r].geometry)}else if("Feature"===n.type){var o=n.geometry.type;if("Polygon"===o||"MultiPolygon"===o)return new Re(n,n.geometry)}else if("Polygon"===n.type||"MultiPolygon"===n.type)return new Re(n,n)}return e.error("'within' expression requires valid geojson object that contains polygon geometry type.")},Re.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,l=a;s<l.length;s+=1)if(!Ce(l[s],o))return!1}if("MultiPolygon"===e.type){var u=ke(e.coordinates,r,i),c=Le(t.geometry(),n,r,i);if(!we(n,r))return!1;for(var h=0,d=c;h<d.length;h+=1)if(!Ee(d[h],u))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=De(t.geometry(),n,r,i);if(!we(n,r))return!1;for(var s=0,l=a;s<l.length;s+=1)if(!Ae(l[s],o))return!1}if("MultiPolygon"===e.type){var u=ke(e.coordinates,r,i),c=De(t.geometry(),n,r,i);if(!we(n,r))return!1;for(var h=0,d=c;h<d.length;h+=1)if(!Ie(d[h],u))return!1}return!0}(t,this.geometries)}return!1},Re.prototype.eachChild=function(){},Re.prototype.outputDefined=function(){return!0},Re.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 Rt),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 de(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 ue)&&"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 Re)return!1;var n=e instanceof ve||e instanceof de,r=!0;return e.eachChild((function(e){r=n?r&&t(e):r&&e instanceof ue})),!!r&&Ne(e)&&Be(e,["zoom","heatmap-density","line-progress","accumulated","is-supported-script"])}(o)){var l=new ye;try{o=new ue(o.type,o.evaluate(l))}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 Dt(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,Ft);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],l=o,u=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.',l);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.',l);var c=e.parse(s,u,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),$e=Math.PI/180,Xe=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 Je(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function Qe(t){var e=Je(t.r),n=Je(t.g),r=Je(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:Qe,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=Qe(t),n=e.l,r=e.a,i=e.b,o=Math.atan2(i,r)*Xe;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*$e,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],l=s[1];this.labels.push(s[0]),this.outputs.push(l)}};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,Ft)))return null;var l=[],u=null;"interpolate-hcl"===n||"interpolate-lab"===n?u=Vt:e.expectedType&&"value"!==e.expectedType.kind&&(u=e.expectedType);for(var c=0;c<o.length;c+=2){var h=o[c],d=o[c+1],f=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.',f);if(l.length&&l[l.length-1][0]>=h)return e.error('Input/output pairs for "interpolate" expressions must be arranged with input values in strictly ascending order.',f);var g=e.parse(d,p,u);if(!g)return null;u=u||g.type,l.push([h,g])}return"number"===u.kind||"color"===u.kind||"array"===u.kind&&"number"===u.itemType.kind&&"number"==typeof u.N?new an(u,n,r,i,l):e.error("Type "+Xt(u)+" 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),l=n[o+1].evaluate(t);return"interpolate"===this.operator?We[this.type.kind.toLowerCase()](s,l,a):"interpolate-hcl"===this.operator?rn.reverse(rn.interpolate(rn.forward(s),rn.forward(l),a)):nn.reverse(nn.interpolate(nn.forward(s),nn.forward(l),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 ln=function(t,e){this.type=t,this.args=e};ln.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 l=r&&i.some((function(t){return Zt(r,t.type)}));return new ln(l?Gt:n,i)},ln.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},ln.prototype.eachChild=function(t){this.args.forEach(t)},ln.prototype.outputDefined=function(){return this.args.every((function(t){return t.outputDefined()}))},ln.prototype.serialize=function(){var t=["coalesce"];return this.eachChild((function(e){t.push(e.serialize())})),t};var un=function(t,e){this.type=e.type,this.bindings=[].concat(t),this.result=e};un.prototype.evaluate=function(t){return this.result.evaluate(t)},un.prototype.eachChild=function(t){for(var e=0,n=this.bindings;e<n.length;e+=1)t(n[e][1]);t(this.result)},un.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 un(n,a):null},un.prototype.outputDefined=function(){return this.result.outputDefined()},un.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,Ft),r=e.parse(t[2],2,$t(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,Bt,Ft,Nt,Gt])?new hn(n,r):e.error("Expected first argument to be of type boolean, string, number or null, but found "+Xt(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(!Jt(e,["boolean","string","number","null"]))throw new ce("Expected first argument to be of type boolean, string, number or null, but found "+Xt(se(e))+" instead.");if(!Jt(n,["string","array"]))throw new ce("Expected second argument to be of type array or string, but found "+Xt(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 dn=function(t,e,n){this.type=Ft,this.needle=t,this.haystack=e,this.fromIndex=n};dn.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,Bt,Ft,Nt,Gt]))return e.error("Expected first argument to be of type boolean, string, number or null, but found "+Xt(n.type)+" instead");if(4===t.length){var i=e.parse(t[3],3,Ft);return i?new dn(n,r,i):null}return new dn(n,r)},dn.prototype.evaluate=function(t){var e=this.needle.evaluate(t),n=this.haystack.evaluate(t);if(!Jt(e,["boolean","string","number","null"]))throw new ce("Expected first argument to be of type boolean, string, number or null, but found "+Xt(se(e))+" instead.");if(!Jt(n,["string","array"]))throw new ce("Expected second argument to be of type array or string, but found "+Xt(se(n))+" instead.");if(this.fromIndex){var r=this.fromIndex.evaluate(t);return n.indexOf(e,r)}return n.indexOf(e)},dn.prototype.eachChild=function(t){t(this.needle),t(this.haystack),this.fromIndex&&t(this.fromIndex)},dn.prototype.outputDefined=function(){return!1},dn.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 fn=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};fn.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],l=t[a+1];Array.isArray(s)||(s=[s]);var u=e.concat(a);if(0===s.length)return u.error("Expected at least one branch label.");for(var c=0,h=s;c<h.length;c+=1){var d=h[c];if("number"!=typeof d&&"string"!=typeof d)return u.error("Branch labels must be numbers or strings.");if("number"==typeof d&&Math.abs(d)>Number.MAX_SAFE_INTEGER)return u.error("Branch labels must be integers no larger than "+Number.MAX_SAFE_INTEGER+".");if("number"==typeof d&&Math.floor(d)!==d)return u.error("Numeric branch labels must be integer values.");if(n){if(u.checkSubtype(n,se(d)))return null}else n=se(d);if(void 0!==i[String(d)])return u.error("Branch labels must be unique.");i[String(d)]=o.length}var f=e.parse(l,a,r);if(!f)return null;r=r||f.type,o.push(f)}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 fn(n,r,p,i,o,g):null},fn.prototype.evaluate=function(t){var e=this.input.evaluate(t);return(se(e)===this.inputType&&this.outputs[this.cases[e]]||this.otherwise).evaluate(t)},fn.prototype.eachChild=function(t){t(this.input),this.outputs.forEach(t),t(this.otherwise)},fn.prototype.outputDefined=function(){return this.outputs.every((function(t){return t.outputDefined()}))&&this.otherwise.outputDefined()},fn.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},l=0,u=n;l<u.length;l+=1){var c=u[l],h=c[0],d=c[1];e.push(1===d.length?s(d[0]):d.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 '"+Xt(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 '"+Xt(a.type)+"'.");if(o.type.kind!==a.type.kind&&"value"!==o.type.kind&&"value"!==a.type.kind)return e.error("Cannot compare types '"+Xt(o.type)+"' and '"+Xt(a.type)+"'.");r&&("value"===o.type.kind&&"value"!==a.type.kind?o=new de(a.type,[o]):"value"!==o.type.kind&&"value"===a.type.kind&&(a=new de(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),l=se(a);if(s.kind!==l.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+", "+l.kind+") instead.")}if(this.collator&&!r&&this.hasUntypedArgument){var u=se(o),c=se(a);if("string"!==u.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,Ft);if(!n||!r)return null;if(!Kt(n.type,[$t(Gt),Bt,Gt]))return e.error("Expected first argument to be of type array or string, but found "+Xt(n.type)+" instead");if(4===t.length){var i=e.parse(t[3],3,Ft);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(!Jt(e,["string","array"]))throw new ce("Expected first argument to be of type array or string, but found "+Xt(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=Bt,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,Ft);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,Bt)))return null;var o=null;if(r.currency&&!(o=e.parse(r.currency,1,Bt)))return null;var a=null;if(r["min-fraction-digits"]&&!(a=e.parse(r["min-fraction-digits"],1,Ft)))return null;var s=null;return r["max-fraction-digits"]&&!(s=e.parse(r["max-fraction-digits"],1,Ft))?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=Ft,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 "+Xt(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 "+Xt(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:de,at:cn,boolean:de,case:pn,coalesce:ln,collator:_e,format:fe,image:pe,in:hn,"index-of":dn,interpolate:an,"interpolate-hcl":an,"interpolate-lab":an,length:En,let:un,literal:ue,match:fn,number:de,"number-format":Cn,object:de,slice:gn,step:Ge,string:de,"to-boolean":ve,"to-color":ve,"to-number":ve,"to-string":ve,var:ze,within:Re};function Mn(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 An(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 Dn(t){return!!t.expression&&t.expression.parameters.indexOf("zoom")>-1}function Rn(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 Fn(t){return"object"==typeof t&&null!==t&&!Array.isArray(t)}function Bn(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],l=t.stops[o+1][1],u=We[e.type]||Bn;if(t.colorSpace&&"rgb"!==t.colorSpace){var c=on[t.colorSpace];u=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=l.evaluate.apply(void 0,t);if(void 0!==n&&void 0!==r)return u(n,r,a)}}:u(s,l,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"},[Bt],function(t,e){throw new ce(e[0].evaluate(t))}],typeof:[Bt,[Gt],function(t,e){return Xt(se(e[0].evaluate(t)))}],"to-rgba":[$t(Ft,4),[Vt],function(t,e){return e[0].evaluate(t).toArray()}],rgb:[Vt,[Ft,Ft,Ft],Mn],rgba:[Vt,[Ft,Ft,Ft,Ft],Mn],has:{type:zt,overloads:[[[Bt],function(t,e){return An(e[0].evaluate(t),t.properties())}],[[Bt,Ut],function(t,e){var n=e[1];return An(e[0].evaluate(t),n.evaluate(t))}]]},get:{type:Gt,overloads:[[[Bt],function(t,e){return In(e[0].evaluate(t),t.properties())}],[[Bt,Ut],function(t,e){var n=e[1];return In(e[0].evaluate(t),n.evaluate(t))}]]},"feature-state":[Gt,[Bt],function(t,e){return In(e[0].evaluate(t),t.featureState||{})}],properties:[Ut,[],function(t){return t.properties()}],"geometry-type":[Bt,[],function(t){return t.geometryType()}],id:[Gt,[],function(t){return t.id()}],zoom:[Ft,[],function(t){return t.globals.zoom}],"heatmap-density":[Ft,[],function(t){return t.globals.heatmapDensity||0}],"line-progress":[Ft,[],function(t){return t.globals.lineProgress||0}],accumulated:[Gt,[],function(t){return void 0===t.globals.accumulated?null:t.globals.accumulated}],"+":[Ft,jn(Ft),function(t,e){for(var n=0,r=0,i=e;r<i.length;r+=1)n+=i[r].evaluate(t);return n}],"*":[Ft,jn(Ft),function(t,e){for(var n=1,r=0,i=e;r<i.length;r+=1)n*=i[r].evaluate(t);return n}],"-":{type:Ft,overloads:[[[Ft,Ft],function(t,e){var n=e[1];return e[0].evaluate(t)-n.evaluate(t)}],[[Ft],function(t,e){return-e[0].evaluate(t)}]]},"/":[Ft,[Ft,Ft],function(t,e){var n=e[1];return e[0].evaluate(t)/n.evaluate(t)}],"%":[Ft,[Ft,Ft],function(t,e){var n=e[1];return e[0].evaluate(t)%n.evaluate(t)}],ln2:[Ft,[],function(){return Math.LN2}],pi:[Ft,[],function(){return Math.PI}],e:[Ft,[],function(){return Math.E}],"^":[Ft,[Ft,Ft],function(t,e){var n=e[1];return Math.pow(e[0].evaluate(t),n.evaluate(t))}],sqrt:[Ft,[Ft],function(t,e){return Math.sqrt(e[0].evaluate(t))}],log10:[Ft,[Ft],function(t,e){return Math.log(e[0].evaluate(t))/Math.LN10}],ln:[Ft,[Ft],function(t,e){return Math.log(e[0].evaluate(t))}],log2:[Ft,[Ft],function(t,e){return Math.log(e[0].evaluate(t))/Math.LN2}],sin:[Ft,[Ft],function(t,e){return Math.sin(e[0].evaluate(t))}],cos:[Ft,[Ft],function(t,e){return Math.cos(e[0].evaluate(t))}],tan:[Ft,[Ft],function(t,e){return Math.tan(e[0].evaluate(t))}],asin:[Ft,[Ft],function(t,e){return Math.asin(e[0].evaluate(t))}],acos:[Ft,[Ft],function(t,e){return Math.acos(e[0].evaluate(t))}],atan:[Ft,[Ft],function(t,e){return Math.atan(e[0].evaluate(t))}],min:[Ft,jn(Ft),function(t,e){return Math.min.apply(Math,e.map((function(e){return e.evaluate(t)})))}],max:[Ft,jn(Ft),function(t,e){return Math.max.apply(Math,e.map((function(e){return e.evaluate(t)})))}],abs:[Ft,[Ft],function(t,e){return Math.abs(e[0].evaluate(t))}],round:[Ft,[Ft],function(t,e){var n=e[0].evaluate(t);return n<0?-Math.round(-n):Math.round(n)}],floor:[Ft,[Ft],function(t,e){return Math.floor(e[0].evaluate(t))}],ceil:[Ft,[Ft],function(t,e){return Math.ceil(e[0].evaluate(t))}],"filter-==":[zt,[Bt,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,[Bt],function(t,e){var n=e[0];return t.geometryType()===n.value}],"filter-<":[zt,[Bt,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,[Bt,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,[Bt,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,[Bt,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,[$t(Bt)],function(t,e){return e[0].value.indexOf(t.geometryType())>=0}],"filter-id-in":[zt,[$t(Gt)],function(t,e){return e[0].value.indexOf(t.id())>=0}],"filter-in-small":[zt,[Bt,$t(Gt)],function(t,e){var n=e[0];return e[1].value.indexOf(t.properties()[n.value])>=0}],"filter-in-large":[zt,[Bt,$t(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,[Bt],function(t,e){var n=t.globals&&t.globals.isSupportedScript;return!n||n(e[0].evaluate(t))}],upcase:[Bt,[Bt],function(t,e){return e[0].evaluate(t).toUpperCase()}],downcase:[Bt,[Bt],function(t,e){return e[0].evaluate(t).toLowerCase()}],concat:[Bt,jn(Gt),function(t,e){return e.map((function(e){return le(e.evaluate(t))})).join("")}],"resolved-locale":[Bt,[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&&Fn(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 $n(t,e){var n=new Ve(Tn,[],e?function(t){var e={color:Vt,string:Bt,number:Ft,enum:Bt,boolean:zt,formatted:Wt,resolvedImage:Yt};return"array"===t.type?$t(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 Xn=function(t,e){this.kind=t,this._styleExpression=e,this.isStateDependent="constant"!==t&&!Fe(e.expression)};Xn.prototype.evaluateWithoutErrorHandling=function(t,e,n,r,i,o){return this._styleExpression.evaluateWithoutErrorHandling(t,e,n,r,i,o)},Xn.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&&!Fe(e.expression),this.interpolationType=r};function Zn(t,e){if("error"===(t=$n(t,e)).result)return t;var n=t.value.expression,r=Ne(n);if(!r&&!Ln(e))return Pn([new Dt("","data expressions not supported")]);var i=Be(n,["zoom"]);if(!i&&!Dn(e))return Pn([new Dt("","zoom expressions not supported")]);var o=function t(e){var n=null;if(e instanceof un)n=t(e.result);else if(e instanceof ln)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 Dt||e.eachChild((function(e){var r=t(e);r instanceof Dt?n=r:!n&&r?n=new Dt("",'"zoom" expression may only be used as input to a top-level "step" or "interpolate" expression.'):n&&r&&n!==r&&(n=new Dt("",'Only one zoom-based "step" or "interpolate" subexpression may be used in an expression.'))})),n}(n);return o||i?o instanceof Dt?Pn([o]):o instanceof an&&!Rn(e)?Pn([new Dt("",'"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 Xn(r?"constant":"source",t.value)):Pn([new Dt("",'"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],l=s||!(s||void 0!==e.property),u=e.type||(Rn(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"===u)r=Gn;else if("interval"===u)r=Un;else if("categorical"===u){r=Vn,i=Object.create(null);for(var c=0,h=e.stops;c<h.length;c+=1){var d=h[c];i[d[0]]=d[1]}o=typeof e.stops[0][0]}else{if("identity"!==u)throw new Error('Unknown function type "'+u+'"');r=Hn}if(s){for(var f={},p=[],g=0;g<e.stops.length;g++){var v=e.stops[g],m=v[0].zoom;void 0===f[m]&&(f[m]={zoom:m,type:e.type,property:e.property,default:e.default,stops:[]},p.push(m)),f[m].stops.push([v[0].value,v[1]])}for(var y=[],b=0,_=p;b<_.length;b+=1){var x=_[b];y.push([f[x].zoom,t(f[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(l){var O="exponential"===u?{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 Jn(t){var e=t.key,n=t.value,r=t.valueSpec||{},i=t.objectElementValidators||{},o=t.style,a=t.styleSpec,s=[],l=Nn(n);if("object"!==l)return[new It(e,n,"object expected, "+l+" found")];for(var u in n){var c=u.split(".")[0],h=r[c]||r["*"],d=void 0;if(i[c])d=i[c];else if(r[c])d=Or;else if(i["*"])d=i["*"];else{if(!r["*"]){s.push(new It(e,n[u],'unknown property "'+u+'"'));continue}d=Or}s=s.concat(d({key:(e?e+".":e)+u,value:n[u],valueSpec:h,style:o,styleSpec:a,object:n,objectKey:u},n))}for(var f in r)i[f]||r[f].required&&void 0===r[f].default&&void 0===n[f]&&s.push(new It(e,n,'missing required property "'+f+'"'));return s}function Qn(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 l=[],u=0;u<e.length;u++)l=l.concat(a({array:e,arrayIndex:u,value:e[u],valueSpec:s,style:r,styleSpec:i,key:o+"["+u+"]"}));return l}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,l=!s,u="array"===Nn(t.value.stops)&&"array"===Nn(t.value.stops[0])&&"object"===Nn(t.value.stops[0][0]),c=Jn({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(Qn({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&&!Rn(t.valueSpec)&&c.push(new It(t.key,t.value,"exponential functions not supported")),t.styleSpec.$version>=8&&(l&&!Ln(t.valueSpec)?c.push(new It(t.key,t.value,"property functions not supported")):s&&!Dn(t.valueSpec)&&c.push(new It(t.key,t.value,"zoom functions not supported"))),"categorical"!==o&&!u||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(u){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(Jn({key:s+"[0]",value:o[0],valueSpec:{zoom:{}},style:t.style,styleSpec:t.styleSpec,objectElementValidators:{zoom:tr,value:d}}))}else e=e.concat(d({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 d(t,r){var s=Nn(t.value),l=Pt(t.value),u=null!==t.value?t.value:r;if(e){if(s!==e)return[new It(t.key,u,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,u,"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,u,c)]}return"categorical"!==o||"number"!==s||isFinite(l)&&Math.floor(l)===l?"categorical"!==o&&"number"===s&&void 0!==n&&l<n?[new It(t.key,u,"stop domain values must appear in ascending order")]:(n=l,"categorical"===o&&l in a?[new It(t.key,u,"stop domain values must be unique")]:(a[l]=!0,[])):[new It(t.key,u,"integer expected, found "+l)]}}function nr(t){var e=("property"===t.expressionContext?Zn:$n)(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&&!Fe(n))return[new It(t.key,t.value,'"feature-state" data expressions are not supported with layout properties.')];if("filter"===t.expressionContext&&!Fe(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(!Be(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=lr(t));var e=$n(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 lr(t){if(!t)return!0;var e,n=t[0];return t.length<=1?"any"!==n:"=="===n?ur(t[1],t[2],"=="):"!="===n?dr(ur(t[1],t[2],"==")):"<"===n||">"===n||"<="===n||">="===n?ur(t[1],t[2],n):"any"===n?(e=t.slice(1),["any"].concat(e.map(lr))):"all"===n?["all"].concat(t.slice(1).map(lr)):"none"===n?["all"].concat(t.slice(1).map(lr).map(dr)):"in"===n?cr(t[1],t.slice(2)):"!in"===n?dr(cr(t[1],t.slice(2))):"has"===n?hr(t[1]):"!has"===n?dr(hr(t[1])):"within"!==n||t}function ur(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 dr(t){return["!",t]}function fr(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 l=1;l<n.length;l++)a=a.concat(t({key:r+"["+l+"]",value:n[l],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 l=a.match(/^(.*)-transition$/);if("paint"===e&&l&&s[l[1]]&&s[l[1]].transition)return Or({key:n,value:o,valueSpec:i.transition,style:r,styleSpec:i});var u,c=t.valueSpec||s[a];if(!c)return[new It(n,o,'unknown property "'+a+'"')];if("string"===Nn(o)&&Ln(c)&&!c.tokens&&(u=/^{([^}]+)}$/.exec(o)))return[new It(n,o,'"'+a+'" does not support interpolation syntax\nUse an identity property function instead: `{ "type": "identity", "property": '+JSON.stringify(u[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&&Fn(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),l=Pt(n.ref);if(n.id)for(var u=Pt(n.id),c=0;c<t.arrayIndex;c++){var h=i.layers[c];Pt(h.id)===u&&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)===l&&(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 "'+l+'" not found'));else if("background"!==s)if(n.source){var d=i.sources&&i.sources[n.source],f=d&&Pt(d.type);d?"vector"===f&&"raster"===s?e.push(new It(r,n.source,'layer "'+n.id+'" requires a raster source')):"raster"===f&&"raster"!==s?e.push(new It(r,n.source,'layer "'+n.id+'" requires a vector source')):"vector"!==f||n["source-layer"]?"raster-dem"===f&&"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"===f&&d.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(Jn({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:fr,layout:function(t){return Jn({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 Jn({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 Jn({key:n,value:e,valueSpec:r["source_"+a.replace("-","_")],style:t.style,styleSpec:r,objectElementValidators:br});case"geojson":if(o=Jn({key:n,value:e,valueSpec:r.source_geojson,style:i,styleSpec:r,objectElementValidators:br}),e.cluster)for(var s in e.clusterProperties){var l=e.clusterProperties[s],u=l[0],c="string"==typeof u?[u,["accumulated"],["get",s]]:u;o.push.apply(o,nr({key:n+"."+s+".map",value:l[1],expressionContext:"cluster-map"})),o.push.apply(o,nr({key:n+"."+s+".reduce",value:c,expressionContext:"cluster-reduce"}))}return o;case"video":return Jn({key:n,value:e,valueSpec:r.source_video,style:i,styleSpec:r});case"image":return Jn({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 l=s.match(/^(.*)-transition$/);o=o.concat(l&&r[l[1]]&&r[l[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:Qn,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===Qt(n)?[new It(e,n,'color expected, "'+n+'" found')]:[]},constants:jt,enum:rr,filter:fr,function:er,layer:mr,object:Jn,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&&Fn(Pt(e))?er(t):n.expression&&Yn(Lt(e))?nr(t):n.type&&wr[n.type]?wr[n.type](t):Jn(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=At);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(fr),Cr.paintProperty=Tr(gr),Cr.layoutProperty=Tr(vr);var Mr=Cr,Ar=Mr.light,Ir=Mr.paintProperty,jr=Mr.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 l=i[3+r.length+1];this.keys=i.subarray(i[3+r.length],l),this.bboxes=i.subarray(l),this.insert=this._insertReadonly}else{this.d=e+2*n;for(var u=0;u<this.d*this.d;u++)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 l=this.cells[i];if(null!==l)for(var u=this.keys,c=this.bboxes,h=0;h<l.length;h++){var d=l[h];if(void 0===a[d]){var f=4*d;(s?s(c[f+0],c[f+1],c[f+2],c[f+3]):t<=c[f+2]&&e<=c[f+3]&&n>=c[f+0]&&r>=c[f+1])?(a[d]=!0,o.push(u[d])):a[d]=!1}}},Lr.prototype._forEachCell=function(t,e,n,r,i,o,a,s){for(var l=this._convertToCellCoord(t),u=this._convertToCellCoord(e),c=this._convertToCellCoord(n),h=this._convertToCellCoord(r),d=l;d<=c;d++)for(var f=u;f<=h;f++){var p=this.d*f+d;if((!s||s(this._convertFromCellCoord(d),this._convertFromCellCoord(f),this._convertFromCellCoord(d+1),this._convertFromCellCoord(f+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 Dr=a.ImageData,Rr=a.ImageBitmap,Nr={};function Fr(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 Br in Fr("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)},Fr("Grid",Pr),Fr("Color",te),Fr("Error",Error),Fr("ResolvedImage",ie),Fr("StylePropertyFunction",Kn),Fr("StyleExpression",Wn,{omit:["_evaluator"]}),Fr("ZoomDependentExpression",qn),Fr("ZoomConstantExpression",Xn),Fr("CompoundExpression",be,{omit:["_evaluate"]}),Tn)Tn[Br]._classRegistryKey||Fr("Expression_"+Br,Tn[Br]);function zr(t){return t&&"undefined"!=typeof ArrayBuffer&&(t instanceof ArrayBuffer||t.constructor&&"ArrayBuffer"===t.constructor.name)}function Vr(t){return Rr&&t instanceof Rr}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 Dr)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 l=a.serialize?a.serialize(t,e):{};if(!a.serialize){for(var u in t)if(t.hasOwnProperty(u)&&!(Nr[s].omit.indexOf(u)>=0)){var c=t[u];l[u]=Nr[s].shallow.indexOf(u)>=0?c:Ur(c,e)}t instanceof Error&&(l.message=t.message)}if(l.$name)throw new Error("$name property is reserved for worker serialization logic.");return"Object"!==s&&(l.$name=s),l}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 Dr)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($r(n[e].charCodeAt(0)))return!0;return!1}function $r(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 Xr(t){return!($r(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 Jr=null,Qr="unavailable",ti=null,ei=function(t){t&&"string"==typeof t&&t.indexOf("NetworkError")>-1&&(Qr="error"),Jr&&Jr(t)};function ni(){ri.fire(new Et("pluginStateChange",{pluginStatus:Qr,pluginURL:ti}))}var ri=new Mt,ii=function(){return Qr},oi=function(){if("deferred"!==Qr||!ti)throw new Error("rtl-text-plugin cannot be downloaded unless a pluginURL is specified");Qr="loading",ni(),ti&&_t({url:ti},(function(t){t?ei(t):(Qr="loaded",ni())}))},ai={applyArabicShaping:null,processBidirectionalText:null,processStyledBidirectionalText:null,isLoaded:function(){return"loaded"===Qr||null!=ai.applyArabicShaping},isLoading:function(){return"loading"===Qr},setState:function(t){Qr=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 li=function(t,e){this.property=t,this.value=e,this.expression=function(t,e){if(Fn(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)};li.prototype.isDataDriven=function(){return"source"===this.expression.kind||"composite"===this.expression.kind},li.prototype.possiblyEvaluate=function(t,e,n){return this.property.possiblyEvaluate(this,t,e,n)};var ui=function(t){this.property=t,this.value=new li(t,void 0)};ui.prototype.transitioned=function(t,e){return new hi(this.property,this.value,e,d({},t.transition,this.transition),t.now)},ui.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 ui(this._values[t].property)),this._values[t].value=new li(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 ui(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 di(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 di(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 di=function(t){this._properties=t,this._values=Object.create(t.defaultTransitioningPropertyValues)};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},di.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 fi=function(t){this._properties=t,this._values=Object.create(t.defaultPropertyValues)};fi.prototype.getValue=function(t){return x(this._values[t].value)},fi.prototype.setValue=function(t,e){this._values[t]=new li(this._values[t].property,null===e?void 0:x(e))},fi.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},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};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 li(n,void 0),i=this.defaultTransitionablePropertyValues[e]=new ui(n);this.defaultTransitioningPropertyValues[e]=i.untransitioned(),this.defaultPossiblyEvaluatedValues[e]=r.possiblyEvaluate({})}};Fr("DataDrivenProperty",mi),Fr("DataConstantProperty",vi),Fr("CrossFadedDataDrivenProperty",yi),Fr("CrossFadedProperty",bi),Fr("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 fi(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(Mr,{key:e,layerType:this.type,objectKey:n,value:r,styleSpec:At,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}(Mt),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 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){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);Mi.prototype.bytesPerElement=4,Fr("StructArrayLayout2i4",Mi);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,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);Ai.prototype.bytesPerElement=8,Fr("StructArrayLayout4i8",Ai);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,Fr("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,l=8*t;return this.int16[s+0]=e,this.int16[s+1]=n,this.uint8[l+4]=r,this.uint8[l+5]=i,this.uint8[l+6]=o,this.uint8[l+7]=a,t},e}(Ci);ji.prototype.bytesPerElement=8,Fr("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,Fr("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,l,u){var c=this.length;return this.resize(c+1),this.emplace(c,t,e,n,r,i,o,a,s,l,u)},e.prototype.emplace=function(t,e,n,r,i,o,a,s,l,u,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]=l,this.uint16[h+8]=u,this.uint16[h+9]=c,t},e}(Ci);Pi.prototype.bytesPerElement=20,Fr("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,l,u,c,h){var d=this.length;return this.resize(d+1),this.emplace(d,t,e,n,r,i,o,a,s,l,u,c,h)},e.prototype.emplace=function(t,e,n,r,i,o,a,s,l,u,c,h,d){var f=12*t;return this.int16[f+0]=e,this.int16[f+1]=n,this.int16[f+2]=r,this.int16[f+3]=i,this.uint16[f+4]=o,this.uint16[f+5]=a,this.uint16[f+6]=s,this.uint16[f+7]=l,this.int16[f+8]=u,this.int16[f+9]=c,this.int16[f+10]=h,this.int16[f+11]=d,t},e}(Ci);Li.prototype.bytesPerElement=24,Fr("StructArrayLayout4i4ui4i24",Li);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.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);Di.prototype.bytesPerElement=12,Fr("StructArrayLayout3f12",Di);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.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);Ri.prototype.bytesPerElement=4,Fr("StructArrayLayout1ul4",Ri);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,l){var u=this.length;return this.resize(u+1),this.emplace(u,t,e,n,r,i,o,a,s,l)},e.prototype.emplace=function(t,e,n,r,i,o,a,s,l,u){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]=l,this.uint16[c+9]=u,t},e}(Ci);Ni.prototype.bytesPerElement=20,Fr("StructArrayLayout6i1ul2ui20",Ni);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.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);Fi.prototype.bytesPerElement=12,Fr("StructArrayLayout2i2i2i12",Fi);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.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);Bi.prototype.bytesPerElement=16,Fr("StructArrayLayout2f1f2i16",Bi);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,Fr("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,Fr("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,l,u,c,h,d,f,p,g,v){var m=this.length;return this.resize(m+1),this.emplace(m,t,e,n,r,i,o,a,s,l,u,c,h,d,f,p,g,v)},e.prototype.emplace=function(t,e,n,r,i,o,a,s,l,u,c,h,d,f,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]=l,this.uint16[y+11]=u,this.uint16[y+12]=c,this.float32[b+7]=h,this.float32[b+8]=d,this.uint8[_+36]=f,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,Fr("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,l,u,c,h,d,f,p,g,v,m,y,b,_,x,w,O,S,C,E,T){var M=this.length;return this.resize(M+1),this.emplace(M,t,e,n,r,i,o,a,s,l,u,c,h,d,f,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,l,u,c,h,d,f,p,g,v,m,y,b,_,x,w,O,S,C,E,T,M){var A=34*t,I=17*t;return this.int16[A+0]=e,this.int16[A+1]=n,this.int16[A+2]=r,this.int16[A+3]=i,this.int16[A+4]=o,this.int16[A+5]=a,this.int16[A+6]=s,this.int16[A+7]=l,this.uint16[A+8]=u,this.uint16[A+9]=c,this.uint16[A+10]=h,this.uint16[A+11]=d,this.uint16[A+12]=f,this.uint16[A+13]=p,this.uint16[A+14]=g,this.uint16[A+15]=v,this.uint16[A+16]=m,this.uint16[A+17]=y,this.uint16[A+18]=b,this.uint16[A+19]=_,this.uint16[A+20]=x,this.uint16[A+21]=w,this.uint16[A+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]=M,t},e}(Ci);Gi.prototype.bytesPerElement=68,Fr("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,Fr("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,Fr("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,Fr("StructArrayLayout1ul2ui8",Yi);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,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);$i.prototype.bytesPerElement=4,Fr("StructArrayLayout2ui4",$i);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){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);Xi.prototype.bytesPerElement=2,Fr("StructArrayLayout1ui2",Xi);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,Fr("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);Fr("CollisionBoxArray",Ki);var Ji=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);Ji.prototype.size=48;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.get=function(t){return new Ji(this,t)},e}(Ui);Fr("PlacedSymbolArray",Qi);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);Fr("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);Fr("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);Fr("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);Fr("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 lo(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,Fr("SegmentVector",so);var uo=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,l,u;for(r=t.length-(n=3&t.length),i=e,a=3432918353,s=461845907,u=0;u<r;)l=255&t.charCodeAt(u)|(255&t.charCodeAt(++u))<<8|(255&t.charCodeAt(++u))<<16|(255&t.charCodeAt(++u))<<24,++u,i=27492+(65535&(o=5*(65535&(i=(i^=l=(65535&(l=(l=(65535&l)*a+(((l>>>16)*a&65535)<<16)&4294967295)<<15|l>>>17))*s+(((l>>>16)*s&65535)<<16)&4294967295)<<13|i>>>19))+((5*(i>>>16)&65535)<<16)&4294967295))+((58964+(o>>>16)&65535)<<16);switch(l=0,n){case 3:l^=(255&t.charCodeAt(u+2))<<16;case 2:l^=(255&t.charCodeAt(u+1))<<8;case 1:i^=l=(65535&(l=(l=(65535&(l^=255&t.charCodeAt(u)))*a+(((l>>>16)*a&65535)<<16)&4294967295)<<15|l>>>17))*s+(((l>>>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}Fr("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 Mo(t){return[lo(255*t.r,255*t.g),lo(255*t.b,255*t.a)]}var Ao=function(t,e,n){this.value=t,this.uniformNames=e.map((function(t){return"u_"+t})),this.type=n};Ao.prototype.setUniform=function(t,e,n){t.set(n.constantOr(this.value))},Ao.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=Mo(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=Mo(n),o=Mo(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,uo.members,this.expression.isStateDependent),this.zoomOutPaintVertexBuffer=t.createVertexBuffer(this.zoomOutPaintVertexArray,uo.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=Ro(i,t.type),s=o.value,l=o.property.specification.type,u=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 Ao(s.value,a,l),r.push("/u_"+i);else if("source"===s.kind||h){var d=No(i,l,"source");this.binders[i]=h?new Po(s,l,u,e,d,t.id):new jo(s,a,l,d),r.push("/a_"+i)}else{var f=No(i,l,"composite");this.binders[i]=new ko(s,a,l,u,e,f),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,l=e.getPositions(a);s<l.length;s+=1){var u=l[s],c=n.feature(u.index);for(var h in this.binders){var d=this.binders[h];if((d instanceof jo||d instanceof ko||d instanceof Po)&&!0===d.expression.isStateDependent){var f=r.paint.get(h);d.expression=f.value,d.updatePaintArray(u.start,u.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 Ao||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<uo.members.length;i++)t.push(uo.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 Ao||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 Ao||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 l=i.getBinding(t,e[s],s);n.push({name:s,property:r,binding:l})}}}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,l=a.property;this.binders[l].setUniform(a.binding,r,n.get(l),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 Do=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 Ro(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]}Do.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},Do.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}},Do.prototype.get=function(t){return this.programConfigurations[t]},Do.prototype.upload=function(t){if(this.needsUpload){for(var e in this.programConfigurations)this.programConfigurations[e].upload(t);this.needsUpload=!1}},Do.prototype.destroy=function(){for(var t in this.programConfigurations)this.programConfigurations[t].destroy()},Fr("ConstantBinder",Ao),Fr("CrossFadedConstantBinder",Io),Fr("SourceExpressionBinder",jo),Fr("CrossFadedCompositeBinder",Po),Fr("CompositeExpressionBinder",ko),Fr("ProgramConfiguration",Lo,{omit:["_buffers"]}),Fr("ProgramConfigurationSet",Do);var Fo=Math.pow(2,14)-1,Bo=-Fo-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),l=Math.round(a.y*e);a.x=c(s,Bo,Fo),a.y=c(l,Bo,Fo),(s<a.x||s>a.x+1||l<a.y||l>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 Mi,this.indexArray=new Vi,this.segments=new so,this.programConfigurations=new Do(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(Qo(e,t[n]))return!0;for(var r=0;r<e.length;r++)if(Qo(t,e[r]))return!0;return!!Xo(t,e)}function Wo(t,e,n){return!!Qo(t,e)||!!Zo(e,t,n)}function Yo(t,e){if(1===t.length)return Jo(e,t[0]);for(var n=0;n<e.length;n++)for(var r=e[n],i=0;i<r.length;i++)if(Qo(t,r[i]))return!0;for(var o=0;o<t.length;o++)if(Jo(e,t[o]))return!0;for(var a=0;a<e.length;a++)if(Xo(t,e[a]))return!0;return!1}function $o(t,e,n){if(t.length>1){if(Xo(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 Xo(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 Jo(t,e){for(var n,r,i,o=!1,a=0;a<t.length;a++)for(var s=0,l=(n=t[a]).length-1;s<n.length;l=s++)(r=n[s]).y>e.y!=(i=n[l]).y>e.y&&e.x<(i.x-r.x)*(e.y-r.y)/(i.y-r.y)+r.x&&(o=!o);return o}function Qo(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=[],l=0;l<t.length;l++)s.push(t[l].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 l=s[a],u=l.feature,c=l.id,h=l.index,d=l.sourceLayerIndex,f=this.layers[0]._featureFilter.needGeometry,p=Vo(u,f);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:u.properties,type:u.type,sourceLayerIndex:d,index:h,geometry:f?p.geometry:zo(u),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 l=s[a],u=l.x,c=l.y;if(!(u<0||u>=8192||c<0||c>=8192)){var h=this.segments.prepareSegment(4,this.layoutVertexArray,this.indexArray,t.sortKey),d=h.vertexLength;Uo(this.layoutVertexArray,u,c,-1,-1),Uo(this.layoutVertexArray,u,c,1,-1),Uo(this.layoutVertexArray,u,c,1,1),Uo(this.layoutVertexArray,u,c,-1,1),this.indexArray.emplaceBack(d,d+1,d+2),this.indexArray.emplaceBack(d,d+3,d+2),h.vertexLength+=4,h.primitiveLength+=2}}this.programConfigurations.populatePaintArrays(this.layoutVertexArray.length,t,n,{},r)},Fr("CircleBucket",Go,{omit:["layers"]});var ia=new xi({"circle-sort-key":new mi(At.layout_circle["circle-sort-key"])}),oa={paint:new xi({"circle-radius":new mi(At.paint_circle["circle-radius"]),"circle-color":new mi(At.paint_circle["circle-color"]),"circle-blur":new mi(At.paint_circle["circle-blur"]),"circle-opacity":new mi(At.paint_circle["circle-opacity"]),"circle-translate":new vi(At.paint_circle["circle-translate"]),"circle-translate-anchor":new vi(At.paint_circle["circle-translate-anchor"]),"circle-pitch-scale":new vi(At.paint_circle["circle-pitch-scale"]),"circle-pitch-alignment":new vi(At.paint_circle["circle-pitch-alignment"]),"circle-stroke-width":new mi(At.paint_circle["circle-stroke-width"]),"circle-stroke-color":new mi(At.paint_circle["circle-stroke-color"]),"circle-stroke-opacity":new mi(At.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 la(t,e,n){var r=e[0],i=e[1],o=e[2],a=e[3],s=e[4],l=e[5],u=e[6],c=e[7],h=e[8],d=e[9],f=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+_*l+x*d+w*v,t[2]=b*o+_*u+x*f+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+_*l+x*d+w*v,t[6]=b*o+_*u+x*f+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+_*l+x*d+w*v,t[10]=b*o+_*u+x*f+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+_*l+x*d+w*v,t[14]=b*o+_*u+x*f+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 ua,ca=la;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}ua=new aa(3),aa!=Float32Array&&(ua[0]=0,ua[1]=0,ua[2]=0),function(){var t=new aa(4);aa!=Float32Array&&(t[0]=0,t[1]=0,t[2]=0,t[3]=0)}();var da=(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 l=ra(t,this.paint.get("circle-translate"),this.paint.get("circle-translate-anchor"),o.angle,a),u=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?l:function(t,e){return t.map((function(t){return fa(t,e)}))}(l,s),d=c?u*a:u,f=0,p=r;f<p.length;f+=1)for(var g=0,v=p[f];g<v.length;g+=1){var m=v[g],y=c?m:fa(m,s),b=d,_=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 fa(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,l=0;l<i.height;l++)for(var u=((n.y+l)*t.width+n.x)*o,c=((r.y+l)*e.width+r.x)*o,h=0;h<i.width*o;h++)s[c+h]=a[u+h];return e}Fr("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)},Fr("AlphaImage",ya),Fr("RGBAImage",ba);var _a={paint:new xi({"heatmap-radius":new mi(At.paint_heatmap["heatmap-radius"]),"heatmap-weight":new mi(At.paint_heatmap["heatmap-weight"]),"heatmap-intensity":new vi(At.paint_heatmap["heatmap-intensity"]),"heatmap-color":new _i(At.paint_heatmap["heatmap-color"]),"heatmap-opacity":new vi(At.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 l=0,u=0;l<n;l++,u+=4){var c=l/(n-1),h=t.clips[a];o(s,u,h.start*(1-c)+h.end*c)}else for(var d=0,f=0;d<n;d++,f+=4)o(0,f,d/(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(At.paint_hillshade["hillshade-illumination-direction"]),"hillshade-illumination-anchor":new vi(At.paint_hillshade["hillshade-illumination-anchor"]),"hillshade-exaggeration":new vi(At.paint_hillshade["hillshade-exaggeration"]),"hillshade-shadow-color":new vi(At.paint_hillshade["hillshade-shadow-color"]),"hillshade-highlight-color":new vi(At.paint_hillshade["hillshade-highlight-color"]),"hillshade-accent-color":new vi(At.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=Ma,Ta=Ma;function Ma(t,e,n){n=n||2;var r,i,o,a,s,l,u,c=e&&e.length,h=c?e[0]*n:t.length,d=Aa(t,0,h,n,!0),f=[];if(!d||d.next===d.prev)return f;if(c&&(d=function(t,e,n,r){var i,o,a,s=[];for(i=0,o=e.length;i<o;i++)(a=Aa(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(Ra),i=0;i<s.length;i++)Na(s[i],n),n=Ia(n,n.next);return n}(t,e,d,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),(l=t[p+1])<i&&(i=l),s>o&&(o=s),l>a&&(a=l);u=0!==(u=Math.max(o-r,a-i))?1/u:0}return ja(d,f,n,r,i,u),f}function Aa(t,e,n,r,i){var o,a;if(i===Qa(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=Ba(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,l,u=1;do{for(n=t,t=null,o=null,a=0;n;){for(a++,r=n,s=0,e=0;e<u&&(s++,r=r.nextZ);e++);for(l=u;s>0||l>0&&r;)0!==s&&(0===l||!r||n.z<=r.z)?(i=n,n=n.nextZ,s--):(i=r,r=r.nextZ,l--),o?o.nextZ=i:t=i,i.prevZ=o,o=i;n=r}o.nextZ=null,u*=2}while(a>1)}(i)}(t,r,i,o);for(var s,l,u=t;t.prev!==t.next;)if(s=t.prev,l=t.next,o?Pa(t,r,i,o):ka(t))e.push(s.i/n),e.push(t.i/n),e.push(l.i/n),Ka(t),t=l.next,u=l.next;else if((t=l)===u){a?1===a?ja(t=La(Ia(t),e,n),e,n,r,i,o,2):2===a&&Da(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,l=i.y>o.y?i.y>a.y?i.y:a.y:o.y>a.y?o.y:a.y,u=Ba(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=Ba(s,l,e,n,r),h=t.prevZ,d=t.nextZ;h&&h.z>=u&&d&&d.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,d!==t.prev&&d!==t.next&&Va(i.x,i.y,o.x,o.y,a.x,a.y,d.x,d.y)&&Ga(d.prev,d,d.next)>=0)return!1;d=d.nextZ}for(;h&&h.z>=u;){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(;d&&d.z<=c;){if(d!==t.prev&&d!==t.next&&Va(i.x,i.y,o.x,o.y,a.x,a.y,d.x,d.y)&&Ga(d.prev,d,d.next)>=0)return!1;d=d.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)&&Xa(i,o)&&Xa(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 Da(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 l=qa(a,s);return a=Ia(a,a.next),l=Ia(l,l.next),ja(a,e,n,r,i,o),void ja(l,e,n,r,i,o)}s=s.next}a=a.next}while(a!==t)}function Ra(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 l,u=n,c=n.x,h=n.y,d=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)&&(l=Math.abs(o-r.y)/(i-r.x),Xa(r,t)&&(l<d||l===d&&(r.x>n.x||r.x===n.x&&Fa(n,r)))&&(n=r,d=l)),r=r.next}while(r!==u);return n}(t,e)){var n=qa(e,t);Ia(e,e.next),Ia(n,n.next)}}function Fa(t,e){return Ga(t.prev,t,e.prev)<0&&Ga(e.next,t,t.next)<0}function Ba(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)&&(Xa(t,e)&&Xa(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=$a(Ga(t,e,n)),o=$a(Ga(t,e,r)),a=$a(Ga(n,r,t)),s=$a(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 $a(t){return t>0?1:t<0?-1:0}function Xa(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 Ja(t.i,t.x,t.y),r=new Ja(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 Ja(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 Ja(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 Qa(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,l=Math.log(a),u=.5*Math.exp(2*l/3),c=.5*Math.sqrt(l*u*(a-u)/a)*(s-a/2<0?-1:1);t(e,n,Math.max(r,Math.floor(n-s*u/a+c)),Math.min(i,Math.floor(n+(a-s)*u/a+c)),o)}var h=e[n],d=r,f=i;for(es(e,r,n),o(e[i],h)>0&&es(e,r,i);d<f;){for(es(e,d,f),d++,f--;o(e[d],h)<0;)d++;for(;o(e[f],h)>0;)f--}0===o(e[r],h)?es(e,r,f):es(e,++f,i),f<=n&&(r=f+1),n<=f&&(i=f-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 l=0;l<o.length;l++)o[l].length<=e||(ts(o[l],e,1,o[l].length-1,is),o[l]=o[l].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 l=s.constantOr(null);l&&(i=!0,r[l.to]=!0,r[l.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 l=s[a],u=l.paint.get(t+"-pattern").value;if("constant"!==u.kind){var c=u.evaluate({zoom:r-1},n,{},i.availableImages),h=u.evaluate({zoom:r},n,{},i.availableImages),d=u.evaluate({zoom:r+1},n,{},i.availableImages);h=h&&h.name?h.name:h,d=d&&d.name?d.name:d,o[c=c&&c.name?c.name:c]=!0,o[h]=!0,o[d]=!0,n.patterns[l.id]={min:c,mid:h,max:d}}}return n}Ma.deviation=function(t,e,n,r){var i=e&&e.length,o=Math.abs(Qa(t,0,i?e[0]*n:t.length,n));if(i)for(var a=0,s=e.length;a<s;a++)o-=Math.abs(Qa(t,e[a]*n,a<s-1?e[a+1]*n:t.length,n));var l=0;for(a=0;a<r.length;a+=3){var u=r[a]*n,c=r[a+1]*n,h=r[a+2]*n;l+=Math.abs((t[u]-t[h])*(t[c+1]-t[u+1])-(t[u]-t[c])*(t[h+1]-t[u+1]))}return 0===o&&0===l?0:Math.abs((l-o)/o)},Ma.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 Mi,this.indexArray=new Vi,this.indexArray2=new $i,this.programConfigurations=new Do(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],l=s.feature,u=s.id,c=s.index,h=s.sourceLayerIndex,d=this.layers[0]._featureFilter.needGeometry,f=Vo(l,d);if(this.layers[0]._featureFilter.filter(new si(this.zoom),f,n)){var p=r?r.evaluate(f,{},n,e.availableImages):void 0,g={id:u,properties:l.properties,type:l.type,sourceLayerIndex:h,index:c,geometry:d?f.geometry:zo(l),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],l=0,u=0,c=s;u<c.length;u+=1)l+=c[u].length;for(var h=this.segments.prepareSegment(l,this.layoutVertexArray,this.indexArray),d=h.vertexLength,f=[],p=[],g=0,v=s;g<v.length;g+=1){var m=v[g];if(0!==m.length){m!==s[0]&&p.push(f.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),f.push(m[0].x),f.push(m[0].y);for(var _=1;_<m.length;_++)this.layoutVertexArray.emplaceBack(m[_].x,m[_].y),this.indexArray2.emplaceBack(b+_-1,b+_),f.push(m[_].x),f.push(m[_].y);y.vertexLength+=m.length,y.primitiveLength+=m.length}}for(var x=Ea(f,p),w=0;w<x.length;w+=3)this.indexArray.emplaceBack(d+x[w],d+x[w+1],d+x[w+2]);h.vertexLength+=l,h.primitiveLength+=x.length/3}this.programConfigurations.populatePaintArrays(this.layoutVertexArray.length,t,n,i,r)},Fr("FillBucket",ss,{omit:["layers","patternFeatures"]});var ls=new xi({"fill-sort-key":new mi(At.layout_fill["fill-sort-key"])}),us={paint:new xi({"fill-antialias":new vi(At.paint_fill["fill-antialias"]),"fill-opacity":new mi(At.paint_fill["fill-opacity"]),"fill-color":new mi(At.paint_fill["fill-color"]),"fill-outline-color":new mi(At.paint_fill["fill-outline-color"]),"fill-translate":new vi(At.paint_fill["fill-translate"]),"fill-translate-anchor":new vi(At.paint_fill["fill-translate-anchor"]),"fill-pattern":new yi(At.paint_fill["fill-pattern"])}),layout:ls},cs=function(t){function e(e){t.call(this,e,us)}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,ds=fs;function fs(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}fs.types=["Unknown","Point","LineString","Polygon"],fs.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,l=[];t.pos<n;){if(o<=0){var u=t.readVarint();r=7&u,o=u>>3}if(o--,1===r||2===r)a+=t.readSVarint(),s+=t.readSVarint(),1===r&&(e&&l.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&&l.push(e),l},fs.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,l=1/0,u=-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())<l&&(l=o),o>u&&(u=o);else if(7!==n)throw new Error("unknown command "+n)}return[a,l,s,u]},fs.prototype.toGeoJSON=function(t,e,n){var r,i,o=this.extent*Math.pow(2,n),a=this.extent*t,s=this.extent*e,l=this.loadGeometry(),u=fs.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<l.length;r++)h[r]=l[r][0];c(l=h);break;case 2:for(r=0;r<l.length;r++)c(l[r]);break;case 3:for(l=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}(l),r=0;r<l.length;r++)for(i=0;i<l[r].length;i++)c(l[r][i])}1===l.length?l=l[0]:u="Multi"+u;var d={type:"Feature",geometry:{type:u,coordinates:l},properties:this.properties};return"id"in this&&(d.id=this.id),d};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 ds(this._pbf,e,this.extent,this._keys,this._values)};var _s={VectorTile:function(t,e){this.layers=t.readFields(bs,{},e)},VectorTileFeature:ds,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 Do(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,l=o.index,u=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 d={id:s,sourceLayerIndex:u,index:l,geometry:c?h.geometry:zo(a),properties:a.properties,type:a.type,patterns:{}};this.hasPattern?this.features.push(as("fill-extrusion",this.layers,d,this.zoom,e)):this.addFeature(d,d.geometry,l,n,{}),e.featureIndex.insert(a,d.geometry,l,u,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],l=0,u=0,c=s;u<c.length;u+=1)l+=c[u].length;for(var h=this.segments.prepareSegment(4,this.layoutVertexArray,this.indexArray),d=0,f=s;d<f.length;d+=1){var p=f[d];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+l>so.MAX_VERTEX_ARRAY_LENGTH&&(h=this.segments.prepareSegment(l,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 M=0;M<T.length;M++){var A=T[M];Os(this.layoutVertexArray,A.x,A.y,0,0,1,1,0),w.push(A.x),w.push(A.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+=l}}var k;this.programConfigurations.populatePaintArrays(this.layoutVertexArray.length,t,n,i,r)},Fr("FillExtrusionBucket",Ss,{omit:["layers","features"]});var Es={paint:new xi({"fill-extrusion-opacity":new vi(At["paint_fill-extrusion"]["fill-extrusion-opacity"]),"fill-extrusion-color":new mi(At["paint_fill-extrusion"]["fill-extrusion-color"]),"fill-extrusion-translate":new vi(At["paint_fill-extrusion"]["fill-extrusion-translate"]),"fill-extrusion-translate-anchor":new vi(At["paint_fill-extrusion"]["fill-extrusion-translate-anchor"]),"fill-extrusion-pattern":new yi(At["paint_fill-extrusion"]["fill-extrusion-pattern"]),"fill-extrusion-height":new mi(At["paint_fill-extrusion"]["fill-extrusion-height"]),"fill-extrusion-base":new mi(At["paint_fill-extrusion"]["fill-extrusion-base"]),"fill-extrusion-vertical-gradient":new vi(At["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,l){var u=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),d=function(t,e,n,r){for(var o=[],a=0,s=t;a<s.length;a+=1){var l=s[a],u=[l.x,l.y,0,1];ha(u,u,e),o.push(new i(u[0]/u[3],u[1]/u[3]))}return o}(u,l),f=function(t,e,n,r){for(var o=[],a=[],s=r[8]*e,l=r[9]*e,u=r[10]*e,c=r[11]*e,h=r[8]*n,d=r[9]*n,f=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],M=E+u,A=T+c,I=S+h,j=C+d,k=E+f,P=T+p,L=new i((S+s)/A,(C+l)/A);L.z=M/A,m.push(L);var D=new i(I/P,j/P);D.z=k/P,y.push(D)}o.push(m),a.push(y)}return[o,a]}(r,h,c,l);return function(t,e,n){var r=1/0;Yo(n,e)&&(r=As(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 l=o[s],u=[l,o[s+1],a[s+1],a[s],l];Ho(n,u)&&(r=Math.min(r,As(n,u)))}return r!==1/0&&r}(f[0],f[1],d)},e}(wi);function Ms(t,e){return t.x*e.x+t.y*e.y}function As(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),l=o.sub(i),u=a.sub(i),c=Ms(s,s),h=Ms(s,l),d=Ms(l,l),f=Ms(u,s),p=Ms(u,l),g=c*d-h*h,v=(d*f-h*p)/g,m=(c*p-h*f)/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,Ds=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 Do(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}))};Ds.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],l=s.feature,u=s.id,c=s.index,h=s.sourceLayerIndex,d=this.layers[0]._featureFilter.needGeometry,f=Vo(l,d);if(this.layers[0]._featureFilter.filter(new si(this.zoom),f,n)){var p=r?r.evaluate(f,{},n):void 0,g={id:u,properties:l.properties,type:l.type,sourceLayerIndex:h,index:c,geometry:d?f.geometry:zo(l),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)}},Ds.prototype.update=function(t,e,n){this.stateDependentLayers.length&&this.programConfigurations.updatePaintArrays(t,e,this.stateDependentLayers,n)},Ds.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)}},Ds.prototype.isEmpty=function(){return 0===this.layoutVertexArray.length},Ds.prototype.uploadPending=function(){return!this.uploaded||this.programConfigurations.needsUpload},Ds.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},Ds.prototype.destroy=function(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.programConfigurations.destroy(),this.segments.destroy())},Ds.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}},Ds.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"),l=o.get("line-miter-limit"),u=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,l,u);this.programConfigurations.populatePaintArrays(this.layoutVertexArray.length,t,n,i,r)},Ds.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],l=t.length;l>=2&&t[l-1].equals(t[l-2]);)l--;for(var u=0;u<l-1&&t[u].equals(t[u+1]);)u++;if(!(l<(s?3:2))){"bevel"===n&&(i=1.05);var c,h=this.overscaling<=16?122880/(512*this.overscaling):0,d=this.segments.prepareSegment(10*l,this.layoutVertexArray,this.indexArray),f=void 0,p=void 0,g=void 0,v=void 0;this.e1=this.e2=-1,s&&(v=t[u].sub(c=t[l-2])._unit()._perp());for(var m=u;m<l;m++)if(!(p=m===l-1?s?t[u+1]:void 0:t[m+1])||!t[m].equals(p)){v&&(g=v),c&&(f=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&&f&&p,S=g.x*v.y-g.y*v.x>0;if(O&&m>u){var C=c.dist(f);if(C>2*h){var E=c.sub(c.sub(f)._mult(h/C)._round());this.updateDistance(f,E),this.addCurrentVertex(E,g,0,0,d),f=E}}var T=f&&p,M=T?n:s?"butt":r;if(T&&"round"===M&&(x<o?M="miter":x<=2&&(M="fakeround")),"miter"===M&&x>i&&(M="bevel"),"bevel"===M&&(x>2&&(M="flipbevel"),x<i&&(M="miter")),f&&this.updateDistance(f,c),"miter"===M)y._mult(x),this.addCurrentVertex(c,y,0,0,d);else if("flipbevel"===M){if(x>100)y=v.mult(-1);else{var A=x*g.add(v).mag()/g.sub(v).mag();y._perp()._mult(A*(S?-1:1))}this.addCurrentVertex(c,y,0,0,d),this.addCurrentVertex(c,y.mult(-1),0,0,d)}else if("bevel"===M||"fakeround"===M){var I=-Math.sqrt(x*x-1),j=S?I:0,k=S?0:I;if(f&&this.addCurrentVertex(c,g,j,k,d),"fakeround"===M)for(var P=Math.round(180*w/Math.PI/20),L=1;L<P;L++){var D=L/P;if(.5!==D){var R=D-.5;D+=D*R*(D-1)*((1.0904+b*(b*(3.55645-1.43519*b)-3.2452))*R*R+(.848013+b*(.215638*b-1.06021)))}var N=v.sub(g)._mult(D)._add(g)._unit()._mult(S?-1:1);this.addHalfVertex(c,N.x,N.y,!1,S,0,d)}p&&this.addCurrentVertex(c,v,-j,-k,d)}else if("butt"===M)this.addCurrentVertex(c,y,0,0,d);else if("square"===M){var F=f?1:-1;this.addCurrentVertex(c,y,F,F,d)}else"round"===M&&(f&&(this.addCurrentVertex(c,g,0,0,d),this.addCurrentVertex(c,g,1,1,d,!0)),p&&(this.addCurrentVertex(c,v,-1,-1,d,!0),this.addCurrentVertex(c,v,0,0,d)));if(O&&m<l-1){var B=c.dist(p);if(B>2*h){var z=c.add(p.sub(c)._mult(h/B)._round());this.updateDistance(c,z),this.addCurrentVertex(z,v,0,0,d),c=z}}}}},Ds.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))},Ds.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 l=a.vertexLength++;this.e1>=0&&this.e2>=0&&(this.indexArray.emplaceBack(this.e1,this.e2,l),a.primitiveLength++),i?this.e2=l:this.e1=l},Ds.prototype.updateScaledDistance=function(){this.scaledDistance=this.lineClips?this.lineClips.start+(this.lineClips.end-this.lineClips.start)*this.distance/this.totalDistance:this.distance},Ds.prototype.updateDistance=function(t,e){this.distance+=t.dist(e),this.updateScaledDistance()},Fr("LineBucket",Ds,{omit:["layers","patternFeatures"]});var Rs=new xi({"line-cap":new vi(At.layout_line["line-cap"]),"line-join":new mi(At.layout_line["line-join"]),"line-miter-limit":new vi(At.layout_line["line-miter-limit"]),"line-round-limit":new vi(At.layout_line["line-round-limit"]),"line-sort-key":new mi(At.layout_line["line-sort-key"])}),Ns={paint:new xi({"line-opacity":new mi(At.paint_line["line-opacity"]),"line-color":new mi(At.paint_line["line-color"]),"line-translate":new vi(At.paint_line["line-translate"]),"line-translate-anchor":new vi(At.paint_line["line-translate-anchor"]),"line-width":new mi(At.paint_line["line-width"]),"line-gap-width":new mi(At.paint_line["line-gap-width"]),"line-offset":new mi(At.paint_line["line-offset"]),"line-blur":new mi(At.paint_line["line-blur"]),"line-dasharray":new bi(At.paint_line["line-dasharray"]),"line-pattern":new yi(At.paint_line["line-pattern"]),"line-gradient":new _i(At.paint_line["line-gradient"])}),layout:Rs},Fs=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=d({},n,{zoom:Math.floor(n.zoom)}),t.prototype.evaluate.call(this,e,n,r,i)},e}(mi))(Ns.paint.properties["line-width"].specification);Fs.useIntegerZoom=!0;var Bs=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"]=Fs.possiblyEvaluate(this._transitioningPaint._values["line-width"].value,e)},e.prototype.createBucket=function(t){return new Ds(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 l=ra(t,this.paint.get("line-translate"),this.paint.get("line-translate-anchor"),a.angle,s),u=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=[],l=0;l<a.length;l++){var u=a[l],c=a[l+1],h=0===l?r:u.sub(a[l-1])._unit()._perp(),d=l===a.length-1?r:c.sub(u)._unit()._perp(),f=h._add(d)._unit();f._mult(1/(f.x*d.x+f.y*d.y)),s.push(f._mult(e)._add(u))}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(Qo(t,i[o]))return!0;if($o(t,i,n))return!0}return!1}(l,r,u)},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 $s={"!":"︕","#":"#",$:"$","%":"%","&":"&","(":"︵",")":"︶","*":"*","+":"+",",":"︐","-":"︲",".":"・","/":"/",":":"︓",";":"︔","<":"︿","=":"=",">":"﹀","?":"︖","@":"@","[":"﹇","\\":"\","]":"﹈","^":"^",_:"︳","`":"`","{":"︷","|":"―","}":"︸","~":"~","¢":"¢","£":"£","¥":"¥","¦":"¦","¬":"¬","¯":" ̄","–":"︲","—":"︱","‘":"﹃","’":"﹄","“":"﹁","”":"﹂","…":"︙","‧":"・","₩":"₩","、":"︑","。":"︒","〈":"︿","〉":"﹀","《":"︽","》":"︾","「":"﹁","」":"﹂","『":"﹃","』":"﹄","【":"︻","】":"︼","〔":"︹","〕":"︺","〖":"︗","〗":"︘","!":"︕","(":"︵",")":"︶",",":"︐","-":"︲",".":"・",":":"︓",";":"︔","<":"︿",">":"﹀","?":"︖","[":"﹇","]":"﹈","_":"︳","{":"︷","|":"―","}":"︸","⦅":"︵","⦆":"︶","。":"︒","「":"﹁","」":"﹂"},Xs=function(t,e,n,r,i){var o,a,s=8*i-r-1,l=(1<<s)-1,u=l>>1,c=-7,h=n?i-1:0,d=n?-1:1,f=t[e+h];for(h+=d,o=f&(1<<-c)-1,f>>=-c,c+=s;c>0;o=256*o+t[e+h],h+=d,c-=8);for(a=o&(1<<-c)-1,o>>=-c,c+=r;c>0;a=256*a+t[e+h],h+=d,c-=8);if(0===o)o=1-u;else{if(o===l)return a?NaN:1/0*(f?-1:1);a+=Math.pow(2,r),o-=u}return(f?-1:1)*a*Math.pow(2,o-r)},qs=function(t,e,n,r,i,o){var a,s,l,u=8*o-i-1,c=(1<<u)-1,h=c>>1,d=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,f=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*(l=Math.pow(2,-a))<1&&(a--,l*=2),(e+=a+h>=1?d/l:d*Math.pow(2,1-h))*l>=2&&(a++,l/=2),a+h>=c?(s=0,a=c):a+h>=1?(s=(e*l-1)*Math.pow(2,i),a+=h):(s=e*Math.pow(2,h-1)*Math.pow(2,i),a=0));i>=8;t[n+f]=255&s,f+=p,s/=256,i-=8);for(a=a<<i|s,u+=i;u>0;t[n+f]=255&a,f+=p,a/=256,u-=8);t[n+f-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 Js="undefined"==typeof TextDecoder?null:new TextDecoder("utf8");function Qs(t){return t.type===Ks.Bytes?t.readVarint()+t.pos:t.pos+1}function tl(t,e,n){return n?4294967296*e+(t>>>0):4294967296*(e>>>0)+(t>>>0)}function el(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 nl(t,e){for(var n=0;n<t.length;n++)e.writeVarint(t[n])}function rl(t,e){for(var n=0;n<t.length;n++)e.writeSVarint(t[n])}function il(t,e){for(var n=0;n<t.length;n++)e.writeFloat(t[n])}function ol(t,e){for(var n=0;n<t.length;n++)e.writeDouble(t[n])}function al(t,e){for(var n=0;n<t.length;n++)e.writeBoolean(t[n])}function sl(t,e){for(var n=0;n<t.length;n++)e.writeFixed32(t[n])}function ll(t,e){for(var n=0;n<t.length;n++)e.writeSFixed32(t[n])}function ul(t,e){for(var n=0;n<t.length;n++)e.writeFixed64(t[n])}function cl(t,e){for(var n=0;n<t.length;n++)e.writeSFixed64(t[n])}function hl(t,e){return(t[e]|t[e+1]<<8|t[e+2]<<16)+16777216*t[e+3]}function dl(t,e,n){t[n]=e,t[n+1]=e>>>8,t[n+2]=e>>>16,t[n+3]=e>>>24}function fl(t,e){return(t[e]|t[e+1]<<8|t[e+2]<<16)+(t[e+3]<<24)}function pl(t,e,n){1===t&&n.readMessage(gl,e)}function gl(t,e,n){if(3===t){var r=n.readMessage(vl,{}),i=r.width,o=r.height,a=r.left,s=r.top,l=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:l}})}}function vl(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 ml(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,l=0,u=0,c=t;u<c.length;u+=1)for(var h=c[u],d=a.length-1;d>=0;d--){var f=a[d];if(!(h.w>f.w||h.h>f.h)){if(h.x=f.x,h.y=f.y,l=Math.max(l,h.y+h.h),s=Math.max(s,h.x+h.w),h.w===f.w&&h.h===f.h){var p=a.pop();d<a.length&&(a[d]=p)}else h.h===f.h?(f.x+=h.w,f.w-=h.w):h.w===f.w?(f.y+=h.h,f.h-=h.h):(a.push({x:f.x+h.w,y:f.y,w:f.w-h.w,h:h.h}),f.y+=h.h,f.h-=h.h);break}}return{w:s,h:l,fill:e/(s*l)||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=hl(this.buf,this.pos);return this.pos+=4,t},readSFixed32:function(){var t=fl(this.buf,this.pos);return this.pos+=4,t},readFixed64:function(){var t=hl(this.buf,this.pos)+4294967296*hl(this.buf,this.pos+4);return this.pos+=8,t},readSFixed64:function(){var t=hl(this.buf,this.pos)+4294967296*fl(this.buf,this.pos+4);return this.pos+=8,t},readFloat:function(){var t=Xs(this.buf,this.pos,!0,23,4);return this.pos+=4,t},readDouble:function(){var t=Xs(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 tl(t,r,e);if(r|=(127&(i=o[n.pos++]))<<3,i<128)return tl(t,r,e);if(r|=(127&(i=o[n.pos++]))<<10,i<128)return tl(t,r,e);if(r|=(127&(i=o[n.pos++]))<<17,i<128)return tl(t,r,e);if(r|=(127&(i=o[n.pos++]))<<24,i<128)return tl(t,r,e);if(r|=(1&(i=o[n.pos++]))<<31,i<128)return tl(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&&Js?function(t,e,n){return Js.decode(t.subarray(e,n))}(this.buf,e,t):function(t,e,n){for(var r="",i=e;i<n;){var o,a,s,l=t[i],u=null,c=l>239?4:l>223?3:l>191?2:1;if(i+c>n)break;1===c?l<128&&(u=l):2===c?128==(192&(o=t[i+1]))&&(u=(31&l)<<6|63&o)<=127&&(u=null):3===c?(a=t[i+2],128==(192&(o=t[i+1]))&&128==(192&a)&&((u=(15&l)<<12|(63&o)<<6|63&a)<=2047||u>=55296&&u<=57343)&&(u=null)):4===c&&(a=t[i+2],s=t[i+3],128==(192&(o=t[i+1]))&&128==(192&a)&&128==(192&s)&&((u=(15&l)<<18|(63&o)<<12|(63&a)<<6|63&s)<=65535||u>=1114112)&&(u=null)),null===u?(u=65533,c=1):u>65535&&(u-=65536,r+=String.fromCharCode(u>>>10&1023|55296),u=56320|1023&u),r+=String.fromCharCode(u),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=Qs(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=Qs(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=Qs(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=Qs(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=Qs(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=Qs(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=Qs(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=Qs(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=Qs(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),dl(this.buf,t,this.pos),this.pos+=4},writeSFixed32:function(t){this.realloc(4),dl(this.buf,t,this.pos),this.pos+=4},writeFixed64:function(t){this.realloc(8),dl(this.buf,-1&t,this.pos),dl(this.buf,Math.floor(t*(1/4294967296)),this.pos+4),this.pos+=8},writeSFixed64:function(t){this.realloc(8),dl(this.buf,-1&t,this.pos),dl(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&&el(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&&el(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,nl,e)},writePackedSVarint:function(t,e){e.length&&this.writeMessage(t,rl,e)},writePackedBoolean:function(t,e){e.length&&this.writeMessage(t,al,e)},writePackedFloat:function(t,e){e.length&&this.writeMessage(t,il,e)},writePackedDouble:function(t,e){e.length&&this.writeMessage(t,ol,e)},writePackedFixed32:function(t,e){e.length&&this.writeMessage(t,sl,e)},writePackedSFixed32:function(t,e){e.length&&this.writeMessage(t,ll,e)},writePackedFixed64:function(t,e){e.length&&this.writeMessage(t,ul,e)},writePackedSFixed64:function(t,e){e.length&&this.writeMessage(t,cl,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 yl=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},bl={tl:{configurable:!0},br:{configurable:!0},tlbr:{configurable:!0},displaySize:{configurable:!0}};bl.tl.get=function(){return[this.paddedRect.x+1,this.paddedRect.y+1]},bl.br.get=function(){return[this.paddedRect.x+this.paddedRect.w-1,this.paddedRect.y+this.paddedRect.h-1]},bl.tlbr.get=function(){return this.tl.concat(this.br)},bl.displaySize.get=function(){return[(this.paddedRect.w-2)/this.pixelRatio,(this.paddedRect.h-2)/this.pixelRatio]},Object.defineProperties(yl.prototype,bl);var _l=function(t,e){var n={},r={};this.haveRenderCallbacks=[];var i=[];this.addImages(t,n,i),this.addImages(e,r,i);var o=ml(i),a=new ba({width:o.w||1,height:o.h||1});for(var s in t){var l=t[s],u=n[s].paddedRect;ba.copy(l.data,a,{x:0,y:0},{x:u.x+1,y:u.y+1},l.data)}for(var c in e){var h=e[c],d=r[c].paddedRect,f=d.x+1,p=d.y+1,g=h.data.width,v=h.data.height;ba.copy(h.data,a,{x:0,y:0},{x:f,y:p},h.data),ba.copy(h.data,a,{x:0,y:v-1},{x:f,y:p-1},{width:g,height:1}),ba.copy(h.data,a,{x:0,y:0},{x:f,y:p+v},{width:g,height:1}),ba.copy(h.data,a,{x:g-1,y:0},{x:f-1,y:p},{width:1,height:v}),ba.copy(h.data,a,{x:0,y:0},{x:f+g,y:p},{width:1,height:v})}this.image=a,this.iconPositions=n,this.patternPositions=r};_l.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 yl(o,i),i.hasRenderCallback&&this.haveRenderCallbacks.push(r)}},_l.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)},_l.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]})}},Fr("ImagePosition",yl),Fr("ImageAtlas",_l);var xl={horizontal:1,vertical:2,horizontalOnly:3},wl=function(){this.scale=1,this.fontStack="",this.imageName=null};wl.forText=function(t,e){var n=new wl;return n.scale=t||1,n.fontStack=e,n},wl.forImage=function(t){var e=new wl;return e.imageName=t,e};var Ol=function(){this.text="",this.sectionIndex=[],this.sections=[],this.imageSectionID=null};function Sl(t,e,n,r,i,o,a,s,l,u,c,h,d,f,p,g){var v,m=Ol.fromFeature(t,i);h===xl.vertical&&m.verticalizePunctuation();var y=ai.processBidirectionalText,b=ai.processStyledBidirectionalText;if(y&&1===m.sections.length){v=[];for(var _=0,x=y(m.toString(),jl(m,u,o,e,r,f,p));_<x.length;_+=1){var w=x[_],O=new Ol;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,jl(m,u,o,e,r,f,p));C<E.length;C+=1){var T=E[C],M=new Ol;M.text=T[0],M.sectionIndex=T[1],M.sections=m.sections,v.push(M)}}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,jl(m,u,o,e,r,f,p));var A=[],I={positionedLines:A,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,l,u,c,h){for(var d=0,f=-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),M=_.getSectionIndex(E),A=_.getCharCode(E),I=0,j=null,k=null,P=null,L=24,D=!(l===xl.horizontal||!c&&!$r(A)||c&&(Cl[A]||(H=A,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 R=r[T.imageName];if(!R)continue;P=T.imageName,t.iconsInText=t.iconsInText||!0,k=R.paddedRect;var N=R.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:D?N[1]:N[0]}).advance;var F=D?N[0]*T.scale-24*x:N[1]*T.scale-24*x;F>0&&F>C&&(C=F)}else{var B=n[T.fontStack],z=B&&B[A];if(z&&z.rect)k=z.rect,j=z.metrics;else{var V=e[T.fontStack],U=V&&V[A];if(!U)continue;j=U.metrics}I=24*(x-T.scale)}D?(t.verticalizable=!0,S.push({glyph:A,imageName:P,x:d,y:f+I,vertical:D,scale:T.scale,fontStack:T.fontStack,sectionIndex:M,metrics:j,rect:k}),d+=L*T.scale+u):(S.push({glyph:A,imageName:P,x:d,y:f+I,vertical:D,scale:T.scale,fontStack:T.fontStack,sectionIndex:M,metrics:j,rect:k}),d+=j.advance*T.scale+u)}0!==S.length&&(p=Math.max(d-u,p),Pl(S,0,S.length-1,v,C)),d=0;var G=o*x+C;O.lineOffset=Math.max(C,w),f+=G,g=Math.max(G,g),++m}else f+=o,++m}var H,W=f- -17,Y=kl(a),$=Y.horizontalAlign,X=Y.verticalAlign;(function(t,e,n,r,i,o,a,s,l){var u,c=(e-n)*i;u=o!==a?-s*r- -17:(-r*l+.5)*a;for(var h=0,d=t;h<d.length;h+=1)for(var f=0,p=d[h].positionedGlyphs;f<p.length;f+=1){var g=p[f];g.x+=c,g.y+=u}})(t.positionedLines,v,$,X,p,g,o,W,i.length),t.top+=-X*W,t.bottom=t.top+W,t.left+=-$*p,t.right=t.left+p}(I,e,n,r,v,a,s,l,h,u,d,g),!function(t){for(var e=0,n=t;e<n.length;e+=1)if(0!==n[e].positionedGlyphs.length)return!1;return!0}(A)&&I}Ol.fromFeature=function(t,e){for(var n=new Ol,r=0;r<t.sections.length;r++){var i=t.sections[r];i.image?n.addImageSection(i):n.addTextSection(i,e)}return n},Ol.prototype.length=function(){return this.text.length},Ol.prototype.getSection=function(t){return this.sections[this.sectionIndex[t]]},Ol.prototype.getSectionIndex=function(t){return this.sectionIndex[t]},Ol.prototype.getCharCode=function(t){return this.text.charCodeAt(t)},Ol.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&&Xr(r)&&!$s[t[n+1]]||i&&Xr(i)&&!$s[t[n-1]]||!$s[t[n]]?t[n]:$s[t[n]]}return e}(this.text)},Ol.prototype.trim=function(){for(var t=0,e=0;e<this.text.length&&Cl[this.text.charCodeAt(e)];e++)t++;for(var n=this.text.length,r=this.text.length-1;r>=0&&r>=t&&Cl[this.text.charCodeAt(r)];r--)n--;this.text=this.text.substring(t,n),this.sectionIndex=this.sectionIndex.slice(t,n)},Ol.prototype.substring=function(t,e){var n=new Ol;return n.text=this.text.substring(t,e),n.sectionIndex=this.sectionIndex.slice(t,e),n.sections=this.sections,n},Ol.prototype.toString=function(){return this.text},Ol.prototype.getMaxScale=function(){var t=this;return this.sectionIndex.reduce((function(e,n){return Math.max(e,t.sections[n].scale)}),0)},Ol.prototype.addTextSection=function(t,e){this.text+=t.text,this.sections.push(wl.forText(t.scale,t.fontStack||e));for(var n=this.sections.length-1,r=0;r<t.text.length;++r)this.sectionIndex.push(n)},Ol.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(wl.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.")},Ol.prototype.getNextImageSectionCharCode=function(){return this.imageSectionID?this.imageSectionID>=63743?null:++this.imageSectionID:(this.imageSectionID=57344,this.imageSectionID)};var Cl={9:!0,10:!0,11:!0,12:!0,13:!0,32:!0},El={};function Tl(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],l=s&&s[t];return l?l.metrics.advance*e.scale+i:0}function Ml(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 Al(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 Il(t,e,n,r,i,o){for(var a=null,s=Ml(e,n,i,o),l=0,u=r;l<u.length;l+=1){var c=u[l],h=Ml(e-c.x,n,i,o)+c.badness;h<=s&&(a=c,s=h)}return{index:t,x:e,priorBreak:a,badness:s}}function jl(t,e,n,r,i,o,a){if("point"!==o)return[];if(!t)return[];for(var s,l=[],u=function(t,e,n,r,i,o){for(var a=0,s=0;s<t.length();s++){var l=t.getSection(s);a+=Tl(t.getCharCode(s),l,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,d=0;d<t.length();d++){var f=t.getSection(d),p=t.getCharCode(d);if(Cl[p]||(h+=Tl(p,f,r,i,e,a)),d<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)));(El[p]||g||f.imageName)&&l.push(Il(d+1,h,u,l,Al(p,t.getCharCode(d+1),g&&c),!1))}}return function t(e){return e?t(e.priorBreak).concat(e.index):[]}(Il(t.length(),h,u,l,0,!0))}function kl(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 Pl(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 Ll(t,e,n,r,i,o){var a,s=t.image;if(s.content){var l=s.content,u=s.pixelRatio||1;a=[l[0]/u,l[1]/u,s.displaySize[0]-l[2]/u,s.displaySize[1]-l[3]/u]}var c,h,d,f,p=e.left*o,g=e.right*o;"width"===n||"both"===n?(f=i[0]+p-r[3],h=i[0]+g+r[1]):h=(f=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],d=i[1]+m+r[2]):d=(c=i[1]+(v+m-s.displaySize[1])/2)+s.displaySize[1],{image:s,top:c,right:h,bottom:d,left:f,collisionPadding:a}}El[10]=!0,El[32]=!0,El[38]=!0,El[40]=!0,El[41]=!0,El[43]=!0,El[45]=!0,El[47]=!0,El[173]=!0,El[183]=!0,El[8203]=!0,El[8208]=!0,El[8211]=!0,El[8231]=!0;var Dl=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 Rl(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],l=r[a];return"composite"===n.kind?{kind:"composite",minZoom:s,maxZoom:l,interpolationType:i}:{kind:"camera",minZoom:s,maxZoom:l,minSize:n.evaluate(new si(s)),maxSize:n.evaluate(new si(l)),interpolationType:i}}function Nl(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 Fl(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}}Fr("Anchor",Dl);var Bl=Object.freeze({__proto__:null,getSizeData:Rl,evaluateSizeForFeature:Nl,evaluateSizeForZoom:Fl,SIZE_PACK_FACTOR:128});function zl(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 l=[],u=0;s<n/2;){var c=t[a],h=t[a+1];if(!h)return!1;var d=t[a-1].angleTo(c)-c.angleTo(h);for(d=Math.abs((d+3*Math.PI)%(2*Math.PI)-Math.PI),l.push({distance:s,angleDelta:d}),u+=d;s-l[0].distance>r;)u-=l.shift().angleDelta;if(u>i)return!1;a++,s+=c.dist(h)}return!0}function Vl(t){for(var e=0,n=0;n<t.length-1;n++)e+=t[n].dist(t[n+1]);return e}function Ul(t,e,n){return t?.6*e*n:0}function Gl(t,e){return Math.max(t?t.right-t.left:0,e?e.right-e.left:0)}function Hl(t,e,n,r,i,o){for(var a=Ul(n,i,o),s=Gl(n,r)*o,l=0,u=Vl(t)/2,c=0;c<t.length-1;c++){var h=t[c],d=t[c+1],f=h.dist(d);if(l+f>u){var p=(u-l)/f,g=He(h.x,d.x,p),v=He(h.y,d.y,p),m=new Dl(g,v,d.angleTo(h),c);return m._round(),!a||zl(t,m,s,a,e)?m:void 0}l+=f}}function Wl(t,e,n,r,i,o,a,s,l){var u=Ul(r,o,a),c=Gl(r,i),h=c*a,d=0===t[0].x||t[0].x===l||0===t[0].y||t[0].y===l;return e-h<e/4&&(e=h+e/4),function t(e,n,r,i,o,a,s,l,u){for(var c=a/2,h=Vl(e),d=0,f=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);f+r<d+y;){var _=((f+=r)-d)/y,x=He(v.x,m.x,_),w=He(v.y,m.y,_);if(x>=0&&x<u&&w>=0&&w<u&&f-c>=0&&f+c<=h){var O=new Dl(x,w,b,g);O._round(),i&&!zl(e,O,a,i,o)||p.push(O)}}d+=y}return l||p.length||s||(p=t(e,d/2,r,i,o,a,s,!0,u)),p}(t,d?e/2*s%e:(c/2+2*o)*a*s%e,e,u,n,h,d,!1,l)}function Yl(t,e,n,r,o){for(var a=[],s=0;s<t.length;s++)for(var l=t[s],u=void 0,c=0;c<l.length-1;c++){var h=l[c],d=l[c+1];h.x<e&&d.x<e||(h.x<e?h=new i(e,h.y+(e-h.x)/(d.x-h.x)*(d.y-h.y))._round():d.x<e&&(d=new i(e,h.y+(e-h.x)/(d.x-h.x)*(d.y-h.y))._round()),h.y<n&&d.y<n||(h.y<n?h=new i(h.x+(n-h.y)/(d.y-h.y)*(d.x-h.x),n)._round():d.y<n&&(d=new i(h.x+(n-h.y)/(d.y-h.y)*(d.x-h.x),n)._round()),h.x>=r&&d.x>=r||(h.x>=r?h=new i(r,h.y+(r-h.x)/(d.x-h.x)*(d.y-h.y))._round():d.x>=r&&(d=new i(r,h.y+(r-h.x)/(d.x-h.x)*(d.y-h.y))._round()),h.y>=o&&d.y>=o||(h.y>=o?h=new i(h.x+(o-h.y)/(d.y-h.y)*(d.x-h.x),o)._round():d.y>=o&&(d=new i(h.x+(o-h.y)/(d.y-h.y)*(d.x-h.x),o)._round()),u&&h.equals(u[u.length-1])||a.push(u=[h]),u.push(d)))))}return a}function $l(t,e,n,r){var o=[],a=t.image,s=a.pixelRatio,l=a.paddedRect.w-2,u=a.paddedRect.h-2,c=t.right-t.left,h=t.bottom-t.top,d=a.stretchX||[[0,l]],f=a.stretchY||[[0,u]],p=function(t,e){return t+e[1]-e[0]},g=d.reduce(p,0),v=f.reduce(p,0),m=l-g,y=u-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=Xl(d,0,T[0]),x=Xl(f,0,T[1]),_=Xl(d,T[0],T[2]),w=Xl(f,T[1],T[3]),O=T[0]-b,C=T[1]-x,S=T[2]-T[0]-_,E=T[3]-T[1]-w}var M=function(r,o,l,u){var d=Zl(r.stretch-b,_,c,t.left),f=Kl(r.fixed-O,S,r.stretch,g),p=Zl(o.stretch-x,w,h,t.top),m=Kl(o.fixed-C,E,o.stretch,v),y=Zl(l.stretch-b,_,c,t.left),T=Kl(l.fixed-O,S,l.stretch,g),M=Zl(u.stretch-x,w,h,t.top),A=Kl(u.fixed-C,E,u.stretch,v),I=new i(d,p),j=new i(y,p),k=new i(y,M),P=new i(d,M),L=new i(f/s,m/s),D=new i(T/s,A/s),R=e*Math.PI/180;if(R){var N=Math.sin(R),F=Math.cos(R),B=[F,-N,N,F];I._matMult(B),j._matMult(B),P._matMult(B),k._matMult(B)}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:l.stretch+l.fixed-z,h:u.stretch+u.fixed-V},writingMode:void 0,glyphOffset:[0,0],sectionIndex:0,pixelOffsetTL:L,pixelOffsetBR:D,minFontScaleX:S/s/c,minFontScaleY:E/s/h,isSDF:n}};if(r&&(a.stretchX||a.stretchY))for(var A=ql(d,m,g),I=ql(f,y,v),j=0;j<A.length-1;j++)for(var k=A[j],P=A[j+1],L=0;L<I.length-1;L++)o.push(M(k,I[L],P,I[L+1]));else o.push(M({fixed:0,stretch:-1},{fixed:0,stretch:-1},{fixed:0,stretch:l+1},{fixed:0,stretch:u+1}));return o}function Xl(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 ql(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],l=a[1],u=r[r.length-1];r.push({fixed:s-u.stretch,stretch:u.stretch}),r.push({fixed:s-u.stretch,stretch:u.stretch+(l-s)})}return r.push({fixed:e+1,stretch:n}),r}function Zl(t,e,n,r){return t/e*n+r}function Kl(t,e,n,r){return t-e*n/r}var Jl=function(t,e,n,r,o,a,s,l,u,c){if(this.boxStartIndex=t.length,u){var h=a.top,d=a.bottom,f=a.collisionPadding;f&&(h-=f[1],d+=f[3]);var p=d-h;p>0&&(p=Math.max(10,p),this.circleDiameter=p)}else{var g=a.top*s-l,v=a.bottom*s+l,m=a.left*s-l,y=a.right*s+l,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},Ql=function(t,e){if(void 0===t&&(t=[]),void 0===e&&(e=tu),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 tu(t,e){return t<e?-1:t>e?1:0}function eu(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,l=t[0],u=0;u<l.length;u++){var c=l[u];(!u||c.x<r)&&(r=c.x),(!u||c.y<o)&&(o=c.y),(!u||c.x>a)&&(a=c.x),(!u||c.y>s)&&(s=c.y)}var h=Math.min(a-r,s-o),d=h/2,f=new Ql([],nu);if(0===h)return new i(r,o);for(var p=r;p<a;p+=h)for(var g=o;g<s;g+=h)f.push(new ru(p+d,g+d,d,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 l=i[o],u=i[s],c=l.x*u.y-u.x*l.y;n+=(l.x+u.x)*c,r+=(l.y+u.y)*c,e+=3*c}return new ru(n/e,r/e,0,t)}(t),m=f.length;f.length;){var y=f.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||(f.push(new ru(y.p.x-(d=y.h/2),y.p.y-d,d,t)),f.push(new ru(y.p.x+d,y.p.y-d,d,t)),f.push(new ru(y.p.x-d,y.p.y+d,d,t)),f.push(new ru(y.p.x+d,y.p.y+d,d,t)),m+=4)}return n&&(console.log("num probes: "+m),console.log("best distance: "+v.d)),v.p}function nu(t,e){return e.max-t.max}function ru(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,l=s-1;a<s;l=a++){var u=o[a],c=o[l];u.y>t.y!=c.y>t.y&&t.x<(c.x-u.x)*(t.y-u.y)/(c.y-u.y)+u.x&&(n=!n),r=Math.min(r,Ko(t,u,c))}return(n?1:-1)*Math.sqrt(r)}(this.p,r),this.max=this.d+this.h*Math.SQRT2}Ql.prototype.push=function(t){this.data.push(t),this.length++,this._up(this.length-1)},Ql.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}},Ql.prototype.peek=function(){return this.data[0]},Ql.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},Ql.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 iu=Number.POSITIVE_INFINITY;function ou(t,e){return e[1]!==iu?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 au(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 su(t,e,n,r,o,a,s,l,u,c,h,d,f,p,g){var v=function(t,e,n,r,o,a,s,l){for(var u=r.layout.get("text-rotate").evaluate(a,{})*Math.PI/180,c=[],h=0,d=e.positionedLines;h<d.length;h+=1)for(var f=d[h],p=0,g=f.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||l)&&v.vertical,O=v.metrics.advance*v.scale/2;if(l&&e.verticalizable&&(x=f.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 M=(v.metrics.left-y)*v.scale-O+E[0],A=(-v.metrics.top-y)*v.scale+E[1],I=M+m.w*v.scale/_,j=A+m.h*v.scale/_,k=new i(M,A),P=new i(I,A),L=new i(M,j),D=new i(I,j);if(w){var R=new i(-O,O- -17),N=-Math.PI/2,F=12-O,B=new i(22-F,-(v.imageName?F:0)),z=new(Function.prototype.bind.apply(i,[null].concat(T)));k._rotateAround(N,R)._add(B)._add(z),P._rotateAround(N,R)._add(B)._add(z),L._rotateAround(N,R)._add(B)._add(z),D._rotateAround(N,R)._add(B)._add(z)}if(u){var V=Math.sin(u),U=Math.cos(u),G=[U,-V,V,U];k._matMult(G),P._matMult(G),L._matMult(G),D._matMult(G)}var H=new i(0,0),W=new i(0,0);c.push({tl:k,tr:P,bl:L,br:D,tex:m,writingMode:e.writingMode,glyphOffset:C,sectionIndex:v.sectionIndex,isSDF:b,pixelOffsetTL:H,pixelOffsetBR:W,minFontScaleX:0,minFontScaleY:0})}}return c}(0,n,l,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,l,a,s,c,e,u.lineStartIndex,u.lineLength,f,g);for(var b=0,_=h;b<_.length;b+=1)d[_[b]]=t.text.placedSymbolArray.length-1;return 4*v.length}function lu(t){for(var e in t)return t[e];return null}function uu(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 cu=_s.VectorTileFeature.types,hu=[{name:"a_fade_opacity",components:1,type:"Uint8",offset:0}];function du(t,e,n,r,i,o,a,s,l,u,c,h,d){var f=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,(f<<1)+(l?1:0),p,16*u,16*c,256*h,256*d)}function fu(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 pu(t){for(var e=0,n=t.sections;e<n.length;e+=1)if(Kr(n[e].text))return!0;return!1}var gu=function(t){this.layoutVertexArray=new Li,this.indexArray=new Vi,this.programConfigurations=t,this.segments=new so,this.dynamicLayoutVertexArray=new Di,this.opacityVertexArray=new Ri,this.placedSymbolArray=new Qi};gu.prototype.isEmpty=function(){return 0===this.layoutVertexArray.length&&0===this.indexArray.length&&0===this.dynamicLayoutVertexArray.length&&0===this.opacityVertexArray.length},gu.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,hu,!0),this.opacityVertexBuffer.itemSize=1),(n||r)&&this.programConfigurations.upload(t))},gu.prototype.destroy=function(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.programConfigurations.destroy(),this.segments.destroy(),this.dynamicLayoutVertexBuffer.destroy(),this.opacityVertexBuffer.destroy())},Fr("SymbolBuffers",gu);var vu=function(t,e,n){this.layoutVertexArray=new t,this.layoutAttributes=e,this.indexArray=new n,this.segments=new so,this.collisionVertexArray=new zi};vu.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)},vu.prototype.destroy=function(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.segments.destroy(),this.collisionVertexBuffer.destroy())},Fr("CollisionBuffers",vu);var mu=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=Rl(this.zoom,e["text-size"]),this.iconSizeData=Rl(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 xl[t]}))),this.stateDependentLayerIds=this.layers.filter((function(t){return t.isStateDependent()})).map((function(t){return t.id})),this.sourceID=t.sourceID};mu.prototype.createArrays=function(){this.text=new gu(new Do(this.layers,this.zoom,(function(t){return/^text/.test(t)}))),this.icon=new gu(new Do(this.layers,this.zoom,(function(t){return/^icon/.test(t)}))),this.glyphOffsetArray=new no,this.lineVertexArray=new ro,this.symbolInstances=new eo},mu.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=$s[t.charAt(o)];a&&(e[a.charCodeAt(0)]=!0)}},mu.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"),l=("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),u="constant"!==s.value.kind||!!s.value.value||Object.keys(s.parameters).length>0,c=i.get("symbol-sort-key");if(this.features=[],l||u){for(var h=e.iconDependencies,d=e.glyphDependencies,f=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(l){var C=r.getValueAndResolveTokens("text-field",O,n,f),E=re.factory(C);pu(E)&&(this.hasRTLText=!0),(!this.hasRTLText||"unavailable"===ii()||this.hasRTLText&&ai.isParsed())&&(S=Ys(E,r,O))}var T=void 0;if(u){var M=r.getValueAndResolveTokens("icon-image",O,n,f);T=M instanceof ie?M:ie.fromString(M)}if(S||T){var A=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:cu[y.type],sortKey:A}),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(xl.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 D=Yr(S.toString()),R=L.fontStack||I,N=d[R]=d[R]||{};this.calculateGlyphDependencies(L.text,N,j,this.allowVerticalPlacement,D)}}}}}}"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 l(t,e,n){var r=n?e[0][e[0].length-1]:e[0][0];return t+":"+r.x+":"+r.y}for(var u=0;u<t.length;u++){var c=t[u],h=c.geometry,d=c.text?c.text.toString():null;if(d){var f=l(d,h),p=l(d,h,!0);if(f in n&&p in e&&n[f]!==e[p]){var g=s(f,p,h),v=a(f,p,r[g].geometry);delete e[f],delete n[p],n[l(d,r[v].geometry,!0)]=v,r[g].geometry=null}else f in n?a(f,p,h):p in e?s(f,p,h):(o(u),e[f]=i-1,n[p]=i-1)}else o(u)}return r.filter((function(t){return t.geometry}))}(this.features)),this.sortFeaturesByKey&&this.features.sort((function(t,e){return t.sortKey-e.sortKey}))}},mu.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))},mu.prototype.isEmpty=function(){return 0===this.symbolInstances.length&&!this.hasRTLText},mu.prototype.uploadPending=function(){return!this.uploaded||this.text.programConfigurations.needsUpload||this.icon.programConfigurations.needsUpload},mu.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},mu.prototype.destroyDebugData=function(){this.textCollisionBox.destroy(),this.iconCollisionBox.destroy()},mu.prototype.destroy=function(){this.text.destroy(),this.icon.destroy(),this.hasDebugData()&&this.destroyDebugData()},mu.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 l=0;l<e.length;l++){var u=o[l];this.lineVertexArray.emplaceBack(u.x,u.y,u.tileUnitDistanceFromAnchor)}}return{lineStartIndex:n,lineLength:this.lineVertexArray.length-n}},mu.prototype.addSymbols=function(t,e,n,r,i,o,a,s,l,u,c,h){for(var d=t.indexArray,f=t.layoutVertexArray,p=t.segments.prepareSegment(4*e.length,f,d,this.canOverlap?o.sortKey:void 0),g=this.glyphOffsetArray.length,v=p.vertexLength,m=this.allowVerticalPlacement&&a===xl.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,M=_.minFontScaleX,A=_.minFontScaleY,I=_.glyphOffset,j=_.isSDF,k=_.sectionIndex,P=p.vertexLength,L=I[1];du(f,s.x,s.y,x.x,L+x.y,C.x,C.y,n,j,E.x,E.y,M,A),du(f,s.x,s.y,w.x,L+w.y,C.x+C.w,C.y,n,j,T.x,E.y,M,A),du(f,s.x,s.y,O.x,L+O.y,C.x,C.y+C.h,n,j,E.x,T.y,M,A),du(f,s.x,s.y,S.x,L+S.y,C.x+C.w,C.y+C.h,n,j,T.x,T.y,M,A),fu(t.dynamicLayoutVertexArray,s,m),d.emplaceBack(P,P+1,P+2),d.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(f.length,o,o.index,{},h,y&&y[k])}t.placedSymbolArray.emplaceBack(s.x,s.y,g,this.glyphOffsetArray.length-g,v,l,u,s.segment,n?n[0]:0,n?n[1]:0,r[0],r[1],a,0,!1,0,c)},mu.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))},mu.prototype.addCollisionDebugVertices=function(t,e,n,r,o,a,s){var l=o.segments.prepareSegment(4,o.layoutVertexArray,o.indexArray),u=l.vertexLength,c=o.layoutVertexArray,h=o.collisionVertexArray,d=s.anchorX,f=s.anchorY;this._addCollisionDebugVertex(c,h,a,d,f,new i(t,e)),this._addCollisionDebugVertex(c,h,a,d,f,new i(n,e)),this._addCollisionDebugVertex(c,h,a,d,f,new i(n,r)),this._addCollisionDebugVertex(c,h,a,d,f,new i(t,r)),l.vertexLength+=4;var p=o.indexArray;p.emplaceBack(u,u+1),p.emplaceBack(u+1,u+2),p.emplaceBack(u+2,u+3),p.emplaceBack(u+3,u),l.primitiveLength+=4},mu.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)}},mu.prototype.generateCollisionDebugBuffers=function(){this.hasDebugData()&&this.destroyDebugData(),this.textCollisionBox=new vu(Fi,Hs.members,$i),this.iconCollisionBox=new vu(Fi,Hs.members,$i);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)}},mu.prototype._deserializeCollisionBoxesForSymbol=function(t,e,n,r,i,o,a,s,l){for(var u={},c=e;c<n;c++){var h=t.get(c);u.textBox={x1:h.x1,y1:h.y1,x2:h.x2,y2:h.y2,anchorPointX:h.anchorPointX,anchorPointY:h.anchorPointY},u.textFeatureIndex=h.featureIndex;break}for(var d=r;d<i;d++){var f=t.get(d);u.verticalTextBox={x1:f.x1,y1:f.y1,x2:f.x2,y2:f.y2,anchorPointX:f.anchorPointX,anchorPointY:f.anchorPointY},u.verticalTextFeatureIndex=f.featureIndex;break}for(var p=o;p<a;p++){var g=t.get(p);u.iconBox={x1:g.x1,y1:g.y1,x2:g.x2,y2:g.y2,anchorPointX:g.anchorPointX,anchorPointY:g.anchorPointY},u.iconFeatureIndex=g.featureIndex;break}for(var v=s;v<l;v++){var m=t.get(v);u.verticalIconBox={x1:m.x1,y1:m.y1,x2:m.x2,y2:m.y2,anchorPointX:m.anchorPointX,anchorPointY:m.anchorPointY},u.verticalIconFeatureIndex=m.featureIndex;break}return u},mu.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))}},mu.prototype.hasTextData=function(){return this.text.segments.get().length>0},mu.prototype.hasIconData=function(){return this.icon.segments.get().length>0},mu.prototype.hasDebugData=function(){return this.textCollisionBox&&this.iconCollisionBox},mu.prototype.hasTextCollisionBoxData=function(){return this.hasDebugData()&&this.textCollisionBox.segments.get().length>0},mu.prototype.hasIconCollisionBoxData=function(){return this.hasDebugData()&&this.iconCollisionBox.segments.get().length>0},mu.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)},mu.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},mu.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})},mu.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)}},Fr("SymbolBucket",mu,{omit:["layers","collisionBoxArray","features","compareText"]}),mu.MAX_GLYPHS=65535,mu.addDynamicAttributes=fu;var yu=new xi({"symbol-placement":new vi(At.layout_symbol["symbol-placement"]),"symbol-spacing":new vi(At.layout_symbol["symbol-spacing"]),"symbol-avoid-edges":new vi(At.layout_symbol["symbol-avoid-edges"]),"symbol-sort-key":new mi(At.layout_symbol["symbol-sort-key"]),"symbol-z-order":new vi(At.layout_symbol["symbol-z-order"]),"icon-allow-overlap":new vi(At.layout_symbol["icon-allow-overlap"]),"icon-ignore-placement":new vi(At.layout_symbol["icon-ignore-placement"]),"icon-optional":new vi(At.layout_symbol["icon-optional"]),"icon-rotation-alignment":new vi(At.layout_symbol["icon-rotation-alignment"]),"icon-size":new mi(At.layout_symbol["icon-size"]),"icon-text-fit":new vi(At.layout_symbol["icon-text-fit"]),"icon-text-fit-padding":new vi(At.layout_symbol["icon-text-fit-padding"]),"icon-image":new mi(At.layout_symbol["icon-image"]),"icon-rotate":new mi(At.layout_symbol["icon-rotate"]),"icon-padding":new vi(At.layout_symbol["icon-padding"]),"icon-keep-upright":new vi(At.layout_symbol["icon-keep-upright"]),"icon-offset":new mi(At.layout_symbol["icon-offset"]),"icon-anchor":new mi(At.layout_symbol["icon-anchor"]),"icon-pitch-alignment":new vi(At.layout_symbol["icon-pitch-alignment"]),"text-pitch-alignment":new vi(At.layout_symbol["text-pitch-alignment"]),"text-rotation-alignment":new vi(At.layout_symbol["text-rotation-alignment"]),"text-field":new mi(At.layout_symbol["text-field"]),"text-font":new mi(At.layout_symbol["text-font"]),"text-size":new mi(At.layout_symbol["text-size"]),"text-max-width":new mi(At.layout_symbol["text-max-width"]),"text-line-height":new vi(At.layout_symbol["text-line-height"]),"text-letter-spacing":new mi(At.layout_symbol["text-letter-spacing"]),"text-justify":new mi(At.layout_symbol["text-justify"]),"text-radial-offset":new mi(At.layout_symbol["text-radial-offset"]),"text-variable-anchor":new vi(At.layout_symbol["text-variable-anchor"]),"text-anchor":new mi(At.layout_symbol["text-anchor"]),"text-max-angle":new vi(At.layout_symbol["text-max-angle"]),"text-writing-mode":new vi(At.layout_symbol["text-writing-mode"]),"text-rotate":new mi(At.layout_symbol["text-rotate"]),"text-padding":new vi(At.layout_symbol["text-padding"]),"text-keep-upright":new vi(At.layout_symbol["text-keep-upright"]),"text-transform":new mi(At.layout_symbol["text-transform"]),"text-offset":new mi(At.layout_symbol["text-offset"]),"text-allow-overlap":new vi(At.layout_symbol["text-allow-overlap"]),"text-ignore-placement":new vi(At.layout_symbol["text-ignore-placement"]),"text-optional":new vi(At.layout_symbol["text-optional"])}),bu={paint:new xi({"icon-opacity":new mi(At.paint_symbol["icon-opacity"]),"icon-color":new mi(At.paint_symbol["icon-color"]),"icon-halo-color":new mi(At.paint_symbol["icon-halo-color"]),"icon-halo-width":new mi(At.paint_symbol["icon-halo-width"]),"icon-halo-blur":new mi(At.paint_symbol["icon-halo-blur"]),"icon-translate":new vi(At.paint_symbol["icon-translate"]),"icon-translate-anchor":new vi(At.paint_symbol["icon-translate-anchor"]),"text-opacity":new mi(At.paint_symbol["text-opacity"]),"text-color":new mi(At.paint_symbol["text-color"],{runtimeType:Vt,getOverride:function(t){return t.textColor},hasOverride:function(t){return!!t.textColor}}),"text-halo-color":new mi(At.paint_symbol["text-halo-color"]),"text-halo-width":new mi(At.paint_symbol["text-halo-width"]),"text-halo-blur":new mi(At.paint_symbol["text-halo-blur"]),"text-translate":new vi(At.paint_symbol["text-translate"]),"text-translate-anchor":new vi(At.paint_symbol["text-translate-anchor"])}),layout:yu},_u=function(t){this.type=t.property.overrides?t.property.overrides.runtimeType:Nt,this.defaultValue=t};_u.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},_u.prototype.eachChild=function(t){this.defaultValue.isConstant()||t(this.defaultValue.value._styleExpression.expression)},_u.prototype.outputDefined=function(){return!1},_u.prototype.serialize=function(){return null},Fr("FormatSectionOverride",_u,{omit:["defaultValue"]});var xu=function(t){function e(e){t.call(this,e,bu)}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 mu(t)},e.prototype.queryRadius=function(){return 0},e.prototype.queryIntersectsFeature=function(){return!1},e.prototype._setPaintOverrides=function(){for(var t=0,n=bu.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 _u(o),s=new Wn(a,o.property.specification);i="constant"===o.value.kind||"source"===o.value.kind?new Xn("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=bu.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 ue&&se(t.value)===Wt?o(t.value.sections):t instanceof fe?o(t.sections):t.eachChild(a))},s=n.value;s._styleExpression&&a(s._styleExpression.expression)}return i},e}(wi),wu={paint:new xi({"background-color":new vi(At.paint_background["background-color"]),"background-pattern":new bi(At.paint_background["background-pattern"]),"background-opacity":new vi(At.paint_background["background-opacity"])})},Ou=function(t){function e(e){t.call(this,e,wu)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e}(wi),Su={paint:new xi({"raster-opacity":new vi(At.paint_raster["raster-opacity"]),"raster-hue-rotate":new vi(At.paint_raster["raster-hue-rotate"]),"raster-brightness-min":new vi(At.paint_raster["raster-brightness-min"]),"raster-brightness-max":new vi(At.paint_raster["raster-brightness-max"]),"raster-saturation":new vi(At.paint_raster["raster-saturation"]),"raster-contrast":new vi(At.paint_raster["raster-contrast"]),"raster-resampling":new vi(At.paint_raster["raster-resampling"]),"raster-fade-duration":new vi(At.paint_raster["raster-fade-duration"])})},Cu=function(t){function e(e){t.call(this,e,Su)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e}(wi),Eu=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),Tu={circle:da,heatmap:wa,hillshade:Sa,fill:cs,"fill-extrusion":Ts,line:Bs,symbol:xu,background:Ou,raster:Cu},Mu=a.HTMLImageElement,Au=a.HTMLCanvasElement,Iu=a.HTMLVideoElement,ju=a.ImageData,ku=a.ImageBitmap,Pu=function(t,e,n,r){this.context=t,this.format=n,this.texture=t.gl.createTexture(),this.update(e,r)};Pu.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 Mu||t instanceof Au||t instanceof Iu||t instanceof ju||ku&&t instanceof ku?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 l=n||{x:0,y:0},u=l.x,c=l.y;t instanceof Mu||t instanceof Au||t instanceof Iu||t instanceof ju||ku&&t instanceof ku?s.texSubImage2D(s.TEXTURE_2D,0,u,c,s.RGBA,s.UNSIGNED_BYTE,t):s.texSubImage2D(s.TEXTURE_2D,0,u,c,r,i,s.RGBA,s.UNSIGNED_BYTE,t.data)}this.useMipmap&&this.isSizePowerOfTwo()&&s.generateMipmap(s.TEXTURE_2D)},Pu.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)},Pu.prototype.isSizePowerOfTwo=function(){return this.size[0]===this.size[1]&&Math.log(this.size[0])/Math.LN2%1==0},Pu.prototype.destroy=function(){this.context.gl.deleteTexture(this.texture),this.texture=null};var Lu=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()})};Lu.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))},Lu.prototype.remove=function(){delete this._channel,this._callback=function(){}};var Du=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 Lu(this.process),this.target.addEventListener("message",this.receive,!1),this.globalScope=E()?t:a};function Ru(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]}Du.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=A(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})}}},Du.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)},Du.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)}},Du.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=A(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,l=Gr(e.data);if(this.parent[e.type])s=this.parent[e.type](e.sourceMapId,l,a);else if(this.parent.getWorkerSource){var u=e.type.split(".");s=this.parent.getWorkerSource(e.sourceMapId,u[0],l.source)[u[1]](l,a)}else a(new Error("Could not find function "+e.type));!i&&s&&s.cancel&&(this.cancelCallbacks[t]=s.cancel)}},Du.prototype.remove=function(){this.invoker.remove(),this.target.removeEventListener("message",this.receive,!1)};var Nu=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]))};Nu.prototype.setNorthEast=function(t){return this._ne=t instanceof Fu?new Fu(t.lng,t.lat):Fu.convert(t),this},Nu.prototype.setSouthWest=function(t){return this._sw=t instanceof Fu?new Fu(t.lng,t.lat):Fu.convert(t),this},Nu.prototype.extend=function(t){var e,n,r=this._sw,i=this._ne;if(t instanceof Fu)e=t,n=t;else{if(!(t instanceof Nu))return Array.isArray(t)?4===t.length||t.every(Array.isArray)?this.extend(Nu.convert(t)):this.extend(Fu.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 Fu(e.lng,e.lat),this._ne=new Fu(n.lng,n.lat)),this},Nu.prototype.getCenter=function(){return new Fu((this._sw.lng+this._ne.lng)/2,(this._sw.lat+this._ne.lat)/2)},Nu.prototype.getSouthWest=function(){return this._sw},Nu.prototype.getNorthEast=function(){return this._ne},Nu.prototype.getNorthWest=function(){return new Fu(this.getWest(),this.getNorth())},Nu.prototype.getSouthEast=function(){return new Fu(this.getEast(),this.getSouth())},Nu.prototype.getWest=function(){return this._sw.lng},Nu.prototype.getSouth=function(){return this._sw.lat},Nu.prototype.getEast=function(){return this._ne.lng},Nu.prototype.getNorth=function(){return this._ne.lat},Nu.prototype.toArray=function(){return[this._sw.toArray(),this._ne.toArray()]},Nu.prototype.toString=function(){return"LngLatBounds("+this._sw.toString()+", "+this._ne.toString()+")"},Nu.prototype.isEmpty=function(){return!(this._sw&&this._ne)},Nu.prototype.contains=function(t){var e=Fu.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},Nu.convert=function(t){return!t||t instanceof Nu?t:new Nu(t)};var Fu=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")};Fu.prototype.wrap=function(){return new Fu(h(this.lng,-180,180),this.lat)},Fu.prototype.toArray=function(){return[this.lng,this.lat]},Fu.prototype.toString=function(){return"LngLat("+this.lng+", "+this.lat+")"},Fu.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))},Fu.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 Nu(new Fu(this.lng-n,this.lat-e),new Fu(this.lng+n,this.lat+e))},Fu.convert=function(t){if(t instanceof Fu)return t;if(Array.isArray(t)&&(2===t.length||3===t.length))return new Fu(Number(t[0]),Number(t[1]));if(!Array.isArray(t)&&"object"==typeof t&&null!==t)return new Fu(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 Bu=2*Math.PI*6371008.8;function zu(t){return Bu*Math.cos(t*Math.PI/180)}function Vu(t){return(180+t)/360}function Uu(t){return(180-180/Math.PI*Math.log(Math.tan(Math.PI/4+t*Math.PI/360)))/360}function Gu(t,e){return t/zu(e)}function Hu(t){return 360/Math.PI*Math.atan(Math.exp((180-360*t)*Math.PI/180))-90}var Wu=function(t,e,n){void 0===n&&(n=0),this.x=+t,this.y=+e,this.z=+n};Wu.fromLngLat=function(t,e){void 0===e&&(e=0);var n=Fu.convert(t);return new Wu(Vu(n.lng),Uu(n.lat),Gu(e,n.lat))},Wu.prototype.toLngLat=function(){return new Fu(360*this.x-180,Hu(this.y))},Wu.prototype.toAltitude=function(){return this.z*zu(Hu(this.y))},Wu.prototype.meterInMercatorCoordinateUnits=function(){return 1/Bu*(t=Hu(this.y),1/Math.cos(t*Math.PI/180));var t};var Yu=function(t,e,n){this.z=t,this.x=e,this.y=n,this.key=qu(0,t,t,e,n)};Yu.prototype.equals=function(t){return this.z===t.z&&this.x===t.x&&this.y===t.y},Yu.prototype.url=function(t,e){var n,r,i,o,a,s=(r=this.y,i=this.z,o=Ru(256*(n=this.x),256*(r=Math.pow(2,i)-r-1),i),a=Ru(256*(n+1),256*(r+1),i),o[0]+","+o[1]+","+a[0]+","+a[1]),l=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}",l).replace("{bbox-epsg-3857}",s)},Yu.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))},Yu.prototype.toString=function(){return this.z+"/"+this.x+"/"+this.y};var $u=function(t,e){this.wrap=t,this.canonical=e,this.key=qu(t,e.z,e.z,e.x,e.y)},Xu=function(t,e,n,r,i){this.overscaledZ=t,this.wrap=e,this.canonical=new Yu(n,+r,+i),this.key=qu(e,t,n,r,i)};function qu(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)}Xu.prototype.equals=function(t){return this.overscaledZ===t.overscaledZ&&this.wrap===t.wrap&&this.canonical.equals(t.canonical)},Xu.prototype.scaledTo=function(t){var e=this.canonical.z-t;return t>this.canonical.z?new Xu(t,this.wrap,this.canonical.z,this.canonical.x,this.canonical.y):new Xu(t,this.wrap,t,this.canonical.x>>e,this.canonical.y>>e)},Xu.prototype.calculateScaledKey=function(t,e){var n=this.canonical.z-t;return t>this.canonical.z?qu(this.wrap*+e,t,this.canonical.z,this.canonical.x,this.canonical.y):qu(this.wrap*+e,t,t,this.canonical.x>>n,this.canonical.y>>n)},Xu.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},Xu.prototype.children=function(t){if(this.overscaledZ>=t)return[new Xu(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 Xu(e,this.wrap,e,n,r),new Xu(e,this.wrap,e,n+1,r),new Xu(e,this.wrap,e,n,r+1),new Xu(e,this.wrap,e,n+1,r+1)]},Xu.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))},Xu.prototype.wrapped=function(){return new Xu(this.overscaledZ,0,this.canonical.z,this.canonical.x,this.canonical.y)},Xu.prototype.unwrapTo=function(t){return new Xu(this.overscaledZ,t,this.canonical.z,this.canonical.x,this.canonical.y)},Xu.prototype.overscaleFactor=function(){return Math.pow(2,this.overscaledZ-this.canonical.z)},Xu.prototype.toUnwrapped=function(){return new $u(this.wrap,this.canonical)},Xu.prototype.toString=function(){return this.overscaledZ+"/"+this.canonical.x+"/"+this.canonical.y},Xu.prototype.getTilePoint=function(t){return this.canonical.getTilePoint(new Wu(t.x-this.wrap,t.y))},Fr("CanonicalTileID",Yu),Fr("OverscaledTileID",Xu,{omit:["posMatrix"]});var Zu=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)]};Zu.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])},Zu.prototype.getUnpackVector=function(){return"terrarium"===this.encoding?[256,1,1/256,32768]:[6553.6,25.6,.1,1e4]},Zu.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)},Zu.prototype._unpackMapbox=function(t,e,n){return(256*t*256+256*e+n)/10-1e4},Zu.prototype._unpackTerrarium=function(t,e,n){return 256*t+e+n/256-32768},Zu.prototype.getPixels=function(){return new ba({width:this.stride,height:this.stride},new Uint8Array(this.data.buffer))},Zu.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,l=-n*this.dim,u=o;u<a;u++)for(var c=r;c<i;c++)this.data[this._idx(c,u)]=t.data[this._idx(c+s,u+l)]},Fr("DEMData",Zu);var Ku=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}};Ku.prototype.encode=function(t){return this._stringToNumber[t]},Ku.prototype.decode=function(t){return this._numberToString[t]};var Ju=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},Qu={geometry:{configurable:!0}};Qu.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},Qu.geometry.set=function(t){this._geometry=t},Ju.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(Ju.prototype,Qu);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]||{},d(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=d({},(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]={}),d(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 l in this.state[a])s[l]={},this.state[a][l]={};else for(var u in this.deletedStates[a]){if(null===this.deletedStates[a][u])this.state[a][u]={};else for(var c=0,h=Object.keys(this.deletedStates[a][u]);c<h.length;c+=1)delete this.state[a][u][h[c]];s[u]=this.state[a][u]}n[a]=n[a]||{},d(n[a],s)}if(this.stateChanges={},this.deletedStates={},0!==Object.keys(n).length)for(var f in t)t[f].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,l=0;l<e.length;l++){for(var u=e[l],c=[1/0,1/0,-1/0,-1/0],h=0;h<u.length;h++){var d=u[h];c[0]=Math.min(c[0],d.x),c[1]=Math.min(c[1],d.y),c[2]=Math.max(c[2],d.x),c[3]=Math.max(c[3],d.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 Ku(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,l=ar(a.filter),u=t.queryGeometry,c=t.queryPadding*s,h=rc(u),d=this.grid.query(h.minX-c,h.minY-c,h.maxX+c,h.maxY+c),f=rc(t.cameraQueryGeometry),p=0,g=this.grid3D.query(f.minX-c,f.minY-c,f.maxX+c,f.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 l=s[a];if(e<=l.x&&n<=l.y&&r>=l.x&&o>=l.y)return!0}var u=[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=u;c<h.length;c+=1)if(Qo(t,h[c]))return!0;for(var d=0;d<t.length-1;d++)if(ta(t[d],t[d+1],u))return!0;return!1}(t.cameraQueryGeometry,e-c,n-c,r+c,o+c)}));p<g.length;p+=1)d.push(g[p]);d.sort(ic);for(var v,m={},y=function(i){var c=d[i];if(c!==v){v=c;var h=o.featureIndexArray.get(c),f=null;o.loadMatchingFeature(m,h.bucketIndex,h.sourceLayerIndex,h.featureIndex,l,a.layers,a.availableImages,e,n,r,(function(e,n,r){return f||(f=zo(e)),n.queryIntersectsFeature(u,e,r,f,o.z,t.transform,s,t.pixelPosMatrix)}))}},b=0;b<d.length;b++)y(b);return m},ec.prototype.loadMatchingFeature=function(t,e,n,r,i,o,a,s,l,u,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 f=this.sourceLayerCoder.decode(n),p=this.vtLayers[f].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,f),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&&u&&(_=u.getState(b.sourceLayer||"_geojsonTileLayer",v));var x=d({},l[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 Ju(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 l={};this.loadVTLayers();for(var u=ar(i),c=0,h=t;c<h.length;c+=1)this.loadMatchingFeature(l,n,r,h[c],u,o,a,s,e);return l},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},Fr("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<F.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 mu){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 mu&&a.hasRTLText){this.hasRTLText=!0,ai.isLoading()||ai.isLoaded()||"deferred"!==ii()||oi();break}}for(var s in this.queryPadding=0,this.buckets){var l=this.buckets[s];this.queryPadding=Math.max(this.queryPadding,e.style.getLayer(s).queryRadius(l))}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 Pu(t,this.imageAtlas.image,r.RGBA),this.imageAtlas.uploaded=!0),this.glyphAtlasImage&&(this.glyphAtlasTexture=new Pu(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,l,u){return this.latestFeatureIndex&&this.latestFeatureIndex.rawTileData?this.latestFeatureIndex.query({queryGeometry:r,cameraQueryGeometry:i,scale:o,tileSize:this.tileSize,pixelPosMatrix:u,transform:s,params:a,queryPadding:this.queryPadding*l},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,l=s.z,u=s.x,c=s.y,h={z:l,x:u,y:c},d=0;d<o.length;d++){var f=o.feature(d);if(a.needGeometry){var p=Vo(f,!0);if(!a.filter(new si(this.tileID.overscaledZ),p,this.tileID.canonical))continue}else if(!a.filter(new si(this.tileID.overscaledZ),f))continue;var g=n.getId(f,i),v=new Ju(f,l,u,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 l=e&&e.style&&e.style.getLayer(r);l&&(this.queryPadding=Math.max(this.queryPadding,l.queryRadius(i)))}}}},oc.prototype.holdingForFade=function(){return void 0!==this.symbolFadeHoldUntil},oc.prototype.symbolFadeFinished=function(){return!this.symbolFadeHoldUntil||this.symbolFadeHoldUntil<F.now()},oc.prototype.clearFadeHold=function(){this.symbolFadeHoldUntil=void 0},oc.prototype.setHoldDuration=function(t){this.symbolFadeHoldUntil=F.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=Du,t.AlphaImage=ya,t.CanonicalTileID=Yu,t.CollisionBoxArray=Ki,t.Color=te,t.DEMData=Zu,t.DataConstantProperty=vi,t.DictionaryCoder=Ku,t.EXTENT=8192,t.ErrorEvent=Tt,t.EvaluationParameters=si,t.Event=Et,t.Evented=Mt,t.FeatureIndex=ec,t.FillBucket=ss,t.FillExtrusionBucket=Ss,t.ImageAtlas=_l,t.ImagePosition=yl,t.LineBucket=Ds,t.LngLat=Fu,t.LngLatBounds=Nu,t.MercatorCoordinate=Wu,t.ONE_EM=24,t.OverscaledTileID=Xu,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=Xi,t.StructArrayLayout2f1f2i16=Bi,t.StructArrayLayout2i4=Mi,t.StructArrayLayout3ui6=Vi,t.StructArrayLayout4i8=Ai,t.SymbolBucket=mu,t.Texture=Pu,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=$u,t.ValidationError=It,t.WritingMode=xl,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=fu,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=l,t.bindAll=m,t.browser=F,t.cacheEntryPossiblyAdded=function(t){++dt>lt&&(t.getActor().send("enforceCacheSizeLimit",st),dt=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=Yl,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=B,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=$n,t.createLayout=Ei,t.createStyleLayer=function(t){return"custom"===t.type?new Eu(t):new Tu[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],l=n[2];return t[0]=i*l-o*s,t[1]=o*a-r*l,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=u,t.emitValidationErrors=kr,t.endsWith=y,t.enforceCacheSizeLimit=function(t){ut(),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=Nl,t.evaluateSizeForZoom=Fl,t.evaluateVariableOffset=ou,t.evented=ri,t.extend=d,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=kl,t.getAnchorJustification=au,t.getArrayBuffer=_t,t.getImage=Ot,t.getJSON=function(t,e){return bt(d(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],l=e[6],u=e[7],c=e[8],h=e[9],d=e[10],f=e[11],p=e[12],g=e[13],v=e[14],m=e[15],y=n*s-r*a,b=n*l-i*a,_=n*u-o*a,x=r*l-i*s,w=r*u-o*s,O=i*u-o*l,S=c*g-h*p,C=c*v-d*p,E=c*m-f*p,T=h*v-d*g,M=h*m-f*g,A=d*m-f*v,I=y*A-b*M+_*T+x*E-w*C+O*S;return I?(t[0]=(s*A-l*M+u*T)*(I=1/I),t[1]=(i*M-r*A-o*T)*I,t[2]=(g*O-v*w+m*x)*I,t[3]=(d*w-h*O-f*x)*I,t[4]=(l*E-a*A-u*C)*I,t[5]=(n*A-i*E+o*C)*I,t[6]=(v*_-p*O-m*b)*I,t[7]=(c*O-d*_+f*b)*I,t[8]=(a*M-s*E+u*S)*I,t[9]=(r*E-n*M-o*S)*I,t[10]=(p*w-g*_+m*y)*I,t[11]=(h*_-c*w-f*y)*I,t[12]=(s*C-a*T-l*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+d*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=Vu,t.mercatorYfromLat=Uu,t.mercatorZfromAltitude=Gu,t.mul=ca,t.multiply=la,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=ft,t.ortho=function(t,e,n,r,i,o,a){var s=1/(e-n),l=1/(r-i),u=1/(o-a);return t[0]=-2*s,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=-2*l,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=2*u,t[11]=0,t[12]=(e+n)*s,t[13]=(i+r)*l,t[14]=(a+o)*u,t[15]=1,t},t.parseGlyphPBF=function(t){return new Zs(t).readFields(pl,[])},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,l=t.layers[0]._unevaluatedLayout._values,u={};if("composite"===t.textSizeData.kind){var c=t.textSizeData,h=c.maxZoom;u.compositeTextSizes=[l["text-size"].possiblyEvaluate(new si(c.minZoom),a),l["text-size"].possiblyEvaluate(new si(h),a)]}if("composite"===t.iconSizeData.kind){var d=t.iconSizeData,f=d.maxZoom;u.compositeIconSizes=[l["icon-size"].possiblyEvaluate(new si(d.minZoom),a),l["icon-size"].possiblyEvaluate(new si(f),a)]}u.layoutTextSize=l["text-size"].possiblyEvaluate(new si(t.zoom+1),a),u.layoutIconSize=l["icon-size"].possiblyEvaluate(new si(t.zoom+1),a),u.textMaxSize=l["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],l=s.get("text-font").evaluate(o,{},a).join(","),c=m.evaluate(o,{},a),h=u.layoutTextSize.evaluate(o,{},a),d=u.layoutIconSize.evaluate(o,{},a),f={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 M=s.get("text-radial-offset").evaluate(o,{},a);x=M?ou(E,[24*M,iu]):s.get("text-offset").evaluate(o,{},a).map((function(t){return 24*t}))}var A=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)&&(f.vertical=Sl(y,e,n,i,l,j,p,E,"left",C,x,xl.vertical,!0,I,h,c))};if(!g&&T){for(var P="auto"===A?T.map((function(t){return au(t)})):[A],L=!1,D=0;D<P.length;D++){var R=P[D];if(!f.horizontal[R])if(L)f.horizontal[R]=f.horizontal[0];else{var N=Sl(y,e,n,i,l,j,p,"center",R,C,x,xl.horizontal,!1,I,h,c);N&&(f.horizontal[R]=N,L=1===N.positionedLines.length)}}k()}else{"auto"===A&&(A=au(E));var F=Sl(y,e,n,i,l,j,p,E,A,C,x,xl.horizontal,!1,I,h,c);F&&(f.horizontal[A]=F),k(),Yr(w)&&g&&v&&(f.vertical=Sl(y,e,n,i,l,j,p,E,A,C,x,xl.vertical,!1,I,h,c))}}var B=void 0,z=!1;if(o.icon&&o.icon.name){var V=r[o.icon.name];V&&(B=function(t,e,n){var r=kl(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=lu(f.horizontal)||f.vertical;t.iconsInText=!!U&&U.iconsInText,(U||B)&&function(t,e,n,r,i,o,a,s,l,u,c){var h=o.textMaxSize.evaluate(e,{});void 0===h&&(h=a);var d,f=t.layers[0].layout,p=f.get("icon-offset").evaluate(e,{},c),g=lu(n.horizontal),v=a/24,m=t.tilePixelRatio*v,y=t.tilePixelRatio*h/24,b=t.tilePixelRatio*s,_=t.tilePixelRatio*f.get("symbol-spacing"),x=f.get("text-padding")*t.tilePixelRatio,w=f.get("icon-padding")*t.tilePixelRatio,S=f.get("text-max-angle")/180*Math.PI,C="map"===f.get("text-rotation-alignment")&&"point"!==f.get("symbol-placement"),E="map"===f.get("icon-rotation-alignment")&&"point"!==f.get("symbol-placement"),T=f.get("symbol-placement"),M=_/2,A=f.get("icon-text-fit");r&&"none"!==A&&(t.allowVerticalPlacement&&n.vertical&&(d=Ll(r,n.vertical,A,f.get("icon-text-fit-padding"),p,v)),g&&(r=Ll(r,g,A,f.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,l,u,c,h,d,f,p,g,v,m,y,b,_,x,w,S,C){var E,T,M,A,I,j=t.addToLineVertexArray(e,n),k=0,P=0,L=0,D=0,R=-1,N=-1,F={},B=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=iu),t.allowVerticalPlacement&&r.vertical){var U=s.layout.get("text-rotate").evaluate(_,{},S)+90;A=new Jl(l,e,u,c,h,r.vertical,d,f,p,U),a&&(I=new Jl(l,e,u,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=$l(i,G,w,H),Y=a?$l(a,G,w,H):void 0;M=new Jl(l,e,u,c,h,i,v,m,!1,G),k=4*W.length;var $=t.iconSizeData,X=null;"source"===$.kind?(X=[128*s.layout.get("icon-size").evaluate(_,{})])[0]>32640&&O(t.layerIds[0]+': Value for "icon-size" is >= 255. Reduce your "icon-size".'):"composite"===$.kind&&((X=[128*x.compositeIconSizes[0].evaluate(_,{},S),128*x.compositeIconSizes[1].evaluate(_,{},S)])[0]>32640||X[1]>32640)&&O(t.layerIds[0]+': Value for "icon-size" is >= 255. Reduce your "icon-size".'),t.addSymbols(t.icon,W,X,b,y,_,!1,e,j.lineStartIndex,j.lineLength,-1,S),R=t.icon.placedSymbolArray.length-1,Y&&(P=4*Y.length,t.addSymbols(t.icon,Y,X,b,y,_,xl.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){B=fo(Z.text);var K=s.layout.get("text-rotate").evaluate(_,{},S);T=new Jl(l,e,u,c,h,Z,d,f,p,K)}var J=1===Z.positionedLines.length;if(L+=su(t,e,Z,o,s,p,_,g,j,r.vertical?xl.horizontal:xl.horizontalOnly,J?Object.keys(r.horizontal):[q],F,R,x,S),J)break}r.vertical&&(D+=su(t,e,r.vertical,o,s,p,_,g,j,xl.vertical,["vertical"],F,N,x,S));var Q=T?T.boxStartIndex:t.collisionBoxArray.length,tt=T?T.boxEndIndex:t.collisionBoxArray.length,et=A?A.boxStartIndex:t.collisionBoxArray.length,nt=A?A.boxEndIndex:t.collisionBoxArray.length,rt=M?M.boxStartIndex:t.collisionBoxArray.length,it=M?M.boxEndIndex:t.collisionBoxArray.length,ot=I?I.boxStartIndex:t.collisionBoxArray.length,at=I?I.boxEndIndex:t.collisionBoxArray.length,st=-1,lt=function(t,e){return t&&t.circleDiameter?Math.max(t.circleDiameter,e):e};st=lt(T,st),st=lt(A,st),st=lt(M,st);var ut=(st=lt(I,st))>-1?1:0;ut&&(st*=C/24),t.glyphOffsetArray.length>=mu.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,F.right>=0?F.right:-1,F.center>=0?F.center:-1,F.left>=0?F.left:-1,F.vertical||-1,R,N,B,Q,tt,et,nt,rt,it,ot,at,u,L,D,k,P,ut,0,d,z,V,st)}(t,h,s,n,r,i,d,t.layers[0],t.collisionBoxArray,e.index,e.sourceLayerIndex,t.index,m,x,C,l,b,w,E,p,e,o,u,c,a)};if("line"===T)for(var j=0,k=Yl(e.geometry,0,0,8192,8192);j<k.length;j+=1)for(var P=k[j],L=0,D=Wl(P,_,S,n.vertical||g,r,24,y,t.overscaling,8192);L<D.length;L+=1){var R=D[L];g&&uu(t,g.text,M,R)||I(P,R)}else if("line-center"===T)for(var N=0,F=e.geometry;N<F.length;N+=1){var B=F[N];if(B.length>1){var z=Hl(B,S,n.vertical||g,r,24,y);z&&I(B,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=eu(G,16);I(G[0],new Dl(H.x,H.y,0))}else if("LineString"===e.type)for(var W=0,Y=e.geometry;W<Y.length;W+=1){var $=Y[W];I($,new Dl($[0].x,$[0].y,0))}else if("Point"===e.type)for(var X=0,q=e.geometry;X<q.length;X+=1)for(var Z=0,K=q[X];Z<K.length;Z+=1){var J=K[Z];I([J],new Dl(J.x,J.y,0))}}(t,o,f,B,r,u,h,d,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=ml,t.refProperties=["type","source","source-layer","minzoom","maxzoom","filter","layout"],t.register=Fr,t.registerForPluginStateChange=function(t){return t({pluginStatus:Qr,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),l=Math.cos(n);return t[0]=r*l+o*s,t[1]=i*l+a*s,t[2]=r*-s+o*l,t[3]=i*-s+a*l,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],l=e[7],u=e[8],c=e[9],h=e[10],d=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+u*r,t[5]=a*i+c*r,t[6]=s*i+h*r,t[7]=l*i+d*r,t[8]=u*i-o*r,t[9]=c*i-a*r,t[10]=h*i-s*r,t[11]=d*i-l*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],l=e[3],u=e[4],c=e[5],h=e[6],d=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+u*r,t[1]=a*i+c*r,t[2]=s*i+h*r,t[3]=l*i+d*r,t[4]=u*i-o*r,t[5]=c*i-a*r,t[6]=h*i-s*r,t[7]=d*i-l*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,lt=e},t.setRTLTextPlugin=function(t,e,n){if(void 0===n&&(n=!1),"deferred"===Qr||"loading"===Qr||"loaded"===Qr)throw new Error("setRTLTextPlugin cannot be called multiple times.");ti=F.resolveURL(t),Qr="deferred",Jr=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=At,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=Bl,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,l,u,c,h,d,f,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],l=e[5],u=e[6],c=e[7],h=e[8],d=e[9],f=e[10],p=e[11],t[0]=r=e[0],t[1]=i,t[2]=o,t[3]=a,t[4]=s,t[5]=l,t[6]=u,t[7]=c,t[8]=h,t[9]=d,t[10]=f,t[11]=p,t[12]=r*g+s*v+h*m+e[12],t[13]=i*g+l*v+d*m+e[13],t[14]=o*g+u*v+f*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=Ar,t.validateStyle=Mr,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="{",l=0;l<a.length;l++)s+=JSON.stringify(a[l])+":"+e(t[a[l]])+",";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 l=this._layers[s.id]=t.createStyleLayer(s);l._featureFilter=t.featureFilter(l.filter),this.keyCache[s.id]&&delete this.keyCache[s.id]}for(var u=0,c=r;u<c.length;u+=1){var h=c[u];delete this.keyCache[h],delete this._layerConfigs[h],delete this._layers[h]}this.familiesBySource={};for(var d=0,f=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 l in r)s.push(r[l]);return s}(t.values(this._layerConfigs),this.keyCache);d<f.length;d+=1){var p=f[d].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 l=o[+s];if(l&&0!==l.bitmap.width&&0!==l.bitmap.height){var u={x:0,y:0,w:l.bitmap.width+2,h:l.bitmap.height+2};r.push(u),a[s]={rect:u,metrics:l.metrics}}}}var c=t.potpack(r),h=new t.AlphaImage({width:c.w||1,height:c.h||1});for(var d in e){var f=e[d];for(var p in f){var g=f[+p];if(g&&0!==g.bitmap.width&&0!==g.bitmap.height){var v=n[d][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 l=this;this.status="parsing",this.data=e,this.collisionBoxArray=new t.CollisionBoxArray;var u=new t.DictionaryCoder(Object.keys(e.layers).sort()),c=new t.FeatureIndex(this.tileID,this.promoteId);c.bucketLayerIDs=[];var h,d,f,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 _=u.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],M=T[0];M.minzoom&&this.zoom<Math.floor(M.minzoom)||M.maxzoom&&this.zoom>=M.maxzoom||"none"!==M.visibility&&(a(T,this.zoom,r),(g[M.id]=M.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 A=t.mapObject(v.glyphDependencies,(function(t){return Object.keys(t).map(Number)}));Object.keys(A).length?o.send("getGlyphs",{uid:this.uid,stacks:A},(function(t,e){h||(h=t,d=e,k.call(l))})):d={};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,f=e,k.call(l))})):f={};var j=Object.keys(v.patternDependencies);function k(){if(h)return s(h);if(d&&f&&p){var e=new i(d),n=new t.ImageAtlas(f,p);for(var o in g){var l=g[o];l instanceof t.SymbolBucket?(a(l.layers,this.zoom,r),t.performSymbolLayout(l,d,e.positions,f,n.iconPositions,this.showCollisionBoxes,this.tileID.canonical)):l.hasPattern&&(l instanceof t.LineBucket||l instanceof t.FillBucket||l instanceof t.FillExtrusionBucket)&&(a(l.layers,this.zoom,r),l.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?d:null,iconMap:this.returnDependencies?f: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(l))})):p={},k.call(this)};var l=function(t,e,n,r){this.actor=t,this.layerIndex=e,this.availableImages=n,this.loadVectorData=r||s,this.loading={},this.loaded={}};l.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 l=o.rawData,u={};o.expires&&(u.expires=o.expires),o.cacheControl&&(u.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:l.slice(0)},r,u,c))})),r.loaded=r.loaded||{},r.loaded[i]=s}))},l.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())}},l.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()},l.prototype.removeTile=function(t,e){var n=this.loaded,r=t.uid;n&&n[r]&&delete n[r],e()};var u=t.window.ImageBitmap,c=function(){this.loaded={}};function h(t,e){if(0!==t.length){d(t[0],e);for(var n=1;n<t.length;n++)d(t[n],!e)}}function d(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=u&&o instanceof u?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 f=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 l=[],u=0,c=s[a];u<c.length;u+=1){var h=c[u];l.push(new t.Point$1(h[0],h[1]))}o.push(l)}return o},p.prototype.toGeoJSON=function(t,e,n){return f.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 l=a[s];e=Math.min(e,l.x),n=Math.max(n,l.x),r=Math.min(r,l.y),i=Math.max(i,l.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,A,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,M,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 l=o[s];void 0===l&&(r.push(s),o[s]=l=r.length-1),e.writeVarint(l);var u=n.properties[s],c=typeof u;"string"!==c&&"boolean"!==c&&"number"!==c&&(u=JSON.stringify(u));var h=c+":"+u,d=a[h];void 0===d&&(i.push(u),a[h]=d=i.length-1),e.writeVarint(d)}}function E(t,e){return(e<<3)+(7&t)}function T(t){return t<<1^t>>31}function M(t,e){for(var n=t.loadGeometry(),r=t.type,i=0,o=0,a=n.length,s=0;s<a;s++){var l=n[s],u=1;1===r&&(u=l.length),e.writeVarint(E(1,u));for(var c=3===r?l.length-1:l.length,h=0;h<c;h++){1===h&&1!==r&&e.writeVarint(E(2,c-1));var d=l[h].x-i,f=l[h].y-o;e.writeVarint(T(d)),e.writeVarint(T(f)),i+=d,o+=f}3===r&&e.writeVarint(E(7,1))}}function A(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]},D=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),l=0;l<t.length;l++)a[l]=l,s[2*l]=e(t[l]),s[2*l+1]=n(t[l]);!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,l=r-i+1,u=Math.log(s),c=.5*Math.exp(2*u/3),h=.5*Math.sqrt(u*c*(s-c)/s)*(l-s/2<0?-1:1);t(e,n,r,Math.max(i,Math.floor(r-l*c/s+h)),Math.min(o,Math.floor(r+(s-l)*c/s+h)),a)}var d=n[2*r+a],f=i,p=o;for(I(e,n,i,r),n[2*o+a]>d&&I(e,n,i,o);f<p;){for(I(e,n,f,p),f++,p--;n[2*f+a]<d;)f++;for(;n[2*p+a]>d;)p--}n[2*i+a]===d?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)};D.prototype.range=function(t,e,n,r){return function(t,e,n,r,i,o,a){for(var s,l,u=[0,t.length-1,0],c=[];u.length;){var h=u.pop(),d=u.pop(),f=u.pop();if(d-f<=a)for(var p=f;p<=d;p++)l=e[2*p+1],(s=e[2*p])>=n&&s<=i&&l>=r&&l<=o&&c.push(t[p]);else{var g=Math.floor((f+d)/2);l=e[2*g+1],(s=e[2*g])>=n&&s<=i&&l>=r&&l<=o&&c.push(t[g]);var v=(h+1)%2;(0===h?n<=s:r<=l)&&(u.push(f),u.push(g-1),u.push(v)),(0===h?i>=s:o>=l)&&(u.push(g+1),u.push(d),u.push(v))}}return c}(this.ids,this.coords,t,e,n,r,this.nodeSize)},D.prototype.within=function(t,e,n){return function(t,e,n,r,i,o){for(var a=[0,t.length-1,0],s=[],l=i*i;a.length;){var u=a.pop(),c=a.pop(),h=a.pop();if(c-h<=o)for(var d=h;d<=c;d++)k(e[2*d],e[2*d+1],n,r)<=l&&s.push(t[d]);else{var f=Math.floor((h+c)/2),p=e[2*f],g=e[2*f+1];k(p,g,n,r)<=l&&s.push(t[f]);var v=(u+1)%2;(0===u?n-i<=p:r-i<=g)&&(a.push(h),a.push(f-1),a.push(v)),(0===u?n+i>=p:r+i>=g)&&(a.push(f+1),a.push(c),a.push(v))}}return s}(this.ids,this.coords,t,e,n,this.nodeSize)};var R={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(R),t),this.trees=new Array(this.options.maxZoom+1)};function F(t,e,n,r,i){return{x:t,y:e,zoom:1/0,id:n,parentId:-1,numPoints:r,properties:i}}function B(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 $(t,e,n,r,i,o){var a=i-n,s=o-r;if(0!==a||0!==s){var l=((t-n)*a+(e-r)*s)/(a*a+s*s);l>1?(n=i,r=o):l>0&&(n+=a*l,r+=s*l)}return(a=t-n)*a+(s=e-r)*s}function X(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=[],l=e.id;if(n.promoteId?l=e.properties[n.promoteId]:n.generateId&&(l=r||0),"Point"===o)K(i,s);else if("MultiPoint"===o)for(var u=0;u<i.length;u++)K(i[u],s);else if("LineString"===o)J(i,s,a,!1);else if("MultiLineString"===o){if(n.lineMetrics){for(u=0;u<i.length;u++)J(i[u],s=[],a,!1),t.push(X(l,"LineString",s,e.properties));return}Q(i,s,a,!1)}else if("Polygon"===o)Q(i,s,a,!0);else{if("MultiPolygon"!==o){if("GeometryCollection"===o){for(u=0;u<e.geometry.geometries.length;u++)Z(t,{id:l,geometry:e.geometry.geometries[u],properties:e.properties},n,r);return}throw new Error("Input data is not a valid GeoJSON object.")}for(u=0;u<i.length;u++){var c=[];Q(i[u],c,a,!0),s.push(c)}}t.push(X(l,o,s,e.properties))}}function K(t,e){e.push(tt(t[0])),e.push(et(t[1])),e.push(0)}function J(t,e,n,r){for(var i,o,a=0,s=0;s<t.length;s++){var l=tt(t[s][0]),u=et(t[s][1]);e.push(l),e.push(u),e.push(0),s>0&&(a+=r?(i*u-l*o)/2:Math.sqrt(Math.pow(l-i,2)+Math.pow(u-o,2))),i=l,o=u}var c=e.length-3;e[2]=1,function t(e,n,r,i){for(var o,a=i,s=r-n>>1,l=r-n,u=e[n],c=e[n+1],h=e[r],d=e[r+1],f=n+3;f<r;f+=3){var p=$(e[f],e[f+1],u,c,h,d);if(p>a)o=f,a=p;else if(p===a){var g=Math.abs(f-s);g<l&&(o=f,l=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 Q(t,e,n,r){for(var i=0;i<t.length;i++){var o=[];J(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 l=[],u=0;u<t.length;u++){var c=t[u],h=c.geometry,d=c.type,f=0===i?c.minX:c.minY,p=0===i?c.maxX:c.maxY;if(f>=n&&p<r)l.push(c);else if(!(p<n||f>=r)){var g=[];if("Point"===d||"MultiPoint"===d)rt(h,g,n,r,i);else if("LineString"===d)it(h,g,n,r,i,!1,s.lineMetrics);else if("MultiLineString"===d)at(h,g,n,r,i,!1);else if("Polygon"===d)at(h,g,n,r,i,!0);else if("MultiPolygon"===d)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"===d){for(v=0;v<g.length;v++)l.push(X(c.id,d,g[v],c.tags));continue}"LineString"!==d&&"MultiLineString"!==d||(1===g.length?(d="LineString",g=g[0]):d="MultiLineString"),"Point"!==d&&"MultiPoint"!==d||(d=3===g.length?"Point":"MultiPoint"),l.push(X(c.id,d,g,c.tags))}}}return l.length?l: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,l,u=ot(t),c=0===i?lt:ut,h=t.start,d=0;d<t.length-3;d+=3){var f=t[d],p=t[d+1],g=t[d+2],v=t[d+3],m=t[d+4],y=0===i?f:p,b=0===i?v:m,_=!1;a&&(s=Math.sqrt(Math.pow(f-v,2)+Math.pow(p-m,2))),y<n?b>n&&(l=c(u,f,p,v,m,n),a&&(u.start=h+s*l)):y>r?b<r&&(l=c(u,f,p,v,m,r),a&&(u.start=h+s*l)):st(u,f,p,g),b<n&&y>=n&&(l=c(u,f,p,v,m,n),_=!0),b>r&&y<=r&&(l=c(u,f,p,v,m,r),_=!0),!o&&_&&(a&&(u.end=h+s*l),e.push(u),u=ot(t)),a&&(h+=s)}var x=t.length-3;f=t[x],p=t[x+1],g=t[x+2],(y=0===i?f:p)>=n&&y<=r&&st(u,f,p,g),x=u.length-3,o&&x>=3&&(u[x]!==u[0]||u[x+1]!==u[1])&&st(u,u[0],u[1],u[2]),u.length&&e.push(u)}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 lt(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 ut(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 l=[],u=0;u<o.geometry[s].length;u++)l.push(ht(o.geometry[s][u],e));i.push(l)}n.push(X(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 dt(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 l=t.features[n],u=l.geometry,c=l.type;if(l.geometry=[],1===c)for(r=0;r<u.length;r+=2)l.geometry.push(ft(u[r],u[r+1],e,o,a,s));else for(r=0;r<u.length;r++){var h=[];for(i=0;i<u[r].length;i+=2)h.push(ft(u[r][i],u[r][i+1],e,o,a,s));l.geometry.push(h)}}return t.transformed=!0,t}function ft(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 l=t[s].minX,u=t[s].minY,c=t[s].maxX,h=t[s].maxY;l<a.minX&&(a.minX=l),u<a.minY&&(a.minY=u),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 l=0;l<i.length;l++){var u=i[l];for(s=0;s<u.length;s++)vt(a,u[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 d={geometry:a,type:"Polygon"===o||"MultiPolygon"===o?3:"LineString"===o||"MultiLineString"===o?2:1,tags:c};null!==e.id&&(d.id=e.id),t.features.push(d)}}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=[],l=0;l<e.length;l+=3)(0===r||e[l+2]>a)&&(n.numSimplified++,s.push(e[l]),s.push(e[l+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=[],l=0;l<t.length;l++)t[l].geometry&&s.push(B(t[l],l));this.trees[i+1]=new D(s,W,Y,o,Float32Array),n&&console.timeEnd(a);for(var u=i;u>=r;u--){var c=+Date.now();s=this._cluster(s,u),this.trees[u]=new D(s,W,Y,o,Float32Array),n&&console.log("z%d: %d clusters in %dms",u,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 l=this.trees[this._limitZoom(e)],u=[],c=0,h=l.range(U(n),G(o),U(i),G(r));c<h.length;c+=1){var d=l.points[h[c]];u.push(d.numPoints?z(d):this.points[d.index])}return u},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=[],l=0,u=i.within(o.x,o.y,a);l<u.length;l+=1){var c=i.points[u[l]];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,l=(n+1+a)/i,u={features:[]};return this._addTileFeatures(r.range((e-a)/i,s,(e+1+a)/i,l),r.points,e,n,i,u),0===e&&this._addTileFeatures(r.range(1-a/i,s,1,l),r.points,i,n,i,u),e===i-1&&this._addTileFeatures(r.range(0,s,a/i,l),r.points,-1,n,i,u),u.features.length?u: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],l=s.properties;if(l&&l.cluster?i+l.point_count<=r?i+=l.point_count:i=this._appendLeaves(t,l.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 l=e[s[a]],u=l.numPoints,c={type:1,geometry:[[Math.round(this.options.extent*(l.x*i-n)),Math.round(this.options.extent*(l.y*i-r))]],tags:u?V(l):this.points[l.index].properties},h=void 0;u?h=l.id:this.options.generateId?h=l.index:this.points[l.index].id&&(h=this.points[l.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 l=t[s];if(!(l.zoom<=e)){l.zoom=e;for(var u=this.trees[e+1],c=u.within(l.x,l.y,a),h=l.numPoints||1,d=h,f=0,p=c;f<p.length;f+=1){var g=u.points[p[f]];g.zoom>e&&(d+=g.numPoints||1)}if(d>=o){for(var v=l.x*h,m=l.y*h,y=i&&h>1?this._map(l,!0):null,b=(s<<5)+(e+1)+this.points.length,_=0,x=c;_<x.length;_+=1){var w=u.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(l,!0)),i(y,this._map(w)))}}l.parentId=b,n.push(F(v/d,m/d,b,d,y))}else if(n.push(l),d>1)for(var S=0,C=c;S<C.length;S+=1){var E=u.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],l=this.options,u=l.debug;s.length;){r=s.pop(),n=s.pop(),e=s.pop(),t=s.pop();var c=1<<e,h=yt(e,n,r),d=this.tiles[h];if(!d&&(u>1&&console.time("creation"),d=this.tiles[h]=pt(t,e,n,r,l),this.tileCoords.push({z:e,x:n,y:r}),u)){u>1&&(console.log("tile z%d-%d-%d (features: %d, points: %d, simplified: %d)",e,n,r,d.numFeatures,d.numPoints,d.numSimplified),console.timeEnd("creation"));var f="z"+e;this.stats[f]=(this.stats[f]||0)+1,this.total++}if(d.source=t,i){if(e===l.maxZoom||e===i)continue;var p=1<<i-e;if(n!==Math.floor(o/p)||r!==Math.floor(a/p))continue}else if(e===l.indexMaxZoom||d.numPoints<=l.indexMaxPoints)continue;if(d.source=null,0!==t.length){u>1&&console.time("clipping");var g,v,m,y,b,_,x=.5*l.buffer/l.extent,w=.5-x,O=.5+x,S=1+x;g=v=m=y=null,b=nt(t,c,n-x,n+O,0,d.minX,d.maxX,l),_=nt(t,c,n+w,n+S,0,d.minX,d.maxX,l),t=null,b&&(g=nt(b,c,r-x,r+O,1,d.minY,d.maxY,l),v=nt(b,c,r+w,r+S,1,d.minY,d.maxY,l),b=null),_&&(m=nt(_,c,r-x,r+O,1,d.minY,d.maxY,l),y=nt(_,c,r+w,r+S,1,d.minY,d.maxY,l),_=null),u>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 dt(this.tiles[s],i);o>1&&console.log("drilling down to z%d-%d-%d",t,e,n);for(var l,u=t,c=e,h=n;!l&&u>0;)u--,c=Math.floor(c/2),h=Math.floor(h/2),l=this.tiles[yt(u,c,h)];return l&&l.source?(o>1&&console.log("found parent tile z%d-%d-%d",u,c,h),o>1&&console.time("drilling down"),this.splitTile(l.source,u,c,h,t,e,n),o>1&&console.timeEnd("drilling down"),this.tiles[s]?dt(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 l=a.features.filter((function(t){return s.value.evaluate({zoom:0},t)}));a={type:"FeatureCollection",features:l}}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},l=Object.keys(r),u=0,c=l;u<c.length;u+=1){var h=c[u],d=r[h],f=d[0],p=t.createExpression(d[1]),g=t.createExpression("string"==typeof f?[f,["accumulated"],["get",h]]:f);i[h]=p.value,o[h]=g.value}return n.map=function(t){s.properties=t;for(var e={},n=0,r=l;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=l;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 u={};if(i){var c=i.finish();c&&(u.resourceTiming={},u.resourceTiming[r.source]=JSON.parse(JSON.stringify(c)))}n(null,u)}))}},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}(l),xt=function(e){var n=this;this.self=e,this.actor=new t.Actor(e,this),this.layerIndexes={},this.availableImages={},this.workerSourceTypes={vector:l,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 l=!1;try{var u=Object.defineProperty({},"passive",{get:function(){l=!0}});t.window.addEventListener("test",u,u),t.window.removeEventListener("test",u,u)}catch(t){l=!1}n.addEventListener=function(t,e,n,r){void 0===r&&(r={}),t.addEventListener(e,n,"passive"in r&&l?r:r.capture)},n.removeEventListener=function(t,e,n,r){void 0===r&&(r={}),t.removeEventListener(e,n,"passive"in r&&l?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 d=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 l=this.patterns[s].bin,u=l.x+1,c=l.y+1,h=this.images[s].data,d=h.width,f=h.height;t.RGBAImage.copy(h,a,{x:0,y:0},{x:u,y:c},{width:d,height:f}),t.RGBAImage.copy(h,a,{x:0,y:f-1},{x:u,y:c-1},{width:d,height:1}),t.RGBAImage.copy(h,a,{x:0,y:0},{x:u,y:c+f},{width:d,height:1}),t.RGBAImage.copy(h,a,{x:d-1,y:0},{x:u-1,y:c},{width:1,height:f}),t.RGBAImage.copy(h,a,{x:0,y:0},{x:u+d,y:c},{width:1,height:f})}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),f=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 l=0;l<n;l++)r[l]=t[l*e+s];for(y(r,i,o,a,n),l=0;l<n;l++)t[l*e+s]=i[l]}for(l=0;l<n;l++){for(s=0;s<e;s++)r[s]=t[l*e+s];for(y(r,i,o,a,e),s=0;s<e;s++)t[l*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},f.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 l=o.requests[s];l||(l=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=l;i<a.length;i+=1)(0,a[i])(t,e);delete o.requests[s]}))),l.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,l=a.id,u=a.glyph;(r[s]||(r[s]={}))[l]=u&&{id:u.id,bitmap:u.bitmap.clone(),metrics:u.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,l=i.transformRequest(i.normalizeGlyphsURL(r).replace("{fontstack}",e).replace("{range}",a+"-"+s),t.ResourceType.Glyphs);t.getArrayBuffer(l,(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=f;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],l=1;l<t.length;l++){var u=t[l];r.push({left:i=s*n,right:o=(s+=u)*n,isDash:a=!a,zeroLength:0===u})}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],l=0;l<this.width;l++){l/s.right>1&&(s=t[++a]);var u=Math.abs(l-s.left),c=Math.abs(l-s.right),h=Math.min(u,c),d=void 0,f=i/n*(r+1);if(s.isDash){var p=r-Math.abs(f);d=Math.sqrt(h*h+p*p)}else d=r-Math.sqrt(h*h+f*f);this.data[o+l]=Math.max(0,Math.min(255,d+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,l=t[s],u=0;u<this.width;u++){u/l.right>1&&(l=t[++s]);var c=Math.abs(u-l.left),h=Math.abs(u-l.right),d=Math.min(c,h);this.data[a+u]=Math.max(0,Math.min(255,(l.isDash?d:-d)+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,l=this.getDashRanges(e,this.width,s);n?this.addRoundDash(l,s,r):this.addRegularDash(l)}var u={y:(this.nextRow+r+.5)/this.height,height:2*r/this.height,width:o};return this.nextRow+=i,this.dirty=!0,u},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),M=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),A=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,l={};return l[new t.OverscaledTileID(e.overscaledZ,o,n.z,i,n.y).key]={backfilled:!1},l[new t.OverscaledTileID(e.overscaledZ,s,n.z,a,n.y).key]={backfilled:!1},n.y>0&&(l[new t.OverscaledTileID(e.overscaledZ,o,n.z,i,n.y-1).key]={backfilled:!1},l[new t.OverscaledTileID(e.overscaledZ,e.wrap,n.z,n.x,n.y-1).key]={backfilled:!1},l[new t.OverscaledTileID(e.overscaledZ,s,n.z,a,n.y-1).key]={backfilled:!1}),n.y+1<r&&(l[new t.OverscaledTileID(e.overscaledZ,o,n.z,i,n.y+1).key]={backfilled:!1},l[new t.OverscaledTileID(e.overscaledZ,e.wrap,n.z,n.x,n.y+1).key]={backfilled:!1},l[new t.OverscaledTileID(e.overscaledZ,s,n.z,a,n.y+1).key]={backfilled:!1}),l},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}(M),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 l=s[a];n=Math.min(n,l.x),r=Math.min(r,l.y),i=Math.max(i,l.x),o=Math.max(o,l.y)}var u=Math.max(i-n,o-r),c=Math.max(0,Math.floor(-Math.log(u)/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),D={vector:T,raster:M,"raster-dem":A,geojson:I,video:P,image:k,canvas:L};function R(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(),l=t.tilesIn(r,s,a);l.sort(F);for(var u=[],c=0,h=l;c<h.length;c+=1){var d=h[c];u.push({wrappedTileID:d.tileID.wrapped().key,queryResults:d.tile.queryRenderedFeatures(e,n,t._state,d.queryGeometry,d.cameraQueryGeometry,d.scale,i,o,s,R(t.transform,d.tileID))})}var f=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,l=n[s]=n[s]||{};for(var u in a)for(var c=a[u],h=l[u]=l[u]||{},d=e[u]=e[u]||[],f=0,p=c;f<p.length;f+=1){var g=p[f];h[g.featureIndex]||(h[g.featureIndex]=!0,d.push(g))}}return e}(u);for(var p in f)f[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 f}function F(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 B=function(t,e){this.max=t,this.onRemove=e,this.reset()};B.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},B.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},B.prototype.has=function(t){return t.wrapped().key in this.data},B.prototype.getAndRemove=function(t){return this.has(t)?this._getAndRemoveByKey(t.wrapped().key):null},B.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},B.prototype.getByKey=function(t){var e=this.data[t];return e?e[0].value:null},B.prototype.get=function(t){return this.has(t)?this.data[t.wrapped().key][0].value:null},B.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},B.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},B.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 l=s[a];this.remove(l.value.tileID,l)}};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),$=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),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},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),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!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),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[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),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 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),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 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),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.bindFramebuffer(e.FRAMEBUFFER,t),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.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 Mt=function(t,e,n){this.enable=t,this.mode=e,this.frontFace=n};Mt.disabled=new Mt(!1,1029,2305),Mt.backCCW=new Mt(!0,1029,2305);var At=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 $(this),this.depthMask=new X(this),this.stencilMask=new q(this),this.stencilFunc=new Z(this),this.stencilOp=new K(this),this.stencilTest=new J(this),this.depthRange=new Q(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 lt(this),this.program=new ut(this),this.activeTexture=new ct(this),this.viewport=new ht(this),this.bindFramebuffer=new dt(this),this.bindRenderbuffer=new ft(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)};At.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()},At.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},At.prototype.createIndexBuffer=function(t,e){return new z(this,t,e)},At.prototype.createVertexBuffer=function(t,e,n){return new U(this,t,e,n)},At.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},At.prototype.createFramebuffer=function(t,e,n){return new St(this,t,e,n)},At.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)},At.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))},At.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)},At.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)},At.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)},At.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 D[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 B(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 l=a;l.overscaledZ>e;)if(t[(l=l.scaledTo(l.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),l=this._updateRetainedTiles(i,o);if(kt(this._source.type)){for(var u={},c={},h=0,d=Object.keys(l);h<d.length;h+=1){var f=d[h],p=l[f],g=this._tiles[f];if(g&&!(g.fadeEndTime&&g.fadeEndTime<=t.browser.now())){var v=this.findLoadedParent(p,a);v&&(this._addTile(v.tileID),u[v.tileID.key]=v.tileID),c[f]=p}}for(var m in this._retainLoadedChildren(c,o,s,l),u)l[m]||(this._coveredTiles[m]=!0,l[m]=u[m])}for(var y in l)this._tiles[y].clearFadeHold();for(var b=0,_=t.keysDifference(this._tiles,l);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={},l=0,u=t;l<u.length;l+=1){var c=u[l],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 d=0,f=t;d<f.length;d+=1){var p=f[d],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,l=e.map((function(t){return a.pointCoordinate(t)})),u=s.map((function(t){return a.pointCoordinate(t)})),c=this.getIds(),h=1/0,d=1/0,f=-1/0,p=-1/0,g=0,v=u;g<v.length;g+=1){var m=v[g];h=Math.min(h,m.x),d=Math.min(d,m.y),f=Math.max(f,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,d)),s.getTilePoint(new t.MercatorCoordinate(f,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=l.map((function(t){return s.getTilePoint(t)})),b=u.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",Dt=function(){this.active={}};Dt.prototype.acquire=function(t){if(!this.workers)for(this.workers=[];this.workers.length<Dt.workerCount;)this.workers.push(new Pt);return this.active[t]=!0,this.workers.slice()},Dt.prototype.release=function(t){delete this.active[t],0===this.numActive()&&(this.workers.forEach((function(t){t.terminate()})),this.workers=null)},Dt.prototype.isPreloaded=function(){return!!this.active[Lt]},Dt.prototype.numActive=function(){return Object.keys(this.active).length};var Rt,Nt=Math.floor(t.browser.hardwareConcurrency/2);function Ft(){return Rt||(Rt=new Dt),Rt}function Bt(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]=Bt(t[r],e[t[r].ref]));return t}Dt.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 $t(t){return t.id}function Xt(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,l=s>0?(i-a)/s:0;return this.points[o].mult(1-l).add(this.points[n].mult(l))};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 Jt(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 Qt(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,l){var u=i?e.textSizeData:e.iconSizeData,c=t.evaluateSizeForZoom(u,r.transform.zoom),h=[256/r.width*2+1,256/r.height*2+1],d=i?e.text.dynamicLayoutVertexArray:e.icon.dynamicLayoutVertexArray;d.clear();for(var f=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)ue(y.numGlyphs,d);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(u,c,y),w=s?x/_:x*_,O=new t.Point(y.anchorX,y.anchorY),S=Qt(O,o).point,C={},E=oe(y,w,!1,l,n,o,a,e.glyphOffsetArray,f,d,S,O,C,g);v=E.useVertical,(E.notEnoughRoom||v||E.needsFlipping&&oe(y,w,!0,l,n,o,a,e.glyphOffsetArray,f,d,S,O,C,g).notEnoughRoom)&&ue(y.numGlyphs,d)}else ue(y.numGlyphs,d)}}i?e.text.dynamicLayoutVertexBuffer.updateData(d):e.icon.dynamicLayoutVertexBuffer.updateData(d)}function re(t,e,n,r,i,o,a,s,l,u,c){var h=s.glyphStartIndex+s.numGlyphs,d=s.lineStartIndex,f=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,d,f,l,u,c);if(!v)return null;var m=se(t*g,n,r,i,o,a,s.segment,d,f,l,u,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,l,u,c,h,d,f,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,l,m,y,r,h,d,e,u,a,f);if(!w)return{notEnoughRoom:!0};var O=Qt(w.first.point,s).point,S=Qt(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*l.getoffsetX(E),m,y,r,h,d,e.segment,_,x,u,a,f));g.push(w.last)}else{if(i&&!r){var T=Qt(d,o).point,M=e.lineStartIndex+e.segment+1,A=new t.Point(u.getx(M),u.gety(M)),I=Qt(A,o),j=I.signedDistanceFromCamera>0?I.point:ae(d,A,T,1,o),k=ie(e.writingMode,T,j,p);if(k)return k}var P=se(v*l.getoffsetX(e.glyphStartIndex),m,y,r,h,d,e.segment,e.lineStartIndex,e.lineStartIndex+e.lineLength,u,a,f);if(!P)return{notEnoughRoom:!0};g=[P]}for(var L=0,D=g;L<D.length;L+=1){var R=D[L];t.addDynamicAttributes(c,R.point,R.angle)}return{}}function ae(t,e,n,r,i){var o=Qt(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,l,u,c,h,d){var f=i?e-n:e+n,p=f>0?1:-1,g=0;i&&(p*=-1,g=Math.PI),p<0&&(g+=Math.PI);for(var v=p>0?l+s:l+s+1,m=o,y=o,b=0,_=0,x=Math.abs(f),w=[];b+_<=x;){if((v+=p)<l||v>=u)return null;if(y=m,w.push(m),void 0===(m=d[v])){var O=new t.Point(c.getx(v),c.gety(v)),S=Qt(O,h);if(S.signedDistanceFromCamera>0)m=d[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),M=T.mult(E)._add(y);M._add(T._unit()._perp()._mult(r*p));var A=g+Math.atan2(m.y-y.y,m.x-y.x);return w.push(M),{point:M,angle:A,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 l=0;l<this.circleKeys.length;l++){var u=this.circles[3*l],c=this.circles[3*l+1],h=this.circles[3*l+2];a.push({key:this.circleKeys[l],x1:u-h,y1:c-h,x2:u+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,l=e+n;if(a<0||o>this.width||l<0||s>this.height)return!r&&[];var u=[];return this._forEachCell(o,s,a,l,this._queryCellCircle,u,{hitTest:r,circle:{x:t,y:e,radius:n},seenUids:{box:{},circle:{}}},i),r?u.length>0:u},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 l=a.seenUids,u=this.boxCells[i];if(null!==u)for(var c=this.bboxes,h=0,d=u;h<d.length;h+=1){var f=d[h];if(!l.box[f]){l.box[f]=!0;var p=4*f;if(t<=c[p+2]&&e<=c[p+3]&&n>=c[p+0]&&r>=c[p+1]&&(!s||s(this.boxKeys[f]))){if(a.hitTest)return o.push(!0),!0;o.push({key:this.boxKeys[f],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(!l.circle[b]){l.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 l=a.circle,u=a.seenUids,c=this.boxCells[i];if(null!==c)for(var h=this.bboxes,d=0,f=c;d<f.length;d+=1){var p=f[d];if(!u.box[p]){u.box[p]=!0;var g=4*p;if(this._circleAndRectCollide(l.x,l.y,l.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(!u.circle[_]){u.circle[_]=!0;var x=3*_;if(this._circlesCollide(m[x],m[x+1],m[x+2],l.x,l.y,l.radius)&&(!s||s(this.circleKeys[_])))return o.push(!0),!0}}},Zt.prototype._forEachCell=function(t,e,n,r,i,o,a,s){for(var l=this._convertToXCellCoord(t),u=this._convertToYCellCoord(e),c=this._convertToXCellCoord(n),h=this._convertToYCellCoord(r),d=l;d<=c;d++)for(var f=u;f<=h;f++)if(i.call(this,t,e,n,r,this.xCellCount*f+d,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,l=n+o;return l*l>a*a+s*s},Zt.prototype._circleAndRectCollide=function(t,e,n,r,i,o,a){var s=(o-r)/2,l=Math.abs(t-(r+s));if(l>s+n)return!1;var u=(a-i)/2,c=Math.abs(e-(i+u));if(c>u+n)return!1;if(l<=s||c<=u)return!0;var h=l-s,d=c-u;return h*h+d*d<=n*n};var le=new Float32Array([-1/0,-1/0,0,-1/0,-1/0,0,-1/0,-1/0,0,-1/0,-1/0,0]);function ue(t,e){for(var n=0;n<t;n++){var r=e.length;e.resize(r+4),e.float32.set(le,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 de(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,l=t.y1*a+o.point.y,u=t.x2*a+o.point.x,c=t.y2*a+o.point.y;return!this.isInsideGrid(s,l,u,c)||!e&&this.grid.hitTest(s,l,u,c,i)?{box:[],offscreen:!1}:{box:[s,l,u,c],offscreen:this.isOffscreen(s,l,u,c)}},he.prototype.placeCollisionCircles=function(e,n,r,i,o,a,s,l,u,c,h,d,f){var p=[],g=new t.Point(n.anchorX,n.anchorY),v=Qt(g,a),m=te(this.transform.cameraToCenterDistance,v.signedDistanceFromCamera),y=(c?o/m:o*m)/t.ONE_EM,b=Qt(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*d*m+f,C=new t.Point(-100,-100),E=new t.Point(this.screenRightBoundary,this.screenBottomBoundary),T=new qt,M=_.first,A=_.last,I=[],j=M.path.length-1;j>=1;j--)I.push(M.path[j]);for(var k=1;k<A.path.length;k++)I.push(A.path[k]);var P=2.5*S;if(l){var L=I.map((function(t){return Qt(t,l)}));I=L.some((function(t){return t.signedDistanceFromCamera<=0}))?[]:L.map((function(t){return t.point}))}var D=[];if(I.length>0){for(var R=I[0].clone(),N=I[0].clone(),F=1;F<I.length;F++)R.x=Math.min(R.x,I[F].x),R.y=Math.min(R.y,I[F].y),N.x=Math.max(N.x,I[F].x),N.y=Math.max(N.y,I[F].y);D=R.x>=C.x&&N.x<=E.x&&R.y>=C.y&&N.y<=E.y?[I]:N.x<C.x||R.x>E.x||N.y<C.y||R.y>E.y?[]:t.clipLine([I],C.x,C.y,E.x,E.y)}for(var B=0,z=D;B<z.length;B+=1){var V;T.reset(z[B],.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 $=W-S,X=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,!u))return{circles:[],offscreen:!1,collisionDetected:x}}}}return{circles:!u&&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,l=e;s<l.length;s+=1){var u=l[s],c=new t.Point(u.x+100,u.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={},d={},f=0,p=this.grid.query(r,i,o,a).concat(this.ignoredGrid.query(r,i,o,a));f<p.length;f+=1){var g=p[f],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===d[v.bucketInstanceId]&&(d[v.bucketInstanceId]=[]),d[v.bucketInstanceId].push(v.featureIndex))}}return d},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 fe=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};fe.prototype.isHidden=function(){return 0===this.opacity&&!this.placed};var pe=function(t,e,n,r,i){this.text=new fe(t?t.text:null,e,n,i),this.icon=new fe(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,l=-(a.verticalAlign-.5)*r,u=t.evaluateVariableOffset(e,i);return new t.Point(s+u[0]*o,l+u[1]*o)}function _e(e,n,r,i,o,a){var s=e.x1,l=e.x2,u=e.y1,c=e.y2,h=e.anchorPointX,d=e.anchorPointY,f=new t.Point(n,r);return i&&f._rotate(o?a:-a),{x1:s+f.x,y1:u+f.y,x2:l+f.x,y2:c+f.y,anchorPointX:h,anchorPointY:d}}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,l=o.layers[0].layout,u=Math.pow(2,this.transform.zoom-r.tileID.overscaledZ),c=r.tileSize/t.EXTENT,h=this.transform.calculatePosMatrix(r.tileID.toUnwrapped()),d="map"===l.get("text-pitch-alignment"),f="map"===l.get("text-rotation-alignment"),p=de(r,1,this.transform.zoom),g=Kt(h,d,f,this.transform,p),v=null;if(d){var m=Jt(h,d,f,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:l,posMatrix:h,textLabelPlaneMatrix:g,labelToScreenMatrix:v,scale:u,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,l,u,c,h,d,f,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,l,u.predicate);if(!p||0!==this.collisionIndex.placeCollisionBox(_e(p,m.x,m.y,o,a,this.transform.angle),c,s,l,u.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(d,t,h,f),d.allowVerticalPlacement&&(this.markUsedOrientation(d,f,h),this.placedOrientations[h.crossTileID]=f),{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,l=o.posMatrix,u=o.textLabelPlaneMatrix,c=o.labelToScreenMatrix,h=o.textPixelRatio,d=o.holdingForFade,f=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&&f&&a.deserializeCollisionBoxes(f);var E=function(e,o){if(!n[e.crossTileID])if(d)i.placements[e.crossTileID]=new ge(!1,!1,!1);else{var f,O=!1,E=!1,T=!0,M=null,A={box:null,offscreen:null},I={box:null,offscreen:null},j=null,k=null,P=0,L=0,D=0;o.textFeatureIndex?P=o.textFeatureIndex:e.useRuntimeCollisionCircles&&(P=e.featureIndex),o.verticalTextFeatureIndex&&(L=o.verticalTextFeatureIndex);var R=o.textBox;if(R){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},F=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?(A=r(),I=A):A=n(),!(A&&A.box&&A.box.length));i+=1);else A=n()};if(s.get("text-variable-anchor")){var B=s.get("text-variable-anchor");if(i.prevPlacement&&i.prevPlacement.variableOffsets[e.crossTileID]){var z=i.prevPlacement.variableOffsets[e.crossTileID];B.indexOf(z.anchor)>0&&(B=B.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,u=e.textBoxScale,c=w&&!b?n:null,d={box:[],offscreen:!1},f=y?2*B.length:B.length,p=0;p<f;++p){var v=i.attemptAnchorPlacement(B[p%B.length],t,o,s,u,_,x,h,l,g,p>=B.length,e,a,r,c);if(v&&(d=v.placedGlyphBoxes)&&d.box&&d.box.length){O=!0,M=v.shift;break}}return d};F((function(){return V(R,o.iconBox,t.WritingMode.horizontal)}),(function(){var n=o.verticalTextBox;return a.allowVerticalPlacement&&!(A&&A.box&&A.box.length)&&e.numVerticalGlyphVertices>0&&n?V(n,o.verticalIconBox,t.WritingMode.vertical):{box:null,offscreen:null}})),A&&(O=A.box,T=A.offscreen);var U=N(A&&A.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,l,g.predicate);return r&&r.box&&r.box.length&&(i.markUsedOrientation(a,n,e),i.placedOrientations[e.crossTileID]=n),r};F((function(){return H(R,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(A&&A.box&&A.box.length)}}if(O=(f=A)&&f.box&&f.box.length>0,T=f&&f.offscreen,e.useRuntimeCollisionCircles){var W=a.text.placedSymbolArray.get(e.centerJustifiedTextSymbolIndex),Y=t.evaluateSizeForFeature(a.textSizeData,p,W),$=s.get("text-padding");j=i.collisionIndex.placeCollisionCircles(y,W,a.lineVertexArray,a.glyphOffsetArray,Y,l,u,c,r,x,g.predicate,e.collisionCircleDiameter,$),O=y||j.circles.length>0&&!j.collisionDetected,T=T&&j.offscreen}if(o.iconFeatureIndex&&(D=o.iconFeatureIndex),o.iconBox){var X=function(t){var e=w&&M?_e(t,M.x,M.y,_,x,i.transform.angle):t;return i.collisionIndex.placeCollisionBox(e,b,h,l,g.predicate)};E=I&&I.box&&I.box.length&&o.verticalIconBox?(k=X(o.verticalIconBox)).box.length>0:(k=X(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&&f&&f.box&&i.collisionIndex.insertCollisionBox(f.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,D,g.ID),j&&(O&&i.collisionIndex.insertCollisionCircles(j.circles,s.get("text-ignore-placement"),a.bucketInstanceId,P,g.ID),r)){var K=a.bucketInstanceId,J=i.collisionCircleArrays[K];void 0===J&&(J=i.collisionCircleArrays[K]=new ve);for(var Q=0;Q<j.circles.length;Q+=4)J.circles.push(j.circles[Q+0]),J.circles.push(j.circles[Q+1]),J.circles.push(j.circles[Q+2]),J.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),M=T.length-1;M>=0;--M){var A=T[M];E(a.symbolInstances.get(A),a.collisionArrays[A])}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,l),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 l=s[a];l>=0&&(e.text.placedSymbolArray.get(l).crossTileID=o>=0&&l!==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 l=this.placements[s],u=i[s];u?(this.opacities[s]=new pe(u,r,l.text,l.icon),n=n||l.text!==u.text.placed||l.icon!==u.icon.placed):(this.opacities[s]=new pe(null,r,l.text,l.icon,l.skipFade),n=n||l.text||l.icon)}for(var c in i){var h=i[c];if(!this.opacities[c]){var d=new pe(h,r,!1,!1);d.isHidden()||(this.opacities[c]=d,n=n||h.text.placed||h.icon.placed)}}for(var f in o)this.variableOffsets[f]||!this.opacities[f]||this.opacities[f].isHidden()||(this.variableOffsets[f]=o[f]);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"),l=o.get("icon-allow-overlap"),u=o.get("text-variable-anchor"),c="map"===o.get("text-rotation-alignment"),h="map"===o.get("text-pitch-alignment"),d="none"!==o.get("icon-text-fit"),f=new pe(null,0,s&&(l||!e.hasIconData()||o.get("icon-optional")),l&&(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,l=o.numVerticalGlyphVertices,g=o.crossTileID,v=i.opacities[g];n[g]?v=a:v||(i.opacities[g]=v=f),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||l>0){var x=Ie(v.text);p(e.text,s,b?je:x),p(e.text,l,_?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=!(d&&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 M=new t.Point(0,0);if(T.textBox||T.verticalTextBox){var A=!0;if(u){var I=i.variableOffsets[g];I?(M=be(I.anchor,I.width,I.height,I.textOffset,I.textBoxScale),c&&M._rotate(h?i.transform.angle:-i.transform.angle)):A=!1}T.textBox&&we(e.textCollisionBox.collisionVertexArray,v.text.placed,!A||b,M.x,M.y),T.verticalTextBox&&we(e.textCollisionBox.collisionVertexArray,v.text.placed,!A||_,M.x,M.y)}var j=Boolean(!_&&T.verticalIconBox);T.iconBox&&we(e.iconCollisionBox.collisionVertexArray,v.icon.placed,j,d?M.x:0,d?M.y:0),T.verticalIconBox&&we(e.iconCollisionBox.collisionVertexArray,v.icon.placed,!j,d?M.x:0,d?M.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),Me=Math.pow(2,8),Ae=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*Me+n*Ae+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]],l=this.placement.collisionIndex.transform.zoom;if("symbol"===s.type&&(!s.minzoom||s.minzoom<=l)&&(!s.maxzoom||s.maxzoom>l)){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,De=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)})}};De.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)}},De.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),l=0,u=a;l<u.length;l+=1){var c=u[l];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 Re=function(){this.maxCrossTileID=0};Re.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 l=a[s];l.tileID.isChildOf(t)&&l.findMatches(e.symbolInstances,t,i)}else{var u=a[t.scaledTo(Number(o)).key];u&&u.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 De(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 Fe=function(){this.layerIndexes={},this.crossTileIDs=new Re,this.maxBucketInstanceId=0,this.bucketsInCurrentPlacement={}};Fe.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 l=s[a],u=l.getBucket(t);u&&t.id===u.layerIds[0]&&(u.bucketInstanceId||(u.bucketInstanceId=++this.maxBucketInstanceId),r.addBucket(l.tileID,u,this.crossTileIDs)&&(i=!0),o[u.bucketInstanceId]=!0)}return r.removeStaleBuckets(o)&&(i=!0),i},Fe.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 Be=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(Ft(),this),this.imageManager=new d,this.imageManager.setEventedParent(this),this.glyphManager=new b(r._requestManager,i.localIdeographFontFamily),this.lineAtlas=new O(256,512),this.crossTileSymbolIndex=new Fe,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||!Be(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":"",l=t.getJSON(n.transformRequest(n.normalizeSpriteURL(e,s,".json"),t.ResourceType.SpriteJSON),(function(t,e){l=null,a||(a=t,i=e,c())})),u=t.getImage(n.transformRequest(n.normalizeSpriteURL(e,s,".png"),t.ResourceType.SpriteImage),(function(t,e){u=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 l=i[s],u=l.width,c=l.height,h=l.x,d=l.y,f=l.sdf,p=l.pixelRatio,g=l.stretchX,v=l.stretchY,m=l.content,y=new t.RGBAImage({width:u,height:c});t.RGBAImage.copy(e,y,{x:h,y:d},{x:0,y:0},{width:u,height:c}),n[s]={data:y,pixelRatio:p,sdf:f,stretchX:g,stretchY:v,content:m}}r(null,n)}}return{cancel:function(){l&&(l.cancel(),l=null),u&&(u.cancel(),u=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 l={};for(var u in this.sourceCaches){var c=this.sourceCaches[u];l[u]=c.used,c.used=!1}for(var h=0,d=this._order;h<d.length;h+=1){var f=this._layers[d[h]];f.recalculate(e,this._availableImages),!f.isHidden(e.zoom)&&f.source&&(this.sourceCaches[f.source].used=!0)}for(var p in l){var g=this.sourceCaches[p];l[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(),Be(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,l,u,c,h=(e=e||[]).map($t),d=n.map($t),f=e.reduce(Xt,{}),p=n.reduce(Xt,{}),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<d.length;i++)g[g.length-1-i]!==(a=d[d.length-1-i])&&(f.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],u=g[g.length-i]]}),g.splice(g.length-i,0,a),v[a]=!0);for(i=0;i<d.length;i++)if(s=f[a=d[i]],l=p[a],!v[a]&&!t.deepEqual(s,l))if(t.deepEqual(s.source,l.source)&&t.deepEqual(s["source-layer"],l["source-layer"])&&t.deepEqual(s.type,l.type)){for(c in Yt(s.layout,l.layout,r,a,null,Vt.setLayoutProperty),Yt(s.paint,l.paint,r,a,null,Vt.setPaintProperty),t.deepEqual(s.filter,l.filter)||r.push({command:Vt.setFilter,args:[a,l.filter]}),t.deepEqual(s.minzoom,l.minzoom)&&t.deepEqual(s.maxzoom,l.maxzoom)||r.push({command:Vt.setLayerZoomRange,args:[a,l.minzoom,l.maxzoom]}),s)s.hasOwnProperty(c)&&"layout"!==c&&"paint"!==c&&"filter"!==c&&"metadata"!==c&&"minzoom"!==c&&"maxzoom"!==c&&(0===c.indexOf("paint.")?Yt(s[c],l[c],r,a,c.slice(6),Vt.setPaintProperty):t.deepEqual(s[c],l[c])||r.push({command:Vt.setLayerProperty,args:[a,c,l[c]]}));for(c in l)l.hasOwnProperty(c)&&!s.hasOwnProperty(c)&&"layout"!==c&&"paint"!==c&&"filter"!==c&&"metadata"!==c&&"minzoom"!==c&&"maxzoom"!==c&&(0===c.indexOf("paint.")?Yt(s[c],l[c],r,a,c.slice(6),Vt.setPaintProperty):t.deepEqual(s[c],l[c])||r.push({command:Vt.setLayerProperty,args:[a,c,l[c]]}))}else r.push({command:Vt.removeLayer,args:[a]}),u=g[g.lastIndexOf(a)+1],r.push({command:Vt.addLayer,args:[l,u]})}(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(Be(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,l=t;s<l.length;s+=1){var u=l[s][a];if(u)for(var c=0,h=u;c<h.length;c+=1)i.push(h[c])}}}i.sort((function(t,e){return e.intersectionZ-t.intersectionZ}));for(var d=[],f=this._order.length-1;f>=0;f--){var p=this._order[f];if(n(p))for(var g=i.length-1;g>=0;g--){var v=i[g].feature;if(r[v.layer.id]<f)break;d.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)d.push(x[_].feature)}}return d},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],l=this._layers[s];if(!l)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[l.source]=!0}}var u=[];for(var c in n.availableImages=this._availableImages,this.sourceCaches)n.layers&&!i[c]||u.push(N(this.sourceCaches[c],this._layers,this._serializedLayers,e,n,r));return this.placement&&u.push(function(t,e,n,r,i,o,a){for(var s={},l=o.queryRenderedSymbols(r),u=[],c=0,h=Object.keys(l).map(Number);c<h.length;c+=1)u.push(a[h[c]]);u.sort(F);for(var d=function(){var n=p[f],r=n.featureIndex.lookupSymbolFeatures(l[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]||[],u=r[o];u.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=u;c<h.length;c+=1)a.push(h[c])}},f=0,p=u;f<p.length;f+=1)d();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(u)},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)&&Be(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,l={},u=0,c=this._order;u<c.length;u+=1){var h=this._layers[c[u]];if("symbol"===h.type){if(!l[h.source]){var d=this.sourceCaches[h.source];l[h.source]=d.getRenderableIds(!0).map((function(t){return d.getTileByID(t)})).sort((function(t,e){return e.tileID.overscaledZ-t.tileID.overscaledZ||(t.tileID.isLessThan(e.tileID)?-1:1)}))}var f=this.crossTileSymbolIndex.addLayer(h,l[h.source],e.center.lng);a=a||f}}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,l),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,l[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 D[t]},Ge.setSourceType=function(t,e){D[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);}"),$e=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);}"),Xe=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;}"),Je=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;}"),Qe=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;}"),ln=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;}"),un=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);}"),dn=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;}"),fn=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:$e,circle:Xe,clippingMask:qe,heatmap:Ze,heatmapTexture:Ke,collisionBox:Je,collisionCircle:Qe,debug:tn,fill:en,fillOutline:nn,fillOutlinePattern:rn,fillPattern:on,fillExtrusion:an,fillExtrusionPattern:sn,hillshadePrepare:ln,hillshade:un,line:cn,lineGradient:hn,linePattern:dn,lineSDF:fn,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 l=this.boundPaintVertexBuffers.length!==r.length,u=0;!l&&u<r.length;u++)this.boundPaintVertexBuffers[u]!==r[u]&&(l=!0);t.extVertexArrayObject&&this.vao&&this.boundProgram===e&&this.boundLayoutVertexBuffer===n&&!l&&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,l=t.numAttributes,u=this.context,c=u.gl;if(u.extVertexArrayObject)this.vao&&this.destroy(),this.vao=u.extVertexArrayObject.createVertexArrayOES(),u.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=u.currentNumAttributes||0;for(var h=l;h<s;h++)c.disableVertexAttribArray(h)}e.enableAttributes(c,t);for(var d=0,f=n;d<f.length;d+=1)f[d].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)),u.currentNumAttributes=l},_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),l=r?r.getBinderAttributes():[],u=s.concat(l),c=n.staticUniforms?xn(n.staticUniforms):[],h=r?r.getBinderUniforms():[],d=[],f=0,p=c.concat(h);f<p.length;f+=1){var g=p[f];d.indexOf(g)<0&&d.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=u.length;for(var w=0;w<this.numAttributes;w++)u[w]&&(a.bindAttribLocation(this.program,w,u[w]),this.attributes[u[w]]=w);a.linkProgram(this.program),a.deleteShader(_),a.deleteShader(b);for(var O=0;O<d.length;O++){var S=d[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/de(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,l,u,c,h,d,f,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]);f&&f.setUniforms(t,this.binderUniforms,h,{zoom:d});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,l,f?f.getPaintVertexBuffers():[],u,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],l=t.create$1();"viewport"===o.properties.get("anchor")&&t.fromRotation(l,-n.transform.angle),t.transformMat3(s,s,l);var u=o.properties.get("color");return{u_matrix:e,u_lightpos:s,u_lightintensity:o.properties.get("intensity"),u_lightcolor:[u.r,u.g,u.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))},Mn=function(t,e){return{u_matrix:t,u_world:e}},An=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 l=de(r,1,s.zoom);o=!0,a=[l,l]}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=de(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}},Dn=function(t,e,n,r){return{u_matrix:t,u_extrude_scale:de(e,1,n),u_intensity:r}},Rn=function(e,n,r){var i=e.transform;return{u_matrix:Vn(e,n,r),u_ratio:1/de(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(Rn(e,n,r),{u_image:0,u_image_height:i})},Fn=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/de(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]]}},Bn=function(e,n,r,i,o){var a=e.lineAtlas,s=zn(n,e.transform),l="round"===r.layout.get("line-cap"),u=a.getDash(i.from,l),c=a.getDash(i.to,l),h=u.width*o.fromScale,d=c.width*o.toScale;return t.extend(Rn(e,n,r),{u_patternscale_a:[s/h,-u.height/2],u_patternscale_b:[s/d,-c.height/2],u_sdfgamma:a.width/(256*Math.min(h,d)*t.browser.devicePixelRatio)/2,u_image:0,u_tex_y_a:u.y,u_tex_y_b:c.y,u_mix:o.t})};function zn(t,e){return 1/de(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,l,u){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:+l,u_pitch_with_map:+r,u_texsize:u,u_texture:0}},Yn=function(e,n,r,i,o,a,s,l,u,c,h){var d=o.transform;return t.extend(Wn(e,n,r,i,o,a,s,l,u,c),{u_gamma_scale:i?Math.cos(d._pitch)*d.cameraToCenterDistance:1,u_device_pixel_ratio:t.browser.devicePixelRatio,u_is_halo:+h})},$n=function(e,n,r,i,o,a,s,l,u,c){return t.extend(Yn(e,n,r,i,o,a,s,l,!0,u,!0),{u_texsize_icon:c,u_texture_icon:1})},Xn=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,l=a.height,u=Math.pow(2,r.tileID.overscaledZ),c=r.tileSize*Math.pow(2,n.transform.tileZoom)/u,h=c*(r.tileID.canonical.x+r.tileID.wrap*u),d=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,l],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/de(r,1,n.transform.tileZoom),u_pixel_coord_upper:[h>>16,d>>16],u_pixel_coord_lower:[65535&h,65535&d]}}(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 l=e.context,u=l.gl,c=e.useProgram("collisionBox"),h=[],d=0,f=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:f,transform:w,invTransform:x}),f=d+=_.length/4}b&&c.draw(l,u.LINES,Ct.disabled,Et.disabled,e.colorModeForRenderPass(),Mt.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*d),S._trim();for(var C=0,E=0,T=h;E<T.length;E+=1)for(var M=T[E],A=0;A<M.circleArray.length/4;A++){var I=4*A,j=M.circleArray[I+0],k=M.circleArray[I+1],P=M.circleArray[I+2],L=M.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*d)&&(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}(d));for(var D=l.createIndexBuffer(Hn,!0),R=l.createVertexBuffer(S,t.collisionCircleLayout.members,!0),N=0,F=h;N<F.length;N+=1){var B=F[N],z=kn(B.transform,B.invTransform,e.transform);O.draw(l,u.TRIANGLES,Ct.disabled,Et.disabled,e.colorModeForRenderPass(),Mt.disabled,z,r.id,R,D,t.SegmentVector.simpleSegment(0,2*B.circleOffset,B.circleArray.length,B.circleArray.length/2),null,e.transform.zoom,null,null,null)}R.destroy(),D.destroy()}}var Jn=t.identity(new Float32Array(16));function Qn(e,n,r,i,o,a){var s=t.getAnchorAlignment(e),l=-(s.horizontalAlign-.5)*n,u=-(s.verticalAlign-.5)*r,c=t.evaluateVariableOffset(e,i);return new t.Point((l/o+c[0])*a,(u/o+c[1])*a)}function tr(e,n,r,i,o,a,s,l,u,c,h){var d=e.text.placedSymbolArray,f=e.text.dynamicLayoutVertexArray,p=e.icon.dynamicLayoutVertexArray,g={};f.clear();for(var v=0;v<d.length;v++){var m=d.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),_=Qt(b,r?l:s),x=te(a.cameraToCenterDistance,_.signedDistanceFromCamera),w=o.evaluateSizeForFeature(e.textSizeData,c,m)*x/t.ONE_EM;r&&(w*=e.tilePixelRatio/u);for(var O=Qn(y.anchor,y.width,y.height,y.textOffset,y.textBoxScale,w),S=r?Qt(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(f,S,C);h&&m.associatedIconIndex>=0&&(g[m.associatedIconIndex]={shiftedAnchor:S,angle:C})}else ue(m.numGlyphs,f)}if(h){p.clear();for(var T=e.icon.placedSymbolArray,M=0;M<T.length;M++){var A=T.get(M);if(A.hidden)ue(A.numGlyphs,p);else{var I=g[M];if(I)for(var j=0;j<A.numGlyphs;j++)t.addDynamicAttributes(p,I.shiftedAnchor,I.angle);else ue(A.numGlyphs,p)}}e.icon.dynamicLayoutVertexBuffer.updateData(p)}e.text.dynamicLayoutVertexBuffer.updateData(f)}function er(t,e,n){return n.iconsInText&&e?"symbolTextAndIcon":t?"symbolSDF":"symbolIcon"}function nr(e,n,r,i,o,a,s,l,u,c,h,d){for(var f=e.context,p=f.gl,g=e.transform,v="map"===l,m="map"===u,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],M=n.getTile(T),A=M.getBucket(r);if(A){var I=o?A.text:A.icon;if(I&&I.segments.get().length){var j=I.programConfigurations.get(r.id),k=o||A.sdfIcons,P=o?A.textSizeData:A.iconSizeData,L=m||0!==g.pitch,D=e.useProgram(er(k,o,A),j),R=t.evaluateSizeForZoom(P,g.zoom),N=void 0,F=[0,0],B=void 0,z=void 0,V=null,U=void 0;if(o)B=M.glyphAtlasTexture,z=p.LINEAR,N=M.glyphAtlasTexture.size,A.iconsInText&&(F=M.imageAtlasTexture.size,V=M.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)||A.iconsNeedLinear;B=M.imageAtlasTexture,z=k||e.options.rotating||e.options.zooming||G||L?p.LINEAR:p.NEAREST,N=M.imageAtlasTexture.size}var H=de(M,1,e.transform.zoom),W=Kt(T.posMatrix,m,v,e.transform,H),Y=Jt(T.posMatrix,m,v,e.transform,H),$=O&&A.hasTextData(),X="none"!==r.layout.get("icon-text-fit")&&$&&A.hasIconData();y&&ne(A,T.posMatrix,e,o,W,Y,m,c);var q=e.translatePosMatrix(T.posMatrix,M,a,s),Z=y||o&&O||X?Jn:W,K=e.translatePosMatrix(Y,M,a,s,!0),J=k&&0!==r.paint.get(o?"text-halo-width":"icon-halo-width").constantOr(1),Q={program:D,buffers:I,uniformValues:k?A.iconsInText?$n(P.kind,R,b,m,e,q,Z,K,N,F):Yn(P.kind,R,b,m,e,q,Z,K,o,N,!0):Wn(P.kind,R,b,m,e,q,Z,K,o,N),atlasTexture:B,atlasTextureIcon:V,atlasInterpolation:z,atlasInterpolationIcon:U,isSDF:k,hasHalo:J};if(_&&A.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:Q})}}else S.push({segments:I.segments,sortKey:0,state:Q})}}}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(f.activeTexture.set(p.TEXTURE0),at.atlasTexture.bind(at.atlasInterpolation,p.CLAMP_TO_EDGE),at.atlasTextureIcon&&(f.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,d,st)),st.u_is_halo=0}rr(at.buffers,ot.segments,r,e,at.program,w,h,d,at.uniformValues)}}function rr(t,e,n,r,i,o,a,s,l){var u=r.context;i.draw(u,u.gl.TRIANGLES,o,a,s,Mt.disabled,l,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,l,u,c,h,d=t.context.gl,f=n.paint.get("fill-pattern"),p=f&&f.constantOr(1),g=n.getCrossfadeParameters();a?(l=p&&!n.getPaintProperty("fill-outline-color")?"fillOutlinePattern":"fillOutline",s=d.LINES):(l=p?"fillPattern":"fill",s=d.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(l,x);p&&(t.context.activeTexture.set(d.TEXTURE0),b.imageAtlasTexture.bind(d.LINEAR,d.CLAMP_TO_EDGE),x.updatePaintBuffers(g));var O=f.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 M=[d.drawingBufferWidth,d.drawingBufferHeight];u="fillOutlinePattern"===l&&p?An(T,t,g,b,M):Mn(T,M)}else c=_.indexBuffer,h=_.segments,u=p?Tn(T,t,g,b):En(T);w.draw(t.context,s,i,t.stencilModeForClipping(y),o,Mt.disabled,u,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,l=s.gl,u=n.paint.get("fill-extrusion-pattern"),c=u.constantOr(1),h=n.getCrossfadeParameters(),d=n.paint.get("fill-extrusion-opacity"),f=0,p=r;f<p.length;f+=1){var g=p[f],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(l.TEXTURE0),v.imageAtlasTexture.bind(l.LINEAR,l.CLAMP_TO_EDGE),y.updatePaintBuffers(h));var _=u.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,d,g,h,v):Sn(S,t,C,d);b.draw(s,s.gl.TRIANGLES,i,o,a,Mt.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,l=s.gl,u=n.fbo;if(u){var c=e.useProgram("hillshade");s.activeTexture.set(l.TEXTURE0),l.bindTexture(l.TEXTURE_2D,u.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 l,u,c,h=!e.options.moving;return{u_matrix:e.transform.calculatePosMatrix(n.tileID.toUnwrapped(),h),u_image:0,u_latrange:(l=n.tileID,u=Math.pow(2,l.canonical.z),c=l.canonical.y,[new t.MercatorCoordinate(0,c/u).toLngLat().lat,new t.MercatorCoordinate(0,(c+1)/u).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,l.TRIANGLES,i,o,a,Mt.disabled,h,r.id,e.rasterBoundsBuffer,e.quadTriangleIndexBuffer,e.rasterBoundsSegments)}}function sr(e,n,r,i,o,a){var s=e.context,l=s.gl,u=n.dem;if(u&&u.data){var c=u.dim,h=u.stride,d=u.getPixels();if(s.activeTexture.set(l.TEXTURE1),s.pixelStoreUnpackPremultiplyAlpha.set(!1),n.demTexture=n.demTexture||e.getTileTexture(h),n.demTexture){var f=n.demTexture;f.update(d,{premultiply:!1}),f.bind(l.NEAREST,l.CLAMP_TO_EDGE)}else n.demTexture=new t.Texture(s,d,l.RGBA,{premultiply:!1}),n.demTexture.bind(l.NEAREST,l.CLAMP_TO_EDGE);s.activeTexture.set(l.TEXTURE0);var p=n.fbo;if(!p){var g=new t.Texture(s,{width:c,height:c,data:null},l.RGBA);g.bind(l.LINEAR,l.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,l.TRIANGLES,i,o,a,Mt.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,u),r.id,e.rasterBoundsBuffer,e.quadTriangleIndexBuffer,e.rasterBoundsSegments),n.needsHillshadePrepare=!1}}function lr(e,n,r,i,o){var a=i.paint.get("raster-fade-duration");if(a>0){var s=t.browser.now(),l=(s-e.timeAdded)/a,u=n?(s-n.timeAdded)/a:-1,c=r.getSource(),h=o.coveringZoomLevel({tileSize:c.tileSize,roundZoom:c.roundZoom}),d=!n||Math.abs(n.tileID.overscaledZ-h)>Math.abs(e.tileID.overscaledZ-h),f=d&&e.refreshedUponExpiration?1:t.clamp(d?l:1-u,0,1);return e.refreshedUponExpiration&&l>=1&&(e.refreshedUponExpiration=!1),n?{opacity:1,mix:1-f}:{opacity:f,mix:0}}return{opacity:1,mix:0}}var ur=new t.Color(1,0,0,1),cr=new t.Color(0,1,0,1),hr=new t.Color(0,0,1,1),dr=new t.Color(1,0,1,1),fr=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,l=s.gl;l.enable(l.SCISSOR_TEST),l.scissor(n*t.browser.devicePixelRatio,r*t.browser.devicePixelRatio,i*t.browser.devicePixelRatio,o*t.browser.devicePixelRatio),s.clear({color:a}),l.disable(l.SCISSOR_TEST)}function mr(e,n,r){var i=e.context,o=i.gl,a=r.posMatrix,s=e.useProgram("debug"),l=Ct.disabled,u=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,l,u,c,Mt.disabled,Pn(a,t.Color.red),"$debug",e.debugBuffer,e.tileBorderIndexBuffer,e.debugSegments);var h=n.getTileByID(r.key).latestRawTileData,d=Math.floor((h&&h.byteLength||0)/1024),f=n.getTile(r).tileSize,p=512/Math.min(f,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+" "+d+"kb"),s.draw(i,o.TRIANGLES,l,u,Tt.alphaBlended,Mt.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 l=n.transform,u="map"===o,c="map"===a,h=0,d=e;h<d.length;h+=1){var f=d[h],p=i.getTile(f),g=p.getBucket(r);if(g&&g.text&&g.text.segments.get().length){var v=t.evaluateSizeForZoom(g.textSizeData,l.zoom),m=de(p,1,n.transform.zoom),y=Kt(f.posMatrix,c,u,n.transform,m),b="none"!==r.layout.get("icon-text-fit")&&g.hasIconData();if(v){var _=Math.pow(2,l.zoom-p.tileID.overscaledZ);tr(g,u,c,s,t.symbolSize,l,y,f.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"),l=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 u=e.context,c=u.gl,h=e.depthModeForSublayer(0,Ct.ReadOnly),d=Et.disabled,f=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(l)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:_})}}l&&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(u,c.TRIANGLES,h,d,f,Mt.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,l=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 u=0;u<i.length;u++){var c=i[u];if(!n.hasRenderableParent(c)){var h=n.getTile(c),d=h.getBucket(r);if(d){var f=d.programConfigurations.get(r.id);e.useProgram("heatmap",f).draw(o,a.TRIANGLES,Ct.disabled,s,l,Mt.disabled,Dn(c.posMatrix,h,e.transform.zoom,r.paint.get("heatmap-intensity")),r.id,d.layoutVertexBuffer,d.indexBuffer,d.segments,r.paint,e.transform.zoom,f)}}}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(),Mt.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),l=e.colorModeForRenderPass(),u=r.paint.get("line-dasharray"),c=r.paint.get("line-pattern"),h=c.constantOr(1),d=r.paint.get("line-gradient"),f=r.getCrossfadeParameters(),p=h?"linePattern":u?"lineSDF":d?"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 M=x.imageAtlas,A=M.patternPositions[T.to.toString()],I=M.patternPositions[T.from.toString()];A&&I&&O.setConstantPatternPositions(A,I)}var j=h?Fn(e,x,r,f):u?Bn(e,x,r,u,f):d?Nn(e,x,r,w.lineClipsArray.length):Rn(e,x,r);if(h)g.activeTexture.set(v.TEXTURE0),x.imageAtlasTexture.bind(v.LINEAR,v.CLAMP_TO_EDGE),O.updatePaintBuffers(f);else if(u&&(E||e.lineAtlas.dirty))g.activeTexture.set(v.TEXTURE0),e.lineAtlas.bind(g);else if(d){var k=w.gradients[r.id],P=k.texture;if(r.gradientVersion!==k.version){var L=256;if(r.stepInterpolant){var D=n.getSource().maxzoom,R=_.canonical.z===D?Math.ceil(1<<e.transform.maxZoom-_.canonical.z):1;L=t.clamp(t.nextPowerOfTwo(w.maxLineLength/t.EXTENT*1024*R),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(_),l,Mt.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(),l=r.paint.get("fill-pattern"),u=e.opaquePassEnabledForLayer()&&!l.constantOr(1)&&1===o.constantOr(t.Color.transparent).a&&1===a.constantOr(0)?"opaque":"translucent";if(e.renderPass===u){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],l=s[0],u=0,c=s[1];u<c.length;u+=1){var h=c[u],d=e.getTile(h);d.needsHillshadePrepare&&"offscreen"===t.renderPass?sr(t,d,n,o,Et.disabled,a):"translucent"===t.renderPass&&ar(t,d,n,o,l[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"),l=t.colorModeForRenderPass(),u=a instanceof k?[{},r]:t.stencilConfigForOverlap(r),c=u[0],h=u[1],d=h[h.length-1].overscaledZ,f=!t.options.moving,p=0,g=h;p<g.length;p+=1){var v=g[p],m=t.depthModeForSublayer(v.overscaledZ-d,1===n.paint.get("raster-opacity")?Ct.ReadWrite:Ct.ReadOnly,o.LESS),y=e.getTile(v),b=t.transform.calculatePosMatrix(v.toUnwrapped(),f);y.registerFadeDuration(n.paint.get("raster-fade-duration"));var _=e.findLoadedParent(v,0),x=lr(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,l,Mt.disabled,C,n.id,a.boundsBuffer,t.quadTriangleIndexBuffer,a.boundsSegments):s.draw(i,o.TRIANGLES,m,c[v.overscaledZ],l,Mt.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,l=s.tileSize,u=n.paint.get("background-pattern");if(!t.isPatternMissing(u)){var c=!u&&1===r.a&&1===i&&t.opaquePassEnabledForLayer()?"opaque":"translucent";if(t.renderPass===c){var h=Et.disabled,d=t.depthModeForSublayer(0,"opaque"===c?Ct.ReadWrite:Ct.ReadOnly),f=t.colorModeForRenderPass(),p=t.useProgram(u?"backgroundPattern":"background"),g=s.coveringTiles({tileSize:l});u&&(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=u?qn(_,i,t,u,{tileID:b,tileSize:l},v):Xn(_,i,r);p.draw(o,a.TRIANGLES,d,h,f,Mt.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 At(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 Fe,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 l=this.context.gl;this.stencilClearMode=new Et({func:l.ALWAYS,mask:0},0,255,l.ZERO,l.ZERO,l.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,Mt.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],l=this._tileClippingMaskIDs[s.key]=this.nextStencilID++;i.draw(n,r.TRIANGLES,Ct.disabled,new Et({func:r.ALWAYS,mask:0},l,255,r.KEEP,r.KEEP,r.REPLACE),Tt.disabled,Mt.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 l,u,c={},h={},d={};for(var f in o){var p=o[f];c[f]=p.getVisibleCoordinates(),h[f]=c[f].slice().reverse(),d[f]=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?d: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!==(u&&u.id)&&(u=r.style.sourceCaches[t.source]),(!l||l.getSource().maxzoom<u.getSource().maxzoom)&&(l=u))})),l&&yr.debug(this,l,l.getVisibleCoordinates())),this.options.showPadding&&function(t){var e=t.transform.padding;pr(t,t.transform.height-(e.top||0),3,ur),pr(t,e.bottom||0,3,cr),gr(t,e.left||0,3,hr),gr(t,t.transform.width-(e.right||0),3,dr);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,fr)}(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),l=Math.cos(a);r=[r[0]*l-r[1]*s,r[0]*s+r[1]*l]}var u=[o?r[0]:de(n,r[0],this.transform.zoom),o?r[1]:de(n,r[1],this.transform.zoom),0],c=new Float32Array(16);return t.translate(c,e,u),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 l=0;l<3;l++){for(var u=Number.MAX_VALUE,c=-Number.MAX_VALUE,h=0;h<e.points.length;h++){var d=e.points[h][l]-this.min[l];u=Math.min(u,d),c=Math.max(c,d)}if(c<0||u>this.max[l]-this.min[l])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)),l=Math.floor(Math.max(r.x,i.x,o.x,a.x)),u=s-1;u<=l+1;u++)0!==u&&n.push(new t.UnwrappedTileID(u,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),l=e.minzoom||0;this.pitch<=60&&this._edgeInsets.top<.1&&(l=n);var u=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=[],d=n,f=e.reparseOverscaled?r:n;if(this._renderWorldCopies)for(var p=1;p<=3;p++)c.push(u(-p)),c.push(u(p));for(c.push(u(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===d||w>3+(1<<d-g.zoom)-2&&g.zoom>=l)h.push({tileID:new t.OverscaledTileID(g.zoom===d?f: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,l=n[2]/i,u=r[2]/o,c=l===u?0:(0-l)/(u-l);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,l=t.identity(new Float64Array(16));return t.translate(l,l,[s*a,o.y*a,0]),t.scale(l,l,[a/t.EXTENT,a/t.EXTENT,1]),t.multiply(l,n?this.alignedProjMatrix:this.projMatrix,l),i[r]=new Float32Array(l),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,l=180,u=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<u.y?u.y/(a-o):0}if(this.lngRange){var d=this.lngRange;s=t.mercatorXfromLng(d[0])*this.worldSize,n=(l=t.mercatorXfromLng(d[1])*this.worldSize)-s<u.x?u.x/(l-s):0}var f=this.point,p=Math.max(n||0,e||0);if(p)return this.center=this.unproject(new t.Point(n?(l+s)/2:f.x,e?(a+o)/2:f.y)),this.zoom+=this.scaleZoom(p),this._unmodified=c,void(this._constraining=!1);if(this.latRange){var g=f.y,v=u.y/2;g-v<o&&(i=o+v),g+v>a&&(i=a-v)}if(this.lngRange){var m=f.x,y=u.x/2;m-y<s&&(r=s+y),m+y>l&&(r=l-y)}void 0===r&&void 0===i||(this.center=this.unproject(new t.Point(void 0!==r?r:f.x,void 0!==i?i:f.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,l=1.01*(Math.cos(Math.PI/2-this._pitch)*i+this.cameraToCenterDistance),u=this.height/50,c=new Float64Array(16);t.perspective(c,this._fov,this.width/this.height,u,l),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,d=this.height%2/2,f=Math.cos(this.angle),p=Math.sin(this.angle),g=a-Math.round(a)+f*h+p*d,v=s-Math.round(s)+f*d+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,l=e;s<l.length;s+=1){var u=l[s];r=Math.min(r,u.x),i=Math.min(i,u.y),o=Math.max(o,u.x),a=Math.max(a,u.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,l=this._map.getBearing(),u=this._map.getPitch(),c="";if(c+=e?"/"+a+"/"+s+"/"+r:r+"/"+s+"/"+a,(l||u)&&(c+="/"+Math.round(10*l)/10),u&&(c+="/"+Math.round(u)),this._hashName){var h=this._hashName,d=!1,f=t.window.location.hash.slice(1).split("&").map((function(t){var e=t.split("=")[0];return e===h?(d=!0,e+"="+c):t})).filter((function(t){return t}));return d||f.push(h+"="+c),"#"+f.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),Mr=t.extend({deceleration:20,maxSpeed:1400},Er),Ar=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),l=Math.abs(s)/(a*o);return{easing:r.easing,duration:1e3*l,amount:s*(l/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 l=Pr(n.pan.mag(),a,t.extend({},Tr,e||{}));s.offset=n.pan.mult(l.amount/n.pan.mag()),s.center=this._map.transform.center,kr(s,l)}if(n.zoom){var u=Pr(n.zoom,a,Mr);s.zoom=this._map.transform.zoom+u.amount,kr(s,u)}if(n.bearing){var c=Pr(n.bearing,a,Ar);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 d=void 0===n.pinchAround?n.around:n.pinchAround;s.around=d?this._map.unproject(d):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),l=i.unproject(s);e.call(this,r,t.extend({point:s,lngLat:l,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),Dr=function(e){function r(r,i,o){var a="touchend"===r?o.changedTouches:o.touches,s=n.touchPos(i.getCanvasContainer(),a),l=s.map((function(t){return i.unproject(t)})),u=s.reduce((function(t,e,n,r){return t.add(e.div(r.length))}),new t.Point(0,0)),c=i.unproject(u);e.call(this,r,{points:s,point:u,lngLats:l,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),Rr=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 Rr(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 Dr(t.type,this._map,t))},Nr.prototype.touchmove=function(t){this._map.fire(new Dr(t.type,this._map,t))},Nr.prototype.touchend=function(t){this._map.fire(new Dr(t.type,this._map,t))},Nr.prototype.touchcancel=function(t){this._map.fire(new Dr(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 Fr=function(t){this._map=t};Fr.prototype.reset=function(){this._delayContextMenu=!1,delete this._contextMenuEvent},Fr.prototype.mousemove=function(t){this._map.fire(new Lr(t.type,this._map,t))},Fr.prototype.mousedown=function(){this._delayContextMenu=!0},Fr.prototype.mouseup=function(){this._delayContextMenu=!1,this._contextMenuEvent&&(this._map.fire(new Lr("contextmenu",this._map,this._contextMenuEvent)),delete this._contextMenuEvent)},Fr.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()},Fr.prototype.isEnabled=function(){return!0},Fr.prototype.isActive=function(){return!1},Fr.prototype.enable=function(){},Fr.prototype.disable=function(){};var Br=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}Br.prototype.isEnabled=function(){return!!this._enabled},Br.prototype.isActive=function(){return!!this._active},Br.prototype.enable=function(){this.isEnabled()||(this._enabled=!0)},Br.prototype.disable=function(){this.isEnabled()&&(this._enabled=!1)},Br.prototype.mousedown=function(t,e){this.isEnabled()&&t.shiftKey&&0===t.button&&(n.disableDrag(),this._startPos=this._lastPos=e,this._active=!0)},Br.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),l=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=l-s+"px"}}},Br.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)}},Br.prototype.keydown=function(t){this._active&&27===t.keyCode&&(this.reset(),this._fireEvent("boxzoomcancel",t))},Br.prototype.blur=function(){this.reset()},Br.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},Br.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),$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=.8*(e.x-t.x);if(n)return this._active=!0,{bearingDelta:n}},e.prototype.contextmenu=function(t){t.preventDefault()},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=-.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 l in i){var u=i[l],c=this._touches[l];c&&(o._add(u),a._add(u.sub(c)),s++,i[l]=u)}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 Jr(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 Qr=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(Jr(this._distance,this._startDistance))<.1))return this._active=!0,{zoomDelta:Jr(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 l=s.getZoom();s.easeTo({duration:300,easeId:"keyboardHandler",easing:ai,zoom:n?Math.round(l)+n*(t.shiftKey?2:1):l,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,l=this._startZoom,u=this._easing,c=!1;if("wheel"===this._type&&l&&u){var h=Math.min((t.browser.now()-this._lastWheelEventTime)/200,1),d=u(h);a=t.number(l,s,d),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 li=function(t,e){this._clickZoom=t,this._tapZoom=e};li.prototype.enable=function(){this._clickZoom.enable(),this._tapZoom.enable()},li.prototype.disable=function(){this._clickZoom.disable(),this._tapZoom.disable()},li.prototype.isEnabled=function(){return this._clickZoom.isEnabled()&&this._tapZoom.isEnabled()},li.prototype.isActive=function(){return this._clickZoom.isActive()||this._tapZoom.isActive()};var ui=function(){this.reset()};ui.prototype.reset=function(){this._active=!1},ui.prototype.blur=function(){this.reset()},ui.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})}}},ui.prototype.enable=function(){this._enabled=!0},ui.prototype.disable=function(){this._enabled=!1,this.reset()},ui.prototype.isEnabled=function(){return this._enabled},ui.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 di=function(t,e,n){this._pitchWithRotate=t.pitchWithRotate,this._mouseRotate=e,this._mousePitch=n};di.prototype.enable=function(){this._mouseRotate.enable(),this._pitchWithRotate&&this._mousePitch.enable()},di.prototype.disable=function(){this._mouseRotate.disable(),this._mousePitch.disable()},di.prototype.isEnabled=function(){return this._mouseRotate.isEnabled()&&(!this._pitchWithRotate||this._mousePitch.isEnabled())},di.prototype.isActive=function(){return this._mouseRotate.isActive()||this._mousePitch.isActive()};var fi=function(t,e,n,r){this._el=t,this._touchZoom=e,this._touchRotate=n,this._tapDragZoom=r,this._rotationDisabled=!1,this._enabled=!0};fi.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")},fi.prototype.disable=function(){this._touchZoom.disable(),this._touchRotate.disable(),this._tapDragZoom.disable(),this._el.classList.remove("mapboxgl-touch-zoom-rotate")},fi.prototype.isEnabled=function(){return this._touchZoom.isEnabled()&&(this._rotationDisabled||this._touchRotate.isEnabled())&&this._tapDragZoom.isEnabled()},fi.prototype.isActive=function(){return this._touchZoom.isActive()||this._touchRotate.isActive()||this._tapDragZoom.isActive()},fi.prototype.disableRotation=function(){this._rotationDisabled=!0,this._touchRotate.disable()},fi.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],l=s[0];n.addEventListener(l,s[1],l===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 Br(e,t);this._add("boxZoom",r);var i=new Gr,o=new ui;e.doubleClickZoom=new li(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 l=new $r(t),u=new Xr(t);e.dragRotate=new di(t,l,u),this._add("mouseRotate",l,["mousePitch"]),this._add("mousePitch",u,["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 d=new ei,f=new Qr;e.touchZoomRotate=new fi(n,f,d,a),this._add("touchRotate",d,["touchPan","touchZoom"]),this._add("touchZoom",f,["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 Fr(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,l=s?n.touchPos(this._el,s):n.mousePos(this._el,t),u=0,c=this._handlers;u<c.length;u+=1){var h=c[u],d=h.handlerName,f=h.handler,p=h.allowed;if(f.isEnabled()){var g=void 0;this._blockedByActive(a,p,d)?f.reset():f[e||t.type]&&(g=f[e||t.type](t,l,s),this.mergeHandlerResult(i,o,g,d,r),g&&g.needsRenderFrame&&this._triggerRenderFrame()),(g||f.isActive())&&(a[d]=f)}}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],l=a[1],u=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,l),t.extend(r,u)}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,l=t.pitchDelta,u=t.around,c=t.pinchAround;void 0!==c&&(u=c),r._stop(!0),u=u||r.transform.centerPoint;var h=i.pointLocation(o?u.sub(o):u);s&&(i.bearing+=s),l&&(i.pitch+=l),a&&(i.zoom+=a),i.setLocationAtPoint(h,u),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 l in e)this._eventsInProgress[l]||(s[l+"start"]=e[l].originalEvent),this._eventsInProgress[l]=e[l];for(var u in!o&&a&&this._fireEvent("movestart",a.originalEvent),s)this._fireEvent(u,s[u]);for(var c in a&&this._fireEvent("move",a.originalEvent),e)this._fireEvent(c,e[c].originalEvent);var h,d={};for(var f in this._eventsInProgress){var p=this._eventsInProgress[f],g=p.handlerName,v=p.originalEvent;this._handlersById[g].isActive()||(delete this._eventsInProgress[f],d[f+"end"]=h=n[g]||v)}for(var m in d)this._fireEvent(m,d[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,l=s.padding,u=s.project(t.LngLat.convert(e)),c=s.project(t.LngLat.convert(n)),h=u.rotate(-r*Math.PI/180),d=c.rotate(-r*Math.PI/180),f=new t.Point(Math.max(h.x,d.x),Math.max(h.y,d.y)),p=new t.Point(Math.min(h.x,d.x),Math.min(h.y,d.y)),g=f.sub(p),v=(s.width-(l.left+l.right+i.padding.left+i.padding.right))/g.x,m=(s.height-(l.top+l.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(u.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(),l=this.getPadding(),u="zoom"in e?+e.zoom:o,c="bearing"in e?this._normalizeBearing(e.bearing,a):a,h="pitch"in e?+e.pitch:s,d="padding"in e?e.padding:i.padding,f=t.Point.convert(e.offset),p=i.centerPoint.add(f),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(u-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||u!==o,this._rotating=this._rotating||a!==c,this._pitching=this._pitching||h!==s,this._padding=!i.isPaddingEqual(d),this._easeId=e.easeId,this._prepareEase(n,e.noMoveStart,w),this._ease((function(e){if(r._zooming&&(i.zoom=t.number(o,u,e)),r._rotating&&(i.bearing=t.number(a,c,e)),r._pitching&&(i.pitch=t.number(s,h,e)),r._padding&&(i.interpolatePadding(l,d,e),p=i.centerPoint.add(f)),m)i.setLocationAtPoint(m,y);else{var g=i.zoomScale(i.zoom-o),v=u>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(),l=this.getPitch(),u=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,d="pitch"in e?+e.pitch:l,f="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 M(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 A(t){return(Math.exp(t)-Math.exp(-t))/2}function I(t){return(Math.exp(t)+Math.exp(-t))/2}var j=M(0),k=function(t){return I(j)/I(j+x*t)},P=function(t){return w*((I(j)*(A(e=j+x*t)/I(e))-A(j))/T)/S;var e},L=(M(1)-j)/x;if(Math.abs(S)<1e-6||!isFinite(L)){if(Math.abs(w-O)<1e-6)return this.easeTo(e,n);var D=O<w?-1:1;L=Math.abs(Math.log(O/w))/x,P=function(){return 0},k=function(t){return Math.exp(D*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=d!==l,this._padding=!o.isPaddingEqual(f),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(l,d,e)),r._padding&&(o.interpolatePadding(u,f,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 l in s.delegates)i.off(l,s.delegates[l]);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,l=r.content;if(this._lazyInitEmptyStyle(),n instanceof Oi||Ci&&n instanceof Ci){var u=t.browser.getImageData(n);this.style.addImage(e,{data:new t.RGBAImage({width:u.width,height:u.height},u.data),pixelRatio:i,stretchX:a,stretchY:s,content:l,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:l,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,l=t.browser.now();this.style.zoomHistory.update(s,l);var u=new t.EvaluationParameters(s,{now:l,fadeDuration:this._fadeDuration,zoomHistory:this.style.zoomHistory,transition:this.style.getTransition()}),c=u.crossFadingFactor();1===c&&c===this._crossFadingFactor||(a=!0,this._crossFadingFactor=c),this.style.update(u)}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 d=this.painter.collectGpuTimers();setTimeout((function(){var e=r.painter.queryGpuTimers(d);r.fire(new t.Event("gpu-timing-layer",{layerTimes:e}))}),50)}var f=this._sourcesDirty||this._styleDirty||this._placementDirty;return f||this._repaint?this.triggerRepaint():!this.isMoving()&&this.loaded()&&this.fire(new t.Event("idle")),!this._loaded||this._fullyLoaded||f||(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(),Mi(this._canvasContainer),Mi(this._controlContainer),Mi(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 Mi(t){t.parentNode&&t.parentNode.removeChild(t)}var Ai={showCompass:!0,showZoom:!0,visualizePitch:!1},Ii=function(e){var r=this;this.options=t.extend({},Ai,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 $r({clickTolerance:e.dragRotate._mouseRotate._clickTolerance}),this.map=e,i&&(this.mousePitch=new Xr({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 Di,Ri=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 l=n.createNS("http://www.w3.org/2000/svg","g");l.setAttributeNS(null,"transform","translate(3.0, 29.0)"),l.setAttributeNS(null,"fill","#000000");for(var u=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"}];u<c.length;u+=1){var h=c[u],d=n.createNS("http://www.w3.org/2000/svg","ellipse");d.setAttributeNS(null,"opacity","0.04"),d.setAttributeNS(null,"cx","10.5"),d.setAttributeNS(null,"cy","5.80029008"),d.setAttributeNS(null,"rx",h.rx),d.setAttributeNS(null,"ry",h.ry),l.appendChild(d)}var f=n.createNS("http://www.w3.org/2000/svg","g");f.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"),f.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(l),s.appendChild(f),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},Fi=0,Bi=!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!==Di?r(Di):void 0!==t.window.navigator.permissions?t.window.navigator.permissions.query({name:"geolocation"}).then((function(t){r(Di="denied"!==t.state)})):r(Di=!!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,Fi=0,Bi=!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&&Bi)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 Ri(this._dotElement),this._circleElement=n.create("div","mapboxgl-user-location-accuracy-circle"),this._accuracyCircleMarker=new Ri({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":Fi--,Bi=!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"),++Fi>1?(e={maximumAge:6e5,timeout:0},Bi=!0):(e=this.options.positionOptions,Bi=!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 l=3.2808*s;l>5280?Hi(e,r,l/5280,t._getUIString("ScaleControl.Miles")):Hi(e,r,l,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+" "+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"},$i=["a[href]","[tabindex]:not([tabindex='-1'])","[contenteditable]:not([contenteditable='false'])","button:not([disabled])","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].join(", "),Xi=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="×",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,l=this._container.offsetWidth,u=this._container.offsetHeight;s=i.y+a.bottom.y<u?["top"]:i.y>this._map.transform.height-u?["bottom"]:[],i.x<l/2?s.push("left"):i.x>this._map.transform.width-l/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($i);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:Xi,Marker:Ri,Style:Ge,LngLat:t.LngLat,LngLatBounds:t.LngLatBounds,Point:t.Point,MercatorCoordinate:t.MercatorCoordinate,Evented:t.Evented,config:t.config,prewarm:function(){Ft().acquire(Lt)},clearPrewarmedResources:function(){var t=Rt;t&&(t.isPreloaded()&&1===t.numActive()?(t.release(Lt),Rt=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 Dt.workerCount},set workerCount(t){Dt.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(316);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(316),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(223);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(803),i=n(1977),o=n(1978),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(59),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(658).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(455),s=n(383),l=n(286),u=n(392),c=n(116),h=n(82),d=n(78),f=n(359),p=n(398),g=n(155),v=n(488),m=n(527),y=n(1526),b=n(256),_=n(1527),x=n(1528),w=n(489),O=n(1529),S=n(1530),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,l=e.canvas,c=e.backgroundGroup,h=e.middleGroup,d=e.foregroundGroup,f=e.region,p=void 0===f?{start:{x:0,y:0},end:{x:1,y:1}}:f,g=e.padding,y=e.appendPadding,b=e.theme,w=e.options,O=e.limitInPlot,S=e.syncViewPadding;return n.parent=s,n.canvas=l,n.backgroundGroup=c,n.middleGroup=h,n.foregroundGroup=d,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(u.getTheme)("default"),Object(v.createTheme)(b)):Object(u.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(u.getTheme)(t),this},e.prototype.interaction=function(t,e){var n=this.interactions[t];n&&n.destroy();var r=Object(l.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(d.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,l=0,u=a.length;l<u;l++){var c=a[l];(s=Object(f.findDataByPoint)(t,c,o))&&n.push(s)}}var h=this.views;for(r=0,i=h.length;r<i;r++){var d=h[r].getSnapRecords(t);n=n.concat(d)}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();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,l=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(l)||(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 l={coordinate:e,scaleDefs:n,data:this.filteredData,theme:this.themeObject,isDataChanged:this.isDataChanged,isCoordinateChanged:this.isCoordinateChanged};t?s.update(l):s.init(l)}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,l=t.length;s<l;s++){var u=t[s],c=o[u],h=this.getScaleKey(u);this.createScale(u,e.includes(u)?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(d.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(d.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,l=e.isIdentity;(s||l)&&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=0;e<this.getComponents().length;e++){this.getComponents()[e].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,l=e.views,u=void 0===l?[]:l,c=e.annotations,h=void 0===c?[]:c,d=e.coordinate,f=e.events,p=e.facets;this.coordinateController?d&&this.coordinateController.update(d):this.coordinateController=new y.default(d);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<u.length;w++){var O=u[w];this.createView(O)}for(var S=this.getController("annotation"),C=0;C<h.length;C++){var E=h[C];S.annotation(E)}f&&Object(i.each)(f,(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 l})),n.d(e,"renderGaugeStatistic",(function(){return u}));var r=n(2),i=n(1),o=n(4);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,l=void 0===s?0:s,u=r.shadowOffsetX,c=void 0===u?0:u,h=r.shadowOffsetY,d=void 0===h?0:h;e["text-shadow"]=""+[a,c+"px",d+"px",l+"px"].join(" ");var f=Object(o.pick)(t,n),p=f.stroke,g=f.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 l=function(t,e,n){var l=e.statistic,u=e.plotType,c=l.title,h=l.content;[c,h].forEach((function(e,l){if(e){var d="";d=0===l?h?"translate(-50%, -100%)":"translate(-50%, -50%)":c?"translate(-50%, 0)":"translate(-50%, -50%)";var f=Object(i.isFunction)(e.style)?e.style(n):e.style;t.annotation().html(Object(r.__assign)({position:["50%","50%"],html:function(t,o){var l=o.getCoordinate(),c=0;if("pie"===u||"ring-progress"===u)c=l.getRadius()*l.innerRadius*2;else if("liquid"===u){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=l.getWidth());s(t,Object(r.__assign)({width:c+"px",transform:d},a(f)));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===l?"top":"bottom")+"-statistic"},Object(o.pick)(e,["offsetX","offsetY","rotate","style","formatter"])))}}))},u=function(t,e,n){var l=e.statistic;[l.title,l.content].forEach((function(e){if(e){var l=Object(i.isFunction)(e.style)?e.style(n):e.style;t.annotation().html(Object(r.__assign)({position:["50%","100%"],html:function(t,o){var u=o.getCoordinate(),c=o.views[0].getCoordinate(),h=c.getCenter(),d=c.getRadius(),f=Math.max(Math.sin(c.startAngle),Math.sin(c.endAngle))*d,p=h.y+f-u.y.start-parseFloat(Object(i.get)(l,"fontSize",0)),g=u.getRadius()*u.innerRadius*2;s(t,Object(r.__assign)({width:g+"px",transform:"translate(-50%, "+p+"px)"},a(l)));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 u}));var r=n(2),i=n(1),o=n(26),a=n(4),s=n(721),l=n(73);n.d(e,"FUNNEL_CONVERSATION_FIELD",(function(){return l.FUNNEL_CONVERSATION}));var u=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 l.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=l.FUNNEL_CONVERSATION,e.PERCENT_FIELD=l.FUNNEL_PERCENT,e.TOTAL_PERCENT_FIELD=l.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(59),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,l=Math.cos(o),u=Math.sin(o);t.moveTo(l*i+n,u*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(618),i=n(1495);function o(t,e){void 0===e&&(e=!1);for(var n,o,s=Object(r.default)(t),l={x1:0,y1:0,x2:0,y2:0,x:0,y:0,qx:null,qy:null},u=[],c="",h=s.length,d=[],f=0;f<h;f+=1)s[f]&&(c=s[f][0]),u[f]=c,s[f]=Object(i.segmentToCubic)(s[f],l),a(s,u,f),h=s.length,"Z"===c&&d.push(f),o=(n=s[f]).length,l.x1=+n[o-2],l.y1=+n[o-1],l.x2=+n[o-4]||l.x1,l.y2=+n[o-3]||l.y1;return e?[s,d]: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 l=t[s],u=t[(s+1)%a];if(i(l,u,[e,n]))return!0;r(l[1]-n)>0!=r(u[1]-n)>0&&r(e-(n-l[1])*(l[0]-u[0])/(l[1]-u[1])-l[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(357).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(357).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(56);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),l=e[4],u=e[5],c=t[0],h=t[1],d=e[6],f=e[7],p=Math.cos(s)*(c-d)/2+Math.sin(s)*(h-f)/2,g=-1*Math.sin(s)*(c-d)/2+Math.cos(s)*(h-f)/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;l===u&&(y*=-1),isNaN(y)&&(y=0);var b=i?y*n*g/i:0,_=n?y*-i*p/n:0,x=(c+d)/2+Math.cos(s)*b-Math.sin(s)*_,w=(h+f)/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===u&&E>0&&(E-=2*Math.PI),1===u&&E<0&&(E+=2*Math.PI),{cx:x,cy:w,rx:Object(r.isSamePoint)(t,[d,f])?0:n,ry:Object(r.isSamePoint)(t,[d,f])?0:i,startAngle:C,endAngle:C+E,xRotation:s,arcFlag:l,sweepFlag:u}}},function(t,e,n){"use strict";n.r(e);var r=n(1137);n.d(e,"cluster",(function(){return r.default}));var i=n(306);n.d(e,"hierarchy",(function(){return i.default}));var o=n(822);n.d(e,"pack",(function(){return o.default}));var a=n(644);n.d(e,"packSiblings",(function(){return a.default}));var s=n(645);n.d(e,"packEnclose",(function(){return s.default}));var l=n(821);n.d(e,"partition",(function(){return l.default}));var u=n(1138);n.d(e,"stratify",(function(){return u.default}));var c=n(1139);n.d(e,"tree",(function(){return c.default}));var h=n(823);n.d(e,"treemap",(function(){return h.default}));var d=n(1140);n.d(e,"treemapBinary",(function(){return d.default}));var f=n(290);n.d(e,"treemapDice",(function(){return f.default}));var p=n(355);n.d(e,"treemapSlice",(function(){return p.default}));var g=n(1141);n.d(e,"treemapSliceDice",(function(){return g.default}));var v=n(393);n.d(e,"treemapSquarify",(function(){return v.default}));var m=n(1142);n.d(e,"treemapResquarify",(function(){return m.default}))},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 l}));var r=n(49),i=n(825),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&&!l(e)){var s=e.___zrEVENTSAVED||(e.___zrEVENTSAVED={}),u=function(t,e,n){for(var r=n?"invTrans":"trans",o=e[r],a=e.srcCoords,s=[],l=[],u=!0,c=0;c<4;c++){var h=t[c].getBoundingClientRect(),d=2*c,f=h.left,p=h.top;s.push(f,p),u=u&&a&&f===a[d]&&p===a[d+1],l.push(t[c].offsetLeft,t[c].offsetTop)}return u&&o?o:(e.srcCoords=s,e[r]=n?Object(i.buildTransformer)(l,s):Object(i.buildTransformer)(s,l))}(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,l=o%2,u=(o>>1)%2;s.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",r[l]+":0",i[u]+":0",r[1-l]+":auto",i[1-u]+":auto",""].join("!important;"),t.appendChild(a),n.push(a)}return n}(e,s),s,a);if(u)return u(t,n,o),!0}return!1}function l(t){return"CANVAS"===t.nodeName.toUpperCase()}},function(t,e,n){"use strict";var r;n.r(e),r=n(49).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(52),i=[0,0],o=[0,0],a=new r.default,s=new r.default,l=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,l=a+t.height;if(n[0].set(o,a),n[1].set(s,a),n[2].set(s,l),n[3].set(o,l),e)for(var u=0;u<4;u++)n[u].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(u=0;u<2;u++)this._origin[u]=i[u].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,l){for(var u=!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(u=!1,s)return u;var d=Math.abs(o[0]-i[1]),f=Math.abs(i[0]-o[1]);Math.min(d,f)>a.len()&&(d<f?r.default.scale(a,h,-d*l):r.default.scale(a,h,f*l))}else if(n){d=Math.abs(o[0]-i[1]),f=Math.abs(i[0]-o[1]);Math.min(d,f)<n.len()&&(d<f?r.default.scale(n,h,d*l):r.default.scale(n,h,-f*l))}}return u},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,l=1;l<e.length;l++){var u=e[l].dot(r)+i[t];a=Math.min(u,a),s=Math.max(u,s)}n[0]=a,n[1]=s},t}();e.default=l},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(211),o=n(536),a=n(113),s=n(0),l=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 l=0;i<o;++i){for(;null!=r[l];)l++;n.push(l),r[l]=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(l),e.default=l},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 d})),n.d(e,"ECPolygon",(function(){return p}));var r=n(5),i=n(36),o=n(138),a=n(47),s=Math.min,l=Math.max;function u(t,e){return isNaN(t)||isNaN(e)}function c(t,e,n,r,i,o,a,c,h){for(var d,f,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(u(_,x)){if(h){y+=o;continue}break}if(y===n)t[o>0?"moveTo":"lineTo"](_,x),p=_,g=x;else{var w=_-d,O=x-f;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])-d,O=(x=e[2*y+1])-f;var T=b+1;if(h)for(;u(C,E)&&T<r;)T++,C=e[2*(S+=o)],E=e[2*S+1];var M=.5,A=0,I=0,j=void 0,k=void 0;if(T>=r||u(C,E))v=_,m=x;else{A=C-d,I=E-f;var P=_-d,L=C-_,D=x-f,R=E-x,N=void 0,F=void 0;if("x"===c){var B=A>0?1:-1;v=_-B*(N=Math.abs(P))*a,m=x,j=_+B*(F=Math.abs(L))*a,k=x}else if("y"===c){var z=I>0?1:-1;v=_,m=x-z*(N=Math.abs(D))*a,j=_,k=x+z*(F=Math.abs(R))*a}else N=Math.sqrt(P*P+D*D),v=_-A*a*(1-(M=(F=Math.sqrt(L*L+R*R))/(F+N))),m=x-I*a*(1-M),k=x+I*a*M,j=s(j=_+A*a*M,l(C,_)),k=s(k,l(E,x)),j=l(j,s(C,_)),m=x-(I=(k=l(k,s(E,x)))-x)*N/F,v=s(v=_-(A=j-_)*N/F,l(d,_)),m=s(m,l(f,x)),j=_+(A=_-(v=l(v,s(d,_))))*F/N,k=x+(I=x-(m=l(m,s(f,x))))*F/N}t.bezierCurveTo(p,g,v,m,_,x),p=j,g=k}else t.lineTo(_,x)}d=_,f=x,y+=o}return b}var h=function(){this.smooth=0,this.smoothConstraint=!0},d=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&&u(n[2*i-2],n[2*i-1]);i--);for(;r<i&&u(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,l="x"===e,u=[],c=0;c<i.length;){var h=void 0,d=void 0,f=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++],d=i[c++],(m=l?(t-n)/(h-n):(t-r)/(d-r))<=1&&m>=0){var y=l?(d-r)*m+r:(h-n)*m+n;return l?[t,y]:[y,t]}n=h,r=d;break;case s.C:h=i[c++],d=i[c++],f=i[c++],p=i[c++],g=i[c++],v=i[c++];var b=l?Object(a.cubicRootAt)(n,h,f,g,t,u):Object(a.cubicRootAt)(r,d,p,v,t,u);if(b>0)for(var _=0;_<b;_++){var x=u[_];if(x<=1&&x>=0){y=l?Object(a.cubicAt)(r,d,p,v,x):Object(a.cubicAt)(n,h,f,g,x);return l?[t,y]:[y,t]}}n=g,r=v}}},e}(i.default),f=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 f},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&&u(n[2*o-2],n[2*o-1]);o--);for(;i<o&&u(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,"simpleLayout",(function(){return a})),n.d(e,"simpleLayoutEdge",(function(){return s}));var r=n(20),i=n(0),o=n(335);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()),l=r.clone(t.node2.getLayout()),u=[s,l];+a&&u.push([(s[0]+l[0])/2-(s[1]-l[1])*a,(s[1]+l[1])/2-(l[0]-s[0])*a]),t.setLayout(u)}))}},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,l=n.getRect(),u=[l.x,l.x+l.width,l.y,l.y+l.height],c={horizontal:{top:u[2],bottom:u[3]},vertical:{left:u[0],right:u[1]}};o.position=["vertical"===s?c.vertical[a]:u[0],"horizontal"===s?c.horizontal[a]:u[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(48),o=n(70);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(14),o=n(371),a=n(10),s=["grid","xAxis","yAxis","geo","graph","polar","radiusAxis","angleAxis","bmap"],l=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 l=p[t.brushType](0,s.coordSys,t.coordRange),u=t.__rangeOffset;t.range=u?v[t.brushType](l.values,u.offset,(n=l.xyMinMax,r=u.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)):l.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<d.length;s++)if(d[s](r,o))return o}return!0},t}();function u(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={},l={};(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),l[e.id]=!0})),Object(r.each)(o,(function(t){a.set(t.id,t),s[t.id]=!0,l[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:f.grid,xAxisDeclared:s[t.id],yAxisDeclared:l[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:f.geo})}))}},d=[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}],f={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=[u([i[0],o[0]]),u([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=u(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=l},function(t,e,n){"use strict";n.r(e);var r=n(5),i=n(0),o=n(57),a=n(10),s=n(40),l=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=l},function(t,e,n){"use strict";n.r(e),n.d(e,"setViewInfoToCoordSysRecord",(function(){return u})),n.d(e,"disposeCoordSysRecordIfNeeded",(function(){return c})),n.d(e,"installDataZoomRoamProcessor",(function(){return p}));var r=n(296),i=n(130),o=n(10),a=n(0),s=n(156),l=Object(o.makeInner)();function u(t,e,n){l(t).coordSysRecordMap.each((function(t){var r=t.dataZoomInfoMap.get(e.uid);r&&(r.getRange=n)}))}function c(t,e){for(var n=l(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 u=e.uid;s.get(u)&&(s.removeKey(u),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 d(t,e){t.isDisposed()||t.dispatchAction({type:"dataZoom",animation:{easing:"cubicOut",duration:100},batch:e})}function f(t,e,n,r){return t.coordinateSystem.containPoint([n,r])}function p(t){t.registerProcessor(t.PRIORITY.PROCESSOR.FILTER,(function(t,e){var n=l(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)(f,e),dispatchAction:Object(a.curry)(d,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 l}));var r=n(47),i=n(138).default.CMD;function o(t,e){return Math.abs(t-e)<1e-5}function a(t){var e,n,r,a,s,l=t.data,u=t.len(),c=[],h=0,d=0,f=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),l=4*Math.tan(s/4)/3,u=n<t?-1:1,c=Math.cos(t),h=Math.sin(t),d=Math.cos(n),f=Math.sin(n),p=c*o+r,g=h*a+i,v=d*o+r,m=f*a+i,y=o*l*u,b=a*l*u;e.push(p-y*h,g+b*c,v+y*f,m-b*d,v,m)}for(var y=0;y<u;){var b=l[y++],_=1===y;switch(_&&(f=h=l[y],p=d=l[y+1],b!==i.L&&b!==i.C&&b!==i.Q||(e=[f,p])),b){case i.M:h=f=l[y++],d=p=l[y++],g(f,p);break;case i.L:v(h,d,n=l[y++],r=l[y++]),h=n,d=r;break;case i.C:e.push(l[y++],l[y++],l[y++],l[y++],h=l[y++],d=l[y++]);break;case i.Q:n=l[y++],r=l[y++],a=l[y++],s=l[y++],e.push(h+2/3*(n-h),d+2/3*(r-d),a+2/3*(n-a),s+2/3*(r-s),a,s),h=a,d=s;break;case i.A:var x=l[y++],w=l[y++],O=l[y++],S=l[y++],C=l[y++],E=l[y++]+C;y+=1;var T=!l[y++];n=Math.cos(C)*O+x,r=Math.sin(C)*S+w,_?g(f=n,p=r):v(h,d,n,r),h=Math.cos(E)*O+x,d=Math.sin(E)*S+w;for(var M=(T?-1:1)*Math.PI/2,A=C;T?A>E:A<E;A+=M){m(A,T?Math.max(A+M,E):Math.min(A+M,E),x,w,O,S)}break;case i.R:f=h=l[y++],p=d=l[y++],n=f+l[y++],r=p+l[y++],g(n,p),v(n,p,n,r),v(n,r,f,r),v(f,r,f,p),v(f,p,n,p);break;case i.Z:e&&v(h,d,f,p),h=f,d=p}}return e&&e.length>2&&c.push(e),c}function s(t,e,n,i,a,l,u,c,h,d){if(o(t,n)&&o(e,i)&&o(a,u)&&o(l,c))h.push(u,c);else{var f=2/d,p=f*f,g=u-t,v=c-e,m=Math.sqrt(g*g+v*v);g/=m,v/=m;var y=n-t,b=i-e,_=a-u,x=l-c,w=y*y+b*b,O=_*_+x*x;if(w<p&&O<p)h.push(u,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(u,c);else{var E=[],T=[];Object(r.cubicSubdivide)(t,n,a,u,.5,E),Object(r.cubicSubdivide)(e,i,l,c,.5,T),s(E[0],T[0],E[1],T[1],E[2],T[2],E[3],T[3],h,d),s(E[4],T[4],E[5],T[5],E[6],T[6],E[7],T[7],h,d)}}}}function l(t,e){var n=a(t),r=[];e=e||1;for(var i=0;i<n.length;i++){var o=n[i],l=[],u=o[0],c=o[1];l.push(u,c);for(var h=2;h<o.length;){var d=o[h++],f=o[h++],p=o[h++],g=o[h++],v=o[h++],m=o[h++];s(u,c,d,f,p,g,v,m,l,e),u=v,c=m}r.push(l)}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(83);function i(t,e,n,i,o,a){var s,l=1/0,u=[n,i],c=20;a&&a>200&&(c=a/10);for(var h=1/c,d=h/10,f=0;f<=c;f++){var p=f*h,g=[o.apply(null,t.concat([p])),o.apply(null,e.concat([p]))];(b=Object(r.distance)(u[0],u[1],g[0],g[1]))<l&&(s=p,l=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]}}l=1/0;for(f=0;f<32&&!(d<1e-4);f++){var m=s-d,y=s+d,b=(g=[o.apply(null,t.concat([m])),o.apply(null,e.concat([m]))],Object(r.distance)(u[0],u[1],g[0],g[1]));if(m>=0&&b<l)s=m,l=b;else{var _=[o.apply(null,t.concat([y])),o.apply(null,e.concat([y]))],x=Object(r.distance)(u[0],u[1],_[0],_[1]);y<=1&&x<l?(s=y,l=x):d*=.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],l=t[(o+1)%i],u=e[(o+1)%i];n+=Object(r.distance)(a,s,l,u)}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 f}));var r=n(2),i=n(1),o=n(9),a=n(4),s=n(34),l=n(226),u=n(305);function c(t){var e=t.chart,n=t.options,o=n.data,u=n.areaStyle,c=n.color,h=n.point,d=n.line,f=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(l.getDataWhetherPercentage)(o,g,p,g,f);e.data(_);var x=f?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:u},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:d&&Object(r.__assign)({color:c},d),sizeField:m,state:null==d?void 0:d.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 l=i.callback,u=Object(r.__rest)(i,["callback"]);s.label({fields:[o],callback:l,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)(u))})}else s.label(!1);return t}function d(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 f(t){return Object(a.flow)(o.theme,Object(o.pattern)("areaStyle"),Object(o.transformations)("rect"),c,u.meta,d,u.axis,u.legend,o.tooltip,h,o.slider,Object(o.annotation)(),o.interaction,o.animation,o.limitInPlot)(t)}n.d(e,"meta",(function(){return u.meta}))},function(t,e,n){"use strict";n.r(e),n.d(e,"geometry",(function(){return h})),n.d(e,"adaptor",(function(){return d}));var r=n(2),i=n(9),o=n(4),a=n(271);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"},l=!1!==a&&Object(r.__assign)({position:s[(null==a?void 0:a.position)||"left"]},a),u=!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:l,yAxis:u})})}function l(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 u(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,l=n.maxBarWidth,u=n.barBackground;return Object(a.adaptor)({chart:e,options:Object(r.__assign)(Object(r.__assign)({},n),{columnStyle:i,columnWidthRatio:o,minColumnWidth:s,maxColumnWidth:l,columnBackground:u})},!0)}function d(t){return Object(o.flow)(s,l,u,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(9),a=n(102),s=n(34),l=n(243),u=n(275),c=n(4),h=n(713),d=n(375),f=n(820);function p(t){var e=t.chart,n=t.options,i=n.data,o=n.angleField,a=n.colorField,l=n.color,u=n.pieStyle,h=Object(c.processIllegalData)(i,o);if(Object(d.isAllZero)(h,o)){h=h.map((function(t){var e;return Object(r.__assign)(Object(r.__assign)({},t),((e={}).$$percentage$$=1/h.length,e))})),e.data(h);var f=Object(c.deepAssign)({},t,{options:{xField:"1",yField:"$$percentage$$",seriesField:a,isStack:!0,interval:{color:l,style:u},args:{zIndexReversed:!0,sortZIndex:!0}}});Object(s.interval)(f)}else{e.data(h);f=Object(c.deepAssign)({},t,{options:{xField:"1",yField:o,seriesField:a,isStack:!0,interval:{color:l,style:u},args:{zIndexReversed:!0,sortZIndex:!0}}});Object(s.interval)(f)}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,l=e.geometries[0];if(o){var u=o.callback,h=Object(r.__rest)(o,["callback"]),f=Object(c.transformLabel)(h);if(f.content){var p=f.content;f.content=function(t,n,o){var l=t[a],u=t[s],h=e.getScaleByField(s),d=null==h?void 0:h.scale(u);return Object(i.isFunction)(p)?p(Object(r.__assign)(Object(r.__assign)({},t),{percent:d}),n,o):Object(i.isString)(p)?Object(c.template)(p,{value:u,name:l,percentage:Object(i.isNumber)(d)&&!Object(i.isNil)(u)?(100*d).toFixed(2)+"%":null}):p}}var g=f.type?{inner:"",outer:"pie-outer",spider:"pie-spider"}[f.type]:"pie-outer",v=f.layout?Object(i.isArray)(f.layout)?f.layout:[f.layout]:[];f.layout=(g?[{type:g}]:[]).concat(v),l.label({fields:a?[s,a]:[s],callback:u,cfg:Object(r.__assign)(Object(r.__assign)({},f),{offset:Object(d.adaptOffset)(f.type,f.offset),type:"pie"})})}else l.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,l=Object(u.getLocale)(s);if(e&&n){var f=Object(c.deepAssign)({},h.DEFAULT_OPTIONS.statistic,n),p=f.title,g=f.content;return!1!==p&&(p=Object(c.deepAssign)({},{formatter:function(t){var e=t?t[o]:Object(i.isNil)(p.content)?l.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(d.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,l=n.data;if(!1===r)e.tooltip(r);else if(e.tooltip(Object(c.deepAssign)({},r,{shared:!1})),Object(d.isAllZero)(l,s)){var u=Object(i.get)(r,"fields"),h=Object(i.get)(r,"formatter");Object(i.isEmpty)(Object(i.get)(r,"fields"))&&(u=[o,s],h=h||function(t){return{name:t[o],value:Object(i.toString)(t[s])}}),e.geometries[0].tooltip(u.join("*"),Object(a.getMappingFunction)(u,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 l=[];(null===(n=t.cfg)||void 0===n?void 0:n.start)||(l=[{trigger:"element:mouseenter",action:f.PIE_STATISTIC+":change",arg:{statistic:a,annotations:s}}]),Object(i.each)(null===(o=t.cfg)||void 0===o?void 0:o.start,(function(t){l.push(Object(r.__assign)(Object(r.__assign)({},t),{arg:{statistic:a,annotations:s}}))})),e.interaction(t.type,Object(c.deepAssign)({},t.cfg,{start:l}))}else e.interaction(t.type,t.cfg||{})})),t}function w(t){return Object(c.flow)(Object(l.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(15),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 l})),n.d(e,"getSize",(function(){return u})),n.d(e,"processImageMask",(function(){return c})),n.d(e,"getFontSizeMapping",(function(){return h})),n.d(e,"getSingleKeyValues",(function(){return d}));var r=n(2),i=n(1),o=n(207),a=n(4),s=n(498);function l(t){var e=t.options,n=t.chart,o=n,a=o.width,l=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,M=e.placementStrategy;if(!m||!m.length)return[];var A,I=w.fontFamily,j=w.fontWeight,k=w.padding,P=w.fontSize,L=d(m,_),D=[(A=L,Math.min.apply(Math,A)),p(L)],R=m.map((function(t){return{text:t[b],value:t[_],color:t[x],datum:t}})),N={imageMask:y,font:I,fontSize:h(P,D),fontWeight:j,size:u({width:a,height:l,padding:c,appendPadding:g,autoFit:T,container:v}),padding:k,timeInterval:O,random:S,spiral:C,rotate:f(e)};if(Object(i.isFunction)(M)){var F=R.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"}),M.call(n,t,e,i))}));return F.push({text:"",value:0,x:0,y:0,opacity:0}),F.push({text:"",value:0,x:N.size[0],y:N.size[1],opacity:0}),F}return Object(s.wordCloud)(R,N)}function u(t){var e=t.width,n=t.height,r=t.container,i=t.autoFit,s=t.padding,l=t.appendPadding;if(i){var u=Object(a.getContainerSize)(r);e=u.width,n=u.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:l}),h=c[0],d=c[1],f=c[2];return[e-(c[3]+d),n-(h+f)]}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 d(t,e){return t.map((function(t){return t[e]})).filter((function(t){return"number"==typeof t&&!isNaN(t)}))}function f(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],l=1===r?0:(s-o)/(r-1);return function(){return s===o?s:Math.floor(Math.random()*r)*l}}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(4),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(4),i=n(9),o=n(34),a=n(272);n.d(e,"meta",(function(){return a.meta}));var s=n(227),l=n(166);function u(t){var e=t.chart,n=t.options,i=n.data,a=n.color,u=n.lineStyle,c=n.point,h=null==c?void 0:c.state,d=Object(s.getTinyData)(i);e.data(d);var f=Object(r.deepAssign)({},t,{options:{xField:l.X_FIELD,yField:l.Y_FIELD,line:{color:a,style:u},point:c}}),p=Object(r.deepAssign)({},f,{options:{tooltip:!1,state:h}});return Object(o.line)(f),Object(o.point)(p),e.axis(!1),e.legend(!1),t}function c(t){return Object(r.flow)(u,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(9),i=n(4),o=n(34),a=n(166),s=n(227),l=n(272);function u(t){var e=t.chart,n=t.options,r=n.data,l=n.color,u=n.columnStyle,c=n.columnWidthRatio,h=Object(s.getTinyData)(r);e.data(h);var d=Object(i.deepAssign)({},t,{options:{xField:a.X_FIELD,yField:a.Y_FIELD,widthRatio:c,interval:{style:u,color:l}}});return Object(o.interval)(d),e.axis(!1),e.legend(!1),e.interaction("element-active"),t}function c(t){return Object(i.flow)(r.theme,Object(r.pattern)("columnStyle"),u,l.meta,r.tooltip,r.animation,Object(r.annotation)())(t)}n.d(e,"meta",(function(){return l.meta}))},function(t,e,n){"use strict";n.r(e),n.d(e,"statistic",(function(){return u})),n.d(e,"adaptor",(function(){return c}));var r=n(2),i=n(1),o=n(4),a=n(9),s=n(470);function l(t){var e=t.chart,n=t.options,r=n.innerRadius,i=n.radius;return e.coordinate("theta",{innerRadius:r,radius:i}),t}function u(t,e){var n=t.chart,a=t.options,s=a.innerRadius,l=a.statistic,u=a.percent,c=a.meta;if(n.getController("annotation").clear(!0),s&&l){var h=Object(i.get)(c,["percent","formatter"])||function(t){return(100*t).toFixed(2)+"%"},d=l.content;d&&(d=Object(o.deepAssign)({},d,{content:Object(i.isNil)(d.content)?h(u):d.content})),Object(o.renderStatistic)(n,{statistic:Object(r.__assign)(Object(r.__assign)({},l),{content:d}),plotType:"ring-progress"},{percent:u})}return e&&n.render(!0),t}function c(t){return Object(o.flow)(s.geometry,Object(a.scale)({}),l,u,a.animation,a.theme,Object(a.annotation)())(t)}},function(t,e,n){"use strict";n.r(e),n.d(e,"statistic",(function(){return f})),n.d(e,"adaptor",(function(){return v}));var r=n(2),i=n(1),o=n(9),a=n(34),s=n(134),l=n(4),u=n(137),c=n(490);function h(t){var e=t.chart,n=t.options,r=n.percent,o=n.range,h=n.radius,d=n.innerRadius,f=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:u.INDICATEOR_VIEW_ID});O.data(w),O.point().position(u.PERCENT+"*1").shape(v.shape||"gauge-indicator").customInfo({defaultColor:e.getTheme().defaultColor,indicator:v}),O.coordinate("polar",{startAngle:f,endAngle:p,radius:d*h}),O.axis(u.PERCENT,g),O.scale(u.PERCENT,Object(l.pick)(g,s.AXIS_META_CONFIG_KEYS))}var S=Object(c.getRangeData)(r,n.range),C=e.createView({id:u.RANGE_VIEW_ID});C.data(S);var E=Object(i.isString)(_)?[_,u.DEFAULT_COLOR]:_;return Object(a.interval)({chart:C,options:{xField:"1",yField:u.RANGE_VALUE,seriesField:u.RANGE_TYPE,rawFields:[u.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:d,radius:h,startAngle:f,endAngle:p}).transpose(),t}function d(t){var e;return Object(l.flow)(Object(o.scale)(((e={range:{min:0,max:1,maxLimit:1,minLimit:0}})[u.PERCENT]={},e)))(t)}function f(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,u=void 0;s&&(u=Object(l.deepAssign)({},{content:(100*a).toFixed(2)+"%",style:{opacity:.75,fontSize:"30px",lineHeight:1,textAlign:"center",color:"rgba(44,53,66,0.85)"}},s)),Object(l.renderGaugeStatistic)(n,{statistic:Object(r.__assign)(Object(r.__assign)({},o),{content:u})},{percent:a})}return e&&n.render(!0),t}function p(t){var e=t.chart,n=t.options.tooltip;return n?e.tooltip(Object(l.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",u.PERCENT],0)).toFixed(2)+"%"}},n)):e.tooltip(!1),t}function g(t){return t.chart.legend(!1),t}function v(t){return Object(l.flow)(o.theme,o.animation,h,d,p,f,o.interaction,Object(o.annotation)(),g)(t)}},function(t,e,n){"use strict";n.r(e),n.d(e,"execPlotAdaptor",(function(){return F}));var r=n(1),i=n(4),o=n(305),a=n(550),s=n(271),l=n(549),u=n(548),c=n(557),h=n(554),d=n(555),f=n(272),p=n(556),g=n(470),v=n(376),m=n(715),y=n(721),b=n(719),_=n(628),x=n(635),w=n(634),O=n(633),S=n(632),C=n(646),E=n(637),T=n(639),M=n(638),A=n(642),I=n(641),j=n(636),k=n(640),P=n(520),L=n(643),D={line:o.adaptor,pie:a.adaptor,column:s.adaptor,bar:l.adaptor,area:u.adaptor,gauge:c.adaptor,"tiny-line":h.adaptor,"tiny-column":d.adaptor,"tiny-area":f.adaptor,"ring-progress":p.adaptor,progress:g.adaptor,scatter:v.adaptor,histogram:m.adaptor,funnel:y.adaptor,stock:b.adaptor},R={line:_.Line,pie:x.Pie,column:O.Column,bar:w.Bar,area:S.Area,gauge:C.Gauge,"tiny-line":E.TinyLine,"tiny-column":M.TinyColumn,"tiny-area":T.TinyArea,"ring-progress":A.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 F(t,e,n){var o=R[t];o?(0,D[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,l=0;o=e.charAt(l++);~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,l=(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 l?a.slice(0,l-3)+"===".substring(l):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(216),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";n.r(e),n.d(e,"osmLonLat2TileXY",(function(){return a})),n.d(e,"osmTileXY2LonLat",(function(){return s})),n.d(e,"tileToBounds",(function(){return l})),n.d(e,"getTileIndices",(function(){return u})),n.d(e,"getTileWarpXY",(function(){return c}));var r=n(72),i=n.n(r),o=n(411);function a(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 s(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 l=function(t,e,n){var r=s(t,e,n),o=i()(r,2),a=o[0],l=o[1],u=s(t+1,e+1,n),c=i()(u,2),h=c[0];return[a,c[1],h,l]};function u(t){var e=t.zoom,n=t.latLonBounds,r=t.maxZoom,s=void 0===r?1/0:r,l=t.minZoom,u=void 0===l?0:l,c=t.zoomOffset,h=void 0===c?0:c,d=t.extent,f=void 0===d?o.DEFAULT_EXTENT:d,p=Math.ceil(e)+h;p<u?p=u:p>s&&(p=s);for(var g=i()(n,4),v=g[0],m=g[1],y=g[2],b=g[3],_=[Math.max(v,f[0]),Math.max(m,f[1]),Math.min(y,f[2]),Math.min(b,f[3])],x=[],w=a(_[0],_[1],p),O=i()(w,2),S=O[0],C=O[1],E=a(_[2],_[3],p),T=i()(E,2),M=T[0],A=T[1],I=S;I<=M;I++)for(var j=A;j<=C;j++)x.push({x:I,y:j,z:p});return x}var c=function(t,e,n){var r=Math.pow(2,n),i=t;return i<0?i+=r:i>r-1&&(i%=r),{warpX:i,warpY:e}}},function(t,e,n){"use strict";n.r(e);var r=n(1226);n.d(e,"Map",(function(){return r.Map}));var i=n(1237);n.d(e,"EarthMap",(function(){return i.EarthMap}))},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 c}));var r=n(11),i=n.n(r),o=n(12),a=n.n(o),s=n(3),l=n.n(s),u=n(492),c=function(){function t(e){i()(this,t),l()(this,"singleTap",void 0),l()(this,"numTaps",void 0),l()(this,"lastTime",void 0),l()(this,"lastTap",void 0),l()(this,"count",void 0),this.singleTap=new u.default(e),this.numTaps=e.numTaps,this.reset()}return a()(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<u.MAX_TAP_INTERVAL,o=!this.lastTap||this.lastTap.dist(r)<u.MAX_DIST;if(i&&o||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(1239),i=n(1245),o=n(1246),a=n(1247),s=n(1248),l=n(1249),u=n(1250),c=n(1251),h=n(1252),d=n(1253),f=n(1254),p=n(1255),g=n(1256),v=n(745);e.default={string:r.default,method:i.default,number:o.default,boolean:a.default,regexp:s.default,integer:l.default,float:u.default,array:c.default,object:h.default,enum:d.default,pattern:f.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 f})),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 M}));var r=n(47),i=n(36),o=n(0),a=n(20),s=n(248),l=n(119),u=n(807);n.d(e,"defaultDividePath",(function(){return u.split}));var c=n(544);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,l=Math.min(n,i),u=Math.abs(i-n)/6,c=(l-2)/6,h=Math.ceil(u/c)+1,d=[s[0],s[1]],f=u,p=2;p<l;){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(f<=0)d.push(m,y,b,_,x,w);else{for(var O=Math.min(f,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],d.push(o[1],a[1],o[2],a[2],g,v),m=o[5],y=a[5],b=o[6],_=a[6]}f-=O-1}}return s===t?[d,e]:[t,d]}function d(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 f(t,e){for(var n,r,i,o=[],a=[],s=0;s<Math.max(t.length,e.length);s++){var l=t[s],u=e[s],c=void 0,f=void 0;l?u?(r=c=(n=h(l,u))[0],i=f=n[1]):(f=d(i||l,l),c=l):(c=d(r||u,u),f=u),o.push(c),a.push(f)}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],l=t[a+1],u=t[o],c=t[o+1],h=s*c-u*l;e+=h,n+=(s+u)*h,r+=(l+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,l=s-2,u=0;u<i;u++){for(var c=6*u,h=0,d=0;d<s;d+=2){var f=0===d?c:(c+d-2)%l+2,p=t[f]-n[0],g=t[f+1]-n[1],v=e[d]-r[0]-p,m=e[d+1]-r[1]-g;h+=v*v+m*m}h<o&&(o=h,a=u)}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=f(Object(c.pathToBezierCurves)(n),Object(c.pathToBezierCurves)(r)),o=i[0],s=i[1],l=t.getComputedTransform(),u=e.getComputedTransform();l&&x(o,l),u&&x(s,u),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],l=e[a],u=p(s),c=p(l);null==i&&(i=u[2]<0!=c[2]<0);var h=[],d=[],f=0,m=1/0,y=[],b=s.length;i&&(s=v(s));for(var _=6*g(s,l,u,c),x=b-2,w=0;w<x;w+=2){var O=(_+w)%x+2;h[w+2]=s[O]-u[0],h[w+3]=s[O+1]-u[1]}if(h[0]=s[_]-u[0],h[1]=s[_+1]-u[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),M=0;for(w=0;w<s.length;w+=2){var A=h[w],I=h[w+1],j=l[w]-c[0],k=l[w+1]-c[1],P=j*T-k*E,L=j*E+k*T;y[w]=P,y[w+1]=L;var D=P-A,R=L-I;M+=D*D+R*R}if(M<m){m=M,f=C;for(var N=0;N<y.length;N++)d[N]=y[N]}}else for(var F=0;F<b;F+=2)d[F]=l[F]-c[0],d[F+1]=l[F+1]-c[1];o.push({from:h,to:d,fromCp:u,toCp:c,rotation:-f})}return o}(o,s,10,Math.PI),d=[];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],l=s.from,u=s.to,c=s.rotation*n,f=s.fromCp,p=s.toCp,g=Math.sin(c),v=Math.cos(c);Object(a.lerp)(i,f,p,n);for(var m=0;m<l.length;m+=2){var y=l[m],b=l[m+1],_=y*r+(S=u[m])*n,x=b*r+(C=u[m+1])*n;d[m]=_*v-x*g+i[0],d[m+1]=_*g+x*v+i[1]}var w=d[0],O=d[1];t.moveTo(w,O);for(m=2;m<l.length;){var S=d[m++],C=d[m++],E=d[m++],T=d[m++],M=d[m++],A=d[m++];w===S&&O===C&&E===M&&T===A?t.lineTo(M,A):t.bezierCurveTo(S,C,E,T,M,A),w=M,O=A}}}})}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,l=32768;l>0;l/=2){var u=0,c=0;(t&l)>0&&(u=1),(e&l)>0&&(c=1),s+=l*l*(3*u^c),0===c&&(1===u&&(t=l-1-t,e=l-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),l=o.y+o.height/2+(a?a[5]:0);return e=Math.min(s,e),n=Math.min(l,n),r=Math.max(s,r),i=Math.max(l,i),[s,l]}));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(u.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 u=n.done,c=n.during,h=n.individualDelay,d=new l.default,f=0;f<a;f++){var p=r[f],g=s[f];g.parent=e,g.copyTransform(d),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(),u&&u())};for(f=0;f<x;f++){var M=h?Object(o.defaults)({delay:(n.delay||0)+h(f,x,r[f],s[f]),done:T},n):n;O(r[f],s[f],M)}}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");u&&u()}},n));return e.__zr&&v(e.__zr),{fromIndividuals:r,toIndividuals:s,count:x}}function M(t,e,n){var r=e.length,a=[],l=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 u=a.length;if(u<r)for(var c=0,h=u;h<r;h++)a.push(Object(s.clonePath)(a[c++%u]));a.length=r}else{a=l({path:t,count:r});var d=t.getComputedTransform();for(h=0;h<a.length;h++)a[h].setLocalTransform(d);if(a.length!==r)return console.error("Invalid morphing: unmatched splitted path"),{fromIndividuals:[],toIndividuals:[],count:0}}a=C(a),e=C(e);var f=n.individualDelay;for(h=0;h<r;h++){var p=f?Object(o.defaults)({delay:(n.delay||0)+f(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(79),o=n(95),a=n(25),s=n(187),l=n(56),u=n(257),c=n(409),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,d=e/2,f=0;f<t.length;f++){var p=t[f],g=p.currentPoint,v=p.params,m=p.prePoint,y=p.box;if(!y||Object(l.inBox)(y.x-d,y.y-d,y.width+e,y.height+e,n,r)){switch(p.command){case"L":case"Z":a=Object(u.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],M=w>O?w:O,A=h(null,[["t",-_,-x],["r",-E],["s",1/(w>O?1:w/O),1/(w>O?O/w:1)]]);s.transformMat3(T,T,A),a=Object(c.default)(0,0,M,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(760);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 l})),n.d(e,"resolvePaddingForCircle",(function(){return u}));var r=n(2),i=n(1691),o=n(4),a=n(360),s=n(207);function l(t){var e=t.data,n=t.hierarchyConfig,s=t.rawFields,l=void 0===s?[]:s,u=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(u&&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,l)),{path:i}),t));c.ext=n,c[a.HIERARCHY_DATA_TRANSFORM_PARAMS]={hierarchyConfig:n,rawFields:l,enableDrillDown:u},h.push(c)})),h}function u(t,e,n){var r=Object(s.resolveAllPadding)([t,e]),i=r[0],o=r[1],a=r[2],l=r[3],u=n.width-(l+o),c=n.height-(i+a),h=Math.min(u,c),d=(u-h)/2,f=(c-h)/2;return{finalPadding:[i+f,o+d,a+f,l+d],finalSize:h<0?0:h}}},function(t,e,n){"use strict";n.r(e);var r=n(1233);n.d(e,"TouchPanHandler",(function(){return r.default}));var i=n(1234);n.d(e,"TouchPitchHandler",(function(){return i.default}));var o=n(1235);n.d(e,"TouchRotateHandler",(function(){return o.default}));var a=n(1236);n.d(e,"TouchZoomHandler",(function(){return a.default}))},function(t,e,n){"use strict";e.__esModule=!0;var r,i=n(200),o=(r=i)&&r.__esModule?r:{default:r},a=n(904);var s=o.default.prototype.$isServer?function(){}:n(1813),l=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",l))}},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",l),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(773);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(503);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(913),i=n(784);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(287);n.d(e,"Scale",(function(){return r.Scale}))},function(t,e,n){"use strict";n.r(e);var r=n(350);n.d(e,"Coordinate",(function(){return r.default}));var i=n(856),o=n(1516),a=n(1517),s=n(397);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(1966),i=n(1967),o=n(1968),a=n(1969),s=n(1970);function l(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])}}l.prototype.clear=r,l.prototype.delete=i,l.prototype.get=o,l.prototype.has=a,l.prototype.set=s,t.exports=l},function(t,e,n){var r=n(587);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(1976),i=n(1982);t.exports=function(t,e){var n=i(t,e);return r(n)?n:void 0}},function(t,e,n){var r=n(588)(Object,"create");t.exports=r},function(t,e,n){var r=n(1991);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(2050);t.exports=function(t){return null==t?"":r(t)}},function(t,e,n){"use strict";n.r(e);var r=n(111);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(183),i=n(595);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(241),i=n(115),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(74);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(74);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(111),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(241),i=n(74),o=n(269);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(74),i=n(115),o=n(602);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(74),i=n(115),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]},l=0;l<t.length;l++){var u=t[l];n=s(u),o.call(a,n)?a[n].push(u):a[n]=[u]}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(115);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(390),i=n(111),o=n(154),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 l=Object.keys(t),u=Object.keys(e);if(l.length!==u.length)return!1;for(n=!0,s=0;s<l.length&&(n=a(t[l[s]],e[l[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(152);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(152);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(456),o=n(92),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 l})),n.d(e,"set",(function(){return u})),n.d(e,"identity",(function(){return c})),n.d(e,"transpose",(function(){return h})),n.d(e,"invert",(function(){return d})),n.d(e,"adjoint",(function(){return f})),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 M})),n.d(e,"subtract",(function(){return A})),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 D}));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 l(t,e,n,i,o,a,s,l,u){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]=l,c[8]=u,c}function u(t,e,n,r,i,o,a,s,l,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]=l,t[8]=u,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 d(t,e){var n=e[0],r=e[1],i=e[2],o=e[3],a=e[4],s=e[5],l=e[6],u=e[7],c=e[8],h=c*a-s*u,d=-c*o+s*l,f=u*o-a*l,p=n*h+r*d+i*f;return p?(p=1/p,t[0]=h*p,t[1]=(-c*r+i*u)*p,t[2]=(s*r-i*a)*p,t[3]=d*p,t[4]=(c*n-i*l)*p,t[5]=(-s*n+i*o)*p,t[6]=f*p,t[7]=(-u*n+r*l)*p,t[8]=(a*n-r*o)*p,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],l=e[6],u=e[7],c=e[8];return t[0]=a*c-s*u,t[1]=i*u-r*c,t[2]=r*s-i*a,t[3]=s*l-o*c,t[4]=n*c-i*l,t[5]=i*o-n*s,t[6]=o*u-a*l,t[7]=r*l-n*u,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],l=t[7],u=t[8];return e*(u*o-a*l)+n*(-u*i+a*s)+r*(l*i-o*s)}function g(t,e,n){var r=e[0],i=e[1],o=e[2],a=e[3],s=e[4],l=e[5],u=e[6],c=e[7],h=e[8],d=n[0],f=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]=d*r+f*a+p*u,t[1]=d*i+f*s+p*c,t[2]=d*o+f*l+p*h,t[3]=g*r+v*a+m*u,t[4]=g*i+v*s+m*c,t[5]=g*o+v*l+m*h,t[6]=y*r+b*a+_*u,t[7]=y*i+b*s+_*c,t[8]=y*o+b*l+_*h,t}function v(t,e,n){var r=e[0],i=e[1],o=e[2],a=e[3],s=e[4],l=e[5],u=e[6],c=e[7],h=e[8],d=n[0],f=n[1];return t[0]=r,t[1]=i,t[2]=o,t[3]=a,t[4]=s,t[5]=l,t[6]=d*r+f*a+u,t[7]=d*i+f*s+c,t[8]=d*o+f*l+h,t}function m(t,e,n){var r=e[0],i=e[1],o=e[2],a=e[3],s=e[4],l=e[5],u=e[6],c=e[7],h=e[8],d=Math.sin(n),f=Math.cos(n);return t[0]=f*r+d*a,t[1]=f*i+d*s,t[2]=f*o+d*l,t[3]=f*a-d*r,t[4]=f*s-d*i,t[5]=f*l-d*o,t[6]=u,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,l=i+i,u=n*a,c=r*a,h=r*s,d=i*a,f=i*s,p=i*l,g=o*a,v=o*s,m=o*l;return t[0]=1-h-p,t[3]=c-m,t[6]=d+v,t[1]=c+m,t[4]=1-u-p,t[7]=f-g,t[2]=d-v,t[5]=f+g,t[8]=1-u-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],l=e[6],u=e[7],c=e[8],h=e[9],d=e[10],f=e[11],p=e[12],g=e[13],v=e[14],m=e[15],y=n*s-r*a,b=n*l-i*a,_=n*u-o*a,x=r*l-i*s,w=r*u-o*s,O=i*u-o*l,S=c*g-h*p,C=c*v-d*p,E=c*m-f*p,T=h*v-d*g,M=h*m-f*g,A=d*m-f*v,I=y*A-b*M+_*T+x*E-w*C+O*S;return I?(I=1/I,t[0]=(s*A-l*M+u*T)*I,t[1]=(l*E-a*A-u*C)*I,t[2]=(a*M-s*E+u*S)*I,t[3]=(i*M-r*A-o*T)*I,t[4]=(n*A-i*E+o*C)*I,t[5]=(r*E-n*M-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 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 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 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],l=t[5],u=t[6],c=t[7],h=t[8],d=e[0],f=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-d)<=r.EPSILON*Math.max(1,Math.abs(n),Math.abs(d))&&Math.abs(i-f)<=r.EPSILON*Math.max(1,Math.abs(i),Math.abs(f))&&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(l-m)<=r.EPSILON*Math.max(1,Math.abs(l),Math.abs(m))&&Math.abs(u-y)<=r.EPSILON*Math.max(1,Math.abs(u),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,D=A},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(1484),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(317),i=n(83);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(619),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 l=[],u=0,c=0,h=0,d=0,f=0,p=e[0];"M"!==p[0]&&"m"!==p[0]||(h=u=+p[1],d=c=+p[2],f++,l[0]=["M",u,c]);a=f;for(var g=e.length;a<g;a++){var v=e[a],m=l[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]+u,y[7]=+v[7]+c;break;case"V":y[1]=+v[1]+c;break;case"H":y[1]=+v[1]+u;break;case"M":h=+v[1]+u,d=+v[2]+c,y[1]=h,y[2]=d;break;default:for(var _=1,x=v.length;_<x;_++)y[_]=+v[_]+(_%2?u:c)}else y=e[a];switch(b){case"Z":u=+h,c=+d;break;case"H":y=["L",u=y[1],c];break;case"V":y=["L",u,c=y[1]];break;case"T":u=y[1],c=y[2];var w=o([m[1],m[2]],[m[3],m[4]]);y=["Q",w[0],w[1],u,c];break;case"S":u=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],u,c];break;case"M":h=y[y.length-2],d=y[y.length-1];break;default:u=y[y.length-2],c=y[y.length-1]}l.push(y)}return l}},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,l=e.y-t.y,u=i.x-n.x,c=i.y-n.y,h=s*c-l*u,d=null;if(h*h>.001*(s*s+l*l)*(u*u+c*c)){var f=(o*c-a*u)/h,p=(o*l-a*s)/h;r(f,0,1)&&r(p,0,1)&&(d={x:t.x+f*s,y:t.y+f*l})}return d}},function(t,e,n){"use strict";n.r(e),n.d(e,"propagationDelegate",(function(){return i}));var r=n(79);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(89),a=n(82),s=n(69),l=n(359),u=n(116),c=n(203),h=n(256);var d=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(),l=s.follow,u=s.showMarkers,c=s.showCrosshairs,d=s.showContent,f=s.marker,p=this.items,g=this.title;if(Object(i.isEqual)(g,o)&&Object(i.isEqual)(p,n)?(this.tooltip&&l&&(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)(d)?d(n):d)&&(this.tooltip||this.renderTooltip(),this.tooltip.update(Object(i.mix)({},s,{items:this.getItemsAfterProcess(n),title:o},l?t:{})),this.tooltip.show()),u&&this.renderTooltipMarkers(n,f)),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,l,u=this.findItemsFromView(this.view,t);if(u.length){u=Object(i.flatten)(u);try{for(var c=Object(r.__values)(u),h=c.next();!h.done;h=c.next()){var d=h.value;try{for(var f=(o=void 0,Object(r.__values)(d)),p=f.next();!p.done;p=f.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=f.return)&&a.call(f)}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&&u.length>1){var b=u[0],_=Math.abs(t.y-b[0].y);try{for(var x=Object(r.__values)(u),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&&(l=x.return)&&l.call(x)}finally{if(s)throw s.error}}u=[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)(u))}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 u.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,i,o=this.getTooltipMarkersGroup(),s=this.view.getRootView(),l=s.limitInPlot;try{for(var u=Object(r.__values)(t),c=u.next();!c.done;c=u.next()){var h=c.value,d=h.x,f=h.y;if(l||(null==o?void 0:o.getClip())){var p=Object(a.getCoordinateClipCfg)(s.getCoordinate()),g=p.type,v=p.attrs;null==o||o.setClip({type:g,attrs:v})}else null==o||o.setClip(void 0);var m=Object(r.__assign)(Object(r.__assign)({fill:h.color,symbol:"circle",shadowColor:h.color},e),{x:d,y:f});o.addShape("marker",{attrs:m})}}catch(t){n={error:t}}finally{try{c&&!c.done&&(i=u.return)&&i.call(u)}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=this.getViewWithGeometry(this.view).getCoordinate();if(Object(a.isPointInCoordinate)(n,t)){var r,l;if(n.isRect)n.isTransposed?(r={x:n.start.x,y:t.y},l={x:n.end.x,y:t.y}):(r={x:t.x,y:n.end.y},l={x:t.x,y:n.start.y});else{var u=Object(a.getAngleByPoint)(n,t),c=n.getCenter(),h=n.getRadius();l=Object(s.polarToCartesian)(c.x,c.y,h,u),r=c}var d=Object(i.deepMix)({start:r,end:l,container:this.getTooltipCrosshairsGroup()},Object(i.get)(e,"crosshairs",{}),this.getCrosshairsText("x",t,e));delete d.type;var f=this.xCrosshair;f?f.update(d):(f=new o.Crosshair.Line(d)).init(),f.render(),f.show(),this.xCrosshair=f}},e.prototype.renderYCrosshairs=function(t,e){var n=this.getViewWithGeometry(this.view).getCoordinate();if(Object(a.isPointInCoordinate)(n,t)){var r,s;if(n.isRect){var l=void 0,u=void 0;n.isTransposed?(l={x:t.x,y:n.end.y},u={x:t.x,y:n.start.y}):(l={x:n.start.x,y:t.y},u={x:n.end.x,y:t.y}),r={start:l,end:u},s="Line"}else r={center:n.getCenter(),radius:Object(a.getDistanceToCenter)(n,t),startAngle:n.startAngle,endAngle:n.endAngle},s="Circle";delete(r=Object(i.deepMix)({container:this.getTooltipCrosshairsGroup()},r,Object(i.get)(e,"crosshairs",{}),this.getCrosshairsText("y",t,e))).type;var c=this.yCrosshair;c?n.isRect&&"circle"===c.get("type")||!n.isRect&&"line"===c.get("type")?(c=new o.Crosshair[s](r)).init():c.update(r):(c=new o.Crosshair[s](r)).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),l=a[0],u=s.getXScale(),c=s.getYScales()[0],h=void 0,d=void 0;if(o){var f=this.view.getCoordinate().invert(e);h=u.invert(f.x),d=c.invert(f.y)}else h=l.data[u.field],d=l.data[c.field];var p="x"===t?h:d;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(l.findItemsFromView)(t,e,o);try{for(var s=Object(r.__values)(t.views),u=s.next();!u.done;u=s.next()){var c=u.value;a=a.concat(this.findItemsFromView(c,e))}}catch(t){n={error:t}}finally{try{u&&!u.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=d},function(t,e,n){"use strict";n.r(e),n.d(e,"getPath",(function(){return h}));var r=n(1),i=n(38),o=n(194),a=n(68),s=n(172),l=n(462),u=n(698);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=[],u=[];Object(r.each)(t,(function(t){var e=Object(l.splitPoints)(t);s.push(e[1]),u.push(e[0])}));var h=c(s,e,i,o,a),d=c(u,e,i,o,a);return n?h:h.concat(d)}(t,e,n,i,o,a):c(t,e,i,o,a)}return[]}var d=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,l=s.start,u=s.end;r=[[l.x,u.y],[u.x,l.y]]}var c=function(t,e,n){for(var r=t.isStack,i=t.connectNulls,s=t.isInCircle,l=t.showSinglePoint,u=Object(a.getStyle)(t,!0,!1,"lineWidth"),c=Object(o.getPathPoints)(t.points,i,l),d=[],f=0,p=c.length;f<p;f++){var g=c[f];d=d.concat(h(g,s,r,e,n,u))}return u.path=d,u}(e,i,r);return n.addShape({type:"path",attrs:c,name:"line",capture:!i})},getMarker:function(e){return Object(u.getLineMarker)(e,t)}})})),e.default=d},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 l}));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 l=e[i];l?a(l)?(a(t[i])||(t[i]={}),n<r?s(t[i],l,n+1,r):t[i]=e[i]):o(l)?(t[i]=[],t[i]=t[i].concat(l)):t[i]=l:t[i]=l}},l=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(305),a=n(1628),s=(n(1906),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(1625),i=n(1626),o=n(1627);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(125),o=n(4),a=n(102);function s(t){var e=t.options,n=e.point,s=e.xField,l=e.yField,u=e.seriesField,c=e.sizeField,h=e.shapeField,d=e.tooltip,f=e.useDeferredLabel,p=Object(i.getTooltipMapping)(d,[s,l,u,c,h]),g=p.fields,v=p.formatter;return n?Object(a.geometry)(Object(o.deepAssign)({},t,{options:{type:"point",colorField:u,shapeField:h,tooltipFields:g,mapping:Object(r.__assign)({tooltip:v},n),args:{useDeferredLabel:f}}})):t}},function(t,e,n){"use strict";n.r(e),n.d(e,"polygon",(function(){return s}));var r=n(2),i=n(125),o=n(4),a=n(102);function s(t){var e=t.options,n=e.polygon,s=e.xField,l=e.yField,u=e.seriesField,c=e.tooltip,h=e.useDeferredLabel,d=Object(i.getTooltipMapping)(c,[s,l,u]),f=d.fields,p=d.formatter;return n?Object(a.geometry)(Object(o.deepAssign)({},t,{options:{type:"polygon",colorField:u,tooltipFields:f,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 l}));var r=n(2),i=n(26),o=n(226),a=n(548),s=n(1630),l=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,l=this.options;Object(a.meta)({chart:s,options:l}),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 l}));var r=n(2),i=n(26),o=n(226),a=n(271),s=n(1634),l=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,l=this.options;Object(a.meta)({chart:s,options:l}),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 l}));var r=n(2),i=n(26),o=n(226),a=n(549),s=n(1635),l=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,l=s.isPercent,u=s.xField,c=s.yField,h=s.xAxis,d=s.yAxis;u=(e=[c,u])[0],c=e[1],h=(n=[d,h])[0],d=n[1];var f=Object(r.__assign)(Object(r.__assign)({},s),{xField:u,yField:c,yAxis:d,xAxis:h});Object(a.meta)({chart:i,options:f}),i.changeData(Object(o.getDataWhetherPercentage)(t,u,c,u,l))},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(15),o=n(26),a=n(4),s=n(550),l=n(713),u=n(375),c=(n(820),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 l.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(u.isAllZero)(r,n)||Object(u.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 u}));var r=n(2),i=n(15),o=n(26),a=n(4),s=n(376),l=n(1642),u=(n(1908),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,l=a.options,u=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:u,options:Object(r.__assign)(Object(r.__assign)({},l),{data:c})})}(null===(n=t.data)||void 0===n?void 0:n.source)===i.BRUSH_FILTER_EVENTS.RESET&&Object(s.meta)({chart:u,options:l})})),o}return Object(r.__extends)(e,t),e.getDefaultOptions=function(){return l.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 l}));var r=n(2),i=n(26),o=n(554),a=n(166),s=n(227),l=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 l}));var r=n(2),i=n(26),o=n(227),a=n(555),s=n(1647),l=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 l}));var r=n(2),i=n(26),o=n(227),a=n(272),s=n(1648),l=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 l}));var r=n(2),i=n(26),o=n(714),a=n(715),s=n(262),l=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 l}));var r=n(2),i=n(26),o=n(470),a=n(716),s=n(471),l=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 u}));var r=n(2),i=n(15),o=n(26),a=n(471),s=n(556),l=n(1649),u=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 l.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 l}));var r=n(2),i=n(26),o=n(719),a=n(720),s=n(179),l=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 u}));var r=n(727),i=n(645);function o(t,e,n){var r,i,o,a,s=t.x-e.x,l=t.y-e.y,u=s*s+l*l;u?(i=e.r+n.r,i*=i,a=t.r+n.r,i>(a*=a)?(r=(u+a-i)/(2*u),o=Math.sqrt(Math.max(0,a/u-r*r)),n.x=t.x-r*s-o*l,n.y=t.y-r*l+o*s):(r=(u+i-a)/(2*u),o=Math.sqrt(Math.max(0,i/u-r*r)),n.x=e.x+r*s-o*l,n.y=e.y+r*l+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 l(t){this._=t,this.next=null,this.previous=null}function u(t){if(!(c=(t=Object(r.default)(t)).length))return 0;var e,n,u,c,h,d,f,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,u=t[2]),e=new l(e),n=new l(n),u=new l(u),e.next=u.previous=n,n.next=e.previous=u,u.next=n.previous=e;t:for(f=3;f<c;++f){o(e._,n._,u=t[f]),u=new l(u),p=n.next,g=e.previous,v=n._.r,m=e._.r;do{if(v<=m){if(a(p._,u._)){n=p,e.next=n,n.previous=e,--f;continue t}v+=p._.r,p=p.next}else{if(a(g._,u._)){(e=g).next=n,n.previous=e,--f;continue t}m+=g._.r,g=g.previous}}while(p!==g.next);for(u.previous=e,u.next=n,e.next=n.previous=n=u,h=s(e);(u=u.next)!==n;)(d=s(u))<h&&(e=u,h=d);n=e.next}for(e=[n._],u=n;(u=u.next)!==n;)e.push(u._);for(u=Object(i.default)(e),f=0;f<c;++f)(e=t[f]).x-=u.x,e.y-=u.y;return u.r}e.default=function(t){return u(t),t}},function(t,e,n){"use strict";n.r(e);var r=n(727);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(u(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(u(t[n],t[r]),e)&&o(u(t[n],e),t[r])&&o(u(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 l(t){switch(t.length){case 1:return{x:(e=t[0]).x,y:e.y,r:e.r};case 2:return u(t[0],t[1]);case 3:return c(t[0],t[1],t[2])}var e}function u(t,e){var n=t.x,r=t.y,i=t.r,o=e.x,a=e.y,s=e.r,l=o-n,u=a-r,c=s-i,h=Math.sqrt(l*l+u*u);return{x:(n+o+l/h*c)/2,y:(r+a+u/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,l=e.r,u=n.x,c=n.y,h=n.r,d=r-a,f=r-u,p=i-s,g=i-c,v=l-o,m=h-o,y=r*r+i*i-o*o,b=y-a*a-s*s+l*l,_=y-u*u-c*c+h*h,x=f*p-d*g,w=(p*_-g*b)/(2*x)-r,O=(g*v-p*m)/x,S=(f*b-d*_)/(2*x)-i,C=(d*m-f*v)/x,E=O*O+C*C-1,T=2*(o+w*O+S*C),M=w*w+S*S-o*o,A=-(E?(T+Math.sqrt(T*T-4*E*M))/(2*E):M/T);return{x:r+w+O*A,y:i+S+C*A,r:A}}e.default=function(t){for(var e,n,o=0,s=(t=Object(r.shuffle)(Array.from(t))).length,u=[];o<s;)e=t[o],n&&a(n,e)?++o:(n=l(u=i(u,e)),o=0);return n}},function(t,e,n){"use strict";n.r(e),n.d(e,"Gauge",(function(){return u}));var r=n(2),i=n(15),o=n(26),a=n(557),s=n(137),l=n(490),u=(n(1917),n(1918),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(l.getIndicatorData)(t));var n=this.chart.views.find((function(t){return t.id===s.RANGE_VIEW_ID}));n&&n.data(Object(l.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,n){"use strict";n.r(e),n.d(e,"Tile",(function(){return y}));var r=n(99),i=n.n(r),o=n(72),a=n.n(o),s=n(11),l=n.n(s),u=n(12),c=n.n(u),h=n(3),d=n.n(h),f=n(63),p=n.n(f),g=n(1708),v=n(167),m=n(561),y=function(){function t(e){l()(this,t),d()(this,"x",void 0),d()(this,"y",void 0),d()(this,"z",void 0),d()(this,"tileSize",256),d()(this,"isVisible",!1),d()(this,"isCurrent",!1),d()(this,"layer",null),d()(this,"layers",[]),d()(this,"parent",null),d()(this,"children",[]),d()(this,"data",null),d()(this,"properties",{}),d()(this,"loadStatus",void 0),d()(this,"abortController",void 0),d()(this,"loadDataId",0);var n=e.x,r=e.y,i=e.z,o=e.tileSize;this.x=n,this.y=r,this.z=i,this.tileSize=o}var e;return c()(t,[{key:"isLoading",get:function(){return this.loadStatus===v.LoadTileDataStatus.Loading}},{key:"isLoaded",get:function(){return this.loadStatus===v.LoadTileDataStatus.Loaded}},{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=a()(this.bounds,4),e=t[0],n=t[1],r=[(t[2]-e)/2,(t[3]-n)/2];return Object(g.default)(this.bounds,{properties:{key: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:"loadData",value:(e=i()(p.a.mark((function t(e){var n,r,i,o,a,s,l,u,c,h,d,f,g,y,b,_;return p.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,l=this.x,u=this.y,c=this.z,h=this.bounds,d=this.tileSize,f=Object(m.getTileWarpXY)(l,u,c),g=f.warpX,y=f.warpY,b=this.abortController.signal,_={x:g,y:y,z:c,bounds:h,tileSize:d,signal:b},t.next=14,n(_);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())}}]),t}()},function(t,e,n){"use strict";n.r(e);var r=n(50);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 d}));var r=n(119),i=n(362),o=n(35),a=n(129),s=n(55),l=n(0),u=n(151),c=n(71),h=n(100),d="__zr_normal__",f=r.TRANSFORMABLE_PROPS.concat(["ignore"]),p=Object(l.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(l.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,l=!1;i.parent=r?this:null;var u=!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 d=n.origin;if(d&&null!=n.rotation){var f=void 0,p=void 0;"center"===d?(f=.5*c.width,p=.5*c.height):(f=Object(s.parsePercent)(d[0],c.width),p=Object(s.parsePercent)(d[1],c.height)),u=!0,i.originX=-i.x+f+(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],u||(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||(l=!0,b.fill=_,b.stroke=x,b.autoStroke=w,b.align=o,b.verticalAlign=a,e.setDefaultTextStyle(b)),e.__dirty|=h.REDRAW_BIT,l&&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()?u.LIGHT_LABEL_COLOR:u.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(l.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(l.isObject)(t))for(var n=t,r=Object(l.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!==d)){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,f)},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(d,!1,t)},t.prototype.useState=function(t,e,n,r){var i=t===d;if(this.hasState()||!i){var o=this.currentStates,a=this.stateTransition;if(!(Object(l.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 u=!!(s&&s.hoverLayer||r);u&&this._toggleHoverLayerFlag(!0),this._applyStateObj(t,s,this._normalState,e,!n&&!this.__inHover&&a&&a.duration>0,a);var c=this._textContent,f=this._textGuide;return c&&c.useState(t,e,n,u),f&&f.useState(t,e,n,u),i?(this.currentStates=[],this._normalState={}):e?this.currentStates.push(t):this.currentStates=[t],this._updateAnimationTargets(),this.markRedraw(),!u&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~h.REDRAW_BIT),s}Object(l.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 l=t[s],u=void 0;this.stateProxy&&(u=this.stateProxy(l,t)),u||(u=this.states[l]),u&&r.push(u)}var c=r[o-1],d=!!(c&&c.hoverLayer||n);d&&this._toggleHoverLayerFlag(!0);var f=this._mergeStates(r),p=this.stateTransition;this.saveCurrentToNormalState(f),this._applyStateObj(t.join(","),f,this._normalState,!1,!e&&!this.__inHover&&p&&p.duration>0,p);var g=this._textContent,v=this._textGuide;g&&g.useStates(t,e,d),v&&v.useStates(t,e,d),this._updateAnimationTargets(),this.currentStates=t.slice(),this.markRedraw(),!d&&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(l.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(l.indexOf)(r,t),o=Object(l.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(l.extend)(n,i),i.textConfig&&(e=e||{},Object(l.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(l.extend)({},r?this.textConfig:n.textConfig),Object(l.extend)(this.textConfig,e.textConfig)):a&&n.textConfig&&(this.textConfig=n.textConfig);for(var s={},u=!1,c=0;c<f.length;c++){var h=f[c],d=i&&p[h];e&&null!=e[h]?d?(u=!0,s[h]=e[h]):this[h]=e[h]:a&&null!=n[h]&&(d?(u=!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)}u&&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(l.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(l.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,u,c){for(var h=Object(l.keys)(o),d=a.duration,f=a.delay,p=a.additive,g=a.setToFinal,v=!Object(l.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(l.isObject)(w)||Object(l.isArrayLike)(w)||Object(l.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],u,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(l.indexOf)(m,E);m.splice(C,1)}}a.force||(y=Object(l.filter)(y,(function(t){return e=o[t],n=r[t],!(e===n||Object(l.isArrayLike)(e)&&Object(l.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&&!u.length){var E,T=void 0,M=void 0,A=void 0;if(c){M={},g&&(T={});for(S=0;S<O;S++){x=y[S];M[x]=r[x],g?T[x]=o[x]:r[x]=o[x]}}else if(g){A={};for(S=0;S<O;S++){x=y[S];A[x]=Object(i.cloneValue)(r[x]),_(r,o,x)}}(E=new i.default(r,!1,!1,p?Object(l.filter)(m,(function(t){return t.targetName===n})):null)).targetName=n,a.scope&&(E.scope=a.scope),g&&T&&E.whenWithKeys(0,T,y),A&&E.whenWithKeys(0,A,y),E.whenWithKeys(null==d?500:d,c?M:o,y).delay(f||0),e.addAnimator(E,n),u.push(E)}}(t,"",t,e,n=n||{},r,a,o);var s=a.length,u=!1,c=n.done,h=n.aborted,d=function(){u=!0,--s<=0&&(u?c&&c():h&&h())},f=function(){--s<=0&&(u?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];d&&g.done(d),f&&g.aborted(f),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(l.isArrayLike)(e[n]))if(Object(l.isArrayLike)(t[n])||(t[n]=[]),Object(l.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(l.isArrayLike)(c[0]))for(var s=i[0].length,u=0;u<a;u++)o[u]?b(o[u],i[u],s):o[u]=Array.prototype.slice.call(i[u]);else b(o,i,a);o.length=i.length}else t[n]=e[n];var c}Object(l.mixin)(m,a.default),Object(l.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(224),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(224),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(47);function i(t,e,n,i,o,a,s,l,u){if(0===s)return!1;var c=s;return!(u>e+c&&u>i+c&&u>a+c||u<e-c&&u<i-c&&u<a-c||l>t+c&&l>n+c&&l>o+c||l<t-c&&l<n-c&&l<o-c)&&Object(r.quadraticProjectPoint)(t,e,n,i,o,a,l,u,null)<=c/2}},function(t,e,n){"use strict";n.r(e);var r,i,o,a=n(5),s=n(0),l=n(10),u=n(57),c=n(40),h=n(1272),d=n(139),f=n(655),p=n(302);n(37);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 u.default(r),this._locale=new u.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 l=r.getMediaOption(this);l.length&&Object(s.each)(l,(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=[],u=Object(s.createHashMap)(),h=e&&e.replaceMergeMainTypeMap;Object(d.resetSourceDefaulter)(this),Object(s.each)(t,(function(t,e){null!=t&&(c.default.hasClass(e)?e&&(a.push(e),u.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)&&!u.get(e)&&(a.push(e),u.set(e,!0))})),c.default.topologicalTravel(a,c.default.getAllClassMainTypes(),(function(e){var a=Object(f.concatInternalOptions)(this,e,l.normalizeToArray(t[e])),u=i.get(e),d=u?h&&h.get(e)?"replaceMerge":"normalMerge":"replaceAll",p=l.mappingToExists(u,a,d);l.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 l=Object(s.extend)({componentIndex:n},t.keyInfo);r=new a(i,this,this,l),Object(s.extend)(r,l),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=l.normalizeToArray(e),i=r.length,o=!1,a=i-1;a>=0;a--)r[a]&&!l.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)(l.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,l=t.mainType,u=(n=l+"Index",r=l+"Id",i=l+"Name",!(e=a)||null==e[n]&&null==e[r]&&null==e[i]?null:{mainType:l,index:e[n],id:e[r],name:e[i]}),c=u?this.queryComponents(u):Object(s.filter)(this._componentsMap.get(l),(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,l=0;a&&l<a.length;l++){var u=a[l];u&&e.call(n,u,u.componentIndex)}},e.prototype.getSeriesByName=function(t){var e=l.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}(u.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!=l.convertOptionIdName(t,null)&&r.set(t,!0))})),Object(s.filter)(n,(function(e){return e&&r.get(e[t])}))}var i=l.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)(l.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(1275);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,l=0;l<(n?s:s-1);l++){var u=a[2*l],c=a[2*l+1],h=o[(l+1)%s];t.bezierCurveTo(u[0],u[1],c[0],c[1],h[0],h[1])}}else{t.moveTo(o[0][0],o[0][1]);l=1;for(var d=o.length;l<d;l++)t.lineTo(o[l][0],o[l][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(29),i=n(10),o=n(0),a=n(171),s=n(150),l=n(37),u=n(140),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(l.throwError)("")}return t.data}function d(t){var e=t.sourceFormat,n=t.data;if(!b(e)){0,Object(l.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 f(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(l.throwError)("");var n=e.split(":");2!==n.length&&Object(l.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(l.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(l.throwError)(""),Object(o.isObject)(t)||Object(l.throwError)("");var v=t.type,m=g.get(v);m||Object(l.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,u=t.startIndex;t.seriesLayoutBy!==r.SERIES_LAYOUT_BY_COLUMN&&Object(l.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(l.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,u,g,t)},n.getRawData=Object(o.bind)(h,null,t)),n.cloneRawData=Object(o.bind)(d,null,t);var _=Object(a.getRawSourceDataCounter)(s,r.SERIES_LAYOUT_BY_COLUMN);n.count=Object(o.bind)(_,null,i,u,g);var x=Object(a.getRawSourceValueGetter)(s);n.retrieveValue=function(t,e){var n=b(i,u,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)(f,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(l.throwError)(""),t.data||Object(l.throwError)(""),b(Object(u.detectSourceFormat)(t.data))||Object(l.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(u.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(75),o=n(171),a=n(10);function s(t){var e,n,s,l,u=t.series,c=t.dataIndex,h=t.multipleSeries,d=u.getData(),f=d.mapDimensionsAll("defaultedTooltip"),p=f.length,g=u.getRawValue(c),v=Object(r.isArray)(g),m=Object(i.retrieveVisualColorForTooltipMarker)(u,c);if(p>1||v&&!p){var y=function(t,e,n,a,s){var l=e.getData(),u=Object(r.reduce)(t,(function(t,e,n){var r=l.getDimensionInfo(n);return t||r&&!1!==r.tooltip&&null!=r.displayName}),!1),c=[],h=[],d=[];function f(t,e){var n=l.getDimensionInfo(e);n&&!1!==n.otherDims.tooltip&&(u?d.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){f(Object(o.retrieveRawValue)(l,n,t),t)})):Object(r.each)(t,f),{inlineValues:c,inlineValueTypes:h,blocks:d}}(g,u,c,f,m);e=y.inlineValues,n=y.inlineValueTypes,s=y.blocks,l=y.inlineValues[0]}else if(p){var b=d.getDimensionInfo(f[0]);l=e=Object(o.retrieveRawValue)(d,c,f[0]),n=b.type}else l=e=v?g[0]:g;var _=Object(a.isNameSpecified)(u),x=_&&u.name||"",w=d.getName(c),O=h?x:w;return Object(i.createTooltipMarkup)("section",{header:x,noHeader:h||!_,sortParam:l,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 l})),n.d(e,"parseAxisModelMinMax",(function(){return u}));var r=n(0),i=n(55),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=u(t,a({min:n[0],max:n[1]})):"dataMin"!==a&&(this._modelMinNum=u(t,a));var s=this._modelMaxRaw=e.get("max",!0);if(Object(r.isFunction)(s)?this._modelMaxNum=u(t,s({min:n[0],max:n[1]})):"dataMax"!==s&&(this._modelMaxNum=u(t,s)),o)this._axisDataLen=e.getCategories().length;else{var l=e.get("boundaryGap"),c=Object(r.isArray)(l)?l:[l||0,l||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,l="dataMax"===this._modelMaxRaw?n:this._modelMaxNum,u=null!=s,c=null!=l;null==s&&(s=t?i?0:NaN:e-o[0]*a),null==l&&(l=t?i?i-1:NaN:n+o[1]*a),(null==s||!isFinite(s))&&(s=NaN),(null==l||!isFinite(l))&&(l=NaN);var h=Object(r.eqNaN)(s)||Object(r.eqNaN)(l)||t&&!i;this._needCrossZero&&(s>0&&l>0&&!u&&(s=0),s<0&&l<0&&!c&&(l=0));var d=this._determinedMin,f=this._determinedMax;return null!=d&&(s=d,u=!0),null!=f&&(l=f,c=!0),{min:s,max:l,minFixed:u,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 l(t,e,n){var r=t.rawExtentInfo;return r||(r=new o(t,e,n),t.rawExtentInfo=r,r)}function u(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(113),s=n(209),l=n(211),u=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 l(t,e,n,i,o,a,s){for(var l=new Date(e),u=e,c=l[i]();u<n&&u<=r[1];)s.push({value:u}),c+=t,l[o](c),u=l.getTime();s.push({value:u,notAdd:!0})}function c(t,a,s){var u=[],c=!a.length;if(!function(t,e,n,r){var a=i.parseDate(e),s=i.parseDate(n),l=function(t){return Object(o.getUnitValue)(a,t,r)===Object(o.getUnitValue)(s,t,r)},u=function(){return l("year")},c=function(){return u()&&l("month")},h=function(){return c()&&l("day")},d=function(){return h()&&l("hour")},f=function(){return d()&&l("minute")},p=function(){return f()&&l("second")};switch(t){case"year":return u();case"month":return c();case"day":return h();case"hour":return d();case"minute":return f();case"second":return p();case"millisecond":return p()&&l("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":_=f(e),x=Object(o.monthGetterName)(n),w=Object(o.monthSetterName)(n);break;case"week":case"half-week":case"day":_=d(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)}l(_,y,b,x,w,0,u),"year"===t&&s.length>1&&0===h&&s.unshift({value:s[0].value-_})}}for(h=0;h<u.length;h++)s.push(u[h]);return u}}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 M=Object(u.filter)(Object(u.map)(h,(function(t){return Object(u.filter)(t,(function(t){return t.value>=r[0]&&t.value<=r[1]&&!t.notAdd}))})),(function(t){return t.length>0})),A=[],I=M.length-1;for(x=0;x<M.length;++x)for(var j=M[x],k=0;k<j.length;++k)A.push({value:j[k].value,level:I-x});A.sort((function(t,e){return t.value-e.value}));var P=[];for(x=0;x<A.length;++x)0!==x&&A[x].value===A[x-1].value||P.push(A[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(u.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 d(t,e){return(t/=o.ONE_DAY)>16?16:t>7.5?7:t>3.5?4:t>1.5?2:1}function f(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()}l.default.registerClass(c),e.default=c},function(t,e,n){"use strict";n.r(e);var r=n(76),i=Math.sin,o=Math.cos,a=Math.PI,s=2*Math.PI,l=180/a,u=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,u,c,h,d,f){var p=d-h,g=!f,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+u*i(h);this._start&&this._add("M",_,x);var w=Math.round(c*l);if(m){var O=1/this._p,S=(g?1:-1)*(s-O);this._add("A",n,u,w,1,+g,t+n*o(h+S),e+u*i(h+S)),O>.01&&this._add("A",n,u,w,0,+g,_,x)}else{var C=t+n*o(d),E=e+u*i(d);this._add("A",n,u,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,l){for(var u=[],c=this._p,h=1;h<arguments.length;h++){var d=arguments[h];if(isNaN(d))return void(this._invalid=!0);u.push(Math.round(d*c)/c)}this._d.push(t+u.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=u},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"),l=t.coordinateSystem,u=a.count();if(u>10&&"cartesian2d"===l.type&&s){var c=l.getBaseAxis(),h=l.getOtherAxis(c),d=c.getExtent(),f=n.getDevicePixelRatio(),p=Math.abs(d[1]-d[0])*(f||1),g=Math.round(u/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 u})),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 l(t,e){return i.getLayoutRect(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function u(t,e){var n=l(t,e),i=t.get("center"),a=t.get("radius");o.isArray(a)||(a=[0,a]),o.isArray(i)||(i=[i,i]);var s=Object(r.parsePercent)(n.width,e.getWidth()),u=Object(r.parsePercent)(n.height,e.getHeight()),c=Math.min(s,u);return{cx:Object(r.parsePercent)(i[0],s)+n.x,cy:Object(r.parsePercent)(i[1],u)+n.y,r0:Object(r.parsePercent)(a[0],c/2),r:Object(r.parsePercent)(a[1],c/2)}}function c(t,e,n){e.eachSeriesByType(t,(function(t){var e=t.getData(),i=e.mapDimension("value"),o=l(t,n),c=u(t,n),h=c.cx,d=c.cy,f=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:f}),e.each(i,(function(t,n){var i;if(isNaN(t))e.setItemLayout(n,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:_,cx:h,cy:d,r0:p,r:x?NaN:f});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:d,r0:p,r:x?Object(r.linearMap)(t,O,[p,f]):f}),E=o}})),S<a&&m)if(S<=.001){var M=a/m;e.each(i,(function(t,n){if(!isNaN(t)){var r=e.getItemLayout(n);r.angle=M,r.startAngle=g+T*n*M,r.endAngle=g+T*(n+1)*M}}))}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(62),o=n(1297),a=n(70),s=n(0),l=n(834),u=n(303),c=n(1298),h=n(835),d=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),f={offset:0};function p(t){t.registerComponentView(d),t.registerComponentModel(o.default),t.registerCoordinateSystem("cartesian2d",c.default),Object(u.default)(t,"x",l.CartesianAxisModel,f),Object(u.default)(t,"y",l.CartesianAxisModel,f),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 l}));var r=n(6),i=n(209),o=n(77),a=n(113),s=Math.log;function l(t,e,n){var l=i.default.prototype,u=l.getTicks.call(n),c=l.getTicks.call(n,!0),h=u.length-1,d=l.getInterval.call(n),f=Object(o.getScaleExtent)(t,e),p=f.extent,g=f.fixMin,v=f.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=l.getExtent.call(t);g&&(p[0]=y[0]),v&&(p[1]=y[1]);var b=l.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=(u[0].value-c[0].value)/d,S=(u[h].value-c[h].value)/d;l.setExtent.call(t,_+b*O,x+b*S),l.setInterval.call(t,b),(O||S)&&l.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),l=r.defaults({logBase:10},a);e.default={category:o,value:a,time:s,log:l}},function(t,e,n){"use strict";n.r(e);var r=n(0),i=n(753),o=n(33),a=n(6),s=n(195),l=n(20);function u(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 u=r[0],c=r[1],h=i[0],d=i[1];r=[1/0,1/0],i=[-1/0,-1/0];var f=function(t,e,n,o){for(var a=n-t,u=o-e,c=0;c<=100;c++){var h=c/100,d=s.project([t+a*h,e+u*h]);l.min(r,r,d),l.max(i,i,d)}};f(u,c,h,c),f(h,c,h,d),f(h,d,u,d),f(u,d,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")),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"),l=new i.default(s+a,s,r.extend({nameMap:t.get("nameMap")},o(t)));l.zoomLimit=t.get("scaleLimit"),n.push(l),t.coordinateSystem=l,l.model=t,l.resize=u,l.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")})),l=new i.default(a,a,r.extend({nameMap:r.mergeAll(s)},o(t[0])));l.zoomLimit=r.retrieve.apply(null,r.map(t,(function(t){return t.get("scaleLimit")}))),n.push(l),l.resize=u,l.resize(t[0],e),r.each(t,(function(t){t.coordinateSystem=l,function(t,e){r.each(e.get("geoCoord"),(function(e,n){t.addGeoCoord(n,e)}))}(l,t)}))})),n},t.prototype.getFilledRegions=function(t,e,n,i){for(var o=(t||[]).slice(),a=r.createHashMap(),l=0;l<o.length;l++)a.set(o[l].name,o[l]);var u=s.default.load(e,n,i);return r.each(u.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(296),o=n(340),a=n(356),s=n(39),l=n(23),u=n(165),c=n(175),h=n(428),d=n(14),f=n(13),p=n(195),g=n(103),v=n(27),m=n(32),y=n(330),b=n(97),_=n(10),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 M=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,u=this._regionsGroup,c=this.group,h=s.getTransformInfo(),d=h.raw,f=h.roam;!u.childAt(0)||i?(c.x=f.x,c.y=f.y,c.scaleX=f.scaleX,c.scaleY=f.scaleY,c.dirty()):l.updateProps(c,f,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:d};"geoJSON"===s.resourceType?this._buildGeoJSON(g):"geoSVG"===s.resourceType&&this._buildSVG(g),this._updateController(t,e,n),this._updateMapSelectHandler(t,u,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,l=t.data,d=t.geo.projection,f=d&&d.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=!f&&d&&d.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=l?l.indexOfName(g):null,_=t.isGeo?a.getRegionModel(g):l?l.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||[]);f&&(e=L(e,f)),r.each(e,(function(t){x.push(new u.default(v(t)))}))}else{var n=t.points;f&&(n=L(n,f,!0)),r.each(n,(function(t){w.push(new c.default(v(t)))}))}}));var O=p(o.getCenter(),d&&d.project);function S(e,n){if(e.length){var i=new h.default({culling:!0,segmentIgnoreThreshold:1,shape:{paths:e}});m.add(i),A(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,l=e.el,u=a?a.indexOfName(n):null,c=r.getRegionModel(n);(null!=w.get(s)&&l instanceof b.default&&A(t,l,u,c),l instanceof b.default&&(l.culling=!0),l.z2EmphasisLift=0,e.namedFrom)||(null!=S.get(s)&&I(t,l,n,c,r,u,null),j(t,l,n,c,r,u),k(t,l,n,c,r),null!=O.get(s)&&("self"===P(t,l,n,c,r)&&(o=!0),(i.get(n)||i.set(n,[])).push(l)))}),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(f.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,l=this._controllerHost;l.zoomLimit=t.get("scaleLimit"),l.zoom=i.getZoom(),s.enable(t.get("roam")||!1);var u=t.mainType;function c(){var e={type:"geoRoam",componentType:u};return e[u+"Id"]=t.id,e}s.off("pan").on("pan",(function(t){this._mouseDownFlag=!1,o.updateViewOnPan(l,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(l,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 A(t,e,n,r){var i=r.getModel("itemStyle"),o=r.getModel(["emphasis","itemStyle"]),a=r.getModel(["blur","itemStyle"]),s=r.getModel(["select","itemStyle"]),l=E(i),u=E(o),c=E(s),h=E(a),d=t.data;if(d){var p=d.getItemVisual(n,"style"),g=d.getItemVisual(n,"decal");t.isVisualEncodedByVisualMap&&p.fill&&(l.fill=p.fill),g&&(l.decal=Object(y.createOrUpdatePatternFromDecal)(g,t.api))}e.setStyle(l),e.style.strokeNoScale=!0,e.ensureState("emphasis").style=u,e.ensureState("select").style=c,e.ensureState("blur").style=h,Object(f.setDefaultStateProxy)(e)}function I(t,e,n,r,i,o,a){var s=t.data,l=t.isGeo,u=s&&isNaN(s.get(s.mapDimension("value"),o)),c=s&&s.getItemLayout(o);if(l||u||c&&c.showLabel){var h=l?n:o,d=void 0;(!s||o>=0)&&(d=i);var f=a?{normal:{align:"center",verticalAlign:"middle"}}:null;Object(v.setLabelStyle)(e,Object(v.getLabelStatesModels)(r),{labelFetcher:d,labelDataIndex:h,defaultText:n},f);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||d.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(f.toggleHoverEmphasis)(e,a,o.get("blurScope"),o.get("disabled")),t.isGeo&&Object(f.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 l=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&&l.polygonStart(),r.each(t,(function(t){l.lineStart();for(var e=0;e<t.length;e++)l.point(t[e][0],t[e][1]);l.lineEnd()})),!n&&l.polygonEnd(),o}e.default=M},function(t,e,n){"use strict";n.r(e);var r=n(0),i=n(10),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 d(e,this.dataType,o(this).mainData,t);var i;return e}function s(t,e){return t.struct&&t.struct.update(),e}function l(t,e){return Object(r.each)(o(e).datas,(function(n,r){n!==e&&d(n.cloneShallow(),r,e,t)})),e}function u(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){d(e,r,t,n)}))}function d(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=u,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)(l,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(302);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(109),o=n(1340),a=n(671),s=n(240),l=n(273),u=n(148),c=n(10);function h(t,e,n,h,d){for(var f=new o.default(h),p=0;p<t.length;p++)f.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;f.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(u.default)(t,n);else{var O=l.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),d&&d(x,E),Object(a.default)({mainData:x,struct:f,structAttr:"graph",datas:{node:x,edge:E},datasAttr:{node:"data",edge:"edgeData"}}),f.update(),f}},function(t,e,n){"use strict";n.r(e),n.d(e,"circularLayout",(function(){return u}));var r=n(20),i=n(235),o=n(0),a=n(335),s=Math.PI,l=[];function u(t,e){var n=t.coordinateSystem;if(!n||"view"===n.type){var i=n.getBoundingRect(),s=t.getData(),l=s.graph,u=i.width/2+i.x,h=i.height/2+i.y,d=Math.min(i.width,i.height)/2,f=s.count();s.setLayout({cx:u,cy:h}),f&&(c[e](t,l,s,d,u,h,f),l.eachEdge((function(e,n){var i,s=o.retrieve3(e.getModel().get(["lineStyle","curveness"]),Object(a.getCurvenessForEdge)(e,t,n),0),l=r.clone(e.node1.getLayout()),c=r.clone(e.node2.getLayout()),d=(l[0]+c[0])/2,f=(l[1]+c[1])/2;+s&&(i=[u*(s*=3)+d*(1-s),h*s+f*(1-s)]),e.setLayout([l,c,i])})))}}var c={value:function(t,e,n,r,i,o,a){var s=0,l=n.getSum("value"),u=2*Math.PI/(l||a);e.eachNode((function(t){var e=t.getValue("value"),n=u*(l?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,u){var c=0;l.length=u;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),l[t.dataIndex]=n,c+=2*n}));var d=(2*s-c)/u/2,f=0;e.eachNode((function(t){var e=d+l[t.dataIndex];f+=e,t.setLayout([r*Math.cos(f)+o,r*Math.sin(f)+a]),f+=e}))}}},function(t,e,n){"use strict";n.r(e),n.d(e,"WhiskerBoxCommonMixin",(function(){return s}));var r=n(246),i=n(0),o=n(331),a=n(139),s=function(){function t(){}return t.prototype.getInitialData=function(t,e){var n,s,l=e.getComponent("xAxis",this.get("xAxisIndex")),u=e.getComponent("yAxis",this.get("yAxisIndex")),c=l.get("type"),h=u.get("type");"category"===c?(t.layout="horizontal",n=l.getOrdinalMeta(),s=!0):"category"===h?(t.layout="vertical",n=u.getOrdinalMeta(),s=!0):t.layout=t.layout||"horizontal";var d=["x","y"],f="horizontal"===t.layout?0:1,p=this._baseAxisDim=d[f],g=d[1-f],v=[l,u],m=v[f].get("type"),y=v[1-f].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(244),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,l=i.end-i.start;if(n){for(var u=0,c=i.start;c<i.end;c++)u+=t.getLineCoordsCount(c);s=new Float32Array(l+2*u)}else s=new Float32Array(4*l);var h=0,d=[];for(c=i.start;c<i.end;c++){var f=t.getLineCoords(c,a);n&&(s[h++]=f);for(var p=0;p<f;p++)d=e.dataToPoint(a[p],!1,d),s[h++]=d[0],s[h++]=d[1]}o.setLayout("linesPoints",s)}else for(c=i.start;c<i.end;c++){var g=o.getItemModel(c),v=(f=t.getLineCoords(c,a),[]);if(n)for(var m=0;m<f;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(175),o=n(23),a=n(39),s=n(13),l=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,l=n&&n.blurScope,u=n&&n.emphasisDisabled;if(!n||t.hasItemOption){var c=i.getModel("emphasis");o=c.getModel("lineStyle").getLineStyle(),u=c.get("disabled"),a=c.get("focus"),l=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,l,u)},e.prototype.updateLayout=function(t,e){this.childAt(0).setShape("points",t.getItemLayout(e))},e}(a.default);e.default=l},function(t,e,n){"use strict";n.r(e);var r=n(5),i=n(39),o=n(448),a=n(0),s=n(60),l=n(20),u=n(47),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"),l=n.get("color")||o&&o.stroke,u=this.childAt(1);this._symbolType!==i&&(this.remove(u),(u=Object(s.createSymbol)(i,-.5,-.5,1,1,l)).z2=100,u.culling=!0,this.add(u)),u&&(u.setStyle("shadowColor",l),u.setStyle(n.getItemStyle(["color"])),u.scaleX=r[0],u.scaleY=r[1],u.setColor(l),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"),l=e.get("constantSpeed"),u=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){r.stopAnimation();var c=void 0;c=a.isFunction(u)?u(n):u,r.__t>0&&(c=-o*r.__t),this._animateSymbol(r,o,c,s)}this._period=o,this._loop=s}},e.prototype._animateSymbol=function(t,e,n,r){if(e>0){t.__t=0;var i=this,o=t.animate("",r).when(e,{__t:1}).delay(n).during((function(){i._updateSymbolPosition(t)}));r||o.done((function(){i.remove(t)})),o.start()}},e.prototype._getLineLength=function(t){return l.dist(t.__p1,t.__cp1)+l.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,o=[t.x,t.y],a=o.slice(),s=u.quadraticAt,c=u.quadraticDerivativeAt;o[0]=s(e[0],r[0],n[0],i),o[1]=s(e[1],r[1],n[1],i);var h=c(e[0],r[0],n[0],i),d=c(e[1],r[1],n[1],i);t.rotation=-Math.atan2(d,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*l.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*l.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(141),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(10);function o(t,e){var n,o=[],a=t.seriesIndex;if(null==a||!(n=e.getSeriesByIndex(a)))return{point:[]};var s=n.getData(),l=i.queryDataIndex(s,t);if(null==l||l<0||r.isArray(l))return{point:[]};var u=s.getItemGraphicEl(l),c=n.coordinateSystem;if(n.getTooltipPosition)o=n.getTooltipPosition(l)||[];else if(c&&c.dataToPoint)if(t.isStacked){var h=c.getBaseAxis(),d=c.getOtherAxis(h).dim,f=h.dim,p="x"===d||"radius"===d?1:0,g=s.mapDimension(f),v=[];v[p]=s.get(g,l),v[1-p]=s.get(s.getCalculationInfo("stackResultDimension"),l),o=c.dataToPoint(v)||[]}else o=c.dataToPoint(s.getValues(r.map(c.dimensions,(function(t){return s.mapDimension(t)})),l))||[];else if(u){var m=u.getBoundingRect().clone();m.applyTransform(u.transform),o=[m.x+m.width/2,m.y+m.height/2]}return{point:o,el:u}}},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(276),a=n(1446),s=n(130),l=n(541),u=["inBrush","outOfBrush"];function c(t){t.eachComponent({mainType:"brush"},(function(e){(e.brushTargetManager=new l.default(e.option,t)).setInputRanges(e.areas,t)}))}function h(t,e,n){var i,l,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,d=c.brushLink,g=[],v=[],m=[],y=!1;n||(i=c.throttleType,l=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,u,(function(t){t.mappingMethod="fixed"}));function x(t){return"all"===d||!!g[t]}function w(t){return!!t.length}r.isArray(d)&&r.each(d,(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){f(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 f(t,r,i,e)?(n.dataIndex.push(i.getRawIndex(e)),"inBrush"):"outOfBrush"};(x(e)?y:w(r))&&o.applyVisual(u,_,i,a)}))})),function(t,e,n,r,i){if(!i)return;var o=t.getZr();if(o.__ecInBrushSelectEvent)return;o.__ecBrushSelect||(o.__ecBrushSelect=d);s.createOrUpdate(o,"__ecBrushSelect",n,e)(t,r)}(e,i,l,h,n)}function d(t,e){if(!t.isDisposed()){var n=t.getZr();n.__ecInBrushSelectEvent=!0,t.dispatchAction({type:"brushSelect",batch:e}),n.__ecInBrushSelectEvent=!1}}function f(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(542),i=n(683),o=n(1462),a=n(1463);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(71),a=n(39),s=n(66),l=n(70),u=n(14),c=n(13),h=n(27),d=n(540),f=n(33),p=n(62),g=n(60),v=i.curry,m=i.each,y=a.default,b=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 y),this.group.add(this._selectorGroup=new y),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),l=t.get("selectorPosition",!0);!s||l&&"auto"!==l||(l="horizontal"===a?"end":"start"),this.renderInner(o,t,e,n,s,a,l);var u=t.getBoxLayoutParams(),c={width:n.getWidth(),height:n.getHeight()},h=t.get("padding"),p=f.getLayoutRect(u,c,h),g=this.layoutInner(t,o,p,r,s,l),v=f.getLayoutRect(i.defaults({width:g.width,height:g.height},u),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(d.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,l){var u=this.getContentGroup(),c=i.createHashMap(),h=e.get("selectedMode"),d=[];n.eachRawSeries((function(t){!t.get("legendHoverLink")&&d.push(t.id)})),m(e.getData(),(function(a,s){var l=a.get("name");if(!this.newlineDisabled&&(""===l||"\n"===l)){var f=new y;return f.newline=!0,void u.add(f)}var p=n.getSeriesByName(l)[0];if(!c.get(l)){if(p){var g=p.getData(),m=g.getVisual("legendLineStyle")||{},b=g.getVisual("legendIcon"),x=g.getVisual("style");this._createItem(p,l,s,a,e,t,m,x,b,h).on("click",v(_,l,null,r,d)).on("mouseover",v(w,p.name,null,r,d)).on("mouseout",v(O,p.name,null,r,d)),c.set(l,!0)}else n.eachRawSeries((function(n){if(!c.get(l)&&n.legendVisualProvider){var u=n.legendVisualProvider;if(!u.containName(l))return;var f=u.indexOfName(l),p=u.getItemVisual(f,"style"),g=u.getItemVisual(f,"legendIcon"),m=Object(o.parse)(p.fill);m&&0===m[3]&&(m[3]=.2,p=i.extend(i.extend({},p),{fill:Object(o.stringify)(m,"rgba")})),this._createItem(n,l,s,a,e,t,{},p,g,h).on("click",v(_,null,l,r,d)).on("mouseover",v(w,null,l,r,d)).on("mouseout",v(O,null,l,r,d)),c.set(l,!0)}}),this);0}}),this),a&&this._createSelector(a,e,r,s,l)},e.prototype._createSelector=function(t,e,n,r,i){var o=this.getSelectorGroup();m(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"),l=e.getModel(["emphasis","selectorLabel"]);Object(h.setLabelStyle)(i,{normal:a,emphasis:l},{defaultText:t.title}),Object(c.enableHoverEmphasis)(i)}))},e.prototype._createItem=function(t,e,n,r,o,a,d,f,p,v){var b=t.visualDrawType,_=o.get("itemWidth"),x=o.get("itemHeight"),w=o.isSelected(e),O=r.get("symbolRotate"),S=r.get("symbolKeepAspect"),C=r.get("icon"),E=function(t,e,n,r,i,o){function a(t,e){"auto"===t.lineWidth&&(t.lineWidth=e.lineWidth>0?2:0),m(t,(function(n,r){"inherit"===t[r]&&(t[r]=e[r])}))}var s=e.getModel("itemStyle").getItemStyle(),l=0===t.lastIndexOf("empty",0)?"fill":"stroke";s.decal=r.decal,"inherit"===s.fill&&(s.fill=r[i]);"inherit"===s.stroke&&(s.stroke=r[l]);"inherit"===s.opacity&&(s.opacity=("fill"===i?r:n).opacity);a(s,r);var u=e.getModel("lineStyle"),c=u.getLineStyle();if(a(c,n),"auto"===s.fill&&(s.fill=r.fill),"auto"===s.stroke&&(s.stroke=r.fill),"auto"===c.stroke&&(c.stroke=r.fill),!o){var h=e.get("inactiveBorderWidth"),d=s[l];s.lineWidth="auto"===h?r.lineWidth>0&&d?2:0:s.lineWidth,s.fill=e.get("inactiveColor"),s.stroke=e.get("inactiveBorderColor"),c.stroke=u.get("inactiveColor"),c.lineWidth=u.get("inactiveWidth")}return{itemStyle:s,lineStyle:c}}(p=C||p||"roundRect",r,d,f,b,w),T=new y,M=r.getModel("textStyle");if(!i.isFunction(t.getLegendIcon)||C&&"inherit"!==C){var A="inherit"===C&&t.getData().getVisual("symbol")?"inherit"===O?t.getData().getVisual("symbolRotate"):O:0;T.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:_,itemHeight:x,icon:p,iconRotate:A,itemStyle:E.itemStyle,lineStyle:E.lineStyle,symbolKeepAspect:S}))}else T.add(t.getLegendIcon({itemWidth:_,itemHeight:x,icon:p,iconRotate:O,itemStyle:E.itemStyle,lineStyle:E.lineStyle,symbolKeepAspect:S}));var I="left"===a?_+5:-5,j=a,k=o.get("formatter"),P=e;i.isString(k)&&k?P=k.replace("{name}",null!=e?e:""):i.isFunction(k)&&(P=k(e));var L=r.get("inactiveColor");T.add(new s.default({style:Object(h.createTextStyle)(M,{text:P,x:I,y:x/2,fill:w?M.getTextColor():L,align:j,verticalAlign:"middle"})}));var D=new l.default({shape:T.getBoundingRect(),invisible:!0}),R=r.getModel("tooltip");return R.get("show")&&u.setTooltipConfig({el:D,componentModel:o,itemName:e,itemTooltipOption:R.option}),T.add(D),T.eachChild((function(t){t.silent=!0})),D.silent=!v,this.getContentGroup().add(T),Object(c.enableHoverEmphasis)(T),T.__legendDataIndex=n,T},e.prototype.layoutInner=function(t,e,n,r,i,o){var a=this.getContentGroup(),s=this.getSelectorGroup();f.box(t.get("orient"),a,t.get("itemGap"),n.width,n.height);var l=a.getBoundingRect(),u=[-l.x,-l.y];if(s.markRedraw(),a.markRedraw(),i){f.box("horizontal",s,t.get("selectorItemGap",!0));var c=s.getBoundingRect(),h=[-c.x,-c.y],d=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]+=l[g]+d:u[p]+=c[g]+d,h[1-p]+=l[v]/2-c[v]/2,s.x=h[0],s.y=h[1],a.x=u[0],a.y=u[1];var y={x:0,y:0};return y[g]=l[g]+d+c[g],y[v]=Math.max(l[v],c[v]),y[m]=Math.min(0,c[m]+h[1-p]),y}return a.x=u[0],a.y=u[1],this.group.getBoundingRect()},e.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},e.type="legend.plain",e}(p.default);function _(t,e,n,r){O(t,e,n,r),n.dispatchAction({type:"legendToggleSelect",name:null!=t?t:e}),w(t,e,n,r)}function x(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 w(t,e,n,r){x(n)||n.dispatchAction({type:"highlight",seriesName:t,name:e,excludeSeriesId:r})}function O(t,e,n,r){x(n)||n.dispatchAction({type:"downplay",seriesName:t,name:e,excludeSeriesId:r})}e.default=b},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(70),a=n(48),s=n(33),l=n(127),u=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 u(t){return a[t]}function c(t,e){a[t]=e}var h=o.controllerVisuals[r||o.getValueState(t)],d=l.default.prepareVisualTypes(h);return i.each(d,(function(r){var i=h[r];n.convertOpacityToAlpha&&"opacity"===r&&(r="colorAlpha",i=h.__alphaForOpacity),l.default.dependsOn(r,e)&&i&&i.applyVisual(t,u,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(62).default);e.default=u},function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return l}));var r=n(848),i=n(1474),o=n(0),a=n(1475),s=!1;function l(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(688),a=n(92),s={};var l=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=[],l=this.getChildren().filter((function(t){return t.get("visible")&&(!t.isGroup()||t.isGroup()&&t.getChildren().length>0)}));return l.length>0?(Object(a.each)(l,(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=[],l=this.getChildren().filter((function(t){return t.get("visible")&&(!t.isGroup()||t.isGroup()&&t.getChildren().length>0)}));return l.length>0?(Object(a.each)(l,(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(),l=new o[i](r);return this.add(l),l},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=l},function(t,e,n){"use strict";n.r(e);var r=n(2),i=n(1),o=n(25),a=n(92),s=n(212),l=n(611),u=o.ext.transform,c=["zIndex","capture","visible","type"],h=["repeat"];function d(t,e){var n={},r=e.attrs;for(var i in t)n[i]=r[i];return n}function f(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,l,u,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=(u=h).duration,v=u.easing||"easeLinear",_=u.delay||0,a=u.repeat||a||!1,y=u.callback||i.noop,s=u.pauseCallback||i.noop,l=u.resumeCallback||i.noop):(Object(i.isNumber)(y)&&(_=y,y=null),Object(i.isFunction)(v)?(y=v,v="easeLinear"):v=v||"easeLinear");var x=f(c,this),w={fromAttrs:d(x,this),toAttrs:x,duration:h,easing:v,repeat:a,callback:y,pauseCallback:s,resumeCallback:l,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],u=s.get("name");if(u){if((s.isGroup()||s.isCanvas&&s.isCanvas())&&n&&Object(a.isParent)(s,n))return"break";Object(i.isArray)(u)?Object(i.each)(u,(function(t){r.emitDelegateEvent(s,t,e)})):l.emitDelegateEvent(s,u,e)}},l=this,u=0;u<o.length;u++){if("break"===s(u))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=u(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=u(n,[["s",t,e||t]]);return this.setMatrix(r),this},e.prototype.rotate=function(t){var e=this.getMatrix(),n=u(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=u(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=u(r,[["t",-t,-e],["r",n],["t",t,e]]);return this.setMatrix(i),this},e}(l.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,l=i<e-1?t[i+2]:2*a-o;return r((n-i/e)*e,s,o,a,l)}}},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 l})),n.d(e,"detect",(function(){return d})),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},l=function(){this.type="react-native",this.name="react-native",this.version=null,this.os=null},u=/(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 d(t){return t?g(t):"undefined"==typeof document&&"undefined"!=typeof navigator&&"ReactNative"===navigator.product?new l:"undefined"!=typeof navigator?g(navigator.userAgent):m()}function f(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=f(t);return e?e[0]:null}function g(t){var e=f(t);if(!e)return null;var n=e[0],o=e[1];if("searchbot"===n)return new s;var l=o[1]&&o[1].split(".").join("_").split("_").slice(0,3);l?l.length<3&&(l=r(r([],l,!0),function(t){for(var e=[],n=0;n<t;n++)e.push("0");return e}(3-l.length),!0)):l=[];var c=l.join("."),h=v(t),d=u.exec(t);return d&&d[1]?new a(n,c,h,d[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(416))},function(t,e,n){"use strict";n.r(e),n.d(e,"assign",(function(){return l})),n.d(e,"format",(function(){return E})),n.d(e,"parse",(function(){return T})),n.d(e,"defaultI18n",(function(){return d})),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 l(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 u=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],c=["January","February","March","April","May","June","July","August","September","October","November","December"],h=a(c,3),d={dayNamesShort:a(u,3),dayNames:u,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]}},f=l({},d),p=function(t){return f=l(f,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 l(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=l(l({},f),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=[],u=e.replace(o,(function(t,e){return s.push(g(e)),"@@@"})),c={},h={};u=g(u).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")})),u=u.replace(/@@@/g,(function(){return s.shift()}));var d=t.match(new RegExp(u,"i"));if(!d)return null;for(var p,v=l(l({},f),n),m=1;m<d.length;m++){var y=a[m-1],b=y[0],_=y[2],x=_?_(d[m],v):+d[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 M={format:E,parse:T,defaultI18n:d,setGlobalDateI18n:p,setGlobalDateMasks:C};e.default=M},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 l=e.length,u=t.min,c=t.max;if(Object(r.isNil)(u)&&(u=0),Object(r.isNil)(c)&&(c=e.length-1),!Object(r.isNumber)(i)||i>=l)return e.slice(u,c+1);if(i<=0||c<=0)return[];for(var h=1===i?l:Math.floor(l/(i-1)),d=[],f=u,p=0;p<i&&!(f>=c);p++)f=Math.min(u+p*h,c),p===i-1&&o?d.push(e[c]):d.push(e[f]);return d}},function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return i}));var r=n(344);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 l=Math.ceil(e/s),u=Math.floor(t/s),c=Math.max(l*s,e),h=Math.min(u*s,t),d=Math.floor((c-h)/s)+1,f=new Array(d),p=0;p<d;p++)f[p]=Object(r.prettyNumber)(h+p*s);return{min:h,max:c,ticks:f}}},function(t,e,n){"use strict";n.r(e);var r=n(1052);n.d(e,"autoEllipsis",(function(){return r}));var i=n(1053);n.d(e,"autoHide",(function(){return i}));var o=n(1054);n.d(e,"autoRotate",(function(){return o}))},function(t,e,n){"use strict";n.r(e),n.d(e,"createThemeByStyleSheet",(function(){return l}));var r=n(2),i=n(91),o=n(25),a=n(1),s=n(69);function l(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}}},l=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),u=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),l=7.5*Math.sin(i);return{matrix:o.ext.transform(null,[["t",a,l]])}}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:l,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)({},l.grid,{line:{type:"line"}})},radius:{title:null,grid:Object(a.deepMix)({},l.grid,{line:{type:"circle"}})}},legend:{common:u,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:u.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 l}));var r=n(270);n.d(e,"Shape",(function(){return r}));var i=n(79);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(1085);n.d(e,"Canvas",(function(){return o.default}));var a=n(438);n.d(e,"Group",(function(){return a.default}));var s=n(528);n.d(e,"getArcParams",(function(){return s.default}));var l="0.5.12"},function(t,e,n){"use strict";n.r(e),n.d(e,"parseLineGradient",(function(){return u})),n.d(e,"parseRadialGradient",(function(){return c})),n.d(e,"parsePattern",(function(){return h})),n.d(e,"parseStyle",(function(){return d})),n.d(e,"parseRadius",(function(){return f}));var r=n(56),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 l(t,e){var n=t.match(s);Object(r.each)(n,(function(t){var n=t.split(":");e.addColorStop(n[0],n[1])}))}function u(t,e,n){var r,o,a=i.exec(n),s=parseFloat(a[1])%360*(Math.PI/180),u=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),d=h*h,f=(o.x-r.x+h*(o.y-r.y))/(d+1)+r.x,p=h*(o.x-r.x+h*(o.y-r.y))/(d+1)+r.y,g=t.createLinearGradient(r.x,r.y,f,p);return l(u,g),g}function c(t,e,n){var r=o.exec(n),i=parseFloat(r[1]),a=parseFloat(r[2]),u=parseFloat(r[3]),c=r[4];if(0===u){var h=c.match(s);return h[h.length-1].split(":")[1]}var d=e.getBBox(),f=d.maxX-d.minX,p=d.maxY-d.minY,g=Math.sqrt(f*f+p*p)/2,v=t.createRadialGradient(d.minX+f*i,d.minY+p*a,0,d.minX+f/2,d.minY+p/2,u*g);return l(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],l=o[2];function u(){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,l.match(/^data:/i)||(i.crossOrigin="Anonymous"),i.src=l,i.complete?u():(i.onload=u,i.src=i.src),r}function d(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 u(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 f(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(79);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 l=t[s],u=t[(s+1)%a];if(i(l,u,[e,n]))return!0;r(l[1]-n)>0!=r(u[1]-n)>0&&r(e-(n-l[1])*(l[0]-u[0])/(l[1]-u[1])-l[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(257);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 l=t[s][0],u=t[s][1],c=t[s+1][0],h=t[s+1][1];if(Object(r.default)(l,u,c,h,e,n,i))return!0}if(o){var d=t[0],f=t[a-1];if(Object(r.default)(d[0],d[1],f[0],f[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(82),a=n(352),s=Math.PI/2,l=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),l=t.labelEmit,u=this.getCirclePoint(s,a,r,l);return 0===u.r?u.content="":(u.content=o,u.angle=s,u.color=e.color),u.rotate=t.autoRotate?this.getLabelRotate(s,a,l):t.rotate,u.start={x:r.x,y:r.y},u},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(),l=Object(o.getDistanceToCenter)(a,n);if(0===l)return Object(r.__assign)(Object(r.__assign)({},s),{r:l});var u=t;a.isTransposed&&l>e&&!i?u=t+2*Math.asin(e/(2*l)):l+=e;return{x:s.x+l*Math.cos(u),y:s.y+l*Math.sin(u),r:l}},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=l},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,l=Math.abs(a-s),u=0,c=Number.MIN_VALUE,h=r.map((function(t){return t.y>u&&(u=t.y),t.y<c&&(c=t.y),{content:t.content,size:e,targets:[t.y-a],pos:null}}));for(c-=a,u-a>l&&(l=u-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),l-t.size),t.pos=Math.max(0,t.pos)})),o=!1,i=h.length;i--;)if(i>0){var d=h[i-1],f=h[i];d.pos+d.size>f.pos&&(d.size+=f.size,d.targets=d.targets.concat(f.targets),d.pos+d.size>l&&(d.pos=l-d.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(87).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(161),a=n(368),s=n(467);!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 l=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=l},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(469).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(469).default);e.default=o},function(t,e,n){"use strict";n.r(e);var r=n(2),i=n(289),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)?t===e?"100%":0===t?"∞":0===e?"-∞":(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(819),o=n(4),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,r=!1;switch(n.type){case"x-rect":r=t===("highlight"===n.action?"brush-x-highlight":"brush-x");break;case"y-rect":r=t===("highlight"===n.action?"brush-y-highlight":"brush-y");break;default:r=t===("highlight"===n.action?"brush-highlight":"brush")}var o={type:t,enable:r};((null===(e=n.mask)||void 0===e?void 0:e.style)||n.type)&&(o.cfg=Object(i.getInteractionCfg)(t,n.type,n.mask)),s.push(o)})),"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(4),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 l=Object(r.valuesOfKey)(s,e),u=Object(r.getRange)(l),c=u.max-u.min,h=n;if(!n&&o&&(h=o>1?c/(o-1):u.max),!n&&!o){var d=function(t){return Math.ceil(Math.log(t.length)/Math.LN2)+1}(l);h=c/d}var f={},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)(f,a)||(f[a]={range:n,count:0}),f[a].count+=1})):Object.keys(p).forEach((function(t){Object(r.each)(p[t],(function(n){var s=i(n[e],h,o),l=s[0]+"-"+s[1]+"-"+t;Object(r.hasKey)(f,l)||(f[l]={range:s,count:0},f[l][a]=t),f[l].count+=1}))}));var g=[];return Object(r.each)(f,(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(9),o=n(243),a=n(4),s=n(34),l=n(714),u=n(262);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,d=n.stackField,f=n.legend,p=n.columnStyle,g=Object(l.binHistogram)(r,i,c,o,d);e.data(g);var v=Object(a.deepAssign)({},t,{options:{xField:u.HISTOGRAM_X_FIELD,yField:u.HISTOGRAM_Y_FIELD,seriesField:d,isStack:!0,interval:{color:h,style:p}}});return Object(s.interval)(v),f&&d&&e.legend(d,f),t}function h(t){var e,n=t.options,r=n.xAxis,o=n.yAxis;return Object(a.flow)(Object(i.scale)(((e={})[u.HISTOGRAM_X_FIELD]=r,e[u.HISTOGRAM_Y_FIELD]=o,e)))(t)}function d(t){var e=t.chart,n=t.options,r=n.xAxis,i=n.yAxis;return!1===r?e.axis(u.HISTOGRAM_X_FIELD,!1):e.axis(u.HISTOGRAM_X_FIELD,r),!1===i?e.axis(u.HISTOGRAM_Y_FIELD,!1):e.axis(u.HISTOGRAM_Y_FIELD,i),t}function f(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:[u.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,d,i.state,f,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(261),o=function(t,e){var n=t;if(Array.isArray(e)){var o=e[0],a=e[1],s=e[2],l=e[3],u=e[4];n=Object(r.map)(t,(function(t){return t[i.BOX_RANGE]=[t[o],t[a],t[s],t[l],t[u]],t}))}return n}},function(t,e,n){"use strict";n.r(e),n.d(e,"toBoxValue",(function(){return l})),n.d(e,"toViolinValue",(function(){return u})),n.d(e,"transformViolinData",(function(){return c}));var r=n(2),i=n(1),o=n(1654),a=n.n(o),s=n(499),l=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)]}},u=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},u(e,c)),l(e))}))}var d=[],f=Object(i.groupBy)(a,o);return Object.keys(f).forEach((function(t){var a=Object(i.groupBy)(f[t],e);return Object.keys(a).forEach((function(e){var i,s=a[e].map((function(t){return t[n]}));d.push(Object(r.__assign)(Object(r.__assign)(((i={x:e})[o]=t,i),u(s,c)),l(s)))}))})),d}},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 d})),n.d(e,"legend",(function(){return f})),n.d(e,"adaptor",(function(){return p}));var r=n(9),i=n(34),o=n(4),a=n(134),s=n(179),l=n(720);function u(t){var e=t.chart,n=t.options,r=n.yField,a=n.data,u=n.risingFill,c=n.fallingFill,h=n.tooltip,d=n.stockStyle;e.data(Object(l.getStockData)(a,r));var f=h;return!1!==f&&(f=Object(o.deepAssign)({},{fields:r},f)),Object(i.schema)(Object(o.deepAssign)({},t,{options:{schema:{shape:"candle",color:[u,c],style:d},yField:s.Y_FIELD,seriesField:s.TREND_FIELD,rawFields:r,tooltip:f}})),t}function c(t){var e,n,r=t.chart,i=t.options,l=i.meta,u=i.xAxis,c=i.yAxis,h=i.xField,d=((e={})[h]={type:"timeCat",tickCount:6},e[s.TREND_FIELD]={values:[s.TREND_UP,s.TREND_DOWN]},e),f=Object(o.deepAssign)(d,l,((n={})[h]=Object(o.pick)(u,a.AXIS_META_CONFIG_KEYS),n[s.Y_FIELD]=Object(o.pick)(c,a.AXIS_META_CONFIG_KEYS),n));return r.scale(f),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 d(t){var e=t.chart,n=t.options.tooltip;return!1!==n?e.tooltip(n):e.tooltip(!1),t}function f(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,u,c,h,d,f,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 o}));var r=n(1),i=n(179);function o(t,e){return Object(r.map)(t,(function(t){if(Object(r.isArray)(e)){var n=e[0],o=e[1],a=e[2],s=e[3];t[i.TREND_FIELD]=t[n]<=t[o]?i.TREND_UP:i.TREND_DOWN,t[i.Y_FIELD]=[t[n],t[o],t[a],t[s]]}return t}))}},function(t,e,n){"use strict";n.r(e),n.d(e,"meta",(function(){return g})),n.d(e,"adaptor",(function(){return y}));var r=n(1),i=n(9),o=n(275),a=n(4),s=n(711),l=n(722),u=n(1659),c=n(1660),h=n(1661),d=n(73);function f(t){var e,n=t.options,i=n.compareField,l=n.xField,u=n.yField,c=n.locale,h=n.funnelStyle,f=n.data,p=Object(o.getLocale)(c),g={label:i?{fields:[l,u,i,d.FUNNEL_PERCENT,d.FUNNEL_CONVERSATION],formatter:function(t){return""+t[u]}}:{fields:[l,u,d.FUNNEL_PERCENT,d.FUNNEL_CONVERSATION],offset:0,position:"middle",formatter:function(t){return t[l]+" "+t[u]}},tooltip:{title:l,formatter:function(t){return{name:t[l],value:t[u]}}},conversionTag:{formatter:function(t){return p.get(["conversionTag","label"])+": "+s.conversionTagFormatter.apply(void 0,t[d.FUNNEL_CONVERSATION])}}};return(i||h)&&(e=function(t){return Object(a.deepAssign)({},i&&{lineWidth:1,stroke:"#fff"},Object(r.isFunction)(h)?h(t):h)}),Object(a.deepAssign)({options:g},t,{options:{funnelStyle:e,data:Object(r.clone)(f)}})}function p(t){var e=t.options,n=e.compareField,r=e.dynamicHeight;return e.seriesField?Object(c.facetFunnel)(t):n?Object(u.compareFunnel)(t):r?Object(h.dynamicHeightFunnel)(t):Object(l.basicFunnel)(t)}function g(t){var e,n=t.options,r=n.xAxis,o=n.yAxis,s=n.xField,l=n.yField;return Object(a.flow)(Object(i.scale)(((e={})[s]=r,e[l]=o,e)))(t)}function v(t){return t.chart.axis(!1),t}function m(t){var e=t.chart,n=t.options.legend;return!1===n?e.legend(!1):e.legend(n),t}function y(t){return Object(a.flow)(f,p,g,v,i.tooltip,i.interaction,m,i.animation,i.theme,Object(i.annotation)())(t)}},function(t,e,n){"use strict";n.r(e),n.d(e,"basicFunnel",(function(){return p}));var r=n(2),i=n(1),o=n(4),a=n(125),s=n(102),l=n(73),u=n(369);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,l=Object(u.transformData)(i,i,{yField:o,maxSize:a,minSize:s});return e.data(l),t}function h(t){var e=t.chart,n=t.options,r=n.xField,u=n.yField,c=n.color,h=n.tooltip,d=n.label,f=n.shape,p=void 0===f?"funnel":f,g=n.funnelStyle,v=n.state,m=Object(a.getTooltipMapping)(h,[r,u]),y=m.fields,b=m.formatter;return Object(s.geometry)({chart:e,options:{type:"interval",xField:r,yField:l.FUNNEL_MAPPING_VALUE,colorField:r,tooltipFields:Object(i.isArray)(y)&&y.concat([l.FUNNEL_PERCENT,l.FUNNEL_CONVERSATION]),mapping:{shape:p,tooltip:b,color:c,style:g},label:d,state:v}}),Object(o.findGeometry)(t.chart,"interval").adjust("symmetric"),t}function d(t){var e=t.chart,n=t.options.isTransposed;return e.coordinate({type:"rect",actions:n?[]:[["transpose"],["scale",1,-1]]}),t}function f(t){var e=t.options.maxSize;return Object(u.conversionTagComponent)((function(t,n,i,o){var a=e-(e-t[l.FUNNEL_MAPPING_VALUE])/2;return Object(r.__assign)(Object(r.__assign)({},o),{start:[n-.5,a],end:[n-.5,a+.05]})}))(t),t}function p(t){return Object(o.flow)(c,h,d,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,l=[],u=[];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,u=0===i?r:s[i]-s[i-1];l.push(((a={rKey:o+"_"+i})[n]=n?t[n]:String(e),a[o]=u,a))}));var c=[t[i]].flat();c.forEach((function(o,a){var s;l.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;l.push(((s={tKey:r(h,a,o)})[n]=n?t[n]:String(e),s[a]=i,s))})),u.push(t[o],t[i],t[a])}));var c=Math.min.apply(Math,u.flat(1/0)),h=Math.max.apply(Math,u.flat(1/0));return c=c>0?0:c,"vertical"===s&&l.reverse(),{min:c,max:h,ds:l}}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 u})),n.d(e,"treemap",(function(){return c}));var r=n(529),i=n(823),o=n(306),a=n(1),s=n(197),l={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 u(t,e){return"treemapSquarify"===t?r[t].ratio(e):r[t]}function c(t,e){var n,r=(e=Object(a.assign)({},l,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=u(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),d=r[0],f=r[1];return h.each((function(t){t[d]=[t.x0,t.x1,t.x1,t.x0],t[f]=[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 l}));var r=n(2),i=n(1),o=n(4),a=n(122);function s(t,e,n,a,s){var l,u=[];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 l=Object(i.isUndefined)(e[n])?null:e[n];return u.push(Object(r.__assign)(Object(r.__assign)({},e),((s={})[a]=[t,t+l],s))),t+l}),0),u.length&&s){var c=Object(i.get)(u,[[t.length-1],a,[1]]);u.push(((l={})[e]=s.label,l[n]=c,l[a]=[0,c],l))}return u}function l(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 l})),n.d(e,"getNodePaddingRatio",(function(){return u})),n.d(e,"transformToViewsData",(function(){return c}));var r=n(2),i=n(4),o=n(354),a=n(1685),s=n(1686);function l(t,e,n){return Object(i.isRealNumber)(t)?t/n:e}function u(t,e,n){return Object(i.isRealNumber)(t)?t/n:e}function c(t,e,n){var c,h=t.dataType,d=t.data,f=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)?d:Object(o.transformDataToNodeLinkData)(Object(s.cutoffCircle)(d,f,p),f,p,g,S);var C=Object(a.sankeyLayout)({nodeAlign:v,nodePadding:u(y,b,n),nodeWidth:l(_,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 l=0;l<t.plugins.length;l+=1)-1==o.AMapUI.plugins.indexOf(t.plugins[l])&&i.push(t.plugins[l]);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,l=o.AMapUI.version;var u=document.body||document.head,c=document.createElement("script");c.type="text/javascript",c.src="https://webapi.amap.com/ui/"+l+"/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]()},u.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,l=o.key,u=document.body||document.head,c=document.createElement("script");c.type="text/javascript",c.src="https://webapi.amap.com/loca?v="+i+"&key="+l,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]()},u.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:[]},l=[];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,u=e.version,c=e.plugins;s?(window.AMap&&"lbs.amap.com"!==location.host&&i("禁止多种API加载方式混用"),o.key=s,o.AMap.version=u||o.AMap.version,o.AMap.plugins=c||o.AMap.plugins,a.AMap=r.loading,u=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);l.length;)l.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)},u.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(u=0;u<e.plugins.length;u+=1)-1==o.AMap.plugins.indexOf(e.plugins[u])&&s.push(e.plugins[u]);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(u=0;u<e.plugins.length;u+=1)-1==o.AMap.plugins.indexOf(e.plugins[u])&&h.push(e.plugins[u]);!function(t){"function"==typeof t&&(a.AMap===r.loaded?t(window.AMap):l.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(11),i=n.n(r),o=n(12),a=n.n(o),s=n(8),l=n.n(s),u=n(30),c=n.n(u),h=n(31),d=n.n(h),f=n(18),p=n.n(f),g=n(3),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 d()(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()(l()(t),"className",void 0),v()(l()(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(733).Node)},function(t,e,n){"use strict";n.r(e),n.d(e,"Node",(function(){return y}));var r=n(11),i=n.n(r),o=n(12),a=n.n(o),s=n(8),l=n.n(s),u=n(30),c=n.n(u),h=n(31),d=n.n(h),f=n(18),p=n.n(f),g=n(3),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 d()(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()(l()(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(472).default)},function(t,e,n){"use strict";n.r(e),n.d(e,"HTMLVideoElement",(function(){return p}));var r=n(12),i=n.n(r),o=n(11),a=n.n(o),s=n(30),l=n.n(s),u=n(31),c=n.n(u),h=n(18),d=n.n(h);function f(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 c()(this,n)}}var p=function(t){l()(n,t);var e=f(n);function n(){return a()(this,n),e.call(this,"video")}return i()(n)}(n(735).HTMLMediaElement)},function(t,e,n){"use strict";n.r(e),n.d(e,"HTMLMediaElement",(function(){return p}));var r=n(11),i=n.n(r),o=n(12),a=n.n(o),s=n(30),l=n.n(s),u=n(31),c=n.n(u),h=n(18),d=n.n(h);function f(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 c()(this,n)}}var p=function(t){l()(n,t);var e=f(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(342).HTMLElement)},function(t,e,n){"use strict";n.r(e),n.d(e,"Image",(function(){return u}));var r=n(12),i=n.n(r),o=n(11),a=n.n(o),s=n(234),l=n(145),u=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),l.parentNode(n),l.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 u})),n.d(e,"buildIconMaping",(function(){return c})),n.d(e,"nextPowOfTwo",(function(){return d}));var r=n(3),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 l(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 l(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 l(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 u(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,l=t.xOffset,u=void 0===l?0:l,c=t.yOffset,h=void 0===c?0:c,f=0,p=u;Array.from(e).forEach((function(t,e){if(!s[t]){var r=n(t,e);p+30>o&&(p=0,f++),s[t]={x:p,y:h+30*f,width:30,height:30,advance:r},p+=30}}));var g=r+2*i;return{mapping:s,xOffset:p,yOffset:h+f*g,canvasHeight:d(h+(f+1)*g)}}function c(t,e,n){var r,i=0,o=0,a=0,l=[],u={},c=s(t);try{for(c.s();!(r=c.n()).done;){var f=r.value;if(!u[f.id]){var p=f.size;i+p+e>n&&(h(u,l,o),i=0,o=a+o+e,a=0,l=[]),l.push({icon:f,xOffset:i}),i=i+p+e,a=Math.max(a,p)}}}catch(t){c.e(t)}finally{c.f()}return l.length>0&&h(u,l,o),{mapping:u,canvasHeight:d(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,l=o.icon,u=o.xOffset;t[l.id]=a(a({},l),{},{x:u,y:n,image:l.image,width:l.width,height:l.height})}}catch(t){i.e(t)}finally{i.f()}}function d(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(17),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";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";n.r(e),n.d(e,"default",(function(){return T}));var r=n(11),i=n.n(r),o=n(12),a=n.n(o),s=n(8),l=n.n(s),u=n(30),c=n.n(u),h=n(31),d=n.n(h),f=n(18),p=n.n(f),g=n(3),v=n.n(g),m=n(96),y=n.n(m),b=n(228),_=n(93),x=n(337),w=n(65),O=n(1763),S=n(81),C=n(61);function E(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 d()(this,n)}}var T=function(t){c()(n,t);var e=E(n);function n(t){var r;i()(this,n),r=e.call(this),v()(l()(r),"transform",void 0),v()(l()(r),"options",void 0),v()(l()(r),"moving",void 0),v()(l()(r),"zooming",void 0),v()(l()(r),"rotating",void 0),v()(l()(r),"pitching",void 0),v()(l()(r),"padding",void 0),v()(l()(r),"bearingSnap",void 0),v()(l()(r),"easeEndTimeoutID",void 0),v()(l()(r),"easeStart",void 0),v()(l()(r),"easeOptions",void 0),v()(l()(r),"easeId",void 0),v()(l()(r),"onEaseFrame",void 0),v()(l()(r),"onEaseEnd",void 0),v()(l()(r),"easeFrameId",void 0),v()(l()(r),"pitchEnabled",void 0),v()(l()(r),"rotateEnabled",void 0),v()(l()(r),"renderFrameCallback",(function(){var t=Math.min((Object(C.now)()-r.easeStart)/r.easeOptions.duration,1);r.onEaseFrame(r.easeOptions.easing(t)),t<1?r.easeFrameId=r.requestRenderFrame(r.renderFrameCallback):r.stop()})),r.options=t;var o=t.minZoom,a=t.maxZoom,s=t.minPitch,u=t.maxPitch,c=t.renderWorldCopies;return r.moving=!1,r.zooming=!1,r.bearingSnap=t.bearingSnap,r.pitchEnabled=t.pitchEnabled,r.rotateEnabled=t.rotateEnabled,r.transform=new O.default(o,a,s,u,c),r}return a()(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 _.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(y()({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(y()({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(y()({bearing:t},e),n)}},{key:"resetNorth",value:function(t,e){return this.rotateTo(0,y()({duration:1e3},t),e),this}},{key:"resetNorthPitch",value:function(t,e){return this.easeTo(y()({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=x.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=_.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 S.Event("movestart",e)),this.emit("move",new S.Event("move",e)),r&&(this.emit("zoomstart",new S.Event("zoomstart",e)),this.emit("zoom",new S.Event("zoom",e)),this.emit("zoomend",new S.Event("zoomend",e))),i&&(this.emit("rotatestart",new S.Event("rotatestart",e)),this.emit("rotate",new S.Event("rotate",e)),this.emit("rotateend",new S.Event("rotateend",e))),o&&(this.emit("pitchstart",new S.Event("pitchstart",e)),this.emit("pitch",new S.Event("pitch",e)),this.emit("pitchend",new S.Event("pitchend",e))),this.emit("moveend",new S.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=y()({offset:[0,0],duration:500,easing:C.ease},e)).animate||!e.essential&&Object(C.prefersReducedMotion)())&&(e.duration=0);var r=this.transform,i=this.getZoom(),o=this.getBearing(),a=this.getPitch(),s=this.getPadding(),l=e.zoom?+e.zoom:i,u=e.bearing?this.normalizeBearing(e.bearing,o):o,c=e.pitch?+e.pitch:a,h=e.padding?e.padding:r.padding,d=w.default.convert(e.offset),f=r.centerPoint.add(d),p=r.pointLocation(f),g=_.default.convert(e.center||p);this.normalizeCenter(g);var v,m,b=r.project(p),x=r.project(g).sub(b),O=r.zoomScale(l-i);e.around&&(v=_.default.convert(e.around),m=r.locationPoint(v));var S={moving:this.moving,zooming:this.zooming,rotating:this.rotating,pitching:this.pitching};return this.zooming=this.zooming||l!==i,this.rotating=this.rotating||o!==u,this.pitching=this.pitching||c!==a,this.padding=!r.isPaddingEqual(h),this.easeId=e.easeId,this.prepareEase(n,e.noMoveStart,S),clearTimeout(this.easeEndTimeoutID),this.ease((function(e){if(t.zooming&&(r.zoom=Object(C.interpolate)(i,l,e)),t.rotating&&t.rotateEnabled&&(r.bearing=Object(C.interpolate)(o,u,e)),t.pitching&&t.pitchEnabled&&(r.pitch=Object(C.interpolate)(a,c,e)),t.padding&&(r.interpolatePadding(s,h,e),f=r.centerPoint.add(d)),v)r.setLocationAtPoint(v,m);else{var p=r.zoomScale(r.zoom-i),g=l>i?Math.min(2,O):Math.max(.5,O),y=Math.pow(g,1-e),_=r.unproject(b.add(x.mult(e*y)).mult(p));r.setLocationAtPoint(r.renderWorldCopies?_.wrap():_,f)}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(C.prefersReducedMotion)()){var r=Object(C.pick)(e,["center","zoom","bearing","pitch","around"]);return this.jumpTo(r,n)}this.stop(),e=y()({offset:[0,0],speed:1.2,curve:1.42,easing:C.ease},e);var i=this.transform,o=this.getZoom(),a=this.getBearing(),s=this.getPitch(),l=this.getPadding(),u=e.zoom?Object(C.clamp)(+e.zoom,i.minZoom,i.maxZoom):o,c=e.bearing?this.normalizeBearing(e.bearing,a):a,h=e.pitch?+e.pitch:s,d="padding"in e?e.padding:i.padding,f=i.zoomScale(u-o),p=w.default.convert(e.offset),g=i.centerPoint.add(p),v=i.pointLocation(g),m=_.default.convert(e.center||v);this.normalizeCenter(m);var b=i.project(v),x=i.project(m).sub(b),O=e.curve,S=Math.max(i.width,i.height),E=S/f,T=x.mag();if("minZoom"in e){var M=Object(C.clamp)(Math.min(e.minZoom,o,u),i.minZoom,i.maxZoom),A=S/i.zoomScale(M-o);O=Math.sqrt(A/T*2)}var I=O*O;function j(t){var e=(E*E-S*S+(t?-1:1)*I*I*T*T)/(2*(t?E:S)*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 D=j(0),R=function(t){return P(D)/P(D+O*t)},N=function(t){return S*((P(D)*L(D+O*t)-k(D))/I)/T},F=(j(1)-D)/O;if(Math.abs(T)<1e-6||!isFinite(F)){if(Math.abs(S-E)<1e-6)return this.easeTo(e,n);var B=E<S?-1:1;F=Math.abs(Math.log(E/S))/O,N=function(){return 0},R=function(t){return Math.exp(B*O*t)}}if("duration"in e)e.duration=+e.duration;else{var z="screenSpeed"in e?+e.screenSpeed/O:+e.speed;e.duration=1e3*F/z}return e.maxDuration&&e.duration>e.maxDuration&&(e.duration=0),this.zooming=!0,this.rotating=a!==c,this.pitching=h!==s,this.padding=!i.isPaddingEqual(d),this.prepareEase(n,!1),this.ease((function(e){var r=e*F,f=1/R(r);i.zoom=1===e?u:o+i.scaleZoom(f),t.rotating&&(i.bearing=Object(C.interpolate)(a,c,e)),t.pitching&&(i.pitch=Object(C.interpolate)(s,h,e)),t.padding&&(i.interpolatePadding(l,d,e),g=i.centerPoint.add(p));var v=1===e?m:i.unproject(b.add(x.mult(N(r))).mult(f));i.setLocationAtPoint(i.renderWorldCopies?v.wrap():v,g),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(w.default.convert(t)),this.transform.pointLocation(w.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(C.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 S.Event("move",t)),this.zooming&&this.emit("zoom",new S.Event("zoom",t)),this.rotating&&this.emit("rotate",new S.Event("rotate",t)),this.pitching&&this.emit("rotate",new S.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 S.Event("movestart",t)),this.zooming&&!n.zooming&&this.emit("zoomstart",new S.Event("zoomstart",t)),this.rotating&&!n.rotating&&this.emit("rotatestart",new S.Event("rotatestart",t)),this.pitching&&!n.pitching&&this.emit("pitchstart",new S.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 S.Event("zoomend",t)),r&&this.emit("rotateend",new S.Event("rotateend",t)),i&&this.emit("pitchend",new S.Event("pitchend",t)),this.emit("moveend",new S.Event("moveend",t))}}},{key:"ease",value:function(t,e,n){!1===n.animate||0===n.duration?(t(1),e()):(this.easeStart=Object(C.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=y()({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=y()(i,r.padding);var a=this.transform,s=a.padding,l=a.project(_.default.convert(t)),u=a.project(_.default.convert(e)),c=l.rotate(-n*Math.PI/180),h=u.rotate(-n*Math.PI/180),d=new w.default(Math.max(c.x,h.x),Math.max(c.y,h.y)),f=new w.default(Math.min(c.x,h.x),Math.min(c.y,h.y)),p=d.sub(f),g=(a.width-(s.left+s.right+r.padding.left+r.padding.right))/p.x,v=(a.height-(s.top+s.bottom+r.padding.top+r.padding.bottom))/p.y;if(!(v<0||g<0)){var m=Math.min(a.scaleZoom(a.scale*Math.min(g,v)),r.maxZoom),b=w.default.convert(r.offset),x=(r.padding.left-r.padding.right)/2,O=(r.padding.top-r.padding.bottom)/2,S=new w.default(b.x+x,b.y+O).mult(a.scale/a.zoomScale(m));return{center:a.unproject(l.add(u).div(2).sub(S)),zoom:m,bearing:n}}}},{key:"fitInternal",value:function(t,e,n){return t?(delete(e=y()(t,e)).padding,e.linear?this.easeTo(e,n):this.flyTo(e,n)):this}}]),n}(b.EventEmitter)},function(t,e,n){"use strict";n.r(e);var r=n(72),i=n.n(r),o=n(11),a=n.n(o),s=n(12),l=n.n(s),u=n(3),c=n.n(u),h=n(96),d=n.n(h),f=n(17),p=n(65),g=n(128),v=n(1765),m=n(1766),y=n(1767),b=n(81),_=n(1768),x=n(1769),w=n(1770),O=n(1771),S=n(766),C=n(1772),E=n(1773),T=n(1774),M=n(1775),A=n(1776),I=n(1777),j=n(1778),k=n(571);function P(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 L(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 L(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 L(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 D=function(t){return t.zoom||t.drag||t.pitch||t.rotate};function R(t){return t.panDelta&&t.panDelta.mag()||t.zoomDelta||t.bearingDelta||t.pitchDelta}var N=function(){function t(e,n){var r=this;a()(this,t),c()(this,"map",void 0),c()(this,"el",void 0),c()(this,"handlers",void 0),c()(this,"eventsInProgress",void 0),c()(this,"frameId",void 0),c()(this,"inertia",void 0),c()(this,"bearingSnap",void 0),c()(this,"handlersById",void 0),c()(this,"updatingCamera",void 0),c()(this,"changes",void 0),c()(this,"previousActiveHandlers",void 0),c()(this,"bearingChanged",void 0),c()(this,"rotateEnabled",void 0),c()(this,"pitchEnabled",void 0),c()(this,"listeners",void 0),c()(this,"handleWindowEvent",(function(t){r.handleEvent(t,"".concat(t.type,"Window"))})),c()(this,"handleEvent",(function(t,e){if("blur"!==t.type){r.updatingCamera=!0;var n,i="renderFrame"===t.type?void 0:t,o={needsRenderFrame:!1},a={},s={},l=t.touches?r.getMapTouches(t.touches):void 0,u=l?g.default.touchPos(r.el,l):g.default.mousePos(r.el,t),c=P(r.handlers);try{for(c.s();!(n=c.n()).done;){var h=n.value,d=h.handlerName,f=h.handler,p=h.allowed;if(f.isEnabled()){var v=void 0;if(r.blockedByActive(s,p,d))f.reset();else{var m=e||t.type;f&&f[m]&&(v=f[m](t,u,l),r.mergeIHandlerResult(o,a,v,d,i),v&&v.needsRenderFrame&&r.triggerRenderFrame())}(v||f.isActive())&&(s[d]=f)}}}catch(t){c.e(t)}finally{c.f()}var y={};for(var b in r.previousActiveHandlers)s[b]||(y[b]=i);r.previousActiveHandlers=s,(Object.keys(y).length||R(o))&&(r.changes.push([o,a,y]),r.triggerRenderFrame()),(Object.keys(s).length||R(o))&&r.map.stop(!0),r.updatingCamera=!1;var _=o.cameraAnimation;_&&(r.inertia.clear(),r.fireEvents({},{}),r.changes=[],_(r.map))}else r.stop()})),this.map=e,this.el=this.map.getCanvasContainer(),this.handlers=[],this.handlersById={},this.changes=[],this.inertia=new x.default(e),this.bearingSnap=n.bearingSnap,this.rotateEnabled=n.rotateEnabled,this.pitchEnabled=n.pitchEnabled,this.previousActiveHandlers={},this.eventsInProgress={},this.addDefaultHandlers(n);var o=this.el;if(this.listeners=[],f.isMini)f.$window.document.addEventListener("touchstart",(function(t){r.handleEvent(t)}),{}),f.$window.document.addEventListener("touchmove",(function(t){r.handleEvent(t)}),{}),f.$window.document.addEventListener("touchend",(function(t){r.handleEvent(t)}),{}),f.$window.document.addEventListener("touchcancel",(function(t){r.handleEvent(t)}),{});else{this.listeners=[[o,"touchstart",{passive:!1}],[o,"touchmove",{passive:!1}],[o,"touchend",void 0],[o,"touchcancel",void 0],[o,"mousedown",void 0],[o,"mousemove",void 0],[o,"mouseup",void 0],[window.document,"mousemove",{capture:!0}],[window.document,"mouseup",void 0],[o,"mouseover",void 0],[o,"mouseout",void 0],[o,"dblclick",void 0],[o,"click",void 0],[o,"keydown",{capture:!1}],[o,"keyup",void 0],[o,"wheel",{passive:!1}],[o,"contextmenu",void 0],[window,"blur",void 0]];var s,l=P(this.listeners);try{for(l.s();!(s=l.n()).done;){var u=i()(s.value,3),h=u[0],d=u[1],p=u[2];g.default.addEventListener(h,d,h===window.document?this.handleWindowEvent:this.handleEvent,p)}}catch(t){l.e(t)}finally{l.f()}}}return l()(t,[{key:"destroy",value:function(){var t,e=P(this.listeners);try{for(e.s();!(t=e.n()).done;){var n=i()(t.value,3),r=n[0],o=n[1],a=n[2];g.default.removeEventListener(r,o,r===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=P(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=P(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(D(this.eventsInProgress))||this.isZooming()}},{key:"mergeIHandlerResult",value:function(t,e,n,r,i){if(n){d()(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 _.default("renderFrame",{timeStamp:e})),t.applyChanges()})))}},{key:"addDefaultHandlers",value:function(t){var e=this.map,n=e.getCanvasContainer();this.add("mapEvent",new O.default(e,t));var r=e.boxZoom=new m.default(e,t);this.add("boxZoom",r);var i=new j.default,o=new y.default;e.doubleClickZoom=new E.default(o,i),this.add("tapZoom",i),this.add("clickZoom",o);var a=new I.default;this.add("tapDragZoom",a);var s=e.touchPitch=new k.TouchPitchHandler;this.add("touchPitch",s);var l=new S.MouseRotateHandler(t),u=new S.MousePitchHandler(t);e.dragRotate=new M.default(t,l,u),this.add("mouseRotate",l,["mousePitch"]),this.add("mousePitch",u,["mouseRotate"]);var c=new S.MousePanHandler(t),h=new k.TouchPanHandler(t);e.dragPan=new T.default(n,c,h),this.add("mousePan",c),this.add("touchPan",h,["touchZoom","touchRotate"]);var d=new k.TouchRotateHandler,f=new k.TouchZoomHandler;e.touchZoomRotate=new A.default(n,f,d,a),this.add("touchRotate",d,["touchPan","touchZoom"]),this.add("touchZoom",f,["touchPan","touchRotate"]);var p=e.scrollZoom=new C.default(e,this);this.add("scrollZoom",p,["mousePan"]);var g=e.keyboard=new w.default;this.add("keyboard",g),this.add("blockableMapEvent",new v.default(e));for(var b=0,_=["boxZoom","doubleClickZoom","tapDragZoom","touchPitch","dragRotate","dragPan","touchZoomRotate","scrollZoom","keyboard"];b<_.length;b++){var x=_[b];t.interactive&&t[x]&&e[x].enable(t[x])}}},{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=P(t);try{for(r.s();!(e=r.n()).done;){var i=e.value,o=i.target;(f.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={},r={},o=P(this.changes);try{for(o.s();!(t=o.n()).done;){var a=i()(t.value,3),s=a[0],l=a[1],u=a[2];s.panDelta&&(e.panDelta=(e.panDelta||new p.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),d()(n,l),d()(r,u)}}catch(t){o.e(t)}finally{o.f()}this.updateMapTransform(e,n,r),this.changes=[]}},{key:"updateMapTransform",value:function(t,e,n){var r=this.map,i=r.transform;if(!R(t))return this.fireEvents(e,n);var o=t.panDelta,a=t.zoomDelta,s=t.bearingDelta,l=t.pitchDelta,u=t.pinchAround,c=t.around;void 0!==u&&(c=u),r.stop(!0),c=c||r.transform.centerPoint;var h=i.pointLocation(o?c.sub(o):c);s&&this.rotateEnabled&&(i.bearing+=s),l&&this.pitchEnabled&&(i.pitch+=l),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=D(this.eventsInProgress),i=D(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 l in!r&&i&&this.fireEvent("movestart",i.originalEvent),o)o[l]&&this.fireEvent(l,o[l]);for(var u in t.rotate&&(this.bearingChanged=!0),i&&this.fireEvent("move",i.originalEvent),t)if(t[u]){var c=t[u].originalEvent;this.fireEvent(u,c)}var h,d={};for(var f in this.eventsInProgress)if(this.eventsInProgress[f]){var p=this.eventsInProgress[f],g=p.handlerName,v=p.originalEvent;this.handlersById[g].isActive()||(delete this.eventsInProgress[f],h=e[g]||v,d["".concat(f,"end")]=h)}for(var m in d)d[m]&&this.fireEvent(m,d[m]);var y=D(this.eventsInProgress);if((r||i)&&!y){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 b.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 b.Event(t,e?{originalEvent:e}:{}))}}]),t}();e.default=N},function(t,e,n){"use strict";n.r(e);var r=n(11),i=n.n(r),o=n(12),a=n.n(o),s=n(3),l=n.n(s);function u(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=function(){function t(){i()(this,t),l()(this,"queue",void 0),l()(this,"id",void 0),l()(this,"cleared",void 0),l()(this,"currentlyRunning",void 0),this.queue=[],this.id=0,this.cleared=!1,this.currentlyRunning=!1}return a()(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=u(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=u(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=h},function(t,e,n){"use strict";n.r(e);var r=n(64),i=n(50);e.default=function(t,e,n,o,a){var s=t.type,l=[];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,l,a,s),Object(i.isEmptyValue)(e,s)||r.default.type(t,e,o,l,a)}n(l)}},function(t,e,n){"use strict";n.r(e),n.d(e,"getTime",(function(){return s}));var r=n(59),i=n(129),o=n(531),a=n(362);function s(){return(new Date).getTime()}var l=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=l},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(224),o=n(652),a=n(651),s=n(57),l=n(10),u=Object(l.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 d(t,e){var n=t.visualStyleMapper||c[e];return n||(console.warn("Unkown style type '"+e+"'."),c.itemStyle)}function f(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=d(t,i)(o),s=o.getShallow("decal");s&&(n.setVisual("decal",s),s.dirty=!0);var l=f(t,i),u=a[l],c=Object(r.isFunction)(u)?u:null,h="auto"===a.fill||"auto"===a.stroke;if(!a[l]||c||h){var p=t.getColorFromPalette(t.name,null,e.getSeriesCount());a[l]||(a[l]=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",l),!e.isSeriesFiltered(t)&&c)return n.setVisual("colorFromPalette",!1),{dataEach:function(e,n){var i=t.getDataParams(n),o=Object(r.extend)({},a);o[l]=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=d(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),l=t.ensureUniqueItemVisual(e,"style");Object(r.extend)(l,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)),u(t).scope=i}})),t.eachSeries((function(e){if(!e.isColorBySeries()&&!t.isSeriesFiltered(e)){var n=e.getRawData(),r={},i=e.getData(),o=u(e).scope,a=e.visualStyleAccessPath||"itemStyle",s=f(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 l=i.ensureUniqueItemVisual(a,"style"),u=n.getName(t)||t+"",c=n.count();l[s]=e.getColorFromPalette(u,o,c)}}))}}))}}},function(t,e,n){"use strict";n.r(e),n.d(e,"createAxisLabels",(function(){return l})),n.d(e,"createAxisTicks",(function(){return u})),n.d(e,"calculateCategoryInterval",(function(){return p}));var r=n(0),i=n(55),o=n(10),a=n(77),s=Object(o.makeInner)();function l(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 u(t,e){return"category"===t.type?function(t,e){var n,i,o=h(t,"ticks"),s=Object(a.getOptionCategoryInterval)(e),l=d(o,s);if(l)return l;e.get("show")&&!t.scale.isBlank()||(n=[]);if(r.isFunction(s))n=v(t,s,!0);else if("auto"===s){var u=c(t,t.getLabelModel());i=u.labelCategoryInterval,n=r.map(u.labels,(function(t){return t.tickValue}))}else n=g(t,i=s,!0);return f(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"),l=Object(a.getOptionCategoryInterval)(e),u=d(o,l);return u||(r.isFunction(l)?n=v(t,l):(i="auto"===l?function(t){var e=s(t).autoInterval;return null!=e?e:s(t).autoInterval=t.calculateCategoryInterval()}(t):l,n=g(t,i)),f(o,l,{labels:n,labelCategoryInterval:i}))}function h(t,e){return s(t)[e]||(s(t)[e]=[])}function d(t,e){for(var n=0;n<t.length;n++)if(t[n].key===e)return t[n].value}function f(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,l=o.getExtent(),u=o.count();if(l[1]-l[0]<1)return 0;var c=1;u>40&&(c=Math.max(1,Math.floor(u/40)));for(var h=l[0],d=t.dataToCoord(h+1)-t.dataToCoord(h),f=Math.abs(d*Math.cos(r)),p=Math.abs(d*Math.sin(r)),g=0,v=0;h<=l[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/f,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-u)<=1&&C>w&&O.axisExtent0===S[0]&&O.axisExtent1===S[1]?w=C:(O.lastTickCount=u,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(),l=[],u=Math.max((e||0)+1,1),c=o[0],h=i.count();0!==c&&u>1&&h/u>2&&(c=Math.round(Math.ceil(c/u)*u));var d=Object(a.shouldShowAllLabels)(t),f=s.get("showMinLabel")||d,p=s.get("showMaxLabel")||d;f&&c!==o[0]&&v(o[0]);for(var g=c;g<=o[1];g+=u)v(g);function v(t){var e={value:t};l.push(n?t:{formattedLabel:r(e),rawLabel:i.getLabel(e),tickValue:t})}return p&&g-u!==o[1]&&v(o[1]),l}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(59),i=n(0),o=n(151),a=n(129),s=n(214),l=n(249),u=n(35),c=n(100),h=n(98);function d(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 f=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=d(e,n,r):i.isObject(e)&&(e=(a=e).id),s.id=e,s.dom=a;var l=a.style;return l&&(i.disableUserSelect(a),a.onselectstart=function(){return!1},l.padding="0",l.margin="0",l.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=d("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,l=new u.default(0,0,0,0);function h(t){if(t.isFinite()&&!t.isZero())if(0===o.length){(e=new u.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 d=new u.default(0,0,0,0);d.copy(h),d.union(t),o[c]=d,n=!0;break}if(s){l.copy(t),l.union(h);var f=t.width*t.height,p=h.width*h.height,g=l.width*l.height-f-p;g<r&&(r=g,i=c)}}if(s&&(o[i].union(t),n=!0),!n)(e=new u.default(0,0,0,0)).copy(t),o.push(e);s||(s=o.length>=a)}}for(var d=this.__startIndex;d<this.__endIndex;++d){if(g=t[d]){var f=g.shouldBePainted(n,r,!0,!0);(v=g.__isRendered&&(g.__dirty&c.REDRAW_BIT||!f)?g.getPrevPaintRect():null)&&h(v);var p=f&&(g.__dirty&c.REDRAW_BIT||!g.__isRendered)?g.getPaintRect():null;p&&h(p)}}for(d=this.__prevStartIndex;d<this.__prevEndIndex;++d){var g,v;f=(g=e[d]).shouldBePainted(n,r,!0,!0);if(g&&(!f||!g.__zr)&&g.__isRendered)(v=g.getPrevPaintRect())&&h(v)}do{i=!1;for(d=0;d<o.length;)if(o[d].isZero())o.splice(d,1);else{for(var m=d+1;m<o.length;)o[d].intersect(o[m])?(i=!0,o[d].union(o[m]),o.splice(m,1)):m++;d++}}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,u=r.height;e=e||this.clearColor;var c=this.motionBlur&&!t,h=this.lastFrameAlpha,d=this.dpr,f=this;c&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation="copy",this.ctxBack.drawImage(r,0,0,a/d,u/d));var p=this.domBack;function g(t,n,r,a){if(o.clearRect(t,n,r,a),e&&"transparent"!==e){var u=void 0;i.isGradientObject(e)?(u=e.__canvasGradient||Object(s.getCanvasGradient)(o,e,{x:0,y:0,width:r,height:a}),e.__canvasGradient=u):i.isImagePatternObject(e)&&(u=Object(l.createCanvasPattern)(o,e,{dirty:function(){f.setUnpainted(),f.__painter.refresh()}})),o.save(),o.fillStyle=u||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,u):n.length&&i.each(n,(function(t){g(t.x*d,t.y*d,t.width*d,t.height*d)}))},e}(a.default);e.default=f},function(t,e,n){"use strict";n.r(e),n.d(e,"brushSVGPath",(function(){return T})),n.d(e,"brushSVGImage",(function(){return M})),n.d(e,"brushSVGTSpan",(function(){return A})),n.d(e,"brush",(function(){return I})),n.d(e,"setClipPath",(function(){return j}));var r=n(76),i=n(36),o=n(106),a=n(55),s=n(328),l=n(663),u=n(1287),c=n(90),h=n(0),d=n(308),f=n(751),p=n(66),g=n(98),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(u.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 l=a.colorStops,u=[],d=0,f=l.length;d<f;++d){var p=100*Object(r.round4)(l[d].offset)+"%",g=l[d].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),u.push(Object(c.createVNode)("stop",d+"",b))}var _=Object(c.createVNode)(o,"",s,u),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,u));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 l=a.imageWidth,u=a.imageHeight,f=void 0,p=a.image;if(Object(h.isString)(p)?f=p:m(p)?f=p.src:y(p)&&(f=p.toDataURL()),"undefined"==typeof Image){var g="Image width/height must been given explictly in svg-ssr renderer.";Object(h.assert)(l,g),Object(h.assert)(u,g)}else if(null==l||null==u){var v=function(t,e){if(t){var n=t.elm,r=t.attrs.width=l||e.width,i=t.attrs.height=u||e.height;n&&(n.setAttribute("width",r),n.setAttribute("height",i))}},b=Object(d.createOrUpdateImage)(f,null,t,(function(t){v(_,t),v(o,t)}));b&&b.width&&b.height&&(l=l||b.width,u=u||b.height)}o=Object(c.createVNode)("image","img",{href:f,width:l,height:u}),s.width=l,s.height=u}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 l=t.getGlobalScale(),u=l[0],h=l[1];if(!u||!h)return;var d=i.shadowOffsetX||0,f=i.shadowOffsetY||0,p=i.shadowBlur,g=Object(r.normalizeColor)(i.shadowColor),v=g.opacity,m=g.color,y=p/2/u+" "+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:d/u,dy:f/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,u="path",h=t.style.strokePercent,d=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 l.default),m.reset(d),p.rebuildPath(m,h),m.generateStr(),v.__svgPathVersion=g,v.__svgPathStrokePercent=h),a.d=m.getStr()}else{u=t.type;var y=Math.pow(10,d);o[0](i,a,y)}return x(a,t.transform),b(a,n,t,e),e.animation&&Object(f.createCSSAnimation)(t,a,e),Object(c.createVNode)(u,t.id+"",a)}function M(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(f.createCSSAnimation)(t,a,e),Object(c.createVNode)("image",t.id+"",a)}}function A(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,l=Object(r.adjustTextY)(n.y||0,Object(a.getLineHeight)(o),n.textBaseline),u={"dominant-baseline":"central","text-anchor":r.TEXT_ALIGN_TO_ANCHOR[n.textAlign]||n.textAlign};if(Object(p.hasSeparateFont)(n)){var h="",d=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+";",d&&"normal"!==d&&(h+="font-style:"+d+";"),y&&"normal"!==y&&(h+="font-weight:"+y+";"),u.style=h}else u.style="font: "+o;return i.match(/\s/)&&(u["xml:space"]="preserve"),s&&(u.x=s),l&&(u.y=l),x(u,t.transform),b(u,n,t,e),e.animation&&Object(f.createCSSAnimation)(t,u,e),Object(c.createVNode)("text",t.id+"",u,void 0,i)}}function I(t,e){return t instanceof i.default?T(t,e):t instanceof o.default?M(t,e):t instanceof s.default?A(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(119),i=n(90),o=n(663),a=n(138),s=n(76),l=n(0),u=n(428),c=n(441),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 d(t,e,n){var r=Object(l.extend)({},t.shape);Object(l.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 f(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(l.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 u.default){if(M=function(t,e,n){var r,o,a=t.shape.paths,s={};if(Object(l.each)(a,(function(t){var e=Object(i.createBrushScope)(n.zrId);e.animation=!0,m(t,{},e,!0);var a=e.cssAnims,u=e.cssNodes,c=Object(l.keys)(a),h=c.length;if(h){var d=a[o=c[h-1]];for(var f in d){var p=d[f];s[f]=s[f]||{d:""},s[f].d+=p.d||""}for(var g in u){var v=u[g].animation;v.indexOf(o)>=0&&(r=v)}}})),r){e.d=!1;var u=g(s,n);return r.replace(o,u)}}(t,e,n))y.push(M);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 u,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,u=a.propName;if(n&&(u=n(u)),u)for(var c=0;c<s.length;c++){var h=s[c],d=Math.round(h.time/i*100)+"%",f=v(h.easing),p=h.rawValue;(Object(l.isString)(p)||Object(l.isNumber)(p))&&(e[d]=e[d]||{},e[d][u]=h.rawValue,f&&(e[d]["animation-timing-function"]=f))}}}}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(l.extend)(O,m[w]);var S=Object(s.getSRTTransformString)(O),C=m[w]["animation-timing-function"];b[w]=S?{transform:S}:{},f(b[w],O),C&&(b[w]["animation-timing-function"]=C)}var E=!0;for(var w in y){b[w]=b[w]||{};var T=!u;C=y[w]["animation-timing-function"];T&&(u=new a.default);var M=u.len();u.reset(),b[w].d=d(t,y[w],u);var A=u.len();if(!T&&M!==A){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(l.keys)(b),L=!0;for(x=1;x<P.length;x++){var D=P[x-1],R=P[x];if(b[D]["transform-origin"]!==b[R]["transform-origin"]){L=!1;break}k=b[D]["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(l.filter)(P,(function(t){return Object(l.keys)(b[t]).length>0})).length)return g(b,n)+" "+i[0]+" both"}for(var T in b){var M;(M=E(b[T]))&&y.push(M)}if(y.length){var A=n.zrId+"-cls-"+n.cssClassIdx++;n.cssNodes["."+A]={animation:y.join(",")},e.class=A}}},function(t,e,n){"use strict";n.r(e),n.d(e,"cartesian2DDimensions",(function(){return l}));var r=n(5),i=n(35),o=n(1299),a=n(41),s=n(20),l=["x","y"];function u(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=l,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(u(t)&&u(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],l=r[1]-r[0];if(s&&l){var c=(o[0]-i[0])/s,h=(o[1]-i[1])/l,d=i[0]-n[0]*c,f=i[1]-r[0]*h,p=this._transform=[c,0,0,h,d,f];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.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(334),s=n(195),l=n(10),u={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,l=r.projection,h=s.default.load(n,r.nameMap,r.nameProperty),d=s.default.getGeoResource(n),f=(o.resourceType=d?d.type:null,o.regions=h.regions),p=u[d.type];if(o._regionsMap=h.regionsMap,o.regions=h.regions,o.projection=l,l)for(var g=0;g<f.length;g++){var v=f[g].getBoundingRect(l);(a=a||v.clone()).union(v)}else a=h.boundingRect;return o.setBoundingRect(a.x,a.y,a.width,a.height),o.aspectScale=l?1:i.retrieve2(r.aspectScale,p.aspectScale),o._invertLongitute=!l&&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 l=s.parent;s.parent=null,s.decomposeTransform(),s.parent=l,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.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=d(e);return r===this?r.dataToPoint(n):null},e.prototype.convertFromPixel=function(t,e,n){var r=d(e);return r===this?r.pointToData(n):null},e}(a.default);function d(t){var e=t.geoModel,n=t.seriesModel;return e?e.coordinateSystem:n?n.coordinateSystem||(n.getReferringComponents("geo",l.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 f}));var r=n(47),i=n(20),o=n(235),a=[],s=[],l=[],u=r.quadraticAt,c=i.distSquare,h=Math.abs;function d(t,e,n){for(var r,i=t[0],o=t[1],d=t[2],f=1/0,p=n*n,g=.1,v=.1;v<=.9;v+=.1){a[0]=u(i[0],o[0],d[0],v),a[1]=u(i[1],o[1],d[1],v),(b=h(c(a,e)-p))<f&&(f=b,r=v)}for(var m=0;m<32;m++){var y=r+g;s[0]=u(i[0],o[0],d[0],r),s[1]=u(i[1],o[1],d[1],r),l[0]=u(i[0],o[0],d[0],y),l[1]=u(i[1],o[1],d[1],y);var b=c(s,e)-p;if(h(b)<.01)break;var _=c(l,e)-p;g/=2,b<0?_>=0?r+=g:r-=g:_>=0?r-=g:r+=g}return r}function f(t,e){var n=[],a=r.quadraticSubdivide,s=[[],[],[]],l=[[],[]],u=[];e/=2,t.eachEdge((function(t,r){var c=t.getLayout(),h=t.getVisual("fromSymbol"),f=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=d(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(f&&"none"!==f){g=Object(o.getSymbolSize)(t.node2),v=d(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(l[0],p[0]),i.copy(l[1],p[1]),i.sub(u,l[1],l[0]),i.normalize(u,u),h&&"none"!==h){g=Object(o.getSymbolSize)(t.node1);i.scaleAndAdd(l[0],l[0],u,g*e)}if(f&&"none"!==f){g=Object(o.getSymbolSize)(t.node2);i.scaleAndAdd(l[1],l[1],u,-g*e)}i.copy(c[0],l[0]),i.copy(c[1],l[1])}}))}},function(t,e,n){"use strict";n.r(e);var r=n(5),i=n(40),o=n(245),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(88),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,l=i.opacity,u=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:l,cursor:u}});var c=1/3*n,h=2/3*n,d=1/4*r,f=3/4*r;this.addShape(t,{id:this.getElementId("line-left"),type:"line",attrs:{x1:c,y1:d,x2:c,y2:f,stroke:a,cursor:u}}),this.addShape(t,{id:this.getElementId("line-right"),type:"line",attrs:{x1:h,y1:d,x2:h,y2:f,stroke:a,cursor:u}})},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(759);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],l=a[1];return t.applyToMatrix([s,l,1]),"x"===n?(t.setMatrix(i.ext.transform(t.getMatrix(),[["t",-s,-l],["s",.01,1],["t",s,l]])),o=i.ext.transform(t.getMatrix(),[["t",-s,-l],["s",100,1],["t",s,l]])):"y"===n?(t.setMatrix(i.ext.transform(t.getMatrix(),[["t",-s,-l],["s",1,.01],["t",s,l]])),o=i.ext.transform(t.getMatrix(),[["t",-s,-l],["s",1,100],["t",s,l]])):"xy"===n&&(t.setMatrix(i.ext.transform(t.getMatrix(),[["t",-s,-l],["s",.01,.01],["t",s,l]])),o=i.ext.transform(t.getMatrix(),[["t",-s,-l],["s",100,100],["t",s,l]])),o}function a(t,e,n,r,i){var a,s,l=n.start,u=n.end,c=n.getWidth(),h=n.getHeight();"y"===i?(a=l.x+c/2,s=r.y<l.y?r.y:l.y):"x"===i?(a=r.x>l.x?r.x:l.x,s=l.y+h/2):"xy"===i&&(n.isPolar?(a=n.getCenter().x,s=n.getCenter().y):(a=(l.x+u.x)/2,s=(l.y+u.y)/2));var d=o(t,[a,s],i);t.animate({matrix:d},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(1603),a=n(206),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(400),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 l})),n.d(e,"getPath",(function(){return u})),n.d(e,"getMeta",(function(){return c}));var r=n(2),i=n(378),o=n(1),a=n(4),s={exp:i.regressionExp,linear:i.regressionLinear,loess:i.regressionLoess,log:i.regressionLog,poly:i.regressionPoly,pow:i.regressionPow,quad:i.regressionQuad};function l(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 u=function(t){var e,n=t.options,r=n.xField,i=n.yField,l=n.data,u=n.regressionLine,c=u.type,h=void 0===c?"linear":c,d=u.algorithm;d?e=Object(o.isArray)(d)?d:d(l):e=s[h]().x((function(t){return t[r]})).y((function(t){return t[i]}))(l);return function(t,e){var n=e.view,r=e.options,i=r.xField,o=r.yField,s=n.getScaleByField(i),l=n.getScaleByField(o),u=t.map((function(t){return n.getCoordinate().convert({x:s.scale(t[0]),y:l.scale(t[1])})}));return Object(a.getSplinePath)(u,!1)}(e,t)},c=function(t){var e,n=t.meta,i=void 0===n?{}:n,a=t.xField,s=t.yField,l=t.data,u=l[0][a],c=l[0][s],h=u>0,d=c>0;function f(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)(u)&&(Object(o.isNumber)(r("min"))||(a.min=h?0:2*u),Object(o.isNumber)(r("max"))||(a.max=h?2*u:0)),a):(Object(o.isNumber)(c)&&(Object(o.isNumber)(r("min"))||(a.min=d?0:2*c),Object(o.isNumber)(r("max"))||(a.max=d?2*c:0)),a)}return Object(r.__assign)(Object(r.__assign)({},i),((e={})[a]=Object(r.__assign)(Object(r.__assign)({},i[a]),f(a,"x")),e[s]=Object(r.__assign)(Object(r.__assign)({},i[s]),f(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 d}));var r=n(2),i=n(1),o=n(1656),a=n(4),s=n(869),l=n(870),u=n(177),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[u.ID_FIELD],t[(s+a)%a]);else{var l=e[r].map((function(t){return i.get(t)}));i.set(e[u.ID_FIELD],l.slice(1).reduce((function(t,e){return Object(o.blend)(t,e,n)}),l[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,d=t.sizeField;if(0===c.length)return Object(a.log)(a.LEVEL.WARN,!1,"warn: %s","数据不能为空"),[];var f=c.map((function(t){var e;return Object(r.__assign)(Object(r.__assign)({},t),((e={sets:t[h]||[],size:t[d]})[u.PATH_FIELD]="",e[u.ID_FIELD]="",e))}));f.sort((function(t,e){return t.sets.length-e.sets.length}));var p=Object(s.venn)(f),g=Object(s.scaleSolution)(p,e,n,o),v=Object(l.computeTextCentres)(g,f);return f.forEach((function(t){var e=t.sets,n=e.join(",");t[u.ID_FIELD]=n;var r=e.map((function(t){return g[t]})),o=Object(l.intersectionAreaPath)(r);/[zZ]$/.test(o)||(o+=" Z"),t[u.PATH_FIELD]=o;var a=v[n]||{x:0,y:0};Object(i.assign)(t,a)})),f}function d(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 f}));var r=n(740),i=n(741),o=n(1750),a=n(1752),s=n(1753),l=n(412),u=n(1760),c=n(221),h=n(1759),d=n(251),f=function(t){function e(){var t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=n.width,s=n.height,u=n.latitude,h=void 0===u?0:u,d=n.longitude,f=void 0===d?0:d,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)([f,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=f,t.zoom=g,t.pitch=m,t.bearing=b,t.altitude=x,t.scale=S,t.center=C,t.pixelsPerMeter=Object(c.getDistanceScales)(Object(l.default)(Object(l.default)(t))).pixelsPerMeter[2],Object.freeze(Object(l.default)(Object(l.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=d.add([],i,d.negate([],r)),a=d.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,l=o.zoom;return new e({width:r,height:i,longitude:a,latitude:s,zoom:l})}}]),e}(u.default)},function(t,e,n){"use strict";n.r(e);var r=n(1230);n.d(e,"MousePanHandler",(function(){return r.default}));var i=n(1231);n.d(e,"MouseRotateHandler",(function(){return i.default}));var o=n(1232);n.d(e,"MousePitchHandler",(function(){return o.default}))},function(t,e,n){"use strict";(function(e){var r=n(222),i=n(1794),o=n(896),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 l,u={transitional:{silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},adapter:(("undefined"!=typeof XMLHttpRequest||void 0!==e&&"[object process]"===Object.prototype.toString.call(e))&&(l=n(897)),l),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}};u.headers={common:{Accept:"application/json, text/plain, */*"}},r.forEach(["delete","get","head"],(function(t){u.headers[t]={}})),r.forEach(["post","put","patch"],(function(t){u.headers[t]=r.merge(a)})),t.exports=u}).call(this,n(416))},function(t,e,n){"use strict";e.__esModule=!0,e.i18n=e.use=e.t=void 0;var r=a(n(1809)),i=a(n(200)),o=a(n(1810));function a(t){return t&&t.__esModule?t:{default:t}}var s=(0,a(n(1811)).default)(i.default),l=r.default,u=!1,c=function(){var t=Object.getPrototypeOf(this||i.default).$t;if("function"==typeof t&&i.default.locale)return u||(u=!0,i.default.locale(i.default.config.lang,(0,o.default)(l,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=l,o=0,a=r.length;o<a;o++){var u=r[o];if(n=i[u],o===a-1)return s(n,e);if(!n)return"";i=n}return""},d=e.use=function(t){l=t||l},f=e.i18n=function(t){c=t||c};e.default={use:d,t:h,i18n:f}},function(t,e,n){"use strict";e.__esModule=!0;var r=n(768);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(200),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 l,u="function"==typeof t?t.options:t;if(e&&(u.render=e,u.staticRenderFns=n,u._compiled=!0),r&&(u.functional=!0),o&&(u._scopeId="data-v-"+o),a?(l=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)},u._ssrRegister=l):i&&(l=s?function(){i.call(this,(u.functional?this.parent:this).$root.$options.shadowRoot)}:i),l)if(u.functional){u._injectStyles=l;var c=u.render;u.render=function(t,e){return l.call(e),c(t,e)}}else{var h=u.beforeCreate;u.beforeCreate=h?[].concat(h,l):[l]}return{exports:t,options:u}}n.d(e,"a",(function(){return r}))},11:function(t,e){t.exports=n(905)},21:function(t,e){t.exports=n(574)},4:function(t,e){t.exports=n(379)},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),l=void 0,u="\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 d(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;l||(l=document.createElement("textarea"),document.body.appendChild(l));var r=h(t),i=r.paddingSize,o=r.borderSize,a=r.boxSizing,s=r.contextStyle;l.setAttribute("style",s+";"+u),l.value=t.value||t.placeholder||"";var c=l.scrollHeight,d={};"border-box"===a?c+=o:"content-box"===a&&(c-=i),l.value="";var f=l.scrollHeight-i;if(null!==e){var p=f*e;"border-box"===a&&(p=p+i+o),c=Math.max(p,c),d.minHeight=p+"px"}if(null!==n){var g=f*n;"border-box"===a&&(g=g+i+o),c=Math.min(g,c)}return d.height=c+"px",l.parentNode&&l.parentNode.removeChild(l),l=null,d}var f=n(9),p=n.n(f),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=d(this.$refs.textarea,e,n)}else this.textareaCalcStyle={minHeight:d(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(573)}})},function(t,e,n){"use strict";e.__esModule=!0,e.removeResizeListener=e.addResizeListener=void 0;var r,i=n(1815),o=(r=i)&&r.__esModule?r:{default:r},a=n(907);var s="undefined"==typeof window,l=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,l)),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,l=arguments;function u(){o=Number(new Date),n.apply(a,l)}function c(){i=void 0}r&&!i&&u(),i&&clearTimeout(i),void 0===r&&s>t?u():!0!==e&&(i=setTimeout(r?c:u,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),l={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 u(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 l[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:u({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),l=t("div",{ref:"wrap",style:n,on:{scroll:this.handleScroll},class:[this.wrapClass,"el-scrollbar__wrap",e?"":"el-scrollbar__wrap--hidden-default"]},[[s]]),u=void 0;return u=this.native?[t("div",{ref:"wrap",class:[this.wrapClass,"el-scrollbar__wrap"],style:n},[[s]])]:[l,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"},u)},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(772)},2:function(t,e){t.exports=n(323)},3:function(t,e){t.exports=n(284)},38:function(t,e){t.exports=n(770)}})},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,l=s+t.clientHeight;i<s?t.scrollTop=i:a>l&&(t.scrollTop=a-t.clientHeight)};var r,i=n(200),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(346),i=n(502),o=n(1835),a=n(417),s=n(381),l=function(t,e,n){var u,c,h,d=t&l.F,f=t&l.G,p=t&l.S,g=t&l.P,v=t&l.B,m=t&l.W,y=f?i:i[e]||(i[e]={}),b=y.prototype,_=f?r:p?r[e]:(r[e]||{}).prototype;for(u in f&&(n=e),n)(c=!d&&_&&void 0!==_[u])&&s(y,u)||(h=c?_[u]:n[u],y[u]=f&&"function"!=typeof _[u]?n[u]:v&&c?o(h,r):m&&_[u]==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={}))[u]=h,t&l.R&&b&&!b[u]&&a(b,u,h)))};l.F=1,l.G=2,l.S=4,l.P=8,l.B=16,l.W=32,l.U=64,l.R=128,t.exports=l},function(t,e,n){var r=n(503);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(783)("keys"),i=n(580);t.exports=function(t){return r[t]||(r[t]=i(t))}},function(t,e,n){var r=n(502),i=n(346),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(579)?"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(780);t.exports=function(t){return Object(r(t))}},function(t,e){t.exports={}},function(t,e,n){var r=n(418).f,i=n(381),o=n(420)("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(420)},function(t,e,n){var r=n(346),i=n(502),o=n(579),a=n(789),s=n(418).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(66);function i(t,e,n,i,o,a,s,l){return new r.default({style:{text:t,font:e,align:n,verticalAlign:i,padding:o,rich:a,overflow:s?"truncate":null,lineHeight:l}}).getBoundingRect()}},function(t,e,n){"use strict";n.r(e);var r=n(59),i=n(97),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(236);n.d(e,"getBBoxMethod",(function(){return r.getMethod})),n.d(e,"registerBBox",(function(){return r.register}));var i=n(854),o=n(855),a=n(1490),s=n(1492),l=n(1493),u=n(1494),c=n(1498),h=n(1499);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",l.default),Object(r.register)("path",u.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(692),i=n(1505),o=n(1507),a=n(1509),s=n(1510),l=n(1511),u=n(1512),c=n(198);n.d(e,"getTickMethod",(function(){return c.getTickMethod})),n.d(e,"registerTickMethod",(function(){return c.registerTickMethod}));var h=n(1513),d=n(1514),f=n(1515);Object(c.registerTickMethod)("cat",r.default),Object(c.registerTickMethod)("time-cat",d.default),Object(c.registerTickMethod)("wilkinson-extended",o.default),Object(c.registerTickMethod)("r-pretty",u.default),Object(c.registerTickMethod)("time",h.default),Object(c.registerTickMethod)("time-pretty",f.default),Object(c.registerTickMethod)("log",a.default),Object(c.registerTickMethod)("pow",s.default),Object(c.registerTickMethod)("quantile",l.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(15),o=n(26),a=n(872),s=n(1662),l=n(723),u=n(796);n.d(e,"addWaterWave",(function(){return u.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(l.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(15),o=n(1),a=n(551);function s(t,e,n){return t+(e-t)*n}function l(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 u(t,e,n,r,i,o,a){for(var s=4*Math.ceil(2*t/n*4),u=[],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;u.push(["M",h,e]);for(var d=0,f=0;f<s;++f){var p=l(f*n/4,f%4,n,i);u.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]),f===s-1&&(d=p[2][0])}return u.push(["L",d+h,a+t]),u.push(["L",h,a+t]),u.push(["Z"]),u}function c(t,e,n,r,i,o,l,c,h,d){for(var f=i.fill,p=i.opacity,g=l.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:u(c,g.minY+m*n,h,0,v/32,t,e),fill:f,opacity:s(.2,.9,b)*p}});try{if(!1===d)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,l=a+e-o/2,u=Math.asin(a/(.85*(o-a))),c=Math.sin(u)*a,h=Math.cos(u)*a,d=s-h,f=l+c,p=t,g=l+a/Math.sin(u);return"\n M "+d+" "+f+"\n A "+a+" "+a+" 0 1 1 "+(d+2*h)+" "+f+"\n Q "+p+" "+g+" "+t+" "+(e+o/2)+"\n Q "+p+" "+g+" "+d+" "+f+"\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,l=i.background,u=i.animation,d=n.outline,f=n.wave,p=d.border,g=d.distance,v=f.count,m=f.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,d)),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"}),M=T.setClip({type:"path",attrs:{path:E}});return c(b.x,b.y,1-t.points[1].y,v,O,T,M,2*w,m,u),e.addShape("path",{name:"distance",attrs:{path:E,fill:"transparent",lineWidth:p+2*g,stroke:"transparent"===l?"#fff":l}}),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(15),i=n(1),o=n(360);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,l=a.y,u=e.getRadius()*n;return Math.sqrt(Math.pow(s-i,2)+Math.pow(l-o,2))<u}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(800),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(799),i=n(1162),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(515),i=n(285);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(348).Symbol;t.exports=r},function(t,e,n){var r=n(1184);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(802),i=n(1188);t.exports=function(t){return null!=t&&i(t.length)&&!r(t)}},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(232),i=n(35),o=n(52),a=n(0),s=n(165),l=n(70),u=n(174),c=n(544),h=n(248);function d(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 l=[],u=0;u<a;u++)l.push(s);var c=n-a*s;if(c>0)for(u=0;u<c;u++)l[u%a]+=1;return l}function f(t,e,n){for(var r=t.r0,i=t.r,o=t.startAngle,a=t.endAngle,s=Math.abs(a-o),l=s*i,u=i-r,c=l>Math.abs(u),h=d([l,u],c?0:1,e),f=(c?s:u)/h.length,p=0;p<h.length;p++)for(var g=(c?u:s)/h[p],v=0;v<h[p];v++){var m={};c?(m.startAngle=o+f*p,m.endAngle=o+f*(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+f*p,m.r=r+f*(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,l){var u=n-t,c=r-e,h=s-i,d=l-a,f=p(h,d,u,c);if(Math.abs(f)<1e-6)return null;var g=p(t-i,e-a,h,d)/f;return g<0||g>1?null:new o.default(g*u+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]),l=s.width,u=s.height,c=s.x,h=s.y,d=new o.default,f=new o.default;return l>u?(d.x=f.x=c+l/2,d.y=h,f.y=h+u):(d.y=f.y=h+u/2,d.x=c,f.x=c+l),function(t,e,n){for(var r=t.length,i=[],o=0;o<r;o++){var a=t[o],s=t[(o+1)%r],l=g(a[0],a[1],s[0],s[1],e.x,e.y,n.x,n.y);l&&i.push({projPt:v(l,e,n),pt:l,idx:o})}if(i.length<2)return[{points:t},{points:t}];i.sort((function(t,e){return t.projPt-e.projPt}));var u=i[0],c=i[i.length-1];if(c.idx<u.idx){var h=u;u=c,c=h}var d=[u.pt.x,u.pt.y],f=[c.pt.x,c.pt.y],p=[d],y=[f];for(o=u.idx+1;o<=c.idx;o++)m(p,t[o].slice());for(m(p,f),m(p,d),o=c.idx+1;o<=u.idx+r;o++)m(y,t[o%r].slice());return m(y,d),m(y,f),[{points:p},{points:y}]}(e,d,f)}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=d([r,i],o?0:1,e),s=o?"width":"height",l=o?"height":"width",u=o?"x":"y",c=o?"y":"x",h=t[s]/a.length,f=0;f<a.length;f++)for(var p=t[l]/a[f],g=0;g<a[f];g++){var v={};v[u]=f*h,v[c]=g*p,v[s]=h,v[l]=p,v.x+=t.x,v.y+=t.y,n.push(v)}}(o,e,i),n=l.default;break;case"sector":f(o,e,i),n=u.default;break;case"circle":f({r0:0,r:o.r,startAngle:0,endAngle:2*Math.PI,cx:o.cx,cy:o.cy},e,i),n=u.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,M=[];for(m=0;m<i.length;m++){var A=new n;A.setShape(i[m]),E=t,(T=A).setStyle(E.style),T.z=E.z,T.z2=E.z2,T.zlevel=E.zlevel,M.push(A)}return M}},function(t,e,n){"use strict";n.r(e);var r=n(297),i=n(230),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(201).default);e.default=a},function(t,e,n){"use strict";n.r(e);var r=n(297),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(201).default);e.default=i},function(t,e,n){"use strict";n.r(e);var r=n(297),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(201).default);e.default=o},function(t,e,n){"use strict";n.r(e);var r=n(297),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(201).default);e.default=i},function(t,e,n){"use strict";n.r(e);var r=n(297),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(201).default);e.default=i},function(t,e,n){"use strict";n.r(e);var r=n(2),i=n(1),o=n(101),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(458).default);e.default=a},function(t,e,n){"use strict";n.r(e);var r=n(2),i=n(121),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 l=1/(r-(e=Object(i.log)(n,s/n)))*a;if(t<l)return t/l*s}else e=Object(i.log)(n,this.min);var u=(t-o)/a*(r-e)+e;return Math.pow(n,u)},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(357).default);e.default=o},function(t,e,n){"use strict";n.r(e);var r=n(2),i=n(121),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(357).default);e.default=o},function(t,e,n){"use strict";n.r(e);var r=n(2),i=n(1),o=n(101),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,l=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),l<e&&(l=e),r.push(e)})),t.length>1&&(this.minTickInterval=s-a),Object(i.isNil)(e)&&(this.min=a),Object(i.isNil)(n)&&(this.max=l)}},e}(n(525).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(526).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(288).default);e.default=o},function(t,e,n){"use strict";n.r(e),n.d(e,"getInteractionCfg",(function(){return a}));var r=n(15),i=n(1633);function o(t){return t.isInPlot()}function a(t,e,n){var r=e||"rect";switch(t){case"brush":return{showEnable:[{trigger:"plot:mouseenter",action:"cursor:crosshair"},{trigger:"plot:mouseleave",action:"cursor:default"}],start:[{trigger:"mousedown",isEnable:o,action:["brush:start",r+"-mask:start",r+"-mask:show"],arg:[null,{maskStyle:null==n?void 0:n.style}]}],processing:[{trigger:"mousemove",isEnable:o,action:[r+"-mask:resize"]}],end:[{trigger:"mouseup",isEnable:o,action:["brush:filter","brush:end",r+"-mask:end",r+"-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"},{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:[r+"-mask:start",r+"-mask:show"],arg:[{maskStyle:null==n?void 0:n.style}]},{trigger:"mask:dragstart",action:[r+"-mask:moveStart"]}],processing:[{trigger:"plot:mousemove",action:[r+"-mask:resize"]},{trigger:"mask:drag",action:[r+"-mask:move"]},{trigger:"mask:change",action:["element-range-highlight:highlight"]}],end:[{trigger:"plot:mouseup",action:[r+"-mask:end"]},{trigger:"mask:dragend",action:[r+"-mask:moveEnd"]},{trigger:"document:mouseup",isEnable:function(t){return!t.isInPlot()},action:["element-range-highlight:clear",r+"-mask:end",r+"-mask:hide"]}],rollback:[{trigger:"dblclick",action:["element-range-highlight:clear",r+"-mask:hide"]}]};case"brush-x":return{showEnable:[{trigger:"plot:mouseenter",action:"cursor:crosshair"},{trigger:"plot:mouseleave",action:"cursor:default"}],start:[{trigger:"mousedown",isEnable:o,action:["brush-x:start",r+"-mask:start",r+"-mask:show"],arg:[null,{maskStyle:null==n?void 0:n.style}]}],processing:[{trigger:"mousemove",isEnable:o,action:[r+"-mask:resize"]}],end:[{trigger:"mouseup",isEnable:o,action:["brush-x:filter","brush-x:end",r+"-mask:end",r+"-mask:hide"]}],rollback:[{trigger:"dblclick",action:["brush-x:reset"]}]};case"brush-x-highlight":return{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:[r+"-mask:start",r+"-mask:show"],arg:[{maskStyle:null==n?void 0:n.style}]},{trigger:"mask:dragstart",action:[r+"-mask:moveStart"]}],processing:[{trigger:"plot:mousemove",action:[r+"-mask:resize"]},{trigger:"mask:drag",action:[r+"-mask:move"]},{trigger:"mask:change",action:["element-range-highlight:highlight"]}],end:[{trigger:"plot:mouseup",action:[r+"-mask:end"]},{trigger:"mask:dragend",action:[r+"-mask:moveEnd"]},{trigger:"document:mouseup",isEnable:function(t){return!t.isInPlot()},action:["element-range-highlight:clear",r+"-mask:end",r+"-mask:hide"]}],rollback:[{trigger:"dblclick",action:["element-range-highlight:clear",r+"-mask:hide"]}]};case"brush-y":return{showEnable:[{trigger:"plot:mouseenter",action:"cursor:crosshair"},{trigger:"plot:mouseleave",action:"cursor:default"}],start:[{trigger:"mousedown",isEnable:o,action:["brush-y:start",r+"-mask:start",r+"-mask:show"],arg:[null,{maskStyle:null==n?void 0:n.style}]}],processing:[{trigger:"mousemove",isEnable:o,action:[r+"-mask:resize"]}],end:[{trigger:"mouseup",isEnable:o,action:["brush-y:filter","brush-y:end",r+"-mask:end",r+"-mask:hide"]}],rollback:[{trigger:"dblclick",action:["brush-y:reset"]}]};case"brush-y-highlight":return{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:[r+"-mask:start",r+"-mask:show"],arg:[{maskStyle:null==n?void 0:n.style}]},{trigger:"mask:dragstart",action:[r+"-mask:moveStart"]}],processing:[{trigger:"plot:mousemove",action:[r+"-mask:resize"]},{trigger:"mask:drag",action:[r+"-mask:move"]},{trigger:"mask:change",action:["element-range-highlight:highlight"]}],end:[{trigger:"plot:mouseup",action:[r+"-mask:end"]},{trigger:"mask:dragend",action:[r+"-mask:moveEnd"]},{trigger:"document:mouseup",isEnable:function(t){return!t.isInPlot()},action:["element-range-highlight:clear",r+"-mask:end",r+"-mask:hide"]}],rollback:[{trigger:"dblclick",action:["element-range-highlight:clear",r+"-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(15),i=n(1636),o=n(1637),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(725),i=n(290);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,l=r.y1-n;s<o&&(o=s=(o+s)/2),l<a&&(a=l=(a+l)/2),r.x0=o,r.y0=a,r.x1=s,r.y1=l}}(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(644),i=n(402),o=n(199);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 l(t,e){return function(n){if(i=n.children){var i,o,a,s=i.length,l=t(n)*e||0;if(l)for(o=0;o<s;++o)i[o].r+=l;if(a=Object(r.packEnclose)(i),l)for(o=0;o<s;++o)i[o].r-=l;n.r=a+l}}}function u(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(l(r,.5)).eachBefore(u(1)):i.eachBefore(s(a)).eachAfter(l(o.constantZero,1)).eachAfter(l(r,i.r/Math.min(e,n))).eachBefore(u(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(725),i=n(393),o=n(402),a=n(199);e.default=function(){var t=i.default,e=!1,n=1,s=1,l=[0],u=a.constantZero,c=a.constantZero,h=a.constantZero,d=a.constantZero,f=a.constantZero;function p(t){return t.x0=t.y0=0,t.x1=n,t.y1=s,t.eachBefore(g),l=[0],e&&t.eachBefore(r.default),t}function g(e){var n=l[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=l[e.depth+1]=u(e)/2,r+=f(e)-n,i+=c(e)-n,(o-=h(e)-n)<r&&(r=o=(r+o)/2),(a-=d(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?(u="function"==typeof t?t:Object(a.default)(+t),p):u},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?(d="function"==typeof t?t:Object(a.default)(+t),p):d},p.paddingLeft=function(t){return arguments.length?(f="function"==typeof t?t:Object(a.default)(+t),p):f},p}},function(t,e,n){var r=n(2044)("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 l=o+"-"+a,u=t.length;if(s.hasOwnProperty(l))return s[l];if(1===e){var c=Math.round(Math.log((1<<u)-1&~a)/r);return t[n][c]}for(var h=o|1<<n,d=n+1;o&1<<d;)d++;for(var f=0,p=0,g=0;p<u;p++){var v=1<<p;v&a||(f+=(g%2?-1:1)*t[n][p]*i(t,e-1,d,h,a|v,s),g++)}return s[l]=f,f}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 l=0;l<8;l++)null==a[l]&&(a[l]=0),a[l]+=((s+l)%2?-1:1)*i(n,7,0===s?1:0,1<<s,1<<l,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 f}));var r=n(0),i=n(1264),o=n(10);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"]],l=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"],u=[["borderRadius","barBorderRadius"],["borderColor","barBorderColor"],["borderWidth","barBorderWidth"]];function c(t){var e=t&&t.itemStyle;if(e)for(var n=0;n<u.length;n++){var r=u[n][1],i=u[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 d(t){t&&t.downplay&&!t.blur&&(t.blur=t.downplay)}function f(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)),d(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,d)}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)(l,(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(138),i=n(313),o=n(1267),a=n(653),s=n(1268),l=n(47),u=n(278),c=r.default.CMD,h=2*Math.PI;var d=[-1,-1,-1],f=[-1,-1];function p(t,e,n,r,i,o,a,s,u,c){if(c>e&&c>r&&c>o&&c>s||c<e&&c<r&&c<o&&c<s)return 0;var h,p=l.cubicRootAt(e,r,o,s,c,d);if(0===p)return 0;for(var g=0,v=-1,m=void 0,y=void 0,b=0;b<p;b++){var _=d[b],x=0===_||1===_?.5:1;l.cubicAt(t,n,i,a,_)<u||(v<0&&(v=l.cubicExtrema(e,r,o,s,f),f[1]<f[0]&&v>1&&(h=void 0,h=f[0],f[0]=f[1],f[1]=h),m=l.cubicAt(e,r,o,s,f[0]),v>1&&(y=l.cubicAt(e,r,o,s,f[1]))),2===v?_<f[0]?g+=m<e?x:-x:_<f[1]?g+=y<m?x:-x:g+=s<y?x:-x:_<f[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 u=l.quadraticRootAt(e,r,o,s,d);if(0===u)return 0;var c=l.quadraticExtremum(e,r,o);if(c>=0&&c<=1){for(var h=0,f=l.quadraticAt(e,r,o,c),p=0;p<u;p++){var g=0===d[p]||1===d[p]?.5:1;l.quadraticAt(t,n,i,d[p])<a||(d[p]<c?h+=f<e?g:-g:h+=o<f?g:-g)}return h}g=0===d[0]||1===d[0]?.5:1;return l.quadraticAt(t,n,i,d[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 l=Math.sqrt(n*n-s*s);d[0]=-l,d[1]=l;var u=Math.abs(r-i);if(u<1e-4)return 0;if(u>=h-1e-4){r=0,i=h;var c=o?1:-1;return a>=d[0]+t&&a<=d[1]+t?c:0}if(r>i){var f=r;r=i,i=f}r<0&&(r+=h,i+=h);for(var p=0,g=0;g<2;g++){var v=d[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,l){for(var h,d,f,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(u.default)(x,w,O,S,r,l))),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,l))return!0}else _+=Object(u.default)(x,w,y[C],y[C+1],r,l)||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,l))return!0}else _+=p(x,w,y[C++],y[C++],y[C++],y[C++],y[C],y[C+1],r,l)||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,l))return!0}else _+=g(x,w,y[C++],y[C++],y[C],y[C+1],r,l)||0;x=y[C++],w=y[C++];break;case c.A:var M=y[C++],A=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+M,d=Math.sin(k)*j+A,T?(O=h,S=d):_+=Object(u.default)(x,w,h,d,r,l);var D=(r-M)*j/I+M;if(n){if(s.containStroke(M,A,j,k,k+P,L,e,D,l))return!0}else _+=v(M,A,j,k,k+P,L,D,l);x=Math.cos(k+P)*I+M,w=Math.sin(k+P)*j+A;break;case c.R:if(O=x=y[C++],S=w=y[C++],h=O+y[C++],d=S+y[C++],n){if(i.containStroke(O,S,h,S,e,r,l)||i.containStroke(h,S,h,d,e,r,l)||i.containStroke(h,d,O,d,e,r,l)||i.containStroke(O,d,O,S,e,r,l))return!0}else _+=Object(u.default)(h,S,h,d,r,l),_+=Object(u.default)(O,d,O,S,r,l);break;case c.Z:if(n){if(i.containStroke(x,w,O,S,e,r,l))return!0}else _+=Object(u.default)(x,w,O,S,r,l);x=O,w=S}}return n||(f=w,m=S,Math.abs(f-m)<1e-4)||(_+=Object(u.default)(x,w,O,S,r,l)||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(364),o=n(103),a=n(654),s=n(656),l=n(10),u=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 l=a._stageTaskMap.get(t.uid),u=l.seriesTaskMap,c=l.overallTask;if(c){var h,d=c.agentStubMap;d.each((function(t){s(i,t)&&(t.dirty(),h=!0)})),h&&c.dirty(),a.updatePayload(c,n);var f=a.getPerformArgs(c,i.block);d.each((function(t){t.perform(f)})),c.perform(f)&&(o=!0)}else u&&u.each((function(r,l){s(i,r)&&r.dirty();var u=a.getPerformArgs(r,i.block);u.skip=!t.performRawSeries&&e.isSeriesFiltered(r.context.model),a.updatePayload(r,n),r.perform(u)&&(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,l=e.seriesTaskMap=Object(r.createHashMap)(),u=t.seriesType,c=t.getTargetSeries;function h(e){var r=e.uid,u=l.set(r,s&&s.get(r)||Object(i.createTask)({plan:p,reset:g,count:y}));u.context={model:e,ecModel:n,api:o,useClearVisual:t.isVisual&&!t.isLayout,plan:t.plan,reset:t.reset,scheduler:a},a._pipe(e,u)}t.createOnAllSeries?n.eachRawSeries(h):u?n.eachRawSeriesByType(u,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 l=s.agentStubMap,u=s.agentStubMap=Object(r.createHashMap)(),d=t.seriesType,p=t.getTargetSeries,g=!0,v=!1;function m(t){var e=t.uid,n=u.set(e,l&&l.get(e)||(v=!0,Object(i.createTask)({reset:h,onDirty:f})));n.context={model:t,overallProgress:g},n.agent=s,n.__block=g,a._pipe(t,n)}Object(r.assert)(!t.createOnAllSeries,""),d?n.eachRawSeriesByType(d,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&&d}function d(){this.agent.dirty(),this.getDownstream().dirty()}function f(){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(l.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=u},function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return u}));var r=n(138),i=n(20),o=r.default.CMD,a=[[],[],[]],s=Math.sqrt,l=Math.atan2;function u(t,e){if(e){var n,r,u,c,h,d,f=t.data,p=t.len(),g=o.M,v=o.C,m=o.L,y=o.R,b=o.A,_=o.Q;for(u=0,c=0;u<p;){switch(n=f[u++],c=u,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=l(-e[1]/S,e[0]/O);f[u]*=O,f[u++]+=x,f[u]*=S,f[u++]+=w,f[u++]*=O,f[u++]*=S,f[u++]+=C,f[u++]+=C,c=u+=2;break;case y:d[0]=f[u++],d[1]=f[u++],Object(i.applyTransform)(d,d,e),f[c++]=d[0],f[c++]=d[1],d[0]+=f[u++],d[1]+=f[u++],Object(i.applyTransform)(d,d,e),f[c++]=d[0],f[c++]=d[1]}for(h=0;h<r;h++){var E=a[h];E[0]=f[u++],E[1]=f[u++],Object(i.applyTransform)(E,E,e),f[c++]=E[0],f[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,l=0;l<i.length;l++){var u=i[l],c=t.get(u);Object(r.isFunction)(c)?(s=!0,a[u]=c):o[u]=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(10),i=n(1284),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(90),o=n(146),a=Object(i.createVNode)("","");function s(t){return void 0===t}function l(t){return void 0!==t}function u(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(l(s)){var u=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(u,h(c))}else l(t.text)&&!Object(r.isObject)(t.text)&&o.appendChild(u,o.createTextNode(t.text))}else t.elm=o.createTextNode(t.text);return t.elm}function d(t,e,n,r,i){for(;r<=i;++r){var a=n[r];null!=a&&o.insertBefore(t,h(a),e)}}function f(t,e,n,r){for(;n<=r;++n){var i=e[n];if(null!=i)if(l(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)?l(r)&&l(i)?r!==i&&function(t,e,n){for(var r,i,a,l=0,p=0,v=e.length-1,m=e[0],y=e[v],b=n.length-1,_=n[0],x=n[b];l<=v&&p<=b;)null==m?m=e[++l]:null==y?y=e[--v]:null==_?_=n[++p]:null==x?x=n[--b]:c(m,_)?(g(m,_),m=e[++l],_=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[++l],x=n[--b]):c(y,_)?(g(y,_),o.insertBefore(t,y.elm,m.elm),y=e[--v],_=n[++p]):(s(r)&&(r=u(e,l,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]);(l<=v||p<=b)&&(l>v?d(t,null==n[b+1]?null:n[b+1].elm,n,p,b):f(t,e,l,v))}(n,r,i):l(i)?(l(t.text)&&o.setTextContent(n,""),d(n,null,i,0,i.length-1)):l(r)?f(n,r,0,r.length-1):l(t.text)&&o.setTextContent(n,""):t.text!==e.text&&(l(r)&&f(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)),f(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(55),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 u=t(a),c=null!=i.distance?i.distance:5,h=this.shape,d=h.cx,f=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=d+p*x(m),S=f+p*w(m),C="left",E="top";switch(u){case"startArc":O=d+(g-c)*x(b),S=f+(g-c)*w(b),C="center",E="top";break;case"insideStartArc":O=d+(g+c)*x(b),S=f+(g+c)*w(b),C="center",E="bottom";break;case"startAngle":O=d+v*x(m)+s(m,c+_,!1),S=f+v*w(m)+l(m,c+_,!1),C="right",E="middle";break;case"insideStartAngle":O=d+v*x(m)+s(m,-c+_,!1),S=f+v*w(m)+l(m,-c+_,!1),C="left",E="middle";break;case"middle":O=d+v*x(b),S=f+v*w(b),C="center",E="middle";break;case"endArc":O=d+(p+c)*x(b),S=f+(p+c)*w(b),C="center",E="bottom";break;case"insideEndArc":O=d+(p-c)*x(b),S=f+(p-c)*w(b),C="center",E="top";break;case"endAngle":O=d+v*x(y)+s(y,c+_,!0),S=f+v*w(y)+l(y,c+_,!0),C="left",E="middle";break;case"insideEndAngle":O=d+v*x(y)+s(y,-c+_,!0),S=f+v*w(y)+l(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,l=a.clockwise?a.endAngle:a.startAngle,u=(s+l)/2,c=n(e);switch(c){case"startArc":case"insideStartArc":case"middle":case"insideEndArc":case"endArc":o=u;break;case"startAngle":case"insideStartAngle":o=s;break;case"endAngle":case"insideEndAngle":o=l;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 l(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 l}));var r=n(5),i=n(0),o=n(40),a=n(245),s=n(10),l=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(l,a.AxisModelCommonMixin),e.default=l},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(39),a=n(14),s=n(144),l=n(170),u=n(205),c=n(311),h=n(481),d=n(113),f=["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 u=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 l.default(e,i.extend({handleAutoShown:function(t){for(var n=h.coordinateSystem.getCartesians(),r=0;r<n.length;r++)if(Object(d.isIntervalOrLogScale)(n[r].getOtherAxis(e.axis).scale))return!0;return!1}},g));i.each(f,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(u,this._axisGroup,e),t.prototype.render.call(this,e,n,r,s)}},e.prototype.remove=function(){Object(h.rectCoordAxisHandleRemove)(this)},e.type="cartesianAxis",e}(u.default),v={splitLine:function(t,e,n,r){var o=n.axis;if(!o.scale.isBlank()){var a=n.getModel("splitLine"),l=a.getModel("lineStyle"),u=l.get("color");u=i.isArray(u)?u:[u];for(var c=r.coordinateSystem.getRect(),h=o.isHorizontal(),d=0,f=o.getTicksCoords({tickModel:a}),p=[],g=[],v=l.getLineStyle(),m=0;m<f.length;m++){var y=o.toGlobalCoord(f[m].coord);h?(p[0]=y,p[1]=c.y,g[0]=y,g[1]=c.y+c.height):(p[0]=c.x,p[1]=y,g[0]=c.x+c.width,g[1]=y);var b=d++%u.length,_=f[m].tickValue;e.add(new s.default({anid:null!=_?"line_"+f[m].tickValue:null,subPixelOptimize:!0,autoBatch:!0,shape:{x1:p[0],y1:p[1],x2:g[0],y2:g[1]},style:i.defaults({stroke:u[b]},v),silent:!0}))}}},minorSplitLine:function(t,e,n,r){var i=n.axis,o=n.getModel("minorSplitLine").getModel("lineStyle"),a=r.coordinateSystem.getRect(),l=i.isHorizontal(),u=i.getMinorTicksCoords();if(u.length)for(var c=[],h=[],d=o.getLineStyle(),f=0;f<u.length;f++)for(var p=0;p<u[f].length;p++){var g=i.toGlobalCoord(u[f][p].coord);l?(c[0]=g,c[1]=a.y,h[0]=g,h[1]=a.y+a.height):(c[0]=a.x,c[1]=g,h[0]=a.x+a.width,h[1]=g),e.add(new s.default({anid:"minor_line_"+u[f][p].tickValue,subPixelOptimize:!0,autoBatch:!0,shape:{x1:c[0],y1:c[1],x2:h[0],y2:h[1]},style:d,silent:!0}))}},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(1319),i=n(669),o=n(0),a=n(445),s=n(1320),l=n(195);function u(t,e,n){l.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",u),t.registerImpl("getMap",(function(t){return l.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){var n=t.componentType||"series";e.eachComponent({mainType:n,query:t},(function(e){var r=e.coordinateSystem;if("geo"===r.type){var i=Object(a.updateCenterAndZoom)(r,t,e.get("scaleLimit"));e.setCenter&&e.setCenter(i.center),e.setZoom&&e.setZoom(i.zoom),"series"===n&&Object(o.each)(e.seriesGroup,(function(t){t.setCenter(i.center),t.setZoom(i.zoom)}))}}))}))}},function(t,e,n){"use strict";n.r(e),n.d(e,"makeViewBoxTransform",(function(){return F})),n.d(e,"parseSVG",(function(){return B}));var r,i=n(39),o=n(106),a=n(233),s=n(70),l=n(427),u=n(144),c=n(165),h=n(175),d=n(41),f=n(248),p=n(0),g=n(326),v=n(516),m=n(328),y=n(522);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")||"",l=parseFloat(n.getAttribute("width")||e.width),u=parseFloat(n.getAttribute("height")||e.height);isNaN(l)&&(l=null),isNaN(u)&&(u=null),A(n,r,null,!0,!1);for(var c,h,d=n.firstChild;d;)this._parseNode(d,r,o,null,!1,!1),d=d.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 f=P(a);f.length>=4&&(c={x:parseFloat(f[0]||0),y:parseFloat(f[1]||0),width:parseFloat(f[2]),height:parseFloat(f[3])})}if(c&&null!=l&&null!=u&&(h=F(c,{x:0,y:0,width:l,height:u}),!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==l||null==u||r.setClipPath(new s.default({shape:{x:0,y:0,width:l,height:u}})),{root:r,width:l,height:u,viewBoxRect:c,viewBoxTransform:h,named:o}},t.prototype._parseNode=function(t,e,n,i,o,a){var s,l=t.nodeName.toLowerCase(),u=i;if("defs"===l&&(o=!0),"text"===l&&(a=!0),"defs"===l||"switch"===l)s=e;else{if(!o){var c=r[l];if(c&&Object(p.hasOwn)(r,l)){s=c.call(this,t,e);var h=t.getAttribute("name");if(h){var d={name:h,namedFrom:null,svgNodeTagLower:l,el:s};n.push(d),"g"===l&&(u=d)}else i&&n.push({name:i.name,namedFrom:i,svgNodeTagLower:l,el:s});e.add(s)}}var f=S[l];if(f&&Object(p.hasOwn)(S,l)){var g=f.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,u,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),A(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),A(t,n,this._defsUsePending,!1,!1),n},rect:function(t,e){var n=new s.default;return T(e,n),A(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),A(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 u.default;return T(e,n),A(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 l.default;return T(e,n),A(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=M(r));var i=new c.default({shape:{points:n||[]},silent:!0});return T(e,i),A(t,i,this._defsUsePending,!1,!1),i},polyline:function(t,e){var n,r=t.getAttribute("points");r&&(n=M(r));var i=new h.default({shape:{points:n||[]},silent:!0});return T(e,i),A(t,i,this._defsUsePending,!1,!1),i},image:function(t,e){var n=new o.default;return T(e,n),A(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),A(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),A(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(f.createFromString)(n);return T(e,r),A(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 M(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 A(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],l=P(a);switch(i=i||d.create(),s){case"translate":d.translate(i,i,[parseFloat(l[0]),parseFloat(l[1]||"0")]);break;case"scale":d.scale(i,i,[parseFloat(l[0]),parseFloat(l[1]||l[0])]);break;case"rotate":d.rotate(i,i,-parseFloat(l[0])*D);break;case"skewX":var u=Math.tan(parseFloat(l[0])*D);d.mul(i,[1,0,u,1,0,0],i);break;case"skewY":var c=Math.tan(parseFloat(l[0])*D);d.mul(i,[1,c,0,1,0,0],i);break;case"matrix":i[0]=parseFloat(l[0]),i[1]=parseFloat(l[1]),i[2]=parseFloat(l[2]),i[3]=parseFloat(l[3]),i[4]=parseFloat(l[4]),i[5]=parseFloat(l[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,D=Math.PI/180;var R=/([^\s:;]+)\s*:\s*([^:;]+)/g;function N(t,e,n){var r,i=t.getAttribute("style");if(i)for(R.lastIndex=0;null!=(r=R.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 F(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 B(t,e){return(new O).parse(t,e)}},function(t,e,n){"use strict";n.r(e),n.d(e,"install",(function(){return d}));var r=n(1360),i=n(1355),o=n(1356),a=n(1357),s=n(303),l=n(839),u=n(1361),c=n(1362),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 d(t){t.registerComponentView(i.default),t.registerComponentModel(o.default),t.registerCoordinateSystem("parallel",a.default),t.registerPreprocessor(r.default),t.registerComponentModel(l.default),t.registerComponentView(u.default),Object(s.default)(t,"parallel",l.default,h),Object(c.installParallelActions)(t)}},function(t,e,n){"use strict";n.r(e);var r=n(5),i=n(0),o=n(40),a=n(224),s=n(6),l=n(245),u=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(u,l.AxisModelCommonMixin),e.default=u},function(t,e,n){"use strict";n.r(e);var r=n(5),i=n(0),o=n(66),a=n(23),s=n(174),l=n(13),u=n(27),c=n(32),h=n(370),d=n(330),f=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 u=e.getModel(),f=u.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(d.createOrUpdatePatternFromDecal)(m,o));var y=Object(h.getSectorCornerRadius)(u.getModel("itemStyle"),g,!0);i.extend(g,y),i.each(l.SPECIAL_STATES,(function(t){var e=s.ensureState(t),n=u.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=u.getShallow("cursor");b&&s.attr("cursor",b),this._seriesModel=n||this._seriesModel,this._ecModel=r||this._ecModel;var _=f.get("focus"),x="ancestor"===_?e.getAncestorsIndices():"descendant"===_?e.getDescendantIndices():_;Object(l.toggleHoverEmphasis)(this,x,f.get("blurScope"),f.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),d=this,f=d.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}f.ignore=!v,i.each(l.DISPLAY_STATES,(function(r){var l="normal"===r?n.getModel("label"):n.getModel([r,"label"]),g="normal"===r,v=g?f:f.ensureState(r),y=t.getFormattedLabel(p,r);g&&(y=y||e.node.name),v.style=Object(u.createTextStyle)(l,{},null,"normal"!==r,!0),y&&(v.style.text=y);var b=l.get("show");null==b||g||(v.ignore=!b);var _,x=m(l,"position"),w=g?d:d.states[r],O=w.style.fill;w.textConfig={outsideFill:"inherit"===l.get("color")?O:null,inside:"outside"!==x};var S=m(l,"distance")||0,C=m(l,"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(l,"verticalAlign")||"middle",v.x=_*c+o.cx,v.y=_*h+o.cy;var E=m(l,"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})),f.dirtyStyle()},e}(s.default);e.default=f},function(t,e,n){"use strict";n.r(e),n.d(e,"polarDimensions",(function(){return o}));var r=n(1413),i=n(1414),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 l=Math.atan2(-n,e)/Math.PI*180,u=l<o?1:-1;l<o||l>a;)l+=360*u;return[s,l]},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 l})),n.d(e,"AngleAxisModel",(function(){return u})),n.d(e,"RadiusAxisModel",(function(){return c}));var r=n(5),i=n(0),o=n(40),a=n(245),s=n(10),l=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(l,a.AxisModelCommonMixin);var 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="angleAxis",e}(l),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}(l)},function(t,e,n){"use strict";n.r(e),n.d(e,"singleDimensions",(function(){return s}));var r=n(1422),i=n(77),o=n(33),a=n(0),s=["single"],l=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.reverse?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 u(e)===this?this.dataToPoint(n):null},t.prototype.convertFromPixel=function(t,e,n){return u(e)===this?this.pointToData(n):null},t}();function u(t){var e=t.seriesModel,n=t.singleAxisModel;return n&&n.coordinateSystem||e&&e.coordinateSystem}e.default=l},function(t,e,n){"use strict";n.r(e);var r=n(5),i=n(40),o=n(109),a=n(0),s=n(10),l=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 l={category:"ordinal",time:"time",value:"number"}[r]||"number";(this._data=new o.default([{name:"value",type:l}],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=l},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(543),a=n(452);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(1470),i=n(1471),o=n(452);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(1472),i=n(1473),o=n(686);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(1476),i=n(1477),o=n(686);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 l})),n.d(e,"rgbBasisClosed",(function(){return u}));var r=n(415),i=n(689),o=n(1485),a=n(852);function s(t){return function(e){var n,i,o=e.length,a=new Array(o),s=new Array(o),l=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,l[n]=i.b||0;return a=t(a),s=t(s),l=t(l),i.opacity=1,function(t){return i.r=a(t),i.g=s(t),i.b=l(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),l=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=l(e),t+""}}return i.gamma=t,i}(1);var l=s(i.default),u=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(486);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(485),i=n(487);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(350).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 l="",u="",c=(a=0,0),h=r-1;a<e;){var d=i(t,c),f=!1;d+a<=e&&(l+=t[c],c++,a+=d,f=!0);var p=i(t,h);if(p+a<=e&&(u=t[h]+u,a+=p,h--,f=!0),!f)break}o=l+"…"+u}return o}},function(t,e,n){"use strict";n.r(e),n.d(e,"getLinePath",(function(){return s})),n.d(e,"getSmoothLinePath",(function(){return l})),n.d(e,"dataToPath",(function(){return u})),n.d(e,"getAreaLineY",(function(){return c})),n.d(e,"linePathToAreaPath",(function(){return h}));var r=n(2),i=n(193),o=n(287),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 l(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],l=r[1];return n.unshift(["M",o,l]),n}function u(t,e,n,r){void 0===r&&(r=!0);var i=new o.Linear({values:t}),u=new o.Category({values:Object(a.map)(t,(function(t,e){return e}))}),c=Object(a.map)(t,(function(t,r){return[u.scale(r)*e,n-i.scale(t)*n]}));return r?l(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(112),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 l=o;l<=a;l++)if(n[s][l]){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(),l=Math.sqrt(s.width*s.width+s.height*s.height),u=1,c=0,h=0;if(e.hasGap(s))return e.fillGap(s),!0;for(var d,f,p=!1,g=0,v={};Math.min(Math.abs(c),Math.abs(h))<l&&g<n;)if(d=u+=-1,f=void 0,h=~~(r=[(f=.1*d)*Math.cos(f),f*Math.sin(f)])[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,l=0;l<=8;l++){var u=o(e,r,i,l);if(s.hasGap(u)){s.fillGap(u),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 l=r.ext.transform(t.getMatrix(),[["t",-a,-s],["s",.01,1],["t",a,s]]);t.setMatrix(l),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,l=s[0].y-s[1].y<=0?i.maxY:i.minY;t.applyToMatrix([a,l,1]);var u=r.ext.transform(t.getMatrix(),[["t",-a,-l],["s",1,.01],["t",a,l]]);t.setMatrix(u),t.animate({matrix:r.ext.transform(t.getMatrix(),[["t",-a,-l],["s",1,100],["t",a,l]])},e)}},function(t,e,n){"use strict";n.r(e),n.d(e,"zoomIn",(function(){return s})),n.d(e,"zoomOut",(function(){return l}));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(),l=(s.minX+s.maxX)/2,u=(s.minY+s.maxY)/2;if(t.applyToMatrix([l,u,1]),"zoomIn"===n){var c=i.ext.transform(t.getMatrix(),[["t",-l,-u],["s",.01,.01],["t",l,u]]);t.setMatrix(c),t.animate({matrix:i.ext.transform(t.getMatrix(),[["t",-l,-u],["s",100,100],["t",l,u]])},e)}else t.animate({matrix:i.ext.transform(t.getMatrix(),[["t",-l,-u],["s",.01,.01],["t",l,u]])},Object(r.__assign)(Object(r.__assign)({},e),{callback:function(){t.remove(!0)}}))}}function s(t,e,n){a(t,e,"zoomIn")}function l(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)),l=a.invert(Object(i.last)(n));return this.inPlot&&(o(s),o(l)),"x"===r?(t=a.convert({x:s.x,y:0}),e=a.convert({x:l.x,y:1})):(t=a.convert({x:0,y:s.y}),e=a.convert({x:1,y:l.y})),{start:t,end:e}},e}(n(708).default);e.default=a},function(t,e,n){"use strict";n.r(e);var r=n(2),i=n(1),o=n(87),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(15),o=n(4),a=n(218);function s(t){var e=t.view,n=t.geometryOption,s=t.yField,l=t.legend,u=Object(r.get)(l,"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,d=c.getAttribute("color"),f=e.getTheme().defaultColor;return d&&(f=i.Util.getMappingValue(d,h,Object(r.get)(d,["values",0],f))),[{value:s,name:h,marker:(Object(r.isFunction)(u)?u:!Object(r.isEmpty)(u)&&Object(o.deepAssign)({},{style:{stroke:f,fill:f}},u))||(Object(a.isLine)(n)?{symbol:function(t,e,n){return[["M",t-n,e],["L",t+n,e]]},style:{lineWidth:2,r:6,stroke:f}}:{symbol:"square",style:{fill:f}}),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(),u);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(4),o=function(t,e){var n=e[0],o=e[1],a=t.getOptions().data,s=t.getXScale(),l=Object(r.size)(a);if(s&&l){var u=Object(r.valuesOfKey)(a,s.field),c=u,h=Object(r.size)(c),d=Math.floor(n*(h-1)),f=Math.floor(o*(h-1));t.filter(s.field,(function(t){var e=c.indexOf(t);return!(e>-1)||Object(i.isBetween)(e,d,f)})),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 l})),n.d(e,"constrainedMDSLayout",(function(){return u})),n.d(e,"greedyLayout",(function(){return c})),n.d(e,"lossFunction",(function(){return h})),n.d(e,"disjointCluster",(function(){return f})),n.d(e,"normalizeSolution",(function(){return g})),n.d(e,"scaleSolution",(function(){return v}));var r=n(263),i=n(168);function o(t,e){(e=e||{}).maxIterations=e.maxIterations||500;var n,i=e.initialLayout||l,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=[],u=[];for(n in a)a.hasOwnProperty(n)&&(s.push(a[n].x),s.push(a[n].y),u.push(n));for(var c=Object(r.nelderMead)((function(e){for(var n={},r=0;r<u.length;++r){var i=u[r];n[i]={x:e[2*r],y:e[2*r+1],radius:a[i].radius}}return o(n,t)}),s,e).x,d=0;d<u.length;++d)n=u[d],a[n].x=c[2*d],a[n].y=c[2*d+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]],l=a(Math.sqrt(e[r].size/Math.PI),Math.sqrt(e[s].size/Math.PI),t.size);i[r][s]=i[s][r]=l;var u=0;t.size+1e-10>=Math.min(e[r].size,e[s].size)?u=1:t.size<=1e-10&&(u=-1),o[r][s]=o[s][r]=u})),{distances:i,constraints:o}}function l(t,e){var n=c(t,e),r=e.lossFunction||h;if(t.length>=8){var i=u(t,e);r(i,t)+1e-8<r(n,t)&&(n=i)}return n}function u(t,e){var n,i=(e=e||{}).restarts||10,o=[],a={};for(n=0;n<t.length;++n){var l=t[n];1==l.sets.length&&(a[l.sets[0]]=o.length,o.push(l))}var u=s(t,o,a),c=u.distances,h=u.constraints,d=Object(r.norm2)(c.map(r.norm2))/c.length;c=c.map((function(t){return t.map((function(t){return t/d}))}));var f,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],l=i+1;l<n.length;++l){var u=t[2*l],c=t[2*l+1],h=n[i][l],d=r[i][l],f=(u-a)*(u-a)+(c-s)*(c-s),p=Math.sqrt(f),g=f-h*h;d>0&&p<=h||d<0&&p>=h||(o+=2*g*g,e[2*i]+=4*g*(a-u),e[2*i+1]+=4*g*(s-c),e[2*l]+=4*g*(u-a),e[2*l+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),(!f||p.fx<f.fx)&&(f=p)}var m=f.x,y={};for(n=0;n<o.length;++n){var b=o[n];y[b.sets[0]]={x:m[2*n]*d,y:m[2*n+1]*d,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,d);return y}function c(t,e){for(var n,r=e&&e.lossFunction?e.lossFunction:h,o={},s={},l=0;l<t.length;++l){var u=t[l];1==u.sets.length&&(n=u.sets[0],o[n]={x:1e10,y:1e10,rowid:Object.keys(o).length,size:u.size,radius:Math.sqrt(u.size/Math.PI)},s[n]=[])}t=t.filter((function(t){return 2==t.sets.length}));for(l=0;l<t.length;++l){var c=t[l],d=c.hasOwnProperty("weight")?c.weight:1,f=c.sets[0],p=c.sets[1];c.size+1e-10>=Math.min(o[f].size,o[p].size)&&(d=0),s[f].push({set:p,size:c.size,weight:d}),s[p].push({set:f,size:c.size,weight:d})}var g=[];for(n in s)if(s.hasOwnProperty(n)){var v=0;for(l=0;l<s[n].length;++l)v+=s[n][l].size*s[n][l].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(l=1;l<g.length;++l){var x=g[l].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 M=o[w[T].set],A=a(n.radius,M.radius,w[T].size),I=Object(i.circleCircleIntersection)({x:C.x,y:C.y,radius:E},{x:M.x,y:M.y,radius:A}),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]],l=t[o.sets[1]];a=Object(i.circleOverlap)(s.radius,l.radius,Object(i.distance)(s,l))}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 d(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,l=void 0,u=void 0,c=Math.cos(s),h=Math.sin(s);for(r=0;r<t.length;++r)l=t[r].x,u=t[r].y,t[r].x=c*l-h*u,t[r].y=h*l+c*u}if(t.length>2){for(var d=Math.atan2(t[2].x,t[2].y)-e;d<0;)d+=2*Math.PI;for(;d>2*Math.PI;)d-=2*Math.PI;if(d>Math.PI){var f=t[1].y/(1e-10+t[1].x);for(r=0;r<t.length;++r){var p=(t[r].x+f*t[r].y)/(1+f*f);t[r].x=2*p-t[r].x,t[r].y=2*p*f-t[r].y}}}}function f(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],l=void 0,u=void 0,l=e(a),u=e(s),l.parent=u)}var a,s,l,u,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 d=[];for(c in h)h.hasOwnProperty(c)&&d.push(h[c]);return d}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=f(o);for(r=0;r<s.length;++r){d(s[r],e,n);var l=p(s[r]);s[r].size=(l.xRange.max-l.xRange.min)*(l.yRange.max-l.yRange.min),s[r].bounds=l}s.sort((function(t,e){return e.size-t.size}));var u=(o=s[0]).bounds,c=(u.xRange.max-u.xRange.min)/50;function h(t,e,n){if(t){var r,i,a,s=t.bounds;e?r=u.xRange.max-s.xRange.min+c:(r=u.xRange.max-s.xRange.max,(a=(s.xRange.max-s.xRange.min)/2-(u.xRange.max-u.xRange.min)/2)<0&&(r+=a)),n?i=u.yRange.max-s.yRange.min+c:(i=u.yRange.max-s.yRange.max,(a=(s.yRange.max-s.yRange.min)/2-(u.yRange.max-u.yRange.min)/2)<0&&(i+=a));for(var l=0;l<t.length;++l)t[l].x+=r,t[l].y+=i,o.push(t[l])}}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,u=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),l=s.xRange,u=s.yRange;if(l.max==l.min||u.max==u.min)return console.log("not scaling solution: zero size detected"),t;for(var c=e/(l.max-l.min),h=n/(u.max-u.min),d=Math.min(h,c),f=(e-(l.max-l.min)*d)/2,g=(n-(u.max-u.min)*d)/2,v={},m=0;m<i.length;++m){var y=i[m];v[o[m]]={radius:d*y.radius,x:r+f+(y.x-l.min)*d,y:r+g+(y.y-u.min)*d}}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 l})),n.d(e,"circleFromPath",(function(){return u})),n.d(e,"intersectionAreaPath",(function(){return c}));var r=n(263),i=n(168);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 l=t[n];s.push({x:l.x,y:l.y}),s.push({x:l.x+l.radius/2,y:l.y}),s.push({x:l.x-l.radius/2,y:l.y}),s.push({x:l.x,y:l.y+l.radius/2}),s.push({x:l.x,y:l.y-l.radius/2})}var u=s[0],c=o(s[0],t,e);for(n=1;n<s.length;++n){var h=o(s[n],t,e);h>=c&&(u=s[n],c=h)}var d=Object(r.nelderMead)((function(n){return-1*o({x:n[0],y:n[1]},t,e)}),[u.x,u.y],{maxIterations:500,minErrorDelta:1e-10}).x,f={x:d[0],y:d[1]},p=!0;for(n=0;n<t.length;++n)if(Object(i.distance)(f,t[n])>t[n].radius){p=!1;break}for(n=0;n<e.length;++n)if(Object(i.distance)(f,e[n])<e[n].radius){p=!1;break}if(!p)if(1==t.length)f={x:t[0].x,y:t[0].y};else{var g={};Object(i.intersectionArea)(t,g),f=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 f}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 l=t[n[s]],u=Object(i.distance)(a,l);u+l.radius<=a.radius+1e-10?e[n[s]].push(n[o]):u+a.radius<=l.radius+1e-10&&e[n[o]].push(n[s])}return e}(t),o=0;o<e.length;++o){for(var s=e[o].sets,l={},u={},c=0;c<s.length;++c){l[s[c]]=!0;for(var h=r[s[c]],d=0;d<h.length;++d)u[h[d]]=!0}var f=[],p=[];for(var g in t)g in l?f.push(t[g]):g in u||p.push(t[g]);var v=a(f,p);n[s]=v,v.disjoint&&e[o].size>0&&console.log("WARNING: area "+s+" not represented on screen")}return n}function l(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 u(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 l(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],u=s.circle.radius,c=s.width>u;o.push("\nA",u,u,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 l})),n.d(e,"VennElementSingleSelected",(function(){return u}));var r=n(2),i=n(15),o=n(401),a=Object(i.getActionClass)("element-selected"),s=Object(i.getActionClass)("element-single-selected"),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}(a),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}(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(9),a=n(4),s=n(34),l=n(723);function u(t){var e=t.chart,n=t.options,r=n.percent,i=n.liquidStyle,o=n.radius,u=n.outline,c=n.wave,h=n.shape,d=n.animation;e.scale({percent:{min:0,max:1}}),e.data(Object(l.getLiquidData)(r));var f=n.color||e.getTheme().defaultColor,p=Object(a.deepAssign)({},t,{options:{xField:"type",yField:"percent",widthRatio:o,interval:{color:f,style:i,shape:"liquid-fill-gauge"}}}),g=Object(s.interval)(p).ext.geometry,v={radius:o,outline:u,wave:c,shape:h,background:e.getTheme().background,animation:d};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,l=o.percent,u=o.meta;n.getController("annotation").clear(!0);var c=Object(i.get)(u,["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(l):h.content})),Object(a.renderStatistic)(n,{statistic:Object(r.__assign)(Object(r.__assign)({},s),{content:h}),plotType:"liquid"},{percent:l}),e&&n.render(!0),t}function h(t){return Object(a.flow)(o.theme,Object(o.pattern)("liquidStyle"),u,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(9),a=n(4),s=n(34),l=n(724);function u(t){var e=t.chart,n=t.options,o=n.bulletStyle,u=n.targetField,c=n.rangeField,h=n.measureField,d=n.xField,f=n.color,p=n.layout,g=n.size,v=n.label,m=Object(l.transformData)(n),y=m.min,b=m.max,_=m.ds;e.data(_);var x=Object(a.deepAssign)({},t,{options:{xField:d,yField:c,seriesField:"rKey",isStack:!0,label:Object(i.get)(v,"range"),interval:{color:Object(i.get)(f,"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:d,yField:h,seriesField:"mKey",isStack:!0,label:Object(i.get)(v,"measure"),interval:{color:Object(i.get)(f,"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:d,yField:u,seriesField:"tKey",label:Object(i.get)(v,"target"),point:{color:Object(i.get)(f,"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,l=r.yAxis,u=r.targetField,c=r.rangeField,h=r.measureField,d=r.xField,f=i.data;return Object(a.flow)(Object(o.scale)(((e={})[d]=s,e[h]=l,e),((n={})[h]={min:null==f?void 0:f.min,max:null==f?void 0:f.max,sync:!0},n[u]={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,l=n.targetField;return e.axis(""+s,!1),e.axis(""+l,!1),!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.legend;return e.removeInteraction("legend-filter"),e.legend(n),e.legend("rKey",!1),e.legend("mKey",!1),e.legend("tKey",!1),t}function f(t){var e=t.chart,n=t.options,o=n.label,s=n.measureField,l=n.targetField,u=n.rangeField,c=e.geometries,h=c[0],d=c[1],f=c[2];return Object(i.get)(o,"range")?h.label(""+u,Object(r.__assign)({layout:[{type:"limit-in-plot"}]},Object(a.transformLabel)(o.range))):h.label(!1),Object(i.get)(o,"measure")?d.label(""+s,Object(r.__assign)({layout:[{type:"limit-in-plot"}]},Object(a.transformLabel)(o.measure))):d.label(!1),Object(i.get)(o,"target")?f.label(""+l,Object(r.__assign)({layout:[{type:"limit-in-plot"}]},Object(a.transformLabel)(o.target))):f.label(!1),t}function p(t){Object(a.flow)(u,c,h,d,o.theme,f,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(360),a=n(4),s=n(1665),l=n(726),u=n(219);function c(t){var e=t.data,n=t.colorField,c=t.rawFields,h=t.hierarchyConfig,d=void 0===h?{}:h,f=d.activeDepth,p={partition:s.partition,treemap:l.treemap},g=t.seriesField,v=t.type||"partition",m=p[v](e,Object(r.__assign)(Object(r.__assign)({field:g||"value"},Object(i.omit)(d,["activeDepth"])),{type:"hierarchy."+v,as:["x","y"]})),y=[];return m.forEach((function(t){var e,i,s,l,h,p;if(0===t.depth)return null;if(f>0&&t.depth>f)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||[],[d.field]))),((e={})[u.SUNBURST_PATH_FIELD]=v,e[u.SUNBURST_ANCESTOR_FIELD]=m.data.name,e)),t);g&&(b[g]=t.data[g]||(null===(l=null===(s=t.parent)||void 0===s?void 0:s.data)||void 0===l?void 0:l[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=d,b[o.HIERARCHY_DATA_TRANSFORM_PARAMS]={hierarchyConfig:d,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 d})),n.d(e,"adaptor",(function(){return p}));var r=n(2),i=n(9),o=n(4),a=n(34),s=n(243),l=n(876);function u(t){var e=t.chart,n=t.options,r=n.barStyle,i=n.color,s=n.tooltip,l=n.colorField,u=n.type,c=n.xField,h=n.yField,d=n.data,f=Object(o.processIllegalData)(d,h);e.data(f);var p=Object(o.deepAssign)({},t,{options:{tooltip:s,seriesField:l,interval:{style:r,color:i,shape:"line"===u?"line":"intervel"},minColumnWidth:n.minBarWidth,maxColumnWidth:n.maxBarWidth,columnBackground:n.barBackground}});return Object(a.interval)(p),"line"===u&&Object(a.point)({chart:e,options:{xField:c,yField:h,seriesField:l,point:{shape:"circle",color:i}}}),t}function c(t){var e,n=t.options,r=n.yField,a=n.xField,s=n.data,u=n.isStack,c=n.isGroup,h=n.colorField,d=n.maxAngle,f=u&&!c&&h?Object(l.getStackedData)(s,a,r):s,p=Object(o.processIllegalData)(f,r);return Object(o.flow)(Object(i.scale)(((e={})[r]={min:0,max:Object(l.getScaleMax)(d,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 d(t){var e=t.chart,n=t.options,r=n.xField,i=n.xAxis;return e.axis(r,i),t}function f(t){var e=t.chart,n=t.options,i=n.label,a=n.yField,s=Object(o.findGeometry)(e,"interval");if(i){var l=i.callback,u=Object(r.__rest)(i,["callback"]);s.label({fields:[a],callback:l,cfg:Object(r.__assign)(Object(r.__assign)({},Object(o.transformLabel)(u)),{type:"polar"})})}else s.label(!1);return t}function p(t){return Object(o.flow)(Object(s.pattern)("barStyle"),u,c,d,h,i.interaction,i.animation,i.theme,i.tooltip,i.legend,Object(i.annotation)(),f)(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(4);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(234),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(11),i=n.n(r),o=n(12),a=n.n(o),s=n(8),l=n.n(s),u=n(30),c=n.n(u),h=n(31),d=n.n(h),f=n(18),p=n.n(f),g=n(3),v=n.n(g),m=n(472);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 d()(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()(l()(t),"onabort",void 0),v()(l()(t),"onerror",void 0),v()(l()(t),"onload",void 0),v()(l()(t),"onloadstart",void 0),v()(l()(t),"onprogress",void 0),v()(l()(t),"ontimeout",void 0),v()(l()(t),"onloadend",void 0),v()(l()(t),"onreadystatechange",void 0),v()(l()(t),"readyState",void 0),v()(l()(t),"response",void 0),v()(l()(t),"responseText",void 0),v()(l()(t),"_responseType",void 0),v()(l()(t),"responseXML",void 0),v()(l()(t),"status",void 0),v()(l()(t),"statusText",void 0),v()(l()(t),"upload",void 0),v()(l()(t),"withCredentials",void 0),v()(l()(t),"timeout",void 0),v()(l()(t),"_url",void 0),v()(l()(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,"updateTileStateOverlap",(function(){return r})),n.d(e,"updateTileStateReplace",(function(){return i}));function r(t){t.forEach((function(t){t.properties.state=0})),t.forEach((function(t){t.isCurrent&&!o(t)&&a(t)})),t.forEach((function(t){t.isVisible=Boolean(2&t.properties.state)}))}function i(t){t.forEach((function(t){t.properties.state=0})),t.forEach((function(t){t.isCurrent&&o(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&&a(t)}))}function o(t){for(;t;){if(t.isLoaded)return t.properties.state|=2,!0;t=t.parent}return!1}function a(t){t.children.forEach((function(t){t.isLoaded?t.properties.state|=2:a(t)}))}},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,l=void 0!==s&&s,u=t.flipY,c=void 0!==u&&u,h={},d=512*(a=void 0!==a?a:Math.pow(2,o)),f=Math.cos(n*r),p=d/360,g=p/f,v=d/4003e4/f;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],l){var m=r*Math.tan(n*r)/f,y=p*m/2,b=d/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(2062),i=n(1199);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";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),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,"default",(function(){return c}));var r=n(11),i=n.n(r),o=n(12),a=n.n(o),s=n(3),l=n.n(s),u=n(765),c=function(){function t(){i()(this,t),l()(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 u.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(1785),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(322))},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(222);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(222),i=n(1795),o=n(1796),a=n(895),s=n(1797),l=n(1800),u=n(1801),c=n(898);t.exports=function(t){return new Promise((function(e,n){var h=t.data,d=t.headers,f=t.responseType;r.isFormData(h)&&delete d["Content-Type"];var p=new XMLHttpRequest;if(t.auth){var g=t.auth.username||"",v=t.auth.password?unescape(encodeURIComponent(t.auth.password)):"";d.Authorization="Basic "+btoa(g+":"+v)}var m=s(t.baseURL,t.url);function y(){if(p){var r="getAllResponseHeaders"in p?l(p.getAllResponseHeaders()):null,o={data:f&&"text"!==f&&"json"!==f?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||u(m))&&t.xsrfCookieName?o.read(t.xsrfCookieName):void 0;b&&(d[t.xsrfHeaderName]=b)}"setRequestHeader"in p&&r.forEach(d,(function(t,e){void 0===h&&"content-type"===e.toLowerCase()?delete d[e]:p.setRequestHeader(e,t)})),r.isUndefined(t.withCredentials)||(p.withCredentials=!!t.withCredentials),f&&"json"!==f&&(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(896);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(222);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 l(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 u(i){r.isUndefined(e[i])?r.isUndefined(t[i])||(n[i]=l(void 0,t[i])):n[i]=l(t[i],e[i])}r.forEach(i,(function(t){r.isUndefined(e[t])||(n[t]=l(void 0,e[t]))})),r.forEach(o,u),r.forEach(a,(function(i){r.isUndefined(e[i])?r.isUndefined(t[i])||(n[i]=l(void 0,t[i])):n[i]=l(void 0,e[i])})),r.forEach(s,(function(r){r in e?n[r]=l(t[r],e[r]):r in t&&(n[r]=l(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,u),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]+",l=/\[([^]*?)\]/gm,u=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 d(t,e){for(t=String(t),e=e||2;t.length<e;)t="0"+t;return t}var f=["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(f,3);o.i18n={dayNamesShort:v,dayNames:f,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 d(t.getDay())},Do:function(t,e){return e.DoFn(t.getDate())},d:function(t){return t.getDate()},dd:function(t){return d(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 d(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 d(String(t.getFullYear()),4).substr(2)},yyyy:function(t){return d(t.getFullYear(),4)},h:function(t){return t.getHours()%12||12},hh:function(t){return d(t.getHours()%12||12)},H:function(t){return t.getHours()},HH:function(t){return d(t.getHours())},m:function(t){return t.getMinutes()},mm:function(t){return d(t.getMinutes())},s:function(t){return t.getSeconds()},ss:function(t){return d(t.getSeconds())},S:function(t){return Math.round(t.getMilliseconds()/100)},SS:function(t){return d(Math.round(t.getMilliseconds()/10),2)},SSS:function(t){return d(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?"-":"+")+d(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?",u],ddd:[s,u],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(l,(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=[],u=[];e=e.replace(l,(function(t,e){return u.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 u.shift()}));var d=t.match(new RegExp(h,"i"));if(!d)return null;for(var f=1;f<d.length;f++)s[f-1](i,d[f],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(200),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=l(n(200)),i=l(n(573)),o=l(n(1812)),a=l(n(770)),s=n(323);function l(t){return t&&t.__esModule?t:{default:t}}var u=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-"+u++,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,l=(0,s.getStyle)(document.body,"overflowY");c>0&&(i||"scroll"===l)&&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(284);e.default={mounted:function(){},methods:{getMigratingConfig:function(){return{props:{},events:{}}}}}},function(t,e,n){"use strict";e.__esModule=!0;var r,i=n(200),o=(r=i)&&r.__esModule?r:{default:r},a=n(323);var s=[],l="@@clickoutsideContext",u=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[l].methodName&&n.context[t[l].methodName]?n.context[t[l].methodName]():t[l].bindingFn&&t[l].bindingFn())}}!o.default.prototype.$isServer&&(0,a.on)(document,"mousedown",(function(t){return u=t})),!o.default.prototype.$isServer&&(0,a.on)(document,"mouseup",(function(t){s.forEach((function(e){return e[l].documentHandler(t,u)}))})),e.default={bind:function(t,e,n){s.push(t);var r=c++;t[l]={id:r,documentHandler:h(t,e,n),methodName:e.expression,bindingFn:e.value}},update:function(t,e,n){t[l].documentHandler=h(t,e,n),t[l].methodName=e.expression,t[l].bindingFn=e.value},unbind:function(t){for(var e=s.length,n=0;n<e;n++)if(s[n][l].id===t[l].id){s.splice(n,1);break}delete t[l]}}},function(t,e,n){var r=n(773),i=n(575);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 l,u="function"==typeof t?t.options:t;if(e&&(u.render=e,u.staticRenderFns=n,u._compiled=!0),r&&(u.functional=!0),o&&(u._scopeId="data-v-"+o),a?(l=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)},u._ssrRegister=l):i&&(l=s?function(){i.call(this,(u.functional?this.parent:this).$root.$options.shadowRoot)}:i),l)if(u.functional){u._injectStyles=l;var c=u.render;u.render=function(t,e){return l.call(e),c(t,e)}}else{var h=u.beforeCreate;u.beforeCreate=h?[].concat(h,l):[l]}return{exports:t,options:u}}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 l=s.exports;l.install=function(t){t.component(l.name,l)};e.default=l},4:function(t,e){t.exports=n(379)}})},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,l;for(a in e)if(i=t[a],o=e[a],i&&n.test(a))if("class"===a&&("string"==typeof i&&(l=i,t[a]=i={},i[l]=!0),"string"==typeof o&&(l=o,e[a]=o={},o[l]=!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 l,u="function"==typeof t?t.options:t;if(e&&(u.render=e,u.staticRenderFns=n,u._compiled=!0),r&&(u.functional=!0),o&&(u._scopeId="data-v-"+o),a?(l=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)},u._ssrRegister=l):i&&(l=s?function(){i.call(this,(u.functional?this.parent:this).$root.$options.shadowRoot)}:i),l)if(u.functional){u._injectStyles=l;var c=u.render;u.render=function(t,e){return l.call(e),c(t,e)}}else{var h=u.beforeCreate;u.beforeCreate=h?[].concat(h,l):[l]}return{exports:t,options:u}}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(380)&&!n(504)((function(){return 7!=Object.defineProperty(n(912)("div"),"a",{get:function(){return 7}}).a}))},function(t,e,n){var r=n(503),i=n(346).document,o=r(i)&&r(i.createElement);t.exports=function(t){return o?i.createElement(t):{}}},function(t,e,n){var r=n(381),i=n(419),o=n(1838)(!1),a=n(782)("IE_PROTO");t.exports=function(t,e){var n,s=i(t),l=0,u=[];for(n in s)n!=a&&r(s,n)&&u.push(n);for(;e.length>l;)r(s,n=e[l++])&&(~o(u,n)||u.push(n));return u}},function(t,e,n){var r=n(915);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(579),i=n(778),o=n(917),a=n(417),s=n(787),l=n(1845),u=n(788),c=n(1848),h=n(420)("iterator"),d=!([].keys&&"next"in[].keys()),f=function(){return this};t.exports=function(t,e,n,p,g,v,m){l(n,e,p);var y,b,_,x=function(t){if(!d&&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),M=g?O?x("entries"):T:void 0,A="Array"==e&&C.entries||E;if(A&&(_=c(A.call(new t)))!==Object.prototype&&_.next&&(u(_,w,!0),r||"function"==typeof _[h]||a(_,h,f)),O&&E&&"values"!==E.name&&(S=!0,T=function(){return E.call(this)}),r&&!m||!d&&!S&&C[h]||a(C,h,T),s[e]=T,s[w]=f,g)if(y={values:O?T:x("values"),keys:v?T:x("keys"),entries:M},m)for(b in y)b in C||o(C,b,y[b]);else i(i.P+i.F*(d||S),e,y);return y}},function(t,e,n){t.exports=n(417)},function(t,e,n){var r=n(576),i=n(1846),o=n(784),a=n(782)("IE_PROTO"),s=function(){},l=function(){var t,e=n(912)("iframe"),r=o.length;for(e.style.display="none",n(1847).appendChild(e),e.src="javascript:",(t=e.contentWindow.document).open(),t.write("<script>document.F=Object<\/script>"),t.close(),l=t.F;r--;)delete l.prototype[o[r]];return l()};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=l(),void 0===e?n:i(n,e)}},function(t,e,n){var r=n(913),i=n(784).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 l,u="function"==typeof t?t.options:t;if(e&&(u.render=e,u.staticRenderFns=n,u._compiled=!0),r&&(u.functional=!0),o&&(u._scopeId="data-v-"+o),a?(l=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)},u._ssrRegister=l):i&&(l=s?function(){i.call(this,(u.functional?this.parent:this).$root.$options.shadowRoot)}:i),l)if(u.functional){u._injectStyles=l;var c=u.render;u.render=function(t,e){return l.call(e),c(t,e)}}else{var h=u.beforeCreate;u.beforeCreate=h?[].concat(h,l):[l]}return{exports:t,options:u}}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 l=s.exports;l.install=function(t){t.component(l.name,l)};e.default=l},4:function(t,e){t.exports=n(379)}})},function(t,e,n){"use strict";n.r(e);var r=n(126);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(922);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(46),a=n(831);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 M})),n.d(e,"extendSeriesModel",(function(){return A})),n.d(e,"extendChartView",(function(){return I}));var r=n(40);n.d(e,"ComponentModel",(function(){return r.default}));var i=n(62);n.d(e,"ComponentView",(function(){return i.default}));var o=n(54);n.d(e,"SeriesModel",(function(){return o.default}));var a=n(53);n.d(e,"ChartView",(function(){return a.default}));var s=n(109);n.d(e,"List",(function(){return s.default}));var l=n(389);n.d(e,"zrender",(function(){return l}));var u=n(41);n.d(e,"matrix",(function(){return u}));var c=n(20);n.d(e,"vector",(function(){return c}));var h=n(0);n.d(e,"zrUtil",(function(){return h}));var d=n(71);n.d(e,"color",(function(){return d}));var f=n(130);n.d(e,"throttle",(function(){return f.throttle}));var p=n(923);n.d(e,"helper",(function(){return p}));var g=n(46);n.d(e,"use",(function(){return g.use}));var v=n(98);n.d(e,"setPlatformAPI",(function(){return v.setPlatformAPI}));var m=n(423);n.d(e,"parseGeoJSON",(function(){return m.default})),n.d(e,"parseGeoJson",(function(){return m.default}));var y=n(924);n.d(e,"number",(function(){return y}));var b=n(925);n.d(e,"time",(function(){return b}));var _=n(926);n.d(e,"graphic",(function(){return _}));var x=n(927);n.d(e,"format",(function(){return x}));var w=n(928);n.d(e,"util",(function(){return w}));var O=n(49);n.d(e,"env",(function(){return O.default}));var S=n(57);n.d(e,"Model",(function(){return S.default}));var C=n(149);n.d(e,"Axis",(function(){return C.default}));var E=n(249);function T(t){var e=r.default.extend(t);return r.default.registerClass(e),e}function M(t){var e=i.default.extend(t);return i.default.registerClass(e),e}function A(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(148),o=n(77),a=n(245),s=n(57),l=n(33);n.d(e,"getLayoutRect",(function(){return l.getLayoutRect}));var u=n(133),c=n(32);n.d(e,"getECData",(function(){return c.getECData}));var h=n(27),d=n(240);n.d(e,"createDimensions",(function(){return d.createDimensions}));var f=n(60);n.d(e,"createSymbol",(function(){return f.createSymbol}));var p=n(13);function g(t){return Object(i.default)(null,t)}n.d(e,"enableHoverEmphasis",(function(){return p.enableHoverEmphasis}));var v={isDimensionStacked:u.isDimensionStacked,enableDataStack:u.enableDataStack,getStackedDimension:u.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(14);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(39);n.d(e,"Group",(function(){return o.default}));var a=n(106);n.d(e,"Image",(function(){return a.default}));var s=n(66);n.d(e,"Text",(function(){return s.default}));var l=n(233);n.d(e,"Circle",(function(){return l.default}));var u=n(427);n.d(e,"Ellipse",(function(){return u.default}));var c=n(174);n.d(e,"Sector",(function(){return c.default}));var h=n(443);n.d(e,"Ring",(function(){return h.default}));var d=n(165);n.d(e,"Polygon",(function(){return d.default}));var f=n(175);n.d(e,"Polyline",(function(){return f.default}));var p=n(70);n.d(e,"Rect",(function(){return p.default}));var g=n(144);n.d(e,"Line",(function(){return g.default}));var v=n(444);n.d(e,"BezierCurve",(function(){return v.default}));var m=n(521);n.d(e,"Arc",(function(){return m.default}));var y=n(792);n.d(e,"IncrementalDisplayable",(function(){return y.default}));var b=n(428);n.d(e,"CompoundPath",(function(){return b.default}));var _=n(326);n.d(e,"LinearGradient",(function(){return _.default}));var x=n(516);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(48);n.d(e,"addCommas",(function(){return r.addCommas})),n.d(e,"toCamelCase",(function(){return r.toCamelCase})),n.d(e,"normalizeCssArray",(function(){return r.normalizeCssArray})),n.d(e,"encodeHTML",(function(){return r.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 i=n(426);n.d(e,"truncateText",(function(){return i.truncateText}));var o=n(791);n.d(e,"getTextRect",(function(){return o.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(517),s=n(495),l=function(t){function e(e){var n=this,l=e.container,u=e.width,c=e.height,h=e.autoFit,d=void 0!==h&&h,f=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,M=e.theme,A=e.syncViewPadding,I=Object(i.isString)(l)?document.getElementById(l):l,j=Object(s.createDom)('<div style="position:relative;"></div>');I.appendChild(j);var k=Object(s.getChartSize)(I,d,u,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:f,appendPadding:p,visible:x,options:E,limitInPlot:T,theme:M,syncViewPadding:A})||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=d,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(518).default);e.default=l},function(t,e,n){"use strict";n.r(e);var r=n(593),i=n(386);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(115),i=n(594),o=n(74),a=n(269);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(183),i=n(74);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(74);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(74),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(74),i=n(596),o=n(597);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(111),i=n(598);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 l=t[o];e(l,o,t)&&(n.push(l),a.push(o))}return Object(i.default)(t,a),n}},function(t,e,n){"use strict";n.r(e);var r=n(74),i=n(154),o=n(115);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(600);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(74),i=n(183);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 l=0;l<s.length;l++){var u=s[l];o[u]||(n.push(u),o[u]=!0)}}}return n}},function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return i}));var r=n(111);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(111);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(74),i=n(154);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(74),i=n(154);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(601);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(74);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(162);e.default=function(t){return Object(r.default)(t)&&t%1!=0}},function(t,e,n){"use strict";n.r(e);var r=n(162);e.default=function(t){return Object(r.default)(t)&&t%2==0}},function(t,e,n){"use strict";n.r(e);var r=n(162),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(162);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(162);e.default=function(t){return Object(r.default)(t)&&t%2!=0}},function(t,e,n){"use strict";n.r(e);var r=n(162);e.default=function(t){return Object(r.default)(t)&&t>0}},function(t,e,n){"use strict";n.r(e);var r=n(74),i=n(115);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],l=Object(i.default)(e)?e(s):s[e];l>o&&(n=s,o=l)}return n}}},function(t,e,n){"use strict";n.r(e);var r=n(74),i=n(115);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],l=Object(i.default)(e)?e(s):s[e];l<o&&(n=s,o=l)}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(241);e.default=r.default},function(t,e,n){"use strict";n.r(e);var r=n(603);e.default=r.default},function(t,e,n){"use strict";n.r(e);var r=n(386),i=n(429);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(242);e.default=function(t){return Object(r.default)(t).toLowerCase()}},function(t,e,n){"use strict";n.r(e);var r=n(242);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(242);e.default=function(t){return Object(r.default)(t).toUpperCase()}},function(t,e,n){"use strict";n.r(e);var r=n(242);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(131);e.default=function(t){return Object(r.default)(t,"Arguments")}},function(t,e,n){"use strict";n.r(e);var r=n(131);e.default=function(t){return Object(r.default)(t,"Boolean")}},function(t,e,n){"use strict";n.r(e);var r=n(131);e.default=function(t){return Object(r.default)(t,"Date")}},function(t,e,n){"use strict";n.r(e);var r=n(131);e.default=function(t){return Object(r.default)(t,"Error")}},function(t,e,n){"use strict";n.r(e);var r=n(162);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(131);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(327),i=n(115);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(74),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(74),i=n(269);function o(t,e,n,a){for(var s in n=n||0,a=a||5,e)if(e.hasOwnProperty(s)){var l=e[s];null!==l&&Object(i.default)(l)?(Object(i.default)(t[s])||(t[s]={}),n<a?o(t[s],l,n+1,a):t[s]=e[s]):Object(r.default)(l)?(t[s]=[],t[s]=t[s].concat(l)):void 0!==l&&(t[s]=l)}}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(327),i=n(115);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(111);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(183),i=n(111),o=n(604),a=n(605),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(115),i=n(607);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(111);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(183),i=n(349),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(154);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(349),i=n(154),o=n(162);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(241),i=n(269),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(599);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 l=function(){s=!1===n.leading?0:Date.now(),r=null,a=t.apply(i,o),r||(i=o=null)},u=function(){var u=Date.now();s||!1!==n.leading||(s=u);var c=e-(u-s);return i=this,o=arguments,c<=0||c>e?(r&&(clearTimeout(r),r=null),s=u,a=t.apply(i,o),r||(i=o=null)):r||!1===n.trailing||(r=setTimeout(l,c)),a};return u.cancel=function(){clearTimeout(r),s=0,r=i=o=null},u}},function(t,e,n){"use strict";n.r(e);var r=n(111);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(183),i=n(111);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(154),i=n(242),o=n(395);e.default=function(t,e,n,a){void 0===a&&(a="...");var s,l,u=Object(o.default)(a,n),c=Object(r.default)(t)?t:Object(i.default)(t),h=e,d=[];if(Object(o.default)(t,n)<=e)return t;for(;s=c.substr(0,16),!((l=Object(o.default)(s,n))+u>h&&l>h);)if(d.push(s),h-=l,!(c=c.substr(16)))return d.join("");for(;s=c.substr(0,1),!((l=Object(o.default)(s,n))+u>h);)if(d.push(s),h-=l,!(c=c.substr(1)))return d.join("");return""+d.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(152),i=n(608);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(152),i=n(609);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,l=parseFloat(Object(r.default)(t,"borderRightWidth"))||0,u=parseFloat(Object(r.default)(t,"marginRight"))||0;return n+o+l+a+s+(parseFloat(Object(r.default)(t,"marginLeft"))||0)+u}},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(690),o=n(687),a=n(92),s=n(1483),l=n(1489),u=Object(i.detect)(),c=u&&"firefox"===u.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 l.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 l})),n.d(e,"angleTo",(function(){return u})),n.d(e,"vertical",(function(){return c}));var r=n(16);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,l,u=t?[].concat(t):[1,0,0,0,1,0,0,0,1],c=0,h=e.length;c<h;c++){var d=e[c];switch(d[0]){case"t":i(u,u,[d[1],d[2]]);break;case"s":a(u,u,[d[1],d[2]]);break;case"r":o(u,u,d[1]);break;case"m":n=u,s=u,l=d[1],r.mat3.multiply(n,l,s)}}return u}function l(t,e){return t[0]*e[1]-e[0]*t[1]}function u(t,e,n){var i=r.vec2.angle(t,e),o=l(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 l})),n.d(e,"set",(function(){return u})),n.d(e,"transpose",(function(){return c})),n.d(e,"invert",(function(){return h})),n.d(e,"adjoint",(function(){return d})),n.d(e,"determinant",(function(){return f})),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 M})),n.d(e,"sub",(function(){return A}));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 l(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 u(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 d(t,e){var n=e[0];return t[0]=e[3],t[1]=-e[1],t[2]=-e[2],t[3]=n,t}function f(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],l=n[1],u=n[2],c=n[3];return t[0]=r*s+o*l,t[1]=i*s+a*l,t[2]=r*u+o*c,t[3]=i*u+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),l=Math.cos(n);return t[0]=r*l+o*s,t[1]=i*l+a*s,t[2]=r*-s+o*l,t[3]=i*-s+a*l,t}function v(t,e,n){var r=e[0],i=e[1],o=e[2],a=e[3],s=n[0],l=n[1];return t[0]=r*s,t[1]=i*s,t[2]=o*l,t[3]=a*l,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],l=e[1],u=e[2],c=e[3];return Math.abs(n-s)<=r.EPSILON*Math.max(1,Math.abs(n),Math.abs(s))&&Math.abs(i-l)<=r.EPSILON*Math.max(1,Math.abs(i),Math.abs(l))&&Math.abs(o-u)<=r.EPSILON*Math.max(1,Math.abs(o),Math.abs(u))&&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 M=p,A=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 l})),n.d(e,"set",(function(){return u})),n.d(e,"invert",(function(){return c})),n.d(e,"determinant",(function(){return h})),n.d(e,"multiply",(function(){return d})),n.d(e,"rotate",(function(){return f})),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 M}));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 l(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 u(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],l=n*o-r*i;return l?(l=1/l,t[0]=o*l,t[1]=-r*l,t[2]=-i*l,t[3]=n*l,t[4]=(i*s-o*a)*l,t[5]=(r*a-n*s)*l,t):null}function h(t){return t[0]*t[3]-t[1]*t[2]}function d(t,e,n){var r=e[0],i=e[1],o=e[2],a=e[3],s=e[4],l=e[5],u=n[0],c=n[1],h=n[2],d=n[3],f=n[4],p=n[5];return t[0]=r*u+o*c,t[1]=i*u+a*c,t[2]=r*h+o*d,t[3]=i*h+a*d,t[4]=r*f+o*p+s,t[5]=i*f+a*p+l,t}function f(t,e,n){var r=e[0],i=e[1],o=e[2],a=e[3],s=e[4],l=e[5],u=Math.sin(n),c=Math.cos(n);return t[0]=r*c+o*u,t[1]=i*c+a*u,t[2]=r*-u+o*c,t[3]=i*-u+a*c,t[4]=s,t[5]=l,t}function p(t,e,n){var r=e[0],i=e[1],o=e[2],a=e[3],s=e[4],l=e[5],u=n[0],c=n[1];return t[0]=r*u,t[1]=i*u,t[2]=o*c,t[3]=a*c,t[4]=s,t[5]=l,t}function g(t,e,n){var r=e[0],i=e[1],o=e[2],a=e[3],s=e[4],l=e[5],u=n[0],c=n[1];return t[0]=r,t[1]=i,t[2]=o,t[3]=a,t[4]=r*u+o*c+s,t[5]=i*u+a*c+l,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],l=t[5],u=e[0],c=e[1],h=e[2],d=e[3],f=e[4],p=e[5];return Math.abs(n-u)<=r.EPSILON*Math.max(1,Math.abs(n),Math.abs(u))&&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-d)<=r.EPSILON*Math.max(1,Math.abs(a),Math.abs(d))&&Math.abs(s-f)<=r.EPSILON*Math.max(1,Math.abs(s),Math.abs(f))&&Math.abs(l-p)<=r.EPSILON*Math.max(1,Math.abs(l),Math.abs(p))}var T=d,M=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 l})),n.d(e,"fromRotationTranslationValues",(function(){return u})),n.d(e,"fromRotationTranslation",(function(){return c})),n.d(e,"fromTranslation",(function(){return h})),n.d(e,"fromRotation",(function(){return d})),n.d(e,"fromMat4",(function(){return f})),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 M})),n.d(e,"add",(function(){return A})),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 D})),n.d(e,"conjugate",(function(){return R})),n.d(e,"length",(function(){return N})),n.d(e,"len",(function(){return F})),n.d(e,"squaredLength",(function(){return B})),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(259),o=n(135);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 l(t,e,n,i,o,a,s,l){var u=new r.ARRAY_TYPE(8);return u[0]=t,u[1]=e,u[2]=n,u[3]=i,u[4]=o,u[5]=a,u[6]=s,u[7]=l,u}function u(t,e,n,i,o,a,s){var l=new r.ARRAY_TYPE(8);l[0]=t,l[1]=e,l[2]=n,l[3]=i;var u=.5*o,c=.5*a,h=.5*s;return l[4]=u*i+c*n-h*e,l[5]=c*i+h*t-u*n,l[6]=h*i+u*e-c*t,l[7]=-u*t-c*e-h*n,l}function c(t,e,n){var r=.5*n[0],i=.5*n[1],o=.5*n[2],a=e[0],s=e[1],l=e[2],u=e[3];return t[0]=a,t[1]=s,t[2]=l,t[3]=u,t[4]=r*u+i*l-o*s,t[5]=i*u+o*a-r*l,t[6]=o*u+r*s-i*a,t[7]=-r*a-i*s-o*l,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 d(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 f(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,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]=l,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],l=-e[2],u=e[3];return t[0]=2*(n*u+o*a+r*l-i*s),t[1]=2*(r*u+o*s+i*a-n*l),t[2]=2*(i*u+o*l+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],l=.5*n[1],u=.5*n[2],c=e[4],h=e[5],d=e[6],f=e[7];return t[0]=r,t[1]=i,t[2]=o,t[3]=a,t[4]=a*s+i*u-o*l+c,t[5]=a*l+o*s-r*u+h,t[6]=a*u+r*l-i*s+d,t[7]=-r*s-i*l-o*u+f,t}function O(t,e,n){var r=-e[0],o=-e[1],a=-e[2],s=e[3],l=e[4],u=e[5],c=e[6],h=e[7],d=l*s+h*r+u*a-c*o,f=u*s+h*o+c*r-l*a,p=c*s+h*a+l*o-u*r,g=h*s-l*r-u*o-c*a;return i.rotateX(t,e,n),r=t[0],o=t[1],a=t[2],s=t[3],t[4]=d*s+g*r+f*a-p*o,t[5]=f*s+g*o+p*r-d*a,t[6]=p*s+g*a+d*o-f*r,t[7]=g*s-d*r-f*o-p*a,t}function S(t,e,n){var r=-e[0],o=-e[1],a=-e[2],s=e[3],l=e[4],u=e[5],c=e[6],h=e[7],d=l*s+h*r+u*a-c*o,f=u*s+h*o+c*r-l*a,p=c*s+h*a+l*o-u*r,g=h*s-l*r-u*o-c*a;return i.rotateY(t,e,n),r=t[0],o=t[1],a=t[2],s=t[3],t[4]=d*s+g*r+f*a-p*o,t[5]=f*s+g*o+p*r-d*a,t[6]=p*s+g*a+d*o-f*r,t[7]=g*s-d*r-f*o-p*a,t}function C(t,e,n){var r=-e[0],o=-e[1],a=-e[2],s=e[3],l=e[4],u=e[5],c=e[6],h=e[7],d=l*s+h*r+u*a-c*o,f=u*s+h*o+c*r-l*a,p=c*s+h*a+l*o-u*r,g=h*s-l*r-u*o-c*a;return i.rotateZ(t,e,n),r=t[0],o=t[1],a=t[2],s=t[3],t[4]=d*s+g*r+f*a-p*o,t[5]=f*s+g*o+p*r-d*a,t[6]=p*s+g*a+d*o-f*r,t[7]=g*s-d*r-f*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],l=e[1],u=e[2],c=e[3];return t[0]=s*a+c*r+l*o-u*i,t[1]=l*a+c*i+u*r-s*o,t[2]=u*a+c*o+s*i-l*r,t[3]=c*a-s*r-l*i-u*o,s=e[4],l=e[5],u=e[6],c=e[7],t[4]=s*a+c*r+l*o-u*i,t[5]=l*a+c*i+u*r-s*o,t[6]=u*a+c*o+s*i-l*r,t[7]=c*a-s*r-l*i-u*o,t}function T(t,e,n){var r=e[0],i=e[1],o=e[2],a=e[3],s=n[0],l=n[1],u=n[2],c=n[3];return t[0]=r*c+a*s+i*u-o*l,t[1]=i*c+a*l+o*s-r*u,t[2]=o*c+a*u+r*l-i*s,t[3]=a*c-r*s-i*l-o*u,s=n[4],l=n[5],u=n[6],c=n[7],t[4]=r*c+a*s+i*u-o*l,t[5]=i*c+a*l+o*s-r*u,t[6]=o*c+a*u+r*l-i*s,t[7]=a*c-r*s-i*l-o*u,t}function M(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,l=a*n[1]/o,u=a*n[2]/o,c=Math.cos(i),h=e[0],d=e[1],f=e[2],g=e[3];t[0]=h*c+g*s+d*u-f*l,t[1]=d*c+g*l+f*s-h*u,t[2]=f*c+g*u+h*l-d*s,t[3]=g*c-h*s-d*l-f*u;var v=e[4],m=e[5],y=e[6],b=e[7];return t[4]=v*c+b*s+m*u-y*l,t[5]=m*c+b*l+y*s-v*u,t[6]=y*c+b*u+v*l-m*s,t[7]=b*c-v*s-m*l-y*u,t}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}function I(t,e,n){var r=e[0],i=e[1],o=e[2],a=e[3],s=n[4],l=n[5],u=n[6],c=n[7],h=e[4],d=e[5],f=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*u-o*l+h*y+p*g+d*m-f*v,t[5]=i*c+a*l+o*s-r*u+d*y+p*v+f*g-h*m,t[6]=o*c+a*u+r*l-i*s+f*y+p*m+h*v-d*g,t[7]=a*c-r*s-i*l-o*u+p*y-h*g-d*v-f*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 D(t,e){var n=B(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 R(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,F=N,B=i.squaredLength,z=B;function V(t,e){var n=B(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],l=e[5],u=e[6],c=e[7],h=r*s+i*l+o*u+a*c;t[0]=r,t[1]=i,t[2]=o,t[3]=a,t[4]=(s-r*h)/n,t[5]=(l-i*h)/n,t[6]=(u-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],l=t[5],u=t[6],c=t[7],h=e[0],d=e[1],f=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-d)<=r.EPSILON*Math.max(1,Math.abs(i),Math.abs(d))&&Math.abs(o-f)<=r.EPSILON*Math.max(1,Math.abs(o),Math.abs(f))&&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(l-v)<=r.EPSILON*Math.max(1,Math.abs(l),Math.abs(v))&&Math.abs(u-m)<=r.EPSILON*Math.max(1,Math.abs(u),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(687).default);e.default=i},function(t,e,n){"use strict";n.r(e);var r=n(2),i=n(688),o=n(212),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]),l=Object(o.multiplyVec2)(e,[t.maxX,t.minY]),u=Object(o.multiplyVec2)(e,[t.minX,t.maxY]),c=Object(o.multiplyVec2)(e,[t.maxX,t.maxY]);n=Math.min(s[0],l[0],u[0],c[0]),i=Math.max(s[0],l[0],u[0],c[0]),r=Math.min(s[1],l[1],u[1],c[1]),a=Math.max(s[1],l[1],u[1],c[1])}var h=this.attrs;if(h.shadowColor){var d=h.shadowBlur,f=void 0===d?0:d,p=h.shadowOffsetX,g=void 0===p?0:p,v=h.shadowOffsetY,m=void 0===v?0:v,y=n-f+g,b=i+f+g,_=r-f+m,x=a+f+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(213),i=n(83),o=n(546);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 l(t,e,n,r){return 2*(1-r)*(e-t)+2*r*(n-e)}function u(t,e,n,i,o,s,l){var u=a(t,n,o,l),c=a(e,i,s,l),h=r.default.pointAt(t,e,n,i,l),d=r.default.pointAt(n,i,o,s,l);return[[t,e,h.x,h.y,u,c],[u,c,d.x,d.y,o,s]]}e.default={box:function(t,e,n,r,o,l){var u=s(t,n,o)[0],c=s(e,r,l)[0],h=[t,o],d=[e,l];return void 0!==u&&h.push(a(t,n,o,u)),void 0!==c&&d.push(a(e,r,l,c)),Object(i.getBBoxByArray)(h,d)},length:function(t,e,n,r,o,a){return function t(e,n,r,o,a,s,l){if(0===l)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=u(e,n,r,o,a,s,.5),h=c[0],d=c[1];return h.push(l-1),d.push(l-1),t.apply(null,h)+t.apply(null,d)}(t,e,n,r,o,a,3)},nearestPoint:function(t,e,n,r,i,s,l,u){return Object(o.nearestPoint)([t,n,i],[e,r,s],l,u,a)},pointDistance:function(t,e,n,r,o,a,s,l){var u=this.nearestPoint(t,e,n,r,o,a,s,l);return Object(i.distance)(u.x,u.y,s,l)},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 u(t,e,n,r,i,o,a)},tangentAngle:function(t,e,n,r,o,a,s){var u=l(t,n,o,s),c=l(e,r,a,s),h=Math.atan2(c,u);return Object(i.piMod)(h)}}},function(t,e,n){"use strict";n.r(e);var r=n(83),i=n(213),o=n(546);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 l(t,e,n,i){var o,a,s,l=-3*t+9*e-9*n+3*i,u=6*t-12*e+6*n,c=3*e-3*t,h=[];if(Object(r.isNumberEqual)(l,0))Object(r.isNumberEqual)(u,0)||(o=-c/u)>=0&&o<=1&&h.push(o);else{var d=u*u-4*l*c;Object(r.isNumberEqual)(d,0)?h.push(-u/(2*l)):d>0&&(a=(-u-(s=Math.sqrt(d)))/(2*l),(o=(-u+s)/(2*l))>=0&&o<=1&&h.push(o),a>=0&&a<=1&&h.push(a))}return h}function u(t,e,n,r,o,s,l,u,c){var h=a(t,n,o,l,c),d=a(e,r,s,u,c),f=i.default.pointAt(t,e,n,r,c),p=i.default.pointAt(n,r,o,s,c),g=i.default.pointAt(o,s,l,u,c),v=i.default.pointAt(f.x,f.y,p.x,p.y,c),m=i.default.pointAt(p.x,p.y,g.x,g.y,c);return[[t,e,f.x,f.y,v.x,v.y,h,d],[h,d,m.x,m.y,g.x,g.y,l,u]]}e.default={extrema:l,box:function(t,e,n,i,o,s,u,c){for(var h=[t,u],d=[e,c],f=l(t,n,o,u),p=l(e,i,s,c),g=0;g<f.length;g++)h.push(a(t,n,o,u,f[g]));for(g=0;g<p.length;g++)d.push(a(e,i,s,c,p[g]));return Object(r.getBBoxByArray)(h,d)},length:function(t,e,n,r,i,a,s,l){return function t(e,n,r,i,a,s,l,c,h){if(0===h)return Object(o.snapLength)([e,r,a,l],[n,i,s,c]);var d=u(e,n,r,i,a,s,l,c,.5),f=d[0],p=d[1];return f.push(h-1),p.push(h-1),t.apply(null,f)+t.apply(null,p)}(t,e,n,r,i,a,s,l,3)},nearestPoint:function(t,e,n,r,i,s,l,u,c,h,d){return Object(o.nearestPoint)([t,n,i,l],[e,r,s,u],c,h,a,d)},pointDistance:function(t,e,n,i,o,a,s,l,u,c,h){var d=this.nearestPoint(t,e,n,i,o,a,s,l,u,c,h);return Object(r.distance)(d.x,d.y,u,c)},interpolationAt:a,pointAt:function(t,e,n,r,i,o,s,l,u){return{x:a(t,n,i,s,u),y:a(e,r,o,l,u)}},divide:function(t,e,n,r,i,o,a,s,l){return u(t,e,n,r,i,o,a,s,l)},tangentAngle:function(t,e,n,i,o,a,l,u,c){var h=s(t,n,o,l,c),d=s(e,i,a,u,c);return Object(r.piMod)(Math.atan2(d,h))}}},function(t,e,n){"use strict";n.r(e);var r=n(83),i=n(1491);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 l(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,l){for(var u=function(t,e,n){return Math.atan(-e/t*Math.tan(n))}(n,r,i),c=1/0,h=-1/0,d=[s,l],f=2*-Math.PI;f<=2*Math.PI;f+=Math.PI){var p=u+f;s<l?s<p&&p<l&&d.push(p):l<p&&p<s&&d.push(p)}for(f=0;f<d.length;f++){var g=o(t,0,n,r,i,d[f]);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,l];for(f=2*-Math.PI;f<=2*Math.PI;f+=Math.PI){var _=v+f;s<l?s<_&&_<l&&b.push(_):l<_&&_<s&&b.push(_)}for(f=0;f<b.length;f++){var x=a(0,e,n,r,i,b[f]);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,u,c,h){var d=l(c-t,h-e,-o),f=d[0],p=d[1],g=i.default.nearestPoint(0,0,n,r,f,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>u&&(g=s(n,r,u));var m=l(g.x,g.y,o);return{x:m[0]+t,y:m[1]+e}},pointDistance:function(t,e,n,i,o,a,s,l,u){var c=this.nearestPoint(t,e,n,i,l,u);return Object(r.distance)(c.x,c.y,l,u)},pointAt:function(t,e,n,r,i,s,l,u){var c=(l-s)*u+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,l){var u=(s-a)*l+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,u),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,u);return Object(r.piMod)(Math.atan2(h,c))}}},function(t,e,n){"use strict";n.r(e);var r=n(317),i=n(614);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(108);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 l,u,c,h=function(t,e,n,i){var o,a,s,l,u,c,h,d=[],f=!!i;if(f){s=i[0],l=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),l=r.vec2.max([0,0],l,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),u=r.vec2.add([0,0],v,O),u=r.vec2.min([0,0],u,r.vec2.max([0,0],a,v)),u=r.vec2.max([0,0],u,r.vec2.min([0,0],a,v)),w=r.vec2.sub([0,0],u,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),u=r.vec2.add([0,0],v,O),f&&(c=r.vec2.max([0,0],c,s),c=r.vec2.min([0,0],c,l),u=r.vec2.max([0,0],u,s),u=r.vec2.min([0,0],u,l)),d.push(h),d.push(c),h=u}else c=v,d.push(h),d.push(c);else h=v}return n&&d.push(d.shift()),d}(o,.4,i,n),d=o.length,f=[];for(a=0;a<d-1;a+=1)l=h[2*a],u=h[2*a+1],c=o[a+1],f.push(["C",l[0],l[1],u[0],u[1],c[0],c[1]]);return i&&(l=h[d],u=h[d+1],c=o[0],f.push(["C",l[0],l[1],u[0],u[1],c[0],c[1]])),f}},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 l})),n.d(e,"angleTo",(function(){return u})),n.d(e,"vertical",(function(){return c}));var r=n(16);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,l,u=t?[].concat(t):[1,0,0,0,1,0,0,0,1],c=0,h=e.length;c<h;c++){var d=e[c];switch(d[0]){case"t":i(u,u,[d[1],d[2]]);break;case"s":a(u,u,[d[1],d[2]]);break;case"r":o(u,u,d[1]);break;case"m":n=u,s=u,l=d[1],r.mat3.multiply(n,l,s)}}return u}function l(t,e){return t[0]*e[1]-e[0]*t[1]}function u(t,e,n){var i=r.vec2.angle(t,e),o=l(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,l=0;l<n-1;l++){var u=r(a,s/(1-s*l));o.push(u.left),a=u.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 l=Math.floor(o*s);a[l]=(a[l]||0)+1}var u=a.reduce((function(e,r,o){return o===n?e.concat(t[n]):e.concat(i(t[o],t[o+1],r))}),[]);return u.unshift(t[0]),"Z"!==e[r]&&"z"!==e[r]||u.push("Z"),u}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,l=0;if(0===a||0===s)return null;for(var u=[],c=0;c<=a;c++)u[c]=[],u[c][0]={min:c};for(var h=0;h<=s;h++)u[0][h]={min:h};for(c=1;c<=a;c++){n=t[c-1];for(h=1;h<=s;h++){o=e[h-1],l=Object(r.isEqual)(n,o)?0:1;var d=u[c-1][h].min+1,f=u[c][h-1].min+1,p=u[c-1][h-1].min+l;u[c][h]=i(d,f,p)}}return u}(t,e),o=t.length,a=e.length,s=[],l=1,u=1;if(n[o][a]!==o){for(var c=1;c<=o;c++){var h=n[c][c].min;u=c;for(var d=l;d<=a;d++)n[c][d].min<h&&(h=n[c][d].min,u=d);l=u,n[c][l].type&&s.push({index:c-1,type:n[c][l].type})}for(c=s.length-1;c>=0;c--)l=s[c].index,"add"===s[c].type?t.splice(l,0,[].concat(t[l])):t.splice(l,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],l=1;l<=n;l++)a*=l,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(617),o=n(523),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,l,u){null===u&&(u=1);for(var c=(u=u>1?1:u<0?0:u)/2,h=[-.1252,.1252,-.3678,.3678,-.5873,.5873,-.7699,.7699,-.9041,.9041,-.9816,.9816],d=[.2491,.2491,.2335,.2335,.2032,.2032,.1601,.1601,.1069,.1069,.0472,.0472],f=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,l),y=v*v+m*m;f+=d[p]*Math.sqrt(y)}return c*f},l=function(t,e,n,r,i,o,a,s){for(var l,u,c,h,d=[],f=[[],[]],p=0;p<2;++p)if(0===p?(u=6*t-12*n+6*i,l=-3*t+9*n-9*i+3*a,c=3*n-3*t):(u=6*e-12*r+6*o,l=-3*e+9*r-9*o+3*s,c=3*r-3*e),Math.abs(l)<1e-12){if(Math.abs(u)<1e-12)continue;(h=-c/u)>0&&h<1&&d.push(h)}else{var g=u*u-4*c*l,v=Math.sqrt(g);if(!(g<0)){var m=(-u+v)/(2*l);m>0&&m<1&&d.push(m);var y=(-u-v)/(2*l);y>0&&y<1&&d.push(y)}}for(var b,_=d.length,x=_;_--;)b=1-(h=d[_]),f[0][_]=b*b*b*t+3*b*b*h*n+3*b*h*h*i+h*h*h*a,f[1][_]=b*b*b*e+3*b*b*h*r+3*b*h*h*o+h*h*h*s;return f[0][x]=t,f[1][x]=e,f[0][x+1]=a,f[1][x+1]=s,f[0].length=f[1].length=x+2,{min:{x:Math.min.apply(0,f[0]),y:Math.min.apply(0,f[1])},max:{x:Math.max.apply(0,f[0]),y:Math.max.apply(0,f[1])}}},u=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 l=(t-n)*(o-s)-(e-r)*(i-a);if(l){var u=((t*r-e*n)*(i-a)-(t-n)*(i*s-o*a))/l,c=((t*r-e*n)*(o-s)-(e-r)*(i*s-o*a))/l,h=+u.toFixed(2),d=+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)||d<+Math.min(e,r).toFixed(2)||d>+Math.max(e,r).toFixed(2)||d<+Math.min(o,s).toFixed(2)||d>+Math.max(o,s).toFixed(2)))return{x:u,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(" ")}},d=function(t,e,n,i,o,a,s,u){Object(r.isArray)(t)||(t=[t,e,n,i,o,a,s,u]);var c=l.apply(null,t);return h(c.min.x,c.min.y,c.max.x-c.min.x,c.max.y-c.min.y)},f=function(t,e,n,r,i,o,a,s,l){var u=1-l,c=Math.pow(u,3),h=Math.pow(u,2),d=l*l,f=d*l,p=t+2*l*(n-t)+d*(i-2*n+t),g=e+2*l*(r-e)+d*(o-2*r+e),v=n+2*l*(i-n)+d*(a-2*i+n),m=r+2*l*(o-r)+d*(s-2*o+r);return{x:c*t+3*h*l*n+3*u*l*l*i+f*a,y:c*e+3*h*l*r+3*u*l*l*o+f*s,m:{x:p,y:g},n:{x:v,y:m},start:{x:u*t+l*n,y:u*e+l*r},end:{x:u*i+l*a,y:u*o+l*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)}(d(t),d(e)))return n?0:[];for(var r=~~(s.apply(0,t)/8),i=~~(s.apply(0,e)/8),o=[],a=[],l={},p=n?0:[],g=0;g<r+1;g++){var v=f.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=f.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=u(y.x,y.y,b.x,b.y,_.x,_.y,x.x,x.y);if(S){if(l[S.x.toFixed(4)]===S.y.toFixed(4))continue;l[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,l,u,c,h,d,f;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=l=y[1],i=u=y[2];else{"C"===y[0]?(d=[r,i].concat(y.slice(1)),r=d[6],i=d[7]):(d=[r,i,r,i,l,u,l,u],r=l,i=u);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]?(f=[a,s].concat(x.slice(1)),a=f[6],s=f[7]):(f=[a,s,a,s,c,h,c,h],a=c,s=h);var w=p(d,f,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=d,w[O].bez2=f;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(430),i=n(616);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,l=0,u=(t=Object(i.default)(t)).length,c=0;c<u;c++){var h=t[c];a=t[c+1];var d=h[0],f={command:d,prePoint:n,params:h,startTangent:null,endTangent:null};switch(d){case"M":s=[h[1],h[2]],l=c;break;case"A":var p=Object(r.default)(n,h);f.arcParams=p}if("Z"===d)n=s,a=t[l+1];else{var g=h.length;n=[h[g-2],h[g-1]]}a&&"Z"===a[0]&&(a=t[l],e[l]&&(e[l].prePoint=n)),f.currentPoint=n,e[l]&&Object(r.isSamePoint)(n,e[l].currentPoint)&&(e[l].prePoint=f.prePoint);var v=a?[a[a.length-2],a[a.length-1]]:null;f.nextPoint=v;var m=f.prePoint;if(["L","H","V"].includes(d))f.startTangent=[m[0]-n[0],m[1]-n[1]],f.endTangent=[n[0]-m[0],n[1]-m[1]];else if("Q"===d){var y=[h[1],h[2]];f.startTangent=[m[0]-y[0],m[1]-y[1]],f.endTangent=[n[0]-y[0],n[1]-y[1]]}else if("T"===d){y=o((x=e[c-1]).currentPoint,m);"Q"===x.command?(f.command="Q",f.startTangent=[m[0]-y[0],m[1]-y[1]],f.endTangent=[n[0]-y[0],n[1]-y[1]]):(f.command="TL",f.startTangent=[m[0]-n[0],m[1]-n[1]],f.endTangent=[n[0]-m[0],n[1]-m[1]])}else if("C"===d){var b=[h[1],h[2]],_=[h[3],h[4]];f.startTangent=[m[0]-b[0],m[1]-b[1]],f.endTangent=[n[0]-_[0],n[1]-_[1]],0===f.startTangent[0]&&0===f.startTangent[1]&&(f.startTangent=[b[0]-_[0],b[1]-_[1]]),0===f.endTangent[0]&&0===f.endTangent[1]&&(f.endTangent=[_[0]-b[0],_[1]-b[1]])}else if("S"===d){var x;b=o((x=e[c-1]).currentPoint,m),_=[h[1],h[2]];"C"===x.command?(f.command="C",f.startTangent=[m[0]-b[0],m[1]-b[1]],f.endTangent=[n[0]-_[0],n[1]-_[1]]):(f.command="SQ",f.startTangent=[m[0]-_[0],m[1]-_[1]],f.endTangent=[n[0]-_[0],n[1]-_[1]])}else if("A"===d){var w=.001,O=f.arcParams||{},S=O.cx,C=void 0===S?0:S,E=O.cy,T=void 0===E?0:E,M=O.rx,A=void 0===M?0:M,I=O.ry,j=void 0===I?0:I,k=O.sweepFlag,P=void 0===k?0:k,L=O.startAngle,D=void 0===L?0:L,R=O.endAngle,N=void 0===R?0:R;0===P&&(w*=-1);var F=A*Math.cos(D-w)+C,B=j*Math.sin(D-w)+T;f.startTangent=[F-s[0],B-s[1]];var z=A*Math.cos(D+N+w)+C,V=j*Math.sin(D+N-w)+T;f.endTangent=[m[0]-z,m[1]-V]}e.push(f)}return e}},function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return l}));var r=n(524),i=n(620),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 l(t,e){if(t.length<2||e.length<2)return!1;var n,l,u=s(t),c=s(e);if(n=u,(l=c).minX>n.maxX||l.maxX<n.minX||l.minY>n.maxY||l.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 d=a(t),f=a(e),p=!1;return Object(o.each)(f,(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}(d,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(1040);n.d(e,"Line",(function(){return r.default}));var i=n(1041);n.d(e,"Text",(function(){return i.default}));var o=n(1042);n.d(e,"Arc",(function(){return o.default}));var a=n(1043);n.d(e,"Region",(function(){return a.default}));var s=n(1044);n.d(e,"Image",(function(){return s.default}));var l=n(1045);n.d(e,"DataMarker",(function(){return l.default}));var u=n(1046);n.d(e,"DataRegion",(function(){return u.default}));var c=n(1047);n.d(e,"RegionFilter",(function(){return c.default}));var h=n(1048);n.d(e,"Shape",(function(){return h.default}));var d=n(1049);n.d(e,"Html",(function(){return d.default}))},function(t,e,n){"use strict";n.r(e);var r=n(2),i=n(1),o=n(88),a=n(358),s=n(51),l=n(44),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:"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(l.getValueByPercent)(t.x,e.x,r),y:Object(l.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,l=e.offsetX,u=e.offsetY,c=e.autoRotate,h=e.maxLength,d=e.autoEllipsis,f=e.ellipsisPosition,p=e.background,g=e.isVertical,v=void 0!==g&&g,m=this.getLabelPoint(n,r,i),y=m.x+l,b=m.y+u,_={id:this.getElementId("line-text"),name:"annotation-line-text",x:y,y:b,content:o,style:s,maxLength:h,autoEllipsis:d,ellipsisPosition:f,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=u},function(t,e,n){"use strict";n.r(e);var r=n(2),i=n(88),o=n(358),a=n(118),s=n(51),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:"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=l},function(t,e,n){"use strict";n.r(e);var r=n(2),i=n(88),o=n(44),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),l=i-r>Math.PI?1:0,u=[["M",a.x,a.y]];if(i-r==2*Math.PI){var c=Object(o.getCirclePoint)(e,n,r+Math.PI);u.push(["A",n,n,0,l,1,c.x,c.y]),u.push(["A",n,n,0,l,1,s.x,s.y])}else u.push(["A",n,n,0,l,1,s.x,s.y]);return u},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(88),o=n(51),a=n(44),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(88),o=n(44),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(88),a=n(358),s=n(118),l=n(51),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:"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:l.default.lineColor,lineWidth:1}},text:{content:"",display:!0,style:{fill:l.default.textColor,opacity:.65,fontSize:12,textAlign:"start",fontFamily:l.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"]),l=this.get("text"),u=l.background,c=l.maxLength,h=l.autoEllipsis,d=l.isVertival,f=l.ellipsisPosition,p={x:n,y:i,id:this.getElementId("text"),name:"annotation-text",content:o,style:s,background:u,maxLength:c,autoEllipsis:h,isVertival:d,ellipsisPosition:f};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"),l=t.getBBox(),u=l.minX,c=l.maxX,h=l.minY,d=l.maxY,f=t.findById(this.getElementId("text-group")),p=t.findById(this.getElementId("text")),g=t.findById(this.getElementId("line"));if(a){if(f){if(n+u<=a.minX){var v=a.minX-(n+u);Object(s.applyTranslate)(f,f.attr("x")+v,f.attr("y"))}if(n+c>=a.maxX){v=n+c-a.maxX;Object(s.applyTranslate)(f,f.attr("x")-v,f.attr("y"))}}if("upward"===e&&r+h<=a.minY||"upward"!==e&&r+d>=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)(f,f.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,l="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*l]]},n),text:Object(r.__assign)({x:0,y:(s+2)*l,text:Object(i.get)(this.get("text"),"content",""),textBaseline:"upward"===a?"bottom":"top"},o)}},e}(o.default);e.default=u},function(t,e,n){"use strict";n.r(e);var r=n(2),i=n(1),o=n(88),a=n(51),s=n(44),l=n(358),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:"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),u=[];u.push(["M",o[0].x,a.minY-n]),o.forEach((function(t){u.push(["L",t.x,t.y])})),u.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:u},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(l.renderTag)(t,c)}},e}(o.default);e.default=u},function(t,e,n){"use strict";n.r(e);var r=n(2),i=n(1),o=n(88),a=n(44),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(88).default);e.default=o},function(t,e,n){"use strict";n.r(e);var r=n(2),i=n(84),o=n(1),a=n(351),s=n(44),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:"html",locationType:"point",x:0,y:0,containerTpl:'<div class="g2-html-annotation"></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"),l=this.get("offsetY"),u=Object(i.getOuterWidth)(t),c=Object(i.getOuterHeight)(t),h={x:n,y:r};"middle"===o?h.x-=Math.round(u/2):"right"===o&&(h.x-=Math.round(u)),"middle"===a?h.y-=Math.round(c/2):"bottom"===a&&(h.y-=Math.round(c)),s&&(h.x+=s),l&&(h.y+=l),Object(i.modifyCSS)(t,{position:"absolute",left:h.x+"px",top:h.y+"px",zIndex:this.get("zIndex")})},e}(a.default);e.default=l},function(t,e,n){"use strict";n.r(e);var r=n(1051);n.d(e,"Line",(function(){return r.default}));var i=n(1055);n.d(e,"Circle",(function(){return i.default}));var o=n(432);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(432),s=n(694),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),{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"),l=i.offset,u=s,c=0,h=0;a&&(c=a.style.fontSize,h=a.spacing),u&&(u=u-l-h-c);var d=this.get("overlapOrder");if(Object(o.each)(d,(function(n){i[n]&&e.canProcessOverlap(n)&&e.autoProcessOverlap(n,i[n],t,u)})),a&&Object(o.isNil)(a.offset)){var f=t.getCanvasBBox(),p=n?f.width:f.height;a.offset=l+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(),l=!1,u=s[t];if(!0===e){this.get("label");l=u.getDefault()(a,n,r)}else if(Object(o.isFunction)(e))l=e(a,n,r);else if(Object(o.isObject)(e)){var c=e;u[c.type]&&(l=u[c.type](a,n,r,c.cfg))}else u[e]&&(l=u[e](a,n,r));if("autoRotate"===t){if(l){var h=n.getChildren(),d=this.get("verticalFactor");Object(o.each)(h,(function(t){if("center"===t.attr("textAlign")){var e=d>0?"end":"start";t.attr("textAlign",e)}}))}}else if("autoHide"===t){var f=n.getChildren().slice(0);Object(o.each)(f,(function(t){t.get("visible")||(i.get("isRegister")&&i.unregisterElement(t),t.remove())}))}},e}(a.default);e.default=l},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 l})),n.d(e,"ellipsisMiddle",(function(){return u}));var r=n(1),i=n(231);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 l}function s(t,e,n){return o(t,e,n,"head")}function l(t,e,n){return o(t,e,n,"tail")}function u(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 d})),n.d(e,"reserveBoth",(function(){return f})),n.d(e,"equidistance",(function(){return p})),n.d(e,"equidistanceWithReverseBoth",(function(){return g}));var r=n(231),i=n(118),o=n(44);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),l=t?Math.abs(n.attr("y")-e.attr("y")):Math.abs(n.attr("x")-e.attr("x")),u=(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)?u.width+r>l:u.height/c+r>l}else{c=Math.abs(Math.sin(s));i=Object(o.near)(c,0,Math.PI/180)?u.width+r>l:u.height/c+r>l}return i}function l(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 l=o.length,u=o[0],c=1;c<l;c++){var h=o[c];h.getBBox();s(t,u,h,i)?(h.hide(),a=!0):u=h}return a}function u(t,e,n){var i=(null==n?void 0:n.minGap)||0,s=e.getChildren().slice();if(s.length<2)return!1;var l=!1,u=s[0],c=u.getBBox(),h=s[1],d=s.length,f=a(u),p=t?Math.abs(h.attr("y")-u.attr("y")):Math.abs(h.attr("x")-u.attr("x")),g=0;if(t){var v=Math.abs(Math.cos(f));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(f));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<d;m++)m%g!=0&&(s[m].hide(),l=!0)}return l}function c(){return p}function h(t,e,n,r){return l(t,e,!1,r)}function d(t,e,n,r){return l(t,e,!0,r)}function f(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,l=o.length,u=o[0],c=o[l-1],h=u,d=1;d<l-1;d++){var f=o[d];f.getBBox();s(t,h,f,i)?(f.hide(),a=!0):h=f}return s(t,h,c,i)&&(h.hide(),a=!0),a}function p(t,e,n,r){var i=u(t,e,r);return l(t,e,!1)&&(i=!0),i}function g(t,e,n,r){var i=e.getChildren().slice(),o=u(t,e,r);if(i.length>2){var a=i[0],s=i[i.length-1];a.get("visible")||(a.show(),l(t,e,!1,r)&&(o=!0)),s.get("visible")||(s.show(),l(t,e,!0,r)&&(o=!0))}return o}},function(t,e,n){"use strict";n.r(e),n.d(e,"getDefault",(function(){return l})),n.d(e,"fixedAngle",(function(){return u})),n.d(e,"unfixedAngle",(function(){return c}));var r=n(1),i=n(231),o=n(118),a=n(51);function s(t,e,n,a){var s=e.getChildren();if(!s.length)return!1;if(!t&&s.length<2)return!1;var l=Object(i.getMaxLabelWidth)(s),u=!1;t?u=!!n&&l>n:u=l>Math.abs(s[1].attr("x")-s[0].attr("x"));u&&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,l));return u}function l(){return u}function u(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(432),s=n(694),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),{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 l=this.getCirclePoint(o),u=this.getCirclePoint(a),c=Math.abs(a-o)>Math.PI?1:0,h=o>a?0:1;s=[["M",e,n],["L",l.x,l.y],["A",r,i,0,c,h,u.x,u.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,l=0,u=0;r&&(l=r.style.fontSize,u=r.spacing),s&&(s=s-a-u-l);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+u+l/2}},e.prototype.autoProcessOverlap=function(t,e,n,r){var o=this,a=!1,l=s[t];if(r>0)if(!0===e)a=l.getDefault()(!1,n,r);else if(Object(i.isFunction)(e))a=e(!1,n,r);else if(Object(i.isObject)(e)){var u=e;l[u.type]&&(a=l[u.type](!1,n,r,u.cfg))}else l[e]&&(a=l[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 d=n.getChildren().slice(0);Object(i.each)(d,(function(t){t.get("visible")||(o.get("isRegister")&&o.unregisterElement(t),t.remove())}))}},e}(a.default);e.default=l},function(t,e,n){"use strict";n.r(e);var r=n(1057);n.d(e,"Line",(function(){return r.default}));var i=n(1058);n.d(e,"Circle",(function(){return i.default}));var o=n(433);n.d(e,"Base",(function(){return o.default}));var a=n(1059);n.d(e,"Html",(function(){return a.default}))},function(t,e,n){"use strict";n.r(e);var r=n(2),i=n(44),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(433).default);e.default=o},function(t,e,n){"use strict";n.r(e);var r=n(2),i=n(44),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,l=r.endAngle,u="start"===e?s:l,c=this.getRotateAngle()-Math.PI,h=Object(i.getCirclePoint)(o,a,u),d=Math.cos(c)*n,f=Math.sin(c)*n;return{x:h.x+d,y:h.y+f}},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,l=e.y;a=[["M",s,l-n],["A",n,n,0,1,1,s,l+n],["A",n,n,0,1,1,s,l-n],["Z"]]}else{var u=Object(i.getCirclePoint)(e,n,r),c=Object(i.getCirclePoint)(e,n,o),h=Math.abs(o-r)>Math.PI?1:0,d=r>o?0:1;a=[["M",u.x,u.y],["A",n,n,0,h,d,c.x,c.y]]}return a},e}(n(433).default);e.default=o},function(t,e,n){"use strict";n.r(e);var r=n(2),i=n(84),o=n(1),a=n(44),s=n(351),l=n(279),u=n(1518),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="'+l.CONTAINER_CLASS+'"></div>',crosshairTpl:'<div class="'+l.CROSSHAIR_LINE+'"></div>',textTpl:'<span class="'+l.CROSSHAIR_TEXT+'">{content}</span>',domStyles:null,containerClassName:l.CONTAINER_CLASS,defaultStyles:u.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(l.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(l.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(434);n.d(e,"Base",(function(){return r.default}));var i=n(1061);n.d(e,"Circle",(function(){return i.default}));var o=n(1062);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,l,u=this.getLineType(),c=this.get("closed"),h=[];if(t.length)if("circle"===u){var d=this.get("center"),f=t[0],p=(n=d.x,r=d.y,o=f.x,a=f.y,s=o-n,l=a-r,Math.sqrt(s*s+l*l)),g=e?0:1;c?(h.push(["M",d.x,d.y-p]),h.push(["A",p,p,0,0,g,d.x,d.y+p]),h.push(["A",p,p,0,0,g,d.x,d.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(434).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(434).default);e.default=o},function(t,e,n){"use strict";n.r(e);var r=n(1064);n.d(e,"Category",(function(){return r.default}));var i=n(1065);n.d(e,"Continuous",(function(){return i.default}));var o=n(435);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(231),a=n(118),s=n(408),l=n(51),u=n(435),c={marker:{style:{inactiveFill:"#000",inactiveOpacity:.45,fill:"#000",opacity:1,size:12}},text:{style:{fill:"#ccc",fontSize:12}}},h={fill:l.default.textColor,fontSize:12,textAlign:"start",textBaseline:"middle",fontFamily:l.default.fontFamily,fontWeight:"normal",lineHeight:12},d={right:90*Math.PI/180,left:270*Math.PI/180,up:0,down:180*Math.PI/180},f=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:l.default.textColor,fontSize:12,textAlign:"start",textBaseline:"top"}},background:{padding:5,style:{stroke:l.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:l.default.uncheckedColor},markerStyle:{fill:l.default.uncheckedColor,stroke:l.default.uncheckedColor}},inactive:{nameStyle:{fill:l.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"),l=this.get("itemMarginBottom"),u=this.get("currentPoint"),c=u.x,h=u.y,d=this.get("layout"),f=this.get("items"),p=!1,g=0,v=this.get("maxWidth"),m=this.get("maxHeight");Object(i.each)(f,(function(t,n){var i=e.drawItem(t,n,o,r),f=i.getBBox(),y=a||f.width;y>g&&(g=y),"horizontal"===d?(v&&v<u.x+y-c&&(p=!0,u.x=c,u.y+=o+l),e.moveElementTo(i,u),u.x+=y+s):(m&&m<u.y+o+l-h&&(p=!0,u.x+=g+s,u.y=h,g=0),e.moveElementTo(i,u),u.y+=o+l)})),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}),l=s.getBBox();s.attr("x",l.width/2);var u=s.attr(),c=u.stroke,h=u.fill;return c&&s.set("isStroke",!0),h&&s.set("isFill",!0),s},e.prototype.drawItemText=function(t,e,n,o,a,s,l){var u=n.formatter,c=n.style,d=Object(r.__assign)(Object(r.__assign)({x:s,y:a/2,text:u?u(o[e],o,l):o[e]},h),Object(i.isFunction)(c)?c(o,l,this.getItems()):c);return this.addShape(t,{type:"text",id:this.getElementId("item-"+o.id+"-"+e),name:"legend-item-"+e,attrs:d})},e.prototype.drawRadio=function(t,e,n,i,o){var a,s,l=e.style||{},u=null!==(a=l.r)&&void 0!==a?a:i/2,c=3.6*u/8,h=[o+u,i/2-u],d=h[0],f=h[1],p=[d+u,f+u],g=p[0],v=p[1],m=[d,v+u],y=m[0],b=m[1],_=[o,f+u],x=_[0],w=_[1],O=n.showRadio,S=Object(r.__assign)(Object(r.__assign)({path:[["M",d,f],["A",u,u,0,0,1,g,v],["L",g-c,v],["L",g,v],["A",u,u,0,0,1,y,b],["L",y,b-c],["L",y,b],["A",u,u,0,0,1,x,w],["L",x+c,w],["L",x,w],["A",u,u,0,0,1,d,f],["L",d,f+c]],stroke:"#000000",fill:"#ffffff"},l),{opacity:O?null!==(s=null==l?void 0:l.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,l=this.addGroup(a,{name:"legend-item-container",id:this.getElementId("item-container-"+s),delegateObject:{item:t,index:e}}),u=this.addGroup(l,{name:"legend-item",id:this.getElementId(s),delegateObject:{item:t,index:e}}),c=this.get("marker"),h=this.get("itemName"),d=this.get("itemValue"),f=this.get("itemBackground"),p=this.get("radio"),g=this.getLimitItemWidth(),v=0;if(c){var m=this.drawMarker(u,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(u,"name",h,t,n,v,e);g&&Object(o.ellipsisLabel)(!0,_,Object(i.clamp)(g-v,0,g)),v=_.getBBox().maxX+h.spacing}if(d){var x=this.drawItemText(u,"value",d,t,n,v,e);g&&(d.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+d.spacing}if(p&&this.drawRadio(u,p,t,n,v),f){var w=u.getBBox();this.addShape(u,{type:"rect",name:"legend-item-background",id:this.getElementId(s+"-background"),attrs:Object(r.__assign)({x:0,y:0,width:w.width,height:n},f.style)}).toBack()}return this.applyItemStates(t,u),u},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")})),l=this.get("maxWidth"),u=this.get("maxHeight"),h=this.get("itemWidth"),d=this.get("itemSpacing"),f=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=f+(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+d||l<m.x+i+d+v.width)&&(1===y&&(b=m.x+d,n.pageWidth=b,n.moveElementTo(g,{x:l-d-v.width-v.minX,y:m.y+f/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+d,height:f}}),m.x+=i+d}))}else{Object(i.each)(s,(function(t){var e=t.getBBox();e.width>_&&(_=e.width)})),x=_,_+=d,l&&(_=Math.min(l,_),x=Math.min(l,x)),this.pageWidth=_,this.pageHeight=u-Math.max(v.height,f+w);var C=Math.floor(this.pageHeight/(f+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:f}}),m.y+=f+w})),this.totalPagesCnt=y,this.moveElementTo(g,{x:r+x/2-v.width/2-v.minX,y:u-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"}),l=Object(i.get)(o.marker,"style",{}),u=l.size,c=void 0===u?12:u,h=Object(r.__rest)(l,["size"]),d=this.drawArrow(s,a,"navigation-arrow-left","horizontal"===e?"up":"left",c,h);d.on("click",this.onNavigationBack);var f=d.getBBox();a.x+=f.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,l=t?t.getChildren()[1]:this.getElementByLocalId("navigation-text"),u=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");l.attr("text",s),u.attr("opacity",1===this.currentPageIndex?a:r),u.attr("fill",1===this.currentPageIndex?o:n),u.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 d=u.getBBox().maxX+2;l.attr("x",d),d+=l.getBBox().width+2,this.updateArrowPath(h,{x:d,y:0})},e.prototype.drawArrow=function(t,e,n,i,o,s){var l=e.x,u=e.y,c=this.addShape(t,{type:"path",id:this.getElementId(n),name:n,attrs:Object(r.__assign)({size:o,direction:i,path:[["M",l+o/2,u],["L",l,u+o],["L",l+o,u+o],["Z"]],cursor:"pointer"},s)});return c.attr("matrix",Object(a.getMatrixByAngle)({x:l+o/2,y:u+o/2},d[i])),c},e.prototype.updateArrowPath=function(t,e){var n=e.x,r=e.y,i=t.attr(),o=i.size,s=i.direction,l=Object(a.getMatrixByAngle)({x:n+o/2,y:r+o/2},d[s]);t.attr("path",[["M",n+o/2,r],["L",n,r+o],["L",n+o,r+o],["Z"]]),t.attr("matrix",l)},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}(u.default);e.default=f},function(t,e,n){"use strict";n.r(e);var r=n(2),i=n(1),o=n(51),a=n(44),s=n(435),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),{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(),l=i-r;l<0?o[0]+l>s.min?e.setValue([o[0]+l,o[1]+l]):e.setValue([s.min,s.min+a]):l>0&&(l>0&&o[1]+l<s.max?e.setValue([o[0]+l,o[1]+l]):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,l=this.get(t),u=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(l):l},o),u)})},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,l=this.isVertical(),u=n,c=r;u||(u=l?o:a),c||(c=l?a:o);var h=[];return"color"===s?(h.push(["M",t,e]),h.push(["L",t+u,e]),h.push(["L",t+u,e+c]),h.push(["L",t,e+c]),h.push(["Z"])):(h.push(["M",t+u,e]),h.push(["L",t+u,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],l=this.getRailBBox(t),u=this.getPointByValue(a,t),c=this.getPointByValue(s,t);return this.isVertical()?(e=l.minX,n=u.y,r=l.width,i=c.y-u.y):(e=u.x,n=l.minY,r=c.x-u.x,i=l.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(),l=this.isVertical(),u=this.get("step");n=l?(e-s.minY)/s.height:(t-s.minX)/s.width;var c=Object(a.getValueByPercent)(i,o,n);u&&(c=i+Math.round((c-i)/u)*u);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,l=i/2,u=i/6;if(n){var c=o+.4*s;r.push(["M",o,a]),r.push(["L",c,a+l]),r.push(["L",o+s,a+l]),r.push(["L",o+s,a-l]),r.push(["L",c,a-l]),r.push(["Z"]),r.push(["M",c,a+u]),r.push(["L",o+s-2,a+u]),r.push(["M",c,a-u]),r.push(["L",o+s-2,a-u])}else{var h=a+.4*s;r.push(["M",o,a]),r.push(["L",o-l,h]),r.push(["L",o-l,a+s]),r.push(["L",o+l,a+s]),r.push(["L",o+l,h]),r.push(["Z"]),r.push(["M",o-u,h]),r.push(["L",o-u,a+s-2]),r.push(["M",o+u,h]),r.push(["L",o+u,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),l=t.findById(s),u=this.isVertical();l?l.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:u?"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,l=a.spacing,u=this.get("max"+Object(i.upperFirst)(o));if(u){var c=("rail"===s?n[o]+t[o]+e[o]+2*l:n[o])-u;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(),l=t.getBBox(),u=e.getBBox(),c=s.height;this.fitRailLength(l,u,s,n),s=n.getBBox(),"rail"===o?(t.attr({x:r.x,y:r.y+c/2}),this.changeRailPosition(n,r.x+l.width+a,r.y),e.attr({x:r.x+l.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+l.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(),l=t.getBBox(),u=e.getBBox();if(this.fitRailLength(l,u,s,n),s=n.getBBox(),"rail"===o)t.attr({x:r.x,y:r.y}),this.changeRailPosition(n,r.x,r.y+l.height+a),e.attr({x:r.x,y:r.y+l.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(l.width,u.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=l},function(t,e,n){"use strict";n.r(e);var r=n(1067);n.d(e,"Html",(function(){return r.default}))},function(t,e,n){"use strict";n.r(e);var r=n(2),i=n(230),o=n(84),a=n(1),s=n(351),l=n(44),u=n(123),c=n(1519),h=n(1520);var d=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="'+u.CONTAINER_CLASS+'"><div class="'+u.TITLE_CLASS+'"></div><ul class="'+u.LIST_CLASS+'"></ul></div>',itemTpl:'<li class="'+u.LIST_ITEM_CLASS+'" data-index={index}>\n <span class="'+u.MARKER_CLASS+'" style="background:{color}"></span>\n <span class="'+u.NAME_CLASS+'">{name}</span>:\n <span class="'+u.VALUE_CLASS+'">{value}</span>\n </li>',xCrosshairTpl:'<div class="'+u.CROSSHAIR_X+'"></div>',yCrosshairTpl:'<div class="'+u.CROSSHAIR_Y+'"></div>',title:null,showTitle:!0,region:null,crosshairsRegion:null,containerClassName:u.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,u=this.get("position"),c=this.get("region"),d=this.getContainer(),f=this.getBBox(),p=f.width,g=f.height;c&&(t=Object(l.regionToBBox)(c));var v=Object(h.getAlignPoint)(e,n,r,p,g,u,t);Object(o.modifyCSS)(d,{left:Object(l.toPx)(v.x+a),top:Object(l.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(u.TITLE_CLASS)[0],n=t.getElementsByClassName(u.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(l.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(l.toPx)(r),top:Object(l.toPx)(e.y),height:Object(l.toPx)(e.height)}):Object(o.modifyCSS)(n,{top:Object(l.toPx)(r),left:Object(l.toPx)(e.x),width:Object(l.toPx)(e.width)})},e.prototype.checkCrosshair=function(t){var e=t+"CrosshairDom",n=t+"CrosshairTpl",r="CROSSHAIR_"+t.toUpperCase(),i=u[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),l=Object(r.__assign)(Object(r.__assign)({},t),{color:s}),u=Object(a.substitute)(e,l),c=Object(o.createDom)(u);n.appendChild(c)})),this.applyChildrenStyles(n,this.get("domStyles")))},e.prototype.clearItemDoms=function(){this.get("listDom")&&Object(l.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=d},function(t,e,n){"use strict";n.r(e);var r=n(1069);n.d(e,"Slider",(function(){return r.Slider}))},function(t,e,n){"use strict";n.r(e),n.d(e,"Slider",(function(){return u}));var r=n(2),i=n(1),o=n(88),a=n(1521),s=n(757),l=n(345),u=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,u=e.adjustOffsetRange(s/n);e.updateStartEnd(u),e.updateUI(e.getElementByLocalId("foreground"),e.getElementByLocalId("minText"),e.getElementByLocalId("maxText")),e.prevX=o,e.prevY=a,e.draw(),e.emit(l.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:l.BACKGROUND_STYLE,foregroundStyle:l.FOREGROUND_STYLE,handlerStyle:l.HANDLER_STYLE,textStyle:l.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,u=e.trendCfg,c=void 0===u?{}:u,h=e.minText,d=e.maxText,f=e.backgroundStyle,p=void 0===f?{}:f,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:d,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",l.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,u=r.minText,c=r.maxText,h=r.handlerStyle,d=r.height,f=o*s,p=a*s;this.trend&&(this.trend.update({width:s,height:d}),this.get("updateAutoRender")||this.trend.render()),t.attr("x",f),t.attr("width",p-f);var g=Object(i.get)(h,"width",l.DEFAULT_HANDLER_WIDTH);e.attr("text",u),n.attr("text",c);var v=this._dodgeText([f,p],e,n),m=v[0],y=v[1];this.minHandler&&(this.minHandler.update({x:f-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,u=a.width,c=Object(i.get)(s,"width",l.DEFAULT_HANDLER_WIDTH),h=t[0],d=t[1],f=!1;h>d&&(h=(r=[d,h])[0],d=r[1],e=(o=[n,e])[0],n=o[1],f=!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>u-d-2?{x:d-c/2-2,textAlign:"right"}:{x:d+c/2+2,textAlign:"left"};return f?[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=u},function(t,e,n){"use strict";n.r(e);var r=n(1071);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 l}));var r=n(2),i=n(84),o=n(1),a=n(88),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)"}},l=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,l=r?a:s,u=l-e.startPos;e.startPos=l,e.updateThumbOffset(i+u)},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(),l=t.clientX,u=t.clientY,c=r?l-s.left-i-a/2:u-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,l=a.lineCap,u=a.trackColor,c=a.size,h=Object(o.get)(this.cfg,"size",c),d=this.get("isHorizontal")?{x1:0+h/2,y1:h/2,x2:n-h/2,y2:h/2,lineWidth:h,stroke:u,lineCap:l}:{x1:h/2,y1:0+h/2,x2:h/2,y2:n-h/2,lineWidth:h,stroke:u,lineCap:l};return this.addShape(t,{id:this.getElementId("track"),name:"track",type:"line",attrs:d})},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,l=a.size,u=a.lineCap,c=a.thumbColor,h=Object(o.get)(this.cfg,"size",l),d=this.get("isHorizontal")?{x1:n+h/2,y1:h/2,x2:n+r-h/2,y2:h/2,lineWidth:h,stroke:c,lineCap:u,cursor:"default"}:{x1:h/2,y1:n+h/2,x2:h/2,y2:n+r-h/2,lineWidth:h,stroke:c,lineCap:u,cursor:"default"};return this.addShape(t,{id:this.getElementId("thumb"),name:"thumb",type:"line",attrs:d})},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(695),a=n(1525);function s(t){var e=t.styleSheet,n=void 0===e?{}:e,s=Object(r.__rest)(t,["styleSheet"]),l=Object(a.createLightStyleSheet)(n);return Object(i.deepMix)({},Object(o.createThemeByStyleSheet)(l),s)}},function(t,e,n){"use strict";n.r(e);var r=n(2),i=n(132),o=n(56),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,l=a.y,u=a.r,c=i/2,h=Object(o.distance)(s,l,t,e);return r&&n?h<=u+c:r?h<=u:!!n&&(h>=u-c&&h<=u+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,l=a.x,u=a.y,c=a.rx,h=a.ry,d=(t-l)*(t-l),f=(e-u)*(e-u);return r&&n?i(d,f,c+s,h+s)<=1:r?i(d,f,c,h)<=1:!!n&&(i(d,f,c-s,h-s)>=1&&i(d,f,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,l=i>o?o/i:1;t.save(),t.translate(n,r),t.scale(s,l),t.arc(0,0,a,0,2*Math.PI),t.restore(),t.closePath()}},e}(n(132).default);e.default=o},function(t,e,n){"use strict";n.r(e);var r=n(2),i=n(132),o=n(56);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,l=e.sx,u=e.sy,c=e.swidth,h=e.sheight,d=e.img;(d instanceof Image||a(d))&&(Object(o.isNil)(l)||Object(o.isNil)(u)||Object(o.isNil)(c)||Object(o.isNil)(h)?t.drawImage(d,n,r,i,s):t.drawImage(d,l,u,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(95),o=n(132),a=n(257),s=n(176),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),{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,l=o.y1,u=o.x2,c=o.y2;return Object(a.default)(s,l,u,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,l=e.endArrow,u={dx:0,dy:0},c={dx:0,dy:0};a&&a.d&&(u=s.getShortenOffset(n,r,i,o,e.startArrow.d)),l&&l.d&&(c=s.getShortenOffset(n,r,i,o,e.endArrow.d)),t.beginPath(),t.moveTo(n+u.dx,r+u.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=l},function(t,e,n){"use strict";n.r(e);var r=n(2),i=n(1),o=n(193),a=n(132),s=n(56),l=n(136),u={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,l=r.symbol||"circle",u=this._getR(r);if(Object(s.isFunction)(l))n=(t=l)(i,a,u),n=Object(o.path2Absolute)(n);else{if(!(t=e.Symbols[l]))return console.warn(l+" marker is not supported."),null;n=t(i,a,u)}return n},e.prototype.createPath=function(t){var e=this._getPath(),n=this.get("paramsCache");Object(l.drawPath)(this,t,{path:e},n)},e.Symbols=u,e}(a.default);e.default=c},function(t,e,n){"use strict";n.r(e);var r=n(2),i=n(95),o=n(1),a=n(132),s=n(193),l=n(136),u=n(701),c=n(702),h=n(568),d=n(176);function f(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();d.addStartArrow(this,t,r[0][0],r[0][1],r[1][0],r[1][1])}if(n){r=this.getEndTangent();d.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 l=this.getTotalLength();s=h.default.isPointInStroke(o,i,t,e,l)}if(!s&&r)if(a)s=Object(u.default)(this,t,e);else{var c=this.attr("path"),d=h.default.extractPolygons(c);s=f(d.polygons,t,e)||f(d.polylines,t,e)}return s},e.prototype.createPath=function(t){var e=this.attr(),n=this.get("paramsCache");Object(l.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 l=s.length,u=a[n+1];return i.Cubic.pointAt(s[l-2],s[l-1],u[1],u[2],u[3],u[4],u[5],u[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,l=[],u=this.get("curve");u&&(Object(o.each)(u,(function(t,e){n=u[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)(u,(function(o,c){n=u[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,l.push(t))})),this.set("tCache",l)):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(132),o=n(703),a=n(702),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,l=!1;return n&&(l=Object(o.default)(s,i,t,e,!0)),!l&&r&&(l=Object(a.default)(s,t,e)),l},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(95),o=n(1),a=n(132),s=n(703),l=n(176),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),{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],c=n[o-1][1];r&&l.addStartArrow(this,t,n[1][0],n[1][1],a,s),i&&l.addEndArrow(this,t,n[o-2][0],n[o-2][1],u,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],u=n[0][1],c=n[o-1][0],h=n[o-1][1];if(r&&r.d)s+=(a=l.getShortenOffset(s,u,n[1][0],n[1][1],r.d)).dx,u+=a.dy;if(i&&i.d)c-=(a=l.getShortenOffset(n[o-2][0],n[o-2][1],c,h,i.d)).dx,h-=a.dy;t.beginPath(),t.moveTo(s,u);for(var d=0;d<o-1;d++){var f=n[d];t.lineTo(f[0],f[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,l){t[l+1]&&((n=[])[0]=a/e,r=i.Line.length(o[0],o[1],t[l+1][0],t[l+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=u},function(t,e,n){"use strict";n.r(e);var r=n(2),i=n(132),o=n(700),a=n(56),s=n(1535),l=n(1536),u=n(701),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,d=o.width,f=o.height,p=o.radius;if(p){var g=!1;return n&&(g=Object(l.default)(c,h,d,f,p,i,t,e)),!g&&r&&(g=Object(u.default)(this,t,e)),g}var v=i/2;return r&&n?Object(a.inBox)(c-v,h-v,d+v,f+v,t,e):r?Object(a.inBox)(c,h,d,f,t,e):n?Object(s.default)(c,h,d,f,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 l=Object(o.parseRadius)(s),u=l[0],c=l[1],h=l[2],d=l[3];t.moveTo(n+u,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+d,r+a),0!==d&&t.arc(n+d,r+a-d,d,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}(i.default);e.default=c},function(t,e,n){"use strict";n.r(e);var r=n(2),i=n(132),o=n(56),a=n(79),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,l=i.x,u=i.y,c=1*i.fontSize,h=this._getSpaceingY(),d=Object(a.getTextHeight)(i.text,i.fontSize,i.lineHeight);Object(o.each)(e,(function(e,i){r=u+i*(h+c)-d+c,"middle"===s&&(r+=d-c-(d-c)/2),"top"===s&&(r+=d-c),Object(o.isNil)(e)||(n?t.fillText(e,l,r):t.strokeText(e,l,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(79),o=n(1537),a=n(270),s=n(438),l=n(56),u=n(136),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(l.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(u.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(u.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(l.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(u.applyAttrsToContext)(t,this),Object(u.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(u.applyAttrsToContext)(t,this),Object(u.checkRefresh)(this,n,r),Object(u.drawChildren)(t,n,r),t.restore()):e.length&&Object(u.clearChanged)(e),Object(l.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(l.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(58),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(124).default);e.default=a},function(t,e,n){"use strict";n.r(e);var r=n(2),i=n(1),o=n(58),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,l=s.length-1;l>=0;l--)r.removeChild(s[l]);r.appendChild(a)}else r.innerHTML=a}else r.innerHTML=n.html},e}(n(124).default);e.default=a},function(t,e,n){"use strict";n.r(e);var r=n(2),i=n(1),o=n(58),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(124).default);e.default=a},function(t,e,n){"use strict";n.r(e);var r=n(2),i=n(1),o=n(58),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(124).default);e.default=a},function(t,e,n){"use strict";n.r(e);var r=n(2),i=n(95),o=n(1),a=n(58),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(124).default);e.default=s},function(t,e,n){"use strict";n.r(e);var r=n(2),i=n(1),o=n(124),a=n(859),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(58),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 l=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(#"+l+")")}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(124).default);e.default=a},function(t,e,n){"use strict";n.r(e);var r=n(2),i=n(1),o=n(58),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(124).default);e.default=a},function(t,e,n){"use strict";n.r(e);var r=n(2),i=n(95),o=n(1),a=n(58),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,l){t[l+1]&&((n=[])[0]=a/e,r=i.Line.length(o[0],o[1],t[l+1][0],t[l+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(124).default);e.default=s},function(t,e,n){"use strict";n.r(e);var r=n(2),i=n(1),o=n(124),a=n(58),s=n(1539),l=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,l=["x","y","width","height","radius"];Object(i.each)(e||r,(function(t,e){-1===l.indexOf(e)||s?-1===l.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 l=Object(s.parseRadius)(a);return Object(i.isArray)(a)?1===a.length?l.r1=l.r2=l.r3=l.r4=a[0]:2===a.length?(l.r1=l.r3=a[0],l.r2=l.r4=a[1]):3===a.length?(l.r1=a[0],l.r2=l.r4=a[1],l.r3=a[2]):(l.r1=a[0],l.r2=a[1],l.r3=a[2],l.r4=a[3]):l.r1=l.r2=l.r3=l.r4=a,[["M "+(e+l.r1)+","+n],["l "+(r-l.r1-l.r2)+",0"],["a "+l.r2+","+l.r2+",0,0,1,"+l.r2+","+l.r2],["l 0,"+(o-l.r2-l.r3)],["a "+l.r3+","+l.r3+",0,0,1,"+-l.r3+","+l.r3],["l "+(l.r3+l.r4-r)+",0"],["a "+l.r4+","+l.r4+",0,0,1,"+-l.r4+","+-l.r4],["l 0,"+(l.r4+l.r1-o)],["a "+l.r1+","+l.r1+",0,0,1,"+l.r1+","+-l.r1],["z"]].join(" ")},e}(o.default);e.default=l},function(t,e,n){"use strict";n.r(e);var r=n(2),i=n(1),o=n(690),a=n(188),s=n(58),l=n(124),u={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"},d=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",u[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"),l=s.length-1,u="";Object(i.each)(s,(function(t,e){0===e?"alphabetic"===a?u+='<tspan x="'+r+'" dy="'+-l+'em">'+t+"</tspan>":"top"===a?u+='<tspan x="'+r+'" dy="0.9em">'+t+"</tspan>":"middle"===a?u+='<tspan x="'+r+'" dy="'+-(l-1)/2+'em">'+t+"</tspan>":"bottom"===a?u+='<tspan x="'+r+'" dy="-'+(l+.3)+'em">'+t+"</tspan>":"hanging"===a&&(u+='<tspan x="'+r+'" dy="'+(-(l-1)-.3)+'em">'+t+"</tspan>"):u+='<tspan x="'+r+'" dy="1em">'+t+"</tspan>"})),e.innerHTML=u}else e.innerHTML=t;else e.innerHTML=""},e}(l.default);e.default=d},function(t,e,n){"use strict";n.r(e);var r=n(2),i=n(79),o=n(58),a=n(399),s=n(188),l=n(112),u=n(353),c=n(439),h=n(1540),d=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 u},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(l.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(l.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=d},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,l,u=[],c=!!i;if(c){s=[1/0,1/0],l=[-1/0,-1/0];for(var h=0,d=t.length;h<d;h++){var f=t[h];s=r.vec2.min([0,0],s,f),l=r.vec2.max([0,0],l,f)}s=r.vec2.min([0,0],s,i[0]),l=r.vec2.max([0,0],l,i[1])}h=0;for(var p=t.length;h<p;h++){f=t[h];if(n)o=t[h?h-1:p-1],a=t[(h+1)%p];else{if(0===h||h===p-1){u.push(f);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(f,o),m=r.vec2.distance(f,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],f,b),w=r.vec2.add([0,0],f,_);c&&(x=r.vec2.max([0,0],x,s),x=r.vec2.min([0,0],x,l),w=r.vec2.max([0,0],w,s),w=r.vec2.min([0,0],w,l)),u.push(x),u.push(w)}return n&&u.push(u.shift()),u};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 l,u,c,h=o(i,.4,r,n),d=i.length,f=[];for(a=0;a<d-1;a++)l=h[2*a],u=h[2*a+1],c=i[a+1],f.push(["C",l[0],l[1],u[0],u[1],c[0],c[1]]);return r&&(l=h[d],u=h[d+1],c=i[0],f.push(["C",l[0],l[1],u[0],u[1],c[0],c[1]])),f}function s(t,e,n){var r=[],o=t[0],s=null;if(t.length<=2)return i(t,e);for(var l=0,u=t.length;l<u;l++){var c=t[l];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(1621),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,l=e.fontStyle,u=e.fontVariant,c=Object(o.getCanvasContext)();return c.font=[l,s,u,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(1109);for(var i in r)["default"].indexOf(i)<0&&function(t){n.d(e,t,(function(){return r[t]}))}(i);var o=n(1110);for(var i in o)["default"].indexOf(i)<0&&function(t){n.d(e,t,(function(){return o[t]}))}(i);var a=n(1111);for(var i in a)["default"].indexOf(i)<0&&function(t){n.d(e,t,(function(){return a[t]}))}(i);var s=n(1112);for(var i in s)["default"].indexOf(i)<0&&function(t){n.d(e,t,(function(){return s[t]}))}(i);var l=n(1113);for(var i in l)["default"].indexOf(i)<0&&function(t){n.d(e,t,(function(){return l[t]}))}(i);var u=n(1114);for(var i in u)["default"].indexOf(i)<0&&function(t){n.d(e,t,(function(){return u[t]}))}(i);var c=n(1115);for(var i in c)["default"].indexOf(i)<0&&function(t){n.d(e,t,(function(){return c[t]}))}(i);var h=n(1116);for(var i in h)["default"].indexOf(i)<0&&function(t){n.d(e,t,(function(){return h[t]}))}(i);var d=n(1117);for(var i in d)["default"].indexOf(i)<0&&function(t){n.d(e,t,(function(){return d[t]}))}(i);var f=n(1118);for(var i in f)["default"].indexOf(i)<0&&function(t){n.d(e,t,(function(){return f[t]}))}(i);var p=n(1119);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(125),o=n(4),a=n(102);function s(t){var e=t.options,n=e.area,s=e.xField,l=e.yField,u=e.seriesField,c=e.smooth,h=e.tooltip,d=e.useDeferredLabel,f=Object(i.getTooltipMapping)(h,[s,l,u]),p=f.fields,g=f.formatter;return n?Object(a.geometry)(Object(o.deepAssign)({},t,{options:{type:"area",colorField:u,tooltipFields:p,mapping:Object(r.__assign)({shape:c?"smooth":"area",tooltip:g},n),args:{useDeferredLabel:d}}})):t}},function(t,e,n){"use strict";n.r(e),n.d(e,"line",(function(){return s}));var r=n(1),i=n(125),o=n(4),a=n(102);function s(t){var e=t.options,n=e.line,s=e.stepType,l=e.xField,u=e.yField,c=e.seriesField,h=e.smooth,d=e.connectNulls,f=e.tooltip,p=e.useDeferredLabel,g=Object(i.getTooltipMapping)(f,[l,u,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:d,useDeferredLabel:p}}})):t}},function(t,e,n){"use strict";n.r(e),n.d(e,"interval",(function(){return u}));var r=n(2),i=n(15),o=n(1),a=n(4),s=n(125),l=n(102);function u(t){var e=t.options,n=e.xField,u=e.yField,c=e.interval,h=e.seriesField,d=e.tooltip,f=e.minColumnWidth,p=e.maxColumnWidth,g=e.columnBackground,v=e.dodgePadding,m=e.intervalPadding,y=e.useDeferredLabel,b=Object(s.getTooltipMapping)(d,[n,u,h]),_=b.fields,x=b.formatter,w=(c?Object(l.geometry)(Object(a.deepAssign)({},t,{options:{type:"interval",colorField:h,tooltipFields:_,mapping:Object(r.__assign)({tooltip:x},c),args:{dodgePadding:v,intervalPadding:m,minColumnWidth:f,maxColumnWidth:p,background:g,useDeferredLabel:y}}})):t).ext;return function(t){var e=t.chart,n=t.options,r=t.ext,s=n.seriesField,l=n.isGroup,u=n.isStack,c=n.marginRatio,h=n.widthRatio,d=n.groupField,f=n.theme,p=[];return s&&(l&&p.push({type:"dodge",dodgeBy:d||s,marginRatio:c}),u&&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)(f)?f:Object(i.getTheme)(f),{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(125),o=n(4),a=n(102);function s(t){var e=t.options,n=e.edge,s=e.xField,l=e.yField,u=e.seriesField,c=e.tooltip,h=e.useDeferredLabel,d=Object(i.getTooltipMapping)(c,[s,l,u]),f=d.fields,p=d.formatter;return n?Object(a.geometry)(Object(o.deepAssign)({},t,{options:{type:"edge",colorField:u,tooltipFields:f,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(125),o=n(4),a=n(102);function s(t){var e=t.options,n=e.schema,s=e.xField,l=e.yField,u=e.seriesField,c=e.tooltip,h=e.useDeferredLabel,d=Object(i.getTooltipMapping)(c,[s,l,u]),f=d.fields,p=d.formatter;return n?Object(a.geometry)(Object(o.deepAssign)({},t,{options:{type:"schema",colorField:u,tooltipFields:f,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(125),o=n(4),a=n(102);function s(t){var e=t.options,n=e.violin,s=e.xField,l=e.yField,u=e.seriesField,c=e.sizeField,h=e.tooltip,d=Object(i.getTooltipMapping)(h,[s,l,u,c]),f=d.fields,p=d.formatter;return n?Object(a.geometry)(Object(o.deepAssign)({},t,{options:{type:"violin",colorField:u,tooltipFields:f,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(1639),a=n(1640),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 l}));var r=n(2),i=n(26),o=n(1641),a=n(553),s=n(552),l=(n(1907),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(15);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(4),a=n(1643),s=(n(1909),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(4),a=n(1645),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(1650),a=n(1651),s=(n(1910),n(1911),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 l}));var r=n(2),i=n(26),o=n(1652),a=n(717),s=n(261),l=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 l}));var r=n(2),i=n(26),o=n(1653),a=n(94),s=n(718),l=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(1655),a=n(177),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 l}));var r=n(2),i=n(26),o=n(873),a=n(724),s=n(1663),l=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 l}));var r=n(2),i=n(26),o=n(197),a=n(1664),s=n(219),l=(n(1916),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,l=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?l+=t(e,s):0,e.y=0,s=e)}));var u=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=u.x-t(u,c)/2,d=c.x+t(c,u)/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)/(d-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(402),i=n(306),o={depth:-1},a={};function s(t){return t.id}function l(t){return t.parentId}e.default=function(){var t=s,e=l;function n(n){var r,s,l,u,c,h,d,f=Array.from(n),p=f.length,g=new Map;for(s=0;s<p;++s)r=f[s],c=f[s]=new i.Node(r),null!=(h=t(r,s,n))&&(h+="")&&(d=c.id=h,g.set(d,g.has(d)?a:c)),null!=(h=e(r,s,n))&&(h+="")&&(c.parent=h);for(s=0;s<p;++s)if(h=(c=f[s]).parent){if(!(u=g.get(h)))throw new Error("missing: "+h);if(u===a)throw new Error("ambiguous: "+h);u.children?u.children.push(c):u.children=[c],c.parent=u}else{if(l)throw new Error("multiple roots");l=c}if(!l)throw new Error("no root");if(l.parent=o,l.eachBefore((function(t){t.depth=t.parent.depth+1,--p})).eachBefore(i.computeHeight),l.parent=null,p>0)throw new Error("cycle");return l}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(306);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 l(t,e,n){return t.a.parent===e.parent?t.a:n}function u(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}u.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 u(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 u(r[i],i)),n.parent=e;return(a.parent=new u(null,0)).children=[a],a}(i);if(o.eachAfter(h),o.parent.m=-o.z,o.eachBefore(d),r)i.eachBefore(f);else{var a=i,s=i,l=i;i.eachBefore((function(t){t.x<a.x&&(a=t),t.x>s.x&&(s=t),t.depth>l.depth&&(l=t)}));var c=a===s?1:t(a,s)/2,p=c-a.x,g=e/(s.x+c+p),v=n/(l.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 u=(n[0].z+n[n.length-1].z)/2;i?(e.z=i.z+t(e._,i._),e.m=e.z-u):e.z=u}else i&&(e.z=i.z+t(e._,i._));e.parent.A=function(e,n,r){if(n){for(var i,u=e,c=e,h=n,d=u.parent.children[0],f=u.m,p=c.m,g=h.m,v=d.m;h=a(h),u=o(u),h&&u;)d=o(d),(c=a(c)).a=e,(i=h.z+g-u.z-f+t(h._,u._))>0&&(s(l(h,e,r),e,i),f+=i,p+=i),g+=h.m,f+=u.m,v+=d.m,p+=c.m;h&&!a(c)&&(c.t=h,c.m+=g-p),u&&!o(d)&&(d.t=u,d.m+=f-v,r=e)}return r}(e,i,e.parent.A||r[0])}function d(t){t._.x=t.z+t.parent.m,t.m+=t.parent.m}function f(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,l=s.length,u=new Array(l+1);for(u[0]=a=o=0;o<l;++o)u[o+1]=a+=s[o].value;!function t(e,n,r,i,o,a,l){if(e>=n-1){var c=s[e];return c.x0=i,c.y0=o,c.x1=a,void(c.y1=l)}var h=u[e],d=r/2+h,f=e+1,p=n-1;for(;f<p;){var g=f+p>>>1;u[g]<d?f=g+1:p=g}d-u[f-1]<u[f]-d&&e+1<f&&--f;var v=u[f]-h,m=r-v;if(a-i>l-o){var y=r?(i*m+a*v)/r:a;t(e,f,v,i,o,y,l),t(f,n,m,y,o,a,l)}else{var b=r?(o*m+l*v)/r:l;t(e,f,v,i,o,a,b),t(f,n,m,i,b,a,l)}}(0,l,t.value,e,n,r,i)}},function(t,e,n){"use strict";n.r(e);var r=n(290),i=n(355);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(290),i=n(355),o=n(393);e.default=function t(e){function n(t,n,a,s,l){if((u=t._squarify)&&u.ratio===e)for(var u,c,h,d,f,p=-1,g=u.length,v=t.value;++p<g;){for(h=(c=u[p]).children,d=c.value=0,f=h.length;d<f;++d)c.value+=h[d].value;c.dice?Object(r.default)(c,n,a,s,v?a+=(l-a)*c.value/v:l):Object(i.default)(c,n,a,v?n+=(s-n)*c.value/v:s,l),v-=c.value}else t._squarify=u=Object(o.squarifyRatio)(e,t,n,a,s,l),u.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 l}));var r=n(2),i=n(26),o=n(1679),a=n(122),s=n(728),l=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(875),a=n(1680),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(15),o=n(26),a=n(4),s=n(1681),l=n(319),u=n(107),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:l.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(l.transformData)(n,r,u.SERIES_FIELD_KEY,t,Object(l.isHorizontal)(o)),c=s[0],h=s[1],d=Object(a.findViewById)(this.chart,u.FIRST_AXES_VIEW),f=Object(a.findViewById)(this.chart,u.SECOND_AXES_VIEW);d.data(c),f.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=u.SERIES_FIELD_KEY,e}(o.Plot)},function(t,e,n){"use strict";n.r(e),n.d(e,"Treemap",(function(){return l}));var r=n(2),i=n(26),o=n(1682),a=n(1683),s=n(281),l=(n(1920),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(4),s=n(1684),l=n(729),u=n(180),c=(n(1921),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(l.transformToViewsData)(this.options,this.chart.width,this.chart.height),n=e.nodes,r=e.edges,i=Object(a.findViewById)(this.chart,u.NODES_VIEW_ID),o=Object(a.findViewById)(this.chart,u.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(385),i=n(266);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 l(t){return t.value}function u(t){return t.index}function c(t){return t.nodes}function h(t){return t.links}function d(t,e){var n=t.get(e);if(!n)throw new Error("missing: "+e);return n}function f(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 l=0,u=r.targetLinks;l<u.length;l++){var c;(c=u[l]).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=u,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=d(r,n)),"object"!=typeof i&&(i=t.target=d(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,l=a.targetLinks;s.sort(p),l.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,l),Object(i.sumBy)(o.targetLinks,l)):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 l=Math.max(Object(i.maxValueBy)(n,(function(t){return t.depth}))+1,0),u=void 0,c=0;c<n.length;c++)(u=n[c]).depth=e.call(null,u,l)}(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,l=e;s<l.length;s++){var u=l[s],c=Math.max(0,Math.min(r-1,Math.floor(w.call(null,u,r))));u.layer=c,u.x0=g+c*o,u.x1=u.x0+b,a[c]?a[c].push(u):a[c]=[u]}if(n)for(var h=0,d=a;h<d.length;h++){d[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,l)})),r=0,o=e;r<o.length;r++){for(var a=o[r],s=v,u=0,c=a;u<c.length;u++){(g=c[u]).y0=s,g.y1=s+g.value*n,s=g.y1+t;for(var h=0,d=g.sourceLinks;h<d.length;h++){var f=d[h];f.width=f.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);M(r,a,s),T(r,a,s)}}(o),f(o),o}function T(t,e,r){for(var i=1,o=t.length;i<o;++i){for(var a=t[i],l=0,u=a;l<u.length;l++){for(var c=u[l],h=0,d=0,f=0,p=c.targetLinks;f<p.length;f++){var g=p[f],v=g.source,m=g.value*(c.layer-v.layer);h+=L(v,c)*m,d+=m}if(d>0){var y=(h/d-c.y0)*e;c.y0+=y,c.y1+=y,k(c)}}void 0===n&&a.sort(s),a.length&&A(a,r)}}function M(t,e,r){for(var i=t.length-2;i>=0;--i){for(var o=t[i],a=0,l=o;a<l.length;a++){for(var u=l[a],c=0,h=0,d=0,f=u.sourceLinks;d<f.length;d++){var p=f[d],g=p.target,v=p.value*(g.layer-u.layer);c+=D(u,g)*v,h+=v}if(h>0){var m=(c/h-u.y0)*e;u.y0+=m,u.y1+=m,k(u)}}void 0===n&&o.sort(s),o.length&&A(o,r)}}function A(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,l=e;s<l.length;s++){l[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,l=a.width;if(s===n)break;r+=l+t}for(var u=0,c=n.targetLinks;u<c.length;u++){var h=c[u];s=h.source,l=h.width;if(s===e)break;r-=l}return r}function D(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,l=a.width;if(s===e)break;r+=l+t}for(var u=0,c=e.sourceLinks;u<c.length;u++){var h=c[u];s=h.target,l=h.width;if(s===n)break;r-=l}return r}return E.update=function(t){return f(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(1688),a=n(282),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(1690),a=n(730),s=(n(1923),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(4),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(1693),a=n(1695),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(425);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(11),i=n.n(r),o=n(12),a=n.n(o),s=n(30),l=n.n(s),u=n(31),c=n.n(u),h=n(18),d=n.n(h),f=n(301),p=n(1696);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=d()(t);if(e){var i=d()(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return c()(this,n)}}var v=function(t){l()(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}(f.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(1155);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(160),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(223);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(223),i=n(160),o=n(268),a=n(347),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 l=new o.Metadata(i.INJECT_TAG,t);"number"==typeof s?a.tagParameter(e,n,s,l):a.tagProperty(e,n,l)}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Target=void 0;var r=n(160),i=n(382),o=n(268),a=n(1943),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 l=null;"string"==typeof s?l=new o.Metadata(r.NAMED_TAG,s):s instanceof o.Metadata&&(l=s),null!==l&&this.metadata.push(l)}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(799),i=n(800),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(160),i=n(268),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 l})),n.d(e,"create",(function(){return u})),n.d(e,"remove",(function(){return c})),n.d(e,"addClass",(function(){return h})),n.d(e,"removeClass",(function(){return d})),n.d(e,"hasClass",(function(){return f})),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(72),i=n.n(r),o=n(120);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 l(t){return s(t).split(/\s+/)}function u(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=l(e),r=0,i=n.length;r<i;r++)t.classList.add(n[r]);else if(!f(t,e)){var o=g(t);p(t,(o?o+" ":"")+e)}}function d(t,e){void 0!==t.classList?t.classList.remove(e):p(t,s((" "+g(t)+" ").replace(" "+e+" "," ")))}function f(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(1165);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(1166);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(1167);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 M}));var r=n(12),i=n.n(r),o=n(11),a=n.n(o),s=n(8),l=n.n(s),u=n(30),c=n.n(u),h=n(31),d=n.n(h),f=n(18),p=n.n(f),g=n(3),v=n.n(g),m=n(258),y=n(299),b=n(234);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 d()(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()(l()(r),"touches",void 0),v()(l()(r),"targetTouches",void 0),v()(l()(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,l=e.clientY,u=void 0===l?0:l;-1!==Object.keys(t).indexOf("x")?(t.pageX=t.clientX=r,t.pageY=t.clientY=o):(t.x=s,t.y=u)}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"),M=(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 A})),n.d(e,"dispatchPointerMove",(function(){return I})),n.d(e,"dispatchPointerUp",(function(){return j}));var r=n(12),i=n.n(r),o=n(11),a=n.n(o),s=n(8),l=n.n(s),u=n(30),c=n.n(u),h=n(31),d=n.n(h),f=n(18),p=n.n(f),g=n(3),v=n.n(g),m=n(258),y=n(299),b=n(234);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 d()(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()(l()(r),"buttons",void 0),v()(l()(r),"which",void 0),v()(l()(r),"pointerId",void 0),v()(l()(r),"bubbles",void 0),v()(l()(r),"button",void 0),v()(l()(r),"width",void 0),v()(l()(r),"height",void 0),v()(l()(r),"pressure",void 0),v()(l()(r),"isPrimary",void 0),v()(l()(r),"pointerType",void 0),v()(l()(r),"altKey",void 0),v()(l()(r),"ctrlKey",void 0),v()(l()(r),"metaKey",void 0),v()(l()(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 M(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 A=M("pointerdown"),I=M("pointermove"),j=M("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(12),i=n.n(r),o=n(11),a=n.n(o),s=n(30),l=n.n(s),u=n(31),c=n.n(u),h=n(18),d=n.n(h),f=n(258);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=d()(t);if(e){var i=d()(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return c()(this,n)}}!function(t){l()(n,t);var e=p(n);function n(t){return a()(this,n),e.call(this,t)}i()(n)}(n(299).Event);function g(t){return function(e){e.type=t,f.$document.dispatchEvent(e)}}var v=g("mousedown"),m=g("mousemove"),y=g("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 l})),n.d(e,"getColumn",(function(){return u})),n.d(e,"getSatByColumn",(function(){return c}));var l={min:i,max:r,mean:a,sum:o,mode:s};function u(t,e){return t.map((function(t){return t[e]}))}function c(t,e){return l[t](e)}},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(11),i=n.n(r),o=n(12),a=n.n(o),s=n(8),l=n.n(s),u=n(30),c=n.n(u),h=n(31),d=n.n(h),f=n(18),p=n.n(f),g=n(1707),v=n.n(g),m=n(3),y=n.n(m),b=n(120);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 d()(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()(l()(a),"status",void 0),y()(l()(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),r.onload=null},r.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 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 l})),n.d(e,"lngLatToMeters",(function(){return u})),n.d(e,"metersToLngLat",(function(){return c})),n.d(e,"longitude",(function(){return h})),n.d(e,"latitude",(function(){return d})),n.d(e,"validateLngLat",(function(){return f})),n.d(e,"aProjectFlat",(function(){return p})),n.d(e,"unProjectFlat",(function(){return g})),n.d(e,"amap2Project",(function(){return v})),n.d(e,"lnglatDistance",(function(){return m})),n.d(e,"project",(function(){return y})),n.d(e,"padBounds",(function(){return b})),n.d(e,"boundsContains",(function(){return _})),n.d(e,"bBoxToBounds",(function(){return x})),n.d(e,"normalize",(function(){return w})),n.d(e,"calDistance",(function(){return O})),n.d(e,"calAngle",(function(){return C})),n.d(e,"getAngle",(function(){return E})),n.d(e,"flow",(function(){return T}));var r=n(72),i=n.n(r),o=n(377),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 l(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 u(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=f(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 d(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 f(t,e){if(!1===e)return t;var n=h(t[0]),r=d(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){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 m(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]),l=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(l),Math.sqrt(1-l)),"meters")}function y(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 b(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 _(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 x(t){return[[t[0],t[1]],[t[2],t[3]]]}function w(t){var e=O(t,[0,0]);return[t[0]/e,t[1]/e]}function O(t,e){return Math.sqrt(Math.pow(t[0]-e[0],2)+Math.pow(t[1]-e[1],2))}function S(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1])}function C(t,e){return 180*Math.acos(function(t,e){return t[0]*e[0]+t[1]*e[1]}(t,e)/(S(t)*S(e)))/Math.PI}function E(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 T(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=O(o,a);n+=s;var l=[o[0]-a[0],o[1]-a[1]],u=E(0,l);if(i>0){var c=r[i-1].rotation;c-u>360-c+u&&(u+=360)}r.push({start:o,end:a,dis:s,rotation:u,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 u}));var r=n(11),i=n.n(r),o=n(12),a=n.n(o),s=n(3),l=n.n(s),u=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),l()(this,"limit",void 0),l()(this,"cache",void 0),l()(this,"destroy",void 0),l()(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 u})),n.d(e,"FrequencyController",(function(){return c}));var r=n(11),i=n.n(r),o=n(12),a=n.n(o),s=n(3),l=n.n(s);function u(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),l()(this,"duration",16),l()(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 l})),n.d(e,"generateColorRamp",(function(){return u}));var r=n(415),i=n(120);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 l(t){return[t+1&255,t+1>>8&255,t+1>>8>>8&255]}function u(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],l=0;l<t.colors.length;++l){var u=(t.positions[l]-a)/(s-a);r.addColorStop(u,t.colors[l])}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";n.r(e);var r=n(1178);n.d(e,"isURLTemplate",(function(){return r.isURLTemplate})),n.d(e,"getURLFromTemplate",(function(){return r.getURLFromTemplate}));var i=n(167);n.d(e,"UpdateTileStrategy",(function(){return i.UpdateTileStrategy})),n.d(e,"LoadTileDataStatus",(function(){return i.LoadTileDataStatus}));var o=n(647);n.d(e,"Tile",(function(){return o.Tile}));var a=n(1179);n.d(e,"TilesetManager",(function(){return a.TilesetManager}))},function(t,e,n){"use strict";function r(t){return/(?=.*{z})(?=.*{x})(?=.*({y}|{-y}))/.test(t)}function i(t,e){if(!t||!t.length)throw new Error("url is not allowed to be empty");var n=e.x,r=e.y,i=e.z;Array.isArray(t)&&(t=t[Math.abs(n+r)%t.length]);return t.replace(/\{x\}/g,n.toString()).replace(/\{y\}/g,r.toString()).replace(/\{z\}/g,i.toString()).replace(/\{-y\}/g,(Math.pow(2,i)-r-1).toString())}n.r(e),n.d(e,"isURLTemplate",(function(){return r})),n.d(e,"getURLFromTemplate",(function(){return i}))},function(t,e,n){"use strict";n.r(e),n.d(e,"TilesetManager",(function(){return I}));var r=n(72),i=n.n(r),o=n(11),a=n.n(o),s=n(12),l=n.n(s),u=n(8),c=n.n(u),h=n(30),d=n.n(h),f=n(31),p=n.n(f),g=n(18),v=n.n(g),m=n(3),y=n.n(m),b=n(228),_=n.n(b),x=n(411),w=n(647),O=n(167),S=n(561);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}function T(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?T(Object(n),!0).forEach((function(e){y()(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):T(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function A(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=v()(t);if(e){var i=v()(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return p()(this,n)}}var I=function(t){d()(n,t);var e=A(n);function n(t){var r;return a()(this,n),r=e.call(this),y()(c()(r),"currentTiles",[]),y()(c()(r),"options",void 0),y()(c()(r),"cacheTiles",new Map),y()(c()(r),"lastViewStates",void 0),y()(c()(r),"onTileLoad",(function(t){r.emit("tile-loaded",t),r.updateTileVisible()})),y()(c()(r),"onTileError",(function(t,e){r.emit("tile-error",{error:t,tile:e}),r.updateTileVisible()})),y()(c()(r),"onTileUnload",(function(t){r.emit("tile-unload",t)})),r.options={tileSize:256,minZoom:0,maxZoom:1/0,zoomOffset:0,extent:x.DEFAULT_EXTENT,getTileData:x.NOOP,updateStrategy:O.UpdateTileStrategy.Overlap},r.updateOptions(t),r}return l()(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=M(M(M({},this.options),t),{},{minZoom:e,maxZoom:n})}},{key:"update",value:function(t,e){var n=this;if(!this.lastViewStates||this.lastViewStates.zoom!==t||this.lastViewStates.latLonBounds.toString()!==e.toString()){this.lastViewStates={zoom:t,latLonBounds:e};var r=!1,i=this.getTileIndices(t,e);this.currentTiles=i.map((function(t){var e=t.x,i=t.y,o=t.z,a=n.getTile(e,i,o);return a||(a=n.createTile(e,i,o),r=!0,a)})),r&&(this.resizeCacheTiles(),this.rebuildTileTree()),this.updateTileVisible()}}},{key:"reloadAll",value:function(){var t,e=C(this.cacheTiles);try{for(e.s();!(t=e.n()).done;){var n=i()(t.value,2),r=n[0],o=n[1];this.currentTiles.includes(o)||(this.cacheTiles.delete(r),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:"destroy",value:function(){var t,e=C(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=C(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=C(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 l=Array.from(this.cacheTiles.values());"function"==typeof e?e(l):x.UPDATE_TILE_STRATEGIES[e](l),Array.from(this.cacheTiles.values()).some((function(t){return t.isVisible!==n.get(t.key)}))&&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(S.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 w.Tile({x:t,y:e,z:n,tileSize:this.options.tileSize});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=x.DEFAULT_CACHE_SCALE*this.currentTiles.length;if(this.cacheTiles.size>t){var e,n=C(this.cacheTiles);try{for(n.s();!(e=n.n()).done;){var r=i()(e.value,2),o=r[0],a=r[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()}}}},{key:"rebuildTileTree",value:function(){var t,e=C(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=C(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}(_.a)},function(t,e,n){var r=n(588)(n(348),"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(322))},function(t,e,n){var r=n(1983),i=n(1990),o=n(1992),a=n(1993),s=n(1994);function l(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])}}l.prototype.clear=r,l.prototype.delete=i,l.prototype.get=o,l.prototype.has=a,l.prototype.set=s,t.exports=l},function(t,e,n){var r=n(804),i=n(587);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(588),i=function(){try{var t=r(Object,"defineProperty");return t({},"",{}),t}catch(t){}}();t.exports=i},function(t,e,n){var r=n(2005)(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(2006),i=n(422),o=Object.prototype,a=o.hasOwnProperty,s=o.propertyIsEnumerable,l=r(function(){return arguments}())?r:function(t){return i(t)&&a.call(t,"callee")&&!s.call(t,"callee")};t.exports=l},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(348),i=n(2008),o=e&&!e.nodeType&&e,a=o&&"object"==typeof t&&t&&!t.nodeType&&t,s=a&&a.exports===o?r.Buffer:void 0,l=(s?s.isBuffer:void 0)||i;t.exports=l}).call(this,n(591)(t))},function(t,e,n){var r=n(2010),i=n(2011),o=n(2012),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(2016),i=n(2018),o=n(806);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(515),i=n(422);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 l})),n.d(e,"LEFT_SHIFT2",(function(){return u})),n.d(e,"LEFT_SHIFT6",(function(){return c})),n.d(e,"LEFT_SHIFT7",(function(){return h})),n.d(e,"LEFT_SHIFT8",(function(){return d})),n.d(e,"LEFT_SHIFT9",(function(){return f})),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 M})),n.d(e,"packOpacity",(function(){return A}));var r=n(72),i=n.n(r),o=n(884),a=n.n(o),s=n(1744),l=2,u=4,c=64,h=128,d=256,f=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 M(t){var e=t.color,n=t.radius,r=t.tileX,o=t.tileY,a=t.shape,l=t.opacity,u=t.stroke,h=t.strokeWidth,d=t.strokeOpacity,f=[],p=[],g=[],v=[T(e[0],e[1]),T(e[2],e[3])],m=[T(u[0],u[1]),T(u[2],u[3])];return[[-1,-1],[1,-1],[1,1],[-1,1]].forEach((function(t){var e=i()(t,2),u=e[0],b=e[1];f.push([].concat(v,[(u+1)*S+(b+1)*w+Object(s.getShapeIndex)(a)*y+n,(r+512)*_+(o+512)*c])),p.push([].concat(m,[h,d])),g.push([l,0,0,0])})),{packedBuffer:f,packedBuffer2:p,packedBuffer3:g}}function A(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*f+n*d+r*l+n}},function(t,e,n){var r=n(2063),i=n(285),o=n(1197),a=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,l=/^0o[0-7]+$/i,u=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||l.test(t)?u(t.slice(2),n?2:8):a.test(t)?NaN:+t}},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.SEQUENTIAL="sequential",t.POWER="power",t.LOG="log",t.IDENTITY="identity",t.TIME="time",t.QUANTILE="quantile",t.QUANTIZE="quantize",t.THRESHOLD="threshold",t.CAT="cat",t.DIVERGING="diverging"}(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(11),i=n.n(r),o=n(12),a=n.n(o),s=n(30),l=n.n(s),u=n(31),c=n.n(u),h=n(18),d=n.n(h),f=n(301),p=n(1746);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=d()(t);if(e){var i=d()(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return c()(this,n)}}var v=function(t){l()(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}(f.default)},function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return v}));var r=n(11),i=n.n(r),o=n(12),a=n.n(o),s=n(30),l=n.n(s),u=n(31),c=n.n(u),h=n(18),d=n.n(h),f=n(301),p=n(1748);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=d()(t);if(e){var i=d()(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){l()(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}(f.default)},function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return v}));var r=n(11),i=n.n(r),o=n(12),a=n.n(o),s=n(30),l=n.n(s),u=n(31),c=n.n(u),h=n(18),d=n.n(h),f=n(301),p=n(1761);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=d()(t);if(e){var i=d()(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return c()(this,n)}}var v=function(t){l()(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}(f.default)},function(t,e,n){"use strict";n.r(e),n.d(e,"Map",(function(){return j}));var r=n(11),i=n.n(r),o=n(12),a=n.n(o),s=n(8),l=n.n(s),u=n(30),c=n.n(u),h=n(31),d=n.n(h),f=n(18),p=n.n(f),g=n(3),v=n.n(g),m=n(96),y=n.n(m),b=n(17),_=n(742),x=n(93),w=n(337),O=n(65),S=n(743),C=n(1779),E=n(61),T=n(493),M=n(744);function A(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 d()(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 I={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},j=function(t){c()(n,t);var e=A(n);function n(t){var r;if(i()(this,n),r=e.call(this,y()({},I,t)),v()(l()(r),"doubleClickZoom",void 0),v()(l()(r),"dragRotate",void 0),v()(l()(r),"dragPan",void 0),v()(l()(r),"touchZoomRotate",void 0),v()(l()(r),"scrollZoom",void 0),v()(l()(r),"keyboard",void 0),v()(l()(r),"touchPitch",void 0),v()(l()(r),"boxZoom",void 0),v()(l()(r),"handlers",void 0),v()(l()(r),"container",void 0),v()(l()(r),"canvas",void 0),v()(l()(r),"canvasContainer",void 0),v()(l()(r),"renderTaskQueue",new M.default),v()(l()(r),"frame",void 0),v()(l()(r),"trackResize",!0),v()(l()(r),"hash",void 0),v()(l()(r),"onWindowOnline",(function(){r.update()})),v()(l()(r),"onWindowResize",(function(t){r.trackResize&&r.resize({originalEvent:t}).update()})),b.isMini?r.initMiniContainer():r.initContainer(),r.resize(),r.handlers=new S.default(l()(r),r.options),"undefined"!=typeof window&&(window.addEventListener("online",r.onWindowOnline,!1),window.addEventListener("resize",r.onWindowResize,!1),window.addEventListener("orientationchange",r.onWindowResize,!1)),!b.isMini){var o="string"==typeof t.hash&&t.hash||void 0;t.hash&&(r.hash=new C.default(o).addTo(l()(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,y()({},t.fitBoundsOptions,{duration:0})))),r}return a()(n,[{key:"resize",value:function(t){var e=this.containerDimensions(),n=e[0],r=e[1];if(this.transform.resize(n,r),b.isMini)return this;var i=!this.moving;return i&&(this.stop(),this.emit("movestart",new b.$window.Event("movestart",t)),this.emit("move",new b.$window.Event("move",t))),this.emit("resize",new b.$window.Event("resize",t)),i&&this.emit("moveend",new b.$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(x.default.convert(t))}},{key:"unproject",value:function(t){return this.transform.pointLocation(O.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(w.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(E.renderframe)((function(e){T.PerformanceUtils.frame(e),t.frame=null,t.update(e)})))}},{key:"update",value:function(t){var e=this;this.frame||(this.frame=Object(E.renderframe)((function(n){T.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=b.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&&(b.isMini?(t=this.container.width/b.$window.devicePixelRatio,e=this.container.height/b.$window.devicePixelRatio):(t=this.container.clientWidth,e=this.container.clientHeight)),[t,e]}}]),n}(_.default)},function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return x}));var r=n(11),i=n.n(r),o=n(12),a=n.n(o),s=n(8),l=n.n(s),u=n(30),c=n.n(u),h=n(31),d=n.n(h),f=n(18),p=n.n(f),g=n(3),v=n.n(g),m=n(96),y=n.n(m),b=n(128);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 d()(this,n)}}var x=function(t){c()(n,t);var e=_(n);function n(t,r,o){var a,s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};i()(this,n);var u=b.default.mousePos(r.getCanvasContainer(),o),c=r.unproject(u);return a=e.call(this,t,y()({point:u,lngLat:c,originalEvent:o},s)),v()(l()(a),"type",void 0),v()(l()(a),"target",void 0),v()(l()(a),"originalEvent",void 0),v()(l()(a),"point",void 0),v()(l()(a),"lngLat",void 0),v()(l()(a),"defaultPrevented",void 0),a.defaultPrevented=!1,a.target=r,a}return a()(n,[{key:"preventDefault",value:function(){this.defaultPrevented=!0}}]),n}(n(81).Event)},function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return _}));var r=n(11),i=n.n(r),o=n(12),a=n.n(o),s=n(8),l=n.n(s),u=n(30),c=n.n(u),h=n(31),d=n.n(h),f=n(18),p=n.n(f),g=n(3),v=n.n(g),m=n(65),y=n(128);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 d()(this,n)}}var _=function(t){c()(n,t);var e=b(n);function n(t,r,o){var a;i()(this,n);var s="touchend"===t?o.changedTouches:o.touches,u=y.default.touchPos(r.getCanvasContainer(),s),c=u.map((function(t){return r.unproject(t)})),h=u.reduce((function(t,e,n,r){return t.add(e.div(r.length))}),new m.default(0,0)),d=r.unproject(h);return a=e.call(this,t,{points:u,point:h,lngLats:c,lngLat:d,originalEvent:o}),v()(l()(a),"type",void 0),v()(l()(a),"target",void 0),v()(l()(a),"originalEvent",void 0),v()(l()(a),"lngLat",void 0),v()(l()(a),"point",void 0),v()(l()(a),"points",void 0),v()(l()(a),"lngLats",void 0),v()(l()(a),"defaultPrevented",void 0),a.defaultPrevented=!1,a}return a()(n,[{key:"preventDefault",value:function(){this.defaultPrevented=!0}}]),n}(n(81).Event)},function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return y}));var r=n(11),i=n.n(r),o=n(12),a=n.n(o),s=n(8),l=n.n(s),u=n(30),c=n.n(u),h=n(31),d=n.n(h),f=n(18),p=n.n(f),g=n(3),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 d()(this,n)}}var y=function(t){c()(n,t);var e=m(n);function n(t,r,o){var a;return i()(this,n),a=e.call(this,t,{originalEvent:o}),v()(l()(a),"type",void 0),v()(l()(a),"originalEvent",void 0),v()(l()(a),"defaultPrevented",void 0),v()(l()(a),"target",void 0),a.defaultPrevented=!1,a}return a()(n,[{key:"preventDefault",value:function(){this.defaultPrevented=!0}}]),n}(n(81).Event)},function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return y}));var r=n(11),i=n.n(r),o=n(12),a=n.n(o),s=n(184),l=n.n(s),u=n(30),c=n.n(u),h=n(31),d=n.n(h),f=n(18),p=n.n(f),g=n(473),v=n(307);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 d()(this,n)}}var y=function(t){c()(n,t);var e=m(n);function n(){return i()(this,n),e.apply(this,arguments)}return a()(n,[{key:"mousedown",value:function(t,e){l()(p()(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===v.LEFT_BUTTON&&!t.ctrlKey}}]),n}(g.default)},function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return v}));var r=n(11),i=n.n(r),o=n(12),a=n.n(o),s=n(30),l=n.n(s),u=n(31),c=n.n(u),h=n(18),d=n.n(h),f=n(473),p=n(307);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=d()(t);if(e){var i=d()(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return c()(this,n)}}var v=function(t){l()(n,t);var e=g(n);function n(){return i()(this,n),e.apply(this,arguments)}return a()(n,[{key:"correctButton",value:function(t,e){return e===p.LEFT_BUTTON&&t.ctrlKey||e===p.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}(f.default)},function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return v}));var r=n(11),i=n.n(r),o=n(12),a=n.n(o),s=n(30),l=n.n(s),u=n(31),c=n.n(u),h=n(18),d=n.n(h),f=n(473),p=n(307);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=d()(t);if(e){var i=d()(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return c()(this,n)}}var v=function(t){l()(n,t);var e=g(n);function n(){return i()(this,n),e.apply(this,arguments)}return a()(n,[{key:"contextmenu",value:function(t){t.preventDefault()}},{key:"correctButton",value:function(t,e){return e===p.LEFT_BUTTON&&t.ctrlKey||e===p.RIGHT_BUTTON}},{key:"move",value:function(t,e){var n=.8*(e.x-t.x);if(n)return this.active=!0,{bearingDelta:n}}}]),n}(f.default)},function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return h}));var r=n(11),i=n.n(r),o=n(12),a=n.n(o),s=n(3),l=n.n(s),u=n(65),c=n(563),h=function(){function t(e){i()(this,t),l()(this,"enabled",void 0),l()(this,"active",void 0),l()(this,"touches",void 0),l()(this,"minTouches",void 0),l()(this,"clickTolerance",void 0),l()(this,"sum",void 0),this.minTouches=1,this.clickTolerance=e.clickTolerance||1,this.reset()}return a()(t,[{key:"reset",value:function(){this.active=!1,this.touches={},this.sum=new u.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(c.indexTouches)(n,e),i=new u.default(0,0),o=new u.default(0,0),a=0;for(var s in r)if(r[s]){var l=r[s],h=this.touches[s];h&&(i._add(l),o._add(l.sub(h)),a++,r[s]=l)}if(this.touches=r,!(a<this.minTouches)&&o.mag()){var d=o.div(a);if(this.sum._add(d),!(this.sum.mag()<this.clickTolerance))return{around:i.div(a),panDelta:d}}}}]),t}()},function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return w}));var r=n(11),i=n.n(r),o=n(12),a=n.n(o),s=n(8),l=n.n(s),u=n(184),c=n.n(u),h=n(30),d=n.n(h),f=n(31),p=n.n(f),g=n(18),v=n.n(g),m=n(3),y=n.n(m),b=n(474);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=v()(t);if(e){var i=v()(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return p()(this,n)}}function x(t){return Math.abs(t.y)>Math.abs(t.x)}var w=function(t){d()(n,t);var e=_(n);function n(){var t;i()(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return t=e.call.apply(e,[this].concat(o)),y()(l()(t),"valid",void 0),y()(l()(t),"firstMove",void 0),y()(l()(t),"lastPoints",void 0),t}return a()(n,[{key:"reset",value:function(){c()(v()(n.prototype),"reset",this).call(this),this.valid=void 0,delete this.firstMove,delete this.lastPoints}},{key:"start",value:function(t){this.lastPoints=t,x(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 x(t)&&x(e)&&o}}}]),n}(b.default)},function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return w}));var r=n(11),i=n.n(r),o=n(12),a=n.n(o),s=n(8),l=n.n(s),u=n(184),c=n.n(u),h=n(30),d=n.n(h),f=n(31),p=n.n(f),g=n(18),v=n.n(g),m=n(3),y=n.n(m),b=n(474);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=v()(t);if(e){var i=v()(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return p()(this,n)}}function x(t,e){return 180*t.angleWith(e)/Math.PI}var w=function(t){d()(n,t);var e=_(n);function n(){var t;i()(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return t=e.call.apply(e,[this].concat(o)),y()(l()(t),"minDiameter",void 0),t}return a()(n,[{key:"reset",value:function(){c()(v()(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:x(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=x(t,this.startVector);return Math.abs(n)<e}}]),n}(b.default)},function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return w}));var r=n(11),i=n.n(r),o=n(12),a=n.n(o),s=n(8),l=n.n(s),u=n(184),c=n.n(u),h=n(30),d=n.n(h),f=n(31),p=n.n(f),g=n(18),v=n.n(g),m=n(3),y=n.n(m),b=n(474);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=v()(t);if(e){var i=v()(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return p()(this,n)}}function x(t,e){return Math.log(t/e)/Math.LN2}var w=function(t){d()(n,t);var e=_(n);function n(){var t;i()(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return t=e.call.apply(e,[this].concat(o)),y()(l()(t),"distance",void 0),y()(l()(t),"startDistance",void 0),t}return a()(n,[{key:"reset",value:function(){c()(v()(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(x(this.distance,this.startDistance))<.1))return this.active=!0,{zoomDelta:x(this.distance,n),pinchAround:e}}}]),n}(b.default)},function(t,e,n){"use strict";n.r(e),n.d(e,"EarthMap",(function(){return I}));var r=n(11),i=n.n(r),o=n(12),a=n.n(o),s=n(8),l=n.n(s),u=n(30),c=n.n(u),h=n(31),d=n.n(h),f=n(18),p=n.n(f),g=n(3),v=n.n(g),m=n(96),y=n.n(m),b=n(17),_=n(742),x=n(93),w=n(337),O=n(65),S=n(743),C=n(61),E=n(493),T=n(744);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 d()(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 A={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},I=function(t){c()(n,t);var e=M(n);function n(t){var r;return i()(this,n),r=e.call(this,y()({},A,t)),v()(l()(r),"doubleClickZoom",void 0),v()(l()(r),"dragRotate",void 0),v()(l()(r),"dragPan",void 0),v()(l()(r),"touchZoomRotate",void 0),v()(l()(r),"scrollZoom",void 0),v()(l()(r),"keyboard",void 0),v()(l()(r),"touchPitch",void 0),v()(l()(r),"boxZoom",void 0),v()(l()(r),"handlers",void 0),v()(l()(r),"container",void 0),v()(l()(r),"canvas",void 0),v()(l()(r),"canvasContainer",void 0),v()(l()(r),"renderTaskQueue",new T.default),v()(l()(r),"frame",void 0),v()(l()(r),"trackResize",!0),v()(l()(r),"onWindowOnline",(function(){r.update()})),v()(l()(r),"onWindowResize",(function(t){r.trackResize&&r.resize({originalEvent:t}).update()})),r.initContainer(),r.resize(),r.handlers=new S.default(l()(r),r.options),"undefined"!=typeof window&&(window.addEventListener("online",r.onWindowOnline,!1),window.addEventListener("resize",r.onWindowResize,!1),window.addEventListener("orientationchange",r.onWindowResize,!1)),r}return a()(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(x.default.convert(t))}},{key:"unproject",value:function(t){return this.transform.pointLocation(O.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(w.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(C.renderframe)((function(e){E.PerformanceUtils.frame(e),t.frame=null,t.update(e)})))}},{key:"update",value:function(t){var e=this;this.frame||(this.frame=Object(C.renderframe)((function(n){E.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=b.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=b.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}(_.default)},function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return v}));var r=n(11),i=n.n(r),o=n(12),a=n.n(o),s=n(30),l=n.n(s),u=n(31),c=n.n(u),h=n(18),d=n.n(h),f=n(301),p=n(1781);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=d()(t);if(e){var i=d()(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return c()(this,n)}}var v=function(t){l()(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}(f.default)},function(t,e,n){"use strict";n.r(e);var r=n(64),i=n(50);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(50);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(254),i=n.n(r),o=n(50),a=n(648),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},l={integer:function(t){return l.number(t)&&parseInt(t,10)===t},float:function(t){return l.number(t)&&!l.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))&&!l.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 u=t.type;["integer","float","array","regexp","object","method","email","number","date","url","hex"].indexOf(u)>-1?l[u](e)||r.push(o.format(s.messages.types[u],t.fullField,t.type)):u&&(void 0===e?"undefined":i()(e))!==t.type&&r.push(o.format(s.messages.types[u],t.fullField,t.type))}}},function(t,e,n){"use strict";n.r(e);var r=n(50);e.default=function(t,e,n,i,o){var a="number"==typeof t.len,s="number"==typeof t.min,l="number"==typeof t.max,u=e,c=null,h="number"==typeof e,d="string"==typeof e,f=Array.isArray(e);if(h?c="number":d?c="string":f&&(c="array"),!c)return!1;f&&(u=e.length),d&&(u=e.replace(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,"_").length),a?u!==t.len&&i.push(r.format(o.messages[c].len,t.fullField,t.len)):s&&!l&&u<t.min?i.push(r.format(o.messages[c].min,t.fullField,t.min)):l&&!s&&u>t.max?i.push(r.format(o.messages[c].max,t.fullField,t.max)):s&&l&&(u<t.min||u>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(50);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(50);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(64),i=n(50);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(64),i=n(50);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(50),i=n(64);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(64),i=n(50);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(64),i=n(50);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(64),i=n(50);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(64),i=n(50);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(64),i=n(50);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(64),i=n(50);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(64),i=n(50);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(64),i=n(50);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 l=void 0;l="number"==typeof e?new Date(e):e,r.default.type(t,l,o,s,a),l&&r.default.range(t,l.getTime(),o,s,a)}}n(s)}},function(t,e,n){"use strict";n.r(e);var r=n(254),i=n.n(r),o=n(64);e.default=function(t,e,n,r,a){var s=[],l=Array.isArray(e)?"array":void 0===e?"undefined":i()(e);o.default.required(t,e,r,s,a,l),n(s)}},function(t,e,n){"use strict";n.r(e),n.d(e,"ECEventProcessor",(function(){return o}));var r=n(0),i=n(117),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"],l={name:1,dataIndex:1,dataType:1};r.each(t,(function(t,r){for(var i=!1,a=0;a<s.length;a++){var u=s[a],c=r.lastIndexOf(u);if(c>0&&c===r.length-u.length){var h=r.slice(0,c);"data"!==h&&(e.mainType=h,e[u.toLowerCase()]=t,i=!0)}}l.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,l=e.dataQuery;return u(s,o,"mainType")&&u(s,o,"subType")&&u(s,o,"index","componentIndex")&&u(s,o,"name")&&u(s,o,"id")&&u(l,i,"name")&&u(l,i,"dataIndex")&&u(l,i,"dataType")&&(!a.filterForExposedEvent||a.filterForExposedEvent(t,e.otherQuery,r,i));function u(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(475),o=n(100),a=!1;function s(){a||(a=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function l(t,e){return t.zlevel===e.zlevel?t.z===e.z?t.z2-e.z2:t.z-e.z:t.zlevel-e.zlevel}var u=function(){function t(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=l}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,l)},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 l=t.childrenRef(),u=0;u<l.length;u++){var c=l[u];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 d=t.getDecalElement&&t.getDecalElement();d&&this._updateAndAddDisplayable(d,e,n);var f=t.getTextGuideLine();f&&this._updateAndAddDisplayable(f,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=u},function(t,e,n){"use strict";n.r(e);var r,i,o=n(59),a=n(80),s=n(0),l=n(129),u=n(49),c=u.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}))}),d=["mousemove","mouseup"],f=["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;u.default.pointerEventsSupported?s.each(h.pointer,(function(r){O(e,r,(function(e){n[r].call(t,e)}))})):(u.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})}u.default.pointerEventsSupported?s.each(f,n):u.default.touchEventsSupported||s.each(d,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}(l.default);e.default=E},function(t,e,n){"use strict";n.r(e);var r=n(59),i=n(0),o=n(20),a=n(1261),s=n(129),l=n(80),u=n(1262);function c(){l.stop(this.event)}var h=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},f=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],p=function(t){function e(e,n,r,i){var o=t.call(this)||this;return o._hovered=new d(0,0),o.storage=e,o.painter=n,o.painterRoot=i,r=r||new h,o.proxy=null,o.setHandlerProxy(r),o._draggingMgr=new a.default(o),o}return Object(r.__extends)(e,t),e.prototype.setHandlerProxy=function(t){this.proxy&&this.proxy.dispose(),t&&(i.each(f,(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=v(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,l=this.proxy;l.setCursor&&l.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:c}}(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){for(var r=this.storage.getDisplayList(),i=new d(t,e),o=r.length-1;o>=0;o--){var a=void 0;if(r[o]!==n&&!r[o].ignore&&(a=g(r[o],t,e))&&(!i.topTarget&&(i.topTarget=r[o]),"silent"!==a)){i.target=r[o];break}}return i},e.prototype.processGesture=function(t,e){this._gestureMgr||(this._gestureMgr=new u.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 g(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 v(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){p.prototype[t]=function(e){var n,r,i=e.zrX,a=e.zrY,s=v(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=p},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,l=this._dropTarget;this._dropTarget=s,e!==s&&(l&&s!==l&&this.handler.dispatchToElement(new r(l,t),"dragleave",t.event),s&&s!==l&&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(80),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 l=i[a],u=r.clientToLocal(n,l,{});o.points.push([u.zrX,u.zrY]),o.touches.push(l)}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 l=[((r=i)[0][0]+r[1][0])/2,(r[0][1]+r[1][1])/2];return e.pinchX=l[0],e.pinchY=l[1],{type:"pinch",target:t[0].target,event:e}}}}}},function(t,e,n){"use strict";n.r(e);var r=n(649),i=n(0),o=n(441),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(10),o=r.each,a=r.isObject,s=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function l(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,l=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),l&&l[o]&&(t[o]=t[o]||{},t[o].emphasis?r.merge(t[o].emphasis,l[o]):t[o].emphasis=l[o],l[o]=null)}}function u(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){u(t,"itemStyle"),u(t,"lineStyle"),u(t,"areaStyle"),u(t,"label"),u(t,"labelLine"),u(t,"upperLabel"),u(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 l=i.TEXT_STYLE_OPTIONS[o];r.hasOwnProperty(l)&&(n[l]=r[l])}}}function d(t){t&&(c(t),h(t,"label"),t.emphasis&&h(t.emphasis,"label"))}function f(t){return r.isArray(t)?t:t?[t]:[]}function p(t){return(r.isArray(t)?t[0]:t)||{}}function g(t,e){o(f(t.series),(function(t){a(t)&&function(t){if(a(t)){l(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&&(l(e),d(e));var n=t.markLine;n&&(l(n),d(n));var i=t.markArea;i&&d(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 f=0;f<s.length;f++)d(s[f]);r.each(t.categories,(function(t){c(t)}))}if(o&&!r.isTypedArray(o))for(f=0;f<o.length;f++)d(o[f]);if((e=t.markPoint)&&e.data){var p=e.data;for(f=0;f<p.length;f++)d(p[f])}if((n=t.markLine)&&n.data){var g=n.data;for(f=0;f<g.length;f++)r.isArray(g[f])?(d(g[f][0]),d(g[f][1])):d(g[f])}"gauge"===t.type?(h(t,"axisLabel"),h(t,"title"),h(t,"detail")):"treemap"===t.type?(u(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(f(t[e]),(function(t){t&&(h(t,"axisLabel"),h(t.axisPointer,"label"))}))})),o(f(t.parallel),(function(t){var e=t&&t.parallelAxisDefault;h(e,"axisLabel"),h(e&&e.axisPointer,"label")})),o(f(t.calendar),(function(t){u(t,"itemStyle"),h(t,"dayLabel"),h(t,"monthLabel"),h(t,"yearLabel")})),o(f(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(f(t.geo),(function(t){a(t)&&(d(t),o(f(t.regions),(function(t){d(t)})))})),o(f(t.timeline),(function(t){d(t),u(t,"label"),u(t,"itemStyle"),u(t,"controlStyle",!0);var e=t.data;r.isArray(e)&&r.each(e,(function(t){r.isObject(t)&&(u(t,"label"),u(t,"itemStyle"))}))})),o(f(t.toolbox),(function(t){u(t,"iconStyle"),o(t.feature,(function(t){u(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(224),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(66),o=["textStyle","color"],a=["fontStyle","fontWeight","fontSize","fontFamily","padding","lineHeight","rich","width","height","overflow"],s=new i.default,l=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=l},function(t,e,n){"use strict";n.r(e),n.d(e,"containStroke",(function(){return i}));var r=n(47);function i(t,e,n,i,o,a,s,l,u,c,h){if(0===u)return!1;var d=u;return!(h>e+d&&h>i+d&&h>a+d&&h>l+d||h<e-d&&h<i-d&&h<a-d&&h<l-d||c>t+d&&c>n+d&&c>o+d&&c>s+d||c<t-d&&c<n-d&&c<o-d&&c<s-d)&&r.cubicProjectPoint(t,e,n,i,o,a,s,l,c,h,null)<=d/2}},function(t,e,n){"use strict";n.r(e),n.d(e,"containStroke",(function(){return o}));var r=n(314),i=2*Math.PI;function o(t,e,n,o,a,s,l,u,c){if(0===l)return!1;var h=l;u-=t,c-=e;var d=Math.sqrt(u*u+c*c);if(d-h>n||d+h<n)return!1;if(Math.abs(o-a)%i<1e-4)return!0;if(s){var f=o;o=Object(r.normalizeRadian)(a),a=Object(r.normalizeRadian)(f)}else o=Object(r.normalizeRadian)(o),a=Object(r.normalizeRadian)(a);o>a&&(a+=i);var p=Math.atan2(c,u);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,l=e.y,u=e.width,c=e.height,h=e.r;u<0&&(s+=u,u=-u),c<0&&(l+=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>u&&(n*=u/(a=n+r),r*=u/a),i+o>u&&(i*=u/(a=i+o),o*=u/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,l),t.lineTo(s+u-r,l),0!==r&&t.arc(s+u-r,l+r,r,-Math.PI/2,0),t.lineTo(s+u,l+c-i),0!==i&&t.arc(s+u-i,l+c-i,i,0,Math.PI/2),t.lineTo(s+o,l+c),0!==o&&t.arc(s+o,l+c-o,o,Math.PI/2,Math.PI),t.lineTo(s,l+n),0!==n&&t.arc(s+n,l+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(10),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,l=t.timeline,u=t.options,c=t.media,h=!!t.media,d=!!(u||l||s&&s.timeline);s?(o=s).timeline||(o.timeline=l):((d||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 f(t){Object(i.each)(e,(function(e){e(t,n)}))}return f(o),Object(i.each)(u,(function(t){return f(t)})),Object(i.each)(a,(function(t){return f(t.option)})),{baseOption:o,timelineOptions:u||[],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,l=this._mediaDefault,u=[],c=[];if(!a.length&&!l)return c;for(var h=0,d=a.length;h<d;h++)s(a[h].query,r,o)&&u.push(h);return!u.length&&l&&(u=[-1]),u.length&&(e=u,n=this._currentMediaIndices,e.join(",")!==n.join(","))&&(c=Object(i.map)(u,(function(t){return Object(i.clone)(-1===t?l.option:a[t].option)}))),this._currentMediaIndices=u,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,l=Math.acos,u=Math.atan2,c=Math.abs,h=Math.sqrt,d=Math.max,f=Math.min,p=1e-4;function g(t,e,n,r,i,o,a){var s=t-n,l=e-r,u=(a?o:-o)/h(s*s+l*l),c=u*l,f=-u*s,p=t+c,g=e+f,v=n+c,m=r+f,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(d(0,O*O*w-S*S)),E=(S*x-_*C)/w,T=(-S*_-x*C)/w,M=(S*x+_*C)/w,A=(-S*_+x*C)/w,I=E-y,j=T-b,k=M-y,P=A-b;return I*I+j*j>k*k+P*P&&(E=M,T=A),{cx:E,cy:T,x0:-c,y0:-f,x1:E*(i/O-1),y1:T*(i/O-1)}}function v(t,e){var n,v=d(e.r,0),m=d(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,M=void 0,A=void 0,I=void 0,j=void 0,k=void 0,P=void 0,L=void 0,D=void 0,R=void 0,N=void 0,F=void 0,B=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),$=C>p;if($){var X=e.cornerRadius;X&&(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}(X))[0],M=n[1],A=n[2],I=n[3]);var q=c(v-m)/2;if(j=f(q,A),k=f(q,I),P=f(q,T),L=f(q,M),N=D=d(j,k),F=R=d(P,L),(D>p||R>p)&&(B=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 l=n-t,u=r-e,c=a-i,h=s-o,d=h*l-c*u;if(!(d*d<p))return[t+(d=(c*(e-o)-h*(t-i))/d)*l,e+d*u]}(G,H,V,U,B,z,W,Y);if(Z){var K=G-Z[0],J=H-Z[1],Q=B-Z[0],tt=z-Z[1],et=1/a(l((K*Q+J*tt)/(h(K*K+J*J)*h(Q*Q+tt*tt)))/2),nt=h(Z[0]*Z[0]+Z[1]*Z[1]);N=f(D,(v-nt)/(et+1)),F=f(R,(m-nt)/(et-1))}}}if($)if(N>p){var rt=f(A,N),it=f(I,N),ot=g(V,U,G,H,v,rt,S),at=g(B,z,W,Y,v,it,S);t.moveTo(w+ot.cx+ot.x0,O+ot.cy+ot.y0),N<D&&rt===it?t.arc(w+ot.cx,O+ot.cy,N,u(ot.y0,ot.x0),u(at.y0,at.x0),!S):(rt>0&&t.arc(w+ot.cx,O+ot.cy,rt,u(ot.y0,ot.x0),u(ot.y1,ot.x1),!S),t.arc(w,O,v,u(ot.cy+ot.y1,ot.cx+ot.x1),u(at.cy+at.y1,at.cx+at.x1),!S),it>0&&t.arc(w+at.cx,O+at.cy,it,u(at.y1,at.x1),u(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&&$)if(F>p){rt=f(T,F),ot=g(W,Y,B,z,m,-(it=f(M,F)),S),at=g(G,H,V,U,m,-rt,S);t.lineTo(w+ot.cx+ot.x0,O+ot.cy+ot.y0),F<R&&rt===it?t.arc(w+ot.cx,O+ot.cy,F,u(ot.y0,ot.x0),u(at.y0,at.x0),!S):(it>0&&t.arc(w+ot.cx,O+ot.cy,it,u(ot.y0,ot.x0),u(ot.y1,ot.x1),!S),t.arc(w,O,m,u(ot.cy+ot.y1,ot.cx+ot.x1),u(at.cy+at.y1,at.cx+at.x1),S),rt>0&&t.arc(w+at.cx,O+at.cy,rt,u(at.y1,at.x1),u(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(20);function i(t,e,n,i){var o,a,s,l,u=[],c=[],h=[],d=[];if(i){s=[1/0,1/0],l=[-1/0,-1/0];for(var f=0,p=t.length;f<p;f++)Object(r.min)(s,s,t[f]),Object(r.max)(l,l,t[f]);Object(r.min)(s,s,i[0]),Object(r.max)(l,l,i[1])}for(f=0,p=t.length;f<p;f++){var g=t[f];if(n)o=t[f?f-1:p-1],a=t[(f+1)%p];else{if(0===f||f===p-1){u.push(Object(r.clone)(t[f]));continue}o=t[f-1],a=t[f+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)(d,c,m);var b=Object(r.add)([],g,h),_=Object(r.add)([],g,d);i&&(Object(r.max)(b,b,s),Object(r.min)(b,b,l),Object(r.max)(_,_,s),Object(r.min)(_,_,l)),u.push(b),u.push(_)}return n&&u.push(u.shift()),u}},function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return i}));var r=n(330);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,l=e.isStackedByIndex;s.modify(a,(function(a,u,c){var h,d,f=s.get(e.stackedDimension,c);if(isNaN(f))return o;l?d=s.getRawIndex(c):h=s.get(e.stackedByDimension,c);for(var p=NaN,g=n-1;g>=0;g--){var v=t[g];if(l||(d=v.data.rawIndexOf(v.stackedByDimension,h)),d>=0){var m=v.data.getByRawIndex(v.stackResultDimension,d);if(f>=0&&m>0||f<=0&&m<0){f=Object(i.addSafe)(f,m),p=m;break}}}return r[0]=f,r[1]=p,r}))}))}},function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return u}));var r=n(0),i=n(39),o=n(70),a=n(66),s=n(521),l=Math.PI;function u(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,u=new o.default({style:{fill:e.maskColor},zlevel:e.zlevel,z:1e4});n.add(u);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}),d=new o.default({style:{fill:"none"},textContent:h,textConfig:{position:"right",distance:10},zlevel:e.zlevel,z:10001});return n.add(d),e.showSpinner&&((c=new s.default({shape:{startAngle:-l/2,endAngle:-l/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*l/2}).start("circularInOut"),c.animateShape(!0).when(1e3,{startAngle:3*l/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}),d.setShape({x:i-r,y:o-r,width:2*r,height:2*r}),u.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(10),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),l(o)&&(r.set("x",o),e.firstCategoryDimIndex=0),l(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),l(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),l(a)&&(r.set("radius",a),e.firstCategoryDimIndex=0),l(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),u=s[r];n.set(u,a),l(a)&&(i.set(u,a),null==e.firstCategoryDimIndex&&(e.firstCategoryDimIndex=r))}))}};function l(t){return"category"===t.get("type")}},function(t,e,n){"use strict";n.r(e);var r=n(5),i=n(0),o=n(211),a=n(6),s=n(113),l=n(209),u=o.default.prototype,c=l.default.prototype,h=a.round,d=Math.floor,f=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 l.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=this.base;t=g(t)/g(n),e=g(e)/g(n),c.setExtent.call(this,t,e)},e.prototype.getExtent=function(){var t=this.base,e=u.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),u.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(f(e[0]/r)*r),a.round(d(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(32),a=n(6),s=n(119),l=n(215),u=n(10),c=n(0),h=n(310),d=n(27);function f(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:f(r&&r.shape.points)}}var g=["align","verticalAlign","width","height","fontSize"],v=new s.default,m=Object(u.makeInner)(),y=Object(u.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||{},l=i.getComputedTransform(),u=i.getBoundingRect().plain();r.default.applyTransform(u,u,l),l?v.setLocalTransform(l):(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 d=h.getComputedTransform();r.default.applyTransform(c,c,d)}var f=c&&h.getTextGuideLine();this._labelList.push({label:i,labelLine:f,seriesModel:n,dataIndex:t,dataType:e,layoutOption:o,computedLayoutOption:null,rect:u,hostRect:c,priority:c?c.width*c.height:0,defaultAttr:{ignore:i.ignore,labelGuideIgnore:f&&f.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(l.updateLabelLinePoints)(t,e)}}for(var i=0;i<this._labelList.length;i++){var o=this._labelList[i],s=o.label,u=s.__hostTarget,h=o.defaultAttr,d=void 0;d=(d=Object(c.isFunction)(o.layoutOption)?o.layoutOption(p(o,u)):o.layoutOption)||{},o.computedLayoutOption=d;var f=Math.PI/180;u&&u.setTextConfig({local:!1,position:null!=d.x||null!=d.y?null:h.attachedPos,rotation:null!=d.rotate?d.rotate*f:h.attachedRot,offset:[d.dx||0,d.dy||0]});var v=!1;if(null!=d.x?(s.x=Object(a.parsePercent)(d.x,e),s.setStyle("x",0),v=!0):(s.x=h.x,s.setStyle("x",h.style.x)),null!=d.y?(s.y=Object(a.parsePercent)(d.y,n),s.setStyle("y",0),v=!0):(s.y=h.y,s.setStyle("y",h.style.y)),d.labelLinePoints){var y=u.getTextGuideLine();y&&(y.setShape({points:d.labelLinePoints}),v=!1)}m(s).needsUpdateLabelLine=v,s.rotation=null!=d.rotate?d.rotate*f:h.rotation,s.scaleX=h.scaleX,s.scaleY=h.scaleY;for(var b=0;b<g.length;b++){var _=g[b];s.setStyle(_,null!=d[_]?d[_]:h.style[_])}if(d.draggable){if(s.draggable=!0,s.cursor="move",u){var x=o.seriesModel;if(null!=o.dataIndex)x=o.seriesModel.getData(o.dataType).getItemModel(o.dataIndex);s.on("drag",r(u,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),u={},c=a.getItemVisual(i,"style"),h=a.getVisual("drawType");u.stroke=c[h];var d=s.getModel("labelLine");Object(l.setLabelLineStyle)(t,Object(l.getLabelLineStatesModels)(s),u),Object(l.updateLabelLinePoints)(t,d)}},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),l=s.dataIndex,u={x:n.x,y:n.y,rotation:n.rotation},h=e.getData(s.dataType);if(a){n.attr(a);var f=t.prevStates;f&&(Object(c.indexOf)(f,"select")>=0&&n.attr(x.oldLayoutSelect),Object(c.indexOf)(f,"emphasis")>=0&&n.attr(x.oldLayoutEmphasis)),Object(i.updateProps)(n,u,e,l)}else if(n.attr(u),!Object(d.labelInner)(n).valueAnimation){var p=Object(c.retrieve2)(n.style.opacity,1);n.style.opacity=0,Object(i.initProps)(n,{style:{opacity:p}},e,l)}if(x.oldLayout=u,n.states.select){var g=x.oldLayoutSelect={};b(g,u,_),b(g,n.states.select,_)}if(n.states.emphasis){var v=x.oldLayoutEmphasis={};b(v,u,_),b(v,n.states.emphasis,_)}Object(d.animateLabelValue)(n,l,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(151),i=n(0),o=n(749),a=n(531),s=n(49),l=n(249),u=n(100),c=n(214);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 l=this._zlevelList;this._prevDisplayList=[];var u=this._layers;if(s){var h=t,d=h.width,f=h.height;null!=n.width&&(d=n.width),null!=n.height&&(f=n.height),this.dpr=n.devicePixelRatio||1,h.width=d*this.dpr,h.height=f*this.dpr,this._width=d,this._height=f;var p=new o.default(h,this,this.dpr);p.__builtin__=!0,p.initContext(),u[314159]=p,p.zlevel=314159,l.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(l.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(l.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 l=this;Object(a.default)((function(){l._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,l=0;l<this._zlevelList.length;l++){var u=this._zlevelList[l],c=this._layers[u];c.__builtin__&&c!==this._hoverlayer&&(c.__dirty||n)&&o.push(c)}for(var h=!0,d=!1,f=function(i){var s,l=o[i],u=l.ctx,c=a&&l.createRepaintRects(t,e,p._width,p._height),f=n?l.__startIndex:l.__drawIndex,g=!n&&l.incremental&&Date.now,v=g&&Date.now(),m=l.zlevel===p._zlevelList[0]?p._backgroundColor:null;if(l.__startIndex===l.__endIndex)l.clear(!1,m,c);else if(f===l.__startIndex){var y=t[f];y.incremental&&y.notClear&&!n||l.clear(!1,m,c)}-1===f&&(console.error("For some unknown reason. drawIndex is -1"),f=l.__startIndex);var b=function(e){var n={inHover:!1,allClipped:!1,prevEl:null,viewWidth:r._width,viewHeight:r._height};for(s=f;s<l.__endIndex;s++){var i=t[s];if(i.__inHover&&(d=!0),r._doPaintEl(i,l,a,e,n,s===l.__endIndex-1),g)if(Date.now()-v>15)break}n.prevElClipPaths&&u.restore()};if(c)if(0===c.length)s=l.__endIndex;else for(var _=p.dpr,x=0;x<c.length;++x){var w=c[x];u.save(),u.beginPath(),u.rect(w.x*_,w.y*_,w.width*_,w.height*_),u.clip(),b(w),u.restore()}else u.save(),b(),u.restore();l.__drawIndex=s,l.__drawIndex<l.__endIndex&&(h=!1)},p=this,g=0;g<o.length;g++)f(g);return s.default.wxa&&i.each(this._layers,(function(t){t&&t.ctx&&t.ctx.draw&&t.ctx.draw()})),{finished:h,needsRefreshHover:d}},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(l.brush)(a,t,i,o),t.setPrevPaintRect(s))}else Object(l.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 l=a.dom;l.nextSibling?o.insertBefore(e.dom,l.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((l=t[n]).zlevel!==t[n-1].zlevel||l.incremental){this._needsManuallyCompositing=!0;break}}var r,o,a=null,s=0;for(o=0;o<t.length;o++){var l,c=(l=t[o]).zlevel,h=void 0;r!==c&&(r=c,s=0),l.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),l.__dirty&u.REDRAW_BIT&&!l.__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),u=0,c=s.length;u<c;u++){var h=s[u];Object(l.brush)(n,h,a,u===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(750),i=n(90),o=n(76),a=n(0),s=n(832),l=n(214),u=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"+u++,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,l=Object(i.createBrushScope)(this._id);l.animation=t.animation,l.willUpdate=t.willUpdate,l.compress=t.compress;var u=[];if(n&&"none"!==n){var c=Object(o.normalizeColor)(n),h=c.color,d=c.opacity;this._bgVNode=Object(i.createVNode)("rect","bg",{width:r,height:s,x:"0",y:"0",id:"0",fill:h,"fill-opacity":d}),u.push(this._bgVNode)}else this._bgVNode=null;var f=t.compress?null:this._mainVNode=Object(i.createVNode)("g","main",{},[]);this._paintList(e,l,f?f.children:u),f&&u.push(f);var p=Object(a.map)(Object(a.keys)(l.defs),(function(t){return l.defs[t]}));if(p.length&&u.push(Object(i.createVNode)("defs","defs",{},p)),t.animation){var g=Object(i.getCssString)(l.cssNodes,l.cssAnims,{newline:!0});if(g){var v=Object(i.createVNode)("style","stl",{},[],g);u.push(v)}}return Object(i.createSVGVNode)(r,s,u,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,l=[],u=0,c=0,h=0;h<s;h++){var d=t[h];if(!d.invisible){var f=d.__clipPaths,p=f&&f.length||0,g=a&&a.length||0,v=void 0;for(v=Math.max(p-1,g-1);v>=0&&(!f||!a||f[v]!==a[v]);v--);for(var m=g-1;m>v;m--)o=l[--u-1];for(var y=v+1;y<p;y++){var b={};Object(r.setClipPath)(f[y],b,e);var _=Object(i.createVNode)("g","clip-g-"+c++,b,[]);(o?o.children:n).push(_),l[u++]=_,o=_}a=f;var x=Object(r.brush)(d,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(l.getSize)(r,0,n),e=Object(l.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(106),o=n(534),a=n(0),s=n(76),l=Math.round;var u=["lineCap","miterLimit","lineJoin"],c=Object(a.map)(u,(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 d=Object(s.normalizeColor)(e.fill);t("fill",d.color);var f=null!=e.fillOpacity?e.fillOpacity*d.opacity*h:d.opacity*h;(a||f<1)&&t("fill-opacity",f)}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=l(x||0),t("stroke-dasharray",_.join(",")),(x||a)&&t("stroke-dashoffset",x))}else a&&t("stroke-dasharray","none");for(var w=0;w<u.length;w++){var O=u[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(292),a=n(332),s=n(1289),l=n(326),u=n(39),c=n(23),h=n(66),d=n(10),f=n(537),p=n(53),g=n(478),v=n(274),m=n(250),y=n(13),b=n(27),_=n(229),x=n(32),w=n(196),O=n(48),S=n(71);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 M(t){return i.isNumber(t)?t:t?.5:0}function A(t,e,n,r){var i=e.getBaseAxis(),o="x"===i.dim||"radius"===i.dim?0:1,a=[],s=0,l=[],u=[],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],u[0]=t[s],u[1]=t[s+1],a.push(u[0],u[1]),n){case"end":l[o]=c[o],l[1-o]=u[1-o],a.push(l[0],l[1]);break;case"middle":var d=(u[o]+c[o])/2,f=[];l[o]=f[o]=d,l[1-o]=u[1-o],f[1-o]=c[1-o],a.push(l[0],l[1]),a.push(f[0],f[1]);break;default:l[o]=u[o],l[1-o]=c[1-o],a.push(l[0],l[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 u=t.getDimensionInfo(r[s].dimension);if("x"===(o=u&&u.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}})),d=h.length,f=a.outerColors.slice();d&&h[0].coord>h[d-1].coord&&(h.reverse(),f.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 l=t[s],u=l.coord;if(u<0)n=l;else{if(u>e){r?i.push(a(r,l,e)):n&&i.push(a(n,l,0),a(n,l,e));break}n&&(i.push(a(n,l,0)),n=null),i.push(l),r=l}}return i}(h,"x"===o?n.getWidth():n.getHeight()),g=p.length;if(!g&&d)return h[0].coord<0?f[1]?f[1]:h[d-1].color:f[0]?f[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:f[1]||"transparent"}),p.unshift({offset:g?p[0].offset:.5,color:f[0]||"transparent"});var b=new l.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 l=e.mapDimension(s.dim),u={};return i.each(s.getViewLabels(),(function(t){var e=s.scale.getRawOrdinalNumber(t.tickValue);u[e]=1})),function(t){return!u.hasOwnProperty(e.get(l,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},l=P(r)?function(n,r){t._endLabelOnDuring(n,r,a,s,o,i,e)}:null,u=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})}),l);if(!r.get("clip",!0)){var h=c.shape,d=Math.max(h.width,h.height);u?(h.y-=d,h.height+=2*d):(h.x-=d,h.width+=2*d)}return l&&l(1,c),c}return Object(v.createPolarClipPath)(e,n,r)}var D=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 u.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(),l=t.getModel("lineStyle"),u=t.getModel("areaStyle"),h=s.getLayout("points")||[],d="polar"===o.type,f=this._coordSys,p=this._symbolDraw,v=this._polyline,m=this._polygon,b=this._lineGroup,_=t.get("animation"),S=!u.isEmpty(),E=u.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"),D=t.get("connectNulls"),R=P&&!d&&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 F,B=!d&&t.get("step");o&&o.getArea&&t.get("clip",!0)&&(null!=(F=o.getArea()).width?(F.x-=.1,F.y-=.1,F.width+=.2,F.height+=.2):F.r0&&(F.r0-=.5,F.r+=.5)),this._clipShapeForSymbol=F;var z=I(s,o,n)||s.getVisual("style")[s.getVisual("drawType")];if(v&&f.type===o.type&&B===this._step){S&&!m?m=this._newPolygon(h,k):m&&!S&&(b.remove(m),m=this._polygon=null),d||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:R,clipShape:F,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,B,E,D):(B&&(h=A(h,o,B,D),k&&(k=A(k,o,B,D))),v.setShape({points:h}),m&&m.setShape({points:h,stackedOnPoints:k})))}else P&&p.updateData(s,{isIgnore:R,clipShape:F,disableAnimation:!0,getSymbolPoint:function(t){return[h[2*t],h[2*t+1]]}}),_&&this._initSymbolLabelAnimation(s,o,F),B&&(h=A(h,o,B,D),k&&(k=A(k,o,B,D))),v=this._newPolyline(h),S&&(m=this._newPolygon(h,k)),d||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(l.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 $=M(t.get("smooth")),X=t.get("smoothMonotone");if(v.setShape({smooth:$,smoothMonotone:X,connectNulls:D}),m){var q=s.getCalculationInfo("stackedOnSeries"),Z=0;m.useStyle(i.defaults(u.getAreaStyle(),{fill:z,opacity:.7,lineJoin:"bevel",decal:s.getVisual("style").decal})),q&&(Z=M(q.get("smooth"))),m.setShape({smooth:$,stackedOnSmooth:Z,smoothMonotone:X,connectNulls:D}),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=B,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=d.queryDataIndex(i,r);if(this._changePolyState("emphasis"),!(o instanceof Array)&&null!=o&&o>=0){var s=i.getLayout("points"),l=i.getItemGraphicEl(o);if(!l){var u=s[2*o],c=s[2*o+1];if(isNaN(u)||isNaN(c))return;if(this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(u,c))return;var h=t.get("zlevel"),f=t.get("z");(l=new a.default(i,o)).x=u,l.y=c,l.setZ(h,f);var g=l.getSymbolPath().getTextContent();g&&(g.zlevel=h,g.z=f,g.z2=this._polyline.z2+1),l.__temp=!0,i.setItemGraphicEl(o,l),l.stopSymbolAnimation(!0),this.group.add(l)}l.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=d.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 f.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 f.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 l=t.hostModel,u=l.get("animationDuration");i.isFunction(u)&&(u=u(null));var c=l.get("animationDelay")||0,h=i.isFunction(c)?c(null):c;t.eachItemGraphicEl((function(t,a){var l=t;if(l){var d=[t.x,t.y],f=void 0,p=void 0,g=void 0;if(n)if(o){var v=n,m=e.pointToCoord(d);r?(f=v.startAngle,p=v.endAngle,g=-m[1]/180*Math.PI):(f=v.r0,p=v.r,g=m[0])}else{var y=n;r?(f=y.x,p=y.x+y.width,g=t.x):(f=y.y+y.height,p=y.y,g=t.y)}var b=p===f?0:(g-f)/(p-f);s&&(b=1-b);var _=i.isFunction(c)?c(a):u*b+h,x=l.getSymbolPath(),w=x.getTextContent();l.attr({scaleX:0,scaleY:0}),l.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 l=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);l>=0&&(Object(b.setLabelStyle)(o,Object(b.getLabelStatesModels)(t,"endLabel"),{inheritColor:n,labelFetcher:t,labelDataIndex:l,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,l=this._polyline;if(s){t<1&&null==r.originalX&&(r.originalX=s.x,r.originalY=s.y);var u=n.getLayout("points"),c=n.hostModel,h=c.get("connectNulls"),f=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,l=-1,u=0;u<o;u++)if(i=t[2*u+a],!isNaN(i)&&!isNaN(t[2*u+1-a]))if(0!==u){if(r<=e&&i>=e||r>=e&&i<=e){l=u;break}s=u,r=i}else r=i;return{range:[s,l],t:(e-r)/(i-r)}}(u,_,O),C=S.range,E=C[1]-C[0],T=void 0;if(E>=1){if(E>1&&!h){var M=k(u,C[0]);s.attr({x:M[0]+x,y:M[1]+w}),i&&(T=c.getRawValue(C[0]))}else{(M=l.getPointOn(_,O))&&s.attr({x:M[0]+x,y:M[1]+w});var A=c.getRawValue(C[0]),I=c.getRawValue(C[1]);i&&(T=d.interpolateRawValues(n,f,A,I,S.t))}r.lastFrameIndex=C[0]}else{var j=1===t||r.lastFrameIndex>0?C[0]:0;M=k(u,j);i&&(T=c.getRawValue(j)),s.attr({x:M[0]+x,y:M[1]+w})}i&&Object(b.labelInner)(s).setLabelText(T)}},e.prototype._doUpdateAnimation=function(t,e,n,r,i,o,a){var l=this._polyline,u=this._polygon,h=t.hostModel,d=Object(s.default)(this._data,t,this._stackedOnPoints,e,this._coordSys,n,this._valueOrigin,o),f=d.current,p=d.stackedOnCurrent,g=d.next,v=d.stackedOnNext;if(i&&(f=A(d.current,n,i,a),p=A(d.stackedOnCurrent,n,i,a),g=A(d.next,n,i,a),v=A(d.stackedOnNext,n,i,a)),T(f,g)>3e3||u&&T(p,v)>3e3)return l.stopAnimation(),l.setShape({points:g}),void(u&&(u.stopAnimation(),u.setShape({points:g,stackedOnPoints:v})));l.shape.__points=d.current,l.shape.points=f;var m={shape:{points:g}};d.current!==f&&(m.shape.__points=d.next),l.stopAnimation(),c.updateProps(l,m,h),u&&(u.setShape({points:f,stackedOnPoints:p}),u.stopAnimation(),c.updateProps(u,{shape:{stackedOnPoints:v}},h),l.shape.points!==u.shape.points&&(u.shape.points=l.shape.points));for(var y=[],b=d.status,_=0;_<b.length;_++){if("="===b[_].cmd){var x=t.getItemGraphicEl(b[_].idx1);x&&y.push({el:x,ptIdx:_})}}l.animators&&l.animators.length&&l.animators[0].during((function(){u&&u.dirtyShape();for(var t=l.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=D},function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return o}));var r=n(478),i=n(196);function o(t,e,n,o,a,s,l,u){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=[],d=[],f=[],p=[],g=[],v=[],m=[],y=Object(r.prepareDataCoordInfo)(a,e,l),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],M=_[C],A=_[C+1];(isNaN(E)||isNaN(T))&&(E=M,T=A),h.push(E,T),d.push(M,A),f.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]),d.push(_[C],_[C+1]);var P=Object(r.getStackedOnPoint)(y,a,e,I);f.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,D=Object(i.createFloat32Array)(L),R=Object(i.createFloat32Array)(L),N=Object(i.createFloat32Array)(L),F=Object(i.createFloat32Array)(L),B=[];for(x=0;x<v.length;x++){var z=v[x],V=2*x,U=2*z;D[V]=h[U],D[V+1]=h[U+1],R[V]=d[U],R[V+1]=d[U+1],N[V]=f[U],N[V+1]=f[U+1],F[V]=p[U],F[V+1]=p[U+1],B[x]=g[z]}return{current:D,next:R,stackedOnCurrent:N,stackedOnNext:F,status:B}}},function(t,e,n){"use strict";n.r(e);var r=n(5),i=n(148),o=n(54),a=n(60),s=n(39),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.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,l=.8*t.itemHeight,u=Object(a.createSymbol)(o,(t.itemWidth-l)/2,(t.itemHeight-l)/2,l,l,t.itemStyle.fill);e.add(u),u.setStyle(t.itemStyle);var c="inherit"===t.iconRotate?i:t.iconRotate||0;return u.rotation=c*Math.PI/180,u.setOrigin([t.itemWidth/2,t.itemHeight/2]),o.indexOf("empty")>-1&&(u.style.stroke=u.style.fill,u.style.fill="#fff",u.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=l},function(t,e,n){"use strict";n.r(e);var r=n(5),i=n(36),o=n(39),a=n(0),s=n(14),l=n(23),u=n(70),c=n(174),h=n(32),d=n(13),f=n(27),p=n(130),g=n(274),v=n(479),m=n(53),y=n(250),b=n(229),_=n(833),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,d=t.coordinateSystem,p=d.getBaseAxis();"cartesian2d"===d.type?i=p.isHorizontal():"polar"===d.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,d);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}(d,s);a.removeClipPath();var _=t.get("roundCap",!0),x=t.get("showBackground",!0),w=t.getModel("backgroundStyle"),O=w.get("borderRadius")||0,T=[],M=this._backgroundEls,A=r&&r.isInitSort,k=r&&"changeAxisOrder"===r.type;function L(t){var e=j[d.type](s,t),n=function(t,e,n){return new("polar"===t.type?c.default:u.default)({shape:F(e,n,t),silent:!0,z2:0})}(d,i,e);return n.useStyle(w.getItemStyle()),"cartesian2d"===d.type&&n.setShape("r",O),T[t]=n,n}s.diff(h).add((function(e){var n=s.getItemModel(e),r=j[d.type](s,e,n);if(x&&L(e),s.hasValue(e)&&I[d.type](r)){var o=!1;m&&(o=S[d.type](b,r));var u=C[d.type](t,s,e,r,i,g,p.model,!1,_);v&&(u.forceLabelAnimation=!0),P(u,s,e,n,r,t,i,"polar"===d.type),A?u.attr({shape:r}):v?E(v,g,u,r,e,i,!1,!1):Object(l.initProps)(u,{shape:r},t,e),s.setItemGraphicEl(e,u),a.add(u),u.ignore=o}})).update((function(e,n){var r=s.getItemModel(e),o=j[d.type](s,e,r);if(x){var u=void 0;0===M.length?u=L(n):((u=M[n]).useStyle(w.getItemStyle()),"cartesian2d"===d.type&&u.setShape("r",O),T[e]=u);var c=j[d.type](s,e),y=F(i,c,d);Object(l.updateProps)(u,{shape:y},g,e)}var D=h.getItemGraphicEl(n);if(s.hasValue(e)&&I[d.type](o)){var R=!1;if(m&&(R=S[d.type](b,o))&&a.remove(D),D?Object(l.saveOldStyle)(D):D=C[d.type](t,s,e,o,i,g,p.model,!!D,_),v&&(D.forceLabelAnimation=!0),k){var N=D.getTextContent();if(N){var B=Object(f.labelInner)(N);null!=B.prevValue&&(B.prevValue=B.value)}}else P(D,s,e,r,o,t,i,"polar"===d.type);A?D.attr({shape:o}):v?E(v,g,D,o,e,i,!0,k):Object(l.updateProps)(D,{shape:o},t,e,null),s.setItemGraphicEl(e,D),D.ignore=R,a.add(D)}else a.remove(D)})).remove((function(e){var n=h.getItemGraphicEl(e);n&&Object(l.removeElementWithFadeOut)(n,t,e)})).execute();var D=this._backgroundGroup||(this._backgroundGroup=new o.default);D.removeAll();for(var R=0;R<T.length;++R)D.add(T[R]);a.add(D),this._backgroundEls=T,this._data=s},e.prototype._renderLarge=function(t,e,n){this._clear(),R(t,this.group),this._updateLargeClip(t)},e.prototype._incrementalRenderLarge=function(t,e){this._removeBackground(),R(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 l=t.rawIndexOf(i,r.getRawOrdinalNumber(a)),u=l<0?Number.MIN_VALUE:e(t.indexOfRawIndex(l));if(u>o)return!0;o=u}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(l.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),l=x(e.y,t.y),u=w(e.y+e.height,o),c=s<a,h=u<l;return e.x=c&&a>i?s:a,e.y=h&&l>o?u:l,e.width=c?0:s-a,e.height=h?0:u-l,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,l,c){var h=new u.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,u){var h=!i&&u?v.default:c.default,d=new h({shape:r,z2:1});d.name="item";var f=k(i);if(d.calculateTextPosition=Object(_.createSectorCalculateTextPosition)(f,{isRoundCap:h===v.default}),o){var p=i?"r":"endAngle",g={};d.shape[p]=i?0:r.startAngle,g[p]=r[p],(s?l.updateProps:l.initProps)(d,{shape:g},o)}return d}};function E(t,e,n,r,i,o,a,s){var u,c;o?(c={x:r.x,width:r.width},u={y:r.y,height:r.height}):(c={y:r.y,height:r.height},u={x:r.x,width:r.width}),s||(a?l.updateProps:l.initProps)(n,{shape:u},e,i,null);var h=e?t.baseAxis.model:null;(a?l.updateProps:l.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 M=["x","y","width","height"],A=["cx","cy","r","startAngle","endAngle"],I={cartesian2d:function(t){return!T(t,M)},polar:function(t){return!T(t,A)}},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,l){var u=e.getItemVisual(n,"style");l||t.setShape("r",r.get(["itemStyle","borderRadius"])||0),t.useStyle(u);var c=r.getShallow("cursor");c&&t.attr("cursor",c);var h=l?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(f.getLabelStatesModels)(r);Object(f.setLabelStyle)(t,p,{labelFetcher:o,labelDataIndex:n,defaultText:Object(b.getDefaultLabel)(o.getData(),n),inheritColor:u.fill,defaultOpacity:u.opacity,defaultOutsidePosition:h});var g=t.getTextContent();if(l&&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(f.setLabelValueAnimation)(g,p,o.getRawValue(n),(function(t){return Object(b.getDefaultInterpolatedLabel)(e,t)}));var m=r.getModel(["emphasis"]);Object(d.toggleHoverEmphasis)(t,m.get("focus"),m.get("blurScope"),m.get("disabled")),Object(d.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(){},D=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,l=0;l<n.length;l+=3)a[r]=s,a[i]=n[l+2],o[r]=n[l+r],o[i]=n[l+i],t.rect(o[0],o[1],a[0],a[1])},e}(i.default);function R(t,e,n,r){var i=t.getData(),o=i.getLayout("valueAxisHorizontal")?1:0,a=i.getLayout("largeDataIndices"),s=i.getLayout("size"),l=t.getModel("backgroundStyle"),u=i.getLayout("largeBackgroundPoints");if(u){var c=new D({shape:{points:u},incremental:!!r,silent:!0,z2:0});c.baseDimIdx=o,c.largeDataIndices=a,c.barWidth=s,c.useStyle(l.getItemStyle()),e.add(c),n&&n.push(c)}var d=new D({shape:{points:i.getLayout("largePoints")},incremental:!!r,z2:1});d.baseDimIdx=o,d.largeDataIndices=a,d.barWidth=s,e.add(d),d.useStyle(i.getVisual("style")),Object(h.getECData)(d).seriesIndex=t.seriesIndex,t.get("silent")||(d.on("mousedown",N),d.on("mousemove",N)),n&&n.push(d)}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=[],l=[],u=t.barWidth,c=0,h=o.length/3;c<h;c++){var d=3*c;if(l[r]=u,l[i]=o[d+2],s[r]=o[d+r],s[i]=o[d+i],l[i]<0&&(s[i]+=l[i],l[i]=-l[i]),e>=s[0]&&e<=s[0]+l[0]&&n>=s[1]&&n<=s[1]+l[1])return a[c]}return-1}(this,t.offsetX,t.offsetY);Object(h.getECData)(this).dataIndex=e>=0?e:null}),30,!1);function F(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(480),o=n(148),a=n(103),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(66),a=n(23),s=n(175),l=n(174),u=n(13),c=n(53),h=n(1294),d=n(215),f=n(27),p=n(370),g=n(665),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),l=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 d=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"===d?(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(u.setStatesStylesFromModel)(this,s);var f=(c.startAngle+c.endAngle)/2,g=o.get("selectedOffset"),v=Math.cos(f)*g,m=Math.sin(f)*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+(l.get("scale")&&l.get("scaleSize")||0)},Object(p.getSectorCornerRadius)(l.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(u.toggleHoverEmphasis)(this,l.get("focus"),l.get("blurScope"),l.get("disabled"))}},e.prototype._updateLabel=function(t,e,n){var r=e.getItemModel(n),o=r.getModel("labelLine"),a=e.getItemVisual(n,"style"),l=a&&a.fill,u=a&&a.opacity;Object(f.setLabelStyle)(this,Object(f.getLabelStatesModels)(r),{labelFetcher:e.hostModel,labelDataIndex:n,inheritColor:l,defaultOpacity:u,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(d.setLabelLineStyle)(this,Object(d.getLabelLineStatesModels)(r),{stroke:l,opacity:Object(i.retrieve3)(o.get(["lineStyle","opacity"]),u,1)})}},e}(l.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,u=this.group;if(!s&&o.count()>0){for(var c=o.getItemLayout(0),d=1;isNaN(c&&c.startAngle)&&d<o.count();++d)c=o.getItemLayout(d);c&&(i=c.startAngle)}if(this._emptyCircleSector&&u.remove(this._emptyCircleSector),0===o.count()&&t.get("showEmptyCircle")){var f=new l.default({shape:Object(g.getBasicPieLayout)(t,n)});f.useStyle(t.getModel("emptyCircleStyle").getItemStyle()),this._emptyCircleSector=f,u.add(f)}o.diff(s).add((function(t){var e=new v(o,t,i);o.setItemGraphicEl(t,e),u.add(e)})).update((function(t,e){var n=s.getItemGraphicEl(e);n.updateData(o,t,i),n.off("click"),u.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 d}));var r=n(6),i=n(52),o=n(0),a=n(215),s=n(310),l=Math.PI/180;function u(t,e,n,r,i,o,a,l,u,h){if(!(t.length<2)){for(var d=t.length,f=0;f<d;f++)if("outer"===t[f].position&&"labelLine"===t[f].labelAlignTo){var p=t[f].label.x-h;t[f].linePoints[1][0]+=p,t[f].label.x=h}Object(s.shiftLayoutOnY)(t,u,u+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 l=t[s],u=l.label.y>n?a:o,c=Math.abs(l.label.y-n);if(c>=u.maxY){var h=l.label.x-e-l.len2*i,d=r+l.len,f=Math.abs(h)<d?Math.sqrt(c*c/(1-h*h/d/d)):d;u.rB=f,u.maxY=c}u.list.push(l)}g(o),g(a)}(t)}function g(t){for(var o=t.rB,a=o*o,s=0;s<t.list.length;s++){var l=t.list[s],u=Math.abs(l.label.y-n),h=r+l.len,d=h*h,f=Math.sqrt((1-Math.abs(u*u/a))*d),p=e+(f+l.len2)*i,g=p-l.label.x;c(l,l.targetTextWidth-g*i,!0),l.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,l=s?s[1]+s[3]:0,u=i.overflow,c=o.width+(a?0:l);if(e<c||n){var h=o.height;if(u&&u.match("break")){r.setStyle("backgroundColor",null),r.setStyle("width",e-l);var d=r.getBoundingRect();r.setStyle("width",Math.ceil(d.width)),r.setStyle("backgroundColor",a)}else{var f=e-l,p=e<c?f:n?f>t.unconstrainedWidth?null:f: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 d(t){var e,n,s=t.getData(),d=[],f=!1,p=(t.get("minShowLabelAngle")||0)*l,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),l=a.shape,u=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(l.endAngle-l.startAngle)<p)return Object(o.each)(u.states,x),void(u.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}(u)){var M,A,I,j,k=(l.startAngle+l.endAngle)/2,P=Math.cos(k),L=Math.sin(k);e=l.cx,n=l.cy;var D="inside"===b||"inner"===b;if("center"===b)M=l.cx,A=l.cy,j="center";else{var R=(D?(l.r+l.r0)/2*P:l.r*P)+e,N=(D?(l.r+l.r0)/2*L:l.r*L)+n;if(M=R+3*P,A=N+3*L,!D){var F=R+P*(E+v-l.r),B=N+L*(E+v-l.r),z=F+(P<0?-1:1)*T;M="edge"===w?P<0?y+O:y+m-O:z+(P<0?-_:_),A=B,I=[[R,N],[F,B],[z,B]]}j=D?"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(f=!!U,u.x=M,u.y=A,u.rotation=U,u.setStyle({verticalAlign:"middle"}),D){u.setStyle({align:j});var W=u.states.select;W&&(W.x+=u.x,W.y+=u.y)}else{var Y=u.getBoundingRect().clone();Y.applyTransform(u.getComputedTransform());var $=(u.style.margin||0)+2.1;Y.y-=$/2,Y.height+=$,d.push({label:u,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:u.style.width})}a.setTextConfig({inside:D})}})),!f&&t.get("avoidLabelOverlap")&&function(t,e,n,r,i,o,a,s){for(var l=[],d=[],f=Number.MAX_VALUE,p=-Number.MAX_VALUE,g=0;g<t.length;g++){var v=t[g].label;h(t[g])||(v.x<e?(f=Math.min(f,v.x),l.push(t[g])):(p=Math.max(p,v.x),d.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?f-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(u(d,e,n,r,1,0,o,0,s,p),u(l,e,n,r,-1,0,o,0,s,f),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}}}(d,e,n,v,m,_,y,b);for(var w=0;w<d.length;w++){var O=d[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 M=O.linePoints;E||!M?(Object(o.each)(C.states,x),C.ignore=!0):(Object(a.limitTurnAngle)(M,O.minTurnAngle),Object(a.limitSurfaceAngle)(M,O.surfaceNormal,O.maxSurfaceAngle),C.setShape({points:M}),S.__hostTarget.textGuideLineConfig={anchor:new i.default(M[0][0],M[0][1])})}}}},function(t,e,n){"use strict";n.r(e);var r=n(5),i=n(246),o=n(0),a=n(10),s=n(6),l=n(139),u=n(294),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 u.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(){return Object(i.default)(this,{coordDimensions:["value"],encodeDefaulter:o.curry(l.makeSeriesEncodeForNameBased,this)})},e.prototype.getDataParams=function(e){var n=this.getData(),r=t.prototype.getDataParams.call(this,e),i=[];return n.each(n.mapDimension("value"),(function(t){i.push(t)})),r.percent=Object(s.getPercentWithPrecision)(i,e,n.hostModel.get("percentPrecision")),r.$vars.push("percent"),r},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(54).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(40).default);e.default=i},function(t,e,n){"use strict";n.r(e);var r=n(0),i=n(33),o=n(77),a=n(752),s=n(1300),l=n(10),u=n(311),c=n(113),h=n(667),d=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 l=t[+n[s]],u=l.model,d=l.scale;Object(c.isIntervalOrLogScale)(d)&&u.get("alignTicks")&&null==u.get("interval")?a.push(l):(Object(o.niceScaleExtent)(d,u),Object(c.isIntervalOrLogScale)(d)&&(e=l))}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"),l=Object(i.getLayoutRect)(a,{width:e.getWidth(),height:e.getHeight()});this._rect=l;var u=this._axesList;function c(){Object(r.each)(u,(function(t){var e=t.isHorizontal(),n=e?[0,l.width]:[0,l.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?l.x:l.y)}))}c(),s&&(Object(r.each)(u,(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"]);l[n]-=e[n]+r,"top"===t.position?l.y+=e.height+r:"left"===t.position&&(l.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",l.SINGLE_REFERRING).models[0],a=t.yAxisModel||i&&i.getReferringComponents("yAxis",l.SINGLE_REFERRING).models[0],s=t.gridModel,u=this._coordsList;if(i)e=i.coordinateSystem,Object(r.indexOf)(u,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,l=this,u={left:!1,right:!1,top:!1,bottom:!1},c={x:{},y:{}},h={x:0,y:0};if(e.eachComponent("xAxis",d("x"),this),e.eachComponent("yAxis",d("y"),this),!h.x||!h.y)return this._axesMap={},void(this._axesList=[]);function d(e){return function(n,r){if(f(n,t)){var i=n.get("position");"x"===e?"top"!==i&&"bottom"!==i&&(i=u.bottom?"top":"bottom"):"left"!==i&&"right"!==i&&(i=u.left?"right":"left"),u[i]=!0;var a=new s.default(e,Object(o.createScaleByModel)(n),[0,0],n.get("type"),i),d="category"===a.type;a.onBand=d&&n.get("boundaryGap"),a.inverse=n.get("inverse"),n.axis=a,a.model=n,a.grid=l,a.index=r,l._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,l=new a.default(s);l.master=i,l.model=t,i._coordsMap[s]=l,i._coordsList.push(l),l.addAxis(e),l.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(u.isCartesian2DSeries)(t)){var r=Object(u.findAxisModels)(t),i=r.xAxisModel,o=r.yAxisModel;if(!f(i,e)||!f(o,e))return;var a=this.getCartesian(i.componentIndex,o.componentIndex),s=t.getData(),l=a.getAxis("x"),c=a.getAxis("y");n(s,l),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(u.isCartesian2DSeries)(t)){var e=Object(u.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 f(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"]),l=a.get(["axisLine","onZeroAxisIndex"]);if(s){if(null!=l)g(o[l])&&(i=o[l]);else for(var u in o)if(o.hasOwnProperty(u)&&g(o[u])&&!r[c(o[u])]){i=o[u];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=d},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(149).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(148),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(54).default);e.default=o},function(t,e,n){"use strict";n.r(e);var r=n(5),i=n(292),o=n(1304),a=n(293),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(53).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(39),s=n(60),l=n(32),u=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 u},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,l=s&&i[0]<4,u=this.softClipShape;if(l)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)||(u&&!u.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 l=2*s,u=r[l]-o/2,c=r[l+1]-a/2;if(t>=u&&e>=c&&t<=u+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,l=1/0,u=-1/0,c=-1/0,h=0;h<n.length;){var d=n[h++],f=n[h++];s=Math.min(d,s),u=Math.max(d,u),l=Math.min(f,l),c=Math.max(f,c)}t=this._rect=new i.default(s-o/2,l-a/2,u-s+o,c-l+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 l=this._create();l.startIndex=t.start,l.endIndex=t.end,l.incremental=!0,l.setShape({points:i}),this._setCommon(l,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 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"),u=a&&a.fill;u&&t.setColor(u);var c=Object(l.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(1308),i=n(1309),o=n(1306);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(1307),i=n(209),o=n(6),a=n(0),s=n(667),l=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,l=0;l<this._indicatorAxes.length;l++){var u=this._indicatorAxes[l],c=Math.abs(o-u.angle);c<a&&(i=u,s=l,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 l=t.get("radius");(Object(a.isString)(l)||Object(a.isNumber)(l))&&(l=[0,l]),this.r0=o.parsePercent(l[0],s),this.r=o.parsePercent(l[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"),l=new i.default;l.setExtent(0,o),l.setInterval(1),Object(a.each)(n,(function(t,e){Object(s.alignScaleTicks)(t.scale,t.model,l)}))},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=l},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(149).default);e.default=i},function(t,e,n){"use strict";n.r(e);var r=n(5),i=n(0),o=n(668),a=n(57),s=n(245),l=n(40),u=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"),l=this.get("axisLabel"),u=this.get("axisName"),c=this.get(["axisName","show"]),h=this.get(["axisName","formatter"]),d=this.get("axisNameGap"),f=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=u;null!=p.color&&(g=i.defaults({color:p.color},u));var v=i.merge(i.clone(p),{boundaryGap:t,splitNumber:e,scale:n,axisLine:r,axisTick:o,axisLabel:l,name:p.text,showName:c,nameLocation:"end",nameGap:d,nameTextStyle:g,triggerEvent:f},!1);if(c||(v.name=""),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"}},u.axisLine),axisLabel:c(u.axisLabel,!1),axisTick:c(u.axisTick,!1),splitLine:c(u.splitLine,!0),splitArea:c(u.splitArea,!0),indicator:[]},e}(l.default);e.default=h},function(t,e,n){"use strict";n.r(e);var r=n(5),i=n(0),o=n(170),a=n(233),s=n(443),l=n(175),u=n(165),c=n(14),h=n(62),d=["axisLine","axisTickLabel","axisName"],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.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(d,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"),d=o.getModel("lineStyle"),f=h.getModel("areaStyle"),p=o.get("show"),g=h.get("show"),v=d.get("color"),m=f.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)}))})),M=[];for(C=0;C<=E;C++){for(var A=[],I=0;I<n.length;I++)A.push(T[I][C]);if(A[0]&&A.push(A[0].slice()),p)_[P(_,y,C)].push(new l.default({shape:{points:A}}));if(g&&M)x[P(x,b,C-1)].push(new u.default({shape:{points:A.concat(M)}}));M=A.slice().reverse()}}var j=d.getLineStyle(),k=f.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=f},function(t,e,n){"use strict";n.r(e);var r=n(5),i=n(14),o=n(165),a=n(175),s=n(23),l=n(39),u=n(13),c=n(0),h=n(60),d=n(53),f=n(27),p=n(106),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,d=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 l=0;l<n.length-1;l++){var u=m(o,a);u&&(u.__dimIdx=l,e[l]?(u.setPosition(e[l]),i[s?"initProps":"updateProps"](u,{x:n[l][0],y:n[l][1]},t,a)):u.setPosition(n[l]),r.add(u))}}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,u={shape:{points:n}};r.shape.points=b(n),i.shape.points=b(n),s.initProps(r,u,t,e),s.initProps(i,u,t,e);var c=new l.default,h=new l.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),l={shape:{points:g.getItemLayout(e)}};l.shape.points&&(y(i.shape.points,l.shape.points,a,g,e,!1),Object(s.saveOldStyle)(o),Object(s.saveOldStyle)(i),s.updateProps(i,l,t),s.updateProps(o,l,t),g.setItemGraphicEl(e,r))})).remove((function(t){d.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;d.add(t),r.useStyle(c.defaults(n.getModel("lineStyle").getLineStyle(),{fill:"none",stroke:s})),Object(u.setStatesStylesFromModel)(r,n,"lineStyle"),Object(u.setStatesStylesFromModel)(i,n,"areaStyle");var l=n.getModel("areaStyle"),h=l.isEmpty()&&l.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(l.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(f.setLabelStyle)(t,Object(f.getLabelStatesModels)(n),{labelFetcher:g.hostModel,labelDataIndex:e,labelDimIndex:t.__dimIdx,defaultText:i,inheritColor:s,defaultOpacity:a.opacity})})),Object(u.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}(d.default);e.default=g},function(t,e,n){"use strict";n.r(e);var r=n(5),i=n(54),o=n(246),a=n(0),s=n(294),l=n(75),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.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,u=Object(l.retrieveVisualColorForTooltipMarker)(this,t);return Object(l.createTooltipMarkup)("section",{header:s,sortBlocks:!0,blocks:a.map(i,(function(e){var n=r.get(r.mapDimension(e.dim),t);return Object(l.createTooltipMarkup)("nameValue",{markerType:"subItem",markerColor:u,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=u},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(837),i=n(39),o=n(70),a=n(0),s=n(35),l=n(522),u=n(309),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(l.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 u.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 l=new i.default;l.add(n),l.isGeoSVGGraphicRoot=!0;var u=e.width,h=e.height,d=e.viewBoxRect,f=this._boundingRect;if(!f){var p=void 0,g=void 0,v=void 0,m=void 0;if(null!=u?(p=0,v=u):d&&(p=d.x,v=d.width),null!=h?(g=0,m=h):d&&(g=d.y,m=d.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)}f=this._boundingRect=new s.default(p,g,v,m)}if(d){var b=Object(r.makeViewBoxTransform)(d,f);n.scaleX=n.scaleY=b.scale,n.x=b.x,n.y=b.y}l.setClipPath(new o.default({shape:f.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:l,boundingRect:f,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 u}));var r=n(0),i=n(423),o=n(1316),a=n(1317),s=n(1318),l=n(35),u=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 l.default(0,0,0,0),regionsMap:o}},t.prototype._parseToRegions=function(t){var e,n=this._mapName,l=this._geoJSON;try{e=l?Object(i.default)(l,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 u}));for(var r=n(0),i=n(309),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 l=0;l<a[s].length;l++)a[s][l][0]/=10.5,a[s][l][1]/=-14,a[s][l][0]+=o[0],a[s][l][1]+=o[1];function u(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(10),a=n(40),s=n(57),l=n(669),u=n(195),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=u.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=l.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(670),o=n(62),a=n(32),s=n(338),l=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=l},function(t,e,n){"use strict";n.r(e);var r=n(5),i=n(233),o=n(670),a=n(53),s=n(27),l=n(13),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.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 u=a.point,c=a.offset,h=new i.default({style:{fill:t.getData().getVisual("style").fill},shape:{cx:u[0]+9*c,cy:u[1],r:3},silent:!0,z2:8+(c?0:l.Z2_EMPHASIS_LIFT+1)});if(!c){var d=t.mainSeries.getData(),f=r.getName(n),p=d.indexOfName(f),g=r.getItemModel(n),v=g.getModel("label"),m=d.getItemGraphicEl(p);Object(s.setLabelStyle)(h,Object(s.getLabelStatesModels)(g),{labelFetcher:{getFormattedLabel:function(e,n){return t.getFormattedLabel(p,n)}},defaultText:f}),h.disableLabelAnimation=!0,v.get("position")||h.setTextConfig({position:"bottom"}),m.onHoverStateChange=function(t){Object(l.setStatesFlag)(h,t)}}o.add(h)}}}))},e.type="map",e}(a.default);e.default=u},function(t,e,n){"use strict";n.r(e);var r=n(5),i=n(0),o=n(246),a=n(54),s=n(195),l=n(139),u=n(75),c=n(60),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(l.makeSeriesEncodeForNameBased,this)}),n=i.createHashMap(),r=[],a=0,u=e.count();a<u;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=[],l=0;l<a.length;l++){var c=a[l].originalData.indexOfName(o),h=r.mapDimension("value");isNaN(a[l].originalData.get(h,c))||s.push(a[l].name)}return Object(u.createTooltipMarkup)("section",{header:s.join(", "),noHeader:!s.length,blocks:[Object(u.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,l=n.dataToPoint(a.getCenter());o[i]=s+1,r.setItemLayout(e,{point:l,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,l=1/0,u=-1/0,c=o[a].length,h=0;h<c;h++)l=Math.min(l,o[a][h]),u=Math.max(u,o[a][h]),s+=o[a][h];return r="min"===i?l:"max"===i?u:"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(39),a=n(23),s=n(444),l=n(32),u=n(332),c=n(238),h=n(232),d=n(334),f=n(340),p=n(296),g=n(356),v=n(6),m=n(53),y=n(36),b=n(13),_=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,l="TB"===s||"BT"===s?0:1,u=1-l,c=Object(v.parsePercent)(e.forkPosition,1),h=[];h[l]=i[l],h[u]=i[u]+(a[u]-i[u])*c,t.moveTo(i[0],i[1]),t.lineTo(h[0],h[1]),t.moveTo(o[0],o[1]),h[l]=o[l],t.lineTo(h[0],h[1]),h[l]=a[l],t.lineTo(h[0],h[1]),t.lineTo(a[0],a[1]);for(var d=1;d<r-1;d++){var f=n[d];t.moveTo(f[0],f[1]),h[l]=f[l],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),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){var e=t.getData(),n=[];e.each((function(t){var r=e.getItemLayout(t);!r||isNaN(r.x)||isNaN(r.y)||n.push([+r.x,+r.y])}));var r=[],i=[];h.fromPoints(n,r,i);var o=this._min,a=this._max;i[0]-r[0]==0&&(r[0]=o?o[0]:r[0]-1,i[0]=a?a[0]:i[0]+1),i[1]-r[1]==0&&(r[1]=o?o[1]:r[1]-1,i[1]=a?a[1]:i[1]+1);var s=t.coordinateSystem=new d.default;s.zoomLimit=t.get("scaleLimit"),s.setBoundingRect(r[0],r[1],i[0]-r[0],i[1]-r[1]),s.setCenter(t.get("center")),s.setZoom(t.get("zoom")),this.group.attr({x:s.x,y:s.y,scaleX:s.scaleX,scaleY:s.scaleY}),this._min=r,this._max=i},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){f.updateViewOnPan(o,e.dx,e.dy),n.dispatchAction({seriesId:t.id,type:"treeRoam",dx:e.dx,dy:e.dy})})).on("zoom",(function(e){f.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),d=h.getModel(),f=h.getVisual("style").fill,p=!1===h.isExpand&&0!==h.children.length?f:"#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 u.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,A=void 0;if(w.x===C.x&&!0===h.isExpand){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),(A=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?(A=w.x<C.x)&&(T-=Math.PI):(A=w.x>C.x)||(T-=Math.PI);var j=A?"left":"right",k=d.getModel("label"),P=k.get("rotate"),L=P*(Math.PI/180),D=O.getTextContent();D&&(O.setTextConfig({position:k.get("position")||j,rotation:null==P?-T:L,origin:"center"}),D.setStyle("verticalAlign","middle"))}var R=d.get(["emphasis","focus"]),N="ancestor"===R?h.getAncestorsIndices():"descendant"===R?h.getDescendantIndices():null;N&&(Object(l.getECData)(n).focus=N),function(t,e,n,r,o,l,u,c){var h=e.getModel(),d=t.get("edgeShape"),f=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"===d)e.parentNode&&e.parentNode!==n&&(y||(y=r.__edge=new s.default({shape:M(f,p,g,o,o)})),a.updateProps(y,{shape:M(f,p,g,l,u)},t));else if("polyline"===d)if("orthogonal"===f){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:[u.x,u.y],childPoints:[[u.x,u.y]],orient:p,forkPosition:v}})),a.updateProps(y,{shape:{parentPoint:[u.x,u.y],childPoints:w}},t)}}else 0;y&&(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,l=o.sourceLayout,u=e.getItemGraphicEl(t.dataIndex);if(u){var c=e.getItemGraphicEl(s.dataIndex).__edge,h=u.__edge||(!1===s.isExpand||1===s.children.length?c:void 0),d=r.get("edgeShape"),f=r.get("layout"),p=r.get("orient"),g=r.get(["lineStyle","curveness"]);h&&("curve"===d?a.removeElement(h,{shape:M(f,p,g,l,l),style:{opacity:0}},r,{cb:function(){n.remove(h)},removeOpt:i}):"polyline"===d&&"orthogonal"===r.get("layout")&&a.removeElement(h,{shape:{parentPoint:[l.x,l.y],childPoints:[[l.x,l.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,l={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:l}),n.fadeOut(null,t.hostModel,{fadeLabel:!0,animation:l}),o.children.forEach((function(e){C(e,t,r,i,l)})),C(o,t,r,i,l)}function M(t,e,n,r,i){var o,a,s,l,u,h,d,f;if("radial"===t){u=r.rawX,d=r.rawY,h=i.rawX,f=i.rawY;var p=Object(c.radialCoordinate)(u,d),g=Object(c.radialCoordinate)(u,d+(f-d)*n),v=Object(c.radialCoordinate)(h,f+(d-f)*n),m=Object(c.radialCoordinate)(h,f);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 u=r.x,d=r.y,h=i.x,f=i.y,"LR"!==e&&"RL"!==e||(o=u+(h-u)*n,a=d,s=h+(u-h)*n,l=f),"TB"!==e&&"BT"!==e||(o=u,a=d+(f-d)*n,s=h,l=f+(d-f)*n),{x1:u,y1:d,x2:h,y2:f,cpx1:o,cpy1:a,cpx2:s,cpy2:l}}e.default=w},function(t,e,n){"use strict";n.r(e);var r=n(5),i=n(54),o=n(446),a=n(57),s=n(75),l=n(141),u=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 l=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<=l})),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(),l=o.name;o&&o!==i;)l=o.parentNode.name+"."+l,o=o.parentNode;return Object(s.createTooltipMarkup)("nameValue",{name:l,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(l.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=u},function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return o}));var r=n(413),i=n(238);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,l=null;"radial"===o?(a=2*Math.PI,s=Math.min(n.height,n.width)/2,l=Object(i.separation)((function(t,e){return(t.parentNode===e.parentNode?1:2)/t.depth}))):(a=n.width,s=n.height,l=Object(i.separation)());var u=t.getData().tree.root,c=u.children[0];if(c){Object(i.init)(u),Object(r.eachAfter)(c,i.firstWalk,l),u.hierNode.modifier=-c.hierNode.prelim,Object(r.eachBefore)(c,i.secondWalk);var h=c,d=c,f=c;Object(r.eachBefore)(c,(function(t){var e=t.getLayout().x;e<h.getLayout().x&&(h=t),e>d.getLayout().x&&(d=t),t.depth>f.depth&&(f=t)}));var p=h===d?1:l(h,d)/2,g=p-h.getLayout().x,v=0,m=0,y=0,b=0;if("radial"===o)v=a/(d.getLayout().x+p+g),m=s/(f.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/(d.getLayout().x+p+g),v=a/(f.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/(d.getLayout().x+p+g),m=s/(f.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(445);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){e.eachComponent({mainType:"series",subType:"tree",query:t},(function(e){var n=e.coordinateSystem,i=Object(r.updateCenterAndZoom)(n,t);e.setCenter&&e.setCenter(i.center),e.setZoom&&e.setZoom(i.zoom)}))}))}},function(t,e,n){"use strict";n.r(e);var r=n(5),i=n(0),o=n(54),a=n(446),s=n(57),l=n(141),u=n(10),c=n(75),h=n(672),d=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={},l=new s.default({itemStyle:o},this,e);r=t.levels=function(t,e){var n,r,o=Object(u.normalizeToArray)(e.get("color")),a=Object(u.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 l=t[0]||(t[0]={});n||(l.color=o.slice());!r&&a&&(l.decal=a.slice());return t}(r,e);var c=i.map(r||[],(function(t){return new s.default(t,l,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||l,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(l.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"}}},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=d},function(t,e,n){"use strict";n.r(e);var r=n(5),i=n(0),o=n(39),a=n(70),s=n(32),l=n(13),u=n(169),c=n(141),h=n(1333),d=n(296),f=n(35),p=n(41),g=n(1332),v=n(224),m=n(53),y=n(97),b=n(10),_=n(48),x=n(27),w=o.default,O=a.default,S=10*l.Z2_EMPHASIS_LIFT,C=2*l.Z2_EMPHASIS_LIFT,E=3*l.Z2_EMPHASIS_LIFT,T=Object(v.default)([["fill","color"],["stroke","strokeColor"],["lineWidth","strokeWidth"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"]]),M=function(t){var e=T(t);return e.stroke=e.fill=e.lineWidth=null,e},A=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,l=t.layoutInfo,u=!this._oldTree,h=this._storage,d="treemapRootToNode"===s&&a&&h?{rootNodeGroup:h.nodeGroup[a.node.getRawIndex()],direction:r.direction}:null,f=this._giveContainerGroup(l),p=t.get("animation"),g=this._doRender(f,t,d);!p||u||s&&"treemapZoomToNode"!==s&&"treemapRootToNode"!==s?g.renderFinally():this._doAnimation(f,g,t,d),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:[]},d=this._storage,f=[];function p(t,r,a,u){return function(t,e,n,r,a,u,c,h,d,f){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,D=p.upperHeight,R=L&&L.length,N=v.getModel("itemStyle"),F=v.getModel(["emphasis","itemStyle"]),B=v.getModel(["blur","itemStyle"]),z=v.getModel(["select","itemStyle"]),V=N.get("borderRadius")||0,U=Q("nodeGroup",w);if(!U)return;if(d.add(U),U.x=p.x||0,U.y=p.y||0,U.markRedraw(),A(U).nodeWidth=m,A(U).nodeHeight=_,p.isAboveViewRoot)return U;var G=Q("background",O,f,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,u=M(N);u.fill=a;var h=T(F);h.fill=F.get("borderColor");var d=T(B);d.fill=B.get("borderColor");var f=T(z);if(f.fill=z.get("borderColor"),r){var p=m-2*I;K(n,a,o.opacity,{x:I,y:0,width:p,height:D})}else n.removeTextContent();n.setStyle(u),n.ensureState("emphasis").style=h,n.ensureState("blur").style=d,n.ensureState("select").style=f,Object(l.setDefaultStateProxy)(n)}e.add(n)}(U,G,R&&p.upperLabelHeight);var H=v.getModel("emphasis"),W=H.get("focus"),Y=H.get("blurScope"),$=H.get("disabled"),X="ancestor"===W?c.getAncestorsIndices():"descendant"===W?c.getDescendantIndices():W;if(R)Object(l.isHighDownDispatcher)(U)&&Object(l.setAsHighDownDispatcher)(U,!1),G&&(Object(l.setAsHighDownDispatcher)(G,!$),g.setItemGraphicEl(c.dataIndex,G),Object(l.enableHoverFocus)(G,X,Y));else{var q=Q("content",O,f,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"),u=a.fill,h=M(N);h.fill=u,h.decal=a.decal;var d=T(F),f=T(B),p=T(z);K(n,u,a.opacity,null),n.setStyle(h),n.ensureState("emphasis").style=d,n.ensureState("blur").style=f,n.ensureState("select").style=p,Object(l.setDefaultStateProxy)(n)}e.add(n)}(U,q),G.disableMorphing=!0,G&&Object(l.isHighDownDispatcher)(G)&&Object(l.setAsHighDownDispatcher)(G,!1),Object(l.setAsHighDownDispatcher)(U,!$),g.setItemGraphicEl(c.dataIndex,U),Object(l.enableHoverFocus)(U,X,Y)}return U;function Z(t){!t.invisible&&u.push(t)}function K(e,n,r,o){var a=v.getModel(o?"upperLabel":"label"),s=Object(b.convertOptionIdName)(v.get("name"),null),l=a.getShallow("show");Object(x.setLabelStyle)(e,Object(x.getLabelStatesModels)(v,o?"upperLabel":"label"),{defaultText:l?s:null,inheritColor:n,defaultOpacity:r,labelFetcher:t,labelDataIndex:c.dataIndex});var u=e.getTextContent();if(u){var h=u.style,d=Object(i.normalizeCssArray)(h.padding||0);o&&(e.setTextConfig({layoutRect:o}),u.disableLabelLayout=!0),u.beforeUpdate=function(){var t=Math.max((o?o.width:e.shape.width)-d[1]-d[3],0),n=Math.max((o?o.height:e.shape.height)-d[0]-d[2],0);h.width===t&&h.height===n||u.setStyle({width:t,height:n})},h.truncateMinChar=2,h.lineOverflow="truncate",J(h,o,p);var f=u.getState("emphasis");J(f?f.style:null,o,p)}}function J(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 Q(t,s,l,u){var h=null!=P&&n[t][P],d=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)}(d,h)):j||((h=new s)instanceof y.default&&(h.z2=function(t,e){return t*S+e}(l,u)),function(t,e){var n=t[k]={},i=c.parentNode,s=e instanceof o.default;if(i&&(!r||"drillDown"===r.direction)){var l=0,u=0,h=a.background[i.getRawIndex()];!r&&h&&h.oldShape&&(l=h.oldShape.width,u=h.oldShape.height),s?(n.oldX=0,n.oldY=u):n.oldShape={x:l,y:u,width:0,height:0}}n.fadein=!s}(d,h)),e[t][k]=h}}(e,h,d,n,c,f,t,r,a,u)}!function t(e,n,r,o,a){o?(n=e,Object(i.each)(e,(function(t,e){!t.isRemoved()&&l(e,e)}))):new u.default(n,e,s,s).add(l).update(l).remove(Object(i.curry)(l,null)).execute();function s(t){return t.getId()}function l(i,s){var l=null!=i?e[i]:null,u=null!=s?n[s]:null,c=p(l,u,r,a);c&&t(l&&l.viewChildren||[],u&&u.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),A(t).willDelete=!0)}))})),e}(d);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)(f,(function(t){t.invisible=!0,t.dirty()}))}}},e.prototype._doAnimation=function(t,e,n,r){var a=n.get("animationDurationUpdate"),s=n.get("animationEasing"),l=(Object(i.isFunction)(a)?0:a)||0,u=(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=A(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,l,0,u)}}))})),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,l,0,u))}))}),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 d.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 f.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 f.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(39),i=n(165),o=n(66),a=n(32),s=n(33),l=n(141),u=n(0),c=n(10),h=n(13),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"),l=a.getModel("textStyle"),u={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,u,l),this._renderContent(t,u,a,l,r),s.positionElement(o,u.pos,u.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){for(var l=0,c=e.emptyItemWidth,d=t.get(["breadcrumb","height"]),g=s.getAvailableSize(e.pos,e.box),v=e.totalWidth,m=e.renderList,y=m.length-1;y>=0;y--){var b=m[y],_=b.node,x=b.width,w=b.text;v>g.width&&(v-=x-c,x=c,w=null);var O=new i.default({shape:{points:f(l,0,x,d,y===m.length-1,0===y)},style:Object(u.defaults)(n.getItemStyle(),{lineJoin:"bevel"}),textContent:new o.default({style:{text:w,fill:r.getTextColor(),font:r.getFont()}}),textConfig:{position:"inside"},z2:1e4*h.Z2_EMPHASIS_LIFT,onclick:Object(u.curry)(a,_)});O.disableLabelAnimation=!0,this.group.add(O),p(O,t,_),l+=x+8}},t.prototype.remove=function(){this.group.removeAll()},t}();function f(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 p(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(l.wrapTreePathInfo)(n,e)}}e.default=d},function(t,e,n){"use strict";n.r(e);var r=n(127),i=n(0),o=n(71),a=n(10),s=Object(a.makeInner)();function l(t){var e=u(t,"color");if(e){var n=u(t,"colorAlpha"),r=u(t,"colorSaturation");return r&&(e=Object(o.modifyHSL)(e,null,null,r)),n&&(e=Object(o.modifyAlpha)(e,n)),e}}function u(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,u){var h=e.getModel(),d=e.getLayout(),f=e.hostTree.data;if(!d||d.invisible||!d.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,u),m=f.ensureUniqueItemVisual(e.dataIndex,"style"),y=g.get("borderColor"),b=g.get("borderColorSaturation");null!=b&&(p=l(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 l=c(e,"color")||null!=o.color&&"none"!==o.color&&(c(e,"colorAlpha")||c(e,"colorSaturation"));if(!l)return;var u=e.get("visualMin"),h=e.get("visualMax"),d=n.dataExtent.slice();null!=u&&u<d[0]&&(d[0]=u),null!=h&&h>d[1]&&(d[1]=h);var f=e.get("colorMappingBy"),p={type:l.name,dataExtent:d,visual:l.range};"color"!==p.type||"index"!==f&&"id"!==f?p.mappingMethod="linear":(p.mappingMethod="category",p.loop=!0);var g=new r.default(p);return s(g).drColorMappingBy=f,g}(0,h,d,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 l=Object(i.extend)({},e);if(o){var u=o.type,c="color"===u&&s(o).drColorMappingBy,h="index"===c?r:"id"===c?a.mapIdToIndex(n.getId()):n.getValue(t.get("visualDimension"));l[u]=o.mapValueToVisual(h)}return l}(h,v,e,n,x,u);t(e,r,a,u)}}))}else p=l(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(141),l=Math.max,u=Math.min,c=r.retrieve,h=r.each,d=["itemStyle","borderWidth"],f=["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 u=t.area*t.area,c=e*e*n;return u?l(c*r/u,u/(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]],d=e?t.area/e:0;(i||d>n[c[a]])&&(d=n[c[a]]);for(var f=0,p=t.length;f<p;f++){var g=t[f],v={},m=d?g.getLayout().area/d:0,y=v[c[a]]=l(d-2*r,0),b=n[s[o]]+n[c[o]]-h,_=f===p-1||b<m?b:m,x=v[c[o]]=l(_-2*r,0);v[s[a]]=n[s[a]]+u(r,y/2),v[s[o]]=h+u(r,x/2),h+=_,g.setLayout(v,!0)}n[s[a]]+=d,n[c[a]]-=d}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,M=t.getViewRoot(),A=s.getPathToRoot(M);if("treemapMove"!==C){var I="treemapZoomToNode"===C?function(t,e,n,r,i){var a,s=(e||{}).node,l=[r,i];if(!s||s===n)return l;var u=r*i,c=u*t.option.zoomToNodeRatio;for(;a=s.parentNode;){for(var h=0,f=a.children,p=0,g=f.length;p<g;p++)h+=f[p].getValue();var v=s.getValue();if(0===v)return l;c*=h/v;var m=a.getModel(),b=m.get(d),_=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<u&&(c=u);var x=Math.pow(c/u,.5);return[r*x,i*x]}(t,E,M,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};M.hostTree.clearLayouts();var P={x:0,y:0,width:I[0],height:I[1],area:I[0]*I[1]};M.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(d),b=p.get(f)/2,_=y(p),x=Math.max(g,_),w=g-b,O=x-b;e.setLayout({borderWidth:g,upperHeight:x,upperLabelHeight:_},!0),a=l(a-2*w,0),s=l(s-w-O,0);var S=a*s,C=function(t,e,n,i,o,a){var s=t.children||[],l=i.sort;"asc"!==l&&"desc"!==l&&(l=null);var u=null!=i.leafDepth&&i.leafDepth<=a;if(o&&!u)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()})),l);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,l);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,l=a-1;l>=0;l--){var u=i["asc"===r?a-l-1:l].getValue();u/n*e<o&&(s=l,n-=u)}return"asc"===r?i.splice(0,a-s):i.splice(s,a-s),n}(e,n,c.sum,l,s),0===c.sum)return t.viewChildren=[];for(var d=0,f=s.length;d<f;d++){var p=s[d].getValue()/c.sum*n;s[d].setLayout({area:p})}u&&(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=u(a,s),M=1/0,A=[];A.area=0;for(var I=0,j=C.length;I<j;){var k=C[I];A.push(k),A.area+=k.getLayout().area;var P=v(A,T,n.squareRatio);P<=M?(I++,M=P):(A.area-=A.pop().getLayout().area,m(A,T,E,b,!1),T=u(E.width,E.height),A.length=A.area=0,M=1/0)}A.length&&m(A,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)}(M,k,!1,0),P=M.getLayout(),h(A,(function(t,e){var n=(A[e+1]||M).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 l=s.getLayout();a[0]+=l.x,a[1]+=l.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(),l=r[a],u=l&&l===e;if(l&&!u||a===r.length&&e!==o)return;e.setLayout({isInView:!0,invisible:!u&&!n.intersect(s),isAboveViewRoot:u},!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),A,M,0)}}},function(t,e,n){"use strict";n.r(e),n.d(e,"installTreemapAction",(function(){return a}));var r=n(141),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(0),o=n(292),a=n(447),s=n(296),l=n(340),u=n(356),c=n(23),h=n(754),d=n(235),f=n(53),p=n(32);function g(t){return"view"===t.type}var v=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 o.default,r=new a.default,i=this.group;this._controller=new s.default(e.getZr()),this._controllerHost={target:i},i.add(n.group),i.add(r.group),this._symbolDraw=n,this._lineDraw=r,this._firstRender=!0},e.prototype.render=function(t,e,n){var r=this,o=t.coordinateSystem;this._model=t;var a=this._symbolDraw,s=this._lineDraw,l=this.group;if(g(o)){var u={x:o.x,y:o.y,scaleX:o.scaleX,scaleY:o.scaleY};this._firstRender?l.attr(u):c.updateProps(l,u,t)}Object(h.default)(t.getGraph(),Object(d.getNodeGlobalScale)(t));var f=t.getData();a.updateData(f);var v=t.getEdgeData();s.updateData(v),this._updateNodeAndLinkScale(),this._updateController(t,e,n),clearTimeout(this._layoutTimeout);var m=t.forceLayout,y=t.get(["force","layoutAnimation"]);m&&this._startForceLayoutIteration(m,y),f.graph.eachNode((function(t){var e=t.dataIndex,n=t.getGraphicEl(),i=t.getModel();if(n){n.off("drag").off("dragend");var o=i.get("draggable");o&&n.on("drag",(function(){m&&(m.warmUp(),!r._layouting&&r._startForceLayoutIteration(m,y),m.setFixed(e),f.setItemLayout(e,[n.x,n.y]))})).on("dragend",(function(){m&&m.setUnfixed(e)})),n.setDraggable(o&&!!m),"adjacency"===i.get(["emphasis","focus"])&&(Object(p.getECData)(n).focus=t.getAdjacentDataIndices())}})),f.graph.eachEdge((function(t){var e=t.getGraphicEl(),n=t.getModel().get(["emphasis","focus"]);e&&"adjacency"===n&&(Object(p.getECData)(e).focus={edge:[t.dataIndex],node:[t.node1.dataIndex,t.node2.dataIndex]})}));var b="circular"===t.get("layout")&&t.get(["circular","rotateLabel"]),_=f.getLayout("cx"),x=f.getLayout("cy");f.eachItemGraphicEl((function(t,e){var n=f.getItemModel(e).get(["label","rotate"])||0,r=t.getSymbolPath();if(b){var o=f.getItemLayout(e),a=Math.atan2(o[1]-x,o[0]-_);a<0&&(a=2*Math.PI+a);var s=o[0]<_;s&&(a-=Math.PI);var l=s?"left":"right";r.setTextConfig({rotation:-a,position:l,origin:"center"});var u=r.ensureState("emphasis");i.extend(u.textConfig||(u.textConfig={}),{position:l})}else r.setTextConfig({rotation:n*=Math.PI/180})})),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)})),g(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){l.updateViewOnPan(o,e.dx,e.dy),n.dispatchAction({seriesId:t.id,type:"graphRoam",dx:e.dx,dy:e.dy})})).on("zoom",(function(e){l.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(h.default)(t.getGraph(),Object(d.getNodeGlobalScale)(t)),r._lineDraw.updateLayout(),n.updateLabelLayout()}))):i.disable()},e.prototype._updateNodeAndLinkScale=function(){var t=this._model,e=t.getData(),n=Object(d.getNodeGlobalScale)(t);e.eachItemGraphicEl((function(t,e){t&&t.setSymbolScale(n)}))},e.prototype.updateLayout=function(t){Object(h.default)(t.getGraph(),Object(d.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=v},function(t,e,n){"use strict";n.r(e);var r=n(5),i=n(144),o=n(444),a=n(36),s=n(20),l=i.default.prototype,u=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 d=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)?l.buildPath.call(this,t,e):u.buildPath.call(this,t,e)},e.prototype.pointAt=function(t){return h(this.shape)?l.pointAt.call(this,t):u.pointAt.call(this,t)},e.prototype.tangentAt=function(t){var e=this.shape,n=h(e)?[e.x2-e.x1,e.y2-e.y1]:u.tangentAt.call(this,t);return s.normalize(n,n)},e}(a.default);e.default=d},function(t,e,n){"use strict";n.r(e);var r=n(5),i=n(109),o=n(0),a=n(10),s=n(57),l=n(673),u=n(294),c=n(54),h=n(75),d=n(660),f=n(335),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 u.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(f.initCurvenessList)(this);var a=Object(l.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(f.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),l=[];return null!=a&&l.push(a),null!=s&&l.push(s),Object(h.createTooltipMarkup)("nameValue",{name:l.join(" > "),value:i.value,noValue:null==i.value})}return Object(d.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,l=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 u=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),l[u]=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 l=[e];l.length;){var u=l.shift(),c=u[o];for(s=0;s<c.length;s++){var h=c[s],d=h.node1===u?h.node2:h.node1;if(!d.__visited){if(t.call(r,d,u))return;l.push(d),d.__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 l(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,l("hostGraph","data")),r.mixin(s,l("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 l=["symbol","symbolSize","symbolKeepAspect"],u=0;u<l.length;u++){var c=a.getShallow(l[u],!0);null!=c&&n.setItemVisual(r,l[u],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 l=["symbol","symbolSize","symbolKeepAspect"],u=0;u<l.length;u++)i.setItemVisual(t,l[u],n.getItemVisual(e,l[u]))}}))}))}},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)),l=i(o.getShallow("symbolSize",!0)),u=o.getModel("lineStyle").getLineStyle(),c=n.ensureUniqueItemVisual(t,"style");switch(Object(r.extend)(c,u),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]),l[0]&&a.setVisual("fromSymbolSize",l[0]),l[1]&&a.setVisual("toSymbolSize",l[1])}))}))}},function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return o}));var r=n(0),i=n(538);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 l=[],u=!1,c=0;c<a.length;c++){var h=o.get(a[c],s);isNaN(h)||(u=!0),l.push(h)}u?o.setItemLayout(s,n.dataToPoint(l)):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(674);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(1347),i=n(538),o=n(674),a=n(6),s=n(20),l=n(0),u=n(335);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,d=c.edgeData,f=t.getModel("force"),p=f.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=d.getDataExtent("value"),m=f.get("repulsion"),y=f.get("edgeLength"),b=l.isArray(m)?m:[m,m],_=l.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=d.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=l.retrieve3(r.getModel().get(["lineStyle","curveness"]),-Object(u.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:f.get("gravity"),friction:f.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],l=c.getEdgeByIndex(i),u=a.n1.p,d=a.n2.p,f=l.getLayout();(f=f?f.slice():[])[0]=f[0]||[],f[1]=f[1]||[],s.copy(f[0],u),s.copy(f[1],d),+a.curveness&&(f[2]=[(u[0]+d[0])/2-(u[1]-d[1])*a.curveness,(u[1]+d[1])/2-(d[0]-u[0])*a.curveness]),l.setLayout(f)}})),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(20),i=r.scaleAndAdd;function o(t,e,n){for(var o=t,a=e,s=n.rect,l=s.width,u=s.height,c=[s.x+l/2,s.y+u/2],h=null==n.gravity?.1:n.gravity,d=0;d<o.length;d++){var f=o[d];f.p||(f.p=r.create(l*(Math.random()-.5)+c[0],u*(Math.random()-.5)+c[1])),f.pp=r.clone(f.p),f.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 l=a[s];if(!l.ignoreForceLayout){var u=l.n1,d=l.n2;r.sub(e,d.p,u.p);var f=r.len(e)-l.d,v=d.w/(u.w+d.w);isNaN(v)&&(v=0),r.normalize(e,e),!u.fixed&&i(u.p,u.p,e,v*f*m),!d.fixed&&i(d.p,d.p,e,-(1-v)*f*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++){u=o[s];for(var y=s+1;y<n;y++){d=o[y];r.sub(e,d.p,u.p),0===(f=r.len(e))&&(r.set(e,Math.random()-.5,Math.random()-.5),f=1);var b=(u.rep+d.rep)/f/f;!u.fixed&&i(u.pp,u.pp,e,b),!d.fixed&&i(d.pp,d.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(334),i=n(33),o=n(232),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 l=t.getData(),u=l.mapArray((function(t){var e=l.getItemModel(t);return[+e.get("x"),+e.get("y")]})),c=[],h=[];o.fromPoints(u,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 d=(h[0]-c[0])/(h[1]-c[1]),f=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,d);isNaN(d)&&(c=[f.x,f.y],h=[f.x+f.width,f.y+f.height]);var p=h[0]-c[0],g=h[1]-c[1],v=f.width,m=f.height,y=t.coordinateSystem=new r.default;y.zoomLimit=t.get("scaleLimit"),y.setBoundingRect(c[0],c[1],p,g),y.setViewRect(f.x,f.y,v,m),y.setCenter(t.get("center")),y.setZoom(t.get("zoom")),n.push(y)}})),n}},function(t,e,n){"use strict";n.r(e);var r=n(5),i=n(1350),o=n(174),a=n(144),s=n(66),l=n(23),u=n(39),c=n(13),h=n(27),d=n(53),f=n(6),p=n(479),g=n(60),v=n(106),m=n(0),y=n(32),b=n(138);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(f.parsePercent)(n[0],e.getWidth()),cy:Object(f.parsePercent)(n[1],e.getHeight()),r:Object(f.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"),l=-t.get("startAngle")/180*Math.PI,u=-t.get("endAngle")/180*Math.PI,c=t.getModel("axisLine"),h=c.get("roundCap")?p.default:o.default,d=c.get("show"),f=c.getModel("lineStyle"),g=f.get("width"),v=[l,u];Object(b.normalizeArcAngles)(v,!s);for(var m=(u=v[1])-(l=v[0]),y=l,_=0;d&&_<r.length;_++){var x=new h({shape:{startAngle:y,endAngle:u=l+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(f.getLineStyle(["color","width"])),a.add(x),y=u}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,l,u,s,g),this._renderTitleAndDetail(t,e,n,w,i),this._renderAnchor(t,i),this._renderPointer(t,e,n,w,i,l,u,s,g)},e.prototype._renderTicks=function(t,e,n,r,i,o,l,u,c){for(var d,p,g=this.group,v=i.cx,m=i.cy,y=i.r,b=+t.get("min"),x=+t.get("max"),w=t.getModel("splitLine"),O=t.getModel("axisTick"),S=t.getModel("axisLabel"),C=t.get("splitNumber"),E=O.get("splitNumber"),T=Object(f.parsePercent)(w.get("length"),y),M=Object(f.parsePercent)(O.get("length"),y),A=o,I=(l-o)/C,j=I/E,k=w.getModel("lineStyle").getLineStyle(),P=O.getModel("lineStyle").getLineStyle(),L=w.get("distance"),D=0;D<=C;D++){if(d=Math.cos(A),p=Math.sin(A),w.get("show")){var R=L?L+c:c,N=new a.default({shape:{x1:d*(y-R)+v,y1:p*(y-R)+m,x2:d*(y-T-R)+v,y2:p*(y-T-R)+m},style:k,silent:!0});"auto"===k.stroke&&N.setStyle({stroke:r(D/C)}),g.add(N)}if(S.get("show")){R=S.get("distance")+L;var F=_(Object(f.round)(D/C*(x-b)+b),S.get("formatter")),B=r(D/C);g.add(new s.default({style:Object(h.createTextStyle)(S,{text:F,x:d*(y-T-R)+v,y:p*(y-T-R)+m,verticalAlign:p<-.8?"top":p>.8?"bottom":"middle",align:d<-.4?"left":d>.4?"right":"center"},{inheritColor:B}),silent:!0}))}if(O.get("show")&&D!==C){R=(R=O.get("distance"))?R+c:c;for(var z=0;z<=E;z++){d=Math.cos(A),p=Math.sin(A);var V=new a.default({shape:{x1:d*(y-R)+v,y1:p*(y-R)+m,x2:d*(y-M-R)+v,y2:p*(y-M-R)+m},silent:!0,style:P});"auto"===P.stroke&&V.setStyle({stroke:r((D+z/E)/C)}),g.add(V),A+=j}A-=j}else A+=I}},e.prototype._renderPointer=function(t,e,n,r,a,s,u,h,d){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"),M=+t.get("min"),A=+t.get("max"),I=[M,A],j=[s,u];function k(e,n){var r,o=E.getItemModel(e).getModel("pointer"),s=Object(f.parsePercent)(o.get("width"),a.r),l=Object(f.parsePercent)(o.get("length"),a.r),u=t.get(["pointer","icon"]),c=o.get("offsetCenter"),h=Object(f.parsePercent)(c[0],a.r),d=Object(f.parsePercent)(c[1],a.r),p=o.get("keepAspect");return(r=u?Object(g.createSymbol)(u,h-s/2,d-l,s,l,null,p):new i.default({shape:{angle:-Math.PI/2,width:s,r:l,x:h,y:d}})).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"):d/E.count(),l=r?a.r-i:a.r-(t+1)*i,u=r?a.r:a.r-t*i,c=new n({shape:{startAngle:s,endAngle:e,cx:a.cx,cy:a.cy,clockwise:h,r0:l,r:u}});return r&&(c.z2=A-E.get(T,t)%A),c}(C||O)&&(E.diff(_).add((function(e){var n=E.get(T,e);if(O){var r=k(e,s);l.initProps(r,{rotation:-((isNaN(+n)?j[0]:Object(f.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");l.initProps(i,{shape:{endAngle:Object(f.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,l.updateProps(a,{rotation:-((isNaN(+r)?j[0]:Object(f.linearMap)(r,I,j,!0))+Math.PI/2)},t),b.add(a),E.setItemGraphicEl(e,a)}if(C){var u=x[n],c=P(e,u?u.shape.endAngle:s),h=S.get("clip");l.updateProps(c,{shape:{endAngle:Object(f.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),l=E.getItemVisual(t,"style"),u=l.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},l))}else s.useStyle(l),"pointer"!==s.type&&s.setColor(u);s.setStyle(e.getModel(["pointer","itemStyle"]).getItemStyle()),"auto"===s.style.fill&&s.setStyle("fill",r(Object(f.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 d=w[t];d.useStyle(E.getItemVisual(t,"style")),d.setStyle(e.getModel(["progress","itemStyle"]).getItemStyle()),d.z2EmphasisLift=0,Object(c.setStatesStylesFromModel)(d,e),Object(c.toggleHoverEmphasis)(d,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(f.parsePercent)(o[0],e.r),e.cy-r/2+Object(f.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(),l=a.mapDimension("value"),c=+t.get("min"),d=+t.get("max"),p=new u.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(l,e),s=new u.default,b=r(Object(f.linearMap)(o,[c,d],[0,1],!0)),x=n.getModel("title");if(x.get("show")){var w=x.get("offsetCenter"),O=i.cx+Object(f.parsePercent)(w[0],i.r),S=i.cy+Object(f.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(f.parsePercent)(E[0],i.r),M=i.cy+Object(f.parsePercent)(E[1],i.r),A=Object(f.parsePercent)(C.get("width"),i.r),I=Object(f.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:M,text:_(o,P),width:isNaN(A)?null:A,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}(d.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),l=e.y-r(a)*o*(o>=i/3?1:2);a=e.angle-Math.PI/2,t.moveTo(s,l),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,l)},e}(i.default);e.default=a},function(t,e,n){"use strict";n.r(e);var r=n(5),i=n(246),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},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(54).default);e.default=o},function(t,e,n){"use strict";n.r(e);var r=n(5),i=n(175),o=n(66),a=n(23),s=n(52),l=n(165),u=n(13),c=n(53),h=n(215),d=n(27),f=["itemStyle","opacity"],p=function(t){function e(e,n){var r=t.call(this)||this,a=r,s=new i.default,l=new o.default;return a.setTextContent(l),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"),l=i.get(f);l=null==l?1:l,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:l}},r,e)):a.updateProps(this,{style:{opacity:l},shape:{points:o.points}},r,e),Object(u.setStatesStylesFromModel)(this,i),this._updateLabel(t,e),Object(u.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),l=t.getItemLayout(e).label,u=t.getItemVisual(e,"style"),c=u.fill;Object(d.setLabelStyle)(r,Object(d.getLabelStatesModels)(o),{labelFetcher:t.hostModel,labelDataIndex:e,defaultOpacity:u.opacity,defaultText:t.getName(e)},{normal:{align:l.textAlign,verticalAlign:l.verticalAlign}}),this.setTextConfig({local:!0,inside:!!l.inside,insideStroke:c,outsideFill:c});var f=l.linePoints;n.setShape({points:f}),this.textGuideLineConfig={anchor:f?new s.default(f[0][0],f[0][1]):null},a.updateProps(r,{style:{x:l.x,y:l.y}},i,e),r.attr({rotation:l.rotation,originX:l.x,originY:l.y,z2:10}),Object(h.setLabelLineStyle)(this,Object(h.getLabelLineStatesModels)(o),{stroke:c})},e}(l.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(246),a=n(10),s=n(139),l=n(294),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(e){t.prototype.init.apply(this,arguments),this.legendVisualProvider=new l.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(54).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(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"),l=function(t,e){return r.getLayoutRect(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}(t,e),u=t.get("orient"),c=l.width,h=l.height,d=function(t,e){for(var n=t.mapDimension("value"),r=t.mapArray(n,(function(t){return t})),i=[],a="ascending"===e,s=0,l=t.count();s<l;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),f=l.x,p=l.y,g="horizontal"===u?[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"===u?c:h)-_*(n.count()-1))/n.count(),w=function(t,e){if("horizontal"===u){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 l,d=n.get(a,t)||0,v=Object(i.linearMap)(d,[m,y],g,!0);switch(b){case"left":l=f;break;case"center":l=f+(c-v)/2;break;case"right":l=f+c-v}return[[l,e],[l+v,e]]};"ascending"===s&&(x=-x,_=-_,"horizontal"===u?f+=c:p+=h,d=d.reverse());for(var O=0;O<d.length;O++){var S=d[O],C=d[O+1],E=n.getItemModel(S);if("horizontal"===u){var T=E.get(["itemStyle","width"]);null==T?T=x:(T=Object(i.parsePercent)(T,c),"ascending"===s&&(T=-T));var M=w(S,f),A=w(C,f+T);f+=T+_,n.setItemLayout(S,{points:M.concat(A.slice().reverse())})}else{var I=E.get(["itemStyle","height"]);null==I?I=x:(I=Object(i.parsePercent)(I,h),"ascending"===s&&(I=-I));M=w(S,p),A=w(C,p+I);p+=I+_,n.setItemLayout(S,{points:M.concat(A.slice().reverse())})}}!function(t){var e=t.hostModel.get("orient");t.each((function(n){var r,i,o,a,s=t.getItemModel(n),l=s.getModel("label").get("position"),u=s.getModel("labelLine"),c=t.getItemLayout(n),h=c.points,d="inner"===l||"inside"===l||"center"===l||"insideLeft"===l||"insideRight"===l;if(d)"insideLeft"===l?(i=(h[0][0]+h[3][0])/2+5,o=(h[0][1]+h[3][1])/2,r="left"):"insideRight"===l?(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 f=void 0,p=void 0,g=void 0,v=void 0,m=u.get("length");0,"left"===l?(f=(h[3][0]+h[0][0])/2,p=(h[3][1]+h[0][1])/2,i=(g=f-m)-5,r="right"):"right"===l?(f=(h[1][0]+h[2][0])/2,p=(h[1][1]+h[2][1])/2,i=(g=f+m)+5,r="left"):"top"===l?(f=(h[3][0]+h[0][0])/2,o=(v=(p=(h[3][1]+h[0][1])/2)-m)-5,r="center"):"bottom"===l?(f=(h[1][0]+h[2][0])/2,o=(v=(p=(h[1][1]+h[2][1])/2)+m)+5,r="center"):"rightTop"===l?(f="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=f+m)+5,r="top")):"rightBottom"===l?(f=h[2][0],p=h[2][1],"horizontal"===e?(o=(v=p+m)+5,r="center"):(i=(g=f+m)+5,r="bottom")):"leftTop"===l?(f=h[0][0],p="horizontal"===e?h[0][1]:h[1][1],"horizontal"===e?(o=(v=p-m)-5,r="center"):(i=(g=f-m)-5,r="right")):"leftBottom"===l?(f="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=f-m)-5,r="right")):(f=(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=f+m)+5,r="left")),"horizontal"===e?i=g=f:o=v=p,a=[[f,p],[g,v]]}c.label={linePoints:a,x:i,y:o,verticalAlign:"middle",textAlign:r,inside:d}}))}(n)}))}},function(t,e,n){"use strict";n.r(e);var r=n(5),i=n(62),o=n(0),a=n(130),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)(l,(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),l={mousedown:function(t){u(this,"click")&&(this._mouseDownPoint=[t.offsetX,t.offsetY])},mouseup:function(t){var e=this._mouseDownPoint;if(u(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&&u(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 u(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(40).default);e.default=o},function(t,e,n){"use strict";n.r(e);var r=n(1358),i=n(10);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(41),o=n(33),a=n(77),s=n(1359),l=n(14),u=n(6),c=n(225),h=r.each,d=Math.min,f=Math.max,p=Math.floor,g=Math.ceil,v=u.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),l=this._axesMap.set(t,new s.default(t,a.createScaleByModel(o),[0,0],o.get("type"),r)),u="category"===l.type;l.onBand=u&&o.get("boundaryGap"),l.inverse=o.get("inverse"),o.axis=l,l.model=o,l.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]],l=[0,s],u=this.dimensions.length,c=b(e.get("axisExpandWidth"),l),h=b(e.get("axisExpandCount")||0,[0,u]),d=e.get("axisExpandable")&&u>3&&u>h&&h>1&&c>0&&s>0,f=e.get("axisExpandWindow");f?(t=b(f[1]-f[0],l),f[1]=f[0]+t):(t=b(c*(h-1),l),(f=[c*(e.get("axisExpandCenter")||p(u/2))-t/2])[1]=f[0]+t);var m=(s-t)/(u-h);m<3&&(m=0);var y=[p(v(f[0]/c,1))+1,g(v(f[1]/c,1))-1],_=m/c*f[0];return{layout:o,pixelDimIndex:a,layoutBase:n[r[a]],layoutLength:s,axisBase:n[r[1-a]],axisLength:n[i[1-a]],axisExpandable:d,axisExpandWidth:c,axisCollapseWidth:m,axisExpandWindow:f,axisCount:u,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}},l={horizontal:m/2,vertical:0},u=[s[o].x+t.x,s[o].y+t.y],c=l[o],h=i.create();i.rotate(h,h,c),i.translate(h,h,u),this._axesLayout[e]={position:u,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=[],l=[];r.each(a,(function(e){s.push(t.mapDimension(e)),l.push(o.get(e).model)}));for(var u=this.hasAxisBrushed(),c=n;c<i;c++){var h=void 0;if(u){h="active";for(var d=t.getValues(s,c),f=0,p=a.length;f<p;f++){if("inactive"===l[f].getActiveState(d[f])){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 l.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,l="slide",u=e.axisCollapseWidth,h=this._model.get("axisExpandSlideTriggerArea"),p=null!=h[0];if(u)p&&u&&s<i*h[0]?(l="jump",a=s-i*h[2]):p&&u&&s>i*(1-h[0])?(l="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/u)?Object(c.default)(a,r,o,"all"):l="none";else{var g=r[1]-r[0];(r=[f(0,o[1]*s/g-g/2)])[1]=d(o[1],r[0]+g),r[0]=r[1]-g}return{axisExpandWindow:r,behavior:l}},t}();function b(t,e){return d(f(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,l=e.winInnerIndices,u=s,c=!1;return t<l[0]?(n=t*s,r=s):t<=l[1]?(n=e.axisExpandWindow0Pos+t*o-e.axisExpandWindow[0],u=o,c=!0):(n=i-(a-1-t)*s,r=s),{position:n,axisNameAvailableWidth:u,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(149).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(10);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(170),a=n(449),s=n(371),l=n(39),u=n(14),c=n(35),h=n(62),d=["axisLine","axisTickLabel","axisName"],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,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 l.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(),f=h.width,p=t.axis.dim,g=c.getAxisLayout(p),v=i.extend({strokeContainThreshold:f},g),m=new o.default(t,v);i.each(d,m.add,m),this._axisGroup.add(m.getGroup()),this._refreshBrushController(v,h,t,s,f,n),u.groupTransition(a,this._axisGroup,t)}}},e.prototype._refreshBrushController=function(t,e,n,r,o,a){var l=n.axis.getExtent(),u=l[1]-l[0],h=Math.min(30,.1*Math.abs(u)),d=c.default.create({x:l[0],y:-o/2,width:u,height:o});d.x-=h,d.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(d),isTargetByCursor:s.makeRectIsTargetByCursor(d,a,r),getLinearBrushOtherExtent:s.makeLinearBrushOtherExtent(d,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=f},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(39),o=n(23),a=n(70),s=n(175),l=n(13),u=n(53),c=n(6),h=n(0),d=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(),l=this._data,u=t.coordinateSystem,c=u.dimensions,h=g(t);if(s.diff(l).add((function(t){v(p(s,i,t,c,u),s,t,h)})).update((function(e,n){var r=l.getItemGraphicEl(n),i=f(s,e,c,u);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=l.getItemGraphicEl(t);i.remove(e)})).execute(),!this._initialized){this._initialized=!0;var d=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}}),l="horizontal"===r.get("layout")?"width":"height";return s.setShape(l,0),o.initProps(s,{shape:{width:i.width,height:i.height}},e,n),s}(u,t,(function(){setTimeout((function(){i.removeClipPath()}))}));i.setClipPath(d)}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=[],l=t.start;l<t.end;l++){var u=p(r,this._dataGroup,l,o,i);u.incremental=!0,v(u,r,l,a),s.push(u)}},e.prototype.remove=function(){this._dataGroup&&this._dataGroup.removeAll(),this._data=null},e.type="parallel",e}(u.default);function f(t,e,n,r){for(var i,o=[],a=0;a<n.length;a++){var s=n[a],l=t.get(t.mapDimension(s),e);i=l,("category"===r.getAxis(s).type?null==i:null==i||isNaN(i))||o.push(r.dataToPoint(l,s))}return o}function p(t,e,n,r,i){var o=f(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(l.setStatesStylesFromModel)(t,i,"lineStyle"),Object(l.toggleHoverEmphasis)(t,o.get("focus"),o.get("blurScope"),o.get("disabled"))}e.default=d},function(t,e,n){"use strict";n.r(e);var r=n(5),i=n(0),o=n(54),a=n(148),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)(l,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 l(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(326),a=n(70),s=n(23),l=n(13),u=n(53),c=n(27),h=n(32),d=n(0),f=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 f},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(l.enterEmphasis)(this)},e.prototype.downplay=function(){Object(l.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(),u=this.group,f=t.layoutInfo,g=f.width,v=f.height,m=t.getData(),y=t.getData("edge"),b=t.get("orient");this._model=t,u.removeAll(),u.x=f.x,u.y=f.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,f,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"),M=E.get("localY"),A=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!=M?M*v:C.y)+C.dy,s=(null!=j?j*g:A.x)+P.ty,f=i,m=a*(1-S)+(c=null!=k?k*v:A.y)*S,_=s,x=a*S+c*(1-S)):(i=(null!=T?T*g:C.x)+C.dx,a=(null!=M?M*v:C.y)+P.sy,f=i*(1-S)+(s=null!=j?j*g:A.x)*S,m=a,_=i*S+s*(1-S),x=c=(null!=k?k*v:A.y)+P.ty),n.setShape({x1:i,y1:a,x2:s,y2:c,cpx1:f,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"),D=e.node2.getVisual("color");Object(d.isString)(L)&&Object(d.isString)(D)&&(n.style.fill=new o.default(0,0,+("horizontal"===b),+("vertical"===b),[{color:L,offset:0},{color:D,offset:1}]))}var R=w.getModel("emphasis");Object(l.setStatesStylesFromModel)(n,w,"lineStyle",(function(t){return t.getItemStyle()})),u.add(n),y.setItemGraphicEl(e.dataIndex,n);var N=R.get("focus");Object(l.toggleHoverEmphasis)(n,"adjacency"===N?e.getAdjacentDataIndices():N,R.get("blurScope"),R.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"),d=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)(d,Object(c.getLabelStatesModels)(r),{labelFetcher:t,labelDataIndex:e.dataIndex,defaultText:e.id}),d.disableLabelAnimation=!0,d.setStyle("fill",e.getVisual("color")),d.setStyle("decal",e.getVisual("style").decal),Object(l.setStatesStylesFromModel)(d,r),u.add(d),m.setItemGraphicEl(e.dataIndex,d),Object(h.getECData)(d).dataType="node";var f=s.get("focus");Object(l.toggleHoverEmphasis)(d,"adjacency"===f?e.getAdjacentDataIndices():f,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()&&u.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}(u.getBoundingRect(),t,(function(){u.removeClipPath()}))),this._data=t.getData()},e.prototype.dispose=function(){},e.type="sankey",e}(u.default);e.default=g},function(t,e,n){"use strict";n.r(e);var r=n(5),i=n(54),o=n(673),a=n(57),s=n(75),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.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,l=0;l<i.length;l++)null!=i[l].depth&&i[l].depth>=0&&(s[i[l].depth]=new a.default(i[l],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,l=o.source+" -- "+o.target;return Object(s.createTooltipMarkup)("nameValue",{name:l,value:a,noValue:r(a)})}var u=this.getGraph().getNodeByIndex(t).getLayout().value,c=this.getDataParams(t,n).data.name;return Object(s.createTooltipMarkup)("nameValue",{name:null!=c?c+"":null,value:u,noValue:r(u)})},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=l},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(10);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,d=c.height,f=t.getGraph(),p=f.nodes,y=f.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,d,f){(function(t,e,n,r,o,a,l){for(var u=[],c=[],h=[],d=[],f=0,p=0;p<e.length;p++)u[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:f},!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);u[w]=0;var O=x.node2,S=t.indexOf(O);0==--c[S]&&d.indexOf(O)<0&&d.push(O)}}++f,h=d,d=[]}for(p=0;p<u.length;p++)if(1===u[p])throw new Error("Sankey is a DAG, the original data has cycle!");var C=g>f-1?g:f-1;l&&"left"!==l&&function(t,e,n,r){if("right"===e){for(var o=[],a=t,l=0;a.length;){for(var u=0;u<a.length;u++){var c=a[u];c.setLayout({skNodeHeight:l},!0);for(var h=0;h<c.inEdges.length;h++){var d=c.inEdges[h];o.indexOf(d.node1)<0&&o.push(d.node1)}}a=o,o=[],++l}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,l,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,d,f),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,l=0;i.each(t,(function(t){l+=t.getLayout().value}));var u="vertical"===a?(r-(e-1)*o)/l:(n-(e-1)*o)/l;u<s&&(s=u)})),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),l(h,a,n,r,c);for(var d=1;s>0;s--)u(h,d*=.99,c),l(h,a,n,r,c),m(h,d,c),l(h,a,n,r,c)}(t,e,c,a,r,h,d),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,d)}(p,y,n,a,h,d,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 l(t,e,n,r,o){var a="vertical"===o?"x":"y";i.each(t,(function(t){var i,s,l;t.sort((function(t,e){return t.getLayout()[a]-e.getLayout()[a]}));for(var u=0,c=t.length,h="vertical"===o?"dx":"dy",d=0;d<c;d++)(l=u-(s=t[d]).getLayout()[a])>0&&(i=s.getLayout()[a]+l,"vertical"===o?s.setLayout({x:i},!0):s.setLayout({y:i},!0)),u=s.getLayout()[a]+s.getLayout()[h]+e;if((l=u-e-("vertical"===o?r:n))>0){i=s.getLayout()[a]-l,"vertical"===o?s.setLayout({x:i},!0):s.setLayout({y:i},!0),u=i;for(d=c-2;d>=0;--d)(l=(s=t[d]).getLayout()[a]+s.getLayout()[h]+e-u)>0&&(i=s.getLayout()[a]-l,"vertical"===o?s.setLayout({x:i},!0):s.setLayout({y:i},!0)),u=s.getLayout()[a]}}))}function u(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 d(t,e){return p(t.node1,e)*t.getValue()}function f(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,d,n)/v(t.inEdges,g);if(isNaN(r)){var i=t.inEdges.length;r=i?v(t.inEdges,f,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(127);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(54),o=n(675),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(53),a=n(14),s=n(13),l=n(36),u=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=f(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(u.saveOldStyle)(n),p(s,n,r,t)):n=f(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(){},d=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}(l.default);function f(t,e,n,r,i){var o=t.ends,a=new d({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 l=n.getItemModel(r),u=l.getModel("emphasis");Object(s.setStatesStylesFromModel)(e,l),Object(s.toggleHoverEmphasis)(e,u.get("focus"),u.get("blurScope"),u.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,l=t.boxWidthList=[],u=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 d=n.getExtent();e=Math.abs(d[1]-d[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 f=.8*e-2,p=f/s*.3,g=(f-p*(s-1))/s,v=g/2-f/2;o(a,(function(t,e){u.push(v),v+=p+g,l.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,l=["x","y"],u=i.mapDimension(l[a]),c=i.mapDimensionsAll(l[s]);if(null==u||c.length<5)return;for(var h=0;h<i.count();h++){var d=i.get(u,h),f=b(d,c[2],h),p=b(d,c[0],h),g=b(d,c[1],h),v=b(d,c[3],h),m=b(d,c[4],h),y=[];_(y,g,!1),_(y,v,!0),y.push(p,g,m,v),x(y,p),x(y,m),x(y,f),i.setItemLayout(h,{initBaseline:f[s],ends:y})}function b(t,n,o){var l,u=i.get(n,o),c=[];return c[a]=t,c[s]=u,isNaN(t)||isNaN(u)?l=[NaN,NaN]:(l=r.dataToPoint(c))[a]+=e,l}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(1375),i=n(37),o=n(29),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,l=0;l<t.length;l++){var u=Object(r.asc)(t[l].slice()),c=Object(r.quantile)(u,.25),h=Object(r.quantile)(u,.5),d=Object(r.quantile)(u,.75),f=u[0],p=u[u.length-1],g=(null==a?1.5:a)*(d-c),v=s?f:Math.max(f,c-g),m=s?p:Math.min(p,d+g),y=e.itemNameFormatter,b=Object(i.isFunction)(y)?y({value:l}):Object(i.isString)(y)?y.replace("{value}",l+""):l+"";n.push([b,v,c,h,d,m]);for(var _=0;_<u.length;_++){var x=u[_];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(53),a=n(14),s=n(23),l=n(13),u=n(36),c=n(274),h=["color","borderColor"],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.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,l=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(l,a))return;var u=g(a,n,!0);s.initProps(u,{shape:{points:a.ends}},t,n),m(u,e,n,i),r.add(u),e.setItemGraphicEl(n,u)}})).update((function(a,u){var c=n.getItemGraphicEl(u);if(e.hasValue(a)){var h=e.getItemLayout(a);o&&v(l,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),f=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 f},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}(u.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(l.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}(u.default);function x(t,e,n,r){var i=t.getData(),o=i.getLayout("largePoints"),a=new _({shape:{points:o},__sign:1});e.add(a);var s=new _({shape:{points:o},__sign:-1});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=d},function(t,e,n){"use strict";n.r(e);var r=n(5),i=n(54),o=n(675),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(244),i=n(0),o=["itemStyle","borderColor"],a=["itemStyle","borderColor0"],s=["itemStyle","color"],l=["itemStyle","color0"],u={seriesType:"candlestick",plan:Object(r.default)(),performRawSeries:!0,reset:function(t,e){function n(t,e){return e.get(t>0?s:l)}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,l=a.getItemStyle();l.fill=n(s,a),l.stroke=r(s,a)||l.fill;var u=e.ensureUniqueItemVisual(o,"style");Object(i.extend)(u,l)}}}}};e.default=u},function(t,e,n){"use strict";n.r(e);var r=n(14),i=n(244),o=n(6),a=n(0),s=n(196),l={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),l=Object(o.parsePercent)(Object(a.retrieve2)(t.get("barMinWidth"),1),i),u=t.get("barWidth");return null!=u?Object(o.parsePercent)(u,i):Math.max(Math.min(i/2,s),l)}(t,n),l=["x","y"],c=n.getDimensionIndex(n.mapDimension(l[0])),h=Object(a.map)(n.mapDimensionsAll(l[1]),n.getDimensionIndex,n),d=h[0],f=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,l=[],h=[],v=n.getStore();for(;null!=(i=t.next());){var m=v.get(c,i),y=v.get(d,i),b=v.get(f,i),_=v.get(p,i),x=v.get(g,i);isNaN(m)||isNaN(_)||isNaN(x)?(o[a++]=NaN,a+=3):(o[a++]=u(v,i,y,b,f),l[0]=m,l[1]=_,r=e.dataToPoint(l,null,h),o[a++]=r?r[0]:NaN,o[a++]=r?r[1]:NaN,l[1]=x,r=e.dataToPoint(l,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),l=a.get(d,o),h=a.get(f,o),v=a.get(p,o),m=a.get(g,o),y=Math.min(l,h),b=Math.max(l,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(M(O),M(x),M(w),M(_)),n.setItemLayout(o,{sign:u(a,o,l,h,f),initBaseline:l>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 M(t){return t[0]=Object(r.subPixelOptimize)(t[0],1),t}}}}};function u(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=l},function(t,e,n){"use strict";n.r(e);var r=n(5),i=n(292),o=n(1382),a=n(41),s=n(293),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(){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(53).default);e.default=l},function(t,e,n){"use strict";n.r(e);var r=n(5),i=n(60),o=n(39),a=n(13),s=n(332);function l(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 u=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 u=-a/r*t.period+t.effectOffset;s.animate("",!0).when(t.period,{scaleX:t.rippleScale/2,scaleY:t.rippleScale/2}).delay(u).start(),s.animateStyle(!0).when(t.period,{opacity:0}).delay(u).start(),o.add(s)}l(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)}l(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),l=t.getItemVisual(e,"symbol"),u=Object(i.normalizeSymbolSize)(t.getItemVisual(e,"symbolSize")),c=t.getItemVisual(e,"style"),h=c&&c.fill,d=s.getModel("emphasis");o.setScale(u),o.traverse((function(t){t.setStyle("fill",h)}));var f=Object(i.normalizeSymbolOffset)(t.getItemVisual(e,"symbolOffset"),u);f&&(o.x=f[0],o.y=f[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=l,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,d.get("focus"),d.get("blurScope"),d.get("disabled"))},e.prototype.fadeOut=function(t){t&&t()},e}(o.default);e.default=u},function(t,e,n){"use strict";n.r(e);var r=n(5),i=n(148),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(54).default);e.default=o},function(t,e,n){"use strict";n.r(e);var r=n(5),i=n(447),o=n(678),a=n(448),s=n(677),l=n(1386),u=n(1385),c=n(676),h=n(274),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=t.getData(),i=this._updateLineDraw(r,t),o=t.get("zlevel"),a=t.get(["effect","trailLength"]),s=n.getZr(),l="svg"===s.painter.getType();l||s.painter.getLayer(o).clear(!0),null==this._lastZlevel||l||s.configLayer(this._lastZlevel,{motionBlur:!1}),this._showEffect(t)&&a>0&&(l||s.configLayer(o,{motionBlur:!0,lastFrameAlpha:Math.max(Math.min(a/10+.9,1),0)})),i.updateData(r);var u=t.get("clip",!0)&&Object(h.createClipPath)(t.coordinateSystem,!1,t);u?this.group.setClipPath(u):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 u.default:new i.default(c?r?l.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(53).default);e.default=d},function(t,e,n){"use strict";n.r(e);var r=n(5),i=n(35),o=n(36),a=n(39),s=n(313),l=n(653),u=n(32),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++],l=r[n++],u=r[n++],c=r[n++];if(t.moveTo(s,l),i>0){var h=(s+u)/2-(l-c)*i,d=(l+c)/2-(u-s)*i;t.quadraticCurveTo(h,d,u,c)}else t.lineTo(u,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,u=0;u<r.length;){var c=r[u++];if(c>0)for(var h=r[u++],d=r[u++],f=1;f<c;f++){var p=r[u++],g=r[u++];if(s.containStroke(h,d,p,g,o,t,e))return a}a++}else for(a=0,u=0;u<r.length;){h=r[u++],d=r[u++],p=r[u++],g=r[u++];if(i>0){var v=(h+p)/2-(d-g)*i,m=(d+g)/2-(p-h)*i;if(l.containStroke(h,d,v,m,p,g,o,t,e))return a}else if(s.containStroke(h,d,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 l=e[s++],u=e[s++];n=Math.min(l,n),o=Math.max(l,o),r=Math.min(u,r),a=Math.max(u,a)}t=this._rect=new i.default(n,r,o,a)}return t},e}(o.default),d=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"});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(u.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=d},function(t,e,n){"use strict";n.r(e);var r=n(5),i=n(677),o=n(678),a=n(20),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,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]),l=n[o],u=n[o+1];t.x=l[0]*(1-s)+s*u[0],t.y=l[1]*(1-s)+s*u[1];var c=u[0]-l[0],h=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(54),o=n(109),a=n(0),s=n(75),l="undefined"==typeof Uint32Array?Array:Uint32Array,u="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 l(n),i=new u(n),o=0,s=0,c=0,h=0;h<n;){c++;var d=t[h++];r[s++]=o+e,r[s++]=d;for(var f=0;f<d;f++){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"),l=[];return null!=o&&l.push(o),null!=a&&l.push(a),Object(s.createTooltipMarkup)("nameValue",{name:l.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(14),o=n(70),a=n(106),s=n(13),l=n(1390),u=n(0),c=n(53),h=n(250),d=n(27);function f(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()):f(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&&(f(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,l,u,c,f=t.coordinateSystem,p=Object(h.isCoordinateSystemType)(f,"cartesian2d");if(p){var g=f.getAxis("x"),v=f.getAxis("y");0,a=g.getBandWidth()+.5,l=v.getBandWidth()+.5,u=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(d.getLabelStatesModels)(t),S=t.getModel("emphasis"),C=S.get("focus"),E=S.get("blurScope"),T=S.get("disabled"),M=p?[y.mapDimension("x"),y.mapDimension("y"),y.mapDimension("value")]:[y.mapDimension("time"),y.mapDimension("value")],A=n;A<r;A++){var I=void 0,j=y.getItemVisual(A,"style");if(p){var k=y.get(M[0],A),P=y.get(M[1],A);if(isNaN(y.get(M[2],A))||k<u[0]||k>u[1]||P<c[0]||P>c[1])continue;var L=f.dataToPoint([k,P]);I=new o.default({shape:{x:L[0]-a/2,y:L[1]-l/2,width:a,height:l},style:j})}else{if(isNaN(y.get(M[1],A)))continue;I=new o.default({z2:1,shape:f.dataToRect([y.get(M[0],A)]).contentShape,style:j})}if(y.hasItemOption){var D=y.getItemModel(A),R=D.getModel("emphasis");b=R.getModel("itemStyle").getItemStyle(),_=D.getModel(["blur","itemStyle"]).getItemStyle(),x=D.getModel(["select","itemStyle"]).getItemStyle(),w=D.get(["itemStyle","borderRadius"]),C=R.get("focus"),E=R.get("blurScope"),T=R.get("disabled"),O=Object(d.getLabelStatesModels)(D)}I.shape.r=w;var N=t.getRawValue(A),F="-";N&&null!=N[2]&&(F=N[2]+""),Object(d.setLabelStyle)(I,O,{labelFetcher:t,labelDataIndex:A,defaultOpacity:j.opacity,defaultText:F}),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(A,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 l.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(),d=t.getRoamTransform();h.applyTransform(d);var f=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-f,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]-=f,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=u.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:f,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(98),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"),l=this._getGradient(i,"outOfRange"),u=this.pointSize+this.blurSize,c=this.canvas,h=c.getContext("2d"),d=t.length;c.width=e,c.height=n;for(var f=0;f<d;++f){var p=t[f],g=p[0],v=p[1],m=r(p[2]);h.globalAlpha=m,h.drawImage(a,g-u,v-u)}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:l;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(54),o=n(148),a=n(273),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(233),a=n(70),s=n(23),l=n(14),u=n(39),c=n(13),h=n(60),d=n(6),f=n(53),p=n(229),g=n(27),v=n(106),m=n(32),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,l=a.getBaseAxis().isHorizontal(),u=a.master.getRect(),c={ecSize:{width:n.getWidth(),height:n.getHeight()},seriesModel:t,coordSys:a,coordSysExtent:[[u.x,u.x+u.width],[u.y,u.y+u.height]],isHorizontal:l,valueDim:b[+l],categoryDim:b[1-+l]};return i.diff(o).add((function(t){if(i.hasValue(t)){var e=A(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=A(i,t),l=w(i,t,a,c),u=L(i,l);n&&u!==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),M(t,e,n,!0)}(n,c,l):n=k(i,c,l,!0),i.setItemGraphicEl(t,n),n.__pictorialSymbolMeta=l,r.add(n),N(n,c,l)}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}(f.default);function w(t,e,n,r){var o=t.getItemLayout(e),a=n.get("symbolRepeat"),s=n.get("symbolClip"),l=n.get("symbolPosition")||"start",u=(n.get("symbolRotate")||0)*Math.PI/180||0,c=n.get("symbolPatternSize")||2,f=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:u,animationModel:f?n:null,hoverScale:f&&n.get(["emphasis","scale"]),z2:n.getShallow("z",!0)||0};!function(t,e,n,r,o){var a,s=r.valueDim,l=t.get("symbolBoundingData"),u=r.coordSys.getOtherAxis(r.coordSys.getBaseAxis()),c=u.toGlobalCoord(u.dataToCoord(0)),h=1-+(n[s.wh]<=0);if(i.isArray(l)){var d=[O(u,l[0])-c,O(u,l[1])-c];d[1]<d[0]&&d.reverse(),a=d[h]}else a=null!=l?O(u,l)-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,l,u,c){var h,f=u.valueDim,p=u.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(d.parsePercent)(h[p.index],g),h[f.index]=Object(d.parsePercent)(h[f.index],r?g:Math.abs(a)),c.symbolSize=h,(c.symbolScale=[h[0]/l,h[1]/l])[f.index]*=(u.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,u,r,p);var g=p.symbolSize,v=Object(h.normalizeSymbolOffset)(n.get("symbolOffset"),g);return function(t,e,n,r,o,a,s,l,u,c,h,f){var p=h.categoryDim,g=h.valueDim,v=f.pxSign,m=Math.max(e[g.index]+l,0),y=m;if(r){var b=Math.abs(u),_=i.retrieve(t.get("symbolMargin"),"15%")+"",x=!1;_.lastIndexOf("!")===_.length-1&&(x=!0,_=_.slice(0,_.length-1));var w=Object(d.parsePercent)(_,e[g.index]),O=Math.max(m+2*w,0),S=x?0:2*w,C=Object(d.isNumeric)(r),E=C?r:F((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?F((Math.abs(c)+S)/O):0),y=E*O-S,f.repeatTimes=E,f.symbolMargin=w}var T=v*(y/2),M=f.pathPosition=[];M[p.index]=n[p.wh]/2,M[g.index]="start"===s?T:"end"===s?u-T:u/2,a&&(M[0]+=a[0],M[1]+=a[1]);var A=f.bundlePosition=[];A[p.index]=n[p.xy],A[g.index]=n[g.xy];var I=f.barRectShape=i.extend({},n);I[g.wh]=v*Math.max(Math.abs(n[g.wh]),Math.abs(M[g.index]+T)),I[p.wh]=n[p.wh];var j=f.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,l,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,l=e.valueDim,u=n.repeatTimes||0,c=0,h=o[e.valueDim.index]+a+2*n.symbolMargin;for(D(t,(function(t){t.__pictorialAnimationIndex=c,t.__pictorialRepeatTimes=u,c<u?R(t,null,p(c),n,r):R(t,null,{scaleX:0,scaleY:0},n,r,(function(){i.remove(t)})),c++}));c<u;c++){var d=S(n);d.__pictorialAnimationIndex=c,d.__pictorialRepeatTimes=u,i.add(d);var f=p(c);R(d,{x:f.x,y:f.y,scaleX:0,scaleY:0},{scaleX:f.scaleX,scaleY:f.scaleY,rotation:f.rotation},n,r)}function p(t){var e=s.slice(),r=n.pxSign,i=t;return("start"===n.symbolRepeatDirection?r>0:r<0)&&(i=u-1-t),e[l.index]=h*(i-u/2+.5)+s[l.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?R(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),R(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?R(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 M(t,e,n,r){if(n.symbolClip){var o=t.__pictorialClipPath,u=i.extend({},n.clipShape),c=e.valueDim,h=n.animationModel,d=n.dataIndex;if(o)s.updateProps(o,{shape:u},h,d);else{u[c.wh]=0,o=new a.default({shape:u}),t.__pictorialBundle.setClipPath(o),t.__pictorialClipPath=o;var f={};f[c.wh]=n.clipShape[c.wh],l[r?"updateProps":"initProps"](o,{shape:f},h,d)}}}function A(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 u.default,o=new u.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),M(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=[];D(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 D(t,e,n){i.each(t.__pictorialBundle.children(),(function(r){r!==t.__pictorialBarRect&&e.call(n,r)}))}function R(t,e,n,r,i,o){e&&t.attr(e),r.symbolClip&&!i?n&&t.attr(n):n&&l[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(),l=o.getModel(["blur","itemStyle"]).getItemStyle(),u=o.getModel(["select","itemStyle"]).getItemStyle(),h=o.getShallow("cursor"),d=a.get("focus"),f=a.get("blurScope"),m=a.get("scale");D(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=l,t.ensureState("select").style=u,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,d,f,a.get("disabled"))}function F(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(480),o=n(103),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(537),o=n(39),a=n(23),s=n(70),l=n(13),u=n(27),c=n(0),h=n(169),d=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(),d=this,f=this.group,p=t.getLayerSeries(),g=r.getLayout("layoutInfo"),v=g.rect,m=g.boundaryGap;function y(t){return t.name}f.x=0,f.y=v.y+m[0];var b=new h.default(this._layersSeries||[],p,y,y),_=[];function x(e,n,c){var h=d._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"),M=t.getModel("emphasis");if("add"===e){var A=_[n]=new o.default;v=new i.ECPolygon({shape:{points:m,stackedOnPoints:y,smooth:.4,stackedOnSmooth:.4,smoothConstraint:!1},z2:0}),A.add(v),f.add(A),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{A=h[c];v=A.childAt(0),f.add(A),_[n]=A,a.updateProps(v,{shape:{points:m,stackedOnPoints:y}},t),Object(a.saveOldStyle)(v)}Object(u.setLabelStyle)(v,Object(u.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(l.setStatesStylesFromModel)(v,t),Object(l.toggleHoverEmphasis)(v,M.get("focus"),M.get("blurScope"),M.get("disabled"))}else f.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(53).default);e.default=d},function(t,e,n){"use strict";n.r(e);var r=n(5),i=n(54),o=n(240),a=n(331),s=n(109),l=n(0),u=n(10),c=n(294),h=n(75),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){t.prototype.init.apply(this,arguments),this.legendVisualProvider=new c.default(l.bind(this.getData,this),l.bind(this.getRawData,this))},e.prototype.fixData=function(t){var e=t.length,n={},r=Object(u.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,l=0;l<i[a].dataList.length;++l){var c=i[a].dataList[l][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",u.SINGLE_REFERRING).models[0].get("type"),r=l.filter(t.data,(function(t){return void 0!==t[2]})),i=this.fixData(r||[]),c=[],h=this.nameMap=l.createHashMap(),d=0,f=0;f<i.length;++f)c.push(i[f][2]),h.get(i[f][2])||(h.set(i[f][2],d),d++);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(u.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){l.isArray(t)||(t=t?[t]:[]);for(var r,i=this.getData(),o=this.getLayerSeries(),a=[],s=o.length,u=0;u<s;++u){for(var c=Number.MAX_VALUE,h=-1,d=o[u].indices.length,f=0;f<d;++f){var p=i.get(t[0],o[u].indices[f]),g=Math.abs(p-e);g<=c&&(r=p,c=g,h=o[u].indices[f])}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=d},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"),l=n.getAxis();(r.boundaryGap=s,"horizontal"===l.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"),l=t.mapDimension("value"),u=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(l,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,l=0;l<e;++l)s+=t[l][a][1];s>o&&(o=s),r.push(s)}for(var u=0;u<n;++u)i[u]=(o-r[u])/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}}(u),h=c.y0,d=n/c.max,f=a.length,p=a[0].indices.length,g=0;g<p;++g){i=h[g]*d,t.setItemLayout(a[0].indices[g],{layerIndex:0,x:u[0][g][0],y0:i,y:u[0][g][1]*d});for(var v=1;v<f;++v)i+=u[v-1][g][1]*d,t.setItemLayout(a[v].indices[g],{layerIndex:v,x:u[v][g][0],y0:i,y:u[v][g][1]*d})}}},function(t,e,n){"use strict";n.r(e);var r=n(5),i=n(0),o=n(53),a=n(840),s=n(169),l=n(679),u=n(48),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 l=t.getData(),u=l.tree.root,c=t.getViewRoot(),h=this.group,d=t.get("renderLabelForZeroData"),f=[];c.eachNode((function(t){f.push(t)}));var p=this._oldChildren||[];!function(r,o){if(0===r.length&&0===o.length)return;function c(t){return t.getId()}function f(i,s){!function(r,i){d||!r||r.getValue()||(r=null);if(r!==u&&i!==u)if(i&&i.piece)r?(i.piece.updateData(!1,r,t,e,n),l.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),l.setItemGraphicEl(r.dataIndex,o)}}(null==i?null:r[i],null==s?null:o[s])}new s.default(o,r,c,c).add(f).update(f).remove(i.curry(f,null)).execute()}(f,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)}(u,c),this._initEvents(),this._oldChildren=f},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(u.windowOpen)(a,s)}}n=!0}}))}))},e.prototype._rootToNode=function(t){t!==this.seriesModel.getViewRoot()&&this.api.dispatchAction({type:l.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(54),a=n(446),s=n(141),l=n(57),u=n(672),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 l.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(u.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 l=n.getWidth(),u=n.getHeight(),c=Math.min(l,u),h=Object(r.parsePercent)(e[0],l),d=Object(r.parsePercent)(e[1],u),f=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-f)/(C||1),T=t.get("clockwise"),M=t.get("stillShowZeroSum"),A=T?1:-1,I=function(e,n){if(e){var o=n;if(e!==m){var a=e.getValue(),s=0===w&&M?O:a*O;s<v&&(s=v),o=n+A*s;var l=e.depth-b-(S?-1:1),u=f+E*l,p=f+E*(l+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&&(u=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:d,r0:u,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=f,k=f+E,P=2*Math.PI;m.setLayout({angle:P,startAngle:g,endAngle:g+P,clockwise:T,cx:h,cy:d,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(71),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 l=n.ensureUniqueItemVisual(a.dataIndex,"style");Object(i.extend)(l,s)}))}))}},function(t,e,n){"use strict";n.r(e);var r=n(5),i=n(0),o=n(36),a=n(14),s=n(106),l=n(66),u=n(39),c=n(13),h=n(27),d=n(229),f=n(255),p=n(169),g=n(53),v=n(274),m=n(1402),y=n(1403),b=n(1404),_=n(1405),x=n(1406),w=n(97),O=n(372),S=n(37),C=n(330),E=n(220),T=n(217),M=n(406),A=["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,singleAxis:b.default,polar:_.default,calendar:x.default};function D(t){return t instanceof o.default}function R(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);Object(T.applyLeaveTransition)(n,Object(E.customInnerStore)(n).option,t)})).update((function(e,l){var u=i.getItemGraphicEl(l);H(n,u,e,s(e,r),t,a,o)})).execute();var l=t.get("clip",!0)?Object(v.createClipPath)(t.coordinateSystem,!1,t):null;l?a.setClipPath(l):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 l(t){t.isGroup||(t.incremental=!0,t.ensureState("emphasis").hoverLayer=!0)}for(var u=t.start;u<t.end;u++){var c=H(null,null,u,a(u,i),e,this.group,o);c&&(c.traverse(l),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 F(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=Q(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 l.default({});else if("group"===n)e=new u.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 B(t,e,n,r,o,a,s){Object(M.stopPreviousKeyframeAnimationAndRestore)(e);var l=o&&o.normal.cfg;l&&e.setTextConfig(l),r&&null==r.transition&&(r.transition=k);var u=r&&r.style;if(u){if("text"===e.type){var c=u;Object(i.hasOwn)(c,"textFill")&&(c.fill=c.textFill),Object(i.hasOwn)(c,"textStroke")&&(c.stroke=c.textStroke)}var h=void 0,d=D(e)?u.decal:null;t&&d&&(d.dirty=!0,h=Object(C.createOrUpdatePatternFromDecal)(d,t)),u.__decalPattern=h}R(e)&&(u&&(h=u.__decalPattern)&&(u.decal=h));Object(T.applyUpdateTransition)(e,r,a,{dataIndex:n,isInit:s,clearStyle:!0}),Object(M.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 l=o.getState(t);l&&(l.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:X(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 l,u,c=Object(i.defaults)({getWidth:r.getWidth,getHeight:r.getHeight,getZr:r.getZr,getDevicePixelRatio:r.getDevicePixelRatio,value:function(t,n){return null==n&&(n=l),e.getStore().get(e.getDimensionIndex(t||0),n)},style:function(n,r){0;null==r&&(r=l);var o=e.getItemVisual(r,"style"),a=o&&o.fill,s=o&&o.opacity,u=w(r,"normal").getItemStyle();null!=a&&(u.fill=a),null!=s&&(u.opacity=s);var c={inheritColor:Object(i.isString)(a)?a:"#000"},f=S(r,"normal"),p=h.createTextStyle(f,null,c,!1,!0);p.text=f.getShallow("show")?Object(i.retrieve2)(t.getFormattedLabel(r,"normal"),Object(d.getDefaultLabel)(e,r)):null;var g=h.createTextConfig(f,c,!1);return T(n,u),u=Object(O.convertToEC4StyleForCustomSerise)(u,p,g),n&&C(u,n),u.legacy=!0,u},ordinalRawValue:function(t,n){null==n&&(n=l),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=l);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(d.getDefaultLabel)(e,r)):null;var u=h.createTextConfig(a,null,!0);return T(n,o),o=Object(O.convertToEC4StyleForCustomSerise)(o,s,u),n&&C(o,n),o.legacy=!0,o},visual:function(t,n){if(null==n&&(n=l),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(f.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<A.length;b++){var _=A[b];m[_]=t.getModel(I[_]),y[_]=t.getModel(j[_])}function x(t){return t===l?u||(u=e.getItemModel(t)):e.getItemModel(t)}function w(t,n){return e.hasItemOption?t===l?g[n]||(g[n]=x(t).getModel(I[n])):x(t).getModel(I[n]):m[n]}function S(t,n){return e.hasItemOption?t===l?v[n]||(v[n]=x(t).getModel(j[n])):x(t).getModel(j[n]):y[n]}return function(t,n){return l=t,u=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,l=e;e&&Y(e,r,o)&&(s=Object(i.indexOf)(a.childrenRef(),e),e=null);var u,c,h=!e,d=e;d?d.clearStates():(d=F(r),l&&(u=l,(c=d).copyTransform(u),R(c)&&R(u)&&(c.setStyle(u.style),c.z=u.z,c.z2=u.z2,c.zlevel=u.zlevel,c.invisible=u.invisible,c.ignore=u.ignore,D(c)&&D(u)&&c.setShape(u.shape)))),!1===r.morph?d.disableMorphing=!0:d.disableMorphing&&(d.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;$(n,null,o),$(n,"emphasis",o);var a=o.normal.conOpt,s=o.emphasis.conOpt,l=o.blur.conOpt,u=o.select.conOpt;if(null!=a||null!=s||null!=u||null!=l){var c=t.getTextContent();if(!1===a)c&&t.removeTextContent();else{a=o.normal.conOpt=a||{type:"text"},c?c.clearStates():(c=F(a),t.setTextContent(c)),B(null,c,e,a,null,r,i);for(var h=a&&a.style,d=0;d<A.length;d++){var f=A[d];if("normal"!==f){var p=o[f].conOpt;z(f,c,0,q(a,p,f),null)}}h?c.dirty():c.markRedraw()}}}(d,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=F(o),t.setClipPath(a)),B(null,a,e,o,null,r,i)}}(d,n,r,o,h),B(t,d,n,r,P,o,h),Object(i.hasOwn)(r,"info")&&(Object(E.customInnerStore)(d).info=r.info);for(var f=0;f<A.length;f++){var g=A[f];if("normal"!==g){var v=X(r,g);z(g,d,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<A.length;s++)V(r,e,A[s])}}(d,r,o),"group"===r.type&&function(t,e,n,r,i){var o=r.children,a=o?o.length:0,s=r.$mergeChildren,l="byName"===s||r.diffChildrenByName,u=!1===s;if(!a&&!l&&!u)return;if(l)return c={api:t,oldChildren:e.children()||[],newChildren:o||[],dataIndex:n,seriesModel:i,group:e},void new p.default(c.oldChildren,c.newChildren,Z,Z,c).add(K).update(K).remove(J).execute();var c;u&&e.removeAll();for(var h=0;h<a;h++)o[h]&&W(t,e.childAt(h),n,o[h],i,e);for(var d=e.childCount()-1;d>=h;d--){var f=e.childAt(d);Object(T.applyLeaveTransition)(f,Object(E.customInnerStore)(e).option,i)}}(t,d,n,r,o),s>=0?a.replaceAt(d,s):a.add(d),d}function Y(t,e,n){var r,o=Object(E.customInnerStore)(t),a=e.type,s=e.shape,l=e.style;return n.isUniversalTransitionEnabled()||null!=a&&a!==o.customGraphicType||"path"===a&&((r=s)&&(Object(i.hasOwn)(r,"pathData")||Object(i.hasOwn)(r,"d")))&&Q(s)!==o.customPathData||"image"===a&&Object(i.hasOwn)(l,"image")&&l.image!==o.customImagePath}function $(t,e,n){var r=e?X(t,e):t,i=e?q(t,r,"emphasis"):t.style,o=t.type,a=r?r.textConfig:null,s=t.textContent,l=s?e?X(s,e):s:null;if(i&&(n.isLegacy||Object(O.isEC4CompatibleStyle)(i,o,!!a,!!l))){n.isLegacy=!0;var u=Object(O.convertFromEC4CompatibleStyle)(i,o,!e);!a&&u.textConfig&&(a=u.textConfig),!l&&u.textContent&&(l=u.textContent)}if(!e&&l){var c=l;!c.type&&(c.type="text")}var h=e?n[e]:n.normal;h.cfg=a,h.conOpt=l}function X(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){var n=t&&t.name;return null!=n?n:"e\0\0"+e}function K(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];Object(T.applyLeaveTransition)(n,Object(E.customInnerStore)(n).option,e.seriesModel)}function Q(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(450),o=n(153),a=n(311),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"),d=l(c,s).getOtherAxis(s).getGlobalExtent(),f=s.toGlobalCoord(s.dataToCoord(e,!0));if(h&&"none"!==h){var p=o.buildElStyle(r),g=u[h](s,f,d);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=l(o,i).getOtherAxis(i).getGlobalExtent(),u="x"===i.dim?0:1,c=[t.x,t.y];c[u]+=e[u],c[u]=Math.min(a[1],c[u]),c[u]=Math.max(a[0],c[u]);var h=(s[1]+s[0])/2,d=[h,h];d[u]=c[u];return{x:c[0],y:c[1],rotation:t.rotation,cursorPoint:d,tooltipOption:[{verticalAlign:"middle"},{align:"center"}][u]}},e}(i.default);function l(t,e){var n={};return n[e.dim+"AxisIndex"]=e.index,t.getCartesian(n)}var u={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(40).default);e.default=i},function(t,e,n){"use strict";n.r(e);var r=n(5),i=n(407),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(62).default);e.default=o},function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return l}));var r=n(10),i=n(333),o=n(680),a=n(0),s=Object(r.makeInner)();function l(t,e,n){var r=t.currTrigger,i=[t.x,t.y],l=t,p=t.dispatchAction||Object(a.bind)(n.dispatchAction,n),g=e.getComponent("axisPointer").coordSysAxesInfo;if(g){f(i)&&(i=Object(o.default)({seriesIndex:l.seriesIndex,dataIndex:l.dataIndex},e).point);var v=f(i),m=l.axesInfo,y=g.axesInfo,b="leave"===r||f(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&&u(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,d(e),d(t)))),S[t.key]=o}}))})),Object(a.each)(S,(function(t,e){u(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(f(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 l=[],u=[];Object(a.each)(i,(function(t,e){!o[e]&&u.push(t)})),Object(a.each)(o,(function(t,e){!i[e]&&l.push(t)})),u.length&&n.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:u}),l.length&&n.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:l})}(y,0,n),_}}function u(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,l=-1;return Object(a.each)(e.seriesModels,(function(e,u){var c,h,d=e.getData().mapDimensionsAll(r);if(e.getAxisTooltipData){var f=e.getAxisTooltipData(d,t,n);h=f.dataIndices,c=f.nestestValue}else{if(!(h=e.getData().indicesOfNearest(d[0],t,"category"===n.type?.5:null)).length)return;c=e.getData().get(d[0],h[0])}if(null!=c&&isFinite(c)){var p=t-c,g=Math.abs(p);g<=s&&((g<s||p>=0&&l<0)&&(s=g,l=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),l=s.payloadBatch,u=s.snapToValue;l[0]&&null==i.seriesIndex&&Object(a.extend)(i,l[0]),!r&&t.snap&&o.containData(u)&&null!=u&&(e=u),n.showPointer(t,e,l),n.showTooltip(t,s,u)}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,l=e.axisPointerModel;if(e.triggerTooltip&&o.length){var u=e.coordSys.model,c=i.makeKey(u),h=t.map[c];h||(h=t.map[c]={coordSysId:u.id,coordSysIndex:u.componentIndex,coordSysType:u.type,coordSysMainType:u.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:l.get(["label","precision"]),formatter:l.get(["label","formatter"])},seriesDataIndices:o.slice()})}}function d(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 f(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(450),o=n(14),a=n(153),s=n(41),l=n(170),u=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 u=n.axis;"angle"===u.dim&&(this.animationThreshold=Math.PI/18);var h=u.polar,d=h.getOtherAxis(u).getExtent(),f=u.dataToCoord(e),p=r.get("type");if(p&&"none"!==p){var g=a.buildElStyle(r),v=c[p](u,h,f,d);v.style=g,t.graphicKey=v.type,t.pointer=v}var m=function(t,e,n,r,i){var a=e.axis,u=a.dataToCoord(t),c=r.getAngleAxis().getExtent()[0];c=c/180*Math.PI;var h,d,f,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([u,-i],g);var v=e.getModel("axisLabel").get("rotate")||0,m=l.default.innerTextLayout(c,v*Math.PI/180,-1);d=m.textAlign,f=m.textVerticalAlign}else{var y=p[1];h=r.coordToPoint([y+i,u]);var b=r.cx,_=r.cy;d=Math.abs(h[0]-b)/y<.3?"center":h[0]>b?"left":"right",f=Math.abs(h[1]-_)/y<.3?"middle":h[1]>_?"top":"bottom"}return{position:h,align:d,verticalAlign:f}}(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=u},function(t,e,n){"use strict";n.r(e);var r=n(0),i=n(841),o=n(6),a=n(77),s=n(10);function l(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(),l=360/i.scale.count();i.inverse?s[1]+=l:s[1]-=l,i.setExtent(s[0],s[1])}}function u(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=l;var c=s.getRadiusAxis(),h=s.getAngleAxis(),d=t.findAxisModel("radiusAxis"),f=t.findAxisModel("angleAxis");u(c,d),u(h,f),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 l=t.getRadiusAxis(),u=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],u),Object(o.parsePercent)(c[1],u)];l.inverse?l.setExtent(h[1],h[0]):l.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(149),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(55),o=n(149),a=n(10),s=Object(a.makeInner)(),l=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),l=Math.abs(a),u=i.getBoundingRect(null==o?"":o+"",t.getFont(),"center","top"),c=Math.max(u.height,7)/l;isNaN(c)&&(c=1/0);var h=Math.max(0,Math.floor(c)),d=s(this.model),f=d.lastAutoInterval,p=d.lastTickCount;return null!=f&&null!=p&&Math.abs(f-h)<=1&&Math.abs(p-r)<=1&&f>h?h=f:(d.lastTickCount=r,d.lastAutoInterval=h),h},e}(o.default);l.prototype.dataToAngle=o.default.prototype.dataToCoord,l.prototype.angleToData=o.default.prototype.coordToData,e.default=l},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(40).default);e.default=i},function(t,e,n){"use strict";n.r(e);var r=n(5),i=n(0),o=n(233),a=n(443),s=n(144),l=n(14),u=n(66),c=n(174),h=n(27),d=n(57),f=n(205),p=n(170),g=n(32),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(),l=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(l),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,l)}),this)}},e.type="angleAxis",e}(f.default),x={axisLine:function(t,e,n,r,i,s){var l,u=e.getModel(["axisLine","lineStyle"]),c=y(n),h=c?0:1;(l=0===s[h]?new o.default({shape:{cx:n.cx,cy:n.cy,r:s[c]},style:u.getLineStyle(),z2:1,silent:!0}):new a.default({shape:{cx:n.cx,cy:n.cy,r:s[c],r0:s[h]},style:u.getLineStyle(),z2:1,silent:!0})).style.fill=null,t.add(l)},axisTick:function(t,e,n,r,o,a){var u=e.getModel("axisTick"),c=(u.get("inside")?-1:1)*u.get("length"),h=a[y(n)],d=i.map(r,(function(t){return new s.default({shape:m(n,[h,h+c],t.coord)})}));t.add(l.mergePath(d,{style:i.defaults(u.getModel("lineStyle").getLineStyle(),{stroke:e.get(["axisLine","lineStyle","color"])})}))},minorTick:function(t,e,n,r,o,a){if(o.length){for(var u=e.getModel("axisTick"),c=e.getModel("minorTick"),h=(u.get("inside")?-1:1)*c.get("length"),d=a[y(n)],f=[],p=0;p<o.length;p++)for(var g=0;g<o[p].length;g++)f.push(new s.default({shape:m(n,[d,d+h],o[p][g].coord)}));t.add(l.mergePath(f,{style:i.defaults(c.getModel("lineStyle").getLineStyle(),i.defaults(u.getLineStyle(),{stroke:e.get(["axisLine","lineStyle","color"])}))}))}},axisLabel:function(t,e,n,r,o,a,s){var l=e.getCategories(!0),c=e.getModel("axisLabel"),f=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+f,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(l&&l[m]){var C=l[m];i.isObject(C)&&C.textStyle&&(s=new d.default(C.textStyle,c,c.ecModel))}var E=new u.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 u=e.getModel("splitLine").getModel("lineStyle"),c=u.get("color"),h=0;c=c instanceof Array?c:[c];for(var d=[],f=0;f<r.length;f++){var p=h++%c.length;d[p]=d[p]||[],d[p].push(new s.default({shape:m(n,a,r[f].coord)}))}for(f=0;f<d.length;f++)t.add(l.mergePath(d[f],{style:i.defaults({stroke:c[f%c.length]},u.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"),u=[],c=0;c<i.length;c++)for(var h=0;h<i[c].length;h++)u.push(new s.default({shape:m(n,o,i[c][h].coord)}));t.add(l.mergePath(u,{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"),u=s.get("color"),h=0;u=u instanceof Array?u:[u];for(var d=[],f=Math.PI/180,p=-r[0].coord*f,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++%u.length;d[x]=d[x]||[],d[x].push(new c.default({shape:{cx:n.cx,cy:n.cy,r0:g,r:v,startAngle:p,endAngle:-_*f,clockwise:m},silent:!0})),p=-_*f}for(y=0;y<d.length;y++)t.add(l.mergePath(d[y],{style:i.defaults({fill:u[y%u.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(39),a=n(14),s=n(233),l=n(174),u=n(170),c=n(205),h=["axisLine","axisTickLabel","axisName"],d=["splitLine","splitArea","minorSplitLine"],f=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,l=s.polar,c=l.getAngleAxis(),f=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}}(l,t,v),b=new u.default(t,y);i.each(h,b.add,b),r.add(b.getGroup()),a.groupTransition(n,r,t),i.each(d,(function(e){t.get([e,"show"])&&!s.scale.isBlank()&&p[e](this.group,t,l,v,m,f,g)}),this)}},e.type="radiusAxis",e}(c.default),p={splitLine:function(t,e,n,r,o,l){var u=e.getModel("splitLine").getModel("lineStyle"),c=u.get("color"),h=0;c=c instanceof Array?c:[c];for(var d=[],f=0;f<l.length;f++){var p=h++%c.length;d[p]=d[p]||[],d[p].push(new s.default({shape:{cx:n.cx,cy:n.cy,r:Math.max(l[f].coord,0)}}))}for(f=0;f<d.length;f++)t.add(a.mergePath(d[f],{style:i.defaults({stroke:c[f%c.length],fill:null},u.getLineStyle()),silent:!0}))},minorSplitLine:function(t,e,n,r,o,l,u){if(u.length){for(var c=e.getModel("minorSplitLine").getModel("lineStyle"),h=[],d=0;d<u.length;d++)for(var f=0;f<u[d].length;f++)h.push(new s.default({shape:{cx:n.cx,cy:n.cy,r:u[d][f].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 u=e.getModel("splitArea").getModel("areaStyle"),c=u.get("color"),h=0;c=c instanceof Array?c:[c];for(var d=[],f=s[0].coord,p=1;p<s.length;p++){var g=h++%c.length;d[g]=d[g]||[],d[g].push(new l.default({shape:{cx:n.cx,cy:n.cy,r0:f,r:s[p].coord,startAngle:0,endAngle:2*Math.PI},silent:!0})),f=s[p].coord}for(p=0;p<d.length;p++)t.add(a.mergePath(d[p],{style:i.defaults({fill:c[p%c.length]},u.getAreaStyle()),silent:!0}))}}};e.default=f},function(t,e,n){"use strict";n.r(e);var r=n(0),i=n(6),o=n(133);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 l={},u=function(t){var e={};r.each(t,(function(t,n){var r=t.getData(),o=t.coordinateSystem,l=o.getBaseAxis(),u=s(o,l),c=l.getExtent(),h="category"===l.type?l.getBandWidth():Math.abs(c[1]-c[0])/r.count(),d=e[u]||{bandWidth:h,remainedWidth:h,autoWidthCount:0,categoryGap:"20%",gap:"30%",stacks:{}},f=d.stacks;e[u]=d;var p=a(t);f[p]||d.autoWidthCount++,f[p]=f[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&&!f[p].width&&(g=Math.min(d.remainedWidth,g),f[p].width=g,d.remainedWidth-=g),v&&(f[p].maxWidth=v),null!=m&&(d.gap=m),null!=y&&(d.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),l=Object(i.parsePercent)(t.gap,1),u=t.remainedWidth,c=t.autoWidthCount,h=(u-s)/(c+(c-1)*l);h=Math.max(h,0),r.each(o,(function(t,e){var n=t.maxWidth;n&&n<h&&(n=Math.min(n,u),t.width&&(n=Math.min(n,t.width)),u-=n,t.width=n,c--)})),h=(u-s)/(c+(c-1)*l),h=Math.max(h,0);var d,f=0;r.each(o,(function(t,e){t.width||(t.width=h),d=t,f+=t.width*(1+l)})),d&&(f-=d.width*l);var p=-f/2;r.each(o,(function(t,r){n[e][r]=n[e][r]||{offset:p,width:t.width},p+=t.width*(1+l)}))})),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=u[i][c],d=h.offset,f=h.width,p=n.getOtherAxis(r),g=t.coordinateSystem.cx,v=t.coordinateSystem.cy,m=t.get("barMinHeight")||0,y=t.get("barMinAngle")||0;l[c]=l[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),M=E>=0?"p":"n",A=O;x&&(l[c][T]||(l[c][T]={p:O,n:O}),A=l[c][T][M]);var I=void 0,j=void 0,k=void 0,P=void 0;if("radius"===p.dim){var L=p.dataToCoord(E)-O,D=r.dataToCoord(T);Math.abs(L)<m&&(L=(L<0?-1:1)*m),I=A,j=A+L,P=(k=D-d)-f,x&&(l[c][T][M]=j)}else{var R=p.dataToCoord(E,w)-O,N=r.dataToCoord(T);Math.abs(R)<y&&(R=(R<0?-1:1)*y),j=(I=N+d)+f,k=A,P=A+R,x&&(l[c][T][M]=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(450),o=n(153),a=n(539),s=["x","y"],l=["width","height"],u=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,l=s.coordinateSystem,u=d(l,1-h(s)),f=l.dataToPoint(e)[0],p=r.get("type");if(p&&"none"!==p){var g=o.buildElStyle(r),v=c[p](s,f,u);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=d(o,a),l=[t.x,t.y];l[a]+=e[a],l[a]=Math.min(s[1],l[a]),l[a]=Math.max(s[0],l[a]);var u=d(o,1-a),c=(u[1]+u[0])/2,f=[c,c];return f[a]=l[a],{x:l[0],y:l[1],rotation:t.rotation,cursorPoint:f,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 d(t,e){var n=t.getRect();return[n[s[e]],n[s[e]]+n[l[e]]]}e.default=u},function(t,e,n){"use strict";n.r(e);var r=n(5),i=n(0),o=n(170),a=n(39),s=n(14),l=n(144),u=n(539),c=n(205),h=n(481),d=["axisLine","axisTickLabel","axisName"],f=["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,l){var c=this.group;c.removeAll();var h=this._axisGroup;this._axisGroup=new a.default;var p=u.layout(e),v=new o.default(e,p);i.each(d,v.add,v),c.add(this._axisGroup),c.add(v.getGroup()),i.each(f,(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,l)},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"),u=a.getModel("lineStyle"),c=u.get("color");c=c instanceof Array?c:[c];for(var h=r.coordinateSystem.getRect(),d=o.isHorizontal(),f=[],p=0,g=o.getTicksCoords({tickModel:a}),v=[],m=[],y=0;y<g.length;++y){var b=o.toGlobalCoord(g[y].coord);d?(v[0]=b,v[1]=h.y,m[0]=b,m[1]=h.y+h.height):(v[0]=h.x,v[1]=b,m[0]=h.x+h.width,m[1]=b);var _=p++%c.length;f[_]=f[_]||[],f[_].push(new l.default({subPixelOptimize:!0,shape:{x1:v[0],y1:v[1],x2:m[0],y2:m[1]},silent:!0}))}var x=u.getLineStyle(["color"]);for(y=0;y<f.length;++y)e.add(s.mergePath(f[y],{style:i.defaults({stroke:c[y%c.length]},x),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(843),i=n(10);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(149).default);e.default=i},function(t,e,n){"use strict";n.r(e);var r=n(5),i=n(0),o=n(40),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),l(e,i)},e.prototype.mergeOption=function(e){t.prototype.mergeOption.apply(this,arguments),l(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 l(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(70),a=n(175),s=n(66),l=n(27),u=n(48),c=n(6),h=n(62),d=n(247),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=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(),l=e.start.time;l<=e.end.time;l=r.getNextNDay(l,1).time){var u=r.dataToRect([l],!1).tl,c=new o.default({shape:{x:u[0],y:u[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"]),l=a.lineWidth;this._tlpoints=[],this._blpoints=[],this._firstDayOfMonth=[],this._firstDayPoints=[];for(var u=e.start,c=0;u.time<=e.end.time;c++){d(u.formatedDate),0===c&&(u=o.getDateInfo(e.start.y+"-"+e.start.m));var h=u.date;h.setMonth(h.getMonth()+1),u=o.getDateInfo(h)}function d(e){i._firstDayOfMonth.push(o.getDateInfo(e)),i._firstDayPoints.push(o.dataToRect([e],!1).tl);var l=i._getLinePointsOfOneWeek(t,e,n);i._tlpoints.push(l[0]),i._blpoints.push(l[l.length-1]),s&&i._drawSplitline(l,a,r)}d(o.getNextNDay(e.end.time,1).formatedDate),s&&this._drawSplitline(i._getEdgesPoints(i._tlpoints,l,n),a,r),s&&this._drawSplitline(i._getEdgesPoints(i._blpoints,l,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),l=r.dataToRect([s.time],!1);o[2*s.day]=l.tl,o[2*s.day+1]=l["horizontal"===n?"bl":"tr"]}return o},e.prototype._formatterLabel=function(t,e){return Object(i.isString)(t)&&t?Object(u.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 l=0;return"left"!==r&&"right"!==r||(l=Math.PI/2),{rotation:l,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 u=[this._tlpoints[this._tlpoints.length-1],this._blpoints[0]],c=(u[0][0]+u[1][0])/2,h=(u[0][1]+u[1][1])/2,d="horizontal"===n?0:1,f={top:[c,u[d][1]],bottom:[c,u[1-d][1]],left:[u[1-d][0],h],right:[u[d][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(l.createTextStyle)(i,{text:m})});y.attr(this._yearTextPositionControl(y,f[a],n,a,o)),r.add(y)}},e.prototype._monthTextPositionControl=function(t,e,n,r,i){var o="left",a="top",s=t[0],l=t[1];return"horizontal"===n?(l+=i,e&&(o="center"),"start"===r&&(a="bottom")):(s+=i,e&&(a="middle"),"start"===r&&(o="right")),{x:s,y:l,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"),u=o.get("margin"),c=o.get("position"),h=o.get("align"),f=[this._tlpoints,this._blpoints];a&&!Object(i.isString)(a)||(a&&(e=Object(d.getLocaleModel)(a)||e),a=e.get(["time","monthAbbr"])||[]);var p="start"===c?0:1,g="horizontal"===n?0:1;u="start"===c?-u:u;for(var v="center"===h,m=0;m<f[p].length-1;m++){var y=f[p][m].slice(),b=this._firstDayOfMonth[m];if(v){var _=this._firstDayPoints[m];y[g]=(_[g]+f[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(l.createTextStyle)(o,{text:S}),this._monthTextPositionControl(y,v,n,c,u))});r.add(C)}}},e.prototype._weekTextPositionControl=function(t,e,n,r,i){var o="center",a="middle",s=t[0],l=t[1],u="start"===n;return"horizontal"===e?(s=s+r+(u?1:-1)*i[0]/2,o=u?"right":"left"):(l=l+r+(u?1:-1)*i[1]/2,a=u?"bottom":"top"),{x:s,y:l,align:o,verticalAlign:a}},e.prototype._renderWeekText=function(t,e,n,r,o){var a=t.getModel("dayLabel");if(a.get("show")){var u=t.coordinateSystem,h=a.get("position"),f=a.get("nameMap"),p=a.get("margin"),g=u.getFirstDayOfWeek();if(!f||Object(i.isString)(f))f&&(e=Object(d.getLocaleModel)(f)||e),f=e.get(["time","dayOfWeekShort"])||Object(i.map)(e.get(["time","dayOfWeekAbbr"]),(function(t){return t[0]}));var v=u.getNextNDay(n.end.time,7-n.lweek).time,m=[u.getCellWidth(),u.getCellHeight()];p=Object(c.parsePercent)(p,Math.min(m[1],m[0])),"start"===h&&(v=u.getNextNDay(n.start.time,-(7+n.fweek)).time,p=-p);for(var y=0;y<7;y++){var b,_=u.getNextNDay(v,y),x=u.dataToRect([_.time],!1).center;b=Math.abs((y+g)%7);var w=new s.default({z2:30,style:Object(i.extend)(Object(l.createTextStyle)(a,{text:f[b]}),this._weekTextPositionControl(x,r,h,p,m))});o.add(w)}}},e.type="calendar",e}(h.default);e.default=f},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(),l="horizontal"===this._orient?[n,7]:[7,n];r.each([0,1],(function(t){h(a,t)&&(s[o[t]]=a[t]*l[t])}));var u={width:e.getWidth(),height:e.getHeight()},c=this._rect=i.getLayoutRect(s,u);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]]/l[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 l=i.getTime()-n[1].time>0?1:-1;(s=i.getDate())!==a&&(i.getTime()-n[1].time)*l>0;)r-=l,i.setDate(s-l);var u=Math.floor((r+n[0].day+6)/7),c=e?1-u:u-1;return e&&n.reverse(),{range:[n[0].formatedDate,n[1].formatedDate],start:n[0],end:n[1],allDay:r,weeks:u,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 l})),n.d(e,"GraphicComponentModel",(function(){return f}));var r=n(5),i=n(0),o=n(10),a=n(40),s=n(33);function l(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 u(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 d(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 f=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"),f=this._elOptionsToUpdate=[];i.each(h,(function(t,e){var n=t.newOption;n&&(f.push(n),l(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),d(n,o),d(n,o,"shape"),d(n,o,"style"),d(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=[u(e,["left","right"]),u(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;"group"===t.type&&r&&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(97),a=n(10),s=n(39),l=n(106),u=n(66),c=n(14),h=n(33),d=n(6),f=n(62),p=n(32),g=n(372),v=n(217),m=n(23),y=n(406),b={path:null,compoundPath:null,group:s.default,image:l.default,text:u.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 l=a.convertOptionIdName(e.id,null),d=null!=l?n.get(l):null,f=a.convertOptionIdName(e.parentId,null),m=null!=f?n.get(f):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 M=Object(g.convertFromEC4CompatibleStyle)(x,b,!0);!T&&M.textConfig&&(T=e.textConfig=M.textConfig),!E&&M.textContent&&(E=M.textContent)}var A=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=d;(z=!d)?P=O(l,m,e.type,n):(P&&(_(P).isNew=!1),Object(y.stopPreviousKeyframeAnimationAndRestore)(P)),P&&(Object(v.applyUpdateTransition)(P,A,t,{isInit:z}),C(P,e,o,s))}else if(k){S(d,e,n,t);var L=O(l,m,e.type,n);L&&(Object(v.applyUpdateTransition)(L,A,t,{isInit:!0}),C(L,e,o,s))}else"remove"===I&&(Object(v.updateLeaveTo)(d,e),S(d,e,n,t));var D=n.get(l);if(D&&E)if(j){var R=D.getTextContent();R?R.attr(E):D.setTextContent(new u.default(E))}else k&&D.setTextContent(new u.default(E));if(D){var N=e.clipPath;if(N){var F=N.type,B=void 0,z=!1;if(j){var V=D.getClipPath();B=(z=!V||_(V).type!==F)?w(F):V}else k&&(z=!0,B=w(F));D.setClipPath(B),Object(v.applyUpdateTransition)(B,N,t,{isInit:z}),Object(y.applyKeyframeAnimation)(B,N.keyframeAnimation,t)}var U=_(D);D.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)}(D,t,e),c.setTooltipConfig({el:D,componentModel:t,itemName:D.name,itemTooltipOption:e.tooltip}),Object(y.applyKeyframeAnimation)(D,e.keyframeAnimation,t)}}))}},e.prototype._relocate=function(t,e){for(var n=t.option.elements,r=this.group,o=this._elMap,s=e.getWidth(),l=e.getHeight(),u=["x","y"],c=0;c<n.length;c++){var f=n[c];if((x=null!=(b=a.convertOptionIdName(f.id,null))?o.get(b):null)&&x.isGroup){var p=(w=x.parent)===r,g=_(x),y=_(w);g.width=Object(d.parsePercent)(g.option.width,p?s:y.width)||0,g.height=Object(d.parsePercent)(g.option.height,p?l:y.height)||0}}for(c=n.length-1;c>=0;c--){var b,x;f=n[c];if(x=null!=(b=a.convertOptionIdName(f.id,null))?o.get(b):null){var w=x.parent,O=(y=_(w),w===r?{width:s,height:l}:{width:y.width,height:y.height}),S={},C=h.positionElement(x,f,O,null,{hv:f.hv,boundingMode:f.bounding},S);if(!_(x).isNew&&C){for(var E=f.transition,T={},M=0;M<u.length;M++){var A=u[M],I=S[A];E&&(Object(v.isTransitionAll)(E)||i.indexOf(E,A)>=0)?T[A]=I:x[A]=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}(f.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){if(!t.isGroup){var a=t;a.cursor=i.retrieve2(e.cursor,o.default.prototype.cursor),a.z=i.retrieve2(e.z,n||0),a.zlevel=i.retrieve2(e.zlevel,r||0);var s=e.z2;null!=s&&(a.z2=s||0)}i.each(i.keys(e),(function(n){var r=e[n];0===n.indexOf("on")&&i.isFunction(r)&&(t[n]=r)})),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(104),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(40).default);e.default=a},function(t,e,n){"use strict";n.r(e);var r=n(5),i=n(0),o=n(55),a=n(14),s=n(13),l=n(57),u=n(169),c=n(540),h=n(62),d=n(104),f=n(103),p=n(66),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 u.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(),l=s&&s.ensureState("emphasis");if(l&&!i.isFunction(l)&&e){var u=l.style||(l.style={}),c=o.getBoundingRect(e,p.default.makeFont(u)),d=t.x+h.x,f=!1;t.y+h.y+g+c.height>n.getHeight()&&(a.position="top",f=!0);var v=f?-5-c.height:g+10;d+c.width/2>n.getWidth()?(a.position=["100%",v],u.align="right"):d-c.width/2<0&&(a.position=[0,v],u.align="left")}}))}function _(o,u){var c,_=b[o],x=b[u],w=m[_],O=new l.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(d.getFeature)(_);if(!S)return;c=new S}y[_]=c}else if(!(c=y[x]))return;c.uid=Object(f.getUID)("toolbox-feature"),c.model=O,c.ecModel=e,c.api=n;var C=c instanceof d.ToolboxFeature;_||!x?!O.get("show")||C&&c.unusable?C&&c.remove&&c.remove(e,n):(!function(r,o,l){var u,c,f=r.getModel("iconStyle"),m=r.getModel(["emphasis","iconStyle"]),y=o instanceof d.ToolboxFeature&&o.getIcons?o.getIcons():r.get("icon"),b=r.get("title")||{};i.isString(y)?(u={})[l]=y:u=y;i.isString(b)?(c={})[l]=b:c=b;var _=r.iconPaths={};i.each(u,(function(l,u){var d=a.createIcon(l,{},{x:-g/2,y:-g/2,width:g,height:g});d.setStyle(f.getItemStyle()),d.ensureState("emphasis").style=m.getItemStyle();var y=new p.default({style:{text:c[u],align:m.get("textAlign"),borderRadius:m.get("textBorderRadius"),padding:m.get("textPadding"),fill:null},ignore:!0});d.setTextContent(y),a.setTooltipConfig({el:d,componentModel:t,itemName:u,formatterParamsExtra:{title:c[u]}}),d.__title=c[u],d.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")}),d.setTextConfig({position:m.get("textPosition")||r}),y.ignore=!t.get("showTitle"),n.enterEmphasis(this)})).on("mouseout",(function(){"emphasis"!==r.get(["iconStatus",u])&&n.leaveEmphasis(this),y.hide()})),("emphasis"===r.get(["iconStatus",u])?s.enterEmphasis:s.leaveEmphasis)(d),h.add(d),d.on("click",i.bind(o.onclick,o,e,n,u)),_[u]=d}))}(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 d.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 d.ToolboxFeature&&t.updateView&&t.updateView(t.model,e,n,r)}))},e.prototype.remove=function(t,e){i.each(this._features,(function(n){n instanceof d.ToolboxFeature&&n.remove&&n.remove(t,e)})),this.group.removeAll()},e.prototype.dispose=function(t,e){i.each(this._features,(function(n){n instanceof d.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(49),o=n(104),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",l=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")}),u=i.default.browser;if(Object(a.isFunction)(MouseEvent)&&(u.newEdge||!u.ie&&!u.edge)){var c=document.createElement("a");c.download=r+"."+s,c.target="_blank",c.href=l;var h=new MouseEvent("click",{view:document.defaultView,bubbles:!0,cancelable:!1});c.dispatchEvent(h)}else if(window.navigator.msSaveOrOpenBlob||o){var d=l.split(","),f=d[0].indexOf("base64")>-1,p=o?decodeURIComponent(d[1]):d[1];f&&(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="'+l+'" 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(126),o=n(0),a=n(104),s=n(10),l=[["line","bar"],["stack"]],u=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,u={series:[]};o.each(l,(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),u.series.push(a));var l=t.coordinateSystem;if(l&&"cartesian2d"===l.type&&("line"===n||"bar"===n)){var h=l.getAxesByScale("ordinal")[0];if(h){var d=h.dim+"Axis",f=t.getReferringComponents(d,s.SINGLE_REFERRING).models[0].componentIndex;u[d]=u[d]||[];for(var p=0;p<=f;p++)u[d][f]=u[d][f]||{};u[d][f].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:u,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=u},function(t,e,n){"use strict";n.r(e);var r=n(5),i=n(126),o=n(0),a=n(104),s=n(80),l=new Array(60).join("-");function u(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*"+l+"\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=u(e.shift()).split(c),r=[],i=o.map(n,(function(t){return{name:t,data:[]}})),a=0;a<e.length;a++){var s=u(e[a]).split(c);r.push(s.shift());for(var l=0;l<s.length;l++)i[l]&&(i[l].data[a]=s[l])}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=u(e.shift()),r=[],i=0;i<e.length;i++){var o=u(e[i]);if(o){var a=o.split(c),s="",l=void 0,h=!1;isNaN(a[0])?(h=!0,s=a[0],a=a.slice(1),r[i]={name:s,value:[]},l=r[i].value):l=r[i]=[];for(var d=0;d<a.length;d++)l.push(+a[d]);1===l.length&&(h?r[i].value=l[0]:r[i]=l[0])}}return{name:n,data:r}}(t);r.series.push(i)}})),r}var d=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"),u=r.get("lang")||[];a.innerHTML=u[0]||r.get("title"),a.style.cssText="margin:10px 20px",a.style.color=r.get("textColor");var c=document.createElement("div"),d=document.createElement("textarea");c.style.cssText="overflow:auto";var f=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 l=[a.join("\t")],u=0;u<s[0].length;u++){for(var c=[],h=0;h<s.length;h++)c.push(s[h][u]);l.push(c.join("\t"))}r.push(l.join("\n"))})),r.join("\n\n"+l+"\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"+l+"\n\n"))],(function(t){return!!t.replace(/[\n\t\s]/g,"")})).join("\n\n"+l+"\n\n"),meta:i.meta}}(t);if(o.isFunction(f)){var v=f(e.getOption());o.isString(v)?c.innerHTML=v:o.isDom(v)&&c.appendChild(v)}else{d.readOnly=r.get("readOnly");var m=d.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"),d.value=g.value,c.appendChild(d)}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!=f||null!=p&&null==f)S();else{var t;try{t=o.isFunction(p)?p(c,e.getOption()):h(d.value,y)}catch(t){throw S(),new Error("Data view format error "+t)}t&&e.dispatchAction({type:"changeDataView",newOption:t}),S()}})),x.innerHTML=u[1],w.innerHTML=u[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 f(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:f(t.data,i)})}else n.push(o.extend({type:"scatter"},t))})),e.mergeOption(o.defaults({series:n},t.newOption))})),e.default=d},function(t,e,n){"use strict";n.r(e);var r=n(5),i=n(0),o=n(449),a=n(541),s=n(483),l=n(225),u=n(104),c=n(10),h=n(655),d=i.each,f=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),u=s.findRepresentativeAxisProxy(a).getMinMaxSpan();null==u.minValueSpan&&null==u.maxValueSpan||(i=Object(l.default)(0,i.slice(),o.scale.getExtent(),0,u.minValueSpan,u.maxValueSpan)),s&&(n[s.id]={dataZoomId:s.id,startValue:i[0],endValue:i[1]})}},e.prototype._dispatchZoomAction=function(t){var e=[];d(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}(u.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 d(a.xAxisModels,(function(t){return s(t,"xAxis","xAxisIndex")})),d(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:f+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(126),o=n(483),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(104).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(1436),i=n(1437),o=n(452);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(365).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(451).default);e.default=i},function(t,e,n){"use strict";n.r(e);var r=n(0),i=n(156),o=n(1439),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(225),a=n(77),s=n(661),l=n(156),u=n(10),c=r.each,h=i.asc,d=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(l.isCoordSupported)(e)){var n=Object(l.getAxisMainType)(this._dimName),r=e.getReferringComponents(n,u.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],l=[],u=[];c(["start","end"],(function(o,c){var h=t[o],d=t[o+"Value"];"percent"===a[c]?(null==h&&(h=s[c]),d=r.parse(i.linearMap(h,s,n))):(e=!0,d=null==d?n[c]:r.parse(d),h=i.linearMap(d,n,s)),u[c]=d,l[c]=h})),h(u),h(l);var d=this._minMaxSpan;function f(t,e,n,a,s){var l=s?"Span":"ValueSpan";Object(o.default)(0,t,n,"all",d["min"+l],d["max"+l]);for(var u=0;u<2;u++)e[u]=i.linearMap(t[u],n,a,!0),s&&(e[u]=r.parse(e[u]))}return e?f(u,l,n,s,!1):f(l,u,s,n,!0),{valueWindow:u,percentWindow:l}},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(),l=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 u=s.get(l[o],t),c=!isNaN(u),h=u<a[0],d=u>a[1];if(c&&!h&&!d)return!0;c&&(r=!0),h&&(e=!0),d&&(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=d},function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return o}));var r=n(156),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(40).default);e.default=i},function(t,e,n){"use strict";n.r(e);var r=n(5),i=n(0),o=n(49),a=n(1444),s=n(1443),l=n(48),u=n(6),c=n(70),h=n(680),d=n(33),f=n(57),p=n(407),g=n(77),v=n(153),m=n(10),y=n(62),b=n(43),_=n(32),x=n(315),w=n(329),O=n(75),S=n(338),C=n(130),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;if(null!=this._lastX&&null!=this._lastY&&"none"!==t.get("triggerOn")){var r=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout((function(){!n.isDisposed()&&r.manuallyShowTip(t,e,n,{x:r._lastX,y:r._lastY,dataByCoordSys:r._lastDataByCoordSys})}))}},e.prototype.manuallyShowTip=function(t,e,n,r){if(r.from!==this.uid&&!o.default.node&&n.getDom()){var i=A(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 l=s.el.getBoundingRect().clone();l.applyTransform(s.el.transform),this._tryShow({offsetX:l.x+l.width/2,offsetY:l.y+l.height/2,target:s.el,position:r.position,positionDefault:"bottom"},i)}else if(r.tooltip&&null!=r.x&&null!=r.y){var u=E;u.x=r.x,u.y=r.y,u.update(),Object(_.getECData)(u).tooltipConfig={name:null,option:r.tooltip},this._tryShow({offsetX:r.x,offsetY:r.y,target:u},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),d=c.point[0],f=c.point[1];null!=d&&null!=f&&this._tryShow({offsetX:d,offsetY:f,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(A(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"===M([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=M([e.tooltipOption],r),s=this._renderMode,u=[],c=Object(O.createTooltipMarkup)("section",{blocks:[],noHeader:!0}),h=[],d=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),f=Object(O.createTooltipMarkup)("section",{header:a,noHeader:!Object(i.trim)(a),sortBlocks:!0,blocks:[]});c.blocks.push(f),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=d.makeTooltipMarker("item",Object(l.convertToColorString)(m.color),s);var y=Object(w.normalizeTooltipFormatResult)(p.formatTooltip(v,!0,null)),b=y.frag;if(b){var _=M([p],r).get("valueFormatter");f.blocks.push(_?Object(i.extend)({valueFormatter:_},b):b)}y.text&&h.push(y.text),u.push(m)}}))}}))})),c.blocks.reverse(),h.reverse();var f=e.position,p=a.get("order"),m=Object(O.buildTooltipMarkup)(c,d,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,u)?this._updatePosition(a,f,o[0],o[1],this._tooltipContent,u):this._showTooltipContent(a,b,u,Math.random()+"",o[0],o[1],f,null,d)}))},e.prototype._showSeriesItemTooltip=function(t,e,n){var r=this._ecModel,o=Object(_.getECData)(e),a=o.seriesIndex,s=r.getSeriesByIndex(a),u=o.dataModel||s,c=o.dataIndex,h=o.dataType,d=u.getData(h),f=this._renderMode,p=t.positionDefault,g=M([d.getItemModel(c),u,s&&(s.coordinateSystem||{}).model],this._tooltipModel,p?{position:p}:null),v=g.get("trigger");if(null==v||"item"===v){var m=u.getDataParams(c,h),y=new O.TooltipMarkupStyleCreator;m.marker=y.makeTooltipMarker("item",Object(l.convertToColorString)(m.color),f);var b=Object(w.normalizeTooltipFormatResult)(u.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,f,x,r.get("useUTC"),g.get("textStyle")):b.text,T="item_"+u.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:d.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 l=t.positionDefault,u=M(a,this._tooltipModel,l?{position:l}:null),c=u.get("content"),h=Math.random()+"",d=new O.TooltipMarkupStyleCreator;this._showOrMove(u,(function(){var n=Object(i.clone)(u.get("formatterParams")||{});this._showTooltipContent(u,c,n,h,t.offsetX,t.offsetY,t.position,e,d)})),n({type:"showTip",from:this.uid})},e.prototype._showTooltipContent=function(t,e,n,r,o,a,s,u,c){if(this._ticket="",t.get("showContent")&&t.get("show")){var h=this._tooltipContent;h.setEnterable(t.get("enterable"));var d=t.get("formatter");s=s||t.get("position");var f=e,p=this._getNearestPoint([o,a],n,t.get("trigger"),t.get("borderColor")).color;if(d)if(Object(i.isString)(d)){var g=t.ecModel.get("useUTC"),v=Object(i.isArray)(n)?n[0]:n;f=d,v&&v.axisType&&v.axisType.indexOf("time")>=0&&(f=Object(b.format)(v.axisValue,f,g)),f=Object(l.formatTpl)(f,n,!0)}else if(Object(i.isFunction)(d)){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,u))}),this);this._ticket=r,f=d(n,r,m)}else f=d;h.setContent(f,c,t,p,s),h.show(t,p),this._updatePosition(t,s,o,a,h,n,u)}},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 l=this._api.getWidth(),c=this._api.getHeight();e=e||t.get("position");var h=o.getSize(),f=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:[l,c],contentSize:h.slice()})),Object(i.isArray)(e))n=Object(u.parsePercent)(e[0],l),r=Object(u.parsePercent)(e[1],c);else if(Object(i.isObject)(e)){var v=e;v.width=h[0],v.height=h[1];var m=Object(d.getLayoutRect)(v,{width:l,height:c});n=m.x,r=m.y,f=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,l=0,u=e.width,c=e.height;switch(t){case"inside":s=e.x+u/2-i/2,l=e.y+c/2-o/2;break;case"top":s=e.x+u/2-i/2,l=e.y-o-a;break;case"bottom":s=e.x+u/2-i/2,l=e.y+c+a;break;case"left":s=e.x-i-a,l=e.y+c/2-o/2;break;case"right":s=e.x+u+a,l=e.y+c/2-o/2}return[s,l]}(e,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(),l=s[0],u=s[1];null!=o&&(t+l+o+2>r?t-=l+o:t+=o);null!=a&&(e+u+a>i?e-=u+a:e+=a);return[t,e]}(n,r,o,l,c,f?null:20,p?null:20);n=y[0],r=y[1]}if(f&&(n-=I(f)?h[0]/2:"right"===f?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,l,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||[],l=(t[a]||{}).dataByAxis||[];(o=o&&s.length===l.length)&&Object(i.each)(s,(function(t,n){var a=l[n]||{},s=t.seriesDataIndices||[],u=a.seriesDataIndices||[];(o=o&&t.value===a.value&&t.axisType===a.axisType&&t.axisId===a.axisId&&s.length===u.length)&&Object(i.each)(s,(function(t,e){var n=u[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 M(t,e,n){var r,o=e.ecModel;n?(r=new f.default(n,o,o),r=new f.default(e.option,r,o)):r=e;for(var a=t.length-1;a>=0;a--){var s=t[a];s&&(s instanceof f.default&&(s=s.get("tooltip",!0)),Object(i.isString)(s)&&(s={formatter:s}),s&&(r=new f.default(s,r,o)))}return r}function A(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(66),o=n(75),a=n(37),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,l){var u=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){u.el.style[t]=n.get(t)})),r.each(["textShadowBlur","textShadowOffsetX","textShadowOffsetY"],(function(t){u.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=u(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=l(i.borderWidth||0),a=u(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 l(t){return Math.max(0,t)}function u(t){var e=l(t.shadowBlur||0),n=l(t.shadowOffsetX||0),r=l(t.shadowOffsetY||0);return{left:l(e-n),right:l(e+n),top:l(e-r),bottom:l(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(80),o=n(530),a=n(49),s=n(48),l=n(315),u=n(75),c=Object(l.toCSSVendorPrefix)(l.TRANSITION_VENDOR,"transition"),h=Object(l.toCSSVendorPrefix)(l.TRANSFORM_VENDOR,"transform"),d="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;"+(a.default.transform3dSupported?"will-change:transform;":"");function f(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],[l.TRANSFORM_VENDOR,s]]}function p(t,e,n){var i=[],o=t.get("transitionDuration"),l=t.get("backgroundColor"),d=t.get("shadowBlur"),f=t.get("shadowColor"),p=t.get("shadowOffsetX"),g=t.get("shadowOffsetY"),v=t.getModel("textStyle"),m=Object(u.getPaddingFromTooltipModel)(t,"html"),y=p+"px "+g+"px "+d+"px "+f;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)),l&&i.push("background-color:"+l),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,l=t.get("textShadowOffsetY")||0;return o&&a&&e.push("text-shadow:"+s+"px "+l+"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 l=a&&a.getViewportRootOffset();l&&(t[0]+=l.offsetLeft,t[1]+=l.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 l=this;r.onmouseenter=function(){l._enterable&&(clearTimeout(l._hideTimeout),l._show=!0),l._inContent=!0},r.onmousemove=function(t){if(t=t||window.event,!l._enterable){var e=o.handler,n=o.painter.getViewportRoot();Object(i.normalizeEvent)(n,t,!0),e.dispatch("mousemove",t)}},r.onmouseleave=function(){l._inContent=!1,l._enterable&&l._show&&l.hideLater(l._hideDelay)}}return t.prototype.update=function(t){var e=this._container,n=Object(l.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=d+p(t,!this._firstShow,this._longHide)+f(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 u="";if(Object(r.isString)(o)&&"item"===n.get("trigger")&&!Object(l.shouldTooltipConfine)(n)&&(u=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,l,u=a="left"===(a=n)?"right":"right"===a?"left":"top"===a?"bottom":"top",c=Math.max(1.5*Math.round(o),6),d="",f=h+":";Object(r.indexOf)(["left","right"],u)>-1?(d+="top:50%",f+="translateY(-50%) rotate("+(l="left"===u?-225:-45)+"deg)"):(d+="left:50%",f+="translateX(-50%) rotate("+(l="top"===u?225:45)+"deg)");var p=l*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;",(d+=";"+u+":-"+Math.round(100*((v-Math.SQRT2*o)/2+Math.SQRT2*o-(v-g)/2))/100+"px")+";"+f+";","border-bottom:"+m,"border-right:"+m,"background-color:"+i+";"].join("")+'"></div>'}(n,i,o)),Object(r.isString)(t))a.innerHTML=t+u;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(u&&a.childNodes.length){var d=document.createElement("div");d.innerHTML=u,a.appendChild(d)}}}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=f(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(449),a=n(681),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(62).default);e.default=s},function(t,e,n){"use strict";n.r(e),n.d(e,"makeBrushCommonSelectorForSeries",(function(){return a}));var r=n(343),i=n(35),o=n(14);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:l(0),lineY:l(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,l=t.y,u=t.width,c=t.height,h=a[0];return!!(r.contain(a,s,l)||r.contain(a,s+u,l)||r.contain(a,s,l+c)||r.contain(a,s+u,l+c)||i.default.create(t).contain(h[0],h[1])||Object(o.linePolygonIntersect)(s,l,s+u,l,a)||Object(o.linePolygonIntersect)(s,l,s,l+c,a)||Object(o.linePolygonIntersect)(s+u,l,s+u,l+c,a)||Object(o.linePolygonIntersect)(s,l+c,s+u,l+c,a))||void 0}}};function l(t){var e=["x","y"],n=["width","height"];return{point:function(e,n,r){if(e){var i=r.range;return u(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(),u(s[0],a)||u(s[1],a)||u(a[0],s)||u(a[1],s)}}}}function u(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(276),a=n(57),s=n(40),l=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 u(this.option,t)}),this))},e.prototype.setBrushOption=function(t){this.brushOption=u(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 u(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=l},function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return a}));var r=n(0),i=n(10),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 l,u,c=s.feature||(s.feature={}),h=c.brush||(c.brush={}),d=h.type||(h.type=[]);d.push.apply(d,a),l=d,u={},r.each(l,(function(t){u[t]=1})),l.length=0,r.each(u,(function(t,e){l.push(e)})),e&&!d.length&&d.push.apply(d,o)}}},function(t,e,n){"use strict";n.r(e);var r=n(5),i=n(0),o=n(104),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(844),o=n(329),a=n(0),s=n(103),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="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)(l,o.DataFormatMixin.prototype),e.default=l},function(t,e,n){"use strict";n.r(e);var r=n(5),i=n(35),o=n(41),a=n(39),s=n(144),l=n(66),u=n(14),c=n(27),h=n(33),d=n(1453),f=n(1452),p=n(60),g=n(6),v=n(0),m=n(535),y=n(662),b=n(209),_=n(55),x=n(10),w=n(32),O=n(13),S=n(75),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"),l=function(t,e){return h.getLayoutRect(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()},t.get("padding"))}(t,e),u={horizontal:"center",vertical:(n=null==a||"auto"===a?"horizontal"===s?l.y+l.height/2<e.getHeight()/2?"-":"+":l.x+l.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"},d={horizontal:0,vertical:C/2},f="vertical"===s?l.height:l.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=f;"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 M=[E,T];return t.get("inverse")&&M.reverse(),{viewRect:l,mainLength:f,orient:s,rotation:d[s],labelRotation:_,labelPosOpt:n,labelAlign:t.get(["label","align"])||u[s],labelBaseline:t.get(["label","verticalAlign"])||t.get(["label","baseline"])||c[s],playPosition:r,prevBtnPosition:i,nextBtnPosition:o,axisExtent:M,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,l=i.y+i.height;o.translate(a,a,[-s,-l]),o.rotate(a,a,-C/2),o.translate(a,a,[s,l]),(i=i.clone()).applyTransform(a)}var u=y(i),c=y(n.getBoundingRect()),h=y(r.getBoundingRect()),d=[n.x,n.y],f=[r.x,r.y];f[0]=d[0]=u[0][0];var p,g=t.labelPosOpt;null==g||Object(v.isString)(g)?(b(d,c,u,1,p="+"===g?0:1),b(f,h,u,1,1-p)):(b(d,c,u,1,p=g>=0?0:1),f[1]=d[1]+g);function m(t){t.originX=u[0][0]-t.x,t.originY=u[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(d),r.setPosition(f),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 f.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),l=s.getModel("itemStyle"),u=s.getModel(["emphasis","itemStyle"]),c=s.getModel(["progress","itemStyle"]),h={x:a,y:0,onclick:Object(v.bind)(i._changeTimeline,i,t.value)},d=M(s,l,e,h);d.ensureState("emphasis").style=u.getItemStyle(),d.ensureState("progress").style=c.getItemStyle(),Object(O.enableHoverEmphasis)(d);var f=Object(w.getECData)(d);s.get("tooltip")?(f.dataIndex=t.value,f.dataModel=r):f.dataIndex=f.dataModel=null,i._tickSymbols.push(d)}))},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),u=s.getModel("label"),h=s.getModel(["emphasis","label"]),d=s.getModel(["progress","label"]),f=n.dataToCoord(r.tickValue),p=new l.default({x:f,y:0,rotation:t.labelRotation-t.rotation,onclick:Object(v.bind)(i._changeTimeline,i,a),silent:!1,style:Object(c.createTextStyle)(u,{text:r.formattedLabel,align:t.labelAlign,verticalAlign:t.labelBaseline})});p.ensureState("emphasis").style=Object(c.createTextStyle)(h),p.ensureState("progress").style=Object(c.createTextStyle)(d),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(),l=r.getModel(["emphasis","controlStyle"]).getItemStyle(),c=r.getPlayState(),h=r.get("inverse",!0);function d(t,n,c,h){if(t){var d=Object(_.parsePercent)(Object(v.retrieve2)(r.get(["controlStyle",n+"BtnSize"]),o),o),f=function(t,e,n,r){var o=r.style,a=u.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,-d/2,d,d],{x:t[0],y:t[1],originX:o/2,originY:0,rotation:h?-a:0,rectHover:!0,style:s,onclick:c});f.ensureState("emphasis").style=l,e.add(f),Object(O.enableHoverEmphasis)(f)}}d(t.nextBtnPosition,"next",Object(v.bind)(this._changeTimeline,this,h?"-":"+")),d(t.prevBtnPosition,"prev",Object(v.bind)(this._changeTimeline,this,h?"+":"-")),d(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,l={onCreate:function(t){t.draggable=!0,t.drift=Object(v.bind)(s._handlePointerDrag,s),t.ondragend=Object(v.bind)(s._handlePointerDragend,s),A(t,s._progressLine,o,n,r,!0)},onUpdate:function(t){A(t,s._progressLine,o,n,r)}};this._currentPointer=M(a,a,this._mainGroup,{},this._currentPointer,l)},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 u.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}(d.default);function M(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 l=e.getItemStyle(["color"]);i.setStyle(l),r=Object(v.merge)({rectHover:!0,z2:100},r,!0);var u=Object(p.normalizeSymbolSize)(t.get("symbolSize"));r.scaleX=u[0]/2,r.scaleY=u[1]/2;var c=Object(p.normalizeSymbolOffset)(t.get("symbolOffset"),u);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 A(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 l={duration:a.get("animationDuration",!0),easing:a.get("animationEasing",!0)};t.stopAnimation(null,!0),t.animateTo({x:s,y:0},l),e&&e.animateTo({shape:{x2:s}},l)}}}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(149).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(62).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(192).default);e.default=i},function(t,e,n){"use strict";n.r(e);var r=n(5),i=n(292),o=n(6),a=n(109),s=n(178),l=n(453),u=n(192),c=n(0),h=n(32),d=n(185);function f(t,e,n){var r=e.coordinateSystem;t.each((function(i){var a,s=t.getItemModel(i),l=o.parsePercent(s.get("x"),n.getWidth()),u=o.parsePercent(s.get("y"),n.getHeight());if(isNaN(l)||isNaN(u)){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=[l,u];isNaN(l)||(a[0]=l),isNaN(u)||(a[1]=u),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=u.default.getMarkerModelFromSeries(t,"markPoint");e&&(f(e.getData(),t,n),this.markerGroupMap.get(t.id).updateLayout())}),this)},e.prototype.renderSeries=function(t,e,n,r){var o=t.coordinateSystem,l=t.id,u=t.getData(),p=this.markerGroupMap,g=p.get(l)||p.set(l,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 l=s.createMarkerDimValueGetter(!!t,r);return i.initData(o,null,l),i}(o,t,e);e.setData(v),f(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 l=e.getRawValue(t),h=e.getDataParams(t);Object(c.isFunction)(r)&&(r=r(l,h)),Object(c.isFunction)(i)&&(i=i(l,h)),Object(c.isFunction)(o)&&(o=o(l,h)),Object(c.isFunction)(a)&&(a=a(l,h))}var f=n.getModel("itemStyle").getItemStyle(),p=Object(d.getVisualFromData)(u,"color");f.fill||(f.fill=p),v.setItemVisual(t,{symbol:r,symbolSize:i,symbolRotate:o,symbolOffset:a,symbolKeepAspect:s,style:f})})),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}(l.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(192).default);e.default=i},function(t,e,n){"use strict";n.r(e);var r=n(5),i=n(109),o=n(6),a=n(178),s=n(447),l=n(453),u=n(133),c=n(250),h=n(32),d=n(192),f=n(0),p=n(10),g=n(185),v=Object(p.makeInner)(),m=function(t,e,n,r){var i,o=t.getData();if(Object(f.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 l=void 0,c=void 0;if(null!=r.yAxis||null!=r.xAxis)l=e.getAxis(null!=r.yAxis?"y":"x"),c=Object(f.retrieve)(r.yAxis,r.xAxis);else{var h=a.getAxisInfo(r,o,e,t);l=h.valueAxis;var d=Object(u.getStackedDimension)(o,h.valueDataDim);c=a.numCalculate(o,d,s)}var p="x"===l.dim?0:1,g=1-p,v=Object(f.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(f.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(f.extend)({},i[2])];return b[2].type=b[2].type||null,Object(f.merge)(b[2],b[0]),Object(f.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,l=t.getItemModel(e),u=o.parsePercent(l.get("x"),i.getWidth()),h=o.parsePercent(l.get("y"),i.getHeight());if(isNaN(u)||isNaN(h)){if(r.getMarkerPosition)a=r.getMarkerPosition(t.getValues(t.dimensions,e));else{var d=s.dimensions,f=t.get(d[0],e),p=t.get(d[1],e);a=s.dataToPoint([f,p])}if(Object(c.isCoordinateSystemType)(s,"cartesian2d")){var g=s.getAxis("x"),v=s.getAxis("y");d=s.dimensions;y(t.get(d[0],e))?a[0]=g.toGlobalCoord(g.getExtent()[n?0:1]):y(t.get(d[1],e))&&(a[1]=v.toGlobalCoord(v.getExtent()[n?0:1]))}isNaN(u)||(a[0]=u),isNaN(h)||(a[1]=h)}else a=[u,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=d.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,l=t.id,u=t.getData(),c=this.markerGroupMap,d=c.get(l)||c.set(l,new s.default);this.group.add(d.group);var p=function(t,e,n){var r;r=t?Object(f.map)(t&&t.dimensions,(function(t){var n=e.getData().getDimensionInfo(e.getData().mapDimension(t))||{};return Object(f.extend)(Object(f.extend)({},n),{name:t,ordinalMeta:null})})):[{name:"value",type:"float"}];var o=new i.default(r,n),s=new i.default(r,n),l=new i.default([],n),u=Object(f.map)(n.get("data"),Object(f.curry)(m,e,t,n));t&&(u=Object(f.filter)(u,Object(f.curry)(_,t)));var c=a.createMarkerDimValueGetter(!!t,r);return o.initData(Object(f.map)(u,(function(t){return t[0]})),null,c),s.initData(Object(f.map)(u,(function(t){return t[1]})),null,c),l.initData(Object(f.map)(u,(function(t){return t[2]}))),l.hasItemOption=!0,{from:o,to:s,line:l}}(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)(u,"color")),e.setItemVisual(n,{symbolKeepAspect:o.get("symbolKeepAspect"),symbolOffset:Object(f.retrieve2)(o.get("symbolOffset",!0),E[i?0:1]),symbolRotate:Object(f.retrieve2)(o.get("symbolRotate",!0),C[i?0:1]),symbolSize:Object(f.retrieve2)(o.get("symbolSize"),S[i?0:1]),symbol:Object(f.retrieve2)(o.get("symbol",!0),O[i?0:1]),style:a})}Object(f.isArray)(O)||(O=[O,O]),Object(f.isArray)(S)||(S=[S,S]),Object(f.isArray)(C)||(C=[C,C]),Object(f.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})})),d.updateData(w),p.line.eachItemGraphicEl((function(t,n){t.traverse((function(t){Object(h.getECData)(t).dataModel=e}))})),this.markKeep(d),d.group.silent=e.get("silent")||t.get("silent")},e.type="markLine",e}(l.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(192).default);e.default=i},function(t,e,n){"use strict";n.r(e);var r=n(5),i=n(71),o=n(109),a=n(6),s=n(39),l=n(165),u=n(23),c=n(13),h=n(178),d=n(453),f=n(0),p=n(250),g=n(192),v=n(10),m=n(185),y=n(27),b=n(32),_=n(150),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(f.retrieve)(a[0],-1/0),a[1]=Object(f.retrieve)(a[1],-1/0),s[0]=Object(f.retrieve)(s[0],1/0),s[1]=Object(f.retrieve)(s[1],1/0);var l=Object(f.mergeAll)([{},i,o]);return l.coord=[i.coord,o.coord],l.x0=i.x,l.y0=i.y,l.x1=o.x,l.y1=o.y,l};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];return!!(Object(p.isCoordinateSystemType)(t,"cartesian2d")&&n&&r&&(S(1,n,r)||S(0,n,r)))||(h.dataFilter(t,{coord:n,x:e.x0,y:e.y0})||h.dataFilter(t,{coord:r,x:e.x1,y:e.y1}))}function E(t,e,n,r,i){var o,s=r.coordinateSystem,l=t.getItemModel(e),u=a.parsePercent(l.get(n[0]),i.getWidth()),c=a.parsePercent(l.get(n[1]),i.getHeight());if(isNaN(u)||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 d=s.getAxis("x"),f=s.getAxis("y"),g=t.get(n[0],e),v=t.get(n[1],e);O(g)?o[0]=d.toGlobalCoord(d.getExtent()["x0"===n[0]?0:1]):O(v)&&(o[1]=f.toGlobalCoord(f.getExtent()["y0"===n[1]?0:1]))}isNaN(u)||(o[0]=u),isNaN(c)||(o[1]=c)}else o=[u,c];return o}var T=[["x0","y0"],["x1","y0"],["x1","y1"],["x0","y1"]],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.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(f.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,d=t.id,p=t.getData(),g=this.markerGroupMap,v=g.get(d)||g.set(d,{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(f.map)(t&&t.dimensions,(function(t){var n=e.getData(),r=n.getDimensionInfo(n.mapDimension(t))||{};return Object(f.extend)(Object(f.extend)({},r),{name:t,ordinalMeta:null})}));i=Object(f.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(f.map)(n.get("data"),Object(f.curry)(w,e,t,n));t&&(s=Object(f.filter)(s,Object(f.curry)(C,t)));var l=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,l),r.hasItemOption=!0,r}(h,t,e);e.setData(O),O.each((function(e){var n=Object(f.map)(T,(function(n){return E(O,e,n,t,r)})),o=h.getAxis("x").scale,s=h.getAxis("y").scale,l=o.getExtent(),u=s.getExtent(),c=[o.parse(O.get("x0",e)),o.parse(O.get("x1",e))],d=[s.parse(O.get("y0",e)),s.parse(O.get("y1",e))];a.asc(c),a.asc(d);var g=!!(l[0]>c[1]||l[1]<c[0]||u[0]>d[1]||u[1]<d[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(f.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 l.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?u.updateProps(r,{shape:{points:i.points}},e,t):r=new l.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(f.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}(d.default);e.default=M},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 l}));var r=n(46),i=n(682),o=n(1465),a=n(1466),s=n(1467);function l(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(542),o=n(33),a=n(103),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),l(this,e,i)},e.prototype.mergeOption=function(e,n){t.prototype.mergeOption.call(this,e,n),l(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 l(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(39),a=n(66),s=n(14),l=n(70),u=n(23),c=n(33),h=n(683),d=o.default,f=["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 d),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new d)},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,l,u,c){var h=this;t.prototype.renderInner.call(this,e,n,r,o,l,u,c);var d=this._controllerGroup,f=n.get("pageIconSize",!0),p=i.isArray(f)?f:[f,f];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,d.add(a)}d.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(),l=t.getOrient().index,u=f[l],h=p[l],d=f[1-l],g=p[1-l];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[u]=n[u]-m[u]-v);var _=this._layoutContentAndController(t,r,b,l,u,d,g,h);if(o){if("end"===a)y[l]+=_[u]+v;else{var x=m[u]+v;y[l]-=x,_[h]-=x}_[u]+=m[u]+v,y[1-l]+=_[g]+_[d]/2-m[d]/2,_[d]=Math.max(_[d],m[d]),_[g]=Math.min(_[g],m[g]+y[1-l]),s.x=y[0],s.y=y[1],s.markRedraw()}return _},e.prototype._layoutContentAndController=function(t,e,n,r,o,a,s,h){var d=this.getContentGroup(),f=this._containerGroup,p=this._controllerGroup;c.box(t.get("orient"),d,t.get("itemGap"),r?n.width:null,r?null:n.height),c.box("horizontal",p,t.get("pageButtonItemGap",!0));var g=d.getBoundingRect(),v=p.getBoundingRect(),m=this._showController=g[o]>n[o],y=[-g.x,-g.y];e||(y[r]=d[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,d.setPosition(y),f.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]),f.__rectSize=n[o],m){var O={x:0,y:0};O[o]=Math.max(n[o]-v[o]-x,0),O[a]=w[a],f.setClipPath(new l.default({shape:O})),f.__rectSize=O[o]}else p.eachChild((function(t){t.attr({invisible:!0,silent:!0})}));var S=this._getPageInfo(t);return null!=S.pageIndex&&u.updateProps(d,{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,l=e.pageCount;r&&o&&r.setStyle("text",i.isString(o)?o.replace("{current}",null==s?"":s+"").replace("{total}",null==l?"":l+""):o({current:s,total:l}))},e.prototype._getPageInfo=function(t){var e=t.get("scrollDataIndex",!0),n=this.getContentGroup(),r=this._containerGroup.__rectSize,i=t.getOrient().index,o=f[i],a=p[i],s=this._findTargetItemIndex(e),l=n.children(),u=l[s],c=l.length,h=c?1:0,d={contentPosition:[n.x,n.y],pageCount:h,pageIndex:h-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!u)return d;var g=_(u);d.contentPosition[i]=-g.s;for(var v=s+1,m=g,y=g,b=null;v<=c;++v)(!(b=_(l[v]))&&y.e>m.s+r||b&&!x(b,m.s))&&(m=y.i>m.i?y:b)&&(null==d.pageNextDataIndex&&(d.pageNextDataIndex=m.i),++d.pageCount),y=b;for(v=s-1,m=g,y=g,b=null;v>=-1;--v)(b=_(l[v]))&&x(y,b.s)||!(m.i<y.i)||(y=m,null==d.pagePrevDataIndex&&(d.pagePrevDataIndex=m.i),++d.pageCount,++d.pageIndex),m=b;return d;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(365),o=n(103),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(451),o=n(225),a=n(543),s=n(0),l=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)(u.pan,this),zoom:Object(s.bind)(u.zoom,this),scrollMove:Object(s.bind)(u.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),u={zoom:function(t,e,n,r){var i=this.range,a=i.slice(),s=t.axisModels[0];if(s){var l=h[e](null,[r.originX,r.originY],s,n,t),u=(l.signal>0?l.pixelStart+l.pixelLength-l.pixel:l.pixel-l.pixelStart)/l.pixelLength*(a[1]-a[0])+a[0],c=Math.max(1/r.scale,0);a[0]=(a[0]-u)*c+u,a[1]=(a[1]-u)*c+u;var d=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();return Object(o.default)(0,a,[0,100],0,d.minSpan,d.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(),l=e.axisModels[0];if(l){var u=t(s,l,e,n,r,i);return Object(o.default)(u,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,l=s.getRadiusAxis().getExtent(),u=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=l[1]-l[0],a.pixelStart=l[0],a.signal=o.inverse?1:-1):(a.pixel=e[1]-t[1],a.pixelLength=u[1]-u[0],a.pixelStart=u[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=l},function(t,e,n){"use strict";n.r(e);var r=n(5),i=n(365),o=n(103),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(80),a=n(70),s=n(39),l=n(165),u=n(175),c=n(66),h=n(14),d=n(52),f=n(130),p=n(451),g=n(6),v=n(33),m=n(225),y=n(156),b=n(13),_=n(60),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),f.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(){f.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 l=v.getLayoutRect(s,o);this._location={x:l.x,y:l.y},this._size=[l.width,l.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():t.otherDim;if(null!=o){var a=this._shadowPolygonPts,c=this._shadowPolylinePts;if(i!==this._shadowData||o!==this._shadowDim||e[0]!==n[0]||e[1]!==n[1]){var h=i.getDataExtent(o),d=.3*(h[1]-h[0]);h=[h[0]-d,h[1]+d];var f,p=[0,e[1]],v=[0,e[0]],m=[[e[0],0],[0,0]],y=[],b=v[1]/(i.count()-1),_=0,x=Math.round(i.count()/e[0]);i.each([o],(function(t,e){if(x>0&&e%x)_+=b;else{var n=null==t||isNaN(t)||""===t,r=n?0:Object(g.linearMap)(t,h,p,!0);n&&!f&&e?(m.push([m[m.length-1][0],0]),y.push([y[y.length-1][0],0])):!n&&f&&(m.push([_,0]),y.push([_,0])),m.push([_,r]),y.push([_,r]),_+=b,f=n}})),a=this._shadowPolygonPts=m,c=this._shadowPolylinePts=y}this._shadowData=i,this._shadowDim=o,this._shadowSize=[e[0],e[1]];for(var w=this.dataZoomModel,O=0;O<3;O++){var S=C(1===O);this._displayables.sliderGroup.add(S),this._displayables.dataShadowSegs.push(S)}}}function C(t){var e=w.getModel(t?"selectedDataBackground":"dataBackground"),n=new s.default,r=new l.default({shape:{points:a},segmentIgnoreThreshold:1,style:e.getModel("areaStyle").getAreaStyle(),silent:!0,z2:-20}),i=new u.default({shape:{points:c},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,l=r.getComponent(Object(y.getAxisMainType)(o),a).axis,u={x:"y",y:"x",radius:"angle",angle:"radius"}[o],c=t.coordinateSystem;null!=u&&c.getOtherAxis&&(s=c.getOtherAxis(l).inverse),u=t.getData().mapDimension(u),n={thisAxis:l,series:t,thisDim:o,otherDim:u,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,l=this.dataZoomModel,u=this.api,h=l.get("borderRadius")||0,d=l.get("brushSelect"),f=e.filler=new w({silent:d,style:{fill:l.get("fillerColor")},textConfig:{position:"inside"}});o.add(f),o.add(new w({silent:!0,subPixelOptimize:!0,shape:{x:0,y:0,width:s[0],height:s[1],r:h},style:{stroke:l.get("dataBackgroundColor")||l.get("borderColor"),lineWidth:1,fill:"rgba(0,0,0,0)"}})),Object(i.each)([0,1],(function(e){var a=l.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 u=s.getBoundingRect(),h=l.get("handleSize");this._handleHeight=Object(g.parsePercent)(h,this._size[1]),this._handleWidth=u.width/u.height*this._handleHeight,s.setStyle(l.getModel("handleStyle").getItemStyle()),s.style.strokeNoScale=!0,s.rectHover=!0,s.ensureState("emphasis").style=l.getModel(["emphasis","handleStyle"]).getItemStyle(),Object(b.enableHoverEmphasis)(s);var d=l.get("handleColor");null!=d&&(s.style.fill=d),o.add(n[e]=s);var f=l.getModel("textStyle");t.add(r[e]=new c.default({silent:!0,invisible:!0,style:Object(x.createTextStyle)(f,{x:0,y:0,text:"",verticalAlign:"middle",align:"center",fill:f.getTextColor(),font:f.getFont()}),z2:10}))}),this);var p=f;if(d){var v=Object(g.parsePercent)(l.get("moveHandleSize"),s[1]),m=e.moveHandle=new a.default({style:l.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)(l.get("moveHandleIcon"),-y/2,-y/2,y,y,"#fff",!0);O.silent=!0,O.y=s[1]+v/2-.5,m.ensureState("emphasis").style=l.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(){u.enterEmphasis(m)})).on("mouseout",(function(){u.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,l=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]!==l[0]||s[1]!==l[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 l=e.dataShadowSegs,u=[0,r[0],r[1],o[0]],c=0;c<l.length;c++){var h=l[c],d=h.getClipPath();d||(d=new a.default,h.setClipPath(d)),d.setShape({x:u[c],y:0,width:u[c+1]-u[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,l=this._range,u=t?a.calculateDataWindow({start:l[0],end:l[1]}).valueWindow:a.getDataValueWindow();o=[this._formatLabel(u[0],s),this._formatLabel(u[1],s)]}}var c=Object(g.asc)(this._handleEnds.slice());function d(t){var e=h.getTransform(n.handles[t].parent,this.group),a=h.transformDirection(0===t?"right":"left",e),s=this._handleWidth/2+5,l=h.applyTransform([c[t]+(0===t?-s:s),this._size[1]/2],e);r[t].setStyle({x:l[0],y:l[1],verticalAlign:"horizontal"===i?"middle":a,align:"horizontal"===i?a:"center",text:o[t]})}d.call(this,0),d.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]),l=this.dataZoomModel.get("realtime");this._updateView(!l),s&&l&&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 d.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),l=a.transformCoordToLocal(o.x,o.y),u=this._size;s[0]=Math.max(Math.min(u[0],s[0]),0),i.setShape({x:l[0],y:0,width:s[0]-l[0],height:u[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(484),a=n(6),s=n(103),l=[20,140],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.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]=l[0]),(null==e[1]||isNaN(e[1]))&&(e[1]=l[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,l=e.length;a<l&&(!n.length||e[a]<=n[0]);a++)e[a]<n[o]&&i(e[a],"outOfRange");for(var u=1;o<s;o++,u=0)u&&r.length&&i(n[o],"outOfRange"),i(n[o],"inRange");for(u=1;a<l;a++)(!n.length||n[n.length-1]<e[a])&&(u&&(r.length&&i(r[r.length-1].value,"outOfRange"),u=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=u},function(t,e,n){"use strict";n.r(e);var r=n(5),i=n(0),o=n(326),a=n(80),s=n(685),l=n(66),u=n(39),c=n(70),h=n(14),d=n(165),f=n(6),p=n(225),g=n(373),v=n(10),m=n(55),y=n(13),b=n(60),_=n(106),x=n(32),w=n(27),O=f.linearMap,S=i.each,C=Math.min,E=Math.max,T=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,u=this._applyTransform([a[0]/2,0===n?-o:a[1]+o],s),c=this._applyTransform(0===n?"bottom":"top",s),h=this._orient,d=this.visualMapModel.textStyleModel;this.group.add(new l.default({style:Object(w.createTextStyle)(d,{x:u[0],y:u[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),l=n.mainGroup=this._createBarGroup(s),h=new u.default;l.add(h),h.add(n.outOfRange=M()),h.add(n.inRange=M(null,a?I(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 d=e.textStyleModel.getTextRect("国"),f=E(d.width,d.height);a&&(n.handleThumbs=[],n.handleLabels=[],n.handleLabelPoints=[],this._createHandle(e,l,0,r,f,o),this._createHandle(e,l,1,r,f,o)),this._createIndicator(e,l,r,f,o),t.add(l)},e.prototype._createHandle=function(t,e,n,r,o,s){var u=i.bind(this._dragHandle,this,n,!1),c=i.bind(this._dragHandle,this,n,!0),h=Object(m.parsePercent)(t.get("handleSize"),r[0]),d=Object(b.createSymbol)(t.get("handleIcon"),-h/2,-h/2,h,h,null,!0),f=I(this._orient);d.attr({cursor:f,draggable:!0,drift:u,ondragend:c,onmousemove:function(t){a.stop(t.event)}}),d.x=r[0]/2,d.useStyle(t.getModel("handleStyle").getItemStyle()),d.setStyle({strokeNoScale:!0,strokeFirst:!0}),d.style.lineWidth*=2,d.ensureState("emphasis").style=t.getModel(["emphasis","handleStyle"]).getItemStyle(),Object(y.setAsHighDownDispatcher)(d,!0),e.add(d);var p=this.visualMapModel.textStyleModel,g=new l.default({cursor:f,draggable:!0,drift:u,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]=d,_.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 u=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},u))}else s.useStyle(u);e.add(s);var h=this.visualMapModel.textStyleModel,d=new l.default({silent:!0,invisible:!0,style:Object(w.createTextStyle)(h,{x:0,y:0,text:""})});this.group.add(d);var f=[("horizontal"===o?r/2:6)+n[0]/2,0],p=this._shapes;p.indicator=s,p.indicatorLabel=d,p.indicatorLabelPoint=f,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():A(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=[O(e[0],n,r,!0),O(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=[O(r[0],i,o,!0),O(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)],l=this._createBarPoints(n,s);return{barColor:new o.default(0,0,0,1,a),barPoints:l,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 u.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();S([0,1],(function(l){var u=i[l];u.setStyle("fill",e.handlesColor[l]),u.y=t[l];var c=O(t[l],[0,a[1]],s,!0),d=this.getControllerVisual(c,"symbolSize");u.scaleX=u.scaleY=d/a[0],u.x=a[0]-d/2;var f=h.applyTransform(n.handleLabelPoints[l],h.getTransform(u,this.group));o[l].setStyle({x:f[0],y:f[1],text:r.formatValueText(this._dataInterval[l]),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]],l=this._shapes,u=l.indicator;if(u){u.attr("invisible",!1);var c=this.getControllerVisual(t,"color",{convertOpacityToAlpha:!0}),d=this.getControllerVisual(t,"symbolSize"),f=O(t,o,s,!0),p=a[0]-d/2,g={x:u.x,y:u.y};u.y=f,u.x=p;var v=h.applyTransform(l.indicatorLabelPoint,h.getTransform(u,this.group)),m=l.indicatorLabel;m.attr("invisible",!1);var y=this._applyTransform("left",l.mainGroup),b="horizontal"===this._orient;m.setStyle({text:(n||"")+i.formatValueText(e),verticalAlign:b?y:"middle",align:b?"center":y});var _={x:p,y:f,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};u.x=g.x,u.y=g.y,u.animateTo(_,w),m.animateTo(x,w)}else u.attr(_),m.attr(x);this._firstShowIndicator=!1;var S=this._shapes.handleLabels;if(S)for(var C=0;C<S.length;C++)this._api.enterBlur(S[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]=C(E(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=C(E(i[0],t),i[1]);var a=function(t,e,n){var r=6,i=t.get("hoverLinkDataSize");i&&(r=O(i,e,n,!0)/2);return r}(n,o,i),s=[t-a,t+a],l=O(t,i,o,!0),u=[O(s[0],i,o,!0),O(s[1],i,o,!0)];s[0]<i[0]&&(u[0]=-1/0),s[1]>i[1]&&(u[1]=1/0),e&&(u[0]===-1/0?this._showIndicator(l,u[1],"< ",a):u[1]===1/0?this._showIndicator(l,u[0],"> ",a):this._showIndicator(l,l,"≈ ",a));var c=this._hoverLinkDataIndices,h=[];(e||A(n))&&(h=this._hoverLinkDataIndices=n.findTargetDataIndices(u));var d=v.compressBatches(c,h);this._dispatchHighDown("downplay",g.makeHighDownBatch(d[0],n)),this._dispatchHighDown("highlight",g.makeHighDownBatch(d[1],n))}},e.prototype._hoverLinkFromSeriesMouseOver=function(t){var e=t.target,n=this.visualMapModel;if(e&&null!=Object(x.getECData)(e).dataIndex){var r=Object(x.getECData)(e),i=this.ecModel.getSeriesByIndex(r.seriesIndex);if(n.isTargetSeries(i)){var o=i.getData(r.dataType),a=o.getStore().get(n.getDataDimensionIndex(o),r.dataIndex);isNaN(a)||this._showIndicator(a,a)}}},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 d.default({shape:{points:t},draggable:!!n,cursor:e,drift:n,onmousemove:function(t){a.stop(t.event)},ondragend:r})}function A(t){var e=t.get("hoverLinkOnHandle");return!!(null==e?t.get("realtime"):e)}function I(t){return"vertical"===t?"ns-resize":"ew-resize"}e.default=T},function(t,e,n){"use strict";n.r(e),n.d(e,"visualMapEncodingHandlers",(function(){return s}));var r=n(0),i=n(276),o=n(127),a=n(185),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(l,null,t,e))||{stops:[],outerColors:[]},a=e.getDataDimensionIndex(n);a>=0&&(o.dimension=a,i.push(o))}})),t.getData().setVisual("visualMeta",i)}}];function l(t,e,n,r){for(var i=e.targetVisuals[r],s=o.default.prepareVisualTypes(i),l={color:Object(a.getVisualFromData)(t.getData(),"color")},u=0,c=s.length;u<c;u++){var h=s[u],d=i["opacity"===h?"__alphaForOpacity":h];d&&d.applyVisual(n,f,p)}return l.color;function f(t){return l[t]}function p(t,e){l[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(484),a=n(127),s=n(684),l=n(6),u=n(103),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 l(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||l(e,t,n)||l(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&&l([s,e[0]],"outOfRange"),l(e.slice()),s=e[1])}),this),{stops:e,outerColors:n}}function l(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(u.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,u=r[0];s<o;u+=a,s++){var c=s===o-1?r[1]:u+a;t.push({interval:[u,c],close:[1,1]})}e.maxOpen&&t.push({interval:[r[1],1/0],close:[0,0]}),Object(l.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),d(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=[],l=r.close=[0,0],u=[1,0,1],c=[-1/0,1/0],h=[],d=0;d<2;d++){for(var f=[["gte","gt","min"],["lte","lt","max"]][d],p=0;p<3&&null==s[d];p++)s[d]=e[f[p]],l[d]=u[p],h[d]=2===p;null==s[d]&&(s[d]=c[d])}h[0]&&s[1]===1/0&&(l[0]=0),h[1]&&s[0]===-1/0&&(l[1]=0),s[0]===s[1]&&l[0]&&l[1]&&(r.value=s[0])}r.visual=a.default.retrieveVisuals(e),t.push(r)}),this),d(e,t),Object(l.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 d(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(685),a=n(39),s=n(66),l=n(60),u=n(33),c=n(373),h=n(27),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.doRender=function(){var t=this.group;t.removeAll();var e=this.visualMapModel,n=e.get("textGap"),r=e.textStyleModel,o=r.getFont(),l=r.getTextColor(),c=this._getItemAlign(),h=e.itemSize,d=this._getViewData(),f=d.endsText,p=i.retrieve(e.get("showLabel",!0),!f);f&&this._renderEndsText(t,f[0],h,p,c),i.each(d.viewPieceList,(function(r){var u=r.piece,d=new a.default;d.onclick=i.bind(this._onItemClick,this,u),this._enableHoverLink(d,r.indexInModelPieceList);var f=e.getRepresentValue(u);if(this._createItemSymbol(d,f,[0,0,h[0],h[1]]),p){var g=this.visualMapModel.getValueState(f);d.add(new s.default({style:{x:"right"===c?-n:h[0]+n,y:h[1]/2,text:u.text,verticalAlign:"middle",align:c,font:o,fill:l,opacity:"outOfRange"===g?.5:1}}))}t.add(d)}),this),f&&this._renderEndsText(t,f[1],h,p,c),u.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,l=this.visualMapModel.textStyleModel;o.add(new s.default({style:Object(h.createTextStyle)(l,{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(l.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=i.clone(n.selected),o=e.getSelectedMapKey(t);"single"===n.selectedMode?(r[o]=!0,i.each(r,(function(t,e){r[e]=e===o}))):r[o]=!r[o],this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:r})},e.type="visualMap.piecewise",e}(o.default);e.default=d},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 u}));var r=n(0),i=n(10),o=n(302),a={label:{enabled:!0},decal:{show:!1}},s=Object(i.makeInner)(),l={};function u(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,l,t.getSeriesCount()),a=n.getVisual("decal");n.setVisual("decal",f(a,i))}else{var u=e.getRawData(),c={},h=s(e).scope;n.each((function(t){var e=n.getRawIndex(t);c[e]=t}));var d=u.count();u.each((function(t){var r=c[t],i=u.getName(t)||t+"",a=Object(o.getDecalFromPalette)(e.ecModel,i,h,d),s=n.getItemVisual(r,"decal");n.setItemVisual(r,"decal",f(s,a))}))}}function f(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,l=t.getSeriesCount(),c=o.get(["data","maxCount"])||10,h=o.get(["series","maxCount"])||10,d=Math.min(l,h);if(l<1)return;var f=function(){var e=t.get("title");e&&e.length&&(e=e[0]);return e&&e.text}();if(f){var p=o.get(["general","withTitle"]);s=u(p,{title:f})}else s=o.get(["general","withoutTitle"]);var g=[],v=l>1?o.get(["series","multiple","prefix"]):o.get(["series","single","prefix"]);s+=u(v,{seriesCount:l}),t.eachSeries((function(e,n){if(n<d){var r=void 0,i=e.get("name")?"withName":"withoutName";r=u(r=l>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+=u(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"]),f=[],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"]);f.push(u(y,{name:v,value:m.join(s)}))}r+=f.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 u(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(1481),i=n(0),o=n(37),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=[],l=0,u=n.count();l<u;l++)e=n.getRawDataItem(l),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(37),o=n(150),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}(),l=function(){function t(){}return t.prototype.evaluate=function(){return this.value},t}(),u=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}(),d=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 f(t,e){if(!0===t||!1===t){var n=new l;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=f(n,e),r.child||Object(i.throwError)("");return r}(t,e):function(t,e){for(var n=e.prepareGetValue(t),l=[],u=Object(r.keys)(t),c=t.parser,h=c?Object(o.getRawValueParser)(c):null,f=0;f<u.length;f++){var p=u[f];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)(""),l.push(y)}}l.length||Object(i.throwError)("");var b=new d;return b.valueGetterParam=n,b.valueParser=h,b.getValue=e.getValue,b.subCondList=l,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 u:new c;return a.children=Object(r.map)(o,(function(t){return f(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=f(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 l}));var r=n(29),i=n(37),o=n(0),a=n(10),s=n(150);var l={type:"echarts:sort",transform:function(t){var e=t.upstream,n=t.config,l=Object(a.normalizeToArray)(n);l.length||Object(i.throwError)("");var u=[];Object(o.each)(l,(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 l=e.getDimensionInfo(n);l||Object(i.throwError)("");var c=o?Object(s.getRawValueParser)(o):null;o&&!c&&Object(i.throwError)(""),u.push({dimIdx:l.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=[],d=0,f=e.count();d<f;d++)h.push(e.getRawDataItem(d));return h.sort((function(t,n){for(var r=0;r<u.length;r++){var i=u[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(2114),o=n(485),a=n(853),s=n(613),l=n(312),u=n(850),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 d=e.duration,f=e.easing,p=Object(s.getEasing)(f);if(n=n-h-e.delay,e.repeat)i=p(i=n%d/d);else{if(!((i=n/d)<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 d;for(var f in h)if(!Object(r.isEqual)(s[f],h[f]))if("path"===f){var p=h[f],g=s[f];p.length>g.length?(p=l.parsePathString(h[f]),g=l.parsePathString(s[f]),g=l.fillPathByDiff(g,p),g=l.formatPath(g,p),e.fromAttrs.path=g,e.toAttrs.path=p):e.pathFormatted||(p=l.parsePathString(h[f]),g=l.parsePathString(s[f]),g=l.formatPath(g,p),e.fromAttrs.path=g,e.toAttrs.path=p,e.pathFormatted=!0),i[f]=[];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[_])?(d=Object(o.default)(y[_],m[_]),b.push(d(n))):b.push(m[_]);i[f].push(b)}}else if("matrix"===f){var x=Object(a.default)(s[f]||c,h[f]||c)(n);i[f]=x}else Object(u.isColorProp)(f)&&Object(u.isGradientColor)(h[f])?i[f]=h[f]:Object(r.isFunction)(h[f])||(d=Object(o.default)(s[f],h[f]),i[f]=d(n));t.attr(i)}}(t,e,i);return!1}var d=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=d},function(t,e,n){"use strict";n.r(e);var r=n(1022);n.d(e,"easeLinear",(function(){return r.linear}));var i=n(505);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(506);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(507);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(508);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 l=n(509);n.d(e,"easeExp",(function(){return l.expInOut})),n.d(e,"easeExpIn",(function(){return l.expIn})),n.d(e,"easeExpOut",(function(){return l.expOut})),n.d(e,"easeExpInOut",(function(){return l.expInOut}));var u=n(510);n.d(e,"easeCircle",(function(){return u.circleInOut})),n.d(e,"easeCircleIn",(function(){return u.circleIn})),n.d(e,"easeCircleOut",(function(){return u.circleOut})),n.d(e,"easeCircleInOut",(function(){return u.circleInOut}));var c=n(511);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(512);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 d=n(513);n.d(e,"easeElastic",(function(){return d.elasticOut})),n.d(e,"easeElasticIn",(function(){return d.elasticIn})),n.d(e,"easeElasticOut",(function(){return d.elasticOut})),n.d(e,"easeElasticInOut",(function(){return d.elasticInOut}))},function(t,e,n){"use strict";n.r(e);var r=n(689);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],l=t[(i+2)%e];return Object(r.basis)((n-i/e)*e,o,a,s,l)}}},function(t,e,n){"use strict";n.r(e);var r=n(545),i=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,o=new RegExp(i.source,"g");e.default=function(t,e){var n,a,s,l=i.lastIndex=o.lastIndex=0,u=-1,c=[],h=[];for(t+="",e+="";(n=i.exec(t))&&(a=o.exec(e));)(s=a.index)>l&&(s=e.slice(l,s),c[u]?c[u]+=s:c[++u]=s),(n=n[0])===(a=a[0])?c[u]?c[u]+=a:c[++u]=a:(c[++u]=null,h.push({i:u,x:Object(r.default)(n,a)})),l=o.lastIndex;return l<e.length&&(s=e.slice(l),c[u]?c[u]+=s:c[++u]=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(485);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(610),i=n(92),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 l=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,l=n.timeStamp-this.mousedownTimeStamp,u=a.clientX-t.clientX,c=a.clientY-t.clientY;l>120||u*u+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 l=this._getEventObj(t,e,n,r,i,o);if(r){l.shape=r,a(r,t,l);for(var u=r.getParent();u;)u.emitDelegation(t,l),l.propagationStopped||s(u,t,l),l.propagationPath.push(u),u=u.getParent()}else{a(this.canvas,t,l)}},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=l},function(t,e,n){"use strict";n.r(e);var r=n(95),i=n(457);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 l=r.Util.getBBoxByArray(n,o),u=l.x,c=l.y,h={minX:u,minY:c,maxX:u+l.width,maxY:c+l.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(83);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,l=r;if(0===s||0===l)return{x:t,y:e};for(var u,c,h=o-t,d=a-e,f=Math.abs(h),p=Math.abs(d),g=s*s,v=l*l,m=Math.PI/4,y=0;y<4;y++){u=s*Math.cos(m),c=l*Math.sin(m);var b=(g-v)*Math.pow(Math.cos(m),3)/s,_=(v-g)*Math.pow(Math.sin(m),3)/l,x=u-b,w=c-_,O=f-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-u*u-c*c),m=Math.min(Math.PI/2,Math.max(0,m))}return{x:t+i(u,h),y:e+i(c,d)}},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(95);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(391);e.default=function(t){var e=t.attr(),n=e.x,i=e.y,o=e.text,a=e.fontSize,s=e.lineHeight,l=e.font;l||(l=Object(r.assembleFont)(e));var u,c=Object(r.getTextWidth)(o,l);if(c){var h=e.textAlign,d=e.textBaseline,f=Object(r.getTextHeight)(o,a,s),p={x:n,y:i-f};h&&("end"===h||"right"===h?p.x-=c:"center"===h&&(p.x-=c/2)),d&&("top"===d?p.y+=f:"middle"===d&&(p.y+=f/2)),u={x:p.x,y:p.y,width:c,height:f}}else u={x:n,y:i,width:0,height:0};return u}},function(t,e,n){"use strict";n.r(e);var r=n(95),i=n(193),o=n(1),a=n(457);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),l=Math.pow(n[0]-i[0],2)+Math.pow(n[1]-i[1],2),u=Math.acos((a+s-l)/(2*Math.sqrt(a)*Math.sqrt(s)));if(!u||0===Math.sin(u)||Object(o.isNumberEqual)(u,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(u/2-c)*(e/2*(1/Math.sin(u/2)))-e/2||0,yExtra:Math.cos(h-u/2)*(e/2*(1/Math.sin(u/2)))-e/2||0}}e.default=function(t){var e=t.attr(),n=e.path,l=e.stroke?e.lineWidth:0,u=function(t,e){for(var n=[],i=[],a=[],l=0;l<t.length;l++){var u=(y=t[l]).currentPoint,c=y.params,h=y.prePoint,d=void 0;switch(y.command){case"Q":d=r.Quad.box(h[0],h[1],c[1],c[2],c[3],c[4]);break;case"C":d=r.Cubic.box(h[0],h[1],c[1],c[2],c[3],c[4],c[5],c[6]);break;case"A":var f=y.arcParams;d=r.Arc.box(f.cx,f.cy,f.rx,f.ry,f.xRotation,f.startAngle,f.endAngle);break;default:n.push(u[0]),i.push(u[1])}d&&(y.box=d,n.push(d.x,d.x+d.width),i.push(d.y,d.y+d.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(l=0;l<a.length;l++){var y;(u=(y=a[l]).currentPoint)[0]===p?p-=s(y,e).xExtra:u[0]===v&&(v+=s(y,e).xExtra),u[1]===g?g-=s(y,e).yExtra:u[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),l),c=u.x,h=u.y,d={minX:c,minY:h,maxX:c+u.width,maxY:h+u.height};return{x:(d=Object(a.mergeArrowBBox)(t,d)).minX,y:d.minY,width:d.maxX-d.minX,height:d.maxY-d.minY}}},function(t,e,n){"use strict";n.r(e),n.d(e,"segmentToCubic",(function(){return a}));var r=n(1496),i=n(1497),o=n(567);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 l}));var r=2*Math.PI,i=function(t,e,n,r,i,o,a){var s=t.x,l=t.y;return{x:r*(s*=e)-i*(l*=n)+o,y:i*s+r*l+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,l=t.cy,u=t.rx,c=t.ry,h=t.xAxisRotation,d=void 0===h?0:h,f=t.largeArcFlag,p=void 0===f?0:f,g=t.sweepFlag,v=void 0===g?0:g,m=[];if(0===u||0===c)return[{x1:0,y1:0,x2:0,y2:0,x:s,y:l}];var y=Math.sin(d*r/360),b=Math.cos(d*r/360),_=b*(e-s)/2+y*(n-l)/2,x=-y*(e-s)/2+b*(n-l)/2;if(0===_&&0===x)return[{x1:0,y1:0,x2:0,y2:0,x:s,y:l}];u=Math.abs(u),c=Math.abs(c);var w=Math.pow(_,2)/Math.pow(u,2)+Math.pow(x,2)/Math.pow(c,2);w>1&&(u*=Math.sqrt(w),c*=Math.sqrt(w));var O=function(t,e,n,i,o,s,l,u,c,h,d,f){var p=Math.pow(o,2),g=Math.pow(s,2),v=Math.pow(d,2),m=Math.pow(f,2),y=p*g-p*m-g*v;y<0&&(y=0),y/=p*m+g*v;var b=(y=Math.sqrt(y)*(l===u?-1:1))*o/s*f,_=y*-s/o*d,x=h*b-c*_+(t+n)/2,w=c*b+h*_+(e+i)/2,O=(d-b)/o,S=(f-_)/s,C=(-d-b)/o,E=(-f-_)/s,T=a(1,0,O,S),M=a(O,S,C,E);return 0===u&&M>0&&(M-=r),1===u&&M<0&&(M+=r),[x,w,T,M]}(e,n,s,l,u,c,p,v,y,b,_,x),S=O[0],C=O[1],E=O[2],T=O[3],M=Math.abs(T)/(r/4);Math.abs(1-M)<1e-7&&(M=1);var A=Math.max(Math.ceil(M),1);T/=A;for(var I=0;I<A;I++)m.push(o(E,T)),E+=T;return m.map((function(t){var e=i(t[0],u,c,b,y,S,C),n=e.x,r=e.y,o=i(t[1],u,c,b,y,S,C),a=o.x,s=o.y,l=i(t[2],u,c,b,y,S,C);return{x1:n,y1:r,x2:a,y2:s,x:l.x,y:l.y}}))};function l(t,e,n,r,i,o,a,l,u){return s({px:t,py:e,cx:l,cy:u,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(457);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(190),i=n(1),o=n(366),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,l=e.dodgeBy,u=e.intervalPadding,c=e.dodgePadding,h=e.xDimensionLength,d=e.groupNum,f=e.defaultSize,p=e.maxColumnWidth,g=e.minColumnWidth,v=e.columnWidthRatio,m=e.customOffset;return n.marginRatio=i,n.dodgeRatio=s,n.dodgeBy=l,n.intervalPadding=u,n.dodgePadding=c,n.xDimensionLegenth=h,n.groupNum=d,n.defaultSize=f,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),l=this.groupData(n,t);return i.each(l,(function(n,l){var u;u=1===e.length?{pre:e[0]-1,next:e[0]+1}:o.getAdjustRange(t,parseFloat(l),e),i.each(n,(function(e){var n=e[t],l=s[n],c=l.indexOf(r);if(i.isNil(a))e[t]=o.getDodgeOffset(u,c,l.length);else{var h=u.pre,d=u.next;e[t]=i.isFunction(a)?a(e,u):(h+d)/2+a}}))})),[]},e.prototype.getDodgeOffset=function(t,e,n){var r,o=this.dodgeRatio,a=this.marginRatio,s=this.intervalPadding,l=this.dodgePadding,u=t.pre,c=t.next,h=c-u;if(!i.isNil(s)&&i.isNil(l)&&s>=0)r=u+this.getIntervalOnlyOffset(n,e);else if(!i.isNil(l)&&i.isNil(s)&&l>=0){r=u+this.getDodgeOnlyOffset(n,e)}else if(!i.isNil(s)&&!i.isNil(l)&&s>=0&&l>=0){r=u+this.getIntervalAndDodgeOffset(n,e)}else{var d=h*o/n,f=a*d;r=(u+c)/2+(.5*(h-n*d-(n-1)*f)+((e+1)*d+e*f)-.5*d-.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,l=n.dodgeRatio,u=n.maxColumnWidth,c=n.minColumnWidth,h=n.columnWidthRatio,d=o/a,f=(1-(s-1)*d)/s*l/(t-1),p=((1-d*(s-1))/s-f*(t-1))/t;if(p=i.isNil(h)?p:1/s/t*h,!i.isNil(u)){var g=u/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=((1-(s-1)*d)/s-t*p)/(t-1))+.5*d)*s-d/2},e.prototype.getDodgeOnlyOffset=function(t,e){var n=this,r=n.defaultSize,o=n.dodgePadding,a=n.xDimensionLegenth,s=n.groupNum,l=n.marginRatio,u=n.maxColumnWidth,c=n.minColumnWidth,h=n.columnWidthRatio,d=o/a,f=1*l/(s-1),p=((1-f*(s-1))/s-d*(t-1))/t;if(p=h?1/s/t*h:p,!i.isNil(u)){var g=u/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+.5*(f=(1-(p*t+d*(t-1))*s)/(s-1)))*s-f/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(239).default);e.default=a},function(t,e,n){"use strict";n.r(e);var r=n(190),i=n(1),o=n(366);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(239).default);e.default=a},function(t,e,n){"use strict";n.r(e);var r=n(190),i=n(1),o=n(239),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,l=void 0===s?10:s,u=e.reverseOrder,c=void 0!==u&&u;return n.adjustNames=i,n.height=a,n.size=l,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,l=new a;return o.map((function(t){return t.map((function(t){var o,a=i.get(t,e,0),u=i.get(t,[n]),c=a.toString();if(u=i.isArray(u)?u[1]:u,!i.isNil(u)){var h=u>=0?s:l;h.has(c)||h.set(c,0);var d=h.get(c),f=u+d;return h.set(c,f),Object(r.__assign)(Object(r.__assign)({},t),((o={})[n]=[d,f],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,l=new a;return s.map((function(t){return t.map((function(t){var o,a=e.size,s=t[n],u=2*a/i;l.has(s)||l.set(s,u/2);var c=l.get(s);return l.set(s,c+u),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(190),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,l,u=t[o],c=t[n];if(i.isArray(u)){var h=(s-a[c])/2;return Object(r.__assign)(Object(r.__assign)({},t),((e={})[o]=i.map(u,(function(t){return h+t})),e))}var d=(s-u)/2;return Object(r.__assign)(Object(r.__assign)({},t),((l={})[o]=[d,u+d],l))}))}))},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(239).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 l=a+s>>>1;t(e[l])>n?s=l:a=l+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(1506),o=n(459),a=n(460);function s(t){var e=t.min,n=t.max,s=t.tickInterval,l=t.minLimit,u=t.maxLimit,c=Object(i.default)(t);return Object(r.isNil)(l)&&Object(r.isNil)(u)?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],u=this._domain[a];return u<s&&(s=(e=[u,s])[0],u=e[1],o=(n=[a,o])[0],a=n[1]),(r=l(s,u,t))>0?r=l(s=Math.floor(s/r)*r,u=Math.ceil(u/r)*r,t):r<0&&(r=l(s=Math.ceil(s*r)/r,u=Math.floor(u*r)/r,t)),r>0?(i[o]=Math.floor(s/r)*r,i[a]=Math.ceil(u/r)*r,this.domain(i)):r<0&&(i[o]=Math.ceil(s*r)/r,i[a]=Math.floor(u*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=l(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 l(t,e,n){var r=(e-t)/Math.max(0,n),s=Math.floor(Math.log(r)/Math.LN10),l=r/Math.pow(10,s);return s>=0?(l>=i?10:l>=o?5:l>=a?2:1)*Math.pow(10,s):-Math.pow(10,-s)/(l>=i?10:l>=o?5:l>=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(1508),o=n(459),a=n(460);function s(t){var e=t.min,n=t.max,s=t.tickCount,l=t.nice,u=t.tickInterval,c=t.minLimit,h=t.maxLimit,d=Object(i.default)(e,n,s,l).ticks;return Object(r.isNil)(c)&&Object(r.isNil)(h)?u?Object(o.default)(e,n,u).ticks:d:Object(a.default)(t,Object(r.head)(d),Object(r.last)(d))}},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(344),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 l(t,e,n,i,o,a){var l=Object(r.size)(e),u=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-u/(l-1)-n+c}function u(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 d(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 f(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=u(_,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=f(t,e,E*(w-1));if(p[0]*x+p[1]*T+p[2]*O+p[3]<m.score)break;var M=Math.floor(e/E)*y-(w-1)*y,A=Math.ceil(t/E)*y;if(M<=A)for(var I=A-M,j=0;j<=I;j+=1){var k=(M+j)*(E/y),P=k+E*(w-1),L=E,D=l(_,s,y,k,P,L),R=d(t,e,k,P),N=c(w,g,t,e,k,P),F=p[0]*D+p[1]*R+p[2]*N+1*p[3];F>m.score&&(!a||k<=t&&P>=e)&&(m.lmin=k,m.lmax=P,m.lstep=L,m.score=F)}C+=1}w+=1}}y+=1}var B=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}((B-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(121);function i(t){var e,n=t.base,i=t.tickCount,o=t.min,a=t.max,s=t.values,l=Object(r.log)(n,a);if(o>0)e=Math.floor(Object(r.log)(n,o));else{var u=Object(r.getLogPositiveMin)(s,n,a);e=Math.floor(Object(r.log)(n,u))}for(var c=l-e,h=Math.ceil(c/i),d=[],f=e;f<l+h;f+=h)d.push(Math.pow(n,f));return o<=0&&d.unshift(0),d}},function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return o}));var r=n(121),i=n(693);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(459),o=n(693),a=n(460);function s(t){var e=t.min,n=t.max,s=t.tickCount,l=t.tickInterval,u=t.minLimit,c=t.maxLimit,h=Object(o.default)(e,n,s).ticks;return Object(r.isNil)(u)&&Object(r.isNil)(c)?l?Object(i.default)(e,n,l).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(101);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 l=[],u=e;u<n+o;u+=o)l.push(u);return l}},function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return o}));var r=n(2),i=n(692);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 l}));var r=n(101);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 l(t){var e=t.min,n=t.max,l=t.minTickInterval,u=t.tickCount,c=t.tickInterval,h=[];c||(c=(n-e)/u,l&&c<l&&(c=l)),c=Math.max(Math.floor((n-e)/(Math.pow(2,12)-1)),c);var d=i(e);if(c>r.YEAR)for(var f=i(n),p=Math.ceil(c/r.YEAR),g=d;g<=f+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(d,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 M=function(t,e){return Math.ceil((e-t)/6e4)}(e,n),A=Math.ceil(c/r.MINUTE);for(g=0;g<=M+A;g+=A)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,l=void 0===s?0:s,u=e.radius;return n.startAngle=i,n.endAngle=a,n.innerRadius=l,n.radius=u,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 l=this.a*a,u=i.vec2.length(r)-l;u=Object(o.isNumberEqual)(u,0)?0:u;var c=this.invertDim(a,"x"),h=this.invertDim(u,"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(350).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,l=void 0===s?0:s,u=e.radius;return n.startAngle=i,n.endAngle=a,n.innerRadius=l,n.radius=u,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 l=[1,0,0,0,1,0,0,0,1];i.ext.leftRotate(l,l,a);var u=[1,0,0];i.vec3.transformMat3(u,u,l);var c=[u[0],u[1]],h=i.ext.angleTo(c,r,s<a);Object(o.isNumberEqual)(h,2*Math.PI)&&(h=0);var d=i.vec2.length(r),f=h/(s-a);f=s-a>0?f:-f;var p=this.invertDim(d,"y"),g={x:0,y:0};return g.x=this.isTransposed?p:f,g.y=this.isTransposed?f: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(350).default);e.default=a},function(t,e,n){"use strict";n.r(e);var r,i=n(51),o=n(279);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(51),o=n(123);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,l){var u=i(t,e,n,o,a,s);if(l){var c=r(u.x,u.y,o,a,l);"auto"===s?(c.right&&(u.x=Math.max(0,t-o-n)),c.top&&(u.y=Math.max(0,e-a-n))):"top"===s||"bottom"===s?(c.left&&(u.x=l.x),c.right&&(u.x=l.x+l.width-o),"top"===s&&c.top&&(u.y=e+n),"bottom"===s&&c.bottom&&(u.y=e-a-n)):(c.top&&(u.y=l.y),c.bottom&&(u.y=l.y+l.height-a),"left"===s&&c.left&&(u.x=t+n),"right"===s&&c.right&&(u.x=t-o-n))}return u}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(88),o=n(756),a=n(858),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,l=e.isArea,u=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},u)});var d=Object(a.dataToPath)(o,n,i,s);if(this.addShape(t,{id:this.getElementId("line"),type:"path",attrs:Object(r.__assign)({path:d},c)}),l){var f=Object(a.linePathToAreaPath)(d,n,i,o);this.addShape(t,{id:this.getElementId("area"),type:"path",attrs:Object(r.__assign)({path:f},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 l}));var r=n(2),i=n(1),o=n(387),a=n(1524),s=n(622);function l(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 u(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",d="end",f="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=l(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(l(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===d)return e===p||e===c;if(t===f){if(n[d])return e===d;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 l=function(o){r.event=o,n.isAllowExecute(t,e)?(Object(i.isArray)(a)?Object(i.each)(a,(function(t){r.event=o,u(t)})):(r.event=o,u(a)),n.afterExecute(t,e),e.callback&&(r.event=o,e.callback(r))):r.event=null};e.debounce?o[s]=Object(i.debounce)(l,e.debounce.wait,e.debounce.immediate):e.throttle?o[s]=Object(i.throttle)(l,e.throttle.wait,{leading:e.throttle.leading,trailing:e.throttle.trailing}):o[s]=l}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(87).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",l="#D9D9D9",u="#F0F0F0",c="#FFFFFF",h="#D9D9D9",d=["#5B8FF9","#5AD8A6","#5D7092","#F6BD16","#6F5EF9","#6DC8EC","#945FB9","#FF9845","#1E9493","#FF99C3"],f=["#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?d:e,g=t.paletteQualitative20,v=void 0===g?f: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:l,axisSubTickLineLength:2,axisSubTickLineBorder:1,axisLabelFillColor:a,axisLabelFontSize:12,axisLabelLineHeight:12,axisLabelFontWeight:"normal",axisLabelOffset:8,axisGridBorderColor:l,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:l,sliderRailBorder:0,sliderRailBorderColor:null,sliderRailWidth:100,sliderRailHeight:12,sliderLabelTextFillColor:a,sliderLabelTextFontSize:12,sliderLabelTextLineHeight:12,sliderLabelTextFontWeight:"normal",sliderHandlerFillColor:u,sliderHandlerWidth:10,sliderHandlerHeight:14,sliderHandlerBorder:1,sliderHandlerBorderColor:s,annotationArcBorderColor:l,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(89),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,l=Object(r.__assign)({start:t,end:e},a),u=Object(o.getCoordinate)(s?"polar":i);return this.coordinate=new u(l),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],l=a.slice(1);(!!Object(i.isNil)(t)||t.includes(s))&&(o=e.coordinate)[s].apply(o,Object(r.__spreadArray)([],Object(r.__read)(l),!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(155),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 l=s.scale,u={type:l.type};l.isCategory&&(u.values=l.values),a=Object(r.deepMix)(u,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,l=Number.MIN_SAFE_INTEGER,u=[];Object(r.each)(o,(function(t){var e=n.getScale(t);l=Object(r.isNumber)(e.max)?Math.max(l,e.max):l,s=Object(r.isNumber)(e.min)?Math.min(s,e.min):s,Object(r.each)(e.values,(function(t){u.includes(t)||u.push(t)}))})),Object(r.each)(o,(function(o){var a=n.getScale(o);if(a.isContinuous)a.change({min:s,max:l,values:u});else if(a.isCategory){var c=a.range,h=n.getScaleMeta(o);u&&!Object(r.get)(h,["scaleDef","range"])&&(c=Object(i.getDefaultCategoryScaleRange)(Object(r.deepMix)({},a,{values:u}),t,e)),a.change({values:u,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 u}));var r=n(2),i=n(1),o=n(7),a=n(116),s=n(398),l=n(489);function u(t){var e=t.padding;if(!Object(s.isAutoPadding)(e))return new(l.PaddingCal.bind.apply(l.PaddingCal,Object(r.__spreadArray)([void 0],Object(r.__read)(Object(s.parsePadding)(e)),!1)));var n=t.viewBBox,u=new l.PaddingCal,c=[],h=[],d=[];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&&d.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);u.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);u.inc(o,n)})),Object(i.each)(d,(function(t){var e=t.component,n=t.direction,r=e.getLayoutBBox(),i=new a.BBox(r.x,r.y,r.width,r.height);u.inc(i,n)})),u}},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),l=[];if(1===e.length&&n[e[0]]){var u=n[e[0]];try{for(var c=Object(r.__values)(u),h=c.next();!h.done;h=c.next()){var d=h.value,f=s["_".concat(d)];f&&l.push(f)}}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];l.push(g)}return l}},function(t,e,n){"use strict";n.r(e);var r=n(2),i=n(1),o=n(142),a=n(325),s=n(173),l=n(69),u=n(186),c=n(7),h=n(1533),d=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,l,u,c,d,f,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(l=Object(r.__values)(t),u=l.next();!u.done;u=l.next())(c=u.value)&&(a[c.id]=this.renderLabel(c,s))}catch(t){f={error:t}}finally{try{u&&!u.done&&(p=l.return)&&p.call(l)}finally{if(f)throw f.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 d=this.shapesMap,Object(i.each)(a,(function(t,e){if(t.destroyed)delete a[e];else{if(d[e]){var s=t.get("data"),l=t.get("origin"),u=t.get("coordinate"),c=t.get("animateCfg"),f=d[e];Object(h.updateLabel)(f,a[e],{data:s,origin:l,animateCfg:c,coordinate:u}),a[e]=f}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 d[e]}})),Object(i.each)(d,(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,l=t.mappingData,h=t.coordinate,d=t.animate,f=t.content,p={id:o,elementId:a,data:s,origin:Object(r.__assign)(Object(r.__assign)({},l),{data:l[c.FIELD_ORIGIN]}),coordinate:h},g=e.addGroup(Object(r.__assign)({name:"label",animateCfg:!1!==this.animate&&null!==d&&!1!==d&&Object(i.deepMix)({},this.animate,d)},p));if(f.isGroup&&f.isGroup()||f.isShape&&f.isShape()){var v=f.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(u.translate)(f,_,x),n=f,g.add(f)}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(u.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 l=[],u=[];return Object(i.each)(n,(function(t,n){l.push(t),u.push(e[t.get("elementId")])})),o(t,l,u,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",{}),u=t.id,c=s.path;if(!c){var h=Object(l.polarToCartesian)(o.x,o.y,a,t.angle);c=[["M",h.x,h.y],["L",t.x,t.y]]}var d=e[u];d.destroyed||d.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:u,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,l=e[a];if(!l.destroyed){var u=l.getChildren()[0];if(u){var c=Object(s.getLabelBackgroundInfo)(l,t,o.padding),h=c.rotation,d=Object(r.__rest)(c,["rotation"]),f=l.addShape("rect",{attrs:Object(r.__assign)(Object(r.__assign)({},d),o.style||{}),id:a,origin:t.mappingData,data:t.data,coordinate:t.coordinate});if(f.setZIndex(-1),h){var p=u.getMatrix();f.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=d},function(t,e,n){"use strict";n.r(e),n.d(e,"updateLabel",(function(){return a}));var r=n(1),i=n(142),o=n(69);function a(t,e,n){var s=n.data,l=n.origin,u=n.animateCfg,c=n.coordinate,h=Object(r.get)(u,"update");t.set("data",s),t.set("origin",l),t.set("animateCfg",u),t.set("coordinate",c),t.set("visible",e.get("visible")),t.getChildren().forEach((function(r,d){var f=e.getChildByIndex(d);if(f){r.set("data",s),r.set("origin",l),r.set("animateCfg",u),r.set("coordinate",c);var p=Object(o.getReplaceAttrs)(r,f);h?Object(i.doAnimate)(r,h,{toAttrs:p,coordinate:c}):r.attr(p),f.isGroup()&&a(r,f,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",l="#FFFFFF",u="#A6A6A6",c="#737373",h="#404040",d="#262626",f=["#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?f: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:u,axisTitleTextFontSize:12,axisTitleTextLineHeight:12,axisTitleTextFontWeight:"normal",axisTitleSpacing:12,axisDescriptionIconFillColor:o,axisTickLineBorderColor:h,axisTickLineLength:4,axisTickLineBorder:1,axisSubTickLineBorderColor:d,axisSubTickLineLength:2,axisSubTickLineBorder:1,axisLabelFillColor:c,axisLabelFontSize:12,axisLabelLineHeight:12,axisLabelFontWeight:"normal",axisLabelOffset:8,axisGridBorderColor:d,axisGridBorder:1,axisGridLineDash:null,legendTitleTextFillColor:c,legendTitleTextFontSize:12,legendTitleTextLineHeight:21,legendTitleTextFontWeight:"normal",legendMarkerColor:f[0],legendMarkerSpacing:8,legendMarkerSize:4,legendCircleMarkerSize:4,legendSquareMarkerSize:4,legendLineMarkerSize:5,legendItemNameFillColor:u,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:u,legendPageNavigatorTextFontSize:12,sliderRailFillColor:d,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:d,annotationArcBorder:1,annotationLineBorderColor:h,annotationLineBorder:1,annotationLineDash:null,annotationTextFillColor:u,annotationTextFontSize:12,annotationTextLineHeight:12,annotationTextFontWeight:"normal",annotationTextBorderColor:null,annotationTextBorder:0,annotationRegionFillColor:l,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:u,tooltipTextFontSize:12,tooltipTextLineHeight:12,tooltipTextFontWeight:"bold",labelFillColor:u,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:u,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:f[0],pointFillOpacity:.95,pointSize:4,pointBorder:1,pointBorderColor:i,pointBorderOpacity:1,pointActiveBorderColor:l,pointSelectedBorder:2,pointSelectedBorderColor:l,pointInactiveFillOpacity:.3,pointInactiveBorderOpacity:.3,hollowPointSize:4,hollowPointBorder:1,hollowPointBorderColor:f[0],hollowPointBorderOpacity:.95,hollowPointFillColor:i,hollowPointActiveBorder:1,hollowPointActiveBorderColor:l,hollowPointActiveBorderOpacity:1,hollowPointSelectedBorder:2,hollowPointSelectedBorderColor:l,hollowPointSelectedBorderOpacity:1,hollowPointInactiveBorderOpacity:.3,lineBorder:2,lineBorderColor:f[0],lineBorderOpacity:1,lineActiveBorder:3,lineSelectedBorder:3,lineInactiveBorderOpacity:.3,areaFillColor:f[0],areaFillOpacity:.25,areaActiveFillColor:f[0],areaActiveFillOpacity:.5,areaSelectedFillColor:f[0],areaSelectedFillOpacity:.5,areaInactiveFillOpacity:.3,hollowAreaBorderColor:f[0],hollowAreaBorder:2,hollowAreaBorderOpacity:1,hollowAreaActiveBorder:3,hollowAreaActiveBorderColor:l,hollowAreaSelectedBorder:3,hollowAreaSelectedBorderColor:l,hollowAreaInactiveBorderOpacity:.3,intervalFillColor:f[0],intervalFillOpacity:.95,intervalActiveBorder:1,intervalActiveBorderColor:l,intervalActiveBorderOpacity:1,intervalSelectedBorder:2,intervalSelectedBorderColor:l,intervalSelectedBorderOpacity:1,intervalInactiveBorderOpacity:.3,intervalInactiveFillOpacity:.3,hollowIntervalBorder:2,hollowIntervalBorderColor:f[0],hollowIntervalBorderOpacity:1,hollowIntervalFillColor:i,hollowIntervalActiveBorder:2,hollowIntervalActiveBorderColor:l,hollowIntervalSelectedBorder:3,hollowIntervalSelectedBorderColor:l,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(56);function i(t,e,n,i,o,a,s){var l=o/2;return Object(r.inBox)(t-l,e-l,n,o,a,s)||Object(r.inBox)(t+n-l,e-l,o,i,a,s)||Object(r.inBox)(t+l,e+i-l,n,o,a,s)||Object(r.inBox)(t-l,e+l,o,i,a,s)}},function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return o}));var r=n(257),i=n(409);function o(t,e,n,o,a,s,l,u){return Object(r.default)(t+a,e,t+n-a,e,s,l,u)||Object(r.default)(t+n,e+a,t+n,e+o-a,s,l,u)||Object(r.default)(t+n-a,e+o,t+a,e+o,s,l,u)||Object(r.default)(t,e+o-a,t,e+a,s,l,u)||Object(i.default)(t+n-a,e+a,a,1.5*Math.PI,2*Math.PI,s,l,u)||Object(i.default)(t+n-a,e+o-a,a,0,.5*Math.PI,s,l,u)||Object(i.default)(t+a,e+o-a,a,.5*Math.PI,Math.PI,s,l,u)||Object(i.default)(t+a,e+a,a,Math.PI,1.5*Math.PI,s,l,u)}},function(t,e,n){"use strict";n.r(e),n.d(e,"getShape",(function(){return a}));var r=n(79);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 l=t.cfg.cacheCanvasBBox||t.getCanvasBBox();return e>=l.minX&&e<=l.maxX&&n>=l.minY&&n<=l.maxY}function a(t,e,n){if(!o(t,e,n))return null;for(var r=null,s=t.getChildren(),l=s.length-1;l>=0;l--){var u=s[l];if(u.isGroup())r=a(u,e,n);else if(o(u,e,n)){var c=u,h=i(u,e,n),d=h[0],f=h[1];c.isInShape(d,f)&&(r=u)}if(r)break}return r}},function(t,e,n){"use strict";n.r(e),n.d(e,"version",(function(){return s}));var r=n(353);n.d(e,"Shape",(function(){return r}));var i=n(79);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(1097);n.d(e,"Canvas",(function(){return o.default}));var a=n(439);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(1541),o=n(1542),a=n(860),s=n(1543),l=n(1544),u=n(112),c=function(){function t(t){var e=Object(u.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 l.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(112),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 l(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 u=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),u=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,d=(i.x-n.x+c*(i.y-n.y))/(h+1)+n.x,f=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",d),e.setAttribute("y2",f),e.innerHTML=l(u)}(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=l(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=u},function(t,e,n){"use strict";n.r(e);var r=n(1),i=n(112),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(112),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(112),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 l=new Image;function u(){e.setAttribute("width",""+l.width),e.setAttribute("height",""+l.height)}return s.match(/^data:/i)||(l.crossOrigin="Anonymous"),l.src=s,l.complete?u():(l.onload=u,l.src=l.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(463),a=(n(1874),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,l=void 0!==s&&s;return n.startOnZero=i,n.sortable=a,n.showSinglePoint=l,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(163),o=(n(1875),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(230),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,l=this.coordinate,u=l.start,c=l.end,h=this.coordinate.getWidth(),d=this.coordinate.getHeight(),f=this.getAttribute("color").getFields()[0];this.clearShadowCanvasCtx();var p=this.getShadowCanvasCtx();e&&(t=t.filter((function(t){return t[a.FIELD_ORIGIN][f]<=e[1]&&t[a.FIELD_ORIGIN][f]>=e[0]})));var g=this.scales[f];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][f]);this.drawGrayScaleBlurredCircle(_-u.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,d);this.clearShadowCanvasCtx(),this.colorize(O),p.putImageData(O,0,0);var S=this.getImageShape();S.attr("x",u.x),S.attr("y",c.y),S.attr("width",h),S.attr("height",d),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 l=r[s]?r[s]:i.default.rgb2arr(e.gradient(s/256));n[a-3]=l[0],n[a-2]=l[1],n[a-1]=l[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(163).default);e.default=s},function(t,e,n){"use strict";n.r(e);var r=n(2),i=n(1),o=n(82),a=n(163),s=(n(1876),n(464)),l=n(155),u=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(l.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=u},function(t,e,n){"use strict";n.r(e);var r=n(2),i=n(463),o=(n(624),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(163),o=(n(1877),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(163),a=(n(1878),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(),l=this.getYScale(),u=.5/s.values.length,c=.5/l.values.length;s.isCategory&&l.isCategory?(o=[o-u,o-u,o+u,o+u],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-u/2,o-u/2,o+u/2,o+u/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(82),o=n(163),a=(n(1879),n(464)),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(82),s=n(464),l=n(163),u=(n(1880),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),l=this.getAttribute("size");if(l){n=this.getAttributeValues(l,e)[0];var u=this.coordinate;n/=Object(a.getXDimensionLength)(u)}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}(l.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(){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),l=this.getCoordinate(),u=l.isTransposed?"x":"y",c=this.getLabelValueDir(e.mappingData);return s=Object(r.__assign)(Object(r.__assign)({},s),((a={})[u]=s[u]*c,a)),l.isReflect("x")&&(s=Object(r.__assign)(Object(r.__assign)({},s),{x:-1*s.x})),l.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,l,u=this.getCoordinate(),c=u.isTransposed,h=e.points,d=u.convert(h[0]),f=u.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=u.convert(m[0]),b=u.convert(m[1]),_=u.convert(v[0]),x=u.convert(v[1]);c?(o=Math.min(_.y,y.y),s=Math.max(_.y,y.y),a=(b.x+x.x)/2,l=(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,l=y.x)}else o=Math.min(f.y,d.y),s=Math.max(f.y,d.y),a=f.x,l=d.x}else o=Math.min(f.y,d.y),s=Math.max(f.y,d.y),a=f.x,l=d.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=l,t.y=(o+s)/2,t.textAlign=Object(i.get)(t,"textAlign",p>0?"left":"right");break;case"bottom":c&&(t.x=(a+l)/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+l)/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+l)/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(352).default);e.default=o},function(t,e,n){"use strict";n.r(e);var r=n(2),i=n(1),o=n(82),a=n(69),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 l=Object(o.getAngleByPoint)(n,a);s>=l&&(l+=2*Math.PI),e=s+(l-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(704).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(69);function a(t,e,n,a){if(t.length&&e.length){var s=t[0]?t[0].offset:0,l=e[0].get("coordinate"),u=l.getRadius(),c=l.getCenter();if(s>0){var h=2*(u+s)+28,d={start:l.start,end:l.end},f=[[],[]];t.forEach((function(t){t&&("right"===t.textAlign?f[0].push(t):f[1].push(t))})),f.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 l,u,c,h=!0,d=o.start,f=o.end,p=Math.min(d.y,f.y),g=Math.abs(d.y-f.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){l={error:t}}finally{try{O&&!O.done&&(u=w.return)&&u.call(w)}finally{if(l)throw l.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 l=Object(i.find)(o.getChildren(),(function(t){return"text"===t.get("type")}));l&&(l.attr("y",t.y),l.attr("x",t.x))}))}(e,t,14,d,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,u,n),a=Object(o.polarToCartesian)(c.x,c.y,u+e/2,n),s=t.x+Object(i.get)(t,"offsetX",0),l=t.y+Object(i.get)(t,"offsetY",0),h={x:s-4*Math.cos(n),y:l-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(69),a=n(705);function s(t,e,n,s){var l,u,c=Object(i.filter)(t,(function(t){return!Object(i.isNil)(t)})),h=e[0]&&e[0].get("coordinate");if(h){var d=h.getCenter(),f=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&&(u=g.return)&&u.call(g)}finally{if(l)throw l.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<d.x?"left":"right"})),x=h.start,w=h.end,O=Math.min(2*(f+b+y),h.getHeight()),S=O/2,C={minX:x.x,maxX:w.x,minY:d.y-S,maxY:d.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=f+b,s=t.y-d.y,l=Math.pow(a,2),u=Math.pow(s,2),c=l-u>0?l-u:0,g=Math.sqrt(c),v=Math.abs(Math.cos(t.angle)*a);t.x=n?d.x+Math.max(g,v):d.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,l=Object(o.polarToCartesian)(n.x,n.y,r,a),u=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:u-4*Math.cos(a),y:c-4*Math.sin(a)},d=t.labelLine.smooth,f=[],p=h.x-n.x,g=h.y-n.y,v=Math.atan(g/p);if(p<0&&(v+=Math.PI),!1===d){Object(i.isObject)(t.labelLine)||(t.labelLine={});var m=0;(a<0&&a>-Math.PI/2||a>1.5*Math.PI)&&h.y>l.y&&(m=1),a>=0&&a<Math.PI/2&&h.y>l.y&&(m=1),a>=Math.PI/2&&a<Math.PI&&l.y>h.y&&(m=1),(a<-Math.PI/2||a>=Math.PI&&a<1.5*Math.PI)&&l.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);f.push("M ".concat(l.x," ").concat(l.y)),f.push("L ".concat(b.x," ").concat(b.y)),f.push("A ".concat(n.x," ").concat(n.y," 0 ").concat(0," ").concat(m," ").concat(_.x," ").concat(_.y)),f.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=l.x<n.x?1:-1;f.push("M ".concat(h.x," ").concat(h.y));var w=(l.y-n.y)/(l.x-n.x),O=(h.y-n.y)/(h.x-n.x);Math.abs(w-O)>Math.pow(Math.E,-16)&&f.push.apply(f,["C",h.x+4*x,h.y,2*b.x-l.x,2*b.y-l.y,l.x,l.y]),f.push("L ".concat(l.x," ").concat(l.y))}t.labelLine.path=f.join(" ")}}(t,h)}))}))}}}},function(t,e,n){"use strict";n.r(e),n.d(e,"pieSpiderLabelLayout",(function(){return l}));var r=n(2),i=n(1),o=n(69),a=n(705),s=n(186);function l(t,e,n,l){var u,c,h=e[0]&&e[0].get("coordinate");if(h){var d=h.getCenter(),f=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&&(c=g.return)&&c.call(g)}finally{if(u)throw u.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>d.x||t.x===d.x&&t.y>d.y,n=Object(i.isNil)(t.offsetX)?4:t.offsetX,r=Object(o.polarToCartesian)(d.x,d.y,f+4,t.angle),a=b+n;t.x=d.x+(e?1:-1)*(f+a),t.y=r.y}}));var _=h.start,x=h.end,w=Object(i.groupBy)(t,(function(t){return t.x<d.x?"left":"right"})),O=2*(f+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:d.y-O/2,maxY:d.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(),l=n?a.x:a.maxX,u=a.y+a.height/2;Object(s.translate)(r,t.x-l,t.y-u),t.labelLine&&function(t,e,n){var r,a=e.getCenter(),s=e.getRadius(),l={x:t.x-(n?4:-4),y:t.y},u=Object(o.polarToCartesian)(a.x,a.y,s+4,t.angle),c={x:l.x,y:l.y},h={x:u.x,y:u.y},d=Object(o.polarToCartesian)(a.x,a.y,s,t.angle);if(l.y!==u.y){var f=n?4:-4;c.y=l.y,t.angle<0&&t.angle>=-Math.PI/2&&(c.x=Math.max(u.x,l.x-f),l.y<u.y?h.y=c.y:(h.y=u.y,h.x=Math.max(h.x,c.x-f))),t.angle>0&&t.angle<Math.PI/2&&(c.x=Math.max(u.x,l.x-f),l.y>u.y?h.y=c.y:(h.y=u.y,h.x=Math.max(h.x,c.x-f))),t.angle>Math.PI/2&&(c.x=Math.min(u.x,l.x-f),l.y>u.y?h.y=c.y:(h.y=u.y,h.x=Math.min(h.x,c.x-f))),t.angle<-Math.PI/2&&(c.x=Math.min(u.x,l.x-f),l.y<u.y?h.y=c.y:(h.y=u.y,h.x=Math.min(h.x,c.x-f)))}r=["M ".concat(l.x,",").concat(l.y),"L ".concat(c.x,",").concat(c.y),"L ".concat(h.x,",").concat(h.y),"L ".concat(u.x,",").concat(u.y),"L ".concat(d.x,",").concat(d.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(186);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(),l=s.minX,u=s.minY,c=s.maxX,h=s.maxY,d=s.x,f=s.y,p=s.width,g=s.height,v=d,m=f;(l<e||c<e)&&(v=e),(u<n||h<n)&&(m=n),l>r?v=r-p:c>r&&(v-=c-r),u>a?m=a-g:h>a&&(m-=h-a),v===d&&m===f||Object(i.translate)(t,v-d,m-f)}))}},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 d}));var r=n(2),i=n(1),o=n(1562),a=n(173),s=n(1563),l=n(1564),u=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)(l.code);function d(t,e,n,o){return new Promise((function(n){var o=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})})),s=JSON.stringify(o),l=function(t){return c.set(s,t),Object(i.each)(t,(function(t,n){var r=t.visible,i=e[n];r?null==i||i.show():null==i||i.hide()})),n(t)};if(c.get(s))l(c.get(s));else if(h)try{h.postMessage(JSON.stringify({type:"hide-overlap",items:o})),h.onmessage=function(t){return l(Array.isArray(t.data)?t.data:[])},h.onmessageerror=function(t){console.warn("[AntV G2] Web worker is not available"),l(u(o))}}catch(t){console.error(t),l(u(o))}else l(u(o))}))}},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 l(t,e){return t.max>e.min&&t.min<e.max}function u(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),!u(t)||!u(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)),d=0;d<h.length;d++){var f=h[d];if(!l(s(r,f),s(o,f)))return!1}return!0}},function(t,e,n){"use strict";function r(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 Worker(URL.createObjectURL(e))}}n.r(e),n.d(e,"createWorker",(function(){return r}))},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 l=n(e),u=n(a),c=t(l).concat(t(u)),h=0;h<c.length;h++){var d=c[h];if(!i(r(l,d),r(u,d)))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(116),i=n(1566);function o(t,e,n){if(0!==n.length){var o=n[0].get("element").geometry.theme,a=o.labels||{},s=a.fillColorLight,l=a.fillColorDark;n.forEach((function(t,n){var a=e[n].find((function(t){return"text"===t.get("type")})),u=r.BBox.fromObject(t.getBBox()),c=r.BBox.fromObject(a.getCanvasBBox()),h=!u.contains(c),d=t.attr("fill"),f=Object(i.isContrastColorWhite)(d);h?a.attr(o.overflowLabels.style):f?s&&a.attr("fill",s):l&&a.attr("fill",l)}))}}},function(t,e,n){"use strict";n.r(e),n.d(e,"isContrastColorWhite",(function(){return a}));var r=n(2),i=n(230),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(116),i=n(173);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()),l=r.BBox.fromObject(n.getBBox());return o.isTransposed?l.height>=s.height:l.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"),l=null==s?void 0:s.geometry;if(l&&"interval"===l.type)o(l,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"})}(l,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(173);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"),l=null==s?void 0:s.geometry;if(l&&"interval"===l.type){var u,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)(l.getXYFields(),1)[0],d=[],f=[],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&&f.push(t.pop()),f.push.apply(f,Object(r.__spreadArray)([],Object(r.__read)(t),!1)))};for(Object(i.size)(g)>0&&(u=g.shift(),v(p[u])),Object(i.size)(g)>0&&(u=g.pop(),v(p[u])),Object(i.each)(g.reverse(),(function(t){v(p[t])}));f.length>0;){var m=f.shift();m.get("visible")&&(Object(o.checkShapeOverlap)(m,d)?m.set("visible",!1):d.push(m))}}}}},function(t,e,n){"use strict";n.r(e),n.d(e,"pointAdjustPosition",(function(){return l}));var r=n(2),i=n(1),o=n(173);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 l(t,e,n,l,u){var c,h;if(0!==n.length){var d=null===(c=n[0])||void 0===c?void 0:c.get("element"),f=null==d?void 0:d.geometry;if(f&&"point"===f.type){var p=Object(r.__read)(f.getXYFields(),2),g=p[0],v=p[1],m=Object(i.groupBy)(e,(function(t){return t.get("data")[g]})),y=[],b=u&&u.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}(f,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 l=!1;s(y,n)&&(i.attr("y",i.attr("y")+2*b),l=s(y,n)),l?i.set("visible",!1):y.push(n)}}}))}}}},function(t,e,n){"use strict";n.r(e),n.d(e,"pathAdjustPosition",(function(){return l}));var r=n(2),i=n(1),o=n(173);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 l(t,e,n,l,u){var c,h;if(0!==n.length){var d=null===(c=n[0])||void 0===c?void 0:c.get("element"),f=null==d?void 0:d.geometry;if(f&&!(["path","line","area"].indexOf(f.type)<0)){var p=Object(r.__read)(f.getXYFields(),2),g=p[0],v=p[1],m=Object(i.groupBy)(e,(function(t){return t.get("data")[g]})),y=[],b=u&&u.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}(f,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 l=!1;s(y,n)&&(i.attr("y",i.attr("y")+2*b),l=s(y,n)),l?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(82),o=n(1572),a=n(186);function s(t,e,n,s,l){if(!(e.length<=0)){var u=(null==l?void 0:l.direction)||["top","right","bottom","left"],c=(null==l?void 0:l.action)||"translate",h=(null==l?void 0:l.margin)||0,d=e[0].get("coordinate");if(d){var f=Object(i.getCoordinateBBox)(d,h),p=f.minX,g=f.minY,v=f.maxX,m=f.maxY;Object(r.each)(e,(function(t){var e=t.getCanvasBBox(),n=e.minX,i=e.minY,s=e.maxX,l=e.maxY,h=e.x,d=e.y,f=e.width,y=e.height,b=h,_=d;if(u.indexOf("left")>=0&&(n<p||s<p)&&(b=p),u.indexOf("top")>=0&&(i<g||l<g)&&(_=g),u.indexOf("right")>=0&&(n>v?b=v-f:s>v&&(b-=s-v)),u.indexOf("bottom")>=0&&(i>m?_=m-y:l>m&&(_-=l-m)),b!==h||_!==d){var x=b-h;if("translate"===c)Object(a.translate)(t,x,_-d);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(1573),a=Object(i.memoize)((function(t,e){void 0===e&&(e={});var n=e.fontSize,r=e.fontFamily,a=e.fontWeight,s=e.fontStyle,l=e.fontVariant,u=Object(o.getCanvasContext)();return u.font=[s,l,a,"".concat(n,"px"),r].join(" "),u.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,l,u=e,c=[];if(a(t,n)<=e)return t;for(;s=r.substr(0,16),!((l=a(s,n))+o>u&&l>u);)if(c.push(s),u-=l,!(r=r.substr(16)))return c.join("");for(;s=r.substr(0,1),!((l=a(s,n))+o>u);)if(c.push(s),u-=l,!(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,"sectorPathUpdate",(function(){return c}));var r=n(2),i=n(699),o=n(1),a=n(69);function s(t,e){var n,a=Object(i.getArcParams)(t,e),s=a.startAngle,l=a.endAngle;return!Object(o.isNumberEqual)(s,.5*-Math.PI)&&s<.5*-Math.PI&&(s+=2*Math.PI),!Object(o.isNumberEqual)(l,.5*-Math.PI)&&l<.5*-Math.PI&&(l+=2*Math.PI),0===e[5]&&(s=(n=Object(r.__read)([l,s],2))[0],l=n[1]),Object(o.isNumberEqual)(s,1.5*Math.PI)&&(s=-.5*Math.PI),Object(o.isNumberEqual)(l,-.5*Math.PI)&&(l=1.5*Math.PI),{startAngle:s,endAngle:l}}function l(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 u(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 u=a[0],c=a.length>1?a[1]:a[0],h=t.indexOf(u),d=t.indexOf(c),f=l(t[h-1]),p=l(t[d-1]),g=s(f,u),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=u[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,l=i.path||[],c=l.map((function(t){return t[0]}));if(!(l.length<1)){var h=u(l),d=h.startAngle,f=h.endAngle,p=h.radius,g=h.innerRadius,v=u(t.attr("path")),m=v.startAngle,y=v.endAngle,b=s.getCenter(),_=d-m,x=f-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",l)}})):t.attr("path",l)}}},function(t,e,n){"use strict";n.r(e),n.d(e,"waveIn",(function(){return o}));var r=n(2),i=n(82);function o(t,e,n){var o=Object(i.getCoordinateClipCfg)(n.coordinate,20),a=o.type,s=o.startState,l=o.endState,u=t.setClip({type:a,attrs:s});u.animate(l,Object(r.__assign)(Object(r.__assign)({},e),{callback:function(){t&&!t.get("destroyed")&&t.set("clipShape",null),u.remove(!0)}}))}},function(t,e,n){"use strict";n.r(e);var r=n(2),i=n(1),o=n(7),a=n(164),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,l=1*Math.PI/4;return{start:Object(a.getAnglePoint)(o,i,s),end:Object(a.getAnglePoint)(o,i,l)}},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 l=this.getFieldValues(t,s),u=l.length,c=[];return l.forEach((function(n,r){var o=[{field:s,value:n,values:l}],h=Object(i.filter)(t,e.getFacetDataFilter(o)),d={type:a,data:h,region:e.getRegion(u,r),columnValue:n,columnField:s,columnIndex:r,columnValuesLength:u,rowValue:null,rowField:null,rowIndex:0,rowValuesLength:1};c.push(d)})),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"),l=Object(i.deepMix)({position:["50%","0%"],content:s?s(n):n},Object(a.getFactTitleConfig)(o.DIRECTION.TOP),t.cfg.title);r.annotation().text(l)}))},e}(n(202).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(164),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),l=s.length;o=o||l;var u=this.getPageCount(l,o),c=[];return s.forEach((function(n,r){var h=e.getRowCol(r,o),d=h.row,f=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(u,o,f,d),columnValue:n,rowValue:n,columnField:a,rowField:null,columnIndex:f,rowIndex:d,columnValuesLength:o,rowValuesLength:u,total:l};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"),l=Object(i.deepMix)({position:["50%","0%"],content:s?s(n):n},Object(a.getFactTitleConfig)(o.DIRECTION.TOP),t.cfg.title);r.annotation().text(l)}))},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(202).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(164),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 l=n[s],u=0;u<i;u++){var c=n[u],h={type:r,data:t,region:this.getRegion(i,o,s,u),columnValue:l,rowValue:c,columnField:l,rowField:c,columnIndex:s,rowIndex:u,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,l=e.columnValuesLength,u=(e.rowValuesLength,e.columnValue),c=e.rowValue,h=e.view;if(0===s){var d=Object(i.get)(t.cfg.columnTitle,"formatter"),f=Object(i.deepMix)({position:["50%","0%"],content:d?d(u):u},Object(a.getFactTitleConfig)(o.DIRECTION.TOP),t.cfg.columnTitle);h.annotation().text(f)}if(r===l-1){d=Object(i.get)(t.cfg.rowTitle,"formatter"),f=Object(i.deepMix)({position:["100%","50%"],content:d?d(c):c},Object(a.getFactTitleConfig)(o.DIRECTION.RIGHT),t.cfg.rowTitle);h.annotation().text(f)}}))},e}(n(202).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(164),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=[],l=1,u=1,c=[""],h=[""];return this.cfg.transpose?(e=a,c=this.getFieldValues(t,e).slice(0,2),l=c.length):(n=a,h=this.getFieldValues(t,n).slice(0,2),u=h.length),c.forEach((function(r,a){h.forEach((function(d,f){var p=[{field:e,value:r,values:c},{field:n,value:d,values:h}],g=Object(i.filter)(t,o.getFacetDataFilter(p)),v={type:o.cfg.type,data:g,region:o.getRegion(u,l,a,f),columnValue:r,rowValue:d,columnField:e,rowField:n,columnIndex:a,rowIndex:f,columnValuesLength:l,rowValuesLength:u};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,l=e.view,u=Object(i.get)(t.cfg.title,"formatter");if(t.cfg.transpose){var c=Object(i.deepMix)({position:["50%","0%"],content:u?u(r):r},Object(a.getFactTitleConfig)(o.DIRECTION.TOP),t.cfg.title);l.annotation().text(c)}else{c=Object(i.deepMix)({position:["100%","50%"],content:u?u(s):s},Object(a.getFactTitleConfig)(o.DIRECTION.RIGHT),t.cfg.title);l.annotation().text(c)}}))},e}(n(202).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(164),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=[],l=1,u=1,c=[""],h=[""];return o&&(c=this.getFieldValues(t,o),l=c.length),a&&(h=this.getFieldValues(t,a),u=h.length),c.forEach((function(n,r){h.forEach((function(d,f){var p=[{field:o,value:n,values:c},{field:a,value:d,values:h}],g=Object(i.filter)(t,e.getFacetDataFilter(p)),v={type:e.cfg.type,data:g,region:e.getRegion(u,l,r,f),columnValue:n,rowValue:d,columnField:o,rowField:a,columnIndex:r,rowIndex:f,columnValuesLength:l,rowValuesLength:u};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,l=e.columnValuesLength,u=e.columnValue,c=e.rowValue,h=e.view;if(0===s){var d=Object(i.get)(t.cfg.columnTitle,"formatter"),f=Object(i.deepMix)({position:["50%","0%"],content:d?d(u):u},Object(a.getFactTitleConfig)(o.DIRECTION.TOP),t.cfg.columnTitle);h.annotation().text(f)}if(r===l-1){d=Object(i.get)(t.cfg.rowTitle,"formatter"),f=Object(i.deepMix)({position:["100%","50%"],content:d?d(c):c},Object(a.getFactTitleConfig)(o.DIRECTION.RIGHT),t.cfg.rowTitle);h.annotation().text(f)}}))},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(202).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(164),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 l=this.getFacetsByLevel(t,s);try{for(var u=(e=void 0,Object(r.__values)(l)),c=u.next();!c.done;c=u.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=u.return)&&n.call(u)}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,l){var u=[{field:a,value:i,values:s}],c=t.filter(r.getFacetDataFilter(u));if(c.length){var h={type:r.cfg.type,data:c,region:null,columnValue:i,rowValue:"",columnField:a,rowField:"",columnIndex:l,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"),l=Object(i.deepMix)({position:["50%","0%"],content:s?s(n):n},Object(a.getFactTitleConfig)(o.DIRECTION.TOP),t.cfg.title);r.annotation().text(l)}))},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(202).Facet);e.default=s},function(t,e,n){"use strict";n.r(e);var r=n(2),i=n(1),o=n(89),a=n(142),s=n(7),l=n(82),u=n(78),c=n(569),h=n(203),d=["regionFilter","shape"],f=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)(d,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)(d,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){this.view.getOptions().animate?this.view.geometries.forEach((function(e){e.animateOption&&e.once(s.GEOMETRY_LIFE_CIRCLE.AFTER_DRAW_ANIMATE,(function(){t()}))})):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,l=0,u=0;if(Object(i.isArray)(s)){var h=Object(r.__read)(s,2),d=h[0],f=h[1];if(Object(i.isString)(d)&&-1!==d.indexOf("%")&&!isNaN(d.slice(0,-1)))return this.parsePercentPosition(s);l=Object(c.getNormalizedValue)(d,o),u=Object(c.getNormalizedValue)(f,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&&(l=Object(c.getNormalizedValue)(m,o)),a[v]&&(u=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(l)||isNaN(u)?null:this.view.getCoordinate().convert({x:l,y:u})},e.prototype.getRegionPoints=function(t,e){var n,r=this,o=this.view.getXScale(),a=this.view.getScalesByDim("y"),s=Object.values(a)[0],l=o.field,u=this.view.getData(),c=Object(i.isArray)(t)?t[0]:t[l],h=Object(i.isArray)(e)?e[0]:e[l],d=[];return Object(i.each)(u,(function(t,e){if(t[l]===c&&(n=e),e>=n){var i=r.parsePosition([t[l],t[s.field]]);i&&d.push(i)}if(t[l]===h)return!1})),d},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(),u=this.view.getCanvas(),c={};if(Object(i.isNil)(e))return null;var h=e.start,d=e.end,f=e.position,p=this.parsePosition(h),g=this.parsePosition(d),v=this.parsePosition(f);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(l.getAngleByPoint)(s,p),_=Object(l.getAngleByPoint)(s,g);b>_&&(_=2*Math.PI+_),c=Object(r.__assign)(Object(r.__assign)({},y),{center:s.getCenter(),radius:Object(l.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 M=e,A=(M.position,M.point),I=M.line,j=M.text,k=M.autoAdjust,P=M.direction;y=Object(r.__rest)(M,["position","point","line","text","autoAdjust","direction"]);c=Object(r.__assign)(Object(r.__assign)(Object(r.__assign)({},y),v),{coordinateBBox:this.getCoordinateBBox(),point:A,line:I,text:j,autoAdjust:k,direction:P})}else if("dataRegion"===t){var L=e,D=L.start,R=L.end,N=L.region,F=(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(D,R),region:N,text:j,lineLength:F})}else if("regionFilter"===t){var B=e,z=(B.start,B.end,B.apply),V=B.color,U=(y=Object(r.__rest)(B,["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,$=Object(r.__rest)(W,["render"]);c=Object(r.__assign)(Object(r.__assign)({},$),{render:function(t){if(Object(i.isFunction)(e.render))return Y(t,o.view,{parsePosition:o.parsePosition.bind(o)})}})}else if("html"===t){var X=e,q=X.html;X.position,$=Object(r.__rest)(X,["html","position"]);c=Object(r.__assign)(Object(r.__assign)(Object(r.__assign)({},$),v),{parent:u.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(u.omit)(a,["container"]),e.component.update(Object(r.__assign)(Object(r.__assign)({},a||{}),{visible:!!a})),Object(i.includes)(d,t.type)&&e.component.render()}else(e=this.createAnnotation(t))&&(e.component.init(),Object(i.includes)(d,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=f},function(t,e,n){"use strict";n.r(e);var r=n(2),i=n(1),o=n(7),a=n(89),s=n(142),l=n(114),u=n(265),c=n(78),h=n(203),d=["container"],f=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,d=c.scale,f=c.alignTick;if(s===o.COMPONENT_TYPE.AXIS)e.isPolar?"x"===h?r=e.isTransposed?Object(l.getAxisRegion)(e,a):Object(l.getCircleAxisCenterRadius)(e):"y"===h&&(r=e.isTransposed?Object(l.getCircleAxisCenterRadius)(e):Object(l.getAxisRegion)(e,a)):r=Object(l.getAxisRegion)(e,a);else if(s===o.COMPONENT_TYPE.GRID)if(e.isPolar){r={items:e.isTransposed?"x"===h?Object(u.getCircleGridItems)(e,t.view.getYScales()[0],d,f,h):Object(u.getLineGridItems)(e,d,h,f):"x"===h?Object(u.getLineGridItems)(e,d,h,f):Object(u.getCircleGridItems)(e,t.view.getXScale(),d,f,h),center:t.view.getCoordinate().getCenter()}}else r={items:Object(u.getLineGridItems)(e,d,h,f)};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(l.getAxisOption)(this.option,e.field);if(!1!==n){var r=Object(l.getAxisDirection)(n,o.DIRECTION.BOTTOM),a=o.LAYER.BG,s=this.view.getCoordinate(),u=this.getId("axis",e.field),h=this.getId("grid",e.field);if(s.isRect){if(p=this.cache.get(u)){var f=this.getLineAxisCfg(e,n,r);Object(c.omit)(f,d),p.component.update(f),t.set(u,p)}else p=this.createLineAxis(e,n,a,r,"x"),this.cache.set(u,p),t.set(u,p);if(g=this.cache.get(h)){f=this.getLineGridCfg(e,n,r,"x");Object(c.omit)(f,d),g.component.update(f),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(u)){f=s.isTransposed?this.getLineAxisCfg(e,n,o.DIRECTION.RADIUS):this.getCircleAxisCfg(e,n,r);Object(c.omit)(f,d),p.component.update(f),t.set(u,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(u,p),t.set(u,p)}if(g=this.cache.get(h)){f=s.isTransposed?this.getCircleGridCfg(e,n,o.DIRECTION.RADIUS,"x"):this.getLineGridCfg(e,n,o.DIRECTION.CIRCLE,"x");Object(c.omit)(f,d),g.component.update(f),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(l.getAxisOption)(e.option,a);if(!1!==s){var u=o.LAYER.BG,h=e.getId("axis",a),f=e.getId("grid",a),p=e.view.getCoordinate();if(p.isRect){var g=Object(l.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,d),m.component.update(v),t.set(h,m)}else m=e.createLineAxis(n,s,u,g,"y"),e.cache.set(h,m),t.set(h,m);if(y=e.cache.get(f)){v=e.getLineGridCfg(n,s,g,"y");Object(c.omit)(v,d),y.component.update(v),t.set(f,y)}else(y=e.createLineGrid(n,s,u,g,"y"))&&(e.cache.set(f,y),t.set(f,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,d),m.component.update(v),t.set(h,m)}else{if(p.isTransposed){if(Object(i.isUndefined)(s))return;m=e.createCircleAxis(n,s,u,o.DIRECTION.CIRCLE,"y")}else m=e.createLineAxis(n,s,u,o.DIRECTION.RADIUS,"y");e.cache.set(h,m),t.set(h,m)}if(y=e.cache.get(f)){v=p.isTransposed?e.getLineGridCfg(n,s,o.DIRECTION.CIRCLE,"y"):e.getCircleGridCfg(n,s,o.DIRECTION.RADIUS,"y");Object(c.omit)(v,d),y.component.update(v),t.set(f,y)}else{if(p.isTransposed){if(Object(i.isUndefined)(s))return;y=e.createLineGrid(n,s,u,o.DIRECTION.CIRCLE,"y")}else y=e.createCircleGrid(n,s,u,o.DIRECTION.RADIUS,"y");y&&(e.cache.set(f,y),t.set(f,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 l=this.getLineGridCfg(t,e,r,s);if(l){var u={component:new a.LineGrid(l),layer:n,direction:o.DIRECTION.NONE,type:o.COMPONENT_TYPE.GRID,extra:{dim:s,scale:t,alignTick:Object(i.get)(l,"alignTick",!0)}};return u.component.init(),u}},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 l=this.getCircleGridCfg(t,e,r,s);if(l){var u={component:new a.CircleGrid(l),layer:n,direction:o.DIRECTION.NONE,type:o.COMPONENT_TYPE.GRID,extra:{dim:s,scale:t,alignTick:Object(i.get)(l,"alignTick",!0)}};return u.component.init(),u}},e.prototype.getLineAxisCfg=function(t,e,n){var o=Object(i.get)(e,["top"])?this.axisForeContainer:this.axisContainer,a=this.view.getCoordinate(),s=Object(l.getAxisRegion)(a,n),u=Object(l.getAxisTitleText)(t,e),c=Object(l.getAxisThemeCfg)(this.view.getTheme(),n),h=Object(i.get)(e,["title"])?Object(i.deepMix)({title:{style:{text:u}}},{title:Object(l.getAxisTitleOptions)(this.view.getTheme(),n,e.title)},e):e,d=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(l.getAxisFactorByRegion)(s,a.getCenter()):Object(l.getAxisFactorByRegion)(s,a.getCenter()),theme:c}),c,h),f=this.getAnimateCfg(d),p=f.animate,g=f.animateOption;d.animateOption=g,d.animate=p;var v=Object(l.isVertical)(s),m=Object(i.get)(d,"verticalLimitLength",v?1/3:.5);if(m<=1){var y=this.view.getCanvas().get("width"),b=this.view.getCanvas().get("height");d.verticalLimitLength=m*(v?y:b)}return d},e.prototype.getLineGridCfg=function(t,e,n,r){if(Object(u.showGrid)(Object(l.getAxisThemeCfg)(this.view.getTheme(),n),e)){var o=Object(u.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(u.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(),u=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||u.pop();var c=Object(l.getAxisTitleText)(t,e),h=Object(l.getAxisThemeCfg)(this.view.getTheme(),o.DIRECTION.CIRCLE),d=Object(i.get)(e,["title"])?Object(i.deepMix)({title:{style:{text:c}}},{title:Object(l.getAxisTitleOptions)(this.view.getTheme(),n,e.title)},e):e,f=Object(i.deepMix)(Object(r.__assign)(Object(r.__assign)({container:a},Object(l.getCircleAxisCenterRadius)(this.view.getCoordinate())),{ticks:u,verticalFactor:1,theme:h}),h,d),p=this.getAnimateCfg(f),g=p.animate,v=p.animateOption;return f.animate=g,f.animateOption=v,f},e.prototype.getCircleGridCfg=function(t,e,n,r){if(Object(u.showGrid)(Object(l.getAxisThemeCfg)(this.view.getTheme(),n),e)){var a=Object(u.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(u.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)({},f,t.animateOption):f}},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(89),s=n(142),l=n(116),u=n(277),c=n(78),h=n(318),d=n(155);function f(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),d=n.get("maxWidth"),f=n.get("maxHeight");n.update({maxWidth:Math.min(c.maxWidth,d||0),maxHeight:Math.min(c.maxHeight,f||0)});var p=n.get("padding"),g=n.getLayoutBBox(),v=new l.BBox(g.x,g.y,g.width,g.height).expand(p),m=Object(r.__read)(Object(u.directionToPosition)(t.view.viewBBox,v,i),2),y=m[0],b=m[1],_=Object(r.__read)(Object(u.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 l=o.LAYER.FORE,u=p(this.option);this.components.push({id:n,component:s,layer:l,direction:u,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 l=void 0,u=f(t.option,o.field);!1!==u&&(Object(i.get)(u,"custom")?l=t.getCategoryCfg(n,r,o,u,!0):o.isLinear?l=t.getContinuousCfg(n,r,o,u):o.isCategory&&(l=t.getCategoryCfg(n,r,o,u))),l&&(Object(c.omit)(l,["container"]),s.direction=p(u),s.component.update(l),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=f(this.option,n.field),s=o.LAYER.FORE,l=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:l,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})),l=Object(i.find)(o,(function(t){return 1===t.value})),u=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||u.push({value:n.min,attrValue:e.mapping(n.invert(0)).join(""),color:e.mapping(n.invert(0)).join(""),scaleValue:0}),l||u.push({value:n.max,attrValue:e.mapping(n.invert(1)).join(""),color:e.mapping(n.invert(1)).join(""),scaleValue:1}),u.sort((function(t,e){return t.value-e.value}));var c={min:Object(i.head)(u).value,max:Object(i.last)(u).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=u.map((function(t){return t.attrValue})));var f=this.container,g=p(r),v=Object(h.getLegendLayout)(g),m=Object(i.get)(r,"title");return m&&(m=Object(i.deepMix)({text:Object(d.getName)(n)},m)),c.container=f,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 l=this.container,u=Object(i.get)(r,"position",o.DIRECTION.BOTTOM),c=Object(h.getLegendThemeCfg)(this.view.getTheme(),u),f=Object(i.get)(c,["marker"]),p=Object(i.get)(r,"marker"),g=Object(h.getLegendLayout)(u),v=Object(i.get)(c,["pageNavigator"]),m=Object(i.get)(r,"pageNavigator"),y=a?Object(h.getCustomLegendItems)(f,p,r.items):Object(h.getLegendItems)(this.view,t,e,f,p),b=Object(i.get)(r,"title");b&&(b=Object(i.deepMix)({text:n?Object(d.getName)(n):""},b));var _=Object(i.get)(r,"maxWidthRatio"),x=Object(i.get)(r,"maxHeightRatio"),w=this.getCategoryLegendSizeCfg(g,_,x);w.container=l,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,u);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(203).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(89),s=n(116),l=n(277),u=n(78),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],u=(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),d=this.getMinMaxText(this.start,this.end),f=d.minText,p=d.maxText,g=Object(r.__read)(Object(l.directionToPosition)(this.view.viewBBox,h,o.DIRECTION.BOTTOM),2),v=(g[0],g[1]),m=Object(r.__read)(Object(l.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+u,y:v+a,width:this.width,start:this.start,end:this.end,minText:f,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 l=Object(i.size)(a),u=Math.floor(t*(l-1)),c=Math.floor(e*(l-1)),h=Object(i.get)(a,[u]),d=Object(i.get)(a,[c]),f=this.getSliderCfg().formatter;return f&&(h=f(h,n[u],u),d=f(d,n[c],c)),{minText:h,maxText:d}},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,l=s,c=Object(i.size)(l),h=Math.floor(t*(c-1)),d=Math.floor(e*(c-1));this.view.filter(r.field,(function(t,e){var n=l.indexOf(t);return!(n>-1)||Object(u.isBetween)(n,h,d)})),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(203).Controller);e.default=c},function(t,e,n){"use strict";n.r(e);var r=n(2),i=n(203),o=n(89),a=n(116),s=n(277),l=n(7),u=n(1),c=n(78),h=function(t){function e(e){var n=t.call(this,e)||this;return n.onChangeFn=u.noop,n.resetMeasure=function(){n.clear()},n.onValueChange=function(t){var e=t.ratio,r=n.getValidScrollbarCfg().animate;n.ratio=Object(u.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(l.LAYER.FORE).addGroup(),n.onChangeFn=Object(u.throttle)(n.onValueChange,20,{leading:!0}),n.trackLen=0,n.thumbLen=0,n.ratio=0,n.view.on(l.VIEW_LIFE_CIRCLE.BEFORE_CHANGE_DATA,n.resetMeasure),n.view.on(l.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(l.VIEW_LIFE_CIRCLE.BEFORE_CHANGE_DATA,this.resetMeasure),this.view.off(l.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),u=this.getScrollbarComponentCfg(),c=void 0,h=void 0;if(u.isHorizontal){var d=Object(r.__read)(Object(s.directionToPosition)(this.view.viewBBox,o,l.DIRECTION.BOTTOM),2),f=(d[0],d[1]),p=Object(r.__read)(Object(s.directionToPosition)(this.view.coordinateBBox,o,l.DIRECTION.BOTTOM),2),g=p[0];p[1];c=g,h=f}else{var v=Object(r.__read)(Object(s.directionToPosition)(this.view.viewBBox,o,l.DIRECTION.RIGHT),2),m=(v[0],f=v[1],Object(r.__read)(Object(s.directionToPosition)(this.view.viewBBox,o,l.DIRECTION.RIGHT),2));g=m[0],m[1];c=g,h=f}c+=n[3],h+=n[0],this.trackLen?this.scrollbar.component.update(Object(r.__assign)(Object(r.__assign)({},u),{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)({},u),{x:c,y:h})),this.view.viewBBox=this.view.viewBBox.cut(o,u.isHorizontal?l.DIRECTION.BOTTOM:l.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(u.get)(t,["components","scrollbar","common"],{})},e.prototype.getScrollbarTheme=function(t){var e=Object(u.get)(this.view.getTheme(),["components","scrollbar"]),n=t||{},i=n.thumbHighlightColor,o=Object(r.__rest)(n,["thumbHighlightColor"]);return{default:Object(u.deepMix)({},Object(u.get)(e,["default","style"],{}),o),hover:Object(u.deepMix)({},Object(u.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(u.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,l=Object(u.valuesOfKey)(this.data,this.xScaleCfg.field),h=this.view.getXScale().isLinear?l.sort((function(t,e){return Number(t)-Number(e)})):l,d=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=d.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:l.LAYER.FORE,direction:t?l.DIRECTION.BOTTOM:l.DIRECTION.RIGHT,type:l.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(u.valuesOfKey)(e,t.field);return Object(u.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,l=i.height,c=i.style,h="vertical"!==o,d=Object(r.__read)(a,4),f=d[0],p=d[1],g=d[2],v=d[3],m=h?{x:e.minX+v,y:n.maxY-l-g}:{x:n.maxX-s-p,y:e.minY+f},y=this.getStep(),b=this.getCnt(),_=h?e.width-v-p:e.height-f-g,x=Math.max(_*Object(u.clamp)(y/b,0,1),20);return Object(r.__assign)(Object(r.__assign)({},this.getThemeOptions()),{x:m.x,y:m.y,size:h?l: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(u.isObject)(this.option)&&(t=Object(r.__assign)(Object(r.__assign)({},t),this.option)),Object(u.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 u}));var r=n(2),i=n(1),o=n(359),a=n(69),s=n(87),l={fill:"#CCD6EC",opacity:.3};function u(t,e,n){var a,s,l,u,c,h,d=Object(o.findItemsFromViewRecurisive)(t,e,n);if(d.length){d=Object(i.flatten)(d);try{for(var f=Object(r.__values)(d),p=f.next();!p.done;p=f.next()){var g=p.value;try{for(var v=(l=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){l={error:t}}finally{try{m&&!m.done&&(u=v.return)&&u.call(v)}finally{if(l)throw l.error}}}}catch(t){a={error:t}}finally{try{p&&!p.done&&(s=f.return)&&s.call(f)}finally{if(a)throw a.error}}if(!1===n.shared&&d.length>1){var w=d[0],O=Math.abs(e.y-w[0].y);try{for(var S=Object(r.__values)(d),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}}d=[w]}return Object(i.uniq)(Object(i.flatten)(d))}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=u(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],d=[],f=e.geometries;if(Object(i.each)(f,(function(t){if("interval"===t.type||"schema"===t.type){var e=t.getElementsBy((function(t){return t.getData()[c]===h}));d=d.concat(e)}})),d.length){var p=e.getCoordinate(),g=d[0].shape.getCanvasBBox(),v=d[0].shape.getCanvasBBox(),m=g;Object(i.each)(d,(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,M=void 0;p.isTransposed?(C=b.minX,E=Math.min(v.minY,g.minY)-S,T=b.width,M=m.height+2*S):(C=Math.min(g.minX,v.minX)-S,E=b.minY,T=m.width+2*S,M=b.height),_=[["M",C,E],["L",C+T,E],["L",C+T,E+M],["L",C,E+M],["Z"]]}else{var A=Object(i.head)(d),I=Object(i.last)(d),j=Object(a.getAngle)(A.getModel(),p).startAngle,k=Object(a.getAngle)(I.getModel(),p).endAngle,P=p.getCenter(),L=p.getRadius(),D=p.innerRadius*L;_=Object(a.getSectorPath)(P.x,P.y,L,j,k,D)}if(this.regionPath)this.regionPath.attr("path",_),this.regionPath.show();else{var R=Object(i.get)(t,"style",l);this.regionPath=y.addShape({type:"path",name:"active-region",capture:!1,attrs:Object(r.__assign)(Object(r.__assign)({},R),{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(706).default);e.default=a},function(t,e,n){"use strict";n.r(e);var r=n(2),i=n(1),o=n(91),a=n(87),s=n(89),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.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")}},l=e.getTheme(),u=Object(i.get)(l,["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)({},u,(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=l},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(465).default);e.default=i},function(t,e,n){"use strict";n.r(e);var r=n(2),i=n(87),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 l=Object(o.getElementsByField)(r,i.field,s),u=this.linkGroup.addGroup();this.cache[s]=u;var c=l.length;Object(a.each)(l,(function(t,r){if(r<c-1){var i=l[r+1];n.addLinkShape(u,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(467).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(468).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),l=s.filter((function(t){return Object(i.getElementValue)(t,o.field)===a}));this.setHighlightBy(s,(function(t){return l.includes(t)}),e)}},e}(n(260).default);e.default=o},function(t,e,n){"use strict";n.r(e);var r=n(2),i=n(24),o=n(260),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(368),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(468).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(467).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(465).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(468).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(206).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(206).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(206).default);e.default=i},function(t,e,n){"use strict";n.r(e);var r=n(2),i=n(1),o=n(206),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(206),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,l,u=this.getTriggerListInfo();if(null==u?void 0:u.item){var c=u.list,h=u.item,d=c.getItems(),f=d.filter((function(t){return!c.hasState(t,"unchecked")})),p=d.filter((function(t){return c.hasState(t,"unchecked")})),g=f[0];if(d.length===f.length)try{for(var v=Object(r.__values)(d),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(d.length-p.length==1)if(g.id===h.id)try{for(var b=Object(r.__values)(d),_=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)(d),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)(d),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&&(l=O.return)&&l.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(206),o=n(1),a=n(91),s=n(89),l="legend-radio-tip",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.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(l)&&document.body.removeChild(document.getElementById(l));var n=new s.HtmlTooltip({parent:document.body,region:null,visible:!1,crosshairs:null,domStyles:e,containerId:l});n.init(),n.setCapture(!1),this.tooltip=n},e}(i.default);e.default=u},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(469).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(709).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}(n(87).default);e.default=i},function(t,e,n){"use strict";n.r(e);var r=n(2),i=n(1),o=n(87),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),l=o.map((function(t){return t.name}));l.length?this.filterView(e,i,(function(t){var e=s.getText(t);return!l.includes(e)})):this.filterView(e,i,null),e.render(!0)}}else if(Object(a.isSlider)(t)){var u=n.getValue(),c=Object(r.__read)(u,2),h=c[0],d=c[1];this.filterView(e,i,(function(t){return t>=h&&t<=d})),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(87),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,l=s.get("field");if(Object(a.isList)(t)){if(l){var u=s.getItemsByState("unchecked"),c=Object(a.getScaleByField)(e,l),h=u.map((function(t){return t.name}));Object(i.each)(n,(function(t){var e=Object(a.getElementValue)(t,l),n=c.getText(e);h.indexOf(n)>=0?t.hide():t.show()}))}}else if(Object(a.isSlider)(t)){var d=s.getValue(),f=Object(r.__read)(d,2),p=f[0],g=f[1];Object(i.each)(n,(function(t){var e=Object(a.getElementValue)(t,l);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(398),s=n(87),l=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=l},function(t,e,n){"use strict";n.r(e);var r=n(2),i=n(87),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(289),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,l=a.y-o.y,u=this.context.view,c=this.dims;Object(i.each)(c,(function(e){t.translateDim(e,{x:-1*s,y:-1*l})})),u.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,l=n[t]*s;this.cacheScaleDefs[t]||(this.cacheScaleDefs[t]={nice:e.nice,min:o,max:a}),r.scale(e.field,{nice:!1,min:o+l,max:a+l})},e.prototype.reset=function(){t.prototype.reset.call(this),this.startPoint=null,this.starting=!1},e}(n(710).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,l=n*o,u=a-l,c=s+l,h=(c-u)/o;c>u&&h<100&&h>.01&&r.scale(e.field,{nice:!1,min:a-l,max:s+l})},e}(n(710).default);e.default=o},function(t,e,n){"use strict";n.r(e);var r=n(2),i=n(1),o=n(289);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(),l=n.getOptions().data,u=Object(i.size)(Object(i.valuesOfKey)(l,s.field)),c=Object(i.size)(s.values),h=a.getValue(),d=Math.floor((u-c)*h)+(function(t){return t.gEvent.originalEvent.deltaY>0}(r)?o:-o),f=o/(u-c)/1e4,p=Object(i.clamp)(d/(u-c)+f,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(91),o=n(1),a=n(89),s=n(87),l=n(24),u=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(l.getDelegationObject)(t).axis.cfg.title,n=e.description,r=e.text,o=e.descriptionTooltipStyle,a=t.event,s=a.x,u=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:u}),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=u},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(1901);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(4),i=n(159),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,l=e.fillOpacity;t.beginPath(),t.globalAlpha=l,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,l=e.isStagger,u=e.rotation,c=Object(i.getUnitPatternSize)(n,s,l),h=Object(i.getSymbolsPosition)(c,l),d=Object(i.initCanvas)(c,c),f=d.getContext("2d");Object(i.drawBackground)(f,e,c);for(var p=0,g=h;p<g.length;p++){var v=g[p];a(f,e,v[0],v[1])}var m=f.createPattern(d,"repeat");if(m){var y=Object(i.getPixelRatio)(),b=Object(i.transformMatrix)(y,u);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(4),i=n(159),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,l=e.lineWidth,u=n+l||1,c=n+l||1,h="\n M 0 0 L "+u+" 0\n M 0 "+c+" L "+u+" "+c+"\n ",d=Object(i.initCanvas)(u,c),f=d.getContext("2d");Object(i.drawBackground)(f,e,u,c),a(f,e,h);var p=f.createPattern(d,"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(4),i=n(159),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,l=e.fillOpacity;t.globalAlpha=l,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,l=e.isStagger,u=e.rotation,c=Object(i.getUnitPatternSize)(n,s,l),h=Object(i.getSymbolsPosition)(c,l),d=Object(i.initCanvas)(c,c),f=d.getContext("2d");Object(i.drawBackground)(f,e,c);for(var p=0,g=h;p<g.length;p++){var v=g[p];a(f,e,v[0],v[1])}var m=f.createPattern(d,"repeat");if(m){var y=Object(i.getPixelRatio)(),b=Object(i.transformMatrix)(y,u);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(4),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(15).InteractionAction)},function(t,e,n){"use strict";n.r(e),n.d(e,"DEFAULT_OPTIONS",(function(){return o}));var r=n(26),i=n(4),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(15),a=n(4),s=n(711);function l(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 u(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,l=t.horizontal,c=s.offset,h=s.size,d=s.arrow,f=i.getCoordinate(),p=u(f,e)[3],g=u(f,n)[0],v=g.y-p.y,m=g.x-p.x;if("boolean"!=typeof d){var y,b=d.headSize,_=s.spacing;l?(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)({},d.style||{}),{points:y})})}}(t,e,n),function(t,e,n){var i,o,a,s=t.view,l=t.geometry,c=t.group,h=t.options,d=t.field,f=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()[d],n.getData()[d])),y=u(v,e)[f?3:0],b=u(v,n)[f?0:3],_=c.addShape("text",{id:s.id+"-conversion-tag-text-"+l.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:f?(y.x+b.x)/2:y.x+p+g/2,y:f?y.y-p-g/2:(y.y+b.y)/2})});if(f){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,u=r.chart,h=s.conversionTag,d=s.theme;return h&&!n&&(u.theme(Object(a.deepAssign)({},Object(i.isObject)(d)?d:Object(o.getTheme)(d),{columnWidthRatio:1/3})),u.annotation().shape({render:function(n,r){var o=n.addGroup({id:u.id+"-conversion-tag-group",name:"conversion-tag-group"}),a=Object(i.find)(u.geometries,(function(t){return"interval"===t.type})),s={view:r,geometry:a,group:o,field:t,horizontal:e,options:l(h,e)},d=a.elements;Object(i.each)(d,(function(t,e){e>0&&c(s,d[e-1],t)}))}})),r}}},function(t,e,n){"use strict";n.r(e),n.d(e,"connectedArea",(function(){return a}));var r=n(15),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 l}));var r=n(2),i=n(15),o=n(1),a=n(4),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"}}},l=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(4),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(4),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(15),o=n(1),a=n(551),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 l=i.Util.getAngle(e.getModel(),s),u=(l.startAngle+l.endAngle)/2,c=t,h=c*Math.cos(u),d=c*Math.sin(u);e.shape.setMatrix(Object(a.transform)([["t",h,d]])),o.setMatrix(Object(a.transform)([["t",h,d]]))}}))},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 l}));var r=n(2),i=n(15),o=n(1),a=n(519),s=n(1638),l=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 l=Object(o.get)(r,["data","data"]);if(r.type.match("legend-item")){var u=i.Util.getDelegationObject(this.context),c=n.getGroupedFields()[0];if(u&&c){var h=u.item;l=n.getData().find((function(t){return t[c]===h.value}))}}if(l){var d=Object(o.get)(t,"annotations",[]),f=Object(o.get)(t,"statistic",{});n.getController("annotation").clear(!0),Object(o.each)(d,(function(t){"object"==typeof t&&n.annotation()[t.type](t)})),Object(a.renderStatistic)(n,{statistic:f,plotType:"pie"},l),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(4),a=n(9),s=n(34);function l(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 u(t){var e=t.chart,n=t.options,a=n.label,s=n.xField,l=Object(o.findGeometry)(e,"interval");if(!1===a)l.label(!1);else if(Object(i.isObject)(a)){var u=a.callback,c=a.fields,h=Object(r.__rest)(a,["callback","fields"]),d=h.offset,f=h.layout;(void 0===d||d>=0)&&(f=f?Object(i.isArray)(f)?f:[f]:[],h.layout=Object(i.filter)(f,(function(t){return"limit-in-shape"!==t.type})),h.layout.length||delete h.layout),l.label({fields:c||[s],callback:u,cfg:Object(o.transformLabel)(h)})}else Object(o.log)(o.LEVEL.WARN,null===a,"the label option must be an Object."),l.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 d(t){var e,n=t.options,r=n.xAxis,i=n.yAxis,s=n.xField,l=n.yField;return Object(o.flow)(Object(a.scale)(((e={})[s]=r,e[l]=i,e)))(t)}function f(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"),l,d,u,h,f,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(4),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 d})),n.d(e,"adaptor",(function(){return f}));var r=n(2),i=n(1),o=n(9),a=n(4),s=n(34),l=n(552),u=n(553);function c(t){var e=t.chart,n=t.options,o=n.colorField,c=n.color,h=Object(l.transform)(t);e.data(h);var d=Object(a.deepAssign)({},t,{options:{xField:"x",yField:"y",seriesField:o&&u.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)(d).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 d(t){var e=t.chart,n=t.options,r=n.legend,i=n.colorField;return!1===r?e.legend(!1):i&&e.legend(u.WORD_CLOUD_COLOR_FIELD,r),t}function f(t){Object(a.flow)(c,h,o.tooltip,d,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(4),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 d}));var r=n(2),i=n(9),o=n(34),a=n(4);function s(t){var e=t.chart,n=t.options,i=n.data,s=n.lineStyle,l=n.color,u=n.point,c=n.area;e.data(i);var h=Object(a.deepAssign)({},t,{options:{line:{style:s,color:l},point:u?Object(r.__assign)({color:l},u):u,area:c?Object(r.__assign)({color:l},c):c,label:void 0}}),d=Object(a.deepAssign)({},h,{options:{tooltip:!1}}),f=(null==u?void 0:u.state)||n.state,p=Object(a.deepAssign)({},h,{options:{tooltip:!1,state:f}});return Object(o.line)(h),Object(o.point)(p),Object(o.area)(d),t}function l(t){var e,n=t.options,r=n.xAxis,o=n.yAxis,s=n.xField,l=n.yField;return Object(a.flow)(Object(i.scale)(((e={})[s]=r,e[l]=o,e)))(t)}function u(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 l=i.callback,u=Object(r.__rest)(i,["callback"]);s.label({fields:[o],callback:l,cfg:Object(a.transformLabel)(u)})}else s.label(!1);return t}function d(t){return Object(a.flow)(s,l,i.theme,u,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(15),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,l=t.prototype.getTooltipItems.call(this,e);if(l.length>0){var u=this.view.geometries[0],c=u.dataArray,h=l[0].name,d=[];return c.forEach((function(t){t.forEach((function(t){var e=i.Util.getTooltipItems(t,u)[0];if(!a&&e&&e.name===h){var n=Object(o.isNil)(s)?h:s;d.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;d.push(Object(r.__assign)(Object(r.__assign)({},e),{name:e.title,title:n}))}}))})),d}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 M})),n.d(e,"adaptor",(function(){return A}));var r=n(2),i=n(1),o=n(9),a=n(226),s=n(4),l=n(110),u=n(218),c=n(867),h=n(1646),d=n(868),f=n(280),p=n(105);function g(t){var e,n=t.options,r=n.geometryOptions,o=void 0===r?[]:r,a=n.xField,l=n.yField,c=Object(i.every)(o,(function(t){var e=t.geometry;return e===f.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(u.transformObjectToArray)(l,n.yAxis),geometryOptions:[Object(u.getGeometryOption)(a,l[0],o[0]),Object(u.getGeometryOption)(a,l[1],o[1])],annotations:Object(u.transformObjectToArray)(l,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,d=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(u.isColumn)(t)&&t.isPercent,f=c?Object(a.percent)(o,s,i,s):o,p=Object(l.findViewById)(e,n).data(f),g=c?Object(r.__assign)({formatter:function(e){return{name:e[t.seriesField]||s,value:(100*Number(e[s])).toFixed(2)+"%"}}},d):d;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(l.findViewById)(n,0===e?p.LEFT_AXES_VIEW:p.RIGHT_AXES_VIEW);if(!t.color){var s=r.getGroupScales(),u=Object(i.get)(s,[0,"values","length"],1),c=o.slice(a,a+u).concat(0===e?[]:o);r.geometries.forEach((function(e){t.seriesField?e.color(t.seriesField,c):e.color(c[0])})),a+=u}})),n.render(!0)})),t}function b(t){var e,n,r=t.chart,i=t.options,a=i.xAxis,u=i.yAxis,c=i.xField,h=i.yField;return Object(o.scale)(((e={})[c]=a,e[h[0]]=u[0],e))(Object(s.deepAssign)({},t,{chart:Object(l.findViewById)(r,p.LEFT_AXES_VIEW)})),Object(o.scale)(((n={})[c]=a,n[h[1]]=u[1],n))(Object(s.deepAssign)({},t,{chart:Object(l.findViewById)(r,p.RIGHT_AXES_VIEW)})),t}function _(t){var e=t.chart,n=t.options,r=Object(l.findViewById)(e,p.LEFT_AXES_VIEW),i=Object(l.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(u.getYAxisWithDefault)(c[0],f.AxisType.Left)),i.axis(o,!1),i.axis(a[1],Object(u.getYAxisWithDefault)(c[1],f.AxisType.Right)),t}function x(t){var e=t.chart,n=t.options.tooltip,r=Object(l.findViewById)(e,p.LEFT_AXES_VIEW),i=Object(l.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(l.findViewById)(e,p.LEFT_AXES_VIEW)})),Object(o.interaction)(Object(s.deepAssign)({},t,{chart:Object(l.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(l.findViewById)(e,p.LEFT_AXES_VIEW),options:{annotations:r}})),Object(o.annotation)(a)(Object(s.deepAssign)({},t,{chart:Object(l.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(l.findViewById)(e,p.LEFT_AXES_VIEW)})),Object(o.theme)(Object(s.deepAssign)({},t,{chart:Object(l.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(l.findViewById)(e,p.LEFT_AXES_VIEW)})),Object(o.animation)(Object(s.deepAssign)({},t,{chart:Object(l.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(l.findViewById)(e,p.LEFT_AXES_VIEW),options:{yAxis:n[0]}})),Object(o.limitInPlot)(Object(s.deepAssign)({},t,{chart:Object(l.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,u=n.data,h=Object(l.findViewById)(e,p.LEFT_AXES_VIEW),d=Object(l.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 f=Object(i.get)(o,[0,"legend"],r),g=Object(i.get)(o,[1,"legend"],r);e.once("beforepaint",(function(){var t=u[0].length?Object(c.getViewLegendItems)({view:h,geometryOption:o[0],yField:a[0],legend:f}):[],n=u[1].length?Object(c.getViewLegendItems)({view:d,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,f),o[1].seriesField&&d.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,u=r.viewId;if(s){if(Object(i.findIndex)(a,(function(t){return t===o}))>-1){var c=Object(i.get)(Object(l.findViewById)(e,u),"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 M(t){var e=t.chart,n=t.options.slider,r=Object(l.findViewById)(e,p.LEFT_AXES_VIEW),o=Object(l.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(d.doSliderFilter)(o,n)})),e.once("afterpaint",(function(){if(!Object(i.isBoolean)(n)){var t=n.start,e=n.end;(t||e)&&Object(d.doSliderFilter)(o,[t,e])}}))),t}function A(t){return Object(s.flow)(g,v,S,m,b,_,E,x,w,O,C,y,T,M)(t)}},function(t,e,n){"use strict";n.r(e),n.d(e,"drawSingleGeometry",(function(){return u}));var r=n(2),i=n(1),o=n(34),a=n(4),s=n(271),l=n(218);function u(t){var e=t.options,n=t.chart,u=e.geometryOption,c=u.isStack,h=u.color,d=u.seriesField,f=u.groupField,p=u.isGroup,g=["xField","yField"];if(Object(l.isLine)(u)){Object(o.line)(Object(a.deepAssign)({},t,{options:Object(r.__assign)(Object(r.__assign)(Object(r.__assign)({},Object(a.pick)(e,g)),u),{line:{color:u.color,style:u.lineStyle}})})),Object(o.point)(Object(a.deepAssign)({},t,{options:Object(r.__assign)(Object(r.__assign)(Object(r.__assign)({},Object(a.pick)(e,g)),u),{point:u.point&&Object(r.__assign)({color:h,shape:"circle"},u.point)})}));var v=[];p&&v.push({type:"dodge",dodgeBy:f||d,customOffset:0}),c&&v.push({type:"stack"}),v.length&&Object(i.each)(n.geometries,(function(t){t.adjust(v)}))}return Object(l.isColumn)(u)&&Object(s.adaptor)(Object(a.deepAssign)({},t,{options:Object(r.__assign)(Object(r.__assign)(Object(r.__assign)({},Object(a.pick)(e,g)),u),{widthRatio:u.columnWidthRatio,interval:Object(r.__assign)(Object(r.__assign)({},Object(a.pick)(u,["color"])),{style:u.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(166),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(4),a=n(9),s=n(102),l=n(125);function u(t){var e=t.chart,n=t.options,r=n.data,a=n.type,u=n.xField,c=n.yField,h=n.colorField,d=n.sizeField,f=n.sizeRatio,p=n.shape,g=n.color,v=n.tooltip,m=n.heatmapStyle;e.data(r);var y="polygon";"density"===a&&(y="heatmap");var b=Object(l.getTooltipMapping)(v,[u,c,h]),_=b.fields,x=b.formatter,w=1;return(f||0===f)&&(p||d?f<0||f>1?console.warn("sizeRatio is not in effect: It must be a number in [0,1]"):w=f:console.warn("sizeRatio is not in effect: Must define shape or sizeField first")),Object(s.geometry)(Object(o.deepAssign)({},t,{options:{type:y,colorField:h,tooltipFields:_,shapeField:d||"",label:void 0,mapping:{tooltip:x,shape:p&&(d?function(t){var e=r.map((function(t){return t[d]})),n=Math.min.apply(Math,e),o=Math.max.apply(Math,e);return[p,(Object(i.get)(t,d)-n)/(o-n),w]}:function(){return[p,1,w]}),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,l=n.yField;return Object(o.flow)(Object(a.scale)(((e={})[s]=r,e[l]=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 d(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 f(t){var e=t.chart,n=t.options,i=n.label,a=n.colorField,s=n.type,l=Object(o.findGeometry)(e,"density"===s?"heatmap":"polygon");if(i){if(a){var u=i.callback,c=Object(r.__rest)(i,["callback"]);l.label({fields:[a],callback:u,cfg:Object(o.transformLabel)(c)})}}else l.label(!1);return t}function p(t){var e=t.chart,n=t.options,r=n.coordinate,i=n.reflect;return r&&e.coordinate({type:r.type||"rect",cfg:r.cfg}),i&&e.coordinate().reflect(i),t}function g(t){return Object(o.flow)(a.theme,Object(a.pattern)("heatmapStyle"),c,p,u,h,d,a.tooltip,f,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(4),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(9),a=n(34),s=n(4),l=n(134),u=n(261),c=n(717);function h(t){var e=t.chart,n=t.options,r=n.xField,o=n.yField,l=n.groupField,h=n.color,d=n.tooltip,f=n.boxStyle;e.data(Object(c.transformData)(n.data,o));var p=Object(i.isArray)(o)?u.BOX_RANGE:o,g=o?Object(i.isArray)(o)?o:[o]:[],v=d;!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:l,tooltip:v,rawFields:g,label:!1,schema:{shape:"box",color:h,style:f}}})).ext;return l&&m.geometry.adjust("dodge"),t}function d(t){var e=t.chart,n=t.options,i=n.xField,o=n.data,s=n.outliersField,l=n.outliersStyle,c=n.padding,h=n.label;if(!s)return t;var d=e.createView({padding:c,id:u.OUTLIERS_VIEW_ID}),f=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 d.data(f),Object(a.point)({chart:d,options:{xField:i,yField:s,point:{shape:"circle",style:l},label:h}}),d.axis(!1),t}function f(t){var e,n,r=t.chart,i=t.options,o=i.meta,a=i.xAxis,c=i.yAxis,h=i.xField,d=i.yField,f=i.outliersField,p=Array.isArray(d)?u.BOX_RANGE:d,g={};if(f){var v=u.BOX_SYNC_NAME;(e={})[f]={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,l.AXIS_META_CONFIG_KEYS),n[p]=Object(s.pick)(c,l.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)?u.BOX_RANGE:a;return!1===r?e.axis(o,!1):e.axis(o,r),!1===i?e.axis(u.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,d,f,p,g,o.tooltip,o.interaction,o.animation,o.theme)(t)}},function(t,e,n){"use strict";n.r(e),n.d(e,"animation",(function(){return _})),n.d(e,"adaptor",(function(){return x}));var r=n(2),i=n(1),o=n(9),a=n(34),s=n(4),l=n(134),u=n(718),c=n(94),h=["low","high","q1","q3","median"],d=[{type:"dodge",marginRatio:1/32}];function f(t){var e=t.chart,n=t.options;return e.data(Object(u.transformViolinData)(n)),t}function p(t){var e=t.chart,n=t.options,i=n.seriesField,o=n.color,s=n.shape,l=void 0===s?"violin":s,u=n.violinStyle,f=n.tooltip,p=n.state,g=e.createView({id:c.VIOLIN_VIEW_ID});return Object(a.violin)({chart:g,options:{xField:c.X_FIELD,yField:c.VIOLIN_Y_FIELD,seriesField:i||c.X_FIELD,sizeField:c.VIOLIN_SIZE_FIELD,tooltip:Object(r.__assign)({fields:h},f),violin:{style:u,color:o,shape:l},state:p}}),g.geometries[0].adjust(d),t}function g(t){var e=t.chart,n=t.options,i=n.seriesField,o=n.color,s=n.tooltip,l=n.box;if(!1===l)return t;var u=e.createView({id:c.MIN_MAX_VIEW_ID});Object(a.interval)({chart:u,options:{xField:c.X_FIELD,yField:c.MIN_MAX_FIELD,seriesField:i||c.X_FIELD,tooltip:Object(r.__assign)({fields:h},s),state:"object"==typeof l?l.state:{},interval:{color:o,size:1,style:{lineWidth:0}}}}),u.geometries[0].adjust(d);var f=e.createView({id:c.QUANTILE_VIEW_ID});Object(a.interval)({chart:f,options:{xField:c.X_FIELD,yField:c.QUANTILE_FIELD,seriesField:i||c.X_FIELD,tooltip:Object(r.__assign)({fields:h},s),state:"object"==typeof l?l.state:{},interval:{color:o,size:8,style:{fillOpacity:1}}}}),f.geometries[0].adjust(d);var p=e.createView({id:c.MEDIAN_VIEW_ID});return Object(a.point)({chart:p,options:{xField:c.X_FIELD,yField:c.MEDIAN_FIELD,seriesField:i||c.X_FIELD,tooltip:Object(r.__assign)({fields:h},s),state:"object"==typeof l?l.state:{},point:{color:o,size:1,style:{fill:"white",lineWidth:0}}}}),p.geometries[0].adjust(d),f.axis(!1),u.axis(!1),p.axis(!1),p.legend(!1),u.legend(!1),f.legend(!1),t}function v(t){var e,n=t.chart,i=t.options,o=i.meta,a=i.xAxis,u=i.yAxis,h=Object(s.deepAssign)({},o,((e={})[c.X_FIELD]=Object(r.__assign)(Object(r.__assign)({sync:!0},Object(s.pick)(a,l.AXIS_META_CONFIG_KEYS)),{type:"cat"}),e[c.VIOLIN_Y_FIELD]=Object(r.__assign)({sync:!0},Object(s.pick)(u,l.AXIS_META_CONFIG_KEYS)),e[c.MIN_MAX_FIELD]=Object(r.__assign)({sync:c.VIOLIN_Y_FIELD},Object(s.pick)(u,l.AXIS_META_CONFIG_KEYS)),e[c.QUANTILE_FIELD]=Object(r.__assign)({sync:c.VIOLIN_Y_FIELD},Object(s.pick)(u,l.AXIS_META_CONFIG_KEYS)),e[c.MEDIAN_FIELD]=Object(r.__assign)({sync:c.VIOLIN_Y_FIELD},Object(s.pick)(u,l.AXIS_META_CONFIG_KEYS)),e));return n.scale(h),t}function m(t){var e=t.chart,n=t.options,r=n.xAxis,i=n.yAxis,o=Object(s.findViewById)(e,c.VIOLIN_VIEW_ID);return!1===r?o.axis(c.X_FIELD,!1):o.axis(c.X_FIELD,r),!1===i?o.axis(c.VIOLIN_Y_FIELD,!1):o.axis(c.VIOLIN_Y_FIELD,i),e.axis(!1),t}function y(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||c.X_FIELD,l=Object(i.omit)(r,["selected"]);a&&a.startsWith("hollow")||Object(i.get)(l,["marker","style","lineWidth"])||Object(i.set)(l,["marker","style","lineWidth"],0),e.legend(s,l),Object(i.get)(r,"selected")&&Object(i.each)(e.views,(function(t){return t.legend(s,r)}))}return t}function b(t){var e=t.chart,n=Object(s.findViewById)(e,c.VIOLIN_VIEW_ID);return Object(o.annotation)()(Object(r.__assign)(Object(r.__assign)({},t),{chart:n})),t}function _(t){var e=t.chart,n=t.options.animation;return Object(i.each)(e.views,(function(t){"boolean"==typeof n?t.animate(n):t.animate(!0),Object(i.each)(t.geometries,(function(t){t.animate(n)}))})),t}function x(t){return Object(s.flow)(o.theme,f,p,g,v,o.tooltip,m,y,o.interaction,b,_)(t)}},function(t,e,n){"use strict";var r=Math.log(2),i=t.exports,o=n(1912);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)),l=o.isNumber(e.max)?e.max:(r=!0,o.findMaxMulti(t)),u=(l-s)/(a-1);return n&&(s-=2*i*u),r&&(l+=2*i*u),{min:s,max:l}},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}),l=s.min,u=s.max-l,c=u/(n-1);if(0===u)return[{x:l,y:1}];for(var h=[],d=0;d<n;d++)h.push({x:l+d*c,y:0});var f=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=f[r],g=f[r-1]-f[r-2],v=0;t.forEach((function(t){var e=function(t){return Math.floor((t-l)/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),u=e+r-a,d=f[-r-1+s]||0,m=f[-r-1+u]||0,y=p/(p-d-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(9),a=n(34),s=n(4),l=n(764),u=n(177),c=(n(1913),n(1914),n(1915),40);function h(t,e,n){var r=t.chart,o=t.options,a=o.blendMode,s=o.setsField,u=r.getTheme(),c=u.colors10,h=u.colors20,d=n;Object(i.isArray)(d)||(d=e.filter((function(t){return 1===t[s].length})).length<=10?c:h);var f=Object(l.getColorMap)(d,e,a,s);return function(t){return f.get(t)||d[0]}}function d(t){var e=t.chart,n=t.options,r=n.legend,o=n.appendPadding,a=n.padding,l=Object(s.normalPadding)(o);return!1!==r&&(l=Object(s.getAdjustAppendPadding)(o,Object(i.get)(r,"position"),c)),e.appendPadding=Object(s.resolveAllPadding)([l,a]),t}function f(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(l.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),d=c[0],f=c[1],p=c[2],g=c[3],v={offsetX:g,offsetY:d},m=e.viewBBox,y=m.width,b=m.height,_=Object(l.layoutVennData)(n,Math.max(y-(f+g),0),Math.max(b-(d+p),0),0);e.data(_);var x=Object(a.schema)(Object(s.deepAssign)({},t,{options:{xField:"x",yField:"y",sizeField:o,seriesField:u.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[u.ID_FIELD])}}return n}(t,_);return"function"==typeof w&&x.color(u.ID_FIELD,(function(e){var n=_.find((function(t){return t[u.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],l={offsetX:o[3],offsetY:a},u=Object(s.findGeometry)(e,"schema");if(n){var c=n.callback,h=Object(r.__rest)(n,["callback"]);u.label({fields:["id"],callback:c,cfg:Object(i.deepMix)({},Object(s.transformLabel)(h),{type:"venn",customLabelInfo:l})})}else u.label(!1);return t}function v(t){var e=t.chart,n=t.options,r=n.legend,i=n.sizeField;return e.legend(u.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)(d,o.theme,f,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(230),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),l=a[0],u=a[1],c=a[2],h=a[3],d=s(e),f=d[0],p=d[1],g=d[2],v=d[3],m=Number((h+v*(1-h)).toFixed(2));return"rgba("+Math.round((h*(1-v)*(l/255)+h*v*(i[0]/255)+(1-h)*v*(f/255))/m*255)+", "+Math.round((h*(1-v)*(u/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(15),o=n(401),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(15),o=n(401),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,"compareFunnel",(function(){return d}));var r=n(1),i=n(4),o=n(125),a=n(102),s=n(73),l=n(369);function u(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,u=n.data,c=n.xField,h=n.yField,d=n.color,f=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:[f],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(l.transformData)(e.data,u,{yField:h,maxSize:v,minSize:m});t.data(x);var w=Object(o.getTooltipMapping)(g,[c,h,f]),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:d,style:b},label:!1!==y&&Object(i.deepAssign)({},C,y),state:_}})}}),t}function h(t){var e=t.chart,n=t.options,r=n.conversionTag,o=n.isTransposed;return e.once("beforepaint",(function(){e.views.forEach((function(t,e){Object(l.conversionTagComponent)((function(t,n,a,l){var u=0===e?-1:1;return Object(i.deepAssign)({},l,{start:[n-.5,t[s.FUNNEL_MAPPING_VALUE]],end:[n-.5,t[s.FUNNEL_MAPPING_VALUE]+.05],text:o?{style:{textAlign:"start"}}:{offsetX:!1!==r?u*r.offsetX:0,style:{textAlign:0===e?"end":"start"}}})}))(Object(i.deepAssign)({},{chart:t,options:n}))}))})),t}function d(t){return Object(i.flow)(u,c,h)(t)}},function(t,e,n){"use strict";n.r(e),n.d(e,"facetFunnel",(function(){return s}));var r=n(4),i=n(722);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(4),a=n(73),s=n(102),l=n(125),u=n(369);function c(t){var e=t.chart,n=t.options,r=n.data,o=void 0===r?[]:r,s=n.yField,l=Object(i.reduce)(o,(function(t,e){return t+(e[s]||0)}),0),u=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)/l,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)/u,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,u=n.color,c=n.tooltip,h=n.label,d=n.funnelStyle,f=n.state,p=Object(l.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:f,mapping:{tooltip:v,color:u,style:d}}}),t}function d(t){var e=t.chart,n=t.options.isTransposed;return e.coordinate({type:"rect",actions:n?[["transpose"],["reflect","x"]]:[]}),t}function f(t){return Object(u.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,d,f)(t)}},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(4),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 d})),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(9),s=n(4),l=n(207),u=n(219),c=n(874);function h(t){var e,n=t.chart,a=t.options,l=a.color,h=a.colorField,d=void 0===h?u.SUNBURST_ANCESTOR_FIELD:h,f=a.sunburstStyle,p=a.rawFields,g=void 0===p?[]:p,v=Object(c.transformData)(a);return n.data(v),f&&(e=function(t){return Object(s.deepAssign)({},{fillOpacity:Math.pow(.85,t.depth)},Object(i.isFunction)(f)?f(t):f)}),Object(o.polygon)(Object(s.deepAssign)({},t,{options:{xField:"x",yField:"y",seriesField:d,rawFields:Object(i.uniq)(Object(r.__spreadArrays)(u.RAW_FIELDS,g)),polygon:{color:l,style:e}}})),t}function d(t){return t.chart.axis(!1),t}function f(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,l=n.callback,u=Object(r.__rest)(n,["fields","callback"]);i.label({fields:a,callback:l,cfg:Object(s.transformLabel)(u)})}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={})[u.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,[u.SUNBURST_PATH_FIELD,"formatter"],(function(t){return t})),a=Object(i.get)(n,[u.SUNBURST_Y_FIELD,"formatter"],(function(t){return t}));return Object(r.__assign)(Object(r.__assign)({},t),{name:o(t.data[u.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(l.getAdjustAppendPadding)(e.appendPadding,Object(i.get)(r,["breadCrumb","position"]))),t}function b(t){return Object(s.flow)(a.theme,Object(a.pattern)("sunburstStyle"),h,d,g,a.legend,p,v,f,y,a.animation,Object(a.annotation)())(t)}},function(t,e,n){"use strict";n.r(e),n.d(e,"partition",(function(){return l}));var r=n(821),i=n(306),o=n(1),a=n(197),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 l(t,e){var n,l=(e=Object(o.assign)({},s,e)).as;if(!Object(o.isArray)(l)||2!==l.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 u=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=l[0],h=l[1];return u.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===l.indexOf(e)&&delete t[e]}))})),Object(a.getAllNodes)(u)}},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=[],l=-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,++l,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(9),a=n(34),s=n(275),l=n(4),u=n(122),c=n(728);n(1919);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 d(t){var e=t.chart,n=t.options,r=n.data,o=n.xField,s=n.yField,h=n.total,d=n.leaderLine,f=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,[u.IS_TOTAL])?Object(i.get)(h,["style","fill"],""):Object(i.get)(t,[u.Y_FIELD,1])-Object(i.get)(t,[u.Y_FIELD,0])>0?g:v},b=Object(l.deepAssign)({},t,{options:{xField:o,yField:u.Y_FIELD,seriesField:o,rawFields:[s,u.DIFF_FIELD,u.IS_TOTAL,u.Y_FIELD],widthRatio:f,interval:{style:p,shape:"waterfall",color:y}}});return Object(a.interval)(b).ext.geometry.customInfo({leaderLine:d}),t}function f(t){var e,n,r=t.options,a=r.xAxis,s=r.yAxis,c=r.xField,h=r.yField,d=r.meta,f=Object(l.deepAssign)({},{alias:h},Object(i.get)(d,h));return Object(l.flow)(Object(o.scale)(((e={})[c]=a,e[h]=s,e[u.Y_FIELD]=s,e),Object(l.deepAssign)({},d,((n={})[u.Y_FIELD]=f,n[u.DIFF_FIELD]=f,n[u.ABSOLUTE_FIELD]=f,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(u.Y_FIELD,!1)):(e.axis(a,i),e.axis(u.Y_FIELD,i)),t}function g(t){var e=t.chart,n=t.options,r=n.legend,o=n.total,a=n.risingFill,u=n.fallingFill,c=n.locale,h=Object(s.getLocale)(c);if(!1===r)e.legend(!1);else{var d=[{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:u}}}];o&&d.push({name:o.label||"",value:"total",marker:{symbol:"square",style:Object(l.deepAssign)({},{r:5},Object(i.get)(o,"style"))}}),e.legend(Object(l.deepAssign)({},{custom:!0,position:"top",items:d},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(l.findGeometry)(e,"interval");if(i){var c=i.callback,h=Object(r.__rest)(i,["callback"]);s.label({fields:"absolute"===o?[u.ABSOLUTE_FIELD,a]:[u.DIFF_FIELD,a],callback:c,cfg:Object(l.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(l.flow)(h,o.theme,d,f,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(4),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 f})),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(9),a=n(34),s=n(4),l=n(107),u=n(319);function c(t){var e,n,r=t.chart,i=t.options,o=i.data,c=i.xField,h=i.yField,d=i.color,f=i.barStyle,p=i.widthRatio,g=i.legend,v=i.layout,m=Object(u.transformData)(c,h,l.SERIES_FIELD_KEY,o,Object(u.isHorizontal)(v));g?r.legend(l.SERIES_FIELD_KEY,g):!1===g&&r.legend(!1);var y=m[0],b=m[1];Object(u.isHorizontal)(v)?((e=r.createView({region:{start:{x:0,y:0},end:{x:.5,y:1}},id:l.FIRST_AXES_VIEW})).coordinate().transpose().reflect("x"),(n=r.createView({region:{start:{x:.5,y:0},end:{x:1,y:1}},id:l.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:l.FIRST_AXES_VIEW}),(n=r.createView({region:{start:{x:0,y:.5},end:{x:1,y:1}},id:l.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:l.SERIES_FIELD_KEY,interval:{color:d,style:f}}});Object(a.interval)(_);var x=Object(s.deepAssign)({},t,{chart:n,options:{xField:c,yField:h[1],seriesField:l.SERIES_FIELD_KEY,widthRatio:p,interval:{color:d,style:f}}});return Object(a.interval)(x),t}function h(t){var e,n,r,a=t.options,u=t.chart,c=a.xAxis,h=a.yAxis,d=a.xField,f=a.yField,p=Object(s.findViewById)(u,l.FIRST_AXES_VIEW),g=Object(s.findViewById)(u,l.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)})),u.scale(((e={})[l.SERIES_FIELD_KEY]={sync:!0,formatter:function(t){return Object(i.get)(v,t,t)}},e)),Object(o.scale)(((n={})[d]=c,n[f[0]]=h[f[0]],n))(Object(s.deepAssign)({},t,{chart:p})),Object(o.scale)(((r={})[d]=c,r[f[1]]=h[f[1]],r))(Object(s.deepAssign)({},t,{chart:g})),t}function d(t){var e=t.chart,n=t.options,i=n.xAxis,o=n.yAxis,a=n.xField,c=n.yField,h=n.layout,d=Object(s.findViewById)(e,l.FIRST_AXES_VIEW),f=Object(s.findViewById)(e,l.SECOND_AXES_VIEW);return"bottom"===(null==i?void 0:i.position)?f.axis(a,Object(r.__assign)(Object(r.__assign)({},i),{label:{formatter:function(){return""}}})):f.axis(a,!1),!1===i?d.axis(a,!1):d.axis(a,Object(r.__assign)({position:Object(u.isHorizontal)(h)?"top":"bottom"},i)),!1===o?(d.axis(c[0],!1),f.axis(c[1],!1)):(d.axis(c[0],o[c[0]]),f.axis(c[1],o[c[1]])),e.__axisPosition={position:d.getOptions().axes[a].position,layout:h},t}function f(t){var e=t.chart;return Object(o.interaction)(Object(s.deepAssign)({},t,{chart:Object(s.findViewById)(e,l.FIRST_AXES_VIEW)})),Object(o.interaction)(Object(s.deepAssign)({},t,{chart:Object(s.findViewById)(e,l.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,l.FIRST_AXES_VIEW),options:{yAxis:i[r[0]]}})),Object(o.limitInPlot)(Object(s.deepAssign)({},t,{chart:Object(s.findViewById)(e,l.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,l.FIRST_AXES_VIEW)})),Object(o.theme)(Object(s.deepAssign)({},t,{chart:Object(s.findViewById)(e,l.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,l.FIRST_AXES_VIEW)})),Object(o.animation)(Object(s.deepAssign)({},t,{chart:Object(s.findViewById)(e,l.SECOND_AXES_VIEW)})),t}function m(t){var e,n,i=this,o=t.chart,a=t.options,c=a.label,h=a.yField,d=a.layout,f=Object(s.findViewById)(o,l.FIRST_AXES_VIEW),p=Object(s.findViewById)(o,l.SECOND_AXES_VIEW),g=Object(s.findGeometry)(f,"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(u.isHorizontal)(d)){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,d,p,g,m,o.tooltip,f,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(631),a=n(9),s=n(243),l=n(4),u=n(207),c=n(281);function h(t){var e=t.options.colorField;return Object(l.deepAssign)({options:{rawFields:["value"],tooltip:{fields:["name","value",e,"path"],formatter:function(t){return{name:t.name,value:t.value}}}}},t)}function d(t){var e=t.chart,n=t.options,r=n.color,i=n.colorField,a=n.rectStyle,s=n.hierarchyConfig,u=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(l.deepAssign)({},t,{options:{xField:"x",yField:"y",seriesField:i,rawFields:u,polygon:{color:r,style:a}}})),e.coordinate().reflect("y"),t}function f(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(l.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(u.getAdjustAppendPadding)(e.appendPadding,Object(i.get)(o,["breadCrumb","position"]))),t}function v(t){return Object(l.flow)(h,a.theme,Object(s.pattern)("rectStyle"),d,f,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 f})),n.d(e,"adaptor",(function(){return g}));var r=n(2),i=n(1),o=n(9),a=n(4),s=n(34),l=n(729),u=n(180);function c(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 h(t){var e=t.chart,n=t.options,r=n.color,i=n.nodeStyle,o=n.edgeStyle,a=n.label,c=n.tooltip,h=n.nodeState,d=n.edgeState;e.legend(!1),e.tooltip(c),e.axis(!1),e.coordinate().reflect("y");var f=Object(l.transformToViewsData)(n,e.width,e.height),p=f.nodes,g=f.edges,v=e.createView({id:u.EDGES_VIEW_ID});v.data(g),Object(s.edge)({chart:v,options:{xField:u.X_FIELD,yField:u.Y_FIELD,seriesField:u.COLOR_FIELD,edge:{color:r,style:o,shape:"arc"},tooltip:c,state:d}});var m=e.createView({id:u.NODES_VIEW_ID});return m.data(p),Object(s.polygon)({chart:m,options:{xField:u.X_FIELD,yField:u.Y_FIELD,seriesField:u.COLOR_FIELD,polygon:{color:r,style:i},label:a,tooltip:c,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;return"boolean"==typeof n?e.animate(n):e.animate(!0),Object(r.__spreadArrays)(e.views[0].geometries,e.views[1].geometries).forEach((function(t){t.animate(n)})),t}function f(t){var e=t.chart;return t.options.nodeDraggable?e.interaction("sankey-node-draggable"):e.removeInteraction("sankey-node-draggable"),t}function p(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||[]),l=Object(a.findViewById)(e,u.NODES_VIEW_ID),c=Object(a.findViewById)(e,u.EDGES_VIEW_ID);return o.forEach((function(t){!1===(null==t?void 0:t.enable)?l.removeInteraction(t.type):l.interaction(t.type,t.cfg||{})})),s.forEach((function(t){!1===(null==t?void 0:t.enable)?c.removeInteraction(t.type):c.interaction(t.type,t.cfg||{})})),t}function g(t){return Object(a.flow)(c,h,p,f,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 l})),n.d(e,"sankeyLayout",(function(){return u}));var r=n(1),i=n(414),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 l(t){return Object(r.assign)({},a,t)}function u(t,e){var n=l(t),r=n.nodeId,o=n.nodeSort,a=n.nodeAlign,u=n.nodeWidth,c=n.nodePadding,h=n.nodeDepth,d=Object(i.sankey)().nodeSort(o).nodeWidth(u).nodePadding(c).nodeDepth(h).nodeAlign(s(a)).extent([[0,0],[1,1]]).nodeId(r)(e);return{nodes:d.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:d.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),l=o(t,s,e,n),u={};return s.forEach((function(t){u[t]=0})),s.forEach((function(t){-1!=u[t]&&function t(e){u[e]=1,s.forEach((function(n){if(0!=l[e][n])if(1==u[n])a.push(e+"_"+n);else{if(-1==u[n])return;t(n)}})),u[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 l}));var r=n(2),i=n(15),o=n(1),a=n(4),s=n(180),l=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 l=s.getModel().data,u=a.getOptions().data,c=a.getCoordinate(),h={x:n/c.getWidth(),y:i/c.getHeight()},d=Object(r.__assign)(Object(r.__assign)({},l),{x:l.x.map((function(t){return t+h.x})),y:l.y.map((function(t){return t+h.y}))}),f=Object(r.__spreadArrays)(u);f[this.currentElementIdx]=d,a.data(f);var p=l.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 b}));var r=n(2),i=n(1),o=n(9),a=n(4),s=n(34),l=n(1689),u=n(282);function c(t){var e=t.options,n=e.data,i=e.sourceField,o=e.targetField,s=e.weightField,u=e.nodePaddingRatio,c=e.nodeWidthRatio,h=e.rawFields,d=void 0===h?[]:h,f=Object(a.transformDataToNodeLinkData)(n,i,o,s),p=Object(l.chordLayout)({weight:!0,nodePaddingRatio:u,nodeWidthRatio:c},f),g=p.nodes,v=p.links,m=g.map((function(t){return Object(r.__assign)(Object(r.__assign)({},Object(a.pick)(t,Object(r.__spreadArrays)(["id","x","y","name"],d))),{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(a.pick)(t,Object(r.__spreadArrays)(["x","y","value"],d))),{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 h(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 d(t){return t.chart.axis(!1),t}function f(t){return t.chart.legend(!1),t}function p(t){var e=t.chart,n=t.options.tooltip;return e.tooltip(n),t}function g(t){return t.chart.coordinate("polar").reflect("y"),t}function v(t){var e=t.chart,n=t.options,r=t.ext.chordData.nodesData,i=n.nodeStyle,o=n.label,a=n.tooltip,l=e.createView();return l.data(r),Object(s.polygon)({chart:l,options:{xField:u.X_FIELD,yField:u.Y_FIELD,seriesField:u.NODE_COLOR_FIELD,polygon:{style:i},label:o,tooltip:a}}),t}function m(t){var e=t.chart,n=t.options,r=t.ext.chordData.edgesData,i=n.edgeStyle,o=n.tooltip,a=e.createView();a.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(s.edge)({chart:a,options:l}),t}function y(t){var e=t.chart,n=t.options.animation;return"boolean"==typeof n?e.animate(n):e.animate(!0),Object(i.each)(Object(a.getAllGeometriesRecursively)(e),(function(t){t.animate(n)})),t}function b(t){return Object(a.flow)(o.theme,c,g,h,d,f,p,m,v,o.interaction,o.state,y)(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 l=n.minX=i+a,u=n.maxX=n.minX+n.width,c=n.minY=e.y-o/2,h=n.maxY=c+o;n.x=[l,u,u,l],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 l=i[r],u=n.sourceWeight(e),c=a.minX+(a.value-l)/a.value*a.width,h=c+u/a.value*a.width;i[r]-=u;var d=i[o],f=n.targetWeight(e),p=s.minX+(s.value-d)/s.value*s.width,g=p+f/s.value*s.width;i[o]-=f;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(630),a=n(9),s=n(4),l=n(207),u=n(570),c=n(730);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 d(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(l.getAdjustAppendPadding)(n.appendPadding,Object(i.get)(s,["breadCrumb","position"]));c=Object(l.resolveAllPadding)([h,a])}var d=Object(u.resolvePaddingForCircle)(o,c,r).finalPadding;return n.padding=d,n.appendPadding=0,t}function f(t){var e=t.chart,n=t.options,i=e.padding,a=e.appendPadding,l=n.color,h=n.colorField,d=n.pointStyle,f=n.hierarchyConfig,p=n.sizeField,g=n.rawFields,v=void 0===g?[]:g,m=n.drilldown,y=Object(u.transformData)({data:n.data,hierarchyConfig:f,enableDrillDown:null==m?void 0:m.enabled,rawFields:v});e.data(y);var b=e.viewBBox,_=Object(u.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:l,style:d,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:u.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,d,a.theme,p,f,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 l}));var r=n(822),i=n(306),o=n(1),a=n(197),s={field:"value",as:["x","y","r"],sort:function(t,e){return e.value-t.value}};function l(t,e){var n,l=(e=Object(o.assign)({},s,e)).as;if(!Object(o.isArray)(l)||3!==l.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 u=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=l[0],h=l[1],d=l[2];return u.each((function(t){t[c]=t.x,t[h]=t.y,t[d]=t.r})),Object(a.getAllNodes)(u)}},function(t,e,n){"use strict";n.r(e),n.d(e,"slider",(function(){return f})),n.d(e,"adaptor",(function(){return p}));var r=n(2),i=n(1),o=n(102),a=n(9),s=n(26),l=n(134),u=n(4),c=n(558);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,d=t.interactions,f=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(u.pick)(t,l.AXIS_META_CONFIG_KEYS)})),m=Object(u.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)(d,(function(t){!1===t.enable?v.removeInteraction(t.type):v.interaction(t.type,t.cfg)})),Object(i.each)(f,(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 d(t){var e=t.chart,n=t.options,o=n.plots,a=n.data,l=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,d=a.tooltip;if(h)Object(c.execPlotAdaptor)(n,e,Object(r.__assign)(Object(r.__assign)({},a),{data:l}));else{var f=e.createView(Object(r.__assign)({region:i},Object(u.pick)(a,s.PLOT_CONTAINER_OPTIONS)));d&&f.interaction("tooltip"),Object(c.execPlotAdaptor)(n,f,Object(r.__assign)({data:l},a))}})),t}function f(t){var e=t.chart,n=t.options;return e.option("slider",n.slider),t}function p(t){return Object(u.flow)(a.animation,h,d,a.interaction,a.animation,a.theme,a.tooltip,f,Object(a.annotation)())(t)}},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(9),a=n(134),s=n(4),l=n(558),u=n(1694);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(u.execViewAdaptor)(t,n);else{var r=n,i=r.options;i.tooltip&&t.interaction("tooltip"),Object(l.execPlotAdaptor)(r.type,t,i)}}})),t}function h(t){var e=t.chart,n=t.options,o=n.axes,l=n.meta,u=n.tooltip,c=n.coordinate,h=n.theme,d=n.legend,f=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)({},l,g),e.scale(g),e.coordinate(c),o?Object(i.each)(o,(function(t,n){e.axis(n,t)})):e.axis(!1),u?(e.interaction("tooltip"),e.tooltip(u)):!1===u&&e.removeInteraction("tooltip"),e.legend(d),h&&e.theme(h),Object(i.each)(f,(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 d(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 l}));var r=n(2),i=n(1),o=n(102),a=n(134),s=n(4);function l(t,e){var n=e.data,l=e.coordinate,u=e.interactions,c=e.annotations,h=e.animation,d=e.tooltip,f=e.axes,p=e.meta,g=e.geometries;n&&t.data(n);var v={};f&&Object(i.each)(f,(function(t,e){v[e]=Object(s.pick)(t,a.AXIS_META_CONFIG_KEYS)})),v=Object(s.deepAssign)({},p,v),t.scale(v),l&&t.coordinate(l),!1===f?t.axis(!1):Object(i.each)(f,(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)(u,(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))})),"boolean"==typeof h?t.animate(!1):(t.animate(!0),Object(i.each)(t.geometries,(function(t){t.animate(h)}))),d?(t.interaction("tooltip"),t.tooltip(d)):!1===d&&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 Q}));var r,i,o,a,s,l,u,c,h,d,f,p=n(403),g=n.n(p),v=n(157),m=n.n(v),y=n(210),b=n.n(y),_=n(99),x=n.n(_),w=n(72),O=n.n(w),S=n(45),C=n.n(S),E=n(11),T=n.n(E),M=n(12),A=n.n(M),I=n(3),j=n.n(I),k=n(42),P=n.n(k),L=(n(182),n(63)),D=n.n(L),R=n(731),N=n.n(R),F=n(67),B=n(17),z=n(16),V=n(21),U=(n(86),n(300)),G=n(491),H=n(208),W=n(885),Y=n(1745),$=["id","style","minZoom","maxZoom","token","mapInstance","plugin"];function X(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?X(Object(n),!0).forEach((function(e){j()(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):X(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,J=[],Q=(r=Object(V.injectable)(),i=Object(V.inject)(F.TYPES.IGlobalConfigService),o=Object(V.inject)(F.TYPES.MapConfig),a=Object(V.inject)(F.TYPES.ICoordinateSystemService),s=Object(V.inject)(F.TYPES.IEventEmitter),r((u=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",d,this),C()(this,"eventEmitter",f,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,l=n.rotation,u=n.aspect,c=n.position,h=e.getCenter(),d=h.lng,f=h.lat;if(e.emit("mapchange"),e.cameraChangedCallback){e.viewport.syncWithMapCamera({aspect:u,bearing:360-l,far:o,fov:r,cameraHeight:a,near:i,pitch:s,zoom:e.map.getZoom()-1,center:[d,f],offsetOrigin:[c.x,c.y]});var p=e.config.offsetZoom,g=void 0===p?12:p;e.viewport.getZoom()>g?e.coordinateSystemService.setCoordinateSystem(F.CoordinateSystem.P20_OFFSET):e.coordinateSystemService.setCoordinateSystem(F.CoordinateSystem.P20),e.cameraChangedCallback(e.viewport)}}))}var e;return A()(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=B.DOM.create("div","l7-marker-container",e)}}},{key:"getMarkerContainer",value:function(){return this.markerContainer}},{key:"on",value:function(t,e){-1!==F.MapServiceEvent.indexOf(t)?this.eventEmitter.on(t,e):this.map.on(t,e)}},{key:"off",value:function(t,e){-1!==F.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()(D.a.mark((function t(){var e,n,r,i,o,a,s,l,u,c,h,d,f,p,g=this;return D.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,l=void 0===s?18:s,u=e.token,c=void 0===u?"15cd8a57710d40c9b7c0e3cc120f1200":u,h=e.mapInstance,d=e.plugin,f=void 0===d?[]:d,p=b()(e,$),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,l],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():J.push(e):("15cd8a57710d40c9b7c0e3cc120f1200"===c&&console.warn(g.configService.getSceneWarninfo("MapToken")),K=!0,f.push("Map3D"),N.a.load({key:c,version:"1.4.15",plugins:f}).then((function(t){e(),J.length&&(J.forEach((function(t){return t()})),J=[])})).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),l=O()(s,2),u=l[0],c=l[1];return Math.sqrt(Math.pow(o-u,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()(u.prototype,"configService",[i],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),h=P()(u.prototype,"config",[o],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),d=P()(u.prototype,"coordinateSystemService",[a],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),f=P()(u.prototype,"eventEmitter",[s],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),l=u))||l)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1962);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 M}));var r,i=n(11),o=n.n(i),a=n(12),s=n.n(a),l=n(3),u=n.n(l),c=n(17),h=n(21),d=n(1709),f=n.n(d),p=(n(86),n(738));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){u()(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 M=Object(h.injectable)()(r=function(){function t(){o()(this,t),u()(this,"fontAtlas",void 0),u()(this,"iconFontMap",void 0),u()(this,"iconFontGlyphs",{}),u()(this,"fontOptions",void 0),u()(this,"key",void 0),u()(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,l=r.sdf,u=r.radius,h=r.cutoff,d=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),l){var C,M=new f.a(a,s,u,h,i,o),A=m.getImageData(0,0,M.size,M.size),I=g(e);try{for(I.s();!(C=I.n()).done;){var j=C.value;if(d){var k=String.fromCharCode(parseInt(j.replace("&#x","").replace(";",""),16));T(M.draw(k),A)}else T(M.draw(j),A);m.putImageData(A,_[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 D=P.value;m.fillText(D,_[D].x,_[D].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(11),i=n.n(r),o=n(12),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(440),i=n.n(r),o=n(11),a=n.n(o),s=n(12),l=n.n(s),u=n(3),c=n.n(u),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 l()(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 l})),n.d(e,"navigator",(function(){return f}));var r,i,o,a,s=n(216),l="undefined"!=typeof my&&!!my&&"function"==typeof my.showToast&&!0!==my.isFRM;if(l){var u=my.getSystemInfoSync();r=u.system,i=u.platform,o=u.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",d="Mozilla/5.0 (".concat(h,") AppleWebKit/603.1.30 (KHTML, like Gecko) Mobile/14E8301 MicroMessenger/6.6.0 MiniGame NetType/WIFI Language/").concat(o),f={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:d}},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(11),i=n.n(r),o=n(12),a=n.n(o),s=n(3),l=n.n(s),u=n(559),c=function(){function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";i()(this,t),l()(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(u.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(18),i=n(798),o=n(1963),a=n(403);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";n.r(e),n.d(e,"default",(function(){return i}));var r=n(377);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],l=[n,a],u=[o,a],c=[o,i];return Object(r.polygon)([[s,c,u,l,s]],e.properties,{bbox:t,id:e.id})}},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,l="undefined"!=typeof my&&!!my&&"function"==typeof my.showToast&&!0!==my.isFRM;l?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=l?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 l=0;l<n;l++)a(t,l*e,1,e,r,i,o)}function a(t,e,n,i,o,a,s){var l,u,c,h;for(a[0]=0,s[0]=-r,s[1]=r,l=0;l<i;l++)o[l]=t[e+l*n];for(l=1,u=0,c=0;l<i;l++){do{h=a[u],c=(o[l]-o[h]+l*l-h*h)/(l-h)/2}while(c<=s[u]&&--u>-1);a[++u]=l,s[u]=c,s[u+1]=r}for(l=0,u=0;l<i;l++){for(;s[u+1]<l;)u++;h=a[u],t[e+l*n]=o[h]+(l-h)*(l-h)}}i.prototype._draw=function(t,e){var n,i,a,s,l,u,c,h,d,f=this.ctx.measureText(t),p=f.width,g=2*this.buffer;e&&this.useMetrics?(l=Math.floor(f.actualBoundingBoxAscent),h=this.buffer+Math.ceil(f.actualBoundingBoxAscent),u=this.buffer,c=this.buffer,n=(i=Math.min(this.size,Math.ceil(f.actualBoundingBoxRight-f.actualBoundingBoxLeft)))+g,a=(s=Math.min(this.size-u,Math.ceil(f.actualBoundingBoxAscent+f.actualBoundingBoxDescent)))+g,this.ctx.textBaseline="alphabetic"):(n=i=this.size,a=s=this.size,l=19*this.fontSize/24,u=c=0,h=this.middle,this.ctx.textBaseline="middle"),i&&s&&(this.ctx.clearRect(c,u,i,s),this.ctx.fillText(t,this.buffer,h),d=this.ctx.getImageData(c,u,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 l=(e-i)/2,u=0;u<o;u++)for(var c=0;c<i;c++){var h=(u+l)*e+c+l,d=t.data[4*(u*i+c)+3]/255;if(1===d)a[h]=0,s[h]=r;else if(0===d)a[h]=r,s[h]=0;else{var f=Math.max(0,.5-d),p=Math.max(0,d-.5);a[h]=f*f,s[h]=p*p}}}(d,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 l=Math.sqrt(r[s])-Math.sqrt(i[s]);t[s]=Math.round(255-255*(l/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:l,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(11),o=n.n(i),a=n(12),s=n.n(a),l=n(8),u=n.n(l),c=n(30),h=n.n(c),d=n(31),f=n.n(d),p=n(18),g=n.n(p),v=n(3),m=n.n(v),y=n(17),b=n(228),_=n(21),x=(n(86),n(738));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 f()(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()(u()(t),"canvasHeight",128),m()(u()(t),"texture",void 0),m()(u()(t),"canvas",void 0),m()(u()(t),"iconData",void 0),m()(u()(t),"iconMap",void 0),m()(u()(t),"ctx",void 0),m()(u()(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,l=n.height,u=void 0===l?64:l,c=Math.max(s,u)/64,h=u/c,d=s/c;o&&t.ctx.drawImage(o,r+(64-d)/2,i+(64-h)/2,d,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(72),o=n.n(i),a=n(11),s=n.n(a),l=n(12),u=n.n(l),c=n(3),h=n.n(c),d=n(16),f=n(21),p=(n(86),Object(f.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 u()(t,[{key:"init",value:function(){}},{key:"update",value:function(t){this.viewport=t,this.viewMatrixInverse=d.mat4.create(),d.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=d.mat4.fromTranslation(d.mat4.create(),[t,e,0]);this.jitteredProjectionMatrix=d.mat4.multiply(d.mat4.create(),n,this.viewport.getProjectionMatrix()),this.jitteredViewProjectionMatrix=d.mat4.multiply(d.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(11),o=n.n(i),a=n(12),s=n.n(a),l=n(3),u=n.n(l),c=n(17),h=n(21),d=(n(86),n(28));function f(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),u()(this,"container",void 0),u()(this,"controlCorners",void 0),u()(this,"controlContainer",void 0),u()(this,"scene",void 0),u()(this,"mapsService",void 0),u()(this,"controls",[]),u()(this,"unAddControls",[])}return s()(t,[{key:"init",value:function(t,e){this.container=t.container,this.scene=e,this.mapsService=e.get(d.TYPES.IMapService),this.initControlPos()}},{key:"addControl",value:function(t,e){e.get(d.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=f(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 d}));var r,i=n(11),o=n.n(i),a=n(12),s=n.n(a),l=n(3),u=n.n(l),c=n(21),h=(n(86),n(28)),d=Object(c.injectable)()(r=function(){function t(){o()(this,t),u()(this,"container",void 0),u()(this,"scene",void 0),u()(this,"mapsService",void 0),u()(this,"markers",[]),u()(this,"markerLayers",[]),u()(this,"unAddMarkers",[]),u()(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 d}));var r,i=n(11),o=n.n(i),a=n(12),s=n.n(a),l=n(3),u=n.n(l),c=n(21),h=(n(86),n(28)),d=Object(c.injectable)()(r=function(){function t(){o()(this,t),u()(this,"scene",void 0),u()(this,"popup",void 0),u()(this,"mapsService",void 0),u()(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(11),o=n.n(i),a=n(12),s=n.n(a),l=n(3),u=n.n(l),c=n(96),h=n.n(c),d=n(21),f=(n(86),n(1716));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){u()(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(d.injectable)()(r=function(){function t(){o()(this,t),u()(this,"sceneConfigCache",{}),u()(this,"layerConfigCache",{})}return s()(t,[{key:"getSceneConfig",value:function(t){return this.sceneConfigCache[t]}},{key:"getSceneWarninfo",value:function(t){return f.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,l=n(45),u=n.n(l),c=n(11),h=n.n(c),d=n(12),f=n.n(d),p=n(3),g=n.n(p),v=n(42),m=n.n(v),y=(n(182),n(16)),b=n(21),_=(n(86),n(28)),x=n(881),w=n(404),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),u()(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 f()(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,l=this.cameraService.getViewMatrix(),u=this.cameraService.getProjectionMatrix(),c=y.mat4.multiply([],u,l),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),l=this.cameraService.getViewMatrixUncentered()||l,c=y.mat4.multiply([],u,l),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 R}));var r,i,o,a,s,l=n(45),u=n.n(l),c=n(11),h=n.n(c),d=n(12),f=n.n(d),p=n(8),g=n.n(p),v=n(30),m=n.n(v),y=n(31),b=n.n(y),_=n(18),x=n.n(_),w=n(3),O=n.n(w),S=n(42),C=n.n(S),E=(n(182),n(17)),T=n(228),M=n.n(T),A=n(21),I=n(500),j=n.n(I),k=(n(86),n(28)),P=n(143);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 D={panstart:"dragstart",panmove:"dragging",panend:"dragend",pancancel:"dragcancel"},R=(r=Object(A.injectable)(),i=Object(A.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),u()(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=D[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 l=t.mapService.containerToLngLat([n,r]);if("click"!==i)"touch"!==i?"click"!==i&&"dblclick"!==i&&t.emit(P.InteractionEvent.Hover,{x:n,y:r,lngLat:l,type:i,target:e}):t.isDoubleTap(n,r,l);else{if(!E.isMini&&"ontouchstart"in document.documentElement==!0)return;t.isDoubleTap(n,r,l)}})),t}return f()(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}(M.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,l,u,c,h,d,f,p,g,v=n(72),m=n.n(v),y=n(99),b=n.n(y),_=n(45),x=n.n(_),w=n(11),O=n.n(w),S=n(12),C=n.n(S),E=n(3),T=n.n(E),M=n(42),A=n.n(M),I=(n(182),n(63)),j=n.n(I),k=n(17),P=n(21),L=(n(86),n(28)),D=n(739),R=n(143),N=n(85);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 B(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){T()(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 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),l=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",d,this),x()(this,"configService",f,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,"pickedLayers",[]),T()(this,"pickFromPickingFBO",(function(t,n){var r,i=n.x,o=n.y,a=n.lngLat,s=n.type,l=n.target,u=!1,c=e.rendererService,h=(c.getViewportSize,c.readPixels),d=c.getContainer,f=e.getContainerSize(d()),p=f.width,g=f.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:l};O&&(u=!0,t.setCurrentPickId(w),e.pickedLayers=[t],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:l,feature:null};e.triggerHoverOnLayer(t,B(B({},C),{},{type:"unpick"})),e.triggerHoverOnLayer(t,C),t.setCurrentPickId(null),e.pickedLayers=[]}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 u}))}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(R.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],l=o[2],u=o[3],c=this.rendererService,h=(c.getViewportSize,c.readPixels),d=c.getContainer,f=this.getContainerSize(d()),p=f.width,g=f.height;if(p*=k.DOM.DPR,g*=k.DOM.DPR,a>(p-1)*k.DOM.DPR/this.pickBufferScale||l<0||s>(g-1)*k.DOM.DPR/this.pickBufferScale||u<0)return[];var v=Math.min(p/this.pickBufferScale,l)-a,y=Math.min(g/this.pickBufferScale,u)-s;n=h({x:a,y:Math.floor(g/this.pickBufferScale-(u+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(B(B({},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","click","mouseup"].includes(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(),o.pickedLayers.map((function(t){o.selectFeature(t,new Uint8Array([0,0,0,0]))}));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(D.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=A()(c.prototype,"mapService",[i],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),d=A()(c.prototype,"rendererService",[o],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),f=A()(c.prototype,"configService",[a],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),p=A()(c.prototype,"interactionService",[s],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),g=A()(c.prototype,"layerService",[l],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),u=c))||u)},function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return k}));var r,i,o,a,s,l,u,c,h,d=n(99),f=n.n(d),p=n(45),g=n.n(p),v=n(11),m=n.n(v),y=n(12),b=n.n(y),_=n(3),x=n.n(_),w=n(42),O=n.n(w),S=(n(182),n(63)),C=n.n(S),E=n(17),T=n(21),M=(n(86),n(28)),A=n(1721);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)(M.TYPES.IRendererService),o=Object(T.inject)(M.TYPES.IMapService),a=Object(T.inject)(M.TYPES.IGlobalConfigService),r((l=function(){function t(){m()(this,t),x()(this,"pickedLayerId",-1),x()(this,"clock",new A.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",u,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=f()(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}(),u=O()(l.prototype,"renderService",[i],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),c=O()(l.prototype,"mapService",[o],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),h=O()(l.prototype,"configService",[a],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),s=l))||s)},function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return u}));var r=n(11),i=n.n(r),o=n(12),a=n.n(o),s=n(3),l=n.n(s),u=function(){function t(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];i()(this,t),l()(this,"autoStart",void 0),l()(this,"startTime",0),l()(this,"oldTime",0),l()(this,"running",!1),l()(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,l,u=n(210),c=n.n(u),h=n(157),d=n.n(h),f=n(45),p=n.n(f),g=n(11),v=n.n(g),m=n(12),y=n.n(m),b=n(42),_=n.n(b),x=(n(182),n(3)),w=n.n(x),O=n(21),S=(n(86),n(28)),C=n(85),E=n(1723),T=["buffer","update","name"],M=["buffer","update","name"];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 I(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){w()(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 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",l,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,l=o.size,u=void 0===l?0:l,c=j[s.type||C.gl.FLOAT];if(a){var h=this.featureLayout,f=h.elements,p=h.sizePerElement,g=f.slice(n,r);if(!g.length)return;var v=g[0].offset,m=v*u*c,y=g.map((function(t,n){for(var r=t.featureIdx,i=t.vertices,o=t.normals,s=i.length/p,l=[],u=0;u<s;u++){var c=o?o.slice(3*u,3*u+3):[];l.push.apply(l,d()(a(e[r],r,i.slice(u*p,u*p+p),n,c)))}return l})).reduce((function(t,e){return t.push.apply(t,d()(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 l=r.triangulation(t,n),u=l.indices,c=l.vertices,h=l.normals,f=l.size,p=l.indexes;u.forEach((function(t){a.push(t+o)})),s=f;var g=c.length/f;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*f,n*f+f),a=0;p&&void 0!==p[n]&&(a=p[n]),i.forEach((function(i,s){var l;i&&i.update&&(l=i.buffer.data).push.apply(l,d()(i.update(t,e,o,n,r,a)))}))},m=0;m<g;m++)v(m)}));var l=this.rendererService,u=l.createAttribute,h=l.createBuffer,f=l.createElements,p={};i.forEach((function(t,e){if(t){var n=t.buffer,i=(t.update,t.name,c()(t,T)),o=u(I({buffer:h(n)},i));p[t.name||""]=o,r.attributes[e].vertexAttribute=o}}));var g=f({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),l=s.indices,u=s.vertices,c=s.normals,h=s.size,f=s.indexes;l.forEach((function(t){o.push(t+i)})),a=h;var p=u.length/h;n.featureLayout.sizePerElement=a,n.featureLayout.elements.push({featureIdx:e,vertices:u,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=u.slice(n*h,n*h+h),a=0;f&&void 0!==f[n]&&(a=f[n]),r.forEach((function(r,s){var l;r&&r.update&&(l=r.buffer.data).push.apply(l,d()(r.update(t,e,o,n,i,a)))}))},v=0;v<p;v++)g(v)}));var s=this.rendererService,l=s.createAttribute,u=s.createBuffer,h={};return r.forEach((function(t,e){if(t){var r=t.buffer,i=(t.update,t.name,c()(t,M)),o=l(I({buffer:u(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}(),l=_()(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 f}));var r=n(157),i=n.n(r),o=n(11),a=n.n(o),s=n(12),l=n.n(s),u=n(3),c=n.n(u),h=n(253),d=n.n(h),f=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 l()(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(!d()(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,l,u,c,h,d,f,p,g,v,m,y,b,_,x,w,O,S,C,E,T,M,A,I,j,k,P,L,D,R=n(99),N=n.n(R),F=n(45),B=n.n(F),z=n(11),V=n.n(z),U=n(12),G=n.n(U),H=n(8),W=n.n(H),Y=n(30),$=n.n(Y),X=n(31),q=n.n(X),Z=n(18),K=n.n(Z),J=n(3),Q=n.n(J),tt=n(42),et=n.n(tt),nt=(n(182),n(63)),rt=n.n(nt),it=n(1725),ot=n(17),at=n(882),st=n.n(at),lt=n(228),ut=n(21),ct=(n(86),n(28)),ht=n(739),dt=n(143);function ft(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(ut.injectable)(),i=Object(ut.inject)(ct.TYPES.SceneID),o=Object(ut.inject)(ct.TYPES.IIconService),a=Object(ut.inject)(ct.TYPES.IFontService),s=Object(ut.inject)(ct.TYPES.IControlService),l=Object(ut.inject)(ct.TYPES.IGlobalConfigService),u=Object(ut.inject)(ct.TYPES.IMapService),c=Object(ut.inject)(ct.TYPES.ICoordinateSystemService),h=Object(ut.inject)(ct.TYPES.IRendererService),d=Object(ut.inject)(ct.TYPES.ILayerService),f=Object(ut.inject)(ct.TYPES.ICameraService),p=Object(ut.inject)(ct.TYPES.IInteractionService),g=Object(ut.inject)(ct.TYPES.IPickingService),v=Object(ut.inject)(ct.TYPES.IShaderModuleService),m=Object(ut.inject)(ct.TYPES.IMarkerService),y=Object(ut.inject)(ct.TYPES.IPopupService),r((_=function(t){$()(r,t);var e,n=ft(r);function r(){var t;return V()(this,r),t=n.call(this),Q()(W()(t),"destroyed",!1),Q()(W()(t),"loaded",!1),Q()(W()(t),"loadFont",!1),Q()(W()(t),"fontFamily",""),B()(W()(t),"id",x,W()(t)),B()(W()(t),"iconService",w,W()(t)),B()(W()(t),"fontService",O,W()(t)),B()(W()(t),"controlService",S,W()(t)),B()(W()(t),"configService",C,W()(t)),B()(W()(t),"map",E,W()(t)),B()(W()(t),"coordinateSystemService",T,W()(t)),B()(W()(t),"rendererService",M,W()(t)),B()(W()(t),"layerService",A,W()(t)),B()(W()(t),"cameraService",I,W()(t)),B()(W()(t),"interactionService",j,W()(t)),B()(W()(t),"pickingService",k,W()(t)),B()(W()(t),"shaderModuleService",P,W()(t)),B()(W()(t),"markerService",L,W()(t)),B()(W()(t),"popupService",D,W()(t)),Q()(W()(t),"inited",!1),Q()(W()(t),"initPromise",void 0),Q()(W()(t),"rendering",!1),Q()(W()(t),"$container",void 0),Q()(W()(t),"canvas",void 0),Q()(W()(t),"markerContainer",void 0),Q()(W()(t),"hooks",void 0),Q()(W()(t),"handleWindowResized",(function(){t.emit("resize"),t.$container&&(t.initContainer(),ot.DOM.triggerResize(),t.coordinateSystemService.needRefresh=!0,t.render())})),Q()(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(dt.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(dt.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}(lt.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",[l],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),E=et()(_.prototype,"map",[u],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),T=et()(_.prototype,"coordinateSystemService",[c],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),M=et()(_.prototype,"rendererService",[h],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),A=et()(_.prototype,"layerService",[d],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),I=et()(_.prototype,"cameraService",[f],{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}),D=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){
|
||
/*! *****************************************************************************
|
||
Copyright (c) Microsoft Corporation. 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.
|
||
***************************************************************************** */
|
||
function i(t,e,n,r){return new(n||(n=Promise))((function(i,o){function a(t){try{l(r.next(t))}catch(t){o(t)}}function s(t){try{l(r.throw(t))}catch(t){o(t)}}function l(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}l((r=r.apply(t,e||[])).next())}))}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){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function l(t,e){return t(e={exports:{}},e.exports),e.exports}n.d(e,"AsyncParallelHook",(function(){return A})),n.d(e,"SyncBailHook",(function(){return k})),n.d(e,"SyncHook",(function(){return E})),n.d(e,"SyncWaterfallHook",(function(){return j}));var u=l((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}));s(u);var c=l((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}));s(c);var h=l((function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.fallback=s,n.wrap=l;var i,o=n.hasSetImmediate="function"==typeof t&&t,a=n.hasNextTick="object"==typeof r&&"function"==typeof r.nextTick;function s(t){setTimeout(t,0)}function l(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)}))}}i=o?t:a?r.nextTick:s,n.default=l(i)}));s(h);h.fallback,h.wrap,h.hasSetImmediate,h.hasNextTick;var d=l((function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){if((0,f.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 o(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 o(r,n);n(null,r)}))};var n=i(c),r=i(h);function i(t){return t&&t.__esModule?t:{default:t}}function o(t,e){return t.then((function(t){a(e,null,t)}),(function(t){a(e,t&&t.message?t:new Error(t))}))}function a(t,e,n){try{t(e,n)}catch(t){(0,r.default)((function(t){throw t}),t)}}t.exports=e.default}));s(d);var f=l((function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.isAsyncIterable=e.isAsyncGenerator=e.isAsync=void 0;var n,r=(n=d)&&n.__esModule?n:{default:n};function i(t){return"AsyncFunction"===t[Symbol.toStringTag]}e.default=function(t){if("function"!=typeof t)throw new Error("expected a function");return i(t)?(0,r.default)(t):t},e.isAsync=i,e.isAsyncGenerator=function(t){return"AsyncGenerator"===t[Symbol.toStringTag]},e.isAsyncIterable=function(t){return"function"==typeof t[Symbol.asyncIterator]}}));s(f);f.isAsyncIterable,f.isAsyncGenerator,f.isAsync;var p=l((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");function n(){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)}))}return Object.defineProperty(n,"name",{configurable:!0,value:"awaitable("+t.name+")"}),n},t.exports=e.default}));s(p);var g=l((function(t,e){Object.defineProperty(e,"__esModule",{value:!0});var n=o(u),r=o(f),i=o(p);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}));s(g);var v=l((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}));s(v);var m=l((function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){return t[Symbol.iterator]&&t[Symbol.iterator]()},t.exports=e.default}));s(m);var y=l((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):(i=t,o=i?Object.keys(i):[],a=-1,s=o.length,function(){var t=o[++a];return a<s?{value:i[t],key:t}:null});var i,o,a,s};var n=i(u),r=i(m);function i(t){return t&&t.__esModule?t:{default:t}}t.exports=e.default}));s(y);var b=l((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}));s(b);var _=l((function(t,e){Object.defineProperty(e,"__esModule",{value:!0});e.default={},t.exports=e.default}));s(_);var x=l((function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e,n,i){var o=!1,a=!1,s=!1,l=0,u=0;function c(){l>=e||s||o||(s=!0,t.next().then((function(t){var e=t.value,r=t.done;if(!a&&!o){if(s=!1,r)return o=!0,void(l<=0&&i(null));l++,n(e,u,h),u++,c()}})).catch(d))}function h(t,e){if(l-=1,!a)return t?d(t):!1===t?(o=!0,void(a=!0)):e===r.default||o&&l<=0?(o=!0,i(null)):void c()}function d(t){a||(s=!1,o=!0,i(t))}c()};var n,r=(n=_)&&n.__esModule?n:{default:n};t.exports=e.default}));s(x);var w=l((function(t,e){Object.defineProperty(e,"__esModule",{value:!0});var n=s(v),r=s(y),i=s(b),o=s(x),a=s(_);function s(t){return t&&t.__esModule?t:{default:t}}e.default=function(t){return function(e,s,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,f.isAsyncGenerator)(e))return(0,o.default)(e,t,s,l);if((0,f.isAsyncIterable)(e))return(0,o.default)(e[Symbol.asyncIterator](),t,s,l);var u=(0,r.default)(e),c=!1,h=!1,d=0,p=!1;function g(t,e){if(!h)if(d-=1,t)c=!0,l(t);else if(!1===t)c=!0,h=!0;else{if(e===a.default||c&&d<=0)return c=!0,l(null);p||v()}}function v(){for(p=!0;d<t&&!c;){var e=u();if(null===e)return c=!0,void(d<=0&&l(null));d+=1,s(e.value,e.key,(0,i.default)(g))}p=!1}v()}},t.exports=e.default}));s(w);var O=l((function(t,e){Object.defineProperty(e,"__esModule",{value:!0});var n=o(w),r=o(f),i=o(p);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}));s(O);var S=l((function(t,e){Object.defineProperty(e,"__esModule",{value:!0});var n=i(O),r=i(p);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}));s(S);var C=s(l((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(g),r=i(S);function i(t){return t&&t.__esModule?t:{default:t}}t.exports=e.default}))),E=function(){function t(){for(var t=arguments,e=[],n=0;n<arguments.length;n++)e[n]=t[n];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,C(this.tasks)},t.prototype.tap=function(t,e){var n=this;this.tasks.push((function(r){e.apply(void 0,function(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(a(arguments[e]));return t}(n.args)),r(null,t)}))},t}(),T=l((function(t,e){Object.defineProperty(e,"__esModule",{value:!0});var n=c(u),r=c(_),i=c(O),o=c(v),a=c(b),s=c(f),l=c(p);function c(t){return t&&t.__esModule?t:{default:t}}function h(t,e,n){n=(0,o.default)(n);var i=0,s=0,l=t.length,u=!1;function c(t,e){!1===t&&(u=!0),!0!==u&&(t?n(t):++s!==l&&e!==r.default||n(null))}for(0===l&&n(null);i<l;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,l.default)((function(t,e,r){return((0,n.default)(t)?h:d)(t,(0,s.default)(e),r)}),3),t.exports=e.default}));s(T);var M=s(l((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(T),r=i(g);function i(t){return t&&t.__esModule?t:{default:t}}t.exports=e.default}))),A=function(){function t(){for(var t=arguments,e=[],n=0;n<arguments.length;n++)e[n]=t[n];this.tasks=[]}return t.prototype.promise=function(){for(var t=arguments,e=[],n=0;n<arguments.length;n++)e[n]=t[n];return M(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}(),I=s(l((function(t,e){Object.defineProperty(e,"__esModule",{value:!0});var n=a(v),r=a(b),i=a(f),o=a(p);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}))),j=function(){function t(){for(var t=arguments,e=[],n=0;n<arguments.length;n++)e[n]=t[n];this.tasks=[]}return t.prototype.call=function(){for(var t=arguments,e=[],n=0;n<arguments.length;n++)e[n]=t[n];return I(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()&&null,t)}))},t}(),k=function(){function t(){for(var t=arguments,e=[],n=0;n<arguments.length;n++)e[n]=t[n];this.tasks=[]}return t.prototype.call=function(){for(var t=arguments,e=[],n=0;n<arguments.length;n++)e[n]=t[n];return C(this.tasks)},t.prototype.tap=function(t,e){this.tasks.push((function(n){n(e(),t)}))},t}()}.call(this,n(893).setImmediate,n(416))},function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return b}));var r,i=n(11),o=n.n(i),a=n(12),s=n.n(a),l=n(3),u=n.n(l),c=n(1727),h=n.n(c),d=n(21),f=(n(86),n(883));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){u()(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(d.injectable)()(r=function(){function t(){o()(this,t),u()(this,"moduleCache",{}),u()(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(f.extractUniforms)(n),a=o.content,s=o.uniforms,l=Object(f.extractUniforms)(r),u=l.content,c=l.uniforms;this.rawContentCache[t]={fs:u,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"),l=s.content,u=s.includeList,c=l,d=h()(a.concat(u).concat(t)).reduce((function(t,n){return g(g({},t),e.rawContentCache[n].uniforms)}),{});return m.test(l)||(c="#ifdef GL_FRAGMENT_PRECISION_HIGH\n precision highp float;\n #else\n precision mediump float;\n#endif\n"+l),this.moduleCache[t]={fs:c.trim(),uniforms:d,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(2029);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(11),o=n.n(i),a=n(12),s=n.n(a),l=n(184),u=n.n(l),c=n(30),h=n.n(c),d=n(31),f=n.n(d),p=n(18),g=n.n(p),v=n(21),m=(n(86),n(361));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 f()(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){u()(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,l=n(99),u=n.n(l),c=n(45),h=n.n(c),d=n(11),f=n.n(d),p=n(12),g=n.n(p),v=n(3),m=n.n(v),y=n(42),b=n.n(y),_=(n(182),n(63)),x=n.n(_),w=n(21),O=(n(86),n(28)),S=n(204);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(){f()(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=u()(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(72),o=n.n(i),a=n(11),s=n.n(a),l=n(12),u=n.n(l),c=n(8),h=n.n(c),d=n(184),f=n.n(d),p=n(30),g=n.n(p),v=n(31),m=n.n(v),y=n(18),b=n.n(y),_=n(3),x=n.n(_),w=n(17),O=n(21),S=(n(86),n(143)),C=n(85),E=n(204),T=n(361);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 A(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){x()(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}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,l=s.getViewportSize,u=s.readPixels,c=s.useFramebuffer,h=l(),d=h.width,f=h.height,p=t.layer.getLayerConfig(),g=p.enableHighlight,v=p.enableSelect,m=n*w.DOM.DPR,y=r*w.DOM.DPR;if(!(m>d||m<0||y>f||y<0))c(t.pickingFBO,(function(){var e;if(0!==(a=u({x:Math.round(m),y:Math.round(f-(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),l=t.layer.getSource().getFeatureById(s),c={x:n,y:r,type:o,lngLat:i,featureId:s,feature:l};l&&(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(A(A({},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 u()(n,[{key:"getType",value:function(){return E.PassType.Normal}},{key:"getName",value:function(){return"pixelPicking"}},{key:"init",value:function(t,e){f()(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,l=a.height;this.pickingFBO=o({color:i({width:s,height:l,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,l=a.height;this.alreadyInRendering=!0,this.width===s&&this.height===l||(this.pickingFBO.resize({width:s,height:l}),this.width=s,this.height=l),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(3),o=n.n(i),a=n(11),s=n.n(a),l=n(12),u=n.n(l),c=n(30),h=n.n(c),d=n(31),f=n.n(d),p=n(18),g=n.n(p),v=n(253),m=n.n(v),y=n(21),b=(n(86),n(147));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 f()(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 u()(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(2052),i=n(2053)((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(3),o=n.n(i),a=n(11),s=n.n(a),l=n(12),u=n.n(l),c=n(30),h=n.n(c),d=n(31),f=n.n(d),p=n(18),g=n.n(p),v=n(253),m=n.n(v),y=n(21),b=(n(86),n(147));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 f()(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 u()(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(3),o=n.n(i),a=n(11),s=n.n(a),l=n(12),u=n.n(l),c=n(30),h=n.n(c),d=n(31),f=n.n(d),p=n(18),g=n.n(p),v=n(253),m=n.n(v),y=n(21),b=n(147);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 f()(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 u()(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(3),o=n.n(i),a=n(11),s=n.n(a),l=n(12),u=n.n(l),c=n(30),h=n.n(c),d=n(31),f=n.n(d),p=n(18),g=n.n(p),v=n(21),m=(n(86),n(147));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 f()(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 u()(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(11),o=n.n(i),a=n(12),s=n.n(a),l=n(30),u=n.n(l),c=n(31),h=n.n(c),d=n(18),f=n.n(d),p=n(21),g=(n(86),n(147));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=f()(t);if(e){var i=f()(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){u()(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(3),o=n.n(i),a=n(11),s=n.n(a),l=n(12),u=n.n(l),c=n(30),h=n.n(c),d=n(31),f=n.n(d),p=n(18),g=n.n(p),v=n(21),m=(n(86),n(147));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 f()(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 u()(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(3),o=n.n(i),a=n(11),s=n.n(a),l=n(12),u=n.n(l),c=n(30),h=n.n(c),d=n(31),f=n.n(d),p=n(18),g=n.n(p),v=n(21),m=(n(86),n(147));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 f()(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 u()(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(11),o=n.n(i),a=n(12),s=n.n(a),l=n(30),u=n.n(l),c=n(31),h=n.n(c),d=n(18),f=n.n(d),p=n(21),g=(n(86),n(147));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=f()(t);if(e){var i=f()(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){u()(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(11),o=n.n(i),a=n(12),s=n.n(a),l=n(30),u=n.n(l),c=n(31),h=n.n(c),d=n(18),f=n.n(d),p=n(21),g=(n(86),n(147));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=f()(t);if(e){var i=f()(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){u()(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,l,u=n(99),c=n.n(u),h=n(45),d=n.n(h),f=n(11),p=n.n(f),g=n(12),v=n.n(g),m=n(3),y=n.n(m),b=n(42),_=n.n(b),x=(n(182),n(63)),w=n.n(x),O=n(21),S=(n(86),n(28)),C=n(85),E=(r=Object(O.injectable)(),i=Object(O.inject)(S.TYPES.IRendererService),o=Object(O.postConstruct)(),r((s=function(){function t(){p()(this,t),d()(this,"rendererService",l,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}(),l=_()(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(11),o=n.n(i),a=n(12),s=n.n(a),l=n(184),u=n.n(l),c=n(30),h=n.n(c),d=n(31),f=n.n(d),p=n(18),g=n.n(p),v=n(21),m=(n(86),n(204)),y=n(361);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 f()(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){u()(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,l=n(45),u=n.n(l),c=n(11),h=n.n(c),d=n(12),f=n.n(d),p=n(8),g=n.n(p),v=n(184),m=n.n(v),y=n(30),b=n.n(y),_=n(31),x=n.n(_),w=n(18),O=n.n(w),S=n(3),C=n.n(S),E=n(42),T=n.n(E),M=(n(182),n(17)),A=n(21),I=(n(86),n(28)),j=n(85),k=n(204),P=n(361);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 D(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 R(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 F(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 B=1,z=(r=Object(A.injectable)(),i=Object(A.inject)(I.TYPES.IShaderModuleService),r((a=function(t){b()(n,t);var e=R(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)),u()(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 f()(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([F(a,2),F(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,l=a.height;this.sampleRenderTarget.resize({width:s,height:l}),this.prevRenderTarget.resize({width:s,height:l}),this.outputRenderTarget.resize({width:s,height:l}),this.copyRenderTarget.resize({width:s,height:l}),this.resetFrame(),this.stopAccumulating();var u=t.multiPassRenderer.getPostProcessor().getReadFBO();o(u,(function(){r({color:[0,0,0,0],depth:1,stencil:0,framebuffer:u}),t.multiPassRenderer.setRenderFlag(!1),t.render(),t.multiPassRenderer.setRenderFlag(!0)}));this.accumulatingId=B++,this.timer=M.$window.setTimeout((function(){!function n(r){e.accumulatingId&&r===e.accumulatingId&&(e.isFinished()||(e.doRender(t),M.$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,l=a.height,u=t.getLayerConfig().jitterScale,c=void 0===u?1:u,h=this.haltonSequence[this.frame%this.haltonSequence.length];this.cameraService.jitterProjectionMatrix((2*h[0]-1)/s*c,(2*h[1]-1)/l*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 d=t.getLayerConfig();o(this.outputRenderTarget,(function(){e.blendModel.draw({uniforms:{u_opacity:d.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 f=this.prevRenderTarget;this.prevRenderTarget=this.outputRenderTarget,this.outputRenderTarget=f,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,M.$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,l=s.createAttribute,u=s.createBuffer;return(0,s.createModel)(D({vs:i,fs:o,attributes:{a_Position:l({buffer:u({data:[-4,-4,4,-4,0,4],type:j.gl.FLOAT}),size:2})},uniforms:D({},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 f}));var r=n(72),i=n.n(r),o=n(11),a=n.n(o),s=n(12),l=n.n(s),u=n(3),c=n.n(u),h=n(16),d=Math.PI/180,f=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 l()(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,l=void 0===s?[0,0]:s,u=t.offsetOrigin,c=void 0===u?[0,0]:u,f=t.cameraHeight,p=void 0===f?1: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?0:x;this.zoom=n,this.center=l;var O=i*d,S=(360-a)*d;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 Q}));var r,i,o,a,s,l,u,c,h,d,f,p=n(403),g=n.n(p),v=n(210),m=n.n(v),y=n(99),b=n.n(y),_=n(72),x=n.n(_),w=n(157),O=n.n(w),S=n(45),C=n.n(S),E=n(11),T=n.n(E),M=n(12),A=n.n(M),I=n(3),j=n.n(I),k=n(42),P=n.n(k),L=(n(182),n(63)),D=n.n(L),R=n(731),N=n.n(R),F=n(67),B=n(17),z=n(16),V=n(21),U=(n(86),n(300)),G=n(491),H=n(208),W=n(886),Y=n(1747),$=["id","style","minZoom","maxZoom","token","mapInstance","plugin","version"];function X(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?X(Object(n),!0).forEach((function(e){j()(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):X(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,J=[],Q=(r=Object(V.injectable)(),i=Object(V.inject)(F.TYPES.IGlobalConfigService),o=Object(V.inject)(F.TYPES.MapConfig),a=Object(V.inject)(F.TYPES.ICoordinateSystemService),s=Object(V.inject)(F.TYPES.IEventEmitter),r((u=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",d,this),C()(this,"eventEmitter",f,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,l=n.lookAt,u=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:l,up:u,near:i,zoom:c-1,center:h,offsetOrigin:[s[0],s[1]]}),e.coordinateSystemService.setCoordinateSystem(F.CoordinateSystem.P20_2),e.cameraChangedCallback(e.viewport))}))}var e;return A()(t,[{key:"setBgColor",value:function(t){this.bgColor=t}},{key:"setCustomCoordCenter",value:function(t){this.sceneCenter=t,this.sceneCenterMKT=B.amap2Project.apply(void 0,O()(t))}},{key:"getCustomCoordCenter",value:function(){return this.sceneCenterMKT}},{key:"lngLatToCoordByLayer",value:function(t,e){var n=B.amap2Project.apply(void 0,O()(e));return this._sub(Object(B.amap2Project)(t[0],t[1]),n)}},{key:"lngLatToCoordsByLayer",value:function(t,e){var n=this;return t.map((function(t){return"number"==typeof t[0]?n.lngLatToCoordByLayer(t,e):t.map((function(t){return n.lngLatToCoordByLayer(t,e)}))}))}},{key:"lngLatToCoord",value:function(t){return this.sceneCenter||(this.map.customCoords.setCenter(t),this.setCustomCoordCenter(t)),this._sub(Object(B.amap2Project)(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=B.DOM.create("div","l7-marker-container2",e)}}}},{key:"getMarkerContainer",value:function(){return this.markerContainer}},{key:"on",value:function(t,e){-1!==F.MapServiceEvent.indexOf(t)?this.eventEmitter.on(t,e):this.map.on(t,e)}},{key:"off",value:function(t,e){-1!==F.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()(D.a.mark((function t(){var e,n,r,i,o,a,s,l,u,c,h,d,f,p,g,v,y=this;return D.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,l=void 0===s?18:s,u=e.token,c=void 0===u?"ff533602d57df6f8ab3b0fea226ae52f":u,h=e.mapInstance,d=e.plugin,f=void 0===d?[]:d,p=e.version,g=void 0===p?"2.0":p,v=m()(e,$),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,l],viewMode:"3D"},v);o.zoom&&(o.zoom+=1);var s=new AMap.Map(y.$mapContainer,o);y.map=s;var u=s.getCenter();s.customCoords.setCenter([u.lng,u.lat]),y.setCustomCoordCenter([u.lng,u.lat]),s.on("viewchange",y.handleViewChanged),setTimeout((function(){t()}),10)}};y.viewport=new Y.default,K||h?K&&window.AMap||h?e():J.push(e):("ff533602d57df6f8ab3b0fea226ae52f"===c&&console.warn(y.configService.getSceneWarninfo("MapToken")),K=!0,f.push("Map3D"),N.a.load({key:c,version:g,plugins:f}).then((function(t){e(),J.length&&(J.forEach((function(t){return t()})),J=[])})).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),l=x()(s,2),u=l[0],c=l[1];return Math.sqrt(Math.pow(o-u,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,l=e.up;this.emit("mapchange");var u=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:l,zoom:c-1,center:u,offsetOrigin:[a[0],a[1]]}),this.coordinateSystemService.setCoordinateSystem(F.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()(u.prototype,"configService",[i],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),h=P()(u.prototype,"config",[o],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),d=P()(u.prototype,"coordinateSystemService",[a],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),f=P()(u.prototype,"eventEmitter",[s],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),l=u))||l)},function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return p}));var r=n(72),i=n.n(r),o=n(157),a=n.n(o),s=n(11),l=n.n(s),u=n(12),c=n.n(u),h=n(3),d=n.n(h),f=n(16),p=function(){function t(){l()(this,t),d()(this,"projectionMatrix",f.mat4.create()),d()(this,"viewMatrix",f.mat4.create()),d()(this,"viewProjectionMatrix",f.mat4.create()),d()(this,"ViewProjectionMatrixUncentered",f.mat4.create()),d()(this,"viewUncenteredMatrix",f.mat4.create()),d()(this,"zoom",void 0),d()(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,l=t.cameraPosition,u=void 0===l?[0,0,0]:l,c=t.up,h=void 0===c?[0,1,0]:c,d=t.lookAt,p=void 0===d?[0,0,0]: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?45:x;this.zoom=n,this.center=i,f.mat4.perspective(this.projectionMatrix,w/180*Math.PI,v,y,_);var O=f.vec3.fromValues.apply(f.vec3,a()(u)),S=f.vec3.fromValues.apply(f.vec3,a()(p)),C=f.vec3.fromValues.apply(f.vec3,a()(h));f.mat4.lookAt(this.viewMatrix,O,S,C),this.viewUncenteredMatrix=f.mat4.clone(this.viewMatrix),f.mat4.translate(this.viewMatrix,this.viewMatrix,f.vec3.fromValues(-s[0],s[1],0)),f.mat4.multiply(this.viewProjectionMatrix,this.projectionMatrix,this.viewMatrix),f.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,l,u,c,h,d,f,p=n(210),g=n.n(p),v=n(99),m=n.n(v),y=n(45),b=n.n(y),_=n(11),x=n.n(_),w=n(12),O=n.n(w),S=n(3),C=n.n(S),E=n(42),T=n.n(E),M=(n(182),n(63)),A=n.n(M),I=n(67),j=n(17),k=n(16),P=n(21),L=n(501),D=n.n(L),R=(n(86),n(208)),N=n(1749),F=n(300),B=n(888),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=D.a;var G={mapmove:"move",camerachange:"move",zoomchange:"zoom",dragging:"drag"},H=0,W="pk.eyJ1IjoiMTg5Njk5NDg2MTkiLCJhIjoiY2s5OXVzdHlzMDVneDNscDVjdzVmeXl0dyJ9.81SQ5qaJS0xExYLbDZAGpQ",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((u=function(){function t(){var e=this;x()(this,t),C()(this,"version",R.Version.MAPBOX),C()(this,"map",void 0),C()(this,"simpleMapCoord",new F.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",d,this),b()(this,"eventEmitter",f,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()(A.a.mark((function t(){var e,n,r,i,o,a,s,l,u,c,h,d,f;return A.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,l=e.token,u=void 0===l?W:l,c=e.rotation,h=void 0===c?0:c,d=e.mapInstance,f=g()(e,z),this.viewport=new N.default,d||window.mapboxgl||console.error(this.configService.getSceneWarninfo("SDK")),u!==W||"blank"===s||window.mapboxgl.accessToken||d||console.warn(this.configService.getSceneWarninfo("MapToken")),d||window.mapboxgl.accessToken||(window.mapboxgl.accessToken=u),d?(this.map=d,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},f))),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 D.a.LngLat(t[0],t[1]),r=new D.a.LngLat(e[0],e[1]),i=n.distanceTo(r),o=D.a.MercatorCoordinate.fromLngLat({lng:t[0],lat:t[1]}),a=D.a.MercatorCoordinate.fromLngLat({lng:e[0],lat:e[1]}),s=o.x,l=o.y,u=a.x,c=a.y;return 4194304*Math.sqrt(Math.pow(s-u,2)+Math.pow(l-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:B.MapTheme[t]?B.MapTheme[t]:t}}]),t}(),c=T()(u.prototype,"config",[i],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),h=T()(u.prototype,"configService",[o],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),d=T()(u.prototype,"coordinateSystemService",[a],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),f=T()(u.prototype,"eventEmitter",[s],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),l=u))||l)},function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return c}));var r=n(11),i=n.n(r),o=n(12),a=n.n(o),s=n(3),l=n.n(s),u=n(765),c=function(){function t(){i()(this,t),l()(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 u.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,"default",(function(){return o}));var r=n(1751),i=n(412);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";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){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,"default",(function(){return i}));var r=n(1754);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";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";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";n.r(e),n.d(e,"default",(function(){return i}));var r=n(887);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";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(181),i=n(765),o=n(320);function a(t){var e=t.width,n=t.height,a=t.bounds,s=t.minExtent,l=void 0===s?0:s,u=t.maxZoom,c=void 0===u?24:u,h=t.padding,d=void 0===h?0:h,f=t.offset,p=void 0===f?[0,0]:f,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(d)){d={top:d,bottom:d,left:d,right:d}}else Object(o.default)(Number.isFinite(d.top)&&Number.isFinite(d.bottom)&&Number.isFinite(d.left)&&Number.isFinite(d.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]),l),Math.max(Math.abs(S[1]-O[1]),l)],E=[e-d.left-d.right-2*Math.abs(p[0]),n-d.top-d.bottom-2*Math.abs(p[1])];Object(o.default)(E[0]>0&&E[1]>0);var T=E[0]/C[0],M=E[1]/C[1],A=(d.right-d.left)/2/T,I=(d.bottom-d.top)/2/M,j=[(S[0]+O[0])/2+A,(S[1]+O[1])/2+I],k=w.unproject(j),P=w.zoom+Math.log2(Math.abs(Math.min(T,M)));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(181),i=n(740),o=n(741),a=n(283),s=n(221),l=n(135),u=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?u:o,c=e.projectionMatrix,h=void 0===c?u: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 d=Object(a.createMat4)();l.multiply(d,d,this.projectionMatrix),l.multiply(d,d,this.viewMatrix),this.viewProjectionMatrix=d;var f=Object(a.createMat4)();l.scale(f,f,[this.width/2,-this.height/2,1]),l.translate(f,f,[1,-1,0]),l.multiply(f,f,this.viewProjectionMatrix);var p=l.invert(Object(a.createMat4)(),f);if(!p)throw new Error("Pixel project matrix not invertible");this.pixelProjectionMatrix=f,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&&l.equals(e.projectionMatrix,this.projectionMatrix)&&l.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),l=Object(r.default)(a,2),u=l[0],c=l[1],h=i?c:this.height-c;return 2===t.length?[u,h]:[u,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),l=a[0],u=a[1],c=a[2],h=i?u:this.height-u,d=o&&o*this.pixelsPerMeter,f=Object(s.pixelsToWorld)([l,h,c],this.pixelUnprojectionMatrix,d),p=this.unprojectPosition(f),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,l,u,c,h,d,f,p=n(210),g=n.n(p),v=n(99),m=n.n(v),y=n(45),b=n.n(y),_=n(11),x=n.n(_),w=n(12),O=n.n(w),S=n(3),C=n.n(S),E=n(42),T=n.n(E),M=(n(182),n(63)),A=n.n(M),I=n(67),j=n(562),k=n(17),P=n(21),L=(n(86),n(300)),D=n(208),R=n(889),N=n(890),F=["id","attributionControl","style","rotation","mapInstance","version","mapSize"],B=["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((u=function(){function t(){var e=this;x()(this,t),C()(this,"version",D.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",d,this),b()(this,"eventEmitter",f,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===D.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()(A.a.mark((function t(){var e,n,r,i,o,a,s,l,u,c,h,d,f;return A.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,l=e.mapInstance,u=e.version,c=void 0===u?"L7MAP":u,h=e.mapSize,d=void 0===h?1e4:h,f=g()(e,F),this.viewport=new R.default,this.version=c,this.simpleMapCoord.setSize(d),c===D.Version.SIMPLE&&f.center&&(f.center=this.simpleMapCoord.unproject(f.center)),l?(this.map=l,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},f))),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()(A.a.mark((function t(){var e,n,r,i,o,a,s,l,u,c,h,d=this;return A.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,l=e.hasBaseMap,u=void 0!==l&&l,c=g()(e,B),this.viewport=new R.default,this.$mapContainer=s,this.map=new j.Map(V({container:this.$mapContainer,style:this.getMapStyle(r),bearing:o,canvas:s},c)),u?(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;d.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()(u.prototype,"config",[i],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),h=T()(u.prototype,"configService",[o],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),d=T()(u.prototype,"coordinateSystemService",[a],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),f=T()(u.prototype,"eventEmitter",[s],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),l=u))||l)},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 b})),n.d(e,"default",(function(){return _}));var r=n(11),i=n.n(r),o=n(12),a=n.n(o),s=n(3),l=n.n(s),u=n(17),c=n(16),h=n(65),d=n(61),f=n(1764),p=n(93),g=n(337),v=n(267);function m(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 y(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 y(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 y(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 b=8192,_=function(){function t(e,n,r,o,a){i()(this,t),l()(this,"tileSize",void 0),l()(this,"tileZoom",void 0),l()(this,"lngRange",void 0),l()(this,"latRange",void 0),l()(this,"maxValidLatitude",void 0),l()(this,"scale",void 0),l()(this,"width",void 0),l()(this,"height",void 0),l()(this,"angle",void 0),l()(this,"rotationMatrix",void 0),l()(this,"pixelsToGLUnits",void 0),l()(this,"cameraToCenterDistance",void 0),l()(this,"mercatorMatrix",void 0),l()(this,"projMatrix",void 0),l()(this,"invProjMatrix",void 0),l()(this,"alignedProjMatrix",void 0),l()(this,"pixelMatrix",void 0),l()(this,"pixelMatrixInverse",void 0),l()(this,"glCoordMatrix",void 0),l()(this,"labelPlaneMatrix",void 0),l()(this,"_fov",void 0),l()(this,"_pitch",void 0),l()(this,"_zoom",void 0),l()(this,"_renderWorldCopies",void 0),l()(this,"_minZoom",void 0),l()(this,"_maxZoom",void 0),l()(this,"_minPitch",void 0),l()(this,"_maxPitch",void 0),l()(this,"_center",void 0),l()(this,"zoomFraction",void 0),l()(this,"unmodified",void 0),l()(this,"edgeInsets",void 0),l()(this,"constraining",void 0),l()(this,"posMatrixCache",void 0),l()(this,"alignedPosMatrixCache",void 0),this.tileSize=512,this.maxValidLatitude=85.051129,this._renderWorldCopies=void 0===a||a,this._minZoom=e||0,this._maxZoom=n||22,this._minPitch=null==r?0:r,this._maxPitch=null==o?60:o,this.setMaxBounds(),this.width=0,this.height=0,this._center=new p.default(0,0),this.zoom=0,this.angle=0,this._fov=.6435011087932844,this._pitch=0,this.unmodified=!0,this.edgeInsets=new f.default,this.posMatrixCache={},this.alignedPosMatrixCache={}}return a()(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 h.default(this.width,this.height)}},{key:"bearing",get:function(){return-this.angle/Math.PI*180},set:function(t){var e=-Object(d.wrap)(t,-180,180)*Math.PI/180;this.angle!==e&&(this.unmodified=!1,this.angle=e,this.calcMatrices(),this.rotationMatrix=c.mat2.create(),c.mat2.rotate(this.rotationMatrix,this.rotationMatrix,this.angle))}},{key:"pitch",get:function(){return this._pitch/Math.PI*180},set:function(t){var e=Object(d.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(d.clamp)(t.lat,-this.maxValidLatitude,this.maxValidLatitude);return new h.default(Object(v.mercatorXfromLng)(t.lng)*this.worldSize,Object(v.mercatorYfromLat)(e)*this.worldSize)}},{key:"unproject",value:function(t){return new v.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 v.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]);c.vec4.transformMat4(e,e,this.pixelMatrixInverse),c.vec4.transformMat4(n,n,this.pixelMatrixInverse);var r=e[3],i=n[3],o=e[0]/r,a=n[0]/i,s=e[1]/r,l=n[1]/i,u=e[2]/r,h=n[2]/i,f=u===h?0:(0-u)/(h-u);return new v.default(Object(d.interpolate)(o,a,f)/this.worldSize,Object(d.interpolate)(s,l,f)/this.worldSize)}},{key:"getBounds",value:function(){return(new g.default).extend(this.pointLocation(new h.default(0,0))).extend(this.pointLocation(new h.default(this.width,0))).extend(this.pointLocation(new h.default(this.width,this.height))).extend(this.pointLocation(new h.default(0,this.height)))}},{key:"getMaxBounds",value:function(){return this.latRange&&2===this.latRange.length&&this.lngRange&&2===this.lngRange.length?new g.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 h.default(0,0)),e=new Float32Array([t.x*this.worldSize,t.y*this.worldSize,0,1]);return c.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 h.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,s=m(t);try{for(s.s();!(n=s.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){s.e(t)}finally{s.f()}return[new h.default(r,i),new h.default(o,i),new h.default(o,a),new h.default(r,a),new h.default(r,i)]}},{key:"coordinatePoint",value:function(t){var e=c.vec4.fromValues(t.x*this.worldSize,t.y*this.worldSize,0,1);return c.vec4.transformMat4(e,e,this.pixelMatrix),new h.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 v.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,o=90,a=-180,s=180,l=this.size,c=this.unmodified;if(this.latRange){var d=this.latRange;i=Object(v.mercatorYfromLat)(d[1])*this.worldSize,t=(o=Object(v.mercatorYfromLat)(d[0])*this.worldSize)-i<l.y?l.y/(o-i):0}if(this.lngRange){var f=this.lngRange;a=Object(v.mercatorXfromLng)(f[0])*this.worldSize,e=(s=Object(v.mercatorXfromLng)(f[1])*this.worldSize)-a<l.x?l.x/(s-a):0}var p=this.point,g=Math.max(e||0,t||0);if(g)return this.center=this.unproject(new h.default(e?(s+a)/2:p.x,t?(o+i)/2:p.y)),u.isMini?this.zoom=Math.max(this.zoom,Math.max(-1,this.minZoom)):this.zoom+=this.scaleZoom(g),this.unmodified=c,void(this.constraining=!1);if(this.latRange){var m=p.y,y=l.y/2;m-y<i&&(r=i+y),m+y>o&&(r=o-y)}if(this.lngRange){var b=p.x,_=l.x/2;b-_<a&&(n=a+_),b+_>s&&(n=s-_)}void 0===n&&void 0===r||(this.center=this.unproject(new h.default(void 0!==n?n:p.x,void 0!==r?r:p.y))),this.unmodified=c,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(d.clamp)(Math.PI-n-r,.01,Math.PI-.01)),o=this.point,a=o.x,s=o.y,l=1.01*(Math.cos(Math.PI/2-this._pitch)*i+this.cameraToCenterDistance),u=this.height/50,h=new Float64Array(16);c.mat4.perspective(h,this._fov,this.width/this.height,u,l),h[8]=2*-e.x/this.width,h[9]=2*e.y/this.height,c.mat4.scale(h,h,[1,-1,1]),c.mat4.translate(h,h,[0,0,-this.cameraToCenterDistance]),c.mat4.rotateX(h,h,this._pitch),c.mat4.rotateZ(h,h,this.angle),c.mat4.translate(h,h,[-a,-s,0]),this.mercatorMatrix=c.mat4.scale([],h,[this.worldSize,this.worldSize,this.worldSize]),c.mat4.scale(h,h,[1,1,Object(v.mercatorZfromAltitude)(1,this.center.lat)*this.worldSize,1]),this.projMatrix=h,this.invProjMatrix=c.mat4.invert([],this.projMatrix);var f=this.width%2/2,p=this.height%2/2,g=Math.cos(this.angle),m=Math.sin(this.angle),y=a-Math.round(a)+g*f+m*p,b=s-Math.round(s)+g*p+m*f,_=new Float64Array(h);if(c.mat4.translate(_,_,[y>.5?y-1:y,b>.5?b-1:b,0]),this.alignedProjMatrix=_,h=c.mat4.create(),c.mat4.scale(h,h,[this.width/2,-this.height/2,1]),c.mat4.translate(h,h,[1,-1,0]),this.labelPlaneMatrix=h,h=c.mat4.create(),c.mat4.scale(h,h,[1,-1,1]),c.mat4.translate(h,h,[-1,-1,0]),c.mat4.scale(h,h,[2/this.width,2/this.height,1]),this.glCoordMatrix=h,this.pixelMatrix=c.mat4.multiply(new Float64Array(16),this.labelPlaneMatrix,this.projMatrix),!(h=c.mat4.invert(new Float64Array(16),this.pixelMatrix)))throw new Error("failed to invert matrix");this.pixelMatrixInverse=h,this.posMatrixCache={},this.alignedPosMatrixCache={}}}}]),t}()},function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return h}));var r=n(11),i=n.n(r),o=n(12),a=n.n(o),s=n(3),l=n.n(s),u=n(61),c=n(65),h=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,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;if(i()(this,t),l()(this,"top",void 0),l()(this,"bottom",void 0),l()(this,"left",void 0),l()(this,"right",void 0),isNaN(e)||e<0||isNaN(n)||n<0||isNaN(r)||r<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=r,this.right=o}return a()(t,[{key:"interpolate",value:function(t,e,n){return null!=e.top&&null!=t.top&&(this.top=Object(u.interpolate)(t.top,e.top,n)),null!=e.bottom&&null!=t.bottom&&(this.bottom=Object(u.interpolate)(t.bottom,e.bottom,n)),null!=e.left&&null!=t.left&&(this.left=Object(u.interpolate)(t.left,e.left,n)),null!=e.right&&null!=t.right&&(this.right=Object(u.interpolate)(t.right,e.right,n)),this}},{key:"getCenter",value:function(t,e){var n=Object(u.clamp)((this.left+t-this.right)/2,0,t),r=Object(u.clamp)((this.top+e-this.bottom)/2,0,e);return new c.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 c}));var r=n(11),i=n.n(r),o=n(12),a=n.n(o),s=n(3),l=n.n(s),u=n(191),c=function(){function t(e){i()(this,t),l()(this,"map",void 0),l()(this,"delayContextMenu",void 0),l()(this,"contextMenuEvent",void 0),this.map=e}return a()(t,[{key:"reset",value:function(){this.delayContextMenu=!1,delete this.contextMenuEvent}},{key:"mousemove",value:function(t){this.map.emit(t.type,new u.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 u.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 u.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(11),i=n.n(r),o=n(12),a=n.n(o),s=n(3),l=n.n(s),u=n(128),c=n(81),h=function(){function t(e,n){i()(this,t),l()(this,"map",void 0),l()(this,"el",void 0),l()(this,"container",void 0),l()(this,"enabled",void 0),l()(this,"active",void 0),l()(this,"startPos",void 0),l()(this,"lastPos",void 0),l()(this,"box",void 0),l()(this,"clickTolerance",void 0),this.map=e,this.el=e.getCanvasContainer(),this.container=e.getContainer(),this.clickTolerance=n.clickTolerance||1}return a()(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&&(u.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=u.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),o=Math.max(r.x,n.x),a=Math.min(r.y,n.y),s=Math.max(r.y,n.y);u.default.setTransform(this.box,"translate(".concat(i,"px,").concat(a,"px)")),this.box&&(this.box.style.width="".concat(o-i,"px"),this.box.style.height="".concat(s-a,"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(),u.default.suppressClick(),r.x!==i.x||r.y!==i.y)return this.map.emit("boxzoomend",new c.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&&(u.default.remove(this.box),this.box=null),u.default.enableDrag(),delete this.startPos,delete this.lastPos}},{key:"fireEvent",value:function(t,e){return this.map.emit(t,new c.Event(t,{originalEvent:e}))}}]),t}();e.default=h},function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return u}));var r=n(11),i=n.n(r),o=n(12),a=n.n(o),s=n(3),l=n.n(s),u=function(){function t(){i()(this,t),l()(this,"enabled",void 0),l()(this,"active",void 0),this.reset()}return a()(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 y}));var r=n(12),i=n.n(r),o=n(11),a=n.n(o),s=n(8),l=n.n(s),u=n(30),c=n.n(u),h=n(31),d=n.n(h),f=n(18),p=n.n(f),g=n(3),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 d()(this,n)}}var y=function(t){c()(n,t);var e=m(n);function n(){var t;a()(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)),v()(l()(t),"type","renderFrame"),v()(l()(t),"timeStamp",void 0),t}return i()(n)}(n(81).Event)},function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return _}));var r=n(11),i=n.n(r),o=n(12),a=n.n(o),s=n(3),l=n.n(s),u=n(65),c=n(96),h=n.n(c),d=n(61);function f(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={linearity:.3,easing:Object(d.bezier)(0,0,.3,1)},v=h()({deceleration:2500,maxSpeed:1400},g),m=h()({deceleration:20,maxSpeed:1400},g),y=h()({deceleration:1e3,maxSpeed:360},g),b=h()({deceleration:1e3,maxSpeed:90},g),_=function(){function t(e){i()(this,t),l()(this,"map",void 0),l()(this,"inertiaBuffer",void 0),this.map=e,this.clear()}return a()(t,[{key:"clear",value:function(){this.inertiaBuffer=[]}},{key:"record",value:function(t){this.drainInertiaBuffer(),this.inertiaBuffer.push({time:Object(d.now)(),settings:t})}},{key:"drainInertiaBuffer",value:function(){for(var t=this.inertiaBuffer,e=Object(d.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 u.default(0,0),pinchAround:void 0,around:void 0},r=f(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 o=this.inertiaBuffer[this.inertiaBuffer.length-1].time-this.inertiaBuffer[0].time,a={};if(n.pan.mag()){var s=w(n.pan.mag(),o,h()({},v,t||{}));a.offset=n.pan.mult(s.amount/n.pan.mag()),a.center=this.map.transform.center,x(a,s)}if(n.zoom){var l=w(n.zoom,o,m);a.zoom=this.map.transform.zoom+l.amount,x(a,l)}if(n.bearing){var c=w(n.bearing,o,y);a.bearing=this.map.transform.bearing+Object(d.clamp)(c.amount,-179,179),x(a,c)}if(n.pitch){var p=w(n.pitch,o,b);a.pitch=this.map.transform.pitch+p.amount,x(a,p)}if(a.zoom||a.bearing){var g=void 0===n.pinchAround?n.around:n.pinchAround;a.around=g?this.map.unproject(g):this.map.getCenter()}return this.clear(),h()(a,{noMoveStart:!0})}}}]),t}();function x(t,e){(!t.duration||t.duration<e.duration)&&(t.duration=e.duration,t.easing=e.easing)}function w(t,e,n){var r=n.maxSpeed,i=n.linearity,o=n.deceleration,a=Object(d.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(11),i=n.n(r),o=n(12),a=n.n(o),s=n(3),l=n.n(s),u={panStep:100,bearingStep:15,pitchStep:10},c=function(){function t(){i()(this,t),l()(this,"enabled",void 0),l()(this,"active",void 0),l()(this,"panStep",void 0),l()(this,"bearingStep",void 0),l()(this,"pitchStep",void 0);var e=u;this.panStep=e.panStep,this.bearingStep=e.bearingStep,this.pitchStep=e.pitchStep}return a()(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(s){var l=s.getZoom();s.easeTo({duration:300,easeId:"keyboardHandler",easing:h,zoom:n?Math.round(l)+n*(t.shiftKey?2:1):l,bearing:s.getBearing()+r*e.bearingStep,pitch:s.getPitch()+i*e.pitchStep,offset:[-o*e.panStep,-a*e.panStep],center:s.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 h(t){return t*(2-t)}e.default=c},function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return c}));var r=n(11),i=n.n(r),o=n(12),a=n.n(o),s=n(3),l=n.n(s),u=n(191),c=function(){function t(e,n){i()(this,t),l()(this,"mousedownPos",void 0),l()(this,"clickTolerance",void 0),l()(this,"map",void 0),this.map=e,this.clickTolerance=n.clickTolerance}return a()(t,[{key:"reset",value:function(){delete this.mousedownPos}},{key:"wheel",value:function(t){return this.firePreventable(new u.MapWheelEvent(t.type,this.map,t))}},{key:"mousedown",value:function(t,e){return this.mousedownPos=e,this.firePreventable(new u.MapMouseEvent(t.type,this.map,t))}},{key:"mouseup",value:function(t){this.map.emit(t.type,new u.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 u.MapMouseEvent(t.type,this.map,t))}},{key:"dblclick",value:function(t){return this.firePreventable(new u.MapMouseEvent(t.type,this.map,t))}},{key:"mouseover",value:function(t){this.map.emit(t.type,new u.MapMouseEvent(t.type,this.map,t))}},{key:"mouseout",value:function(t){this.map.emit(t.type,new u.MapMouseEvent(t.type,this.map,t))}},{key:"touchstart",value:function(t){return this.firePreventable(new u.MapTouchEvent(t.type,this.map,t))}},{key:"touchmove",value:function(t){this.map.emit(t.type,new u.MapTouchEvent(t.type,this.map,t))}},{key:"touchend",value:function(t){this.map.emit(t.type,new u.MapTouchEvent(t.type,this.map,t))}},{key:"touchcancel",value:function(t){this.map.emit(t.type,new u.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);var r=n(11),i=n.n(r),o=n(12),a=n.n(o),s=n(3),l=n.n(s),u=n(93),c=n(61),h=n(128),d=function(){function t(e,n){var r=this;i()(this,t),l()(this,"map",void 0),l()(this,"el",void 0),l()(this,"enabled",void 0),l()(this,"active",void 0),l()(this,"zooming",void 0),l()(this,"aroundCenter",void 0),l()(this,"around",void 0),l()(this,"aroundPoint",void 0),l()(this,"type",void 0),l()(this,"lastValue",void 0),l()(this,"timeout",void 0),l()(this,"finishTimeout",void 0),l()(this,"lastWheelEvent",void 0),l()(this,"lastWheelEventTime",void 0),l()(this,"startZoom",void 0),l()(this,"targetZoom",void 0),l()(this,"delta",void 0),l()(this,"easing",void 0),l()(this,"prevEase",void 0),l()(this,"frameId",void 0),l()(this,"handler",void 0),l()(this,"defaultZoomRate",void 0),l()(this,"wheelZoomRate",void 0),l()(this,"onScrollFrame",(function(){if(r.frameId&&(r.frameId=null,r.isActive())){var t=r.map.transform;if(0!==r.delta){var e="wheel"===r.type&&Math.abs(r.delta)>4.000244140625?r.wheelZoomRate:r.defaultZoomRate,n=2/(1+Math.exp(-Math.abs(r.delta*e)));r.delta<0&&0!==n&&(n=1/n);var i="number"==typeof r.targetZoom?t.zoomScale(r.targetZoom):t.scale;r.targetZoom=Math.min(t.maxZoom,Math.max(t.minZoom,t.scaleZoom(i*n))),"wheel"===r.type&&(r.startZoom=t.zoom,r.easing=r.smoothOutEasing(200)),r.delta=0}var o,a="number"==typeof r.targetZoom?r.targetZoom:t.zoom,s=r.startZoom,l=r.easing,u=!1;if("wheel"===r.type&&s&&l){var h=Math.min((Object(c.now)()-r.lastWheelEventTime)/200,1),d=l(h);o=Object(c.interpolate)(s,a,d),h<1?r.frameId||(r.frameId=!0):u=!0}else o=a,u=!0;return r.active=!0,u&&(r.active=!1,r.finishTimeout=setTimeout((function(){r.zooming=!1,r.handler.triggerRenderFrame(),delete r.targetZoom,delete r.finishTimeout}),200)),{noInertia:!0,needsRenderFrame:!u,zoomDelta:o-t.zoom,around:r.aroundPoint,originalEvent:r.lastWheelEvent}}})),this.map=e,this.el=e.getCanvasContainer(),this.handler=n,this.delta=0,this.defaultZoomRate=.01,this.wheelZoomRate=1/450}return a()(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(c.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=h.default.mousePos(this.el,t);this.around=u.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=c.ease;if(this.prevEase){var n=this.prevEase,r=(Object(c.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(c.bezier)(o,a,.25,1)}return this.prevEase={start:Object(c.now)(),duration:t,easing:e},e}}]),t}();e.default=d},function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return u}));var r=n(11),i=n.n(r),o=n(12),a=n.n(o),s=n(3),l=n.n(s),u=function(){function t(e,n){i()(this,t),l()(this,"clickZoom",void 0),l()(this,"tapZoom",void 0),this.clickZoom=e,this.tapZoom=n}return a()(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 c}));var r=n(11),i=n.n(r),o=n(12),a=n.n(o),s=n(3),l=n.n(s),u=n(17),c=function(){function t(e,n,r){i()(this,t),l()(this,"inertiaOptions",void 0),l()(this,"el",void 0),l()(this,"mousePan",void 0),l()(this,"touchPan",void 0),this.el=e,this.mousePan=n,this.touchPan=r}return a()(t,[{key:"enable",value:function(t){this.inertiaOptions=t||{},this.mousePan.enable(),this.touchPan.enable(),u.isMini||this.el.classList.add("l7-touch-drag-pan")}},{key:"disable",value:function(){this.mousePan.disable(),this.touchPan.disable(),u.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 u}));var r=n(11),i=n.n(r),o=n(12),a=n.n(o),s=n(3),l=n.n(s),u=function(){function t(e,n,r){i()(this,t),l()(this,"mouseRotate",void 0),l()(this,"mousePitch",void 0),l()(this,"pitchWithRotate",void 0),this.pitchWithRotate=e.pitchWithRotate,this.mouseRotate=n,this.mousePitch=r}return a()(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 c}));var r=n(11),i=n.n(r),o=n(12),a=n.n(o),s=n(3),l=n.n(s),u=n(17),c=function(){function t(e,n,r,o){i()(this,t),l()(this,"el",void 0),l()(this,"touchZoom",void 0),l()(this,"touchRotate",void 0),l()(this,"tapDragZoom",void 0),l()(this,"rotationDisabled",void 0),l()(this,"enabled",void 0),this.el=e,this.touchZoom=n,this.touchRotate=r,this.tapDragZoom=o,this.rotationDisabled=!1,this.enabled=!0}return a()(t,[{key:"enable",value:function(t){this.touchZoom.enable(t),this.rotationDisabled||this.touchRotate.enable(t),this.tapDragZoom.enable(),u.isMini||this.el.classList.add("l7-touch-zoom-rotate")}},{key:"disable",value:function(){this.touchZoom.disable(),this.touchRotate.disable(),this.tapDragZoom.disable(),u.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 h}));var r=n(11),i=n.n(r),o=n(12),a=n.n(o),s=n(3),l=n.n(s),u=n(492),c=n(564),h=function(){function t(){i()(this,t),l()(this,"enabled",void 0),l()(this,"active",void 0),l()(this,"swipePoint",void 0),l()(this,"swipeTouch",void 0),l()(this,"tapTime",void 0),l()(this,"tap",void 0),this.tap=new c.default({numTouches:1,numTaps:1}),this.reset()}return a()(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>u.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 c}));var r=n(11),i=n.n(r),o=n(12),a=n.n(o),s=n(3),l=n.n(s),u=n(564),c=function(){function t(){i()(this,t),l()(this,"enabled",void 0),l()(this,"active",void 0),l()(this,"zoomIn",void 0),l()(this,"zoomOut",void 0),this.zoomIn=new u.default({numTouches:1,numTaps:2}),this.zoomOut=new u.default({numTouches:2,numTaps:1}),this.reset()}return a()(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(11),i=n.n(r),o=n(12),a=n.n(o),s=n(3),l=n.n(s),u=n(1780),c=n.n(u),h=n(17),d=function(){function t(e){var n=this;i()(this,t),l()(this,"map",void 0),l()(this,"updateHash",void 0),l()(this,"hashName",void 0),l()(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})),l()(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("/")})),l()(this,"updateHashUnthrottled",(function(){var t=n.getHashString();try{window.history.replaceState(window.history.state,"",t)}catch(t){}})),this.hashName=e&&encodeURIComponent(e),this.updateHash=c()(this.updateHashUnthrottled,300)}return a()(t,[{key:"addTo",value:function(t){return this.map=t,h.$window.addEventListener("hashchange",this.onHashChange,!1),this.map.on("moveend",this.updateHash),this}},{key:"remove",value:function(){return h.$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(),l=this.map.getPitch(),u="";if(u+=t?"/".concat(o,"/").concat(a,"/").concat(n):"".concat(n,"/").concat(a,"/").concat(o),(s||l)&&(u+="/".concat(Math.round(10*s)/10)),l&&(u+="/".concat(Math.round(l))),this.hashName){var c=this.hashName,h=!1,d=window.location.hash.slice(1).split("&").map((function(t){var e=t.split("=")[0];return e===c?(h=!0,"".concat(e,"=").concat(u)):t})).filter((function(t){return t}));return h||d.push("".concat(c,"=").concat(u)),"#".concat(d.join("&"))}return"#".concat(u)}}]),t}();e.default=d},function(t,e,n){var r=n(2065),i=n(285);t.exports=function(t,e,n){var o=!0,a=!0;if("function"!=typeof t)throw new TypeError("Expected a function");return i(n)&&(o="leading"in n?!!n.leading:o,a="trailing"in n?!!n.trailing:a),r(t,e,{leading:o,maxWait:e,trailing:a})}},function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return U}));var r,i,o,a,s,l,u,c,h,d,f,p=n(210),g=n.n(p),v=n(99),m=n.n(v),y=n(45),b=n.n(y),_=n(11),x=n.n(_),w=n(12),O=n.n(w),S=n(3),C=n.n(S),E=n(42),T=n.n(E),M=(n(182),n(63)),A=n.n(M),I=n(67),j=n(562),k=n(17),P=n(21),L=(n(86),n(208)),D=n(1782),R=n(300),N=n(891),F=["id","attributionControl","style","rotation","mapInstance"];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 z(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){C()(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 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((u=function(){function t(){var e=this;x()(this,t),C()(this,"version",L.Version.GLOBEL),C()(this,"map",void 0),C()(this,"simpleMapCoord",new R.SimpleMapCoord),C()(this,"dragging",!1),C()(this,"bgColor","#000"),b()(this,"config",c,this),b()(this,"configService",h,this),b()(this,"coordinateSystemService",d,this),b()(this,"eventEmitter",f,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()(A.a.mark((function t(){var e,n,r,i,o,a,s,l;return A.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,l=g()(e,F),this.viewport=new D.default,this.$mapContainer=this.creatAmapContainer(r),this.map=new j.EarthMap(z({container:this.$mapContainer,style:this.getMapStyle(o),bearing:s},l)),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()(u.prototype,"config",[i],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),h=T()(u.prototype,"configService",[o],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),d=T()(u.prototype,"coordinateSystemService",[a],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),f=T()(u.prototype,"eventEmitter",[s],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),l=u))||l)},function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return c}));var r=n(11),i=n.n(r),o=n(12),a=n.n(o),s=n(3),l=n.n(s),u=n(16),c=function(){function t(){i()(this,t),l()(this,"xzReg",.6*-Math.PI),l()(this,"yReg",.2*Math.PI),l()(this,"earthCameraRadius",200),l()(this,"earthCameraZoom",1),l()(this,"cameraPosition",u.vec3.create()),l()(this,"viewport",void 0),l()(this,"projectionMatrix",u.mat4.create()),l()(this,"modelMatrix",u.mat4.create()),l()(this,"viewMatrix",u.mat4.create()),l()(this,"viewProjectionMatrix",u.mat4.create()),l()(this,"ViewProjectionMatrixUncentered",u.mat4.create()),l()(this,"viewUncenteredMatrix",u.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;u.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=u.vec3.fromValues(o,s,a),u.vec3.normalize(this.cameraPosition,this.cameraPosition),u.vec3.multiply(this.cameraPosition,this.cameraPosition,u.vec3.fromValues(this.earthCameraRadius,this.earthCameraRadius,this.earthCameraRadius)),u.vec3.scale(this.cameraPosition,this.cameraPosition,this.earthCameraZoom);var l=u.vec3.create();u.vec3.cross(l,this.cameraPosition,u.vec3.fromValues(0,1,0));var c=u.vec3.fromValues(0,1,0);u.vec3.cross(c,l,this.cameraPosition);var h=u.vec3.fromValues(0,0,0);u.mat4.lookAt(this.viewMatrix,this.cameraPosition,h,c),this.viewUncenteredMatrix=u.mat4.clone(this.viewMatrix),u.mat4.multiply(this.viewProjectionMatrix,this.projectionMatrix,this.viewMatrix),u.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,l=1,u={},c=!1,h=t.document,d=Object.getPrototypeOf&&Object.getPrototypeOf(t);d=d&&d.setTimeout?d: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,"*")}),d.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 u[l]=i,r(l),l++},d.clearImmediate=f}function f(t){delete u[t]}function p(t){if(c)setTimeout(p,0,t);else{var e=u[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{f(t),c=!1}}}}}("undefined"==typeof self?void 0===t?this:t:self)}).call(this,n(322),n(416))},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,l=n.name,u=o.$route,c=o._routerViewCache||(o._routerViewCache={}),h=0,d=!1;o&&o._routerRoot!==o;){var f=o.$vnode&&o.$vnode.data;f&&(f.routerView&&h++,f.keepAlive&&o._inactive&&(d=!0)),o=o.$parent}if(a.routerViewDepth=h,d)return s(c[l],a,r);var p=u.matched[h];if(!p)return c[l]=null,s();var g=c[l]=p.components[l];a.registerRouteInstance=function(t,e){var n=p.instances[l];(e&&n!==t||!e&&n===t)&&(p.instances[l]=e)},(a.hook||(a.hook={})).prepatch=function(t,e){p.instances[l]=e.componentInstance},a.hook.init=function(t){t.data.keepAlive&&t.componentInstance&&t.componentInstance!==p.instances[l]&&(p.instances[l]=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}}(u,p.props&&p.props[l]);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)},l=/%2C/g,u=function(t){return encodeURIComponent(t).replace(a,s).replace(l,",")},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 d(t){var e=t?Object.keys(t).map((function(e){var n=t[e];if(void 0===n)return"";if(null===n)return u(e);if(Array.isArray(n)){var r=[];return n.forEach((function(t){void 0!==t&&(null===t?r.push(u(e)):r.push(u(e)+"="+u(t)))})),r.join("&")}return u(e)+"="+u(n)})).filter((function(t){return t.length>0})).join("&"):null;return e?"?"+e:""}var f=/\/?$/;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||d)(r)+i}function b(t,e){return e===v?t===e:!!e&&(t.path&&e.path?t.path.replace(f,"")===e.path.replace(f,"")&&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,l=o.href,u={},c=n.options.linkActiveClass,h=n.options.linkExactActiveClass,d=null==c?"router-link-active":c,g=null==h?"router-link-exact-active":h,v=null==this.activeClass?d:this.activeClass,m=null==this.exactActiveClass?g:this.exactActiveClass,y=a.path?p(null,a,null,n):s;u[m]=b(r,y),u[v]=this.exact?u[m]:function(t,e){return 0===t.path.replace(f,"/").indexOf(e.path.replace(f,"/"))&&(!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:u};if("a"===this.tag)w.on=x,w.attrs={href:l};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=l;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)},M=U,A=L,I=function(t,e){return R(L(t,e))},j=R,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 l=n[0],u=n[1],c=n.index;if(a+=t.slice(o,c),o=c+l.length,u)a+=u[1];else{var h=t[o],d=n[2],f=n[3],p=n[4],g=n[5],v=n[6],m=n[7];a&&(r.push(a),a="");var y=null!=d&&null!=h&&h!==d,b="+"===v||"*"===v,_="?"===v||"*"===v,x=n[2]||s,w=p||g;r.push({name:f||i++,prefix:d||"",delimiter:x,optional:_,repeat:b,partial:y,asterisk:!!m,pattern:w?F(w):m?".*":"[^"+N(x)+"]+?"})}}return o<t.length&&(a+=t.substr(o)),a&&r.push(a),r}function D(t){return encodeURI(t).replace(/[\/?#]/g,(function(t){return"%"+t.charCodeAt(0).toString(16).toUpperCase()}))}function R(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?D:encodeURIComponent,s=0;s<t.length;s++){var l=t[s];if("string"!=typeof l){var u,c=o[l.name];if(null==c){if(l.optional){l.partial&&(i+=l.prefix);continue}throw new TypeError('Expected "'+l.name+'" to be defined')}if(T(c)){if(!l.repeat)throw new TypeError('Expected "'+l.name+'" to not repeat, but received `'+JSON.stringify(c)+"`");if(0===c.length){if(l.optional)continue;throw new TypeError('Expected "'+l.name+'" to not be empty')}for(var h=0;h<c.length;h++){if(u=a(c[h]),!e[s].test(u))throw new TypeError('Expected all "'+l.name+'" to match "'+l.pattern+'", but received `'+JSON.stringify(u)+"`");i+=(0===h?l.prefix:l.delimiter)+u}}else{if(u=l.asterisk?encodeURI(c).replace(/[?#]/g,(function(t){return"%"+t.charCodeAt(0).toString(16).toUpperCase()})):a(c),!e[s].test(u))throw new TypeError('Expected "'+l.name+'" to match "'+l.pattern+'", but received "'+u+'"');i+=l.prefix+u}}else i+=l}return i}}function N(t){return t.replace(/([.+*?=^!:${}()[\]|\/\\])/g,"\\$1")}function F(t){return t.replace(/([=!:$\/()])/g,"\\$1")}function B(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 l=N(s.prefix),u="(?:"+s.pattern+")";e.push(s),s.repeat&&(u+="(?:"+l+u+")*"),o+=u=s.optional?s.partial?l+"("+u+")?":"(?:"+l+"("+u+"))?":l+"("+u+")"}}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+"|$)",B(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 B(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 B(new RegExp("(?:"+r.join("|")+")",z(n)),e)}(t,e,n):function(t,e,n){return V(L(t,n),e,n)}(t,e,n)}M.parse=A,M.compile=I,M.tokensToFunction=j,M.tokensToRegExp=k;var G=Object.create(null);function H(t,e,n){e=e||{};try{var r=G[t]||(G[t]=M.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,l=i.name;0;var u=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,u.strict);"boolean"==typeof i.caseSensitive&&(u.sensitive=i.caseSensitive);var h={path:c,regex:Y(c,u),components:i.components||{default:i.component},instances:{},name:l,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);l&&(r[l]||(r[l]=h))}(i,o,a,t)}));for(var s=0,l=i.length;s<l;s++)"*"===i[s]&&(i.push(i.splice(s,1)[0]),l--,s--);return{pathList:i,pathMap:o,nameMap:a}}function Y(t,e){return M(t,[],e)}function $(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 l=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||""),u=e&&e.path||"/",c=l.path?C(l.path,u,n||o.append):u,d=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}(l.query,o.query,r&&r.options.parseQuery),f=o.hash||l.hash;return f&&"#"!==f.charAt(0)&&(f="#"+f),{_normalized:!0,path:c,query:d,hash:f}}function X(t,e){var n=W(t),r=n.pathList,i=n.pathMap,o=n.nameMap;function a(t,n,a){var s=$(t,n,!1,e),u=s.name;if(u){var c=o[u];if(!c)return l(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 d in n.params)!(d in s.params)&&h.indexOf(d)>-1&&(s.params[d]=n.params[d]);if(c)return s.path=H(c.path,s.params),l(c,s,a)}else if(s.path){s.params={};for(var f=0;f<r.length;f++){var p=r[f],g=i[p];if(q(g.regex,s.path,s.params))return l(g,s,a)}}return l(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 l(null,n);var s=i,u=s.name,c=s.path,h=n.query,d=n.hash,f=n.params;if(h=s.hasOwnProperty("query")?s.query:h,d=s.hasOwnProperty("hash")?s.hash:d,f=s.hasOwnProperty("params")?s.params:f,u){o[u];return a({_normalized:!0,name:u,query:h,hash:d,params:f},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,f),query:h,hash:d},void 0,n)}return l(null,n)}function l(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,l(o,e)}return l(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:ut()},"",window.location.href.replace(window.location.origin,"")),window.addEventListener("popstate",(function(t){var e;Q(),t.state&&t.state.key&&(e=t.state.key,st=e)}))}function J(t,e,n,r){if(t.app){var i=t.options.scrollBehavior;i&&t.app.$nextTick((function(){var o=function(){var t=ut();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 Q(){var t=ut();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=lt();function lt(){return at.now().toFixed(3)}function ut(){return st}function ct(t,e){Q();var n=window.history;try{e?n.replaceState({key:st},"",t):(st=lt(),n.pushState({key:st},"",t))}catch(n){window.location[e?"replace":"assign"](t)}}function ht(t){ct(t,!0)}function dt(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 ft(t){return function(e,n,i){var o=!1,a=0,s=null;pt(t,(function(t,e,n,l){if("function"==typeof t&&void 0===t.cid){o=!0,a++;var u,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[l]=e,--a<=0&&i()})),h=mt((function(t){var e="Failed to resolve async component "+l+": "+t;s||(s=r(t)?t:new Error(e),i(s))}));try{u=t(c,h)}catch(t){h(t)}if(u)if("function"==typeof u.then)u.then(c,h);else{var d=u.component;d&&"function"==typeof d.then&&d.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),l=s.updated,u=s.deactivated,c=s.activated,h=[].concat(function(t){return bt(t,"beforeRouteLeave",_t,!0)}(u),this.router.beforeHooks,function(t){return bt(t,"beforeRouteUpdate",_t)}(l),c.map((function(t){return t.beforeEnter})),ft(c));this.pending=t;var d=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)}};dt(h,d,(function(){var n=[];dt(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),d,(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&&J(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)),J(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)),J(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&&J(t.router,r,e,!0),ot||Mt(r.fullPath)}))}))},e.prototype.push=function(t,e,n){var r=this,i=this.current;this.transitionTo(t,(function(t){Tt(t.fullPath),J(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){Mt(t.fullPath),J(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):Mt(e))},e.prototype.getCurrentLocation=function(){return Ct()},e}(yt);function St(){var t=Ct();return"/"===t.charAt(0)||(Mt("/"+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 Mt(t){ot?ht(Et(t)):window.location.replace(Et(t))}var At=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=X(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 At(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=$(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 u})),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 l;var u=function(t){var e=this;void 0===t&&(t={}),!l&&"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 l;var o=this,a=this.dispatch,u=this.commit;this.dispatch=function(t,e){return a.call(o,t,e)},this.commit=function(t,e,n){return u.call(o,t,e,n)},this.strict=i;var c=this._modules.root.state;p(this,c,[],this._modules.root),f(this,c),n.forEach((function(t){return t(e)})),(void 0!==t.devtools?t.devtools:l.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 d(t,e){t._actions=Object.create(null),t._mutations=Object.create(null),t._wrappedGetters=Object.create(null),t._modulesNamespaceMap=Object.create(null);var n=t.state;p(t,n,[],t._modules.root,!0),f(t,n,e)}function f(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=l.config.silent;l.config.silent=!0,t._vm=new l({data:{$$state:e},computed:a}),l.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})),l.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)),u=n[n.length-1];t._withCommit((function(){l.set(s,u,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,l=o.type;return s&&s.root||(l=e+l),t.dispatch(l,a)},commit:r?t.commit:function(n,r,i){var o=v(n,r,i),a=o.payload,s=o.options,l=o.type;s&&s.root||(l=e+l),t.commit(l,a,s)}};return Object.defineProperties(i,{getters:{get:r?function(){return t.getters}:function(){return function(t,e){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){l&&t===l||
|
||
/**
|
||
* 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)}}(l=t)}c.state.get=function(){return this._vm._data.$$state},c.state.set=function(t){0},u.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}),l=this._mutations[o];l&&(this._withCommit((function(){l.forEach((function(t){t(a)}))})),this._subscribers.forEach((function(t){return t(s,r.state)})))},u.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}))}},u.prototype.subscribe=function(t){return h(t,this._subscribers)},u.prototype.subscribeAction=function(t){return h("function"==typeof t?{before:t}:t,this._actionSubscribers)},u.prototype.watch=function(t,e,n){var r=this;return this._watcherVM.$watch((function(){return t(r.state,r.getters)}),e,n)},u.prototype.replaceState=function(t){var e=this;this._withCommit((function(){e._vm._data.$$state=t}))},u.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),f(this,this.state)},u.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));l.delete(n,t[t.length-1])})),d(this)},u.prototype.hotUpdate=function(t){this._modules.update(t),d(this,!0)},u.prototype._withCommit=function(t){var e=this._committing;this._committing=!0,t(),this._committing=e},Object.defineProperties(u.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:u,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(1789)},function(t,e,n){"use strict";var r=n(222),i=n(894),o=n(1790),a=n(900);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 l=s(n(767));l.Axios=o,l.create=function(t){return s(a(l.defaults,t))},l.Cancel=n(901),l.CancelToken=n(1804),l.isCancel=n(899),l.all=function(t){return Promise.all(t)},l.spread=n(1805),l.isAxiosError=n(1806),t.exports=l,t.exports.default=l},function(t,e,n){"use strict";var r=n(222),i=n(895),o=n(1791),a=n(1792),s=n(900),l=n(1802),u=l.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&&l.assertOptions(e,{silentJSONParsing:u.transitional(u.boolean,"1.0.0"),forcedJSONParsing:u.transitional(u.boolean,"1.0.0"),clarifyTimeoutError:u.transitional(u.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 d=n.shift(),f=n.shift();try{h=d(h)}catch(t){f(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(222);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(222),i=n(1793),o=n(899),a=n(767);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(222),i=n(767);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(222);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(898);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(222);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(1798),i=n(1799);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(222),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(222);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(1803),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],l=void 0===s||a(s,o,t);if(!0!==l)throw new TypeError("option "+o+" must be "+l)}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(901);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(1808)},function(t,e){t.exports=n(323)},function(t,e){t.exports=n(284)},function(t,e){t.exports=n(379)},function(t,e){t.exports=n(769)},function(t,e){t.exports=n(200)},function(t,e){t.exports=n(572)},function(t,e){t.exports=n(573)},function(t,e){t.exports=n(771)},function(t,e){t.exports=n(905)},function(t,e){t.exports=n(906)},function(t,e){t.exports=n(904)},function(t,e){t.exports=n(768)},function(t,e){t.exports=n(1814)},function(t,e){t.exports=n(772)},function(t,e){t.exports=n(903)},function(t,e){t.exports=n(575)},function(t,e){t.exports=n(908)},function(t,e){t.exports=n(774)},function(t,e){t.exports=n(574)},function(t,e){t.exports=n(902)},function(t,e){t.exports=n(1816)},function(t,e){t.exports=n(1817)},function(t,e){t.exports=n(775)},function(t,e){t.exports=n(909)},function(t,e){t.exports=n(773)},function(t,e){t.exports=n(1818)},function(t,e){t.exports=n(776)},function(t,e){t.exports=n(1819)},function(t,e){t.exports=n(910)},function(t,e){t.exports=n(770)},function(t,e){t.exports=n(1820)},function(t,e){t.exports=n(1821)},function(t,e){t.exports=n(1822)},function(t,e){t.exports=n(777)},function(t,e){t.exports=n(907)},function(t,e){t.exports=n(1823)},function(t,e){t.exports=n(1824)},function(t,e){t.exports=n(1825)},function(t,e){t.exports=n(1830)},function(t,e){t.exports=n(1831)},function(t,e){t.exports=n(1864)},function(t,e){t.exports=n(1865)},function(t,e){t.exports=n(920)},function(t,e){t.exports=n(1866)},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 l,u="function"==typeof t?t.options:t;if(e&&(u.render=e,u.staticRenderFns=n,u._compiled=!0),r&&(u.functional=!0),o&&(u._scopeId="data-v-"+o),a?(l=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)},u._ssrRegister=l):i&&(l=s?function(){i.call(this,(u.functional?this.parent:this).$root.$options.shadowRoot)}:i),l)if(u.functional){u._injectStyles=l;var c=u.render;u.render=function(t,e){return l.call(e),c(t,e)}}else{var h=u.beforeCreate;u.beforeCreate=h?[].concat(h,l):[l]}return{exports:t,options:u}}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 l=2;l<t;l++)a.push(l);else if(i&&o)for(var u=Math.floor(t/2)-1,c=n-u;c<=n+u;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),l=n.n(s),u=n(37),c=n.n(u),h=n(8),d=n.n(h),f=n(4),p=n.n(f),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:l.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:d.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,M=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)};M._withStripped=!0;var A=n(16),I=n.n(A),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),D=n.n(L),R=n(18),N=n.n(R),F=i({components:{ElScrollbar:N.a},mixins:[D.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);F.options.__file="packages/autocomplete/src/autocomplete-suggestions.vue";var B=F.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:d.a,ElAutocompleteSuggestions:B},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()}},M,[],!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),$=n(28),X=n.n($),q=i({name:"ElDropdown",componentName:"ElDropdown",mixins:[S.a,w.a],directives:{Clickoutside:k.a},components:{ElButton:Y.a,ElButtonGroup:X.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 l=this.dropdownElm;this.triggerElm.addEventListener("keydown",a),l.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),l.addEventListener("mouseenter",n),l.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 l=(s=this.$slots.default)[0].data||{},u=l.attrs,c=void 0===u?{}:u;a&&!c.disabled&&(c.disabled=!0,l.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,J=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)])};J._withStripped=!0;var Q=i({name:"ElDropdownMenu",componentName:"ElDropdownMenu",mixins:[D.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}}}},J,[],!1,null,null,null);Q.options.__file="packages/dropdown/src/dropdown-menu.vue";var tt=Q.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,lt=function(t,e){this.domNode=e,this.parent=t,this.subMenuItems=[],this.subIndex=0,this.init()};lt.prototype.init=function(){this.subMenuItems=this.domNode.querySelectorAll("li"),this.addListeners()},lt.prototype.gotoSubIndex=function(t){t===this.subMenuItems.length?t=0:t<0&&(t=this.subMenuItems.length-1),this.subMenuItems[t].focus(),this.subIndex=t},lt.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 ut=lt,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 ut(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,dt=function(t){this.domNode=t,this.init()};dt.prototype.init=function(){var t=this.domNode.childNodes;[].filter.call(t,(function(t){return 1===t.nodeType})).forEach((function(t){new ht(t)}))};var ft=dt,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 ft(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:D.a.props.offset,boundariesPadding:D.a.props.boundariesPadding,popperOptions:D.a.props.popperOptions},data:D.a.data,methods:D.a.methods,beforeDestroy:D.a.beforeDestroy,deactivated:D.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,l=this.currentPlacement,u=this.menuTransitionName,c=this.mode,h=this.disabled,d=this.popperClass,f=this.$slots,p=this.isFirstLevel,g=t("transition",{attrs:{name:u}},[t("div",{ref:"menu",directives:[{name:"show",value:r}],class:["el-menu--"+c,d],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-"+l],style:{backgroundColor:s.backgroundColor||""}},[f.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||""}},[f.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}]},[f.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),Mt=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);Mt.options.__file="packages/menu/src/menu-item.vue";var At=Mt.exports;At.install=function(t){t.component(At.name,At)};var It=At,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,Dt=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)};Dt._withStripped=!0;var Rt=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",Ft=["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 Bt(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:Ft.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;Rt||(Rt=document.createElement("textarea"),document.body.appendChild(Rt));var r=Bt(t),i=r.paddingSize,o=r.borderSize,a=r.boxSizing,s=r.contextStyle;Rt.setAttribute("style",s+";"+Nt),Rt.value=t.value||t.placeholder||"";var l=Rt.scrollHeight,u={};"border-box"===a?l+=o:"content-box"===a&&(l-=i),Rt.value="";var c=Rt.scrollHeight-i;if(null!==e){var h=c*e;"border-box"===a&&(h=h+i+o),l=Math.max(h,l),u.minHeight=h+"px"}if(null!==n){var d=c*n;"border-box"===a&&(d=d+i+o),l=Math.min(d,l)}return u.height=l+"px",Rt.parentNode&&Rt.parentNode.removeChild(Rt),Rt=null,u}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)}},Dt,[],!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,$t=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)};$t._withStripped=!0;var Xt={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:Xt},components:{ElInput:d.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)}},$t,[],!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,Jt=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)])};Jt._withStripped=!0;var Qt=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)}))}}},Jt,[],!1,null,null,null);Qt.options.__file="packages/radio/src/radio.vue";var te=Qt.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 le=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);le.options.__file="packages/radio/src/radio-button.vue";var ue=le.exports;ue.install=function(t){t.component(ue.name,ue)};var ce=ue,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 de=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);de.options.__file="packages/checkbox/src/checkbox.vue";var fe=de.exports;fe.install=function(t){t.component(fe.name,fe)};var pe=fe,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 Me=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)};Me._withStripped=!0;var Ae=i({name:"ElSelectDropdown",componentName:"ElSelectDropdown",mixins:[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)}},Me,[],!1,null,null,null);Ae.options.__file="packages/select/src/select-dropdown.vue";var Ie=Ae.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,De=n(29),Re=n.n(De),Ne=n(14),Fe=n(27),Be=n.n(Fe),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:d.a,ElSelectMenu:Ie,ElOption:Le,ElTag:Re.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");Be()(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 $e=Ye,Xe=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()])};Xe._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)}}},Xe,[],!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,Je=function(){var t=this.$createElement;return(this._self._c||t)("div",{staticClass:"el-button-group"},[this._t("default")],2)};Je._withStripped=!0;var Qe=i({name:"ElButtonGroup"},Je,[],!1,null,null,null);Qe.options.__file="packages/button/src/button-group.vue";var tn=Qe.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),ln=n.n(sn),un="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(un?"DOMMouseScroll":"mousewheel",(function(t){var e=ln()(t);r&&r.apply(this,[t,e])}))}},hn=n(5),dn=n.n(hn),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},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":fn(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},Mn={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,l=i.lazy,u=[],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,l=void 0!==s&&s,h=a.loading,d=void 0!==h&&h;i.loaded=!!l,i.loading=!!d,u.push(e)}r[e]=i}));var h=Object.keys(e);l&&h.length&&u.length&&h.forEach((function(t){var n=o[t],i=e[t].children;if(-1!==u.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,l=void 0!==s&&s,h=a.loading,d=void 0!==h&&h;r[t]={lazy:!0,loaded:!!l,loading:!!d,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)})))}}},An=function t(e){var n=[];return e.forEach((function(e){e.children?n.push.apply(n,t(e.children)):n.push(e)})),n},In=dn.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,Mn],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=An(n),i=An(t.fixedColumns),o=An(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 l=r.filter((function(t){return-1===i.indexOf(t)}));t.selection=l,this.table.$emit("selection-change",l.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,l=0,u=0,c=i.length;u<c;u++){var h=i[u],d=r&&r.call(null,h,u);if(a=h,o?o[bn(a,n)]:-1!==e.indexOf(a))l++;else if(!r||d){s=!1;break}}0===l&&(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 l=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){l.find((function(e){return e.id===t}))&&(a[t].filteredValue=[])})),this.commit("filterChange",{column:l,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(){dn.a.nextTick(this.table.updateScrollY)},In.prototype.syncFixedTableRowHeight=function(){var t=this;dn.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 Dn=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(!dn.a.prototype.$isServer){var r=this.table.$el;if(t=On(t),this.height=t,!r&&(t||0===t))return dn.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 dn.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 dn.a.nextTick((function(){return t.updateElsHeight()}));var l=this.tableHeight=this.table.$el.clientHeight,u=this.footerHeight=i?i.offsetHeight:0;null!==this.height&&(this.bodyHeight=l-s-u+(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?l-(c?0:this.gutterWidth):l,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(!dn.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),l=0;i.forEach((function(t,e){if(0!==e){var n=Math.floor((t.minWidth||80)*s);l+=n,t.realWidth=(t.minWidth||80)+n}})),i[0].realWidth=(i[0].minWidth||80)+a-l}}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 u=this.store.states.fixedColumns;if(u.length>0){var c=0;u.forEach((function(t){c+=t.realWidth||t.width})),this.fixedWidth=c}var h=this.store.states.rightFixedColumns;if(h.length>0){var d=0;h.forEach((function(t){d+=t.realWidth||t.width})),this.rightFixedWidth=d}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}(),Rn={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"),l=r[s];l&&a.setAttribute("width",l.realWidth||l.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},Fn={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,l=this.treeRowData,u=this.treeIndent,c=this.columnsHidden,h=void 0===c?[]:c,d=this.isSelected,f=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:d,isExpanded:f,_self:a,column:y,row:r,$index:i};return p===s&&l&&(b.treeNode={indent:l.level*u,level:l.level},"boolean"==typeof l.expanded&&(b.treeNode.expanded=l.expanded,"loading"in l&&(b.treeNode.loading=l.loading),"noLazyChildren"in l&&(b.treeNode.noLazyChildren=l.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])])}))])}},Bn="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:[Rn],components:{ElCheckbox:on.a,ElTooltip:Tt.a,TableRow:Fn},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":Bn(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 l=this.$refs.tooltip;this.tooltipContent=r.innerText||r.textContent,l.referenceElm=r,l.$refs.popper&&(l.$refs.popper.style.display="none"),l.doDestroy(),l.setExpectedState(!0),this.activateTooltip(l)}}},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,l=this.treeIndent,u=this.columns,c=this.firstDefaultColumnIndex,h=this.getRowClass(n,r),d=!0;i&&(h.push("el-table__row--level-"+i.level),d=i.display);var f=d?null:{display:"none"},p=this.getRowHeight(r),g=p?{height:p}:null;return s(Fn,{style:[f,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:u,row:n,index:r,store:this.store,context:this.context||this.table.$vnode.context,firstDefaultColumnIndex:c,treeRowData:i,treeIndent:l,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,l=s.isRowExpanded,u=s.assertRowKey,c=s.states,h=c.treeData,d=c.lazyTreeNodeMap,f=c.childrenColumnName,p=c.rowKey;if(this.hasExpandColumn&&l(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){u();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},l=bn(n,p);if(null==l)throw new Error("for nested data item, row-key is required.");if((y=zn({},h[l]))&&(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 u=d[l]||n[f];t(u,y)}}))}(d[m]||n[f],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=[];!dn.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),$n=n.n(Yn),Xn=i({name:"ElTableFilterPanel",mixins:[D.a,p.a],directives:{Clickoutside:k.a},components:{ElCheckbox:on.a,ElCheckboxGroup:$n.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);Xn.options.__file="packages/table/src/filter-panel.vue";var qn=Xn.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},Jn={name:"ElTableHeader",mixins:[Rn],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 dn.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 l=r.$refs.resizeProxy;l.style.left=this.dragState.startLeft+"px",document.onselectstart=function(){return!1},document.ondragstart=function(){return!1};var u=function(t){var e=t.clientX-n.dragState.startMouseLeft,r=n.dragState.startLeft+e;l.style.left=Math.max(s,r)+"px"};document.addEventListener("mousemove",u),document.addEventListener("mouseup",(function i(){if(n.dragging){var a=n.dragState,s=a.startColumnLeft,c=a.startLeft,h=parseInt(l.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",u),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,l=o.sortingColumn;(l!==e||l===e&&null===l.order)&&(l&&(l.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:{}}}},Qn=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:[Rn],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:Qn({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:Jn,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,l=o.fixedBodyWrapper,u=o.rightFixedBodyWrapper;a&&(a.scrollLeft=e),s&&(s.scrollLeft=e),l&&(l.scrollTop=n),u&&(u.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 Dn({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 lr(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 ur=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||lr,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=ur({},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)}},dr=hr,fr=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()])};fr._withStripped=!0;var pr=n(0),gr={props:{appendToBody:D.a.props.appendToBody,offset:D.a.props.offset,boundariesPadding:D.a.props.boundariesPadding,arrowOffset:D.a.props.arrowOffset},methods:D.a.methods,data:function(){return Ut()({visibleArrow:!0},D.a.data)},beforeDestroy:D.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},Mr=function(t){return null==t||Tr(t)||Array.isArray(t)&&2===t.length&&t.every(Tr)},Ar=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:Mr},disabled:Boolean,clearable:{type:Boolean,default:!0},id:{default:"",validator:Mr},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:d.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 dn.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)}}},fr,[],!1,null,null,null);Ar.options.__file="packages/date-picker/src/picker.vue";var Ir=Ar.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:Xt},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 Dr=Lr.exports,Rr=i({mixins:[p.a],components:{TimeSpinner:Dr},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);Rr.options.__file="packages/date-picker/src/panel/time.vue";var Nr=Rr.exports,Fr=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")])])])};Fr._withStripped=!0;var Br=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))}}}},Fr,[],!1,null,null,null);Br.options.__file="packages/date-picker/src/basic/year-table.vue";var zr=Br.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,l=a.length;s<l;s++){var u=a[s],c=4*i+s,h=new Date(this.date.getFullYear(),c).getTime();u.inRange=t&&h>=t&&h<=e,u.start=t&&h===t,u.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 l=4*o+e,u=new Date(t.date.getFullYear(),l).getTime();s.inRange=u>=Gr(t.minDate)&&u<=Gr(t.maxDate),s.start=t.minDate&&u===Gr(t.minDate),s.end=t.maxDate&&u===Gr(t.maxDate),u===i&&(s.type="today"),s.text=l;var c=new Date(u);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)},l=0;l<4;l++)s(l);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 $r=["sun","mon","tue","wed","thu","fri","sat"],Xr=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 $r.concat($r).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,l=this.startDate,u=this.disabledDate,c=this.cellClassName,h="dates"===this.selectionMode?Object(g.coerceTruthyValueToArray)(this.value):[],d=Xr(new Date),f=0;f<6;f++){var p=a[f];this.showWeekNumber&&(p[0]||(p[0]={type:"week",text:Object(pr.getWeekNumber)(Object(pr.nextDate)(l,7*f+1))}));for(var v=function(e){var a=p[t.showWeekNumber?e+1:e];a||(a={row:f,column:e,type:"normal",inRange:!1,start:!1,end:!1}),a.type="normal";var v=7*f+e,m=Object(pr.nextDate)(l,v-o).getTime();if(a.inRange=m>=Xr(t.minDate)&&m<=Xr(t.maxDate),a.start=t.minDate&&m===Xr(t.minDate),a.end=t.maxDate&&m===Xr(t.maxDate),m===d&&(a.type="today"),f>=0&&f<=1){var y=n+o<0?7+n+o:n+o;e+7*f>=y?a.text=s++:(a.text=i-(y-e%7)+1+7*f,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 u&&u(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){Xr(t)!==Xr(e)&&this.markRange(this.minDate,this.maxDate)},maxDate:function(t,e){Xr(t)!==Xr(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=Xr(t),e=Xr(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],l=0,u=s.length;l<u;l++)if(!this.showWeekNumber||0!==l){var c=s[l],h=7*o+l+(this.showWeekNumber?-1:0),d=Object(pr.nextDate)(r,h-this.offsetDay).getTime();c.inRange=t&&d>=t&&d<=e,c.start=t&&d===t,c.end=e&&d===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,l=this.getDateOfCell(n,r);if("range"===this.selectionMode)this.rangeState.selecting?(l>=this.minDate?this.$emit("pick",{minDate:this.minDate,maxDate:l}):this.$emit("pick",{minDate:l,maxDate:this.minDate}),this.rangeState.selecting=!1):(this.$emit("pick",{minDate:l,maxDate:null}),this.rangeState.selecting=!0);else if("day"===this.selectionMode)this.$emit("pick",l);else if("week"===this.selectionMode){var u=Object(pr.getWeekNumber)(l),c=l.getFullYear()+"w"+u;this.$emit("pick",{year:l.getFullYear(),week:u,value:c,date:l})}else if("dates"===this.selectionMode){var h=this.value||[],d=i.selected?(o=h,(s="function"==typeof(a=function(t){return t.getTime()===l.getTime()})?Object(g.arrayFindIndex)(o,a):o.indexOf(a))>=0?[].concat(o.slice(0,s),o.slice(s+1)):o):[].concat(h,[l]);this.$emit("pick",d)}}}}}},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:d.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 Jr=Kr.exports,Qr=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()])])};Qr._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:d.a,ElButton:Y.a}},Qr,[],!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:d.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:Jr},li={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(li.name,li)}},ui=li,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},di=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},fi=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");Be()(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;di(i,e)<=0;)r.push({value:i,disabled:di(i,this.minTime||"-1:-1")<=0||di(i,this.maxTime||"100:100")>=0}),i=fi(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:Dr},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 Mi=i({name:"ElPopover",mixins:[D.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);Mi.options.__file="packages/popover/src/main.vue";var Ai=Mi.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)}};dn.a.directive("popover",ji),Ai.install=function(t){t.directive("popover",ji),t.component(Ai.name,Ai)},Ai.directive=ji;var ki=Ai,Pi={name:"ElTooltip",mixins:[D.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 dn.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,Di=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)])])])};Di._withStripped=!0;var Ri=n(12),Ni=n.n(Ri),Fi=n(39),Bi=n.n(Fi),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:d.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(Ri.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(Ri.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 Bi.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}}},Di,[],!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},$i=dn.a.extend(Gi),Xi=void 0,qi=void 0,Zi=[],Ki=function(t){if(Xi){var e=Xi.callback;"function"==typeof e&&(qi.showInput?e(qi.inputValue,t):e(t)),Xi.resolve&&("confirm"===t?qi.showInput?Xi.resolve({value:qi.inputValue,action:t}):Xi.resolve(t):!Xi.reject||"cancel"!==t&&"close"!==t||Xi.reject(t))}},Ji=function t(){if(qi||((qi=new $i({el:document.createElement("div")})).callback=Ki),qi.action="",(!qi.visible||qi.closeTimer)&&Zi.length>0){var e=(Xi=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),dn.a.nextTick((function(){qi.visible=!0}))}},Qi=function t(e,n){if(!dn.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}),Ji()}));Zi.push({options:Ut()({},Yi,t.defaults,e),callback:n}),Ji()}};Qi.setDefaults=function(t){Qi.defaults=t},Qi.alert=function(t,e,n){return"object"===(void 0===e?"undefined":Wi(e))?(n=e,e=""):void 0===e&&(e=""),Qi(Ut()({title:e,message:t,$type:"alert",closeOnPressEscape:!1,closeOnClickModal:!1},n))},Qi.confirm=function(t,e,n){return"object"===(void 0===e?"undefined":Wi(e))?(n=e,e=""):void 0===e&&(e=""),Qi(Ut()({title:e,message:t,$type:"confirm",showCancelButton:!0},n))},Qi.prompt=function(t,e,n){return"object"===(void 0===e?"undefined":Wi(e))?(n=e,e=""):void 0===e&&(e=""),Qi(Ut()({title:e,message:t,showCancelButton:!0,showInput:!0,$type:"prompt"},n))},Qi.close=function(){qi.doClose(),qi.visible=!1,Zi=[],Xi=null};var to=Qi,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 lo=so,uo=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)};uo._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)}}},uo,[],!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 l=window.getComputedStyle(s);return"width"===i&&t.tabs.length>1&&(r-=parseFloat(l.paddingLeft)+parseFloat(l.paddingRight)),"width"===i&&(n+=parseFloat(l.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,l=s;r?(i.left<o.left&&(l=s-(o.left-i.left)),i.right>o.right&&(l=s+i.right-o.right)):(i.top<o.top&&(l=s-(o.top-i.top)),i.bottom>o.bottom&&(l=s+(i.bottom-o.bottom))),l=Math.max(l,0),this.navOffset=Math.min(l,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,l=this.navStyle,u=this.scrollable,c=this.scrollNext,h=this.scrollPrev,d=this.changeTab,f=this.setFocus,p=this.removeFocus,g=u?[t("span",{class:["el-tabs__nav-prev",u.prev?"":"is-disabled"],on:{click:h}},[t("i",{class:"el-icon-arrow-left"})]),t("span",{class:["el-tabs__nav-next",u.next?"":"is-disabled"],on:{click:c}},[t("i",{class:"el-icon-arrow-right"})])]:null,v=this._l(r,(function(n,r){var o,l=n.name||n.index||r,u=n.isClosable||i;n.index=""+r;var c=u?t("span",{class:"el-icon-close",on:{click:function(t){s(n,t)}}}):null,h=n.$slots.label||n.label,d=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"]=u,o["is-focus"]=e.isFocus,o),attrs:{id:"tab-"+l,"aria-controls":"pane-"+l,role:"tab","aria-selected":n.active,tabindex:d},key:"tab-"+l,ref:"tabs",refInFor:!0,on:{focus:function(){f()},blur:function(){p()},click:function(t){p(),a(n,l,t)},keydown:function(t){!u||46!==t.keyCode&&8!==t.keyCode||s(n,t)}}},[h,c])}));return t("div",{class:["el-tabs__nav-wrap",u?"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:l,attrs:{role:"tablist"},on:{keydown:d}},[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 Mo=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,l=this.editable,u=this.addable,c=this.tabPosition,h=this.stretch,d=l||u?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,f=t("div",{class:["el-tabs__header","is-"+c]},[d,t("tab-nav",{props:{currentName:a,onTabClick:r,onTabRemove:i,editable:l,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?[f,p]:[p,f]])},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);Mo.options.__file="packages/tabs/src/tabs.vue";var Ao=Mo.exports;Ao.install=function(t){t.component(Ao.name,Ao)};var Io=Ao,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,Do=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);Do.options.__file="packages/tag/src/tag.vue";var Ro=Do.exports;Ro.install=function(t){t.component(Ro.name,Ro)};var No=Ro,Fo=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)};Fo._withStripped=!0;var Bo="$treeNodeId",zo=function(t,e){e&&!e[Bo]&&Object.defineProperty(e,Bo,{value:t.id,enumerable:!1,configurable:!1,writable:!1})},Vo=function(t,e){return t?e[t]:e[Bo]},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,$o=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 l=i[a];if(l===t||e&&n(l)){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 l=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 l=s.disabled?s.checked:r;s.setChecked(l,e,!0,r)}var u=Go(n),c=u.half,h=u.all;h||(i.checked=h,i.indeterminate=c)}};if(this.shouldLoadData())return void this.loadData((function(){l(),Ho(i)}),{checked:!1!==t});l()}var u=this.parent;u&&0!==u.level&&(n||Ho(u))}},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[Bo];!!o&&Object(g.arrayFindIndex)(n,(function(t){return t[Bo]===o}))>=0?r[o]={index:e,data:t}:i.push({index:e,data:t})})),this.store.lazy||n.forEach((function(e){r[e[Bo]]||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}(),Xo="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 $o({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 $o)return t;var e="object"!==(void 0===t?"undefined":Xo(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 l=e[a];this.append(l,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 l=r[a],u=l.data[t].toString(),c=o.indexOf(u)>-1;if(c){for(var h=l.parent;h&&h.level>0;)i[h.data[t]]=!0,h=h.parent;l.isLeaf||this.checkStrictly?l.setChecked(!0,!1):(l.setChecked(!0,!0),e&&function(){l.setChecked(!1,!1);!function t(e){e.childNodes.forEach((function(e){e.isLeaf||e.setChecked(!1,!1),t(e)}))}(l)}())}else l.checked&&!i[u]&&l.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 Jo=Ko.exports,Qo=i({name:"ElTree",mixins:[S.a],components:{ElTreeNode:Jo},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(Ri.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,l=!0,u=!0,c=!0;"function"==typeof t.allowDrop&&(s=t.allowDrop(a.node,i.node,"prev"),c=l=t.allowDrop(a.node,i.node,"inner"),u=t.allowDrop(a.node,i.node,"next")),n.dataTransfer.dropEffect=l?"move":"none",(s||l||u)&&o!==i&&(o&&t.$emit("node-drag-leave",a.node,o.node,n),t.$emit("node-drag-enter",a.node,i.node,n)),(s||l||u)&&(e.dropNode=i),i.node.nextSibling===a.node&&(u=!1),i.node.previousSibling===a.node&&(s=!1),i.node.contains(a.node,!1)&&(l=!1),(a.node===i.node||a.node.contains(i.node))&&(s=!1,l=!1,u=!1);var h=i.$el.getBoundingClientRect(),d=t.$el.getBoundingClientRect(),f=void 0,p=s?l?.25:u?.45:1:-1,g=u?l?.75:s?.55:0:1,v=-9999,m=n.clientY-h.top;f=m<h.height*p?"before":m>h.height*g?"after":l?"inner":"none";var y=i.$el.querySelector(".el-tree-node__expand-icon").getBoundingClientRect(),b=t.$refs.dropIndicator;"before"===f?v=y.top-d.top:"after"===f&&(v=y.bottom-d.top),b.style.top=v+"px",b.style.left=y.right-d.left+"px","inner"===f?Object(pt.addClass)(i.$el,"is-drop-inner"):Object(pt.removeClass)(i.$el,"is-drop-inner"),e.showDropIndicator="before"===f||"after"===f,e.allowDrop=e.showDropIndicator||c,e.dropType=f,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]")}},Fo,[],!1,null,null,null);Qo.options.__file="packages/tree/src/tree.vue";var ta=Qo.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 la={success:"success",info:"info",warning:"warning",error:"error"},ua=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&&la[this.type]?"el-icon-"+la[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);ua.options.__file="packages/notification/src/main.vue";var ca=ua.exports,ha=dn.a.extend(ca),da=void 0,fa=[],pa=1,ga=function t(e){if(!dn.a.prototype.$isServer){var n=(e=Ut()({},e)).onClose,r="notification_"+pa++,i=e.position||"top-right";e.onClose=function(){t.close(r,n)},da=new ha({data:e}),Object(Hi.isVNode)(e.message)&&(da.$slots.default=[e.message],e.message="REPLACED_BY_VNODE"),da.id=r,da.$mount(),document.body.appendChild(da.$el),da.visible=!0,da.dom=da.$el,da.dom.style.zIndex=b.PopupManager.nextZIndex();var o=e.offset||0;return fa.filter((function(t){return t.position===i})).forEach((function(t){o+=t.$el.offsetHeight+16})),o+=16,da.verticalOffset=o,fa.push(da),da}};["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=fa.length,i=fa.filter((function(e,r){return e.id===t&&(n=r,!0)}))[0];if(i&&("function"==typeof e&&e(i),fa.splice(n,1),!(r<=1)))for(var o=i.position,a=i.dom.offsetHeight,s=n;s<r-1;s++)fa[s].position===o&&(fa[s].dom.style[i.verticalProperty]=parseInt(fa[s].dom.style[i.verticalProperty],10)-a-16+"px")},ga.closeAll=function(){for(var t=fa.length-1;t>=0;t--)fa[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 Ma=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);Ma.options.__file="packages/loading/src/loading.vue";var Aa=Ma.exports,Ia=n(32),ja=n.n(Ia),ka=dn.a.extend(Aa),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"),l=r.context,u=new ka({el:document.createElement("div"),data:{text:l&&l[i]||i,spinner:l&&l[o]||o,background:l&&l[a]||a,customClass:l&&l[s]||s,fullscreen:!!n.modifiers.fullscreen}});t.instance=u,t.mask=u.$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,Da=dn.a.extend(Aa),Ra={text:null,fullscreen:!0,body:!1,lock:!1,customClass:""},Na=void 0;Da.prototype.originalPosition="",Da.prototype.originalOverflow="",Da.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 Fa=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]}))},Ba=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!dn.a.prototype.$isServer){if("string"==typeof(t=Ut()({},Ra,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 Da({el:document.createElement("div"),data:t});return Fa(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),dn.a.nextTick((function(){n.visible=!0})),t.fullscreen&&(Na=n),n}},za={install:function(t){t.use(La),t.prototype.$loading=Ba},directive:La,service:Ba},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,$a="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},Xa={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"===$a(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(Xa.name,Xa)}},qa=Xa,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),Ja=n.n(Ka),Qa=i({name:"ElUploadList",mixins:[p.a],data:function(){return{focusing:!1}},components:{ElProgress:Ja.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);Qa.options.__file="packages/upload/src/upload-list.vue";var ts=Qa.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,l=this.uploadFiles,u=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:u},on:{file:l}},[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 ls=i({name:"ElUpload",mixins:[w.a],components:{ElProgress:Ja.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);ls.options.__file="packages/upload/src/index.vue";var us=ls.exports;us.install=function(t){t.component(us.name,us)};var cs=us,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 ds=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);ds.options.__file="packages/progress/src/progress.vue";var fs=ds.exports;fs.install=function(t){t.component(fs.name,fs)};var ps=fs,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=dn.a.extend(ws),Es=void 0,Ts=[],Ms=1,As=function t(e){if(!dn.a.prototype.$isServer){"string"==typeof(e=e||{})&&(e={message:e});var n=e.onClose,r="message_"+Ms++;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){As[t]=function(e){return Object(Os.isObject)(e)&&!Object(Hi.isVNode)(e)?As(Ss({},e,{type:t})):As({type:t,message:e})}})),As.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"}},As.closeAll=function(){for(var t=Ts.length-1;t>=0;t--)Ts[t].close()};var Is=As,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,Ds=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)])};Ds._withStripped=!0;var Rs=i({name:"ElCard",props:{header:{},bodyStyle:{},shadow:{type:String}}},Ds,[],!1,null,null,null);Rs.options.__file="packages/card/src/main.vue";var Ns=Rs.exports;Ns.install=function(t){t.component(Ns.name,Ns)};var Fs=Ns,Bs=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)};Bs._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)}},Bs,[],!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,$s=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)])])};$s._withStripped=!0;var Xs=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()}))}},$s,[],!1,null,null,null);Xs.options.__file="packages/steps/src/step.vue";var qs=Xs.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 Js=n(25),Qs=n.n(Js),tl=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=Qs()(300,!0,(function(e){t.setActiveItem(e)})),this.throttledIndicatorHover=Qs()(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);tl.options.__file="packages/carousel/src/main.vue";var el=tl.exports;el.install=function(t){t.component(el.name,el)};var nl=el,rl={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 il(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 ol={name:"Bar",props:{vertical:Boolean,size:String,move:Number},computed:{bar:function(){return rl[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:il({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)}},al={name:"ElScrollbar",components:{Bar:ol},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(ol,{attrs:{move:this.moveX,size:this.sizeWidth}}),t(ol,{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(al.name,al)}},sl=al,ll=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)};ll._withStripped=!0;var ul=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()}},ll,[],!1,null,null,null);ul.options.__file="packages/carousel/src/item.vue";var cl=ul.exports;cl.install=function(t){t.component(cl.name,cl)};var hl=cl,dl=function(){var t=this.$createElement;return(this._self._c||t)("div",{staticClass:"el-collapse",attrs:{role:"tablist","aria-multiselectable":"true"}},[this._t("default")],2)};dl._withStripped=!0;var fl=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)}},dl,[],!1,null,null,null);fl.options.__file="packages/collapse/src/collapse.vue";var pl=fl.exports;pl.install=function(t){t.component(pl.name,pl)};var gl=pl,vl=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)};vl._withStripped=!0;var ml=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)}}},vl,[],!1,null,null,null);ml.options.__file="packages/collapse/src/collapse-item.vue";var yl=ml.exports;yl.install=function(t){t.component(yl.name,yl)};var bl=yl,_l=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)};_l._withStripped=!0;var xl=n(42),wl=n.n(xl),Ol=n(34),Sl=n.n(Ol),Cl=Sl.a.keys,El={expandTrigger:{newProp:"expandTrigger",type:String},changeOnSelect:{newProp:"checkStrictly",type:Boolean},hoverThreshold:{newProp:"hoverThreshold",type:Number}},Tl={props:{placement:{type:String,default:"bottom-start"},appendToBody:D.a.props.appendToBody,visibleArrow:{type:Boolean,default:!0},arrowOffset:D.a.props.arrowOffset,offset:D.a.props.offset,boundariesPadding:D.a.props.boundariesPadding,popperOptions:D.a.props.popperOptions},methods:D.a.methods,data:D.a.data,beforeDestroy:D.a.beforeDestroy},Ml={medium:36,small:32,mini:28},Al=i({name:"ElCascader",directives:{Clickoutside:k.a},mixins:[Tl,S.a,p.a,w.a],inject:{elForm:{default:""},elFormItem:{default:""}},components:{ElInput:d.a,ElTag:Re.a,ElScrollbar:N.a,ElCascaderPanel:wl.a},props:{value:{},options:Array,props:Object,size:String,placeholder:{type:String,default:function(){return Object(Ri.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(El).forEach((function(n){var r=El[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||Ml[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 Cl.enter:this.toggleDropDownVisible();break;case Cl.down:this.toggleDropDownVisible(!0),this.focusFirstNode(),t.preventDefault();break;case Cl.esc:case Cl.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 l=o[0],u=o.slice(1),c=u.length;a.push(s(l)),c&&(i?a.push({key:-1,text:"+ "+c,closable:!1}):u.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 Cl.enter:n.click();break;case Cl.up:var r=n.previousElementSibling;r&&r.focus();break;case Cl.down:var i=n.nextElementSibling;i&&i.focus();break;case Cl.esc:case Cl.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)}}},_l,[],!1,null,null,null);Al.options.__file="packages/cascader/src/cascader.vue";var Il=Al.exports;Il.install=function(t){t.component(Il.name,Il)};var jl=Il,kl=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)};kl._withStripped=!0;var Pl="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 Ll=function(t,e,n){return[t,e*n/((t=(2-e)*n)<1?t:2-t)||0,t/2]},Dl=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)},Rl={10:"A",11:"B",12:"C",13:"D",14:"E",15:"F"},Nl={A:10,B:11,C:12,D:13,E:14,F:15},Fl=function(t){return 2===t.length?16*(Nl[t[0].toUpperCase()]||+t[0])+(Nl[t[1].toUpperCase()]||+t[1]):Nl[t[1].toUpperCase()]||+t[1]},Bl=function(t,e,n){t=Dl(t,255),e=Dl(e,255),n=Dl(n,255);var r,i=Math.max(t,e,n),o=Math.min(t,e,n),a=void 0,s=i,l=i-o;if(r=0===i?0:l/i,i===o)a=0;else{switch(i){case t:a=(e-n)/l+(e<n?6:0);break;case e:a=(n-t)/l+2;break;case n:a=(t-e)/l+4}a/=6}return{h:360*a,s:100*r,v:100*s}},zl=function(t,e,n){t=6*Dl(t,360),e=Dl(e,100),n=Dl(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),l=r%6,u=[n,a,o,o,s,n][l],c=[s,n,n,a,o,o][l],h=[o,o,s,n,n,a][l];return{r:Math.round(255*u),g:Math.round(255*c),b:Math.round(255*h)}},Vl=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":Pl(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 zl(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=Bl(a[0],a[1],a[2]);n(s.h,s.s,s.v)}}else if(-1!==t.indexOf("#")){var l=t.replace("#","").trim();if(!/^(?:[0-9a-fA-F]{3}){1,2}|[0-9a-fA-F]{8}$/.test(l))return;var u=void 0,c=void 0,h=void 0;3===l.length?(u=Fl(l[0]+l[0]),c=Fl(l[1]+l[1]),h=Fl(l[2]+l[2])):6!==l.length&&8!==l.length||(u=Fl(l.substring(0,2)),c=Fl(l.substring(2,4)),h=Fl(l.substring(4,6))),8===l.length?this._alpha=Math.floor(Fl(l.substring(6))/255*100):3!==l.length&&6!==l.length||(this._alpha=100);var d=Bl(u,c,h);n(d.h,d.s,d.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=Ll(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=zl(t,e,n),s=a.r,l=a.g,u=a.b;this.value="rgba("+s+", "+l+", "+u+", "+r/100+")"}else switch(i){case"hsl":var c=Ll(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=zl(t,e,n),d=h.r,f=h.g,p=h.b;this.value="rgb("+d+", "+f+", "+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""+(Rl[e]||e)+(Rl[n]||n)};return isNaN(e)||isNaN(n)||isNaN(r)?"":"#"+i(e)+i(n)+i(r)}(zl(t,e,n))}},t}(),Ul=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)])};Ul._withStripped=!0;var Gl=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")])])};Gl._withStripped=!0;var Hl=!1,Wl=function(t,e){if(!dn.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,Hl=!1,e.end&&e.end(r)};t.addEventListener("mousedown",(function(t){Hl||(document.onselectstart=function(){return!1},document.ondragstart=function(){return!1},document.addEventListener("mousemove",n),document.addEventListener("mouseup",r),Hl=!0,e.start&&e.start(t))}))}},Yl=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;Wl(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%)"}}},Gl,[],!1,null,null,null);Yl.options.__file="packages/color-picker/src/components/sv-panel.vue";var $l=Yl.exports,Xl=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"}})])};Xl._withStripped=!0;var ql=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)}};Wl(n,i),Wl(r,i),this.update()}},Xl,[],!1,null,null,null);ql.options.__file="packages/color-picker/src/components/hue-slider.vue";var Zl=ql.exports,Kl=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"}})])};Kl._withStripped=!0;var Jl=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)}};Wl(n,i),Wl(r,i),this.update()}},Kl,[],!1,null,null,null);Jl.options.__file="packages/color-picker/src/components/alpha-slider.vue";var Ql=Jl.exports,tu=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)])};tu._withStripped=!0;var eu=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 Vl;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 Vl;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)}}},tu,[],!1,null,null,null);eu.options.__file="packages/color-picker/src/components/predefine.vue";var nu=eu.exports,ru=i({name:"el-color-picker-dropdown",mixins:[D.a,p.a],components:{SvPanel:$l,HueSlider:Zl,AlphaSlider:Ql,ElInput:d.a,ElButton:Y.a,Predefine:nu},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}}}},Ul,[],!1,null,null,null);ru.options.__file="packages/color-picker/src/components/picker-dropdown.vue";var iu=ru.exports,ou=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 Vl({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 Vl))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 Vl({enableAlpha:this.showAlpha,format:this.colorFormat}),showPicker:!1,showPanelColor:!1}},components:{PickerDropdown:iu}},kl,[],!1,null,null,null);ou.options.__file="packages/color-picker/src/main.vue";var au=ou.exports;au.install=function(t){t.component(au.name,au)};var su=au,lu=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)};lu._withStripped=!0;var uu=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()])};uu._withStripped=!0;var cu=i({mixins:[p.a],name:"ElTransferPanel",componentName:"ElTransferPanel",components:{ElCheckboxGroup:$n.a,ElCheckbox:on.a,ElInput:d.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="")}}},uu,[],!1,null,null,null);cu.options.__file="packages/transfer/src/transfer-panel.vue";var hu=cu.exports,du=i({name:"ElTransfer",mixins:[S.a,p.a,w.a],components:{TransferPanel:hu,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="")}}},lu,[],!1,null,null,null);du.options.__file="packages/transfer/src/main.vue";var fu=du.exports;fu.install=function(t){t.component(fu.name,fu)};var pu=fu,gu=function(){var t=this.$createElement;return(this._self._c||t)("section",{staticClass:"el-container",class:{"is-vertical":this.isVertical}},[this._t("default")],2)};gu._withStripped=!0;var vu=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})))}}},gu,[],!1,null,null,null);vu.options.__file="packages/container/src/main.vue";var mu=vu.exports;mu.install=function(t){t.component(mu.name,mu)};var yu=mu,bu=function(){var t=this.$createElement;return(this._self._c||t)("header",{staticClass:"el-header",style:{height:this.height}},[this._t("default")],2)};bu._withStripped=!0;var _u=i({name:"ElHeader",componentName:"ElHeader",props:{height:{type:String,default:"60px"}}},bu,[],!1,null,null,null);_u.options.__file="packages/header/src/main.vue";var xu=_u.exports;xu.install=function(t){t.component(xu.name,xu)};var wu=xu,Ou=function(){var t=this.$createElement;return(this._self._c||t)("aside",{staticClass:"el-aside",style:{width:this.width}},[this._t("default")],2)};Ou._withStripped=!0;var Su=i({name:"ElAside",componentName:"ElAside",props:{width:{type:String,default:"300px"}}},Ou,[],!1,null,null,null);Su.options.__file="packages/aside/src/main.vue";var Cu=Su.exports;Cu.install=function(t){t.component(Cu.name,Cu)};var Eu=Cu,Tu=function(){var t=this.$createElement;return(this._self._c||t)("main",{staticClass:"el-main"},[this._t("default")],2)};Tu._withStripped=!0;var Mu=i({name:"ElMain",componentName:"ElMain"},Tu,[],!1,null,null,null);Mu.options.__file="packages/main/src/main.vue";var Au=Mu.exports;Au.install=function(t){t.component(Au.name,Au)};var Iu=Au,ju=function(){var t=this.$createElement;return(this._self._c||t)("footer",{staticClass:"el-footer",style:{height:this.height}},[this._t("default")],2)};ju._withStripped=!0;var ku=i({name:"ElFooter",componentName:"ElFooter",props:{height:{type:String,default:"60px"}}},ju,[],!1,null,null,null);ku.options.__file="packages/footer/src/main.vue";var Pu=ku.exports;Pu.install=function(t){t.component(Pu.name,Pu)};var Lu=Pu,Du=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);Du.options.__file="packages/timeline/src/main.vue";var Ru=Du.exports;Ru.install=function(t){t.component(Ru.name,Ru)};var Nu=Ru,Fu=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 ")])])])};Fu._withStripped=!0;var Bu=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}},Fu,[],!1,null,null,null);Bu.options.__file="packages/timeline/src/item.vue";var zu=Bu.exports;zu.install=function(t){t.component(zu.name,zu)};var Vu=zu,Uu=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)};Uu._withStripped=!0;var Gu=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)}}},Uu,[],!1,null,null,null);Gu.options.__file="packages/link/src/main.vue";var Hu=Gu.exports;Hu.install=function(t){t.component(Hu.name,Hu)};var Wu=Hu,Yu=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()])};Yu._withStripped=!0;var $u=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)}}}},Yu,[],!0,null,null,null);$u.options.__file="packages/divider/src/main.vue";var Xu=$u.exports;Xu.install=function(t){t.component(Xu.name,Xu)};var qu=Xu,Zu=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)};Zu._withStripped=!0;var Ku=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)])};Ku._withStripped=!0;var Ju=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},Qu={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:Qu.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===Qu.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(Qu),e=(Object.values(Qu).indexOf(this.mode)+1)%t.length;this.mode=Qu[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=Ju({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)}},Ku,[],!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",lc="scale-down",uc="",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=Qs()(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===lc&&(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&&(uc=document.body.style.overflow,document.body.style.overflow="hidden",this.showViewer=!0)},closeViewer:function(){document.body.style.overflow=uc,this.showViewer=!1}}},Zu,[],!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 dc=hc,fc=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)])};fc._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,l=Object(pr.getFirstDayOfMonth)(s),u=(7+(l=0===l?7:l)-("number"==typeof this.firstDayOfWeek?this.firstDayOfWeek:1))%7,c=Object(pr.getPrevMonthLastDays)(s,u).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 d=Object(pr.range)(42-t.length).map((function(t,e){return{text:e+1,type:"next"}}));t=t.concat(d)}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:X.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 l=this.realFirstDayOfWeek,u=a.getDay(),c=0;return u!==l&&(c=0===l?7-u:(c=l-u)>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}}},fc,[],!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=Qs()(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,Mc=function(t,e){return t===window||t===document?document.documentElement[e]:t[e]},Ac=function(t){return Mc(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,l=t.getAttribute("infinite-scroll-"+i);switch(l=Object(Os.isUndefined)(e[l])?l:e[l],a){case Number:l=Number(l),l=Number.isNaN(l)?s:l;break;case Boolean:l=Object(Os.isDefined)(l)?"false"!==l&&Boolean(l):s;break;default:l=a(l)}return n[i]=l,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 l=i.getBoundingClientRect();if(l.width||l.height){var u=!1;if(i===n){var c=i.scrollTop+function(t){return Mc(t,"clientHeight")}(i);u=i.scrollHeight-c<=s}else{u=Ac(n)+Pc(n)-Pc(i)-Ac(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}u&&Object(Os.isFunction)(t)?t.call(r):o&&(o.disconnect(),this[Ic].observer=null)}}},Dc={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,l=a.immediate,u=I()(s,Lc.bind(t,r));(t[Ic]={el:t,vm:i,container:o,onScroll:u},o)&&(o.addEventListener("scroll",u),l&&((t[Ic].observer=new MutationObserver(u)).observe(o,{childList:!0,subtree:!0}),u()))},unbind:function(t){var e=t[Ic],n=e.container,r=e.onScroll;n&&n.removeEventListener("scroll",r)},install:function(t){t.directive(Dc.name,Dc)}},Rc=Dc,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 Fc=i({name:"ElPageHeader",props:{title:{type:String,default:function(){return Object(Ri.t)("el.pageHeader.title")}},content:String}},Nc,[],!1,null,null,null);Fc.options.__file="packages/page-header/src/main.vue";var Bc=Fc.exports;Bc.install=function(t){t.component(Bc.name,Bc)};var zc=Bc,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,l=this.nodeId,u=s.expandTrigger,c=s.checkStrictly,h=s.multiple,d=!c&&a,f={on:{}};return"click"===u?f.on.click=this.handleExpand:(f.on.mouseenter=function(t){e.handleExpand(),e.$emit("expand",t)},f.on.focus=function(t){e.handleExpand(),e.$emit("expand",t)}),!o||a||c||h||(f.on.click=this.handleCheckChange),t("li",ns()([{attrs:{role:"menuitem",id:l,"aria-expanded":n,tabindex:d?null:-1},class:{"el-cascader-node":!0,"is-selectable":c,"in-active-path":n,"in-checked-path":r,"is-active":i,"is-disabled":d}},f]),[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,$c=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,l=a.offsetHeight,u=e.offsetTop,c=u+e.offsetHeight;r.innerHTML='\n <path style="pointer-events: auto;" fill="transparent" d="M'+o+" "+u+" L"+s+" 0 V"+u+' Z" />\n <path style="pointer-events: auto;" fill="transparent" d="M'+o+" "+c+" L"+s+" "+l+" 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);$c.options.__file="packages/cascader-panel/src/cascader-menu.vue";var Xc=$c.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 Jc=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}),[])},Qc=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:Jc(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=Sl.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:Xc},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 Qc(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 Qc([],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 l=n.store.getNodeByValue(o);l.data[s]||n.lazyLoad(l,(function(){n.handleExpand(l)})),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");Be()(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 lh=sh.exports;lh.install=function(t){t.component(lh.name,lh)};var uh=lh,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 dh=hh,fh=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()])])])])};fh._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)}},fh,[],!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(Ri.t)("el.popconfirm.confirmButtonText")},displayCancelButtonText:function(){return this.cancelButtonText||Object(Ri.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 Mh=i({name:"ImgPlaceholder"},Th,[],!1,null,null,null);Mh.options.__file="packages/skeleton/src/img-placeholder.vue";var Ah,Ih=Mh.exports,jh=i({name:"ElSkeletonItem",props:{variant:{type:String,default:"text"}},components:(Ah={},Ah[Ih.name]=Ih,Ah)},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 Dh=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"}})])])])])};Dh._withStripped=!0;var Rh=0,Nh=i({name:"ImgEmpty",data:function(){return{id:++Rh}}},Dh,[],!1,null,null,null);Nh.options.__file="packages/empty/src/img-empty.vue";var Fh,Bh=Nh.exports,zh=i({name:"ElEmpty",components:(Fh={},Fh[Bh.name]=Bh,Fh),props:{image:{type:String,default:""},imageSize:Number,description:{type:String,default:""}},computed:{emptyDescription:function(){return this.description||Object(Ri.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},$h={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 l=o[s].default;void 0!==l&&(a[s]=Object(Os.isFunction)(l)?l.call(t):l)}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($h.name,$h)}},Xh=$h,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 Jh=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"}})])};Jh._withStripped=!0;var Qh=i({name:"IconSuccess"},Jh,[],!1,null,null,null);Qh.options.__file="packages/result/src/icon-success.vue";var td=Qh.exports,ed=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"}})])};ed._withStripped=!0;var nd=i({name:"IconError"},ed,[],!1,null,null,null);nd.options.__file="packages/result/src/icon-error.vue";var rd=nd.exports,id=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"}})])};id._withStripped=!0;var od=i({name:"IconWarning"},id,[],!1,null,null,null);od.options.__file="packages/result/src/icon-warning.vue";var ad=od.exports,sd=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"}})])};sd._withStripped=!0;var ld=i({name:"IconInfo"},sd,[],!1,null,null,null);ld.options.__file="packages/result/src/icon-info.vue";var ud,cd=ld.exports,hd={success:"icon-success",warning:"icon-warning",error:"icon-error",info:"icon-info"},dd=i({name:"ElResult",components:(ud={},ud[td.name]=td,ud[rd.name]=rd,ud[ad.name]=ad,ud[cd.name]=cd,ud),props:{title:{type:String,default:""},subTitle:{type:String,default:""},icon:{type:String,default:"info"}},computed:{iconElement:function(){var t=this.icon;return t&&hd[t]?hd[t]:"icon-info"}}},Kh,[],!1,null,null,null);dd.options.__file="packages/result/src/index.vue";var fd=dd.exports;fd.install=function(t){t.component(fd.name,fd)};var pd=fd,gd=[m,T,H,K,et,ot,mt,St,It,Lt,Yt,Kt,ee,ae,ce,pe,ye,we,Ee,Ue,Ge,$e,Ke,en,or,dr,ui,mi,Ei,ki,Li,io,lo,fo,xo,Io,Lo,No,ea,aa,Ea,Ha,Ya,qa,cs,ps,ys,Ls,Fs,Us,Ys,Zs,nl,sl,hl,gl,bl,jl,su,pu,yu,wu,Eu,Iu,Lu,Nu,Vu,Wu,qu,dc,wc,Tc,zc,uh,dh,vh,xh,Ch,Ph,Gh,Xh,Zh,pd,bt.a],vd=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Ni.a.use(e.locale),Ni.a.i18n(e.i18n),gd.forEach((function(e){t.component(e.name,e)})),t.use(Rc),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&&vd(window.Vue);e.default={version:"2.15.7",locale:Ni.a.use,i18n:Ni.a.i18n,install:vd,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:$e,Button:Ke,ButtonGroup:en,Table:or,TableColumn:dr,DatePicker:ui,TimeSelect:mi,TimePicker:Ei,Popover:ki,Tooltip:Li,MessageBox:to,Breadcrumb:io,BreadcrumbItem:lo,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:Fs,Rate:Us,Steps:Ys,Step:Zs,Carousel:nl,Scrollbar:sl,CarouselItem:hl,Collapse:gl,CollapseItem:bl,Cascader:jl,ColorPicker:su,Transfer:pu,Container:yu,Header:wu,Aside:Eu,Main:Iu,Footer:Lu,Timeline:Nu,TimelineItem:Vu,Link:Wu,Divider:qu,Image:dc,Calendar:wc,Backtop:Tc,InfiniteScroll:Rc,PageHeader:zc,CascaderPanel:uh,Avatar:dh,Drawer:vh,Popconfirm:xh,Skeleton:Ch,SkeletonItem:Ph,Empty:Gh,Descriptions:Xh,DescriptionsItem:Zh,Result:pd}}]).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(902),o=(r=i)&&r.__esModule?r:{default:r},a=n(768);var s=["sun","mon","tue","wed","thu","fri","sat"],l=["jan","feb","mar","apr","may","jun","jul","aug","sep","oct","nov","dec"],u=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:l.map((function(t){return(0,a.t)("el.datepicker.months."+t)})),monthNames:l.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))},d=(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",u()):""},e.parseDate=function(t,e){return o.default.parse(t,e||"yyyy-MM-dd",u())}),f=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(),l=i.getMinutes();o===e&&s!==e?g(n,a,60,!0):o===e&&s===e?g(n,a,l+1,!0):o!==e&&s===e?g(n,0,l+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=d(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],l=a[0][0];a.forEach((function(t){s=new Date(Math.min(t[0],s)),l=new Date(Math.max(t[1],s))}));var u=i<s?s:l;return m(u,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(),f(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 l=s;t.exports=l},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(284),o=/(%|)\{([0-9a-zA-Z_]+)\}/g},function(t,e,n){"use strict";e.__esModule=!0;var r,i=n(200),o=(r=i)&&r.__esModule?r:{default:r},a=n(323);var s=!1,l=!1,u=void 0,c=function(){if(!o.default.prototype.$isServer){var t=d.modalDom;return t?s=!0:(s=!1,t=document.createElement("div"),d.modalDom=t,t.addEventListener("touchmove",(function(t){t.preventDefault(),t.stopPropagation()})),t.addEventListener("click",(function(){d.doOnModalClick&&d.doOnModalClick()}))),t}},h={},d={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 d.zIndex++},modalStack:[],doOnModalClick:function(){var t=d.modalStack[d.modalStack.length-1];if(t){var e=d.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 l=this.modalStack,u=0,h=l.length;u<h;u++){if(l[u].id===t)return}var d=c();if((0,a.addClass)(d,"v-modal"),this.modalFade&&!s&&(0,a.addClass)(d,"v-modal-enter"),r)r.trim().split(/\s+/).forEach((function(t){return(0,a.addClass)(d,t)}));setTimeout((function(){(0,a.removeClass)(d,"v-modal-enter")}),200),n&&n.parentNode&&11!==n.parentNode.nodeType?n.parentNode.appendChild(d):document.body.appendChild(d),e&&(d.style.zIndex=e),d.tabIndex=0,d.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",d.modalDom=void 0),(0,a.removeClass)(n,"v-modal-leave")}),200))}};Object.defineProperty(d,"zIndex",{configurable:!0,get:function(){return l||(u=u||(o.default.prototype.$ELEMENT||{}).zIndex||2e3,l=!0),u},set:function(t){u=t}});o.default.prototype.$isServer||window.addEventListener("keydown",(function(t){if(27===t.keyCode){var e=function(){if(!o.default.prototype.$isServer&&d.modalStack.length>0){var t=d.modalStack[d.modalStack.length-1];if(!t)return;return d.getInstance(t.id)}}();e&&e.closeOnPressEscape&&(e.handleClose?e.handleClose():e.handleAction?e.handleAction("cancel"):e.close())}})),e.default=d},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 l(e){var n=e.offsetParent;return n!==t.document.body&&n?n:t.document.documentElement}function u(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:u(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 d(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 f(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[f("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),l(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),l(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 l(t,e){e.forEach((function(e){t.setAttribute(e.split(":")[0],e.split(":")[1]||"")}))}},n.prototype._getPosition=function(e,n){return l(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=d(t),i=d(e);if(n){var o=u(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,l(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=u(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 d=l(this._popper),f=u(this._popper),p=h(d),g="fixed"===e.offsets.popper.position?0:(o=f)==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}(f);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=l(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=f("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}}},l=-1!==["bottom","top"].indexOf(n)?"x":"y";t.offsets.popper=Object.assign(a,s[l][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,l){if(e===s&&a.length!==l+1){e=t.placement.split("-")[0],n=i(e);var u=o(t.offsets.popper),c=-1!==["right","bottom"].indexOf(e);(c&&Math.floor(t.offsets.reference[e])>Math.floor(u[n])||!c&&Math.floor(t.offsets.reference[e])<Math.floor(u[n]))&&(t.flipped=!0,t.placement=a[l+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),l=t.offsets.reference,u=-1!==["left","right"].indexOf(a),c=u?"height":"width",h=u?"top":"left",d=u?"left":"top",f=u?"bottom":"right",p=r(e)[c];l[f]-p<s[h]&&(t.offsets.popper[h]-=s[h]-(l[f]-p)),l[h]+p>s[f]&&(t.offsets.popper[h]+=l[h]+p-s[f]);var g=l[h]+(n||l[c]/2-p/2)-s[h];return g=Math.max(Math.min(s[c]-p-8,g),8),i[h]=g,i[d]="",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],l=Object.getOwnPropertyDescriptor(r,s);void 0!==l&&l.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 l,u="function"==typeof t?t.options:t;if(e&&(u.render=e,u.staticRenderFns=n,u._compiled=!0),r&&(u.functional=!0),o&&(u._scopeId="data-v-"+o),a?(l=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)},u._ssrRegister=l):i&&(l=s?function(){i.call(this,(u.functional?this.parent:this).$root.$options.shadowRoot)}:i),l)if(u.functional){u._injectStyles=l;var c=u.render;u.render=function(t,e){return l.call(e),c(t,e)}}else{var h=u.beforeCreate;u.beforeCreate=h?[].concat(h,l):[l]}return{exports:t,options:u}}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,l=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&&l()}function s(){o(a)}function l(){var t=Date.now();if(n){if(t-i<2)return;r=!0}else n=!0,r=!1,setTimeout(s,e);i=t}return l}(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}(),u=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 d(t){return parseFloat(t)||0}function f(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return e.reduce((function(e,n){return e+d(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]=d(o)}return e}(r),o=i.left+i.right,a=i.top+i.bottom,s=d(r.width),l=d(r.height);if("border-box"===r.boxSizing&&(Math.round(s+o)!==e&&(s-=f(r,"left","right")+o),Math.round(l+a)!==n&&(l-=f(r,"top","bottom")+a)),!function(t){return t===c(t).document.documentElement}(t)){var u=Math.round(s+o)-e,p=Math.round(l+a)-n;1!==Math.abs(u)&&(s-=u),1!==Math.abs(p)&&(l-=p)}return m(i.left,i.top,s,l)}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,l,c=(r=(n=e).x,i=n.y,o=n.width,a=n.height,s="undefined"!=typeof DOMRectReadOnly?DOMRectReadOnly:Object,l=Object.create(s.prototype),u(l,{x:r,y:i,width:o,height:a,top:i,right:r+o,bottom:a+i,left:r}),l);u(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=l.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(322))},function(t,e,n){"use strict";e.__esModule=!0;var r=n(323);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(284)},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),l=n(3),u=n(7),c=n.n(u),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(l.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(575)},2:function(t,e){t.exports=n(323)},3:function(t,e){t.exports=n(284)},5:function(t,e){t.exports=n(572)},7:function(t,e){t.exports=n(200)}})},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 l,u="function"==typeof t?t.options:t;if(e&&(u.render=e,u.staticRenderFns=n,u._compiled=!0),r&&(u.functional=!0),o&&(u._scopeId="data-v-"+o),a?(l=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)},u._ssrRegister=l):i&&(l=s?function(){i.call(this,(u.functional?this.parent:this).$root.$options.shadowRoot)}:i),l)if(u.functional){u._injectStyles=l;var c=u.render;u.render=function(t,e){return l.call(e),c(t,e)}}else{var h=u.beforeCreate;u.beforeCreate=h?[].concat(h,l):[l]}return{exports:t,options:u}}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 l,u="function"==typeof t?t.options:t;if(e&&(u.render=e,u.staticRenderFns=n,u._compiled=!0),r&&(u.functional=!0),o&&(u._scopeId="data-v-"+o),a?(l=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)},u._ssrRegister=l):i&&(l=s?function(){i.call(this,(u.functional?this.parent:this).$root.$options.shadowRoot)}:i),l)if(u.functional){u._injectStyles=l;var c=u.render;u.render=function(t,e){return l.call(e),c(t,e)}}else{var h=u.beforeCreate;u.beforeCreate=h?[].concat(h,l):[l]}return{exports:t,options:u}}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 l=s.exports;l.install=function(t){t.component(l.name,l)};e.default=l},4:function(t,e){t.exports=n(379)}})},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 l,u="function"==typeof t?t.options:t;if(e&&(u.render=e,u.staticRenderFns=n,u._compiled=!0),r&&(u.functional=!0),o&&(u._scopeId="data-v-"+o),a?(l=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)},u._ssrRegister=l):i&&(l=s?function(){i.call(this,(u.functional?this.parent:this).$root.$options.shadowRoot)}:i),l)if(u.functional){u._injectStyles=l;var c=u.render;u.render=function(t,e){return l.call(e),c(t,e)}}else{var h=u.beforeCreate;u.beforeCreate=h?[].concat(h,l):[l]}return{exports:t,options:u}}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 l,u="function"==typeof t?t.options:t;if(e&&(u.render=e,u.staticRenderFns=n,u._compiled=!0),r&&(u.functional=!0),o&&(u._scopeId="data-v-"+o),a?(l=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)},u._ssrRegister=l):i&&(l=s?function(){i.call(this,(u.functional?this.parent:this).$root.$options.shadowRoot)}:i),l)if(u.functional){u._injectStyles=l;var c=u.render;u.render=function(t,e){return l.call(e),c(t,e)}}else{var h=u.beforeCreate;u.beforeCreate=h?[].concat(h,l):[l]}return{exports:t,options:u}}n.d(e,"a",(function(){return r}))},10:function(t,e){t.exports=n(771)},12:function(t,e){t.exports=n(906)},15:function(t,e){t.exports=n(774)},16:function(t,e){t.exports=n(772)},18:function(t,e){t.exports=n(575)},21:function(t,e){t.exports=n(574)},22:function(t,e){t.exports=n(775)},3:function(t,e){t.exports=n(284)},31:function(t,e){t.exports=n(776)},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},l={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))}},u=n(0),c=Object(u.a)(l,r,[],!1,null,null,null);c.options.__file="packages/select/src/option.vue";e.a=c.exports},37:function(t,e){t.exports=n(910)},4:function(t,e){t.exports=n(379)},5:function(t,e){t.exports=n(572)},6:function(t,e){t.exports=n(769)},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),l=n(6),u=n.n(l),c=n(10),h=n.n(c),d=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)};d._withStripped=!0;var f=n(5),p={name:"ElSelectDropdown",componentName:"ElSelectDropdown",mixins:[n.n(f).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,d,[],!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),M=n(31),A=n.n(M),I=n(3),j=n(21),k={mixins:[o.a,u.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");A()(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 l,u="function"==typeof t?t.options:t;if(e&&(u.render=e,u.staticRenderFns=n,u._compiled=!0),r&&(u.functional=!0),o&&(u._scopeId="data-v-"+o),a?(l=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)},u._ssrRegister=l):i&&(l=s?function(){i.call(this,(u.functional?this.parent:this).$root.$options.shadowRoot)}:i),l)if(u.functional){u._injectStyles=l;var c=u.render;u.render=function(t,e){return l.call(e),c(t,e)}}else{var h=u.beforeCreate;u.beforeCreate=h?[].concat(h,l):[l]}return{exports:t,options:u}}n.d(e,"a",(function(){return r}))},3:function(t,e){t.exports=n(284)},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},l={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))}},u=n(0),c=Object(u.a)(l,r,[],!1,null,null,null);c.options.__file="packages/select/src/option.vue";e.a=c.exports},4:function(t,e){t.exports=n(379)},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(1826)},function(t,e,n){"use strict";var r=n(1827),i=n(1828);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,l,u,c,h,d,f,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(f=/\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),d=!!/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);l=!_||parseFloat(_[1].replace("_","."))}else l=!1;u=!!y[2],c=!!y[3]}else l=u=c=!1}}var b={ie:function(){return y()||n},ieCompatibilityMode:function(){return y()||s>n},ie64:function(){return b.ie()&&d},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()||u},osx:function(){return y()||l},linux:function(){return y()||c},iphone:function(){return y()||f},mobile:function(){return y()||f||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(1829);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(777),a=(r=o)&&r.__esModule?r:{default:r};var s,l=l||{};l.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()},l.Dialog.prototype.addListeners=function(){document.addEventListener("focus",s,!0)},l.Dialog.prototype.removeListeners=function(){document.removeEventListener("focus",s,!0)},l.Dialog.prototype.closeDialog=function(){var t=this;this.removeListeners(),this.focusAfterClosed&&setTimeout((function(){t.focusAfterClosed.focus()}))},l.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=l.Dialog},function(t,e,n){"use strict";n.r(e);var r=n(405),i=n.n(r),o=n(254),a=n.n(o),s=n(50),l=n(565),u=n(494);function c(t){this.rules=null,this._messages=u.messages,this.define(t)}c.prototype={messages:function(t){return t&&(this._messages=Object(s.deepMerge)(Object(u.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,l=n,h=r;if("function"==typeof l&&(h=l,l={}),this.rules&&0!==Object.keys(this.rules).length){if(l.messages){var d=this.messages();d===u.messages&&(d=Object(u.newMessages)()),Object(s.deepMerge)(d,l.messages),l.messages=d}else l.messages=this.messages();var f=void 0,p=void 0,g={},v=l.keys||Object.keys(this.rules);v.forEach((function(n){f=e.rules[n],p=o[n],f.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,l,(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 u(){var a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],u=a;if(Array.isArray(u)||(u=[u]),u.length&&Object(s.warning)("async-validator:",u),u.length&&n.message&&(u=[].concat(n.message)),u=u.map(Object(s.complementError)(n)),l.first&&u.length)return m[n.field]=1,e(u);if(r){if(n.required&&!t.value)return u=n.message?[].concat(n.message).map(Object(s.complementError)(n)):l.error?[l.error(n,Object(s.format)(l.messages.required,n.field))]:[],e(u);var h={};if(n.defaultField)for(var d in t.value)t.value.hasOwnProperty(d)&&(h[d]=n.defaultField);for(var f in h=i()({},h,t.rule.fields))if(h.hasOwnProperty(f)){var p=Array.isArray(h[f])?h[f]:[h[f]];h[f]=p.map(o.bind(null,f))}var g=new c(h);g.messages(l.messages),t.rule.options&&(t.rule.options.messages=l.messages,t.rule.options.error=l.error),g.validate(t.value,t.rule.options||l,(function(t){e(t&&t.length?u.concat(t):t)}))}else e(u)}r=r&&(n.required||!n.required&&t.value),n.field=t.field;var h=n.validator(n,t.value,u,t.source,l);h&&h.then&&h.then((function(){return u()}),(function(t){return u(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&&!l.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]?l.default.required:l.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");l.default[t]=e},c.messages=u.messages,e.default=c},function(t,e,n){t.exports={default:n(1833),__esModule:!0}},function(t,e,n){n(1834),t.exports=n(502).Object.assign},function(t,e,n){var r=n(778);r(r.S+r.F,"Object",{assign:n(1837)})},function(t,e,n){var r=n(1836);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(380),i=n(578),o=n(785),a=n(581),s=n(786),l=n(914),u=Object.assign;t.exports=!u||n(504)((function(){var t={},e={},n=Symbol(),r="abcdefghijklmnopqrst";return t[n]=7,r.split("").forEach((function(t){e[t]=t})),7!=u({},t)[n]||Object.keys(u({},e)).join("")!=r}))?function(t,e){for(var n=s(t),u=arguments.length,c=1,h=o.f,d=a.f;u>c;)for(var f,p=l(arguments[c++]),g=h?i(p).concat(h(p)):i(p),v=g.length,m=0;v>m;)f=g[m++],r&&!d.call(p,f)||(n[f]=p[f]);return n}:u},function(t,e,n){var r=n(419),i=n(1839),o=n(1840);t.exports=function(t){return function(e,n,a){var s,l=r(e),u=i(l.length),c=o(a,u);if(t&&n!=n){for(;u>c;)if((s=l[c++])!=s)return!0}else for(;u>c;c++)if((t||c in l)&&l[c]===n)return t||c||0;return!t&&-1}}},function(t,e,n){var r=n(781),i=Math.min;t.exports=function(t){return t>0?i(r(t),9007199254740991):0}},function(t,e,n){var r=n(781),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(1842),__esModule:!0}},function(t,e,n){n(1843),n(1849),t.exports=n(789).f("iterator")},function(t,e,n){"use strict";var r=n(1844)(!0);n(916)(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(781),i=n(780);t.exports=function(t){return function(e,n){var o,a,s=String(i(e)),l=r(n),u=s.length;return l<0||l>=u?t?"":void 0:(o=s.charCodeAt(l))<55296||o>56319||l+1===u||(a=s.charCodeAt(l+1))<56320||a>57343?t?s.charAt(l):o:t?s.slice(l,l+2):a-56320+(o-55296<<10)+65536}}},function(t,e,n){"use strict";var r=n(918),i=n(577),o=n(788),a={};n(417)(a,n(420)("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(418),i=n(576),o=n(578);t.exports=n(380)?Object.defineProperties:function(t,e){i(t);for(var n,a=o(e),s=a.length,l=0;s>l;)r.f(t,n=a[l++],e[n]);return t}},function(t,e,n){var r=n(346).document;t.exports=r&&r.documentElement},function(t,e,n){var r=n(381),i=n(786),o=n(782)("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(1850);for(var r=n(346),i=n(417),o=n(787),a=n(420)("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(","),l=0;l<s.length;l++){var u=s[l],c=r[u],h=c&&c.prototype;h&&!h[a]&&i(h,a,u),o[u]=o.Array}},function(t,e,n){"use strict";var r=n(1851),i=n(1852),o=n(787),a=n(419);t.exports=n(916)(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(1854),__esModule:!0}},function(t,e,n){n(1855),n(1861),n(1862),n(1863),t.exports=n(502).Symbol},function(t,e,n){"use strict";var r=n(346),i=n(381),o=n(380),a=n(778),s=n(917),l=n(1856).KEY,u=n(504),c=n(783),h=n(788),d=n(580),f=n(420),p=n(789),g=n(790),v=n(1857),m=n(1858),y=n(576),b=n(503),_=n(786),x=n(419),w=n(779),O=n(577),S=n(918),C=n(1859),E=n(1860),T=n(785),M=n(418),A=n(578),I=E.f,j=M.f,k=C.f,P=r.Symbol,L=r.JSON,D=L&&L.stringify,R=f("_hidden"),N=f("toPrimitive"),F={}.propertyIsEnumerable,B=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&&u((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,$=function(t){var e=z[t]=S(P.prototype);return e._k=t,e},X=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,R)&&t[R][e]&&(t[R][e]=!1),n=S(n,{enumerable:O(0,!1)})):(i(t,R)||j(t,R,O(1,{})),t[R][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=F.call(this,t=w(t,!0));return!(this===U&&i(z,t)&&!i(V,t))&&(!(e||!i(this,t)||!i(z,t)||i(this,R)&&this[R][t])||e)},J=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,R)&&t[R][e]||(n.enumerable=!0),n}},Q=function(t){for(var e,n=k(x(t)),r=[],o=0;n.length>o;)i(z,e=n[o++])||e==R||e==l||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=d(arguments.length>0?arguments[0]:void 0),e=function(n){this===U&&e.call(V,n),i(this,R)&&i(this[R],t)&&(this[R][t]=!1),Y(this,t,O(1,n))};return o&&W&&Y(U,t,{configurable:!0,set:e}),$(t)}).prototype,"toString",(function(){return this._k})),E.f=J,M.f=q,n(919).f=C.f=Q,n(581).f=K,T.f=tt,o&&!n(579)&&s(U,"propertyIsEnumerable",K,!0),p.f=function(t){return $(f(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;)f(et[nt++]);for(var rt=A(f.store),it=0;rt.length>it;)g(rt[it++]);a(a.S+a.F*!G,"Symbol",{for:function(t){return i(B,t+="")?B[t]:B[t]=P(t)},keyFor:function(t){if(!X(t))throw TypeError(t+" is not a symbol!");for(var e in B)if(B[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:J,getOwnPropertyNames:Q,getOwnPropertySymbols:tt});var ot=u((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||u((function(){var t=P();return"[null]"!=D([t])||"{}"!=D({a:t})||"{}"!=D(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)&&!X(t))return m(e)||(e=function(t,e){if("function"==typeof n&&(e=n.call(this,t,e)),!X(e))return e}),r[1]=e,D.apply(L,r)}}),P.prototype[N]||n(417)(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(580)("meta"),i=n(503),o=n(381),a=n(418).f,s=0,l=Object.isExtensible||function(){return!0},u=!n(504)((function(){return l(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(!l(t))return"F";if(!e)return"E";c(t)}return t[r].i},getWeak:function(t,e){if(!o(t,r)){if(!l(t))return!0;if(!e)return!1;c(t)}return t[r].w},onFreeze:function(t){return u&&h.NEED&&l(t)&&!o(t,r)&&c(t),t}}},function(t,e,n){var r=n(578),i=n(785),o=n(581);t.exports=function(t){var e=r(t),n=i.f;if(n)for(var a,s=n(t),l=o.f,u=0;s.length>u;)l.call(t,a=s[u++])&&e.push(a);return e}},function(t,e,n){var r=n(915);t.exports=Array.isArray||function(t){return"Array"==r(t)}},function(t,e,n){var r=n(419),i=n(919).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(581),i=n(577),o=n(419),a=n(779),s=n(381),l=n(911),u=Object.getOwnPropertyDescriptor;e.f=n(380)?u:function(t,e){if(t=o(t),e=a(e,!0),l)try{return u(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(790)("asyncIterator")},function(t,e,n){n(790)("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 l,u="function"==typeof t?t.options:t;if(e&&(u.render=e,u.staticRenderFns=n,u._compiled=!0),r&&(u.functional=!0),o&&(u._scopeId="data-v-"+o),a?(l=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)},u._ssrRegister=l):i&&(l=s?function(){i.call(this,(u.functional?this.parent:this).$root.$options.shadowRoot)}:i),l)if(u.functional){u._injectStyles=l;var c=u.render;u.render=function(t,e){return l.call(e),c(t,e)}}else{var h=u.beforeCreate;u.beforeCreate=h?[].concat(h,l):[l]}return{exports:t,options:u}}n.d(e,"a",(function(){return r}))},10:function(t,e){t.exports=n(771)},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),l=n(30),u={name:"ElInputNumber",mixins:[s()("input")],inject:{elForm:{default:""},elFormItem:{default:""}},directives:{repeatClick:l.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)(u,r,[],!1,null,null,null);h.options.__file="packages/input-number/src/input-number.vue";var d=h.exports;d.install=function(t){t.component(d.name,d)};e.default=d},2:function(t,e){t.exports=n(323)},22:function(t,e){t.exports=n(775)},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 l,u="function"==typeof t?t.options:t;if(e&&(u.render=e,u.staticRenderFns=n,u._compiled=!0),r&&(u.functional=!0),o&&(u._scopeId="data-v-"+o),a?(l=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)},u._ssrRegister=l):i&&(l=s?function(){i.call(this,(u.functional?this.parent:this).$root.$options.shadowRoot)}:i),l)if(u.functional){u._injectStyles=l;var c=u.render;u.render=function(t,e){return l.call(e),c(t,e)}}else{var h=u.beforeCreate;u.beforeCreate=h?[].concat(h,l):[l]}return{exports:t,options:u}}n.d(e,"a",(function(){return r}))},15:function(t,e){t.exports=n(774)},19:function(t,e){t.exports=n(908)},21:function(t,e){t.exports=n(574)},26:function(t,e){t.exports=n(909)},3:function(t,e){t.exports=n(284)},31:function(t,e){t.exports=n(776)},40:function(t,e){t.exports=n(777)},51:function(t,e){t.exports=n(920)},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),l=n(19),u=n.n(l),c=n(51),h=n.n(c),d=n(3),f=function(t){return t.stopPropagation()},p={inject:["panel"],components:{ElCheckbox:u.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=f),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(d.isEqual)(n,e)&&(n=e),t("el-radio",{attrs:{value:e,label:n,disabled:r},on:{change:this.handleCheckChange},nativeOn:{click:f}},[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,l=this.config,u=this.nodeId,c=l.expandTrigger,h=l.checkStrictly,d=l.multiple,f=!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||d||(p.on.click=this.handleCheckChange),t("li",o()([{attrs:{role:"menuitem",id:u,"aria-expanded":n,tabindex:f?null:-1},class:{"el-cascader-node":!0,"is-selectable":h,"in-active-path":n,"in-checked-path":r,"is-active":i,"is-disabled":f}},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(d.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,l=a.offsetHeight,u=e.offsetTop,c=u+e.offsetHeight;r.innerHTML='\n <path style="pointer-events: auto;" fill="transparent" d="M'+o+" "+u+" L"+s+" 0 V"+u+' Z" />\n <path style="pointer-events: auto;" fill="transparent" d="M'+o+" "+c+" L"+s+" "+l+" 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(d.isEqual)(t,e)})):Object(d.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(d.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(d.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(d.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(d.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(d.valueEquals)(e.path,t)||e.value===t}));return e&&e.length?e[0]:null},t}(),M=n(9),A=n.n(M),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},D=j.a.keys,R={expandTrigger:"click",multiple:!1,checkStrictly:!1,emitPath:!0,lazy:!1,lazyLoad:d.noop,value:"value",label:"label",children:"children",leaf:"leaf",disabled:"disabled",hoverThreshold:500},N=function(t){return!t.getAttribute("aria-owns")},F=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},B=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 A()(L({},R),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(d.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(d.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(d.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(d.isEmpty)(t)},syncActivePath:function(){var t=this,e=this.store,n=this.multiple,r=this.activePath,i=this.checkedValue;if(Object(d.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(d.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 D.up:var n=F(e,-1);z(n);break;case D.down:var r=F(e,1);z(r);break;case D.left:var i=this.$refs.menu[B(e)-1];if(i){var o=i.$el.querySelector('.el-cascader-node[aria-expanded="true"]');z(o)}break;case D.right:var a=this.$refs.menu[B(e)+1];if(a){var s=a.$el.querySelector('.el-cascader-node[tabindex="-1"]');z(s)}break;case D.enter:!function(t){if(t){var e=t.querySelector("input");e?e.click():N(t)&&t.click()}}(e);break;case D.esc:case D.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(d.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 l=n.store.getNodeByValue(o);l.data[s]||n.lazyLoad(l,(function(){n.handleExpand(l)})),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(769)},9:function(t,e){t.exports=n(573)}})},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 l,u="function"==typeof t?t.options:t;if(e&&(u.render=e,u.staticRenderFns=n,u._compiled=!0),r&&(u.functional=!0),o&&(u._scopeId="data-v-"+o),a?(l=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)},u._ssrRegister=l):i&&(l=s?function(){i.call(this,(u.functional?this.parent:this).$root.$options.shadowRoot)}:i),l)if(u.functional){u._injectStyles=l;var c=u.render;u.render=function(t,e){return l.call(e),c(t,e)}}else{var h=u.beforeCreate;u.beforeCreate=h?[].concat(h,l):[l]}return{exports:t,options:u}}n.d(e,"a",(function(){return r}))},2:function(t,e){t.exports=n(323)},3:function(t,e){t.exports=n(284)},5:function(t,e){t.exports=n(572)},7:function(t,e){t.exports=n(200)},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),l={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)}},u=n(0),c=Object(u.a)(l,r,[],!1,null,null,null);c.options.__file="packages/popover/src/main.vue";var h=c.exports,d=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)},f={bind:function(t,e,n){d(t,e,n)},inserted:function(t,e,n){d(t,e,n)}},p=n(7);n.n(p).a.directive("popover",f),h.install=function(t){t.directive("popover",f),t.component(h.name,h)},h.directive=f;e.default=h}})},function(t,e,n){"use strict";n.r(e);var r=n(46),i=n(921);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(2070),a=n(2071),s=n(2072),l=n(2073),u=n(2074),c=n(2075),h=n(2076),d=n(2077),f=n(2078),p=n(2079),g=n(2080),v=n(2081),m=n(2082),y=n(2083),b=n(2084),_=n(2085),x=n(2086),w=n(2087),O=n(2088),S=n(2089),C=n(2090),E=n(2091),T=n(2092),M=n(2093),A=n(2094),I=n(2095),j=n(836),k=n(2096),P=n(838),L=n(2097),D=n(2098),R=n(2099),N=n(2100),F=n(336),B=n(2101),z=n(2102),V=n(2103),U=n(2104),G=n(2105),H=n(2106),W=n(2107),Y=n(2108),$=n(845),X=n(846),q=n(2109),Z=n(847),K=n(849),J=n(2110),Q=n(2111),tt=n(2112),et=n(2113),nt=n(831);Object(r.use)([o.install]),Object(r.use)([a.install]),Object(r.use)([s.install,l.install,u.install,c.install,h.install,d.install,f.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,M.install]),Object(r.use)(A.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)(D.install),Object(r.use)(R.install),Object(r.use)(N.install),Object(r.use)(F.install),Object(r.use)(B.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)($.install),Object(r.use)(X.install),Object(r.use)(q.install),Object(r.use)(Z.install),Object(r.use)(K.install),Object(r.use)(J.install),Object(r.use)(Q.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(1869),i=n(1870),o=n(1871);function a(){return l.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function s(t,e){if(a()<e)throw new RangeError("Invalid typed array length");return l.TYPED_ARRAY_SUPPORT?(t=new Uint8Array(e)).__proto__=l.prototype:(null===t&&(t=new l(e)),t.length=e),t}function l(t,e,n){if(!(l.TYPED_ARRAY_SUPPORT||this instanceof l))return new l(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 u(this,t,e,n)}function u(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);l.TYPED_ARRAY_SUPPORT?(t=e).__proto__=l.prototype:t=d(t,e);return t}(t,e,n,r):"string"==typeof e?function(t,e,n){"string"==typeof n&&""!==n||(n="utf8");if(!l.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(l.isBuffer(e)){var n=0|f(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):d(t,e);if("Buffer"===e.type&&o(e.data))return d(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|f(e)),!l.TYPED_ARRAY_SUPPORT)for(var n=0;n<e;++n)t[n]=0;return t}function d(t,e){var n=e.length<0?0:0|f(e.length);t=s(t,n);for(var r=0;r<n;r+=1)t[r]=255&e[r];return t}function f(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(l.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 A(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 M(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=l.from(e,r)),l.isBuffer(e))return 0===e.length?-1:y(t,e,n,r,i);if("number"==typeof e)return e&=255,l.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,l=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,l/=2,n/=2}function u(t,e){return 1===a?t[e]:t.readUInt16BE(e*a)}if(i){var c=-1;for(o=n;o<s;o++)if(u(t,o)===u(e,-1===c?0:o-c)){if(-1===c&&(c=o),o-c+1===l)return c*a}else-1!==c&&(o-=o-c),c=-1}else for(n+l>s&&(n=s-l),o=n;o>=0;o--){for(var h=!0,d=0;d<l;d++)if(u(t,o+d)!==u(e,d)){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,l,u=t[i],c=null,h=u>239?4:u>223?3:u>191?2:1;if(i+h<=n)switch(h){case 1:u<128&&(c=u);break;case 2:128==(192&(o=t[i+1]))&&(l=(31&u)<<6|63&o)>127&&(c=l);break;case 3:o=t[i+1],a=t[i+2],128==(192&o)&&128==(192&a)&&(l=(15&u)<<12|(63&o)<<6|63&a)>2047&&(l<55296||l>57343)&&(c=l);break;case 4:o=t[i+1],a=t[i+2],s=t[i+3],128==(192&o)&&128==(192&a)&&128==(192&s)&&(l=(15&u)<<18|(63&o)<<12|(63&a)<<6|63&s)>65535&&l<1114112&&(c=l)}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=l,e.SlowBuffer=function(t){+t!=t&&(t=0);return l.alloc(+t)},e.INSPECT_MAX_BYTES=50,l.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(),l.poolSize=8192,l._augment=function(t){return t.__proto__=l.prototype,t},l.from=function(t,e,n){return u(null,t,e,n)},l.TYPED_ARRAY_SUPPORT&&(l.prototype.__proto__=Uint8Array.prototype,l.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&l[Symbol.species]===l&&Object.defineProperty(l,Symbol.species,{value:null,configurable:!0})),l.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)},l.allocUnsafe=function(t){return h(null,t)},l.allocUnsafeSlow=function(t){return h(null,t)},l.isBuffer=function(t){return!(null==t||!t._isBuffer)},l.compare=function(t,e){if(!l.isBuffer(t)||!l.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},l.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}},l.concat=function(t,e){if(!o(t))throw new TypeError('"list" argument must be an Array of Buffers');if(0===t.length)return l.alloc(0);var n;if(void 0===e)for(e=0,n=0;n<t.length;++n)e+=t[n].length;var r=l.allocUnsafe(e),i=0;for(n=0;n<t.length;++n){var a=t[n];if(!l.isBuffer(a))throw new TypeError('"list" argument must be an Array of Buffers');a.copy(r,i),i+=a.length}return r},l.byteLength=p,l.prototype._isBuffer=!0,l.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},l.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},l.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},l.prototype.toString=function(){var t=0|this.length;return 0===t?"":0===arguments.length?E(this,0,t):g.apply(this,arguments)},l.prototype.equals=function(t){if(!l.isBuffer(t))throw new TypeError("Argument must be a Buffer");return this===t||0===l.compare(this,t)},l.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+">"},l.prototype.compare=function(t,e,n,r,i){if(!l.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),u=this.slice(r,i),c=t.slice(e,n),h=0;h<s;++h)if(u[h]!==c[h]){o=u[h],a=c[h];break}return o<a?-1:a<o?1:0},l.prototype.includes=function(t,e,n){return-1!==this.indexOf(t,e,n)},l.prototype.indexOf=function(t,e,n){return m(this,t,e,n,!0)},l.prototype.lastIndexOf=function(t,e,n){return m(this,t,e,n,!1)},l.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}},l.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 M(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 A(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+=B(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(!l.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 D(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 R(t,e,n,r,o){return o||D(t,0,n,4),i.write(t,e,n,r,23,4),n+4}function N(t,e,n,r,o){return o||D(t,0,n,8),i.write(t,e,n,r,52,8),n+8}l.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),l.TYPED_ARRAY_SUPPORT)(n=this.subarray(t,e)).__proto__=l.prototype;else{var i=e-t;n=new l(i,void 0);for(var o=0;o<i;++o)n[o]=this[o+t]}return n},l.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},l.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},l.prototype.readUInt8=function(t,e){return e||j(t,1,this.length),this[t]},l.prototype.readUInt16LE=function(t,e){return e||j(t,2,this.length),this[t]|this[t+1]<<8},l.prototype.readUInt16BE=function(t,e){return e||j(t,2,this.length),this[t]<<8|this[t+1]},l.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]},l.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])},l.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},l.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},l.prototype.readInt8=function(t,e){return e||j(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},l.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},l.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},l.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},l.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]},l.prototype.readFloatLE=function(t,e){return e||j(t,4,this.length),i.read(this,t,!0,23,4)},l.prototype.readFloatBE=function(t,e){return e||j(t,4,this.length),i.read(this,t,!1,23,4)},l.prototype.readDoubleLE=function(t,e){return e||j(t,8,this.length),i.read(this,t,!0,52,8)},l.prototype.readDoubleBE=function(t,e){return e||j(t,8,this.length),i.read(this,t,!1,52,8)},l.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},l.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},l.prototype.writeUInt8=function(t,e,n){return t=+t,e|=0,n||k(this,t,e,1,255,0),l.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),this[e]=255&t,e+1},l.prototype.writeUInt16LE=function(t,e,n){return t=+t,e|=0,n||k(this,t,e,2,65535,0),l.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):P(this,t,e,!0),e+2},l.prototype.writeUInt16BE=function(t,e,n){return t=+t,e|=0,n||k(this,t,e,2,65535,0),l.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):P(this,t,e,!1),e+2},l.prototype.writeUInt32LE=function(t,e,n){return t=+t,e|=0,n||k(this,t,e,4,4294967295,0),l.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},l.prototype.writeUInt32BE=function(t,e,n){return t=+t,e|=0,n||k(this,t,e,4,4294967295,0),l.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},l.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},l.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},l.prototype.writeInt8=function(t,e,n){return t=+t,e|=0,n||k(this,t,e,1,127,-128),l.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),t<0&&(t=255+t+1),this[e]=255&t,e+1},l.prototype.writeInt16LE=function(t,e,n){return t=+t,e|=0,n||k(this,t,e,2,32767,-32768),l.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):P(this,t,e,!0),e+2},l.prototype.writeInt16BE=function(t,e,n){return t=+t,e|=0,n||k(this,t,e,2,32767,-32768),l.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):P(this,t,e,!1),e+2},l.prototype.writeInt32LE=function(t,e,n){return t=+t,e|=0,n||k(this,t,e,4,2147483647,-2147483648),l.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},l.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),l.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},l.prototype.writeFloatLE=function(t,e,n){return R(this,t,e,!0,n)},l.prototype.writeFloatBE=function(t,e,n){return R(this,t,e,!1,n)},l.prototype.writeDoubleLE=function(t,e,n){return N(this,t,e,!0,n)},l.prototype.writeDoubleBE=function(t,e,n){return N(this,t,e,!1,n)},l.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||!l.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},l.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&&!l.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=l.isBuffer(t)?t:z(new l(t,r).toString()),s=a.length;for(o=0;o<n-e;++o)this[o+e]=a[o%s]}return this};var F=/[^+\/0-9A-Za-z-_]/g;function B(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(F,"")).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(322))},function(t,e,n){"use strict";e.byteLength=function(t){var e=u(t),n=e[0],r=e[1];return 3*(n+r)/4-r},e.toByteArray=function(t){var e,n,r=u(t),a=r[0],s=r[1],l=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)],l[c++]=e>>16&255,l[c++]=e>>8&255,l[c++]=255&e;2===s&&(e=i[t.charCodeAt(n)]<<2|i[t.charCodeAt(n+1)]>>4,l[c++]=255&e);1===s&&(e=i[t.charCodeAt(n)]<<10|i[t.charCodeAt(n+1)]<<4|i[t.charCodeAt(n+2)]>>2,l[c++]=e>>8&255,l[c++]=255&e);return l},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,l=a.length;s<l;++s)r[s]=a[s],i[a.charCodeAt(s)]=s;function u(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,l=(1<<s)-1,u=l>>1,c=-7,h=n?i-1:0,d=n?-1:1,f=t[e+h];for(h+=d,o=f&(1<<-c)-1,f>>=-c,c+=s;c>0;o=256*o+t[e+h],h+=d,c-=8);for(a=o&(1<<-c)-1,o>>=-c,c+=r;c>0;a=256*a+t[e+h],h+=d,c-=8);if(0===o)o=1-u;else{if(o===l)return a?NaN:1/0*(f?-1:1);a+=Math.pow(2,r),o-=u}return(f?-1:1)*a*Math.pow(2,o-r)},e.write=function(t,e,n,r,i,o){var a,s,l,u=8*o-i-1,c=(1<<u)-1,h=c>>1,d=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,f=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*(l=Math.pow(2,-a))<1&&(a--,l*=2),(e+=a+h>=1?d/l:d*Math.pow(2,1-h))*l>=2&&(a++,l/=2),a+h>=c?(s=0,a=c):a+h>=1?(s=(e*l-1)*Math.pow(2,i),a+=h):(s=e*Math.pow(2,h-1)*Math.pow(2,i),a=0));i>=8;t[n+f]=255&s,f+=p,s/=256,i-=8);for(a=a<<i|s,u+=i;u>0;t[n+f]=255&a,f+=p,a/=256,u-=8);t[n+f-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 J})),n.d(e,"adaptors",(function(){return Q}));var r=n(15);n.d(e,"G2",(function(){return r}));var i=n(275);n.d(e,"registerLocale",(function(){return i.registerLocale}));var o=n(1622),a=n(1623),s=n(627);n.d(e,"setGlobal",(function(){return s.setGlobal}));var l=n(26);n.d(e,"Plot",(function(){return l.Plot}));var u=n(1108);for(var c in u)["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 u[t]}))}(c);var h=n(628);n.d(e,"Line",(function(){return h.Line}));var d=n(632);n.d(e,"Area",(function(){return d.Area}));var f=n(633);n.d(e,"Column",(function(){return f.Column}));var p=n(634);n.d(e,"Bar",(function(){return p.Bar}));var g=n(635);n.d(e,"Pie",(function(){return g.Pie}));var v=n(1126);n.d(e,"Rose",(function(){return v.Rose}));var m=n(1127);n.d(e,"WordCloud",(function(){return m.WordCloud}));var y=n(636);n.d(e,"Scatter",(function(){return y.Scatter}));var b=n(1129);n.d(e,"Radar",(function(){return b.Radar}));var _=n(1130);n.d(e,"DualAxes",(function(){return _.DualAxes}));var x=n(637);n.d(e,"TinyLine",(function(){return x.TinyLine}));var w=n(638);n.d(e,"TinyColumn",(function(){return w.TinyColumn}));var O=n(639);n.d(e,"TinyArea",(function(){return O.TinyArea}));var S=n(640);n.d(e,"Histogram",(function(){return S.Histogram}));var C=n(641);n.d(e,"Progress",(function(){return C.Progress}));var E=n(642);n.d(e,"RingProgress",(function(){return E.RingProgress}));var T=n(1131);n.d(e,"Heatmap",(function(){return T.Heatmap}));var M=n(1132);n.d(e,"Box",(function(){return M.Box}));var A=n(1133);n.d(e,"Violin",(function(){return A.Violin}));var I=n(1134);n.d(e,"Venn",(function(){return I.Venn}));var j=n(643);n.d(e,"Stock",(function(){return j.Stock}));var k=n(520);n.d(e,"Funnel",(function(){return k.Funnel})),n.d(e,"FUNNEL_CONVERSATION_FIELD",(function(){return k.FUNNEL_CONVERSATION_FIELD}));var P=n(795);n.d(e,"Liquid",(function(){return P.Liquid})),n.d(e,"addWaterWave",(function(){return P.addWaterWave}));var L=n(1135);n.d(e,"Bullet",(function(){return L.Bullet}));var D=n(1136);n.d(e,"Sunburst",(function(){return D.Sunburst}));var R=n(646);n.d(e,"Gauge",(function(){return R.Gauge}));var N=n(1143);n.d(e,"Waterfall",(function(){return N.Waterfall}));var F=n(1144);n.d(e,"RadialBar",(function(){return F.RadialBar}));var B=n(1145);n.d(e,"BidirectionalBar",(function(){return B.BidirectionalBar}));var z=n(1146);n.d(e,"Treemap",(function(){return z.Treemap}));var V=n(1147);n.d(e,"Sankey",(function(){return V.Sankey}));var U=n(1149);n.d(e,"Chord",(function(){return U.Chord}));var G=n(1150);n.d(e,"CirclePacking",(function(){return G.CirclePacking}));var H=n(1151);n.d(e,"P",(function(){return H.P}));var W=n(629);n.d(e,"getCanvasPattern",(function(){return W.getCanvasPattern}));var Y=n(425);n.d(e,"MultiView",(function(){return Y.Mix})),n.d(e,"Mix",(function(){return Y.Mix}));var $=n(1152);n.d(e,"Facet",(function(){return $.Facet}));var X=n(4);n.d(e,"flow",(function(){return X.flow})),n.d(e,"measureTextWidth",(function(){return X.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(9),K=n(1153);n.d(e,"Lab",(function(){return K.Lab}));var J="2.4.19";Object(i.registerLocale)("en-US",o.EN_US_LOCALE),Object(i.registerLocale)("zh-CN",a.ZH_CN_LOCALE);var Q={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)},function(t,e,n){"use strict";n.r(e);var r=n(1),i=n(38),o=n(304),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}}}}),e.default=a},function(t,e,n){"use strict";n.r(e);var r=n(2),i=n(38),o=n(68),a=n(172),s=n(462),l=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=l},function(t,e,n){"use strict";n.r(e);var r=n(2),i=n(38),o=n(461),a=n(68),s=n(189),l=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),l=e,u=null==t?void 0:t.background;if(u){l=e.addGroup();var c=Object(a.getBackgroundRectStyle)(t),h=Object(s.getBackgroundRectPath)(t,this.parsePoints(t.points),this.coordinate);l.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 d=l.addShape("path",{attrs:Object(r.__assign)(Object(r.__assign)({},i),{path:n}),name:"interval"});return u?l:d},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=l},function(t,e,n){"use strict";n.r(e);var r=n(1),i=n(252),o=n(38),a=n(462),s=n(341),l=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=l},function(t,e,n){"use strict";n.r(e);var r=n(2),i=n(1),o=n(38),a=n(68);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(38),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(38),a=n(194),s=n(68);var l=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,l=o===t.y.length-1;n.push({isMin:s,isMax:l,x:t.x-a,y:i}),n.unshift({isMin:s,isMax:l,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=l},function(t,e,n){"use strict";n.r(e);var r=n(38),i=n(304);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(38),i=n(304);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}}}})},function(t,e,n){"use strict";n.r(e);var r=n(38),i=n(304);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(69),o=n(38),a=n(68),s=n(374);Object(o.registerShape)("edge","arc",{draw:function(t,e){var n,o=Object(a.getStyle)(t,!0,!1,"lineWidth"),l=t.points,u=l.length>2?"weight":"normal";if(t.isInCircle){var c={x:0,y:1};return"normal"===u?n=function(t,e,n){var r=Object(s.getQPath)(e,n),i=[["M",t.x,t.y]];return i.push(r),i}(l[0],l[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}(l,c)),n=this.parsePath(n),e.addShape("path",{attrs:Object(r.__assign)(Object(r.__assign)({},o),{path:n})})}if("normal"===u)return l=this.parsePoints(l),n=Object(i.getArcPath)((l[1].x+l[0].x)/2,l[0].y,Math.abs(l[1].x-l[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)(l[1],l[3]),d=Object(s.getCPath)(l[2],l[0]);return n=[["M",l[0].x,l[0].y],["L",l[1].x,l[1].y],h,["L",l[3].x,l[3].y],["L",l[2].x,l[2].y],d,["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(38),o=n(68),a=n(374);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(38),a=n(68);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(38),o=n(68),a=n(189);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(38),o=n(461),a=n(68),s=n(189);Object(i.registerShape)("interval","hollow-rect",{draw:function(t,e){var n=Object(a.getStyle)(t,!0,!1),i=e,l=null==t?void 0:t.background;if(l){i=e.addGroup();var u=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)({},u),{path:c}),zIndex:-1,name:o.BACKGROUND_SHAPE})}var h=this.parsePath(Object(s.getRectPath)(t.points)),d=i.addShape("path",{attrs:Object(r.__assign)(Object(r.__assign)({},n),{path:h}),name:"interval"});return l?i:d},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(38),a=n(68),s=n(189),l=n(78);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(l.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(38),o=n(68),a=n(189);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(38),a=n(68);Object(o.registerShape)("interval","tick",{getPoints:function(t){return function(t){var e,n,o,a=t.x,s=t.y,l=t.y0,u=t.size;Object(i.isArray)(s)?(n=(e=Object(r.__read)(s,2))[0],o=e[1]):(n=l,o=s);var c=a+u/2,h=a-u/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(38),a=n(194),s=n(68),l=n(698);function u(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 l=(a+i)/2;r=[{x:l,y:o},{x:l,y:s}];break;case"vhv":var u=(o+s)/2;r=[{x:i,y:u},{x:a,y:u}]}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=u(e,t);return n.addShape({type:"path",attrs:r,name:"line"})},getMarker:function(e){return Object(l.getLineMarker)(e,t)}})}))},function(t,e,n){"use strict";n.r(e);var r=n(1),i=n(252),o=n(38),a=n(341);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(38),o=n(68);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),l=s[0];if(t.isStack)l=s[1];else if(s.length>1){var u=e.addGroup();try{for(var c=Object(r.__values)(s),h=c.next();!h.done;h=c.next()){var d=h.value;u.addShape("image",{attrs:{x:d.x-a/2,y:d.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 u}return e.addShape("image",{attrs:{x:l.x-a/2,y:l.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(252),o=n(38),a=n(341);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(38),a=n(68);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 l(t,e,n){var r,o=n/2;if(Object(i.isArray)(e)){var a=s(e),l=a.min,u=a.max,c=a.median,h=a.min1,d=t-o,f=t+o;r=[[d,u],[f,u],[t,u],[t,p=a.max1],[d,h],[d,p],[f,p],[f,h],[t,h],[t,l],[d,l],[f,l],[d,c],[f,c]]}else{e=Object(i.isNil)(e)?.5:e;var p,g=s(t),v=(l=g.min,u=g.max,c=g.median,e-o),m=e+o;r=[[l,v],[l,m],[l,e],[h=g.min1,e],[h,v],[h,m],[p=g.max1,m],[p,v],[p,e],[u,e],[u,v],[u,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 l(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=l(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(78),a=n(38),s=n(68);function l(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 l(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=l(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(38),a=n(68);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(38),o=n(194),a=n(68);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(38),o=n(194),a=n(68);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(1902))&&r.__esModule?r:{default:r},o=n(1903),a=n(1107);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(1904),i=n(1905),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(1106))&&r.__esModule?r:{default:r},o=n(1107);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(1106))&&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(15),i=n(1629);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(15);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})}),l=t.data.rotate;return"number"==typeof l&&i.Util.rotate(s,l*Math.PI/180),s}})},function(t,e,n){"use strict";n.r(e);n(1128)},function(t,e,n){"use strict";n.r(e);var r=n(15),i=n(1644);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(15);Object(i.registerShape)("polygon","circle",{draw:function(t,e){var n,i,o=t.x,a=t.y,s=this.parsePoints(t.points),l=Math.abs(s[2].x-s[1].x),u=Math.abs(s[1].y-s[0].y),c=Math.min(l,u)/2,h=Number(t.shape[1]),d=Number(t.shape[2]),f=c*Math.sqrt(d)*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:f},t.defaultStyle),t.style),{fill:p})})}})},function(t,e,n){"use strict";n.r(e);var r=n(2),i=n(15);Object(i.registerShape)("polygon","square",{draw:function(t,e){var n,i,o=t.x,a=t.y,s=this.parsePoints(t.points),l=Math.abs(s[2].x-s[1].x),u=Math.abs(s[1].y-s[0].y),c=Math.min(l,u),h=Number(t.shape[1]),d=Number(t.shape[2]),f=c*Math.sqrt(d)*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-f/2,y:a-f/2,width:f,height:f},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(15),o=n(193),a=n(4),s=n(177);Object(i.registerShape)("schema","venn",{draw:function(t,e){var n=t.data,l=Object(o.parsePathString)(n[s.PATH_FIELD]),u=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)({},u),{path:l}),name:"venn-path"});var h=t.customInfo,d=h.offsetX,f=h.offsetY,p=i.Util.transform(null,[["t",d,f]]);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(15),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,l=a.offsetY;return{content:t.content[n],x:i+s,y:o+l}},e}(i.GeometryLabel);Object(i.registerGeometryLabel)("venn",o)},function(t,e,n){"use strict";n.r(e);var r=n(15),i=n(1657),o=n(1658),a=n(871);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(797)},function(t,e,n){"use strict";n.r(e);var r=n(2),i=n(15);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,l=a.pin,u=e.addGroup(),c=this.parsePoint({x:0,y:0});return s&&u.addShape("line",{name:"pointer",attrs:Object(r.__assign)({x1:c.x,y1:c.y,x2:t.x,y2:t.y,stroke:o},s.style)}),l&&u.addShape("circle",{name:"pin",attrs:Object(r.__assign)({x:c.x,y:c.y,stroke:o},l.style)}),u}})},function(t,e,n){"use strict";n.r(e);var r=n(15),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,l=o.stepRatio,u=void 0===l?.5:l;s=s<1?1:s,u=Object(i.clamp)(u,0,1);var c=this.coordinate,h=c.startAngle,d=c.endAngle,f=0;u>0&&u<1&&(f=(d-h)/s/(u/(1-u)+1-1/s));for(var p=f/(1-u)*u,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+f);w=O<p?x+(p-O):(x+=p+f-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+f}return g}})},function(t,e,n){"use strict";n.r(e);var r=n(2),i=n(15),o=n(1),a=n(4);Object(i.registerShape)("interval","waterfall",{draw:function(t,e){var n=t.customInfo,i=t.points,s=t.nextPoints,l=e.addGroup(),u=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);l.addShape("path",{attrs:Object(r.__assign)(Object(r.__assign)({},c),{path:u})});var h=Object(o.get)(n,"leaderLine");if(h&&s){var d=[["M",i[2].x,i[2].y],["L",s[0].x,s[0].y]];i[2].y===s[1].y&&(d[1]=["L",s[1].x,s[1].y]),d=this.parsePath(d),l.addShape("path",{attrs:Object(r.__assign)({path:d},h.style||{})})}return l}})},function(t,e,n){"use strict";n.r(e);n(1128),n(797)},function(t,e,n){"use strict";n.r(e);n(1922)},function(t,e,n){"use strict";n.r(e);var r=n(15),i=n(1687);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(797)},function(t,e,n){"use strict";n.r(e);n(1925)},function(t,e,n){"use strict";n.r(e);var r=n(2),i=n(1),o=n(15),a=n(4),s=n(877),l=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||{},l=o.linkField,u=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=l;if("x"===u?r=t.getXScale().field:"y"===u?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",l),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(1154);n.d(e,"GaodeMap",(function(){return r.default}));var i=n(1223);n.d(e,"GaodeMapV2",(function(){return i.default}));var o=n(1238);n.d(e,"Earth",(function(){return o.default}));var a=n(1225);n.d(e,"Map",(function(){return a.default}));var s=n(1224);n.d(e,"Mapbox",(function(){return s.default}));var l=n(208);n.d(e,"Version",(function(){return l.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(1155);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(440).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="function"==typeof Symbol?Symbol:{},s=a.iterator||"@@iterator",l=a.asyncIterator||"@@asyncIterator",u=a.toStringTag||"@@toStringTag";function c(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{c({},"")}catch(t){c=function(t,e,n){return t[e]=n}}function h(t,e,n,r){var i=e&&e.prototype instanceof p?e:p,o=Object.create(i.prototype),a=new E(r||[]);return o._invoke=function(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 M()}for(n.method=i,n.arg=o;;){var a=n.delegate;if(a){var s=O(a,n);if(s){if(s===f)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var l=d(t,e,n);if("normal"===l.type){if(r=n.done?"completed":"suspendedYield",l.arg===f)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(r="completed",n.method="throw",n.arg=l.arg)}}}(t,n,a),o}function d(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}e.wrap=h;var f={};function p(){}function g(){}function v(){}var m={};c(m,s,(function(){return this}));var y=Object.getPrototypeOf,b=y&&y(y(T([])));b&&b!==n&&o.call(b,s)&&(m=b);var _=v.prototype=p.prototype=Object.create(m);function x(t){["next","throw","return"].forEach((function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function w(t,e){var n;this._invoke=function(i,a){function s(){return new e((function(n,s){!function n(i,a,s,l){var u=d(t[i],t,a);if("throw"!==u.type){var c=u.arg,h=c.value;return h&&"object"==r(h)&&o.call(h,"__await")?e.resolve(h.__await).then((function(t){n("next",t,s,l)}),(function(t){n("throw",t,s,l)})):e.resolve(h).then((function(t){c.value=t,s(c)}),(function(t){return n("throw",t,s,l)}))}l(u.arg)}(i,a,n,s)}))}return n=n?n.then(s,s):s()}}function O(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,O(t,e),"throw"===e.method))return f;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return f}var r=d(n,t.iterator,e.arg);if("throw"===r.type)return e.method="throw",e.arg=r.arg,e.delegate=null,f;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,f):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,f)}function S(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 C(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function E(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(S,this),this.reset(!0)}function T(t){if(t){var e=t[s];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:M}}function M(){return{value:void 0,done:!0}}return g.prototype=v,c(_,"constructor",v),c(v,"constructor",g),g.displayName=c(v,u,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===g||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,v):(t.__proto__=v,c(t,u,"GeneratorFunction")),t.prototype=Object.create(_),t},e.awrap=function(t){return{__await:t}},x(w.prototype),c(w.prototype,l,(function(){return this})),e.AsyncIterator=w,e.async=function(t,n,r,i,o){void 0===o&&(o=Promise);var a=new w(h(t,n,r,i),o);return e.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},x(_),c(_,u,"Generator"),c(_,s,(function(){return this})),c(_,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=[];for(var n in t)e.push(n);return e.reverse(),function n(){for(;e.length;){var r=e.pop();if(r in t)return n.value=r,n.done=!1,n}return n.done=!0,n}},e.values=T,E.prototype={constructor:E,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(C),!t)for(var e in this)"t"===e.charAt(0)&&o.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(n,r){return a.type="throw",a.arg=t,e.next=n,r&&(e.method="next",e.arg=void 0),!!r}for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var s=o.call(i,"catchLoc"),l=o.call(i,"finallyLoc");if(s&&l){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(s){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&o.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var i=r;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,f):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),f},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),C(n),f}},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;C(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:T(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=void 0),f}},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{l(r.next(t))}catch(t){o(t)}}function s(t){try{l(r.throw(t))}catch(t){o(t)}}function l(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}l((r=r.apply(t,e||[])).next())}))},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(1937),s=n(223),l=n(324),u=n(160),c=n(1157),h=n(1938),d=n(1945),f=n(1947),p=n(382),g=n(514),v=n(1950),m=n(1951),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=l.BindingScopeEnum.Transient;else if(e.defaultScope!==l.BindingScopeEnum.Singleton&&e.defaultScope!==l.BindingScopeEnum.Transient&&e.defaultScope!==l.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)})),l=h.getBindingDictionary(a);function u(t,e){t.traverse((function(t,n){n.forEach((function(t){e.add(t.serviceIdentifier,t.clone())}))}))}return s.forEach((function(t){u(t,l)})),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||l.BindingScopeEnum.Transient,n=new a.Binding(t,e);return this._bindingDictionary.add(t,n),new f.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,u.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,l.TargetTypeEnum.Variable,t)},t.prototype.getTagged=function(t,e,n){return this._get(!1,!1,l.TargetTypeEnum.Variable,t,e,n)},t.prototype.getNamed=function(t,e){return this.getTagged(t,u.NAMED_TAG,e)},t.prototype.getAll=function(t){return this._get(!0,!0,l.TargetTypeEnum.Variable,t)},t.prototype.getAllTagged=function(t,e,n){return this._get(!1,!0,l.TargetTypeEnum.Variable,t,e,n)},t.prototype.getAllNamed=function(t,e){return this.getAllTagged(t,u.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,l={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(l)))throw new Error(s.INVALID_MIDDLEWARE_RETURN)}else a=this._planAndResolve()(l);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),d.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(324),i=n(382),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(1939),i=n(223),o=n(324),a=n(160),s=n(1158),l=n(514),u=n(1940),c=n(268),h=n(1941),d=n(1942),f=n(1944),p=n(1160);function g(t){return t._bindingDictionary}function v(t,e,n,o,a){var s=m(n.container,a.serviceIdentifier),u=[];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)),u=e?s:s.filter((function(t){var e=new f.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=l.getServiceIdentifierAsString(t),s=i.NOT_REGISTERED;throw s+=l.listMetadataForTarget(a,n),s+=l.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=l.getServiceIdentifierAsString(t),s=i.AMBIGUOUS_MATCH+" "+a;throw s+=l.listRegisteredBindingsForServiceIdentifier(o,a,m),new Error(s)}}(a.serviceIdentifier,u,a,n.container),u}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 u.Context(e),x=function(t,e,n,r,i,o){var s=t?a.MULTI_INJECT_TAG:a.INJECT_TAG,l=new c.Metadata(s,n),u=new p.Target(e,r,n,l);if(void 0!==i){var h=new c.Metadata(i,o);u.metadata.push(h)}return u}(n,r,g,"",m,y);try{return function t(e,n,r,a,s,l){var u,c;if(null===s){u=v(e,n,a,null,l),c=new f.Request(r,a,null,u,l);var p=new h.Plan(a,c);a.addPlan(p)}else u=v(e,n,a,s,l),c=s.addChildRequest(l.serviceIdentifier,u,l);u.forEach((function(n){var r=null;if(l.isArray())r=c.addChildRequest(n.serviceIdentifier,n,l);else{if(n.cache)return;r=c}if(n.type===o.BindingTypeEnum.Instance&&null!==n.implementationType){var s=d.getDependencies(e,n.implementationType);if(!a.container.options.skipBaseClassChecks){var u=d.getBaseClassDependencyCount(e,n.implementationType);if(s.length<u){var h=i.ARGUMENTS_LENGTH_MISMATCH(d.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&&l.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 u.Context(t);return new f.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(382),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(1159),o=n(223),a=n(324),s=n(160),l=n(514);Object.defineProperty(e,"getFunctionName",{enumerable:!0,get:function(){return l.getFunctionName}});var u=n(1160);function c(t,e,n,i){var s=t.getConstructorMetadata(n),l=s.compilerGeneratedMetadata;if(void 0===l){var c=o.MISSING_INJECTABLE_ANNOTATION+" "+e+".";throw new Error(c)}var f=s.userGeneratedMetadata,p=Object.keys(f),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,l,f,g||v?p.length:n.length),y=function t(e,n){for(var i=e.getPropertiesMetadata(n),o=[],s=Object.keys(i),l=0,c=s;l<c.length;l++){var h=c[l],f=i[h],p=d(i[h]),g=p.targetName||h,v=p.inject||p.multiInject,m=new u.Target(a.TargetTypeEnum.ClassProperty,g,v);m.metadata=f,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 l=s[t.toString()]||[],c=d(l),h=!0!==c.unmanaged,f=r[t],p=c.inject||c.multiInject;if((f=p||f)instanceof i.LazyServiceIdentifer&&(f=f.unwrap()),h){if(!e&&(f===Object||f===Function||void 0===f)){var g=o.MISSING_INJECT_ANNOTATION+" argument "+t+" in class "+n+".";throw new Error(g)}var v=new u.Target(a.TargetTypeEnum.ConstructorArgument,c.targetName,f);return v.metadata=l,v}return null}function d(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,l.getFunctionName(e),e,!1)},e.getBaseClassDependencyCount=function t(e,n){var r=Object.getPrototypeOf(n.prototype).constructor;if(r!==Object){var i=c(e,l.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,u=i.length-a;return u>0?u: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(382),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(223),i=n(324),o=n(1158),a=n(514),s=n(1946),l=function(t,e,n){try{return n()}catch(n){throw o.isStackOverflowExeption(n)?new Error(r.CIRCULAR_DEPENDENCY_IN_FACTORY(t,e.toString())):n}},u=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 u(t)(e)}));var d=null;if(!e.target.isOptional()||0!==n.length){var f=n[0],p=f.scope===i.BindingScopeEnum.Singleton,g=f.scope===i.BindingScopeEnum.Request;if(p&&f.activated)return f.cache;if(g&&null!==t&&t.has(f.id))return t.get(f.id);if(f.type===i.BindingTypeEnum.ConstantValue)d=f.cache,f.activated=!0;else if(f.type===i.BindingTypeEnum.Function)d=f.cache,f.activated=!0;else if(f.type===i.BindingTypeEnum.Constructor)d=f.implementationType;else if(f.type===i.BindingTypeEnum.DynamicValue&&null!==f.dynamicValue)d=l("toDynamicValue",f.serviceIdentifier,(function(){return f.dynamicValue(e.parentContext)}));else if(f.type===i.BindingTypeEnum.Factory&&null!==f.factory)d=l("toFactory",f.serviceIdentifier,(function(){return f.factory(e.parentContext)}));else if(f.type===i.BindingTypeEnum.Provider&&null!==f.provider)d=l("toProvider",f.serviceIdentifier,(function(){return f.provider(e.parentContext)}));else{if(f.type!==i.BindingTypeEnum.Instance||null===f.implementationType){var v=a.getServiceIdentifierAsString(e.serviceIdentifier);throw new Error(r.INVALID_BINDING_TYPE+" "+v)}d=s.resolveInstance(f.implementationType,o,u(t))}return"function"==typeof f.onActivation&&(d=f.onActivation(e.parentContext,d)),p&&(f.cache=d,f.activated=!0),g&&null!==t&&!t.has(f.id)&&t.set(f.id,d),d}}};e.resolve=function(t){return u(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(223),o=n(324),a=n(160);e.resolveInstance=function(t,e,n){var s,l,u=null;if(e.length>0){var c=e.filter((function(t){return null!==t.target&&t.target.type===o.TargetTypeEnum.ConstructorArgument})).map(n);l=c,u=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}(u=new((s=t).bind.apply(s,r([void 0],l))),e,n)}else u=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,u),u}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.BindingToSyntax=void 0;var r=n(223),i=n(324),o=n(1948),a=n(1161),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(1949),i=n(799),o=n(800),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(324),i=n(1161),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(223),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(382),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(223),i=n(160);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(268),i=n(347);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(160),i=n(268),o=n(347);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(160),i=n(268),o=n(347);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(160),i=n(268),o=n(347);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(160),i=n(268),o=n(347);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(160),i=n(268),o=n(347);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(223),i=n(160),o=n(268);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(1965),i=n(1183),o=n(1995),a=n(1997),s=n(285),l=n(1192),u=n(1191);t.exports=function t(e,n,c,h,d){e!==n&&o(n,(function(o,l){if(d||(d=new r),s(o))a(e,n,l,c,t,h,d);else{var f=h?h(u(e,l),o,l+"",e,n,d):void 0;void 0===f&&(f=o),i(e,l,f)}}),l)}},function(t,e,n){var r=n(585),i=n(1971),o=n(1972),a=n(1973),s=n(1974),l=n(1975);function u(t){var e=this.__data__=new r(t);this.size=e.size}u.prototype.clear=i,u.prototype.delete=o,u.prototype.get=a,u.prototype.has=s,u.prototype.set=l,t.exports=u},function(t,e){t.exports=function(){this.__data__=[],this.size=0}},function(t,e,n){var r=n(586),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(586);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(586);t.exports=function(t){return r(this.__data__,t)>-1}},function(t,e,n){var r=n(586);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(585);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(585),i=n(1180),o=n(1182);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(802),i=n(1979),o=n(285),a=n(1981),s=/^\[object .+?Constructor\]$/,l=Function.prototype,u=Object.prototype,c=l.toString,h=u.hasOwnProperty,d=RegExp("^"+c.call(h).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");t.exports=function(t){return!(!o(t)||i(t))&&(r(t)?d:s).test(a(t))}},function(t,e,n){var r=n(803),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(1980),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(348)["__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(1984),i=n(585),o=n(1180);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(1985),i=n(1986),o=n(1987),a=n(1988),s=n(1989);function l(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])}}l.prototype.clear=r,l.prototype.delete=i,l.prototype.get=o,l.prototype.has=a,l.prototype.set=s,t.exports=l},function(t,e,n){var r=n(589);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(589),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(589),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(589);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(590);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(590);t.exports=function(t){return r(this,t).get(t)}},function(t,e,n){var r=n(590);t.exports=function(t){return r(this,t).has(t)}},function(t,e,n){var r=n(590);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(1996)();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 l=a[t?s:++i];if(!1===n(o[l],l,o))break}return e}}},function(t,e,n){var r=n(1183),i=n(1998),o=n(1999),a=n(2002),s=n(2003),l=n(1187),u=n(805),c=n(2007),h=n(1189),d=n(802),f=n(285),p=n(2009),g=n(1190),v=n(1191),m=n(2013);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=u(O),M=!T&&h(O),A=!T&&!M&&g(O);C=O,T||M||A?u(w)?C=w:c(w)?C=a(w):M?(E=!1,C=i(O,!0)):A?(E=!1,C=o(O,!0)):C=[]:p(O)||l(O)?(C=w,l(w)?C=m(w):f(w)&&!d(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(348),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(591)(t))},function(t,e,n){var r=n(2e3);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(2001);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(348).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(2004),i=n(1185),o=n(1186);t.exports=function(t){return"function"!=typeof t.constructor||o(t)?{}:r(i(t))}},function(t,e,n){var r=n(285),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(515),i=n(422);t.exports=function(t){return i(t)&&"[object Arguments]"==r(t)}},function(t,e,n){var r=n(806),i=n(422);t.exports=function(t){return i(t)&&r(t)}},function(t,e){t.exports=function(){return!1}},function(t,e,n){var r=n(515),i=n(1185),o=n(422),a=Function.prototype,s=Object.prototype,l=a.toString,u=s.hasOwnProperty,c=l.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=u.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&l.call(n)==c}},function(t,e,n){var r=n(515),i=n(1188),o=n(422),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(1181),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(591)(t))},function(t,e,n){var r=n(2014),i=n(1192);t.exports=function(t){return r(t,i(t))}},function(t,e,n){var r=n(2015),i=n(804);t.exports=function(t,e,n,o){var a=!n;n||(n={});for(var s=-1,l=e.length;++s<l;){var u=e[s],c=o?o(n[u],t[u],u,n,t):void 0;void 0===c&&(c=t[u]),a?i(n,u,c):r(n,u,c)}return n}},function(t,e,n){var r=n(804),i=n(587),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(2017),i=n(1187),o=n(805),a=n(1189),s=n(1193),l=n(1190),u=Object.prototype.hasOwnProperty;t.exports=function(t,e){var n=o(t),c=!n&&i(t),h=!n&&!c&&a(t),d=!n&&!c&&!h&&l(t),f=n||c||h||d,p=f?r(t.length,String):[],g=p.length;for(var v in t)!e&&!u.call(t,v)||f&&("length"==v||h&&("offset"==v||"parent"==v)||d&&("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(285),i=n(1186),o=n(2019),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(2021),i=n(2028);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 l=n[r];l&&t(e,l,r,a)}return e}))}},function(t,e,n){var r=n(1194),i=n(2022),o=n(2024);t.exports=function(t,e){return o(i(t,e,r),t+"")}},function(t,e,n){var r=n(2023),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),l=Array(s);++a<s;)l[a]=o[e+a];a=-1;for(var u=Array(e+1);++a<e;)u[a]=o[a];return u[e]=n(l),r(t,this,u)}}},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(2025),i=n(2027)(r);t.exports=i},function(t,e,n){var r=n(2026),i=n(1184),o=n(1194),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(587),i=n(806),o=n(1193),a=n(285);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(2030),i=n(2033),o=n(2038),a=n(2039),s=n(2040),l=n(1195);t.exports=function(t,e,n){var u=-1,c=i,h=t.length,d=!0,f=[],p=f;if(n)d=!1,c=o;else if(h>=200){var g=e?null:s(t);if(g)return l(g);d=!1,c=a,p=new r}else p=e?[]:f;t:for(;++u<h;){var v=t[u],m=e?e(v):v;if(v=n||0!==v?v:0,d&&m==m){for(var y=p.length;y--;)if(p[y]===m)continue t;e&&p.push(m),f.push(v)}else c(p,m,n)||(p!==f&&p.push(m),f.push(v))}return f}},function(t,e,n){var r=n(1182),i=n(2031),o=n(2032);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(2034);t.exports=function(t,e){return!!(null==t?0:t.length)&&r(t,e,0)>-1}},function(t,e,n){var r=n(2035),i=n(2036),o=n(2037);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(2041),i=n(2042),o=n(1195),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(588)(n(348),"Set");t.exports=r},function(t,e){t.exports=function(){}},function(t,e,n){var r=n(18);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(2045),i=n(1196),o=n(2047),a=n(592);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),l=n?r(n,1).join(""):e.slice(1);return s[t]()+l}}},function(t,e,n){var r=n(2046);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(2048),i=n(1196),o=n(2049);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]",l="(?:"+r+"|"+i+")"+"?",u="[\\ufe0e\\ufe0f]?"+l+("(?:\\u200d(?:"+[o,a,s].join("|")+")[\\ufe0e\\ufe0f]?"+l+")*"),c="(?:"+[o+r+"?",r,a,s,n].join("|")+")",h=RegExp(i+"(?="+i+")|"+c+u,"g");t.exports=function(t){return t.match(h)||[]}},function(t,e,n){var r=n(803),i=n(2051),o=n(805),a=n(1197),s=r?r.prototype:void 0,l=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 l?l.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(592),i=n(824);t.exports=function(t){return i(r(t).toLowerCase())}},function(t,e,n){var r=n(2054),i=n(2055),o=n(2058),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(2056),i=n(592),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(2057)({"À":"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(2059),i=n(2060),o=n(592),a=n(2061);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]",l="(?:\\ud83c[\\udde6-\\uddff]){2}",u="[\\ud800-\\udbff][\\udc00-\\udfff]",c="[A-Z\\xc0-\\xd6\\xd8-\\xde]",h="(?:"+a+"|"+s+")",d="(?:"+c+"|"+s+")",f="(?:[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]|\\ud83c[\\udffb-\\udfff])?",p="[\\ufe0e\\ufe0f]?"+f+("(?:\\u200d(?:"+["[^\\ud800-\\udfff]",l,u].join("|")+")[\\ufe0e\\ufe0f]?"+f+")*"),g="(?:"+[o,l,u].join("|")+")"+p,v=RegExp([c+"?"+a+"+(?:['’](?:d|ll|m|re|s|t|ve))?(?="+[r,c,"$"].join("|")+")",d+"+(?:['’](?: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(2064),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){var r=n(285),i=n(2066),o=n(1199),a=Math.max,s=Math.min;t.exports=function(t,e,n){var l,u,c,h,d,f,p=0,g=!1,v=!1,m=!0;if("function"!=typeof t)throw new TypeError("Expected a function");function y(e){var n=l,r=u;return l=u=void 0,p=e,h=t.apply(r,n)}function b(t){return p=t,d=setTimeout(x,e),g?y(t):h}function _(t){var n=t-f;return void 0===f||n>=e||n<0||v&&t-p>=c}function x(){var t=i();if(_(t))return w(t);d=setTimeout(x,function(t){var n=e-(t-f);return v?s(n,c-(t-p)):n}(t))}function w(t){return d=void 0,m&&l?y(t):(l=u=void 0,h)}function O(){var t=i(),n=_(t);if(l=arguments,u=this,f=t,n){if(void 0===d)return b(f);if(v)return clearTimeout(d),d=setTimeout(x,e),y(f)}return void 0===d&&(d=setTimeout(x,e)),h}return e=o(e)||0,r(n)&&(g=!!n.leading,c=(v="maxWait"in n)?a(o(n.maxWait)||0,e):c,m="trailing"in n?!!n.trailing:m),O.cancel=function(){void 0!==d&&clearTimeout(d),p=0,l=f=u=d=void 0},O.flush=function(){return void 0===d?h:w(i())},O}},function(t,e,n){var r=n(348);t.exports=function(){return r.Date.now()}},function(t,e,n){"use strict";n.r(e),function(t,r,i){n.d(e,"Aggregation",(function(){return Ab})),n.d(e,"BACK_GROUND_GROUP_CONTAINER_Z_INDEX",(function(){return am})),n.d(e,"BRUSH_AUTO_SCROLL_INITIAL_CONFIG",(function(){return by})),n.d(e,"BaseCell",(function(){return Z_})),n.d(e,"BaseDataSet",(function(){return uC})),n.d(e,"BaseEvent",(function(){return RS})),n.d(e,"BaseTooltip",(function(){return oC})),n.d(e,"BrushSelection",(function(){return $S})),n.d(e,"CORNER_MAX_WIDTH_RATIO",(function(){return ty})),n.d(e,"CellBorderPosition",(function(){return Mb})),n.d(e,"CellTypes",(function(){return sy})),n.d(e,"ColCell",(function(){return cS})),n.d(e,"ColHeader",(function(){return KS})),n.d(e,"CopyType",(function(){return By})),n.d(e,"CornerCell",(function(){return hS})),n.d(e,"CornerCellClick",(function(){return NS})),n.d(e,"CornerHeader",(function(){return QS})),n.d(e,"CornerNodeType",(function(){return Ib})),n.d(e,"CustomTreePivotDataSet",(function(){return dC})),n.d(e,"DEBUG_HEADER_LAYOUT",(function(){return xb})),n.d(e,"DEBUG_TRANSFORM_DATA",(function(){return _b})),n.d(e,"DEBUG_VIEW_RENDER",(function(){return wb})),n.d(e,"DEFAULT_CORNER_TEXT",(function(){return om})),n.d(e,"DEFAULT_DATA_CONFIG",(function(){return iy})),n.d(e,"DEFAULT_OPTIONS",(function(){return Ay})),n.d(e,"DEFAULT_STYLE",(function(){return My})),n.d(e,"DEFAULT_VALUE_RANGES",(function(){return ry})),n.d(e,"DataCell",(function(){return ex})),n.d(e,"DataCellClick",(function(){return FS})),n.d(e,"DataCellMultiSelection",(function(){return XS})),n.d(e,"DebuggerUtil",(function(){return Ob})),n.d(e,"EMPTY_PLACEHOLDER",(function(){return Hm})),n.d(e,"EXTRA_COLUMN_FIELD",(function(){return nm})),n.d(e,"EXTRA_FIELD",(function(){return em})),n.d(e,"EventController",(function(){return GS})),n.d(e,"FONT_FAMILY",(function(){return $y})),n.d(e,"FRONT_GROUND_GROUP_BRUSH_SELECTION_Z_INDEX",(function(){return hm})),n.d(e,"FRONT_GROUND_GROUP_COL_FROZEN_Z_INDEX",(function(){return um})),n.d(e,"FRONT_GROUND_GROUP_COL_SCROLL_Z_INDEX",(function(){return lm})),n.d(e,"FRONT_GROUND_GROUP_CONTAINER_Z_INDEX",(function(){return sm})),n.d(e,"FRONT_GROUND_GROUP_RESIZE_AREA_Z_INDEX",(function(){return cm})),n.d(e,"Frame",(function(){return eC})),n.d(e,"FrozenCellGroupMap",(function(){return ly})),n.d(e,"FrozenCellType",(function(){return Wv})),n.d(e,"FrozenGroup",(function(){return Yv})),n.d(e,"GEvent",(function(){return dt})),n.d(e,"GuiIcon",(function(){return kb})),n.d(e,"HORIZONTAL_RESIZE_AREA_KEY_PRE",(function(){return Bm})),n.d(e,"HOVER_FOCUS_DURATION",(function(){return fy})),n.d(e,"Hierarchy",(function(){return ub})),n.d(e,"HoverEvent",(function(){return US})),n.d(e,"ID_SEPARATOR",(function(){return Gm})),n.d(e,"IMAGE",(function(){return Qm})),n.d(e,"INTERACTION_STATE_INFO_KEY",(function(){return vy})),n.d(e,"InteractionBrushSelectionStage",(function(){return uy})),n.d(e,"InteractionEvent",(function(){return Ui})),n.d(e,"InteractionKeyboardKey",(function(){return cy})),n.d(e,"InteractionName",(function(){return oy})),n.d(e,"InteractionStateName",(function(){return ay})),n.d(e,"InterceptType",(function(){return dy})),n.d(e,"KEY_COL_REAL_WIDTH_INFO",(function(){return Vm})),n.d(e,"KEY_GROUP_BACK_GROUND",(function(){return vm})),n.d(e,"KEY_GROUP_COL_FROZEN",(function(){return Dm})),n.d(e,"KEY_GROUP_COL_FROZEN_TRAILING",(function(){return Rm})),n.d(e,"KEY_GROUP_COL_HORIZONTAL_RESIZE_AREA",(function(){return Pm})),n.d(e,"KEY_GROUP_COL_RESIZE_AREA",(function(){return jm})),n.d(e,"KEY_GROUP_COL_SCROLL",(function(){return Lm})),n.d(e,"KEY_GROUP_CORNER_RESIZE_AREA",(function(){return Im})),n.d(e,"KEY_GROUP_FORE_GROUND",(function(){return mm})),n.d(e,"KEY_GROUP_FROZEN_COL_RESIZE_AREA",(function(){return km})),n.d(e,"KEY_GROUP_FROZEN_ROW_RESIZE_AREA",(function(){return Tm})),n.d(e,"KEY_GROUP_FROZEN_SPLIT_LINE",(function(){return Mm})),n.d(e,"KEY_GROUP_GRID_GROUP",(function(){return Nm})),n.d(e,"KEY_GROUP_PANEL_FROZEN_BOTTOM",(function(){return Cm})),n.d(e,"KEY_GROUP_PANEL_FROZEN_COL",(function(){return xm})),n.d(e,"KEY_GROUP_PANEL_FROZEN_ROW",(function(){return _m})),n.d(e,"KEY_GROUP_PANEL_FROZEN_TOP",(function(){return Sm})),n.d(e,"KEY_GROUP_PANEL_FROZEN_TRAILING_COL",(function(){return Om})),n.d(e,"KEY_GROUP_PANEL_FROZEN_TRAILING_ROW",(function(){return wm})),n.d(e,"KEY_GROUP_PANEL_GROUND",(function(){return ym})),n.d(e,"KEY_GROUP_PANEL_SCROLL",(function(){return bm})),n.d(e,"KEY_GROUP_ROW_INDEX_RESIZE_AREA",(function(){return Am})),n.d(e,"KEY_GROUP_ROW_RESIZE_AREA",(function(){return Em})),n.d(e,"KEY_SERIES_NUMBER_NODE",(function(){return Fm})),n.d(e,"LayoutWidthTypes",(function(){return Ey})),n.d(e,"MINI_BAR_CHART_HEIGHT",(function(){return Xy})),n.d(e,"MIN_CELL_HEIGHT",(function(){return Zm})),n.d(e,"MIN_CELL_WIDTH",(function(){return qm})),n.d(e,"MIN_DEVICE_PIXEL_RATIO",(function(){return Ty})),n.d(e,"MIN_SCROLL_BAR_HEIGHT",(function(){return Iy})),n.d(e,"MergedCell",(function(){return nx})),n.d(e,"MergedCellClick",(function(){return BS})),n.d(e,"MergedCellConvertTempMergedCells",(function(){return gx})),n.d(e,"Node",(function(){return lb})),n.d(e,"OriginEventType",(function(){return Gi})),n.d(e,"PADDING_DOWN",(function(){return $m})),n.d(e,"PADDING_LEFT",(function(){return Xm})),n.d(e,"PADDING_RIGHT",(function(){return Ym})),n.d(e,"PADDING_TOP",(function(){return Wm})),n.d(e,"PALETTE_MAP",(function(){return Yy})),n.d(e,"PANEL_GROUP_FROZEN_GROUP_Z_INDEX",(function(){return pm})),n.d(e,"PANEL_GROUP_GROUP_CONTAINER_Z_INDEX",(function(){return dm})),n.d(e,"PANEL_GROUP_HOVER_BOX_GROUP_Z_INDEX",(function(){return gm})),n.d(e,"PANEL_GROUP_SCROLL_GROUP_Z_INDEX",(function(){return fm})),n.d(e,"PRECISION",(function(){return Km})),n.d(e,"PivotDataSet",(function(){return cC})),n.d(e,"PivotSheet",(function(){return DC})),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,"ROOT_BEGINNING_REGEX",(function(){return Jm})),n.d(e,"ROOT_ID",(function(){return Um})),n.d(e,"RangeSelection",(function(){return HS})),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 rC})),n.d(e,"RowCell",(function(){return wS})),n.d(e,"RowColumnClick",(function(){return zS})),n.d(e,"RowColumnResize",(function(){return qS})),n.d(e,"RowHeader",(function(){return JS})),n.d(e,"RowTextClick",(function(){return VS})),n.d(e,"S2Event",(function(){return Hi})),n.d(e,"S2_PREFIX_CLS",(function(){return ey})),n.d(e,"SERIES_NUMBER_FIELD",(function(){return im})),n.d(e,"SHAPE_ATTRS_MAP",(function(){return gy})),n.d(e,"SHAPE_STYLE_MAP",(function(){return py})),n.d(e,"ScrollDirection",(function(){return yy})),n.d(e,"ScrollbarPositionType",(function(){return my})),n.d(e,"SelectedCellMove",(function(){return YS})),n.d(e,"SeriesNumberHeader",(function(){return tC})),n.d(e,"SortMethodType",(function(){return hy})),n.d(e,"SpreadSheet",(function(){return lC})),n.d(e,"Store",(function(){return Pb})),n.d(e,"TABLE_COL_HORIZONTAL_RESIZE_AREA_KEY",(function(){return zm})),n.d(e,"TOOLTIP_CONTAINER_CLS",(function(){return Zy})),n.d(e,"TOOLTIP_OPERATION_PREFIX_CLS",(function(){return Ky})),n.d(e,"TOOLTIP_POSITION_OFFSET",(function(){return Jy})),n.d(e,"TOOLTIP_PREFIX_CLS",(function(){return qy})),n.d(e,"TOTAL_VALUE",(function(){return rm})),n.d(e,"TableColCell",(function(){return kS})),n.d(e,"TableCornerCell",(function(){return PS})),n.d(e,"TableDataCell",(function(){return LS})),n.d(e,"TableDataSet",(function(){return hC})),n.d(e,"TableRowCell",(function(){return DS})),n.d(e,"TableSheet",(function(){return NC})),n.d(e,"VALUE_FIELD",(function(){return tm})),n.d(e,"VALUE_RANGES_KEY",(function(){return ny})),n.d(e,"adjustColHeaderScrollingTextPosition",(function(){return q_})),n.d(e,"adjustColHeaderScrollingViewport",(function(){return X_})),n.d(e,"auto",(function(){return Ub})),n.d(e,"buildTableHierarchy",(function(){return bb})),n.d(e,"clearState",(function(){return Sx})),n.d(e,"convertString",(function(){return I_})),n.d(e,"copyData",(function(){return C_})),n.d(e,"copyToClipboard",(function(){return y_})),n.d(e,"copyToClipboardByClipboard",(function(){return m_})),n.d(e,"copyToClipboardByExecCommand",(function(){return v_})),n.d(e,"customMerge",(function(){return Mx})),n.d(e,"differenceTempMergedCells",(function(){return vx})),n.d(e,"download",(function(){return b_})),n.d(e,"drawBullet",(function(){return h_})),n.d(e,"drawObjectText",(function(){return d_})),n.d(e,"extendLocale",(function(){return Kv})),n.d(e,"generateId",(function(){return db})),n.d(e,"generatePalette",(function(){return Hy})),n.d(e,"generateStandardColors",(function(){return Gy})),n.d(e,"getActiveCellsInfo",(function(){return cx})),n.d(e,"getActiveCellsTooltipData",(function(){return IO})),n.d(e,"getActiveHoverRowColCells",(function(){return B_})),n.d(e,"getAutoAdjustPosition",(function(){return fO})),n.d(e,"getBaseCellData",(function(){return F_})),n.d(e,"getBorderPositionAndStyle",(function(){return $_})),n.d(e,"getBulletRangeColor",(function(){return c_})),n.d(e,"getCellMeta",(function(){return bx})),n.d(e,"getCellWidth",(function(){return f_})),n.d(e,"getClassNameWithPrefix",(function(){return DO})),n.d(e,"getContentArea",(function(){return z_})),n.d(e,"getCopyData",(function(){return R_})),n.d(e,"getDataCellId",(function(){return Q_})),n.d(e,"getDetailList",(function(){return wO})),n.d(e,"getEllipsisText",(function(){return o_})),n.d(e,"getEllipsisTextInner",(function(){return r_})),n.d(e,"getEmptyPlaceholder",(function(){return u_})),n.d(e,"getFieldFormatter",(function(){return yO})),n.d(e,"getFieldList",(function(){return _O})),n.d(e,"getFriendlyVal",(function(){return mO})),n.d(e,"getHeadInfo",(function(){return xO})),n.d(e,"getIcon",(function(){return Tb})),n.d(e,"getInvisibleInfo",(function(){return sx})),n.d(e,"getLang",(function(){return qv})),n.d(e,"getListItem",(function(){return bO})),n.d(e,"getLocale",(function(){return Jv})),n.d(e,"getMaxTextWidth",(function(){return U_})),n.d(e,"getMergedQuery",(function(){return gO})),n.d(e,"getNextEdge",(function(){return ox})),n.d(e,"getPalette",(function(){return ab})),n.d(e,"getPolygonPoints",(function(){return ax})),n.d(e,"getRangeIndex",(function(){return xx})),n.d(e,"getRectangleEdges",(function(){return rx})),n.d(e,"getSafetyDataConfig",(function(){return Ax})),n.d(e,"getSafetyOptions",(function(){return Ix})),n.d(e,"getScrollOffsetForCol",(function(){return Ex})),n.d(e,"getScrollOffsetForRow",(function(){return Tx})),n.d(e,"getSelectedCellIndexes",(function(){return CO})),n.d(e,"getSelectedCellsData",(function(){return EO})),n.d(e,"getSelectedData",(function(){return N_})),n.d(e,"getSortByMeasureValues",(function(){return ZO})),n.d(e,"getSortTypeIcon",(function(){return JO})),n.d(e,"getSummaries",(function(){return TO})),n.d(e,"getSummaryName",(function(){return OO})),n.d(e,"getTempMergedCell",(function(){return ux})),n.d(e,"getTextAndFollowingIconPosition",(function(){return H_})),n.d(e,"getTextAreaRange",(function(){return Y_})),n.d(e,"getTextPosition",(function(){return W_})),n.d(e,"getTheme",(function(){return sb})),n.d(e,"getTooltipData",(function(){return MO})),n.d(e,"getTooltipDefaultOptions",(function(){return pO})),n.d(e,"getTooltipOperatorHiddenColumnsMenu",(function(){return Qy})),n.d(e,"getTooltipOperatorSortMenus",(function(){return eb})),n.d(e,"getTooltipOperatorTableSortMenus",(function(){return nb})),n.d(e,"getTooltipOperatorTrendMenu",(function(){return tb})),n.d(e,"getTooltipOptions",(function(){return kO})),n.d(e,"getTooltipOptionsByCellType",(function(){return jO})),n.d(e,"getTooltipVisibleOperator",(function(){return PO})),n.d(e,"getTwoDimData",(function(){return k_})),n.d(e,"getValidFrozenOptions",(function(){return Hb})),n.d(e,"getVerticalPosition",(function(){return G_})),n.d(e,"getVisibleInfo",(function(){return lx})),n.d(e,"handleDataItem",(function(){return K_})),n.d(e,"handleSortAction",(function(){return KO})),n.d(e,"i18n",(function(){return Qv})),n.d(e,"includeCell",(function(){return J_})),n.d(e,"isAscSort",(function(){return GO})),n.d(e,"isDescSort",(function(){return HO})),n.d(e,"isIPhoneX",(function(){return ib})),n.d(e,"isMobile",(function(){return rb})),n.d(e,"isMultiSelectionKey",(function(){return yx})),n.d(e,"isUpDataValue",(function(){return a_})),n.d(e,"isWindows",(function(){return ob})),n.d(e,"keyEqualTo",(function(){return E_})),n.d(e,"measureTextWidth",(function(){return n_})),n.d(e,"measureTextWidthRoughly",(function(){return i_})),n.d(e,"mergeCell",(function(){return hx})),n.d(e,"mergeCellInfo",(function(){return AO})),n.d(e,"mergeTempMergedCell",(function(){return px})),n.d(e,"processCopyData",(function(){return j_})),n.d(e,"processSort",(function(){return qO})),n.d(e,"registerIcon",(function(){return Eb})),n.d(e,"removeUnmergedCellsInfo",(function(){return dx})),n.d(e,"renderCircle",(function(){return $b})),n.d(e,"renderIcon",(function(){return Qb})),n.d(e,"renderLine",(function(){return qb})),n.d(e,"renderPolygon",(function(){return Yb})),n.d(e,"renderRect",(function(){return Wb})),n.d(e,"renderText",(function(){return Xb})),n.d(e,"renderTreeIcon",(function(){return t_})),n.d(e,"safeJsonParse",(function(){return p_})),n.d(e,"selectCells",(function(){return _x})),n.d(e,"setContainerStyle",(function(){return vO})),n.d(e,"setLang",(function(){return Zv})),n.d(e,"setState",(function(){return Cx})),n.d(e,"sortAction",(function(){return WO})),n.d(e,"sortByCustom",(function(){return YO})),n.d(e,"sortByFunc",(function(){return $O})),n.d(e,"sortByMethod",(function(){return XO})),n.d(e,"splitTotal",(function(){return zb})),n.d(e,"unique",(function(){return ix})),n.d(e,"unmergeCell",(function(){return fx})),n.d(e,"updateFillOpacity",(function(){return Kb})),n.d(e,"updateMergedCells",(function(){return mx})),n.d(e,"updateShapeAttr",(function(){return Zb})),n.d(e,"updateStrokeOpacity",(function(){return Jb})),n.d(e,"verifyTheElementInTooltip",(function(){return LO}));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 Ri},get Polyline(){return Ni},get Rect(){return Fi},get Text(){return Bi}}),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 l=function(){return(l=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 u=function(t){return null!==t&&"function"!=typeof t&&isFinite(t.length)},c={}.toString,h=function(t,e){return c.call(t)==="[object "+e+"]"},d=function(t){return h(t,"Function")},f=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){d(t)&&"prototype"===r||e.push(n)})),e},E=function(t){var e=function(t){return f(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 M(t,e,n,r){return e&&T(t,e),n&&T(t,n),r&&T(t,r),t}var A,I=function(t,e){if(t===e)return!0;if(!t||!e)return!1;if(_(t)||_(e))return!1;if(u(t)||u(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(!d(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 A||(A=document.createElement("canvas").getContext("2d")),A.font=[o,a,i,n+"px",r].join(" "),A.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",D=new RegExp("([a-z])["+L+",]*((-?\\d*\\.?\\d*(?:e[\\-+]?\\d+)?["+L+"]*,?["+L+"]*)+)","ig"),R=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(D,(function(r,i,o){var a=[],s=i.toLowerCase();if(o.replace(R,(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},F=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},B=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),l=t+n*Math.cos(-i*a);o=[["M",s,e+n*Math.sin(-r*a)],["A",n,n,0,+(i-r>180),0,l,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,l=0;"M"===t[0][0]&&(a=i=+t[0][1],s=o=+t[0][2],l++,r[0]=["M",i,o]);for(var u=3===t.length&&"M"===t[0][0]&&"R"===t[1][0].toUpperCase()&&"Z"===t[2][0].toUpperCase(),c=void 0,h=void 0,d=l,f=t.length;d<f;d++){if(r.push(c=[]),(e=(h=t[d])[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(F(n,u));break;case"O":r.pop(),(n=B(i,o,h[1],h[2])).push(n[0]),r=r.concat(n);break;case"U":r.pop(),r=r.concat(B(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(F(n,u)),c=["R"].concat(h.slice(-2));else if("O"===e)r.pop(),(n=B(i,o,h[1],h[2])).push(n[0]),r=r.concat(n);else if("U"===e)r.pop(),r=r.concat(B(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,l,u){n===r&&(n+=1);var c,h,d,f,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(u)h=u[0],d=u[1],f=u[2],p=u[3];else{t=(c=y(t,e,-v)).x,e=c.y,s=(c=y(s,l,-v)).x,l=c.y,t===s&&e===l&&(s+=1,l+=1);var b=(t-s)/2,_=(e-l)/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)));f=S*n*_/r+(t+s)/2,p=S*-r*b/n+(e+l)/2,h=Math.asin(((e-p)/r).toFixed(9)),d=Math.asin(((l-p)/r).toFixed(9)),h=t<f?Math.PI-h:h,d=s<f?Math.PI-d:d,h<0&&(h=2*Math.PI+h),d<0&&(d=2*Math.PI+d),a&&h>d&&(h-=2*Math.PI),!a&&d>h&&(d-=2*Math.PI)}var C=d-h;if(Math.abs(C)>g){var E=d,T=s,M=l;d=h+g*(a&&d>h?1:-1),s=f+n*Math.cos(d),l=p+r*Math.sin(d),m=G(s,l,n,r,i,0,a,T,M,[d,E,f,p])}C=d-h;var A=Math.cos(h),I=Math.sin(h),j=Math.cos(d),k=Math.sin(d),P=Math.tan(C/4),L=4/3*n*P,D=4/3*r*P,R=[t,e],N=[t+L*I,e-D*A],F=[s+L*k,l-D*j],B=[s,l];if(N[0]=2*R[0]-N[0],N[1]=2*R[1]-N[1],u)return[N,F,B].concat(m);for(var z=[],V=0,U=(m=[N,F,B].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=[],l=[],u="",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},d=function(t,e){if(t[e].length>7){t[e].shift();for(var o=t[e];o.length;)s[e]="A",i&&(l[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)}},f=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]&&(u=r[p][0]),"C"!==u&&(s[p]=u,p&&(c=s[p-1])),r[p]=h(r[p],o,c),"A"!==s[p]&&"C"===u&&(s[p]="C"),d(r,p),i&&(i[p]&&(u=i[p][0]),"C"!==u&&(l[p]=u,p&&(c=l[p-1])),i[p]=h(i[p],a,c),"A"!==l[p]&&"C"===u&&(l[p]="C"),d(i,p)),f(r,i,o,a,p),f(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")},$=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},X=function(t,e,n,r,i,o,a,s,l){null===l&&(l=1);for(var u=(l=l>1?1:l<0?0:l)/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],d=0,f=0;f<12;f++){var p=u*c[f]+u,g=$(p,t,n,i,a),v=$(p,e,r,o,s),m=g*g+v*v;d+=h[f]*Math.sqrt(m)}return u*d},q=function(t,e,n,r,i,o,a,s){for(var l,u,c,h,d=[],f=[[],[]],p=0;p<2;++p)if(0===p?(u=6*t-12*n+6*i,l=-3*t+9*n-9*i+3*a,c=3*n-3*t):(u=6*e-12*r+6*o,l=-3*e+9*r-9*o+3*s,c=3*r-3*e),Math.abs(l)<1e-12){if(Math.abs(u)<1e-12)continue;(h=-c/u)>0&&h<1&&d.push(h)}else{var g=u*u-4*c*l,v=Math.sqrt(g);if(!(g<0)){var m=(-u+v)/(2*l);m>0&&m<1&&d.push(m);var y=(-u-v)/(2*l);y>0&&y<1&&d.push(y)}}for(var b,_=d.length,x=_;_--;)b=1-(h=d[_]),f[0][_]=b*b*b*t+3*b*b*h*n+3*b*h*h*i+h*h*h*a,f[1][_]=b*b*b*e+3*b*b*h*r+3*b*h*h*o+h*h*h*s;return f[0][x]=t,f[1][x]=e,f[0][x+1]=a,f[1][x+1]=s,f[0].length=f[1].length=x+2,{min:{x:Math.min.apply(0,f[0]),y:Math.min.apply(0,f[1])},max:{x:Math.max.apply(0,f[0]),y:Math.max.apply(0,f[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 l=(t-n)*(o-s)-(e-r)*(i-a);if(l){var u=((t*r-e*n)*(i-a)-(t-n)*(i*s-o*a))/l,c=((t*r-e*n)*(o-s)-(e-r)*(i*s-o*a))/l,h=+u.toFixed(2),d=+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)||d<+Math.min(e,r).toFixed(2)||d>+Math.max(e,r).toFixed(2)||d<+Math.min(o,s).toFixed(2)||d>+Math.max(o,s).toFixed(2)))return{x:u,y:c}}}},K=function(t,e,n){return e>=t.x&&e<=t.x+t.width&&n>=t.y&&n<=t.y+t.height},J=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},Q=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:J(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 l=q.apply(null,t);return Q(l.min.x,l.min.y,l.max.x-l.min.x,l.max.y-l.min.y)},et=function(t,e,n,r,i,o,a,s,l){var u=1-l,c=Math.pow(u,3),h=Math.pow(u,2),d=l*l,f=d*l,p=t+2*l*(n-t)+d*(i-2*n+t),g=e+2*l*(r-e)+d*(o-2*r+e),v=n+2*l*(i-n)+d*(a-2*i+n),m=r+2*l*(o-r)+d*(s-2*o+r);return{x:c*t+3*h*l*n+3*u*l*l*i+f*a,y:c*e+3*h*l*r+3*u*l*l*o+f*s,m:{x:p,y:g},n:{x:v,y:m},start:{x:u*t+l*n,y:u*e+l*r},end:{x:u*i+l*a,y:u*o+l*s},alpha:90-180*Math.atan2(p-v,g-m)/Math.PI}},nt=function(t,e,n){if(!function(t,e){return t=Q(t),e=Q(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=~~(X.apply(0,t)/8),i=~~(X.apply(0,e)/8),o=[],a=[],s={},l=n?0:[],u=0;u<r+1;u++){var c=et.apply(0,t.concat(u/r));o.push({x:c.x,y:c.y,t:u/r})}for(u=0;u<i+1;u++){c=et.apply(0,e.concat(u/i));a.push({x:c.x,y:c.y,t:u/i})}for(u=0;u<r;u++)for(var h=0;h<i;h++){var d=o[u],f=o[u+1],p=a[h],g=a[h+1],v=Math.abs(f.x-d.x)<.001?"y":"x",m=Math.abs(g.x-p.x)<.001?"y":"x",y=Z(d.x,d.y,f.x,f.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=d.t+Math.abs((y[v]-d[v])/(f[v]-d[v]))*(f.t-d.t),_=p.t+Math.abs((y[m]-p[m])/(g[m]-p[m]))*(g.t-p.t);b>=0&&b<=1&&_>=0&&_<=1&&(n?l+=1:l.push({x:y.x,y:y.y,t1:b,t2:_}))}}return l};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 l=rt(o,a/(1-a*s));i.push(l.left),o=l.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=[],l=0;l<=i;l++)s[l]=[],s[l][0]={min:l};for(var u=0;u<=o;u++)s[0][u]={min:u};for(l=1;l<=i;l++){n=t[l-1];for(u=1;u<=o;u++){r=e[u-1],a=ot(n,r)?0:1;var c=s[l-1][u].min+1,h=s[l][u-1].min+1,d=s[l-1][u-1].min+a;s[l][u]=at(c,h,d)}}return s}(t,e),r=t.length,i=e.length,o=[],a=1,s=1;if(n[r][i].min!==r){for(var l=1;l<=r;l++){var u=n[l][l].min;s=l;for(var c=a;c<=i;c++)n[l][c].min<u&&(u=n[l][c].min,s=c);a=s,n[l][a].type&&o.push({index:l-1,type:n[l][a].type})}for(l=o.length-1;l>=0;l--)a=o[l].index,"add"===o[l].type?t.splice(a,0,[].concat(t[a])):t.splice(a,1)}var h=i-(r=t.length);if(r<i)for(l=0;l<h;l++)"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 lt(t,e,n){for(var r,i=[].concat(t),o=1/(n+1),a=ut(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 ut(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=ut(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=lt(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=lt(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=lt(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:F,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 l=o.reduce((function(e,r,i){return i===n?e.concat(t[n]):e.concat(it(t[i],t[i+1],r))}),[]);return l.unshift(t[0]),"Z"!==e[r]&&"z"!==e[r]||l.push("Z"),l},fillPathByDiff:st,formatPath:ct,intersection:function(t,e){return function(t,e,n){var r,i,o,a,s,l,u,c,h,d;t=H(t),e=H(e);for(var f=n?0:[],p=0,g=t.length;p<g;p++){var v=t[p];if("M"===v[0])r=s=v[1],i=l=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,l,s,l],r=s,i=l);for(var m=0,y=e.length;m<y;m++){var b=e[m];if("M"===b[0])o=u=b[1],a=c=b[2];else{"C"===b[0]?(d=[o,a].concat(b.slice(1)),o=d[6],a=d[7]):(d=[o,a,o,a,u,c,u,c],o=u,a=c);var _=nt(h,d,n);if(n)f+=_;else{for(var x=0,w=_.length;x<w;x++)_[x].segment1=p,_[x].segment2=m,_[x].bez1=h,_[x].bez2=d;f=f.concat(_)}}}}}return f}(t,e)},parsePathArray:Y,parsePathString:N,pathToAbsolute:z,pathToCurve:H,rectPath:J}),dt=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}(),ft=function(t,e){return(ft=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}ft(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=M(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)/,Mt=[["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/]],At=[["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&&Mt.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=At.length;e<n;e++){var r=At[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],l=e[5],u=e[6],c=e[7],h=e[8],d=n[0],f=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]=d*r+f*a+p*u,t[1]=d*i+f*s+p*c,t[2]=d*o+f*l+p*h,t[3]=g*r+v*a+m*u,t[4]=g*i+v*s+m*c,t[5]=g*o+v*l+m*h,t[6]=y*r+b*a+_*u,t[7]=y*i+b*s+_*c,t[8]=y*o+b*l+_*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 Dt(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 Rt(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 Ft(t,e,n){return Pt(t,n,e)}function Bt(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":Dt(n,n,[o[1],o[2]]);break;case"s":Nt(n,n,[o[1],o[2]]);break;case"r":Rt(n,n,o[1]);break;case"m":Ft(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],l=t[5],u=t[6],c=t[7],h=t[8],d=e[0],f=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]=d*r+f*a+p*u,n[1]=d*i+f*s+p*c,n[2]=d*o+f*l+p*h,n[3]=g*r+v*a+m*u,n[4]=g*i+v*s+m*c,n[5]=g*o+v*l+m*h,n[6]=y*r+b*a+_*u,n[7]=y*i+b*s+_*c,n[8]=y*o+b*l+_*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],l=t[6],u=t[7],c=t[8],h=c*a-s*u,d=-c*o+s*l,f=u*o-a*l,p=n*h+r*d+i*f;return p?(p=1/p,e[0]=h*p,e[1]=(-c*r+i*u)*p,e[2]=(s*r-i*a)*p,e[3]=d*p,e[4]=(c*n-i*l)*p,e[5]=(-s*n+i*o)*p,e[6]=f*p,e[7]=(-u*n+r*l)*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=Bt,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 $t(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 Xt(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 M(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,l,u=t[0],c=t[1],h=t[2],f=void 0===h?"easeLinear":h,p=t[3],v=void 0===p?P:p,m=t[4],y=void 0===m?0:m;d(u)?(i=u,u={}):g(u)&&u.onFrame&&(i=u.onFrame,o=u.repeat),g(c)?(c=(l=c).duration,f=l.easing||"easeLinear",y=l.delay||0,o=l.repeat||o||!1,v=l.callback||P,a=l.pauseCallback||P,s=l.resumeCallback||P):(x(v)&&(y=v,v=null),d(f)?(v=f,f="easeLinear"):f=f||"easeLinear");var b=$t(u,this),_={fromAttrs:Yt(b,this),toAttrs:b,duration:c,easing:f,repeat:o,callback:v,pauseCallback:a,resumeCallback:s,delay:y,startTime:n.getTime(),id:k(),onFrame:i,pathFormatted:!1};r.length>0?r=Xt(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,Jt,Qt=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(d(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 le(){return ie||(se(ue),ie=ae.now()+oe)}function ue(){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 de(){ie=(re=ae.now())+oe,te=ee=0;try{!function(){le(),++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);Jt=t,pe(r)}(),ie=0}}function fe(){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(de,t-ae.now()-oe)),ne&&(ne=clearInterval(ne))):(ne||(re=ae.now(),ne=setInterval(fe,1e3)),te=1,se(de)))}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?le():+n)+(null==e?0:+e),this._next||Jt===this||(Jt?Jt._next=this:Kt=this,Jt=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]+"\\)$"),Me={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 Ae(){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 Re(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 Re(e[1],e[2],e[3],1):(e=Oe.exec(t))?new Re(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]):Me.hasOwnProperty(t)?ke(Me[t]):"transparent"===t?new Re(NaN,NaN,NaN,0):null}function ke(t){return new Re(t>>16&255,t>>8&255,255&t,1)}function Pe(t,e,n,r){return r<=0&&(t=e=n=NaN),new Re(t,e,n,r)}function Le(t){return t instanceof me||(t=je(t)),t?new Re((t=t.rgb()).r,t.g,t.b,t.opacity):new Re}function De(t,e,n,r){return 1===arguments.length?Le(t):new Re(t,e,n,null==r?1:r)}function Re(t,e,n,r){this.r=+t,this.g=+e,this.b=+n,this.opacity=+r}function Ne(){return"#"+Be(this.r)+Be(this.g)+Be(this.b)}function Fe(){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 Be(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,l=(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/=l<.5?o+i:2-o-i,a*=60):s=l>0&&l<1?0:a,new Ue(a,s,l,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:Ae,formatHex:Ae,formatHsl:function(){return Ve(this).formatHsl()},formatRgb:Ie,toString:Ie}),ge(Re,De,ve(me,{brighter:function(t){return t=null==t?1/.7:Math.pow(1/.7,t),new Re(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function(t){return t=null==t?.7:Math.pow(.7,t),new Re(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:Fe,toString:Fe})),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 Re(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 $e=function t(e){var n=We(e);function r(t,e){var r=n((t=De(t)).r,(e=De(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 Xe(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)?Xe: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 Je(t,e){var n=new Date;return t=+t,e=+e,function(r){return n.setTime(t*(1-r)+e*r),n}}function Qe(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=[],l=[];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,l.push({i:a,x:Qe(n,r)})),o=nn.lastIndex;return o<e.length&&(i=e.slice(o),s[a]?s[a]+=i:s[++a]=i),s.length<2?l[0]?function(t){return function(e){return t(e)+""}}(l[0].x):function(t){return function(){return t}}(e):(e=l.length,function(t){for(var n,r=0;r<e;++r)s[(n=l[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?Qe:"string"===r?(n=je(e))?(e=n,$e):rn:e instanceof je?$e:e instanceof Date?Je:qe(e)?Xe:Array.isArray(e)?Ke:"function"!=typeof e.valueOf&&"function"!=typeof e.toString||isNaN(e)?tn:Qe)(t,e)}function an(t){return((t*=2)<=1?t*t:--t*(2-t)+1)/2}function sn(t){return t*t*t}function ln(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}var un=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),dn=Math.PI,fn=dn/2;function pn(t){return(1-Math.cos(dn*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:ln,easeCubicIn:sn,easeCubicOut:function(t){return--t*t*t+1},easeCubicInOut:ln,easePoly:hn,easePolyIn:un,easePolyOut:cn,easePolyInOut:hn,easeSin:pn,easeSinIn:function(t){return 1==+t?1:1-Math.cos(t*fn)},easeSinOut:function(t){return Math.sin(t*fn)},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}),Mn={};var An=[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,l=Mn[(o=s).toLowerCase()]||Tn[o];if(n=n-i-e.delay,e.repeat)r=l(r=n%a/a);else{if(!((r=n/a)<1))return e.onFrame?t.attr(e.onFrame(1)):t.attr(e.toAttrs),!0;r=l(r)}if(e.onFrame){var u=e.onFrame(r);t.attr(u)}else!function(t,e,n){var r={},i=e.fromAttrs,o=e.toAttrs;if(!t.destroyed){var a,s;for(var l in o)if(!I(i[l],o[l]))if("path"===l){var u=o[l],c=i[l];u.length>c.length?(u=N(o[l]),c=N(i[l]),c=st(c,u),c=ct(c,u),e.fromAttrs.path=c,e.toAttrs.path=u):e.pathFormatted||(u=N(o[l]),c=N(i[l]),c=ct(c,u),e.fromAttrs.path=c,e.toAttrs.path=u,e.pathFormatted=!0),r[l]=[];for(var h=0;h<u.length;h++){for(var f=u[h],p=c[h],g=[],v=0;v<f.length;v++)x(f[v])&&p&&x(p[v])?(a=on(p[v],f[v]),g.push(a(n))):g.push(f[v]);r[l].push(g)}}else if("matrix"===l){var m=Ze(i[l]||An,o[l]||An)(n);r[l]=m}else["fill","stroke","fillStyle","strokeStyle"].includes(l)&&(s=o[l],/^[r,R,L,l]{1}[\s]*\(/.test(s))?r[l]=o[l]:d(o[l])||(a=on(i[l],o[l]),r[l]=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 Dn,Rn=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 dt(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,l=n.timeStamp-this.mousedownTimeStamp,u=a.clientX-t.clientX,c=a.clientY-t.clientY;l>120||u*u+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=Dn?It(Dn):"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,Fn=Nn&&"firefox"===Nn.name,Bn=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 Rn({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(Fn&&!f(t.layerX)&&t.layerX!==t.offsetX)return{x:t.layerX,y:t.layerY};if(!f(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}(Qt),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}(Qt),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]),l=Vt(e,[t.minX,t.maxY]),u=Vt(e,[t.maxX,t.maxY]);n=Math.min(a[0],s[0],l[0],u[0]),i=Math.max(a[0],s[0],l[0],u[0]),r=Math.min(a[1],s[1],l[1],u[1]),o=Math.max(a[1],s[1],l[1],u[1])}var c=this.attrs;if(c.shadowColor){var h=c.shadowBlur,d=void 0===h?0:h,f=c.shadowOffsetX,p=void 0===f?0:f,g=c.shadowOffsetY,v=void 0===g?0:g,m=n-d+p,y=i+d+p,b=r-d+v,_=o+d+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 $n(t){return Math.max.apply(null,t)}function Xn(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:$n(t)-n,height:$n(e)-r}}function Kn(t){return(t+2*Math.PI)%(2*Math.PI)}var Jn={box:function(t,e,n,r){return Zn([t,n],[e,r])},length:function(t,e,n,r){return Xn(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?Xn(t,e,i,o):a>(n-t)*(n-t)+(r-e)*(r-e)?Xn(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 l=[i-t,o-e];return Math.abs(function(t,e){return t[0]*e[0]+t[1]*e[1]}(l,s))},tangentAngle:function(t,e,n,r){return Math.atan2(r-e,n-t)}};function Qn(t,e,n,r,i,o){var a,s=1/0,l=[n,r],u=20;o&&o>200&&(u=o/10);for(var c=1/u,h=c/10,d=0;d<=u;d++){var f=d*c,p=[i.apply(null,t.concat([f])),i.apply(null,e.concat([f]))];(y=Xn(l[0],l[1],p[0],p[1]))<s&&(a=f,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(d=0;d<32&&!(h<1e-4);d++){var v=a-h,m=a+h,y=(p=[i.apply(null,t.concat([v])),i.apply(null,e.concat([v]))],Xn(l[0],l[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]))],_=Xn(l[0],l[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),l=tr(e,r,o,a),u=Jn.pointAt(t,e,n,r,a),c=Jn.pointAt(n,r,i,o,a);return[[t,e,u.x,u.y,s,l],[s,l,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],l=[t,i],u=[e,o];return void 0!==a&&l.push(tr(t,n,i,a)),void 0!==s&&u.push(tr(e,r,o,s)),Zn(l,u)},length:function(t,e,n,r,i,o){return function t(e,n,r,i,o,a,s){if(0===s)return(Xn(e,n,r,i)+Xn(r,i,o,a)+Xn(e,n,o,a))/2;var l=rr(e,n,r,i,o,a,.5),u=l[0],c=l[1];return u.push(s-1),c.push(s-1),t.apply(null,u)+t.apply(null,c)}(t,e,n,r,i,o,3)},nearestPoint:function(t,e,n,r,i,o,a,s){return Qn([t,n,i],[e,r,o],a,s,tr)},pointDistance:function(t,e,n,r,i,o,a,s){var l=this.nearestPoint(t,e,n,r,i,o,a,s);return Xn(l.x,l.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),l=nr(e,r,o,a);return Kn(Math.atan2(l,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,l=6*t-12*e+6*n,u=3*e-3*t,c=[];if(qn(s,0))qn(l,0)||(i=-u/l)>=0&&i<=1&&c.push(i);else{var h=l*l-4*s*u;qn(h,0)?c.push(-l/(2*s)):h>0&&(o=(-l-(a=Math.sqrt(h)))/(2*s),(i=(-l+a)/(2*s))>=0&&i<=1&&c.push(i),o>=0&&o<=1&&c.push(o))}return c}function lr(t,e,n,r,i,o,a,s,l){var u=or(t,n,i,a,l),c=or(e,r,o,s,l),h=Jn.pointAt(t,e,n,r,l),d=Jn.pointAt(n,r,i,o,l),f=Jn.pointAt(i,o,a,s,l),p=Jn.pointAt(h.x,h.y,d.x,d.y,l),g=Jn.pointAt(d.x,d.y,f.x,f.y,l);return[[t,e,h.x,h.y,p.x,p.y,u,c],[u,c,g.x,g.y,f.x,f.y,a,s]]}function ur(t,e,n,r,i,o,a,s,l){if(0===l)return function(t,e){for(var n=0,r=t.length,i=0;i<r;i++){n+=Xn(t[i],e[i],t[(i+1)%r],e[(i+1)%r])}return n/2}([t,n,i,a],[e,r,o,s]);var u=lr(t,e,n,r,i,o,a,s,.5),c=u[0],h=u[1];return c.push(l-1),h.push(l-1),ur.apply(null,c)+ur.apply(null,h)}var cr={extrema:sr,box:function(t,e,n,r,i,o,a,s){for(var l=[t,a],u=[e,s],c=sr(t,n,i,a),h=sr(e,r,o,s),d=0;d<c.length;d++)l.push(or(t,n,i,a,c[d]));for(d=0;d<h.length;d++)u.push(or(e,r,o,s,h[d]));return Zn(l,u)},length:function(t,e,n,r,i,o,a,s){return ur(t,e,n,r,i,o,a,s,3)},nearestPoint:function(t,e,n,r,i,o,a,s,l,u,c){return Qn([t,n,i,a],[e,r,o,s],l,u,or,c)},pointDistance:function(t,e,n,r,i,o,a,s,l,u,c){var h=this.nearestPoint(t,e,n,r,i,o,a,s,l,u,c);return Xn(h.x,h.y,l,u)},interpolationAt:or,pointAt:function(t,e,n,r,i,o,a,s,l){return{x:or(t,n,i,a,l),y:or(e,r,o,s,l)}},divide:function(t,e,n,r,i,o,a,s,l){return lr(t,e,n,r,i,o,a,s,l)},tangentAngle:function(t,e,n,r,i,o,a,s,l){var u=ar(t,n,i,a,l),c=ar(e,r,o,s,l);return Kn(Math.atan2(c,u))}};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 dr(t,e,n,r,i,o){return n*Math.sin(i)*Math.cos(o)+r*Math.cos(i)*Math.sin(o)+e}var fr=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),l=1/0,u=-1/0,c=[o,a],h=2*-Math.PI;h<=2*Math.PI;h+=Math.PI){var d=s+h;o<a?o<d&&d<a&&c.push(d):a<d&&d<o&&c.push(d)}for(h=0;h<c.length;h++){var f=hr(t,0,n,r,i,c[h]);f<l&&(l=f),f>u&&(u=f)}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=dr(0,e,n,r,i,m[h]);b<g&&(g=b),b>v&&(v=b)}return{x:l,y:g,width:u-l,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+=Xn(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 Mr(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,l=0,u=0,c=0,h=e[0];"M"!==h[0]&&"m"!==h[0]||(l=a=+h[1],u=s=+h[2],c++,o[0]=["M",a,s]);r=c;for(var d=e.length;r<d;r++){var f=e[r],g=o[r-1],v=[],m=(i=f[0]).toUpperCase();if(i!==m)switch(v[0]=m,m){case"A":v[1]=f[1],v[2]=f[2],v[3]=f[3],v[4]=f[4],v[5]=f[5],v[6]=+f[6]+a,v[7]=+f[7]+s;break;case"V":v[1]=+f[1]+s;break;case"H":v[1]=+f[1]+a;break;case"M":l=+f[1]+a,u=+f[2]+s,v[1]=l,v[2]=u;break;default:for(var y=1,b=f.length;y<b;y++)v[y]=+f[y]+(y%2?a:s)}else v=e[r];switch(m){case"Z":a=+l,s=+u;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":l=v[v.length-2],u=v[v.length-1];break;default:a=v[v.length-2],s=v[v.length-1]}o.push(v)}return o}function Ar(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1])}function Ir(t,e){return Ar(t)*Ar(e)?(t[0]*e[0]+t[1]*e[1])/(Ar(t)*Ar(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],l=t[1],u=e[6],c=e[7],h=Math.cos(i)*(s-u)/2+Math.sin(i)*(l-c)/2,d=-1*Math.sin(i)*(s-u)/2+Math.cos(i)*(l-c)/2,f=h*h/(n*n)+d*d/(r*r);f>1&&(n*=Math.sqrt(f),r*=Math.sqrt(f));var p=n*n*(d*d)+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*d/r:0,m=n?g*-r*h/n:0,y=(s+u)/2+Math.cos(i)*v-Math.sin(i)*m,b=(l+c)/2+Math.sin(i)*v+Math.cos(i)*m,_=[(h-v)/n,(d-m)/r],x=[(-1*h-v)/n,(-1*d-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,[u,c])?0:n,ry:kr(t,[u,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 Dr(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 l=t[s];r=t[s+1];var u=l[0],c={command:u,prePoint:n,params:l,startTangent:null,endTangent:null};switch(u){case"M":i=[l[1],l[2]],o=s;break;case"A":var h=Pr(n,l);c.arcParams=h}if("Z"===u)n=i,r=t[o+1];else{var d=l.length;n=[l[d-2],l[d-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 f=r?[r[r.length-2],r[r.length-1]]:null;c.nextPoint=f;var g=c.prePoint;if(["L","H","V"].includes(u))c.startTangent=[g[0]-n[0],g[1]-n[1]],c.endTangent=[n[0]-g[0],n[1]-g[1]];else if("Q"===u){var m=[l[1],l[2]];c.startTangent=[g[0]-m[0],g[1]-m[1]],c.endTangent=[n[0]-m[0],n[1]-m[1]]}else if("T"===u){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"===u){var y=[l[1],l[2]],b=[l[3],l[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"===u){var x;y=Lr((x=e[s-1]).currentPoint,g),b=[l[1],l[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"===u){var w=.001,O=c.arcParams||{},S=O.cx,C=void 0===S?0:S,E=O.cy,T=void 0===E?0:E,M=O.rx,A=void 0===M?0:M,I=O.ry,j=void 0===I?0:I,k=O.sweepFlag,P=void 0===k?0:k,L=O.startAngle,D=void 0===L?0:L,R=O.endAngle,N=void 0===R?0:R;0===P&&(w*=-1);var F=A*Math.cos(D-w)+C,B=j*Math.sin(D-w)+T;c.startTangent=[F-i[0],B-i[1]];var z=A*Math.cos(D+N+w)+C,V=j*Math.sin(D+N-w)+T;c.endTangent=[g[0]-z,g[1]-V]}e.push(c)}return e}function Rr(t,e){var n,r,i,o=t.prePoint,a=t.currentPoint,s=t.nextPoint,l=Math.pow(a[0]-o[0],2)+Math.pow(a[1]-o[1],2),u=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((l+u-c)/(2*Math.sqrt(l)*Math.sqrt(u)));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 d=Math.abs(Math.atan2(s[1]-a[1],s[0]-a[0])),f=Math.abs(Math.atan2(s[0]-a[0],s[1]-a[1]));return d=d>Math.PI/2?Math.PI-d:d,f=f>Math.PI/2?Math.PI-f:f,{xExtra:Math.cos(h/2-d)*(e/2*(1/Math.sin(h/2)))-e/2||0,yExtra:Math.cos(f-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 Fr(t,e,n,r,i,o){return i>=t&&i<=t+n&&o>=e&&o<=e+r}function Br(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,l=a.y,u={minX:s,minY:l,maxX:s+a.width,maxY:l+a.height};return{x:(u=vr(t,u)).minX,y:u.minY,width:u.maxX-u.minX,height:u.maxY-u.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 l,u=function(t,e){var n=yr(),r=0;return f(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(u){var c=e.textAlign,h=e.textBaseline,d=br(i,o,a),p={x:n,y:r-d};c&&("end"===c||"right"===c?p.x-=u:"center"===c&&(p.x-=u/2)),h&&("top"===h?p.y+=d:"middle"===h&&(p.y+=d/2)),l={x:p.x,y:p.y,width:u,height:d}}else l={x:n,y:r,width:0,height:0};return l})),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,l=g.prePoint,u=void 0;switch(g.command){case"Q":u=ir.box(l[0],l[1],s[1],s[2],s[3],s[4]);break;case"C":u=cr.box(l[0],l[1],s[1],s[2],s[3],s[4],s[5],s[6]);break;case"A":var c=g.arcParams;u=fr(c.cx,c.cy,c.rx,c.ry,c.xRotation,c.startAngle,c.endAngle);break;default:n.push(a[0]),r.push(a[1])}u&&(g.box=u,n.push(u.x,u.x+u.width),r.push(u.y,u.y+u.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),d=b(r),f=y(n),p=y(r);if(0===i.length)return{x:h,y:d,width:f-h,height:p-d};for(o=0;o<i.length;o++){var g;(a=(g=i[o]).currentPoint)[0]===h?h-=Rr(g,e).xExtra:a[0]===f&&(f+=Rr(g,e).xExtra),a[1]===d?d-=Rr(g,e).yExtra:a[1]===p&&(p+=Rr(g,e).yExtra)}return{x:h,y:d,width:f-h,height:p-d}}(t.get("segments")||Dr(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],l=e.getBBox();a>=0&&a<.5*Math.PI?(r={x:l.minX,y:l.minY},i={x:l.maxX,y:l.maxY}):.5*Math.PI<=a&&a<Math.PI?(r={x:l.maxX,y:l.minY},i={x:l.minX,y:l.maxY}):Math.PI<=a&&a<1.5*Math.PI?(r={x:l.maxX,y:l.maxY},i={x:l.minX,y:l.minY}):(r={x:l.minX,y:l.maxY},i={x:l.maxX,y:l.minY});var u=Math.tan(a),c=u*u,h=(i.x-r.x+u*(i.y-r.y))/(c+1)+r.x,d=u*(i.x-r.x+u*(i.y-r.y))/(c+1)+r.y,f=t.createLinearGradient(r.x,r.y,h,d);return Wr(s,f),f}(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 l=s.match(Hr);return l[l.length-1].split(":")[1]}var u=e.getBBox(),c=u.maxX-u.minX,h=u.maxY-u.minY,d=Math.sqrt(c*c+h*h)/2,f=t.createRadialGradient(u.minX+c*i,u.minY+h*o,0,u.minX+c/2,u.minY+h/2,a*d);return Wr(s,f),f}(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 l(){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?l():(i.onload=l,i.src=i.src),r}(t,e,n)}return n}return n instanceof CanvasPattern?n:void 0}function $r(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1])}function Xr(t,e){return $r(t)*$r(e)?(t[0]*e[0]+t[1]*e[1])/($r(t)*$r(e)):1}function qr(t,e){return(t[0]*e[1]<t[1]*e[0]?-1:1)*Math.acos(Xr(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],l=t[1],u=e[6],c=e[7],h=Math.cos(i)*(s-u)/2+Math.sin(i)*(l-c)/2,d=-1*Math.sin(i)*(s-u)/2+Math.cos(i)*(l-c)/2,f=h*h/(n*n)+d*d/(r*r);f>1&&(n*=Math.sqrt(f),r*=Math.sqrt(f));var p=n*n*(d*d)+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*d/r:0,m=n?g*-r*h/n:0,y=(s+u)/2+Math.cos(i)*v-Math.sin(i)*m,b=(l+c)/2+Math.sin(i)*v+Math.cos(i)*m,_=[(h-v)/n,(d-m)/r],x=[(-1*h-v)/n,(-1*d-m)/r],O=qr([1,0],_),C=qr(_,x);return Xr(_,x)<=-1&&(C=Math.PI),Xr(_,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,[u,c])?0:n,ry:zr(t,[u,c])?0:r,startAngle:O,endAngle:O+C,xRotation:i,arcFlag:o,sweepFlag:a}}var Kr=Math.sin,Jr=Math.cos,Qr=Math.atan2,ti=Math.PI;function ei(t,e,n,r,i,o,a){var s=e.stroke,l=e.lineWidth,u=Qr(r-o,n-i),c=new Li({type:"path",canvas:t.get("canvas"),isArrowShape:!0,attrs:{path:"M"+10*Jr(ti/6)+","+10*Kr(ti/6)+" L0,0 L"+10*Jr(ti/6)+",-"+10*Kr(ti/6),stroke:s,lineWidth:l}});c.translate(i,o),c.rotateAtPoint(i,o,u),t.set(a?"startArrowShape":"endArrowShape",c)}function ni(t,e,n,r,i,o,a){var s=e.startArrow,u=e.endArrow,c=e.stroke,h=e.lineWidth,d=a?s:u,f=d.d,p=d.fill,g=d.stroke,v=d.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}(d,["d","fill","stroke","lineWidth"]),y=Qr(r-o,n-i);f&&(i-=Jr(y)*f,o-=Kr(y)*f);var b=new Li({type:"path",canvas:t.get("canvas"),isArrowShape:!0,attrs:l(l({},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=Qr(r-e,n-t);return{dx:Jr(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 li(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 ui(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&&Br(n,e)}function di(t,e,n,r){var i=n.path,o=n.startArrow,a=n.endArrow;if(i){var s=[0,0],l=[0,0],u={dx:0,dy:0};e.beginPath();for(var c=0;c<i.length;c++){var h=i[c],d=h[0];if(0===c&&o&&o.d)u=ri((f=t.getStartTangent())[0][0],f[0][1],f[1][0],f[1][1],o.d);else if(c===i.length-2&&"Z"===i[c+1][0]&&a&&a.d){if("Z"===i[c+1][0])u=ri((f=t.getEndTangent())[0][0],f[0][1],f[1][0],f[1][1],a.d)}else if(c===i.length-1&&a&&a.d){var f;if("Z"!==i[0])u=ri((f=t.getEndTangent())[0][0],f[0][1],f[1][0],f[1][1],a.d)}var p=u.dx,g=u.dy;switch(d){case"M":e.moveTo(h[1]-p,h[2]-g),l=[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"===d)s=l;else{var M=h.length;s=[h[M-2],h[M-1]]}}}}function fi(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){fi(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 l=this.cfg.canvas;if(l){var u=l.getViewRange();this.set("isInView",Br(r,u))}}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()),li(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 l(l({},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){fi(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(!Br(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=Br(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()&&(f(o)||1===o?this.fill(t):(t.globalAlpha=o,this.fill(t),t.globalAlpha=r)),this.isStroke()&&n>0&&(f(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 l(l({},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,l=o.r,u=i/2,c=Nr(a,s,t,e);return r&&n?c<=l+u:r?c<=l:!!n&&(c>=l-u&&c<=l+u)},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 l(l({},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,l=o.y,u=o.rx,c=o.ry,h=(t-s)*(t-s),d=(e-l)*(e-l);return r&&n?yi(h,d,u+a,c+a)<=1:r?yi(h,d,u,c)<=1:!!n&&(yi(h,d,u-a,c-a)>=1&&yi(h,d,u+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,l=i>o?o/i:1;t.save(),t.translate(n,r),t.scale(s,l),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 l(l({},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,l=e.swidth,u=e.sheight,c=e.img;(c instanceof Image||_i(c))&&(f(a)||f(s)||f(l)||f(u)?t.drawImage(c,n,r,i,o):t.drawImage(c,a,s,l,u,n,r,i,o))},e}(vi);function wi(t,e,n,r,i,o,a){var s=Math.min(t,n),l=Math.max(t,n),u=Math.min(e,r),c=Math.max(e,r),h=i/2;return o>=s-h&&o<=l+h&&a>=u-h&&a<=c+h&&Jn.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 l(l({},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,l={dx:0,dy:0},u={dx:0,dy:0};a&&a.d&&(l=ri(n,r,i,o,e.startArrow.d)),s&&s.d&&(u=ri(n,r,i,o,e.endArrow.d)),t.beginPath(),t.moveTo(n+l.dx,r+l.dy),t.lineTo(i-u.dx,o-u.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 Jn.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 Jn.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 f(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(d(a))n=Mr(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){di(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 Mi(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 Ai(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(Mi(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 l=(Math.atan2(s-e,a-t)+2*Math.PI)%(2*Math.PI);if(l<r||l>i)return!1;var u={x:t+n*Math.cos(l),y:e+n*Math.sin(l)};return Nr(u.x,u.y,a,s)<=o/2}var ji=Bt;var ki=l({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 l=t[s],u=l.currentPoint,c=l.params,h=l.prePoint,d=l.box;if(!d||Fr(d.x-a,d.y-a,d.width+e,d.height+e,n,r)){switch(l.command){case"L":case"Z":o=wi(h[0],h[1],u[0],u[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 f=l.arcParams,p=f.cx,g=f.cy,v=f.rx,m=f.ry,y=f.startAngle,b=f.endAngle,_=f.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=Ai(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 l(l({},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=Mr(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=Dr(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 l=this.getTotalLength();s=ki.isPointInStroke(o,i,t,e,l)}if(!s&&r)if(a)s=Ei(this,t,e);else{var u=this.attr("path"),c=ki.extractPolygons(u);s=Pi(c.polygons,t,e)||Pi(c.polylines,t,e)}return s},e.prototype.createPath=function(t){di(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 f(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(f(o)||f(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(l,u){n=s[u+1],r=l.length,n&&((t=[])[0]=o/i,e=cr.length(l[r-2],l[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 Di(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],l=t[o-1];if(wi(s[0],s[1],l[0],l[1],e,n,r))return!0}return!1}var Ri=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=Di(o,i,t,e,!0)),!a&&r&&(a=Ai(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 l(l({},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],u=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],l,u)},e.prototype.isFill=function(){return!1},e.prototype.isInStrokeOrPath=function(t,e,n,r,i){return!(!n||!i)&&Di(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],l=n[0][1],u=n[o-1][0],c=n[o-1][1];if(r&&r.d)s+=(a=ri(s,l,n[1][0],n[1][1],r.d)).dx,l+=a.dy;if(i&&i.d)u-=(a=ri(n[o-2][0],n[o-2][1],u,c,i.d)).dx,c-=a.dy;t.beginPath(),t.moveTo(s,l);for(var h=0;h<o-1;h++){var d=n[h];t.lineTo(d[0],d[1])}t.lineTo(u,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 f(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)})),Jn.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=Jn.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 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 l(l({},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,l=o.width,u=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,l,u,c,i,t,e)),!h&&r&&(h=Ei(this,t,e)),h}var d=i/2;return r&&n?Fr(a-d,s-d,l+d,u+d,t,e):r?Fr(a,s,l,u,t,e):n?function(t,e,n,r,i,o,a){var s=i/2;return Fr(t-s,e-s,n,i,o,a)||Fr(t+n-s,e-s,i,r,o,a)||Fr(t+s,e+r-s,n,i,o,a)||Fr(t-s,e+s,i,r,o,a)}(a,s,l,u,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),l=s[0],u=s[1],c=s[2],h=s[3];t.moveTo(n+l,r),t.lineTo(n+i-u,r),0!==u&&t.arc(n+i-u,r+u,u,-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+l),0!==l&&t.arc(n+l,r+l,l,Math.PI,1.5*Math.PI),t.closePath()}},e}(vi),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 l(l({},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,l=1*i.fontSize,u=this._getSpaceingY(),c=br(i.text,i.fontSize,i.lineHeight);v(e,(function(e,i){r=s+i*(u+l)-c+l,"middle"===o&&(r+=c-l-(c-l)/2),"top"===o&&(r+=c-l),f(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;f(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&&(f(i)||1===i||(t.globalAlpha=r),this.stroke(t)),this.isFill()&&(f(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 l=s,u=zi(s,n,r),c=u[0],h=u[1];l.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&&Br(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),li(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),ui(this,n,r),li(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}(Bn);!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.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.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.DATE_CELL_BRUSH_SELECTION="data-cell:brush-selection",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_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"}(Hi||(Hi={}));var Yi="object"==typeof r&&r&&r.Object===Object&&r,$i="object"==typeof self&&self&&self.Object===Object&&self,Xi=Yi||$i||Function("return this")(),qi=Xi.Symbol,Zi=Object.prototype,Ki=Zi.hasOwnProperty,Ji=Zi.toString,Qi=qi?qi.toStringTag:void 0;var to=Object.prototype.toString;var eo=qi?qi.toStringTag:void 0;function no(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":eo&&eo in Object(t)?function(t){var e=Ki.call(t,Qi),n=t[Qi];try{t[Qi]=void 0;var r=!0}catch(t){}var i=Ji.call(t);return r&&(e?t[Qi]=n:delete t[Qi]),i}(t):function(t){return to.call(t)}(t)}function ro(t){return null!=t&&"object"==typeof t}function io(t){return"symbol"==typeof t||ro(t)&&"[object Symbol]"==no(t)}function oo(t){return"number"==typeof t?t:io(t)?NaN:+t}function ao(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 so=Array.isArray,lo=qi?qi.prototype:void 0,uo=lo?lo.toString:void 0;function co(t){if("string"==typeof t)return t;if(so(t))return ao(t,co)+"";if(io(t))return uo?uo.call(t):"";var e=t+"";return"0"==e&&1/t==-1/0?"-0":e}function ho(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=co(n),r=co(r)):(n=oo(n),r=oo(r)),i=t(n,r)}return i}}var fo=ho((function(t,e){return t+e}),0),po=/\s/;function go(t){for(var e=t.length;e--&&po.test(t.charAt(e)););return e}var vo=/^\s+/;function mo(t){return t?t.slice(0,go(t)+1).replace(vo,""):t}function yo(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}var bo=/^[-+]0x[0-9a-f]+$/i,_o=/^0b[01]+$/i,xo=/^0o[0-7]+$/i,wo=parseInt;function Oo(t){if("number"==typeof t)return t;if(io(t))return NaN;if(yo(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=yo(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=mo(t);var n=_o.test(t);return n||xo.test(t)?wo(t.slice(2),n?2:8):bo.test(t)?NaN:+t}function So(t){return t?(t=Oo(t))===1/0||t===-1/0?17976931348623157e292*(t<0?-1:1):t==t?t:0:0===t?t:0}function Co(t){var e=So(t),n=e%1;return e==e?n?e-n:e:0}function Eo(t){return t}function To(t){if(!yo(t))return!1;var e=no(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e}var Mo,Ao=Xi["__core-js_shared__"],Io=(Mo=/[^.]+$/.exec(Ao&&Ao.keys&&Ao.keys.IE_PROTO||""))?"Symbol(src)_1."+Mo:"";var jo=Function.prototype.toString;function ko(t){if(null!=t){try{return jo.call(t)}catch(t){}try{return t+""}catch(t){}}return""}var Po=/^\[object .+?Constructor\]$/,Lo=Function.prototype,Do=Object.prototype,Ro=Lo.toString,No=Do.hasOwnProperty,Fo=RegExp("^"+Ro.call(No).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Bo(t){return!(!yo(t)||function(t){return!!Io&&Io in t}(t))&&(To(t)?Fo:Po).test(ko(t))}function zo(t,e){var n=function(t,e){return null==t?void 0:t[e]}(t,e);return Bo(n)?n:void 0}var Vo=zo(Xi,"WeakMap"),Uo=Vo&&new Vo,Go=Uo?function(t,e){return Uo.set(t,e),t}:Eo,Ho=Object.create,Wo=function(){function t(){}return function(e){if(!yo(e))return{};if(Ho)return Ho(e);t.prototype=e;var n=new t;return t.prototype=void 0,n}}();function Yo(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=Wo(t.prototype),r=t.apply(n,e);return yo(r)?r:n}}function $o(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 Xo=Math.max;function qo(t,e,n,r){for(var i=-1,o=t.length,a=n.length,s=-1,l=e.length,u=Xo(o-a,0),c=Array(l+u),h=!r;++s<l;)c[s]=e[s];for(;++i<a;)(h||i<o)&&(c[n[i]]=t[i]);for(;u--;)c[s++]=t[i++];return c}var Zo=Math.max;function Ko(t,e,n,r){for(var i=-1,o=t.length,a=-1,s=n.length,l=-1,u=e.length,c=Zo(o-s,0),h=Array(c+u),d=!r;++i<c;)h[i]=t[i];for(var f=i;++l<u;)h[f+l]=e[l];for(;++a<s;)(d||i<o)&&(h[f+n[a]]=t[i++]);return h}function Jo(t,e){for(var n=t.length,r=0;n--;)t[n]===e&&++r;return r}function Qo(){}function ta(t){this.__wrapped__=t,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=4294967295,this.__views__=[]}function ea(){}ta.prototype=Wo(Qo.prototype),ta.prototype.constructor=ta;var na=Uo?function(t){return Uo.get(t)}:ea,ra={},ia=Object.prototype.hasOwnProperty;function oa(t){for(var e=t.name+"",n=ra[e],r=ia.call(ra,e)?n.length:0;r--;){var i=n[r],o=i.func;if(null==o||o==t)return i.name}return e}function aa(t,e){this.__wrapped__=t,this.__actions__=[],this.__chain__=!!e,this.__index__=0,this.__values__=void 0}function sa(t,e){var n=-1,r=t.length;for(e||(e=Array(r));++n<r;)e[n]=t[n];return e}function la(t){if(t instanceof ta)return t.clone();var e=new aa(t.__wrapped__,t.__chain__);return e.__actions__=sa(t.__actions__),e.__index__=t.__index__,e.__values__=t.__values__,e}aa.prototype=Wo(Qo.prototype),aa.prototype.constructor=aa;var ua=Object.prototype.hasOwnProperty;function ca(t){if(ro(t)&&!so(t)&&!(t instanceof ta)){if(t instanceof aa)return t;if(ua.call(t,"__wrapped__"))return la(t)}return new aa(t)}function ha(t){var e=oa(t),n=ca[e];if("function"!=typeof n||!(e in ta.prototype))return!1;if(t===n)return!0;var r=na(n);return!!r&&t===r[0]}ca.prototype=Qo.prototype,ca.prototype.constructor=ca;var da=Date.now;function fa(t){var e=0,n=0;return function(){var r=da(),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 pa=fa(Go),ga=/\{\n\/\* \[wrapped with (.+)\] \*/,va=/,? & /;var ma=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/;function ya(t){return function(){return t}}var ba=function(){try{var t=zo(Object,"defineProperty");return t({},"",{}),t}catch(t){}}(),_a=fa(ba?function(t,e){return ba(t,"toString",{configurable:!0,enumerable:!1,value:ya(e),writable:!0})}:Eo);function xa(t,e){for(var n=-1,r=null==t?0:t.length;++n<r&&!1!==e(t[n],n,t););return t}function wa(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 Oa(t){return t!=t}function Sa(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):wa(t,Oa,n)}function Ca(t,e){return!!(null==t?0:t.length)&&Sa(t,e,0)>-1}var Ea=[["ary",128],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",32],["partialRight",64],["rearg",256]];function Ta(t,e,n){var r=e+"";return _a(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(ma,"{\n/* [wrapped with "+e+"] */\n")}(r,function(t,e){return xa(Ea,(function(n){var r="_."+n[0];e&n[1]&&!Ca(t,r)&&t.push(r)})),t.sort()}(function(t){var e=t.match(ga);return e?e[1].split(va):[]}(r),n)))}function Ma(t,e,n,r,i,o,a,s,l,u){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,l,u],d=n.apply(void 0,h);return ha(t)&&pa(d,h),d.placeholder=r,Ta(d,t,e)}function Aa(t){return t.placeholder}var Ia=/^(?:0|[1-9]\d*)$/;function ja(t,e){var n=typeof t;return!!(e=null==e?9007199254740991:e)&&("number"==n||"symbol"!=n&&Ia.test(t))&&t>-1&&t%1==0&&t<e}var ka=Math.min;function Pa(t,e){for(var n=t.length,r=ka(e.length,n),i=sa(t);r--;){var o=e[r];t[r]=ja(o,n)?i[o]:void 0}return t}function La(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 Da(t,e,n,r,i,o,a,s,l,u){var c=128&e,h=1&e,d=2&e,f=24&e,p=512&e,g=d?void 0:Yo(t);return function v(){for(var m=arguments.length,y=Array(m),b=m;b--;)y[b]=arguments[b];if(f)var _=Aa(v),x=Jo(y,_);if(r&&(y=qo(y,r,i,f)),o&&(y=Ko(y,o,a,f)),m-=x,f&&m<u){var w=La(y,_);return Ma(t,e,Da,v.placeholder,n,y,w,s,l,u-m)}var O=h?n:this,S=d?O[t]:t;return m=y.length,s?y=Pa(y,s):p&&m>1&&y.reverse(),c&&l<m&&(y.length=l),this&&this!==Xi&&this instanceof v&&(S=g||Yo(S)),S.apply(O,y)}}var Ra=Math.min;var Na=Math.max;function Fa(t,e,n,r,i,o,a,s){var l=2&e;if(!l&&"function"!=typeof t)throw new TypeError("Expected a function");var u=r?r.length:0;if(u||(e&=-97,r=i=void 0),a=void 0===a?a:Na(Co(a),0),s=void 0===s?s:Co(s),u-=i?i.length:0,64&e){var c=r,h=i;r=i=void 0}var d=l?void 0:na(t),f=[t,e,n,r,i,c,h,o,a,s];if(d&&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 l=t[3];t[3]=l?qo(l,s,e[4]):s,t[4]=l?La(t[3],"__lodash_placeholder__"):e[4]}(s=e[5])&&(l=t[5],t[5]=l?Ko(l,s,e[6]):s,t[6]=l?La(t[5],"__lodash_placeholder__"):e[6]),(s=e[7])&&(t[7]=s),128&r&&(t[8]=null==t[8]?e[8]:Ra(t[8],e[8])),null==t[9]&&(t[9]=e[9]),t[0]=e[0],t[1]=i}(f,d),t=f[0],e=f[1],n=f[2],r=f[3],i=f[4],!(s=f[9]=void 0===f[9]?l?0:t.length:Na(f[9]-u,0))&&24&e&&(e&=-25),e&&1!=e)p=8==e||16==e?function(t,e,n){var r=Yo(t);return function i(){for(var o=arguments.length,a=Array(o),s=o,l=Aa(i);s--;)a[s]=arguments[s];var u=o<3&&a[0]!==l&&a[o-1]!==l?[]:La(a,l);if((o-=u.length)<n)return Ma(t,e,Da,i.placeholder,void 0,a,u,void 0,void 0,n-o);var c=this&&this!==Xi&&this instanceof i?r:t;return $o(c,this,a)}}(t,e,s):32!=e&&33!=e||i.length?Da.apply(void 0,f):function(t,e,n,r){var i=1&e,o=Yo(t);return function e(){for(var a=-1,s=arguments.length,l=-1,u=r.length,c=Array(u+s),h=this&&this!==Xi&&this instanceof e?o:t;++l<u;)c[l]=r[l];for(;s--;)c[l++]=arguments[++a];return $o(h,i?n:this,c)}}(t,e,n,r);else var p=function(t,e,n){var r=1&e,i=Yo(t);return function e(){var o=this&&this!==Xi&&this instanceof e?i:t;return o.apply(r?n:this,arguments)}}(t,e,n);return Ta((d?Go:pa)(p,f),t,e)}function Ba(t,e,n){return e=n?void 0:e,Fa(t,128,void 0,void 0,void 0,void 0,e=t&&null==e?t.length:e)}function za(t,e,n){"__proto__"==e&&ba?ba(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n}function Va(t,e){return t===e||t!=t&&e!=e}var Ua=Object.prototype.hasOwnProperty;function Ga(t,e,n){var r=t[e];Ua.call(t,e)&&Va(r,n)&&(void 0!==n||e in t)||za(t,e,n)}function Ha(t,e,n,r){var i=!n;n||(n={});for(var o=-1,a=e.length;++o<a;){var s=e[o],l=r?r(n[s],t[s],s,n,t):void 0;void 0===l&&(l=t[s]),i?za(n,s,l):Ga(n,s,l)}return n}var Wa=Math.max;function Ya(t,e,n){return e=Wa(void 0===e?t.length-1:e,0),function(){for(var r=arguments,i=-1,o=Wa(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),$o(t,this,s)}}function $a(t,e){return _a(Ya(t,e,Eo),t+"")}function Xa(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}function qa(t){return null!=t&&Xa(t.length)&&!To(t)}function Za(t,e,n){if(!yo(n))return!1;var r=typeof e;return!!("number"==r?qa(n)&&ja(e,n.length):"string"==r&&e in n)&&Va(n[e],t)}function Ka(t){return $a((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&&Za(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 Ja=Object.prototype;function Qa(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||Ja)}function ts(t,e){for(var n=-1,r=Array(t);++n<t;)r[n]=e(n);return r}function es(t){return ro(t)&&"[object Arguments]"==no(t)}var ns=Object.prototype,rs=ns.hasOwnProperty,is=ns.propertyIsEnumerable,os=es(function(){return arguments}())?es:function(t){return ro(t)&&rs.call(t,"callee")&&!is.call(t,"callee")};function as(){return!1}var ss="object"==typeof exports&&exports&&!exports.nodeType&&exports,ls=ss&&"object"==typeof i&&i&&!i.nodeType&&i,us=ls&&ls.exports===ss?Xi.Buffer:void 0,cs=(us?us.isBuffer:void 0)||as,hs={};function ds(t){return function(e){return t(e)}}hs["[object Float32Array]"]=hs["[object Float64Array]"]=hs["[object Int8Array]"]=hs["[object Int16Array]"]=hs["[object Int32Array]"]=hs["[object Uint8Array]"]=hs["[object Uint8ClampedArray]"]=hs["[object Uint16Array]"]=hs["[object Uint32Array]"]=!0,hs["[object Arguments]"]=hs["[object Array]"]=hs["[object ArrayBuffer]"]=hs["[object Boolean]"]=hs["[object DataView]"]=hs["[object Date]"]=hs["[object Error]"]=hs["[object Function]"]=hs["[object Map]"]=hs["[object Number]"]=hs["[object Object]"]=hs["[object RegExp]"]=hs["[object Set]"]=hs["[object String]"]=hs["[object WeakMap]"]=!1;var fs="object"==typeof exports&&exports&&!exports.nodeType&&exports,ps=fs&&"object"==typeof i&&i&&!i.nodeType&&i,gs=ps&&ps.exports===fs&&Yi.process,vs=function(){try{var t=ps&&ps.require&&ps.require("util").types;return t||gs&&gs.binding&&gs.binding("util")}catch(t){}}(),ms=vs&&vs.isTypedArray,ys=ms?ds(ms):function(t){return ro(t)&&Xa(t.length)&&!!hs[no(t)]},bs=Object.prototype.hasOwnProperty;function _s(t,e){var n=so(t),r=!n&&os(t),i=!n&&!r&&cs(t),o=!n&&!r&&!i&&ys(t),a=n||r||i||o,s=a?ts(t.length,String):[],l=s.length;for(var u in t)!e&&!bs.call(t,u)||a&&("length"==u||i&&("offset"==u||"parent"==u)||o&&("buffer"==u||"byteLength"==u||"byteOffset"==u)||ja(u,l))||s.push(u);return s}function xs(t,e){return function(n){return t(e(n))}}var ws=xs(Object.keys,Object),Os=Object.prototype.hasOwnProperty;function Ss(t){if(!Qa(t))return ws(t);var e=[];for(var n in Object(t))Os.call(t,n)&&"constructor"!=n&&e.push(n);return e}function Cs(t){return qa(t)?_s(t):Ss(t)}var Es=Object.prototype.hasOwnProperty,Ts=Ka((function(t,e){if(Qa(e)||qa(e))Ha(e,Cs(e),t);else for(var n in e)Es.call(e,n)&&Ga(t,n,e[n])}));var Ms=Object.prototype.hasOwnProperty;function As(t){if(!yo(t))return function(t){var e=[];if(null!=t)for(var n in Object(t))e.push(n);return e}(t);var e=Qa(t),n=[];for(var r in t)("constructor"!=r||!e&&Ms.call(t,r))&&n.push(r);return n}function Is(t){return qa(t)?_s(t,!0):As(t)}var js=Ka((function(t,e){Ha(e,Is(e),t)})),ks=Ka((function(t,e,n,r){Ha(e,Is(e),t,r)})),Ps=Ka((function(t,e,n,r){Ha(e,Cs(e),t,r)})),Ls=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Ds=/^\w*$/;function Rs(t,e){if(so(t))return!1;var n=typeof t;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!io(t))||(Ds.test(t)||!Ls.test(t)||null!=e&&t in Object(e))}var Ns=zo(Object,"create");var Fs=Object.prototype.hasOwnProperty;var Bs=Object.prototype.hasOwnProperty;function zs(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 Vs(t,e){for(var n=t.length;n--;)if(Va(t[n][0],e))return n;return-1}zs.prototype.clear=function(){this.__data__=Ns?Ns(null):{},this.size=0},zs.prototype.delete=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e},zs.prototype.get=function(t){var e=this.__data__;if(Ns){var n=e[t];return"__lodash_hash_undefined__"===n?void 0:n}return Fs.call(e,t)?e[t]:void 0},zs.prototype.has=function(t){var e=this.__data__;return Ns?void 0!==e[t]:Bs.call(e,t)},zs.prototype.set=function(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=Ns&&void 0===e?"__lodash_hash_undefined__":e,this};var Us=Array.prototype.splice;function Gs(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])}}Gs.prototype.clear=function(){this.__data__=[],this.size=0},Gs.prototype.delete=function(t){var e=this.__data__,n=Vs(e,t);return!(n<0)&&(n==e.length-1?e.pop():Us.call(e,n,1),--this.size,!0)},Gs.prototype.get=function(t){var e=this.__data__,n=Vs(e,t);return n<0?void 0:e[n][1]},Gs.prototype.has=function(t){return Vs(this.__data__,t)>-1},Gs.prototype.set=function(t,e){var n=this.__data__,r=Vs(n,t);return r<0?(++this.size,n.push([t,e])):n[r][1]=e,this};var Hs=zo(Xi,"Map");function Ws(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 Ys(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])}}Ys.prototype.clear=function(){this.size=0,this.__data__={hash:new zs,map:new(Hs||Gs),string:new zs}},Ys.prototype.delete=function(t){var e=Ws(this,t).delete(t);return this.size-=e?1:0,e},Ys.prototype.get=function(t){return Ws(this,t).get(t)},Ys.prototype.has=function(t){return Ws(this,t).has(t)},Ys.prototype.set=function(t,e){var n=Ws(this,t),r=n.size;return n.set(t,e),this.size+=n.size==r?0:1,this};function $s(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($s.Cache||Ys),n}$s.Cache=Ys;var Xs=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,qs=/\\(\\)?/g,Zs=function(t){var e=$s(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(Xs,(function(t,n,r,i){e.push(r?i.replace(qs,"$1"):n||t)})),e}));function Ks(t){return null==t?"":co(t)}function Js(t,e){return so(t)?t:Rs(t,e)?[t]:Zs(Ks(t))}function Qs(t){if("string"==typeof t||io(t))return t;var e=t+"";return"0"==e&&1/t==-1/0?"-0":e}function tl(t,e){for(var n=0,r=(e=Js(e,t)).length;null!=t&&n<r;)t=t[Qs(e[n++])];return n&&n==r?t:void 0}function el(t,e,n){var r=null==t?void 0:tl(t,e);return void 0===r?n:r}function nl(t,e){for(var n=-1,r=e.length,i=Array(r),o=null==t;++n<r;)i[n]=o?void 0:el(t,e[n]);return i}function rl(t,e){for(var n=-1,r=e.length,i=t.length;++n<r;)t[i+n]=e[n];return t}var il=qi?qi.isConcatSpreadable:void 0;function ol(t){return so(t)||os(t)||!!(il&&t&&t[il])}function al(t,e,n,r,i){var o=-1,a=t.length;for(n||(n=ol),i||(i=[]);++o<a;){var s=t[o];e>0&&n(s)?e>1?al(s,e-1,n,r,i):rl(i,s):r||(i[i.length]=s)}return i}function sl(t){return(null==t?0:t.length)?al(t,1):[]}function ll(t){return _a(Ya(t,void 0,sl),t+"")}var ul=ll(nl),cl=xs(Object.getPrototypeOf,Object),hl=Function.prototype,dl=Object.prototype,fl=hl.toString,pl=dl.hasOwnProperty,gl=fl.call(Object);function vl(t){if(!ro(t)||"[object Object]"!=no(t))return!1;var e=cl(t);if(null===e)return!0;var n=pl.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&fl.call(n)==gl}function ml(t){if(!ro(t))return!1;var e=no(t);return"[object Error]"==e||"[object DOMException]"==e||"string"==typeof t.message&&"string"==typeof t.name&&!vl(t)}var yl=$a((function(t,e){try{return $o(t,void 0,e)}catch(t){return ml(t)?t:new Error(t)}}));function bl(t,e){var n;if("function"!=typeof e)throw new TypeError("Expected a function");return t=Co(t),function(){return--t>0&&(n=e.apply(this,arguments)),t<=1&&(e=void 0),n}}var _l=$a((function(t,e,n){var r=1;if(n.length){var i=La(n,Aa(_l));r|=32}return Fa(t,r,e,n,i)}));_l.placeholder={};var xl=_l,wl=ll((function(t,e){return xa(e,(function(e){e=Qs(e),za(t,e,xl(t[e],t))})),t})),Ol=$a((function(t,e,n){var r=3;if(n.length){var i=La(n,Aa(Ol));r|=32}return Fa(e,r,t,n,i)}));Ol.placeholder={};var Sl=Ol;function Cl(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 El(t,e,n){var r=t.length;return n=void 0===n?r:n,!e&&n>=r?t:Cl(t,e,n)}var Tl=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");function Ml(t){return Tl.test(t)}var Al="[\\ud800-\\udfff]",Il="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",jl="\\ud83c[\\udffb-\\udfff]",kl="[^\\ud800-\\udfff]",Pl="(?:\\ud83c[\\udde6-\\uddff]){2}",Ll="[\\ud800-\\udbff][\\udc00-\\udfff]",Dl="(?:"+Il+"|"+jl+")"+"?",Rl="[\\ufe0e\\ufe0f]?"+Dl+("(?:\\u200d(?:"+[kl,Pl,Ll].join("|")+")[\\ufe0e\\ufe0f]?"+Dl+")*"),Nl="(?:"+[kl+Il+"?",Il,Pl,Ll,Al].join("|")+")",Fl=RegExp(jl+"(?="+jl+")|"+Nl+Rl,"g");function Bl(t){return Ml(t)?function(t){return t.match(Fl)||[]}(t):function(t){return t.split("")}(t)}function zl(t){return function(e){var n=Ml(e=Ks(e))?Bl(e):void 0,r=n?n[0]:e.charAt(0),i=n?El(n,1).join(""):e.slice(1);return r[t]()+i}}var Vl=zl("toUpperCase");function Ul(t){return Vl(Ks(t).toLowerCase())}function Gl(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 Hl(t){return function(e){return null==t?void 0:t[e]}}var Wl=Hl({"À":"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"}),Yl=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,$l=RegExp("[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]","g");function Xl(t){return(t=Ks(t))&&t.replace(Yl,Wl).replace($l,"")}var ql=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;var Zl=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;var Kl="\\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",Jl="["+Kl+"]",Ql="\\d+",tu="[\\u2700-\\u27bf]",eu="[a-z\\xdf-\\xf6\\xf8-\\xff]",nu="[^\\ud800-\\udfff"+Kl+Ql+"\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde]",ru="(?:\\ud83c[\\udde6-\\uddff]){2}",iu="[\\ud800-\\udbff][\\udc00-\\udfff]",ou="[A-Z\\xc0-\\xd6\\xd8-\\xde]",au="(?:"+eu+"|"+nu+")",su="(?:"+ou+"|"+nu+")",lu="(?:[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]|\\ud83c[\\udffb-\\udfff])?",uu="[\\ufe0e\\ufe0f]?"+lu+("(?:\\u200d(?:"+["[^\\ud800-\\udfff]",ru,iu].join("|")+")[\\ufe0e\\ufe0f]?"+lu+")*"),cu="(?:"+[tu,ru,iu].join("|")+")"+uu,hu=RegExp([ou+"?"+eu+"+(?:['’](?:d|ll|m|re|s|t|ve))?(?="+[Jl,ou,"$"].join("|")+")",su+"+(?:['’](?:D|LL|M|RE|S|T|VE))?(?="+[Jl,ou+au,"$"].join("|")+")",ou+"?"+au+"+(?:['’](?:d|ll|m|re|s|t|ve))?",ou+"+(?:['’](?: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_])",Ql,cu].join("|"),"g");function du(t,e,n){return t=Ks(t),void 0===(e=n?void 0:e)?function(t){return Zl.test(t)}(t)?function(t){return t.match(hu)||[]}(t):function(t){return t.match(ql)||[]}(t):t.match(e)||[]}var fu=RegExp("['’]","g");function pu(t){return function(e){return Gl(du(Xl(e).replace(fu,"")),t,"")}}var gu=pu((function(t,e,n){return e=e.toLowerCase(),t+(n?Ul(e):e)}));var vu=Xi.isFinite,mu=Math.min;function yu(t){var e=Math[t];return function(t,n){if(t=Oo(t),(n=null==n?0:mu(Co(n),292))&&vu(t)){var r=(Ks(t)+"e").split("e");return+((r=(Ks(e(r[0]+"e"+(+r[1]+n)))+"e").split("e"))[0]+"e"+(+r[1]-n))}return e(t)}}var bu=yu("ceil");function _u(t){var e=ca(t);return e.__chain__=!0,e}var xu=Math.ceil,wu=Math.max;function Ou(t,e,n){return t==t&&(void 0!==n&&(t=t<=n?t:n),void 0!==e&&(t=t>=e?t:e)),t}function Su(t,e,n){return void 0===n&&(n=e,e=void 0),void 0!==n&&(n=(n=Oo(n))==n?n:0),void 0!==e&&(e=(e=Oo(e))==e?e:0),Ou(Oo(t),e,n)}function Cu(t){var e=this.__data__=new Gs(t);this.size=e.size}function Eu(t,e){return t&&Ha(e,Cs(e),t)}Cu.prototype.clear=function(){this.__data__=new Gs,this.size=0},Cu.prototype.delete=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n},Cu.prototype.get=function(t){return this.__data__.get(t)},Cu.prototype.has=function(t){return this.__data__.has(t)},Cu.prototype.set=function(t,e){var n=this.__data__;if(n instanceof Gs){var r=n.__data__;if(!Hs||r.length<199)return r.push([t,e]),this.size=++n.size,this;n=this.__data__=new Ys(r)}return n.set(t,e),this.size=n.size,this};var Tu="object"==typeof exports&&exports&&!exports.nodeType&&exports,Mu=Tu&&"object"==typeof i&&i&&!i.nodeType&&i,Au=Mu&&Mu.exports===Tu?Xi.Buffer:void 0,Iu=Au?Au.allocUnsafe:void 0;function ju(t,e){if(e)return t.slice();var n=t.length,r=Iu?Iu(n):new t.constructor(n);return t.copy(r),r}function ku(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 Pu(){return[]}var Lu=Object.prototype.propertyIsEnumerable,Du=Object.getOwnPropertySymbols,Ru=Du?function(t){return null==t?[]:(t=Object(t),ku(Du(t),(function(e){return Lu.call(t,e)})))}:Pu;var Nu=Object.getOwnPropertySymbols?function(t){for(var e=[];t;)rl(e,Ru(t)),t=cl(t);return e}:Pu;function Fu(t,e,n){var r=e(t);return so(t)?r:rl(r,n(t))}function Bu(t){return Fu(t,Cs,Ru)}function zu(t){return Fu(t,Is,Nu)}var Vu=zo(Xi,"DataView"),Uu=zo(Xi,"Promise"),Gu=zo(Xi,"Set"),Hu=ko(Vu),Wu=ko(Hs),Yu=ko(Uu),$u=ko(Gu),Xu=ko(Vo),qu=no;(Vu&&"[object DataView]"!=qu(new Vu(new ArrayBuffer(1)))||Hs&&"[object Map]"!=qu(new Hs)||Uu&&"[object Promise]"!=qu(Uu.resolve())||Gu&&"[object Set]"!=qu(new Gu)||Vo&&"[object WeakMap]"!=qu(new Vo))&&(qu=function(t){var e=no(t),n="[object Object]"==e?t.constructor:void 0,r=n?ko(n):"";if(r)switch(r){case Hu:return"[object DataView]";case Wu:return"[object Map]";case Yu:return"[object Promise]";case $u:return"[object Set]";case Xu:return"[object WeakMap]"}return e});var Zu=qu,Ku=Object.prototype.hasOwnProperty;var Ju=Xi.Uint8Array;function Qu(t){var e=new t.constructor(t.byteLength);return new Ju(e).set(new Ju(t)),e}var tc=/\w*$/;var ec=qi?qi.prototype:void 0,nc=ec?ec.valueOf:void 0;function rc(t,e){var n=e?Qu(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)}function ic(t,e,n){var r,i=t.constructor;switch(e){case"[object ArrayBuffer]":return Qu(t);case"[object Boolean]":case"[object Date]":return new i(+t);case"[object DataView]":return function(t,e){var n=e?Qu(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 rc(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,tc.exec(t));return e.lastIndex=t.lastIndex,e}(t);case"[object Set]":return new i;case"[object Symbol]":return r=t,nc?Object(nc.call(r)):{}}}function oc(t){return"function"!=typeof t.constructor||Qa(t)?{}:Wo(cl(t))}var ac=vs&&vs.isMap,sc=ac?ds(ac):function(t){return ro(t)&&"[object Map]"==Zu(t)};var lc=vs&&vs.isSet,uc=lc?ds(lc):function(t){return ro(t)&&"[object Set]"==Zu(t)},cc={};function hc(t,e,n,r,i,o){var a,s=1&e,l=2&e,u=4&e;if(n&&(a=i?n(t,r,i,o):n(t)),void 0!==a)return a;if(!yo(t))return t;var c=so(t);if(c){if(a=function(t){var e=t.length,n=new t.constructor(e);return e&&"string"==typeof t[0]&&Ku.call(t,"index")&&(n.index=t.index,n.input=t.input),n}(t),!s)return sa(t,a)}else{var h=Zu(t),d="[object Function]"==h||"[object GeneratorFunction]"==h;if(cs(t))return ju(t,s);if("[object Object]"==h||"[object Arguments]"==h||d&&!i){if(a=l||d?{}:oc(t),!s)return l?function(t,e){return Ha(t,Nu(t),e)}(t,function(t,e){return t&&Ha(e,Is(e),t)}(a,t)):function(t,e){return Ha(t,Ru(t),e)}(t,Eu(a,t))}else{if(!cc[h])return i?t:{};a=ic(t,h,s)}}o||(o=new Cu);var f=o.get(t);if(f)return f;o.set(t,a),uc(t)?t.forEach((function(r){a.add(hc(r,e,n,r,t,o))})):sc(t)&&t.forEach((function(r,i){a.set(i,hc(r,e,n,i,t,o))}));var p=c?void 0:(u?l?zu:Bu:l?Is:Cs)(t);return xa(p||t,(function(r,i){p&&(r=t[i=r]),Ga(a,i,hc(r,e,n,i,t,o))})),a}cc["[object Arguments]"]=cc["[object Array]"]=cc["[object ArrayBuffer]"]=cc["[object DataView]"]=cc["[object Boolean]"]=cc["[object Date]"]=cc["[object Float32Array]"]=cc["[object Float64Array]"]=cc["[object Int8Array]"]=cc["[object Int16Array]"]=cc["[object Int32Array]"]=cc["[object Map]"]=cc["[object Number]"]=cc["[object Object]"]=cc["[object RegExp]"]=cc["[object Set]"]=cc["[object String]"]=cc["[object Symbol]"]=cc["[object Uint8Array]"]=cc["[object Uint8ClampedArray]"]=cc["[object Uint16Array]"]=cc["[object Uint32Array]"]=!0,cc["[object Error]"]=cc["[object Function]"]=cc["[object WeakMap]"]=!1;function dc(t){return hc(t,4)}function fc(t){return hc(t,5)}function pc(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 gc(){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 rl(so(n)?sa(n):[n],al(e,1))}function vc(t){var e=-1,n=null==t?0:t.length;for(this.__data__=new Ys;++e<n;)this.add(t[e])}function mc(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 yc(t,e){return t.has(e)}vc.prototype.add=vc.prototype.push=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this},vc.prototype.has=function(t){return this.__data__.has(t)};function bc(t,e,n,r,i,o){var a=1&n,s=t.length,l=e.length;if(s!=l&&!(a&&l>s))return!1;var u=o.get(t),c=o.get(e);if(u&&c)return u==e&&c==t;var h=-1,d=!0,f=2&n?new vc: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;d=!1;break}if(f){if(!mc(e,(function(t,e){if(!yc(f,e)&&(p===t||i(p,t,n,r,o)))return f.push(e)}))){d=!1;break}}else if(p!==g&&!i(p,g,n,r,o)){d=!1;break}}return o.delete(t),o.delete(e),d}function _c(t){var e=-1,n=Array(t.size);return t.forEach((function(t,r){n[++e]=[r,t]})),n}function xc(t){var e=-1,n=Array(t.size);return t.forEach((function(t){n[++e]=t})),n}var wc=qi?qi.prototype:void 0,Oc=wc?wc.valueOf:void 0;var Sc=Object.prototype.hasOwnProperty;var Cc="[object Object]",Ec=Object.prototype.hasOwnProperty;function Tc(t,e,n,r,i,o){var a=so(t),s=so(e),l=a?"[object Array]":Zu(t),u=s?"[object Array]":Zu(e),c=(l="[object Arguments]"==l?Cc:l)==Cc,h=(u="[object Arguments]"==u?Cc:u)==Cc,d=l==u;if(d&&cs(t)){if(!cs(e))return!1;a=!0,c=!1}if(d&&!c)return o||(o=new Cu),a||ys(t)?bc(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 Ju(t),new Ju(e)));case"[object Boolean]":case"[object Date]":case"[object Number]":return Va(+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=_c;case"[object Set]":var l=1&r;if(s||(s=xc),t.size!=e.size&&!l)return!1;var u=a.get(t);if(u)return u==e;r|=2,a.set(t,e);var c=bc(s(t),s(e),r,i,o,a);return a.delete(t),c;case"[object Symbol]":if(Oc)return Oc.call(t)==Oc.call(e)}return!1}(t,e,l,n,r,i,o);if(!(1&n)){var f=c&&Ec.call(t,"__wrapped__"),p=h&&Ec.call(e,"__wrapped__");if(f||p){var g=f?t.value():t,v=p?e.value():e;return o||(o=new Cu),i(g,v,n,r,o)}}return!!d&&(o||(o=new Cu),function(t,e,n,r,i,o){var a=1&n,s=Bu(t),l=s.length;if(l!=Bu(e).length&&!a)return!1;for(var u=l;u--;){var c=s[u];if(!(a?c in e:Sc.call(e,c)))return!1}var h=o.get(t),d=o.get(e);if(h&&d)return h==e&&d==t;var f=!0;o.set(t,e),o.set(e,t);for(var p=a;++u<l;){var g=t[c=s[u]],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)){f=!1;break}p||(p="constructor"==c)}if(f&&!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||(f=!1)}return o.delete(t),o.delete(e),f}(t,e,n,r,i,o))}function Mc(t,e,n,r,i){return t===e||(null==t||null==e||!ro(t)&&!ro(e)?t!=t&&e!=e:Tc(t,e,n,r,Mc,i))}function Ac(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 l=(s=n[i])[0],u=t[l],c=s[1];if(a&&s[2]){if(void 0===u&&!(l in t))return!1}else{var h=new Cu;if(r)var d=r(u,c,l,t,e,h);if(!(void 0===d?Mc(c,u,3,r,h):d))return!1}}return!0}function Ic(t){return t==t&&!yo(t)}function jc(t){for(var e=Cs(t),n=e.length;n--;){var r=e[n],i=t[r];e[n]=[r,i,Ic(i)]}return e}function kc(t,e){return function(n){return null!=n&&(n[t]===e&&(void 0!==e||t in Object(n)))}}function Pc(t){var e=jc(t);return 1==e.length&&e[0][2]?kc(e[0][0],e[0][1]):function(n){return n===t||Ac(n,t,e)}}function Lc(t,e){return null!=t&&e in Object(t)}function Dc(t,e,n){for(var r=-1,i=(e=Js(e,t)).length,o=!1;++r<i;){var a=Qs(e[r]);if(!(o=null!=t&&n(t,a)))break;t=t[a]}return o||++r!=i?o:!!(i=null==t?0:t.length)&&Xa(i)&&ja(a,i)&&(so(t)||os(t))}function Rc(t,e){return null!=t&&Dc(t,e,Lc)}function Nc(t,e){return Rs(t)&&Ic(e)?kc(Qs(t),e):function(n){var r=el(n,t);return void 0===r&&r===e?Rc(n,t):Mc(e,r,3)}}function Fc(t){return function(e){return null==e?void 0:e[t]}}function Bc(t){return Rs(t)?Fc(Qs(t)):function(t){return function(e){return tl(e,t)}}(t)}function zc(t){return"function"==typeof t?t:null==t?Eo:"object"==typeof t?so(t)?Nc(t[0],t[1]):Pc(t):Bc(t)}function Vc(t){var e=null==t?0:t.length,n=zc;return t=e?ao(t,(function(t){if("function"!=typeof t[1])throw new TypeError("Expected a function");return[n(t[0]),t[1]]})):[],$a((function(n){for(var r=-1;++r<e;){var i=t[r];if($o(i[0],this,n))return $o(i[1],this,n)}}))}function Uc(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 Gc(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 Hc(t){return function(e,n,r){for(var i=-1,o=Object(e),a=r(e),s=a.length;s--;){var l=a[t?s:++i];if(!1===n(o[l],l,o))break}return e}}var Wc=Hc();function Yc(t,e){return t&&Wc(t,e,Cs)}function $c(t,e){return function(n,r){if(null==n)return n;if(!qa(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 Xc=$c(Yc);function qc(t,e,n,r){return Xc(t,(function(t,i,o){e(r,t,n(t),o)})),r}function Zc(t,e){return function(n,r){var i=so(n)?Gc:qc,o=e?e():{};return i(n,t,zc(r),o)}}var Kc=Object.prototype.hasOwnProperty,Jc=Zc((function(t,e,n){Kc.call(t,n)?++t[n]:za(t,n,1)}));function Qc(t,e,n){var r=Fa(t,8,void 0,void 0,void 0,void 0,void 0,e=n?void 0:e);return r.placeholder=Qc.placeholder,r}Qc.placeholder={};function th(t,e,n){var r=Fa(t,16,void 0,void 0,void 0,void 0,void 0,e=n?void 0:e);return r.placeholder=th.placeholder,r}th.placeholder={};var eh=function(){return Xi.Date.now()},nh=Math.max,rh=Math.min;function ih(t,e,n){var r,i,o,a,s,l,u=0,c=!1,h=!1,d=!0;if("function"!=typeof t)throw new TypeError("Expected a function");function f(e){var n=r,o=i;return r=i=void 0,u=e,a=t.apply(o,n)}function p(t){return u=t,s=setTimeout(v,e),c?f(t):a}function g(t){var n=t-l;return void 0===l||n>=e||n<0||h&&t-u>=o}function v(){var t=eh();if(g(t))return m(t);s=setTimeout(v,function(t){var n=e-(t-l);return h?rh(n,o-(t-u)):n}(t))}function m(t){return s=void 0,d&&r?f(t):(r=i=void 0,a)}function y(){var t=eh(),n=g(t);if(r=arguments,i=this,l=t,n){if(void 0===s)return p(l);if(h)return clearTimeout(s),s=setTimeout(v,e),f(l)}return void 0===s&&(s=setTimeout(v,e)),a}return e=Oo(e)||0,yo(n)&&(c=!!n.leading,o=(h="maxWait"in n)?nh(Oo(n.maxWait)||0,e):o,d="trailing"in n?!!n.trailing:d),y.cancel=function(){void 0!==s&&clearTimeout(s),u=0,r=l=i=s=void 0},y.flush=function(){return void 0===s?a:m(eh())},y}var oh=Object.prototype,ah=oh.hasOwnProperty,sh=$a((function(t,e){t=Object(t);var n=-1,r=e.length,i=r>2?e[2]:void 0;for(i&&Za(e[0],e[1],i)&&(r=1);++n<r;)for(var o=e[n],a=Is(o),s=-1,l=a.length;++s<l;){var u=a[s],c=t[u];(void 0===c||Va(c,oh[u])&&!ah.call(t,u))&&(t[u]=o[u])}return t}));function lh(t,e,n){(void 0!==n&&!Va(t[e],n)||void 0===n&&!(e in t))&&za(t,e,n)}function uh(t){return ro(t)&&qa(t)}function ch(t,e){if(("constructor"!==e||"function"!=typeof t[e])&&"__proto__"!=e)return t[e]}function hh(t){return Ha(t,Is(t))}function dh(t,e,n,r,i){t!==e&&Wc(e,(function(o,a){if(i||(i=new Cu),yo(o))!function(t,e,n,r,i,o,a){var s=ch(t,n),l=ch(e,n),u=a.get(l);if(u)lh(t,n,u);else{var c=o?o(s,l,n+"",t,e,a):void 0,h=void 0===c;if(h){var d=so(l),f=!d&&cs(l),p=!d&&!f&&ys(l);c=l,d||f||p?so(s)?c=s:uh(s)?c=sa(s):f?(h=!1,c=ju(l,!0)):p?(h=!1,c=rc(l,!0)):c=[]:vl(l)||os(l)?(c=s,os(s)?c=hh(s):yo(s)&&!To(s)||(c=oc(l))):h=!1}h&&(a.set(l,c),i(c,l,r,o,a),a.delete(l)),lh(t,n,c)}}(t,e,a,n,dh,r,i);else{var s=r?r(ch(t,a),o,a+"",t,e,i):void 0;void 0===s&&(s=o),lh(t,a,s)}}),Is)}function fh(t,e,n,r,i,o){return yo(t)&&yo(e)&&(o.set(e,t),dh(t,e,void 0,fh,o),o.delete(e)),t}var ph=Ka((function(t,e,n,r){dh(t,e,n,r)})),gh=$a((function(t){return t.push(void 0,fh),$o(ph,void 0,t)}));function vh(t,e,n){if("function"!=typeof t)throw new TypeError("Expected a function");return setTimeout((function(){t.apply(void 0,n)}),e)}var mh=$a((function(t,e){return vh(t,1,e)})),yh=$a((function(t,e,n){return vh(t,Oo(e)||0,n)}));function bh(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 _h(t,e,n,r){var i=-1,o=Ca,a=!0,s=t.length,l=[],u=e.length;if(!s)return l;n&&(e=ao(e,ds(n))),r?(o=bh,a=!1):e.length>=200&&(o=yc,a=!1,e=new vc(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 d=u;d--;)if(e[d]===h)continue t;l.push(c)}else o(e,h,r)||l.push(c)}return l}var xh=$a((function(t,e){return uh(t)?_h(t,al(e,1,uh,!0)):[]}));function wh(t){var e=null==t?0:t.length;return e?t[e-1]:void 0}var Oh=$a((function(t,e){var n=wh(e);return uh(n)&&(n=void 0),uh(t)?_h(t,al(e,1,uh,!0),zc(n)):[]})),Sh=$a((function(t,e){var n=wh(e);return uh(n)&&(n=void 0),uh(t)?_h(t,al(e,1,uh,!0),void 0,n):[]})),Ch=ho((function(t,e){return t/e}),1);function Eh(t,e,n,r){for(var i=t.length,o=r?i:-1;(r?o--:++o<i)&&e(t[o],o,t););return n?Cl(t,r?0:o,r?o+1:i):Cl(t,r?o+1:0,r?i:o)}function Th(t){return"function"==typeof t?t:Eo}function Mh(t,e){return(so(t)?xa:Xc)(t,Th(e))}function Ah(t,e){for(var n=null==t?0:t.length;n--&&!1!==e(t[n],n,t););return t}var Ih=Hc(!0);function jh(t,e){return t&&Ih(t,e,Cs)}var kh=$c(jh,!0);function Ph(t,e){return(so(t)?Ah:kh)(t,Th(e))}function Lh(t,e,n){t=Ks(t),e=co(e);var r=t.length,i=n=void 0===n?r:Ou(Co(n),0,r);return(n-=e.length)>=0&&t.slice(n,i)==e}function Dh(t){return function(e){var n=Zu(e);return"[object Map]"==n?_c(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 ao(e,(function(e){return[e,t[e]]}))}(e,t(e))}}var Rh=Dh(Cs),Nh=Dh(Is),Fh=Hl({"&":"&","<":"<",">":">",'"':""","'":"'"}),Bh=/[&<>"']/g,zh=RegExp(Bh.source);function Vh(t){return(t=Ks(t))&&zh.test(t)?t.replace(Bh,Fh):t}var Uh=/[\\^$.*+?()[\]{}|]/g,Gh=RegExp(Uh.source);function Hh(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 Wh(t,e){var n=!0;return Xc(t,(function(t,r,i){return n=!!e(t,r,i)})),n}function Yh(t,e,n){var r=so(t)?Hh:Wh;return n&&Za(t,e,n)&&(e=void 0),r(t,zc(e))}function $h(t){return t?Ou(Co(t),0,4294967295):0}function Xh(t,e){var n=[];return Xc(t,(function(t,r,i){e(t,r,i)&&n.push(t)})),n}function qh(t,e){return(so(t)?ku:Xh)(t,zc(e))}function Zh(t){return function(e,n,r){var i=Object(e);if(!qa(e)){var o=zc(n);e=Cs(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 Kh=Math.max;function Jh(t,e,n){var r=null==t?0:t.length;if(!r)return-1;var i=null==n?0:Co(n);return i<0&&(i=Kh(r+i,0)),wa(t,zc(e),i)}var Qh=Zh(Jh);function td(t,e,n){var r;return n(t,(function(t,n,i){if(e(t,n,i))return r=n,!1})),r}var ed=Math.max,nd=Math.min;function rd(t,e,n){var r=null==t?0:t.length;if(!r)return-1;var i=r-1;return void 0!==n&&(i=Co(n),i=n<0?ed(r+i,0):nd(i,r-1)),wa(t,zc(e),i,!0)}var id=Zh(rd);function od(t){return t&&t.length?t[0]:void 0}function ad(t,e){var n=-1,r=qa(t)?Array(t.length):[];return Xc(t,(function(t,i,o){r[++n]=e(t,i,o)})),r}function sd(t,e){return(so(t)?ao:ad)(t,zc(e))}var ld=yu("floor");function ud(t){return ll((function(e){var n=e.length,r=n,i=aa.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"==oa(o))var a=new aa([],!0)}for(r=a?r:n;++r<n;){var s=oa(o=e[r]),l="wrapper"==s?na(o):void 0;a=l&&ha(l[0])&&424==l[1]&&!l[4].length&&1==l[9]?a[oa(l[0])].apply(a,l[3]):1==o.length&&ha(o)?a[s]():a.thru(o)}return function(){var t=arguments,r=t[0];if(a&&1==t.length&&so(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 cd=ud(),hd=ud(!0);function dd(t,e){return null==t?t:Wc(t,Th(e),Is)}function fd(t,e){return ku(e,(function(e){return To(t[e])}))}var pd=Object.prototype.hasOwnProperty,gd=Zc((function(t,e,n){pd.call(t,n)?t[n].push(e):za(t,n,[e])}));function vd(t,e){return t>e}function md(t){return function(e,n){return"string"==typeof e&&"string"==typeof n||(e=Oo(e),n=Oo(n)),t(e,n)}}var yd=md(vd),bd=md((function(t,e){return t>=e})),_d=Object.prototype.hasOwnProperty;function xd(t,e){return null!=t&&_d.call(t,e)}function wd(t,e){return null!=t&&Dc(t,e,xd)}var Od=Math.max,Sd=Math.min;function Cd(t,e,n){return e=So(e),void 0===n?(n=e,e=0):n=So(n),function(t,e,n){return t>=Sd(e,n)&&t<Od(e,n)}(t=Oo(t),e,n)}function Ed(t){return"string"==typeof t||!so(t)&&ro(t)&&"[object String]"==no(t)}function Td(t,e){return ao(e,(function(e){return t[e]}))}function Md(t){return null==t?[]:Td(t,Cs(t))}var Ad=Math.max;function Id(t,e,n,r){t=qa(t)?t:Md(t),n=n&&!r?Co(n):0;var i=t.length;return n<0&&(n=Ad(i+n,0)),Ed(t)?n<=i&&t.indexOf(e,n)>-1:!!i&&Sa(t,e,n)>-1}var jd=Math.max;function kd(t,e,n){var r=null==t?0:t.length;if(!r)return-1;var i=null==n?0:Co(n);return i<0&&(i=jd(r+i,0)),Sa(t,e,i)}var Pd=Math.min;function Ld(t,e,n){for(var r=n?bh:Ca,i=t[0].length,o=t.length,a=o,s=Array(o),l=1/0,u=[];a--;){var c=t[a];a&&e&&(c=ao(c,ds(e))),l=Pd(c.length,l),s[a]=!n&&(e||i>=120&&c.length>=120)?new vc(a&&c):void 0}c=t[0];var h=-1,d=s[0];t:for(;++h<i&&u.length<l;){var f=c[h],p=e?e(f):f;if(f=n||0!==f?f:0,!(d?yc(d,p):r(u,p,n))){for(a=o;--a;){var g=s[a];if(!(g?yc(g,p):r(t[a],p,n)))continue t}d&&d.push(p),u.push(f)}}return u}function Dd(t){return uh(t)?t:[]}var Rd=$a((function(t){var e=ao(t,Dd);return e.length&&e[0]===t[0]?Ld(e):[]})),Nd=$a((function(t){var e=wh(t),n=ao(t,Dd);return e===wh(n)?e=void 0:n.pop(),n.length&&n[0]===t[0]?Ld(n,zc(e)):[]})),Fd=$a((function(t){var e=wh(t),n=ao(t,Dd);return(e="function"==typeof e?e:void 0)&&n.pop(),n.length&&n[0]===t[0]?Ld(n,void 0,e):[]}));function Bd(t,e){return function(n,r){return function(t,e,n,r){return Yc(t,(function(t,i,o){e(r,n(t),i,o)})),r}(n,t,e(r),{})}}var zd=Object.prototype.toString,Vd=Bd((function(t,e,n){null!=e&&"function"!=typeof e.toString&&(e=zd.call(e)),t[e]=n}),ya(Eo)),Ud=Object.prototype,Gd=Ud.hasOwnProperty,Hd=Ud.toString,Wd=Bd((function(t,e,n){null!=e&&"function"!=typeof e.toString&&(e=Hd.call(e)),Gd.call(t,e)?t[e].push(n):t[e]=[n]}),zc);function Yd(t,e){return e.length<2?t:tl(t,Cl(e,0,-1))}function $d(t,e,n){var r=null==(t=Yd(t,e=Js(e,t)))?t:t[Qs(wh(e))];return null==r?void 0:$o(r,t,n)}var Xd=$a($d),qd=$a((function(t,e,n){var r=-1,i="function"==typeof e,o=qa(t)?Array(t.length):[];return Xc(t,(function(t){o[++r]=i?$o(e,t,n):$d(t,e,n)})),o}));var Zd=vs&&vs.isArrayBuffer,Kd=Zd?ds(Zd):function(t){return ro(t)&&"[object ArrayBuffer]"==no(t)};function Jd(t){return!0===t||!1===t||ro(t)&&"[object Boolean]"==no(t)}var Qd=vs&&vs.isDate,tf=Qd?ds(Qd):function(t){return ro(t)&&"[object Date]"==no(t)};var ef=Object.prototype.hasOwnProperty;function nf(t){if(null==t)return!0;if(qa(t)&&(so(t)||"string"==typeof t||"function"==typeof t.splice||cs(t)||ys(t)||os(t)))return!t.length;var e=Zu(t);if("[object Map]"==e||"[object Set]"==e)return!t.size;if(Qa(t))return!Ss(t).length;for(var n in t)if(ef.call(t,n))return!1;return!0}function rf(t,e){return Mc(t,e)}var of=Xi.isFinite;function af(t){return"number"==typeof t&&t==Co(t)}function sf(t){return"number"==typeof t||ro(t)&&"[object Number]"==no(t)}function lf(t){return sf(t)&&t!=+t}var uf=Ao?To:as;function cf(t){return null==t}var hf=vs&&vs.isRegExp,df=hf?ds(hf):function(t){return ro(t)&&"[object RegExp]"==no(t)};function ff(t){return void 0===t}var pf=Array.prototype.join;var gf=pu((function(t,e,n){return t+(n?"-":"")+e.toLowerCase()})),vf=Zc((function(t,e,n){za(t,n,e)}));var mf=Math.max,yf=Math.min;var bf=pu((function(t,e,n){return t+(n?" ":"")+e.toLowerCase()})),_f=zl("toLowerCase");function xf(t,e){return t<e}var wf=md(xf),Of=md((function(t,e){return t<=e}));function Sf(t,e){var n={};return e=zc(e),Yc(t,(function(t,r,i){za(n,e(t,r,i),t)})),n}function Cf(t){return Pc(hc(t,1))}function Ef(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&&!io(a):n(a,s)))var s=a,l=o}return l}function Tf(t){return t&&t.length?Ef(t,Eo,vd):void 0}function Mf(t,e){return t&&t.length?Ef(t,zc(e),vd):void 0}function Af(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 If(t,e){var n=null==t?0:t.length;return n?Af(t,e)/n:NaN}var jf=Ka((function(t,e,n){dh(t,e,n)})),kf=$a((function(t,e){return function(n){return $d(n,t,e)}})),Pf=$a((function(t,e){return function(n){return $d(t,n,e)}}));function Lf(t){return t&&t.length?Ef(t,Eo,xf):void 0}function Df(t,e,n){var r=Cs(e),i=fd(e,r),o=!(yo(n)&&"chain"in n&&!n.chain),a=To(t);return xa(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__=sa(this.__actions__);return i.push({func:r,args:arguments,thisArg:t}),n.__chain__=e,n}return r.apply(t,rl([this.value()],arguments))})})),t}var Rf=ho((function(t,e){return t*e}),1);function Nf(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 Ff=qi?qi.iterator:void 0;function Bf(t){if(!t)return[];if(qa(t))return Ed(t)?Bl(t):sa(t);if(Ff&&t[Ff])return function(t){for(var e,n=[];!(e=t.next()).done;)n.push(e.value);return n}(t[Ff]());var e=Zu(t);return("[object Map]"==e?_c:"[object Set]"==e?xc:Md)(t)}function zf(t,e){var n=t.length;if(n)return ja(e+=e<0?n:0,n)?t[e]:void 0}function Vf(t,e){return null==(t=Yd(t,e=Js(e,t)))||delete t[Qs(wh(e))]}function Uf(t){return vl(t)?void 0:t}var Gf=ll((function(t,e){var n={};if(null==t)return n;var r=!1;e=ao(e,(function(e){return e=Js(e,t),r||(r=e.length>1),e})),Ha(t,zu(t),n),r&&(n=hc(n,7,Uf));for(var i=e.length;i--;)Vf(n,e[i]);return n}));function Hf(t,e,n,r){if(!yo(t))return t;for(var i=-1,o=(e=Js(e,t)).length,a=o-1,s=t;null!=s&&++i<o;){var l=Qs(e[i]),u=n;if("__proto__"===l||"constructor"===l||"prototype"===l)return t;if(i!=a){var c=s[l];void 0===(u=r?r(c,l,s):void 0)&&(u=yo(c)?c:ja(e[i+1])?[]:{})}Ga(s,l,u),s=s[l]}return t}function Wf(t,e,n){for(var r=-1,i=e.length,o={};++r<i;){var a=e[r],s=tl(t,a);n(s,a)&&Hf(o,Js(a,t),s)}return o}function Yf(t,e){if(null==t)return{};var n=ao(zu(t),(function(t){return[t]}));return e=zc(e),Wf(t,n,(function(t,n){return e(t,n[0])}))}function $f(t,e){if(t!==e){var n=void 0!==t,r=null===t,i=t==t,o=io(t),a=void 0!==e,s=null===e,l=e==e,u=io(e);if(!s&&!u&&!o&&t>e||o&&a&&l&&!s&&!u||r&&a&&l||!n&&l||!i)return 1;if(!r&&!o&&!u&&t<e||u&&n&&i&&!r&&!o||s&&n&&i||!a&&i||!l)return-1}return 0}function Xf(t,e,n){e=e.length?ao(e,(function(t){return so(t)?function(e){return tl(e,1===t.length?t[0]:t)}:t})):[Eo];var r=-1;return e=ao(e,ds(zc)),function(t,e){var n=t.length;for(t.sort(e);n--;)t[n]=t[n].value;return t}(ad(t,(function(t,n,i){return{criteria:ao(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 l=$f(i[r],o[r]);if(l)return r>=s?l:l*("desc"==n[r]?-1:1)}return t.index-e.index}(t,e,n)}))}function qf(t,e,n,r){return null==t?[]:(so(e)||(e=null==e?[]:[e]),so(n=r?void 0:n)||(n=null==n?[]:[n]),Xf(t,e,n))}function Zf(t){return ll((function(e){return e=ao(e,ds(zc)),$a((function(n){var r=this;return t(e,(function(t){return $o(t,r,n)}))}))}))}var Kf=Zf(ao),Jf=$a,Qf=Math.min,tp=Jf((function(t,e){var n=(e=1==e.length&&so(e[0])?ao(e[0],ds(zc)):ao(al(e,1),ds(zc))).length;return $a((function(r){for(var i=-1,o=Qf(r.length,n);++i<o;)r[i]=e[i].call(this,r[i]);return $o(t,this,r)}))})),ep=Zf(Hh),np=Zf(mc),rp=Math.floor;function ip(t,e){var n="";if(!t||e<1||e>9007199254740991)return n;do{e%2&&(n+=t),(e=rp(e/2))&&(t+=t)}while(e);return n}var op=Fc("length"),ap="[\\ud800-\\udfff]",sp="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",lp="\\ud83c[\\udffb-\\udfff]",up="[^\\ud800-\\udfff]",cp="(?:\\ud83c[\\udde6-\\uddff]){2}",hp="[\\ud800-\\udbff][\\udc00-\\udfff]",dp="(?:"+sp+"|"+lp+")"+"?",fp="[\\ufe0e\\ufe0f]?"+dp+("(?:\\u200d(?:"+[up,cp,hp].join("|")+")[\\ufe0e\\ufe0f]?"+dp+")*"),pp="(?:"+[up+sp+"?",sp,cp,hp,ap].join("|")+")",gp=RegExp(lp+"(?="+lp+")|"+pp+fp,"g");function vp(t){return Ml(t)?function(t){for(var e=gp.lastIndex=0;gp.test(t);)++e;return e}(t):op(t)}var mp=Math.ceil;function yp(t,e){var n=(e=void 0===e?" ":co(e)).length;if(n<2)return n?ip(e,t):e;var r=ip(e,mp(t/vp(e)));return Ml(e)?El(Bl(r),0,t).join(""):r.slice(0,t)}var bp=Math.ceil,_p=Math.floor;var xp=/^\s+/,wp=Xi.parseInt;var Op=$a((function(t,e){return Fa(t,32,void 0,e,La(e,Aa(Op)))}));Op.placeholder={};var Sp=Op,Cp=$a((function(t,e){return Fa(t,64,void 0,e,La(e,Aa(Cp)))}));Cp.placeholder={};var Ep=Cp,Tp=Zc((function(t,e,n){t[n?0:1].push(e)}),(function(){return[[],[]]}));var Mp=ll((function(t,e){return null==t?{}:function(t,e){return Wf(t,e,(function(e,n){return Rc(t,n)}))}(t,e)}));function Ap(t,e,n,r){for(var i=n-1,o=t.length;++i<o;)if(r(t[i],e))return i;return-1}var Ip=Array.prototype.splice;function jp(t,e,n,r){var i=r?Ap:Sa,o=-1,a=e.length,s=t;for(t===e&&(e=sa(e)),n&&(s=ao(t,ds(n)));++o<a;)for(var l=0,u=e[o],c=n?n(u):u;(l=i(s,c,l,r))>-1;)s!==t&&Ip.call(s,l,1),Ip.call(t,l,1);return t}function kp(t,e){return t&&t.length&&e&&e.length?jp(t,e):t}var Pp=$a(kp);var Lp=Array.prototype.splice;function Dp(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;ja(i)?Lp.call(t,i,1):Vf(t,i)}}return t}var Rp=ll((function(t,e){var n=null==t?0:t.length,r=nl(t,e);return Dp(t,ao(e,(function(t){return ja(t,n)?+t:t})).sort($f)),r})),Np=Math.floor,Fp=Math.random;function Bp(t,e){return t+Np(Fp()*(e-t+1))}var zp=parseFloat,Vp=Math.min,Up=Math.random;var Gp=Math.ceil,Hp=Math.max;function Wp(t){return function(e,n,r){return r&&"number"!=typeof r&&Za(e,n,r)&&(n=r=void 0),e=So(e),void 0===n?(n=e,e=0):n=So(n),function(t,e,n,r){for(var i=-1,o=Hp(Gp((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:So(r),t)}}var Yp=Wp(),$p=Wp(!0),Xp=ll((function(t,e){return Fa(t,256,void 0,void 0,void 0,e)}));function qp(t,e,n,r,i){return i(t,(function(t,i,o){n=r?(r=!1,t):e(n,t,i,o)})),n}function Zp(t,e,n){var r=so(t)?Gl:qp,i=arguments.length<3;return r(t,zc(e),n,i,Xc)}function Kp(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}var Jp=Array.prototype.reverse;function Qp(t){return null==t?t:Jp.call(t)}var tg=yu("round");function eg(t){var e=t.length;return e?t[Bp(0,e-1)]:void 0}function ng(t){return eg(Md(t))}function rg(t,e){var n=-1,r=t.length,i=r-1;for(e=void 0===e?r:e;++n<e;){var o=Bp(n,i),a=t[o];t[o]=t[n],t[n]=a}return t.length=e,t}function ig(t,e){return rg(sa(t),Ou(e,0,t.length))}function og(t,e){var n=Md(t);return rg(n,Ou(e,0,n.length))}function ag(t,e,n){return null==t?t:Hf(t,e,n)}function sg(t){return rg(sa(t))}function lg(t){return rg(Md(t))}function ug(t){if(null==t)return 0;if(qa(t))return Ed(t)?vp(t):t.length;var e=Zu(t);return"[object Map]"==e||"[object Set]"==e?t.size:Ss(t).length}var cg=pu((function(t,e,n){return t+(n?"_":"")+e.toLowerCase()}));function hg(t,e){var n;return Xc(t,(function(t,r,i){return!(n=e(t,r,i))})),!!n}var dg=$a((function(t,e){if(null==t)return[];var n=e.length;return n>1&&Za(t,e[0],e[1])?e=[]:n>2&&Za(e[0],e[1],e[2])&&(e=[e[0]]),Xf(t,al(e,1),[])})),fg=Math.floor,pg=Math.min;function gg(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,l=io(e),u=void 0===e;i<o;){var c=fg((i+o)/2),h=n(t[c]),d=void 0!==h,f=null===h,p=h==h,g=io(h);if(a)var v=r||p;else v=u?p&&(r||d):s?p&&d&&(r||!f):l?p&&d&&!f&&(r||!g):!f&&!g&&(r?h<=e:h<e);v?i=c+1:o=c}return pg(o,4294967294)}function vg(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&&!io(a)&&(n?a<=e:a<e)?r=o+1:i=o}return i}return gg(t,e,Eo,n)}function mg(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||!Va(s,l)){var l=s;o[i++]=0===a?0:a}}return o}function yg(t,e,n){return n&&"number"!=typeof n&&Za(t,e,n)&&(e=n=void 0),(n=void 0===n?4294967295:n>>>0)?(t=Ks(t))&&("string"==typeof e||null!=e&&!df(e))&&!(e=co(e))&&Ml(t)?El(Bl(t),0,n):t.split(e,n):[]}var bg=Math.max;var _g=pu((function(t,e,n){return t+(n?" ":"")+Vl(e)}));function xg(){return!0}var wg=ho((function(t,e){return t-e}),0);var Og=Object.prototype,Sg=Og.hasOwnProperty;function Cg(t,e,n,r){return void 0===t||Va(t,Og[n])&&!Sg.call(r,n)?e:t}var Eg={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"};function Tg(t){return"\\"+Eg[t]}var Mg=/<%=([\s\S]+?)%>/g,Ag={escape:/<%-([\s\S]+?)%>/g,evaluate:/<%([\s\S]+?)%>/g,interpolate:Mg,variable:"",imports:{_:{escape:Vh}}},Ig=/\b__p \+= '';/g,jg=/\b(__p \+=) '' \+/g,kg=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Pg=/[()=,{}\[\]\/\s]/,Lg=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Dg=/($^)/,Rg=/['\n\r\u2028\u2029\\]/g,Ng=Object.prototype.hasOwnProperty;function Fg(t,e,n){var r=!0,i=!0;if("function"!=typeof t)throw new TypeError("Expected a function");return yo(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),ih(t,e,{leading:r,maxWait:e,trailing:i})}function Bg(t,e){return e(t)}var zg=Math.min;function Vg(t,e){var n=t;return n instanceof ta&&(n=n.value()),Gl(e,(function(t,e){return e.func.apply(e.thisArg,rl([t],e.args))}),n)}function Ug(){return Vg(this.__wrapped__,this.__actions__)}function Gg(t){return Ks(t).toUpperCase()}function Hg(t,e){for(var n=t.length;n--&&Sa(e,t[n],0)>-1;);return n}function Wg(t,e){for(var n=-1,r=t.length;++n<r&&Sa(e,t[n],0)>-1;);return n}function Yg(t,e,n){if((t=Ks(t))&&(n||void 0===e))return mo(t);if(!t||!(e=co(e)))return t;var r=Bl(t),i=Bl(e);return El(r,Wg(r,i),Hg(r,i)+1).join("")}var $g=/^\s+/;var Xg=/\w*$/;var qg=Hl({"&":"&","<":"<",">":">",""":'"',"'":"'"}),Zg=/&(?:amp|lt|gt|quot|#39);/g,Kg=RegExp(Zg.source);var Jg=Gu&&1/xc(new Gu([,-0]))[1]==1/0?function(t){return new Gu(t)}:ea;function Qg(t,e,n){var r=-1,i=Ca,o=t.length,a=!0,s=[],l=s;if(n)a=!1,i=bh;else if(o>=200){var u=e?null:Jg(t);if(u)return xc(u);a=!1,i=yc,l=new vc}else l=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 d=l.length;d--;)if(l[d]===h)continue t;e&&l.push(h),s.push(c)}else i(l,h,n)||(l!==s&&l.push(h),s.push(c))}return s}var tv=$a((function(t){return Qg(al(t,1,uh,!0))})),ev=$a((function(t){var e=wh(t);return uh(e)&&(e=void 0),Qg(al(t,1,uh,!0),zc(e))})),nv=$a((function(t){var e=wh(t);return e="function"==typeof e?e:void 0,Qg(al(t,1,uh,!0),void 0,e)}));function rv(t){return t&&t.length?Qg(t):[]}function iv(t,e){return e="function"==typeof e?e:void 0,t&&t.length?Qg(t,void 0,e):[]}var ov=0;function av(t,e){return null==t||Vf(t,e)}var sv=Math.max;function lv(t){if(!t||!t.length)return[];var e=0;return t=ku(t,(function(t){if(uh(t))return e=sv(t.length,e),!0})),ts(e,(function(e){return ao(t,Fc(e))}))}function uv(t,e){if(!t||!t.length)return[];var n=lv(t);return null==e?n:ao(n,(function(t){return $o(e,void 0,t)}))}function cv(t,e,n,r){return Hf(t,e,n(tl(t,e)),r)}var hv=pu((function(t,e,n){return t+(n?" ":"")+e.toUpperCase()}));var dv=$a((function(t,e){return uh(t)?_h(t,e):[]}));var fv=ll((function(t){var e=t.length,n=e?t[0]:0,r=this.__wrapped__,i=function(e){return nl(e,t)};return!(e>1||this.__actions__.length)&&r instanceof ta&&ja(n)?((r=r.slice(n,+n+(e?1:0))).__actions__.push({func:Bg,args:[i],thisArg:void 0}),new aa(r,this.__chain__).thru((function(t){return e&&!t.length&&t.push(void 0),t}))):this.thru(i)}));function pv(t,e,n){var r=t.length;if(r<2)return r?Qg(t[0]):[];for(var i=-1,o=Array(r);++i<r;)for(var a=t[i],s=-1;++s<r;)s!=i&&(o[i]=_h(o[i]||a,t[s],e,n));return Qg(al(o,1),e,n)}var gv=$a((function(t){return pv(ku(t,uh))})),vv=$a((function(t){var e=wh(t);return uh(e)&&(e=void 0),pv(ku(t,uh),zc(e))})),mv=$a((function(t){var e=wh(t);return e="function"==typeof e?e:void 0,pv(ku(t,uh),void 0,e)})),yv=$a(lv);function bv(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 _v=$a((function(t){var e=t.length,n=e>1?t[e-1]:void 0;return n="function"==typeof n?(t.pop(),n):void 0,uv(t,n)})),xv={chunk:function(t,e,n){e=(n?Za(t,e,n):void 0===e)?1:wu(Co(e),0);var r=null==t?0:t.length;if(!r||e<1)return[];for(var i=0,o=0,a=Array(xu(r/e));i<r;)a[o++]=Cl(t,i,i+=e);return a},compact:pc,concat:gc,difference:xh,differenceBy:Oh,differenceWith:Sh,drop:function(t,e,n){var r=null==t?0:t.length;return r?Cl(t,(e=n||void 0===e?1:Co(e))<0?0:e,r):[]},dropRight:function(t,e,n){var r=null==t?0:t.length;return r?Cl(t,0,(e=r-(e=n||void 0===e?1:Co(e)))<0?0:e):[]},dropRightWhile:function(t,e){return t&&t.length?Eh(t,zc(e),!0,!0):[]},dropWhile:function(t,e){return t&&t.length?Eh(t,zc(e),!0):[]},fill:function(t,e,n,r){var i=null==t?0:t.length;return i?(n&&"number"!=typeof n&&Za(t,e,n)&&(n=0,r=i),function(t,e,n,r){var i=t.length;for((n=Co(n))<0&&(n=-n>i?0:i+n),(r=void 0===r||r>i?i:Co(r))<0&&(r+=i),r=n>r?0:$h(r);n<r;)t[n++]=e;return t}(t,e,n,r)):[]},findIndex:Jh,findLastIndex:rd,first:od,flatten:sl,flattenDeep:function(t){return(null==t?0:t.length)?al(t,1/0):[]},flattenDepth:function(t,e){return(null==t?0:t.length)?al(t,e=void 0===e?1:Co(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:od,indexOf:kd,initial:function(t){return(null==t?0:t.length)?Cl(t,0,-1):[]},intersection:Rd,intersectionBy:Nd,intersectionWith:Fd,join:function(t,e){return null==t?"":pf.call(t,e)},last:wh,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=Co(n))<0?mf(r+i,0):yf(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):wa(t,Oa,i,!0)},nth:function(t,e){return t&&t.length?zf(t,Co(e)):void 0},pull:Pp,pullAll:kp,pullAllBy:function(t,e,n){return t&&t.length&&e&&e.length?jp(t,e,zc(n)):t},pullAllWith:function(t,e,n){return t&&t.length&&e&&e.length?jp(t,e,void 0,n):t},pullAt:Rp,remove:function(t,e){var n=[];if(!t||!t.length)return n;var r=-1,i=[],o=t.length;for(e=zc(e);++r<o;){var a=t[r];e(a,r,t)&&(n.push(a),i.push(r))}return Dp(t,i),n},reverse:Qp,slice:function(t,e,n){var r=null==t?0:t.length;return r?(n&&"number"!=typeof n&&Za(t,e,n)?(e=0,n=r):(e=null==e?0:Co(e),n=void 0===n?r:Co(n)),Cl(t,e,n)):[]},sortedIndex:function(t,e){return vg(t,e)},sortedIndexBy:function(t,e,n){return gg(t,e,zc(n))},sortedIndexOf:function(t,e){var n=null==t?0:t.length;if(n){var r=vg(t,e);if(r<n&&Va(t[r],e))return r}return-1},sortedLastIndex:function(t,e){return vg(t,e,!0)},sortedLastIndexBy:function(t,e,n){return gg(t,e,zc(n),!0)},sortedLastIndexOf:function(t,e){if(null==t?0:t.length){var n=vg(t,e,!0)-1;if(Va(t[n],e))return n}return-1},sortedUniq:function(t){return t&&t.length?mg(t):[]},sortedUniqBy:function(t,e){return t&&t.length?mg(t,zc(e)):[]},tail:function(t){var e=null==t?0:t.length;return e?Cl(t,1,e):[]},take:function(t,e,n){return t&&t.length?Cl(t,0,(e=n||void 0===e?1:Co(e))<0?0:e):[]},takeRight:function(t,e,n){var r=null==t?0:t.length;return r?Cl(t,(e=r-(e=n||void 0===e?1:Co(e)))<0?0:e,r):[]},takeRightWhile:function(t,e){return t&&t.length?Eh(t,zc(e),!1,!0):[]},takeWhile:function(t,e){return t&&t.length?Eh(t,zc(e)):[]},union:tv,unionBy:ev,unionWith:nv,uniq:rv,uniqBy:function(t,e){return t&&t.length?Qg(t,zc(e)):[]},uniqWith:iv,unzip:lv,unzipWith:uv,without:dv,xor:gv,xorBy:vv,xorWith:mv,zip:yv,zipObject:function(t,e){return bv(t||[],e||[],Ga)},zipObjectDeep:function(t,e){return bv(t||[],e||[],Hf)},zipWith:_v},wv={countBy:Jc,each:Mh,eachRight:Ph,every:Yh,filter:qh,find:Qh,findLast:id,flatMap:function(t,e){return al(sd(t,e),1)},flatMapDeep:function(t,e){return al(sd(t,e),1/0)},flatMapDepth:function(t,e,n){return n=void 0===n?1:Co(n),al(sd(t,e),n)},forEach:Mh,forEachRight:Ph,groupBy:gd,includes:Id,invokeMap:qd,keyBy:vf,map:sd,orderBy:qf,partition:Tp,reduce:Zp,reduceRight:function(t,e,n){var r=so(t)?Kp:qp,i=arguments.length<3;return r(t,zc(e),n,i,kh)},reject:function(t,e){return(so(t)?ku:Xh)(t,Nf(zc(e)))},sample:function(t){return(so(t)?eg:ng)(t)},sampleSize:function(t,e,n){return e=(n?Za(t,e,n):void 0===e)?1:Co(e),(so(t)?ig:og)(t,e)},shuffle:function(t){return(so(t)?sg:lg)(t)},size:ug,some:function(t,e,n){var r=so(t)?mc:hg;return n&&Za(t,e,n)&&(e=void 0),r(t,zc(e))},sortBy:dg},Ov={now:eh},Sv={after:function(t,e){if("function"!=typeof e)throw new TypeError("Expected a function");return t=Co(t),function(){if(--t<1)return e.apply(this,arguments)}},ary:Ba,before:bl,bind:xl,bindKey:Sl,curry:Qc,curryRight:th,debounce:ih,defer:mh,delay:yh,flip:function(t){return Fa(t,512)},memoize:$s,negate:Nf,once:function(t){return bl(2,t)},overArgs:tp,partial:Sp,partialRight:Ep,rearg:Xp,rest:function(t,e){if("function"!=typeof t)throw new TypeError("Expected a function");return $a(t,e=void 0===e?e:Co(e))},spread:function(t,e){if("function"!=typeof t)throw new TypeError("Expected a function");return e=null==e?0:bg(Co(e),0),$a((function(n){var r=n[e],i=El(n,0,e);return r&&rl(i,r),$o(t,this,i)}))},throttle:Fg,unary:function(t){return Ba(t,1)},wrap:function(t,e){return Sp(Th(e),t)}},Cv={castArray:function(){if(!arguments.length)return[];var t=arguments[0];return so(t)?t:[t]},clone:dc,cloneDeep:fc,cloneDeepWith:function(t,e){return hc(t,5,e="function"==typeof e?e:void 0)},cloneWith:function(t,e){return hc(t,4,e="function"==typeof e?e:void 0)},conformsTo:function(t,e){return null==e||Uc(t,e,Cs(e))},eq:Va,gt:yd,gte:bd,isArguments:os,isArray:so,isArrayBuffer:Kd,isArrayLike:qa,isArrayLikeObject:uh,isBoolean:Jd,isBuffer:cs,isDate:tf,isElement:function(t){return ro(t)&&1===t.nodeType&&!vl(t)},isEmpty:nf,isEqual:rf,isEqualWith:function(t,e,n){var r=(n="function"==typeof n?n:void 0)?n(t,e):void 0;return void 0===r?Mc(t,e,void 0,n):!!r},isError:ml,isFinite:function(t){return"number"==typeof t&&of(t)},isFunction:To,isInteger:af,isLength:Xa,isMap:sc,isMatch:function(t,e){return t===e||Ac(t,e,jc(e))},isMatchWith:function(t,e,n){return n="function"==typeof n?n:void 0,Ac(t,e,jc(e),n)},isNaN:lf,isNative:function(t){if(uf(t))throw new Error("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return Bo(t)},isNil:cf,isNull:function(t){return null===t},isNumber:sf,isObject:yo,isObjectLike:ro,isPlainObject:vl,isRegExp:df,isSafeInteger:function(t){return af(t)&&t>=-9007199254740991&&t<=9007199254740991},isSet:uc,isString:Ed,isSymbol:io,isTypedArray:ys,isUndefined:ff,isWeakMap:function(t){return ro(t)&&"[object WeakMap]"==Zu(t)},isWeakSet:function(t){return ro(t)&&"[object WeakSet]"==no(t)},lt:wf,lte:Of,toArray:Bf,toFinite:So,toInteger:Co,toLength:$h,toNumber:Oo,toPlainObject:hh,toSafeInteger:function(t){return t?Ou(Co(t),-9007199254740991,9007199254740991):0===t?t:0},toString:Ks},Ev={add:fo,ceil:bu,divide:Ch,floor:ld,max:Tf,maxBy:Mf,mean:function(t){return If(t,Eo)},meanBy:function(t,e){return If(t,zc(e))},min:Lf,minBy:function(t,e){return t&&t.length?Ef(t,zc(e),xf):void 0},multiply:Rf,round:tg,subtract:wg,sum:function(t){return t&&t.length?Af(t,Eo):0},sumBy:function(t,e){return t&&t.length?Af(t,zc(e)):0}},Tv=Su,Mv=Cd,Av=function(t,e,n){if(n&&"boolean"!=typeof n&&Za(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=So(t),void 0===e?(e=t,t=0):e=So(e)),t>e){var r=t;t=e,e=r}if(n||t%1||e%1){var i=Up();return Vp(t+i*(e-t+zp("1e-"+((i+"").length-1))),e)}return Bp(t,e)},Iv={assign:Ts,assignIn:js,assignInWith:ks,assignWith:Ps,at:ul,create:function(t,e){var n=Wo(t);return null==e?n:Eu(n,e)},defaults:sh,defaultsDeep:gh,entries:Rh,entriesIn:Nh,extend:js,extendWith:ks,findKey:function(t,e){return td(t,zc(e),Yc)},findLastKey:function(t,e){return td(t,zc(e),jh)},forIn:dd,forInRight:function(t,e){return null==t?t:Ih(t,Th(e),Is)},forOwn:function(t,e){return t&&Yc(t,Th(e))},forOwnRight:function(t,e){return t&&jh(t,Th(e))},functions:function(t){return null==t?[]:fd(t,Cs(t))},functionsIn:function(t){return null==t?[]:fd(t,Is(t))},get:el,has:wd,hasIn:Rc,invert:Vd,invertBy:Wd,invoke:Xd,keys:Cs,keysIn:Is,mapKeys:Sf,mapValues:function(t,e){var n={};return e=zc(e),Yc(t,(function(t,r,i){za(n,r,e(t,r,i))})),n},merge:jf,mergeWith:ph,omit:Gf,omitBy:function(t,e){return Yf(t,Nf(zc(e)))},pick:Mp,pickBy:Yf,result:function(t,e,n){var r=-1,i=(e=Js(e,t)).length;for(i||(i=1,t=void 0);++r<i;){var o=null==t?void 0:t[Qs(e[r])];void 0===o&&(r=i,o=n),t=To(o)?o.call(t):o}return t},set:ag,setWith:function(t,e,n,r){return r="function"==typeof r?r:void 0,null==t?t:Hf(t,e,n,r)},toPairs:Rh,toPairsIn:Nh,transform:function(t,e,n){var r=so(t),i=r||cs(t)||ys(t);if(e=zc(e),null==n){var o=t&&t.constructor;n=i?r?new o:[]:yo(t)&&To(o)?Wo(cl(t)):{}}return(i?xa:Yc)(t,(function(t,r,i){return e(n,t,r,i)})),n},unset:av,update:function(t,e,n){return null==t?t:cv(t,e,Th(n))},updateWith:function(t,e,n,r){return r="function"==typeof r?r:void 0,null==t?t:cv(t,e,Th(n),r)},values:Md,valuesIn:function(t){return null==t?[]:Td(t,Is(t))}},jv={at:fv,chain:_u,commit:function(){return new aa(this.value(),this.__chain__)},lodash:ca,next:function(){void 0===this.__values__&&(this.__values__=Bf(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 Qo;){var r=la(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 ta){var e=t;return this.__actions__.length&&(e=new ta(this)),(e=e.reverse()).__actions__.push({func:Bg,args:[Qp],thisArg:void 0}),new aa(e,this.__chain__)}return this.thru(Qp)},tap:function(t,e){return e(t),t},thru:Bg,toIterator:function(){return this},toJSON:Ug,value:Ug,valueOf:Ug,wrapperChain:function(){return _u(this)}},kv={camelCase:gu,capitalize:Ul,deburr:Xl,endsWith:Lh,escape:Vh,escapeRegExp:function(t){return(t=Ks(t))&&Gh.test(t)?t.replace(Uh,"\\$&"):t},kebabCase:gf,lowerCase:bf,lowerFirst:_f,pad:function(t,e,n){t=Ks(t);var r=(e=Co(e))?vp(t):0;if(!e||r>=e)return t;var i=(e-r)/2;return yp(_p(i),n)+t+yp(bp(i),n)},padEnd:function(t,e,n){t=Ks(t);var r=(e=Co(e))?vp(t):0;return e&&r<e?t+yp(e-r,n):t},padStart:function(t,e,n){t=Ks(t);var r=(e=Co(e))?vp(t):0;return e&&r<e?yp(e-r,n)+t:t},parseInt:function(t,e,n){return n||null==e?e=0:e&&(e=+e),wp(Ks(t).replace(xp,""),e||0)},repeat:function(t,e,n){return e=(n?Za(t,e,n):void 0===e)?1:Co(e),ip(Ks(t),e)},replace:function(){var t=arguments,e=Ks(t[0]);return t.length<3?e:e.replace(t[1],t[2])},snakeCase:cg,split:yg,startCase:_g,startsWith:function(t,e,n){return t=Ks(t),n=null==n?0:Ou(Co(n),0,t.length),e=co(e),t.slice(n,n+e.length)==e},template:function(t,e,n){var r=Ag.imports._.templateSettings||Ag;n&&Za(t,e,n)&&(e=void 0),t=Ks(t),e=ks({},e,r,Cg);var i,o,a=ks({},e.imports,r.imports,Cg),s=Cs(a),l=Td(a,s),u=0,c=e.interpolate||Dg,h="__p += '",d=RegExp((e.escape||Dg).source+"|"+c.source+"|"+(c===Mg?Lg:Dg).source+"|"+(e.evaluate||Dg).source+"|$","g"),f=Ng.call(e,"sourceURL")?"//# sourceURL="+(e.sourceURL+"").replace(/\s/g," ")+"\n":"";t.replace(d,(function(e,n,r,a,s,l){return r||(r=a),h+=t.slice(u,l).replace(Rg,Tg),n&&(i=!0,h+="' +\n__e("+n+") +\n'"),s&&(o=!0,h+="';\n"+s+";\n__p += '"),r&&(h+="' +\n((__t = ("+r+")) == null ? '' : __t) +\n'"),u=l+e.length,e})),h+="';\n";var p=Ng.call(e,"variable")&&e.variable;if(p){if(Pg.test(p))throw new Error("Invalid `variable` option passed into `_.template`")}else h="with (obj) {\n"+h+"\n}\n";h=(o?h.replace(Ig,""):h).replace(jg,"$1").replace(kg,"$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=yl((function(){return Function(s,f+"return "+h).apply(void 0,l)}));if(g.source=h,ml(g))throw g;return g},templateSettings:Ag,toLower:function(t){return Ks(t).toLowerCase()},toUpper:Gg,trim:Yg,trimEnd:function(t,e,n){if((t=Ks(t))&&(n||void 0===e))return t.slice(0,go(t)+1);if(!t||!(e=co(e)))return t;var r=Bl(t);return El(r,0,Hg(r,Bl(e))+1).join("")},trimStart:function(t,e,n){if((t=Ks(t))&&(n||void 0===e))return t.replace($g,"");if(!t||!(e=co(e)))return t;var r=Bl(t);return El(r,Wg(r,Bl(e))).join("")},truncate:function(t,e){var n=30,r="...";if(yo(e)){var i="separator"in e?e.separator:i;n="length"in e?Co(e.length):n,r="omission"in e?co(e.omission):r}var o=(t=Ks(t)).length;if(Ml(t)){var a=Bl(t);o=a.length}if(n>=o)return t;var s=n-vp(r);if(s<1)return r;var l=a?El(a,0,s).join(""):t.slice(0,s);if(void 0===i)return l+r;if(a&&(s+=l.length-s),df(i)){if(t.slice(s).search(i)){var u,c=l;for(i.global||(i=RegExp(i.source,Ks(Xg.exec(i))+"g")),i.lastIndex=0;u=i.exec(c);)var h=u.index;l=l.slice(0,void 0===h?s:h)}}else if(t.indexOf(co(i),s)!=s){var d=l.lastIndexOf(i);d>-1&&(l=l.slice(0,d))}return l+r},unescape:function(t){return(t=Ks(t))&&Kg.test(t)?t.replace(Zg,qg):t},upperCase:hv,upperFirst:Vl,words:du},Pv={attempt:yl,bindAll:wl,cond:Vc,conforms:function(t){return function(t){var e=Cs(t);return function(n){return Uc(n,t,e)}}(hc(t,1))},constant:ya,defaultTo:function(t,e){return null==t||t!=t?e:t},flow:cd,flowRight:hd,identity:Eo,iteratee:function(t){return zc("function"==typeof t?t:hc(t,1))},matches:Cf,matchesProperty:function(t,e){return Nc(t,hc(e,1))},method:kf,methodOf:Pf,mixin:Df,noop:ea,nthArg:function(t){return t=Co(t),$a((function(e){return zf(e,t)}))},over:Kf,overEvery:ep,overSome:np,property:Bc,propertyOf:function(t){return function(e){return null==t?void 0:tl(t,e)}},range:Yp,rangeRight:$p,stubArray:Pu,stubFalse:as,stubObject:function(){return{}},stubString:function(){return""},stubTrue:xg,times:function(t,e){if((t=Co(t))<1||t>9007199254740991)return[];var n=4294967295,r=zg(t,4294967295);t-=4294967295;for(var i=ts(r,e=Th(e));++n<t;)e(n);return i},toPath:function(t){return so(t)?ao(t,Qs):io(t)?[t]:sa(Zs(Ks(t)))},uniqueId:function(t){var e=++ov;return Ks(t)+e}};var Lv=Math.max,Dv=Math.min;var Rv=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 Nv,Fv=Array.prototype,Bv=Object.prototype.hasOwnProperty,zv=qi?qi.iterator:void 0,Vv=Math.max,Uv=Math.min,Gv=function(t){return function(e,n,r){if(null==r){var i=yo(n),o=i&&Cs(n),a=o&&o.length&&fd(n,o);(a?a.length:i)||(r=n,n=e,e=this)}return t(e,n,r)}}(Df);ca.after=Sv.after,ca.ary=Sv.ary,ca.assign=Iv.assign,ca.assignIn=Iv.assignIn,ca.assignInWith=Iv.assignInWith,ca.assignWith=Iv.assignWith,ca.at=Iv.at,ca.before=Sv.before,ca.bind=Sv.bind,ca.bindAll=Pv.bindAll,ca.bindKey=Sv.bindKey,ca.castArray=Cv.castArray,ca.chain=jv.chain,ca.chunk=xv.chunk,ca.compact=xv.compact,ca.concat=xv.concat,ca.cond=Pv.cond,ca.conforms=Pv.conforms,ca.constant=Pv.constant,ca.countBy=wv.countBy,ca.create=Iv.create,ca.curry=Sv.curry,ca.curryRight=Sv.curryRight,ca.debounce=Sv.debounce,ca.defaults=Iv.defaults,ca.defaultsDeep=Iv.defaultsDeep,ca.defer=Sv.defer,ca.delay=Sv.delay,ca.difference=xv.difference,ca.differenceBy=xv.differenceBy,ca.differenceWith=xv.differenceWith,ca.drop=xv.drop,ca.dropRight=xv.dropRight,ca.dropRightWhile=xv.dropRightWhile,ca.dropWhile=xv.dropWhile,ca.fill=xv.fill,ca.filter=wv.filter,ca.flatMap=wv.flatMap,ca.flatMapDeep=wv.flatMapDeep,ca.flatMapDepth=wv.flatMapDepth,ca.flatten=xv.flatten,ca.flattenDeep=xv.flattenDeep,ca.flattenDepth=xv.flattenDepth,ca.flip=Sv.flip,ca.flow=Pv.flow,ca.flowRight=Pv.flowRight,ca.fromPairs=xv.fromPairs,ca.functions=Iv.functions,ca.functionsIn=Iv.functionsIn,ca.groupBy=wv.groupBy,ca.initial=xv.initial,ca.intersection=xv.intersection,ca.intersectionBy=xv.intersectionBy,ca.intersectionWith=xv.intersectionWith,ca.invert=Iv.invert,ca.invertBy=Iv.invertBy,ca.invokeMap=wv.invokeMap,ca.iteratee=Pv.iteratee,ca.keyBy=wv.keyBy,ca.keys=Cs,ca.keysIn=Iv.keysIn,ca.map=wv.map,ca.mapKeys=Iv.mapKeys,ca.mapValues=Iv.mapValues,ca.matches=Pv.matches,ca.matchesProperty=Pv.matchesProperty,ca.memoize=Sv.memoize,ca.merge=Iv.merge,ca.mergeWith=Iv.mergeWith,ca.method=Pv.method,ca.methodOf=Pv.methodOf,ca.mixin=Gv,ca.negate=Nf,ca.nthArg=Pv.nthArg,ca.omit=Iv.omit,ca.omitBy=Iv.omitBy,ca.once=Sv.once,ca.orderBy=wv.orderBy,ca.over=Pv.over,ca.overArgs=Sv.overArgs,ca.overEvery=Pv.overEvery,ca.overSome=Pv.overSome,ca.partial=Sv.partial,ca.partialRight=Sv.partialRight,ca.partition=wv.partition,ca.pick=Iv.pick,ca.pickBy=Iv.pickBy,ca.property=Pv.property,ca.propertyOf=Pv.propertyOf,ca.pull=xv.pull,ca.pullAll=xv.pullAll,ca.pullAllBy=xv.pullAllBy,ca.pullAllWith=xv.pullAllWith,ca.pullAt=xv.pullAt,ca.range=Pv.range,ca.rangeRight=Pv.rangeRight,ca.rearg=Sv.rearg,ca.reject=wv.reject,ca.remove=xv.remove,ca.rest=Sv.rest,ca.reverse=xv.reverse,ca.sampleSize=wv.sampleSize,ca.set=Iv.set,ca.setWith=Iv.setWith,ca.shuffle=wv.shuffle,ca.slice=xv.slice,ca.sortBy=wv.sortBy,ca.sortedUniq=xv.sortedUniq,ca.sortedUniqBy=xv.sortedUniqBy,ca.split=kv.split,ca.spread=Sv.spread,ca.tail=xv.tail,ca.take=xv.take,ca.takeRight=xv.takeRight,ca.takeRightWhile=xv.takeRightWhile,ca.takeWhile=xv.takeWhile,ca.tap=jv.tap,ca.throttle=Sv.throttle,ca.thru=Bg,ca.toArray=Cv.toArray,ca.toPairs=Iv.toPairs,ca.toPairsIn=Iv.toPairsIn,ca.toPath=Pv.toPath,ca.toPlainObject=Cv.toPlainObject,ca.transform=Iv.transform,ca.unary=Sv.unary,ca.union=xv.union,ca.unionBy=xv.unionBy,ca.unionWith=xv.unionWith,ca.uniq=xv.uniq,ca.uniqBy=xv.uniqBy,ca.uniqWith=xv.uniqWith,ca.unset=Iv.unset,ca.unzip=xv.unzip,ca.unzipWith=xv.unzipWith,ca.update=Iv.update,ca.updateWith=Iv.updateWith,ca.values=Iv.values,ca.valuesIn=Iv.valuesIn,ca.without=xv.without,ca.words=kv.words,ca.wrap=Sv.wrap,ca.xor=xv.xor,ca.xorBy=xv.xorBy,ca.xorWith=xv.xorWith,ca.zip=xv.zip,ca.zipObject=xv.zipObject,ca.zipObjectDeep=xv.zipObjectDeep,ca.zipWith=xv.zipWith,ca.entries=Iv.toPairs,ca.entriesIn=Iv.toPairsIn,ca.extend=Iv.assignIn,ca.extendWith=Iv.assignInWith,Gv(ca,ca),ca.add=Ev.add,ca.attempt=Pv.attempt,ca.camelCase=kv.camelCase,ca.capitalize=kv.capitalize,ca.ceil=Ev.ceil,ca.clamp=Tv,ca.clone=Cv.clone,ca.cloneDeep=Cv.cloneDeep,ca.cloneDeepWith=Cv.cloneDeepWith,ca.cloneWith=Cv.cloneWith,ca.conformsTo=Cv.conformsTo,ca.deburr=kv.deburr,ca.defaultTo=Pv.defaultTo,ca.divide=Ev.divide,ca.endsWith=kv.endsWith,ca.eq=Cv.eq,ca.escape=kv.escape,ca.escapeRegExp=kv.escapeRegExp,ca.every=wv.every,ca.find=wv.find,ca.findIndex=xv.findIndex,ca.findKey=Iv.findKey,ca.findLast=wv.findLast,ca.findLastIndex=xv.findLastIndex,ca.findLastKey=Iv.findLastKey,ca.floor=Ev.floor,ca.forEach=wv.forEach,ca.forEachRight=wv.forEachRight,ca.forIn=Iv.forIn,ca.forInRight=Iv.forInRight,ca.forOwn=Iv.forOwn,ca.forOwnRight=Iv.forOwnRight,ca.get=Iv.get,ca.gt=Cv.gt,ca.gte=Cv.gte,ca.has=Iv.has,ca.hasIn=Iv.hasIn,ca.head=xv.head,ca.identity=Eo,ca.includes=wv.includes,ca.indexOf=xv.indexOf,ca.inRange=Mv,ca.invoke=Iv.invoke,ca.isArguments=Cv.isArguments,ca.isArray=so,ca.isArrayBuffer=Cv.isArrayBuffer,ca.isArrayLike=Cv.isArrayLike,ca.isArrayLikeObject=Cv.isArrayLikeObject,ca.isBoolean=Cv.isBoolean,ca.isBuffer=Cv.isBuffer,ca.isDate=Cv.isDate,ca.isElement=Cv.isElement,ca.isEmpty=Cv.isEmpty,ca.isEqual=Cv.isEqual,ca.isEqualWith=Cv.isEqualWith,ca.isError=Cv.isError,ca.isFinite=Cv.isFinite,ca.isFunction=Cv.isFunction,ca.isInteger=Cv.isInteger,ca.isLength=Cv.isLength,ca.isMap=Cv.isMap,ca.isMatch=Cv.isMatch,ca.isMatchWith=Cv.isMatchWith,ca.isNaN=Cv.isNaN,ca.isNative=Cv.isNative,ca.isNil=Cv.isNil,ca.isNull=Cv.isNull,ca.isNumber=Cv.isNumber,ca.isObject=yo,ca.isObjectLike=Cv.isObjectLike,ca.isPlainObject=Cv.isPlainObject,ca.isRegExp=Cv.isRegExp,ca.isSafeInteger=Cv.isSafeInteger,ca.isSet=Cv.isSet,ca.isString=Cv.isString,ca.isSymbol=Cv.isSymbol,ca.isTypedArray=Cv.isTypedArray,ca.isUndefined=Cv.isUndefined,ca.isWeakMap=Cv.isWeakMap,ca.isWeakSet=Cv.isWeakSet,ca.join=xv.join,ca.kebabCase=kv.kebabCase,ca.last=wh,ca.lastIndexOf=xv.lastIndexOf,ca.lowerCase=kv.lowerCase,ca.lowerFirst=kv.lowerFirst,ca.lt=Cv.lt,ca.lte=Cv.lte,ca.max=Ev.max,ca.maxBy=Ev.maxBy,ca.mean=Ev.mean,ca.meanBy=Ev.meanBy,ca.min=Ev.min,ca.minBy=Ev.minBy,ca.stubArray=Pv.stubArray,ca.stubFalse=Pv.stubFalse,ca.stubObject=Pv.stubObject,ca.stubString=Pv.stubString,ca.stubTrue=Pv.stubTrue,ca.multiply=Ev.multiply,ca.nth=xv.nth,ca.noop=Pv.noop,ca.now=Ov.now,ca.pad=kv.pad,ca.padEnd=kv.padEnd,ca.padStart=kv.padStart,ca.parseInt=kv.parseInt,ca.random=Av,ca.reduce=wv.reduce,ca.reduceRight=wv.reduceRight,ca.repeat=kv.repeat,ca.replace=kv.replace,ca.result=Iv.result,ca.round=Ev.round,ca.sample=wv.sample,ca.size=wv.size,ca.snakeCase=kv.snakeCase,ca.some=wv.some,ca.sortedIndex=xv.sortedIndex,ca.sortedIndexBy=xv.sortedIndexBy,ca.sortedIndexOf=xv.sortedIndexOf,ca.sortedLastIndex=xv.sortedLastIndex,ca.sortedLastIndexBy=xv.sortedLastIndexBy,ca.sortedLastIndexOf=xv.sortedLastIndexOf,ca.startCase=kv.startCase,ca.startsWith=kv.startsWith,ca.subtract=Ev.subtract,ca.sum=Ev.sum,ca.sumBy=Ev.sumBy,ca.template=kv.template,ca.times=Pv.times,ca.toFinite=Cv.toFinite,ca.toInteger=Co,ca.toLength=Cv.toLength,ca.toLower=kv.toLower,ca.toNumber=Cv.toNumber,ca.toSafeInteger=Cv.toSafeInteger,ca.toString=Cv.toString,ca.toUpper=kv.toUpper,ca.trim=kv.trim,ca.trimEnd=kv.trimEnd,ca.trimStart=kv.trimStart,ca.truncate=kv.truncate,ca.unescape=kv.unescape,ca.uniqueId=Pv.uniqueId,ca.upperCase=kv.upperCase,ca.upperFirst=kv.upperFirst,ca.each=wv.forEach,ca.eachRight=wv.forEachRight,ca.first=xv.head,Gv(ca,(Nv={},Yc(ca,(function(t,e){Bv.call(ca.prototype,e)||(Nv[e]=t)})),Nv),{chain:!1}),ca.VERSION="4.17.21",(ca.templateSettings=kv.templateSettings).imports._=ca,xa(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(t){ca[t].placeholder=ca})),xa(["drop","take"],(function(t,e){ta.prototype[t]=function(n){n=void 0===n?1:Vv(Co(n),0);var r=this.__filtered__&&!e?new ta(this):this.clone();return r.__filtered__?r.__takeCount__=Uv(n,r.__takeCount__):r.__views__.push({size:Uv(n,4294967295),type:t+(r.__dir__<0?"Right":"")}),r},ta.prototype[t+"Right"]=function(e){return this.reverse()[t](e).reverse()}})),xa(["filter","map","takeWhile"],(function(t,e){var n=e+1,r=1==n||3==n;ta.prototype[t]=function(t){var e=this.clone();return e.__iteratees__.push({iteratee:zc(t),type:n}),e.__filtered__=e.__filtered__||r,e}})),xa(["head","last"],(function(t,e){var n="take"+(e?"Right":"");ta.prototype[t]=function(){return this[n](1).value()[0]}})),xa(["initial","tail"],(function(t,e){var n="drop"+(e?"":"Right");ta.prototype[t]=function(){return this.__filtered__?new ta(this):this[n](1)}})),ta.prototype.compact=function(){return this.filter(Eo)},ta.prototype.find=function(t){return this.filter(t).head()},ta.prototype.findLast=function(t){return this.reverse().find(t)},ta.prototype.invokeMap=$a((function(t,e){return"function"==typeof t?new ta(this):this.map((function(n){return $d(n,t,e)}))})),ta.prototype.reject=function(t){return this.filter(Nf(zc(t)))},ta.prototype.slice=function(t,e){t=Co(t);var n=this;return n.__filtered__&&(t>0||e<0)?new ta(n):(t<0?n=n.takeRight(-t):t&&(n=n.drop(t)),void 0!==e&&(n=(e=Co(e))<0?n.dropRight(-e):n.take(e-t)),n)},ta.prototype.takeRightWhile=function(t){return this.reverse().takeWhile(t).reverse()},ta.prototype.toArray=function(){return this.take(4294967295)},Yc(ta.prototype,(function(t,e){var n=/^(?:filter|find|map|reject)|While$/.test(e),r=/^(?:head|last)$/.test(e),i=ca[r?"take"+("last"==e?"Right":""):e],o=r||/^find/.test(e);i&&(ca.prototype[e]=function(){var e=this.__wrapped__,a=r?[1]:arguments,s=e instanceof ta,l=a[0],u=s||so(e),c=function(t){var e=i.apply(ca,rl([t],a));return r&&h?e[0]:e};u&&n&&"function"==typeof l&&1!=l.length&&(s=u=!1);var h=this.__chain__,d=!!this.__actions__.length,f=o&&!h,p=s&&!d;if(!o&&u){e=p?e:new ta(this);var g=t.apply(e,a);return g.__actions__.push({func:Bg,args:[c],thisArg:void 0}),new aa(g,h)}return f&&p?t.apply(this,a):(g=this.thru(c),f?r?g.value()[0]:g.value():g)})})),xa(["pop","push","shift","sort","splice","unshift"],(function(t){var e=Fv[t],n=/^(?:push|sort|unshift)$/.test(t)?"tap":"thru",r=/^(?:pop|shift)$/.test(t);ca.prototype[t]=function(){var t=arguments;if(r&&!this.__chain__){var i=this.value();return e.apply(so(i)?i:[],t)}return this[n]((function(n){return e.apply(so(n)?n:[],t)}))}})),Yc(ta.prototype,(function(t,e){var n=ca[e];if(n){var r=n.name+"";Bv.call(ra,r)||(ra[r]=[]),ra[r].push({name:e,func:n})}})),ra[Da(void 0,2).name]=[{name:"wrapper",func:void 0}],ta.prototype.clone=function(){var t=new ta(this.__wrapped__);return t.__actions__=sa(this.__actions__),t.__dir__=this.__dir__,t.__filtered__=this.__filtered__,t.__iteratees__=sa(this.__iteratees__),t.__takeCount__=this.__takeCount__,t.__views__=sa(this.__views__),t},ta.prototype.reverse=function(){if(this.__filtered__){var t=new ta(this);t.__dir__=-1,t.__filtered__=!0}else(t=this.clone()).__dir__*=-1;return t},ta.prototype.value=function(){var t=this.__wrapped__.value(),e=this.__dir__,n=so(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=Dv(e,t+a);break;case"takeRight":t=Lv(t,e-a)}}return{start:t,end:e}}(0,i,this.__views__),a=o.start,s=o.end,l=s-a,u=r?s:a-1,c=this.__iteratees__,h=c.length,d=0,f=Rv(l,this.__takeCount__);if(!n||!r&&i==l&&f==l)return Vg(t,this.__actions__);var p=[];t:for(;l--&&d<f;){for(var g=-1,v=t[u+=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[d++]=v}return p},ca.prototype.at=jv.at,ca.prototype.chain=jv.wrapperChain,ca.prototype.commit=jv.commit,ca.prototype.next=jv.next,ca.prototype.plant=jv.plant,ca.prototype.reverse=jv.reverse,ca.prototype.toJSON=ca.prototype.valueOf=ca.prototype.value=jv.value,ca.prototype.first=ca.prototype.head,zv&&(ca.prototype[zv]=jv.toIterator);var Hv,Wv,Yv,$v="zh_CN",Xv={zh_CN:{"小计":"小计","总计":"总计","总和":"总和","项":"项","已选择":"已选择","序号":"序号","度量":"度量","数值":"数值","共计":"共计","条":"条","趋势":"趋势","隐藏":"隐藏","组内升序":"组内升序","升序":"升序","降序":"降序","组内降序":"组内降序","不排序":"不排序"},en_US:{"小计":"Total","总计":"Total","总和":"SUM","项":"items","已选择":"selected","序号":"Index","度量":"Measure","数值":"Measure","共计":"Total","条":"","隐藏":"Hide","趋势":"Trend","组内升序":"Group ASC","组内降序":"Group DESC","升序":"ASC","降序":"DESC","不排序":"No order"}},qv=function(){return $v},Zv=function(t){$v=t||"zh_CN"},Kv=function(t){Xv=jf({},Xv,t)},Jv=function(){return Xv},Qv=function(t,e){return void 0===e&&(e=t),el(Xv,[$v,t],e)},tm="$$value$$",em="$$extra$$",nm="$$extra_column$$",rm="$$total$$",im="$$series_number$$",om=Qv("指标"),am=0,sm=3,lm=3,um=4,cm=5,hm=5,dm=1,fm=1,pm=2,gm=1,vm="backGroundGroup",mm="foreGroundGroup",ym="panelGroup",bm="panelScrollGroup",_m="frozenRowGroup",xm="frozenColGroup",wm="frozenTrailingRowGroup",Om="frozenTrailingColGroup",Sm="frozenTopGroup",Cm="frozenBottomGroup",Em="rowResizeAreaGroup",Tm="rowFrozenResizeAreaGroup",Mm="frozenSplitLine",Am="rowIndexResizeAreaGroup",Im="cornerResizeAreaGroup",jm="colResizeAreaGroup",km="colFrozenResizeAreaGroup",Pm="colHorizontalResizeAreaGroup",Lm="colScrollGroup",Dm="colFrozenGroup",Rm="colFrozenTrailingGroup",Nm="gridGroup",Fm="series-number-node",Bm="horizontal-resize-area-",zm="table-col-horizontal-resize-area",Vm="col-real-width-info",Um="root",Gm="[&]",Hm="-",Wm=0,Ym=1,$m=2,Xm=3,qm=28,Zm=16,Km=16,Jm=/^root\[&\]*/,Qm="image",ty=.5,ey="antv-s2",ny="valueRanges",ry={},iy={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"}(Wv||(Wv={})),function(t){t.FROZEN_COL="frozenCol",t.FROZEN_ROW="frozenRow",t.FROZEN_TRAILING_COL="frozenTrailingCol",t.FROZEN_TRAILING_ROW="frozenTrailingRow"}(Yv||(Yv={}));var oy,ay,sy,ly=((Hv={})[Wv.ROW]="frozenRowGroup",Hv[Wv.COL]="frozenColGroup",Hv[Wv.TRAILING_COL]="frozenTrailingColGroup",Hv[Wv.TRAILING_ROW]="frozenTrailingRowGroup",Hv[Wv.SCROLL]="panelScrollGroup",Hv[Wv.TOP]="frozenTopGroup",Hv[Wv.BOTTOM]="frozenBottomGroup",Hv);!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.COL_ROW_RESIZE="rowColResize",t.DATA_CELL_MULTI_SELECTION="dataCellMultiSelection",t.RANGE_SELECTION="rangeSelection",t.SELECTED_CELL_MOVE="selectedCellMove"}(oy||(oy={})),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"}(ay||(ay={})),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"}(sy||(sy={}));var uy,cy,hy,dy,fy=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"}(uy||(uy={})),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.MULTI_SELECTION="multiSelection",t.RESIZE="resize"}(dy||(dy={}));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 My={layoutWidthType:Ey.Adaptive,showTreeLeafNodeAlignDot:!1,treeRowsWidth:120,collapsedRows:{},collapsedCols:{},cellCfg:{width:96,height:30},rowCfg:{width:null,widthByField:{},heightByField:{}},colCfg:{height:30,widthByFieldValue:{},heightByField:{}},device:"pc"},Ay={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:fy},scrollSpeedRatio:{horizontal:1,vertical:1},autoResetSheetStyle:!0,brushSelection:!0,multiSelection:!0,rangeSelection:!0,scrollbarPosition:my.CONTENT,resize:{rowCellVertical:!0,cornerCellHorizontal:!0,colCellHorizontal:!0,colCellVertical:!0,rowResizeType:wy.ALL},eventListenerOptions:!1},showSeriesNumber:!1,customSVGIcons:[],showDefaultHeaderActionIcon:!1,headerActionIcons:[],style:My,frozenRowHeader:!0,frozenRowCount:0,frozenColCount:0,frozenTrailingRowCount:0,frozenTrailingColCount:0,hdAdapter:!0,cornerText:"",cornerExtraFieldText:"",placeholder:Hm,supportCSSTransform:!1,devicePixelRatio:window.devicePixelRatio},Iy=32,jy=function(t,e){return(jy=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 ky(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}jy(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}var Py=function(){return(Py=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 Ly(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 Ry(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 Ny(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,l=e.random;function u(t,l){if(l=l||{},(t=t||"")instanceof u)return t;if(!(this instanceof u))return new u(t,l);var c=function(t){var i={r:0,g:0,b:0},o=1,l=null,u=null,c=null,h=!1,d=!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:R(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:R(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)?(f=t.r,p=t.g,g=t.b,i={r:255*I(f,255),g:255*I(p,255),b:255*I(g,255)},h=!0,d="%"===String(t.r).substr(-1)?"prgb":"rgb"):V(t.h)&&V(t.s)&&V(t.v)?(l=L(t.s),u=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),l=r*(1-(1-o)*n),u=i%6;return{r:255*[r,s,a,a,l,r][u],g:255*[l,r,r,s,a,a][u],b:255*[a,a,l,r,r,s][u]}}(t.h,l,u),h=!0,d="hsv"):V(t.h)&&V(t.s)&&V(t.l)&&(l=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,l=2*n-s;r=a(l,s,t+1/3),i=a(l,s,t),o=a(l,s,t-1/3)}return{r:255*r,g:255*i,b:255*o}}(t.h,l,c),h=!0,d="hsl"),t.hasOwnProperty("a")&&(o=t.a));var f,p,g;return o=A(o),{ok:h,format:t.format||d,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=l.format||c.format,this._gradientType=l.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),l=a(t,e,n),u=(o+l)/2;if(o==l)r=i=0;else{var c=o-l;switch(i=u>.5?c/(2-o-l):c/(o+l),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:u}}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),l=a(t,e,n),u=o,c=o-l;if(i=0===o?0:c/o,o==l)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:u}}function d(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 f(t,e,n,r){return[P(D(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=u(t).toHsl();return n.s-=e/100,n.s=j(n.s),u(n)}function g(t,e){e=0===e?0:e||10;var n=u(t).toHsl();return n.s+=e/100,n.s=j(n.s),u(n)}function v(t){return u(t).desaturate(100)}function m(t,e){e=0===e?0:e||10;var n=u(t).toHsl();return n.l+=e/100,n.l=j(n.l),u(n)}function y(t,e){e=0===e?0:e||10;var n=u(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))),u(n)}function b(t,e){e=0===e?0:e||10;var n=u(t).toHsl();return n.l-=e/100,n.l=j(n.l),u(n)}function _(t,e){var n=u(t).toHsl(),r=(n.h+e)%360;return n.h=r<0?360+r:r,u(n)}function x(t){var e=u(t).toHsl();return e.h=(e.h+180)%360,u(e)}function w(t){var e=u(t).toHsl(),n=e.h;return[u(t),u({h:(n+120)%360,s:e.s,l:e.l}),u({h:(n+240)%360,s:e.s,l:e.l})]}function O(t){var e=u(t).toHsl(),n=e.h;return[u(t),u({h:(n+90)%360,s:e.s,l:e.l}),u({h:(n+180)%360,s:e.s,l:e.l}),u({h:(n+270)%360,s:e.s,l:e.l})]}function S(t){var e=u(t).toHsl(),n=e.h;return[u(t),u({h:(n+72)%360,s:e.s,l:e.l}),u({h:(n+216)%360,s:e.s,l:e.l})]}function C(t,e,n){e=e||6,n=n||30;var r=u(t).toHsl(),i=360/n,o=[u(t)];for(r.h=(r.h-(i*e>>1)+720)%360;--e;)r.h=(r.h+i)%360,o.push(u(r));return o}function E(t,e){e=e||6;for(var n=u(t).toHsv(),r=n.h,i=n.s,o=n.v,a=[],s=1/e;e--;)a.push(u({h:r,s:i,v:o})),o=(o+s)%1;return a}u.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=A(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 d(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(D(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)&&(M[d(this._r,this._g,this._b,!0)]||!1)},toFilter:function(t){var e="#"+f(this._r,this._g,this._b,this._a),n=e,r=this._gradientType?"GradientType = 1, ":"";if(t){var i=u(t);n="#"+f(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 u(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)}},u.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 u(t,e)},u.equals=function(t,e){return!(!t||!e)&&u(t).toRgbString()==u(e).toRgbString()},u.random=function(){return u.fromRatio({r:l(),g:l(),b:l()})},u.mix=function(t,e,n){n=0===n?0:n||50;var r=u(t).toRgb(),i=u(e).toRgb(),o=n/100;return u({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})},u.readability=function(t,n){var r=u(t),i=u(n);return(e.max(r.getLuminance(),i.getLuminance())+.05)/(e.min(r.getLuminance(),i.getLuminance())+.05)},u.isReadable=function(t,e,n){var r,i,o=u.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},u.mostReadable=function(t,e,n){var r,i,o,a,s=null,l=0;i=(n=n||{}).includeFallbackColors,o=n.level,a=n.size;for(var c=0;c<e.length;c++)(r=u.readability(t,e[c]))>l&&(l=r,s=u(e[c]));return u.isReadable(t,s,{level:o,size:a})||!i?s:(n.includeFallbackColors=!1,u.mostReadable(t,["#fff","#000"],n))};var T=u.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"},M=u.hexNames=function(t){var e={};for(var n in t)t.hasOwnProperty(n)&&(e[t[n]]=n);return e}(T);function A(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 D(t){return e.round(255*parseFloat(t)).toString(16)}function R(t){return k(t)/255}var N,F,B,z=(F="[\\s|\\(]+("+(N="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)")+")[,|\\s]+("+N+")[,|\\s]+("+N+")\\s*\\)?",B="[\\s|\\(]+("+N+")[,|\\s]+("+N+")[,|\\s]+("+N+")[,|\\s]+("+N+")\\s*\\)?",{CSS_UNIT:new RegExp(N),rgb:new RegExp("rgb"+F),rgba:new RegExp("rgba"+B),hsl:new RegExp("hsl"+F),hsla:new RegExp("hsla"+B),hsv:new RegExp("hsv"+F),hsva:new RegExp("hsva"+B),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=u:window.tinycolor=u}(Math)}(Fy);var By,zy=Fy.exports,Vy=[95,85,75,30,15,0,15,30,45,60,80],Uy=[{fontColorIndex:0,bgColorIndex:3},{fontColorIndex:13,bgColorIndex:8},{fontColorIndex:14,bgColorIndex:1}],Gy=function(t){for(var e=[],n=0;n<11;n++){var r=Vy[n];e.push(0===r?t.toUpperCase():zy.mix(t,n<5?"#FFFFFF":"#000000",r).toHexString().toUpperCase())}return e},Hy=function(t){var e=Array.from(Array(15)).fill("#FFFFFF"),n=t.basicColorRelations,r=Gy(t.brandColor);return n.forEach((function(t){e[t.basicColorIndex]=r[t.standardColorIndex]})),Uy.forEach((function(t){var n=t.fontColorIndex,r=t.bgColorIndex;e[n]=zy(e[r]).getBrightness()>220?"#000000":"#FFFFFF"})),Py(Py({},t),{basicColors:e})},Wy=Hy({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}]}),Yy={default:Hy({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:Wy,gray:Hy({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",Xy=12,qy="".concat(ey,"-tooltip"),Zy="".concat(qy,"-container"),Ky="".concat(qy,"-operation"),Jy={x:15,y:10},Qy=function(){return{key:"hiddenColumns",text:Qv("隐藏"),icon:"EyeOutlined"}},tb=function(){return{key:"trend",text:Qv("趋势"),icon:"Trend"}},eb=function(){return[{key:"asc",icon:"groupAsc",text:Qv("组内升序")},{key:"desc",icon:"groupDesc",text:Qv("组内降序")},{key:"none",text:Qv("不排序")}]},nb=function(){return[{key:"asc",icon:"groupAsc",text:Qv("升序")},{key:"desc",icon:"groupDesc",text:Qv("降序")},{key:"none",text:Qv("不排序")}]};function rb(t){return"mobile"===t||/(iPhone|iPad|SymbianOS|Windows Phone|iPod|iOS|Android)/i.test(navigator.userAgent)}function ib(){return/iPhone/gi.test(navigator.userAgent)&&812===window.screen.height&&375===window.screen.width}function ob(){return/windows/i.test(navigator.userAgent)}!function(t){t[t.ALL=0]="ALL",t[t.COL=1]="COL",t[t.ROW=2]="ROW"}(By||(By={}));var ab=function(t){return Yy[(t||"default").toLowerCase()]},sb=function(t){var e,n,r,i,o,a,s,l=(null==t?void 0:t.palette)||ab(null==t?void 0:t.name),u=l.basicColors,c=l.semanticColors,h=l.others,d=null===(e=null==t?void 0:t.spreadsheet)||void 0===e?void 0:e.isTableMode();return{cornerCell:{bolderText:{fontFamily:$y,fontSize:12,fontWeight:ob()?"bold":500,fill:u[0],opacity:1,textAlign:d?"center":"left",textBaseline:"middle"},text:{fontFamily:$y,fontSize:12,fontWeight:ob()?"bold":500,fill:u[0],opacity:1,textAlign:"right",textBaseline:"middle"},cell:{backgroundColor:u[3],backgroundColorOpacity:1,horizontalBorderColor:u[10],horizontalBorderColorOpacity:1,verticalBorderColor:u[10],verticalBorderColorOpacity:1,horizontalBorderWidth:1,verticalBorderWidth:1,padding:{top:0,right:8,bottom:0,left:8}},icon:{fill:u[0],size:10,margin:{right:4,left:4}}},rowCell:{measureText:{fontFamily:$y,fontSize:12,fontWeight:"normal",fill:u[14],linkTextFill:u[6],opacity:1,textAlign:d?"center":"left",textBaseline:"top"},bolderText:{fontFamily:$y,fontSize:12,fontWeight:ob()?"bold":520,fill:u[14],linkTextFill:u[6],opacity:1,textAlign:d?"center":"left",textBaseline:"top"},text:{fontFamily:$y,fontSize:12,fontWeight:"normal",fill:u[14],linkTextFill:u[6],opacity:1,textBaseline:"top",textAlign:d?"center":"left"},cell:{backgroundColor:u[1],backgroundColorOpacity:1,horizontalBorderColor:u[9],horizontalBorderColorOpacity:1,verticalBorderColor:u[9],verticalBorderColorOpacity:1,horizontalBorderWidth:1,verticalBorderWidth:1,padding:{top:0,right:8,bottom:0,left:8},interactionState:{hover:{backgroundColor:u[2],backgroundOpacity:.6},selected:{backgroundColor:u[2],backgroundOpacity:.6},unselected:{backgroundOpacity:.3,textOpacity:.3,opacity:.3},searchResult:{backgroundColor:null!==(n=null==h?void 0:h.results)&&void 0!==n?n:u[2],backgroundOpacity:1},highlight:{backgroundColor:null!==(r=null==h?void 0:h.highlight)&&void 0!==r?r:u[6],backgroundOpacity:1}}},icon:{fill:u[14],size:10,margin:{right:4,left:4}},seriesNumberWidth:80},colCell:{measureText:{fontFamily:$y,fontSize:12,fontWeight:"normal",fill:u[0],opacity:1,textAlign:"right",textBaseline:"middle"},bolderText:{fontFamily:$y,fontSize:12,fontWeight:ob()?"bold":520,fill:u[0],opacity:1,textAlign:"center",textBaseline:"middle"},text:{fontFamily:$y,fontSize:12,fontWeight:"normal",fill:u[0],opacity:1,textAlign:"center",textBaseline:"middle"},cell:{backgroundColor:u[3],backgroundColorOpacity:1,horizontalBorderColor:u[10],horizontalBorderColorOpacity:1,verticalBorderColor:u[10],verticalBorderColorOpacity:1,horizontalBorderWidth:1,verticalBorderWidth:1,padding:{top:0,right:8,bottom:0,left:8},interactionState:{hover:{backgroundColor:u[4],backgroundOpacity:.6},selected:{backgroundColor:u[4],backgroundOpacity:.6},unselected:{backgroundOpacity:.3,textOpacity:.3,opacity:.3},searchResult:{backgroundColor:null!==(i=null==h?void 0:h.results)&&void 0!==i?i:u[2],backgroundOpacity:1},highlight:{backgroundColor:null!==(o=null==h?void 0:h.highlight)&&void 0!==o?o:u[6],backgroundOpacity:1}}},icon:{fill:u[0],size:10,margin:{top:6,right:4,bottom:6,left:4}}},dataCell:{bolderText:{fontFamily:$y,fontSize:12,fontWeight:ob()?"bold":520,fill:u[13],opacity:1,textAlign:"right",textBaseline:"middle"},text:{fontFamily:$y,fontSize:12,fontWeight:"normal",fill:u[13],opacity:1,textAlign:"right",textBaseline:"middle"},cell:{crossBackgroundColor:u[1],backgroundColor:u[8],backgroundColorOpacity:1,horizontalBorderColor:u[9],horizontalBorderColorOpacity:1,verticalBorderColor:u[9],verticalBorderColorOpacity:1,horizontalBorderWidth:1,verticalBorderWidth:1,padding:{top:0,right:8,bottom:0,left:8},interactionState:{hover:{backgroundColor:u[2],backgroundOpacity:.6},hoverFocus:{backgroundColor:u[2],backgroundOpacity:.6,borderColor:u[14],borderWidth:1,borderOpacity:1},selected:{backgroundColor:u[2],backgroundOpacity:.6},unselected:{backgroundOpacity:.3,textOpacity:.3,opacity:.3},searchResult:{backgroundColor:null!==(a=null==h?void 0:h.results)&&void 0!==a?a:u[2],backgroundOpacity:1},highlight:{backgroundColor:null!==(s=null==h?void 0:h.highlight)&&void 0!==s?s:u[6],backgroundOpacity:1},prepareSelect:{borderColor:u[14],borderOpacity:1,borderWidth:1}},miniBarChartHeight:Xy,miniBarChartFillColor:u[7]},icon:{fill:u[13],downIconColor:c.red,upIconColor:c.green,size:10,margin:{right:4,left:4}}},resizeArea:{size:3,background:u[7],backgroundOpacity:0,guideLineColor:u[7],guideLineDash:[3,3],interactionState:{hover:{backgroundColor:u[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:rb()?3:6,hoverSize:rb()?4:8,lineCap:"round"},splitLine:{horizontalBorderColor:u[12],horizontalBorderColorOpacity:.2,horizontalBorderWidth:2,verticalBorderColor:u[11],verticalBorderColorOpacity:.25,verticalBorderWidth:2,showShadow:!0,shadowWidth:8,shadowColors:{left:"rgba(0,0,0,0.1)",right:"rgba(0,0,0,0)"}},bullet:{progressBar:{widthPercent:.7,height:10,innerHeight:6},comparativeMeasure:{width:1,height:12,color:u[13],opacity:.25},rangeColors:{good:null==c?void 0:c.green,satisfactory:c.yellow,bad:c.red},backgroundColor:"#E9E9E9"},prepareSelectMask:{backgroundColor:u[5],backgroundOpacity:.3},background:{color:u[8],opacity:1}}},lb=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,l=t.isTotals,u=t.isGrandTotals,c=t.isSubTotals,h=t.isCollapsed,d=t.hierarchy,f=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=l,this.isCollapsed=h,this.hierarchy=d,this.isPivotMode=f,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=u,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!==Um;)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=Ny([],Ry(t.children),!1),r=n.shift();r;)r.isLeaf?e.push(r):n.unshift.apply(n,Ny([],Ry(r.children),!1)),r=n.shift();return e},t.getAllChildrenNodes=function(t){var e=[];if(t.isLeaf)return[t];for(var n=Ny([],Ry(t.children||[]),!1),r=n.shift();r;)e.push(r),n.unshift.apply(n,Ny([],Ry(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&&!rf(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 Gf(this,["config","hierarchy","parent","spreadsheet"])},t}(),ub=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}(),cb=function(t,e,n){void 0===e&&(e=!1),void 0===n&&(n=!1),this.label=t,this.isSubTotals=e,this.isGrandTotals=n},hb=function(t){this.label=t},db=function(t,e){return"".concat(t).concat(Gm).concat(e)},fb=function(t,e,n,r){return e.layoutArrange?e.layoutArrange(e.spreadsheet,n,r,t):t},pb=function(t,e,n,r){var i=!0,o=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 a=t.layoutHierarchy(t.spreadsheet,n);if(a){var s=!!Jd(null==a?void 0:a.delete)&&(null==a?void 0:a.delete);i=!s;var l=a.push,u=a.unshift,c=e.children.length,h=r.getNodes().length;nf(u)||(Mh(u,(function(t){o(t)})),c=e.children.length,h=r.getNodes().length),nf(l)||Mh(l,(function(t){o(t)})),s||o(n,c,h)}else o(n)}else o(n);return i},gb=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))};function vb(t,e){for(var n={},r=t;r&&r.key;)r.isTotals&&!e||(n[r.key]=r.value),r=r.parent;return n}var mb=function(t){var e,n=t.addTotalMeasureInTotal,r=t.addMeasureInTotalQuery,i=t.parentNode,o=t.currentField,a=t.fields,s=t.facetCfg,l=t.hierarchy,u=a.indexOf(o),c=s.dataSet,h=s.values,d=s.spreadsheet,f=[],p={};if(i.isTotals)n&&(p=vb(i.parent,!0),f.push.apply(f,Ny([],Ry(h.map((function(t){return new hb(t)}))),!1)));else{p=vb(i,!0);var g=c.getDimensionValues(o,p),v=fb(g,s,i,o);f.push.apply(f,Ny([],Ry(v||[]),!1));var m=c.getFieldName(o);nf(f)&&(o===em?f.push.apply(f,Ny([],Ry(null===(e=c.fields)||void 0===e?void 0:e.values),!1)):f.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,l=n.dataSet.fields.valueInCols;try{for(var u=Dy(t),c=u.next();!c.done;c=u.next()){var h=c.value;s&&l&&e===em&&t.splice(t.indexOf(h),1)}}catch(t){r={error:t}}finally{try{c&&!c.done&&(i=u.return)&&i.call(u)}finally{if(r)throw r.error}}}(f,o,s),function(t){var e,n,r,i=t.isFirstField,o=t.currentField,a=t.fieldValues,s=t.spreadsheet,l=t.lastField,u=s.getTotalsConfig(i?o:l);i?(null==u?void 0:u.showGrandTotals)&&(n=u.reverseLayout?"unshift":"push",r=new cb(u.label,!1,!0)):(null==u?void 0:u.showSubTotals)&&(ca.size(a)>1||!1!==ca.get(u,"showSubTotals.always"))&&o!==em&&(n=u.reverseSubLayout?"unshift":"push",r=new cb(u.subLabel,!0)),null===(e=a[n])||void 0===e||e.call(a,r)}({currentField:o,lastField:a[u-1],isFirstField:0===u,fieldValues:f,spreadsheet:d})}var y=d.store.get("hiddenColumnsDetail"),b=1===iv(d.getColumnLeafNodes(),(function(t,e){return t.value===e.value})).length,_=f.filter((function(t){return!ff(t)&&(!!nf(y)||y.every((function(e){return e.hideColumnNodes.every((function(e){var n=e.field===em,r=e.field===nm;return n||r||b?e.parent.id!==i.id&&e.parent.value!==t:e.value!==t}))})))}));yb({currentField:o,fields:a,fieldValues:_,facetCfg:s,hierarchy:l,parentNode:i,level:u,query:p,addMeasureInTotalQuery:r,addTotalMeasureInTotal:n})},yb=function(t){var e,n,r,i,o,a,s,l,u,c=t.currentField,h=t.fields,d=t.fieldValues,f=t.facetCfg,p=t.hierarchy,g=t.parentNode,v=t.level,m=t.query,y=t.addMeasureInTotalQuery,b=t.addTotalMeasureInTotal,_=f.spreadsheet,x=f.collapsedCols,w=f.colCfg;try{for(var O=Dy(d.entries()),S=O.next();!S.done;S=O.next()){var C=Ry(S.value,2),E=C[0],T=C[1],M=T instanceof cb,A=T instanceof hb,I=void 0,j=void 0,k=!1,P=!1,L=!1,D=c;if(M){var R=T;P=R.isGrandTotals,L=R.isSubTotals,I=Qv(T.label),y?(j=Py(Py({},m),((r={})[em]=null===(s=null==_?void 0:_.dataSet)||void 0===s?void 0:s.fields.values[0],r)),k=!0):(j=m,b||(k=!0))}else if(A)I=Qv(T.label),j=Py(Py({},m),((i={})[em]=I,i)),D=em,k=!0;else if(_.isTableMode())I=T,D=h[E],j=Py(Py({},m),((o={})[D]=I,o)),k=!0;else{I=T,j=Py(Py({},m),((a={})[c]=I,a));var N=null===(u=null===(l=_.dataCfg.fields)||void 0===l?void 0:l.valueInCols)||void 0===u||u,F=(null==w?void 0:w.hideMeasureColumn)&&N&&Id(h,em)?2:1;k=v===h.length-F}var B=db(g.id,I);if(!B)return;var z=!!Jd(null==x?void 0:x[B])&&(null==x?void 0:x[B]),V=new lb({id:B,key:D,value:I,level:v,field:D,parent:g,isTotals:M,isGrandTotals:P,isSubTotals:L,isTotalMeasure:A,isCollapsed:z,hierarchy:p,query:j,spreadsheet:_,isLeaf:k||z}),U=pb(f,g,V,p);!(v>p.maxLevel)||P||g.isGrandTotals||g.isSubTotals||V.isSubTotals||(p.sampleNodesForAllLevels.push(V),p.sampleNodeForLastLevel=V,p.maxLevel=v),k||z||!U?(V.isLeaf=!0,p.pushIndexNode(V),V.rowIndex=p.getIndexNodes().length-1):mb({addTotalMeasureInTotal:b,addMeasureInTotalQuery:y,parentNode:V,currentField:h[v+1],fields:h,facetCfg:f,hierarchy:p})}}catch(t){e={error:t}}finally{try{S&&!S.done&&(n=O.return)&&n.call(O)}finally{if(e)throw e.error}}},bb=function(t){var e=t.facetCfg,n=t.hierarchy,r=t.parentNode,i=e.columns,o=e.spreadsheet,a=e.dataSet,s=o.store.get("hiddenColumnsDetail"),l=null==e?void 0:e.showSeriesNumber,u=i.filter((function(t){return!s||s.every((function(e){return e.hideColumnNodes.every((function(e){return e.field!==t}))}))})),c=Ny([],Ry(u),!1),h=sd(u,(function(t){return a.getFieldName(t)}));l&&(c.unshift(im),h.unshift(Qv("序号"))),yb({currentField:u[0],fields:c,fieldValues:h,facetCfg:e,hierarchy:n,parentNode:r,level:0,query:{},addMeasureInTotalQuery:!1,addTotalMeasureInTotal:!1})},_b="Transform Data",xb="Header Layout",wb="Data Cell Render",Ob=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,Ny([e],Ry(n),!1))}}return t.getInstance=function(){return t.instance||(t.instance=new t),t.instance},t.prototype.setDebug=function(t){this.debug=t},t}(),Sb=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>'}),Cb={},Eb=function(t,e){Cb[bf(t)]=e},Tb=function(t){return Cb[bf(t)]};Cs(Sb).forEach((function(t){Eb(t,Sb[t])}));var Mb,Ab,Ib,jb={},kb=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 ky(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(){jb[e]=a,i(a)},a.onerror=function(t){o(t)};var s=Tb(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,'"')).replace(/#/g,"%23"),a.src="data:image/svg+xml;utf-8,".concat(s))}))},e.prototype.render=function(){var t=this,n=this.cfg,r=n.name,i=n.fill,o=dc(this.cfg),a=Py(Py({},Gf(o,"fill")),{type:e.type}),s=new xi({attrs:a}),l="".concat(r,"-").concat(i),u=jb[l];u?(s.attr("img",u),this.addShape("image",s)):this.getImage(r,l,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"}(Mb||(Mb={})),function(t){t.SUM="SUM",t.MIN="MIN",t.MAX="MAX",t.AVG="AVG"}(Ab||(Ab={})),function(t){t.Row="row",t.Col="col",t.Series="series"}(Ib||(Ib={}));var Pb=function(){function t(){this.store=new Map}return t.prototype.set=function(t,e){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}(),Lb=function(t,e){return t.sort((function(t,n){var r=e.indexOf(t),i=e.indexOf(n);return-1===r&&-1===i?0:-1===r?1:-1===i?-1:r-i}))},Db=function(t){return qh(t,(function(t){return!ff(t)&&"undefined"!==t}))},Rb=function(t){var e;return null===(e=Cs(t))||void 0===e?void 0:e.reduce((function(e,n){var r=el(t,n);return Array.isArray(r)?e=e.concat(Rb(r)):null==e||e.push(r),e}),[])},Nb=function(t){var e,n=[];return Array.isArray(t)?null===(e=Cs(t))||void 0===e||e.forEach((function(e){var r,i,o=el(t,e);(null===(r=Cs(o))||void 0===r?void 0:r.includes("undefined"))?null===(i=Cs(o))||void 0===i||i.forEach((function(t){n.push(o[t])})):n=n.concat(o)})):n=n.concat(t),n},Fb=function(t,e){var n=[];return null==t||t.forEach((function(t,r){void 0===t&&e[r]&&n.push(e[r])})),n},Bb=function(t,e){return!Yh(t,(function(t){return e[t]}))};function zb(t,e){var n=e.rows,r=e.columns;return Zp(t,(function(t,e){return Bb([].concat(n).concat(r),e)&&t.push(e),t}),[])}var Vb={en_US:["KMBTP".split(""),[1e3,1e3,1e3,1e3,1e3]],zh_CN:[["万","亿"],[1e4,1e4]]},Ub=function(t,e,n){if(void 0===e&&(e=2),void 0===n&&(n=Vb[qv()]||Vb.zh_CN),"number"!=typeof t||lf(t))return"";for(var r,i=t,o=Ry(n,2),a=o[0],s=o[1],l=0,u=!0;u;)i>=(r=s[l])&&l<a.length?i/=r:u=!1,l+=1;var c=(i=parseFloat(i.toFixed(e)))>=1e3?i.toLocaleString("en"):"".concat(i);return 0===l?c:"".concat(c," ").concat(a[l-1])},Gb=function(t){return Number.parseFloat((Oo(t)||0).toPrecision(Km))},Hb=function(t,e,n){if(void 0===n&&(n=0),!Object.values(t).find((function(t){return t>0})))return t;var r=Py({},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 Wb(t,e,n){var r;return null===(r=null==t?void 0:t.addShape)||void 0===r?void 0:r.call(t,"rect",Py({zIndex:1,attrs:e},n||{}))}function Yb(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 $b(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 Xb(t,e,n,r,i,o,a){var s;return!nf(e)&&t&&Mh(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:Py(Py({x:n,y:r,text:i},o),a)})}function qb(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:Py(Py({},e),n)})}function Zb(t,e,n){t&&ag(t,"attrs.".concat(e),n)}function Kb(t,e){Zb(t,"fillOpacity",e)}function Jb(t,e){Zb(t,"strokeOpacity",e)}function Qb(t,e){var n=new kb(e);return null==t||t.add(n),n}function t_(t,e,n,r,i){var o=new kb(Py(Py({name:r?"Plus":"Minus"},e),{fill:n}));return To(i)&&o.on("click",i),null==t||t.add(o),o}var e_=document.createElement("canvas").getContext("2d"),n_=$s((function(t,e){if(void 0===t&&(t=""),!e)return 0;var n=e,r=n.fontSize,i=n.fontFamily,o=n.fontWeight,a=n.fontStyle,s=n.fontVariant;return e_.font=[a,s,o,"".concat(r,"px"),i].join(" ").trim(),e_.measureText("".concat(t)).width}),(function(t,e){return Ny([t],Ry(Md(e)),!1).join("")})),r_=function(t,e,n){var r,i=n_("...",n);r=Ed(t)?t:Ks(t);var o,a,s=e,l=[];if(n_(t,n)<=e)return t;for(var u=!0;u;){if(o=r.substr(0,16),(a=n_(o,n))+i>s&&a>s){u=!1;break}if(l.push(o),s-=a,!(r=r.substr(16)))return l.join("")}for(var c=!0;c;){if(o=r.substr(0,1),(a=n_(o,n))+i>s){c=!1;break}if(l.push(o),s-=a,!(r=r.substr(1)))return l.join("")}return"".concat(l.join(""),"...")},i_=function(t,e){var n,r;void 0===e&&(e={});var i=n_("a",e),o=n_("蚂",e),a=0;if(!t)return a;try{for(var s=Dy(t),l=s.next();!l.done;l=s.next()){var u=l.value.charCodeAt(0);a+=u>=0&&u<=255?i:o}}catch(t){n={error:t}}finally{try{l&&!l.done&&(r=s.return)&&r.call(s)}finally{if(n)throw n.error}}return a},o_=function(t){var e=t.text,n=t.maxWidth,r=t.fontParam,i=t.priorityParam,o=t.placeholder,a={},s=null!=o?o:Hm,l=cf(e)||""===e?s:"".concat(e),u=i;if(r&&so(r)?u=r:a=r||{},!u||!u.length)return r_(l,n,a);var c=[],h=[l];u.forEach((function(t){h.forEach((function(e,n){var r=-1,i=e.match(new RegExp(t));if(i){var o=i[0];r=i.index,c.push(o);var a=r+o.length,s=[e.slice(0,r),e.slice(a)].filter((function(t){return!!t}));h.splice.apply(h,Ny([n,1],Ry(s),!1))}}))})),h=c.concat(h);var d=l,f=n_("...",a),p=n;return h.forEach((function(t){if(p<=0){var e=d.indexOf(t),n=d.slice(e-3,e);if(n&&"..."!==n){var r=n_(t,a);d=d.replace(t,r>f?"...":t)}else d=d.replace(t,"");p-=f}else{r=n_(t,a);if(p<r&&r>f){var i=r_(t,p,a);d=d.replace(t,i),p=0}else p-=r}})),d},a_=function(t){return sf(t)?t>=0:!!t&&!Yg(t).startsWith("-")},s_=function(t,e,n,r){void 0===r&&(r="left");var i=n||0;return"left"===r?t+e/2+i:"right"===r?t-e/2-i:t},l_=function(t,e,n,r,i,o){var a=n.isTotals?i.bolderText:i.text,s=a.fill;return(null==o?void 0:o.mapping)&&(s=null==o?void 0:o.mapping(r,{rowIndex:t,colIndex:e,meta:n}).fill),Py(Py({},a),{fill:s})},u_=function(t,e){return To(e)?e(t):e},c_=function(t,e,n){var r=Number(e)-Number(t);return r<=.1?n.good:r>.1&&r<=.2?n.satisfactory:n.bad},h_=function(t,e){var n;if(!nf(t)){var r=e.getStyle(sy.DATA_CELL),i=e.getStyle("bullet"),o=e.getMeta(),a=o.x,s=o.y,l=o.height,u=o.width,c=i.progressBar,h=i.comparativeMeasure,d=i.rangeColors,f=i.backgroundColor,p=c.widthPercent*u,g=u-p,v=r.cell.padding,m=t.measure,y=t.target,b=a+u-v.right-p,_=s+l/2-c.height/2;Wb(e,{x:b,y:_,width:p,height:c.height,fill:f,textBaseline:r.text.textBaseline});var x=el(e.getMeta(),"spreadsheet.options.bullet.getRangeColor");Wb(e,{x:b,y:_+(c.height-c.innerHeight)/2,width:Math.min(p*Number(m),p),height:c.innerHeight,fill:null!==(n=null==x?void 0:x(m,y))&&void 0!==n?n:c_(m,y,d)});var w=b+p*Number(y);qb(e,{x1:w,y1:s+(l-h.height)/2,x2:w,y2:s+(l-h.height)/2+h.height},{stroke:h.color,lineWidth:h.width,opacity:null==h?void 0:h.opacity}),Xb(e,[],b-v.right,s+l/2,o_({text:"".concat(100*Number(m),"%"),maxWidth:g,fontParam:r.text}),r.text)}},d_=function(t,e,n){var r,i=t.getTextAndIconPosition(0).text.x,o=t.getContentArea(),a=o.y,s=o.height,l=o.width,u=e||t.getMeta().fieldValue,c=u.values,h=(null==t?void 0:t.getMeta().spreadsheet.options.style.cellCfg).valuesCfg,d=n?null:null===(r=null==h?void 0:h.conditions)||void 0===r?void 0:r.text;if(so(c)){var f,p,g=null==h?void 0:h.widthPercent,v=t.getStyle(sy.DATA_CELL),m=v.text.textAlign,y=v.cell.padding,b=s/(c.length+1),_=0;if(null==u?void 0:u.label){_=b/2;var x=v.bolderText;Xb(t,[],s_(i,y.right),a+_,o_({text:u.label,maxWidth:l,fontParam:x}),x)}for(var w,O=a+b/2,S=0,C=0;C<c.length;C++){O=a+b*(C+1)+_,S=0;var E=dc(c[C]);"right"===m&&Qp(E);for(var T=0;T<E.length;T++){f=E[T];var M=l_(C,T,null==t?void 0:t.getMeta(),f,v,d);w=nf(g)?l/u.values[0].length:l*(g[T]/100),p=s_(i,y.right,S,m),S+=w;var A=(null==t?void 0:t.getMeta().spreadsheet.options).placeholder,I=u_(null==t?void 0:t.getMeta(),A);Xb(t,[],p,O,o_({text:f,maxWidth:w,fontParam:M,placeholder:I}),M)}}}else h_(c,t)},f_=function(t,e){return void 0===e&&(e=1),t.width*e},p_=function(t){try{return JSON.parse(t)}catch(t){return null}};function g_(t){return t?'"'.concat("string"==typeof t?t.replace(/"/g,'""'):t,'"'):t}var v_=function(t){return new Promise((function(e,n){var r=document.createElement("textarea");r.value=t,document.body.appendChild(r),r.focus({preventScroll:!0}),r.select();var i=document.execCommand("copy");document.body.removeChild(r),i?e():n()}))},m_=function(t){return navigator.clipboard.writeText(t).catch((function(){return v_(t)}))},y_=function(t,e){return void 0===e&&(e=!1),!navigator.clipboard||e?v_(t):m_(t)},b_=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)}},__=function(t,e,n){if(!t)return"";var r=t.fieldValue,i=t.valueField,o=t.data;return yo(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 nf(n)||Mh(n,(function(t){e.push(t.join(" "))})),e.join("$")}(r):n?e.dataSet.getFieldFormatter(i)(r,o):"".concat(r)},x_=function(t,e,n){var r=[];if(t){var i=t.fieldValue,o=t.valueField,a=t.data;if(yo(i))return r=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]}(i,n);if(n){var s=e.dataSet.getFieldFormatter(o);r.push(s(i,a))}else r.push(i)}else r.push(e.options.placeholder);return r.join(" ")},w_=function(t){var e=p_(t);return so(e)?e:t},O_=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},S_=function(t){var e=[],n=function(t){if(t.id!==Um){var r=O_(t);return e.unshift(r),(null==t?void 0:t.parent)?n(t.parent):void 0}};return n(t),e},C_=function(t,e,n){var r,i,o,a,s,l=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),u=l.isFormatHeader,c=l.isFormatData,h=null===(s=null==t?void 0:t.facet)||void 0===s?void 0:s.layoutResult,d=h.rowsHierarchy,f=h.rowLeafNodes,p=h.colLeafNodes,g=h.getCellMeta,v=d.maxLevel,m=t.dataCfg.fields.valueInCols,y=d.sampleNodesForAllLevels.map((function(e){return t.dataSet.getFieldName(e.key)})),b=f.reduce((function(t,e){var n=e.query?Object.keys(e.query).length:0;return n>t?n:t}),0),_=[],x=0;if(t.isPivotMode()){var w=f.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(u)E=S_(C);else C.label=Yg(null==C?void 0:C.label),E=C.id.replace(Jm,"").split(Gm);var T=v+1-E.length;T>0&&E.push.apply(E,Ny([],Ry(new Array(T)),!1));var M=t.dataSet.getFieldName(wh(E));E[E.length-1]=M;try{for(var A=(o=void 0,Dy(p)),I=A.next();!I.done;I=A.next()){var j=I.value;if(m){var k=g(C.rowIndex,j.colIndex);E.push(__(k,t,c))}else{k=g(C.rowIndex,j.colIndex);var P=x_(k,t,c);so(P)?E=E.concat.apply(E,Ny([],Ry(P),!1)):E.push(P)}}}catch(t){o={error:t}}finally{try{I&&!I.done&&(a=A.return)&&a.call(A)}finally{if(o)throw o.error}}x=Tf([E.length,x]);var L=E.map((function(t){return g_(t)})).join(e);_.push(L)}}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,l=[],u=function(r,i){var o=[];o=n?s.map((function(e){return g_(t.dataSet.getFieldFormatter(e)(i[e],i))})):s.map((function(t){return g_(i[t])})),t.options.showSeriesNumber&&(o=[g_(r+1)].concat(o)),l.push(o.join(e))};try{for(var c=Dy(a.entries()),h=c.next();!h.done;h=c.next()){var d=Ry(h.value,2);u(d[0],d[1])}}catch(t){r={error:t}}finally{try{h&&!h.done&&(i=c.return)&&i.call(c)}finally{if(r)throw r.error}}return l}(t,e,c);var D=[];if(nf(p)&&!t.isPivotMode())D=[y];else{var R=0,N=dc(p).map((function(t){for(var e=t,n=[];void 0!==e.level;){var r=w_(e.label);so(r)?R=Tf([R,ug(r)]):r=u?O_(e):r,n.push(r),e=e.parent}return n}));R>1&&(N=function(t,e){return t.map((function(t){return t.map((function(t){return so(t)?t:Ny([t],Ry(new Array(e-1)),!1)}))}))}(N,R));for(var F=Tf(N.map((function(t){return t.length}))),B=[],z=function(e){var n=N.map((function(t){return t.length<F?Ny(Ny([],Ry(new Array(F-t.length)),!1),Ry(t),!1):t})).map((function(t){return t[e]})).map((function(e){return t.dataSet.getFieldName(e)}));B.push(sl(n))},V=F-1;V>=0;V-=1)z(V);D=B.map((function(e,n){var r,i;if(t.isPivotMode()){var o=t.facet.cornerHeader.cfg,a=o.columns,s=o.rows,l=o.data,u=l.filter((function(t){return t.cornerType===Ib.Col})),c=l.filter((function(t){return t.cornerType===Ib.Row}));return n<B.length-1?Ny(Ny(Ny([],Ry(Array(b-1).fill("")),!1),[(null===(i=u.find((function(t){return t.field===a[n]})))||void 0===i?void 0:i.label)||""],!1),Ry(e),!1):n<B.length?Ny(Ny([],Ry(s.map((function(t){var e;return(null===(e=c.find((function(e){return e.field===t})))||void 0===e?void 0:e.label)||""}))),!1),Ry(e),!1):y.concat.apply(y,Ny([],Ry(e),!1))}return n<B.length?(r=Array(b).fill("")).concat.apply(r,Ny([],Ry(e),!1)):y.concat.apply(y,Ny([],Ry(e),!1))}))}return[D.map((function(t){var n=x-t.length;return n>0&&t.unshift.apply(t,Ny([],Ry(new Array(n)),!1)),t.map((function(t){return g_(t)})).join(e)})).join("\r\n")].concat(_).join("\r\n")};function E_(t,e){return!(!t||!e)&&String(t).toLowerCase()===String(e).toLowerCase()}var T_=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},M_=function(t,e){var n=t.split("-"),r=T_(e,n[n.length-1]);return e.options.interaction.copyWithFormat?e.dataSet.getFieldFormatter(r):function(t){return t}},A_=function(t,e,n){var r;if(n.isPivotMode()){var i=Ry(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:Py(Py({},o.query),a.query),rowNode:o,isTotals:o.isTotals||o.isTotalMeasure||a.isTotals||a.isTotalMeasure})[tm]}var s=function(t,e){var n=t.id.split("-");return T_(e,n[n.length-1])}(t,n);return null===(r=e[t.rowIndex])||void 0===r?void 0:r[s]},I_=function(t){return/\n/.test(t)?'"'+t.replace(/\r\n?/g,"\n").replace(/"/g,"'")+'"':t},j_=function(t,e,n){var r=function(e,r){return e+(r?I_(function(t,e,n){return M_(t.id,n)(A_(t,e,n))}(r,t,n)):"")+"\t"};return e.reduce((function(t,e){return t+e.reduce(r,"").slice(0,-1)+"\r\n"}),"").slice(0,-2)},k_=function(t){if(!(null==t?void 0:t.length))return[];var e=Ry([{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=Ry([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=Ry([e-n.row,r-n.col],2),o=i[0],a=i[1];s[o][a]=t})),s},P_=function(t,e,n){return e.map((function(e){return n.map((function(n){var r=t.dataSet.getCellData({query:Py(Py({},e.query),n.query),rowNode:e,isTotals:e.isTotals||e.isTotalMeasure||n.isTotals||n.isTotalMeasure});return M_(n.id,t)(r[tm])})).join("\t")})).join("\r\n")},L_=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})),i=e.length?e.reduce((function(t,e){return t.push.apply(t,Ny([],Ry(r.filter((function(t){return t.id.startsWith(e.id)}))),!1)),t}),[]):r;return P_(t,n,i)}(e,n):function(t,e,n){var r=n.length?n.map((function(t){return T_(e,t.id)})):e.dataCfg.fields.columns;return t.map((function(t){return r.map((function(e){return I_(t[e])})).join("\t")})).join("\r\n")}(t,e,n)},D_=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})),i=e.reduce((function(t,e){return t.push.apply(t,Ny([],Ry(n.filter((function(t){return t.id.startsWith(e.id)}))),!1)),t}),[]);return P_(t,i,r)}(e,n):function(t,e){var n=e.map((function(t){return t.rowIndex}));return t.filter((function(t,e){return n.includes(e)})).map((function(t){return Object.keys(t).map((function(e){return I_(t[e])})).join("\t")})).join("\r\n")}(t,n)},R_=function(t,e){var n=t.dataSet.getDisplayDataSet(),r=t.interaction.getState().cells||[];if(e===By.ALL)return L_(n,t,[]);if(e===By.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:sy.COL_CELL}}));return L_(n,t,o)}if(e===By.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:sy.ROW_CELL}}));return D_(n,t,a)}},N_=function(t){var e,n=t.interaction,r=n.getState().cells||[],i=r.filter((function(t){return t.type===sy.COL_CELL})),o=r.filter((function(t){return t.type===sy.ROW_CELL})),a=t.dataSet.getDisplayDataSet();if(!t.isPivotMode()||!t.isHierarchyTreeType()){if(n.getCurrentStateName()===ay.ALL_SELECTED)e=L_(a,t,[]);else if(i.length)e=L_(a,t,i);else if(o.length)e=D_(a,t,o);else{if(!r.length)return;e=j_(a,k_(r),t)}return e&&y_(e),e}},F_=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,l=null===(o=(i=t.target).get)||void 0===o?void 0:o.call(i,"parent");return{target:l,viewMeta:(null===(a=null==l?void 0:l.getMeta)||void 0===a?void 0:a.call(l))||s,event:t}},B_=function(t,e,n){var r,i=t.split(Gm);if(n)r=[t];else{r=[db(i[0],i[1])];for(var o=2;o<i.length;o+=1)r.push(db(r[o-2],i[o]))}return qh(e,(function(t){var e;return r.includes(null===(e=t.getMeta())||void 0===e?void 0:e.id)}))},z_=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}},V_=function(t){return jf({size:0,position:"right",margin:{left:0,right:0}},t)},U_=function(t,e){return t-(e=V_(e)).size-e.margin.right-e.margin.left},G_=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},H_=function(t,e,n,r,i){void 0===n&&(n=0),void 0===i&&(i=1);var o,a,s=t.x,l=t.width,u=e.textAlign,c=e.textBaseline,h=V_(r),d=h.size,f=h.margin,p=h.position,g=i*(d+f.left)+(i?f.right:0);switch(u){case"left":o=s+("left"===p?g:0),a=s+("left"===p?f.left:n+f.left);break;case"center":var v=s+l/2-(g-("left"===p?f.left:f.right)+n)/2;o=v+n/2+("left"===p?g-f.left:0),a=v+("left"===p?0:n+f.left);break;default:o=s+l-("right"===p?g:0),a=s+l-("right"===p?g-f.left:n+g-f.left)}return{text:{x:o,y:G_(t,c,0)},icon:{x:a,y:G_(t,c,d)}}},W_=function(t,e){return H_(t,e).text},Y_=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}},$_=function(t,e,n){var r,i,o,a,s,l=e.x,u=e.y,c=e.width,h=e.height,d=n.horizontalBorderWidth,f=n.horizontalBorderColorOpacity,p=n.horizontalBorderColor,g=n.verticalBorderWidth,v=n.verticalBorderColor,m=n.verticalBorderColorOpacity;if(t===Mb.TOP||t===Mb.BOTTOM){var y=u;i=y=t===Mb.TOP?u+g/2:u+h-g/2,a=y,r=l,o=l+c,s={lineWidth:d,stroke:p,strokeOpacity:f}}if(t===Mb.LEFT||t===Mb.RIGHT){var b=l;r=b=t===Mb.LEFT?l+d/2:l+c-d/2,o=b,i=u,a=u+h,s={lineWidth:g,stroke:v,strokeOpacity:m}}return{position:{x1:r,x2:o,y1:i,y2:a},style:s}},X_=function(t,e,n){void 0===n&&(n={left:0,right:0});var r=Py({},t);return"left"===e?(r.start+=n.left,r.width-=n.left):"right"===e&&(r.width-=n.right),r},q_=function(t,e,n){if(e<=0)return t;switch(n){case"left":return t-e/2;case"right":return t+e/2;case"center":default:return t}},Z_=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.handleRestOptions.apply(o,Ny([],Ry(r),!1)),o.initCell(),o}return ky(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 H_(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 this.theme[t||this.cellType]},e.prototype.getResizeAreaStyle=function(){return this.getStyle("resizeArea")},e.prototype.shouldDrawResizeAreaByType=function(t){var e,n,r=null===(n=null===(e=this.spreadsheet.options)||void 0===e?void 0:e.interaction)||void 0===n?void 0:n.resize;return Jd(r)?r:r[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 z_(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.options.placeholder,i=u_(this,r),o=o_({text:t,maxWidth:e,fontParam:n,placeholder:i});this.actualText=o,this.actualTextWidth=n_(o,n);var a=this.getTextPosition();this.textShape=Xb(this,[this.textShape],a.x,a.y,o,n)},e.prototype.drawLinkFieldShape=function(t,e){if(t){if(!rb(this.spreadsheet.options.style.device)){var n=this.textShape.getBBox(),r=n.minX,i=n.maxX,o=n.maxY;this.linkFieldShape=qb(this,{x1:r,y1:o+1,x2:i,y2:o+1},{stroke:e,lineWidth:1})}this.textShape.attr({fill:e,cursor:"pointer",appendInfo:{isRowHeaderText:!0,cellData:this.meta}})}},e.prototype.updateByState=function(t,e){var n=this;this.spreadsheet.interaction.setInteractedCells(e);var r=el(this.theme,"".concat(this.cellType,".cell.interactionState.").concat(t)),i=this.getCellArea(),o=i.x,a=i.y,s=i.height,l=i.width;Mh(r,(function(t,e){Cs(Yf(gy,(function(t){return Id(t,e)}))).forEach((function(r){var i=n.stateShapes.has(r),u=i?n.stateShapes.get(r):n[r];(i&&!u.get("visible")&&u.set("visible",!0),"interactiveBorderShape"===r&&"borderWidth"===e)&&(sf(t)&&Mh({x:o+t/2,y:a+t/2,width:l-t-1,height:s-t-1},(function(t,e){Zb(u,e,t)})));Zb(u,py[e],t)}))}))},e.prototype.hideInteractionShape=function(){this.stateShapes.forEach((function(t){Zb(t,py.backgroundOpacity,0),Zb(t,py.backgroundColor,"transparent"),Zb(t,py.borderOpacity,0),Zb(t,py.borderWidth,1),Zb(t,py.borderColor,"transparent")}))},e.prototype.clearUnselectedState=function(){Zb(this.backgroundShape,py.backgroundOpacity,1),Zb(this.textShape,py.textOpacity,1),Zb(this.linkFieldShape,py.opacity,1)},e.prototype.getTextShape=function(){return this.textShape},e}(gi),K_=function(t,e){return e?e(t[em],t[tm]):t[tm]},J_=function(t,e){var n=e.getMeta().id;return t.some((function(t){return rf(t.id,n)}))},Q_=function(t,e){return"".concat(t,"-").concat(e)},tx=function(t){var e;return null!==(e=null==t?void 0:t.position)&&void 0!==e?e:"right"},ex=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return ky(e,t),Object.defineProperty(e.prototype,"cellType",{get:function(){return sy.DATA_CELL},enumerable:!1,configurable:!0}),e.prototype.handleByStateName=function(t,e){J_(t,this)&&this.updateByState(e)},e.prototype.handleSearchResult=function(t){J_(t,this)&&(Qh(t,(function(t){return null==t?void 0:t.isTarget})).id===this.getMeta().id?this.updateByState(ay.HIGHLIGHT):this.updateByState(ay.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 sy.COL_CELL:this.changeRowColSelectState("colIndex");break;case sy.ROW_CELL:this.changeRowColSelectState("rowIndex");break;case sy.DATA_CELL:J_(t,this)?this.updateByState(ay.SELECTED):this.spreadsheet.options.interaction.selectedCellsSpotlight&&this.updateByState(ay.UNSELECTED)}},e.prototype.handleHover=function(t){var e=od(t);if(e.type===sy.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(ay.HOVER):this.hideInteractionShape()}rf(e.id,this.getMeta().id)&&this.updateByState(ay.HOVER_FOCUS)}else this.hideInteractionShape()},e.prototype.update=function(){var t=this.spreadsheet.interaction.getCurrentStateName(),e=this.spreadsheet.interaction.getCells();if(t!==ay.ALL_SELECTED){if(!nf(e)&&t)switch(t){case ay.SELECTED:this.handleSelect(e);break;case ay.HOVER_FOCUS:case ay.HOVER:this.handleHover(e);break;case ay.SEARCH_RESULT:this.handleSearchResult(e);break;default:this.handleByStateName(e,t)}}else this.updateByState(ay.SELECTED)},e.prototype.setMeta=function(e){t.prototype.setMeta.call(this,e),this.initCell()},e.prototype.initCell=function(){this.conditions=this.spreadsheet.options.conditions,this.drawBackgroundShape(),this.drawInteractiveBgShape(),this.drawConditionIntervalShape(),this.drawInteractiveBorderShape(),this.drawTextShape(),this.drawConditionIconShapes(),this.meta.isFrozenCorner&&this.drawBorderShape(),this.update()},e.prototype.getTextStyle=function(){var t,e,n=this.meta.isTotals?this.theme.dataCell.bolderText:this.theme.dataCell.text,r=n.fill,i=this.findFieldCondition(null===(t=this.conditions)||void 0===t?void 0:t.text);return(null==i?void 0:i.mapping)&&(r=(null===(e=this.mappingValue(i))||void 0===e?void 0:e.fill)||n.fill),Py(Py({},n),{fill:r})},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:tx(i)}},e.prototype.getFormattedFieldValue=function(){var t=this.meta,e=t.rowId,n=t.valueField,r=t.fieldValue,i=t.data;return{value:r,formattedValue:(this.spreadsheet.dataSet.getFieldMeta(e)?this.spreadsheet.dataSet.getFieldFormatter(e):this.spreadsheet.dataSet.getFieldFormatter(n))(r,i)}},e.prototype.getMaxTextWidth=function(){var t=this.getContentArea().width;return U_(t,this.getIconStyle())},e.prototype.getTextPosition=function(){return this.getTextAndIconPosition().text},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.getFormattedFieldValue().formattedValue,o=this.theme.dataCell.icon.size;!nf(null==n?void 0:n.icon)&&i&&(this.conditionIconShape=Qb(this,Py(Py({},r),{name:n.icon,width:o,height:o,fill:n.fill})))}},e.prototype.getIntervalScale=function(t,e){void 0===t&&(t=0),void 0===e&&(e=0),t=Gb(t),e=Gb(e);var n=t>=0?0:t,r=e-n||1;return function(t){return Su((t-n)/r,0,1)}},e.prototype.drawConditionIntervalShape=function(){var t,e,n=this.getCellArea(),r=n.x,i=n.y,o=n.height,a=n.width,s=this.getFormattedFieldValue().formattedValue,l=this.findFieldCondition(null===(t=this.conditions)||void 0===t?void 0:t.interval);if(l&&l.mapping&&s){var u=this.mappingValue(l);if(!u)return;var c=u.isCompare?u:this.spreadsheet.dataSet.getValueRangeByField(this.meta.valueField),h=Gb(c.minValue),d=Gb(c.maxValue),f=Gb(this.meta.fieldValue);if(f<h||f>d)return;var p=this.getIntervalScale(h,d),g=p(0),v=p(f),m=this.getStyle().cell.miniBarChartHeight,y=this.getStyle().cell.miniBarChartFillColor,b=null!==(e=u.fill)&&void 0!==e?e:y;this.conditionIntervalShape=Wb(this,{x:r+a*g,y:i+o/2-m/2,width:a*(v-g),height:m,fill:b})}},e.prototype.getBackgroundColor=function(){var t,e=this.getStyle().cell,n=e.crossBackgroundColor,r=e.backgroundColorOpacity,i=this.getStyle().cell.backgroundColor;this.spreadsheet.isPivotMode()&&n&&this.meta.rowIndex%2==0&&(i=n);var o=this.findFieldCondition(null===(t=this.conditions)||void 0===t?void 0:t.background);if(o&&o.mapping){var a=this.mappingValue(o);a&&(i=a.fill)}return{backgroundColor:i,backgroundColorOpacity:r}},e.prototype.drawBackgroundShape=function(){var t=this.getBackgroundColor(),e=t.backgroundColor,n=t.backgroundColorOpacity;this.backgroundShape=Wb(this,Py(Py({},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",Wb(this,{x:e+1,y:n+1,width:i-2,height:r-2},{visible:!1}))},e.prototype.drawInteractiveBgShape=function(){this.stateShapes.set("interactiveBgShape",Wb(this,Py({},this.getCellArea()),{visible:!1}))},e.prototype.changeRowColSelectState=function(t){var e=this.spreadsheet.interaction,n=el(this.meta,t),r=e.getState(),i=r.nodes,o=void 0===i?[]:i,a=r.cells,s=void 0===a?[]:a;Ny(Ny([],Ry(o),!1),Ry(s),!1).find((function(e){return el(e,t)===n}))?this.updateByState(ay.SELECTED):this.spreadsheet.options.interaction.selectedCellsSpotlight?this.updateByState(ay.UNSELECTED):this.hideInteractionShape()},e.prototype.drawBorderShape=function(){var t=this;[Mb.BOTTOM,Mb.RIGHT].forEach((function(e){var n=$_(e,t.getCellArea(),t.getStyle().cell),r=n.position,i=n.style;qb(t,r,i)}))},e.prototype.findFieldCondition=function(t){var e=this;return id(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===ay.UNSELECTED){var n=el(this.theme,"".concat(this.cellType,".cell.interactionState.").concat(e));n&&(Zb(this.conditionIntervalShape,py.backgroundOpacity,n.backgroundOpacity),Zb(this.conditionIconShape,py.opacity,n.opacity))}},e.prototype.clearUnselectedState=function(){t.prototype.clearUnselectedState.call(this),Zb(this.conditionIntervalShape,py.backgroundOpacity,1),Zb(this.conditionIconShape,py.opacity,1)},e.prototype.drawLeftBorder=function(){var t=$_(Mb.LEFT,this.getCellArea(),this.getStyle().cell);qb(this,t.position,t.style)},e}(Z_),nx=function(t){function e(e,n,r,i){void 0===i&&(i=!0);var o=t.call(this,r,e,n)||this;return o.isPartiallyVisible=i,o}return ky(e,t),e.prototype.handleRestOptions=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=Ry(t,1),r=n[0];this.cells=r},Object.defineProperty(e.prototype,"cellType",{get:function(){return sy.MERGED_CELL},enumerable:!1,configurable:!0}),e.prototype.update=function(){},e.prototype.initCell=function(){this.drawBackgroundShape(),this.drawTextShape()},e.prototype.drawBackgroundShape=function(){var t=ax(this.cells),e=this.theme.dataCell.cell;this.backgroundShape=Yb(this,{points:t,stroke:e.horizontalBorderColor,fill:e.backgroundColor,lineHeight:e.horizontalBorderWidth})},e.prototype.drawTextShape=function(){nf(this.meta)||(yo(this.meta.fieldValue)?d_(this):t.prototype.drawTextShape.call(this))},e}(ex),rx=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]]},ix=function(t){var e=[];return Mh(t,(function(n){var r=[n[1],n[0]];JSON.stringify(t).includes(JSON.stringify(r))||e.push(n)})),e},ox=function(t,e){return Qh(e,(function(e){return rf(e[0],t[1])}))},ax=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(rx(r,i,o,a))}));for(var n=[],r=(e=ix(e))[0],i=r,o=[];!rf(r,o);)n=n.concat(i),i=o=ox(i,e);return n},sx=function(t,e){var n,r=[];return Mh(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 l=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(l)}})),{cells:r,cellsMeta:n}},lx=function(t,e){var n,r=[],i=[];return Mh(t,(function(t){var o=Qh(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}},ux=function(t,e,n){var r;void 0===n&&(n=[]);var i=lx(n,t),o=i.cellsMeta,a=i.cells,s=i.invisibleCellInfo,l=o,u=a,c=(null==s?void 0:s.length)>0&&s.length<n.length;if(c){var h=sx(s,e),d=h.cells,f=h.cellsMeta;l=l||f,u=a.concat(d)}return nf(a)||l||(l=null===(r=u[0])||void 0===r?void 0:r.getMeta()),{cells:u,viewMeta:l,isPartiallyVisible:c}},cx=function(t){var e=t.interaction.getActiveCells(),n=[];return Mh(e,(function(t,e){var r=t.getMeta(),i=0===e?{showText:!0}:{};n.push(Py(Py({},i),{colIndex:null==r?void 0:r.colIndex,rowIndex:null==r?void 0:r.rowIndex}))})),n},hx=function(t,e,n){var r,i=e||cx(t);if((null==i?void 0:i.length)<=1)console.error("then merged cells must be more than one");else{var o=qh(t.panelScrollGroup.getChildren(),(function(t){return!(t instanceof nx)})),a=ux(o,t,i),s=a.cells,l=a.viewMeta,u=a.isPartiallyVisible;if(!nf(s)){var c=(null===(r=t.options)||void 0===r?void 0:r.mergedCellsInfo)||[];c.push(i),t.setOptions({mergedCellsInfo:c});var h=n?void 0:l;t.panelScrollGroup.add(new nx(t,s,h,u))}}},dx=function(t,e){var n=sd(t.cells,(function(t){return{colIndex:t.getMeta().colIndex,rowIndex:t.getMeta().rowIndex}}));return qh(e,(function(t){return!rf(t.map((function(t){return t.showText?{colIndex:t.colIndex,rowIndex:t.rowIndex}:t})),n)}))},fx=function(t,e){var n,r,i;if(e&&e.cellType===sy.MERGED_CELL){var o=dx(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"))},px=function(t,e){var n={};return Ny(Ny([],Ry(t),!1),Ry(e),!1).forEach((function(t){n[t.viewMeta.id]=t})),Object.values(n)},gx=function(t){return sd(t,(function(t){return{cells:t.cells,viewMeta:t.getMeta(),isPartiallyVisible:t.isPartiallyVisible}}))},vx=function(t,e){return Sh(t,e,(function(t,e){return rf(t.viewMeta.id,e.viewMeta.id)&&!t.isPartiallyVisible}))},mx=function(t){var e,n=null===(e=t.options)||void 0===e?void 0:e.mergedCellsInfo;if(!nf(n)){var r=qh(t.panelScrollGroup.getChildren(),(function(t){return!(t instanceof nx)}));if(!nf(r)){var i=[];n.forEach((function(e){var n=ux(r,t,e);n.cells.length>0&&i.push(n)}));var o=qh(t.panelScrollGroup.getChildren(),(function(t){return t instanceof nx})),a=gx(o),s=vx(a,i),l=vx(i,a);Mh(s,(function(t){var e=Qh(o,(function(e){return rf(e.getMeta().id,t.viewMeta.id)}));null==e||e.remove(!0)})),Mh(l,(function(e){var n=e.cells,r=e.viewMeta,i=e.isPartiallyVisible;t.panelScrollGroup.add(new nx(t,n,r,i))}))}}},yx=function(t){return[cy.META,cy.CONTROL].includes(t.key)},bx=function(t){var e=t.getMeta();return{id:e.id,colIndex:e.colIndex,rowIndex:e.rowIndex,type:t.cellType}},_x=function(t,e){var n=t.interaction;n.changeState({stateName:ay.SELECTED,cells:e}),t.emit(Hi.GLOBAL_SELECTED,n.getActiveCells())};function xx(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)}}}var wx,Ox,Sx=function(t){Mh(t.store.get("visibleActionIcons"),(function(t){t.set("visible",!1)})),t.store.set("visibleActionIcons",[]);var e=t.interaction.getInteractedCells(),n=t.interaction.getState().cells;nf(e)&&nf(n)||(Mh(e,(function(t){t.hideInteractionShape()})),t.interaction.resetState(),t.options.interaction.selectedCellsSpotlight&&Mh(t.interaction.getPanelGroupAllUnSelectedDataCells()||[],(function(t){t.clearUnselectedState()})))},Cx=function(t,e){var n=null==e?void 0:e.stateName;t.interaction.isEqualStateName(n)||(Sx(t),t.hideTooltip(),t.store.set(vy,e))},Ex=function(t,e,n){var r,i,o=n.facet,a=o.panelBBox.width,s=null==o?void 0:o.frozenGroupInfo,l=null!==(r=null==s?void 0:s.frozenCol.width)&&void 0!==r?r:0,u=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-l:c.x+c.width-(a-u)},Tx=function(t,e,n){var r,i,o=n.facet,a=o.viewCellHeights.getCellOffsetY,s=a(t+1),l=o.panelBBox.height,u=null==o?void 0:o.frozenGroupInfo,c=null!==(r=null==u?void 0:u.frozenRow.height)&&void 0!==r?r:0,h=null!==(i=null==u?void 0:u.frozenTrailingRow.height)&&void 0!==i?i:0;return e===yy.LEADING?a(t)-c:s-(l-h)},Mx=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=function(t,e){if(so(t)&&so(e))return e},r=Ny(Ny([],Ry(t),!1),[n],!1);return ph.apply(void 0,Ny([{}],Ry(r),!1))},Ax=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=Mx.apply(void 0,Ny([iy],Ry(t),!1));return nf(n.fields.customTreeItems)&&!nf(n.fields.values)||(n.fields.valueInCols=!1),n},Ix=function(t){return Mx(Ay,t)},jx=9e15,kx="0123456789abcdef",Px="2.3025850929940456840179914546843642076011014886287729760333279009675726096773524802359972050895982983419677840422862486334095254650828067566662873690987816894829072083255546808437998948262331985283935053089653777326288461633662222876982198867465436674744042432743651550489343149393914796194044002221051017141748003688084012647080685567743216228355220114804663715659121373450747856947683463616792101806445070648000277502684916746550586856935673420670581136429224554405758925724208241314695689016758940256776311356919292033376587141660230105703089634572075440370847469940168269282808481184289314848524948644871927809676271275775397027668605952496716674183485704422507197965004714951050492214776567636938662976979522110718264549734772662425709429322582798502585509785265383207606726317164309505995087807523710333101197857547331541421808427543863591778117054309827482385045648019095610299291824318237525357709750539565187697510374970888692180205189339507238539205144634197265287286965110862571492198849978748873771345686209167058",Lx="3.1415926535897932384626433832795028841971693993751058209749445923078164062862089986280348253421170679821480865132823066470938446095505822317253594081284811174502841027019385211055596446229489549303819644288109756659334461284756482337867831652712019091456485669234603486104543266482133936072602491412737245870066063155881748815209209628292540917153643678925903600113305305488204665213841469519415116094330572703657595919530921861173819326117931051185480744623799627495673518857527248912279381830119491298336733624406566430860213949463952247371907021798609437027705392171762931767523846748184676694051320005681271452635608277857713427577896091736371787214684409012249534301465495853710507922796892589235420199561121290219608640344181598136297747713099605187072113499999983729780499510597317328160963185950244594553469083026425223082533446850352619311881710100031378387528865875332083814206171776691473035982534904287554687311595628638823537875937519577818577805321712268066130019278766111959092164201989380952572010654858632789",Dx={precision:20,rounding:4,modulo:1,toExpNeg:-7,toExpPos:21,minE:-jx,maxE:jx,crypto:!1},Rx=!0,Nx="[DecimalError] Invalid argument: ",Fx="[object Decimal]",Bx=Math.floor,zx=Math.pow,Vx=/^0b([01]+(\.[01]*)?|\.[01]+)(p[+-]?\d+)?$/i,Ux=/^0x([0-9a-f]+(\.[0-9a-f]*)?|\.[0-9a-f]+)(p[+-]?\d+)?$/i,Gx=/^0o([0-7]+(\.[0-7]*)?|\.[0-7]+)(p[+-]?\d+)?$/i,Hx=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,Wx=1e7,Yx=Px.length-1,$x=Lx.length-1,Xx={toStringTag:Fx};function qx(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+=aw(n)),o+=r;(n=7-(r=(a=t[e])+"").length)&&(o+=aw(n))}else if(0===a)return"0";for(;a%10==0;)a/=10;return o+a}function Zx(t,e,n){if(t!==~~t||t<e||t>n)throw Error(Nx+t)}function Kx(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=zx(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)==zx(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)==zx(10,e-3)-1,a}function Jx(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]+=kx.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()}Xx.absoluteValue=Xx.abs=function(){var t=new this.constructor(this);return t.s<0&&(t.s=1),tw(t)},Xx.ceil=function(){return tw(new this.constructor(this),this.e+1,2)},Xx.clampedTo=Xx.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(Nx+e);return n.cmp(t)<0?t:n.cmp(e)>0?e:new r(n)},Xx.comparedTo=Xx.cmp=function(t){var e,n,r,i,o=this,a=o.d,s=(t=new o.constructor(t)).d,l=o.s,u=t.s;if(!a||!s)return l&&u?l!==u?l:a===s?0:!a^l<0?1:-1:NaN;if(!a[0]||!s[0])return a[0]?l:s[0]?-u:0;if(l!==u)return l;if(o.e!==t.e)return o.e>t.e^l<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]^l<0?1:-1;return r===i?0:r>i^l<0?1:-1},Xx.cosine=Xx.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/vw(4,n)).toString()):(n=16,i="2.3283064365386962890625e-10");t.precision+=n,e=gw(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,mw(r,n)),r.precision=t,r.rounding=e,tw(2==Ox||3==Ox?n.neg():n,t,e,!0)):new r(1):new r(NaN)},Xx.cubeRoot=Xx.cbrt=function(){var t,e,n,r,i,o,a,s,l,u,c=this,h=c.constructor;if(!c.isFinite()||c.isZero())return new h(c);for(Rx=!1,(o=c.s*zx(c.s*c,1/3))&&Math.abs(o)!=1/0?r=new h(o.toString()):(n=qx(c.d),(o=((t=c.e)-n.length+1)%3)&&(n+=1==o||-2==o?"0":"00"),o=zx(n,1/3),t=Bx((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(u=(l=(s=r).times(s).times(s)).plus(c),r=Qx(u.plus(c).times(s),u.plus(l),a+2,1),qx(s.d).slice(0,a)===(n=qx(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))||(tw(r,t+1,1),e=!r.times(r).times(r).eq(c));break}if(!i&&(tw(s,t+1,0),s.times(s).times(s).eq(c))){r=s;break}a+=4,i=1}return Rx=!0,tw(r,t,h.rounding,e)},Xx.decimalPlaces=Xx.dp=function(){var t,e=this.d,n=NaN;if(e){if(n=7*((t=e.length-1)-Bx(this.e/7)),t=e[t])for(;t%10==0;t/=10)n--;n<0&&(n=0)}return n},Xx.dividedBy=Xx.div=function(t){return Qx(this,new this.constructor(t))},Xx.dividedToIntegerBy=Xx.divToInt=function(t){var e=this.constructor;return tw(Qx(this,new e(t),0,1,1),e.precision,e.rounding)},Xx.equals=Xx.eq=function(t){return 0===this.cmp(t)},Xx.floor=function(){return tw(new this.constructor(this),this.e+1,3)},Xx.greaterThan=Xx.gt=function(t){return this.cmp(t)>0},Xx.greaterThanOrEqualTo=Xx.gte=function(t){var e=this.cmp(t);return 1==e||0===e},Xx.hyperbolicCosine=Xx.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/vw(4,t=Math.ceil(i/3))).toString():(t=16,e="2.3283064365386962890625e-10"),o=gw(a,1,o.times(e),new a(1),!0);for(var l,u=t,c=new a(8);u--;)l=o.times(o),o=s.minus(l.times(c.minus(l.times(c))));return tw(o,a.precision=n,a.rounding=r,!0)},Xx.hyperbolicSine=Xx.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=gw(o,2,i,i,!0);else{t=(t=1.4*Math.sqrt(r))>16?16:0|t,i=gw(o,2,i=i.times(1/vw(5,t)),i,!0);for(var a,s=new o(5),l=new o(16),u=new o(20);t--;)a=i.times(i),i=i.times(s.plus(a.times(l.times(a).plus(u))))}return o.precision=e,o.rounding=n,tw(i,e,n,!0)},Xx.hyperbolicTangent=Xx.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,Qx(n.sinh(),n.cosh(),r.precision=t,r.rounding=e)):new r(n.s)},Xx.inverseCosine=Xx.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()?iw(n,i,o):new n(0):new n(NaN):e.isZero()?iw(n,i+4,o).times(.5):(n.precision=i+6,n.rounding=1,e=e.asin(),t=iw(n,i+4,o).times(.5),n.precision=i,n.rounding=o,t.minus(e))},Xx.inverseHyperbolicCosine=Xx.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,Rx=!1,n=n.times(n).minus(1).sqrt().plus(n),Rx=!0,r.precision=t,r.rounding=e,n.ln()):new r(n)},Xx.inverseHyperbolicSine=Xx.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,Rx=!1,n=n.times(n).plus(1).sqrt().plus(n),Rx=!0,r.precision=t,r.rounding=e,n.ln())},Xx.inverseHyperbolicTangent=Xx.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?tw(new o(i),t,e,!0):(o.precision=n=r-i.e,i=Qx(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)},Xx.inverseSine=Xx.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=iw(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)))},Xx.inverseTangent=Xx.atan=function(){var t,e,n,r,i,o,a,s,l,u=this,c=u.constructor,h=c.precision,d=c.rounding;if(u.isFinite()){if(u.isZero())return new c(u);if(u.abs().eq(1)&&h+4<=$x)return(a=iw(c,h+4,d).times(.25)).s=u.s,a}else{if(!u.s)return new c(NaN);if(h+4<=$x)return(a=iw(c,h+4,d).times(.5)).s=u.s,a}for(c.precision=s=h+10,c.rounding=1,t=n=Math.min(28,s/7+2|0);t;--t)u=u.div(u.times(u).plus(1).sqrt().plus(1));for(Rx=!1,e=Math.ceil(s/7),r=1,l=u.times(u),a=new c(u),i=u;-1!==t;)if(i=i.times(l),o=a.minus(i.div(r+=2)),i=i.times(l),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)),Rx=!0,tw(a,c.precision=h,c.rounding=d,!0)},Xx.isFinite=function(){return!!this.d},Xx.isInteger=Xx.isInt=function(){return!!this.d&&Bx(this.e/7)>this.d.length-2},Xx.isNaN=function(){return!this.s},Xx.isNegative=Xx.isNeg=function(){return this.s<0},Xx.isPositive=Xx.isPos=function(){return this.s>0},Xx.isZero=function(){return!!this.d&&0===this.d[0]},Xx.lessThan=Xx.lt=function(t){return this.cmp(t)<0},Xx.lessThanOrEqualTo=Xx.lte=function(t){return this.cmp(t)<1},Xx.logarithm=Xx.log=function(t){var e,n,r,i,o,a,s,l,u=this.constructor,c=u.precision,h=u.rounding;if(null==t)t=new u(10),e=!0;else{if(n=(t=new u(t)).d,t.s<0||!n||!n[0]||t.eq(1))return new u(NaN);e=t.eq(10)}if(n=this.d,this.s<0||!n||!n[0]||this.eq(1))return new u(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(Rx=!1,a=hw(this,s=c+5),r=e?rw(u,s+10):hw(t,s),Kx((l=Qx(a,r,s,1)).d,i=c,h))do{if(a=hw(this,s+=10),r=e?rw(u,s+10):hw(t,s),l=Qx(a,r,s,1),!o){+qx(l.d).slice(i+1,i+15)+1==1e14&&(l=tw(l,c+1,0));break}}while(Kx(l.d,i+=10,h));return Rx=!0,tw(l,c,h)},Xx.minus=Xx.sub=function(t){var e,n,r,i,o,a,s,l,u,c,h,d,f=this,p=f.constructor;if(t=new p(t),!f.d||!t.d)return f.s&&t.s?f.d?t.s=-t.s:t=new p(t.d||f.s!==t.s?f:NaN):t=new p(NaN),t;if(f.s!=t.s)return t.s=-t.s,f.plus(t);if(u=f.d,d=t.d,s=p.precision,l=p.rounding,!u[0]||!d[0]){if(d[0])t.s=-t.s;else{if(!u[0])return new p(3===l?-0:0);t=new p(f)}return Rx?tw(t,s,l):t}if(n=Bx(t.e/7),c=Bx(f.e/7),u=u.slice(),o=c-n){for((h=o<0)?(e=u,o=-o,a=d.length):(e=d,n=c,a=u.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=u.length)<(a=d.length))&&(a=r),r=0;r<a;r++)if(u[r]!=d[r]){h=u[r]<d[r];break}o=0}for(h&&(e=u,u=d,d=e,t.s=-t.s),a=u.length,r=d.length-a;r>0;--r)u[a++]=0;for(r=d.length;r>o;){if(u[--r]<d[r]){for(i=r;i&&0===u[--i];)u[i]=Wx-1;--u[i],u[r]+=Wx}u[r]-=d[r]}for(;0===u[--a];)u.pop();for(;0===u[0];u.shift())--n;return u[0]?(t.d=u,t.e=nw(u,n),Rx?tw(t,s,l):t):new p(3===l?-0:0)},Xx.modulo=Xx.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]?tw(new r(n),r.precision,r.rounding):(Rx=!1,9==r.modulo?(e=Qx(n,t.abs(),0,3,1)).s*=t.s:e=Qx(n,t,0,r.modulo,1),e=e.times(t),Rx=!0,n.minus(e))},Xx.naturalExponential=Xx.exp=function(){return cw(this)},Xx.naturalLogarithm=Xx.ln=function(){return hw(this)},Xx.negated=Xx.neg=function(){var t=new this.constructor(this);return t.s=-t.s,tw(t)},Xx.plus=Xx.add=function(t){var e,n,r,i,o,a,s,l,u,c,h=this,d=h.constructor;if(t=new d(t),!h.d||!t.d)return h.s&&t.s?h.d||(t=new d(t.d||h.s===t.s?h:NaN)):t=new d(NaN),t;if(h.s!=t.s)return t.s=-t.s,h.minus(t);if(u=h.d,c=t.d,s=d.precision,l=d.rounding,!u[0]||!c[0])return c[0]||(t=new d(h)),Rx?tw(t,s,l):t;if(o=Bx(h.e/7),r=Bx(t.e/7),u=u.slice(),i=o-r){for(i<0?(n=u,i=-i,a=c.length):(n=c,r=o,a=u.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=u.length)-(i=c.length)<0&&(i=a,n=c,c=u,u=n),e=0;i;)e=(u[--i]=u[i]+c[i]+e)/Wx|0,u[i]%=Wx;for(e&&(u.unshift(e),++r),a=u.length;0==u[--a];)u.pop();return t.d=u,t.e=nw(u,r),Rx?tw(t,s,l):t},Xx.precision=Xx.sd=function(t){var e,n=this;if(void 0!==t&&t!==!!t&&1!==t&&0!==t)throw Error(Nx+t);return n.d?(e=ow(n.d),t&&n.e+1>e&&(e=n.e+1)):e=NaN,e},Xx.round=function(){var t=this,e=t.constructor;return tw(new e(t),t.e+1,e.rounding)},Xx.sine=Xx.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:gw(t,2,e,e);n=(n=1.4*Math.sqrt(r))>16?16:0|n,e=e.times(1/vw(5,n)),e=gw(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,mw(r,n)),r.precision=t,r.rounding=e,tw(Ox>2?n.neg():n,t,e,!0)):new r(NaN)},Xx.squareRoot=Xx.sqrt=function(){var t,e,n,r,i,o,a=this,s=a.d,l=a.e,u=a.s,c=a.constructor;if(1!==u||!s||!s[0])return new c(!u||u<0&&(!s||s[0])?NaN:s?a:1/0);for(Rx=!1,0==(u=Math.sqrt(+a))||u==1/0?(((e=qx(s)).length+l)%2==0&&(e+="0"),u=Math.sqrt(e),l=Bx((l+1)/2)-(l<0||l%2),r=new c(e=u==1/0?"5e"+l:(e=u.toExponential()).slice(0,e.indexOf("e")+1)+l)):r=new c(u.toString()),n=(l=c.precision)+3;;)if(r=(o=r).plus(Qx(a,o,n+2,1)).times(.5),qx(o.d).slice(0,n)===(e=qx(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))||(tw(r,l+1,1),t=!r.times(r).eq(a));break}if(!i&&(tw(o,l+1,0),o.times(o).eq(a))){r=o;break}n+=4,i=1}return Rx=!0,tw(r,l,c.rounding,t)},Xx.tangent=Xx.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=Qx(n,new r(1).minus(n.times(n)).sqrt(),t+10,0),r.precision=t,r.rounding=e,tw(2==Ox||4==Ox?n.neg():n,t,e,!0)):new r(NaN)},Xx.times=Xx.mul=function(t){var e,n,r,i,o,a,s,l,u,c=this,h=c.constructor,d=c.d,f=(t=new h(t)).d;if(t.s*=c.s,!(d&&d[0]&&f&&f[0]))return new h(!t.s||d&&!d[0]&&!f||f&&!f[0]&&!d?NaN:d&&f?0*t.s:t.s/0);for(n=Bx(c.e/7)+Bx(t.e/7),(l=d.length)<(u=f.length)&&(o=d,d=f,f=o,a=l,l=u,u=a),o=[],r=a=l+u;r--;)o.push(0);for(r=u;--r>=0;){for(e=0,i=l+r;i>r;)s=o[i]+f[r]*d[i-r-1]+e,o[i--]=s%Wx|0,e=s/Wx|0;o[i]=(o[i]+e)%Wx|0}for(;!o[--a];)o.pop();return e?++n:o.shift(),t.d=o,t.e=nw(o,n),Rx?tw(t,h.precision,h.rounding):t},Xx.toBinary=function(t,e){return yw(this,2,t,e)},Xx.toDecimalPlaces=Xx.toDP=function(t,e){var n=this,r=n.constructor;return n=new r(n),void 0===t?n:(Zx(t,0,1e9),void 0===e?e=r.rounding:Zx(e,0,8),tw(n,t+n.e+1,e))},Xx.toExponential=function(t,e){var n,r=this,i=r.constructor;return void 0===t?n=ew(r,!0):(Zx(t,0,1e9),void 0===e?e=i.rounding:Zx(e,0,8),n=ew(r=tw(new i(r),t+1,e),!0,t+1)),r.isNeg()&&!r.isZero()?"-"+n:n},Xx.toFixed=function(t,e){var n,r,i=this,o=i.constructor;return void 0===t?n=ew(i):(Zx(t,0,1e9),void 0===e?e=o.rounding:Zx(e,0,8),n=ew(r=tw(new o(i),t+i.e+1,e),!1,t+r.e+1)),i.isNeg()&&!i.isZero()?"-"+n:n},Xx.toFraction=function(t){var e,n,r,i,o,a,s,l,u,c,h,d,f=this,p=f.d,g=f.constructor;if(!p)return new g(f);if(u=n=new g(1),r=l=new g(0),a=(o=(e=new g(r)).e=ow(p)-f.e-1)%7,e.d[0]=zx(10,a<0?7+a:a),null==t)t=o>0?e:u;else{if(!(s=new g(t)).isInt()||s.lt(u))throw Error(Nx+s);t=s.gt(e)?o>0?e:u:s}for(Rx=!1,s=new g(qx(p)),c=g.precision,g.precision=o=7*p.length*2;h=Qx(s,e,0,1,1),1!=(i=n.plus(h.times(r))).cmp(t);)n=r,r=i,i=u,u=l.plus(h.times(i)),l=i,i=e,e=s.minus(h.times(i)),s=i;return i=Qx(t.minus(n),r,0,1,1),l=l.plus(i.times(u)),n=n.plus(i.times(r)),l.s=u.s=f.s,d=Qx(u,r,o,1).minus(f).abs().cmp(Qx(l,n,o,1).minus(f).abs())<1?[u,r]:[l,n],g.precision=c,Rx=!0,d},Xx.toHexadecimal=Xx.toHex=function(t,e){return yw(this,16,t,e)},Xx.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:Zx(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]?(Rx=!1,n=Qx(n,t,0,e,1).times(t),Rx=!0,tw(n)):(t.s=n.s,n=t),n},Xx.toNumber=function(){return+this},Xx.toOctal=function(t,e){return yw(this,8,t,e)},Xx.toPower=Xx.pow=function(t){var e,n,r,i,o,a,s=this,l=s.constructor,u=+(t=new l(t));if(!(s.d&&t.d&&s.d[0]&&t.d[0]))return new l(zx(+s,u));if((s=new l(s)).eq(1))return s;if(r=l.precision,o=l.rounding,t.eq(1))return tw(s,r,o);if((e=Bx(t.e/7))>=t.d.length-1&&(n=u<0?-u:u)<=9007199254740991)return i=sw(l,s,n,r),t.s<0?new l(1).div(i):tw(i,r,o);if((a=s.s)<0){if(e<t.d.length-1)return new l(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=zx(+s,u))&&isFinite(n)?new l(n+"").e:Bx(u*(Math.log("0."+qx(s.d))/Math.LN10+s.e+1)))>l.maxE+1||e<l.minE-1?new l(e>0?a/0:0):(Rx=!1,l.rounding=s.s=1,n=Math.min(12,(e+"").length),(i=cw(t.times(hw(s,r+n)),r)).d&&Kx((i=tw(i,r+5,1)).d,r,o)&&(e=r+10,+qx((i=tw(cw(t.times(hw(s,e+n)),e),e+5,1)).d).slice(r+1,r+15)+1==1e14&&(i=tw(i,r+1,0))),i.s=a,Rx=!0,l.rounding=o,tw(i,r,o))},Xx.toPrecision=function(t,e){var n,r=this,i=r.constructor;return void 0===t?n=ew(r,r.e<=i.toExpNeg||r.e>=i.toExpPos):(Zx(t,1,1e9),void 0===e?e=i.rounding:Zx(e,0,8),n=ew(r=tw(new i(r),t,e),t<=r.e||r.e<=i.toExpNeg,t)),r.isNeg()&&!r.isZero()?"-"+n:n},Xx.toSignificantDigits=Xx.toSD=function(t,e){var n=this.constructor;return void 0===t?(t=n.precision,e=n.rounding):(Zx(t,1,1e9),void 0===e?e=n.rounding:Zx(e,0,8)),tw(new n(this),t,e)},Xx.toString=function(){var t=this,e=t.constructor,n=ew(t,t.e<=e.toExpNeg||t.e>=e.toExpPos);return t.isNeg()&&!t.isZero()?"-"+n:n},Xx.truncated=Xx.trunc=function(){return tw(new this.constructor(this),this.e+1,1)},Xx.valueOf=Xx.toJSON=function(){var t=this,e=t.constructor,n=ew(t,t.e<=e.toExpNeg||t.e>=e.toExpPos);return t.isNeg()?"-"+n:n};var Qx=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,l){var u,c,h,d,f,p,g,v,m,y,b,_,x,w,O,S,C,E,T,M,A=r.constructor,I=r.s==i.s?1:-1,j=r.d,k=i.d;if(!(j&&j[0]&&k&&k[0]))return new A(r.s&&i.s&&(j?!k||j[0]!=k[0]:k)?j&&0==j[0]||!k?0*I:I/0:NaN);for(l?(f=1,c=r.e-i.e):(l=Wx,f=7,c=Bx(r.e/f)-Bx(i.e/f)),T=k.length,C=j.length,y=(m=new A(I)).d=[],h=0;k[h]==(j[h]||0);h++);if(k[h]>(j[h]||0)&&c--,null==o?(w=o=A.precision,a=A.rounding):w=s?o+(r.e-i.e)+1:o,w<0)y.push(1),p=!0;else{if(w=w/f+2|0,h=0,1==T){for(d=0,k=k[0],w++;(h<C||d)&&w--;h++)O=d*l+(j[h]||0),y[h]=O/k|0,d=O%k|0;p=d||h<C}else{for((d=l/(k[0]+1)|0)>1&&(k=t(k,d,l),j=t(j,d,l),T=k.length,C=j.length),S=T,_=(b=j.slice(0,T)).length;_<T;)b[_++]=0;(M=k.slice()).unshift(0),E=k[0],k[1]>=l/2&&++E;do{d=0,(u=e(k,b,T,_))<0?(x=b[0],T!=_&&(x=x*l+(b[1]||0)),(d=x/E|0)>1?(d>=l&&(d=l-1),1==(u=e(g=t(k,d,l),b,v=g.length,_=b.length))&&(d--,n(g,T<v?M:k,v,l))):(0==d&&(u=d=1),g=k.slice()),(v=g.length)<_&&g.unshift(0),n(b,g,_,l),-1==u&&(u=e(k,b,T,_=b.length))<1&&(d++,n(b,T<_?M:k,_,l)),_=b.length):0===u&&(d++,b=[0]),y[h++]=d,u&&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==f)m.e=c,wx=p;else{for(h=1,d=y[0];d>=10;d/=10)h++;m.e=h+c*f-1,tw(m,s?o+m.e+1:o,a,p)}return m}}();function tw(t,e,n,r){var i,o,a,s,l,u,c,h,d,f=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,l=(c=h[d=0])/zx(10,i-a-1)%10|0;else if((d=Math.ceil((o+1)/7))>=(s=h.length)){if(!r)break t;for(;s++<=d;)h.push(0);c=l=0,i=1,a=(o%=7)-7+1}else{for(c=s=h[d],i=1;s>=10;s/=10)i++;l=(a=(o%=7)-7+i)<0?0:c/zx(10,i-a-1)%10|0}if(r=r||e<0||void 0!==h[d+1]||(a<0?c:c%zx(10,i-a-1)),u=n<4?(l||r)&&(0==n||n==(t.s<0?3:2)):l>5||5==l&&(4==n||r||6==n&&(o>0?a>0?c/zx(10,i-a):0:h[d-1])%10&1||n==(t.s<0?8:7)),e<1||!h[0])return h.length=0,u?(e-=t.e+1,h[0]=zx(10,(7-e%7)%7),t.e=-e||0):h[0]=t.e=0,t;if(0==o?(h.length=d,s=1,d--):(h.length=d+1,s=zx(10,7-o),h[d]=a>0?(c/zx(10,i-a)%zx(10,a)|0)*s:0),u)for(;;){if(0==d){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]==Wx&&(h[0]=1));break}if(h[d]+=s,h[d]!=Wx)break;h[d--]=0,s=1}for(o=h.length;0===h[--o];)h.pop()}return Rx&&(t.e>f.maxE?(t.d=null,t.e=NaN):t.e<f.minE&&(t.e=0,t.d=[0])),t}function ew(t,e,n){if(!t.isFinite())return dw(t);var r,i=t.e,o=qx(t.d),a=o.length;return e?(n&&(r=n-a)>0?o=o.charAt(0)+"."+o.slice(1)+aw(r):a>1&&(o=o.charAt(0)+"."+o.slice(1)),o=o+(t.e<0?"e":"e+")+t.e):i<0?(o="0."+aw(-i-1)+o,n&&(r=n-a)>0&&(o+=aw(r))):i>=a?(o+=aw(i+1-a),n&&(r=n-i-1)>0&&(o=o+"."+aw(r))):((r=i+1)<a&&(o=o.slice(0,r)+"."+o.slice(r)),n&&(r=n-a)>0&&(i+1===a&&(o+="."),o+=aw(r))),o}function nw(t,e){var n=t[0];for(e*=7;n>=10;n/=10)e++;return e}function rw(t,e,n){if(e>Yx)throw Rx=!0,n&&(t.precision=n),Error("[DecimalError] Precision limit exceeded");return tw(new t(Px),e,1,!0)}function iw(t,e,n){if(e>$x)throw Error("[DecimalError] Precision limit exceeded");return tw(new t(Lx),e,n,!0)}function ow(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 aw(t){for(var e="";t--;)e+="0";return e}function sw(t,e,n,r){var i,o=new t(1),a=Math.ceil(r/7+4);for(Rx=!1;;){if(n%2&&bw((o=o.times(e)).d,a)&&(i=!0),0===(n=Bx(n/2))){n=o.d.length-1,i&&0===o.d[n]&&++o.d[n];break}bw((e=e.times(e)).d,a)}return Rx=!0,o}function lw(t){return 1&t.d[t.d.length-1]}function uw(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 cw(t,e){var n,r,i,o,a,s,l,u=0,c=0,h=0,d=t.constructor,f=d.rounding,p=d.precision;if(!t.d||!t.d[0]||t.e>17)return new d(t.d?t.d[0]?t.s<0?0:1/0:1:t.s?t.s<0?0:t:NaN);for(null==e?(Rx=!1,l=p):l=e,s=new d(.03125);t.e>-2;)t=t.times(s),h+=5;for(l+=r=Math.log(zx(2,h))/Math.LN10*2+5|0,n=o=a=new d(1),d.precision=l;;){if(o=tw(o.times(t),l,1),n=n.times(++c),qx((s=a.plus(Qx(o,n,l,1))).d).slice(0,l)===qx(a.d).slice(0,l)){for(i=h;i--;)a=tw(a.times(a),l,1);if(null!=e)return d.precision=p,a;if(!(u<3&&Kx(a.d,l-r,f,u)))return tw(a,d.precision=p,f,Rx=!0);d.precision=l+=10,n=o=s=new d(1),c=0,u++}a=s}}function hw(t,e){var n,r,i,o,a,s,l,u,c,h,d,f=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?(Rx=!1,c=y):c=e,v.precision=c+=10,r=(n=qx(g)).charAt(0),!(Math.abs(o=p.e)<15e14))return u=rw(v,c+2,y).times(o+""),p=hw(new v(r+"."+n.slice(1)),c-10).plus(u),v.precision=y,null==e?tw(p,y,m,Rx=!0):p;for(;r<7&&1!=r||1==r&&n.charAt(1)>3;)r=(n=qx((p=p.times(t)).d)).charAt(0),f++;for(o=p.e,r>1?(p=new v("0."+n),o++):p=new v(r+"."+n.slice(1)),h=p,l=a=p=Qx(p.minus(1),p.plus(1),c,1),d=tw(p.times(p),c,1),i=3;;){if(a=tw(a.times(d),c,1),qx((u=l.plus(Qx(a,new v(i),c,1))).d).slice(0,c)===qx(l.d).slice(0,c)){if(l=l.times(2),0!==o&&(l=l.plus(rw(v,c+2,y).times(o+""))),l=Qx(l,new v(f),c,1),null!=e)return v.precision=y,l;if(!Kx(l.d,c-10,m,s))return tw(l,v.precision=y,m,Rx=!0);v.precision=c+=10,u=a=p=Qx(h.minus(1),h.plus(1),c,1),d=tw(p.times(p),c,1),i=s=1}l=u,i+=2}}function dw(t){return String(t.s*t.s/0)}function fw(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),Rx&&(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 pw(t,e){var n,r,i,o,a,s,l,u,c;if(e.indexOf("_")>-1){if(e=e.replace(/(\d)_(?=\d)/g,"$1"),Hx.test(e))return fw(t,e)}else if("Infinity"===e||"NaN"===e)return+e||(t.s=NaN),t.e=NaN,t.d=null,t;if(Ux.test(e))n=16,e=e.toLowerCase();else if(Vx.test(e))n=2;else{if(!Gx.test(e))throw Error(Nx+e);n=8}for((o=e.search(/p/i))>0?(l=+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=sw(r,new r(n),o,2*o)),o=c=(u=Jx(e,n,Wx)).length-1;0===u[o];--o)u.pop();return o<0?new r(0*t.s):(t.e=nw(u,c),t.d=u,Rx=!1,a&&(t=Qx(t,i,4*s)),l&&(t=t.times(Math.abs(l)<54?zx(2,l):sO.pow(2,l))),Rx=!0,t)}function gw(t,e,n,r,i){var o,a,s,l,u=t.precision,c=Math.ceil(u/7);for(Rx=!1,l=n.times(n),s=new t(r);;){if(a=Qx(s.times(l),new t(e++*e++),u,1),s=i?r.plus(a):r.minus(a),r=Qx(a.times(l),new t(e++*e++),u,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 Rx=!0,a.d.length=c+1,a}function vw(t,e){for(var n=t;--e;)n*=t;return n}function mw(t,e){var n,r=e.s<0,i=iw(t,t.precision,1),o=i.times(.5);if((e=e.abs()).lte(o))return Ox=r?4:1,e;if((n=e.divToInt(i)).isZero())Ox=r?3:2;else{if((e=e.minus(n.times(i))).lte(o))return Ox=lw(n)?r?2:3:r?4:1,e;Ox=lw(n)?r?1:4:r?3:2}return e.minus(i).abs()}function yw(t,e,n,r){var i,o,a,s,l,u,c,h,d,f=t.constructor,p=void 0!==n;if(p?(Zx(n,1,1e9),void 0===r?r=f.rounding:Zx(r,0,8)):(n=f.precision,r=f.rounding),t.isFinite()){for(p?(i=2,16==e?n=4*n-3:8==e&&(n=3*n-2)):i=e,(a=(c=ew(t)).indexOf("."))>=0&&(c=c.replace(".",""),(d=new f(1)).e=c.length-a,d.d=Jx(ew(d),10,i),d.e=d.d.length),o=l=(h=Jx(c,10,i)).length;0==h[--l];)h.pop();if(h[0]){if(a<0?o--:((t=new f(t)).d=h,t.e=o,h=(t=Qx(t,d,n,r,0,i)).d,o=t.e,u=wx),a=h[n],s=i/2,u=u||void 0!==h[n+1],u=r<4?(void 0!==a||u)&&(0===r||r===(t.s<0?3:2)):a>s||a===s&&(4===r||u||6===r&&1&h[n-1]||r===(t.s<0?8:7)),h.length=n,u)for(;++h[--n]>i-1;)h[n]=0,n||(++o,h.unshift(1));for(l=h.length;!h[l-1];--l);for(a=0,c="";a<l;a++)c+=kx.charAt(h[a]);if(p){if(l>1)if(16==e||8==e){for(a=16==e?4:3,--l;l%a;l++)c+="0";for(l=(h=Jx(c,i,e)).length;!h[l-1];--l);for(a=1,c="1.";a<l;a++)c+=kx.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>l)for(o-=l;o--;)c+="0";else o<l&&(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=dw(t);return t.s<0?"-"+c:c}function bw(t,e){if(t.length>e)return t.length=e,!0}function _w(t){return new this(t).abs()}function xw(t){return new this(t).acos()}function ww(t){return new this(t).acosh()}function Ow(t,e){return new this(t).plus(e)}function Sw(t){return new this(t).asin()}function Cw(t){return new this(t).asinh()}function Ew(t){return new this(t).atan()}function Tw(t){return new this(t).atanh()}function Mw(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?iw(this,r,i):new this(0)).s=t.s:!t.d||e.isZero()?(n=iw(this,o,1).times(.5)).s=t.s:e.s<0?(this.precision=o,this.rounding=1,n=this.atan(Qx(t,e,o,1)),e=iw(this,o,1),this.precision=r,this.rounding=i,n=t.s<0?n.minus(e):n.plus(e)):n=this.atan(Qx(t,e,o,1)):(n=iw(this,o,1).times(e.s>0?.25:.75)).s=t.s:n=new this(NaN),n}function Aw(t){return new this(t).cbrt()}function Iw(t){return tw(t=new this(t),t.e+1,2)}function jw(t,e,n){return new this(t).clamp(e,n)}function kw(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",-jx,0,"toExpPos",0,jx,"maxE",0,jx,"minE",-jx,0,"modulo",0,9];for(e=0;e<o.length;e+=3)if(n=o[e],i&&(this[n]=Dx[n]),void 0!==(r=t[n])){if(!(Bx(r)===r&&r>=o[e+1]&&r<=o[e+2]))throw Error(Nx+n+": "+r);this[n]=r}if(n="crypto",i&&(this[n]=Dx[n]),void 0!==(r=t[n])){if(!0!==r&&!1!==r&&0!==r&&1!==r)throw Error(Nx+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 Pw(t){return new this(t).cos()}function Lw(t){return new this(t).cosh()}function Dw(t,e){return new this(t).div(e)}function Rw(t){return new this(t).exp()}function Nw(t){return tw(t=new this(t),t.e+1,3)}function Fw(){var t,e,n=new this(0);for(Rx=!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 Rx=!0,new this(1/0);n=e}return Rx=!0,n.sqrt()}function Bw(t){return t instanceof sO||t&&t.toStringTag===Fx||!1}function zw(t){return new this(t).ln()}function Vw(t,e){return new this(t).log(e)}function Uw(t){return new this(t).log(2)}function Gw(t){return new this(t).log(10)}function Hw(){return uw(this,arguments,"lt")}function Ww(){return uw(this,arguments,"gt")}function Yw(t,e){return new this(t).mod(e)}function $w(t,e){return new this(t).mul(e)}function Xw(t,e){return new this(t).pow(e)}function qw(t){var e,n,r,i,o=0,a=new this(1),s=[];if(void 0===t?t=this.precision:Zx(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=zx(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 Zw(t){return tw(t=new this(t),t.e+1,this.rounding)}function Kw(t){return(t=new this(t)).d?t.d[0]?t.s:0*t.s:t.s||NaN}function Jw(t){return new this(t).sin()}function Qw(t){return new this(t).sinh()}function tO(t){return new this(t).sqrt()}function eO(t,e){return new this(t).sub(e)}function nO(){var t=0,e=arguments,n=new this(e[t]);for(Rx=!1;n.s&&++t<e.length;)n=n.plus(e[t]);return Rx=!0,tw(n,this.precision,this.rounding)}function rO(t){return new this(t).tan()}function iO(t){return new this(t).tanh()}function oO(t){return tw(t=new this(t),t.e+1,1)}Xx[Symbol.for("nodejs.util.inspect.custom")]=Xx.toString,Xx[Symbol.toStringTag]="Decimal";var aO,sO=Xx.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,Bw(t))return i.s=t.s,void(Rx?!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(Rx?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)):fw(i,t.toString())}if("string"!==r)throw Error(Nx+t);return 45===(n=t.charCodeAt(0))?(t=t.slice(1),i.s=-1):(43===n&&(t=t.slice(1)),i.s=1),Hx.test(t)?fw(i,t):pw(i,t)}if(o.prototype=Xx,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=kw,o.clone=t,o.isDecimal=Bw,o.abs=_w,o.acos=xw,o.acosh=ww,o.add=Ow,o.asin=Sw,o.asinh=Cw,o.atan=Ew,o.atanh=Tw,o.atan2=Mw,o.cbrt=Aw,o.ceil=Iw,o.clamp=jw,o.cos=Pw,o.cosh=Lw,o.div=Dw,o.exp=Rw,o.floor=Nw,o.hypot=Fw,o.ln=zw,o.log=Vw,o.log10=Gw,o.log2=Uw,o.max=Hw,o.min=Ww,o.mod=Yw,o.mul=$w,o.pow=Xw,o.random=qw,o.round=Zw,o.sign=Kw,o.sin=Jw,o.sinh=Qw,o.sqrt=tO,o.sub=eO,o.sum=nO,o.tan=rO,o.tanh=iO,o.trunc=oO,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}(Dx);Px=new sO(Px),Lx=new sO(Lx);var lO=function(t){return"number"==typeof t?Number.isNaN(t):"string"!=typeof t||Number.isNaN(Number.parseFloat(t))},uO=function(t,e,n){return void 0===n&&(n=!1),(null==t?void 0:t.length)?t.reduce((function(t,r){var i=el(r,e),o=lO(i);if(n&&o)return t;var a=o?0:i;return t.push(new sO(a)),t}),[]):[]},cO=function(t,e){var n=uO(t,e);return n.length?sO.sum.apply(sO,Ny([],Ry(n),!1)).toNumber():0},hO=function(t,e,n){var r=uO(e,n,!0);if(null==r?void 0:r.length)return sO[t].apply(sO,Ny([],Ry(r),!1)).toNumber()},dO=((aO={})[Ab.SUM]=cO,aO[Ab.MIN]=function(t,e){return hO("min",t,e)},aO[Ab.MAX]=function(t,e){return hO("max",t,e)},aO[Ab.AVG]=function(t,e){var n=uO(t,e);return(null==n?void 0:n.length)?sO.sum.apply(sO,Ny([],Ry(n),!1)).dividedBy(n.length).toNumber():0},aO),fO=function(t){var e=t.spreadsheet,n=t.position,r=t.tooltipContainer,i=t.autoAdjustBoundary,o=e.getCanvasElement(),a=n.x+Jy.x,s=n.y+Jy.y;if(!i||!o)return{x:a,y:s};var l="body"===i,u=e.facet.panelBBox,c=u.maxX,h=u.maxY,d=e.options,f=d.width,p=d.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=l?w:Math.min(f,c)+m,C=l?O:Math.min(p,h)+v;return a+b>=S&&(a=S-b),s+_>=C&&(s=C-_),{x:a,y:s}},pO=function(t){return Py({operator:{onClick:ea,menus:[]},enterable:!0,enableFormat:!0},t)},gO=function(t){return Py(Py({},null==t?void 0:t.colQuery),null==t?void 0:t.rowQuery)},vO=function(t,e){if(void 0===e&&(e={className:""}),t){var n=e.style,r=e.className;n&&Object.keys(n).forEach((function(e){t.style[e]=n[e]})),r&&t.classList.add(r)}},mO=function(t){var e=sf(t)&&Number.isNaN(t),n=""===t;return cf(t)||e||n?"-":t},yO=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 mO(r(t,e))}},bO=function(t,e){var n,r=e.data,i=e.field,o=e.valueField,a=e.useCompleteDataForFormatter,s=void 0===a||a,l=null===(n=null==t?void 0:t.dataSet)||void 0===n?void 0:n.getFieldName(i),u=yO(t,i),c=yo(r[i])?JSON.stringify(r[i]):r[i];return{name:l,value:u(o||c,s?r:void 0)}},_O=function(t,e,n){return sd(qh(gc([],e),(function(t){return t!==em&&n[t]})),(function(e){return bO(t,{data:n,field:e,useCompleteDataForFormatter:!1})}))},xO=function(t,e,n){var r,i,o,a,s=(n||{}).isTotals,l=[],u=[];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;l=_O(t,c,e),u=_O(t,h,e)}return nf(l)&&nf(u)&&s&&(l=[{value:Qv("总计")}]),{cols:l,rows:u}},wO=function(t,e,n){if(e){var r=n.isTotals,i=e[em],o=e[i],a=[];if(r)a.push(bO(t,{data:e,field:i,valueField:el(e,tm)}));else if(function(t){return yo(t)&&"values"in t}(o)&&t.getTooltipDataItemMappingCallback()){var s=K_(e,t.getTooltipDataItemMappingCallback());Mh(s,(function(e,n){a.push(bO(t,{data:s,field:n}))}))}else a.push(bO(t,{data:e,field:i}));return a}},OO=function(t,e,n){var r;if(n)return Qv("总计");var i=null===(r=null==t?void 0:t.dataSet)||void 0===r?void 0:r.getFieldName(e);return i&&"undefined"!==i?i:""},SO=function(t,e,n){void 0===n&&(n=!0);var r=[];return Mh(e,(function(e,i){Mh(t,(function(t){n||-1===t.colIndex?n&&-1!==t.rowIndex&&r.push([t.rowIndex,i]):r.push([i,t.colIndex])}))})),r},CO=function(t,e){var n,r=e.rowLeafNodes,i=e.colLeafNodes,o=t.interaction.getState(),a=o.nodes,s=void 0===a?[]:a,l=o.cells,u=void 0===l?[]:l,c=null===(n=null==u?void 0:u[0])||void 0===n?void 0:n.type;return c===sy.COL_CELL?SO(s,r,!1):c===sy.ROW_CELL?SO(s,i):[]},EO=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)===sy.COL_CELL,a=(null==e?void 0:e.cellType)===sy.ROW_CELL;if(!o&&!a)return!1;var s=i.colNodes.find((function(e){return e.colIndex===t.colIndex})),l=i.rowNodes.find((function(e){return e.rowIndex===t.rowIndex})),u=o?null==l?void 0:l.isTotals:null==s?void 0:s.isTotals;return!r&&(null==t?void 0:t.isTotals)||r&&u};return n?pc(sd(CO(t,i),(function(t){var e=Ry(t,2),n=e[0],r=e[1],a=i.getCellMeta(n,r);if(!o(a))return(null==a?void 0:a.data)||gO(a)}))):t.interaction.getActiveCells().filter((function(t){var e=null==t?void 0:t.getMeta();return!o(e)})).map((function(t){var e=null==t?void 0:t.getMeta();return(null==e?void 0:e.data)||gO(e)}))},TO=function(t){var e=t.spreadsheet,n=t.getShowValue,r=t.targetCell,i=t.options,o=void 0===i?{}:i,a=[],s={},l=e.isTableMode();return l&&(null==o?void 0:o.showSingleTips)?[{selectedData:e.dataSet.getMultiData({}),name:"",value:""}]:(Mh(EO(e,r,o.showSingleTips),(function(t){var e;s[null==t?void 0:t[em]]?null===(e=s[null==t?void 0:t[em]])||void 0===e||e.push(t):s[null==t?void 0:t[em]]=[t]})),Sf(s,(function(t,r){var i,u=OO(e,r,null==o?void 0:o.isTotals),c=null==n?void 0:n(t,tm);if(l)c="";else if(Yh(t,(function(t){return lO(el(t,tm))}))){var h=e.options.placeholder;c=u_(s,h)}else{var d=yO(e,r),f=cO(t,tm);c=null!==(i=null==d?void 0:d(f,t))&&void 0!==i?i:parseFloat(f.toPrecision(Km))}a.push({selectedData:t,name:u,value:c})})),a)},MO=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,l=null,u=null,c=null,h=r[0]||{};if(null==o?void 0:o.hideSummary)if(o.showSingleTips){var d=function(t){var n,r;return null===(r=Qh(null===(n=e.dataCfg)||void 0===n?void 0:n.meta,(function(e){return(null==e?void 0:e.field)===t})))||void 0===r?void 0:r.name},f=yO(e,h.valueField)(h.value),p=o.enableFormat?d(h.value)||f:d(h.valueField);h.name=p||""}else u=xO(e,h,o),c=wO(e,h,o);else l=TO({spreadsheet:e,options:o,targetCell:s,getShowValue:a});var g=h||{};return{summaries:l,interpretation:g.interpretation,infos:g.infos,tips:g.tips,name:g.name,headInfo:u,details:c}},AO=function(t){return sd(t,(function(t){var e=t.getMeta();return Ts({},e.query||{},Mp(e,["colIndex","rowIndex"]))}))},IO=function(t){var e=[];return t.interaction.isSelectedState()?(t.interaction.getActiveCells().forEach((function(n){var r=t.dataCfg.fields.valueInCols,i=n.getMeta(),o=gO(i);if(!nf(i)&&!nf(o)){var a=Py(Py({},o),{colIndex:r?i.colIndex:null,rowIndex:r?null:i.rowIndex});e.find((function(t){return rf(a,t)}))||e.push(a)}})),e):[]},jO=function(t,e){void 0===t&&(t={});var n=function(e){return Mx(t,e)},r=t.col,i=t.row,o=t.data,a=t.corner;return e===sy.COL_CELL?n(r):e===sy.ROW_CELL?n(i):e===sy.DATA_CELL?n(o):e===sy.CORNER_CELL?n(a):Py({},t)},kO=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 jO(t.options.tooltip,r)}},PO=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 To(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:pc(Ny(Ny([],Ry(r),!1),Ry(a),!1))}},LO=function(t,e){for(var n=!1,r=e;r!==document.body;){if(t===r){n=!0;break}r=r.parentElement}return n},DO=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return"".concat(ey,"-").concat(t.join("-"))};function RO(t,e,n){var r=[];return sd(e,(function(e){var i,o=t[e];r.push("".concat(o));var a=r.join("".concat(Gm));return n[e]?(null===(i=n[e])||void 0===i?void 0:i.includes(a))||n[e].push(a):n[e]=[a],void 0===o?o:"".concat(o)}))}function NO(t){return t.map((function(t){var e=null==t?void 0:t.split(Gm);return e[(null==e?void 0:e.length)-1]||t}))}function FO(t){var e=t.rowDimensionValues,n=t.colDimensionValues,r=t.careUndefined,i=t.isFirstCreate,o=t.rowFields,a=t.colFields,s=t.rowPivotMeta,l=t.colPivotMeta,u=function(t,e,n,s){void 0===e&&(e=!0);for(var l=e?n:s,u=e?o:a,c=[],h=0;h<t.length;h++){var d=t[h];if(!l.has(d))if(i)l.set(d,{level:l.size,children:new Map});else{var f=l.get(d);if(f&&c.push(f.level),!r)break}var p=l.get(d);ff(d)&&r?c.push(d):c.push(null==p?void 0:p.level),p&&(i&&(p.childField=null==u?void 0:u[h+1]),l=null==p?void 0:p.children)}return c},c=u(e,!0,s,l),h=u(n,!1,s,l);return c.concat.apply(c,Ny([],Ry(h),!1))}function BO(t,e){return Zp(t,(function(t,n){return t.push(e[n]),t}),[])}function zO(t){var e,n,r=t.rows,i=t.columns,o=t.originData,a=void 0===o?[]:o,s=t.indexesData,l=void 0===s?[]:s,u=t.totalData,c=void 0===u?[]:u,h=t.sortedDimensionValues,d=t.rowPivotMeta,f=t.colPivotMeta,p=[];try{for(var g=Dy(Ny(Ny([],Ry(a),!1),Ry(c),!1)),v=g.next();!v.done;v=g.next()){var m=v.value,y=FO({rowDimensionValues:RO(m,r,h),colDimensionValues:RO(m,i,h),rowPivotMeta:d,colPivotMeta:f,isFirstCreate:!0,careUndefined:(null==c?void 0:c.length)>0,rowFields:r,colFields:i});p.push(y),ag(l,y,m)}}catch(t){e={error:t}}finally{try{v&&!v.done&&(n=g.return)&&n.call(g)}finally{if(e)throw e.error}}return{paths:p,indexesData:l,rowPivotMeta:d,colPivotMeta:f,sortedDimensionValues:h}}function VO(t,e){if(t&&e){var n=e.split(Gm),r=wh(n),i=t;Mh(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===Um}))}}var UO,GO=function(t){return"ASC"===Gg(t)},HO=function(t){return"DESC"===Gg(t)},WO=function(t,e,n){var r=GO(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],Number(o)&&Number(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 o&&a?o.toString().localeCompare(a.toString(),"zh")*r:o?r:-r}))},YO=function(t){var e=t.sortByValues,n=t.originValues,r=n.filter((function(t){return e.find((function(e){return Lh(t,e)}))})).map((function(t){var e=t.split(Gm);return e.length>1?[e.slice(0,e.length-1).join(Gm),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(Gm)}));return Lb(n,o)},$O=function(t){var e=t.originValues,n=t.measureValues,r=t.sortParam,i=t.dataSet,o=r.sortFunc,a=r.sortFieldId,s=o(Py({data:n},r));return(null==s?void 0:s.length)?(i.fields.rows.indexOf(a)>0||i.fields.columns.indexOf(a)>0)&&!Id(s[0],Gm)?YO({sortByValues:s,originValues:e}):s:e},XO=function(t){var e,n=t.sortParam,r=t.measureValues,i=t.originValues,o=t.dataSet,a=n.sortByMeasure,s=n.query,l=n.sortFieldId,u=n.sortMethod,c=o.fields,h=c.rows,d=c.columns,f=h.includes(l);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(Gm))})))||void 0===r?void 0:r.filter((function(t){return t}))}(l,f?h:d,WO(r,u,a===rm?s[em]:a)):e=sd(WO(r,u));return 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,rv(t)):Ny([],Ry(new Set(Ny(Ny([],Ry(t),!1),Ry(e),!1))),!1)}(e,i,GO(u))},qO=function(t){var e=t.sortParam,n=t.originValues,r=t.measureValues,i=t.dataSet,o=e.sortFunc,a=e.sortMethod,s=e.sortBy,l=n,u={originValues:n,measureValues:r,sortParam:e,dataSet:i};return o?l=$O(u):s?l=YO({sortByValues:s,originValues:n}):(GO(a)||HO(a))&&(l=XO(u)),l},ZO=function(t){var e,n,r=t.dataSet,i=t.sortParam,o=t.originValues,a=r.fields,s=i.sortByMeasure,l=i.query,u=i.sortFieldId;if(s!==rm)return r.getMultiData(l);var c=(null===(e=null==a?void 0:a.columns)||void 0===e?void 0:e.includes(u))&&1===(null===(n=Cs(l))||void 0===n?void 0:n.length)&&wd(l,em),h=r.getMultiData(l,!0,c);return h&&!nf(h)?h:sd(o,(function(t){var e=function(t,e,n){var r,i={};if(Id(t,Gm))for(var o=yg(t,Gm),a=(null===(r=null==e?void 0:e.rows)||void 0===r?void 0:r.includes(n))?e.rows:e.columns,s=0;s<=kd(a,n);s++)i[a[s]]=o[s];else i[n]=t;return i}(t,a,u);return r.getTotalValue(Py(Py({},l),e))}))},KO=function(t){var e,n=t.dataSet,r=t.sortParam,i=t.originValues;return e=t.isSortByMeasure?ZO(t):i,qO({sortParam:r,originValues:i,measureValues:e,dataSet:n})},JO=function(t,e){if(null==t?void 0:t.sortMethod){if(GO(null==t?void 0:t.sortMethod))return"groupAsc";if(HO(null==t?void 0:t.sortMethod))return"groupDesc"}if(e)return"SortDown"},QO=function(t){return t.includes(Gm)?"id":"field"},tS=function(t,e){void 0===e&&(e=[]);var n=t.getInitColumnLeafNodes();return pc(e.map((function(t){var e=QO(t);return n.find((function(n){return n[e]===t}))})))},eS=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(nf(e)&&n)r();else{var i=t.store.get("hiddenColumnsDetail",[]),o=t.options.interaction.hiddenColumnFields;if(!rf(e,o)||n){var a=rv(Ny(Ny([],Ry(e),!1),Ry(o),!1)),s=function(t,e){if(void 0===e&&(e=[]),nf(e))return{prev:null,next:null};var n=t.getInitColumnLeafNodes(),r=tS(t,e).map((function(t){return null==t?void 0:t.colIndex})),i=Math.max.apply(Math,Ny([],Ry(r),!1)),o=Math.min.apply(Math,Ny([],Ry(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),l={hideColumnNodes:tS(t,e),displaySiblingNode:s},u=Ny(Ny([],Ry(i),!1),[l],!1);t.emit(Hi.LAYOUT_COLS_HIDDEN,l,u),r(a,u)}}},nS=function(t,e,n){void 0===e&&(e=[]),void 0===n&&(n=!1),nf(e)&&n&&eS(t,e,!0),function(t,e){if(nf(e))return[];var n=Number.NEGATIVE_INFINITY;return t.reduce((function(t,r,i){if(!e.includes(r))return t;if(i===n+1){wh(t).push(r)}else{var o=[r];t.push(o)}return n=i,t}),[])}(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),e).forEach((function(e){eS(t,e,n)}))},rS=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},iS=function(t,e,n){if(!t)return!1;var r=t.iconNames,i=t.displayCondition,o=t.belongsCell;return!nf(r)&&(o===n&&(!i||i(e)))},oS=function(t,e){var n=t.label;return rf(t.field,em)?{formattedValue:e||n,value:n}:{formattedValue:n,value:n}},aS=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return ky(e,t),e.prototype.handleRestOptions=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=Ry(t,1),r=n[0];this.headerConfig=Py({},r);var i=this.meta,o=i.value,a=i.query,s=this.spreadsheet.dataCfg.sortParams,l=this.isSortCell(),u=Qh(Ny([],Ry(s),!1).reverse(),(function(t){return l&&(null==t?void 0:t.sortByMeasure)===o&&rf(el(t,"query"),a)})),c=JO(u,l);this.headerConfig.sortParam=Py(Py(Py({},this.headerConfig.sortParam),u||{query:a}),{type:c})},e.prototype.initCell=function(){this.actionIcons=[]},e.prototype.getFormattedFieldValue=function(){var t=this.meta.label,e=t,n=this.spreadsheet.dataSet.getFieldFormatter(this.meta.field),r=this.spreadsheet.isTableMode();return n&&!r&&(e=n(t)),{formattedValue:e,value:t}},e.prototype.showActionIcons=function(t){return iS(t,this.meta,this.cellType)},e.prototype.getActionIconCfg=function(){var t=this;return Qh(this.spreadsheet.options.headerActionIcons,(function(e){return t.showActionIcons(e)}))},e.prototype.showSortIcon=function(){if(this.spreadsheet.options.showDefaultHeaderActionIcon){var t=this.headerConfig.sortParam,e=this.meta.query;return e&&rf(null==t?void 0:t.query,e)&&(null==t?void 0:t.type)&&"none"!==(null==t?void 0:t.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.headerConfig.sortParam,o=this.getIconPosition(),a=new kb(Py(Py({name:el(i,"type","none")},o),{width:n.size,height:n.size,fill:r.fill}));a.on("click",(function(e){t.spreadsheet.emit(Hi.GLOBAL_ACTION_ICON_CLICK,e),t.spreadsheet.handleGroupSort(e,t.meta)})),this.add(a),this.actionIcons.push(a)}},e.prototype.hasDefaultHideActionIcon=function(){var t=this.getActionIconCfg();return null==t?void 0:t.defaultHide},e.prototype.addActionIcon=function(t){var e=this,n=t.x,r=t.y,i=t.iconName,o=t.defaultHide,a=t.action,s=this.getStyle(),l=s.icon,u=s.text,c=(null==l?void 0:l.fill)||(null==u?void 0:u.fill),h=new kb({name:i,x:n,y:r,width:null==l?void 0:l.size,height:null==l?void 0:l.size,fill:c});h.set("visible",!o),h.on("mouseover",(function(t){e.spreadsheet.emit(Hi.GLOBAL_ACTION_ICON_HOVER,t)})),h.on("click",(function(t){e.spreadsheet.emit(Hi.GLOBAL_ACTION_ICON_CLICK,t),null==a||a({iconName:i,meta:e.meta,event:t})})),this.actionIcons.push(h),this.add(h)},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.defaultHide,o=this.getIconPosition(n.length),a=this.getStyle().icon,s=a.size,l=a.margin;Mh(n,(function(e,n){var a=o.x+n*s+n*l.left,u=o.y;t.addActionIcon({iconName:e,x:a,y:u,defaultHide:i,action:r})}))}}},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===sy.COL_CELL:i&&this.cellType===sy.ROW_CELL},e.prototype.handleByStateName=function(t,e){J_(t,this)&&this.updateByState(e)},e.prototype.handleSearchResult=function(t){J_(t,this)&&(Qh(t,(function(t){return null==t?void 0:t.isTarget})).id===this.getMeta().id?this.updateByState(ay.HIGHLIGHT):this.updateByState(ay.SEARCH_RESULT))},e.prototype.handleHover=function(t){var e;J_(t,this)&&(this.updateByState(ay.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){J_(t,this)&&this.updateByState(ay.SELECTED),Id(sd(e,"id"),this.meta.id)&&this.updateByState(ay.SELECTED)},e.prototype.toggleActionIcon=function(t){if(this.getMeta().id===t){var e=[];Mh(this.actionIcons,(function(t){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(od(n))switch(null==e?void 0:e.stateName){case ay.SELECTED:this.handleSelect(n,null==e?void 0:e.nodes);break;case ay.HOVER_FOCUS:case ay.HOVER:this.handleHover(n);break;case ay.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[em,nm].includes(this.meta.field)},e}(Z_),sS=function(t){var e=t.type,n=t.id,r=t.theme,i=t.width,o=t.height,a=Ly(t,["type","id","theme","width","height"]),s=e===_y.Horizontal?r.size:null,l=e===_y.Vertical?r.size:null;return{fill:r.background,fillOpacity:r.backgroundOpacity,cursor:"".concat(e,"-resize"),width:s,height:l,appendInfo:Py(Py({},a),{isResizeArea:!0,type:e,id:n,width:i,height:o,size:r.size})}},lS=function(t,e){if(t.foregroundGroup)return t.foregroundGroup.findById(e)||t.foregroundGroup.addGroup({id:e,zIndex:cm})},uS=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,l=!(t.x-o>e.x+e.width||t.x+t.width-o<e.x),u=!(t.y-s>e.y+e.height||t.y+t.height-s<e.y);return l&&u},cS=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return ky(e,t),Object.defineProperty(e.prototype,"cellType",{get:function(){return sy.COL_CELL},enumerable:!1,configurable:!0}),e.prototype.initCell=function(){t.prototype.initCell.call(this),this.drawBackgroundShape(),this.drawInteractiveBgShape(),this.drawTextShape(),this.drawActionIcons(),this.drawBorders(),this.drawResizeArea(),this.addExpandColumnIconShapes(),this.update()},e.prototype.drawBackgroundShape=function(){var t=this.getStyle().cell,e=t.backgroundColor,n=t.backgroundColorOpacity;this.backgroundShape=Wb(this,Py(Py({},this.getCellArea()),{fill:e,fillOpacity:n}))},e.prototype.drawInteractiveBgShape=function(){this.stateShapes.set("interactiveBgShape",Wb(this,Py({},this.getCellArea()),{visible:!1}))},e.prototype.getTextStyle=function(){var t=this.meta,e=t.isLeaf,n=t.isTotals,r=this.getStyle(),i=r.text,o=r.bolderText,a=r.measureText;return this.isMeasureField()?a||i:n||!e?o:i},e.prototype.getMaxTextWidth=function(){return this.getContentArea().width-this.getActionIconsWidth()},e.prototype.getIconPosition=function(){var e=this.meta.isLeaf,n=this.getIconStyle();if(e)return t.prototype.getIconPosition.call(this,this.getActionIconsCount());var r=this.textAreaPosition,i=this.actualTextWidth+this.getActionIconsWidth()-n.margin.right;return{x:r.x-i/2+this.actualTextWidth+n.margin.left,y:r.y-n.size/2}},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(),l=this.getContentArea(),u=this.getIconStyle();if(e)return H_(l,s,this.actualTextWidth,u,this.getActionIconsCount()).text;var c={start:a-(i?o:0),width:r+(i?o:0)},h=this.getTextStyle().textAlign,d=X_(c,h,null===(t=this.getStyle().cell)||void 0===t?void 0:t.padding),f=this.getActionIconsCount(),p=this.actualTextWidth+this.getActionIconsWidth()-(f?u.margin.right:0),g=Y_(d,{start:l.x,width:l.width},p),v=q_(g.start,g.width-p,h),m=l.y+l.height/2;return this.textAreaPosition={x:v,y:m},{x:v-p/2+this.actualTextWidth/2,y:m}},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 lS(this.spreadsheet,jm)},e.prototype.getHorizontalResizeAreaName=function(){return"".concat(Bm).concat(this.meta.key)},e.prototype.drawHorizontalResizeArea=function(){if(this.shouldDrawResizeAreaByType("colCellVertical")){var t=this.headerConfig,e=t.cornerWidth,n=t.viewportWidth,r=this.meta,i=r.y,o=r.height,a=this.getResizeAreaStyle(),s=this.getColResizeArea(),l=this.getHorizontalResizeAreaName();if(!s.find((function(t){return t.attrs.name===l}))){var u=e+n;s.addShape("rect",{attrs:Py(Py({},sS({theme:a,type:_y.Vertical,id:this.getColResizeAreaKey(),effect:xy.Field,offsetX:0,offsetY:i,width:u,height:o})),{name:l,x:0,y:i+o-a.size/2,width:u})})}}},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,l=o.scrollContainsRowHeader,u=o.cornerWidth,c=o.height,h=o.width,d=this.getResizeAreaStyle(),f={x:e+r-d.size/2,y:n,width:d.size,height:i};return uS(f,{x:l?-u:0,y:0,width:l?u+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")){var t=this.meta,e=t.label,n=t.width,r=t.height,i=t.parent,o=this.getResizeAreaStyle(),a=this.getColResizeArea();if(this.shouldAddVerticalResizeArea()){var s=this.getVerticalResizeAreaOffset(),l=s.x,u=s.y;a.addShape("rect",{attrs:Py(Py({},sS({theme:o,type:_y.Horizontal,effect:xy.Cell,id:i.isTotals?"":e,offsetX:l,offsetY:u,width:n,height:r})),{x:l+n-o.size/2,y:u,height:r})})}}},e.prototype.drawResizeArea=function(){this.drawHorizontalResizeArea(),this.drawVerticalResizeArea()},e.prototype.drawHorizontalBorder=function(){var t=$_(Mb.TOP,this.meta,this.theme.colCell.cell);qb(this,t.position,t.style)},e.prototype.drawVerticalBorder=function(){var t=$_(Mb.RIGHT,this.meta,this.theme.colCell.cell);qb(this,t.position,t.style)},e.prototype.drawBorders=function(){this.drawHorizontalBorder(),this.drawVerticalBorder()},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!(nf(o)||nf(r)||!i.hiddenColumns)&&!!o.find((function(e){return rS(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,l=o.horizontalBorderColorOpacity,u=this.isLastColumn()?e+r-s:e;qb(this,{x1:u,y1:n,x2:u,y2:n+i},{stroke:a,lineWidth:s,strokeOpacity:l})},e.prototype.addExpandColumnIconShapes=function(){this.hasHiddenColumnCell()&&(this.addExpandColumnSplitLine(),this.addExpandColumnIcon())},e.prototype.addExpandColumnIcon=function(){var t=this,e=this.getExpandColumnIconConfig();Qb(this,Py(Py({},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=QO(e),el(wh(n),i)===e&&el(wh(r),i)!==e;var t,e,n,r,i},e}(aS),hS=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.textShapes=[],e}return ky(e,t),Object.defineProperty(e.prototype,"cellType",{get:function(){return sy.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.drawActionIcons(),this.drawBorderShape(),this.drawResizeArea()},e.prototype.drawCellText=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=u_(this.meta,this.spreadsheet.options.placeholder),l=o_({text:o,maxWidth:a,fontParam:i,placeholder:s});this.actualText=l;var u=l.indexOf("..."),c=l,h="";if(-1!==u&&this.spreadsheet.isHierarchyTreeType()){var d=u+(ib()?1:0);c=o.substr(0,d),h=o.slice(d),h=o_({text:h,maxWidth:a,fontParam:i})}var f=W_({x:t+this.getTreeIconWidth(),y:n,width:a,height:r},i).x,p=n+(nf(h)?r/2:r/4);this.textShapes.push(Xb(this,[this.textShapes[0]],f,p,c,i)),nf(h)||this.textShapes.push(Xb(this,[this.textShapes[1]],f,n+.75*r,h,i)),this.actualTextWidth=Tf([n_(c,i),n_(h,i)])},e.prototype.drawTreeIcon=function(){var t=this;if(this.showTreeIcon()&&this.meta.cornerType!==Ib.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=t_(this,{x:a.x,y:G_(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.drawBackgroundShape=function(){var t=this.getStyle().cell,e=t.backgroundColor,n=t.backgroundColorOpacity,r=Py(Py({},this.getCellArea()),{fill:e,fillOpacity:n});this.backgroundShape=Wb(this,r)},e.prototype.drawBorderShape=function(){var t=this;[Mb.TOP,Mb.LEFT].forEach((function(e){var n=$_(e,t.getCellArea(),t.getStyle().cell),r=n.position,i=n.style;qb(t,r,i)}))},e.prototype.isLastRowCornerCell=function(){var t=this.meta,e=t.cornerType,n=t.field,r=this.headerConfig.rows;return e===Ib.Row&&(this.spreadsheet.isHierarchyTreeType()||wh(r)===n)},e.prototype.getResizeAreaEffect=function(){return this.meta.cornerType===Ib.Series?xy.Series:this.isLastRowCornerCell()&&this.spreadsheet.isHierarchyTreeType()?xy.Tree:xy.Field},e.prototype.drawResizeArea=function(){if(this.shouldDrawResizeAreaByType("cornerCellHorizontal")){var t=this.getResizeAreaStyle(),e=lS(this.spreadsheet,Im),n=this.headerConfig,r=n.position,i=n.scrollX,o=n.scrollY,a=n.width,s=n.height,l=this.meta,u=l.x,c=l.y,h=l.width,d=l.height,f=l.field,p=l.cornerType,g={x:u+h-t.size/2,y:c,width:t.size,height:d},v={x:0,y:0,width:a,height:s};if(p!==Ib.Col&&uS(g,v,{scrollX:i,scrollY:o})){var m=r.x+u-i,y=r.y+(this.isLastRowCornerCell()?0:c);e.addShape("rect",{attrs:Py(Py({},sS({theme:t,id:f,type:_y.Horizontal,effect:this.getResizeAreaEffect(),offsetX:m,offsetY:y,width:h,height:d})),{x:m+h-t.size/2,y:y,height:this.isLastRowCornerCell()?s:d})})}}},e.prototype.showTreeIcon=function(){var t;return this.headerConfig.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,l=a.margin;return{x:(null==n?void 0:n.x)+Vc([[Cf("center"),ya(this.actualTextWidth/2)],[Cf("right"),ya(0)],[xg,ya(this.actualTextWidth)]])(o)+l.left,y:G_(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.meta.cornerType,e=this.getStyle(),n=e.text,r=e.bolderText,i=t===Ib.Col?n:r;return Py(Py({},i),{textBaseline:"middle"})},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 oS(this.meta,this.spreadsheet.dataSet.getFieldName(this.meta.label))},e.prototype.getCornerText=function(){var t;return rf(this.meta.label,em)?(null===(t=this.spreadsheet.options)||void 0===t?void 0:t.cornerText)||om:this.getFormattedFieldValue().formattedValue},e}(aS),dS=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}(),fS=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.EVENT="pan",e}return ky(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}(dS),pS="object"==typeof performance&&performance.now?performance:Date,gS=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.EVENT="press",e}return ky(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=pS.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}(dS),vS=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 ky(e,t),e.prototype.onTouchCancel=function(t){},e.prototype.onTouchEnd=function(t){var e=this.speedX,n=this.speedY;if(pS.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=pS.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=pS.now()},e}(dS),mS={Pan:fS,Press:gS,Swipe:vS,Tap:function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.EVENT="tap",e}return ky(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&&pS.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=pS.now(),this.touchStartX=e,this.touchStartY=n},e}(dS)},yS=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 ky(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,mS[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),bS=sn,_S=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=pS.now(),n.ms=n.rafMs,0===e&&0===r||n.rafInertia(t)},n.element=e,n.gm=new yS(e,{gestures:["Pan","Swipe"]}),n.gm.on("swipe",n.onSwipe),n.gm.on("pan",n.onPan),n}return ky(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=pS.now(),o=(i-e.ms)/800;if(o<1){o=bS(1-o);var a=i-e.rafMs,s=n*o*a,l=r*o*a,u=e.getWrapperEvent(t,s,l);e.emit("wheel",u),e.rafMs=i,e.rafInertia(t)}}))},e.prototype.getWrapperEvent=function(t,e,n){return Py(Py({},t),{deltaX:-e,deltaY:-n})},e}(gt),xS=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},wS=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return ky(e,t),Object.defineProperty(e.prototype,"cellType",{get:function(){return sy.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.drawTextShape(),this.drawTreeIcon(),this.drawTreeLeafNodeAlignDot(),this.drawRectBorder(),this.drawResizeAreaInLeaf(),this.drawActionIcons(),this.update()},e.prototype.drawBackgroundShape=function(){var t=this.getStyle().cell,e=t.backgroundColor,n=t.backgroundColorOpacity;this.backgroundShape=Wb(this,Py(Py({},this.getCellArea()),{fill:e,fillOpacity:n}))},e.prototype.drawInteractiveBgShape=function(){this.stateShapes.set("interactiveBgShape",Wb(this,Py({},this.getCellArea()),{visible:!1}))},e.prototype.showTreeIcon=function(){return this.spreadsheet.isHierarchyTreeType()&&!this.meta.isLeaf},e.prototype.showTreeLeafNodeAlignDot=function(){return el(this.spreadsheet,"options.style.showTreeLeafNodeAlignDot")&&this.spreadsheet.isHierarchyTreeType()},e.prototype.getParentTreeIconCfg=function(){if(this.showTreeLeafNodeAlignDot()&&this.spreadsheet.isHierarchyTreeType()&&this.meta.isLeaf)return el(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,l=o+this.getContentIndent(),u=this.getIconYPosition();this.treeIcon=t_(this,{x:l,y:u,width:s,height:s},a,n,(function(){if(!rb()){if(!n){var e=t.spreadsheet.store.get("scrollY"),o=t.spreadsheet.facet.panelBBox.viewportHeight||0,a=(u=t.meta,c=0,null==(h=u.children)||h.forEach((function(t){c+=t.height||0})),c),s=i.height-a;if(e>0&&e+o>s){var l=s-o;t.spreadsheet.store.set("scrollY",l>0?l:0)}}var u,c,h;t.spreadsheet.emit(Hi.ROW_CELL_COLLAPSE_TREE_ROWS,{id:r,isCollapsed:!n,node:t.meta})}})),rb()&&(this.gm=new yS(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,l=a.fontSize,u=n/5;this.treeLeafNodeAlignDot=$b(this,{x:i+n/2,y:o+(l-u)/2,r:u,fill:s,fillOpacity:.3})}},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;[Mb.BOTTOM,Mb.LEFT].forEach((function(e){var n=$_(e,Py(Py({},t.getCellArea()),{x:r}),t.getStyle().cell),i=n.position,o=n.style;qb(t,i,o)}))},e.prototype.drawResizeAreaInLeaf=function(){if(this.meta.isLeaf&&this.shouldDrawResizeAreaByType("rowCellVertical")){var t=this.getCellArea(),e=t.x,n=t.y,r=t.width,i=t.height,o=this.getResizeAreaStyle(),a=lS(this.spreadsheet,Em),s=this.headerConfig,l=s.position,u=s.seriesNumberWidth,c=s.width,h=s.viewportHeight,d=s.scrollX,f=s.scrollY,p={x:e,y:n+i-o.size/2,width:r,height:o.size};if(uS(p,{x:0,y:0,width:c,height:h},{scrollX:d,scrollY:f})){var g=l.x+e-d+u,v=l.y+n-f,m=this.spreadsheet.isFrozenRowHeader()?c-u-(e-d):r;a.addShape("rect",{attrs:Py(Py({},sS({id:this.meta.id,theme:o,type:_y.Vertical,effect:xy.Cell,offsetX:g,offsetY:v,width:r,height:i})),{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 Qh(el(this.meta,"parent.children"),(function(t){return!t.isLeaf}))},e.prototype.isBolderText=function(){var t=this.meta,e=t.isLeaf,n=t.isTotals,r=t.level;return!e&&0===r||n},e.prototype.getTextStyle=function(){var t=this.getStyle(),e=t.text,n=t.bolderText,r=t.measureText;return this.isMeasureField()?r||e:this.isBolderText()?n:e},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 Py(Py({},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=xS(t.y,t.height,n,r,i);return{x:H_(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}(aS),OS=function(t,e){return e>0&&t<e},SS=function(t,e,n){return e>0&&t>=n-e},CS=function(t,e,n){return n>0&&t<e+n},ES=function(t,e,n){return n>0&&t>=e+1-n},TS=function(t,e,n,r,i,o){var a=Jh(n,(function(e,r){var a=t-(cf(o)?0:o)+i.x;return a>=e&&a<n[r+1]}),0);a=Math.max(a,0);var s=Jh(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 l=r.getIndexRange(e+i.y,i.height+e+i.y);return[a,s,l.start,l.end]},MS=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)},AS=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)},IS=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",[]),l=!1,u=!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&&(l=!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&&(u=!0)}));var c=el(n,"icon.size");return{left:u?c+a:0,right:l?c+o:0}},jS=function(t,e,n){var r=el(n,"cell.padding"),i=IS(t,e.field,n);return r.left+r.right+function(t,e,n,r){var i,o,a=el(r,"size"),s=el(r,"margin"),l=0;return(l=t.options.showDefaultHeaderActionIcon?1:(null!==(o=null===(i=Qh(t.options.headerActionIcons,(function(t){return iS(t,e,n)})))||void 0===i?void 0:i.iconNames)&&void 0!==o?o:[]).length)*(a+s.left)+(l>0?s.right:0)}(t,e,sy.COL_CELL,el(n,"icon"))+i.left+i.right},kS=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return ky(e,t),e.prototype.handleRestOptions=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=Ry(t,1),r=n[0];this.headerConfig=Py({},r);var i=this.meta.field,o=this.spreadsheet.dataCfg.sortParams,a=Qh(o,(function(t){return(null==t?void 0:t.sortFieldId)===i})),s=JO(a,!0);this.headerConfig.sortParam=Py(Py(Py({},this.headerConfig.sortParam),a||{}),{type:s})},e.prototype.isFrozenCell=function(){var t=this.spreadsheet.options,e=t.frozenColCount,n=t.frozenTrailingColCount,r=this.meta.colIndex,i=this.spreadsheet.facet.layoutResult.colLeafNodes;return OS(r,e)||SS(r,n,i.length)},e.prototype.getFormattedFieldValue=function(){return oS(this.meta,this.spreadsheet.dataSet.getFieldName(this.meta.label))},e.prototype.getColResizeArea=function(){return this.isFrozenCell()?lS(this.spreadsheet,km):t.prototype.getColResizeArea.call(this)},e.prototype.isSortCell=function(){return!0},e.prototype.showSortIcon=function(){return this.spreadsheet.options.showDefaultHeaderActionIcon},e.prototype.getTextStyle=function(){return el(this.getStyle(),"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=Py({},e),r=IS(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),z_(this.getCellArea(),n)},e.prototype.getHorizontalResizeAreaName=function(){return"".concat(Bm).concat("table-col-cell")},e.prototype.drawBackgroundShape=function(){var t=this.getStyle().cell.backgroundColor;this.backgroundShape=Wb(this,Py(Py({},this.getCellArea()),{fill:t}))},e}(cS),PS=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return ky(e,t),e.prototype.getStyle=function(t){return t?this.theme[t]:el(this,"theme.cornerCell")},e.prototype.showSortIcon=function(){return!1},e.prototype.drawLeftBorder=function(){var t=$_(Mb.LEFT,this.getCellArea(),this.getStyle().cell);qb(this,t.position,t.style)},e.prototype.drawBorders=function(){t.prototype.drawBorders.call(this),0===this.meta.colIndex&&this.drawLeftBorder()},e}(kS),LS=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return ky(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}(ex),DS=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return ky(e,t),Object.defineProperty(e.prototype,"cellType",{get:function(){return sy.ROW_CELL},enumerable:!1,configurable:!0}),e.prototype.getTextStyle=function(){return this.theme.rowCell.text},e.prototype.drawBorderShape=function(){t.prototype.drawBorderShape.call(this),0===this.meta.colIndex&&this.drawLeftBorder()},e.prototype.drawResizeArea=function(){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,l=s.frozenRowCount,u=s.frozenTrailingRowCount,c=this.spreadsheet.facet.getCellRange(),h=CS(o,c.start,l),d=ES(o,c.end,u),f=h||d?Tm:Em,p=lS(this.spreadsheet,f),g=this.spreadsheet.facet.layoutResult.colsHierarchy.height,v=this.spreadsheet.facet.getScrollOffset().scrollY,m=this.spreadsheet.facet.getPaginationScrollY(),y=n+(d?0:g);d||(y-=h?m:v+m),p.addShape("rect",{attrs:Py(Py({},sS({id:String(this.meta.rowIndex),theme:a,type:_y.Vertical,effect:xy.Cell,offsetX:e,offsetY:y,width:r,height:i})),{x:e,y:y+i-a.size/2,width:r})})},e}(ex),RS=function(t){this.spreadsheet=t,this.bindEvents()},NS=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return ky(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([dy.HOVER]),setTimeout((function(){r.visible||n.removeIntercepts([dy.HOVER])}))}))},e}(RS),FS=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return ky(e,t),e.prototype.bindEvents=function(){this.bindDataCellClick()},e.prototype.bindDataCellClick=function(){var t=this;this.spreadsheet.on(Hi.DATA_CELL_CLICK,(function(e){e.stopPropagation();var n=t.spreadsheet.interaction;if(!n.hasIntercepts([dy.CLICK])){n.clearHoverTimer(),t.emitLinkFieldClickEvent(e);var r=t.spreadsheet.getCell(e.target),i=r.getMeta();i&&(n.addIntercepts([dy.HOVER]),n.isSelectedCell(r)?n.reset():(n.changeState({cells:[bx(r)],stateName:ay.SELECTED}),t.spreadsheet.emit(Hi.GLOBAL_SELECTED,[r]),t.showTooltip(e,i)))}}))},e.prototype.getTooltipOperator=function(t,e){var n=this,r=tb(),i=this.spreadsheet.getCell(t.target),o=kO(this.spreadsheet,t).operation,a=o.trend&&Py(Py({},r),{onClick:function(){n.spreadsheet.emit(Hi.DATA_CELL_TREND_ICON_CLICK,e),n.spreadsheet.hideTooltip()}});return PO(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,l=e.valueField,u=n,c=this.spreadsheet.isTableMode(),h=[(c?Py(Py({},u),{value:o||a,valueField:s||l}):u)||Py(Py({},e.rowQuery),e.colQuery)],d=this.getTooltipOperator(t,e);this.spreadsheet.showTooltipWithInfo(t,h,{isTotals:i,operator:d,enterable:!0,hideSummary:!0,showSingleTips:c})},e.prototype.emitLinkFieldClickEvent=function(t){var e=el(t.target,"attrs.appendInfo",{});if(e.isRowHeaderText){var n=e.cellData,r=n.valueField,i=n.data;this.spreadsheet.emit(Hi.GLOBAL_LINK_FIELD_JUMP,{key:r,record:i})}},e}(RS),BS=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return ky(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([dy.CLICK])||n.addIntercepts([dy.HOVER])}))},e}(RS),zS=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.isMultiSelection=!1,e.handleRowColClick=function(t){t.stopPropagation();var n=e.spreadsheet.interaction,r=e.spreadsheet.getCell(t.target);n.selectHeaderCell({cell:r,isMultiSelection:e.isMultiSelection})&&e.showTooltip(t)},e.getHideColumnField=function(t){return e.spreadsheet.isTableMode()?t.field:t.id},e}return ky(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){yx(e)&&(t.isMultiSelection=!0)}))},e.prototype.bindKeyboardUp=function(){var t=this;this.spreadsheet.on(Hi.GLOBAL_KEYBOARD_UP,(function(e){yx(e)&&(t.isMultiSelection=!1,t.spreadsheet.interaction.removeIntercepts([dy.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=kO(this.spreadsheet,t),n=e.operation;if(e.showTooltip){var r=this.spreadsheet.interaction,i=r.isSelectedState()?AO(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===sy.COL_CELL,a=1===this.spreadsheet.getColumnLeafNodes().length,s=Qy(),l=o&&!a&&i.isLeaf&&e.hiddenColumns&&Py(Py({},s),{onClick:function(){n.hideSelectedColumns()}});return PO(e,{defaultMenus:[l],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);nS(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 rS(n,t.id)}))||{}).hideColumnNodes,r=void 0===n?[]:n,i=this.spreadsheet.options.interaction.hiddenColumnFields,o=r.map(this.getHideColumnField),a=xh(i,o),s=e.filter((function(e){var n=e.displaySiblingNode;return!rS(n,t.id)}));this.spreadsheet.setOptions({interaction:{hiddenColumnFields:a}}),this.spreadsheet.store.set("hiddenColumnsDetail",s),this.spreadsheet.interaction.reset(),this.spreadsheet.render(!1)},e}(RS),VS=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.getRowData=function(t){for(var n=t,r={};n.parent;)r[n.key]=n.value,n=n.parent;var i=e.getRowIndex(t),o=e.getOriginalRowData(t,i);return Py(Py(Py({},o),r),{rowIndex:i})},e.getOriginalRowData=function(t,n){var r,i=e.spreadsheet.options,o=(null===(r=null==i?void 0:i.totals)||void 0===r?void 0:r.row)||{},a=o.showGrandTotals,s=o.showSubTotals,l=o.reverseLayout,u=o.reverseSubLayout,c=a&&l?1:0,h=s&&u?1:0,d=Math.max(0,n-c-h);return Qh(e.spreadsheet.dataCfg.data,(function(e,n){return e[t.key]===t.value&&n===d}))},e.getRowIndex=function(t){var n,r;if("tree"===e.spreadsheet.options.hierarchyType){for(var i=t;!nf(i.children);)i=od(i.children);return null!==(n=t.rowIndex)&&void 0!==n?n:i.rowIndex}var o=Math.floor(t.y/t.height);return null!==(r=t.rowIndex)&&void 0!==r?r:o},e}return ky(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([dy.CLICK])){var n=el(e.target,"attrs.appendInfo",{});if(n.isRowHeaderText){var r=n.cellData,i=r.key,o=t.getRowData(r);t.spreadsheet.emit(Hi.GLOBAL_LINK_FIELD_JUMP,{key:i,record:o})}}}))},e}(RS),US=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return ky(e,t),e.prototype.bindEvents=function(){this.bindDataCellHover(),this.bindRowCellHover(),this.bindColCellHover()},e.prototype.updateRowColCells=function(t){var e=t.rowId,n=t.colId,r=this.spreadsheet.interaction;n&&Mh(B_(n,r.getAllColHeaderCells()),(function(t){t.updateByState(ay.HOVER)}));e&&Mh(B_(e,r.getAllRowHeaderCells(),this.spreadsheet.isHierarchyTreeType()),(function(t){t.updateByState(ay.HOVER)}))},e.prototype.changeStateToHoverFocus=function(t,e,n){var r,i=this,o=this.spreadsheet.interaction,a=this.spreadsheet.options.interaction;o.clearHoverTimer();var s=a.hoverFocus,l=function(){if(!o.hasIntercepts([dy.HOVER])){o.changeState({cells:[bx(t)],stateName:ay.HOVER_FOCUS});var r=i.spreadsheet.isTableMode(),s={isTotals:n.isTotals,enterable:!0,hideSummary:!0,showSingleTips:r};a.hoverHighlight&&i.updateRowColCells(n);var l=i.getCellInfo(n,r);i.spreadsheet.showTooltipWithInfo(e,l,s)}},u=fy;if(Jd(s)||(u=null!==(r=null==s?void 0:s.duration)&&void 0!==r?r:fy),0===u)l();else{var c=window.setTimeout((function(){return l()}),u);o.setHoverTimer(c)}},e.prototype.handleHeaderHover=function(t){var e=this.spreadsheet.getCell(t.target);if(!nf(e)){var n=this.spreadsheet.interaction;n.clearHoverTimer();var r=e.getMeta();if(!n.isActiveCell(e)&&(n.changeState({cells:[bx(e)],stateName:ay.HOVER}),e.update(),e.getActualText()!==e.getFieldValue())){var i={isTotals:r.isTotals,enterable:!0,hideSummary:!0,showSingleTips:!0,enableFormat:this.spreadsheet.isPivotMode()},o=this.getCellInfo(r,!0);this.spreadsheet.showTooltipWithInfo(t,o,i)}}},e.prototype.getCellInfo=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,l=t.rowQuery,u=t.colQuery,c=n;return e?[Py(Py({},r),{value:i||a,valueField:o||s})]:[c||Py(Py({},l),u)]},e.prototype.bindDataCellHover=function(){var t=this;this.spreadsheet.on(Hi.DATA_CELL_HOVER,(function(e){var n=t.spreadsheet.getCell(e.target);if(!nf(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:[bx(n)],stateName:ay.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}(RS),GS=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===kb.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);else switch(e.spreadsheet.getCellType(t.target)){case sy.DATA_CELL:e.spreadsheet.emit(Hi.DATA_CELL_MOUSE_DOWN,t);break;case sy.ROW_CELL:e.spreadsheet.emit(Hi.ROW_CELL_MOUSE_DOWN,t);break;case sy.COL_CELL:e.spreadsheet.emit(Hi.COL_CELL_MOUSE_DOWN,t);break;case sy.CORNER_CELL:e.spreadsheet.emit(Hi.CORNER_CELL_MOUSE_DOWN,t);break;case sy.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 sy.DATA_CELL:e.spreadsheet.emit(Hi.DATA_CELL_MOUSE_MOVE,t);break;case sy.ROW_CELL:e.spreadsheet.emit(Hi.ROW_CELL_MOUSE_MOVE,t);break;case sy.COL_CELL:e.spreadsheet.emit(Hi.COL_CELL_MOUSE_MOVE,t);break;case sy.CORNER_CELL:e.spreadsheet.emit(Hi.CORNER_CELL_MOUSE_MOVE,t);break;case sy.MERGED_CELL:e.spreadsheet.emit(Hi.MERGED_CELLS_MOUSE_MOVE,t)}if(!e.spreadsheet.interaction.hasIntercepts([dy.HOVER,dy.BRUSH_SELECTION]))switch(e.spreadsheet.emit(Hi.GLOBAL_HOVER,t),r){case sy.DATA_CELL:e.spreadsheet.emit(Hi.DATA_CELL_HOVER,t);break;case sy.ROW_CELL:e.spreadsheet.emit(Hi.ROW_CELL_HOVER,t);break;case sy.COL_CELL:e.spreadsheet.emit(Hi.COL_CELL_HOVER,t);break;case sy.CORNER_CELL:e.spreadsheet.emit(Hi.CORNER_CELL_HOVER,t);break;case sy.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 sy.DATA_CELL:e.spreadsheet.emit(Hi.DATA_CELL_CLICK,t);break;case sy.ROW_CELL:if(i)break;e.spreadsheet.emit(Hi.ROW_CELL_CLICK,t);break;case sy.COL_CELL:if(i)break;e.spreadsheet.emit(Hi.COL_CELL_CLICK,t);break;case sy.CORNER_CELL:if(i)break;e.spreadsheet.emit(Hi.CORNER_CELL_CLICK,t);break;case sy.MERGED_CELL:e.spreadsheet.emit(Hi.MERGED_CELLS_CLICK,t)}}switch(r){case sy.DATA_CELL:e.spreadsheet.emit(Hi.DATA_CELL_MOUSE_UP,t);break;case sy.ROW_CELL:e.spreadsheet.emit(Hi.ROW_CELL_MOUSE_UP,t);break;case sy.COL_CELL:e.spreadsheet.emit(Hi.COL_CELL_MOUSE_UP,t);break;case sy.CORNER_CELL:e.spreadsheet.emit(Hi.CORNER_CELL_MOUSE_UP,t);break;case sy.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 sy.DATA_CELL:n.emit(Hi.DATA_CELL_DOUBLE_CLICK,t);break;case sy.ROW_CELL:n.emit(Hi.ROW_CELL_DOUBLE_CLICK,t);break;case sy.COL_CELL:n.emit(Hi.COL_CELL_DOUBLE_CLICK,t);break;case sy.CORNER_CELL:n.emit(Hi.CORNER_CELL_DOUBLE_CLICK,t);break;case sy.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 sy.DATA_CELL:e.spreadsheet.emit(Hi.DATA_CELL_CONTEXT_MENU,t);break;case sy.ROW_CELL:e.spreadsheet.emit(Hi.ROW_CELL_CONTEXT_MENU,t);break;case sy.COL_CELL:e.spreadsheet.emit(Hi.COL_CELL_CONTEXT_MENU,t);break;case sy.CORNER_CELL:e.spreadsheet.emit(Hi.CORNER_CELL_CONTEXT_MENU,t);break;case sy.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([dy.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&&E_(t.key,cy.COPY)&&(t.metaKey||t.ctrlKey)){var e=N_(this.spreadsheet);cf(e)||this.spreadsheet.emit(Hi.GLOBAL_COPIED,e)}},t.prototype.onKeyboardEsc=function(t){this.isCanvasEffect&&E_(t.key,cy.ESC)&&this.resetSheetStyle(t)},t.prototype.resetSheetStyle=function(t){if(this.isAutoResetSheetStyle&&this.spreadsheet){var e=this.spreadsheet.interaction;e.hasIntercepts([dy.BRUSH_SELECTION])?e.removeIntercepts([dy.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(!kO(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,l=o.width,u=o.height;return t.target instanceof Node&&this.spreadsheet.tooltip.visible?LO(null===(i=this.spreadsheet.tooltip)||void 0===i?void 0:i.container,t.target):t instanceof MouseEvent&&(t.clientX>=a&&t.clientX<=a+l&&t.clientY>=s&&t.clientY<=s+u)},t.prototype.isResizeArea=function(t){var e=el(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");nf(t)||t.attr(py.backgroundOpacity,this.spreadsheet.theme.resizeArea.backgroundOpacity),this.spreadsheet.store.set("activeResizeArea",t)},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;Mh(this.canvasEventHandlers,(function(e){var n,r=e.type,i=e.handler;null===(n=t.canvasContainer)||void 0===n||n.off(r,i)})),Mh(this.s2EventHandlers,(function(e){var n=e.type,r=e.handler;t.spreadsheet.off(n,r)})),Mh(this.domEventListeners,(function(t){t.target.removeEventListener(t.type,t.handler,t.options)})),this.canvasEventHandlers=[],this.s2EventHandlers=[],this.domEventListeners=[]},t}(),HS=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(!cf(null==i?void 0:i.x)){n.addIntercepts([dy.HOVER]);var o=[bx(r)],a=e.spreadsheet.store.get("lastClickedCell");if(e.isRangeSelection&&a&&a.cellType===r.cellType&&a.getMeta().level===r.getMeta().level){var s=Ry([e.spreadsheet.facet.layoutResult.rowsHierarchy.maxLevel,e.spreadsheet.facet.layoutResult.colsHierarchy.maxLevel],2),l=s[0],u=s[1],c=xx(a.getMeta(),r.getMeta()),h=c.start,d=c.end;r instanceof ex?o=e.handleSeriesNumberRowSelected(h.rowIndex,d.rowIndex,r):r.cellType===sy.ROW_CELL&&r.getMeta().level===l?o=e.handleRowSelected(h.rowIndex,d.rowIndex,r):r.cellType===sy.COL_CELL&&r.getMeta().level===u&&(o=e.handleColSelected(h.colIndex,d.colIndex,r)),n.changeState({cells:o,stateName:ay.SELECTED})}else e.spreadsheet.store.set("lastClickedCell",r);var f=o.map((function(t){return t.id}));n.updateCells(n.getRowColActiveCells(f)),e.spreadsheet.emit(Hi.GLOBAL_SELECTED,n.getActiveCells())}},e}return ky(e,t),e.prototype.bindEvents=function(){this.bindKeyboardDown(),this.bindDataCellClick(),this.bindColCellClick(),this.bindKeyboardUp()},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([dy.CLICK]))}))},e.prototype.bindKeyboardUp=function(){var t=this;this.spreadsheet.on(Hi.GLOBAL_KEYBOARD_UP,(function(e){e.key===cy.SHIFT&&(t.isRangeSelection=!1,t.spreadsheet.interaction.removeIntercepts([dy.CLICK]))}))},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=xx(o.getMeta(),n.getMeta()),s=a.start,l=a.end,u=Yp(s.colIndex,l.colIndex+1).flatMap((function(e){var r=t.spreadsheet.facet.layoutResult.colLeafNodes[e].id;return Yp(s.rowIndex,l.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([dy.CLICK,dy.HOVER]),i.changeState({cells:u,stateName:ay.SELECTED}),t.spreadsheet.showTooltipWithInfo(e,IO(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 Yp(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 Cd(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 Cd(n.colIndex,t,e+1)})).map((function(t){return{id:t.id,colIndex:t.colIndex,rowIndex:t.rowIndex,type:n.cellType}}))},e}(RS),WS=[cy.ARROW_LEFT,cy.ARROW_RIGHT,cy.ARROW_UP,cy.ARROW_DOWN],YS=function(t){function e(e){return t.call(this,e)||this}return ky(e,t),e.prototype.bindEvents=function(){var t=this;this.spreadsheet.on(Hi.GLOBAL_KEYBOARD_DOWN,(function(e){var n=e.shiftKey,r=e.metaKey,i=!1,o=!1,a=!1;WS.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:sy.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,l=n?a:s,u=this.getMoveInfo(e.key,l,r);if(u){var c=Ry([u.row,u.col],2),h=c[0],d=c[1];this.scrollToActiveCell(o,h,d);var f=this.generateCellMeta(o,h,d),p=i?[f]:this.getRangeCells(o,a,f);_x(o,p),n&&(this.startCell=f),this.endCell=f}},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,l=o[n].id;return{rowIndex:e,colIndex:n,id:Q_(s,l),type:sy.DATA_CELL}},e.prototype.getRangeCells=function(t,e,n){for(var r=xx(e,n),i=r.start,o=i.rowIndex,a=i.colIndex,s=r.end,l=s.rowIndex,u=s.colIndex,c=[],h=o;h<=l;h++)for(var d=a;d<=u;d++)c.push(this.generateCellMeta(t,h,d));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,l=void 0===s?0:s,u=i.frozenTrailingColCount,c=void 0===u?0:u,h=i.frozenTrailingRowCount,d=void 0===h?0:h,f=r.facet.layoutResult,p=f.rowLeafNodes,g=Ry([0+a,f.colLeafNodes.length-c-1],2),v=g[0],m=g[1],y=Ry([0+l,(r.isTableMode()?r.dataSet.getDisplayDataSet().length:p.length)-d-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,l=t.facet,u=t.frozenColGroup,c=t.frozenTrailingColGroup,h=t.frozenRowGroup,d=t.frozenTrailingRowGroup,f=l.layoutResult.colLeafNodes,p=l.getScrollOffset(),g=p.scrollX,v=p.scrollY,m=l.panelBBox,y=m.viewportHeight,b=m.viewportWidth,_=u?Math.floor(u.getBBox().width):0,x=c?Math.floor(c.getBBox().width):0,w=h?Math.floor(h.getBBox().height):0,O=d?Math.floor(d.getBBox().height):0,S=TS(g,v,l.viewCellWidths,l.viewCellHeights,{width:b-_-x,height:y-w-O,x:_,y:w},l.getRealScrollX(l.cornerBBox.width)),C=-1,E=-1,T=f.find((function(t){return t.colIndex===n}));if(n<=S[0]?C=T.x-_:n>=S[1]&&n<f.length-s&&(C=T.x+T.width-b+x),e<=S[2])E=l.viewCellHeights.getCellOffsetY(e-o);else if(e>=S[3]){E=l.viewCellHeights.getCellOffsetY(e+1)+O-y}return{offsetX:C,offsetY:E}},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(),l=s.scrollX,u=s.scrollY;a.scrollWithAnimation({offsetX:{value:i>-1?i:l},offsetY:{value:o>-1?o:u}})},e}(RS),$S=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.displayedDataCells=[],e.brushRangeDataCells=[],e.brushSelectionStage=uy.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=t.x,o=t.y,a=e.spreadsheet.facet,s=a.panelBBox,l=s.minX,u=s.minY,c=s.maxX,h=s.maxY,d=e.endBrushPoint.x+i,f=e.endBrushPoint.y+o,p=!0,g=!0,v=null===(r=null===(n=a.vScrollBar)||void 0===n?void 0:n.getBBox())||void 0===r?void 0:r.width;return d>c?d=c-v-2:d<l?d=l+2:p=!1,f>h?f=h-2:f<=u?f=u+2:g=!1,{x:{value:d,needScroll:p},y:{value:f,needScroll:g}}},e.autoScrollIntervalId=null,e.autoScrollConfig=fc(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 l=i.getCellRange().end,u=null===(r=null==o?void 0:o.frozenTrailingRow)||void 0===r?void 0:r.range;return u&&(l=u[0]-1),t>l?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 l=i.layoutResult.colLeafNodes.length-1,u=null===(r=null==o?void 0:o.frozenTrailingCol)||void 0===r?void 0:r.range;return u&&(l=u[0]-1),t>l?null:t},e.adjustNextColIndexWithFrozen=function(t,n){var r=e.spreadsheet,i=r.facet,o=r.dataSet,a=r.options,s=o.getDisplayDataSet().length,l=i.layoutResult.colLeafNodes.length,u=Hb(a,l,s),c=u.frozenTrailingColCount,h=u.frozenColCount,d=i.panelScrollGroupIndexes;return c>0&&n===yy.TRAILING&&SS(t,c,l)?d[1]:h>0&&n===yy.LEADING&&OS(t,h)?d[0]:t},e.adjustNextRowIndexWithFrozen=function(t,n){var r=e.spreadsheet,i=r.facet,o=r.dataSet,a=r.options,s=o.getDisplayDataSet().length,l=i.layoutResult.colLeafNodes.length,u=i.getCellRange(),c=Hb(a,l,s),h=c.frozenTrailingRowCount,d=c.frozenRowCount,f=i.panelScrollGroupIndexes;return h>0&&n===yy.TRAILING&&ES(t,u.end,h)?f[3]:d>0&&n===yy.LEADING&&CS(t,u.start,d)?f[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,l=e.adjustNextRowIndexWithFrozen(e.endBrushPoint.rowIndex,s);a=cf(u=e.validateYIndex(l+(t.y.value>0?1:-1)))?0:Tx(u,s,e.spreadsheet)-i}if(t.x.scroll){s=t.x.value>0?yy.TRAILING:yy.LEADING;var u,c=e.adjustNextColIndexWithFrozen(e.endBrushPoint.colIndex,s);o=cf(u=e.validateXIndex(c+(t.x.value>0?1:-1)))?0:Ex(u,s,e.spreadsheet)-r}return{x:o,y:a}},e.onScrollAnimationComplete=function(){e.scrollAnimationComplete=!0,e.brushSelectionStage!==uy.UN_DRAGGED&&e.renderPrepareSelected(e.endBrushPoint)},e.autoScroll=function(){if(e.brushSelectionStage!==uy.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=Fg((function(t,n){if(e.brushSelectionStage!==uy.UN_DRAGGED){var r=e.formatBrushPointForScroll({x:t,y:n}),i=r.x,o=i.value,a=i.needScroll,s=r.y,l=s.value,u=s.needScroll,c=e.autoScrollConfig;u&&(c.y.value=n,c.y.scroll=!0),a&&(c.x.value=t,c.x.scroll=!0),e.setMoveDistanceFromCanvas({x:t,y:n},a,u),e.renderPrepareSelected({x:o,y:l}),(u||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.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 ex){var a=o.getMeta(),s=a.rowIndex,l=a.colIndex;e.endBrushPoint={x:n,y:r,rowIndex:s,colIndex:l};var u=e.spreadsheet.interaction;u.addIntercepts([dy.HOVER]),u.clearStyleIndependent(),e.updatePrepareSelectMask(),e.showPrepareSelectedCells()}},e.showPrepareSelectedCells=function(){var t=e.getBrushRangeDataCells();e.spreadsheet.interaction.changeState({cells:t.map((function(t){return bx(t)})),stateName:ay.PREPARE_SELECT,force:!0}),e.brushRangeDataCells=t},e.getSelectedCellMetas=function(t){for(var n,r=[],i=e.spreadsheet.facet.layoutResult.colLeafNodes,o=null!==(n=e.spreadsheet.facet.layoutResult.rowLeafNodes)&&void 0!==n?n:[],a=t.start.rowIndex;a<t.end.rowIndex+1;a++)for(var s=t.start.colIndex;s<t.end.colIndex+1;s++){var l=i[s].id,u=String(a);o.length&&(u=o[a].id),r.push({colIndex:s,rowIndex:a,id:"".concat(u,"-").concat(l),type:"dataCell"})}return r},e}return ky(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:hm},capture:!1})}},e.prototype.setBrushSelectionStage=function(t){this.brushSelectionStage=t},e.prototype.bindMouseDown=function(){var t=this;this.spreadsheet.on(Hi.DATA_CELL_MOUSE_DOWN,(function(e){var n;null===(n=null==e?void 0:e.preventDefault)||void 0===n||n.call(e),t.spreadsheet.interaction.hasIntercepts([dy.CLICK])||(t.setBrushSelectionStage(uy.CLICK),t.initPrepareSelectMaskShape(),t.setDisplayedDataCells(),t.startBrushPoint=t.getBrushPoint(e),t.resetScrollDelta())}))},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.bindMouseMove=function(){var t=this;this.spreadsheet.on(Hi.GLOBAL_MOUSE_MOVE,(function(e){if(t.brushSelectionStage!==uy.UN_DRAGGED){t.setBrushSelectionStage(uy.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.bindMouseUp=function(){var t=this;this.spreadsheet.on(Hi.GLOBAL_MOUSE_UP,(function(e){t.brushSelectionStage===uy.DRAGGED?(t.clearAutoScroll(),t.isValidBrushSelection()&&(t.spreadsheet.interaction.addIntercepts([dy.BRUSH_SELECTION]),t.updateSelectedCells(),t.spreadsheet.showTooltipWithInfo(e,IO(t.spreadsheet))),t.spreadsheet.interaction.getCurrentStateName()===ay.PREPARE_SELECT&&t.spreadsheet.interaction.reset(),t.resetDrag()):t.resetDrag()})),this.spreadsheet.on(Hi.GLOBAL_CONTEXT_MENU,(function(){t.brushSelectionStage!==uy.UN_DRAGGED&&(t.spreadsheet.interaction.removeIntercepts([dy.HOVER]),t.resetDrag())}))},e.prototype.resetDrag=function(){this.hidePrepareSelectMaskShape(),this.setBrushSelectionStage(uy.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.setDisplayedDataCells=function(){this.displayedDataCells=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=fc(by)},e.prototype.getBrushPoint=function(t){var e,n,r=this.spreadsheet.facet.getScrollOffset(),i=r.scrollY,o=r.scrollX,a=t.originalEvent,s={x:null!==(e=null==t?void 0:t.x)&&void 0!==e?e:null==a?void 0:a.layerX,y:null!==(n=null==t?void 0:t.y)&&void 0!==n?n:null==a?void 0:a.layerY},l=this.spreadsheet.getCell(t.target).getMeta(),u=l.colIndex,c=l.rowIndex;return Py(Py({},s),{rowIndex:c,colIndex:u,scrollY:i,scrollX:o})},e.prototype.getBrushRange=function(){var t=this.spreadsheet.facet.getScrollOffset(),e=t.scrollX,n=t.scrollY,r=Math.min(this.startBrushPoint.rowIndex,this.endBrushPoint.rowIndex),i=Math.max(this.startBrushPoint.rowIndex,this.endBrushPoint.rowIndex),o=Math.min(this.startBrushPoint.colIndex,this.endBrushPoint.colIndex),a=Math.max(this.startBrushPoint.colIndex,this.endBrushPoint.colIndex),s=this.startBrushPoint.x+this.startBrushPoint.scrollX-e,l=this.startBrushPoint.y+this.startBrushPoint.scrollY-n,u=Math.min(s,this.endBrushPoint.x),c=Math.max(s,this.endBrushPoint.x),h=Math.min(l,this.endBrushPoint.y),d=Math.max(l,this.endBrushPoint.y);return{start:{rowIndex:r,colIndex:o,x:u,y:h},end:{rowIndex:i,colIndex:a,x:c,y:d},width:c-u,height:d-h}},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.getBrushRangeDataCells=function(){var t=this;return this.setDisplayedDataCells(),this.displayedDataCells.filter((function(e){var n=e.getMeta();return t.isInBrushRange(n)}))},e.prototype.updateSelectedCells=function(){var t=this.spreadsheet.interaction,e=this.getBrushRange();t.changeState({cells:this.getSelectedCellMetas(e),stateName:ay.SELECTED}),this.spreadsheet.emit(Hi.DATE_CELL_BRUSH_SELECTION,this.brushRangeDataCells),this.spreadsheet.emit(Hi.GLOBAL_SELECTED,this.brushRangeDataCells),nf(this.brushRangeDataCells)&&t.removeIntercepts([dy.HOVER])},e}(RS),XS=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.isMultiSelection=!1,e}return ky(e,t),e.prototype.bindEvents=function(){this.bindKeyboardDown(),this.bindDataCellClick(),this.bindKeyboardUp()},e.prototype.bindKeyboardDown=function(){var t=this;this.spreadsheet.on(Hi.GLOBAL_KEYBOARD_DOWN,(function(e){yx(e)&&(t.isMultiSelection=!0,t.spreadsheet.interaction.addIntercepts([dy.CLICK]))}))},e.prototype.bindKeyboardUp=function(){var t=this;this.spreadsheet.on(Hi.GLOBAL_KEYBOARD_UP,(function(e){yx(e)&&(t.isMultiSelection=!1,t.spreadsheet.interaction.removeIntercepts([dy.CLICK]))}))},e.prototype.getSelectedCells=function(t){var e=t.getMeta().id,n=this.spreadsheet.interaction,r=n.getCells();return n.getCurrentStateName()!==ay.SELECTED&&(r=[]),r.find((function(t){return t.id===e}))?r.filter((function(t){return t.id!==e})):Ny(Ny([],Ry(r),!1),[bx(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(nf(o))return i.clearState(),void t.spreadsheet.hideTooltip();i.addIntercepts([dy.CLICK,dy.HOVER]),t.spreadsheet.hideTooltip(),i.changeState({cells:o,stateName:ay.SELECTED}),t.spreadsheet.emit(Hi.GLOBAL_SELECTED,i.getActiveCells()),t.spreadsheet.showTooltipWithInfo(e,IO(t.spreadsheet))}}))},e}(RS),qS=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.get("children");if(!nf(a)){var s=Ry(a,2)[1],l=Ry(dc(s.attr("path")),2),u=l[0],c=l[1];o.type===_y.Horizontal?e.updateHorizontalResizingEndGuideLinePosition(i,o,u,c):e.updateVerticalResizingEndGuideLinePosition(i,o,u,c),s.attr("path",[u,c])}}},e}return ky(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.updateResizeGuideLinePosition=function(t,e){var n=this.resizeReferenceGroup.get("children");if(!nf(n)){var r=Ry(n,3),i=r[0],o=r[1],a=r[2],s=e.type,l=e.offsetX,u=e.offsetY,c=e.width,h=e.height,d=this.getGuideLineWidthAndHeight(),f=d.width,p=d.height;if(a.attr("cursor","".concat(s,"-resize")),s===_y.Horizontal)return i.attr("path",[["M",l,u],["L",l,p]]),o.attr("path",[["M",l+c,u],["L",l+c,p]]),void(this.resizeStartPosition.offsetX=t.offsetX);i.attr("path",[["M",l,u],["L",f,u]]),o.attr("path",[["M",l,u+h],["L",f,u+h]]),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=null==n?void 0:n.attr("appendInfo"),i=e.originalEvent;t.spreadsheet.store.set("resized",!1),(null==r?void 0:r.isResizeArea)&&(t.spreadsheet.interaction.reset(),t.spreadsheet.interaction.addIntercepts([dy.RESIZE]),t.setResizeTarget(n),t.showResizeGroup(),t.updateResizeGuideLinePosition(i,r))}))},e.prototype.bindMouseMove=function(){var t=this;this.spreadsheet.on(Hi.LAYOUT_RESIZE_MOUSE_MOVE,(function(e){Fg(t.resizeMouseMove,33)(e)}))},e.prototype.getResizeGuideLinePosition=function(){var t=Ry(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=Ry(r[0]||[],3),a=o[1],s=void 0===a?0:a,l=o[2],u=void 0===l?0:l,c=Ry(i[0]||[],3),h=c[1],d=void 0===h?0:h,f=c[2];return{start:{x:s,y:u},end:{x:d,y:void 0===f?0:f}}},e.prototype.getResizeWidthDetail=function(){var t,e,n=this.getResizeGuideLinePosition(),r=n.start,i=n.end,o=Math.floor(i.x-r.x),a=this.getResizeInfo();switch(a.effect){case xy.Field:return{eventType:Hi.LAYOUT_RESIZE_ROW_WIDTH,style:{rowCfg:{widthByField:(t={},t[a.id]=o,t)}}};case xy.Tree:return{eventType:Hi.LAYOUT_RESIZE_TREE_WIDTH,style:{rowCfg:{treeRowsWidth:o}}};case xy.Cell:return{eventType:Hi.LAYOUT_RESIZE_COL_WIDTH,style:{colCfg:{widthByFieldValue:(e={},e[a.id]=o,e)}}};case xy.Series:return{eventType:Hi.LAYOUT_RESIZE_SERIES_WIDTH,seriesNumberWidth:o};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.getResizeGuideLinePosition(),l=s.start,u=s.end,c=Math.floor(u.y-l.y),h=c-a.top-a.bottom,d=this.getResizeInfo();switch(d.effect){case xy.Field:return{eventType:Hi.LAYOUT_RESIZE_COL_HEIGHT,style:{colCfg:{heightByField:(t={},t[d.id]=c,t)}}};case xy.Cell:return n=o[String(d.id)]||el(i,"rowResizeType")===wy.CURRENT?{rowCfg:{heightByField:(e={},e[d.id]=h,e)}}:{cellCfg:{height:h}},{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.resizeReferenceGroup&&!nf(null===(e=t.resizeReferenceGroup)||void 0===e?void 0:e.getChildren())&&(t.hideResizeGroup(),t.renderResizedResult())}))},e.prototype.updateHorizontalResizingEndGuideLinePosition=function(t,e,n,r){var i=t.offsetX-this.resizeStartPosition.offsetX;e.width+i<qm&&(i=-(e.width-qm));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<Zm&&(i=-(e.height-Zm));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.setThemeCfg({theme:{rowCell:{seriesNumberWidth:r}}}),this.spreadsheet.store.set("resized",!0),this.render()},e.prototype.getResizeInfo=function(){var t;return null===(t=this.resizeTarget)||void 0===t?void 0:t.attr("appendInfo")},e.prototype.render=function(){this.resizeStartPosition={},this.resizeTarget=null,this.resizeReferenceGroup=null,this.spreadsheet.render(!1)},e}(RS),ZS=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 ky(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),KS=function(t){function e(e){var n=t.call(this,e)||this;return n.scrollGroup=n.addGroup({name:Lm,zIndex:lm}),n}return ky(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 cS(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;Mh(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;AS(this.scrollGroup,e.x-n)},e}(ZS),JS=function(t){function e(e){return t.call(this,e)||this}return ky(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,l=r.seriesNumberWidth,u=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;Mh(i,(function(t){if(function(t){return s+u>t.y&&u<t.y+t.height&&a-l+c>t.x&&c-l<t.x+t.width}(t)&&0!==t.height){var e=void 0;h&&(e=h(t,o,n.headerConfig)),nf(e)&&o.isPivotMode()&&(e=new wS(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;MS(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}(ZS),QS=function(t){function e(e){return t.call(this,e)||this}return ky(e,t),e.getCornerHeader=function(t,n,r,i,o,a){var s=t.width,l=t.height,u=n.originalWidth,c=n.originalHeight,h=n.width,d=n.height;return new e({data:this.getCornerNodes({x:n.x,y:n.y},u,c,i.rows,i.columns,o.rowsHierarchy,o.colsHierarchy,i.dataSet,r,a),position:{x:n.x,y:n.y},width:h,height:d,originalHeight:c,originalWidth:u,viewportWidth:s,viewportHeight:l,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,l,u){var c,h,d,f,p=[];if(l&&(null==a?void 0:a.sampleNodeForLastLevel)){var g=new lb({id:"",key:Fm,value:Qv("序号")});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=l,g.height=null===(h=null==a?void 0:a.sampleNodeForLastLevel)||void 0===h?void 0:h.height,g.isPivotMode=!0,g.cornerType=Ib.Series,p.push(g)}if(null==a?void 0:a.sampleNodeForLastLevel)if(u.isHierarchyTreeType()){var v=u.store.get("drillDownFieldInLevel",[]).map((function(t){return t.drillField})),m=new lb({key:"",id:"",value:r.filter((function(t){return!Id(v,t)})).map((function(t){return s.getFieldName(t)})).join("/")});m.x=t.x+l,m.y=null===(d=null==a?void 0:a.sampleNodeForLastLevel)||void 0===d?void 0:d.y,m.width=e-l,m.height=null===(f=null==a?void 0:a.sampleNodeForLastLevel)||void 0===f?void 0:f.height,m.seriesNumberWidth=l,m.isPivotMode=!0,m.spreadsheet=u,m.cornerType=Ib.Row,p.push(m)}else o.sampleNodesForAllLevels.forEach((function(t){var e=r[t.level],n=new lb({key:e,id:"",value:s.getFieldName(e)});n.x=t.x+l,n.y=a.sampleNodeForLastLevel.y,n.width=t.width,n.height=a.sampleNodeForLastLevel.height,n.field=e,n.isPivotMode=!0,n.cornerType=Ib.Row,n.spreadsheet=u,p.push(n)}));return a.sampleNodesForAllLevels.forEach((function(n){if(n.level<a.maxLevel){var r=i[n.level],o=new lb({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=Ib.Col,o.spreadsheet=u,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,l=null===(e=null===(t=null==s?void 0:s.facet)||void 0===t?void 0:t.cfg)||void 0===e?void 0:e.cornerHeader,u=null===(r=null===(n=null==s?void 0:s.facet)||void 0===n?void 0:n.cfg)||void 0===r?void 0:r.cornerCell;l?l(this,s,this.headerConfig):a.forEach((function(t){var e;u&&(e=u(t,i.headerConfig.spreadsheet,i.headerConfig)),nf(e)&&(e=new hS(t,i.headerConfig.spreadsheet,i.headerConfig)),i.add(e)}))},e.prototype.offset=function(){var t=this.headerConfig.scrollX;AS(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}(ZS),tC=function(t){function e(e){return t.call(this,e)||this}return ky(e,t),e.getSeriesNumberHeader=function(t,n,r,i,o){var a=t.height,s=t.viewportHeight,l=[],u=i.isHierarchyTreeType();return r.forEach((function(t){if(!t.isTotals||u){var e=new lb({id:"",key:"",value:"".concat(l.length+1)});e.x=t.x,e.y=t.y,e.height=t.height,e.width=n,l.push(e)}})),new e({width:o,height:a,viewportWidth:o,viewportHeight:s,position:{x:0,y:t.y},data:l,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();Mh(n,(function(e){var n=e.y,a=e.height,s=e.isLeaf;if(t.isHeaderCellInViewport(n,a,r,i)){var l=t.addGroup();t.addText(l,e),t.add(l),s||t.addBorder(o,e)}}))},e.prototype.offset=function(){var t=this.headerConfig,e=t.scrollY,n=t.scrollX,r=t.position;MS(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.headerConfig.spreadsheet.theme.rowCell.cell,e=this.headerConfig,n=e.position,r=e.width,i=e.viewportHeight;this.backgroundShape=Wb(this,{x:n.x,y:-n.y,width:r,height:i,fill:t.backgroundColor,stroke:"transparent",opacity:t.backgroundColorOpacity});var o=$_(Mb.LEFT,{x:n.x,y:-n.y,width:r,height:i},t),a=o.position,s=o.style;this.leftBorderShape=qb(this,a,s)},e.prototype.addBorder=function(t,e){var n=this.headerConfig.spreadsheet.theme.rowCell.cell,r=$_(Mb.BOTTOM,e,n);qb(t,r.position,r.style)},e.prototype.addText=function(t,e){var n=this.headerConfig,r=n.scrollY,i=n.viewportHeight,o=this.headerConfig.spreadsheet.theme.rowCell,a=e.label,s=e.x,l=e.y,u=e.width,c=e.height,h=e.isLeaf,d=e.isTotals,f=this.getTextPadding(a,u),p=h&&!d?o.text:o.bolderText,g=xS(l+f.top,c-f.top-f.bottom,r,i,p.fontSize);t.addShape("text",{attrs:Py(Py({x:s+f.left,y:g+p.fontSize/2,text:a},p),{cursor:"pointer"})})},e.prototype.getTextPadding=function(t,e){var n=this.headerConfig.spreadsheet.theme.rowCell,r=n_(t,n.text),i=Math.max(Math.abs((e-r)/2),4);return Py(Py({},n.cell.padding),{left:i,right:i})},e}(ZS),eC=function(t){function e(e){var n=t.call(this,e)||this;return n.render(),n}return ky(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;MS(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,l=o.y,u=o.y+r+i;this.addShape("line",{attrs:{x1:s,y1:l,x2:s,y2:u,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,l=null===(t=e.spreadsheet.theme)||void 0===t?void 0:t.splitLine,u=o.x,c=u+n+i+(s?a:0),h=o.y+r-1;this.addShape("line",{attrs:{x1:u,y1:h,x2:c,y2:h,stroke:l.horizontalBorderColor,lineWidth:l.horizontalBorderWidth,opacity:l.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,l=null===(t=r.spreadsheet.theme)||void 0===t?void 0:t.splitLine,u=s.x+i,c=s.y;this.addShape("rect",{attrs:{x:u,y:c,width:l.shadowWidth,height:a+o,fill:"l (0) 0:".concat(null===(e=l.shadowColors)||void 0===e?void 0:e.left," 1:").concat(null===(n=l.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,l=r.position,u=null===(t=r.spreadsheet.theme)||void 0===t?void 0:t.splitLine,c=l.x+i+s-u.shadowWidth,h=l.y;this.addShape("rect",{attrs:{x:c,y:h,width:u.shadowWidth,height:a+o,fill:"l (0) 0:".concat(null===(e=u.shadowColors)||void 0===e?void 0:e.right," 1:").concat(null===(n=u.shadowColors)||void 0===n?void 0:n.left)}})}},e}(gi),nC=function(t,e){void 0===t&&(t=[]);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(){function t(t){var e=this;this.interactions=new Map,this.intercepts=new Set,this.hoverTimer=null,this.defaultState={cells:[],force:!1},this.selectAll=function(){e.changeState({stateName:ay.ALL_SELECTED})},this.getCellLeafNodes=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)===sy.ROW_CELL;return e.spreadsheet.isHierarchyTreeType()&&i?lb.getAllLeaveNodes(r).filter((function(t){return t.rowIndex===r.rowIndex})):lb.getAllChildrenNodes(r)},this.selectHeaderCell=function(t){var n;void 0===t&&(t={});var r=t.cell;if(!nf(r)){var i=null===(n=null==r?void 0:r.getMeta)||void 0===n?void 0:n.call(r);if(i&&!cf(null==i?void 0:i.x)){e.addIntercepts([dy.HOVER]);var o=e.spreadsheet.isHierarchyTreeType(),a=(null==r?void 0:r.cellType)===sy.COL_CELL,s=e.getState(),l=e.isSelectedCell(r),u=(null==t?void 0:t.isMultiSelection)&&e.isSelectedState(),c=l?[]:e.getCellLeafNodes(r),h=l?[]:[bx(r)];if(u&&(h=gc(null==s?void 0:s.cells,h),c=gc(null==s?void 0:s.nodes,c),l&&(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))})))),nf(h))return e.reset(),void e.spreadsheet.emit(Hi.GLOBAL_SELECTED,e.getActiveCells());e.changeState({cells:h,nodes:c,stateName:ay.SELECTED});var d=h.map((function(t){return t.id}));return e.updateCells(e.getRowColActiveCells(d)),o&&!a||c.forEach((function(t){var e;null===(e=null==t?void 0:t.belongsCell)||void 0===e||e.updateByState(ay.SELECTED,t.belongsCell)})),e.spreadsheet.emit(Hi.GLOBAL_SELECTED,e.getActiveCells()),!0}}},this.mergeCells=function(t,n){hx(e.spreadsheet,t,n)},this.unmergeCell=function(t){fx(e.spreadsheet,t)},this.spreadsheet=t,this.registerEventController(),this.registerInteractions()}return t.prototype.destroy=function(){this.interactions.clear(),this.intercepts.clear(),this.eventController.clear(),this.clearHoverTimer(),this.resetState()},t.prototype.reset=function(){this.clearState(),this.clearHoverTimer(),this.intercepts.clear(),this.spreadsheet.hideTooltip()},t.prototype.setState=function(t){Cx(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(ay.SELECTED)},t.prototype.isAllSelectedState=function(){return this.isStateOf(ay.ALL_SELECTED)},t.prototype.isHoverFocusState=function(){return this.isStateOf(ay.HOVER_FOCUS)},t.prototype.isHoverState=function(){return this.isStateOf(ay.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 Qh(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 nC(null===(t=this.spreadsheet.panelGroup)||void 0===t?void 0:t.getChildren(),ex)},t.prototype.getAllRowHeaderCells=function(){var t,e,n,r,i,o,a=null===(e=qh(null===(t=this.spreadsheet.foregroundGroup)||void 0===t?void 0:t.getChildren(),(function(t){return t instanceof JS})))||void 0===e?void 0:e[0],s=null===(n=null==a?void 0:a.cfg)||void 0===n?void 0:n.children;if(nf(s))return[];for(;!(null===(r=null==s?void 0:s[0])||void 0===r?void 0:r.cellType);)s=null===(o=null===(i=null==s?void 0:s[0])||void 0===i?void 0:i.cfg)||void 0===o?void 0:o.children;return(s||[]).filter((function(t){return t.cellType===sy.ROW_CELL}))},t.prototype.getAllColHeaderCells=function(){var t,e,n,r=qh(null===(e=null===(t=this.spreadsheet)||void 0===t?void 0:t.foregroundGroup)||void 0===e?void 0:e.getChildren(),(function(t){return t instanceof KS}))[0],i=null===(n=null==r?void 0:r.cfg)||void 0===n?void 0:n.children;return nf(i)?[]:nC(i,cS).filter((function(t){return t.cellType===sy.COL_CELL}))},t.prototype.getRowColActiveCells=function(t){return gc(this.getAllRowHeaderCells(),this.getAllColHeaderCells()).filter((function(e){return t.includes(e.getMeta().id)}))},t.prototype.getAllCells=function(){return gc(this.getPanelGroupAllDataCells(),this.getAllRowHeaderCells(),this.getAllColHeaderCells())},t.prototype.hideColumns=function(t,e){void 0===t&&(t=[]),void 0===e&&(e=!0),nS(this.spreadsheet,t,e)},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;return[{key:oy.CORNER_CELL_CLICK,interaction:NS},{key:oy.DATA_CELL_CLICK,interaction:FS},{key:oy.ROW_COLUMN_CLICK,interaction:zS},{key:oy.ROW_TEXT_CLICK,interaction:VS},{key:oy.MERGED_CELLS_CLICK,interaction:BS},{key:oy.HOVER,interaction:US,enable:!rb()},{key:oy.BRUSH_SELECTION,interaction:$S,enable:!rb()&&n},{key:oy.COL_ROW_RESIZE,interaction:qS,enable:!rb()&&e},{key:oy.DATA_CELL_MULTI_SELECTION,interaction:XS,enable:!rb()&&r},{key:oy.RANGE_SELECTION,interaction:HS,enable:!rb()&&i},{key:oy.SELECTED_CELL_MOVE,interaction:YS,enable:!rb()&&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))})),nf(e)||Mh(e,(function(e){var n=e.interaction;t.interactions.set(e.key,new n(t.spreadsheet))}))},t.prototype.registerEventController=function(){this.eventController=new GS(this.spreadsheet)},t.prototype.draw=function(){this.spreadsheet.container.draw()},t.prototype.clearState=function(){Sx(this.spreadsheet),this.draw()},t.prototype.changeState=function(t){var e=this.spreadsheet.interaction,n=t.cells,r=t.force,i=t.stateName;nf(n)&&i===ay.SELECTED?r&&e.changeState({cells:[],stateName:ay.UNSELECTED}):(this.getCurrentStateName()===ay.ALL_SELECTED&&this.clearStyleIndependent(),this.clearState(),this.setState(t),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}(),iC=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;rb()||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;rb()||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,l=e.spreadsheet.getCanvasElement();if(r.get("pixelRatio")!==t&&l){var u=Math.max(t,s,Ty);r.set("pixelRatio",u),r.changeSize(o,a),e.spreadsheet.render(!1)}},this.renderByZoomScale=ih((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}(),oC=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,l=pO(o).enterable,u=this.getContainer(),c=this.spreadsheet.options.tooltip||{},h=c.autoAdjustBoundary,d=c.adjustPosition;this.visible=!0,this.options=t,this.renderContent(a);var f=fO({spreadsheet:this.spreadsheet,position:i,tooltipContainer:u,autoAdjustBoundary:h}),p=f.x,g=f.y;this.position=null!==(e=null==d?void 0:d({position:{x:p,y:g},event:s}))&&void 0!==e?e:{x:p,y:g},vO(u,{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:l?"all":"none"},className:"".concat(Zy,"-show")})},t.prototype.hide=function(){if(this.visible=!1,this.container){var t=this.getContainer();vO(t,{style:{pointerEvents:"none"},className:"".concat(Zy,"-hide")}),this.resetPosition()}},t.prototype.destroy=function(){var t;this.visible=!1;var e=this.getContainer();e&&(this.resetPosition(),null===(t=e.remove)||void 0===t||t.call(e))},t.prototype.renderContent=function(t){this.clearContent();var e=(this.spreadsheet.options.tooltip||{}).content,n=this.getContainer(),r=null!=t?t:e;cf(r)||("string"!=typeof r?r instanceof Element&&n.appendChild(r):n.innerHTML=r)},t.prototype.clearContent=function(){this.getContainer().innerHTML=""},t.prototype.disablePointerEvent=function(){this.container&&"none"!==this.container.style.pointerEvents&&vO(this.container,{style:{pointerEvents:"none"}})},t.prototype.resetPosition=function(){this.position={x:0,y:0}},t.prototype.getContainer=function(){var t,e;if(!this.container){var n=(null===(e=(t=this.spreadsheet.options.tooltip).getContainer)||void 0===e?void 0:e.call(t))||document.body,r=document.createElement("div");n.appendChild(r),this.container=r}return this.container.className="".concat(qy,"-container"),this.container},t}(),aC=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=Nm);var r=n.getBBox(),i=n.s2.theme.dataCell.cell;n.gridGroup&&n.findById(e)||(n.gridGroup=n.addGroup({id:e})),n.gridGroup.clear(),n.gridInfo=t,n.gridInfo.cols.forEach((function(t){var e=t-i.verticalBorderWidth/2;qb(n.gridGroup,{x1:e,x2:e,y1:Math.ceil(r.minY),y2:Math.floor(r.maxY)},{stroke:i.verticalBorderColor,strokeOpacity:i.verticalBorderColorOpacity,lineWidth:i.verticalBorderWidth})})),n.gridInfo.rows.forEach((function(t){var e=t-i.horizontalBorderWidth/2;qb(n.gridGroup,{x1:Math.ceil(r.minX),x2:Math.floor(r.maxX),y1:e,y2:e},{stroke:i.horizontalBorderColor,strokeOpacity:i.horizontalBorderColorOpacity,lineWidth:i.horizontalBorderWidth})})),n.gridGroup.toFront()},n.s2=e.s2,n}return ky(e,t),e}(gi),sC=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return ky(e,t),e}(aC),lC=function(t){function e(e,n,r){var i=t.call(this)||this;return i.store=new Pb,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,Ny([t],Ry(e),!1))},i.initHiddenColumnsDetail=function(){var t=i.options.interaction.hiddenColumnFields,e=i.store.get("hiddenColumnsDetail");nf(t)&&nf(e)||nS(i,t,!0)},i.dataCfg=Ax(n),i.options=Ix(r),i.dataSet=i.getDataSet(i.options),i.initTooltip(),i.initGroups(e),i.bindEvents(),i.initInteraction(),i.initTheme(),i.initHdAdapter(),i.registerIcons(),i.setDebug(),i}return ky(e,t),e.prototype.setDebug=function(){Ob.getInstance().setDebug(this.options.debug)},e.prototype.initTheme=function(){this.setThemeCfg({name:"default"})},e.prototype.getMountContainer=function(t){var e=Ed(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 iC(this),this.hdAdapter.init())},e.prototype.initInteraction=function(){this.interaction=new rC(this)},e.prototype.initTooltip=function(){var t,e;this.tooltip=this.renderTooltip(),this.tooltip instanceof oC||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 oC(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=To(r)?r(o,t):r;null===(n=(e=this.tooltip).show)||void 0===n||n.call(e,Py(Py({},t),{content:a}))},e.prototype.showTooltipWithInfo=function(t,e,n){var r=kO(this,t),i=r.showTooltip,o=r.content;if(i){var a=this.getCell(null==t?void 0:t.target),s=MO({spreadsheet:this,cellInfos:e,targetCell:a,options:Py({enableFormat:!0},n)});this.showTooltip({data:s,position:{x:t.clientX,y:t.clientY},options:Py({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;nf(t)||Mh(t,(function(t){Eb(t.name,t.svg)}))},e.prototype.setDataCfg=function(t){this.store.set("originalDataCfg",t),this.dataCfg=Ax(this.dataCfg,t),this.store.set(ny,ry)},e.prototype.setOptions=function(t){this.hideTooltip(),this.options=Mx(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.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()},e.prototype.setThemeCfg=function(t){void 0===t&&(t={});var e=(null==t?void 0:t.theme)||{};this.theme=Mx(sb(Py(Py({},t),{spreadsheet:this})),e)},e.prototype.updatePagination=function(t){this.options=Mx(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=Mx(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(Mx({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 Z_)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=el(this.options.totals,Id(this.dataSet.fields.rows,t)?"row":"col",{});return{showSubTotals:!(!e.showSubTotals||!Id(e.subTotalsDimensions,t))&&e.showSubTotals,showGrandTotals:e.showGrandTotals,reverseLayout:e.reverseLayout,reverseSubLayout:e.reverseSubLayout,label:e.label||Qv("总计"),subLabel:e.subLabel||Qv("小计")}},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:vm,zIndex:am}),this.panelGroup=this.container.addGroup({name:ym,zIndex:dm}),this.foregroundGroup=this.container.addGroup({name:mm,zIndex:sm}),this.initPanelGroupChildren(),this.updateContainerStyle()},e.prototype.updateContainerStyle=function(){var t=this.getCanvasElement();t&&(t.style.display="block")},e.prototype.initPanelGroupChildren=function(){this.panelScrollGroup=new sC({name:bm,zIndex:fm,s2:this}),this.panelGroup.add(this.panelScrollGroup)},e.prototype.getInitColumnLeafNodes=function(){return this.store.get("initColumnLeafNodes",[])},e.prototype.clearCanvasEvent=function(){var t=this;dd(this.getEvents(),(function(e,n){t.off(n)}))},e}(gt),uC=function(){function t(t){var e=this;this.getFieldMeta=$s((function(t,n){return Qh(e.meta||n,(function(e){return e.field===t}))})),this.spreadsheet=t}return t.prototype.getFieldName=function(t){return el(this.getFieldMeta(t,this.meta),"name",t)},t.prototype.getFieldFormatter=function(t){return el(this.getFieldMeta(t,this.meta),"formatter",Eo)},t.prototype.getFieldDescription=function(t){return el(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(ny,ry)[r]);if(i)return i;var o=pc(sd(this.originData,(function(e){var n=e[t];return cf(n)?null:Number.parseFloat(n)}))),a={maxValue:Tf(o),minValue:Lf(o)};return function(t,e){var n=t.store.get(ny,ry);t.store.set(ny,Py(Py({},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}(),cC=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.handleDimensionValuesSort=function(){Mh(e.sortParams,(function(t){var n=t.sortFieldId,r=t.sortByMeasure;if(n){var i=Ny([],Ry(e.sortedDimensionValues[n]||[]),!1),o=KO({dataSet:e,sortParam:t,originValues:i,isSortByMeasure:!nf(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=ff(o)?Nb(i):null===(n=Md(i))||void 0===n?void 0:n.map((function(t){return t&&el(t,o)})):ff(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=Qh(e,(function(e){return!wd(t,e)}));return r&&r!==od(e)}return Yh(e,(function(e){return!wd(t,e)}))},a=function(t,e){return e?t.filter((function(t){return t!==em})):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 ky(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(zb(e.data,e.fields)).concat(this.totalData),Ob.getInstance().debugCallback(_b,(function(){var t=n.fields,e=zO({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,l=Ny(Ny([],Ry(lb.getFieldPath(n,!0)),!1),[t],!1),u=this.spreadsheet.store,c=this.standardTransform(e,s),h=zb(c,{columns:this.fields.columns,rows:l}),d=xh(c,h),f=null==n?void 0:n.id,p=null!==(r=u.get("drillDownIdPathMap"))&&void 0!==r?r:new Map;p.has(f)&&(Mh(p.get(f),(function(t){av(i.indexesData,t)})),VO(this.rowPivotMeta,f));var g=zO({rows:l,columns:a,originData:d,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(f,v),u.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&&Mh(o,(function(t){av(e.indexesData,t)})),VO(this.rowPivotMeta,t),r.delete(t);var a=qh(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})),l=n.get("drillDownFieldInLevel",[]).filter((function(t){return Id(s,null==t?void 0:t.drillLevel)}));n.set("drillDownFieldInLevel",l)}else{r.clear();var u=this.spreadsheet.store.get("originalDataCfg");nf(u)||this.spreadsheet.setDataCfg(u),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(nf(e))return t;var n=[];return Mh(e,(function(e){Mh(t,(function(t){var r;wd(t,e)&&n.push(Py(Py({},t),((r={})[em]=e,r[tm]=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,l=void 0===s?[]:s,u=t.totalData,c=a.columns,h=a.rows,d=a.values,f=a.valueInCols,p=a.customValueOrder,g=c,v=h;f?g=this.isCustomMeasuresPosition(p)?this.handleCustomMeasuresOrder(p,g):rv(Ny(Ny([],Ry(c),!1),[em],!1)):v=this.isCustomMeasuresPosition(p)?this.handleCustomMeasuresOrder(p,v):rv(Ny(Ny([],Ry(h),!1),[em],!1));var m=(null===(n=null===(e=this.spreadsheet)||void 0===e?void 0:e.options)||void 0===n?void 0:n.cornerExtraFieldText)||Qv("数值"),y={field:em,name:m,formatter:function(t){return function(t){return el(Qh(o,(function(e){return e.field===t})),"name",t)}(t)}},b=Ny(Ny([],Ry(o),!1),[y],!1),_=this.standardTransform(r,d),x=this.standardTransform(u,d);return{data:_,meta:b,fields:Py(Py({},a),{rows:v,columns:g,values:d}),totalData:x,sortParams:l}},e.prototype.getDimensionValues=function(t,e){var n,r,i,o,a=this.fields||{},s=a.rows,l=void 0===s?[]:s,u=a.columns,c=void 0===u?[]:u,h=new Map,d=[];if(Id(l,t)?(h=this.rowPivotMeta,d=l):Id(c,t)&&(h=this.colPivotMeta,d=c),!nf(e)){var f=[],p=[],g=function(t){var n=el(e,t);p.push("".concat(n));var r=p.join("".concat(Gm));if(h.has(n)&&!ff(n)){var a=null===(i=h.get(n))||void 0===i?void 0:i.childField;if(h=h.get(n).children,Qh(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.includes(r)}));f=NO(Ny([],Ry(s),!1))}else f=Ny([],Ry(h.keys()),!1)}},v=this;try{for(var m=Dy(d),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 nf(f)?[]:Db(Lb(Ny([],Ry(h.keys()),!1),f))}return this.sortedDimensionValues[t]?Db(NO(Ny([],Ry(this.sortedDimensionValues[t]),!1))):Db(Ny([],Ry(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,l=a.col,u=s||{},c=u.calcTotals,h=void 0===c?{}:c,d=u.calcSubTotals,f=void 0===d?{}:d,p=l||{},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(f,r)}(this.getTotalStatus(t),null===(n=this.spreadsheet.options)||void 0===n?void 0:n.totals)||{},i=r.aggregation,o=r.calcFunc,a=dO[i];if(a||o){var s=this.getMultiData(t),l=void 0;return o?l=o(t,s):a&&(l=a(s,tm)),Py(Py({},t),((e={})[tm]=l,e[t[em]]=l,e))}},e.prototype.getCellData=function(t){var e,n,r,i=t||{},o=i.query,a=i.rowNode,s=i.isTotals,l=void 0!==s&&s,u=this.fields,c=u.columns,h=u.rows,d=h,f=null===(e=this.spreadsheet)||void 0===e?void 0:e.store.get("drillDownIdPathMap"),p=Array.from(null!==(n=null==f?void 0:f.keys())&&void 0!==n?n:[]).some((function(t){return a.id.startsWith(t)}));l&&!p||(d=null!==(r=lb.getFieldPath(a,p))&&void 0!==r?r:h);var g=FO({rowDimensionValues:BO(d,o),colDimensionValues:BO(c,o),careUndefined:l||Bb([].concat(h).concat(c),o),rowPivotMeta:this.rowPivotMeta,colPivotMeta:this.colPivotMeta}),v=el(this.indexesData,g);return v||(l?this.getTotalValue(o):v)},e.prototype.getMultiData=function(t,e,n,r){var i;if(nf(t))return pc(Rb(this.indexesData));var o=this.fields,a=o.rows,s=o.columns,l=o.values,u=BO(nf(r)?a:a.concat(r),t),c=BO(s,t),h=FO({rowDimensionValues:u,colDimensionValues:c,careUndefined:!0,isFirstCreate:!0,rowFields:a,colFields:s,rowPivotMeta:this.rowPivotMeta,colPivotMeta:this.colPivotMeta}),d=this.getCustomData(h),f=pc(Nb(d));if(e){var p=[],g=Fb(u,a),v=Fb(c,s);if(n)p=g;else if(1===(null===(i=Cs(t))||void 0===i?void 0:i.length)&&wd(t,em))p=v;else{var m=function(t){return null==(e=null==t?void 0:t.filter((function(t){return!(null==l?void 0:l.includes(t))})))?void 0:e.every((function(t){return ff(t)}));var e},y=m(c),b=m(u);p=y?g:b?v:Ny(Ny([],Ry(g),!1),Ry(v),!1)}f=f.filter((function(t){return!(null==p?void 0:p.find((function(e){var n;return e!==em&&(null===(n=Cs(t))||void 0===n?void 0:n.includes(e))})))}))}return f||[]},e.prototype.getFieldFormatter=function(e,n){return e===rm?this.getFieldFormatterForTotalValue(n):t.prototype.getFieldFormatter.call(this,e)},e.prototype.getFieldFormatterForTotalValue=function(e){var n;return!this.spreadsheet.isValueInCols()&&e&&(n=el(e.rowQuery,em)),n=null!=n?n:el(this.fields.values,0),t.prototype.getFieldFormatter.call(this,n)},e.prototype.handleCustomMeasuresOrder=function(t,e){var n=rv(Ny([],Ry(e),!1));return e.length>=t?(n.splice(t,0,em),n):Ny(Ny([],Ry(n),!1),[em],!1)},e.prototype.isCustomMeasuresPosition=function(t){return sf(t)},e}(uC),hC=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.handleDimensionValueFilter=function(){Mh(e.filterParams,(function(t){var n=t.filterKey,r=t.filteredValues,i=t.customFilter,o=function(t){return t[n]&&!Id(r,t[n])};e.displayData=Ny(Ny(Ny([],Ry(e.getStartRows()),!1),Ry(qh(e.getMovableRows(),(function(t){return i?i(t)&&o(t):o(t)}))),!1),Ry(e.getEndRows()),!1)}))},e.handleDimensionValuesSort=function(){Mh(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(),l=[];if(a){var u=[];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,l.push(t);break}}n&&u.push(t)})),s=u}var c=s;if(i)c=i(Py(Py({},t),{data:s}));else if(r&&!To(r)){var h=Ny([],Ry(r),!1).reverse();c=s.sort((function(t,e){var r=h.indexOf(t[n]);return h.indexOf(e[n])-r}))}else if(GO(o)||HO(o)){c=qf(s,[(To(r)?r:null)||n],[o.toLocaleLowerCase()])}l.length&&(c=Ny(Ny([],Ry(c),!1),Ry(l),!1)),e.displayData=Ny(Ny(Ny([],Ry(e.getStartRows()),!1),Ry(c),!1),Ry(e.getEndRows()),!1)}}))},e}return ky(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)return this.displayData[e.rowIndex][e.col]},e.prototype.getMultiData=function(t,e){return this.displayData},e}(uC),dC=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return ky(e,t),e.prototype.getCellData=function(t){var e=t.query,n=this.fields,r=n.columns,i=n.rows,o=FO({rowDimensionValues:BO(i,e),colDimensionValues:BO(r,e),rowPivotMeta:this.rowPivotMeta,colPivotMeta:this.colPivotMeta,isFirstCreate:!0,careUndefined:!0,rowFields:i,colFields:r});return el(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=zO({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=[em],t.fields.valueInCols=!1;var e=t.data,n=Ly(t,["data"]),r=t.fields.values,i=[];return Mh(e,(function(t){nf(Rd(Cs(t),r))?i.push(t):Mh(r,(function(e){var n;wd(t,e)&&i.push(Py(Py({},t),((n={})[em]=e,n[tm]=t[e],n)))}))})),Py({data:rv(i)},n)},e}(cC),fC=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()},pC=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return ky(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*ty,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}(fC),gC=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return ky(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 l=this.spreadsheet.options,u=l.frozenTrailingColCount,c=l.frozenTrailingRowCount;u>0&&(this.viewportWidth=this.width,this.maxX=e.x+this.width),c>0&&(this.viewportHeight=this.height,this.maxY=e.y+this.height)},e}(fC),vC=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)},mC=function(t,e,n){if(n<=0)return{start:0,end:0};var r=Jh(t,(function(n,r){return e>=n&&e<t[r+1]}),0);r=Math.max(r,0);var i=n===e?r:Jh(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)}},yC=function(t,e){var n=e.width,r=e.originalWidth,i=Math.min(r-n,t);return i<0?0:i},bC=function(t,e,n){var r=Math.min(e-n,t);return r<0?0:r},_C=function(t,e,n){return n.slice(t,e+1).map((function(t){return t.x+t.width}))},xC=function(t,e,n){for(var r=[],i=t;i<e+1;i++)r.push(n.getCellOffsetY(i+1));return r};!function(t){t.ScrollChange="scroll-change",t.ScrollEnd="scroll-end"}(UO||(UO={}));var wC=function(t){function e(e){var n=t.call(this,e)||this;n.isMobile=!1,n.eventHandlers=[],n.scrollFrameId=null,n.getCoordinates=function(){return{from:n.isHorizontal?"x1":"y1",to:n.isHorizontal?"x2":"y2"}},n.current=function(){var t=n.thumbLen/n.trackLen;return n.thumbOffset/n.trackLen/(1-t)},n.updateTrackLen=function(t){if(n.trackLen!==t){var e=t*(n.thumbLen/n.trackLen),r=t*(n.thumbOffset/n.trackLen);n.scrollTargetMaxOffset=n.scrollTargetMaxOffset+n.trackLen-t,n.trackLen=t;var i=n.getCoordinates();n.trackShape.attr(i.to,t),n.updateThumbLen(e),n.updateThumbOffset(r),n.emitScrollChange(r/(t-e)*n.scrollTargetMaxOffset,!1)}},n.updateThumbLen=function(t){if(n.thumbLen!==t){n.thumbLen=t;var e=n.getCoordinates();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.getCoordinates(),a=o.from,s=o.to;n.thumbShape.attr(((r={})[a]=i,r[s]=i+n.thumbLen,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(UO.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:Py(Py({},s),{x1:0,y1:a/2,x2:n.trackLen,y2:a/2})}):t.addShape("line",{attrs:Py(Py({},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"};return n.isHorizontal?t.addShape("line",{attrs:Py(Py({},a),{x1:n.thumbOffset,y1:r/2,x2:n.thumbOffset+n.thumbLen,y2:r/2})}):t.addShape("line",{attrs:Py(Py({},a),{x1:r/2,y1:n.thumbOffset,x2:r/2,y2:n.thumbOffset+n.thumbLen})})},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?el(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()})),Mh(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.get("canvas").get("container").getBoundingClientRect(),r=t.clientX,i=t.clientY,o=n.isHorizontal?r-e.left-n.position.x-n.thumbLen/2:i-e.top-n.position.y-n.thumbLen/2,a=n.validateRange(o);n.updateThumbOffset(a)},n.onMouseMove=function(t){t.preventDefault();var e=n.isMobile?el(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(UO.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,l=e.minThumbLen,u=void 0===l?Iy:l,c=e.thumbOffset,h=void 0===c?0:c,d=e.theme,f=e.scrollTargetMaxOffset;return n.isHorizontal=i,n.thumbOffset=h,n.trackLen=o,n.thumbLen=a,n.position=s,n.minThumbLen=u,n.theme=d,n.scrollTargetMaxOffset=f,n.initScrollBar(),n}return ky(e,t),e}(gi),OC=function(t,e,n){var r=Ry(n,4),i=r[0],o=r[1],a=r[2],s=r[3];return t>=i&&t<=o&&e>=a&&e<=s},SC=function(t){for(var e=Ry(t,4),n=e[0],r=e[1],i=e[2],o=e[3],a=[],s=n;s<=r;s+=1)for(var l=i;l<=o;l+=1)a.push([s,l]);return a},CC=function(t,e){var n=[],r=[];return Object.keys(e).forEach((function(i){var o=function(t,e){var n=[],r=[];if(nf(t))return nf(e)?{add:n,remove:r}:{add:SC(e),remove:r};if(nf(e))return{add:n,remove:SC(t)};for(var i=Ry(t,4),o=i[0],a=i[1],s=i[2],l=i[3],u=Ry(e,4),c=u[0],h=u[1],d=u[2],f=u[3],p=o;p<=a;p++)for(var g=s;g<=l;g++)OC(p,g,e)||r.push([p,g]);for(p=c;p<=h;p+=1)for(g=d;g<=f;g+=1)OC(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,Ny([],Ry(a),!1)),r.push.apply(r,Ny([],Ry(s),!1))})),{add:n,remove:r}},EC=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=ih(this.hideScrollBar,1e3),this.delayHideScrollbarOnMobile=function(){rb()&&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 _S(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(Py(Py({},n),{deltaX:r,deltaY:i,layerX:o,layerY:a}))}))},this.bindEvents=function(){e.onContainerWheel(),e.emitPaginationEvent()},this.setScrollOffset=function(t){Object.keys(t).forEach((function(n){var r=t[n];ff(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=t.pageSize,i=e.viewCellHeights.getTotalLength(),o=Math.floor((i-1)/r)+1;e.cfg.spreadsheet.emit(Hi.LAYOUT_PAGINATION,{pageSize:r,pageCount:o,total:i,current:n})}},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=Zp(e.layoutResult.colLeafNodes,(function(t,e){return t.push(wh(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 gC(e,!0)},this.getRealWidth=function(){return wh(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){void 0===n&&(n=200);var i=e.getAdjustedScrollOffset({scrollX:t.offsetX.value||0,scrollY:t.offsetY.value||0}),o=i.scrollX,a=i.scrollY;e.timer&&e.timer.stop();var s=Object.values(e.getScrollOffset()),l=Ze(s,[void 0===o?s[0]:o,void 0===a?s[1]:a]);e.timer=he((function(t){var i=Math.min(t/n,1),s=Ry(l(i),2),u=s[0],c=s[1];e.setScrollOffset({scrollX:u,scrollY:c}),e.startScroll(o,a),t>n&&(e.timer.stop(),null==r||r())}))},this.scrollImmediately=function(t){var n=e.getAdjustedScrollOffset({scrollX:t.offsetX.value||0,scrollY:t.offsetY.value||0}),r=n.scrollX,i=n.scrollY;e.setScrollOffset({scrollX:r,scrollY:i}),e.startScroll(r,i)},this.startScroll=function(t,n){var r,i,o=e.getScrollOffset(),a=o.scrollX,s=o.scrollY;void 0!==t&&(null===(r=e.hScrollBar)||void 0===r||r.onlyUpdateThumbOffset(e.getScrollBarOffset(a,e.hScrollBar))),void 0!==n&&(null===(i=e.vScrollBar)||void 0===i||i.onlyUpdateThumbOffset(e.getScrollBarOffset(s,e.vScrollBar))),e.dynamicRenderCell()},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:bC(n,e.layoutResult.colsHierarchy.width,e.panelBBox.width),scrollY:bC(r,e.getRendererHeight(),e.panelBBox.height),hRowScrollX:yC(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.cornerBBox.width*e.cornerBBox.width/e.cornerBBox.originalWidth;e.hRowScrollBar=new wC({isHorizontal:!0,trackLen:e.cornerBBox.width,thumbLen:i,position:{x:e.cornerBBox.minX+e.scrollBarSize/2,y:r},thumbOffset:t*(e.cornerBBox.width-i)/n,theme:e.scrollBarTheme,scrollTargetMaxOffset:n}),e.hRowScrollBar.on(UO.ScrollChange,(function(t){var r,i,o=t.offset,a=e.getValidScrollBarOffset(o,n),s=a;e.setScrollOffset({hRowScrollX:s}),null===(r=e.rowHeader)||void 0===r||r.onRowScrollX(s,Em),null===(i=e.rowIndexHeader)||void 0===i||i.onRowScrollX(s,Am),e.cornerHeader.onRowScrollX(s,Im),e.hRowScrollBar.updateThumbOffset(e.getScrollBarOffset(a,e.hRowScrollBar),!1)})),e.foregroundGroup.add(e.hRowScrollBar)}},this.getValidScrollBarOffset=function(t,e){return t>e?e:t<0?0:t},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},l=n+(e.cfg.spreadsheet.isScrollContainsRowHeader()?e.cornerBBox.width:0),u=l-a,c=a/l*a;e.hScrollBar=new wC({isHorizontal:!0,trackLen:a,thumbLen:c,position:s,thumbOffset:r*(a-c)/u,theme:e.scrollBarTheme,scrollTargetMaxOffset:u}),e.hScrollBar.on(UO.ScrollChange,(function(t){var n=t.offset,r=t.updateThumbOffset,i=e.getValidScrollBarOffset(n,u);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,Iy),o=n-t,a=e.getScrollbarPosition().maxX;e.vScrollBar=new wC({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(UO.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.layerX,r=t.layerY;return n>e.panelBBox.minX&&n<e.panelBBox.maxX&&r>e.panelBBox.minY&&r<e.panelBBox.maxY},this.isScrollOverTheCornerArea=function(t){var n=t.layerX,r=t.layerY;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.layerX,o=t.layerY;e.isScrollOverTheCornerArea({layerX:i,layerY:o})&&(null===(n=e.hRowScrollBar)||void 0===n||n.emitScrollChange(r))},this.updateHorizontalScrollOffset=function(t){var n,r=t.offset,i=t.layerX,o=t.layerY;e.hRowScrollBar&&!e.isScrollOverThePanelArea({layerX:i,layerY:o})||null===(n=e.hScrollBar)||void 0===n||n.emitScrollChange(r)},this.isScrollToLeft=function(t){if(!e.hScrollBar)return!0;var n=!e.hRowScrollBar||e.hRowScrollBar.thumbOffset<=0;return t<=0&&e.hScrollBar.thumbOffset<=0&&n},this.isScrollToRight=function(t){var n,r;if(!e.hScrollBar)return!0;var i=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,o=!e.hRowScrollBar||e.hRowScrollBar.thumbOffset+e.hRowScrollBar.thumbLen>=e.cornerBBox.width,a=e.hScrollBar.thumbOffset+e.hScrollBar.thumbLen>=i;return t>=0&&a&&o},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,n,r){return!(r<=e.cornerBBox.maxY)&&(0!==n?e.isVerticalScrollOverTheViewport(n):0!==t&&e.isHorizontalScrollOverTheViewport(t))},this.cancelScrollFrame=function(){return(!rb()||!e.scrollFrameId)&&(cancelAnimationFrame(e.scrollFrameId),!0)},this.clearScrollFrameIdOnMobile=function(){rb()&&(e.scrollFrameId=null)},this.onWheel=function(t){var n,r=e.spreadsheet.options.interaction.scrollSpeedRatio,i=t.deltaX,o=t.deltaY,a=t.layerX,s=t.layerY,l=Ry(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]}(i,o,r),2),u=l[0],c=l[1];e.spreadsheet.hideTooltip(),e.spreadsheet.interaction.clearHoverTimer(),e.isScrollOverTheViewport(u,c,s)&&(null===(n=null==t?void 0:t.preventDefault)||void 0===n||n.call(t),e.spreadsheet.interaction.addIntercepts([dy.HOVER]),e.cancelScrollFrame()&&(e.scrollFrameId=requestAnimationFrame((function(){var t,n=e.getScrollOffset(),r=n.scrollX,i=n.scrollY,o=n.hRowScrollX;0!==u&&(e.showHorizontalScrollBar(),e.updateHorizontalRowScrollOffset({layerX:a,layerY:s,offset:u+o}),e.updateHorizontalScrollOffset({layerX:a,layerY:s,offset:u+r})),0!==c&&(e.showVerticalScrollBar(),null===(t=e.vScrollBar)||void 0===t||t.emitScrollChange(c+i)),e.delayHideScrollbarOnMobile(),e.clearScrollFrameIdOnMobile()}))))},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);Ob.getInstance().logger("renderIndex:",e.preCellIndexes,r);var i=CC(e.preCellIndexes,r),o=i.add,a=i.remove;Ob.getInstance().debugCallback(wb,(function(){Mh(o,(function(t){var n=Ry(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=nC(e.panelGroup.getChildren(),ex);Mh(a,(function(e){var n=Ry(e,2),r=n[0],i=n[1],o=Qh(t,(function(t){return t.get("name")==="".concat(r,"-").concat(i)}));null==o||o.remove(!0)})),mx(e.spreadsheet),Ob.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=Ry(e.preCellIndexes.center,4),n=t[0],r=t[1],i=t[2],o=t[3];return{cols:_C(n,r,e.layoutResult.colLeafNodes),rows:xC(i,o,e.viewCellHeights)}},this.onAfterScroll=ih((function(){e.spreadsheet.interaction.isSelectedState()||e.spreadsheet.interaction.removeIntercepts([dy.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.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=t.pageSize,r=this.viewCellHeights,i=Math.max((e-1)*n,0);return r.getCellOffsetY(i)}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:TS(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 pC(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=e.pageSize;r=Math.max((o-1)*a,0),i=Math.min(o*a-1,n.getTotalLength()-1)}return{start:r,end:i}}(this.viewCellHeights,t)},t.prototype.clip=function(t,e){var n,r=this.cfg.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;MS(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,Em),null===(i=this.rowIndexHeader)||void 0===i||i.onScrollXY(this.getRealScrollX(t,n),e,Am),this.cornerHeader.onCorScroll(this.getRealScrollX(t,n),Im),this.centerFrame.onChangeShadowVisibility(t,this.getRealWidth()-this.panelBBox.width),this.centerFrame.onBorderScroll(this.getRealScrollX(t)),this.columnHeader.onColScroll(t,jm)},t.prototype.init=function(){var t=this;Ob.getInstance().debugCallback(xb,(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=el(this.cfg,"spreadsheet.theme.background.color"),i=el(this.cfg,"spreadsheet.theme.background.opacity");this.backgroundGroup.addShape("rect",{attrs:{fill:r,opacity:i,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,l=this.getRealHeight();this.renderRowScrollBar(r),this.renderHScrollBar(o,s,e),this.renderVScrollBar(a,l,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,l=this.getSeriesNumberWidth();return new JS({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:l,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 KS({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:QS.getCornerHeader(this.panelBBox,this.cornerBBox,this.getSeriesNumberWidth(),this.cfg,this.layoutResult,this.spreadsheet)},t.prototype.getSeriesNumberHeader=function(){return tC.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 eC(s)}return this.centerFrame},t.prototype.drawGrid=function(){this.gridInfo=this.getGridInfo(),this.spreadsheet.panelScrollGroup.updateGrid(this.gridInfo)},t.prototype.dynamicRenderCell=function(){var t=this.getScrollOffset(),e=t.scrollX,n=t.scrollY,r=t.hRowScrollX,i=n+this.getPaginationScrollY();i=bC(i,this.viewCellHeights.getTotalHeight(),this.panelBBox.viewportHeight),this.realCellRender(e,i),this.drawGrid(),this.translateRelatedGroups(e,i,r),this.clip(e,i),this.spreadsheet.emit(Hi.LAYOUT_CELL_SCROLL,{scrollX:e,scrollY:i}),this.onAfterScroll()},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}(),TC=function(t){var e,n,r,i,o,a=t.parentNode,s=t.currentField,l=t.level,u=t.facetCfg,c=t.hierarchy,h=t.pivotMeta,d=u.spreadsheet,f=u.dataSet,p=u.collapsedRows,g=u.hierarchyCollapse,v=a.query,m=a.id,y=(null===(i=d.dataCfg.fields.rows)||void 0===i?void 0:i.length)<=l,b=(null===(o=null==f?void 0:f.sortedDimensionValues)||void 0===o?void 0:o[s])||[],_=Um===m?b:null==b?void 0:b.filter((function(t){return null==t?void 0:t.includes(null==m?void 0:m.split("".concat(Um).concat(Gm))[1])})),x=Db(Lb(Ny([],Ry(h.keys()||[]),!1),Ny([],Ry(NO(Ny([],Ry(_),!1))),!1))),w=fb(x,u,a,s),O=d.store.get("drillItemsNum");O&&y&&(w=w.slice(0,O)),0===l&&function(t,e,n){var r=t.getTotalsConfig(e);r.showGrandTotals&&n[r.reverseLayout?"unshift":"push"](new cb(r.label,!1,!0))}(d,s,w);try{for(var S=Dy(w),C=S.next();!C.done;C=S.next()){var E=C.value,T=E instanceof cb,M=T?null:h.get(E),A=void 0,I=v,j=!1,k=!1;if(T){var P=E;j=P.isGrandTotals,k=P.isSubTotals,A=Qv(E.label),I=v}else A=E,I=Py(Py({},v),((r={})[s]=A,r));var L=db(a.id,A),D=el(p,L),R=null!=D?D:g,N=new lb({id:L,key:s,label:A,value:A,level:l,parent:a,field:s,isTotals:T,isGrandTotals:j,isSubTotals:k,isCollapsed:R,hierarchy:c,query:I,spreadsheet:d});l>c.maxLevel&&(c.maxLevel=l);var F=nf(null==M?void 0:M.children);(F||T)&&(N.isLeaf=!0),F||(N.isTotals=!0);var B=pb(u,a,N,c);F||R||T||!B||TC({level:l+1,currentField:M.childField,pivotMeta:M.children,facetCfg:u,parentNode:N,hierarchy:c})}}catch(t){e={error:t}}finally{try{C&&!C.done&&(n=S.return)&&n.call(S)}finally{if(e)throw e.error}}},MC=function(t){var e,n,r,i=t.facetCfg,o=t.customTreeItems,a=void 0===o?[]:o,s=t.level,l=t.parentNode,u=t.hierarchy,c=i.spreadsheet,h=i.collapsedRows,d=i.hierarchyCollapse;try{for(var f=Dy(a),p=f.next();!p.done;p=f.next()){var g=p.value,v=g.key,m=g.title,y=g.collapsed,b=g.children,_=Ly(g,["key","title","collapsed","children"]),x=((r={})[em]=v,r),w=db(l.id,m),O=null!=y&&y,S=el(h,w),C=null!=S?S:d||O,E=new lb({id:w,key:v,label:m,value:m,level:s,parent:l,field:v,isTotals:!1,isCollapsed:C,hierarchy:u,query:x,spreadsheet:c,extra:_});s>u.maxLevel&&(u.maxLevel=s),nf(b)&&(E.isLeaf=!0);var T=pb(i,l,E,u);nf(b)||C||!T||MC({facetCfg:i,parentNode:E,level:s+1,hierarchy:u,customTreeItems:b})}}catch(t){e={error:t}}finally{try{p&&!p.done&&(n=f.return)&&n.call(f)}finally{if(e)throw e.error}}},AC=function(t){var e,n,r=t.isValueInCols,i=t.moreThanOneValue,o=t.rootNode,a=t.facetCfg,s=t.hierarchy,l=t.fields;t.isRowHeader?(e=!r&&i,n=!r&&!i):(e=r&&i,n=r&&!i),mb({addTotalMeasureInTotal:e,addMeasureInTotalQuery:n,parentNode:o,currentField:l[0],fields:l,facetCfg:a,hierarchy:s})},IC=function(t){var e=t.facetCfg,n=t.rootNode,r=t.hierarchy,i=e.hierarchyType,o=e.rows,a=e.dataSet;"tree"===i?TC({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;MC({customTreeItems:i,facetCfg:e,level:0,parentNode:n,hierarchy:r})}(t)},jC=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,l=r.dataCfg.fields.valueInCols,u=r.isPivotMode(),c=n.dataSet.moreThanOneValue(),h=lb.rootNode(),d=new ub,f={isValueInCols:l,isPivotMode:u,moreThanOneValue:c,rootNode:h,hierarchy:d,spreadsheet:r,facetCfg:n,fields:e?o:s,isRowHeader:e};e?function(t){t.spreadsheet.isHierarchyTreeType()?IC(t):AC(t)}(f):function(t){var e=t.isPivotMode,n=t.hierarchy,r=t.rootNode,i=t.facetCfg;e?AC(t):bb({parentNode:r,hierarchy:n,facetCfg:i})}(f);return{hierarchy:d,leafNodes:e&&r.isHierarchyTreeType()?d.getNodes():d.getLeaves()}},kC=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return ky(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=jC({isRowHeader:!0,facetCfg:this.cfg}),e=t.leafNodes,n=t.hierarchy,r=jC({isRowHeader:!1,facetCfg:this.cfg}),i=r.leafNodes,o=r.hierarchy;this.calculateNodesCoordinate(e,n,i,o);var a=this.cfg,s=a.dataSet,l=a.spreadsheet,u={colNodes:o.getNodes(),colsHierarchy:o,rowNodes:n.getNodes(),rowsHierarchy:n,rowLeafNodes:e,colLeafNodes:i,getCellMeta:function(t,n){var r,o,a,u=t||0,c=n||0,h=e[u],d=i[c];if(!h||!d)return null;var f,p=h.query,g=d.query,v=h.isTotals||h.isTotalMeasure||d.isTotals||d.isTotalMeasure,m=l.options.hierarchyType,y=null!==(o=el(l,"facet.cfg.colCfg.hideMeasureColumn"))&&void 0!==o&&o&&"customTree"!==m?((r={})[em]=null===(a=s.fields.values)||void 0===a?void 0:a[0],r):{},b=jf({},p,g,y),_=s.getCellData({query:b,rowNode:h,isTotals:v}),x=null;return nf(_)?f=el(b,[em],""):(f=el(_,[em],""),x=el(_,[tm],null),v&&(f=el(b,[em],""),x=el(_,f,null))),{spreadsheet:l,x:d.x,y:h.y,width:d.width,height:h.height,data:_,rowIndex:u,colIndex:c,isTotals:v,valueField:f,fieldValue:x,rowQuery:p,colQuery:g,rowId:h.id,colId:d.id,id:Q_(h.id,d.id)}},spreadsheet:l};return function(t,e){var n=null==t?void 0:t.layoutDataPosition;if(n){var r=e.getCellMeta,i=n(t.spreadsheet,r);return Py(Py({},e),{getCellMeta:i})}return e}(this.cfg,u)},e.prototype.calculateNodesCoordinate=function(t,e,n,r){this.calculateRowNodesCoordinate(t,e,n),this.calculateColNodesCoordinate(n,r,e.width)},e.prototype.calculateColNodesCoordinate=function(t,e,n){var r,i,o,a,s=this.cfg.spreadsheet,l=lb.blankNode(),u=e.getNodes();try{for(var c=Dy(e.sampleNodesForAllLevels),h=c.next();!h.done;h=c.next()){var d=h.value;d.height=this.getColNodeHeight(d),e.height+=d.height}}catch(t){r={error:t}}finally{try{h&&!h.done&&(i=c.return)&&i.call(c)}finally{if(r)throw r.error}}for(var f=0,p=function(r){var i=u[r];if(i.isLeaf&&(i.colIndex=f,f+=1,i.x=l.x+l.width,i.width=g.calculateColLeafNodesWidth(i,t,n),e.width+=i.width,l=i),0===i.level)i.y=0;else{var a=e.sampleNodesForAllLevels.find((function(t){return t.level===i.level-1}));i.y=null!==(o=(null==a?void 0:a.y)+(null==a?void 0:a.height))&&void 0!==o?o:0}i.height=g.getColNodeHeight(i),gb(g.cfg,null,i)},g=this,v=0;v<u.length;v++)p(v);this.autoCalculateColNodeWidthAndX(t),nf(null===(a=s.options.totals)||void 0===a?void 0:a.col)||(this.adustTotalNodesCoordinate(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){var r,i,o,a,s=this.cfg,l=s.colCfg,u=s.dataSet,c=s.filterDisplayDataItem,h=el(el(l,"widthByFieldValue"),"".concat(t.value),t.width);if(h)return h;if(this.spreadsheet.getLayoutWidthType()===Ey.Compact){var d=this.spreadsheet.theme.colCell,f=d.bolderText,p=d.cell,g=d.icon,v=this.spreadsheet.dataSet.getFieldFormatter(t.field),m=null!==(r=null==v?void 0:v(t.value))&&void 0!==r?r:t.label,y=this.getExpectedCellIconWidth(sy.COL_CELL,this.spreadsheet.isValueInCols()&&this.spreadsheet.options.showDefaultHeaderActionIcon,g),b=i_(m)+y,_=Mf(null===(i=u.getMultiData(t.query,t.isTotals||t.isTotalMeasure).map((function(t){return"".concat(K_(t,c))})))||void 0===i?void 0:i.slice(0,50),(function(t){return i_(t)})),x=b>i_(_),w=x?m:_,O=x?y:0;return Ob.getInstance().logger("Max Label In Col:",t.field,w),n_(w,f)+(null===(o=p.padding)||void 0===o?void 0:o.left)+(null===(a=p.padding)||void 0===a?void 0:a.right)+O}return this.spreadsheet.isHierarchyTreeType()?this.getAdaptTreeColWidth(t,e):this.getAdaptGridColWidth(e,n)},e.prototype.getColNodeHeight=function(t){var e=this.cfg.colCfg;return el(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=Qh(this.spreadsheet.options.headerActionIcons,(function(e){return iS(Py(Py({},e),{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,l,u,c,h,d,f=this.cfg,p=f.cellCfg,g=f.spreadsheet,v=g.isHierarchyTreeType(),m=el(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=lb.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!==(l=E.colIndex)&&void 0!==l||(E.colIndex=C),E.y=O.y+O.height,E.height=(null!==(u=m[E.id])&&void 0!==u?u: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}gb(this.cfg,E,null)}v||(this.autoCalculateRowNodeHeightAndY(t),nf(null===(d=g.options.totals)||void 0===d?void 0:d.row)||(this.adustTotalNodesCoordinate(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.adustTotalNodesCoordinate=function(t,e){var n,r,i,o=this.cfg.dataSet.moreThanOneValue(),a=t.maxLevel,s=Qh(t.getNodes(0),(function(t){return t.isGrandTotals}));if(s instanceof lb){var l=s.children;if(e)s.width=t.width,Mh(l,(function(e){e.x=t.getNodes(a)[0].x}));else if(a>1||a<=1&&!o){var u=null!==(r=null===(n=null==l?void 0:l[0])||void 0===n?void 0:n.height)&&void 0!==r?r:0;s.height=t.height-u;var c=null===(i=Qh(t.getNodes(a),(function(t){return!t.isTotalMeasure})))||void 0===i?void 0:i.y;Mh(l,(function(t){t.y=c}))}}},e.prototype.adjustSubTotalNodesCoordinate=function(t,e){var n=t.getNodes().filter((function(t){return t.isSubTotals}));if(!nf(n)){var r=t.maxLevel;Mh(n,(function(n){var i,o,a,s=n.children;if(e)n.width=vC(t.sampleNodesForAllLevels,n.level,"width"),Mh(s,(function(e){e.x=t.getNodes(r)[0].x}));else{var l=vC(t.sampleNodesForAllLevels,n.level,"height"),u=null!==(o=null===(i=null==s?void 0:s[0])||void 0===i?void 0:i.height)&&void 0!==o?o:0;n.height=l-u,Mh(s,(function(e){e.y=t.getNodes(r)[0].y}));var c=null===(a=Qh(t.getNodes(r),(function(t){return!t.isTotalMeasure})))||void 0===a?void 0:a.y;Mh(s,(function(t){t.y=c}))}}))}},e.prototype.calculateGridRowNodesWidth=function(t,e){var n=this.cfg,r=n.rowCfg,i=n.spreadsheet,o=el(r,"widthByField.".concat(t.key)),a=el(r,"width");return o||(a||(i.getLayoutWidthType()!==Ey.Adaptive?this.getCompactGridRowWidth(t):this.getAdaptGridColWidth(e)))},e.prototype.getAdaptTreeColWidth=function(t,e){var n=this.getCanvasHW().width,r=Math.min(n/2,this.getTreeRowHeaderWidth()),i=Math.max(1,e.length),o=this.cfg.cellCfg;return Math.max(f_(o,this.getColLabelLength(t)),(n-r)/i)},e.prototype.getColLabelLength=function(t){var e,n=p_(null==t?void 0:t.value);if(so(n))return n.length;var r=this.cfg.dataSet.getMultiData(t.query,t.isTotals||t.isTotalMeasure),i=null!==(e=null==r?void 0:r.slice(0,50))&&void 0!==e?e:[],o=[];return Mh(i,(function(t){dd(t,(function(t){yo(t)&&(null==t?void 0:t.values)&&o.push(ug(null==t?void 0:t.values[0]))}))})),Tf(o)||1},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,l=Math.max(1,o+a);return e?Math.max(f_(i),(s-e)/a):Math.max(f_(i),s/l)},e.prototype.getTreeRowHeaderWidth=function(){var t,e,n,r,i=this.cfg,o=i.rows,a=i.dataSet,s=i.rowCfg,l=i.treeRowsWidth;if(null==s?void 0:s.treeRowsWidth)return null==s?void 0:s.treeRowsWidth;var u=o.map((function(t){return a.getFieldName(t)})).join("/"),c=this.spreadsheet.theme.cornerCell,h=c.bolderText,d=c.icon,f=n_(u,h)+2*d.size+(null===(t=d.margin)||void 0===t?void 0:t.left)+(null===(e=d.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(l,f)},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,l=a.icon,u=a.cell,c=o.theme.cornerCell,h=c.bolderText,d=c.icon,f=c.cell,p=t.field,g=t.isLeaf,v=this.getExpectedCellIconWidth(sy.ROW_CELL,!o.isValueInCols()&&g&&o.options.showDefaultHeaderActionIcon,l),m=Mf(null===(e=i.getDimensionValues(p))||void 0===e?void 0:e.slice(0,50).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=n_(m,s)+v+u.padding.left+u.padding.right,b=i.getFieldName(p),_=this.getExpectedCellIconWidth(sy.CORNER_CELL,!1,d),x=n_(b,h)+_+f.padding.left+f.padding.right;return Ob.getInstance().logger("Max Label In Row:",p,y>x?m:b),Math.max(y,x)},e.prototype.getViewCellHeights=function(t){var e=Zp(t.rowLeafNodes,(function(t,e){return t.push(wh(t)+e.height),t}),[0]);return{getTotalHeight:function(){return wh(e)},getCellOffsetY:function(t){return e[t]},getTotalLength:function(){return e.length-1},getIndexRange:function(t,n){return mC(e,t,n)}}},e}(EC),PC=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 l=null===(t=a.facet)||void 0===t?void 0:t.layoutResult.colLeafNodes,u=Hb(a.options,l.length),c=u.frozenColCount,h=u.frozenTrailingColCount,d=0,f=0,p=0;p<c;p++)d+=l[p].width;for(p=0;p<h;p++)f+=l[l.length-1-p].width;return{x:o+d,y:0,width:n-d-f,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:Dm,zIndex:um})),a&&(r.frozenTrailingColGroup=r.addGroup({name:Rm,zIndex:um})),r}return ky(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 OS(o,r)||SS(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(km);null==i||i.clear()},e.prototype.getCellInstance=function(t,e,n){return t.field===im?new PS(t,e,n):new kS(t,e,n)},e.prototype.getCellGroup=function(t){var e,n=this.headerConfig.spreadsheet,r=null==n?void 0:n.options,i=r.frozenColCount,o=r.frozenTrailingColCount,a=null===(e=null==n?void 0:n.facet)||void 0===e?void 0:e.layoutResult.colLeafNodes.length;return OS(t.colIndex,i)?this.frozenColGroup:SS(t.colIndex,o,a)?this.frozenTrailingColGroup:this.scrollGroup},e.prototype.isColCellInRect=function(e){var n,r=this.headerConfig.spreadsheet,i=null==r?void 0:r.options,o=i.frozenColCount,a=i.frozenTrailingColCount,s=null===(n=null==r?void 0:r.facet)||void 0===n?void 0:n.layoutResult.colLeafNodes.length;return!(!OS(e.colIndex,o)&&!SS(e.colIndex,a,s))||t.prototype.isColCellInRect.call(this,e)},e.prototype.clip=function(){this.scrollGroup.setClip({type:"rect",attrs:this.getScrollGroupClipBBox()})},e}(KS),LC=function(t){function e(e){var n,r=t.call(this,e)||this;r.frozenGroupInfo=((n={})[Yv.FROZEN_COL]={width:0},n[Yv.FROZEN_ROW]={height:0},n[Yv.FROZEN_TRAILING_ROW]={height:0},n[Yv.FROZEN_TRAILING_COL]={width:0},n),r.panelScrollGroupIndexes=[],r.initFrozenGroupPosition=function(){var t=r.getScrollOffset(),e=t.scrollY,n=t.scrollX,i=r.getPaginationScrollY();MS(r.spreadsheet.frozenRowGroup,r.cornerBBox.width-n,r.cornerBBox.height-i),MS(r.spreadsheet.frozenColGroup,r.cornerBBox.width,r.cornerBBox.height-e-i),MS(r.spreadsheet.frozenTrailingColGroup,r.cornerBBox.width,r.cornerBBox.height-e-i),MS(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=el(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,l=i.viewportHeight,u=r.cornerBBox.height,c=r.layoutResult.colLeafNodes,h=r.getCellRange(),d=h.end-h.start,f=Hb(r.spreadsheet.options,c.length,d),p=f.frozenRowCount,g=f.frozenColCount,v=f.frozenTrailingColCount,m=f.frozenTrailingRowCount,y=Math.floor(e-r.getPaginationScrollY()),b=Math.max(0,wh(r.viewCellWidths)-s),_=Math.max(0,r.viewCellHeights.getCellOffsetY(h.end+1)-r.viewCellHeights.getCellOffsetY(h.start)-l);null===(n=r.foregroundGroup.findById(Mm))||void 0===n||n.remove();var x,w,O=el(r.cfg,"spreadsheet.theme.splitLine"),S=r.foregroundGroup.addGroup({id:Mm,zIndex:um}),C={lineWidth:null==O?void 0:O.verticalBorderWidth,stroke:null==O?void 0:O.verticalBorderColor,opacity:null==O?void 0:O.verticalBorderColorOpacity},E={lineWidth:null==O?void 0:O.horizontalBorderWidth,stroke:null==O?void 0:O.horizontalBorderColor,opacity:null==O?void 0:O.horizontalBorderColorOpacity};g>0&&(qb(S,{x1:x=c.reduce((function(t,e,n){return n<g?t+e.width:t}),0),x2:x,y1:u,y2:u+(w=m>0?a:l)},Py({},C)),O.showShadow&&t>0&&S.addShape("rect",{attrs:{x:x,y:u,width:O.shadowWidth,height:w,fill:r.getShadowFill(0)}}));if(p>0){var T=u+r.getTotalHeightForRange(h.start,h.start+p-1);qb(S,{x1:0,x2:M=v>0?o:s,y1:T,y2:T},Py({},E)),O.showShadow&&y>0&&S.addShape("rect",{attrs:{x:0,y:T,width:M,height:O.shadowWidth,fill:r.getShadowFill(90)}})}v>0&&(qb(S,{x1:x=o-(M=c.reduceRight((function(t,e,n){return n>=c.length-v?t+e.width:t}),0)),x2:x,y1:u,y2:u+(w=m?a:l)},Py({},C)),O.showShadow&&Math.floor(t)<Math.floor(b)&&S.addShape("rect",{attrs:{x:x-O.shadowWidth,y:u,width:O.shadowWidth,height:w,fill:r.getShadowFill(180)}}));if(m>0){var M;T=r.panelBBox.maxY-r.getTotalHeightForRange(h.end-m+1,h.end);qb(S,{x1:0,x2:M=v>0?o:s,y1:T,y2:T},Py({},E)),O.showShadow&&y<Math.floor(_)&&S.addShape("rect",{attrs:{x:0,y:T-O.shadowWidth,width:M,height:O.shadowWidth,fill:r.getShadowFill(270)}})}r.foregroundGroup.sort()},r.renderFrozenPanelCornerGroup=function(){var t=r.layoutResult.colLeafNodes.length,e=r.getCellRange(),n=Hb(r.spreadsheet.options,t,e.end-e.start+1),i=function(t,e,n){for(var r,i=t.frozenColCount,o=t.frozenRowCount,a=t.frozenTrailingColCount,s=t.frozenTrailingRowCount,l=((r={})[Wv.TOP]=[],r[Wv.BOTTOM]=[],r),u=0;u<i;u++){for(var c=n.start;c<n.start+o;c++)l[Wv.TOP].push({x:u,y:c});if(s>0)for(c=0;c<s;c++){var h=n.end-c;l[Wv.BOTTOM].push({x:u,y:h})}}for(u=0;u<a;u++){var d=e-1-u;for(c=n.start;c<n.start+o;c++)l[Wv.TOP].push({x:d,y:c});if(s>0)for(c=0;c<s;c++){h=n.end-c;l[Wv.BOTTOM].push({x:d,y:h})}}return l}({frozenRowCount:n.frozenRowCount,frozenColCount:n.frozenColCount,frozenTrailingRowCount:n.frozenTrailingRowCount,frozenTrailingColCount:n.frozenTrailingColCount},t,e);Object.keys(i).forEach((function(t){var e=i[t],n=r.spreadsheet[ly[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.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,l=r.getCellRange(),u=function(t,e,n,r){var i=e.frozenColCount,o=e.frozenRowCount,a=e.frozenTrailingColCount,s=e.frozenTrailingRowCount,l=t.colIndex,u=t.rowIndex;return CS(u,r.start,o)?Wv.ROW:ES(u,r.end,s)?Wv.TRAILING_ROW:OS(l,i)?Wv.COL:SS(l,a,n)?Wv.TRAILING_COL:Wv.SCROLL}(t.getMeta(),{frozenRowCount:n,frozenColCount:i,frozenTrailingRowCount:o,frozenTrailingColCount:a},s,l),c=ly[u];c&&r.spreadsheet[c].add(t)},r.getFrozenOptions=function(){var t=r.layoutResult.colLeafNodes.length,e=r.getCellRange();return Hb(r.cfg,t,e.end-e.start+1)};var i=r.spreadsheet;return i.on(Hi.RANGE_SORT,(function(t){var e=t;Array.isArray(t)||(e=[t]);var n=i.dataCfg.sortParams||[];e=e.map((function(t){var e,r,i=Py(Py({},t),{sortFieldId:null!==(e=t.sortKey)&&void 0!==e?e:t.sortFieldId}),o=null!==(r=n.find((function(t){return t.sortFieldId===i.sortFieldId})))&&void 0!==r?r:{};return Py(Py({},o),i)}));var r=n.filter((function(t){return!e.find((function(e){return e.sortFieldId===t.sortFieldId}))}));ag(i.dataCfg,"sortParams",Ny(Ny([],Ry(r),!1),Ry(e),!1)),i.setDataCfg(i.dataCfg),i.render(!0),i.emit(Hi.RANGE_SORTED,i.dataSet.getDisplayDataSet())})),i.on(Hi.RANGE_FILTER,(function(t){var e=!t.filteredValues||0===t.filteredValues.length,n=i.dataCfg.filterParams||[],r=n.findIndex((function(e){return e.filterKey===t.filterKey}));-1!==r?e?n.splice(r):n[r]=t:n.push(t),ag(i.dataCfg,"filterParams",n),i.render(!0),i.emit(Hi.RANGE_FILTERED,i.dataSet.getDisplayDataSet())})),r}return ky(e,t),Object.defineProperty(e.prototype,"dataCellTheme",{get:function(){return this.spreadsheet.theme.dataCell.cell},enumerable:!1,configurable:!0}),e.prototype.calculateCornerBBox=function(){var t=this.layoutResult.colsHierarchy,e=Math.floor(t.height);this.cornerBBox=new pC(this),this.cornerBBox.height=e,this.cornerBBox.maxY=e},e.prototype.destroy=function(){t.prototype.destroy.call(this),this.spreadsheet.off(Hi.RANGE_SORT),this.spreadsheet.off(Hi.RANGE_FILTER)},e.prototype.doLayout=function(){var t=this,e=this.cfg,n=e.dataSet,r=e.spreadsheet,i=new ub,o=jC({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,l=t.cfg.showSeriesNumber,u=a[i],c=t.getCellHeight(e),h=t.getCellRange(),d=Hb(t.cfg,a.length,h.end-h.start+1).frozenTrailingRowCount,f=u.x,p=t.viewCellHeights.getCellOffsetY(e);return ES(e,h.end,d)&&(p=t.panelBBox.maxY-t.getTotalHeightForRange(e,h.end)),s=l&&u.field===im?e+1:n.getCellData({query:{col:u.field,rowIndex:e}}),{spreadsheet:r,x:f,y:p,width:u.width,height:c,data:(o={},o[u.field]=s,o),rowIndex:e,colIndex:i,isTotals:!1,colId:u.id,rowId:String(e),valueField:u.field,fieldValue:s,id:Q_(String(e),u.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(e.width,o/Math.max(1,i))}return e.width},e.prototype.getColNodeHeight=function(t){var e=this.cfg.colCfg;return Object.values(el(e,"heightByField"))[0]||e.height},e.prototype.calculateColNodesCoordinate=function(t,e){var n,r,i,o=lb.blankNode(),a=e.getNodes();try{for(var s=Dy(e.sampleNodesForAllLevels),l=s.next();!l.done;l=s.next()){var u=l.value;u.height=this.getColNodeHeight(u),e.height+=u.height}}catch(t){n={error:t}}finally{try{l&&!l.done&&(r=s.return)&&r.call(s)}finally{if(n)throw n.error}}for(var c=Hb(null===(i=this.spreadsheet)||void 0===i?void 0:i.options,a.length).frozenTrailingColCount,h=this.getAdaptiveColWidth(t),d=0;d<a.length;d++){(p=a[d]).colIndex=d,p.x=o.x+o.width,p.width=this.calculateColLeafNodesWidth(p,h),o=p,p.y=0,p.height=this.getColNodeHeight(p),gb(this.cfg,null,p),e.width+=p.width}o=lb.blankNode();var f=this.getCanvasHW().width;if(c>0)for(d=1;d<=a.length;d++){var p;(p=a[a.length-d]).colIndex>=t.length-c&&(p.colIndex===a.length-1?p.x=f-p.width:p.x=o.x-p.width,o=p)}},e.prototype.calculateColLeafNodesWidth=function(t,e){var n,r,i=this.cfg,o=i.colCfg,a=i.dataSet,s=i.spreadsheet,l=this.spreadsheet.getLayoutWidthType(),u=el(el(o,"widthByFieldValue"),"".concat(t.value),t.width);if(u)r=u;else{if(l===Ey.Compact){var c=a.getDisplayDataSet(),h=t.label,d=(null===(n=null==c?void 0:c.map((function(e){return"".concat(e[t.key])})))||void 0===n?void 0:n.slice(0,50))||[];d.push(h);var f=Mf(d,(function(t){return i_(t)})),p=s.theme.colCell.bolderText,g=s.theme.dataCell,v=g.text,m=g.cell;if(Ob.getInstance().logger("Max Label In Col:",t.field,f),h===f)r=n_(f,p)+jS(this.spreadsheet,t,s.theme.colCell);else{r=n_(f,v)+m.padding.left+m.padding.right+1}}else r=e;t.field===im&&(r=this.getSeriesNumberWidth())}return r},e.prototype.getDefaultCellHeight=function(){var t,e;return this.cfg.cellCfg.height+(null===(t=this.dataCellTheme.padding)||void 0===t?void 0:t.top)+(null===(e=this.dataCellTheme.padding)||void 0===e?void 0:e.bottom)},e.prototype.getCellHeight=function(t){if(this.rowOffsets){var e=el(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=el(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?wh(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 mC(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 PC({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=el(t.options,"interaction.resize");if(Jd(n)?n:null==n?void 0:n.rowCellVertical){var r=e.findById(Em),i=e.findById(Tm);r&&r.set("children",[]),i&&i.set("children",[]),nC(this.panelGroup.getChildren(),DS).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.colLeafNodes,a=this.viewCellHeights,s=this.getCellRange(),l=this.frozenGroupInfo,u=l.frozenCol,c=l.frozenTrailingCol,h=l.frozenRow,d=l.frozenTrailingRow;e>0&&(u.width=o[e-1].x+o[e-1].width-0,u.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&&(d.height=a.getCellOffsetY(s.end+1)-a.getCellOffsetY(s.end+1-i),d.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){AS(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(),l=s.frozenColCount,u=s.frozenRowCount,c=s.frozenTrailingColCount,h=s.frozenTrailingRowCount,d={width:a,height:o,x:0,y:0};if(c>0||l>0){var f=this.frozenGroupInfo,p=f.frozenTrailingCol,g=f.frozenCol;d.width-=p.width+g.width,d.x+=g.width}if(h>0||u>0){var v=this.frozenGroupInfo,m=v.frozenRow,y=v.frozenTrailingRow;d.height<m.height+y.height?(d.height=0,d.y=0):(d.height-=m.height+y.height,d.y+=m.height)}var b=TS(t,e,this.viewCellWidths,this.viewCellHeights,d,this.getRealScrollX(this.cornerBBox.width));return this.panelScrollGroupIndexes=b,function(t,e,n,r){var i=e.frozenColCount,o=e.frozenRowCount,a=e.frozenTrailingColCount,s=e.frozenTrailingRowCount,l=Ny([],Ry(t),!1);OS(l[0],i)&&(l[0]=i),SS(l[1],a,n)&&(l[1]=n-a-1),CS(l[2],r.start,o)&&(l[2]=r.start+o),ES(l[3],r.end,s)&&(l[3]=r.end-s);var u=Ny([],Ry(l),!1);u[2]=r.start,u[3]=r.start+o-1;var c=Ny([],Ry(l),!1);c[0]=0,c[1]=i-1;var h=Ny([],Ry(l),!1);h[2]=r.end+1-s,h[3]=r.end;var d=Ny([],Ry(l),!1);return d[0]=n-a,d[1]=n-1,{center:l,frozenRow:u,frozenCol:c,frozenTrailingCol:d,frozenTrailingRow:h}}(b,{frozenColCount:l,frozenRowCount:u,frozenTrailingColCount:c,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,l=a.frozenColGroup,u=a.frozenTrailingColGroup,c=a.frozenTrailingRowGroup,h=a.panelScrollGroup,d=l.getBBox().width,f=s.getBBox().height,p=u.getBBox(),g=c.getBBox().height,v=this.panelBBox.width-d-u.getBBox().width,m=this.panelBBox.height-f-g;h.setClip({type:"rect",attrs:{x:t+d,y:e+f,width:v,height:m}}),s.setClip({type:"rect",attrs:{x:t+d,y:o,width:v,height:f}}),c.setClip({type:"rect",attrs:{x:t+d,y:c.getBBox().minY,width:v,height:g}});var y={y:e+f,height:m};l.setClip({type:"rect",attrs:Py(Py({},y),{x:0,width:d})}),u.setClip({type:"rect",attrs:Py(Py({},y),{x:p.minX,width:p.width})});var b=this.spreadsheet.foregroundGroup.findById(Em);b&&b.setClip({type:"rect",attrs:{x:0,y:f+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.drawGrid=function(){var e=this;t.prototype.drawGrid.call(this),[Yv.FROZEN_COL,Yv.FROZEN_ROW,Yv.FROZEN_TRAILING_COL,Yv.FROZEN_TRAILING_ROW].forEach((function(t){if(e.frozenGroupInfo[t].range){var n=[],r=[];if(t.toLowerCase().includes("row")){var i=Ry(e.frozenGroupInfo[t].range,2),o=i[0],a=i[1];if(n=e.gridInfo.cols,r=xC(o,a,e.viewCellHeights),t===Yv.FROZEN_TRAILING_ROW){var s=e.spreadsheet.frozenTrailingRowGroup.getBBox().minY;r=function(t,e,n,r){var i=xC(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 l=Ry(e.frozenGroupInfo[t].range,2),u=l[0],c=l[1];n=_C(u,c,e.layoutResult.colLeafNodes),r=e.gridInfo.rows}e.spreadsheet["".concat(t,"Group")].updateGrid({cols:n,rows:r},"".concat(t,"Group"))}}))},e}(EC),DC=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return ky(e,t),e.prototype.getDataSet=function(t){var e=t.dataSet,n=t.hierarchyType;return e?e(this):"customTree"===n?new dC(this):new cC(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 cC&&(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 Py(Py(Py(Py({},this.options),n),o),{meta:r,spreadsheet:this,dataSet:this.dataSet,dataCell:null!=a?a:function(e){return new ex(e,t)}})},e.prototype.buildFacet=function(){var t,e=this.getFacetCfgFromDataSetAndOptions();null===(t=this.facet)||void 0===t||t.destroy(),this.facet=new kC(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={hierarchyCollapse:!t,style:{collapsedRows: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()?wh(r):wh(i),s=e.query,l=e.value,u=dc(s),c=l;o&&this.isValueInCols()&&(c=this.dataSet.fields.values[0],u[em]=c);var h={sortFieldId:a,sortMethod:t,sortByMeasure:c,query:u},d=this.dataCfg.sortParams.filter((function(t){return(null==t?void 0:t.sortFieldId)!==a}));this.emit(Hi.RANGE_SORT,Ny(Ny([],Ry(d),!1),[h],!1)),this.setDataCfg(Py(Py({},this.dataCfg),{sortParams:Ny(Ny([],Ry(d),!1),[h],!1)})),this.render()},e.prototype.handleGroupSort=function(t,e){var n=this;t.stopPropagation(),this.interaction.addIntercepts([dy.HOVER]);var r={onClick:function(r){var i=r.key;n.groupSortByMethod(i,e),n.emit(Hi.RANGE_SORTED,t)},menus:nb()};this.showTooltipWithInfo(t,[],{operator:r,onlyMenu:!0})},e}(lC),RC=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return ky(e,t),e}(aC),NC=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.emit(Hi.RANGE_SORT,[i])},e}return ky(e,t),e.prototype.getDataSet=function(t){var e=t.dataSet;return e?e(this):new hC(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:pm,s2:this};e=Ry([_m,xm,wm,Om,Sm,Cm].map((function(t){var e=new RC(Py({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 Py(Py(Py(Py({},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 DS(e,t):new LS(e,t)}})},e.prototype.buildFacet=function(){var t,e=this.getFacetCfgFromDataSetAndOptions();null===(t=this.facet)||void 0===t||t.destroy(),this.facet=new LC(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()},e.prototype.handleGroupSort=function(t,e){var n=this;t.stopPropagation(),this.interaction.addIntercepts([dy.HOVER]);var r={onClick:function(t){return n.onSortTooltipClick(t,e)},menus:eb()};this.showTooltipWithInfo(t,[],{operator:r,onlyMenu:!0})},e}(lC)}.call(this,n(416),n(322),n(2068)(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){(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]],l="[object Arguments]",u="[object Array]",c="[object Boolean]",h="[object Date]",d="[object Error]",f="[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]",M="[object Int16Array]",A="[object Int32Array]",I="[object Uint8Array]",j="[object Uint16Array]",k="[object Uint32Array]",P=/\b__p \+= '';/g,L=/\b(__p \+=) '' \+/g,D=/(__e\(.*?\)|\b__t\)) \+\n'';/g,R=/&(?:amp|lt|gt|quot|#39);/g,N=/[&<>"']/g,F=RegExp(R.source),B=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,$=RegExp(Y.source),X=/^\s+/,q=/\s/,Z=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,K=/\{\n\/\* \[wrapped with (.+)\] \*/,J=/,? & /,Q=/[^\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,lt=/^(?:0|[1-9]\d*)$/,ut=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,ct=/($^)/,ht=/['\n\r\u2028\u2029\\]/g,dt="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",ft="\\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="["+ft+"]",vt="["+dt+"]",mt="\\d+",yt="[\\u2700-\\u27bf]",bt="[a-z\\xdf-\\xf6\\xf8-\\xff]",_t="[^\\ud800-\\udfff"+ft+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+")",Mt="(?:"+vt+"|"+xt+")"+"?",At="[\\ufe0e\\ufe0f]?"+Mt+("(?:\\u200d(?:"+[wt,Ot,St].join("|")+")[\\ufe0e\\ufe0f]?"+Mt+")*"),It="(?:"+[yt,Ot,St].join("|")+")"+At,jt="(?:"+[wt+vt+"?",vt,Ot,St,pt].join("|")+")",kt=RegExp("['’]","g"),Pt=RegExp(vt,"g"),Lt=RegExp(xt+"(?="+xt+")|"+jt+At,"g"),Dt=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"),Rt=RegExp("[\\u200d\\ud800-\\udfff"+dt+"\\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 ]/,Ft=["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"],Bt=-1,zt={};zt[C]=zt[E]=zt[T]=zt[M]=zt[A]=zt[I]=zt["[object Uint8ClampedArray]"]=zt[j]=zt[k]=!0,zt[l]=zt[u]=zt[O]=zt[c]=zt[S]=zt[h]=zt[d]=zt[f]=zt[g]=zt[v]=zt[m]=zt[y]=zt[b]=zt[_]=zt[w]=!1;var Vt={};Vt[l]=Vt[u]=Vt[O]=Vt[S]=Vt[c]=Vt[h]=Vt[C]=Vt[E]=Vt[T]=Vt[M]=Vt[A]=Vt[g]=Vt[v]=Vt[m]=Vt[y]=Vt[b]=Vt[_]=Vt[x]=Vt[I]=Vt["[object Uint8ClampedArray]"]=Vt[j]=Vt[k]=!0,Vt[d]=Vt[f]=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,$t=Wt||Yt||Function("return this")(),Xt=e&&!e.nodeType&&e,qt=Xt&&"object"==typeof r&&r&&!r.nodeType&&r,Zt=qt&&qt.exports===Xt,Kt=Zt&&Wt.process,Jt=function(){try{var t=qt&&qt.require&&qt.require("util").types;return t||Kt&&Kt.binding&&Kt.binding("util")}catch(t){}}(),Qt=Jt&&Jt.isArrayBuffer,te=Jt&&Jt.isDate,ee=Jt&&Jt.isMap,ne=Jt&&Jt.isRegExp,re=Jt&&Jt.isSet,ie=Jt&&Jt.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 le(t,e){for(var n=null==t?0:t.length;n--&&!1!==e(t[n],n,t););return t}function ue(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 de(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 fe(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?Me(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 Me(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 Ae(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,Xe(t)+1).replace(X,""):t}function je(t){return function(e){return t(e)}}function ke(t,e){return fe(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 De(t,e){for(var n=t.length;n--&&xe(e,t[n],0)>-1;);return n}function Re(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"}),Fe=Ee({"&":"&","<":"<",">":">",'"':""","'":"'"});function Be(t){return"\\"+Ut[t]}function ze(t){return Rt.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 $e(t){return ze(t)?function(t){return t.match(Lt)||[]}(t):function(t){return t.split("")}(t)}function Xe(t){for(var e=t.length;e--&&q.test(t.charAt(e)););return e}var qe=Ee({"&":"&","<":"<",">":">",""":'"',"'":"'"});var Ze=function t(e){var n,r=(e=null==e?$t:Ze.defaults($t.Object(),e,Ze.pick($t,Ft))).Array,i=e.Date,q=e.Error,dt=e.Function,ft=e.Math,pt=e.Object,gt=e.RegExp,vt=e.String,mt=e.TypeError,yt=r.prototype,bt=dt.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),Mt=$t._,At=gt("^"+wt.call(Ot).replace(Y,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),It=Zt?e.Buffer:void 0,jt=e.Symbol,Lt=e.Uint8Array,Rt=It?It.allocUnsafe:void 0,Ut=Ue(pt.getPrototypeOf,pt),Wt=pt.create,Yt=_t.propertyIsEnumerable,Xt=yt.splice,qt=jt?jt.isConcatSpreadable:void 0,Kt=jt?jt.iterator:void 0,Jt=jt?jt.toStringTag:void 0,ye=function(){try{var t=to(pt,"defineProperty");return t({},"",{}),t}catch(t){}}(),Ee=e.clearTimeout!==$t.clearTimeout&&e.clearTimeout,Ke=i&&i.now!==$t.Date.now&&i.now,Je=e.setTimeout!==$t.setTimeout&&e.setTimeout,Qe=ft.ceil,tn=ft.floor,en=pt.getOwnPropertySymbols,nn=It?It.isBuffer:void 0,rn=e.isFinite,on=yt.join,an=Ue(pt.keys,pt),sn=ft.max,ln=ft.min,un=i.now,cn=e.parseInt,hn=ft.random,dn=yt.reverse,fn=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=Mo(fn),wn=Mo(pn),On=Mo(gn),Sn=Mo(vn),Cn=Mo(mn),En=jt?jt.prototype:void 0,Tn=En?En.valueOf:void 0,Mn=En?En.toString:void 0;function An(t){if(Wa(t)&&!La(t)&&!(t instanceof Pn)){if(t instanceof kn)return t;if(Ot.call(t,"__wrapped__"))return Ao(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 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 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 Nn(t){var e=-1,n=null==t?0:t.length;for(this.__data__=new Rn;++e<n;)this.add(t[e])}function Fn(t){var e=this.__data__=new Dn(t);this.size=e.size}function Bn(t,e){var n=La(t),r=!n&&Pa(t),i=!n&&!r&&Fa(t),o=!n&&!r&&!i&&Qa(t),a=n||r||i||o,s=a?Ae(t.length,vt):[],l=s.length;for(var u in t)!e&&!Ot.call(t,u)||a&&("length"==u||i&&("offset"==u||"parent"==u)||o&&("buffer"==u||"byteLength"==u||"byteOffset"==u)||so(u,l))||s.push(u);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))&&Xn(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)||Xn(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 $n(t,e){return t&&bi(e,xs(e),t)}function Xn(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,u=2&e,d=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==f||P==p;if(Fa(t))return di(t,s);if(P==m||P==l||L&&!i){if(a=u||L?{}:oo(t),!s)return u?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,$n(a,t))}else{if(!Vt[P])return i?t:{};a=function(t,e,n){var r=t.constructor;switch(e){case O:return fi(t);case c:case h:return new r(+t);case S:return function(t,e){var n=e?fi(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)}(t,n);case C:case E:case T:case M:case A: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 Fn);var D=o.get(t);if(D)return D;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 R=w?void 0:(d?u?$i:Yi:u?ws:xs)(t);return se(R||t,(function(r,i){R&&(r=t[i=r]),Hn(a,i,Kn(r,e,n,i,t,o))})),a}function Jn(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 Qn(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,l=[],u=e.length;if(!s)return l;n&&(e=fe(e,je(n))),r?(o=de,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 d=u;d--;)if(e[d]===h)continue t;l.push(c)}else o(e,h,r)||l.push(c)}return l}An.templateSettings={escape:z,evaluate:V,interpolate:U,variable:"",imports:{_:An}},An.prototype=jn.prototype,An.prototype.constructor=An,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},Dn.prototype.clear=function(){this.__data__=[],this.size=0},Dn.prototype.delete=function(t){var e=this.__data__,n=Wn(e,t);return!(n<0)&&(n==e.length-1?e.pop():Xt.call(e,n,1),--this.size,!0)},Dn.prototype.get=function(t){var e=this.__data__,n=Wn(e,t);return n<0?void 0:e[n][1]},Dn.prototype.has=function(t){return Wn(this.__data__,t)>-1},Dn.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},Rn.prototype.clear=function(){this.size=0,this.__data__={hash:new Ln,map:new(pn||Dn),string:new Ln}},Rn.prototype.delete=function(t){var e=Ji(this,t).delete(t);return this.size-=e?1:0,e},Rn.prototype.get=function(t){return Ji(this,t).get(t)},Rn.prototype.has=function(t){return Ji(this,t).has(t)},Rn.prototype.set=function(t,e){var n=Ji(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)},Fn.prototype.clear=function(){this.__data__=new Dn,this.size=0},Fn.prototype.delete=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n},Fn.prototype.get=function(t){return this.__data__.get(t)},Fn.prototype.has=function(t){return this.__data__.has(t)},Fn.prototype.set=function(t,e){var n=this.__data__;if(n instanceof Dn){var r=n.__data__;if(!pn||r.length<199)return r.push([t,e]),this.size=++n.size,this;n=this.__data__=new Rn(r)}return n.set(t,e),this.size=n.size,this};var er=wi(ur),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&&!Ja(a):n(a,s)))var s=a,l=o}return l}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(),lr=Oi(!0);function ur(t,e){return t&&sr(t,e,xs)}function cr(t,e){return t&&lr(t,e,xs)}function hr(t,e){return ce(e,(function(e){return Va(t[e])}))}function dr(t,e){for(var n=0,r=(e=li(e,t)).length;null!=t&&n<r;)t=t[To(e[n++])];return n&&n==r?t:void 0}function fr(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]":Jt&&Jt in pt(t)?function(t){var e=Ot.call(t,Jt),n=t[Jt];try{t[Jt]=void 0;var r=!0}catch(t){}var i=Et.call(t);r&&(e?t[Jt]=n:delete t[Jt]);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?de:he,o=t[0].length,a=t.length,s=a,l=r(a),u=1/0,c=[];s--;){var h=t[s];s&&e&&(h=fe(h,je(e))),u=ln(h.length,u),l[s]=!n&&(e||o>=120&&h.length>=120)?new Nn(s&&h):void 0}h=t[0];var d=-1,f=l[0];t:for(;++d<o&&c.length<u;){var p=h[d],g=e?e(p):p;if(p=n||0!==p?p:0,!(f?Pe(f,g):i(c,g,n))){for(s=a;--s;){var v=l[s];if(!(v?Pe(v,g):i(t[s],g,n)))continue t}f&&f.push(g),c.push(p)}}return c}function br(t,e,n){var r=null==(t=mo(t,e=li(e,t)))?t:t[To(zo(e))];return null==r?void 0:oe(r,t,n)}function _r(t){return Wa(t)&&pr(t)==l}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),f=a?u:ro(t),p=s?u:ro(e),w=(f=f==l?m:f)==m,C=(p=p==l?m:p)==m,E=f==p;if(E&&Fa(t)){if(!Fa(e))return!1;a=!0,w=!1}if(E&&!w)return o||(o=new Fn),a||Qa(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 d:return t.name==e.name&&t.message==e.message;case y:case _:return t==e+"";case g:var s=Ve;case b:var l=1&r;if(s||(s=He),t.size!=e.size&&!l)return!1;var u=a.get(t);if(u)return u==e;r|=2,a.set(t,e);var f=Hi(s(t),s(e),r,i,o,a);return a.delete(t),f;case x:if(Tn)return Tn.call(t)==Tn.call(e)}return!1}(t,e,f,n,r,i,o);if(!(1&n)){var T=w&&Ot.call(t,"__wrapped__"),M=C&&Ot.call(e,"__wrapped__");if(T||M){var A=T?t.value():t,I=M?e.value():e;return o||(o=new Fn),i(A,I,n,r,o)}}if(!E)return!1;return o||(o=new Fn),function(t,e,n,r,i,o){var a=1&n,s=Yi(t),l=s.length,u=Yi(e).length;if(l!=u&&!a)return!1;var c=l;for(;c--;){var h=s[c];if(!(a?h in e:Ot.call(e,h)))return!1}var d=o.get(t),f=o.get(e);if(d&&f)return d==e&&f==t;var p=!0;o.set(t,e),o.set(e,t);var g=a;for(;++c<l;){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 l=(s=n[i])[0],u=t[l],c=s[1];if(a&&s[2]){if(void 0===u&&!(l in t))return!1}else{var h=new Fn;if(r)var d=r(u,c,l,t,e,h);if(!(void 0===d?xr(c,u,3,r,h):d))return!1}}return!0}function Or(t){return!(!Ha(t)||(e=t,Ct&&Ct in e))&&(Va(t)?At:at).test(Mo(t));var e}function Sr(t){return"function"==typeof t?t:null==t?$s:"object"==typeof t?La(t)?Ir(t[0],t[1]):Ar(t):nl(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 Mr(t,e){var n=-1,i=Ra(t)?r(t.length):[];return er(t,(function(t,r,o){i[++n]=e(t,r,o)})),i}function Ar(t){var e=Qi(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 uo(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 Fn),Ha(o))!function(t,e,n,r,i,o,a){var s=bo(t,n),l=bo(e,n),u=a.get(l);if(u)return void Gn(t,n,u);var c=o?o(s,l,n+"",t,e,a):void 0,h=void 0===c;if(h){var d=La(l),f=!d&&Fa(l),p=!d&&!f&&Qa(l);c=l,d||f||p?La(s)?c=s:Na(s)?c=yi(s):f?(h=!1,c=di(l,!0)):p?(h=!1,c=pi(l,!0)):c=[]:Xa(l)||Pa(l)?(c=s,Pa(s)?c=ss(s):Ha(s)&&!Va(s)||(c=oo(l))):h=!1}h&&(a.set(l,c),i(c,l,r,o,a),a.delete(l));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?fe(e,(function(t){return La(t)?function(e){return dr(e,1===t.length?t[0]:t)}:t})):[$s];var r=-1;return e=fe(e,je(Ki())),function(t,e){var n=t.length;for(t.sort(e);n--;)t[n]=t[n].value;return t}(Mr(t,(function(t,n,i){return{criteria:fe(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 l=gi(i[r],o[r]);if(l){if(r>=s)return l;var u=n[r];return l*("desc"==u?-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=dr(t,a);n(s,a)&&Ur(o,li(a,t),s)}return o}function Dr(t,e,n,r){var i=r?we:xe,o=-1,a=e.length,s=t;for(t===e&&(e=yi(e)),n&&(s=fe(t,je(n)));++o<a;)for(var l=0,u=e[o],c=n?n(u):u;(l=i(s,c,l,r))>-1;)s!==t&&Xt.call(s,l,1),Xt.call(t,l,1);return t}function Rr(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)?Xt.call(t,i,1):ti(t,i)}}return t}function Nr(t,e){return t+tn(hn()*(e-t+1))}function Fr(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 Br(t,e){return wo(vo(t,e,$s),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=li(e,t)).length,a=o-1,s=t;null!=s&&++i<o;){var l=To(e[i]),u=n;if("__proto__"===l||"constructor"===l||"prototype"===l)return t;if(i!=a){var c=s[l];void 0===(u=r?r(c,l,s):void 0)&&(u=Ha(c)?c:so(e[i+1])?[]:{})}Hn(s,l,u),s=s[l]}return t}var Gr=bn?function(t,e){return bn.set(t,e),t}:$s,Hr=ye?function(t,e){return ye(t,"toString",{configurable:!0,enumerable:!1,value:Hs(e),writable:!0})}:$s;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 $r(t,e){var n;return er(t,(function(t,r,i){return!(n=e(t,r,i))})),!!n}function Xr(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&&!Ja(a)&&(n?a<=e:a<e)?r=o+1:i=o}return i}return qr(t,e,$s,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,l=Ja(e),u=void 0===e;i<o;){var c=tn((i+o)/2),h=n(t[c]),d=void 0!==h,f=null===h,p=h==h,g=Ja(h);if(a)var v=r||p;else v=u?p&&(r||d):s?p&&d&&(r||!f):l?p&&d&&!f&&(r||!g):!f&&!g&&(r?h<=e:h<e);v?i=c+1:o=c}return ln(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,l)){var l=s;o[i++]=0===a?0:a}}return o}function Kr(t){return"number"==typeof t?t:Ja(t)?NaN:+t}function Jr(t){if("string"==typeof t)return t;if(La(t))return fe(t,Jr)+"";if(Ja(t))return Mn?Mn.call(t):"";var e=t+"";return"0"==e&&1/t==-1/0?"-0":e}function Qr(t,e,n){var r=-1,i=he,o=t.length,a=!0,s=[],l=s;if(n)a=!1,i=de;else if(o>=200){var u=e?null:Fi(t);if(u)return He(u);a=!1,i=Pe,l=new Nn}else l=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 d=l.length;d--;)if(l[d]===h)continue t;e&&l.push(h),s.push(c)}else i(l,h,n)||(l!==s&&l.push(h),s.push(c))}return s}function ti(t,e){return null==(t=mo(t,e=li(e,t)))||delete t[To(zo(e))]}function ei(t,e,n,r){return Ur(t,e,n(dr(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?Qr(t[0]):[];for(var o=-1,a=r(i);++o<i;)for(var s=t[o],l=-1;++l<i;)l!=o&&(a[o]=tr(a[o]||s,t[l],e,n));return Qr(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:$s}function li(t,e){return La(t)?t:uo(t,e)?[t]:Eo(ls(t))}var ui=Br;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 $t.clearTimeout(t)};function di(t,e){if(e)return t.slice();var n=t.length,r=Rt?Rt(n):new t.constructor(n);return t.copy(r),r}function fi(t){var e=new t.constructor(t.byteLength);return new Lt(e).set(new Lt(t)),e}function pi(t,e){var n=e?fi(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=Ja(t),a=void 0!==e,s=null===e,l=e==e,u=Ja(e);if(!s&&!u&&!o&&t>e||o&&a&&l&&!s&&!u||r&&a&&l||!n&&l||!i)return 1;if(!r&&!o&&!u&&t<e||u&&n&&i&&!r&&!o||s&&n&&i||!a&&i||!l)return-1}return 0}function vi(t,e,n,i){for(var o=-1,a=t.length,s=n.length,l=-1,u=e.length,c=sn(a-s,0),h=r(u+c),d=!i;++l<u;)h[l]=e[l];for(;++o<s;)(d||o<a)&&(h[n[o]]=t[o]);for(;c--;)h[l++]=t[o++];return h}function mi(t,e,n,i){for(var o=-1,a=t.length,s=-1,l=n.length,u=-1,c=e.length,h=sn(a-l,0),d=r(h+c),f=!i;++o<h;)d[o]=t[o];for(var p=o;++u<c;)d[p+u]=e[u];for(;++s<l;)(f||o<a)&&(d[p+n[s]]=t[o++]);return d}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],l=r?r(n[s],t[s],s,n,t):void 0;void 0===l&&(l=t[s]),i?Xn(n,s,l):Hn(n,s,l)}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 Br((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&&lo(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(!Ra(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 l=a[t?s:++i];if(!1===n(o[l],l,o))break}return e}}function Si(t){return function(e){var n=ze(e=ls(e))?$e(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(!Ra(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 Mi(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 l=qi(a=e[r]),u="wrapper"==l?Xi(a):void 0;s=u&&co(u[0])&&424==u[1]&&!u[4].length&&1==u[9]?s[qi(u[0])].apply(s,u[3]):1==a.length&&co(a)?s[l]():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 Ai(t,e,n,i,o,a,s,l,u,c){var h=128&e,d=1&e,f=2&e,p=24&e,g=512&e,v=f?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=Re(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 Ri(t,e,Ai,m.placeholder,n,b,O,l,u,c-y)}var S=d?n:this,C=f?S[t]:t;return y=b.length,l?b=yo(b,l):g&&y>1&&b.reverse(),h&&u<y&&(b.length=u),this&&this!==$t&&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 ur(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=Jr(n),r=Jr(r)):(n=Kr(n),r=Kr(r)),i=t(n,r)}return i}}function ki(t){return Wi((function(e){return e=fe(e,je(Ki())),Br((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?" ":Jr(e)).length;if(n<2)return n?Fr(e,t):e;var r=Fr(e,Qe(t/Ye(e)));return ze(e)?ci($e(r),0,t).join(""):r.slice(0,t)}function Li(t){return function(e,n,i){return i&&"number"!=typeof i&&lo(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(Qe((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 Di(t){return function(e,n){return"string"==typeof e&&"string"==typeof n||(e=as(e),n=as(n)),t(e,n)}}function Ri(t,e,n,r,i,o,a,s,l,u){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,l,u],d=n.apply(void 0,h);return co(t)&&_o(d,h),d.placeholder=r,Oo(d,t,e)}function Ni(t){var e=ft[t];return function(t,n){if(t=as(t),(n=null==n?0:ln(is(n),292))&&rn(t)){var r=(ls(t)+"e").split("e");return+((r=(ls(e(r[0]+"e"+(+r[1]+n)))+"e").split("e"))[0]+"e"+(+r[1]-n))}return e(t)}}var Fi=vn&&1/He(new vn([,-0]))[1]==1/0?function(t){return new vn(t)}:Js;function Bi(t){return function(e){var n=ro(e);return n==g?Ve(e):n==b?We(e):function(t,e){return fe(e,(function(e){return[e,t[e]]}))}(e,t(e))}}function zi(t,e,n,i,s,l,u,c){var h=2&e;if(!h&&"function"!=typeof t)throw new mt(o);var d=i?i.length:0;if(d||(e&=-97,i=s=void 0),u=void 0===u?u:sn(is(u),0),c=void 0===c?c:is(c),d-=s?s.length:0,64&e){var f=i,p=s;i=s=void 0}var g=h?void 0:Xi(t),v=[t,e,n,i,s,f,p,l,u,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 l=e[3];if(l){var u=t[3];t[3]=u?vi(u,l,e[4]):l,t[4]=u?Ge(t[3],a):e[4]}(l=e[5])&&(u=t[5],t[5]=u?mi(u,l,e[6]):l,t[6]=u?Ge(t[5],a):e[6]);(l=e[7])&&(t[7]=l);128&r&&(t[8]=null==t[8]?e[8]:ln(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]-d,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),l=a,u=Zi(o);l--;)s[l]=arguments[l];var c=a<3&&s[0]!==u&&s[a-1]!==u?[]:Ge(s,u);if((a-=c.length)<n)return Ri(t,e,Ai,o.placeholder,void 0,s,c,void 0,void 0,n-a);var h=this&&this!==$t&&this instanceof o?i:t;return oe(h,this,s)}}(t,e,c):32!=e&&33!=e||s.length?Ai.apply(void 0,v):function(t,e,n,i){var o=1&e,a=Ei(t);return function e(){for(var s=-1,l=arguments.length,u=-1,c=i.length,h=r(c+l),d=this&&this!==$t&&this instanceof e?a:t;++u<c;)h[u]=i[u];for(;l--;)h[u++]=arguments[++s];return oe(d,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!==$t&&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 Xa(t)?void 0:t}function Hi(t,e,n,r,i,o){var a=1&n,s=t.length,l=e.length;if(s!=l&&!(a&&l>s))return!1;var u=o.get(t),c=o.get(e);if(u&&c)return u==e&&c==t;var h=-1,d=!0,f=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;d=!1;break}if(f){if(!me(e,(function(t,e){if(!Pe(f,e)&&(p===t||i(p,t,n,r,o)))return f.push(e)}))){d=!1;break}}else if(p!==g&&!i(p,g,n,r,o)){d=!1;break}}return o.delete(t),o.delete(e),d}function Wi(t){return wo(vo(t,void 0,Do),t+"")}function Yi(t){return fr(t,xs,eo)}function $i(t){return fr(t,ws,no)}var Xi=bn?function(t){return bn.get(t)}:Js;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(An,"placeholder")?An:t).placeholder}function Ki(){var t=An.iteratee||Xs;return t=t===Xs?Sr:t,arguments.length?t(arguments[0],arguments[1]):t}function Ji(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 Qi(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)})))}:ol,no=en?function(t){for(var e=[];t;)pe(e,eo(t)),t=Ut(t);return e}:ol,ro=pr;function io(t,e,n){for(var r=-1,i=(e=li(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&<.test(t))&&t>-1&&t%1==0&&t<e}function lo(t,e,n){if(!Ha(n))return!1;var r=typeof e;return!!("number"==r?Ra(n)&&so(e,n.length):"string"==r&&e in n)&&Ia(n[e],t)}function uo(t,e){if(La(t))return!1;var n=typeof t;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!Ja(t))||(H.test(t)||!G.test(t)||null!=e&&t in pt(e))}function co(t){var e=qi(t),n=An[e];if("function"!=typeof n||!(e in Pn.prototype))return!1;if(t===n)return!0;var r=Xi(n);return!!r&&t===r[0]}(fn&&ro(new fn(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?Mo(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:al;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 l=r(e+1);++o<e;)l[o]=i[o];return l[e]=n(s),oe(t,this,l)}}function mo(t,e){return e.length<2?t:dr(t,Yr(e,0,-1))}function yo(t,e){for(var n=t.length,r=ln(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=Je||function(t,e){return $t.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(J):[]}(r),n)))}function So(t){var e=0,n=0;return function(){var r=un(),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||Ja(t))return t;var e=t+"";return"0"==e&&1/t==-1/0?"-0":e}function Mo(t){if(null!=t){try{return wt.call(t)}catch(t){}try{return t+""}catch(t){}}return""}function Ao(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=Br((function(t,e){return Na(t)?tr(t,ar(e,1,Na,!0)):[]})),jo=Br((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=Br((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):ln(i,r-1)),_e(t,Ki(e,3),i,!0)}function Do(t){return(null==t?0:t.length)?ar(t,1):[]}function Ro(t){return t&&t.length?t[0]:void 0}var No=Br((function(t){var e=fe(t,ai);return e.length&&e[0]===t[0]?yr(e):[]})),Fo=Br((function(t){var e=zo(t),n=fe(t,ai);return e===zo(n)?e=void 0:n.pop(),n.length&&n[0]===t[0]?yr(n,Ki(e,2)):[]})),Bo=Br((function(t){var e=zo(t),n=fe(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=Br(Uo);function Uo(t,e){return t&&t.length&&e&&e.length?Dr(t,e):t}var Go=Wi((function(t,e){var n=null==t?0:t.length,r=qn(t,e);return Rr(t,fe(e,(function(t){return so(t,n)?+t:t})).sort(gi)),r}));function Ho(t){return null==t?t:dn.call(t)}var Wo=Br((function(t){return Qr(ar(t,1,Na,!0))})),Yo=Br((function(t){var e=zo(t);return Na(e)&&(e=void 0),Qr(ar(t,1,Na,!0),Ki(e,2))})),$o=Br((function(t){var e=zo(t);return e="function"==typeof e?e:void 0,Qr(ar(t,1,Na,!0),void 0,e)}));function Xo(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})),Ae(e,(function(e){return fe(t,Ce(e))}))}function qo(t,e){if(!t||!t.length)return[];var n=Xo(t);return null==e?n:fe(n,(function(t){return oe(e,void 0,t)}))}var Zo=Br((function(t,e){return Na(t)?tr(t,e):[]})),Ko=Br((function(t){return ii(ce(t,Na))})),Jo=Br((function(t){var e=zo(t);return Na(e)&&(e=void 0),ii(ce(t,Na),Ki(e,2))})),Qo=Br((function(t){var e=zo(t);return e="function"==typeof e?e:void 0,ii(ce(t,Na),void 0,e)})),ta=Br(Xo);var ea=Br((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=An(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]:Xn(t,n,1)}));var aa=Ti(Po),sa=Ti(Lo);function la(t,e){return(La(t)?se:er)(t,Ki(e,3))}function ua(t,e){return(La(t)?le:nr)(t,Ki(e,3))}var ca=_i((function(t,e,n){Ot.call(t,n)?t[n].push(e):Xn(t,n,[e])}));var ha=Br((function(t,e,n){var i=-1,o="function"==typeof e,a=Ra(t)?r(t.length):[];return er(t,(function(t){a[++i]=o?oe(e,t,n):br(t,e,n)})),a})),da=_i((function(t,e,n){Xn(t,n,e)}));function fa(t,e){return(La(t)?fe:Mr)(t,Ki(e,3))}var pa=_i((function(t,e,n){t[n?0:1].push(e)}),(function(){return[[],[]]}));var ga=Br((function(t,e){if(null==t)return[];var n=e.length;return n>1&&lo(t,e[0],e[1])?e=[]:n>2&&lo(e[0],e[1],e[2])&&(e=[e[0]]),Pr(t,ar(e,1),[])})),va=Ke||function(){return $t.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=Br((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=Br((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,l,u,c=0,h=!1,d=!1,f=!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,l=xo(m,e),h?p(t):s}function v(t){var n=t-u;return void 0===u||n>=e||n<0||d&&t-c>=a}function m(){var t=va();if(v(t))return y(t);l=xo(m,function(t){var n=e-(t-u);return d?ln(n,a-(t-c)):n}(t))}function y(t){return l=void 0,f&&r?p(t):(r=i=void 0,s)}function b(){var t=va(),n=v(t);if(r=arguments,i=this,u=t,n){if(void 0===l)return g(u);if(d)return hi(l),l=xo(m,e),p(u)}return void 0===l&&(l=xo(m,e)),s}return e=as(e)||0,Ha(n)&&(h=!!n.leading,a=(d="maxWait"in n)?sn(as(n.maxWait)||0,e):a,f="trailing"in n?!!n.trailing:f),b.cancel=function(){void 0!==l&&hi(l),c=0,r=u=i=l=void 0},b.flush=function(){return void 0===l?s:y(va())},b}var wa=Br((function(t,e){return Qn(t,1,e)})),Oa=Br((function(t,e,n){return Qn(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||Rn),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=Rn;var Ea=ui((function(t,e){var n=(e=1==e.length&&La(e[0])?fe(e[0],je(Ki())):fe(ar(e,1),je(Ki()))).length;return Br((function(r){for(var i=-1,o=ln(r.length,n);++i<o;)r[i]=e[i].call(this,r[i]);return oe(t,this,r)}))})),Ta=Br((function(t,e){return zi(t,32,void 0,e,Ge(e,Zi(Ta)))})),Ma=Br((function(t,e){return zi(t,64,void 0,e,Ge(e,Zi(Ma)))})),Aa=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=Di(gr),ka=Di((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,Da=Qt?je(Qt):function(t){return Wa(t)&&pr(t)==O};function Ra(t){return null!=t&&Ga(t.length)&&!Va(t)}function Na(t){return Wa(t)&&Ra(t)}var Fa=nn||al,Ba=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==d||"[object DOMException]"==e||"string"==typeof t.message&&"string"==typeof t.name&&!Xa(t)}function Va(t){if(!Ha(t))return!1;var e=pr(t);return e==f||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 $a(t){return"number"==typeof t||Wa(t)&&pr(t)==v}function Xa(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 Ja(t){return"symbol"==typeof t||Wa(t)&&pr(t)==x}var Qa=ie?je(ie):function(t){return Wa(t)&&Ga(t.length)&&!!zt[pr(t)]};var ts=Di(Tr),es=Di((function(t,e){return t<=e}));function ns(t){if(!t)return[];if(Ra(t))return Ka(t)?$e(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(Ja(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 ls(t){return null==t?"":Jr(t)}var us=xi((function(t,e){if(fo(e)||Ra(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)})),ds=xi((function(t,e,n,r){bi(e,xs(e),t,r)})),fs=Wi(qn);var ps=Br((function(t,e){t=pt(t);var n=-1,r=e.length,i=r>2?e[2]:void 0;for(i&&lo(e[0],e[1],i)&&(r=1);++n<r;)for(var o=e[n],a=ws(o),s=-1,l=a.length;++s<l;){var u=a[s],c=t[u];(void 0===c||Ia(c,_t[u])&&!Ot.call(t,u))&&(t[u]=o[u])}return t})),gs=Br((function(t){return t.push(void 0,Ui),oe(Ss,void 0,t)}));function vs(t,e,n){var r=null==t?void 0:dr(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($s)),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=Br(br);function xs(t){return Ra(t)?Bn(t):Cr(t)}function ws(t){return Ra(t)?Bn(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=fe(e,(function(e){return e=li(e,t),r||(r=e.length>1),e})),bi(t,$i(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=fe($i(t),(function(t){return[t]}));return e=Ki(e),Lr(t,n,(function(t,n){return e(t,n[0])}))}var Ms=Bi(xs),As=Bi(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(ls(t).toLowerCase())}function Ps(t){return(t=ls(t))&&t.replace(ut,Ne).replace(Pt,"")}var Ls=Ci((function(t,e,n){return t+(n?"-":"")+e.toLowerCase()})),Ds=Ci((function(t,e,n){return t+(n?" ":"")+e.toLowerCase()})),Rs=Si("toLowerCase");var Ns=Ci((function(t,e,n){return t+(n?"_":"")+e.toLowerCase()}));var Fs=Ci((function(t,e,n){return t+(n?" ":"")+zs(e)}));var Bs=Ci((function(t,e,n){return t+(n?" ":"")+e.toUpperCase()})),zs=Si("toUpperCase");function Vs(t,e,n){return t=ls(t),void 0===(e=n?void 0:e)?function(t){return Nt.test(t)}(t)?function(t){return t.match(Dt)||[]}(t):function(t){return t.match(Q)||[]}(t):t.match(e)||[]}var Us=Br((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),Xn(t,e,ba(t[e],t))})),t}));function Hs(t){return function(){return t}}var Ws=Mi(),Ys=Mi(!0);function $s(t){return t}function Xs(t){return Sr("function"==typeof t?t:Kn(t,1))}var qs=Br((function(t,e){return function(n){return br(n,t,e)}})),Zs=Br((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 Js(){}var Qs=ki(fe),tl=ki(ue),el=ki(me);function nl(t){return uo(t)?Ce(To(t)):function(t){return function(e){return dr(e,t)}}(t)}var rl=Li(),il=Li(!0);function ol(){return[]}function al(){return!1}var sl=ji((function(t,e){return t+e}),0),ll=Ni("ceil"),ul=ji((function(t,e){return t/e}),1),cl=Ni("floor");var hl,dl=ji((function(t,e){return t*e}),1),fl=Ni("round"),pl=ji((function(t,e){return t-e}),0);return An.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)}},An.ary=ma,An.assign=us,An.assignIn=cs,An.assignInWith=hs,An.assignWith=ds,An.at=fs,An.before=ya,An.bind=ba,An.bindAll=Gs,An.bindKey=_a,An.castArray=function(){if(!arguments.length)return[];var t=arguments[0];return La(t)?t:[t]},An.chain=na,An.chunk=function(t,e,n){e=(n?lo(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(Qe(i/e));o<i;)s[a++]=Yr(t,o,o+=e);return s},An.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},An.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))},An.cond=function(t){var e=null==t?0:t.length,n=Ki();return t=e?fe(t,(function(t){if("function"!=typeof t[1])throw new mt(o);return[n(t[0]),t[1]]})):[],Br((function(n){for(var r=-1;++r<e;){var i=t[r];if(oe(i[0],this,n))return oe(i[1],this,n)}}))},An.conforms=function(t){return function(t){var e=xs(t);return function(n){return Jn(n,t,e)}}(Kn(t,1))},An.constant=Hs,An.countBy=oa,An.create=function(t,e){var n=In(t);return null==e?n:$n(n,e)},An.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},An.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},An.debounce=xa,An.defaults=ps,An.defaultsDeep=gs,An.defer=wa,An.delay=Oa,An.difference=Io,An.differenceBy=jo,An.differenceWith=ko,An.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):[]},An.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):[]},An.dropRightWhile=function(t,e){return t&&t.length?ni(t,Ki(e,3),!0,!0):[]},An.dropWhile=function(t,e){return t&&t.length?ni(t,Ki(e,3),!0):[]},An.fill=function(t,e,n,r){var i=null==t?0:t.length;return i?(n&&"number"!=typeof n&&lo(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)):[]},An.filter=function(t,e){return(La(t)?ce:or)(t,Ki(e,3))},An.flatMap=function(t,e){return ar(fa(t,e),1)},An.flatMapDeep=function(t,e){return ar(fa(t,e),1/0)},An.flatMapDepth=function(t,e,n){return n=void 0===n?1:is(n),ar(fa(t,e),n)},An.flatten=Do,An.flattenDeep=function(t){return(null==t?0:t.length)?ar(t,1/0):[]},An.flattenDepth=function(t,e){return(null==t?0:t.length)?ar(t,e=void 0===e?1:is(e)):[]},An.flip=function(t){return zi(t,512)},An.flow=Ws,An.flowRight=Ys,An.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},An.functions=function(t){return null==t?[]:hr(t,xs(t))},An.functionsIn=function(t){return null==t?[]:hr(t,ws(t))},An.groupBy=ca,An.initial=function(t){return(null==t?0:t.length)?Yr(t,0,-1):[]},An.intersection=No,An.intersectionBy=Fo,An.intersectionWith=Bo,An.invert=ys,An.invertBy=bs,An.invokeMap=ha,An.iteratee=Xs,An.keyBy=da,An.keys=xs,An.keysIn=ws,An.map=fa,An.mapKeys=function(t,e){var n={};return e=Ki(e,3),ur(t,(function(t,r,i){Xn(n,e(t,r,i),t)})),n},An.mapValues=function(t,e){var n={};return e=Ki(e,3),ur(t,(function(t,r,i){Xn(n,r,e(t,r,i))})),n},An.matches=function(t){return Ar(Kn(t,1))},An.matchesProperty=function(t,e){return Ir(t,Kn(e,1))},An.memoize=Sa,An.merge=Os,An.mergeWith=Ss,An.method=qs,An.methodOf=Zs,An.mixin=Ks,An.negate=Ca,An.nthArg=function(t){return t=is(t),Br((function(e){return kr(e,t)}))},An.omit=Cs,An.omitBy=function(t,e){return Ts(t,Ca(Ki(e)))},An.once=function(t){return ya(2,t)},An.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))},An.over=Qs,An.overArgs=Ea,An.overEvery=tl,An.overSome=el,An.partial=Ta,An.partialRight=Ma,An.partition=pa,An.pick=Es,An.pickBy=Ts,An.property=nl,An.propertyOf=function(t){return function(e){return null==t?void 0:dr(t,e)}},An.pull=Vo,An.pullAll=Uo,An.pullAllBy=function(t,e,n){return t&&t.length&&e&&e.length?Dr(t,e,Ki(n,2)):t},An.pullAllWith=function(t,e,n){return t&&t.length&&e&&e.length?Dr(t,e,void 0,n):t},An.pullAt=Go,An.range=rl,An.rangeRight=il,An.rearg=Aa,An.reject=function(t,e){return(La(t)?ce:or)(t,Ca(Ki(e,3)))},An.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 Rr(t,i),n},An.rest=function(t,e){if("function"!=typeof t)throw new mt(o);return Br(t,e=void 0===e?e:is(e))},An.reverse=Ho,An.sampleSize=function(t,e,n){return e=(n?lo(t,e,n):void 0===e)?1:is(e),(La(t)?Vn:Vr)(t,e)},An.set=function(t,e,n){return null==t?t:Ur(t,e,n)},An.setWith=function(t,e,n,r){return r="function"==typeof r?r:void 0,null==t?t:Ur(t,e,n,r)},An.shuffle=function(t){return(La(t)?Un:Wr)(t)},An.slice=function(t,e,n){var r=null==t?0:t.length;return r?(n&&"number"!=typeof n&&lo(t,e,n)?(e=0,n=r):(e=null==e?0:is(e),n=void 0===n?r:is(n)),Yr(t,e,n)):[]},An.sortBy=ga,An.sortedUniq=function(t){return t&&t.length?Zr(t):[]},An.sortedUniqBy=function(t,e){return t&&t.length?Zr(t,Ki(e,2)):[]},An.split=function(t,e,n){return n&&"number"!=typeof n&&lo(t,e,n)&&(e=n=void 0),(n=void 0===n?4294967295:n>>>0)?(t=ls(t))&&("string"==typeof e||null!=e&&!qa(e))&&!(e=Jr(e))&&ze(t)?ci($e(t),0,n):t.split(e,n):[]},An.spread=function(t,e){if("function"!=typeof t)throw new mt(o);return e=null==e?0:sn(is(e),0),Br((function(n){var r=n[e],i=ci(n,0,e);return r&&pe(i,r),oe(t,this,i)}))},An.tail=function(t){var e=null==t?0:t.length;return e?Yr(t,1,e):[]},An.take=function(t,e,n){return t&&t.length?Yr(t,0,(e=n||void 0===e?1:is(e))<0?0:e):[]},An.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):[]},An.takeRightWhile=function(t,e){return t&&t.length?ni(t,Ki(e,3),!1,!0):[]},An.takeWhile=function(t,e){return t&&t.length?ni(t,Ki(e,3)):[]},An.tap=function(t,e){return e(t),t},An.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})},An.thru=ra,An.toArray=ns,An.toPairs=Ms,An.toPairsIn=As,An.toPath=function(t){return La(t)?fe(t,To):Ja(t)?[t]:yi(Eo(ls(t)))},An.toPlainObject=ss,An.transform=function(t,e,n){var r=La(t),i=r||Fa(t)||Qa(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:ur)(t,(function(t,r,i){return e(n,t,r,i)})),n},An.unary=function(t){return ma(t,1)},An.union=Wo,An.unionBy=Yo,An.unionWith=$o,An.uniq=function(t){return t&&t.length?Qr(t):[]},An.uniqBy=function(t,e){return t&&t.length?Qr(t,Ki(e,2)):[]},An.uniqWith=function(t,e){return e="function"==typeof e?e:void 0,t&&t.length?Qr(t,void 0,e):[]},An.unset=function(t,e){return null==t||ti(t,e)},An.unzip=Xo,An.unzipWith=qo,An.update=function(t,e,n){return null==t?t:ei(t,e,si(n))},An.updateWith=function(t,e,n,r){return r="function"==typeof r?r:void 0,null==t?t:ei(t,e,si(n),r)},An.values=Is,An.valuesIn=function(t){return null==t?[]:ke(t,ws(t))},An.without=Zo,An.words=Vs,An.wrap=function(t,e){return Ta(si(e),t)},An.xor=Ko,An.xorBy=Jo,An.xorWith=Qo,An.zip=ta,An.zipObject=function(t,e){return oi(t||[],e||[],Hn)},An.zipObjectDeep=function(t,e){return oi(t||[],e||[],Ur)},An.zipWith=ea,An.entries=Ms,An.entriesIn=As,An.extend=cs,An.extendWith=hs,Ks(An,An),An.add=sl,An.attempt=Us,An.camelCase=js,An.capitalize=ks,An.ceil=ll,An.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)},An.clone=function(t){return Kn(t,4)},An.cloneDeep=function(t){return Kn(t,5)},An.cloneDeepWith=function(t,e){return Kn(t,5,e="function"==typeof e?e:void 0)},An.cloneWith=function(t,e){return Kn(t,4,e="function"==typeof e?e:void 0)},An.conformsTo=function(t,e){return null==e||Jn(t,e,xs(e))},An.deburr=Ps,An.defaultTo=function(t,e){return null==t||t!=t?e:t},An.divide=ul,An.endsWith=function(t,e,n){t=ls(t),e=Jr(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},An.eq=Ia,An.escape=function(t){return(t=ls(t))&&B.test(t)?t.replace(N,Fe):t},An.escapeRegExp=function(t){return(t=ls(t))&&$.test(t)?t.replace(Y,"\\$&"):t},An.every=function(t,e,n){var r=La(t)?ue:rr;return n&&lo(t,e,n)&&(e=void 0),r(t,Ki(e,3))},An.find=aa,An.findIndex=Po,An.findKey=function(t,e){return be(t,Ki(e,3),ur)},An.findLast=sa,An.findLastIndex=Lo,An.findLastKey=function(t,e){return be(t,Ki(e,3),cr)},An.floor=cl,An.forEach=la,An.forEachRight=ua,An.forIn=function(t,e){return null==t?t:sr(t,Ki(e,3),ws)},An.forInRight=function(t,e){return null==t?t:lr(t,Ki(e,3),ws)},An.forOwn=function(t,e){return t&&ur(t,Ki(e,3))},An.forOwnRight=function(t,e){return t&&cr(t,Ki(e,3))},An.get=vs,An.gt=ja,An.gte=ka,An.has=function(t,e){return null!=t&&io(t,e,vr)},An.hasIn=ms,An.head=Ro,An.identity=$s,An.includes=function(t,e,n,r){t=Ra(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},An.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)},An.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>=ln(e,n)&&t<sn(e,n)}(t=as(t),e,n)},An.invoke=_s,An.isArguments=Pa,An.isArray=La,An.isArrayBuffer=Da,An.isArrayLike=Ra,An.isArrayLikeObject=Na,An.isBoolean=function(t){return!0===t||!1===t||Wa(t)&&pr(t)==c},An.isBuffer=Fa,An.isDate=Ba,An.isElement=function(t){return Wa(t)&&1===t.nodeType&&!Xa(t)},An.isEmpty=function(t){if(null==t)return!0;if(Ra(t)&&(La(t)||"string"==typeof t||"function"==typeof t.splice||Fa(t)||Qa(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},An.isEqual=function(t,e){return xr(t,e)},An.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},An.isError=za,An.isFinite=function(t){return"number"==typeof t&&rn(t)},An.isFunction=Va,An.isInteger=Ua,An.isLength=Ga,An.isMap=Ya,An.isMatch=function(t,e){return t===e||wr(t,e,Qi(e))},An.isMatchWith=function(t,e,n){return n="function"==typeof n?n:void 0,wr(t,e,Qi(e),n)},An.isNaN=function(t){return $a(t)&&t!=+t},An.isNative=function(t){if(ho(t))throw new q("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return Or(t)},An.isNil=function(t){return null==t},An.isNull=function(t){return null===t},An.isNumber=$a,An.isObject=Ha,An.isObjectLike=Wa,An.isPlainObject=Xa,An.isRegExp=qa,An.isSafeInteger=function(t){return Ua(t)&&t>=-9007199254740991&&t<=9007199254740991},An.isSet=Za,An.isString=Ka,An.isSymbol=Ja,An.isTypedArray=Qa,An.isUndefined=function(t){return void 0===t},An.isWeakMap=function(t){return Wa(t)&&ro(t)==w},An.isWeakSet=function(t){return Wa(t)&&"[object WeakSet]"==pr(t)},An.join=function(t,e){return null==t?"":on.call(t,e)},An.kebabCase=Ls,An.last=zo,An.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):ln(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)},An.lowerCase=Ds,An.lowerFirst=Rs,An.lt=ts,An.lte=es,An.max=function(t){return t&&t.length?ir(t,$s,gr):void 0},An.maxBy=function(t,e){return t&&t.length?ir(t,Ki(e,2),gr):void 0},An.mean=function(t){return Se(t,$s)},An.meanBy=function(t,e){return Se(t,Ki(e,2))},An.min=function(t){return t&&t.length?ir(t,$s,Tr):void 0},An.minBy=function(t,e){return t&&t.length?ir(t,Ki(e,2),Tr):void 0},An.stubArray=ol,An.stubFalse=al,An.stubObject=function(){return{}},An.stubString=function(){return""},An.stubTrue=function(){return!0},An.multiply=dl,An.nth=function(t,e){return t&&t.length?kr(t,is(e)):void 0},An.noConflict=function(){return $t._===this&&($t._=Mt),this},An.noop=Js,An.now=va,An.pad=function(t,e,n){t=ls(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(Qe(i),n)},An.padEnd=function(t,e,n){t=ls(t);var r=(e=is(e))?Ye(t):0;return e&&r<e?t+Pi(e-r,n):t},An.padStart=function(t,e,n){t=ls(t);var r=(e=is(e))?Ye(t):0;return e&&r<e?Pi(e-r,n)+t:t},An.parseInt=function(t,e,n){return n||null==e?e=0:e&&(e=+e),cn(ls(t).replace(X,""),e||0)},An.random=function(t,e,n){if(n&&"boolean"!=typeof n&&lo(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 ln(t+i*(e-t+Gt("1e-"+((i+"").length-1))),e)}return Nr(t,e)},An.reduce=function(t,e,n){var r=La(t)?ge:Te,i=arguments.length<3;return r(t,Ki(e,4),n,i,er)},An.reduceRight=function(t,e,n){var r=La(t)?ve:Te,i=arguments.length<3;return r(t,Ki(e,4),n,i,nr)},An.repeat=function(t,e,n){return e=(n?lo(t,e,n):void 0===e)?1:is(e),Fr(ls(t),e)},An.replace=function(){var t=arguments,e=ls(t[0]);return t.length<3?e:e.replace(t[1],t[2])},An.result=function(t,e,n){var r=-1,i=(e=li(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},An.round=fl,An.runInContext=t,An.sample=function(t){return(La(t)?zn:zr)(t)},An.size=function(t){if(null==t)return 0;if(Ra(t))return Ka(t)?Ye(t):t.length;var e=ro(t);return e==g||e==b?t.size:Cr(t).length},An.snakeCase=Ns,An.some=function(t,e,n){var r=La(t)?me:$r;return n&&lo(t,e,n)&&(e=void 0),r(t,Ki(e,3))},An.sortedIndex=function(t,e){return Xr(t,e)},An.sortedIndexBy=function(t,e,n){return qr(t,e,Ki(n,2))},An.sortedIndexOf=function(t,e){var n=null==t?0:t.length;if(n){var r=Xr(t,e);if(r<n&&Ia(t[r],e))return r}return-1},An.sortedLastIndex=function(t,e){return Xr(t,e,!0)},An.sortedLastIndexBy=function(t,e,n){return qr(t,e,Ki(n,2),!0)},An.sortedLastIndexOf=function(t,e){if(null==t?0:t.length){var n=Xr(t,e,!0)-1;if(Ia(t[n],e))return n}return-1},An.startCase=Fs,An.startsWith=function(t,e,n){return t=ls(t),n=null==n?0:Zn(is(n),0,t.length),e=Jr(e),t.slice(n,n+e.length)==e},An.subtract=pl,An.sum=function(t){return t&&t.length?Me(t,$s):0},An.sumBy=function(t,e){return t&&t.length?Me(t,Ki(e,2)):0},An.template=function(t,e,n){var r=An.templateSettings;n&&lo(t,e,n)&&(e=void 0),t=ls(t),e=hs({},e,r,Vi);var i,o,a=hs({},e.imports,r.imports,Vi),s=xs(a),l=ke(a,s),u=0,c=e.interpolate||ct,h="__p += '",d=gt((e.escape||ct).source+"|"+c.source+"|"+(c===U?nt:ct).source+"|"+(e.evaluate||ct).source+"|$","g"),f="//# sourceURL="+(Ot.call(e,"sourceURL")?(e.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Bt+"]")+"\n";t.replace(d,(function(e,n,r,a,s,l){return r||(r=a),h+=t.slice(u,l).replace(ht,Be),n&&(i=!0,h+="' +\n__e("+n+") +\n'"),s&&(o=!0,h+="';\n"+s+";\n__p += '"),r&&(h+="' +\n((__t = ("+r+")) == null ? '' : __t) +\n'"),u=l+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(D,"$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 dt(s,f+"return "+h).apply(void 0,l)}));if(g.source=h,za(g))throw g;return g},An.times=function(t,e){if((t=is(t))<1||t>9007199254740991)return[];var n=4294967295,r=ln(t,4294967295);t-=4294967295;for(var i=Ae(r,e=Ki(e));++n<t;)e(n);return i},An.toFinite=rs,An.toInteger=is,An.toLength=os,An.toLower=function(t){return ls(t).toLowerCase()},An.toNumber=as,An.toSafeInteger=function(t){return t?Zn(is(t),-9007199254740991,9007199254740991):0===t?t:0},An.toString=ls,An.toUpper=function(t){return ls(t).toUpperCase()},An.trim=function(t,e,n){if((t=ls(t))&&(n||void 0===e))return Ie(t);if(!t||!(e=Jr(e)))return t;var r=$e(t),i=$e(e);return ci(r,Le(r,i),De(r,i)+1).join("")},An.trimEnd=function(t,e,n){if((t=ls(t))&&(n||void 0===e))return t.slice(0,Xe(t)+1);if(!t||!(e=Jr(e)))return t;var r=$e(t);return ci(r,0,De(r,$e(e))+1).join("")},An.trimStart=function(t,e,n){if((t=ls(t))&&(n||void 0===e))return t.replace(X,"");if(!t||!(e=Jr(e)))return t;var r=$e(t);return ci(r,Le(r,$e(e))).join("")},An.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?Jr(e.omission):r}var o=(t=ls(t)).length;if(ze(t)){var a=$e(t);o=a.length}if(n>=o)return t;var s=n-Ye(r);if(s<1)return r;var l=a?ci(a,0,s).join(""):t.slice(0,s);if(void 0===i)return l+r;if(a&&(s+=l.length-s),qa(i)){if(t.slice(s).search(i)){var u,c=l;for(i.global||(i=gt(i.source,ls(rt.exec(i))+"g")),i.lastIndex=0;u=i.exec(c);)var h=u.index;l=l.slice(0,void 0===h?s:h)}}else if(t.indexOf(Jr(i),s)!=s){var d=l.lastIndexOf(i);d>-1&&(l=l.slice(0,d))}return l+r},An.unescape=function(t){return(t=ls(t))&&F.test(t)?t.replace(R,qe):t},An.uniqueId=function(t){var e=++St;return ls(t)+e},An.upperCase=Bs,An.upperFirst=zs,An.each=la,An.eachRight=ua,An.first=Ro,Ks(An,(hl={},ur(An,(function(t,e){Ot.call(An.prototype,e)||(hl[e]=t)})),hl),{chain:!1}),An.VERSION="4.17.21",se(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(t){An[t].placeholder=An})),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__=ln(n,r.__takeCount__):r.__views__.push({size:ln(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($s)},Pn.prototype.find=function(t){return this.filter(t).head()},Pn.prototype.findLast=function(t){return this.reverse().find(t)},Pn.prototype.invokeMap=Br((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)},ur(Pn.prototype,(function(t,e){var n=/^(?:filter|find|map|reject)|While$/.test(e),r=/^(?:head|last)$/.test(e),i=An[r?"take"+("last"==e?"Right":""):e],o=r||/^find/.test(e);i&&(An.prototype[e]=function(){var e=this.__wrapped__,a=r?[1]:arguments,s=e instanceof Pn,l=a[0],u=s||La(e),c=function(t){var e=i.apply(An,pe([t],a));return r&&h?e[0]:e};u&&n&&"function"==typeof l&&1!=l.length&&(s=u=!1);var h=this.__chain__,d=!!this.__actions__.length,f=o&&!h,p=s&&!d;if(!o&&u){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 f&&p?t.apply(this,a):(g=this.thru(c),f?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);An.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)}))}})),ur(Pn.prototype,(function(t,e){var n=An[e];if(n){var r=n.name+"";Ot.call(_n,r)||(_n[r]=[]),_n[r].push({name:e,func:n})}})),_n[Ai(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=ln(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,l=s-a,u=r?s:a-1,c=this.__iteratees__,h=c.length,d=0,f=ln(l,this.__takeCount__);if(!n||!r&&i==l&&f==l)return ri(t,this.__actions__);var p=[];t:for(;l--&&d<f;){for(var g=-1,v=t[u+=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[d++]=v}return p},An.prototype.at=ia,An.prototype.chain=function(){return na(this)},An.prototype.commit=function(){return new kn(this.value(),this.__chain__)},An.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__++]}},An.prototype.plant=function(t){for(var e,n=this;n instanceof jn;){var r=Ao(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},An.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)},An.prototype.toJSON=An.prototype.valueOf=An.prototype.value=function(){return ri(this.__wrapped__,this.__actions__)},An.prototype.first=An.prototype.head,Kt&&(An.prototype[Kt]=function(){return this}),An}();$t._=Ze,void 0===(i=function(){return Ze}.call(e,n,e,r))||(r.exports=i)}).call(this)}).call(this,n(322),n(591)(t))},function(t,e,n){"use strict";n.r(e),n.d(e,"install",(function(){return i}));var r=n(1285);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(1286);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(1290),i=n(1288),o=n(293),a=n(664);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 l}));var r=n(0),i=n(255),o=n(664),a=n(1292),s=n(1291);function l(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(442),i=n(665),o=n(295),a=n(0),s=n(1293),l=n(1295),u=n(1296);function c(t){t.registerChartView(s.default),t.registerSeriesModel(l.default),Object(r.createLegacyDataSelectAction)("pie",t.registerAction),t.registerLayout(Object(a.curry)(i.default,"pie")),t.registerProcessor(Object(o.default)("pie")),t.registerProcessor(Object(u.default)("pie"))}},function(t,e,n){"use strict";n.r(e),n.d(e,"install",(function(){return l}));var r=n(46),i=n(1302),o=n(1303),a=n(666),s=n(293);function l(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(46),i=n(1312),o=n(295),a=n(1313),s=n(1310),l=n(1311),u=n(1305);function c(t){Object(r.use)(u.install),t.registerChartView(s.default),t.registerSeriesModel(l.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(46),i=n(1321),o=n(1322),a=n(1324),s=n(1323),l=n(442),u=n(836);function c(t){Object(r.use)(u.install),t.registerChartView(i.default),t.registerSeriesModel(o.default),t.registerLayout(s.default),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,a.default),Object(l.createLegacyDataSelectAction)("map",t.registerAction)}},function(t,e,n){"use strict";n.r(e),n.d(e,"install",(function(){return l}));var r=n(1325),i=n(1326),o=n(1327),a=n(1328),s=n(1329);function l(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 l}));var r=n(1336),i=n(1330),o=n(1331),a=n(1334),s=n(1335);function l(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(1341),i=n(1342),o=n(1343),a=n(1344),s=n(1345),l=n(1346),u=n(1348),c=n(334),h=n(1337),d=n(1339),f=n(445),p=n(0),g={type:"graphRoam",event:"graphRoam",update:"none"};function v(t){t.registerChartView(h.default),t.registerSeriesModel(d.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(l.default),t.registerCoordinateSystem("graphView",{dimensions:c.default.dimensions,create:u.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){e.eachComponent({mainType:"series",query:t},(function(e){var n=e.coordinateSystem,r=Object(f.updateCenterAndZoom)(n,t);e.setCenter&&e.setCenter(r.center),e.setZoom&&e.setZoom(r.zoom)}))}))}},function(t,e,n){"use strict";n.r(e),n.d(e,"install",(function(){return o}));var r=n(1349),i=n(1351);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(1352),i=n(1353),o=n(1354),a=n(295);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 l}));var r=n(46),i=n(1363),o=n(1364),a=n(1365),s=n(838);function l(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(1366),i=n(1367),o=n(1368),a=n(1369);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 l}));var r=n(1370),i=n(1371),o=n(1372),a=n(1373),s=n(1374);function l(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 l}));var r=n(1376),i=n(1377),o=n(1378),a=n(1379),s=n(1380);function l(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(1381),i=n(1383),o=n(293);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(1384),i=n(1387),o=n(676),a=n(1388);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(1389),i=n(1391);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(1392),i=n(1393),o=n(255),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(1394),i=n(1395),o=n(1396),a=n(295);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(1397),i=n(1398),o=n(1399),a=n(1400),s=n(295),l=n(0),u=n(679);function c(t){t.registerChartView(r.default),t.registerSeriesModel(i.default),t.registerLayout(Object(l.curry)(o.default,"sunburst")),t.registerProcessor(Object(l.curry)(s.default,"sunburst")),t.registerVisual(a.default),Object(u.installSunburstAction)(t)}},function(t,e,n){"use strict";n.r(e),n.d(e,"install",(function(){return o}));var r=n(220),i=n(1401);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(666),i=n(336),o=n(46);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(46),o=n(205),a=n(1411),s=n(336),l=n(1415),u=n(303),c=n(842),h=n(1412),d=n(1416),f=n(1417),p=n(62),g=n(0),v=n(1418),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(l.default),t.registerComponentView(b),Object(u.default)(t,"angle",c.AngleAxisModel,m),Object(u.default)(t,"radius",c.RadiusAxisModel,y),t.registerComponentView(d.default),t.registerComponentView(f.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(46),o=n(62),a=n(1420),s=n(303),l=n(755),u=n(1421),c=n(336),h=n(205),d=n(1419),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.type="single",e}(o.default);function p(t){Object(i.use)(c.install),h.default.registerAxisPointerClass("SingleAxisPointer",d.default),t.registerComponentView(f),t.registerComponentView(a.default),t.registerComponentModel(l.default),Object(s.default)(t,"single",l.default,l.default.defaultOption),t.registerCoordinateSystem("single",u.default)}},function(t,e,n){"use strict";n.r(e),n.d(e,"install",(function(){return a}));var r=n(1423),i=n(1424),o=n(1425);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(1426),o=n(1427);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 f}));var r=n(46),i=n(1435),o=n(1428),a=n(1429),s=n(104),l=n(1430),u=n(1431),c=n(1432),h=n(1434),d=n(1433);function f(t){t.registerComponentModel(o.default),t.registerComponentView(a.default),Object(s.registerFeature)("saveAsImage",l.default),Object(s.registerFeature)("magicType",u.default),Object(s.registerFeature)("dataView",c.default),Object(s.registerFeature)("dataZoom",d.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 l}));var r=n(336),i=n(46),o=n(1441),a=n(1442),s=n(0);function l(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(1448),i=n(1445),o=n(1447),a=n(681),s=n(1449),l=n(104),u=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"},u.noop),t.registerAction({type:"brushEnd",event:"brushEnd",update:"none"},u.noop),Object(l.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(66),a=n(70),s=n(32),l=n(27),u=n(33),c=n(40),h=n(62),d=n(48),f=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"),f=t.get("textAlign"),p=i.retrieve2(t.get("textBaseline"),t.get("textVerticalAlign")),g=new o.default({style:Object(l.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(l.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(d.windowOpen)(b,"_"+t.get("target"))})),_&&y.on("click",(function(){Object(d.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(u.getLayoutRect)(O,{width:n.getWidth(),height:n.getHeight()},t.get("padding"));f||("middle"===(f=t.get("left")||t.get("right"))&&(f="center"),"right"===f?S.x+=S.width:"center"===f&&(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:f,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 M=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(M)}},e.type="title",e}(h.default);function g(t){t.registerComponentModel(f),t.registerComponentView(p)}},function(t,e,n){"use strict";n.r(e),n.d(e,"install",(function(){return s}));var r=n(1450),i=n(1451),o=n(1454),a=n(1455);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(454),i=n(1456),o=n(1457);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(454),i=n(1458),o=n(1459);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(454),i=n(1460),o=n(1461);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(46),i=n(682),o=n(1464);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(46),i=n(845),o=n(846);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(46),i=n(847),o=n(849);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(1479),i=n(1478);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(1480),i=n(1482);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 l})),n.d(e,"install",(function(){return c}));var r=n(5),i=n(40),o=n(62),a=n(29),s=n(476),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.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),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.type="dataset",e}(o.default);function c(t){t.registerComponentModel(l),t.registerComponentView(u)}},function(t,e,n){"use strict";n.r(e),n.d(e,"installUniversalTransition",(function(){return x}));var r=n(54),i=n(0),o=n(321),a=n(36),s=n(23),l=n(169),u=n(10),c=(n(37),n(97)),h=Object(u.makeInner)();function d(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 f(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=d(t),u=d(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(u),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),l=s&&s.ordinalMeta;if(s){var u=r.get(s.name,i);return l&&l.categories[u]||u+""}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,u),w={};if(!x)for(var O=0;O<u.length;O++){var S=u[O],C=S.data.getItemGraphicEl(S.dataIndex);C&&(w[C.id]=!0)}function E(t,e){var n=r[e],i=u[t],a=i.data.hostModel,l=n.data.getItemGraphicEl(n.dataIndex),d=i.data.getItemGraphicEl(i.dataIndex);l!==d?l&&w[l.id]||d&&(g(d),l?(g(l),p(l),b=!0,Object(o.applyMorphAnimation)(Object(o.getPathList)(l),Object(o.getPathList)(d),i.divide,a,t,h)):f(d,a,t)):d&&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)}}))}(d,i.dataIndex,a)}new l.default(r,u,_(!0,x),_(!1,x),null,"multiple").update(E).updateManyToOne((function(t,e){var n=u[t],a=n.data,s=a.hostModel,l=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!==l&&!w[t.id]}));l&&(g(l),c.length?(Object(i.each)(c,(function(t){g(t),p(t)})),b=!0,Object(o.applyMorphAnimation)(Object(o.getPathList)(c),Object(o.getPathList)(l),n.divide,s,t,h)):f(l,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 u[t].data.getItemGraphicEl(u[t].dataIndex)})),(function(t){return t&&t!==a})),l=u[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,l,t[0],h)):Object(i.each)(s,(function(e){return f(e,l,t[0])})))}})).updateManyToMany((function(t,e){new l.default(e,t,(function(t){return r[t].data.getId(r[t].dataIndex)}),(function(t){return u[t].data.getId(u[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(u.normalizeToArray)(n.seriesTransition),(function(t){Object(i.each)(Object(u.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(u.normalizeToArray)(a),(function(t){!function(t,e,n,r){var o=[],a=[];Object(i.each)(Object(u.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(u.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),l=y(s);r.set(l,a),Object(i.isArray)(s)&&Object(i.each)(s,(function(t){o.set(t,{data:a,key:l})}))})),Object(i.each)(e.updatedSeries,(function(t){if(t.isUniversalTransitionEnabled()&&t.isAnimationEnabled()){var e=t.getData(),a=m(t),s=y(a),l=r.get(s);if(l)n.set(s,{oldSeries:[{divide:b(l),data:l}],newSeries:[{divide:b(e),data:e}]});else if(Object(i.isArray)(a)){0;var u=[];Object(i.each)(a,(function(t){var e=r.get(t);e&&u.push({divide:b(e),data:e})})),u.length&&n.set(s,{oldSeries:u,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 l=t.getSeries(),c=o.oldSeries=[],d=o.oldData=[],f=0;f<l.length;f++){var p=l[f].getData();p.count()<1e4&&(c.push(l[f]),d.push(p))}}))}},function(t,e,n){"use strict";n.r(e),n.d(e,"now",(function(){return f})),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,l=0,u=0,c=0,h="object"==typeof performance&&performance.now?performance:Date,d="object"==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function f(){return u||(d(p),u=h.now()+c)}function p(){u=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(){f(),++o;for(var t,e=r;e;)(t=u-e._time)>=0&&e._call.call(null,t),e=e._next;--o}function y(){u=(l=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)}(),u=0}}function b(){var t=h.now(),e=t-l;e>1e3&&(c-=e,l=t)}function _(t){o||(a&&(a=clearTimeout(a)),t-u>24?(t<1/0&&(a=setTimeout(y,t-h.now()-c)),s&&(s=clearInterval(s))):(s||(l=h.now(),s=setInterval(b,1e3)),o=1,d(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?f():+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,_())}}}]); |