text: !function(t,e){if("object"==typeof exports&&"object"==typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var n=e();for(var r in n)("object"==typeof exports?exports:t)[r]=n[r]}}(window,function(){return function(t){var e={};function n(r){if(e[r])return e[r].exports;var o=e[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,n),o.l=!0,o.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 o in t)n.d(r,o,function(e){return t[e]}.bind(null,o));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="/asset/script/",n(n.s=130)}([function(t,e,n){var r=n(1),o=n(7),i=n(14),a=n(11),u=n(17),c=function(t,e,n){var s,f,l,h,p=t&c.F,y=t&c.G,v=t&c.S,d=t&c.P,g=t&c.B,_=y?r:v?r[e]||(r[e]={}):(r[e]||{}).prototype,b=y?o:o[e]||(o[e]={}),m=b.prototype||(b.prototype={});for(s in y&&(n=e),n)l=((f=!p&&_&&void 0!==_[s])?_:n)[s],h=g&&f?u(l,r):d&&"function"==typeof l?u(Function.call,l):l,_&&a(_,s,l,t&c.U),b[s]!=l&&i(b,s,h),d&&m[s]!=l&&(m[s]=l)};r.core=o,c.F=1,c.G=2,c.S=4,c.P=8,c.B=16,c.W=32,c.U=64,c.R=128,t.exports=c},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){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,e,n){var r=n(4);t.exports=function(t){if(!r(t))throw TypeError(t+" is not an object!");return t}},function(t,e){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},function(t,e,n){var r=n(48)("wks"),o=n(29),i=n(1).Symbol,a="function"==typeof i;(t.exports=function(t){return r[t]||(r[t]=a&&i[t]||(a?i:o)("Symbol."+t))}).store=r},function(t,e,n){var r=n(19),o=Math.min;t.exports=function(t){return t>0?o(r(t),9007199254740991):0}},function(t,e){var n=t.exports={version:"2.6.9"};"number"==typeof __e&&(__e=n)},function(t,e,n){t.exports=!n(2)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(t,e,n){var r=n(3),o=n(94),i=n(26),a=Object.defineProperty;e.f=n(8)?Object.defineProperty:function(t,e,n){if(r(t),e=i(e,!0),r(n),o)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(24);t.exports=function(t){return Object(r(t))}},function(t,e,n){var r=n(1),o=n(14),i=n(13),a=n(29)("src"),u=n(142),c=(""+u).split("toString");n(7).inspectSource=function(t){return u.call(t)},(t.exports=function(t,e,n,u){var s="function"==typeof n;s&&(i(n,"name")||o(n,"name",e)),t[e]!==n&&(s&&(i(n,a)||o(n,a,t[e]?""+t[e]:c.join(String(e)))),t===r?t[e]=n:u?t[e]?t[e]=n:o(t,e,n):(delete t[e],o(t,e,n)))})(Function.prototype,"toString",function(){return"function"==typeof this&&this[a]||u.call(this)})},function(t,e,n){var r=n(0),o=n(2),i=n(24),a=/"/g,u=function(t,e,n,r){var o=String(i(t)),u="<"+e;return""!==n&&(u+=" "+n+'="'+String(r).replace(a,"&quot;")+'"'),u+">"+o+"</"+e+">"};t.exports=function(t,e){var n={};n[t]=e(u),r(r.P+r.F*o(function(){var e=""[t]('"');return e!==e.toLowerCase()||e.split('"').length>3}),"String",n)}},function(t,e){var n={}.hasOwnProperty;t.exports=function(t,e){return n.call(t,e)}},function(t,e,n){var r=n(9),o=n(28);t.exports=n(8)?function(t,e,n){return r.f(t,e,o(1,n))}:function(t,e,n){return t[e]=n,t}},function(t,e,n){var r=n(44),o=n(24);t.exports=function(t){return r(o(t))}},function(t,e,n){"use strict";var r=n(2);t.exports=function(t,e){return!!t&&r(function(){e?t.call(null,function(){},1):t.call(null)})}},function(t,e,n){var r=n(18);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,o){return t.call(e,n,r,o)}}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){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(45),o=n(28),i=n(15),a=n(26),u=n(13),c=n(94),s=Object.getOwnPropertyDescriptor;e.f=n(8)?s:function(t,e){if(t=i(t),e=a(e,!0),c)try{return s(t,e)}catch(t){}if(u(t,e))return o(!r.f.call(t,e),t[e])}},function(t,e,n){var r=n(0),o=n(7),i=n(2);t.exports=function(t,e){var n=(o.Object||{})[t]||Object[t],a={};a[t]=e(n),r(r.S+r.F*i(function(){n(1)}),"Object",a)}},function(t,e,n){var r=n(17),o=n(44),i=n(10),a=n(6),u=n(110);t.exports=function(t,e){var n=1==t,c=2==t,s=3==t,f=4==t,l=6==t,h=5==t||l,p=e||u;return function(e,u,y){for(var v,d,g=i(e),_=o(g),b=r(u,y,3),m=a(_.length),w=0,x=n?p(e,m):c?p(e,0):void 0;m>w;w++)if((h||w in _)&&(d=b(v=_[w],w,g),t))if(n)x[w]=d;else if(d)switch(t){case 3:return!0;case 5:return v;case 6:return w;case 2:x.push(v)}else if(f)return!1;return l?-1:s||f?f:x}}},function(t,e){var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}},function(t,e){t.exports=function(t){if(null==t)throw TypeError("Can't call method on  "+t);return t}},function(t,e,n){"use strict";if(n(8)){var r=n(30),o=n(1),i=n(2),a=n(0),u=n(59),c=n(85),s=n(17),f=n(42),l=n(28),h=n(14),p=n(43),y=n(19),v=n(6),d=n(121),g=n(32),_=n(26),b=n(13),m=n(46),w=n(4),x=n(10),O=n(77),S=n(33),j=n(35),k=n(34).f,M=n(79),E=n(29),P=n(5),A=n(22),L=n(49),C=n(47),T=n(81),R=n(40),D=n(52),N=n(41),I=n(80),z=n(112),F=n(9),U=n(20),B=F.f,q=U.f,V=o.RangeError,W=o.TypeError,G=o.Uint8Array,Y=Array.prototype,H=c.ArrayBuffer,$=c.DataView,Z=A(0),X=A(2),J=A(3),Q=A(4),K=A(5),tt=A(6),et=L(!0),nt=L(!1),rt=T.values,ot=T.keys,it=T.entries,at=Y.lastIndexOf,ut=Y.reduce,ct=Y.reduceRight,st=Y.join,ft=Y.sort,lt=Y.slice,ht=Y.toString,pt=Y.toLocaleString,yt=P("iterator"),vt=P("toStringTag"),dt=E("typed_constructor"),gt=E("def_constructor"),_t=u.CONSTR,bt=u.TYPED,mt=u.VIEW,wt=A(1,function(t,e){return kt(C(t,t[gt]),e)}),xt=i(function(){return 1===new G(new Uint16Array([1]).buffer)[0]}),Ot=!!G&&!!G.prototype.set&&i(function(){new G(1).set({})}),St=function(t,e){var n=y(t);if(n<0||n%e)throw V("Wrong offset!");return n},jt=function(t){if(w(t)&&bt in t)return t;throw W(t+" is not a typed array!")},kt=function(t,e){if(!(w(t)&&dt in t))throw W("It is not a typed array constructor!");return new t(e)},Mt=function(t,e){return Et(C(t,t[gt]),e)},Et=function(t,e){for(var n=0,r=e.length,o=kt(t,r);r>n;)o[n]=e[n++];return o},Pt=function(t,e,n){B(t,e,{get:function(){return this._d[n]}})},At=function(t){var e,n,r,o,i,a,u=x(t),c=arguments.length,f=c>1?arguments[1]:void 0,l=void 0!==f,h=M(u);if(null!=h&&!O(h)){for(a=h.call(u),r=[],e=0;!(i=a.next()).done;e++)r.push(i.value);u=r}for(l&&c>2&&(f=s(f,arguments[2],2)),e=0,n=v(u.length),o=kt(this,n);n>e;e++)o[e]=l?f(u[e],e):u[e];return o},Lt=function(){for(var t=0,e=arguments.length,n=kt(this,e);e>t;)n[t]=arguments[t++];return n},Ct=!!G&&i(function(){pt.call(new G(1))}),Tt=function(){return pt.apply(Ct?lt.call(jt(this)):jt(this),arguments)},Rt={copyWithin:function(t,e){return z.call(jt(this),t,e,arguments.length>2?arguments[2]:void 0)},every:function(t){return Q(jt(this),t,arguments.length>1?arguments[1]:void 0)},fill:function(t){return I.apply(jt(this),arguments)},filter:function(t){return Mt(this,X(jt(this),t,arguments.length>1?arguments[1]:void 0))},find:function(t){return K(jt(this),t,arguments.length>1?arguments[1]:void 0)},findIndex:function(t){return tt(jt(this),t,arguments.length>1?arguments[1]:void 0)},forEach:function(t){Z(jt(this),t,arguments.length>1?arguments[1]:void 0)},indexOf:function(t){return nt(jt(this),t,arguments.length>1?arguments[1]:void 0)},includes:function(t){return et(jt(this),t,arguments.length>1?arguments[1]:void 0)},join:function(t){return st.apply(jt(this),arguments)},lastIndexOf:function(t){return at.apply(jt(this),arguments)},map:function(t){return wt(jt(this),t,arguments.length>1?arguments[1]:void 0)},reduce:function(t){return ut.apply(jt(this),arguments)},reduceRight:function(t){return ct.apply(jt(this),arguments)},reverse:function(){for(var t,e=jt(this).length,n=Math.floor(e/2),r=0;r<n;)t=this[r],this[r++]=this[--e],this[e]=t;return this},some:function(t){return J(jt(this),t,arguments.length>1?arguments[1]:void 0)},sort:function(t){return ft.call(jt(this),t)},subarray:function(t,e){var n=jt(this),r=n.length,o=g(t,r);return new(C(n,n[gt]))(n.buffer,n.byteOffset+o*n.BYTES_PER_ELEMENT,v((void 0===e?r:g(e,r))-o))}},Dt=function(t,e){return Mt(this,lt.call(jt(this),t,e))},Nt=function(t){jt(this);var e=St(arguments[1],1),n=this.length,r=x(t),o=v(r.length),i=0;if(o+e>n)throw V("Wrong length!");for(;i<o;)this[e+i]=r[i++]},It={entries:function(){return it.call(jt(this))},keys:function(){return ot.call(jt(this))},values:function(){return rt.call(jt(this))}},zt=function(t,e){return w(t)&&t[bt]&&"symbol"!=typeof e&&e in t&&String(+e)==String(e)},Ft=function(t,e){return zt(t,e=_(e,!0))?l(2,t[e]):q(t,e)},Ut=function(t,e,n){return!(zt(t,e=_(e,!0))&&w(n)&&b(n,"value"))||b(n,"get")||b(n,"set")||n.configurable||b(n,"writable")&&!n.writable||b(n,"enumerable")&&!n.enumerable?B(t,e,n):(t[e]=n.value,t)};_t||(U.f=Ft,F.f=Ut),a(a.S+a.F*!_t,"Object",{getOwnPropertyDescriptor:Ft,defineProperty:Ut}),i(function(){ht.call({})})&&(ht=pt=function(){return st.call(this)});var Bt=p({},Rt);p(Bt,It),h(Bt,yt,It.values),p(Bt,{slice:Dt,set:Nt,constructor:function(){},toString:ht,toLocaleString:Tt}),Pt(Bt,"buffer","b"),Pt(Bt,"byteOffset","o"),Pt(Bt,"byteLength","l"),Pt(Bt,"length","e"),B(Bt,vt,{get:function(){return this[bt]}}),t.exports=function(t,e,n,c){var s=t+((c=!!c)?"Clamped":"")+"Array",l="get"+t,p="set"+t,y=o[s],g=y||{},_=y&&j(y),b=!y||!u.ABV,x={},O=y&&y.prototype,M=function(t,n){B(t,n,{get:function(){return function(t,n){var r=t._d;return r.v[l](n*e+r.o,xt)}(this,n)},set:function(t){return function(t,n,r){var o=t._d;c&&(r=(r=Math.round(r))<0?0:r>255?255:255&r),o.v[p](n*e+o.o,r,xt)}(this,n,t)},enumerable:!0})};b?(y=n(function(t,n,r,o){f(t,y,s,"_d");var i,a,u,c,l=0,p=0;if(w(n)){if(!(n instanceof H||"ArrayBuffer"==(c=m(n))||"SharedArrayBuffer"==c))return bt in n?Et(y,n):At.call(y,n);i=n,p=St(r,e);var g=n.byteLength;if(void 0===o){if(g%e)throw V("Wrong length!");if((a=g-p)<0)throw V("Wrong length!")}else if((a=v(o)*e)+p>g)throw V("Wrong length!");u=a/e}else u=d(n),i=new H(a=u*e);for(h(t,"_d",{b:i,o:p,l:a,e:u,v:new $(i)});l<u;)M(t,l++)}),O=y.prototype=S(Bt),h(O,"constructor",y)):i(function(){y(1)})&&i(function(){new y(-1)})&&D(function(t){new y,new y(null),new y(1.5),new y(t)},!0)||(y=n(function(t,n,r,o){var i;return f(t,y,s),w(n)?n instanceof H||"ArrayBuffer"==(i=m(n))||"SharedArrayBuffer"==i?void 0!==o?new g(n,St(r,e),o):void 0!==r?new g(n,St(r,e)):new g(n):bt in n?Et(y,n):At.call(y,n):new g(d(n))}),Z(_!==Function.prototype?k(g).concat(k(_)):k(g),function(t){t in y||h(y,t,g[t])}),y.prototype=O,r||(O.constructor=y));var E=O[yt],P=!!E&&("values"==E.name||null==E.name),A=It.values;h(y,dt,!0),h(O,bt,s),h(O,mt,!0),h(O,gt,y),(c?new y(1)[vt]==s:vt in O)||B(O,vt,{get:function(){return s}}),x[s]=y,a(a.G+a.W+a.F*(y!=g),x),a(a.S,s,{BYTES_PER_ELEMENT:e}),a(a.S+a.F*i(function(){g.of.call(y,1)}),s,{from:At,of:Lt}),"BYTES_PER_ELEMENT"in O||h(O,"BYTES_PER_ELEMENT",e),a(a.P,s,Rt),N(s),a(a.P+a.F*Ot,s,{set:Nt}),a(a.P+a.F*!P,s,It),r||O.toString==ht||(O.toString=ht),a(a.P+a.F*i(function(){new y(1).slice()}),s,{slice:Dt}),a(a.P+a.F*(i(function(){return[1,2].toLocaleString()!=new y([1,2]).toLocaleString()})||!i(function(){O.toLocaleString.call([1,2])})),s,{toLocaleString:Tt}),R[s]=P?E:A,r||P||h(O,yt,A)}}else t.exports=function(){}},function(t,e,n){var r=n(4);t.exports=function(t,e){if(!r(t))return t;var n,o;if(e&&"function"==typeof(n=t.toString)&&!r(o=n.call(t)))return o;if("function"==typeof(n=t.valueOf)&&!r(o=n.call(t)))return o;if(!e&&"function"==typeof(n=t.toString)&&!r(o=n.call(t)))return o;throw TypeError("Can't convert object to primitive value")}},function(t,e,n){var r=n(29)("meta"),o=n(4),i=n(13),a=n(9).f,u=0,c=Object.isExtensible||function(){return!0},s=!n(2)(function(){return c(Object.preventExtensions({}))}),f=function(t){a(t,r,{value:{i:"O"+ ++u,w:{}}})},l=t.exports={KEY:r,NEED:!1,fastKey:function(t,e){if(!o(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!i(t,r)){if(!c(t))return"F";if(!e)return"E";f(t)}return t[r].i},getWeak:function(t,e){if(!i(t,r)){if(!c(t))return!0;if(!e)return!1;f(t)}return t[r].w},onFreeze:function(t){return s&&l.NEED&&c(t)&&!i(t,r)&&f(t),t}}},function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},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){t.exports=!1},function(t,e,n){var r=n(96),o=n(64);t.exports=Object.keys||function(t){return r(t,o)}},function(t,e,n){var r=n(19),o=Math.max,i=Math.min;t.exports=function(t,e){return(t=r(t))<0?o(t+e,0):i(t,e)}},function(t,e,n){var r=n(3),o=n(97),i=n(64),a=n(63)("IE_PROTO"),u=function(){},c=function(){var t,e=n(61)("iframe"),r=i.length;for(e.style.display="none",n(65).appendChild(e),e.src="javascript:",(t=e.contentWindow.document).open(),t.write("<script>document.F=Object<\/script>"),t.close(),c=t.F;r--;)delete c.prototype[i[r]];return c()};t.exports=Object.create||function(t,e){var n;return null!==t?(u.prototype=r(t),n=new u,u.prototype=null,n[a]=t):n=c(),void 0===e?n:o(n,e)}},function(t,e,n){var r=n(96),o=n(64).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return r(t,o)}},function(t,e,n){var r=n(13),o=n(10),i=n(63)("IE_PROTO"),a=Object.prototype;t.exports=Object.getPrototypeOf||function(t){return t=o(t),r(t,i)?t[i]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?a:null}},function(t,e,n){var r=n(5)("unscopables"),o=Array.prototype;null==o[r]&&n(14)(o,r,{}),t.exports=function(t){o[r][t]=!0}},function(t,e,n){var r=n(4);t.exports=function(t,e){if(!r(t)||t._t!==e)throw TypeError("Incompatible receiver, "+e+" required!");return t}},function(t,e,n){var r=n(9).f,o=n(13),i=n(5)("toStringTag");t.exports=function(t,e,n){t&&!o(t=n?t:t.prototype,i)&&r(t,i,{configurable:!0,value:e})}},function(t,e,n){var r=n(0),o=n(24),i=n(2),a=n(67),u="["+a+"]",c=RegExp("^"+u+u+"*"),s=RegExp(u+u+"*$"),f=function(t,e,n){var o={},u=i(function(){return!!a[t]()||"​"!="​"[t]()}),c=o[t]=u?e(l):a[t];n&&(o[n]=c),r(r.P+r.F*u,"String",o)},l=f.trim=function(t,e){return t=String(o(t)),1&e&&(t=t.replace(c,"")),2&e&&(t=t.replace(s,"")),t};t.exports=f},function(t,e){t.exports={}},function(t,e,n){"use strict";var r=n(1),o=n(9),i=n(8),a=n(5)("species");t.exports=function(t){var e=r[t];i&&e&&!e[a]&&o.f(e,a,{configurable:!0,get:function(){return this}})}},function(t,e){t.exports=function(t,e,n,r){if(!(t instanceof e)||void 0!==r&&r in t)throw TypeError(n+": incorrect invocation!");return t}},function(t,e,n){var r=n(11);t.exports=function(t,e,n){for(var o in e)r(t,o,e[o],n);return t}},function(t,e,n){var r=n(23);t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==r(t)?t.split(""):Object(t)}},function(t,e){e.f={}.propertyIsEnumerable},function(t,e,n){var r=n(23),o=n(5)("toStringTag"),i="Arguments"==r(function(){return arguments}());t.exports=function(t){var e,n,a;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=function(t,e){try{return t[e]}catch(t){}}(e=Object(t),o))?n:i?r(e):"Object"==(a=r(e))&&"function"==typeof e.callee?"Arguments":a}},function(t,e,n){var r=n(3),o=n(18),i=n(5)("species");t.exports=function(t,e){var n,a=r(t).constructor;return void 0===a||null==(n=r(a)[i])?e:o(n)}},function(t,e,n){var r=n(7),o=n(1),i=o["__core-js_shared__"]||(o["__core-js_shared__"]={});(t.exports=function(t,e){return i[t]||(i[t]=void 0!==e?e:{})})("versions",[]).push({version:r.version,mode:n(30)?"pure":"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})},function(t,e,n){var r=n(15),o=n(6),i=n(32);t.exports=function(t){return function(e,n,a){var u,c=r(e),s=o(c.length),f=i(a,s);if(t&&n!=n){for(;s>f;)if((u=c[f++])!=u)return!0}else for(;s>f;f++)if((t||f in c)&&c[f]===n)return t||f||0;return!t&&-1}}},function(t,e){e.f=Object.getOwnPropertySymbols},function(t,e,n){var r=n(23);t.exports=Array.isArray||function(t){return"Array"==r(t)}},function(t,e,n){var r=n(5)("iterator"),o=!1;try{var i=[7][r]();i.return=function(){o=!0},Array.from(i,function(){throw 2})}catch(t){}t.exports=function(t,e){if(!e&&!o)return!1;var n=!1;try{var i=[7],a=i[r]();a.next=function(){return{done:n=!0}},i[r]=function(){return a},t(i)}catch(t){}return n}},function(t,e,n){"use strict";var r=n(3);t.exports=function(){var t=r(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e}},function(t,e,n){"use strict";var r=n(46),o=RegExp.prototype.exec;t.exports=function(t,e){var n=t.exec;if("function"==typeof n){var i=n.call(t,e);if("object"!=typeof i)throw new TypeError("RegExp exec method returned something other than an Object or null");return i}if("RegExp"!==r(t))throw new TypeError("RegExp#exec called on incompatible receiver");return o.call(t,e)}},function(t,e,n){"use strict";n(114);var r=n(11),o=n(14),i=n(2),a=n(24),u=n(5),c=n(82),s=u("species"),f=!i(function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")}),l=function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var n="ab".split(t);return 2===n.length&&"a"===n[0]&&"b"===n[1]}();t.exports=function(t,e,n){var h=u(t),p=!i(function(){var e={};return e[h]=function(){return 7},7!=""[t](e)}),y=p?!i(function(){var e=!1,n=/a/;return n.exec=function(){return e=!0,null},"split"===t&&(n.constructor={},n.constructor[s]=function(){return n}),n[h](""),!e}):void 0;if(!p||!y||"replace"===t&&!f||"split"===t&&!l){var v=/./[h],d=n(a,h,""[t],function(t,e,n,r,o){return e.exec===c?p&&!o?{done:!0,value:v.call(e,n,r)}:{done:!0,value:t.call(n,e,r)}:{done:!1}}),g=d[0],_=d[1];r(String.prototype,t,g),o(RegExp.prototype,h,2==e?function(t,e){return _.call(t,this,e)}:function(t){return _.call(t,this)})}}},function(t,e,n){var r=n(17),o=n(109),i=n(77),a=n(3),u=n(6),c=n(79),s={},f={};(e=t.exports=function(t,e,n,l,h){var p,y,v,d,g=h?function(){return t}:c(t),_=r(n,l,e?2:1),b=0;if("function"!=typeof g)throw TypeError(t+" is not iterable!");if(i(g)){for(p=u(t.length);p>b;b++)if((d=e?_(a(y=t[b])[0],y[1]):_(t[b]))===s||d===f)return d}else for(v=g.call(t);!(y=v.next()).done;)if((d=o(v,_,y.value,e))===s||d===f)return d}).BREAK=s,e.RETURN=f},function(t,e,n){var r=n(1).navigator;t.exports=r&&r.userAgent||""},function(t,e,n){"use strict";var r=n(1),o=n(0),i=n(11),a=n(43),u=n(27),c=n(56),s=n(42),f=n(4),l=n(2),h=n(52),p=n(38),y=n(68);t.exports=function(t,e,n,v,d,g){var _=r[t],b=_,m=d?"set":"add",w=b&&b.prototype,x={},O=function(t){var e=w[t];i(w,t,"delete"==t?function(t){return!(g&&!f(t))&&e.call(this,0===t?0:t)}:"has"==t?function(t){return!(g&&!f(t))&&e.call(this,0===t?0:t)}:"get"==t?function(t){return g&&!f(t)?void 0:e.call(this,0===t?0:t)}:"add"==t?function(t){return e.call(this,0===t?0:t),this}:function(t,n){return e.call(this,0===t?0:t,n),this})};if("function"==typeof b&&(g||w.forEach&&!l(function(){(new b).entries().next()}))){var S=new b,j=S[m](g?{}:-0,1)!=S,k=l(function(){S.has(1)}),M=h(function(t){new b(t)}),E=!g&&l(function(){for(var t=new b,e=5;e--;)t[m](e,e);return!t.has(-0)});M||((b=e(function(e,n){s(e,b,t);var r=y(new _,e,b);return null!=n&&c(n,d,r[m],r),r})).prototype=w,w.constructor=b),(k||E)&&(O("delete"),O("has"),d&&O("get")),(E||j)&&O(m),g&&w.clear&&delete w.clear}else b=v.getConstructor(e,t,d,m),a(b.prototype,n),u.NEED=!0;return p(b,t),x[t]=b,o(o.G+o.W+o.F*(b!=_),x),g||v.setStrong(b,t,d),b}},function(t,e,n){for(var r,o=n(1),i=n(14),a=n(29),u=a("typed_array"),c=a("view"),s=!(!o.ArrayBuffer||!o.DataView),f=s,l=0,h="Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array".split(",");l<9;)(r=o[h[l++]])?(i(r.prototype,u,!0),i(r.prototype,c,!0)):f=!1;t.exports={ABV:s,CONSTR:f,TYPED:u,VIEW:c}},function(t,e,n){t.exports=n(92)},function(t,e,n){var r=n(4),o=n(1).document,i=r(o)&&r(o.createElement);t.exports=function(t){return i?o.createElement(t):{}}},function(t,e,n){e.f=n(5)},function(t,e,n){var r=n(48)("keys"),o=n(29);t.exports=function(t){return r[t]||(r[t]=o(t))}},function(t,e){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(t,e,n){var r=n(1).document;t.exports=r&&r.documentElement},function(t,e,n){var r=n(4),o=n(3),i=function(t,e){if(o(t),!r(e)&&null!==e)throw TypeError(e+": can't set as prototype!")};t.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(t,e,r){try{(r=n(17)(Function.call,n(20).f(Object.prototype,"__proto__").set,2))(t,[]),e=!(t instanceof Array)}catch(t){e=!0}return function(t,n){return i(t,n),e?t.__proto__=n:r(t,n),t}}({},!1):void 0),check:i}},function(t,e){t.exports="\t\n\v\f\r   ᠎             　\u2028\u2029\ufeff"},function(t,e,n){var r=n(4),o=n(66).set;t.exports=function(t,e,n){var i,a=e.constructor;return a!==n&&"function"==typeof a&&(i=a.prototype)!==n.prototype&&r(i)&&o&&o(t,i),t}},function(t,e,n){"use strict";var r=n(19),o=n(24);t.exports=function(t){var e=String(o(this)),n="",i=r(t);if(i<0||i==1/0)throw RangeError("Count can't be negative");for(;i>0;(i>>>=1)&&(e+=e))1&i&&(n+=e);return n}},function(t,e){t.exports=Math.sign||function(t){return 0==(t=+t)||t!=t?t:t<0?-1:1}},function(t,e){var n=Math.expm1;t.exports=!n||n(10)>22025.465794806718||n(10)<22025.465794806718||-2e-17!=n(-2e-17)?function(t){return 0==(t=+t)?t:t>-1e-6&&t<1e-6?t+t*t/2:Math.exp(t)-1}:n},function(t,e,n){var r=n(19),o=n(24);t.exports=function(t){return function(e,n){var i,a,u=String(o(e)),c=r(n),s=u.length;return c<0||c>=s?t?"":void 0:(i=u.charCodeAt(c))<55296||i>56319||c+1===s||(a=u.charCodeAt(c+1))<56320||a>57343?t?u.charAt(c):i:t?u.slice(c,c+2):a-56320+(i-55296<<10)+65536}}},function(t,e,n){"use strict";var r=n(30),o=n(0),i=n(11),a=n(14),u=n(40),c=n(108),s=n(38),f=n(35),l=n(5)("iterator"),h=!([].keys&&"next"in[].keys()),p=function(){return this};t.exports=function(t,e,n,y,v,d,g){c(n,e,y);var _,b,m,w=function(t){if(!h&&t in j)return j[t];switch(t){case"keys":case"values":return function(){return new n(this,t)}}return function(){return new n(this,t)}},x=e+" Iterator",O="values"==v,S=!1,j=t.prototype,k=j[l]||j["@@iterator"]||v&&j[v],M=k||w(v),E=v?O?w("entries"):M:void 0,P="Array"==e&&j.entries||k;if(P&&(m=f(P.call(new t)))!==Object.prototype&&m.next&&(s(m,x,!0),r||"function"==typeof m[l]||a(m,l,p)),O&&k&&"values"!==k.name&&(S=!0,M=function(){return k.call(this)}),r&&!g||!h&&!S&&j[l]||a(j,l,M),u[e]=M,u[x]=p,v)if(_={values:O?M:w("values"),keys:d?M:w("keys"),entries:E},g)for(b in _)b in j||i(j,b,_[b]);else o(o.P+o.F*(h||S),e,_);return _}},function(t,e,n){var r=n(75),o=n(24);t.exports=function(t,e,n){if(r(e))throw TypeError("String#"+n+" doesn't accept regex!");return String(o(t))}},function(t,e,n){var r=n(4),o=n(23),i=n(5)("match");t.exports=function(t){var e;return r(t)&&(void 0!==(e=t[i])?!!e:"RegExp"==o(t))}},function(t,e,n){var r=n(5)("match");t.exports=function(t){var e=/./;try{"/./"[t](e)}catch(n){try{return e[r]=!1,!"/./"[t](e)}catch(t){}}return!0}},function(t,e,n){var r=n(40),o=n(5)("iterator"),i=Array.prototype;t.exports=function(t){return void 0!==t&&(r.Array===t||i[o]===t)}},function(t,e,n){"use strict";var r=n(9),o=n(28);t.exports=function(t,e,n){e in t?r.f(t,e,o(0,n)):t[e]=n}},function(t,e,n){var r=n(46),o=n(5)("iterator"),i=n(40);t.exports=n(7).getIteratorMethod=function(t){if(null!=t)return t[o]||t["@@iterator"]||i[r(t)]}},function(t,e,n){"use strict";var r=n(10),o=n(32),i=n(6);t.exports=function(t){for(var e=r(this),n=i(e.length),a=arguments.length,u=o(a>1?arguments[1]:void 0,n),c=a>2?arguments[2]:void 0,s=void 0===c?n:o(c,n);s>u;)e[u++]=t;return e}},function(t,e,n){"use strict";var r=n(36),o=n(113),i=n(40),a=n(15);t.exports=n(73)(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,o(1)):o(0,"keys"==e?n:"values"==e?t[n]:[n,t[n]])},"values"),i.Arguments=i.Array,r("keys"),r("values"),r("entries")},function(t,e,n){"use strict";var r,o,i=n(53),a=RegExp.prototype.exec,u=String.prototype.replace,c=a,s=(r=/a/,o=/b*/g,a.call(r,"a"),a.call(o,"a"),0!==r.lastIndex||0!==o.lastIndex),f=void 0!==/()??/.exec("")[1];(s||f)&&(c=function(t){var e,n,r,o,c=this;return f&&(n=new RegExp("^"+c.source+"$(?!\\s)",i.call(c))),s&&(e=c.lastIndex),r=a.call(c,t),s&&r&&(c.lastIndex=c.global?r.index+r[0].length:e),f&&r&&r.length>1&&u.call(r[0],n,function(){for(o=1;o<arguments.length-2;o++)void 0===arguments[o]&&(r[o]=void 0)}),r}),t.exports=c},function(t,e,n){"use strict";var r=n(72)(!0);t.exports=function(t,e,n){return e+(n?r(t,e).length:1)}},function(t,e,n){var r,o,i,a=n(17),u=n(102),c=n(65),s=n(61),f=n(1),l=f.process,h=f.setImmediate,p=f.clearImmediate,y=f.MessageChannel,v=f.Dispatch,d=0,g={},_=function(){var t=+this;if(g.hasOwnProperty(t)){var e=g[t];delete g[t],e()}},b=function(t){_.call(t.data)};h&&p||(h=function(t){for(var e=[],n=1;arguments.length>n;)e.push(arguments[n++]);return g[++d]=function(){u("function"==typeof t?t:Function(t),e)},r(d),d},p=function(t){delete g[t]},"process"==n(23)(l)?r=function(t){l.nextTick(a(_,t,1))}:v&&v.now?r=function(t){v.now(a(_,t,1))}:y?(i=(o=new y).port2,o.port1.onmessage=b,r=a(i.postMessage,i,1)):f.addEventListener&&"function"==typeof postMessage&&!f.importScripts?(r=function(t){f.postMessage(t+"","*")},f.addEventListener("message",b,!1)):r="onreadystatechange"in s("script")?function(t){c.appendChild(s("script")).onreadystatechange=function(){c.removeChild(this),_.call(t)}}:function(t){setTimeout(a(_,t,1),0)}),t.exports={set:h,clear:p}},function(t,e,n){"use strict";var r=n(1),o=n(8),i=n(30),a=n(59),u=n(14),c=n(43),s=n(2),f=n(42),l=n(19),h=n(6),p=n(121),y=n(34).f,v=n(9).f,d=n(80),g=n(38),_="prototype",b="Wrong index!",m=r.ArrayBuffer,w=r.DataView,x=r.Math,O=r.RangeError,S=r.Infinity,j=m,k=x.abs,M=x.pow,E=x.floor,P=x.log,A=x.LN2,L=o?"_b":"buffer",C=o?"_l":"byteLength",T=o?"_o":"byteOffset";function R(t,e,n){var r,o,i,a=new Array(n),u=8*n-e-1,c=(1<<u)-1,s=c>>1,f=23===e?M(2,-24)-M(2,-77):0,l=0,h=t<0||0===t&&1/t<0?1:0;for((t=k(t))!=t||t===S?(o=t!=t?1:0,r=c):(r=E(P(t)/A),t*(i=M(2,-r))<1&&(r--,i*=2),(t+=r+s>=1?f/i:f*M(2,1-s))*i>=2&&(r++,i/=2),r+s>=c?(o=0,r=c):r+s>=1?(o=(t*i-1)*M(2,e),r+=s):(o=t*M(2,s-1)*M(2,e),r=0));e>=8;a[l++]=255&o,o/=256,e-=8);for(r=r<<e|o,u+=e;u>0;a[l++]=255&r,r/=256,u-=8);return a[--l]|=128*h,a}function D(t,e,n){var r,o=8*n-e-1,i=(1<<o)-1,a=i>>1,u=o-7,c=n-1,s=t[c--],f=127&s;for(s>>=7;u>0;f=256*f+t[c],c--,u-=8);for(r=f&(1<<-u)-1,f>>=-u,u+=e;u>0;r=256*r+t[c],c--,u-=8);if(0===f)f=1-a;else{if(f===i)return r?NaN:s?-S:S;r+=M(2,e),f-=a}return(s?-1:1)*r*M(2,f-e)}function N(t){return t[3]<<24|t[2]<<16|t[1]<<8|t[0]}function I(t){return[255&t]}function z(t){return[255&t,t>>8&255]}function F(t){return[255&t,t>>8&255,t>>16&255,t>>24&255]}function U(t){return R(t,52,8)}function B(t){return R(t,23,4)}function q(t,e,n){v(t[_],e,{get:function(){return this[n]}})}function V(t,e,n,r){var o=p(+n);if(o+e>t[C])throw O(b);var i=t[L]._b,a=o+t[T],u=i.slice(a,a+e);return r?u:u.reverse()}function W(t,e,n,r,o,i){var a=p(+n);if(a+e>t[C])throw O(b);for(var u=t[L]._b,c=a+t[T],s=r(+o),f=0;f<e;f++)u[c+f]=s[i?f:e-f-1]}if(a.ABV){if(!s(function(){m(1)})||!s(function(){new m(-1)})||s(function(){return new m,new m(1.5),new m(NaN),"ArrayBuffer"!=m.name})){for(var G,Y=(m=function(t){return f(this,m),new j(p(t))})[_]=j[_],H=y(j),$=0;H.length>$;)(G=H[$++])in m||u(m,G,j[G]);i||(Y.constructor=m)}var Z=new w(new m(2)),X=w[_].setInt8;Z.setInt8(0,2147483648),Z.setInt8(1,2147483649),!Z.getInt8(0)&&Z.getInt8(1)||c(w[_],{setInt8:function(t,e){X.call(this,t,e<<24>>24)},setUint8:function(t,e){X.call(this,t,e<<24>>24)}},!0)}else m=function(t){f(this,m,"ArrayBuffer");var e=p(t);this._b=d.call(new Array(e),0),this[C]=e},w=function(t,e,n){f(this,w,"DataView"),f(t,m,"DataView");var r=t[C],o=l(e);if(o<0||o>r)throw O("Wrong offset!");if(o+(n=void 0===n?r-o:h(n))>r)throw O("Wrong length!");this[L]=t,this[T]=o,this[C]=n},o&&(q(m,"byteLength","_l"),q(w,"buffer","_b"),q(w,"byteLength","_l"),q(w,"byteOffset","_o")),c(w[_],{getInt8:function(t){return V(this,1,t)[0]<<24>>24},getUint8:function(t){return V(this,1,t)[0]},getInt16:function(t){var e=V(this,2,t,arguments[1]);return(e[1]<<8|e[0])<<16>>16},getUint16:function(t){var e=V(this,2,t,arguments[1]);return e[1]<<8|e[0]},getInt32:function(t){return N(V(this,4,t,arguments[1]))},getUint32:function(t){return N(V(this,4,t,arguments[1]))>>>0},getFloat32:function(t){return D(V(this,4,t,arguments[1]),23,4)},getFloat64:function(t){return D(V(this,8,t,arguments[1]),52,8)},setInt8:function(t,e){W(this,1,t,I,e)},setUint8:function(t,e){W(this,1,t,I,e)},setInt16:function(t,e){W(this,2,t,z,e,arguments[2])},setUint16:function(t,e){W(this,2,t,z,e,arguments[2])},setInt32:function(t,e){W(this,4,t,F,e,arguments[2])},setUint32:function(t,e){W(this,4,t,F,e,arguments[2])},setFloat32:function(t,e){W(this,4,t,B,e,arguments[2])},setFloat64:function(t,e){W(this,8,t,U,e,arguments[2])}});g(m,"ArrayBuffer"),g(w,"DataView"),u(w[_],a.VIEW,!0),e.ArrayBuffer=m,e.DataView=w},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){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},function(t,e,n){t.exports=!n(126)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},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 o(t){return t<0?0:t>1?1:t}function i(t){return"%"===t[t.length-1]?r(parseFloat(t)/100*255):r(parseInt(t))}function a(t){return"%"===t[t.length-1]?o(parseFloat(t)/100):o(parseFloat(t))}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}try{e.parseCSSColor=function(t){var e,o=t.replace(/ /g,"").toLowerCase();if(o in n)return n[o].slice();if("#"===o[0])return 4===o.length?(e=parseInt(o.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===o.length&&(e=parseInt(o.substr(1),16))>=0&&e<=16777215?[(16711680&e)>>16,(65280&e)>>8,255&e,1]:null;var c=o.indexOf("("),s=o.indexOf(")");if(-1!==c&&s+1===o.length){var f=o.substr(0,c),l=o.substr(c+1,s-(c+1)).split(","),h=1;switch(f){case"rgba":if(4!==l.length)return null;h=a(l.pop());case"rgb":return 3!==l.length?null:[i(l[0]),i(l[1]),i(l[2]),h];case"hsla":if(4!==l.length)return null;h=a(l.pop());case"hsl":if(3!==l.length)return null;var p=(parseFloat(l[0])%360+360)%360/360,y=a(l[1]),v=a(l[2]),d=v<=.5?v*(y+1):v+y-v*y,g=2*v-d;return[r(255*u(g,d,p+1/3)),r(255*u(g,d,p)),r(255*u(g,d,p-1/3)),h];default:return null}}return null}}catch(t){}},function(t,e){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(t){"object"==typeof window&&(n=window)}t.exports=n},function(t,e){(function(e){t.exports=e}).call(this,{})},function(t,e,n){!function(){"use strict";var e=Math.abs,r=Math.min,o=Math.max,i=Math.cos,a=Math.sin,u=Math.acos,c=Math.sqrt,s=Math.PI,f={x:0,y:0,z:0},l=n(93),h=n(132),p=function(t){var n=t&&t.forEach?t:[].slice.call(arguments),r=!1;if("object"==typeof n[0]){r=n.length;var o=[];n.forEach(function(t){["x","y","z"].forEach(function(e){void 0!==t[e]&&o.push(t[e])})}),n=o}var i=!1,a=n.length;if(r){if(r>4){if(1!==arguments.length)throw new Error("Only new Bezier(point[]) is accepted for 4th and higher order curves");i=!0}}else if(6!==a&&8!==a&&9!==a&&12!==a&&1!==arguments.length)throw new Error("Only new Bezier(point[]) is accepted for 4th and higher order curves");var u=!i&&(9===a||12===a)||t&&t[0]&&void 0!==t[0].z;this._3d=u;for(var c=[],s=0,f=u?3:2;s<a;s+=f){var h={x:n[s],y:n[s+1]};u&&(h.z=n[s+2]),c.push(h)}this.order=c.length-1,this.points=c;var p=["x","y"];u&&p.push("z"),this.dims=p,this.dimlen=p.length,function(t){for(var n=t.order,r=t.points,o=l.align(r,{p1:r[0],p2:r[n]}),i=0;i<o.length;i++)if(e(o[i].y)>1e-4)return void(t._linear=!1);t._linear=!0}(this),this._t1=0,this._t2=1,this.update()},y=n(133);function v(t,e,n,r,o){void 0===o&&(o=.5);var i=l.projectionratio(o,t),a=1-i,u={x:i*e.x+a*r.x,y:i*e.y+a*r.y},c=l.abcratio(o,t);return{A:{x:n.x+(n.x-u.x)/c,y:n.y+(n.y-u.y)/c},B:n,C:u}}p.SVGtoBeziers=function(t){return y(p,t)},p.quadraticFromPoints=function(t,e,n,r){if(void 0===r&&(r=.5),0===r)return new p(e,e,n);if(1===r)return new p(t,e,e);var o=v(2,t,e,n,r);return new p(t,o.A,n)},p.cubicFromPoints=function(t,e,n,r,o){void 0===r&&(r=.5);var i=v(3,t,e,n,r);void 0===o&&(o=l.dist(e,i.C));var a=o*(1-r)/r,u=l.dist(t,n),c=(n.x-t.x)/u,s=(n.y-t.y)/u,f=o*c,h=o*s,y=a*c,d=a*s,g=e.x-f,_=e.y-h,b=e.x+y,m=e.y+d,w=i.A,x=w.x+(g-w.x)/(1-r),O=w.y+(_-w.y)/(1-r),S=w.x+(b-w.x)/r,j=w.y+(m-w.y)/r,k={x:t.x+(x-t.x)/r,y:t.y+(O-t.y)/r},M={x:n.x+(S-n.x)/(1-r),y:n.y+(j-n.y)/(1-r)};return new p(t,k,M,n)};var d=function(){return l};p.getUtils=d,p.PolyBezier=h,p.prototype={getUtils:d,valueOf:function(){return this.toString()},toString:function(){return l.pointsToString(this.points)},toSVG:function(t){if(this._3d)return!1;for(var e=this.points,n=["M",e[0].x,e[0].y,2===this.order?"Q":"C"],r=1,o=e.length;r<o;r++)n.push(e[r].x),n.push(e[r].y);return n.join(" ")},update:function(){this._lut=[],this.dpoints=l.derive(this.points,this._3d),this.computedirection()},computedirection:function(){var t=this.points,e=l.angle(t[0],t[this.order],t[1]);this.clockwise=e>0},length:function(){return l.length(this.derivative.bind(this))},_lut:[],getLUT:function(t){if(t=t||100,this._lut.length===t)return this._lut;this._lut=[],t--;for(var e=0;e<=t;e++)this._lut.push(this.compute(e/t));return this._lut},on:function(t,e){e=e||5;for(var n,r=this.getLUT(),o=[],i=0,a=0;a<r.length;a++)n=r[a],l.dist(n,t)<e&&(o.push(n),i+=a/r.length);return!!o.length&&i/o.length},project:function(t){var e=this.getLUT(),n=e.length-1,r=l.closest(e,t),o=r.mdist,i=r.mpos;if(0===i||i===n){var a=i/n,u=this.compute(a);return u.t=a,u.d=o,u}var c,s,f,h=(i+1)/n,p=.1/n;for(o+=1,c=a=(i-1)/n;a<h+p;a+=p)s=this.compute(a),(f=l.dist(t,s))<o&&(o=f,c=a);return(s=this.compute(c)).t=c,s.d=o,s},get:function(t){return this.compute(t)},point:function(t){return this.points[t]},compute:function(t){return l.compute(t,this.points,this._3d)},raise:function(){for(var t,e,n=this.points,r=[n[0]],o=n.length,i=1;i<o;i++)t=n[i],e=n[i-1],r[i]={x:(o-i)/o*t.x+i/o*e.x,y:(o-i)/o*t.y+i/o*e.y};return r[o]=n[o-1],new p(r)},derivative:function(t){var e,n,r=1-t,o=0,i=this.dpoints[0];2===this.order&&(i=[i[0],i[1],f],e=r,n=t),3===this.order&&(e=r*r,n=r*t*2,o=t*t);var a={x:e*i[0].x+n*i[1].x+o*i[2].x,y:e*i[0].y+n*i[1].y+o*i[2].y};return this._3d&&(a.z=e*i[0].z+n*i[1].z+o*i[2].z),a},curvature:function(t){return l.curvature(t,this.points,this._3d)},inflections:function(){return l.inflections(this.points)},normal:function(t){return this._3d?this.__normal3(t):this.__normal2(t)},__normal2:function(t){var e=this.derivative(t),n=c(e.x*e.x+e.y*e.y);return{x:-e.y/n,y:e.x/n}},__normal3:function(t){var e=this.derivative(t),n=this.derivative(t+.01),r=c(e.x*e.x+e.y*e.y+e.z*e.z),o=c(n.x*n.x+n.y*n.y+n.z*n.z);e.x/=r,e.y/=r,e.z/=r,n.x/=o,n.y/=o,n.z/=o;var i={x:n.y*e.z-n.z*e.y,y:n.z*e.x-n.x*e.z,z:n.x*e.y-n.y*e.x},a=c(i.x*i.x+i.y*i.y+i.z*i.z);i.x/=a,i.y/=a,i.z/=a;var u=[i.x*i.x,i.x*i.y-i.z,i.x*i.z+i.y,i.x*i.y+i.z,i.y*i.y,i.y*i.z-i.x,i.x*i.z-i.y,i.y*i.z+i.x,i.z*i.z];return{x:u[0]*e.x+u[1]*e.y+u[2]*e.z,y:u[3]*e.x+u[4]*e.y+u[5]*e.z,z:u[6]*e.x+u[7]*e.y+u[8]*e.z}},hull:function(t){var e,n=this.points,r=[],o=[],i=0,a=0,u=0;for(o[i++]=n[0],o[i++]=n[1],o[i++]=n[2],3===this.order&&(o[i++]=n[3]);n.length>1;){for(r=[],a=0,u=n.length-1;a<u;a++)e=l.lerp(t,n[a],n[a+1]),o[i++]=e,r.push(e);n=r}return o},split:function(t,e){if(0===t&&e)return this.split(e).left;if(1===e)return this.split(t).right;var n=this.hull(t),r={left:2===this.order?new p([n[0],n[3],n[5]]):new p([n[0],n[4],n[7],n[9]]),right:2===this.order?new p([n[5],n[4],n[2]]):new p([n[9],n[8],n[6],n[3]]),span:n};return r.left._t1=l.map(0,0,1,this._t1,this._t2),r.left._t2=l.map(t,0,1,this._t1,this._t2),r.right._t1=l.map(t,0,1,this._t1,this._t2),r.right._t2=l.map(1,0,1,this._t1,this._t2),e?(e=l.map(e,t,1,0,1),r.right.split(e).left):r},extrema:function(){var t,e,n=this.dims,r={},o=[];return n.forEach(function(n){e=function(t){return t[n]},t=this.dpoints[0].map(e),r[n]=l.droots(t),3===this.order&&(t=this.dpoints[1].map(e),r[n]=r[n].concat(l.droots(t))),r[n]=r[n].filter(function(t){return t>=0&&t<=1}),o=o.concat(r[n].sort(l.numberSort))}.bind(this)),o=o.sort(l.numberSort).filter(function(t,e){return o.indexOf(t)===e}),r.values=o,r},bbox:function(){var t=this.extrema(),e={};return this.dims.forEach(function(n){e[n]=l.getminmax(this,n,t[n])}.bind(this)),e},overlaps:function(t){var e=this.bbox(),n=t.bbox();return l.bboxoverlap(e,n)},offset:function(t,e){if(void 0!==e){var n=this.get(t),r=this.normal(t),o={c:n,n:r,x:n.x+r.x*e,y:n.y+r.y*e};return this._3d&&(o.z=n.z+r.z*e),o}if(this._linear){var i=this.normal(0),a=this.points.map(function(e){var n={x:e.x+t*i.x,y:e.y+t*i.y};return e.z&&r.z&&(n.z=e.z+t*i.z),n});return[new p(a)]}return this.reduce().map(function(e){return e.scale(t)})},simple:function(){if(3===this.order){var t=l.angle(this.points[0],this.points[3],this.points[1]),n=l.angle(this.points[0],this.points[3],this.points[2]);if(t>0&&n<0||t<0&&n>0)return!1}var r=this.normal(0),o=this.normal(1),i=r.x*o.x+r.y*o.y;return this._3d&&(i+=r.z*o.z),e(u(i))<s/3},reduce:function(){var t,n,r=0,o=0,i=[],a=[],u=this.extrema().values;for(-1===u.indexOf(0)&&(u=[0].concat(u)),-1===u.indexOf(1)&&u.push(1),r=u[0],t=1;t<u.length;t++)o=u[t],(n=this.split(r,o))._t1=r,n._t2=o,i.push(n),r=o;return i.forEach(function(t){for(r=0,o=0;o<=1;)for(o=r+.01;o<=1.01;o+=.01)if(!(n=t.split(r,o)).simple()){if(e(r-(o-=.01))<.01)return[];(n=t.split(r,o))._t1=l.map(r,0,1,t._t1,t._t2),n._t2=l.map(o,0,1,t._t1,t._t2),a.push(n),r=o;break}r<1&&((n=t.split(r,1))._t1=l.map(r,0,1,t._t1,t._t2),n._t2=t._t2,a.push(n))}),a},scale:function(t){var e=this.order,n=!1;if("function"==typeof t&&(n=t),n&&2===e)return this.raise().scale(n);var r=this.clockwise,o=n?n(0):t,i=n?n(1):t,a=[this.offset(0,10),this.offset(1,10)],u=l.lli4(a[0],a[0].c,a[1],a[1].c);if(!u)throw new Error("cannot scale this curve. Try reducing it first.");var s=this.points,f=[];return[0,1].forEach(function(t){var n=f[t*e]=l.copy(s[t*e]);n.x+=(t?i:o)*a[t].n.x,n.y+=(t?i:o)*a[t].n.y}.bind(this)),n?([0,1].forEach(function(o){if(2!==this.order||!o){var i=s[o+1],a={x:i.x-u.x,y:i.y-u.y},l=n?n((o+1)/e):t;n&&!r&&(l=-l);var h=c(a.x*a.x+a.y*a.y);a.x/=h,a.y/=h,f[o+1]={x:i.x+l*a.x,y:i.y+l*a.y}}}.bind(this)),new p(f)):([0,1].forEach(function(t){if(2!==this.order||!t){var n=f[t*e],r=this.derivative(t),o={x:n.x+r.x,y:n.y+r.y};f[t+1]=l.lli4(n,o,u,s[t+1])}}.bind(this)),new p(f))},outline:function(t,e,n,r){e=void 0===e?t:e;var o,i=this.reduce(),a=i.length,u=[],c=[],s=0,f=this.length(),p=void 0!==n&&void 0!==r;function y(t,e,n,r,o){return function(i){var a=r/n,u=(r+o)/n,c=e-t;return l.map(i,0,1,t+a*c,t+u*c)}}i.forEach(function(o){x=o.length(),p?(u.push(o.scale(y(t,n,f,s,x))),c.push(o.scale(y(-e,-r,f,s,x)))):(u.push(o.scale(t)),c.push(o.scale(-e))),s+=x}),c=c.map(function(t){return(o=t.points)[3]?t.points=[o[3],o[2],o[1],o[0]]:t.points=[o[2],o[1],o[0]],t}).reverse();var v=u[0].points[0],d=u[a-1].points[u[a-1].points.length-1],g=c[a-1].points[c[a-1].points.length-1],_=c[0].points[0],b=l.makeline(g,v),m=l.makeline(d,_),w=[b].concat(u).concat([m]).concat(c),x=w.length;return new h(w)},outlineshapes:function(t,e,n){e=e||t;for(var r=this.outline(t,e).curves,o=[],i=1,a=r.length;i<a/2;i++){var u=l.makeshape(r[i],r[a-i],n);u.startcap.virtual=i>1,u.endcap.virtual=i<a/2-1,o.push(u)}return o},intersects:function(t,e){return t?t.p1&&t.p2?this.lineIntersects(t):(t instanceof p&&(t=t.reduce()),this.curveintersects(this.reduce(),t,e)):this.selfintersects(e)},lineIntersects:function(t){var e=r(t.p1.x,t.p2.x),n=r(t.p1.y,t.p2.y),i=o(t.p1.x,t.p2.x),a=o(t.p1.y,t.p2.y),u=this;return l.roots(this.points,t).filter(function(t){var r=u.get(t);return l.between(r.x,e,i)&&l.between(r.y,n,a)})},selfintersects:function(t){var e,n,r,o,i=this.reduce(),a=i.length-2,u=[];for(e=0;e<a;e++)r=i.slice(e,e+1),o=i.slice(e+2),n=this.curveintersects(r,o,t),u=u.concat(n);return u},curveintersects:function(t,e,n){var r=[];t.forEach(function(t){e.forEach(function(e){t.overlaps(e)&&r.push({left:t,right:e})})});var o=[];return r.forEach(function(t){var e=l.pairiteration(t.left,t.right,n);e.length>0&&(o=o.concat(e))}),o},arcs:function(t){t=t||.5;return this._iterate(t,[])},_error:function(t,n,r,o){var i=(o-r)/4,a=this.get(r+i),u=this.get(o-i),c=l.dist(t,n),s=l.dist(t,a),f=l.dist(t,u);return e(s-c)+e(f-c)},_iterate:function(t,e){var n,r=0,o=1;do{n=0,o=1;var u,c,s,f,h,p=this.get(r),y=!1,v=!1,d=o,g=1;do{if(v=y,f=s,d=(r+o)/2,0,u=this.get(d),c=this.get(o),(s=l.getccenter(p,u,c)).interval={start:r,end:o},y=this._error(s,p,r,o)<=t,(h=v&&!y)||(g=o),y){if(o>=1){if(s.interval.end=g=1,f=s,o>1){var _={x:s.x+s.r*i(s.e),y:s.y+s.r*a(s.e)};s.e+=l.angle({x:s.x,y:s.y},_,this.get(1))}break}o+=(o-r)/2}else o=d}while(!h&&n++<100);if(n>=100)break;f=f||s,e.push(f),r=g}while(o<1);return e}},t.exports=p}()},function(t,e,n){!function(){"use strict";var e=Math.abs,r=Math.cos,o=Math.sin,i=Math.acos,a=Math.atan2,u=Math.sqrt,c=Math.pow,s=function(t){return t<0?-c(-t,1/3):c(t,1/3)},f=Math.PI,l=2*f,h=f/2,p=Number.MAX_SAFE_INTEGER||9007199254740991,y=Number.MIN_SAFE_INTEGER||-9007199254740991,v={x:0,y:0,z:0},d={Tvalues:[-.06405689286260563,.06405689286260563,-.1911188674736163,.1911188674736163,-.3150426796961634,.3150426796961634,-.4337935076260451,.4337935076260451,-.5454214713888396,.5454214713888396,-.6480936519369755,.6480936519369755,-.7401241915785544,.7401241915785544,-.820001985973903,.820001985973903,-.8864155270044011,.8864155270044011,-.9382745520027328,.9382745520027328,-.9747285559713095,.9747285559713095,-.9951872199970213,.9951872199970213],Cvalues:[.12793819534675216,.12793819534675216,.1258374563468283,.1258374563468283,.12167047292780339,.12167047292780339,.1155056680537256,.1155056680537256,.10744427011596563,.10744427011596563,.09761865210411388,.09761865210411388,.08619016153195327,.08619016153195327,.0733464814110803,.0733464814110803,.05929858491543678,.05929858491543678,.04427743881741981,.04427743881741981,.028531388628933663,.028531388628933663,.0123412297999872,.0123412297999872],arcfn:function(t,e){var n=e(t),r=n.x*n.x+n.y*n.y;return void 0!==n.z&&(r+=n.z*n.z),u(r)},compute:function(t,e,n){if(0===t)return e[0];var r=e.length-1;if(1===t)return e[r];var o=e,i=1-t;if(0===r)return e[0];if(1===r)return h={x:i*o[0].x+t*o[1].x,y:i*o[0].y+t*o[1].y},n&&(h.z=i*o[0].z+t*o[1].z),h;if(r<4){var a,u,c,s=i*i,f=t*t,l=0;2===r?(o=[o[0],o[1],o[2],v],a=s,u=i*t*2,c=f):3===r&&(a=s*i,u=s*t*3,c=i*f*3,l=t*f);var h={x:a*o[0].x+u*o[1].x+c*o[2].x+l*o[3].x,y:a*o[0].y+u*o[1].y+c*o[2].y+l*o[3].y};return n&&(h.z=a*o[0].z+u*o[1].z+c*o[2].z+l*o[3].z),h}for(var p=JSON.parse(JSON.stringify(e));p.length>1;){for(var y=0;y<p.length-1;y++)p[y]={x:p[y].x+(p[y+1].x-p[y].x)*t,y:p[y].y+(p[y+1].y-p[y].y)*t},void 0!==p[y].z&&(p[y]=p[y].z+(p[y+1].z-p[y].z)*t);p.splice(p.length-1,1)}return p[0]},derive:function(t,e){for(var n=[],r=t,o=r.length,i=o-1;o>1;o--,i--){for(var a,u=[],c=0;c<i;c++)a={x:i*(r[c+1].x-r[c].x),y:i*(r[c+1].y-r[c].y)},e&&(a.z=i*(r[c+1].z-r[c].z)),u.push(a);n.push(u),r=u}return n},between:function(t,e,n){return e<=t&&t<=n||d.approximately(t,e)||d.approximately(t,n)},approximately:function(t,n,r){return e(t-n)<=(r||1e-6)},length:function(t){var e,n,r=0,o=d.Tvalues.length;for(e=0;e<o;e++)n=.5*d.Tvalues[e]+.5,r+=d.Cvalues[e]*d.arcfn(n,t);return.5*r},map:function(t,e,n,r,o){return r+(o-r)*((t-e)/(n-e))},lerp:function(t,e,n){var r={x:e.x+t*(n.x-e.x),y:e.y+t*(n.y-e.y)};return e.z&&n.z&&(r.z=e.z+t*(n.z-e.z)),r},pointToString:function(t){var e=t.x+"/"+t.y;return void 0!==t.z&&(e+="/"+t.z),e},pointsToString:function(t){return"["+t.map(d.pointToString).join(", ")+"]"},copy:function(t){return JSON.parse(JSON.stringify(t))},angle:function(t,e,n){var r=e.x-t.x,o=e.y-t.y,i=n.x-t.x,u=n.y-t.y;return a(r*u-o*i,r*i+o*u)},round:function(t,e){var n=""+t,r=n.indexOf(".");return parseFloat(n.substring(0,r+1+e))},dist:function(t,e){var n=t.x-e.x,r=t.y-e.y;return u(n*n+r*r)},closest:function(t,e){var n,r,o=c(2,63);return t.forEach(function(t,i){(r=d.dist(e,t))<o&&(o=r,n=i)}),{mdist:o,mpos:n}},abcratio:function(t,n){if(2!==n&&3!==n)return!1;if(void 0===t)t=.5;else if(0===t||1===t)return t;var r=c(t,n)+c(1-t,n);return e((r-1)/r)},projectionratio:function(t,e){if(2!==e&&3!==e)return!1;if(void 0===t)t=.5;else if(0===t||1===t)return t;var n=c(1-t,e);return n/(c(t,e)+n)},lli8:function(t,e,n,r,o,i,a,u){var c=(t-n)*(i-u)-(e-r)*(o-a);return 0!=c&&{x:((t*r-e*n)*(o-a)-(t-n)*(o*u-i*a))/c,y:((t*r-e*n)*(i-u)-(e-r)*(o*u-i*a))/c}},lli4:function(t,e,n,r){var o=t.x,i=t.y,a=e.x,u=e.y,c=n.x,s=n.y,f=r.x,l=r.y;return d.lli8(o,i,a,u,c,s,f,l)},lli:function(t,e){return d.lli4(t,t.c,e,e.c)},makeline:function(t,e){var r=n(92),o=t.x,i=t.y,a=e.x,u=e.y,c=(a-o)/3,s=(u-i)/3;return new r(o,i,o+c,i+s,o+2*c,i+2*s,a,u)},findbbox:function(t){var e=p,n=p,r=y,o=y;return t.forEach(function(t){var i=t.bbox();e>i.x.min&&(e=i.x.min),n>i.y.min&&(n=i.y.min),r<i.x.max&&(r=i.x.max),o<i.y.max&&(o=i.y.max)}),{x:{min:e,mid:(e+r)/2,max:r,size:r-e},y:{min:n,mid:(n+o)/2,max:o,size:o-n}}},shapeintersections:function(t,e,n,r,o){if(!d.bboxoverlap(e,r))return[];var i=[],a=[t.startcap,t.forward,t.back,t.endcap],u=[n.startcap,n.forward,n.back,n.endcap];return a.forEach(function(e){e.virtual||u.forEach(function(r){if(!r.virtual){var a=e.intersects(r,o);a.length>0&&(a.c1=e,a.c2=r,a.s1=t,a.s2=n,i.push(a))}})}),i},makeshape:function(t,e,n){var r=e.points.length,o=t.points.length,i=d.makeline(e.points[r-1],t.points[0]),a=d.makeline(t.points[o-1],e.points[0]),u={startcap:i,forward:t,back:e,endcap:a,bbox:d.findbbox([i,t,e,a])},c=d;return u.intersections=function(t){return c.shapeintersections(u,u.bbox,t,t.bbox,n)},u},getminmax:function(t,e,n){if(!n)return{min:0,max:0};var r,o,i=p,a=y;-1===n.indexOf(0)&&(n=[0].concat(n)),-1===n.indexOf(1)&&n.push(1);for(var u=0,c=n.length;u<c;u++)r=n[u],(o=t.get(r))[e]<i&&(i=o[e]),o[e]>a&&(a=o[e]);return{min:i,mid:(i+a)/2,max:a,size:a-i}},align:function(t,e){var n=e.p1.x,i=e.p1.y,u=-a(e.p2.y-i,e.p2.x-n);return t.map(function(t){return{x:(t.x-n)*r(u)-(t.y-i)*o(u),y:(t.x-n)*o(u)+(t.y-i)*r(u)}})},roots:function(t,e){e=e||{p1:{x:0,y:0},p2:{x:1,y:0}};var n=t.length-1,o=d.align(t,e),a=function(t){return 0<=t&&t<=1};if(2===n){if(0!==(v=(g=o[0].y)-2*(_=o[1].y)+(b=o[2].y))){var c=-u(_*_-g*b),f=-g+_;return[-(c+f)/v,-(-c+f)/v].filter(a)}return _!==b&&0===v?[(2*_-b)/(2*_-2*b)].filter(a):[]}var h=o[0].y,p=o[1].y,y=o[2].y,v=3*p-h-3*y+o[3].y,g=3*h-6*p+3*y,_=-3*h+3*p,b=h;if(d.approximately(v,0)){if(d.approximately(g,0))return d.approximately(_,0)?[]:[-b/_].filter(a);var m=2*g;return[((w=u(_*_-4*g*b))-_)/m,(-_-w)/m].filter(a)}var w,x,O=(o=(3*(_/=v)-(g/=v)*g)/3)/3,S=(w=(2*g*g*g-9*g*_+27*(b/=v))/27)/2,j=S*S+O*O*O;if(j<0){var k=-o/3,M=u(k*k*k),E=-w/(2*M),P=i(E<-1?-1:E>1?1:E),A=2*s(M);return[A*r(P/3)-g/3,A*r((P+l)/3)-g/3,A*r((P+2*l)/3)-g/3].filter(a)}if(0===j)return[2*(x=S<0?s(-S):-s(S))-g/3,-x-g/3].filter(a);var L=u(j);return[(x=s(-S+L))-s(S+L)-g/3].filter(a)},droots:function(t){if(3===t.length){var e=t[0],n=t[1],r=t[2],o=e-2*n+r;if(0!==o){var i=-u(n*n-e*r),a=-e+n;return[-(i+a)/o,-(-i+a)/o]}return n!==r&&0===o?[(2*n-r)/(2*(n-r))]:[]}if(2===t.length)return(e=t[0])!==(n=t[1])?[e/(e-n)]:[]},curvature:function(t,e,n){var r,o,i=d.derive(e),a=i[0],s=i[1],f=d.compute(t,a),l=d.compute(t,s);return n?(r=u(c(f.y*l.z-l.y*f.z,2)+c(f.z*l.x-l.z*f.x,2)+c(f.x*l.y-l.x*f.y,2)),o=c(f.x*f.x+f.y*f.y+f.z*f.z,1.5)):(r=f.x*l.y-f.y*l.x,o=c(f.x*f.x+f.y*f.y,1.5)),0===r||0===o?{k:0,r:0}:{k:r/o,r:o/r}},inflections:function(t){if(t.length<4)return[];var e=d.align(t,{p1:t[0],p2:t.slice(-1)[0]}),n=e[2].x*e[1].y,r=e[3].x*e[1].y,o=e[1].x*e[2].y,i=18*(-3*n+2*r+3*o-(l=e[3].x*e[2].y)),a=18*(3*n-r-3*o),u=18*(o-n);if(d.approximately(i,0)){if(!d.approximately(a,0)){var c=-u/a;if(0<=c&&c<=1)return[c]}return[]}var s=a*a-4*i*u,f=Math.sqrt(s),l=2*i;return d.approximately(l,0)?[]:[(f-a)/l,-(a+f)/l].filter(function(t){return 0<=t&&t<=1})},bboxoverlap:function(t,n){var r,o,i,a,u,c=["x","y"],s=c.length;for(r=0;r<s;r++)if(i=t[o=c[r]].mid,a=n[o].mid,u=(t[o].size+n[o].size)/2,e(i-a)>=u)return!1;return!0},expandbox:function(t,e){e.x.min<t.x.min&&(t.x.min=e.x.min),e.y.min<t.y.min&&(t.y.min=e.y.min),e.z&&e.z.min<t.z.min&&(t.z.min=e.z.min),e.x.max>t.x.max&&(t.x.max=e.x.max),e.y.max>t.y.max&&(t.y.max=e.y.max),e.z&&e.z.max>t.z.max&&(t.z.max=e.z.max),t.x.mid=(t.x.min+t.x.max)/2,t.y.mid=(t.y.min+t.y.max)/2,t.z&&(t.z.mid=(t.z.min+t.z.max)/2),t.x.size=t.x.max-t.x.min,t.y.size=t.y.max-t.y.min,t.z&&(t.z.size=t.z.max-t.z.min)},pairiteration:function(t,e,n){var r=t.bbox(),o=e.bbox(),i=1e5,a=n||.5;if(r.x.size+r.y.size<a&&o.x.size+o.y.size<a)return[(i*(t._t1+t._t2)/2|0)/i+"/"+(i*(e._t1+e._t2)/2|0)/i];var u=t.split(.5),c=e.split(.5),s=[{left:u.left,right:c.left},{left:u.left,right:c.right},{left:u.right,right:c.right},{left:u.right,right:c.left}];s=s.filter(function(t){return d.bboxoverlap(t.left.bbox(),t.right.bbox())});var f=[];return 0===s.length?f:(s.forEach(function(t){f=f.concat(d.pairiteration(t.left,t.right,a))}),f=f.filter(function(t,e){return f.indexOf(t)===e}))},getccenter:function(t,e,n){var i,u=e.x-t.x,c=e.y-t.y,s=n.x-e.x,f=n.y-e.y,p=u*r(h)-c*o(h),y=u*o(h)+c*r(h),v=s*r(h)-f*o(h),g=s*o(h)+f*r(h),_=(t.x+e.x)/2,b=(t.y+e.y)/2,m=(e.x+n.x)/2,w=(e.y+n.y)/2,x=_+p,O=b+y,S=m+v,j=w+g,k=d.lli8(_,b,x,O,m,w,S,j),M=d.dist(k,t),E=a(t.y-k.y,t.x-k.x),P=a(e.y-k.y,e.x-k.x),A=a(n.y-k.y,n.x-k.x);return E<A?((E>P||P>A)&&(E+=l),E>A&&(i=A,A=E,E=i)):A<P&&P<E?(i=A,A=E,E=i):A+=l,k.s=E,k.e=A,k.r=M,k},numberSort:function(t,e){return t-e}};t.exports=d}()},function(t,e,n){t.exports=!n(8)&&!n(2)(function(){return 7!=Object.defineProperty(n(61)("div"),"a",{get:function(){return 7}}).a})},function(t,e,n){var r=n(1),o=n(7),i=n(30),a=n(62),u=n(9).f;t.exports=function(t){var e=o.Symbol||(o.Symbol=i?{}:r.Symbol||{});"_"==t.charAt(0)||t in e||u(e,t,{value:a.f(t)})}},function(t,e,n){var r=n(13),o=n(15),i=n(49)(!1),a=n(63)("IE_PROTO");t.exports=function(t,e){var n,u=o(t),c=0,s=[];for(n in u)n!=a&&r(u,n)&&s.push(n);for(;e.length>c;)r(u,n=e[c++])&&(~i(s,n)||s.push(n));return s}},function(t,e,n){var r=n(9),o=n(3),i=n(31);t.exports=n(8)?Object.defineProperties:function(t,e){o(t);for(var n,a=i(e),u=a.length,c=0;u>c;)r.f(t,n=a[c++],e[n]);return t}},function(t,e,n){var r=n(15),o=n(34).f,i={}.toString,a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];t.exports.f=function(t){return a&&"[object Window]"==i.call(t)?function(t){try{return o(t)}catch(t){return a.slice()}}(t):o(r(t))}},function(t,e,n){"use strict";var r=n(8),o=n(31),i=n(50),a=n(45),u=n(10),c=n(44),s=Object.assign;t.exports=!s||n(2)(function(){var t={},e={},n=Symbol(),r="abcdefghijklmnopqrst";return t[n]=7,r.split("").forEach(function(t){e[t]=t}),7!=s({},t)[n]||Object.keys(s({},e)).join("")!=r})?function(t,e){for(var n=u(t),s=arguments.length,f=1,l=i.f,h=a.f;s>f;)for(var p,y=c(arguments[f++]),v=l?o(y).concat(l(y)):o(y),d=v.length,g=0;d>g;)p=v[g++],r&&!h.call(y,p)||(n[p]=y[p]);return n}:s},function(t,e){t.exports=Object.is||function(t,e){return t===e?0!==t||1/t==1/e:t!=t&&e!=e}},function(t,e,n){"use strict";var r=n(18),o=n(4),i=n(102),a=[].slice,u={};t.exports=Function.bind||function(t){var e=r(this),n=a.call(arguments,1),c=function(){var r=n.concat(a.call(arguments));return this instanceof c?function(t,e,n){if(!(e in u)){for(var r=[],o=0;o<e;o++)r[o]="a["+o+"]";u[e]=Function("F,a","return new F("+r.join(",")+")")}return u[e](t,n)}(e,r.length,r):i(e,r,t)};return o(e.prototype)&&(c.prototype=e.prototype),c}},function(t,e){t.exports=function(t,e,n){var r=void 0===n;switch(e.length){case 0:return r?t():t.call(n);case 1:return r?t(e[0]):t.call(n,e[0]);case 2:return r?t(e[0],e[1]):t.call(n,e[0],e[1]);case 3:return r?t(e[0],e[1],e[2]):t.call(n,e[0],e[1],e[2]);case 4:return r?t(e[0],e[1],e[2],e[3]):t.call(n,e[0],e[1],e[2],e[3])}return t.apply(n,e)}},function(t,e,n){var r=n(1).parseInt,o=n(39).trim,i=n(67),a=/^[-+]?0[xX]/;t.exports=8!==r(i+"08")||22!==r(i+"0x16")?function(t,e){var n=o(String(t),3);return r(n,e>>>0||(a.test(n)?16:10))}:r},function(t,e,n){var r=n(1).parseFloat,o=n(39).trim;t.exports=1/r(n(67)+"-0")!=-1/0?function(t){var e=o(String(t),3),n=r(e);return 0===n&&"-"==e.charAt(0)?-0:n}:r},function(t,e,n){var r=n(23);t.exports=function(t,e){if("number"!=typeof t&&"Number"!=r(t))throw TypeError(e);return+t}},function(t,e,n){var r=n(4),o=Math.floor;t.exports=function(t){return!r(t)&&isFinite(t)&&o(t)===t}},function(t,e){t.exports=Math.log1p||function(t){return(t=+t)>-1e-8&&t<1e-8?t-t*t/2:Math.log(1+t)}},function(t,e,n){"use strict";var r=n(33),o=n(28),i=n(38),a={};n(14)(a,n(5)("iterator"),function(){return this}),t.exports=function(t,e,n){t.prototype=r(a,{next:o(1,n)}),i(t,e+" Iterator")}},function(t,e,n){var r=n(3);t.exports=function(t,e,n,o){try{return o?e(r(n)[0],n[1]):e(n)}catch(e){var i=t.return;throw void 0!==i&&r(i.call(t)),e}}},function(t,e,n){var r=n(232);t.exports=function(t,e){return new(r(t))(e)}},function(t,e,n){var r=n(18),o=n(10),i=n(44),a=n(6);t.exports=function(t,e,n,u,c){r(e);var s=o(t),f=i(s),l=a(s.length),h=c?l-1:0,p=c?-1:1;if(n<2)for(;;){if(h in f){u=f[h],h+=p;break}if(h+=p,c?h<0:l<=h)throw TypeError("Reduce of empty array with no initial value")}for(;c?h>=0:l>h;h+=p)h in f&&(u=e(u,f[h],h,s));return u}},function(t,e,n){"use strict";var r=n(10),o=n(32),i=n(6);t.exports=[].copyWithin||function(t,e){var n=r(this),a=i(n.length),u=o(t,a),c=o(e,a),s=arguments.length>2?arguments[2]:void 0,f=Math.min((void 0===s?a:o(s,a))-c,a-u),l=1;for(c<u&&u<c+f&&(l=-1,c+=f-1,u+=f-1);f-- >0;)c in n?n[u]=n[c]:delete n[u],u+=l,c+=l;return n}},function(t,e){t.exports=function(t,e){return{value:e,done:!!t}}},function(t,e,n){"use strict";var r=n(82);n(0)({target:"RegExp",proto:!0,forced:r!==/./.exec},{exec:r})},function(t,e,n){n(8)&&"g"!=/./g.flags&&n(9).f(RegExp.prototype,"flags",{configurable:!0,get:n(53)})},function(t,e,n){"use strict";var r,o,i,a,u=n(30),c=n(1),s=n(17),f=n(46),l=n(0),h=n(4),p=n(18),y=n(42),v=n(56),d=n(47),g=n(84).set,_=n(252)(),b=n(117),m=n(253),w=n(57),x=n(118),O=c.TypeError,S=c.process,j=S&&S.versions,k=j&&j.v8||"",M=c.Promise,E="process"==f(S),P=function(){},A=o=b.f,L=!!function(){try{var t=M.resolve(1),e=(t.constructor={})[n(5)("species")]=function(t){t(P,P)};return(E||"function"==typeof PromiseRejectionEvent)&&t.then(P)instanceof e&&0!==k.indexOf("6.6")&&-1===w.indexOf("Chrome/66")}catch(t){}}(),C=function(t){var e;return!(!h(t)||"function"!=typeof(e=t.then))&&e},T=function(t,e){if(!t._n){t._n=!0;var n=t._c;_(function(){for(var r=t._v,o=1==t._s,i=0,a=function(e){var n,i,a,u=o?e.ok:e.fail,c=e.resolve,s=e.reject,f=e.domain;try{u?(o||(2==t._h&&N(t),t._h=1),!0===u?n=r:(f&&f.enter(),n=u(r),f&&(f.exit(),a=!0)),n===e.promise?s(O("Promise-chain cycle")):(i=C(n))?i.call(n,c,s):c(n)):s(r)}catch(t){f&&!a&&f.exit(),s(t)}};n.length>i;)a(n[i++]);t._c=[],t._n=!1,e&&!t._h&&R(t)})}},R=function(t){g.call(c,function(){var e,n,r,o=t._v,i=D(t);if(i&&(e=m(function(){E?S.emit("unhandledRejection",o,t):(n=c.onunhandledrejection)?n({promise:t,reason:o}):(r=c.console)&&r.error&&r.error("Unhandled promise rejection",o)}),t._h=E||D(t)?2:1),t._a=void 0,i&&e.e)throw e.v})},D=function(t){return 1!==t._h&&0===(t._a||t._c).length},N=function(t){g.call(c,function(){var e;E?S.emit("rejectionHandled",t):(e=c.onrejectionhandled)&&e({promise:t,reason:t._v})})},I=function(t){var e=this;e._d||(e._d=!0,(e=e._w||e)._v=t,e._s=2,e._a||(e._a=e._c.slice()),T(e,!0))},z=function(t){var e,n=this;if(!n._d){n._d=!0,n=n._w||n;try{if(n===t)throw O("Promise can't be resolved itself");(e=C(t))?_(function(){var r={_w:n,_d:!1};try{e.call(t,s(z,r,1),s(I,r,1))}catch(t){I.call(r,t)}}):(n._v=t,n._s=1,T(n,!1))}catch(t){I.call({_w:n,_d:!1},t)}}};L||(M=function(t){y(this,M,"Promise","_h"),p(t),r.call(this);try{t(s(z,this,1),s(I,this,1))}catch(t){I.call(this,t)}},(r=function(t){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1}).prototype=n(43)(M.prototype,{then:function(t,e){var n=A(d(this,M));return n.ok="function"!=typeof t||t,n.fail="function"==typeof e&&e,n.domain=E?S.domain:void 0,this._c.push(n),this._a&&this._a.push(n),this._s&&T(this,!1),n.promise},catch:function(t){return this.then(void 0,t)}}),i=function(){var t=new r;this.promise=t,this.resolve=s(z,t,1),this.reject=s(I,t,1)},b.f=A=function(t){return t===M||t===a?new i(t):o(t)}),l(l.G+l.W+l.F*!L,{Promise:M}),n(38)(M,"Promise"),n(41)("Promise"),a=n(7).Promise,l(l.S+l.F*!L,"Promise",{reject:function(t){var e=A(this);return(0,e.reject)(t),e.promise}}),l(l.S+l.F*(u||!L),"Promise",{resolve:function(t){return x(u&&this===a?M:this,t)}}),l(l.S+l.F*!(L&&n(52)(function(t){M.all(t).catch(P)})),"Promise",{all:function(t){var e=this,n=A(e),r=n.resolve,o=n.reject,i=m(function(){var n=[],i=0,a=1;v(t,!1,function(t){var u=i++,c=!1;n.push(void 0),a++,e.resolve(t).then(function(t){c||(c=!0,n[u]=t,--a||r(n))},o)}),--a||r(n)});return i.e&&o(i.v),n.promise},race:function(t){var e=this,n=A(e),r=n.reject,o=m(function(){v(t,!1,function(t){e.resolve(t).then(n.resolve,r)})});return o.e&&r(o.v),n.promise}})},function(t,e,n){"use strict";var r=n(18);function o(t){var e,n;this.promise=new t(function(t,r){if(void 0!==e||void 0!==n)throw TypeError("Bad Promise constructor");e=t,n=r}),this.resolve=r(e),this.reject=r(n)}t.exports.f=function(t){return new o(t)}},function(t,e,n){var r=n(3),o=n(4),i=n(117);t.exports=function(t,e){if(r(t),o(e)&&e.constructor===t)return e;var n=i.f(t);return(0,n.resolve)(e),n.promise}},function(t,e,n){"use strict";var r=n(9).f,o=n(33),i=n(43),a=n(17),u=n(42),c=n(56),s=n(73),f=n(113),l=n(41),h=n(8),p=n(27).fastKey,y=n(37),v=h?"_s":"size",d=function(t,e){var n,r=p(e);if("F"!==r)return t._i[r];for(n=t._f;n;n=n.n)if(n.k==e)return n};t.exports={getConstructor:function(t,e,n,s){var f=t(function(t,r){u(t,f,e,"_i"),t._t=e,t._i=o(null),t._f=void 0,t._l=void 0,t[v]=0,null!=r&&c(r,n,t[s],t)});return i(f.prototype,{clear:function(){for(var t=y(this,e),n=t._i,r=t._f;r;r=r.n)r.r=!0,r.p&&(r.p=r.p.n=void 0),delete n[r.i];t._f=t._l=void 0,t[v]=0},delete:function(t){var n=y(this,e),r=d(n,t);if(r){var o=r.n,i=r.p;delete n._i[r.i],r.r=!0,i&&(i.n=o),o&&(o.p=i),n._f==r&&(n._f=o),n._l==r&&(n._l=i),n[v]--}return!!r},forEach:function(t){y(this,e);for(var n,r=a(t,arguments.length>1?arguments[1]:void 0,3);n=n?n.n:this._f;)for(r(n.v,n.k,this);n&&n.r;)n=n.p},has:function(t){return!!d(y(this,e),t)}}),h&&r(f.prototype,"size",{get:function(){return y(this,e)[v]}}),f},def:function(t,e,n){var r,o,i=d(t,e);return i?i.v=n:(t._l=i={i:o=p(e,!0),k:e,v:n,p:r=t._l,n:void 0,r:!1},t._f||(t._f=i),r&&(r.n=i),t[v]++,"F"!==o&&(t._i[o]=i)),t},getEntry:d,setStrong:function(t,e,n){s(t,e,function(t,n){this._t=y(t,e),this._k=n,this._l=void 0},function(){for(var t=this._k,e=this._l;e&&e.r;)e=e.p;return this._t&&(this._l=e=e?e.n:this._t._f)?f(0,"keys"==t?e.k:"values"==t?e.v:[e.k,e.v]):(this._t=void 0,f(1))},n?"entries":"values",!n,!0),l(e)}}},function(t,e,n){"use strict";var r=n(43),o=n(27).getWeak,i=n(3),a=n(4),u=n(42),c=n(56),s=n(22),f=n(13),l=n(37),h=s(5),p=s(6),y=0,v=function(t){return t._l||(t._l=new d)},d=function(){this.a=[]},g=function(t,e){return h(t.a,function(t){return t[0]===e})};d.prototype={get:function(t){var e=g(this,t);if(e)return e[1]},has:function(t){return!!g(this,t)},set:function(t,e){var n=g(this,t);n?n[1]=e:this.a.push([t,e])},delete:function(t){var e=p(this.a,function(e){return e[0]===t});return~e&&this.a.splice(e,1),!!~e}},t.exports={getConstructor:function(t,e,n,i){var s=t(function(t,r){u(t,s,e,"_i"),t._t=e,t._i=y++,t._l=void 0,null!=r&&c(r,n,t[i],t)});return r(s.prototype,{delete:function(t){if(!a(t))return!1;var n=o(t);return!0===n?v(l(this,e)).delete(t):n&&f(n,this._i)&&delete n[this._i]},has:function(t){if(!a(t))return!1;var n=o(t);return!0===n?v(l(this,e)).has(t):n&&f(n,this._i)}}),s},def:function(t,e,n){var r=o(i(e),!0);return!0===r?v(t).set(e,n):r[t._i]=n,t},ufstore:v}},function(t,e,n){var r=n(19),o=n(6);t.exports=function(t){if(void 0===t)return 0;var e=r(t),n=o(e);if(e!==n)throw RangeError("Wrong length!");return n}},function(t,e,n){var r=n(34),o=n(50),i=n(3),a=n(1).Reflect;t.exports=a&&a.ownKeys||function(t){var e=r.f(i(t)),n=o.f;return n?e.concat(n(t)):e}},function(t,e,n){var r=n(6),o=n(69),i=n(24);t.exports=function(t,e,n,a){var u=String(i(t)),c=u.length,s=void 0===n?" ":String(n),f=r(e);if(f<=c||""==s)return u;var l=f-c,h=o.call(s,Math.ceil(l/s.length));return h.length>l&&(h=h.slice(0,l)),a?h+u:u+h}},function(t,e,n){var r=n(8),o=n(31),i=n(15),a=n(45).f;t.exports=function(t){return function(e){for(var n,u=i(e),c=o(u),s=c.length,f=0,l=[];s>f;)n=c[f++],r&&!a.call(u,n)||l.push(t?[n,u[n]]:u[n]);return l}}},function(t,e){var n=t.exports={version:"2.6.9"};"number"==typeof __e&&(__e=n)},function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,e,n){(function(t,r){var o;function i(t){return(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})(t)}
  /**
   * @license
   * Lodash (Custom Build) lodash.com/license | Underscore.js 1.8.3 underscorejs.org/LICENSE
   * Build: `lodash include="forEach,map,chain,extend,assign,merge,defaults,clone,cloneWith,cloneDeep,Math,sortBy,uniq,uniqBy,uniqWith,sortedUniq,sortedUniqBy,isNumber,isFunction,isString,isArray,isPlainObject,isNil,after,bind,mixin,noop,debounce,throttle,noConflict" -o ./src/lib/lodash.custom.js`
   */(function(){function a(){return Je.Date.now()}function u(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 c(t,e){for(var n=-1,r=null==t?0:t.length;++n<r&&!1!==e(t[n],n,t););return t}function s(t,e){for(var n=-1,r=null==t?0:t.length,o=0,i=[];++n<r;){var a=t[n];e(a,n,t)&&(i[o++]=a)}return i}function f(t,e){var n;if(n=!(null==t||!t.length)){if(e==e)t:{n=-1;for(var r=t.length;++n<r;)if(t[n]===e)break t;n=-1}else t:{n=v;r=t.length;for(var o=-1;++o<r;)if(n(t[o],o,t)){n=o;break t}n=-1}n=-1<n}return n}function l(t,e,n){for(var r=-1,o=null==t?0:t.length;++r<o;)if(n(e,t[r]))return!0;return!1}function h(t,e){for(var n=-1,r=null==t?0:t.length,o=Array(r);++n<r;)o[n]=e(t[n],n,t);return o}function p(t,e){for(var n=-1,r=e.length,o=t.length;++n<r;)t[o+n]=e[n];return t}function y(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 v(t){return t!=t}function d(t,e){var n=null==t?0:t.length;return n?g(t,e)/n:Me}function g(t,e){for(var n,r=-1,o=t.length;++r<o;){var i=e(t[r]);i!==je&&(n=n===je?i:n+i)}return n}function _(t){return function(e){return t(e)}}function b(t,e){return t.has(e)}function m(t){var e=-1,n=Array(t.size);return t.forEach(function(t,r){n[++e]=[r,t]}),n}function w(t){var e=Object;return function(n){return t(e(n))}}function x(t,e){for(var n=-1,r=t.length,o=0,i=[];++n<r;){var a=t[n];a!==e&&"__lodash_placeholder__"!==a||(t[n]="__lodash_placeholder__",i[o++]=n)}return i}function O(t){var e=-1,n=Array(t.size);return t.forEach(function(t){n[++e]=t}),n}function S(t){if(ne(t)&&!pr(t)&&!(t instanceof M)){if(t instanceof k)return t;if(fn.call(t,"__wrapped__"))return Ut(t)}return new k(t)}function j(){}function k(t,e){this.__wrapped__=t,this.__actions__=[],this.__chain__=!!e,this.__index__=0,this.__values__=je}function M(t){this.__wrapped__=t,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=4294967295,this.__views__=[]}function E(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 P(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 A(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 L(t){var e=-1,n=null==t?0:t.length;for(this.__data__=new A;++e<n;)this.add(t[e])}function C(t){this.size=(this.__data__=new P(t)).size}function T(t,e){var n=pr(t),r=!n&&hr(t),o=!n&&!r&&yr(t),i=!n&&!r&&!o&&gr(t);if(n=n||r||o||i){r=t.length;for(var a=String,u=-1,c=Array(r);++u<r;)c[u]=a(u);r=c}else r=[];var s;a=r.length;for(s in t)!e&&!fn.call(t,s)||n&&("length"==s||o&&("offset"==s||"parent"==s)||i&&("buffer"==s||"byteLength"==s||"byteOffset"==s)||Pt(s,a))||r.push(s);return r}function R(t,e,n){(n===je||Xt(t[e],n))&&(n!==je||e in t)||I(t,e,n)}function D(t,e,n){var r=t[e];fn.call(t,e)&&Xt(r,n)&&(n!==je||e in t)||I(t,e,n)}function N(t,e){for(var n=t.length;n--;)if(Xt(t[n][0],e))return n;return-1}function I(t,e,n){"__proto__"==e&&Mn?Mn(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n}function z(t,e,n,r,o,i){var a,u=1&e,s=2&e,f=4&e;if(n&&(a=o?n(t,r,o,i):n(t)),a!==je)return a;if(!ee(t))return t;if(r=pr(t)){if(a=function(t){var e=t.length,n=new t.constructor(e);return e&&"string"==typeof t[0]&&fn.call(t,"index")&&(n.index=t.index,n.input=t.input),n}(t),!u)return ft(t,a)}else{var l=ar(t),h="[object Function]"==l||"[object GeneratorFunction]"==l;if(yr(t))return it(t,u);if("[object Object]"==l||"[object Arguments]"==l||h&&!o){if(a=s||h?{}:Mt(t),!u)return s?function(t,e){return lt(t,ir(t),e)}(t,function(t,e){return t&&lt(e,ve(e),t)}(a,t)):function(t,e){return lt(t,or(t),e)}(t,function(t,e){return t&&lt(e,ye(e),t)}(a,t))}else{if(!Ye[l])return o?t:{};a=function(t,e,n){var r=t.constructor;switch(e){case"[object ArrayBuffer]":return at(t);case"[object Boolean]":case"[object Date]":return new r(+t);case"[object DataView]":return e=n?at(t.buffer):t.buffer,new t.constructor(e,t.byteOffset,t.byteLength);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 ut(t,n);case"[object Map]":return new r;case"[object Number]":case"[object String]":return new r(t);case"[object RegExp]":return(e=new t.constructor(t.source,Ie.exec(t))).lastIndex=t.lastIndex,e;case"[object Set]":return new r;case"[object Symbol]":return Zn?Object(Zn.call(t)):{}}}(t,l,u)}}if(i||(i=new C),o=i.get(t))return o;if(i.set(t,a),dr(t))return t.forEach(function(r){a.add(z(r,e,n,r,t,i))}),a;if(vr(t))return t.forEach(function(r,o){a.set(o,z(r,e,n,o,t,i))}),a;s=f?s?xt:wt:s?ve:ye;var p=r?je:s(t);return c(p||t,function(r,o){p&&(r=t[o=r]),D(a,o,z(r,e,n,o,t,i))}),a}function F(t,e,n){for(var r=-1,o=t.length;++r<o;){var i=t[r],a=e(i);if(null!=a&&(u===je?a==a&&!ie(a):n(a,u)))var u=a,c=i}return c}function U(t,e,n,r,o){var i=-1,a=t.length;for(n||(n=Et),o||(o=[]);++i<a;){var u=t[i];0<e&&n(u)?1<e?U(u,e-1,n,r,o):p(o,u):r||(o[o.length]=u)}return o}function B(t,e){return t&&Kn(t,e,ye)}function q(t,e){return s(e,function(e){return Kt(t[e])})}function V(t,e){for(var n=0,r=(e=ot(e,t)).length;null!=t&&n<r;)t=t[It(e[n++])];return n&&n==r?t:je}function W(t,e,n){return e=e(t),pr(t)?e:p(e,n(t))}function G(t){if(null==t)t=t===je?"[object Undefined]":"[object Null]";else if(kn&&kn in Object(t)){var e=fn.call(t,kn),n=t[kn];try{t[kn]=je;var r=!0}catch(t){}var o=hn.call(t);r&&(e?t[kn]=n:delete t[kn]),t=o}else t=hn.call(t);return t}function Y(t,e){return t>e}function H(t){return ne(t)&&"[object Arguments]"==G(t)}function $(t,e,n,r,o){if(t===e)e=!0;else if(null==t||null==e||!ne(t)&&!ne(e))e=t!=t&&e!=e;else t:{var i,a,u=pr(t),c=pr(e),s="[object Object]"==(i="[object Arguments]"==(i=u?"[object Array]":ar(t))?"[object Object]":i);c="[object Object]"==(a="[object Arguments]"==(a=c?"[object Array]":ar(e))?"[object Object]":a);if((a=i==a)&&yr(t)){if(!yr(e)){e=!1;break t}u=!0,s=!1}if(a&&!s)o||(o=new C),e=u||gr(t)?mt(t,e,n,r,$,o):function(t,e,n,r,o,i,a){switch(n){case"[object DataView]":if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)break;t=t.buffer,e=e.buffer;case"[object ArrayBuffer]":if(t.byteLength!=e.byteLength||!i(new _n(t),new _n(e)))break;return!0;case"[object Boolean]":case"[object Date]":case"[object Number]":return Xt(+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 u=m;case"[object Set]":if(u||(u=O),t.size!=e.size&&!(1&r))break;return(n=a.get(t))?n==e:(r|=2,a.set(t,e),e=mt(u(t),u(e),r,o,i,a),a.delete(t),e);case"[object Symbol]":if(Zn)return Zn.call(t)==Zn.call(e)}return!1}(t,e,i,n,r,$,o);else{if(!(1&n)&&(u=s&&fn.call(t,"__wrapped__"),i=c&&fn.call(e,"__wrapped__"),u||i)){t=u?t.value():t,e=i?e.value():e,o||(o=new C),e=$(t,e,n,r,o);break t}if(a)e:if(o||(o=new C),u=1&n,i=wt(t),c=i.length,a=wt(e).length,c==a||u){for(s=c;s--;){var f=i[s];if(!(u?f in e:fn.call(e,f))){e=!1;break e}}if((a=o.get(t))&&o.get(e))e=a==e;else{a=!0,o.set(t,e),o.set(e,t);for(var l=u;++s<c;){var h=t[f=i[s]],p=e[f];if(r)var y=u?r(p,h,f,e,t,o):r(h,p,f,t,e,o);if(y===je?h!==p&&!$(h,p,n,r,o):!y){a=!1;break}l||(l="constructor"==f)}a&&!l&&((n=t.constructor)!=(r=e.constructor)&&"constructor"in t&&"constructor"in e&&!("function"==typeof n&&n instanceof n&&"function"==typeof r&&r instanceof r)&&(a=!1)),o.delete(t),o.delete(e),e=a}}else e=!1;else e=!1}}return e}function Z(t){return"function"==typeof t?t:null==t?_e:"object"==i(t)?pr(t)?function(t,e){return Lt(t)&&e==e&&!ee(e)?Tt(It(t),e):function(n){var r=he(n,t);return r===je&&r===e?pe(n,t):$(e,r,3)}}(t[0],t[1]):function(t){var e=function(t){for(var e=ye(t),n=e.length;n--;){var r=e[n],o=t[r];e[n]=[r,o,o==o&&!ee(o)]}return e}(t);return 1==e.length&&e[0][2]?Tt(e[0][0],e[0][1]):function(n){return n===t||function(t,e){var n=e.length,r=n;if(null==t)return!r;for(t=Object(t);n--;)if((o=e[n])[2]?o[1]!==t[o[0]]:!(o[0]in t))return!1;for(;++n<r;){var o,i=(o=e[n])[0],a=t[i],u=o[1];if(o[2]){if(a===je&&!(i in t))return!1}else if(o=new C,void 0!==je||!$(u,a,3,void 0,o))return!1}return!0}(n,e)}}(t):xe(t)}function X(t,e){return t<e}function J(t,e){var n=-1,r=Jt(t)?Array(t.length):[];return Qn(t,function(t,o,i){r[++n]=e(t,o,i)}),r}function Q(t){return cr(Rt(t,void 0,_e),t+"")}function K(t,e){for(var n=-1,r=t.length,o=0,i=[];++n<r;){var a=t[n],u=e?e(a):a;if(!n||!Xt(u,c)){var c=u;i[o++]=0===a?0:a}}return i}function tt(t){return"number"==typeof t?t:ie(t)?Me:+t}function et(t){if("string"==typeof t)return t;if(pr(t))return h(t,et)+"";if(ie(t))return Xn?Xn.call(t):"";var e=t+"";return"0"==e&&1/t==-ke?"-0":e}function nt(t,e,n){var r=-1,o=f,i=t.length,a=!0,u=[],c=u;if(n)a=!1,o=l;else if(200<=i){if(o=e?null:nr(t))return O(o);a=!1,o=b,c=new L}else c=e?[]:u;t:for(;++r<i;){var s=t[r],h=e?e(s):s;s=n||0!==s?s:0;if(a&&h==h){for(var p=c.length;p--;)if(c[p]===h)continue t;e&&c.push(h),u.push(s)}else o(c,h,n)||(c!==u&&c.push(h),u.push(s))}return u}function rt(t,e){var n=t;return n instanceof M&&(n=n.value()),function(t,e,n){for(var r=-1,o=null==t?0:t.length;++r<o;)n=e(n,t[r],r,t);return n}(e,function(t,e){return e.func.apply(e.thisArg,p([t],e.args))},n)}function ot(t,e){return pr(t)?t:Lt(t,e)?[t]:sr(le(t))}function it(t,e){if(e)return t.slice();var n=t.length;n=bn?bn(n):new t.constructor(n);return t.copy(n),n}function at(t){var e=new t.constructor(t.byteLength);return new _n(e).set(new _n(t)),e}function ut(t,e){return new t.constructor(e?at(t.buffer):t.buffer,t.byteOffset,t.length)}function ct(t,e,n,r){var o=-1,i=t.length,a=n.length,u=-1,c=e.length,s=Ln(i-a,0),f=Array(c+s);for(r=!r;++u<c;)f[u]=e[u];for(;++o<a;)(r||o<i)&&(f[n[o]]=t[o]);for(;s--;)f[u++]=t[o++];return f}function st(t,e,n,r){var o=-1,i=t.length,a=-1,u=n.length,c=-1,s=e.length,f=Ln(i-u,0),l=Array(f+s);for(r=!r;++o<f;)l[o]=t[o];for(f=o;++c<s;)l[f+c]=e[c];for(;++a<u;)(r||o<i)&&(l[f+n[a]]=t[o++]);return l}function ft(t,e){var n=-1,r=t.length;for(e||(e=Array(r));++n<r;)e[n]=t[n];return e}function lt(t,e,n){var r=!n;n||(n={});for(var o=-1,i=e.length;++o<i;){var a=e[o],u=je;u===je&&(u=t[a]),r?I(n,a,u):D(n,a,u)}return n}function ht(t){return Q(function(e,n){var r=-1,o=n.length,i=1<o?n[o-1]:je,a=2<o?n[2]:je;i=3<t.length&&"function"==typeof i?(o--,i):je;for(a&&At(n[0],n[1],a)&&(i=3>o?je:i,o=1),e=Object(e);++r<o;)(a=n[r])&&t(e,a,r,i);return e})}function pt(t){return function(){switch((e=arguments).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 e,n=Jn(t.prototype);return ee(e=t.apply(n,e))?e:n}}function yt(t,e,n){var r=pt(t);return function o(){for(var i=arguments.length,a=Array(i),c=i,s=Ot(o);c--;)a[c]=arguments[c];return(i-=(c=3>i&&a[0]!==s&&a[i-1]!==s?[]:x(a,s)).length)<n?_t(t,e,vt,o.placeholder,je,a,c,je,je,n-i):u(this&&this!==Je&&this instanceof o?r:t,this,a)}}function vt(t,e,n,r,o,i,a,u,c,s){var f=128&e,l=1&e,h=2&e,p=24&e,y=512&e,v=h?je:pt(t);return function d(){for(var g=arguments.length,_=Array(g),b=g;b--;)_[b]=arguments[b];if(p){var m,w=Ot(d);for(b=_.length,m=0;b--;)_[b]===w&&++m}if(r&&(_=ct(_,r,o,p)),i&&(_=st(_,i,a,p)),g-=m,p&&g<s)return w=x(_,w),_t(t,e,vt,d.placeholder,n,_,w,u,c,s-g);if(w=l?n:this,b=h?w[t]:t,g=_.length,u){m=_.length;for(var O=Cn(u.length,m),S=ft(_);O--;){var j=u[O];_[O]=Pt(j,m)?S[j]:je}}else y&&1<g&&_.reverse();return f&&c<g&&(_.length=c),this&&this!==Je&&this instanceof d&&(b=v||pt(b)),b.apply(w,_)}}function dt(t,e){return function(n,r){var o;if(n===je&&r===je)return e;if(n!==je&&(o=n),r!==je){if(o===je)return r;"string"==typeof n||"string"==typeof r?(n=et(n),r=et(r)):(n=tt(n),r=tt(r)),o=t(n,r)}return o}}function gt(t,e,n,r){var o=1&e,i=pt(t);return function e(){for(var a=-1,c=arguments.length,s=-1,f=r.length,l=Array(f+c),h=this&&this!==Je&&this instanceof e?i:t;++s<f;)l[s]=r[s];for(;c--;)l[s++]=arguments[++a];return u(h,o?n:this,l)}}function _t(t,e,n,r,o,i,a,u,c,s){var f=8&e,l=f?a:je;4&(e=(e|(f?32:64))&~(f?64:32))||(e&=-4),o=[t,e,o,f?i:je,l,i=f?je:i,a=f?je:a,u,c,s],n=n.apply(je,o);t:for(u=t.name+"",c=qn[u],s=fn.call(qn,u)?c.length:0;s--;)if(null==(l=(f=c[s]).func)||l==t){u=f.name;break t}return"function"==typeof(c=S[u])&&u in M.prototype?t===c?u=!0:u=!!(u=rr(c))&&t===u[0]:u=!1,u&&ur(n,o),n.placeholder=r,Dt(n,t,e)}function bt(t){var e=Math[t];return function(t,n){if(t=se(t),n=null==n?0:Cn(ce(n),292)){var r=(le(t)+"e").split("e");return+((r=(le(r=e(r[0]+"e"+(+r[1]+n)))+"e").split("e"))[0]+"e"+(+r[1]-n))}return e(t)}}function mt(t,e,n,r,o,i){var a=1&n,u=t.length;if(u!=(c=e.length)&&!(a&&c>u))return!1;if((c=i.get(t))&&i.get(e))return c==e;var c=-1,s=!0,f=2&n?new L:je;for(i.set(t,e),i.set(e,t);++c<u;){var l=t[c],h=e[c];if(r)var p=a?r(h,l,c,e,t,i):r(l,h,c,t,e,i);if(p!==je){if(p)continue;s=!1;break}if(f){if(!y(e,function(t,e){if(!b(f,e)&&(l===t||o(l,t,n,r,i)))return f.push(e)})){s=!1;break}}else if(l!==h&&!o(l,h,n,r,i)){s=!1;break}}return i.delete(t),i.delete(e),s}function wt(t){return W(t,ye,or)}function xt(t){return W(t,ve,ir)}function Ot(t){return(fn.call(S,"placeholder")?S:t).placeholder}function St(){var t=(t=S.iteratee||be)===be?Z:t;return arguments.length?t(arguments[0],arguments[1]):t}function jt(t,e){var n=t.__data__,r=i(e);return("string"==r||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==e:null===e)?n["string"==typeof e?"string":"hash"]:n.map}function kt(t,e){var n=null==t?je:t[e];return!ee(n)||ln&&ln in n||!(Kt(n)?vn:Ue).test(zt(n))?je:n}function Mt(t){return"function"!=typeof t.constructor||Ct(t)?{}:Jn(mn(t))}function Et(t){return pr(t)||hr(t)||!!(Sn&&t&&t[Sn])}function Pt(t,e){var n=i(t);return!!(e=null==e?9007199254740991:e)&&("number"==n||"symbol"!=n&&qe.test(t))&&-1<t&&0==t%1&&t<e}function At(t,e,n){if(!ee(n))return!1;var r=i(e);return!!("number"==r?Jt(n)&&Pt(e,n.length):"string"==r&&e in n)&&Xt(n[e],t)}function Lt(t,e){if(pr(t))return!1;var n=i(t);return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!ie(t))||Ae.test(t)||!Pe.test(t)||null!=e&&t in Object(e)}function Ct(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||un)}function Tt(t,e){return function(n){return null!=n&&n[t]===e&&(e!==je||t in Object(n))}}function Rt(t,e,n){return e=Ln(e===je?t.length-1:e,0),function(){for(var r=arguments,o=-1,i=Ln(r.length-e,0),a=Array(i);++o<i;)a[o]=r[e+o];for(o=-1,i=Array(e+1);++o<e;)i[o]=r[o];return i[e]=n(a),u(t,this,i)}}function Dt(t,e,n){var r=e+"";e=cr;var o,i=Ft;return n=i(o=(o=r.match(Re))?o[1].split(De):[],n),(i=n.length)&&(n[o=i-1]=(1<i?"& ":"")+n[o],n=n.join(2<i?", ":" "),r=r.replace(Te,"{\n/* [wrapped with "+n+"] */\n")),e(t,r)}function Nt(t){var e=0,n=0;return function(){var r=Tn(),o=16-(r-n);if(n=r,0<o){if(800<=++e)return arguments[0]}else e=0;return t.apply(je,arguments)}}function It(t){if("string"==typeof t||ie(t))return t;var e=t+"";return"0"==e&&1/t==-ke?"-0":e}function zt(t){if(null!=t){try{return sn.call(t)}catch(t){}return t+""}return""}function Ft(t,e){return c(Ee,function(n){var r="_."+n[0];e&n[1]&&!f(t,r)&&t.push(r)}),t.sort()}function Ut(t){if(t instanceof M)return t.clone();var e=new k(t.__wrapped__,t.__chain__);return e.__actions__=ft(t.__actions__),e.__index__=t.__index__,e.__values__=t.__values__,e}function Bt(t){return null!=t&&t.length?U(t,1):[]}function qt(t){var e=null==t?0:t.length;return e?t[e-1]:je}function Vt(t){return null==t?t:Rn.call(t)}function Wt(t){return(t=S(t)).__chain__=!0,t}function Gt(t,e){return e(t)}function Yt(t,e){return(pr(t)?c:Qn)(t,St(e,3))}function Ht(t,e,n){function r(e){var n=s,r=f;return s=f=je,v=e,h=t.apply(r,n)}function o(t){var n=t-y;return t-=v,y===je||n>=e||0>n||g&&t>=l}function i(){var t=a();if(o(t))return u(t);var n,r=setTimeout;n=t-v,t=e-(t-y),n=g?Cn(t,l-n):t,p=r(i,n)}function u(t){return p=je,_&&s?r(t):(s=f=je,h)}function c(){var t=a(),n=o(t);if(s=arguments,f=this,y=t,n){if(p===je)return v=t=y,p=setTimeout(i,e),d?r(t):h;if(g)return p=setTimeout(i,e),r(y)}return p===je&&(p=setTimeout(i,e)),h}var s,f,l,h,p,y,v=0,d=!1,g=!1,_=!0;if("function"!=typeof t)throw new TypeError("Expected a function");return e=se(e)||0,ee(n)&&(d=!!n.leading,l=(g="maxWait"in n)?Ln(se(n.maxWait)||0,e):l,_="trailing"in n?!!n.trailing:_),c.cancel=function(){p!==je&&clearTimeout(p),v=0,s=y=f=p=je},c.flush=function(){return p===je?h:u(a())},c}function $t(t,e){function n(){var r=arguments,o=e?e.apply(this,r):r[0],i=n.cache;return i.has(o)?i.get(o):(r=t.apply(this,r),n.cache=i.set(o,r)||i,r)}if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError("Expected a function");return n.cache=new($t.Cache||A),n}function Zt(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)}}function Xt(t,e){return t===e||t!=t&&e!=e}function Jt(t){return null!=t&&te(t.length)&&!Kt(t)}function Qt(t){return ne(t)&&Jt(t)}function Kt(t){return!!ee(t)&&("[object Function]"==(t=G(t))||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t)}function te(t){return"number"==typeof t&&-1<t&&0==t%1&&9007199254740991>=t}function ee(t){var e=i(t);return null!=t&&("object"==e||"function"==e)}function ne(t){return null!=t&&"object"==i(t)}function re(t){return!(!ne(t)||"[object Object]"!=G(t))&&(null===(t=mn(t))||"function"==typeof(t=fn.call(t,"constructor")&&t.constructor)&&t instanceof t&&sn.call(t)==pn)}function oe(t){return"string"==typeof t||!pr(t)&&ne(t)&&"[object String]"==G(t)}function ie(t){return"symbol"==i(t)||ne(t)&&"[object Symbol]"==G(t)}function ae(t){if(!t)return[];if(Jt(t))return oe(t)?We.test(t)?t.match(Ve)||[]:t.split(""):ft(t);if(jn&&t[jn]){t=t[jn]();for(var e,n=[];!(e=t.next()).done;)n.push(e.value);return n}return("[object Map]"==(e=ar(t))?m:"[object Set]"==e?O:de)(t)}function ue(t){return t?(t=se(t))===ke||t===-ke?1.7976931348623157e308*(0>t?-1:1):t==t?t:0:0===t?t:0}function ce(t){var e=(t=ue(t))%1;return t==t?e?t-e:t:0}function se(t){if("number"==typeof t)return t;if(ie(t))return Me;if(ee(t)&&(t=ee(t="function"==typeof t.valueOf?t.valueOf():t)?t+"":t),"string"!=typeof t)return 0===t?t:+t;t=t.replace(Ce,"");var e=Fe.test(t);return e||Be.test(t)?$e(t.slice(2),e?2:8):ze.test(t)?Me:+t}function fe(t){return lt(t,ve(t))}function le(t){return null==t?"":et(t)}function he(t,e,n){return(t=null==t?je:V(t,e))===je?n:t}function pe(t,e){var n;if(n=null!=t){for(var r,o=-1,i=(r=ot(e,n=t)).length,a=!1;++o<i;){var u=It(r[o]);if(!(a=null!=n&&null!=n&&u in Object(n)))break;n=n[u]}a||++o!=i?n=a:n=!!(i=null==n?0:n.length)&&te(i)&&Pt(u,i)&&(pr(n)||hr(n))}return n}function ye(t){if(Jt(t))t=T(t);else if(Ct(t)){var e,n=[];for(e in Object(t))fn.call(t,e)&&"constructor"!=e&&n.push(e);t=n}else t=An(t);return t}function ve(t){if(Jt(t))t=T(t,!0);else if(ee(t)){var e,n=Ct(t),r=[];for(e in t)("constructor"!=e||!n&&fn.call(t,e))&&r.push(e);t=r}else{if(e=[],null!=t)for(n in Object(t))e.push(n);t=e}return t}function de(t){return null==t?[]:function(t,e){return h(e,function(e){return t[e]})}(t,ye(t))}function ge(t){return function(){return t}}function _e(t){return t}function be(t){return Z("function"==typeof t?t:z(t,1))}function me(t,e,n){var r=ye(e),o=q(e,r);null!=n||ee(e)&&(o.length||!r.length)||(n=e,e=t,t=this,o=q(e,ye(e)));var i=!(ee(n)&&"chain"in n&&!n.chain),a=Kt(t);return c(o,function(n){var r=e[n];t[n]=r,a&&(t.prototype[n]=function(){var e=this.__chain__;if(i||e){var n=t(this.__wrapped__);return(n.__actions__=ft(this.__actions__)).push({func:r,args:arguments,thisArg:t}),n.__chain__=e,n}return r.apply(t,p([this.value()],arguments))})}),t}function we(){}function xe(t){return Lt(t)?function(t){return function(e){return null==e?je:e[t]}}(It(t)):function(t){return function(e){return V(e,t)}}(t)}function Oe(){return[]}function Se(){return!1}var je,ke=1/0,Me=NaN,Ee=[["ary",128],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",32],["partialRight",64],["rearg",256]],Pe=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Ae=/^\w*$/,Le=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Ce=/^\s+|\s+$/g,Te=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Re=/\{\n\/\* \[wrapped with (.+)\] \*/,De=/,? & /,Ne=/\\(\\)?/g,Ie=/\w*$/,ze=/^[-+]0x[0-9a-f]+$/i,Fe=/^0b[01]+$/i,Ue=/^\[object .+?Constructor\]$/,Be=/^0o[0-7]+$/i,qe=/^(?:0|[1-9]\d*)$/,Ve=RegExp("\\ud83c[\\udffb-\\udfff](?=\\ud83c[\\udffb-\\udfff])|(?:[^\\ud800-\\udfff][\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]?|[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]|(?:\\ud83c[\\udde6-\\uddff]){2}|[\\ud800-\\udbff][\\udc00-\\udfff]|[\\ud800-\\udfff])[\\ufe0e\\ufe0f]?(?:[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]|\\ud83c[\\udffb-\\udfff])?(?:\\u200d(?:[^\\ud800-\\udfff]|(?:\\ud83c[\\udde6-\\uddff]){2}|[\\ud800-\\udbff][\\udc00-\\udfff])[\\ufe0e\\ufe0f]?(?:[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]|\\ud83c[\\udffb-\\udfff])?)*","g"),We=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]"),Ge={};Ge["[object Float32Array]"]=Ge["[object Float64Array]"]=Ge["[object Int8Array]"]=Ge["[object Int16Array]"]=Ge["[object Int32Array]"]=Ge["[object Uint8Array]"]=Ge["[object Uint8ClampedArray]"]=Ge["[object Uint16Array]"]=Ge["[object Uint32Array]"]=!0,Ge["[object Arguments]"]=Ge["[object Array]"]=Ge["[object ArrayBuffer]"]=Ge["[object Boolean]"]=Ge["[object DataView]"]=Ge["[object Date]"]=Ge["[object Error]"]=Ge["[object Function]"]=Ge["[object Map]"]=Ge["[object Number]"]=Ge["[object Object]"]=Ge["[object RegExp]"]=Ge["[object Set]"]=Ge["[object String]"]=Ge["[object WeakMap]"]=!1;var Ye={};Ye["[object Arguments]"]=Ye["[object Array]"]=Ye["[object ArrayBuffer]"]=Ye["[object DataView]"]=Ye["[object Boolean]"]=Ye["[object Date]"]=Ye["[object Float32Array]"]=Ye["[object Float64Array]"]=Ye["[object Int8Array]"]=Ye["[object Int16Array]"]=Ye["[object Int32Array]"]=Ye["[object Map]"]=Ye["[object Number]"]=Ye["[object Object]"]=Ye["[object RegExp]"]=Ye["[object Set]"]=Ye["[object String]"]=Ye["[object Symbol]"]=Ye["[object Uint8Array]"]=Ye["[object Uint8ClampedArray]"]=Ye["[object Uint16Array]"]=Ye["[object Uint32Array]"]=!0,Ye["[object Error]"]=Ye["[object Function]"]=Ye["[object WeakMap]"]=!1;var He,$e=parseInt,Ze="object"==(void 0===t?"undefined":i(t))&&t&&t.Object===Object&&t,Xe="object"==("undefined"==typeof self?"undefined":i(self))&&self&&self.Object===Object&&self,Je=Ze||Xe||Function("return this")(),Qe="object"==i(e)&&e&&!e.nodeType&&e,Ke=Qe&&"object"==i(r)&&r&&!r.nodeType&&r,tn=Ke&&Ke.exports===Qe,en=tn&&Ze.process;t:{try{He=en&&en.binding&&en.binding("util");break t}catch(a){}He=void 0}var nn=He&&He.isMap,rn=He&&He.isSet,on=He&&He.isTypedArray,an=Array.prototype,un=Object.prototype,cn=Je["__core-js_shared__"],sn=Function.prototype.toString,fn=un.hasOwnProperty,ln=function(){var t=/[^.]+$/.exec(cn&&cn.keys&&cn.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}(),hn=un.toString,pn=sn.call(Object),yn=Je._,vn=RegExp("^"+sn.call(fn).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),dn=tn?Je.Buffer:je,gn=Je.Symbol,_n=Je.Uint8Array,bn=dn?dn.f:je,mn=w(Object.getPrototypeOf),wn=Object.create,xn=un.propertyIsEnumerable,On=an.splice,Sn=gn?gn.isConcatSpreadable:je,jn=gn?gn.iterator:je,kn=gn?gn.toStringTag:je,Mn=function(){try{var t=kt(Object,"defineProperty");return t({},"",{}),t}catch(t){}}(),En=Object.getOwnPropertySymbols,Pn=dn?dn.isBuffer:je,An=w(Object.keys),Ln=Math.max,Cn=Math.min,Tn=Date.now,Rn=an.reverse,Dn=kt(Je,"DataView"),Nn=kt(Je,"Map"),In=kt(Je,"Promise"),zn=kt(Je,"Set"),Fn=kt(Je,"WeakMap"),Un=kt(Object,"create"),Bn=Fn&&new Fn,qn={},Vn=zt(Dn),Wn=zt(Nn),Gn=zt(In),Yn=zt(zn),Hn=zt(Fn),$n=gn?gn.prototype:je,Zn=$n?$n.valueOf:je,Xn=$n?$n.toString:je,Jn=function(){function t(){}return function(e){return ee(e)?wn?wn(e):(t.prototype=e,e=new t,t.prototype=je,e):{}}}();S.prototype=j.prototype,S.prototype.constructor=S,k.prototype=Jn(j.prototype),k.prototype.constructor=k,M.prototype=Jn(j.prototype),M.prototype.constructor=M,E.prototype.clear=function(){this.__data__=Un?Un(null):{},this.size=0},E.prototype.delete=function(t){return t=this.has(t)&&delete this.__data__[t],this.size-=t?1:0,t},E.prototype.get=function(t){var e=this.__data__;return Un?"__lodash_hash_undefined__"===(t=e[t])?je:t:fn.call(e,t)?e[t]:je},E.prototype.has=function(t){var e=this.__data__;return Un?e[t]!==je:fn.call(e,t)},E.prototype.set=function(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=Un&&e===je?"__lodash_hash_undefined__":e,this},P.prototype.clear=function(){this.__data__=[],this.size=0},P.prototype.delete=function(t){var e=this.__data__;return!(0>(t=N(e,t))||(t==e.length-1?e.pop():On.call(e,t,1),--this.size,0))},P.prototype.get=function(t){var e=this.__data__;return 0>(t=N(e,t))?je:e[t][1]},P.prototype.has=function(t){return-1<N(this.__data__,t)},P.prototype.set=function(t,e){var n=this.__data__,r=N(n,t);return 0>r?(++this.size,n.push([t,e])):n[r][1]=e,this},A.prototype.clear=function(){this.size=0,this.__data__={hash:new E,map:new(Nn||P),string:new E}},A.prototype.delete=function(t){return t=jt(this,t).delete(t),this.size-=t?1:0,t},A.prototype.get=function(t){return jt(this,t).get(t)},A.prototype.has=function(t){return jt(this,t).has(t)},A.prototype.set=function(t,e){var n=jt(this,t),r=n.size;return n.set(t,e),this.size+=n.size==r?0:1,this},L.prototype.add=L.prototype.push=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this},L.prototype.has=function(t){return this.__data__.has(t)},C.prototype.clear=function(){this.__data__=new P,this.size=0},C.prototype.delete=function(t){var e=this.__data__;return t=e.delete(t),this.size=e.size,t},C.prototype.get=function(t){return this.__data__.get(t)},C.prototype.has=function(t){return this.__data__.has(t)},C.prototype.set=function(t,e){var n=this.__data__;if(n instanceof P){var r=n.__data__;if(!Nn||199>r.length)return r.push([t,e]),this.size=++n.size,this;n=this.__data__=new A(r)}return n.set(t,e),this.size=n.size,this};var Qn=function(t,e){return function(e,n){if(null==e)return e;if(!Jt(e))return t(e,n);for(var r=e.length,o=-1,i=Object(e);++o<r&&!1!==n(i[o],o,i););return e}}(B),Kn=function(t,e,n){for(var r=-1,o=Object(t),i=(n=n(t)).length;i--;){var a=n[++r];if(!1===e(o[a],a,o))break}return t},tr=Bn?function(t,e){return Bn.set(t,e),t}:_e,er=Mn?function(t,e){return Mn(t,"toString",{configurable:!0,enumerable:!1,value:ge(e),writable:!0})}:_e,nr=zn&&1/O(new zn([,-0]))[1]==ke?function(t){return new zn(t)}:we,rr=Bn?function(t){return Bn.get(t)}:we,or=En?function(t){return null==t?[]:(t=Object(t),s(En(t),function(e){return xn.call(t,e)}))}:Oe,ir=En?function(t){for(var e=[];t;)p(e,or(t)),t=mn(t);return e}:Oe,ar=G;(Dn&&"[object DataView]"!=ar(new Dn(new ArrayBuffer(1)))||Nn&&"[object Map]"!=ar(new Nn)||In&&"[object Promise]"!=ar(In.resolve())||zn&&"[object Set]"!=ar(new zn)||Fn&&"[object WeakMap]"!=ar(new Fn))&&(ar=function(t){var e=G(t);if(t=(t="[object Object]"==e?t.constructor:je)?zt(t):"")switch(t){case Vn:return"[object DataView]";case Wn:return"[object Map]";case Gn:return"[object Promise]";case Yn:return"[object Set]";case Hn:return"[object WeakMap]"}return e});var ur=Nt(tr),cr=Nt(er),sr=function(t){var e=(t=$t(t,function(t){return 500===e.size&&e.clear(),t})).cache;return t}(function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(Le,function(t,n,r,o){e.push(r?o.replace(Ne,"$1"):n||t)}),e});!function(t){cr(Rt(t,je,Bt),t+"")}(function(t){function e(e){for(var n=-1,r=t.length,o=Array(r),i=null==e;++n<r;)o[n]=i?je:he(e,t[n]);return o}var n=t.length,r=n?t[0]:0,o=this.__wrapped__;return!(1<n||this.__actions__.length)&&o instanceof M&&Pt(r)?((o=o.slice(r,+r+(n?1:0))).__actions__.push({func:Gt,args:[e],thisArg:je}),new k(o,this.__chain__).thru(function(t){return n&&!t.length&&t.push(je),t})):this.thru(e)});var fr=Q(function(t,e){if(null==t)return[];var n=e.length;return 1<n&&At(t,e[0],e[1])?e=[]:2<n&&At(e[0],e[1],e[2])&&(e=[e[0]]),function(t,e){var n=[],r=-1;return e=h(e.length?e:[_e],_(St())),function(t,e){var n=t.length;for(t.sort(e);n--;)t[n]=t[n].c;return t}(J(t,function(t){return{a:h(e,function(e){return e(t)}),b:++r,c:t}}),function(t,e){var r;t:{r=-1;for(var o=t.a,i=e.a,a=o.length,u=n.length;++r<a;){var c;e:{c=o[r];var s=i[r];if(c!==s){var f=c!==je,l=null===c,h=c==c,p=ie(c),y=s!==je,v=null===s,d=s==s,g=ie(s);if(!v&&!g&&!p&&c>s||p&&y&&d&&!v&&!g||l&&y&&d||!f&&d||!h){c=1;break e}if(!l&&!p&&!g&&c<s||g&&f&&h&&!l&&!p||v&&f&&h||!y&&h||!d){c=-1;break e}}c=0}if(c){r=r>=u?c:c*("desc"==n[r]?-1:1);break t}}r=t.b-e.b}return r})}(t,U(e,1))}),lr=Q(function(t,e,n){var r=1;if(n.length){var o=x(n,Ot(lr));r=32|r}var i,a,u=e,c=n,s=o;if(!(o=2&r)&&"function"!=typeof t)throw new TypeError("Expected a function");if((n=c?c.length:0)||(r&=-97,c=s=je),i=i===je?i:Ln(ce(i),0),a=a===je?a:ce(a),n-=s?s.length:0,64&r){var f=c,l=s;c=s=je}return i=[t,r,u,c,s,f,l,void 0,i,a],(e=o?je:rr(t))&&(t=(f=i[1])|(a=e[1]),l=128==a&&8==f||128==a&&256==f&&i[7].length<=e[8]||384==a&&e[7].length<=e[8]&&8==f,131>t||l)&&(1&a&&(i[2]=e[2],t|=1&f?0:4),(f=e[3])&&(l=i[3],i[3]=l?ct(l,f,e[4]):f,i[4]=l?x(i[3],"__lodash_placeholder__"):e[4]),(f=e[5])&&(l=i[5],i[5]=l?st(l,f,e[6]):f,i[6]=l?x(i[5],"__lodash_placeholder__"):e[6]),(f=e[7])&&(i[7]=f),128&a&&(i[8]=null==i[8]?e[8]:Cn(i[8],e[8])),null==i[9]&&(i[9]=e[9]),i[0]=e[0],i[1]=t),t=i[0],r=i[1],u=i[2],c=i[3],s=i[4],!(a=i[9]=i[9]===je?o?0:t.length:Ln(i[9]-n,0))&&24&r&&(r&=-25),Dt((e?tr:ur)(r&&1!=r?8==r||16==r?yt(t,r,a):32!=r&&33!=r||s.length?vt.apply(je,i):gt(t,r,u,c):function(t,e,n){var r=1&e,o=pt(t);return function e(){return(this&&this!==Je&&this instanceof e?o:t).apply(r?n:this,arguments)}}(t,r,u),i),t,r)});$t.Cache=A;var hr=H(function(){return arguments}())?H:function(t){return ne(t)&&fn.call(t,"callee")&&!xn.call(t,"callee")},pr=Array.isArray,yr=Pn||Se,vr=nn?_(nn):function(t){return ne(t)&&"[object Map]"==ar(t)},dr=rn?_(rn):function(t){return ne(t)&&"[object Set]"==ar(t)},gr=on?_(on):function(t){return ne(t)&&te(t.length)&&!!Ge[G(t)]},_r=ht(function(t,e){if(Ct(e)||Jt(e))lt(e,ye(e),t);else for(var n in e)fn.call(e,n)&&D(t,n,e[n])}),br=ht(function(t,e){lt(e,ve(e),t)}),mr=Q(function(t,e){t=Object(t);var n=-1,r=e.length;for((o=2<r?e[2]:je)&&At(e[0],e[1],o)&&(r=1);++n<r;)for(var o,i=ve(o=e[n]),a=-1,u=i.length;++a<u;){var c=i[a],s=t[c];(s===je||Xt(s,un[c])&&!fn.call(t,c))&&(t[c]=o[c])}return t}),wr=ht(function(t,e,n){!function t(e,n,r,o,i){e!==n&&Kn(n,function(a,u){if(ee(a)){i||(i=new C);var c=i,s="__proto__"==u?je:e[u],f="__proto__"==u?je:n[u];if(v=c.get(f))R(e,u,v);else{var l=(v=o?o(s,f,u+"",e,n,c):je)===je;if(l){var h=pr(f),p=!h&&yr(f),y=!h&&!p&&gr(f),v=f;h||p||y?pr(s)?v=s:Qt(s)?v=ft(s):p?(l=!1,v=it(f,!0)):y?(l=!1,v=ut(f,!0)):v=[]:re(f)||hr(f)?(v=s,hr(s)?v=fe(s):(!ee(s)||r&&Kt(s))&&(v=Mt(f))):l=!1}l&&(c.set(f,v),t(v,f,r,o,c),c.delete(f)),R(e,u,v)}}else(c=o?o("__proto__"==u?je:e[u],a,u+"",e,n,i):je)===je&&(c=a),R(e,u,c)},ve)}(t,e,n)}),xr=dt(function(t,e){return t+e},0),Or=bt("ceil"),Sr=dt(function(t,e){return t/e},1),jr=bt("floor"),kr=dt(function(t,e){return t*e},1),Mr=bt("round"),Er=dt(function(t,e){return t-e},0);S.after=function(t,e){if("function"!=typeof e)throw new TypeError("Expected a function");return t=ce(t),function(){if(1>--t)return e.apply(this,arguments)}},S.assign=_r,S.assignIn=br,S.bind=lr,S.chain=Wt,S.constant=ge,S.debounce=Ht,S.defaults=mr,S.flatten=Bt,S.iteratee=be,S.keys=ye,S.keysIn=ve,S.map=function(t,e){return(pr(t)?h:J)(t,St(e,3))},S.memoize=$t,S.merge=wr,S.mixin=me,S.negate=Zt,S.property=xe,S.reverse=Vt,S.sortBy=fr,S.sortedUniq=function(t){return t&&t.length?K(t):[]},S.sortedUniqBy=function(t,e){return t&&t.length?K(t,St(e,2)):[]},S.tap=function(t,e){return e(t),t},S.throttle=function(t,e,n){var r=!0,o=!0;if("function"!=typeof t)throw new TypeError("Expected a function");return ee(n)&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o),Ht(t,e,{leading:r,maxWait:e,trailing:o})},S.thru=Gt,S.toArray=ae,S.toPlainObject=fe,S.uniq=function(t){return t&&t.length?nt(t):[]},S.uniqBy=function(t,e){return t&&t.length?nt(t,St(e,2)):[]},S.uniqWith=function(t,e){return e="function"==typeof e?e:je,t&&t.length?nt(t,je,e):[]},S.values=de,S.extend=br,me(S,S),S.add=xr,S.ceil=Or,S.clone=function(t){return z(t,4)},S.cloneDeep=function(t){return z(t,5)},S.cloneWith=function(t,e){return z(t,4,e="function"==typeof e?e:je)},S.divide=Sr,S.eq=Xt,S.floor=jr,S.forEach=Yt,S.get=he,S.hasIn=pe,S.identity=_e,S.isArguments=hr,S.isArray=pr,S.isArrayLike=Jt,S.isArrayLikeObject=Qt,S.isBuffer=yr,S.isFunction=Kt,S.isLength=te,S.isMap=vr,S.isNil=function(t){return null==t},S.isNumber=function(t){return"number"==typeof t||ne(t)&&"[object Number]"==G(t)},S.isObject=ee,S.isObjectLike=ne,S.isPlainObject=re,S.isSet=dr,S.isString=oe,S.isSymbol=ie,S.isTypedArray=gr,S.last=qt,S.max=function(t){return t&&t.length?F(t,_e,Y):je},S.maxBy=function(t,e){return t&&t.length?F(t,St(e,2),Y):je},S.mean=function(t){return d(t,_e)},S.meanBy=function(t,e){return d(t,St(e,2))},S.min=function(t){return t&&t.length?F(t,_e,X):je},S.minBy=function(t,e){return t&&t.length?F(t,St(e,2),X):je},S.stubArray=Oe,S.stubFalse=Se,S.multiply=kr,S.noConflict=function(){return Je._===this&&(Je._=yn),this},S.noop=we,S.now=a,S.round=Mr,S.subtract=Er,S.sum=function(t){return t&&t.length?g(t,_e):0},S.sumBy=function(t,e){return t&&t.length?g(t,St(e,2)):0},S.toFinite=ue,S.toInteger=ce,S.toNumber=se,S.toString=le,S.each=Yt,me(S,function(){var t={};return B(S,function(e,n){fn.call(S.prototype,n)||(t[n]=e)}),t}(),{chain:!1}),S.VERSION="4.17.5",lr.placeholder=S,c(["drop","take"],function(t,e){M.prototype[t]=function(n){n=n===je?1:Ln(ce(n),0);var r=this.__filtered__&&!e?new M(this):this.clone();return r.__filtered__?r.__takeCount__=Cn(n,r.__takeCount__):r.__views__.push({size:Cn(n,4294967295),type:t+(0>r.__dir__?"Right":"")}),r},M.prototype[t+"Right"]=function(e){return this.reverse()[t](e).reverse()}}),c(["filter","map","takeWhile"],function(t,e){var n=e+1,r=1==n||3==n;M.prototype[t]=function(t){var e=this.clone();return e.__iteratees__.push({iteratee:St(t,3),type:n}),e.__filtered__=e.__filtered__||r,e}}),c(["head","last"],function(t,e){var n="take"+(e?"Right":"");M.prototype[t]=function(){return this[n](1).value()[0]}}),c(["initial","tail"],function(t,e){var n="drop"+(e?"":"Right");M.prototype[t]=function(){return this.__filtered__?new M(this):this[n](1)}}),M.prototype.compact=function(){return this.filter(_e)},M.prototype.find=function(t){return this.filter(t).head()},M.prototype.findLast=function(t){return this.reverse().find(t)},M.prototype.invokeMap=Q(function(t,e){return"function"==typeof t?new M(this):this.map(function(n){var r=n,o=n=ot(n=t,r);if(!(2>o.length)){var i=0,a=-1,c=-1,s=o.length;for(0>i&&(i=-i>s?0:s+i),0>(a=a>s?s:a)&&(a+=s),s=i>a?0:a-i>>>0,i>>>=0,a=Array(s);++c<s;)a[c]=o[c+i];r=V(r,a)}return null==(n=null==r?r:r[It(qt(n))])?je:u(n,r,e)})}),M.prototype.reject=function(t){return this.filter(Zt(St(t)))},M.prototype.slice=function(t,e){t=ce(t);var n=this;return n.__filtered__&&(0<t||0>e)?new M(n):(0>t?n=n.takeRight(-t):t&&(n=n.drop(t)),e!==je&&(n=0>(e=ce(e))?n.dropRight(-e):n.take(e-t)),n)},M.prototype.takeRightWhile=function(t){return this.reverse().takeWhile(t).reverse()},M.prototype.toArray=function(){return this.take(4294967295)},B(M.prototype,function(t,e){var n=/^(?:filter|find|map|reject)|While$/.test(e),r=/^(?:head|last)$/.test(e),o=S[r?"take"+("last"==e?"Right":""):e],i=r||/^find/.test(e);o&&(S.prototype[e]=function(){function e(t){return t=o.apply(S,p([t],u)),r&&l?t[0]:t}var a=this.__wrapped__,u=r?[1]:arguments,c=a instanceof M,s=u[0],f=c||pr(a);f&&n&&"function"==typeof s&&1!=s.length&&(c=f=!1);var l=this.__chain__,h=!!this.__actions__.length;s=i&&!l,c=c&&!h;return!i&&f?(a=c?a:new M(this),(a=t.apply(a,u)).__actions__.push({func:Gt,args:[e],thisArg:je}),new k(a,l)):s&&c?t.apply(this,u):(a=this.thru(e),s?r?a.value()[0]:a.value():a)})}),c("pop push shift sort splice unshift".split(" "),function(t){var e=an[t],n=/^(?:push|sort|unshift)$/.test(t)?"tap":"thru",r=/^(?:pop|shift)$/.test(t);S.prototype[t]=function(){var t=arguments;if(r&&!this.__chain__){var o=this.value();return e.apply(pr(o)?o:[],t)}return this[n](function(n){return e.apply(pr(n)?n:[],t)})}}),B(M.prototype,function(t,e){var n=S[e];if(n){var r=n.name+"";(qn[r]||(qn[r]=[])).push({name:e,func:n})}}),qn[vt(je,2).name]=[{name:"wrapper",func:je}],M.prototype.clone=function(){var t=new M(this.__wrapped__);return t.__actions__=ft(this.__actions__),t.__dir__=this.__dir__,t.__filtered__=this.__filtered__,t.__iteratees__=ft(this.__iteratees__),t.__takeCount__=this.__takeCount__,t.__views__=ft(this.__views__),t},M.prototype.reverse=function(){if(this.__filtered__){var t=new M(this);t.__dir__=-1,t.__filtered__=!0}else(t=this.clone()).__dir__*=-1;return t},M.prototype.value=function(){var t,e=this.__wrapped__.value(),n=this.__dir__,r=pr(e),o=0>n,i=r?e.length:0;t=i;for(var a=this.__views__,u=0,c=-1,s=a.length;++c<s;){var f=a[c],l=f.size;switch(f.type){case"drop":u+=l;break;case"dropRight":t-=l;break;case"take":t=Cn(t,u+l);break;case"takeRight":u=Ln(u,t-l)}}if(a=(t={start:u,end:t}).start,t=(u=t.end)-a,a=o?u:a-1,c=(u=this.__iteratees__).length,s=0,f=Cn(t,this.__takeCount__),!r||!o&&i==t&&f==t)return rt(e,this.__actions__);r=[];t:for(;t--&&s<f;){for(o=-1,i=e[a+=n];++o<c;){l=(h=u[o]).type;var h=(0,h.iteratee)(i);if(2==l)i=h;else if(!h){if(1==l)continue t;break t}}r[s++]=i}return r},S.prototype.chain=function(){return Wt(this)},S.prototype.commit=function(){return new k(this.value(),this.__chain__)},S.prototype.next=function(){this.__values__===je&&(this.__values__=ae(this.value()));var t=this.__index__>=this.__values__.length;return{done:t,value:t?je:this.__values__[this.__index__++]}},S.prototype.plant=function(t){for(var e,n=this;n instanceof j;){var r=Ut(n);r.__index__=0,r.__values__=je,e?o.__wrapped__=r:e=r;var o=r;n=n.__wrapped__}return o.__wrapped__=t,e},S.prototype.reverse=function(){var t=this.__wrapped__;return t instanceof M?(this.__actions__.length&&(t=new M(this)),(t=t.reverse()).__actions__.push({func:Gt,args:[Vt],thisArg:je}),new k(t,this.__chain__)):this.thru(Vt)},S.prototype.toJSON=S.prototype.valueOf=S.prototype.value=function(){return rt(this.__wrapped__,this.__actions__)},S.prototype.first=S.prototype.head,jn&&(S.prototype[jn]=function(){return this}),"object"==i(n(91))&&n(91)?(Je._=S,void 0===(o=function(){return S}.call(e,n,e,r))||(r.exports=o)):Ke?((Ke.exports=S)._=S,Qe._=S):Je._=S}).call(this)}).call(this,n(90),n(131)(t))},function(t,e,n){var o;t.exports=(function(t,e){var n=t.utils.isFunction;function r(t,e){return t-e}function o(t,n,r){return e.max(n,e.min(t,r))}t.sum=function(t){for(var e=0,n=t.length;--n>=0;)e+=t[n];return e},t.sumsqrd=function(t){for(var e=0,n=t.length;--n>=0;)e+=t[n]*t[n];return e},t.sumsqerr=function(e){for(var n,r=t.mean(e),o=0,i=e.length;--i>=0;)o+=(n=e[i]-r)*n;return o},t.sumrow=function(t){for(var e=0,n=t.length;--n>=0;)e+=t[n];return e},t.product=function(t){for(var e=1,n=t.length;--n>=0;)e*=t[n];return e},t.min=function(t){for(var e=t[0],n=0;++n<t.length;)t[n]<e&&(e=t[n]);return e},t.max=function(t){for(var e=t[0],n=0;++n<t.length;)t[n]>e&&(e=t[n]);return e},t.unique=function(t){for(var e={},n=[],r=0;r<t.length;r++)e[t[r]]||(e[t[r]]=!0,n.push(t[r]));return n},t.mean=function(e){return t.sum(e)/e.length},t.meansqerr=function(e){return t.sumsqerr(e)/e.length},t.geomean=function(n){return e.pow(t.product(n),1/n.length)},t.median=function(t){var e=t.length,n=t.slice().sort(r);return 1&e?n[e/2|0]:(n[e/2-1]+n[e/2])/2},t.cumsum=function(e){return t.cumreduce(e,function(t,e){return t+e})},t.cumprod=function(e){return t.cumreduce(e,function(t,e){return t*e})},t.diff=function(t){for(var e=[],n=t.length,r=1;r<n;r++)e.push(t[r]-t[r-1]);return e},t.rank=function(t){for(var e=t.length,n=t.slice().sort(r),o=new Array(e),i=0;i<e;i++){var a=n.indexOf(t[i]),u=n.lastIndexOf(t[i]);if(a===u)var c=a;else c=(a+u)/2;o[i]=c+1}return o},t.mode=function(t){for(var e=t.length,n=t.slice().sort(r),o=1,i=0,a=0,u=[],c=0;c<e;c++)n[c]===n[c+1]?o++:(o>i?(u=[n[c]],i=o,a=0):o===i&&(u.push(n[c]),a++),o=1);return 0===a?u[0]:u},t.range=function(e){return t.max(e)-t.min(e)},t.variance=function(e,n){return t.sumsqerr(e)/(e.length-(n?1:0))},t.pooledvariance=function(e){return e.reduce(function(e,n){return e+t.sumsqerr(n)},0)/(e.reduce(function(t,e){return t+e.length},0)-e.length)},t.deviation=function(e){for(var n=t.mean(e),r=e.length,o=new Array(r),i=0;i<r;i++)o[i]=e[i]-n;return o},t.stdev=function(n,r){return e.sqrt(t.variance(n,r))},t.pooledstdev=function(n){return e.sqrt(t.pooledvariance(n))},t.meandev=function(n){for(var r=t.mean(n),o=[],i=n.length-1;i>=0;i--)o.push(e.abs(n[i]-r));return t.mean(o)},t.meddev=function(n){for(var r=t.median(n),o=[],i=n.length-1;i>=0;i--)o.push(e.abs(n[i]-r));return t.median(o)},t.coeffvar=function(e){return t.stdev(e)/t.mean(e)},t.quartiles=function(t){var n=t.length,o=t.slice().sort(r);return[o[e.round(n/4)-1],o[e.round(n/2)-1],o[e.round(3*n/4)-1]]},t.quantiles=function(t,n,i,a){var u,c,s,f,l=t.slice().sort(r),h=[n.length],p=t.length;void 0===i&&(i=3/8),void 0===a&&(a=3/8);for(var y=0;y<n.length;y++)c=p*(u=n[y])+(i+u*(1-i-a)),s=e.floor(o(c,1,p-1)),f=o(c-s,0,1),h[y]=(1-f)*l[s-1]+f*l[s];return h},t.percentile=function(t,e){var n=t.slice().sort(r),o=e*(n.length-1),i=parseInt(o),a=o-i;return i+1<n.length?n[i]*(1-a)+n[i+1]*a:n[i]},t.percentileOfScore=function(t,e,n){var r,o=0,i=t.length,a=!1;"strict"===n&&(a=!0);for(var u=0;u<i;u++)r=t[u],(a&&r<e||!a&&r<=e)&&o++;return o/i},t.histogram=function(n,r){for(var o=t.min(n),i=r||4,a=(t.max(n)-o)/i,u=n.length,c=(r=[],0);c<i;c++)r[c]=0;for(c=0;c<u;c++)r[e.min(e.floor((n[c]-o)/a),i-1)]+=1;return r},t.covariance=function(e,n){for(var r=t.mean(e),o=t.mean(n),i=e.length,a=new Array(i),u=0;u<i;u++)a[u]=(e[u]-r)*(n[u]-o);return t.sum(a)/(i-1)},t.corrcoeff=function(e,n){return t.covariance(e,n)/t.stdev(e,1)/t.stdev(n,1)},t.spearmancoeff=function(e,n){return e=t.rank(e),n=t.rank(n),t.corrcoeff(e,n)},t.stanMoment=function(n,r){for(var o=t.mean(n),i=t.stdev(n),a=n.length,u=0,c=0;c<a;c++)u+=e.pow((n[c]-o)/i,r);return u/n.length},t.skewness=function(e){return t.stanMoment(e,3)},t.kurtosis=function(e){return t.stanMoment(e,4)-3};var i=t.prototype;!function(e){for(var r=0;r<e.length;r++)!function(e){i[e]=function(r,o){var a=[],u=0,c=this;if(n(r)&&(o=r,r=!1),o)return setTimeout(function(){o.call(c,i[e].call(c,r))}),this;if(this.length>1){for(c=!0===r?this:this.transpose();u<c.length;u++)a[u]=t[e](c[u]);return a}return t[e](this[0],r)}}(e[r])}("cumsum cumprod".split(" ")),function(e){for(var r=0;r<e.length;r++)!function(e){i[e]=function(r,o){var a=[],u=0,c=this;if(n(r)&&(o=r,r=!1),o)return setTimeout(function(){o.call(c,i[e].call(c,r))}),this;if(this.length>1){for("sumrow"!==e&&(c=!0===r?this:this.transpose());u<c.length;u++)a[u]=t[e](c[u]);return!0===r?t[e](t.utils.toVector(a)):a}return t[e](this[0],r)}}(e[r])}("sum sumsqrd sumsqerr sumrow product min max unique mean meansqerr geomean median diff rank mode range variance deviation stdev meandev meddev coeffvar quartiles histogram skewness kurtosis".split(" ")),function(e){for(var r=0;r<e.length;r++)!function(e){i[e]=function(){var r=[],o=0,a=this,u=Array.prototype.slice.call(arguments);if(n(u[u.length-1])){var c=u[u.length-1],s=u.slice(0,u.length-1);return setTimeout(function(){c.call(a,i[e].apply(a,s))}),this}c=void 0;var f=function(n){return t[e].apply(a,[n].concat(u))};if(this.length>1){for(a=a.transpose();o<a.length;o++)r[o]=f(a[o]);return r}return f(this[0])}}(e[r])}("quantiles percentileOfScore".split(" "))}(o=function(t,e){var n=Array.prototype.concat,r=Array.prototype.slice,o=Object.prototype.toString;function a(e,n){var r=e>n?e:n;return t.pow(10,17-~~(t.log(r>0?r:-r)*t.LOG10E))}var u=Array.isArray||function(t){return"[object Array]"===o.call(t)};function c(t){return"[object Function]"===o.call(t)}function s(t){return"number"==typeof t&&t==t}function f(){return new f._init(arguments)}function l(){return 0}function h(){return 1}function p(t,e){return t===e?1:0}f.fn=f.prototype,f._init=function(t){if(u(t[0]))if(u(t[0][0])){c(t[1])&&(t[0]=f.map(t[0],t[1]));for(var e=0;e<t[0].length;e++)this[e]=t[0][e];this.length=t[0].length}else this[0]=c(t[1])?f.map(t[0],t[1]):t[0],this.length=1;else if(s(t[0]))this[0]=f.seq.apply(null,t),this.length=1;else{if(t[0]instanceof f)return f(t[0].toArray());this[0]=[],this.length=1}return this},f._init.prototype=f.prototype,f._init.constructor=f,f.utils={calcRdx:a,isArray:u,isFunction:c,isNumber:s,toVector:function(t){return n.apply([],t)}},f.extend=function(t){var e;if(1===arguments.length){for(e in t)f[e]=t[e];return this}for(var n=1;n<arguments.length;n++)for(e in arguments[n])t[e]=arguments[n][e];return t},f.rows=function(t){return t.length||1},f.cols=function(t){return t[0].length||1},f.dimensions=function(t){return{rows:f.rows(t),cols:f.cols(t)}},f.row=function(t,e){return u(e)?e.map(function(e){return f.row(t,e)}):t[e]},f.rowa=function(t,e){return f.row(t,e)},f.col=function(t,e){if(u(e)){var n=f.arange(t.length).map(function(t){return new Array(e.length)});return e.forEach(function(e,r){f.arange(t.length).forEach(function(o){n[o][r]=t[o][e]})}),n}for(var r=new Array(t.length),o=0;o<t.length;o++)r[o]=[t[o][e]];return r},f.cola=function(t,e){return f.col(t,e).map(function(t){return t[0]})},f.diag=function(t){for(var e=f.rows(t),n=new Array(e),r=0;r<e;r++)n[r]=[t[r][r]];return n},f.antidiag=function(t){for(var e=f.rows(t)-1,n=new Array(e),r=0;e>=0;e--,r++)n[r]=[t[r][e]];return n},f.transpose=function(t){var e,n,r,o,i=[];u(t[0])||(t=[t]),n=t.length,r=t[0].length;for(var a=0;a<r;a++){for(e=new Array(n),o=0;o<n;o++)e[o]=t[o][a];i.push(e)}return 1===i.length?i[0]:i},f.map=function(t,e,n){var r,o,i,a,c;for(u(t[0])||(t=[t]),o=t.length,i=t[0].length,a=n?t:new Array(o),r=0;r<o;r++)for(a[r]||(a[r]=new Array(i)),c=0;c<i;c++)a[r][c]=e(t[r][c],r,c);return 1===a.length?a[0]:a},f.cumreduce=function(t,e,n){var r,o,i,a,c;for(u(t[0])||(t=[t]),o=t.length,i=t[0].length,a=n?t:new Array(o),r=0;r<o;r++)for(a[r]||(a[r]=new Array(i)),i>0&&(a[r][0]=t[r][0]),c=1;c<i;c++)a[r][c]=e(a[r][c-1],t[r][c]);return 1===a.length?a[0]:a},f.alter=function(t,e){return f.map(t,e,!0)},f.create=function(t,e,n){var r,o=new Array(t);c(e)&&(n=e,e=t);for(var i=0;i<t;i++)for(o[i]=new Array(e),r=0;r<e;r++)o[i][r]=n(i,r);return o},f.zeros=function(t,e){return s(e)||(e=t),f.create(t,e,l)},f.ones=function(t,e){return s(e)||(e=t),f.create(t,e,h)},f.rand=function(e,n){return s(n)||(n=e),f.create(e,n,t.random)},f.identity=function(t,e){return s(e)||(e=t),f.create(t,e,p)},f.symmetric=function(t){var e,n,r=t.length;if(t.length!==t[0].length)return!1;for(e=0;e<r;e++)for(n=0;n<r;n++)if(t[n][e]!==t[e][n])return!1;return!0},f.clear=function(t){return f.alter(t,l)},f.seq=function(t,e,n,r){c(r)||(r=!1);var o,i=[],u=a(t,e),s=(e*u-t*u)/((n-1)*u),f=t;for(o=0;f<=e&&o<n;f=(t*u+s*u*++o)/u)i.push(r?r(f,o):f);return i},f.arange=function(t,n,r){var o=[];if(r=r||1,n===e&&(n=t,t=0),t===n||0===r)return[];if(t<n&&r<0)return[];if(t>n&&r>0)return[];if(r>0)for(i=t;i<n;i+=r)o.push(i);else for(i=t;i>n;i+=r)o.push(i);return o},f.slice=function(){function t(t,n,r,o){var i,a=[],u=t.length;if(n===e&&r===e&&o===e)return f.copy(t);if(n=n||0,r=r||t.length,o=o||1,(n=n>=0?n:u+n)===(r=r>=0?r:u+r)||0===o)return[];if(n<r&&o<0)return[];if(n>r&&o>0)return[];if(o>0)for(i=n;i<r;i+=o)a.push(t[i]);else for(i=n;i>r;i+=o)a.push(t[i]);return a}return function(e,n){if(s((n=n||{}).row)){if(s(n.col))return e[n.row][n.col];var r=f.rowa(e,n.row),o=n.col||{};return t(r,o.start,o.end,o.step)}if(s(n.col)){var i=f.cola(e,n.col),a=n.row||{};return t(i,a.start,a.end,a.step)}var a=n.row||{},o=n.col||{};return t(e,a.start,a.end,a.step).map(function(e){return t(e,o.start,o.end,o.step)})}}(),f.sliceAssign=function(n,r,o){if(s(r.row)){if(s(r.col))return n[r.row][r.col]=o;r.col=r.col||{},r.col.start=r.col.start||0,r.col.end=r.col.end||n[0].length,r.col.step=r.col.step||1;var i=f.arange(r.col.start,t.min(n.length,r.col.end),r.col.step),a=r.row;return i.forEach(function(t,e){n[a][t]=o[e]}),n}if(s(r.col)){r.row=r.row||{},r.row.start=r.row.start||0,r.row.end=r.row.end||n.length,r.row.step=r.row.step||1;var u=f.arange(r.row.start,t.min(n[0].length,r.row.end),r.row.step),c=r.col;return u.forEach(function(t,e){n[t][c]=o[e]}),n}o[0].length===e&&(o=[o]),r.row.start=r.row.start||0,r.row.end=r.row.end||n.length,r.row.step=r.row.step||1,r.col.start=r.col.start||0,r.col.end=r.col.end||n[0].length,r.col.step=r.col.step||1;var u=f.arange(r.row.start,t.min(n.length,r.row.end),r.row.step),i=f.arange(r.col.start,t.min(n[0].length,r.col.end),r.col.step);return u.forEach(function(t,e){i.forEach(function(r,i){n[t][r]=o[e][i]})}),n},f.diagonal=function(t){var e=f.zeros(t.length,t.length);return t.forEach(function(t,n){e[n][n]=t}),e},f.copy=function(t){return t.map(function(t){return s(t)?t:t.map(function(t){return t})})};var y=f.prototype;return y.length=0,y.push=Array.prototype.push,y.sort=Array.prototype.sort,y.splice=Array.prototype.splice,y.slice=Array.prototype.slice,y.toArray=function(){return this.length>1?r.call(this):r.call(this)[0]},y.map=function(t,e){return f(f.map(this,t,e))},y.cumreduce=function(t,e){return f(f.cumreduce(this,t,e))},y.alter=function(t){return f.alter(this,t),this},function(t){for(var e=0;e<t.length;e++)!function(t){y[t]=function(e){var n,r=this;return e?(setTimeout(function(){e.call(r,y[t].call(r))}),this):(n=f[t](this),u(n)?f(n):n)}}(t[e])}("transpose clear symmetric rows cols dimensions diag antidiag".split(" ")),function(t){for(var e=0;e<t.length;e++)!function(t){y[t]=function(e,n){var r=this;return n?(setTimeout(function(){n.call(r,y[t].call(r,e))}),this):f(f[t](this,e))}}(t[e])}("row col".split(" ")),function(t){for(var e=0;e<t.length;e++)n=t[e],y[n]=new Function("return jStat(jStat."+n+".apply(null, arguments));");var n}("create zeros ones rand identity".split(" ")),f}(Math),Math),function(t,e){t.gammaln=function(t){var n,r,o,i=0,a=[76.18009172947146,-86.50532032941678,24.01409824083091,-1.231739572450155,.001208650973866179,-5395239384953e-18],u=1.000000000190015;for(o=(r=n=t)+5.5,o-=(n+.5)*e.log(o);i<6;i++)u+=a[i]/++r;return e.log(2.5066282746310007*u/n)-o},t.gammafn=function(t){var n,r,o,i=[-1.716185138865495,24.76565080557592,-379.80425647094563,629.3311553128184,866.9662027904133,-31451.272968848367,-36144.413418691176,66456.14382024054],a=[-30.8402300119739,315.35062697960416,-1015.1563674902192,-3107.771671572311,22538.11842098015,4755.846277527881,-134659.9598649693,-115132.2596755535],u=!1,c=0,s=0,f=0,l=t;if(l<=0){if(!(o=l%1+3.6e-16))return 1/0;u=(1&l?-1:1)*e.PI/e.sin(e.PI*o),l=1-l}r=l,n=l<1?l++:(l-=c=(0|l)-1)-1;for(var h=0;h<8;++h)f=(f+i[h])*n,s=s*n+a[h];if(o=f/s+1,r<l)o/=r;else if(r>l)for(h=0;h<c;++h)o*=l,l++;return u&&(o=u/o),o},t.gammap=function(e,n){return t.lowRegGamma(e,n)*t.gammafn(e)},t.lowRegGamma=function(n,r){var o,i=t.gammaln(n),a=n,u=1/n,c=u,s=r+1-n,f=1/1e-30,l=1/s,h=l,p=1,y=-~(8.5*e.log(n>=1?n:1/n)+.4*n+17);if(r<0||n<=0)return NaN;if(r<n+1){for(;p<=y;p++)u+=c*=r/++a;return u*e.exp(-r+n*e.log(r)-i)}for(;p<=y;p++)h*=(l=1/(l=(o=-p*(p-n))*l+(s+=2)))*(f=s+o/f);return 1-h*e.exp(-r+n*e.log(r)-i)},t.factorialln=function(e){return e<0?NaN:t.gammaln(e+1)},t.factorial=function(e){return e<0?NaN:t.gammafn(e+1)},t.combination=function(n,r){return n>170||r>170?e.exp(t.combinationln(n,r)):t.factorial(n)/t.factorial(r)/t.factorial(n-r)},t.combinationln=function(e,n){return t.factorialln(e)-t.factorialln(n)-t.factorialln(e-n)},t.permutation=function(e,n){return t.factorial(e)/t.factorial(e-n)},t.betafn=function(n,r){if(!(n<=0||r<=0))return n+r>170?e.exp(t.betaln(n,r)):t.gammafn(n)*t.gammafn(r)/t.gammafn(n+r)},t.betaln=function(e,n){return t.gammaln(e)+t.gammaln(n)-t.gammaln(e+n)},t.betacf=function(t,n,r){var o,i,a,u,c=1,s=n+r,f=n+1,l=n-1,h=1,p=1-s*t/f;for(e.abs(p)<1e-30&&(p=1e-30),u=p=1/p;c<=100&&(p=1+(i=c*(r-c)*t/((l+(o=2*c))*(n+o)))*p,e.abs(p)<1e-30&&(p=1e-30),h=1+i/h,e.abs(h)<1e-30&&(h=1e-30),u*=(p=1/p)*h,p=1+(i=-(n+c)*(s+c)*t/((n+o)*(f+o)))*p,e.abs(p)<1e-30&&(p=1e-30),h=1+i/h,e.abs(h)<1e-30&&(h=1e-30),u*=a=(p=1/p)*h,!(e.abs(a-1)<3e-7));c++);return u},t.gammapinv=function(n,r){var o,i,a,u,c,s,f=0,l=r-1,h=t.gammaln(r);if(n>=1)return e.max(100,r+100*e.sqrt(r));if(n<=0)return 0;for(r>1?(c=e.log(l),s=e.exp(l*(c-1)-h),u=n<.5?n:1-n,o=(2.30753+.27061*(i=e.sqrt(-2*e.log(u))))/(1+i*(.99229+.04481*i))-i,n<.5&&(o=-o),o=e.max(.001,r*e.pow(1-1/(9*r)-o/(3*e.sqrt(r)),3))):o=n<(i=1-r*(.253+.12*r))?e.pow(n/i,1/r):1-e.log(1-(n-i)/(1-i));f<12;f++){if(o<=0)return 0;if((o-=i=(a=(t.lowRegGamma(r,o)-n)/(i=r>1?s*e.exp(-(o-l)+l*(e.log(o)-c)):e.exp(-o+l*e.log(o)-h)))/(1-.5*e.min(1,a*((r-1)/o-1))))<=0&&(o=.5*(o+i)),e.abs(i)<1e-8*o)break}return o},t.erf=function(t){var n,r,o,i,a=[-1.3026537197817094,.6419697923564902,.019476473204185836,-.00956151478680863,-.000946595344482036,.000366839497852761,42523324806907e-18,-20278578112534e-18,-1624290004647e-18,130365583558e-17,1.5626441722e-8,-8.5238095915e-8,6.529054439e-9,5.059343495e-9,-9.91364156e-10,-2.27365122e-10,9.6467911e-11,2.394038e-12,-6.886027e-12,8.94487e-13,3.13092e-13,-1.12708e-13,3.81e-16,7.106e-15,-1.523e-15,-9.4e-17,1.21e-16,-2.8e-17],u=a.length-1,c=!1,s=0,f=0;for(t<0&&(t=-t,c=!0),r=4*(n=2/(2+t))-2;u>0;u--)o=s,s=r*s-f+a[u],f=o;return i=n*e.exp(-t*t+.5*(a[0]+r*s)-f),c?i-1:1-i},t.erfc=function(e){return 1-t.erf(e)},t.erfcinv=function(n){var r,o,i,a,u=0;if(n>=2)return-100;if(n<=0)return 100;for(a=n<1?n:2-n,r=-.70711*((2.30753+.27061*(i=e.sqrt(-2*e.log(a/2))))/(1+i*(.99229+.04481*i))-i);u<2;u++)r+=(o=t.erfc(r)-a)/(1.1283791670955126*e.exp(-r*r)-r*o);return n<1?r:-r},t.ibetainv=function(n,r,o){var i,a,u,c,s,f,l,h,p,y,v=r-1,d=o-1,g=0;if(n<=0)return 0;if(n>=1)return 1;for(r>=1&&o>=1?(u=n<.5?n:1-n,f=(2.30753+.27061*(c=e.sqrt(-2*e.log(u))))/(1+c*(.99229+.04481*c))-c,n<.5&&(f=-f),l=(f*f-3)/6,h=2/(1/(2*r-1)+1/(2*o-1)),p=f*e.sqrt(l+h)/h-(1/(2*o-1)-1/(2*r-1))*(l+5/6-2/(3*h)),f=r/(r+o*e.exp(2*p))):(i=e.log(r/(r+o)),a=e.log(o/(r+o)),f=n<(c=e.exp(r*i)/r)/(p=c+(s=e.exp(o*a)/o))?e.pow(r*p*n,1/r):1-e.pow(o*p*(1-n),1/o)),y=-t.gammaln(r)-t.gammaln(o)+t.gammaln(r+o);g<10;g++){if(0===f||1===f)return f;if((f-=c=(s=(t.ibeta(f,r,o)-n)/(c=e.exp(v*e.log(f)+d*e.log(1-f)+y)))/(1-.5*e.min(1,s*(v/f-d/(1-f)))))<=0&&(f=.5*(f+c)),f>=1&&(f=.5*(f+c+1)),e.abs(c)<1e-8*f&&g>0)break}return f},t.ibeta=function(n,r,o){var i=0===n||1===n?0:e.exp(t.gammaln(r+o)-t.gammaln(r)-t.gammaln(o)+r*e.log(n)+o*e.log(1-n));return!(n<0||n>1)&&(n<(r+1)/(r+o+2)?i*t.betacf(n,r,o)/r:1-i*t.betacf(1-n,o,r)/o)},t.randn=function(n,r){var o,i,a,u,c;if(r||(r=n),n)return t.create(n,r,function(){return t.randn()});do{o=e.random(),i=1.7156*(e.random()-.5),c=(a=o-.449871)*a+(u=e.abs(i)+.386595)*(.196*u-.25472*a)}while(c>.27597&&(c>.27846||i*i>-4*e.log(o)*o*o));return i/o},t.randg=function(n,r,o){var i,a,u,c,s,f,l=n;if(o||(o=r),n||(n=1),r)return(f=t.zeros(r,o)).alter(function(){return t.randg(n)}),f;n<1&&(n+=1),i=n-1/3,a=1/e.sqrt(9*i);do{do{c=1+a*(s=t.randn())}while(c<=0);c*=c*c,u=e.random()}while(u>1-.331*e.pow(s,4)&&e.log(u)>.5*s*s+i*(1-c+e.log(c)));if(n==l)return i*c;do{u=e.random()}while(0===u);return e.pow(u,1/l)*i*c},function(e){for(var n=0;n<e.length;n++)!function(e){t.fn[e]=function(){return t(t.map(this,function(n){return t[e](n)}))}}(e[n])}("gammaln gammafn factorial factorialln".split(" ")),function(e){for(var n=0;n<e.length;n++)!function(e){t.fn[e]=function(){return t(t[e].apply(null,arguments))}}(e[n])}("randn".split(" "))}(o,Math),function(t,e){function n(n,r,o){var i=[.9815606342467192,.9041172563704749,.7699026741943047,.5873179542866175,.3678314989981802,.1252334085114689],a=[.04717533638651183,.10693932599531843,.16007832854334622,.20316742672306592,.2334925365383548,.24914704581340277],u=.5*n;if(u>=8)return 1;var c,s=2*t.normal.cdf(u,0,1,1,0)-1;s=s>=e.exp(-50/o)?e.pow(s,o):0;for(var f=u,l=(8-u)/(c=n>3?2:3),h=f+l,p=0,y=o-1,v=1;v<=c;v++){for(var d=0,g=.5*(h+f),_=.5*(h-f),b=1;b<=12;b++){var m,w=g+_*(6<b?i[(m=12-b+1)-1]:-i[(m=b)-1]),x=w*w;if(x>60)break;var O=2*t.normal.cdf(w,0,1,1,0)*.5-2*t.normal.cdf(w,n,1,1,0)*.5;O>=e.exp(-30/y)&&(d+=O=a[m-1]*e.exp(-.5*x)*e.pow(O,y))}p+=d*=2*_*o/e.sqrt(2*e.PI),f=h,h+=l}return(s+=p)<=e.exp(-30/r)?0:(s=e.pow(s,r))>=1?1:s}!function(e){for(var n=0;n<e.length;n++)!function(e){t[e]=function(t,e,n){return this instanceof arguments.callee?(this._a=t,this._b=e,this._c=n,this):new arguments.callee(t,e,n)},t.fn[e]=function(n,r,o){var i=t[e](n,r,o);return i.data=this,i},t[e].prototype.sample=function(n){var r=this._a,o=this._b,i=this._c;return n?t.alter(n,function(){return t[e].sample(r,o,i)}):t[e].sample(r,o,i)},function(n){for(var r=0;r<n.length;r++)!function(n){t[e].prototype[n]=function(r){var o=this._a,i=this._b,a=this._c;return r||0===r||(r=this.data),"number"!=typeof r?t.fn.map.call(r,function(r){return t[e][n](r,o,i,a)}):t[e][n](r,o,i,a)}}(n[r])}("pdf cdf inv".split(" ")),function(n){for(var r=0;r<n.length;r++)!function(n){t[e].prototype[n]=function(){return t[e][n](this._a,this._b,this._c)}}(n[r])}("mean median mode variance".split(" "))}(e[n])}("beta centralF cauchy chisquare exponential gamma invgamma kumaraswamy laplace lognormal noncentralt normal pareto studentt weibull uniform binomial negbin hypgeom poisson triangular tukey arcsine".split(" ")),t.extend(t.beta,{pdf:function(n,r,o){return n>1||n<0?0:1==r&&1==o?1:r<512&&o<512?e.pow(n,r-1)*e.pow(1-n,o-1)/t.betafn(r,o):e.exp((r-1)*e.log(n)+(o-1)*e.log(1-n)-t.betaln(r,o))},cdf:function(e,n,r){return e>1||e<0?1*(e>1):t.ibeta(e,n,r)},inv:function(e,n,r){return t.ibetainv(e,n,r)},mean:function(t,e){return t/(t+e)},median:function(e,n){return t.ibetainv(.5,e,n)},mode:function(t,e){return(t-1)/(t+e-2)},sample:function(e,n){var r=t.randg(e);return r/(r+t.randg(n))},variance:function(t,n){return t*n/(e.pow(t+n,2)*(t+n+1))}}),t.extend(t.centralF,{pdf:function(n,r,o){var i;return n<0?0:r<=2?0===n&&r<2?1/0:0===n&&2===r?1:1/t.betafn(r/2,o/2)*e.pow(r/o,r/2)*e.pow(n,r/2-1)*e.pow(1+r/o*n,-(r+o)/2):(i=r*n/(o+n*r),r*(o/(o+n*r))/2*t.binomial.pdf((r-2)/2,(r+o-2)/2,i))},cdf:function(e,n,r){return e<0?0:t.ibeta(n*e/(n*e+r),n/2,r/2)},inv:function(e,n,r){return r/(n*(1/t.ibetainv(e,n/2,r/2)-1))},mean:function(t,e){return e>2?e/(e-2):void 0},mode:function(t,e){return t>2?e*(t-2)/(t*(e+2)):void 0},sample:function(e,n){return 2*t.randg(e/2)/e/(2*t.randg(n/2)/n)},variance:function(t,e){if(!(e<=4))return 2*e*e*(t+e-2)/(t*(e-2)*(e-2)*(e-4))}}),t.extend(t.cauchy,{pdf:function(t,n,r){return r<0?0:r/(e.pow(t-n,2)+e.pow(r,2))/e.PI},cdf:function(t,n,r){return e.atan((t-n)/r)/e.PI+.5},inv:function(t,n,r){return n+r*e.tan(e.PI*(t-.5))},median:function(t,e){return t},mode:function(t,e){return t},sample:function(n,r){return t.randn()*e.sqrt(1/(2*t.randg(.5)))*r+n}}),t.extend(t.chisquare,{pdf:function(n,r){return n<0?0:0===n&&2===r?.5:e.exp((r/2-1)*e.log(n)-n/2-r/2*e.log(2)-t.gammaln(r/2))},cdf:function(e,n){return e<0?0:t.lowRegGamma(n/2,e/2)},inv:function(e,n){return 2*t.gammapinv(e,.5*n)},mean:function(t){return t},median:function(t){return t*e.pow(1-2/(9*t),3)},mode:function(t){return t-2>0?t-2:0},sample:function(e){return 2*t.randg(e/2)},variance:function(t){return 2*t}}),t.extend(t.exponential,{pdf:function(t,n){return t<0?0:n*e.exp(-n*t)},cdf:function(t,n){return t<0?0:1-e.exp(-n*t)},inv:function(t,n){return-e.log(1-t)/n},mean:function(t){return 1/t},median:function(t){return 1/t*e.log(2)},mode:function(t){return 0},sample:function(t){return-1/t*e.log(e.random())},variance:function(t){return e.pow(t,-2)}}),t.extend(t.gamma,{pdf:function(n,r,o){return n<0?0:0===n&&1===r?1/o:e.exp((r-1)*e.log(n)-n/o-t.gammaln(r)-r*e.log(o))},cdf:function(e,n,r){return e<0?0:t.lowRegGamma(n,e/r)},inv:function(e,n,r){return t.gammapinv(e,n)*r},mean:function(t,e){return t*e},mode:function(t,e){if(t>1)return(t-1)*e},sample:function(e,n){return t.randg(e)*n},variance:function(t,e){return t*e*e}}),t.extend(t.invgamma,{pdf:function(n,r,o){return n<=0?0:e.exp(-(r+1)*e.log(n)-o/n-t.gammaln(r)+r*e.log(o))},cdf:function(e,n,r){return e<=0?0:1-t.lowRegGamma(n,r/e)},inv:function(e,n,r){return r/t.gammapinv(1-e,n)},mean:function(t,e){return t>1?e/(t-1):void 0},mode:function(t,e){return e/(t+1)},sample:function(e,n){return n/t.randg(e)},variance:function(t,e){if(!(t<=2))return e*e/((t-1)*(t-1)*(t-2))}}),t.extend(t.kumaraswamy,{pdf:function(t,n,r){return 0===t&&1===n?r:1===t&&1===r?n:e.exp(e.log(n)+e.log(r)+(n-1)*e.log(t)+(r-1)*e.log(1-e.pow(t,n)))},cdf:function(t,n,r){return t<0?0:t>1?1:1-e.pow(1-e.pow(t,n),r)},inv:function(t,n,r){return e.pow(1-e.pow(1-t,1/r),1/n)},mean:function(e,n){return n*t.gammafn(1+1/e)*t.gammafn(n)/t.gammafn(1+1/e+n)},median:function(t,n){return e.pow(1-e.pow(2,-1/n),1/t)},mode:function(t,n){if(t>=1&&n>=1&&1!==t&&1!==n)return e.pow((t-1)/(t*n-1),1/t)},variance:function(t,e){throw new Error("variance not yet implemented")}}),t.extend(t.lognormal,{pdf:function(t,n,r){return t<=0?0:e.exp(-e.log(t)-.5*e.log(2*e.PI)-e.log(r)-e.pow(e.log(t)-n,2)/(2*r*r))},cdf:function(n,r,o){return n<0?0:.5+.5*t.erf((e.log(n)-r)/e.sqrt(2*o*o))},inv:function(n,r,o){return e.exp(-1.4142135623730951*o*t.erfcinv(2*n)+r)},mean:function(t,n){return e.exp(t+n*n/2)},median:function(t,n){return e.exp(t)},mode:function(t,n){return e.exp(t-n*n)},sample:function(n,r){return e.exp(t.randn()*r+n)},variance:function(t,n){return(e.exp(n*n)-1)*e.exp(2*t+n*n)}}),t.extend(t.noncentralt,{pdf:function(n,r,o){return e.abs(o)<1e-14?t.studentt.pdf(n,r):e.abs(n)<1e-14?e.exp(t.gammaln((r+1)/2)-o*o/2-.5*e.log(e.PI*r)-t.gammaln(r/2)):r/n*(t.noncentralt.cdf(n*e.sqrt(1+2/r),r+2,o)-t.noncentralt.cdf(n,r,o))},cdf:function(n,r,o){if(e.abs(o)<1e-14)return t.studentt.cdf(n,r);var i=!1;n<0&&(i=!0,o=-o);for(var a=t.normal.cdf(-o,0,1),u=1e-14+1,c=u,s=n*n/(n*n+r),f=0,l=e.exp(-o*o/2),h=e.exp(-o*o/2-.5*e.log(2)-t.gammaln(1.5))*o;f<200||c>1e-14||u>1e-14;)c=u,f>0&&(l*=o*o/(2*f),h*=o*o/(2*(f+.5))),a+=.5*(u=l*t.beta.cdf(s,f+.5,r/2)+h*t.beta.cdf(s,f+1,r/2)),f++;return i?1-a:a}}),t.extend(t.normal,{pdf:function(t,n,r){return e.exp(-.5*e.log(2*e.PI)-e.log(r)-e.pow(t-n,2)/(2*r*r))},cdf:function(n,r,o){return.5*(1+t.erf((n-r)/e.sqrt(2*o*o)))},inv:function(e,n,r){return-1.4142135623730951*r*t.erfcinv(2*e)+n},mean:function(t,e){return t},median:function(t,e){return t},mode:function(t,e){return t},sample:function(e,n){return t.randn()*n+e},variance:function(t,e){return e*e}}),t.extend(t.pareto,{pdf:function(t,n,r){return t<n?0:r*e.pow(n,r)/e.pow(t,r+1)},cdf:function(t,n,r){return t<n?0:1-e.pow(n/t,r)},inv:function(t,n,r){return n/e.pow(1-t,1/r)},mean:function(t,n){if(!(n<=1))return n*e.pow(t,n)/(n-1)},median:function(t,n){return t*(n*e.SQRT2)},mode:function(t,e){return t},variance:function(t,n){if(!(n<=2))return t*t*n/(e.pow(n-1,2)*(n-2))}}),t.extend(t.studentt,{pdf:function(n,r){return r=r>1e100?1e100:r,1/(e.sqrt(r)*t.betafn(.5,r/2))*e.pow(1+n*n/r,-(r+1)/2)},cdf:function(n,r){var o=r/2;return t.ibeta((n+e.sqrt(n*n+r))/(2*e.sqrt(n*n+r)),o,o)},inv:function(n,r){var o=t.ibetainv(2*e.min(n,1-n),.5*r,.5);return o=e.sqrt(r*(1-o)/o),n>.5?o:-o},mean:function(t){return t>1?0:void 0},median:function(t){return 0},mode:function(t){return 0},sample:function(n){return t.randn()*e.sqrt(n/(2*t.randg(n/2)))},variance:function(t){return t>2?t/(t-2):t>1?1/0:void 0}}),t.extend(t.weibull,{pdf:function(t,n,r){return t<0||n<0||r<0?0:r/n*e.pow(t/n,r-1)*e.exp(-e.pow(t/n,r))},cdf:function(t,n,r){return t<0?0:1-e.exp(-e.pow(t/n,r))},inv:function(t,n,r){return n*e.pow(-e.log(1-t),1/r)},mean:function(e,n){return e*t.gammafn(1+1/n)},median:function(t,n){return t*e.pow(e.log(2),1/n)},mode:function(t,n){return n<=1?0:t*e.pow((n-1)/n,1/n)},sample:function(t,n){return t*e.pow(-e.log(e.random()),1/n)},variance:function(n,r){return n*n*t.gammafn(1+2/r)-e.pow(t.weibull.mean(n,r),2)}}),t.extend(t.uniform,{pdf:function(t,e,n){return t<e||t>n?0:1/(n-e)},cdf:function(t,e,n){return t<e?0:t<n?(t-e)/(n-e):1},inv:function(t,e,n){return e+t*(n-e)},mean:function(t,e){return.5*(t+e)},median:function(e,n){return t.mean(e,n)},mode:function(t,e){throw new Error("mode is not yet implemented")},sample:function(t,n){return t/2+n/2+(n/2-t/2)*(2*e.random()-1)},variance:function(t,n){return e.pow(n-t,2)/12}}),t.extend(t.binomial,{pdf:function(n,r,o){return 0===o||1===o?r*o===n?1:0:t.combination(r,n)*e.pow(o,n)*e.pow(1-o,r-n)},cdf:function(e,n,r){var o=[],i=0;if(e<0)return 0;if(e<n){for(;i<=e;i++)o[i]=t.binomial.pdf(i,n,r);return t.sum(o)}return 1}}),t.extend(t.negbin,{pdf:function(n,r,o){return n===n>>>0&&(n<0?0:t.combination(n+r-1,r-1)*e.pow(1-o,n)*e.pow(o,r))},cdf:function(e,n,r){var o=0,i=0;if(e<0)return 0;for(;i<=e;i++)o+=t.negbin.pdf(i,n,r);return o}}),t.extend(t.hypgeom,{pdf:function(n,r,o,i){if(n!=n|0)return!1;if(n<0||n<o-(r-i))return 0;if(n>i||n>o)return 0;if(2*o>r)return 2*i>r?t.hypgeom.pdf(r-o-i+n,r,r-o,r-i):t.hypgeom.pdf(i-n,r,r-o,i);if(2*i>r)return t.hypgeom.pdf(o-n,r,o,r-i);if(o<i)return t.hypgeom.pdf(n,r,i,o);for(var a=1,u=0,c=0;c<n;c++){for(;a>1&&u<i;)a*=1-o/(r-u),u++;a*=(i-c)*(o-c)/((c+1)*(r-o-i+c+1))}for(;u<i;u++)a*=1-o/(r-u);return e.min(1,e.max(0,a))},cdf:function(n,r,o,i){if(n<0||n<o-(r-i))return 0;if(n>=i||n>=o)return 1;if(2*o>r)return 2*i>r?t.hypgeom.cdf(r-o-i+n,r,r-o,r-i):1-t.hypgeom.cdf(i-n-1,r,r-o,i);if(2*i>r)return 1-t.hypgeom.cdf(o-n-1,r,o,r-i);if(o<i)return t.hypgeom.cdf(n,r,i,o);for(var a=1,u=1,c=0,s=0;s<n;s++){for(;a>1&&c<i;){var f=1-o/(r-c);u*=f,a*=f,c++}a+=u*=(i-s)*(o-s)/((s+1)*(r-o-i+s+1))}for(;c<i;c++)a*=1-o/(r-c);return e.min(1,e.max(0,a))}}),t.extend(t.poisson,{pdf:function(n,r){return r<0||n%1!=0||n<0?0:e.pow(r,n)*e.exp(-r)/t.factorial(n)},cdf:function(e,n){var r=[],o=0;if(e<0)return 0;for(;o<=e;o++)r.push(t.poisson.pdf(o,n));return t.sum(r)},mean:function(t){return t},variance:function(t){return t},sample:function(t){var n=1,r=0,o=e.exp(-t);do{r++,n*=e.random()}while(n>o);return r-1}}),t.extend(t.triangular,{pdf:function(t,e,n,r){return n<=e||r<e||r>n?NaN:t<e||t>n?0:t<r?2*(t-e)/((n-e)*(r-e)):t===r?2/(n-e):2*(n-t)/((n-e)*(n-r))},cdf:function(t,n,r,o){return r<=n||o<n||o>r?NaN:t<=n?0:t>=r?1:t<=o?e.pow(t-n,2)/((r-n)*(o-n)):1-e.pow(r-t,2)/((r-n)*(r-o))},inv:function(t,n,r,o){return r<=n||o<n||o>r?NaN:t<=(o-n)/(r-n)?n+(r-n)*e.sqrt(t*((o-n)/(r-n))):n+(r-n)*(1-e.sqrt((1-t)*(1-(o-n)/(r-n))))},mean:function(t,e,n){return(t+e+n)/3},median:function(t,n,r){return r<=(t+n)/2?n-e.sqrt((n-t)*(n-r))/e.sqrt(2):r>(t+n)/2?t+e.sqrt((n-t)*(r-t))/e.sqrt(2):void 0},mode:function(t,e,n){return n},sample:function(t,n,r){var o=e.random();return o<(r-t)/(n-t)?t+e.sqrt(o*(n-t)*(r-t)):n-e.sqrt((1-o)*(n-t)*(n-r))},variance:function(t,e,n){return(t*t+e*e+n*n-t*e-t*n-e*n)/18}}),t.extend(t.arcsine,{pdf:function(t,n,r){return r<=n?NaN:t<=n||t>=r?0:2/e.PI*e.pow(e.pow(r-n,2)-e.pow(2*t-n-r,2),-.5)},cdf:function(t,n,r){return t<n?0:t<r?2/e.PI*e.asin(e.sqrt((t-n)/(r-n))):1},inv:function(t,n,r){return n+(.5-.5*e.cos(e.PI*t))*(r-n)},mean:function(t,e){return e<=t?NaN:(t+e)/2},median:function(t,e){return e<=t?NaN:(t+e)/2},mode:function(t,e){throw new Error("mode is not yet implemented")},sample:function(n,r){return(n+r)/2+(r-n)/2*e.sin(2*e.PI*t.uniform.sample(0,1))},variance:function(t,n){return n<=t?NaN:e.pow(n-t,2)/8}}),t.extend(t.laplace,{pdf:function(t,n,r){return r<=0?0:e.exp(-e.abs(t-n)/r)/(2*r)},cdf:function(t,n,r){return r<=0?0:t<n?.5*e.exp((t-n)/r):1-.5*e.exp(-(t-n)/r)},mean:function(t,e){return t},median:function(t,e){return t},mode:function(t,e){return t},variance:function(t,e){return 2*e*e},sample:function(t,n){var r,o=e.random()-.5;return t-n*((r=o)/e.abs(r))*e.log(1-2*e.abs(o))}}),t.extend(t.tukey,{cdf:function(r,o,i){var a=o,u=[.9894009349916499,.9445750230732326,.8656312023878318,.755404408355003,.6178762444026438,.45801677765722737,.2816035507792589,.09501250983763744],c=[.027152459411754096,.062253523938647894,.09515851168249279,.12462897125553388,.14959598881657674,.16915651939500254,.18260341504492358,.1894506104550685];if(r<=0)return 0;if(i<2||a<2)return NaN;if(!Number.isFinite(r))return 1;if(i>25e3)return n(r,1,a);var s,f=.5*i,l=f*e.log(i)-i*e.log(2)-t.gammaln(f),h=f-1,p=.25*i;s=i<=100?1:i<=800?.5:i<=5e3?.25:.125,l+=e.log(s);for(var y=0,v=1;v<=50;v++){for(var d=0,g=(2*v-1)*s,_=1;_<=16;_++){var b,m;8<_?(b=_-8-1,m=l+h*e.log(g+u[b]*s)-(u[b]*s+g)*p):(b=_-1,m=l+h*e.log(g-u[b]*s)+(u[b]*s-g)*p),m>=-30&&(d+=n(8<_?r*e.sqrt(.5*(u[b]*s+g)):r*e.sqrt(.5*(-u[b]*s+g)),1,a)*c[b]*e.exp(m))}if(v*s>=1&&d<=1e-14)break;y+=d}if(d>1e-14)throw new Error("tukey.cdf failed to converge");return y>1&&(y=1),y},inv:function(n,r,o){if(o<2||r<2)return NaN;if(n<0||n>1)return NaN;if(0===n)return 0;if(1===n)return 1/0;var i,a=function(t,n,r){var o=.5-.5*t,i=e.sqrt(e.log(1/(o*o))),a=i+((((-453642210148e-16*i-.204231210125)*i-.342242088547)*i-1)*i+.322232421088)/((((.0038560700634*i+.10353775285)*i+.531103462366)*i+.588581570495)*i+.099348462606);r<120&&(a+=(a*a*a+a)/r/4);var u=.8832-.2368*a;return r<120&&(u+=-1.214/r+1.208*a/r),a*(u*e.log(n-1)+1.4142)}(n,r,o),u=t.tukey.cdf(a,r,o)-n;i=u>0?e.max(0,a-1):a+1;for(var c,s=t.tukey.cdf(i,r,o)-n,f=1;f<50;f++)if(c=i-s*(i-a)/(s-u),u=s,a=i,c<0&&(c=0,s=-n),s=t.tukey.cdf(c,r,o)-n,i=c,e.abs(i-a)<1e-4)return c;throw new Error("tukey.inv failed to converge")}})}(o,Math),function(t,e){var n,o,a=Array.prototype.push,u=t.utils.isArray;function c(e){return u(e)||e instanceof t}t.extend({add:function(e,n){return c(n)?(c(n[0])||(n=[n]),t.map(e,function(t,e,r){return t+n[e][r]})):t.map(e,function(t){return t+n})},subtract:function(e,n){return c(n)?(c(n[0])||(n=[n]),t.map(e,function(t,e,r){return t-n[e][r]||0})):t.map(e,function(t){return t-n})},divide:function(e,n){return c(n)?(c(n[0])||(n=[n]),t.multiply(e,t.inv(n))):t.map(e,function(t){return t/n})},multiply:function(e,n){var r,o,i,a,u,s,f,l;if(void 0===e.length&&void 0===n.length)return e*n;if(u=e.length,s=e[0].length,f=t.zeros(u,i=c(n)?n[0].length:s),l=0,c(n)){for(;l<i;l++)for(r=0;r<u;r++){for(a=0,o=0;o<s;o++)a+=e[r][o]*n[o][l];f[r][l]=a}return 1===u&&1===l?f[0][0]:f}return t.map(e,function(t){return t*n})},outer:function(e,n){return t.multiply(e.map(function(t){return[t]}),[n])},dot:function(e,n){c(e[0])||(e=[e]),c(n[0])||(n=[n]);for(var r,o,i=1===e[0].length&&1!==e.length?t.transpose(e):e,a=1===n[0].length&&1!==n.length?t.transpose(n):n,u=[],s=0,f=i.length,l=i[0].length;s<f;s++){for(u[s]=[],r=0,o=0;o<l;o++)r+=i[s][o]*a[s][o];u[s]=r}return 1===u.length?u[0]:u},pow:function(n,r){return t.map(n,function(t){return e.pow(t,r)})},exp:function(n){return t.map(n,function(t){return e.exp(t)})},log:function(n){return t.map(n,function(t){return e.log(t)})},abs:function(n){return t.map(n,function(t){return e.abs(t)})},norm:function(t,n){var r=0,o=0;for(isNaN(n)&&(n=2),c(t[0])&&(t=t[0]);o<t.length;o++)r+=e.pow(e.abs(t[o]),n);return e.pow(r,1/n)},angle:function(n,r){return e.acos(t.dot(n,r)/(t.norm(n)*t.norm(r)))},aug:function(t,e){for(var n=[],r=0;r<t.length;r++)n.push(t[r].slice());for(r=0;r<n.length;r++)a.apply(n[r],e[r]);return n},inv:function(e){for(var n,r=e.length,o=e[0].length,i=t.identity(r,o),a=t.gauss_jordan(e,i),u=[],c=0;c<r;c++)for(u[c]=[],n=o;n<a[0].length;n++)u[c][n-o]=a[c][n];return u},det:function(t){var e,n=t.length,r=2*n,o=new Array(r),i=n-1,a=r-1,u=i-n+1,c=a,s=0,f=0;if(2===n)return t[0][0]*t[1][1]-t[0][1]*t[1][0];for(;s<r;s++)o[s]=1;for(s=0;s<n;s++){for(e=0;e<n;e++)o[u<0?u+n:u]*=t[s][e],o[c<n?c+n:c]*=t[s][e],u++,c--;u=--i-n+1,c=--a}for(s=0;s<n;s++)f+=o[s];for(;s<r;s++)f-=o[s];return f},gauss_elimination:function(n,r){var o,i,a,u,c=0,s=0,f=n.length,l=n[0].length,h=1,p=0,y=[];for(o=(n=t.aug(n,r))[0].length,c=0;c<f;c++){for(i=n[c][c],s=c,u=c+1;u<l;u++)i<e.abs(n[u][c])&&(i=n[u][c],s=u);if(s!=c)for(u=0;u<o;u++)a=n[c][u],n[c][u]=n[s][u],n[s][u]=a;for(s=c+1;s<f;s++)for(h=n[s][c]/n[c][c],u=c;u<o;u++)n[s][u]=n[s][u]-h*n[c][u]}for(c=f-1;c>=0;c--){for(p=0,s=c+1;s<=f-1;s++)p+=y[s]*n[c][s];y[c]=(n[c][o-1]-p)/n[c][c]}return y},gauss_jordan:function(n,r){for(var o=t.aug(n,r),i=o.length,a=o[0].length,u=0,c=0;c<i;c++){for(var s=c,f=c+1;f<i;f++)e.abs(o[f][c])>e.abs(o[s][c])&&(s=f);var l=o[c];for(o[c]=o[s],o[s]=l,f=c+1;f<i;f++){u=o[f][c]/o[c][c];for(var h=c;h<a;h++)o[f][h]-=o[c][h]*u}}for(c=i-1;c>=0;c--){for(u=o[c][c],f=0;f<c;f++)for(h=a-1;h>c-1;h--)o[f][h]-=o[c][h]*o[f][c]/u;for(o[c][c]/=u,h=i;h<a;h++)o[c][h]/=u}return o},triaUpSolve:function(e,n){var r,o=e[0].length,i=t.zeros(1,o)[0],a=!1;return null!=n[0].length&&(n=n.map(function(t){return t[0]}),a=!0),t.arange(o-1,-1,-1).forEach(function(a){r=t.arange(a+1,o).map(function(t){return i[t]*e[a][t]}),i[a]=(n[a]-t.sum(r))/e[a][a]}),a?i.map(function(t){return[t]}):i},triaLowSolve:function(e,n){var r,o=e[0].length,i=t.zeros(1,o)[0],a=!1;return null!=n[0].length&&(n=n.map(function(t){return t[0]}),a=!0),t.arange(o).forEach(function(o){r=t.arange(o).map(function(t){return e[o][t]*i[t]}),i[o]=(n[o]-t.sum(r))/e[o][o]}),a?i.map(function(t){return[t]}):i},lu:function(e){var n,r=e.length,o=t.identity(r),a=t.zeros(e.length,e[0].length);return t.arange(r).forEach(function(t){a[0][t]=e[0][t]}),t.arange(1,r).forEach(function(u){t.arange(u).forEach(function(r){n=t.arange(r).map(function(t){return o[u][t]*a[t][r]}),o[u][r]=(e[u][r]-t.sum(n))/a[r][r]}),t.arange(u,r).forEach(function(r){n=t.arange(u).map(function(t){return o[u][t]*a[t][r]}),a[u][r]=e[i][r]-t.sum(n)})}),[o,a]},cholesky:function(n){var r,o=n.length,i=t.zeros(n.length,n[0].length);return t.arange(o).forEach(function(a){r=t.arange(a).map(function(t){return e.pow(i[a][t],2)}),i[a][a]=e.sqrt(n[a][a]-t.sum(r)),t.arange(a+1,o).forEach(function(e){r=t.arange(a).map(function(t){return i[a][t]*i[e][t]}),i[e][a]=(n[a][e]-t.sum(r))/i[a][a]})}),i},gauss_jacobi:function(n,r,o,i){for(var a,u,c,s,f=0,l=0,h=n.length,p=[],y=[],v=[];f<h;f++)for(p[f]=[],y[f]=[],v[f]=[],l=0;l<h;l++)f>l?(p[f][l]=n[f][l],y[f][l]=v[f][l]=0):f<l?(y[f][l]=n[f][l],p[f][l]=v[f][l]=0):(v[f][l]=n[f][l],p[f][l]=y[f][l]=0);for(c=t.multiply(t.multiply(t.inv(v),t.add(p,y)),-1),u=t.multiply(t.inv(v),r),a=o,s=t.add(t.multiply(c,o),u),f=2;e.abs(t.norm(t.subtract(s,a)))>i;)a=s,s=t.add(t.multiply(c,a),u),f++;return s},gauss_seidel:function(n,r,o,i){for(var a,u,c,s,f,l=0,h=n.length,p=[],y=[],v=[];l<h;l++)for(p[l]=[],y[l]=[],v[l]=[],a=0;a<h;a++)l>a?(p[l][a]=n[l][a],y[l][a]=v[l][a]=0):l<a?(y[l][a]=n[l][a],p[l][a]=v[l][a]=0):(v[l][a]=n[l][a],p[l][a]=y[l][a]=0);for(s=t.multiply(t.multiply(t.inv(t.add(v,p)),y),-1),c=t.multiply(t.inv(t.add(v,p)),r),u=o,f=t.add(t.multiply(s,o),c),l=2;e.abs(t.norm(t.subtract(f,u)))>i;)u=f,f=t.add(t.multiply(s,u),c),l+=1;return f},SOR:function(n,r,o,i,a){for(var u,c,s,f,l,h=0,p=n.length,y=[],v=[],d=[];h<p;h++)for(y[h]=[],v[h]=[],d[h]=[],u=0;u<p;u++)h>u?(y[h][u]=n[h][u],v[h][u]=d[h][u]=0):h<u?(v[h][u]=n[h][u],y[h][u]=d[h][u]=0):(d[h][u]=n[h][u],y[h][u]=v[h][u]=0);for(f=t.multiply(t.inv(t.add(d,t.multiply(y,a))),t.subtract(t.multiply(d,1-a),t.multiply(v,a))),s=t.multiply(t.multiply(t.inv(t.add(d,t.multiply(y,a))),r),a),c=o,l=t.add(t.multiply(f,o),s),h=2;e.abs(t.norm(t.subtract(l,c)))>i;)c=l,l=t.add(t.multiply(f,c),s),h++;return l},householder:function(n){for(var r,o,i,a,u=n.length,c=n[0].length,s=0,f=[],l=[];s<u-1;s++){for(r=0,a=s+1;a<c;a++)r+=n[a][s]*n[a][s];for(r=(n[s+1][s]>0?-1:1)*e.sqrt(r),o=e.sqrt((r*r-n[s+1][s]*r)/2),(f=t.zeros(u,1))[s+1][0]=(n[s+1][s]-r)/(2*o),i=s+2;i<u;i++)f[i][0]=n[i][s]/(2*o);l=t.subtract(t.identity(u,c),t.multiply(t.multiply(f,t.transpose(f)),2)),n=t.multiply(l,t.multiply(n,l))}return n},QR:(n=t.sum,o=t.arange,function(i){var a,u,c,s=i.length,f=i[0].length;for(i=t.copy(i),r=t.zeros(f,f),u=0;u<f;u++){for(r[u][u]=e.sqrt(n(o(s).map(function(t){return i[t][u]*i[t][u]}))),a=0;a<s;a++)i[a][u]=i[a][u]/r[u][u];for(c=u+1;c<f;c++)for(r[u][c]=n(o(s).map(function(t){return i[t][u]*i[t][c]})),a=0;a<s;a++)i[a][c]=i[a][c]-i[a][u]*r[u][c]}return[i,r]}),lstsq:function(e,n){var r=!1;void 0===n[0].length&&(n=n.map(function(t){return[t]}),r=!0);var o=t.QR(e),i=o[0],a=o[1],u=e[0].length,c=t.slice(i,{col:{end:u}}),s=function(e){var n=(e=t.copy(e)).length,r=t.identity(n);return t.arange(n-1,-1,-1).forEach(function(n){t.sliceAssign(r,{row:n},t.divide(t.slice(r,{row:n}),e[n][n])),t.sliceAssign(e,{row:n},t.divide(t.slice(e,{row:n}),e[n][n])),t.arange(n).forEach(function(o){var i=t.multiply(e[o][n],-1),a=t.slice(e,{row:o}),u=t.multiply(t.slice(e,{row:n}),i);t.sliceAssign(e,{row:o},t.add(a,u));var c=t.slice(r,{row:o}),s=t.multiply(t.slice(r,{row:n}),i);t.sliceAssign(r,{row:o},t.add(c,s))})}),r}(t.slice(a,{row:{end:u}})),f=t.transpose(c);void 0===f[0].length&&(f=[f]);var l=t.multiply(t.multiply(s,f),n);return void 0===l.length&&(l=[[l]]),r?l.map(function(t){return t[0]}):l},jacobi:function(n){for(var r,o,i,a,u,c,s=1,f=n.length,l=t.identity(f,f),h=[];1===s;){a=n[0][1],o=0,i=1;for(var p=0;p<f;p++)for(r=0;r<f;r++)p!=r&&a<e.abs(n[p][r])&&(a=e.abs(n[p][r]),o=p,i=r);for(u=n[o][o]===n[i][i]?n[o][i]>0?e.PI/4:-e.PI/4:e.atan(2*n[o][i]/(n[o][o]-n[i][i]))/2,(c=t.identity(f,f))[o][o]=e.cos(u),c[o][i]=-e.sin(u),c[i][o]=e.sin(u),c[i][i]=e.cos(u),l=t.multiply(l,c),n=t.multiply(t.multiply(t.inv(c),n),c),s=0,p=1;p<f;p++)for(r=1;r<f;r++)p!=r&&e.abs(n[p][r])>.001&&(s=1)}for(p=0;p<f;p++)h.push(n[p][p]);return[l,h]},rungekutta:function(t,e,n,r,o,i){var a,u,c;if(2===i)for(;r<=n;)o+=((a=e*t(r,o))+(u=e*t(r+e,o+a)))/2,r+=e;if(4===i)for(;r<=n;)o+=((a=e*t(r,o))+2*(u=e*t(r+e/2,o+a/2))+2*(c=e*t(r+e/2,o+u/2))+e*t(r+e,o+c))/6,r+=e;return o},romberg:function(t,n,r,o){for(var i,a,u,c,s,f=0,l=(r-n)/2,h=[],p=[],y=[];f<o/2;){for(s=t(n),u=n,c=0;u<=r;u+=l,c++)h[c]=u;for(i=h.length,u=1;u<i-1;u++)s+=(u%2!=0?4:2)*t(h[u]);s=l/3*(s+t(r)),y[f]=s,l/=2,f++}for(a=y.length,i=1;1!==a;){for(u=0;u<a-1;u++)p[u]=(e.pow(4,i)*y[u+1]-y[u])/(e.pow(4,i)-1);a=p.length,y=p,p=[],i++}return y},richardson:function(t,n,r,o){function i(t,e){for(var n,r=0,o=t.length;r<o;r++)t[r]===e&&(n=r);return n}t.length;for(var a,u,c,s,f,l=e.abs(r-t[i(t,r)+1]),h=0,p=[],y=[];o>=l;)a=i(t,r+o),u=i(t,r),p[h]=(n[a]-2*n[u]+n[2*u-a])/(o*o),o/=2,h++;for(s=p.length,c=1;1!=s;){for(f=0;f<s-1;f++)y[f]=(e.pow(4,c)*p[f+1]-p[f])/(e.pow(4,c)-1);s=y.length,p=y,y=[],c++}return p},simpson:function(t,e,n,r){for(var o,i=(n-e)/r,a=t(e),u=[],c=e,s=0,f=1;c<=n;c+=i,s++)u[s]=c;for(o=u.length;f<o-1;f++)a+=(f%2!=0?4:2)*t(u[f]);return i/3*(a+t(n))},hermite:function(t,e,n,r){for(var o,i=t.length,a=0,u=0,c=[],s=[],f=[],l=[];u<i;u++){for(c[u]=1,o=0;o<i;o++)u!=o&&(c[u]*=(r-t[o])/(t[u]-t[o]));for(s[u]=0,o=0;o<i;o++)u!=o&&(s[u]+=1/(t[u]-t[o]));f[u]=(1-2*(r-t[u])*s[u])*(c[u]*c[u]),l[u]=(r-t[u])*(c[u]*c[u]),a+=f[u]*e[u]+l[u]*n[u]}return a},lagrange:function(t,e,n){for(var r,o,i=0,a=0,u=t.length;a<u;a++){for(o=e[a],r=0;r<u;r++)a!=r&&(o*=(n-t[r])/(t[a]-t[r]));i+=o}return i},cubic_spline:function(e,n,r){for(var o,i,a=e.length,u=0,c=[],s=[],f=[],l=[],h=[],p=[];u<a-1;u++)l[u]=e[u+1]-e[u];for(f[0]=0,u=1;u<a-1;u++)f[u]=3/l[u]*(n[u+1]-n[u])-3/l[u-1]*(n[u]-n[u-1]);for(u=1;u<a-1;u++)c[u]=[],s[u]=[],c[u][u-1]=l[u-1],c[u][u]=2*(l[u-1]+l[u]),c[u][u+1]=l[u],s[u][0]=f[u];for(i=t.multiply(t.inv(c),s),o=0;o<a-1;o++)h[o]=(n[o+1]-n[o])/l[o]-l[o]*(i[o+1][0]+2*i[o][0])/3,p[o]=(i[o+1][0]-i[o][0])/(3*l[o]);for(o=0;o<a&&!(e[o]>r);o++);return n[o-=1]+(r-e[o])*h[o]+t.sq(r-e[o])*i[o]+(r-e[o])*t.sq(r-e[o])*p[o]},gauss_quadrature:function(){throw new Error("gauss_quadrature not yet implemented")},PCA:function(e){var n,r,o,i,a,u=e.length,c=e[0].length,s=0,f=[],l=[],h=[],p=[],y=[],v=[],d=[];for(s=0;s<u;s++)f[s]=t.sum(e[s])/c;for(s=0;s<c;s++)for(y[s]=[],n=0;n<u;n++)y[s][n]=e[n][s]-f[n];for(y=t.transpose(y),s=0;s<u;s++)for(v[s]=[],n=0;n<u;n++)v[s][n]=t.dot([y[s]],[y[n]])/(c-1);for(a=(o=t.jacobi(v))[0],l=o[1],d=t.transpose(a),s=0;s<l.length;s++)for(n=s;n<l.length;n++)l[s]<l[n]&&(r=l[s],l[s]=l[n],l[n]=r,h=d[s],d[s]=d[n],d[n]=h);for(i=t.transpose(y),s=0;s<u;s++)for(p[s]=[],n=0;n<i.length;n++)p[s][n]=t.dot([d[s]],[i[n]]);return[e,l,d,p]}}),function(e){for(var n=0;n<e.length;n++)!function(e){t.fn[e]=function(n,r){var o=this;return r?(setTimeout(function(){r.call(o,t.fn[e].call(o,n))},15),this):"number"==typeof t[e](this,n)?t[e](this,n):t(t[e](this,n))}}(e[n])}("add divide multiply subtract dot pow exp log abs norm angle".split(" "))}(o,Math),function(t,e){var n=[].slice,r=t.utils.isNumber,o=t.utils.isArray;function i(t,n,r,o){if(t>1||r>1||t<=0||r<=0)throw new Error("Proportions should be greater than 0 and less than 1");var i=(t*n+r*o)/(n+o);return(t-r)/e.sqrt(i*(1-i)*(1/n+1/o))}t.extend({zscore:function(){var e=n.call(arguments);return r(e[1])?(e[0]-e[1])/e[2]:(e[0]-t.mean(e[1]))/t.stdev(e[1],e[2])},ztest:function(){var r,i=n.call(arguments);return o(i[1])?(r=t.zscore(i[0],i[1],i[3]),1===i[2]?t.normal.cdf(-e.abs(r),0,1):2*t.normal.cdf(-e.abs(r),0,1)):i.length>2?(r=t.zscore(i[0],i[1],i[2]),1===i[3]?t.normal.cdf(-e.abs(r),0,1):2*t.normal.cdf(-e.abs(r),0,1)):(r=i[0],1===i[1]?t.normal.cdf(-e.abs(r),0,1):2*t.normal.cdf(-e.abs(r),0,1))}}),t.extend(t.fn,{zscore:function(t,e){return(t-this.mean())/this.stdev(e)},ztest:function(n,r,o){var i=e.abs(this.zscore(n,o));return 1===r?t.normal.cdf(-i,0,1):2*t.normal.cdf(-i,0,1)}}),t.extend({tscore:function(){var r=n.call(arguments);return 4===r.length?(r[0]-r[1])/(r[2]/e.sqrt(r[3])):(r[0]-t.mean(r[1]))/(t.stdev(r[1],!0)/e.sqrt(r[1].length))},ttest:function(){var o,i=n.call(arguments);return 5===i.length?(o=e.abs(t.tscore(i[0],i[1],i[2],i[3])),1===i[4]?t.studentt.cdf(-o,i[3]-1):2*t.studentt.cdf(-o,i[3]-1)):r(i[1])?(o=e.abs(i[0]),1==i[2]?t.studentt.cdf(-o,i[1]-1):2*t.studentt.cdf(-o,i[1]-1)):(o=e.abs(t.tscore(i[0],i[1])),1==i[2]?t.studentt.cdf(-o,i[1].length-1):2*t.studentt.cdf(-o,i[1].length-1))}}),t.extend(t.fn,{tscore:function(t){return(t-this.mean())/(this.stdev(!0)/e.sqrt(this.cols()))},ttest:function(n,r){return 1===r?1-t.studentt.cdf(e.abs(this.tscore(n)),this.cols()-1):2*t.studentt.cdf(-e.abs(this.tscore(n)),this.cols()-1)}}),t.extend({anovafscore:function(){var r,o,i,a,u,c,s,f=n.call(arguments);if(1===f.length){u=new Array(f[0].length);for(var l=0;l<f[0].length;l++)u[l]=f[0][l];f=u}if(2===f.length)return t.variance(f[0])/t.variance(f[1]);for(o=new Array,l=0;l<f.length;l++)o=o.concat(f[l]);for(i=t.mean(o),r=0,l=0;l<f.length;l++)r+=f[l].length*e.pow(t.mean(f[l])-i,2);for(r/=f.length-1,c=0,l=0;l<f.length;l++)for(a=t.mean(f[l]),s=0;s<f[l].length;s++)c+=e.pow(f[l][s]-a,2);return r/(c/=o.length-f.length)},anovaftest:function(){var e,o,i,a=n.call(arguments);if(r(a[0]))return 1-t.centralF.cdf(a[0],a[1],a[2]);anovafscore=t.anovafscore(a),e=a.length-1,i=0;for(var u=0;u<a.length;u++)i+=a[u].length;return o=i-e-1,1-t.centralF.cdf(anovafscore,e,o)},ftest:function(e,n,r){return 1-t.centralF.cdf(e,n,r)}}),t.extend(t.fn,{anovafscore:function(){return t.anovafscore(this.toArray())},anovaftes:function(){for(var e=0,n=0;n<this.length;n++)e+=this[n].length;return t.ftest(this.anovafscore(),this.length-1,e-this.length)}}),t.extend({qscore:function(){var o,i,a,u,c,s=n.call(arguments);return r(s[0])?(o=s[0],i=s[1],a=s[2],u=s[3],c=s[4]):(o=t.mean(s[0]),i=t.mean(s[1]),a=s[0].length,u=s[1].length,c=s[2]),e.abs(o-i)/(c*e.sqrt((1/a+1/u)/2))},qtest:function(){var e,r=n.call(arguments);3===r.length?(e=r[0],r=r.slice(1)):7===r.length?(e=t.qscore(r[0],r[1],r[2],r[3],r[4]),r=r.slice(5)):(e=t.qscore(r[0],r[1],r[2]),r=r.slice(3));var o=r[0],i=r[1];return 1-t.tukey.cdf(e,i,o-i)},tukeyhsd:function(e){for(var n=t.pooledstdev(e),r=e.map(function(e){return t.mean(e)}),o=e.reduce(function(t,e){return t+e.length},0),i=[],a=0;a<e.length;++a)for(var u=a+1;u<e.length;++u){var c=t.qtest(r[a],r[u],e[a].length,e[u].length,n,o,e.length);i.push([[a,u],c])}return i}}),t.extend({normalci:function(){var r,o=n.call(arguments),i=new Array(2);return r=4===o.length?e.abs(t.normal.inv(o[1]/2,0,1)*o[2]/e.sqrt(o[3])):e.abs(t.normal.inv(o[1]/2,0,1)*t.stdev(o[2])/e.sqrt(o[2].length)),i[0]=o[0]-r,i[1]=o[0]+r,i},tci:function(){var r,o=n.call(arguments),i=new Array(2);return r=4===o.length?e.abs(t.studentt.inv(o[1]/2,o[3]-1)*o[2]/e.sqrt(o[3])):e.abs(t.studentt.inv(o[1]/2,o[2].length-1)*t.stdev(o[2],!0)/e.sqrt(o[2].length)),i[0]=o[0]-r,i[1]=o[0]+r,i},significant:function(t,e){return t<e}}),t.extend(t.fn,{normalci:function(e,n){return t.normalci(e,n,this.toArray())},tci:function(e,n){return t.tci(e,n,this.toArray())}}),t.extend(t.fn,{oneSidedDifferenceOfProportions:function(e,n,r,o){var a=i(e,n,r,o);return t.ztest(a,1)},twoSidedDifferenceOfProportions:function(e,n,r,o){var a=i(e,n,r,o);return t.ztest(a,2)}})}(o,Math),o.models=function(){function t(t,e){var n=t.length,r=e[0].length-1,i=n-r-1,a=o.lstsq(e,t),u=o.multiply(e,a.map(function(t){return[t]})).map(function(t){return t[0]}),c=o.subtract(t,u),s=o.mean(t),f=o.sum(u.map(function(t){return Math.pow(t-s,2)})),l=o.sum(t.map(function(t,e){return Math.pow(t-u[e],2)})),h=f+l;return{exog:e,endog:t,nobs:n,df_model:r,df_resid:i,coef:a,predict:u,resid:c,ybar:s,SST:h,SSE:f,SSR:l,R2:f/h}}function e(e){var n,r,i=(n=e.exog,r=n[0].length,o.arange(r).map(function(e){var i=o.arange(r).filter(function(t){return t!==e});return t(o.col(n,e).map(function(t){return t[0]}),o.col(n,i))})),a=Math.sqrt(e.SSR/e.df_resid),u=i.map(function(t){var e=t.SST,n=t.R2;return a/Math.sqrt(e*(1-n))}),c=e.coef.map(function(t,e){return(t-0)/u[e]}),s=c.map(function(t){var n=o.studentt.cdf(t,e.df_resid);return 2*(n>.5?1-n:n)}),f=o.studentt.inv(.975,e.df_resid),l=e.coef.map(function(t,e){var n=f*u[e];return[t-n,t+n]});return{se:u,t:c,p:s,sigmaHat:a,interval95:l}}return{ols:function(n,r){var i=t(n,r),a=e(i),u=function(t){var e,n,r,i=t.R2/t.df_model/((1-t.R2)/t.df_resid);return{F_statistic:i,pvalue:1-(e=i,n=t.df_model,r=t.df_resid,o.beta.cdf(e/(r/n+e),n/2,r/2))}}(i),c=1-(1-i.R2)*((i.nobs-1)/i.df_resid);return i.t=a,i.f=u,i.adjust_R2=c,i}}}(),o.jStat=o,o)},function(t,e,n){(function(t,r){var o=/%[sdj%]/g;e.format=function(t){if(!g(t)){for(var e=[],n=0;n<arguments.length;n++)e.push(u(arguments[n]));return e.join(" ")}n=1;for(var r=arguments,i=r.length,a=String(t).replace(o,function(t){if("%%"===t)return"%";if(n>=i)return t;switch(t){case"%s":return String(r[n++]);case"%d":return Number(r[n++]);case"%j":try{return JSON.stringify(r[n++])}catch(t){return"[Circular]"}default:return t}}),c=r[n];n<i;c=r[++n])v(c)||!m(c)?a+=" "+c:a+=" "+u(c);return a},e.deprecate=function(n,o){if(_(t.process))return function(){return e.deprecate(n,o).apply(this,arguments)};if(!0===r.noDeprecation)return n;var i=!1;return function(){if(!i){if(r.throwDeprecation)throw new Error(o);r.traceDeprecation,i=!0}return n.apply(this,arguments)}};var i,a={};function u(t,n){var r={seen:[],stylize:s};return arguments.length>=3&&(r.depth=arguments[2]),arguments.length>=4&&(r.colors=arguments[3]),y(n)?r.showHidden=n:n&&e._extend(r,n),_(r.showHidden)&&(r.showHidden=!1),_(r.depth)&&(r.depth=2),_(r.colors)&&(r.colors=!1),_(r.customInspect)&&(r.customInspect=!0),r.colors&&(r.stylize=c),f(r,t,r.depth)}function c(t,e){var n=u.styles[e];return n?"["+u.colors[n][0]+"m"+t+"["+u.colors[n][1]+"m":t}function s(t,e){return t}function f(t,n,r){if(t.customInspect&&n&&O(n.inspect)&&n.inspect!==e.inspect&&(!n.constructor||n.constructor.prototype!==n)){var o=n.inspect(r,t);return g(o)||(o=f(t,o,r)),o}var i=function(t,e){if(_(e))return t.stylize("undefined","undefined");if(g(e)){var n="'"+JSON.stringify(e).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return t.stylize(n,"string")}if(d(e))return t.stylize(""+e,"number");if(y(e))return t.stylize(""+e,"boolean");if(v(e))return t.stylize("null","null")}(t,n);if(i)return i;var a=Object.keys(n),u=function(t){var e={};return t.forEach(function(t,n){e[t]=!0}),e}(a);if(t.showHidden&&(a=Object.getOwnPropertyNames(n)),x(n)&&(a.indexOf("message")>=0||a.indexOf("description")>=0))return l(n);if(0===a.length){if(O(n)){var c=n.name?": "+n.name:"";return t.stylize("[Function"+c+"]","special")}if(b(n))return t.stylize(RegExp.prototype.toString.call(n),"regexp");if(w(n))return t.stylize(Date.prototype.toString.call(n),"date");if(x(n))return l(n)}var s,m="",S=!1,k=["{","}"];(p(n)&&(S=!0,k=["[","]"]),O(n))&&(m=" [Function"+(n.name?": "+n.name:"")+"]");return b(n)&&(m=" "+RegExp.prototype.toString.call(n)),w(n)&&(m=" "+Date.prototype.toUTCString.call(n)),x(n)&&(m=" "+l(n)),0!==a.length||S&&0!=n.length?r<0?b(n)?t.stylize(RegExp.prototype.toString.call(n),"regexp"):t.stylize("[Object]","special"):(t.seen.push(n),s=S?function(t,e,n,r,o){for(var i=[],a=0,u=e.length;a<u;++a)j(e,String(a))?i.push(h(t,e,n,r,String(a),!0)):i.push("");return o.forEach(function(o){o.match(/^\d+$/)||i.push(h(t,e,n,r,o,!0))}),i}(t,n,r,u,a):a.map(function(e){return h(t,n,r,u,e,S)}),t.seen.pop(),function(t,e,n){if(t.reduce(function(t,e){return 0,e.indexOf("\n")>=0&&0,t+e.replace(/\u001b\[\d\d?m/g,"").length+1},0)>60)return n[0]+(""===e?"":e+"\n ")+" "+t.join(",\n  ")+" "+n[1];return n[0]+e+" "+t.join(", ")+" "+n[1]}(s,m,k)):k[0]+m+k[1]}function l(t){return"["+Error.prototype.toString.call(t)+"]"}function h(t,e,n,r,o,i){var a,u,c;if((c=Object.getOwnPropertyDescriptor(e,o)||{value:e[o]}).get?u=c.set?t.stylize("[Getter/Setter]","special"):t.stylize("[Getter]","special"):c.set&&(u=t.stylize("[Setter]","special")),j(r,o)||(a="["+o+"]"),u||(t.seen.indexOf(c.value)<0?(u=v(n)?f(t,c.value,null):f(t,c.value,n-1)).indexOf("\n")>-1&&(u=i?u.split("\n").map(function(t){return"  "+t}).join("\n").substr(2):"\n"+u.split("\n").map(function(t){return"   "+t}).join("\n")):u=t.stylize("[Circular]","special")),_(a)){if(i&&o.match(/^\d+$/))return u;(a=JSON.stringify(""+o)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(a=a.substr(1,a.length-2),a=t.stylize(a,"name")):(a=a.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),a=t.stylize(a,"string"))}return a+": "+u}function p(t){return Array.isArray(t)}function y(t){return"boolean"==typeof t}function v(t){return null===t}function d(t){return"number"==typeof t}function g(t){return"string"==typeof t}function _(t){return void 0===t}function b(t){return m(t)&&"[object RegExp]"===S(t)}function m(t){return"object"==typeof t&&null!==t}function w(t){return m(t)&&"[object Date]"===S(t)}function x(t){return m(t)&&("[object Error]"===S(t)||t instanceof Error)}function O(t){return"function"==typeof t}function S(t){return Object.prototype.toString.call(t)}e.debuglog=function(t){if(_(i)&&(i=r.env.NODE_DEBUG||""),t=t.toUpperCase(),!a[t])if(new RegExp("\\b"+t+"\\b","i").test(i)){r.pid;a[t]=function(){e.format.apply(e,arguments)}}else a[t]=function(){};return a[t]},e.inspect=u,u.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},u.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},e.isArray=p,e.isBoolean=y,e.isNull=v,e.isNullOrUndefined=function(t){return null==t},e.isNumber=d,e.isString=g,e.isSymbol=function(t){return"symbol"==typeof t},e.isUndefined=_,e.isRegExp=b,e.isObject=m,e.isDate=w,e.isError=x,e.isFunction=O,e.isPrimitive=function(t){return null===t||"boolean"==typeof t||"number"==typeof t||"string"==typeof t||"symbol"==typeof t||void 0===t},e.isBuffer=n(136);function j(t,e){return Object.prototype.hasOwnProperty.call(t,e)}e.log=function(){},e.inherits=n(137),e._extend=function(t,e){if(!e||!m(e))return t;for(var n=Object.keys(e),r=n.length;r--;)t[n[r]]=e[n[r]];return t}}).call(this,n(90),n(135))},function(t,e,n){t.exports=n(324)},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){!function(){"use strict";var e=n(93),r=function(t){this.curves=[],this._3d=!1,t&&(this.curves=t,this._3d=this.curves[0]._3d)};r.prototype={valueOf:function(){return this.toString()},toString:function(){return"["+this.curves.map(function(t){return e.pointsToString(t.points)}).join(", ")+"]"},addCurve:function(t){this.curves.push(t),this._3d=this._3d||t._3d},length:function(){return this.curves.map(function(t){return t.length()}).reduce(function(t,e){return t+e})},curve:function(t){return this.curves[t]},bbox:function(){for(var t=this.curves,n=t[0].bbox(),r=1;r<t.length;r++)e.expandbox(n,t[r].bbox());return n},offset:function(t){var e=[];return this.curves.forEach(function(n){e=e.concat(n.offset(t))}),new r(e)}},t.exports=r}()},function(t,e,n){var r=n(134),o={x:!1,y:!1};function i(t,e,n){if("Z"!==e){if("M"!==e){var r=[!1,o.x,o.y].concat(n),i=new(t.bind.apply(t,r)),a=n.slice(-2);return o={x:a[0],y:a[1]},i}o={x:n[0],y:n[1]}}}t.exports=function(t,e){for(var n,o,a=r(e).split(" "),u=new RegExp("[MLCQZ]",""),c=[],s={C:6,Q:4,L:2,M:2};a.length;)n=a.splice(0,1)[0],u.test(n)&&(o=i(t,n,a.splice(0,s[n]).map(parseFloat)))&&c.push(o);return new t.PolyBezier(c)}},function(t,e){t.exports=function(t){var e,n,r,o,i,a,u=(t=t.replace(/,/g," ").replace(/-/g," - ").replace(/-\s+/g,"-").replace(/([a-zA-Z])/g," $1 ")).replace(/([a-zA-Z])\s?/g,"|$1").split("|"),c=u.length,s=[],f=0,l=0,h=0,p=0,y=0,v=0,d=0,g=0,_="";for(e=1;e<c;e++)if(o=(r=(n=u[e]).substring(0,1)).toLowerCase(),i=(s=(s=n.replace(r,"").trim().split(" ")).filter(function(t){return""!==t}).map(parseFloat)).length,"m"===o){if(_+="M ","m"===r?(h+=s[0],p+=s[1]):(h=s[0],p=s[1]),f=h,l=p,_+=h+" "+p+" ",i>2)for(a=0;a<i;a+=2)"m"===r?(h+=s[a],p+=s[a+1]):(h=s[a],p=s[a+1]),_+=["L",h,p,""].join(" ")}else if("l"===o)for(a=0;a<i;a+=2)"l"===r?(h+=s[a],p+=s[a+1]):(h=s[a],p=s[a+1]),_+=["L",h,p,""].join(" ");else if("h"===o)for(a=0;a<i;a++)"h"===r?h+=s[a]:h=s[a],_+=["L",h,p,""].join(" ");else if("v"===o)for(a=0;a<i;a++)"v"===r?p+=s[a]:p=s[a],_+=["L",h,p,""].join(" ");else if("q"===o)for(a=0;a<i;a+=4)"q"===r?(y=h+s[a],v=p+s[a+1],h+=s[a+2],p+=s[a+3]):(y=s[a],v=s[a+1],h=s[a+2],p=s[a+3]),_+=["Q",y,v,h,p,""].join(" ");else if("t"===o)for(a=0;a<i;a+=2)y=h+(h-y),v=p+(p-v),"t"===r?(h+=s[a],p+=s[a+1]):(h=s[a],p=s[a+1]),_+=["Q",y,v,h,p,""].join(" ");else if("c"===o)for(a=0;a<i;a+=6)"c"===r?(y=h+s[a],v=p+s[a+1],d=h+s[a+2],g=p+s[a+3],h+=s[a+4],p+=s[a+5]):(y=s[a],v=s[a+1],d=s[a+2],g=s[a+3],h=s[a+4],p=s[a+5]),_+=["C",y,v,d,g,h,p,""].join(" ");else if("s"===o)for(a=0;a<i;a+=4)y=h+(h-d),v=p+(p-g),"s"===r?(d=h+s[a],g=p+s[a+1],h+=s[a+2],p+=s[a+3]):(d=s[a],g=s[a+1],h=s[a+2],p=s[a+3]),_+=["C",y,v,d,g,h,p,""].join(" ");else"z"===o&&(_+="Z ",h=f,p=l);return _.trim()}},function(t,e){var n,r,o=t.exports={};function i(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function u(t){if(n===setTimeout)return setTimeout(t,0);if((n===i||!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:i}catch(t){n=i}try{r="function"==typeof clearTimeout?clearTimeout:a}catch(t){r=a}}();var c,s=[],f=!1,l=-1;function h(){f&&c&&(f=!1,c.length?s=c.concat(s):l=-1,s.length&&p())}function p(){if(!f){var t=u(h);f=!0;for(var e=s.length;e;){for(c=s,s=[];++l<e;)c&&c[l].run();l=-1,e=s.length}c=null,f=!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 y(t,e){this.fun=t,this.array=e}function v(){}o.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];s.push(new y(t,e)),1!==s.length||f||u(p)},y.prototype.run=function(){this.fun.apply(null,this.array)},o.title="browser",o.browser=!0,o.env={},o.argv=[],o.version="",o.versions={},o.on=v,o.addListener=v,o.once=v,o.off=v,o.removeListener=v,o.removeAllListeners=v,o.emit=v,o.prependListener=v,o.prependOnceListener=v,o.listeners=function(t){return[]},o.binding=function(t){throw new Error("process.binding is not supported")},o.cwd=function(){return"/"},o.chdir=function(t){throw new Error("process.chdir is not supported")},o.umask=function(){return 0}},function(t,e){t.exports=function(t){return t&&"object"==typeof t&&"function"==typeof t.copy&&"function"==typeof t.fill&&"function"==typeof t.readUInt8}},function(t,e){"function"==typeof Object.create?t.exports=function(t,e){t.super_=e,t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}})}:t.exports=function(t,e){t.super_=e;var n=function(){};n.prototype=e.prototype,t.prototype=new n,t.prototype.constructor=t}},function(t,e,n){"use strict";n(139);var r,o=(r=n(311))&&r.__esModule?r:{default:r};o.default._babelPolyfill&&"undefined"!=typeof console&&console.warn,o.default._babelPolyfill=!0},function(t,e,n){"use strict";n(140),n(283),n(285),n(288),n(290),n(292),n(294),n(296),n(298),n(300),n(302),n(304),n(306),n(310)},function(t,e,n){n(141),n(144),n(145),n(146),n(147),n(148),n(149),n(150),n(151),n(152),n(153),n(154),n(155),n(156),n(157),n(158),n(159),n(160),n(161),n(162),n(163),n(164),n(165),n(166),n(167),n(168),n(169),n(170),n(171),n(172),n(173),n(174),n(175),n(176),n(177),n(178),n(179),n(180),n(181),n(182),n(183),n(184),n(185),n(187),n(188),n(189),n(190),n(191),n(192),n(193),n(194),n(195),n(196),n(197),n(198),n(199),n(200),n(201),n(202),n(203),n(204),n(205),n(206),n(207),n(208),n(209),n(210),n(211),n(212),n(213),n(214),n(215),n(216),n(217),n(218),n(219),n(220),n(222),n(223),n(225),n(226),n(227),n(228),n(229),n(230),n(231),n(233),n(234),n(235),n(236),n(237),n(238),n(239),n(240),n(241),n(242),n(243),n(244),n(245),n(81),n(246),n(114),n(247),n(115),n(248),n(249),n(250),n(251),n(116),n(254),n(255),n(256),n(257),n(258),n(259),n(260),n(261),n(262),n(263),n(264),n(265),n(266),n(267),n(268),n(269),n(270),n(271),n(272),n(273),n(274),n(275),n(276),n(277),n(278),n(279),n(280),n(281),n(282),t.exports=n(7)},function(t,e,n){"use strict";var r=n(1),o=n(13),i=n(8),a=n(0),u=n(11),c=n(27).KEY,s=n(2),f=n(48),l=n(38),h=n(29),p=n(5),y=n(62),v=n(95),d=n(143),g=n(51),_=n(3),b=n(4),m=n(10),w=n(15),x=n(26),O=n(28),S=n(33),j=n(98),k=n(20),M=n(50),E=n(9),P=n(31),A=k.f,L=E.f,C=j.f,T=r.Symbol,R=r.JSON,D=R&&R.stringify,N=p("_hidden"),I=p("toPrimitive"),z={}.propertyIsEnumerable,F=f("symbol-registry"),U=f("symbols"),B=f("op-symbols"),q=Object.prototype,V="function"==typeof T&&!!M.f,W=r.QObject,G=!W||!W.prototype||!W.prototype.findChild,Y=i&&s(function(){return 7!=S(L({},"a",{get:function(){return L(this,"a",{value:7}).a}})).a})?function(t,e,n){var r=A(q,e);r&&delete q[e],L(t,e,n),r&&t!==q&&L(q,e,r)}:L,H=function(t){var e=U[t]=S(T.prototype);return e._k=t,e},$=V&&"symbol"==typeof T.iterator?function(t){return"symbol"==typeof t}:function(t){return t instanceof T},Z=function(t,e,n){return t===q&&Z(B,e,n),_(t),e=x(e,!0),_(n),o(U,e)?(n.enumerable?(o(t,N)&&t[N][e]&&(t[N][e]=!1),n=S(n,{enumerable:O(0,!1)})):(o(t,N)||L(t,N,O(1,{})),t[N][e]=!0),Y(t,e,n)):L(t,e,n)},X=function(t,e){_(t);for(var n,r=d(e=w(e)),o=0,i=r.length;i>o;)Z(t,n=r[o++],e[n]);return t},J=function(t){var e=z.call(this,t=x(t,!0));return!(this===q&&o(U,t)&&!o(B,t))&&(!(e||!o(this,t)||!o(U,t)||o(this,N)&&this[N][t])||e)},Q=function(t,e){if(t=w(t),e=x(e,!0),t!==q||!o(U,e)||o(B,e)){var n=A(t,e);return!n||!o(U,e)||o(t,N)&&t[N][e]||(n.enumerable=!0),n}},K=function(t){for(var e,n=C(w(t)),r=[],i=0;n.length>i;)o(U,e=n[i++])||e==N||e==c||r.push(e);return r},tt=function(t){for(var e,n=t===q,r=C(n?B:w(t)),i=[],a=0;r.length>a;)!o(U,e=r[a++])||n&&!o(q,e)||i.push(U[e]);return i};V||(u((T=function(){if(this instanceof T)throw TypeError("Symbol is not a constructor!");var t=h(arguments.length>0?arguments[0]:void 0),e=function(n){this===q&&e.call(B,n),o(this,N)&&o(this[N],t)&&(this[N][t]=!1),Y(this,t,O(1,n))};return i&&G&&Y(q,t,{configurable:!0,set:e}),H(t)}).prototype,"toString",function(){return this._k}),k.f=Q,E.f=Z,n(34).f=j.f=K,n(45).f=J,M.f=tt,i&&!n(30)&&u(q,"propertyIsEnumerable",J,!0),y.f=function(t){return H(p(t))}),a(a.G+a.W+a.F*!V,{Symbol:T});for(var et="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),nt=0;et.length>nt;)p(et[nt++]);for(var rt=P(p.store),ot=0;rt.length>ot;)v(rt[ot++]);a(a.S+a.F*!V,"Symbol",{for:function(t){return o(F,t+="")?F[t]:F[t]=T(t)},keyFor:function(t){if(!$(t))throw TypeError(t+" is not a symbol!");for(var e in F)if(F[e]===t)return e},useSetter:function(){G=!0},useSimple:function(){G=!1}}),a(a.S+a.F*!V,"Object",{create:function(t,e){return void 0===e?S(t):X(S(t),e)},defineProperty:Z,defineProperties:X,getOwnPropertyDescriptor:Q,getOwnPropertyNames:K,getOwnPropertySymbols:tt});var it=s(function(){M.f(1)});a(a.S+a.F*it,"Object",{getOwnPropertySymbols:function(t){return M.f(m(t))}}),R&&a(a.S+a.F*(!V||s(function(){var t=T();return"[null]"!=D([t])||"{}"!=D({a:t})||"{}"!=D(Object(t))})),"JSON",{stringify:function(t){for(var e,n,r=[t],o=1;arguments.length>o;)r.push(arguments[o++]);if(n=e=r[1],(b(e)||void 0!==t)&&!$(t))return g(e)||(e=function(t,e){if("function"==typeof n&&(e=n.call(this,t,e)),!$(e))return e}),r[1]=e,D.apply(R,r)}}),T.prototype[I]||n(14)(T.prototype,I,T.prototype.valueOf),l(T,"Symbol"),l(Math,"Math",!0),l(r.JSON,"JSON",!0)},function(t,e,n){t.exports=n(48)("native-function-to-string",Function.toString)},function(t,e,n){var r=n(31),o=n(50),i=n(45);t.exports=function(t){var e=r(t),n=o.f;if(n)for(var a,u=n(t),c=i.f,s=0;u.length>s;)c.call(t,a=u[s++])&&e.push(a);return e}},function(t,e,n){var r=n(0);r(r.S,"Object",{create:n(33)})},function(t,e,n){var r=n(0);r(r.S+r.F*!n(8),"Object",{defineProperty:n(9).f})},function(t,e,n){var r=n(0);r(r.S+r.F*!n(8),"Object",{defineProperties:n(97)})},function(t,e,n){var r=n(15),o=n(20).f;n(21)("getOwnPropertyDescriptor",function(){return function(t,e){return o(r(t),e)}})},function(t,e,n){var r=n(10),o=n(35);n(21)("getPrototypeOf",function(){return function(t){return o(r(t))}})},function(t,e,n){var r=n(10),o=n(31);n(21)("keys",function(){return function(t){return o(r(t))}})},function(t,e,n){n(21)("getOwnPropertyNames",function(){return n(98).f})},function(t,e,n){var r=n(4),o=n(27).onFreeze;n(21)("freeze",function(t){return function(e){return t&&r(e)?t(o(e)):e}})},function(t,e,n){var r=n(4),o=n(27).onFreeze;n(21)("seal",function(t){return function(e){return t&&r(e)?t(o(e)):e}})},function(t,e,n){var r=n(4),o=n(27).onFreeze;n(21)("preventExtensions",function(t){return function(e){return t&&r(e)?t(o(e)):e}})},function(t,e,n){var r=n(4);n(21)("isFrozen",function(t){return function(e){return!r(e)||!!t&&t(e)}})},function(t,e,n){var r=n(4);n(21)("isSealed",function(t){return function(e){return!r(e)||!!t&&t(e)}})},function(t,e,n){var r=n(4);n(21)("isExtensible",function(t){return function(e){return!!r(e)&&(!t||t(e))}})},function(t,e,n){var r=n(0);r(r.S+r.F,"Object",{assign:n(99)})},function(t,e,n){var r=n(0);r(r.S,"Object",{is:n(100)})},function(t,e,n){var r=n(0);r(r.S,"Object",{setPrototypeOf:n(66).set})},function(t,e,n){"use strict";var r=n(46),o={};o[n(5)("toStringTag")]="z",o+""!="[object z]"&&n(11)(Object.prototype,"toString",function(){return"[object "+r(this)+"]"},!0)},function(t,e,n){var r=n(0);r(r.P,"Function",{bind:n(101)})},function(t,e,n){var r=n(9).f,o=Function.prototype,i=/^\s*function ([^ (]*)/;"name"in o||n(8)&&r(o,"name",{configurable:!0,get:function(){try{return(""+this).match(i)[1]}catch(t){return""}}})},function(t,e,n){"use strict";var r=n(4),o=n(35),i=n(5)("hasInstance"),a=Function.prototype;i in a||n(9).f(a,i,{value:function(t){if("function"!=typeof this||!r(t))return!1;if(!r(this.prototype))return t instanceof this;for(;t=o(t);)if(this.prototype===t)return!0;return!1}})},function(t,e,n){var r=n(0),o=n(103);r(r.G+r.F*(parseInt!=o),{parseInt:o})},function(t,e,n){var r=n(0),o=n(104);r(r.G+r.F*(parseFloat!=o),{parseFloat:o})},function(t,e,n){"use strict";var r=n(1),o=n(13),i=n(23),a=n(68),u=n(26),c=n(2),s=n(34).f,f=n(20).f,l=n(9).f,h=n(39).trim,p=r.Number,y=p,v=p.prototype,d="Number"==i(n(33)(v)),g="trim"in String.prototype,_=function(t){var e=u(t,!1);if("string"==typeof e&&e.length>2){var n,r,o,i=(e=g?e.trim():h(e,3)).charCodeAt(0);if(43===i||45===i){if(88===(n=e.charCodeAt(2))||120===n)return NaN}else if(48===i){switch(e.charCodeAt(1)){case 66:case 98:r=2,o=49;break;case 79:case 111:r=8,o=55;break;default:return+e}for(var a,c=e.slice(2),s=0,f=c.length;s<f;s++)if((a=c.charCodeAt(s))<48||a>o)return NaN;return parseInt(c,r)}}return+e};if(!p(" 0o1")||!p("0b1")||p("+0x1")){p=function(t){var e=arguments.length<1?0:t,n=this;return n instanceof p&&(d?c(function(){v.valueOf.call(n)}):"Number"!=i(n))?a(new y(_(e)),n,p):_(e)};for(var b,m=n(8)?s(y):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),w=0;m.length>w;w++)o(y,b=m[w])&&!o(p,b)&&l(p,b,f(y,b));p.prototype=v,v.constructor=p,n(11)(r,"Number",p)}},function(t,e,n){"use strict";var r=n(0),o=n(19),i=n(105),a=n(69),u=1..toFixed,c=Math.floor,s=[0,0,0,0,0,0],f="Number.toFixed: incorrect invocation!",l=function(t,e){for(var n=-1,r=e;++n<6;)r+=t*s[n],s[n]=r%1e7,r=c(r/1e7)},h=function(t){for(var e=6,n=0;--e>=0;)n+=s[e],s[e]=c(n/t),n=n%t*1e7},p=function(){for(var t=6,e="";--t>=0;)if(""!==e||0===t||0!==s[t]){var n=String(s[t]);e=""===e?n:e+a.call("0",7-n.length)+n}return e},y=function(t,e,n){return 0===e?n:e%2==1?y(t,e-1,n*t):y(t*t,e/2,n)};r(r.P+r.F*(!!u&&("0.000"!==8e-5.toFixed(3)||"1"!==.9.toFixed(0)||"1.25"!==1.255.toFixed(2)||"1000000000000000128"!==(0xde0b6b3a7640080).toFixed(0))||!n(2)(function(){u.call({})})),"Number",{toFixed:function(t){var e,n,r,u,c=i(this,f),s=o(t),v="",d="0";if(s<0||s>20)throw RangeError(f);if(c!=c)return"NaN";if(c<=-1e21||c>=1e21)return String(c);if(c<0&&(v="-",c=-c),c>1e-21)if(n=(e=function(t){for(var e=0,n=t;n>=4096;)e+=12,n/=4096;for(;n>=2;)e+=1,n/=2;return e}(c*y(2,69,1))-69)<0?c*y(2,-e,1):c/y(2,e,1),n*=4503599627370496,(e=52-e)>0){for(l(0,n),r=s;r>=7;)l(1e7,0),r-=7;for(l(y(10,r,1),0),r=e-1;r>=23;)h(1<<23),r-=23;h(1<<r),l(1,1),h(2),d=p()}else l(0,n),l(1<<-e,0),d=p()+a.call("0",s);return d=s>0?v+((u=d.length)<=s?"0."+a.call("0",s-u)+d:d.slice(0,u-s)+"."+d.slice(u-s)):v+d}})},function(t,e,n){"use strict";var r=n(0),o=n(2),i=n(105),a=1..toPrecision;r(r.P+r.F*(o(function(){return"1"!==a.call(1,void 0)})||!o(function(){a.call({})})),"Number",{toPrecision:function(t){var e=i(this,"Number#toPrecision: incorrect invocation!");return void 0===t?a.call(e):a.call(e,t)}})},function(t,e,n){var r=n(0);r(r.S,"Number",{EPSILON:Math.pow(2,-52)})},function(t,e,n){var r=n(0),o=n(1).isFinite;r(r.S,"Number",{isFinite:function(t){return"number"==typeof t&&o(t)}})},function(t,e,n){var r=n(0);r(r.S,"Number",{isInteger:n(106)})},function(t,e,n){var r=n(0);r(r.S,"Number",{isNaN:function(t){return t!=t}})},function(t,e,n){var r=n(0),o=n(106),i=Math.abs;r(r.S,"Number",{isSafeInteger:function(t){return o(t)&&i(t)<=9007199254740991}})},function(t,e,n){var r=n(0);r(r.S,"Number",{MAX_SAFE_INTEGER:9007199254740991})},function(t,e,n){var r=n(0);r(r.S,"Number",{MIN_SAFE_INTEGER:-9007199254740991})},function(t,e,n){var r=n(0),o=n(104);r(r.S+r.F*(Number.parseFloat!=o),"Number",{parseFloat:o})},function(t,e,n){var r=n(0),o=n(103);r(r.S+r.F*(Number.parseInt!=o),"Number",{parseInt:o})},function(t,e,n){var r=n(0),o=n(107),i=Math.sqrt,a=Math.acosh;r(r.S+r.F*!(a&&710==Math.floor(a(Number.MAX_VALUE))&&a(1/0)==1/0),"Math",{acosh:function(t){return(t=+t)<1?NaN:t>94906265.62425156?Math.log(t)+Math.LN2:o(t-1+i(t-1)*i(t+1))}})},function(t,e,n){var r=n(0),o=Math.asinh;r(r.S+r.F*!(o&&1/o(0)>0),"Math",{asinh:function t(e){return isFinite(e=+e)&&0!=e?e<0?-t(-e):Math.log(e+Math.sqrt(e*e+1)):e}})},function(t,e,n){var r=n(0),o=Math.atanh;r(r.S+r.F*!(o&&1/o(-0)<0),"Math",{atanh:function(t){return 0==(t=+t)?t:Math.log((1+t)/(1-t))/2}})},function(t,e,n){var r=n(0),o=n(70);r(r.S,"Math",{cbrt:function(t){return o(t=+t)*Math.pow(Math.abs(t),1/3)}})},function(t,e,n){var r=n(0);r(r.S,"Math",{clz32:function(t){return(t>>>=0)?31-Math.floor(Math.log(t+.5)*Math.LOG2E):32}})},function(t,e,n){var r=n(0),o=Math.exp;r(r.S,"Math",{cosh:function(t){return(o(t=+t)+o(-t))/2}})},function(t,e,n){var r=n(0),o=n(71);r(r.S+r.F*(o!=Math.expm1),"Math",{expm1:o})},function(t,e,n){var r=n(0);r(r.S,"Math",{fround:n(186)})},function(t,e,n){var r=n(70),o=Math.pow,i=o(2,-52),a=o(2,-23),u=o(2,127)*(2-a),c=o(2,-126);t.exports=Math.fround||function(t){var e,n,o=Math.abs(t),s=r(t);return o<c?s*(o/c/a+1/i-1/i)*c*a:(n=(e=(1+a/i)*o)-(e-o))>u||n!=n?s*(1/0):s*n}},function(t,e,n){var r=n(0),o=Math.abs;r(r.S,"Math",{hypot:function(t,e){for(var n,r,i=0,a=0,u=arguments.length,c=0;a<u;)c<(n=o(arguments[a++]))?(i=i*(r=c/n)*r+1,c=n):i+=n>0?(r=n/c)*r:n;return c===1/0?1/0:c*Math.sqrt(i)}})},function(t,e,n){var r=n(0),o=Math.imul;r(r.S+r.F*n(2)(function(){return-5!=o(4294967295,5)||2!=o.length}),"Math",{imul:function(t,e){var n=+t,r=+e,o=65535&n,i=65535&r;return 0|o*i+((65535&n>>>16)*i+o*(65535&r>>>16)<<16>>>0)}})},function(t,e,n){var r=n(0);r(r.S,"Math",{log10:function(t){return Math.log(t)*Math.LOG10E}})},function(t,e,n){var r=n(0);r(r.S,"Math",{log1p:n(107)})},function(t,e,n){var r=n(0);r(r.S,"Math",{log2:function(t){return Math.log(t)/Math.LN2}})},function(t,e,n){var r=n(0);r(r.S,"Math",{sign:n(70)})},function(t,e,n){var r=n(0),o=n(71),i=Math.exp;r(r.S+r.F*n(2)(function(){return-2e-17!=!Math.sinh(-2e-17)}),"Math",{sinh:function(t){return Math.abs(t=+t)<1?(o(t)-o(-t))/2:(i(t-1)-i(-t-1))*(Math.E/2)}})},function(t,e,n){var r=n(0),o=n(71),i=Math.exp;r(r.S,"Math",{tanh:function(t){var e=o(t=+t),n=o(-t);return e==1/0?1:n==1/0?-1:(e-n)/(i(t)+i(-t))}})},function(t,e,n){var r=n(0);r(r.S,"Math",{trunc:function(t){return(t>0?Math.floor:Math.ceil)(t)}})},function(t,e,n){var r=n(0),o=n(32),i=String.fromCharCode,a=String.fromCodePoint;r(r.S+r.F*(!!a&&1!=a.length),"String",{fromCodePoint:function(t){for(var e,n=[],r=arguments.length,a=0;r>a;){if(e=+arguments[a++],o(e,1114111)!==e)throw RangeError(e+" is not a valid code point");n.push(e<65536?i(e):i(55296+((e-=65536)>>10),e%1024+56320))}return n.join("")}})},function(t,e,n){var r=n(0),o=n(15),i=n(6);r(r.S,"String",{raw:function(t){for(var e=o(t.raw),n=i(e.length),r=arguments.length,a=[],u=0;n>u;)a.push(String(e[u++])),u<r&&a.push(String(arguments[u]));return a.join("")}})},function(t,e,n){"use strict";n(39)("trim",function(t){return function(){return t(this,3)}})},function(t,e,n){"use strict";var r=n(72)(!0);n(73)(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){"use strict";var r=n(0),o=n(72)(!1);r(r.P,"String",{codePointAt:function(t){return o(this,t)}})},function(t,e,n){"use strict";var r=n(0),o=n(6),i=n(74),a="".endsWith;r(r.P+r.F*n(76)("endsWith"),"String",{endsWith:function(t){var e=i(this,t,"endsWith"),n=arguments.length>1?arguments[1]:void 0,r=o(e.length),u=void 0===n?r:Math.min(o(n),r),c=String(t);return a?a.call(e,c,u):e.slice(u-c.length,u)===c}})},function(t,e,n){"use strict";var r=n(0),o=n(74);r(r.P+r.F*n(76)("includes"),"String",{includes:function(t){return!!~o(this,t,"includes").indexOf(t,arguments.length>1?arguments[1]:void 0)}})},function(t,e,n){var r=n(0);r(r.P,"String",{repeat:n(69)})},function(t,e,n){"use strict";var r=n(0),o=n(6),i=n(74),a="".startsWith;r(r.P+r.F*n(76)("startsWith"),"String",{startsWith:function(t){var e=i(this,t,"startsWith"),n=o(Math.min(arguments.length>1?arguments[1]:void 0,e.length)),r=String(t);return a?a.call(e,r,n):e.slice(n,n+r.length)===r}})},function(t,e,n){"use strict";n(12)("anchor",function(t){return function(e){return t(this,"a","name",e)}})},function(t,e,n){"use strict";n(12)("big",function(t){return function(){return t(this,"big","","")}})},function(t,e,n){"use strict";n(12)("blink",function(t){return function(){return t(this,"blink","","")}})},function(t,e,n){"use strict";n(12)("bold",function(t){return function(){return t(this,"b","","")}})},function(t,e,n){"use strict";n(12)("fixed",function(t){return function(){return t(this,"tt","","")}})},function(t,e,n){"use strict";n(12)("fontcolor",function(t){return function(e){return t(this,"font","color",e)}})},function(t,e,n){"use strict";n(12)("fontsize",function(t){return function(e){return t(this,"font","size",e)}})},function(t,e,n){"use strict";n(12)("italics",function(t){return function(){return t(this,"i","","")}})},function(t,e,n){"use strict";n(12)("link",function(t){return function(e){return t(this,"a","href",e)}})},function(t,e,n){"use strict";n(12)("small",function(t){return function(){return t(this,"small","","")}})},function(t,e,n){"use strict";n(12)("strike",function(t){return function(){return t(this,"strike","","")}})},function(t,e,n){"use strict";n(12)("sub",function(t){return function(){return t(this,"sub","","")}})},function(t,e,n){"use strict";n(12)("sup",function(t){return function(){return t(this,"sup","","")}})},function(t,e,n){var r=n(0);r(r.S,"Date",{now:function(){return(new Date).getTime()}})},function(t,e,n){"use strict";var r=n(0),o=n(10),i=n(26);r(r.P+r.F*n(2)(function(){return null!==new Date(NaN).toJSON()||1!==Date.prototype.toJSON.call({toISOString:function(){return 1}})}),"Date",{toJSON:function(t){var e=o(this),n=i(e);return"number"!=typeof n||isFinite(n)?e.toISOString():null}})},function(t,e,n){var r=n(0),o=n(221);r(r.P+r.F*(Date.prototype.toISOString!==o),"Date",{toISOString:o})},function(t,e,n){"use strict";var r=n(2),o=Date.prototype.getTime,i=Date.prototype.toISOString,a=function(t){return t>9?t:"0"+t};t.exports=r(function(){return"0385-07-25T07:06:39.999Z"!=i.call(new Date(-5e13-1))})||!r(function(){i.call(new Date(NaN))})?function(){if(!isFinite(o.call(this)))throw RangeError("Invalid time value");var t=this,e=t.getUTCFullYear(),n=t.getUTCMilliseconds(),r=e<0?"-":e>9999?"+":"";return r+("00000"+Math.abs(e)).slice(r?-6:-4)+"-"+a(t.getUTCMonth()+1)+"-"+a(t.getUTCDate())+"T"+a(t.getUTCHours())+":"+a(t.getUTCMinutes())+":"+a(t.getUTCSeconds())+"."+(n>99?n:"0"+a(n))+"Z"}:i},function(t,e,n){var r=Date.prototype,o=r.toString,i=r.getTime;new Date(NaN)+""!="Invalid Date"&&n(11)(r,"toString",function(){var t=i.call(this);return t==t?o.call(this):"Invalid Date"})},function(t,e,n){var r=n(5)("toPrimitive"),o=Date.prototype;r in o||n(14)(o,r,n(224))},function(t,e,n){"use strict";var r=n(3),o=n(26);t.exports=function(t){if("string"!==t&&"number"!==t&&"default"!==t)throw TypeError("Incorrect hint");return o(r(this),"number"!=t)}},function(t,e,n){var r=n(0);r(r.S,"Array",{isArray:n(51)})},function(t,e,n){"use strict";var r=n(17),o=n(0),i=n(10),a=n(109),u=n(77),c=n(6),s=n(78),f=n(79);o(o.S+o.F*!n(52)(function(t){Array.from(t)}),"Array",{from:function(t){var e,n,o,l,h=i(t),p="function"==typeof this?this:Array,y=arguments.length,v=y>1?arguments[1]:void 0,d=void 0!==v,g=0,_=f(h);if(d&&(v=r(v,y>2?arguments[2]:void 0,2)),null==_||p==Array&&u(_))for(n=new p(e=c(h.length));e>g;g++)s(n,g,d?v(h[g],g):h[g]);else for(l=_.call(h),n=new p;!(o=l.next()).done;g++)s(n,g,d?a(l,v,[o.value,g],!0):o.value);return n.length=g,n}})},function(t,e,n){"use strict";var r=n(0),o=n(78);r(r.S+r.F*n(2)(function(){function t(){}return!(Array.of.call(t)instanceof t)}),"Array",{of:function(){for(var t=0,e=arguments.length,n=new("function"==typeof this?this:Array)(e);e>t;)o(n,t,arguments[t++]);return n.length=e,n}})},function(t,e,n){"use strict";var r=n(0),o=n(15),i=[].join;r(r.P+r.F*(n(44)!=Object||!n(16)(i)),"Array",{join:function(t){return i.call(o(this),void 0===t?",":t)}})},function(t,e,n){"use strict";var r=n(0),o=n(65),i=n(23),a=n(32),u=n(6),c=[].slice;r(r.P+r.F*n(2)(function(){o&&c.call(o)}),"Array",{slice:function(t,e){var n=u(this.length),r=i(this);if(e=void 0===e?n:e,"Array"==r)return c.call(this,t,e);for(var o=a(t,n),s=a(e,n),f=u(s-o),l=new Array(f),h=0;h<f;h++)l[h]="String"==r?this.charAt(o+h):this[o+h];return l}})},function(t,e,n){"use strict";var r=n(0),o=n(18),i=n(10),a=n(2),u=[].sort,c=[1,2,3];r(r.P+r.F*(a(function(){c.sort(void 0)})||!a(function(){c.sort(null)})||!n(16)(u)),"Array",{sort:function(t){return void 0===t?u.call(i(this)):u.call(i(this),o(t))}})},function(t,e,n){"use strict";var r=n(0),o=n(22)(0),i=n(16)([].forEach,!0);r(r.P+r.F*!i,"Array",{forEach:function(t){return o(this,t,arguments[1])}})},function(t,e,n){var r=n(4),o=n(51),i=n(5)("species");t.exports=function(t){var e;return o(t)&&("function"!=typeof(e=t.constructor)||e!==Array&&!o(e.prototype)||(e=void 0),r(e)&&null===(e=e[i])&&(e=void 0)),void 0===e?Array:e}},function(t,e,n){"use strict";var r=n(0),o=n(22)(1);r(r.P+r.F*!n(16)([].map,!0),"Array",{map:function(t){return o(this,t,arguments[1])}})},function(t,e,n){"use strict";var r=n(0),o=n(22)(2);r(r.P+r.F*!n(16)([].filter,!0),"Array",{filter:function(t){return o(this,t,arguments[1])}})},function(t,e,n){"use strict";var r=n(0),o=n(22)(3);r(r.P+r.F*!n(16)([].some,!0),"Array",{some:function(t){return o(this,t,arguments[1])}})},function(t,e,n){"use strict";var r=n(0),o=n(22)(4);r(r.P+r.F*!n(16)([].every,!0),"Array",{every:function(t){return o(this,t,arguments[1])}})},function(t,e,n){"use strict";var r=n(0),o=n(111);r(r.P+r.F*!n(16)([].reduce,!0),"Array",{reduce:function(t){return o(this,t,arguments.length,arguments[1],!1)}})},function(t,e,n){"use strict";var r=n(0),o=n(111);r(r.P+r.F*!n(16)([].reduceRight,!0),"Array",{reduceRight:function(t){return o(this,t,arguments.length,arguments[1],!0)}})},function(t,e,n){"use strict";var r=n(0),o=n(49)(!1),i=[].indexOf,a=!!i&&1/[1].indexOf(1,-0)<0;r(r.P+r.F*(a||!n(16)(i)),"Array",{indexOf:function(t){return a?i.apply(this,arguments)||0:o(this,t,arguments[1])}})},function(t,e,n){"use strict";var r=n(0),o=n(15),i=n(19),a=n(6),u=[].lastIndexOf,c=!!u&&1/[1].lastIndexOf(1,-0)<0;r(r.P+r.F*(c||!n(16)(u)),"Array",{lastIndexOf:function(t){if(c)return u.apply(this,arguments)||0;var e=o(this),n=a(e.length),r=n-1;for(arguments.length>1&&(r=Math.min(r,i(arguments[1]))),r<0&&(r=n+r);r>=0;r--)if(r in e&&e[r]===t)return r||0;return-1}})},function(t,e,n){var r=n(0);r(r.P,"Array",{copyWithin:n(112)}),n(36)("copyWithin")},function(t,e,n){var r=n(0);r(r.P,"Array",{fill:n(80)}),n(36)("fill")},function(t,e,n){"use strict";var r=n(0),o=n(22)(5),i=!0;"find"in[]&&Array(1).find(function(){i=!1}),r(r.P+r.F*i,"Array",{find:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}}),n(36)("find")},function(t,e,n){"use strict";var r=n(0),o=n(22)(6),i="findIndex",a=!0;i in[]&&Array(1)[i](function(){a=!1}),r(r.P+r.F*a,"Array",{findIndex:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}}),n(36)(i)},function(t,e,n){n(41)("Array")},function(t,e,n){var r=n(1),o=n(68),i=n(9).f,a=n(34).f,u=n(75),c=n(53),s=r.RegExp,f=s,l=s.prototype,h=/a/g,p=/a/g,y=new s(h)!==h;if(n(8)&&(!y||n(2)(function(){return p[n(5)("match")]=!1,s(h)!=h||s(p)==p||"/a/i"!=s(h,"i")}))){s=function(t,e){var n=this instanceof s,r=u(t),i=void 0===e;return!n&&r&&t.constructor===s&&i?t:o(y?new f(r&&!i?t.source:t,e):f((r=t instanceof s)?t.source:t,r&&i?c.call(t):e),n?this:l,s)};for(var v=function(t){t in s||i(s,t,{configurable:!0,get:function(){return f[t]},set:function(e){f[t]=e}})},d=a(f),g=0;d.length>g;)v(d[g++]);l.constructor=s,s.prototype=l,n(11)(r,"RegExp",s)}n(41)("RegExp")},function(t,e,n){"use strict";n(115);var r=n(3),o=n(53),i=n(8),a=/./.toString,u=function(t){n(11)(RegExp.prototype,"toString",t,!0)};n(2)(function(){return"/a/b"!=a.call({source:"a",flags:"b"})})?u(function(){var t=r(this);return"/".concat(t.source,"/","flags"in t?t.flags:!i&&t instanceof RegExp?o.call(t):void 0)}):"toString"!=a.name&&u(function(){return a.call(this)})},function(t,e,n){"use strict";var r=n(3),o=n(6),i=n(83),a=n(54);n(55)("match",1,function(t,e,n,u){return[function(n){var r=t(this),o=null==n?void 0:n[e];return void 0!==o?o.call(n,r):new RegExp(n)[e](String(r))},function(t){var e=u(n,t,this);if(e.done)return e.value;var c=r(t),s=String(this);if(!c.global)return a(c,s);var f=c.unicode;c.lastIndex=0;for(var l,h=[],p=0;null!==(l=a(c,s));){var y=String(l[0]);h[p]=y,""===y&&(c.lastIndex=i(s,o(c.lastIndex),f)),p++}return 0===p?null:h}]})},function(t,e,n){"use strict";var r=n(3),o=n(10),i=n(6),a=n(19),u=n(83),c=n(54),s=Math.max,f=Math.min,l=Math.floor,h=/\$([$&`']|\d\d?|<[^>]*>)/g,p=/\$([$&`']|\d\d?)/g;n(55)("replace",2,function(t,e,n,y){return[function(r,o){var i=t(this),a=null==r?void 0:r[e];return void 0!==a?a.call(r,i,o):n.call(String(i),r,o)},function(t,e){var o=y(n,t,this,e);if(o.done)return o.value;var l=r(t),h=String(this),p="function"==typeof e;p||(e=String(e));var d=l.global;if(d){var g=l.unicode;l.lastIndex=0}for(var _=[];;){var b=c(l,h);if(null===b)break;if(_.push(b),!d)break;""===String(b[0])&&(l.lastIndex=u(h,i(l.lastIndex),g))}for(var m,w="",x=0,O=0;O<_.length;O++){b=_[O];for(var S=String(b[0]),j=s(f(a(b.index),h.length),0),k=[],M=1;M<b.length;M++)k.push(void 0===(m=b[M])?m:String(m));var E=b.groups;if(p){var P=[S].concat(k,j,h);void 0!==E&&P.push(E);var A=String(e.apply(void 0,P))}else A=v(S,h,j,k,E,e);j>=x&&(w+=h.slice(x,j)+A,x=j+S.length)}return w+h.slice(x)}];function v(t,e,r,i,a,u){var c=r+t.length,s=i.length,f=p;return void 0!==a&&(a=o(a),f=h),n.call(u,f,function(n,o){var u;switch(o.charAt(0)){case"$":return"$";case"&":return t;case"`":return e.slice(0,r);case"'":return e.slice(c);case"<":u=a[o.slice(1,-1)];break;default:var f=+o;if(0===f)return n;if(f>s){var h=l(f/10);return 0===h?n:h<=s?void 0===i[h-1]?o.charAt(1):i[h-1]+o.charAt(1):n}u=i[f-1]}return void 0===u?"":u})}})},function(t,e,n){"use strict";var r=n(3),o=n(100),i=n(54);n(55)("search",1,function(t,e,n,a){return[function(n){var r=t(this),o=null==n?void 0:n[e];return void 0!==o?o.call(n,r):new RegExp(n)[e](String(r))},function(t){var e=a(n,t,this);if(e.done)return e.value;var u=r(t),c=String(this),s=u.lastIndex;o(s,0)||(u.lastIndex=0);var f=i(u,c);return o(u.lastIndex,s)||(u.lastIndex=s),null===f?-1:f.index}]})},function(t,e,n){"use strict";var r=n(75),o=n(3),i=n(47),a=n(83),u=n(6),c=n(54),s=n(82),f=n(2),l=Math.min,h=[].push,p=!f(function(){RegExp(4294967295,"y")});n(55)("split",2,function(t,e,n,f){var y;return y="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(t,e){var o=String(this);if(void 0===t&&0===e)return[];if(!r(t))return n.call(o,t,e);for(var i,a,u,c=[],f=(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.unicode?"u":"")+(t.sticky?"y":""),l=0,p=void 0===e?4294967295:e>>>0,y=new RegExp(t.source,f+"g");(i=s.call(y,o))&&!((a=y.lastIndex)>l&&(c.push(o.slice(l,i.index)),i.length>1&&i.index<o.length&&h.apply(c,i.slice(1)),u=i[0].length,l=a,c.length>=p));)y.lastIndex===i.index&&y.lastIndex++;return l===o.length?!u&&y.test("")||c.push(""):c.push(o.slice(l)),c.length>p?c.slice(0,p):c}:"0".split(void 0,0).length?function(t,e){return void 0===t&&0===e?[]:n.call(this,t,e)}:n,[function(n,r){var o=t(this),i=null==n?void 0:n[e];return void 0!==i?i.call(n,o,r):y.call(String(o),n,r)},function(t,e){var r=f(y,t,this,e,y!==n);if(r.done)return r.value;var s=o(t),h=String(this),v=i(s,RegExp),d=s.unicode,g=(s.ignoreCase?"i":"")+(s.multiline?"m":"")+(s.unicode?"u":"")+(p?"y":"g"),_=new v(p?s:"^(?:"+s.source+")",g),b=void 0===e?4294967295:e>>>0;if(0===b)return[];if(0===h.length)return null===c(_,h)?[h]:[];for(var m=0,w=0,x=[];w<h.length;){_.lastIndex=p?w:0;var O,S=c(_,p?h:h.slice(w));if(null===S||(O=l(u(_.lastIndex+(p?0:w)),h.length))===m)w=a(h,w,d);else{if(x.push(h.slice(m,w)),x.length===b)return x;for(var j=1;j<=S.length-1;j++)if(x.push(S[j]),x.length===b)return x;w=m=O}}return x.push(h.slice(m)),x}]})},function(t,e,n){var r=n(1),o=n(84).set,i=r.MutationObserver||r.WebKitMutationObserver,a=r.process,u=r.Promise,c="process"==n(23)(a);t.exports=function(){var t,e,n,s=function(){var r,o;for(c&&(r=a.domain)&&r.exit();t;){o=t.fn,t=t.next;try{o()}catch(r){throw t?n():e=void 0,r}}e=void 0,r&&r.enter()};if(c)n=function(){a.nextTick(s)};else if(!i||r.navigator&&r.navigator.standalone)if(u&&u.resolve){var f=u.resolve(void 0);n=function(){f.then(s)}}else n=function(){o.call(r,s)};else{var l=!0,h=document.createTextNode("");new i(s).observe(h,{characterData:!0}),n=function(){h.data=l=!l}}return function(r){var o={fn:r,next:void 0};e&&(e.next=o),t||(t=o,n()),e=o}}},function(t,e){t.exports=function(t){try{return{e:!1,v:t()}}catch(t){return{e:!0,v:t}}}},function(t,e,n){"use strict";var r=n(119),o=n(37);t.exports=n(58)("Map",function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}},{get:function(t){var e=r.getEntry(o(this,"Map"),t);return e&&e.v},set:function(t,e){return r.def(o(this,"Map"),0===t?0:t,e)}},r,!0)},function(t,e,n){"use strict";var r=n(119),o=n(37);t.exports=n(58)("Set",function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}},{add:function(t){return r.def(o(this,"Set"),t=0===t?0:t,t)}},r)},function(t,e,n){"use strict";var r,o=n(1),i=n(22)(0),a=n(11),u=n(27),c=n(99),s=n(120),f=n(4),l=n(37),h=n(37),p=!o.ActiveXObject&&"ActiveXObject"in o,y=u.getWeak,v=Object.isExtensible,d=s.ufstore,g=function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}},_={get:function(t){if(f(t)){var e=y(t);return!0===e?d(l(this,"WeakMap")).get(t):e?e[this._i]:void 0}},set:function(t,e){return s.def(l(this,"WeakMap"),t,e)}},b=t.exports=n(58)("WeakMap",g,_,s,!0,!0);h&&p&&(c((r=s.getConstructor(g,"WeakMap")).prototype,_),u.NEED=!0,i(["delete","has","get","set"],function(t){var e=b.prototype,n=e[t];a(e,t,function(e,o){if(f(e)&&!v(e)){this._f||(this._f=new r);var i=this._f[t](e,o);return"set"==t?this:i}return n.call(this,e,o)})}))},function(t,e,n){"use strict";var r=n(120),o=n(37);n(58)("WeakSet",function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}},{add:function(t){return r.def(o(this,"WeakSet"),t,!0)}},r,!1,!0)},function(t,e,n){"use strict";var r=n(0),o=n(59),i=n(85),a=n(3),u=n(32),c=n(6),s=n(4),f=n(1).ArrayBuffer,l=n(47),h=i.ArrayBuffer,p=i.DataView,y=o.ABV&&f.isView,v=h.prototype.slice,d=o.VIEW;r(r.G+r.W+r.F*(f!==h),{ArrayBuffer:h}),r(r.S+r.F*!o.CONSTR,"ArrayBuffer",{isView:function(t){return y&&y(t)||s(t)&&d in t}}),r(r.P+r.U+r.F*n(2)(function(){return!new h(2).slice(1,void 0).byteLength}),"ArrayBuffer",{slice:function(t,e){if(void 0!==v&&void 0===e)return v.call(a(this),t);for(var n=a(this).byteLength,r=u(t,n),o=u(void 0===e?n:e,n),i=new(l(this,h))(c(o-r)),s=new p(this),f=new p(i),y=0;r<o;)f.setUint8(y++,s.getUint8(r++));return i}}),n(41)("ArrayBuffer")},function(t,e,n){var r=n(0);r(r.G+r.W+r.F*!n(59).ABV,{DataView:n(85).DataView})},function(t,e,n){n(25)("Int8",1,function(t){return function(e,n,r){return t(this,e,n,r)}})},function(t,e,n){n(25)("Uint8",1,function(t){return function(e,n,r){return t(this,e,n,r)}})},function(t,e,n){n(25)("Uint8",1,function(t){return function(e,n,r){return t(this,e,n,r)}},!0)},function(t,e,n){n(25)("Int16",2,function(t){return function(e,n,r){return t(this,e,n,r)}})},function(t,e,n){n(25)("Uint16",2,function(t){return function(e,n,r){return t(this,e,n,r)}})},function(t,e,n){n(25)("Int32",4,function(t){return function(e,n,r){return t(this,e,n,r)}})},function(t,e,n){n(25)("Uint32",4,function(t){return function(e,n,r){return t(this,e,n,r)}})},function(t,e,n){n(25)("Float32",4,function(t){return function(e,n,r){return t(this,e,n,r)}})},function(t,e,n){n(25)("Float64",8,function(t){return function(e,n,r){return t(this,e,n,r)}})},function(t,e,n){var r=n(0),o=n(18),i=n(3),a=(n(1).Reflect||{}).apply,u=Function.apply;r(r.S+r.F*!n(2)(function(){a(function(){})}),"Reflect",{apply:function(t,e,n){var r=o(t),c=i(n);return a?a(r,e,c):u.call(r,e,c)}})},function(t,e,n){var r=n(0),o=n(33),i=n(18),a=n(3),u=n(4),c=n(2),s=n(101),f=(n(1).Reflect||{}).construct,l=c(function(){function t(){}return!(f(function(){},[],t)instanceof t)}),h=!c(function(){f(function(){})});r(r.S+r.F*(l||h),"Reflect",{construct:function(t,e){i(t),a(e);var n=arguments.length<3?t:i(arguments[2]);if(h&&!l)return f(t,e,n);if(t==n){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])}var r=[null];return r.push.apply(r,e),new(s.apply(t,r))}var c=n.prototype,p=o(u(c)?c:Object.prototype),y=Function.apply.call(t,p,e);return u(y)?y:p}})},function(t,e,n){var r=n(9),o=n(0),i=n(3),a=n(26);o(o.S+o.F*n(2)(function(){Reflect.defineProperty(r.f({},1,{value:1}),1,{value:2})}),"Reflect",{defineProperty:function(t,e,n){i(t),e=a(e,!0),i(n);try{return r.f(t,e,n),!0}catch(t){return!1}}})},function(t,e,n){var r=n(0),o=n(20).f,i=n(3);r(r.S,"Reflect",{deleteProperty:function(t,e){var n=o(i(t),e);return!(n&&!n.configurable)&&delete t[e]}})},function(t,e,n){"use strict";var r=n(0),o=n(3),i=function(t){this._t=o(t),this._i=0;var e,n=this._k=[];for(e in t)n.push(e)};n(108)(i,"Object",function(){var t,e=this._k;do{if(this._i>=e.length)return{value:void 0,done:!0}}while(!((t=e[this._i++])in this._t));return{value:t,done:!1}}),r(r.S,"Reflect",{enumerate:function(t){return new i(t)}})},function(t,e,n){var r=n(20),o=n(35),i=n(13),a=n(0),u=n(4),c=n(3);a(a.S,"Reflect",{get:function t(e,n){var a,s,f=arguments.length<3?e:arguments[2];return c(e)===f?e[n]:(a=r.f(e,n))?i(a,"value")?a.value:void 0!==a.get?a.get.call(f):void 0:u(s=o(e))?t(s,n,f):void 0}})},function(t,e,n){var r=n(20),o=n(0),i=n(3);o(o.S,"Reflect",{getOwnPropertyDescriptor:function(t,e){return r.f(i(t),e)}})},function(t,e,n){var r=n(0),o=n(35),i=n(3);r(r.S,"Reflect",{getPrototypeOf:function(t){return o(i(t))}})},function(t,e,n){var r=n(0);r(r.S,"Reflect",{has:function(t,e){return e in t}})},function(t,e,n){var r=n(0),o=n(3),i=Object.isExtensible;r(r.S,"Reflect",{isExtensible:function(t){return o(t),!i||i(t)}})},function(t,e,n){var r=n(0);r(r.S,"Reflect",{ownKeys:n(122)})},function(t,e,n){var r=n(0),o=n(3),i=Object.preventExtensions;r(r.S,"Reflect",{preventExtensions:function(t){o(t);try{return i&&i(t),!0}catch(t){return!1}}})},function(t,e,n){var r=n(9),o=n(20),i=n(35),a=n(13),u=n(0),c=n(28),s=n(3),f=n(4);u(u.S,"Reflect",{set:function t(e,n,u){var l,h,p=arguments.length<4?e:arguments[3],y=o.f(s(e),n);if(!y){if(f(h=i(e)))return t(h,n,u,p);y=c(0)}if(a(y,"value")){if(!1===y.writable||!f(p))return!1;if(l=o.f(p,n)){if(l.get||l.set||!1===l.writable)return!1;l.value=u,r.f(p,n,l)}else r.f(p,n,c(0,u));return!0}return void 0!==y.set&&(y.set.call(p,u),!0)}})},function(t,e,n){var r=n(0),o=n(66);o&&r(r.S,"Reflect",{setPrototypeOf:function(t,e){o.check(t,e);try{return o.set(t,e),!0}catch(t){return!1}}})},function(t,e,n){n(284),t.exports=n(7).Array.includes},function(t,e,n){"use strict";var r=n(0),o=n(49)(!0);r(r.P,"Array",{includes:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}}),n(36)("includes")},function(t,e,n){n(286),t.exports=n(7).Array.flatMap},function(t,e,n){"use strict";var r=n(0),o=n(287),i=n(10),a=n(6),u=n(18),c=n(110);r(r.P,"Array",{flatMap:function(t){var e,n,r=i(this);return u(t),e=a(r.length),n=c(r,0),o(n,r,r,e,0,1,t,arguments[1]),n}}),n(36)("flatMap")},function(t,e,n){"use strict";var r=n(51),o=n(4),i=n(6),a=n(17),u=n(5)("isConcatSpreadable");t.exports=function t(e,n,c,s,f,l,h,p){for(var y,v,d=f,g=0,_=!!h&&a(h,p,3);g<s;){if(g in c){if(y=_?_(c[g],g,n):c[g],v=!1,o(y)&&(v=void 0!==(v=y[u])?!!v:r(y)),v&&l>0)d=t(e,n,y,i(y.length),d,l-1)-1;else{if(d>=9007199254740991)throw TypeError();e[d]=y}d++}g++}return d}},function(t,e,n){n(289),t.exports=n(7).String.padStart},function(t,e,n){"use strict";var r=n(0),o=n(123),i=n(57),a=/Version\/10\.\d+(\.\d+)?( Mobile\/\w+)? Safari\//.test(i);r(r.P+r.F*a,"String",{padStart:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0,!0)}})},function(t,e,n){n(291),t.exports=n(7).String.padEnd},function(t,e,n){"use strict";var r=n(0),o=n(123),i=n(57),a=/Version\/10\.\d+(\.\d+)?( Mobile\/\w+)? Safari\//.test(i);r(r.P+r.F*a,"String",{padEnd:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0,!1)}})},function(t,e,n){n(293),t.exports=n(7).String.trimLeft},function(t,e,n){"use strict";n(39)("trimLeft",function(t){return function(){return t(this,1)}},"trimStart")},function(t,e,n){n(295),t.exports=n(7).String.trimRight},function(t,e,n){"use strict";n(39)("trimRight",function(t){return function(){return t(this,2)}},"trimEnd")},function(t,e,n){n(297),t.exports=n(62).f("asyncIterator")},function(t,e,n){n(95)("asyncIterator")},function(t,e,n){n(299),t.exports=n(7).Object.getOwnPropertyDescriptors},function(t,e,n){var r=n(0),o=n(122),i=n(15),a=n(20),u=n(78);r(r.S,"Object",{getOwnPropertyDescriptors:function(t){for(var e,n,r=i(t),c=a.f,s=o(r),f={},l=0;s.length>l;)void 0!==(n=c(r,e=s[l++]))&&u(f,e,n);return f}})},function(t,e,n){n(301),t.exports=n(7).Object.values},function(t,e,n){var r=n(0),o=n(124)(!1);r(r.S,"Object",{values:function(t){return o(t)}})},function(t,e,n){n(303),t.exports=n(7).Object.entries},function(t,e,n){var r=n(0),o=n(124)(!0);r(r.S,"Object",{entries:function(t){return o(t)}})},function(t,e,n){"use strict";n(116),n(305),t.exports=n(7).Promise.finally},function(t,e,n){"use strict";var r=n(0),o=n(7),i=n(1),a=n(47),u=n(118);r(r.P+r.R,"Promise",{finally:function(t){var e=a(this,o.Promise||i.Promise),n="function"==typeof t;return this.then(n?function(n){return u(e,t()).then(function(){return n})}:t,n?function(n){return u(e,t()).then(function(){throw n})}:t)}})},function(t,e,n){n(307),n(308),n(309),t.exports=n(7)},function(t,e,n){var r=n(1),o=n(0),i=n(57),a=[].slice,u=/MSIE .\./.test(i),c=function(t){return function(e,n){var r=arguments.length>2,o=!!r&&a.call(arguments,2);return t(r?function(){("function"==typeof e?e:Function(e)).apply(this,o)}:e,n)}};o(o.G+o.B+o.F*u,{setTimeout:c(r.setTimeout),setInterval:c(r.setInterval)})},function(t,e,n){var r=n(0),o=n(84);r(r.G+r.B,{setImmediate:o.set,clearImmediate:o.clear})},function(t,e,n){for(var r=n(81),o=n(31),i=n(11),a=n(1),u=n(14),c=n(40),s=n(5),f=s("iterator"),l=s("toStringTag"),h=c.Array,p={CSSRuleList:!0,CSSStyleDeclaration:!1,CSSValueList:!1,ClientRectList:!1,DOMRectList:!1,DOMStringList:!1,DOMTokenList:!0,DataTransferItemList:!1,FileList:!1,HTMLAllCollection:!1,HTMLCollection:!1,HTMLFormElement:!1,HTMLSelectElement:!1,MediaList:!0,MimeTypeArray:!1,NamedNodeMap:!1,NodeList:!0,PaintRequestList:!1,Plugin:!1,PluginArray:!1,SVGLengthList:!1,SVGNumberList:!1,SVGPathSegList:!1,SVGPointList:!1,SVGStringList:!1,SVGTransformList:!1,SourceBufferList:!1,StyleSheetList:!0,TextTrackCueList:!1,TextTrackList:!1,TouchList:!1},y=o(p),v=0;v<y.length;v++){var d,g=y[v],_=p[g],b=a[g],m=b&&b.prototype;if(m&&(m[f]||u(m,f,h),m[l]||u(m,l,g),c[g]=h,_))for(d in r)m[d]||i(m,d,r[d],!0)}},function(t,e,n){var r=function(t){"use strict";var e,n=Object.prototype,r=n.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",u=o.toStringTag||"@@toStringTag";function c(t,e,n,r){var o=e&&e.prototype instanceof v?e:v,i=Object.create(o.prototype),a=new M(r||[]);return i._invoke=function(t,e,n){var r=f;return function(o,i){if(r===h)throw new Error("Generator is already running");if(r===p){if("throw"===o)throw i;return P()}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var u=S(a,n);if(u){if(u===y)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(r===f)throw r=p,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r=h;var c=s(t,e,n);if("normal"===c.type){if(r=n.done?p:l,c.arg===y)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(r=p,n.method="throw",n.arg=c.arg)}}}(t,n,a),i}function s(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}t.wrap=c;var f="suspendedStart",l="suspendedYield",h="executing",p="completed",y={};function v(){}function d(){}function g(){}var _={};_[i]=function(){return this};var b=Object.getPrototypeOf,m=b&&b(b(E([])));m&&m!==n&&r.call(m,i)&&(_=m);var w=g.prototype=v.prototype=Object.create(_);function x(t){["next","throw","return"].forEach(function(e){t[e]=function(t){return this._invoke(e,t)}})}function O(t){var e;this._invoke=function(n,o){function i(){return new Promise(function(e,i){!function e(n,o,i,a){var u=s(t[n],t,o);if("throw"!==u.type){var c=u.arg,f=c.value;return f&&"object"==typeof f&&r.call(f,"__await")?Promise.resolve(f.__await).then(function(t){e("next",t,i,a)},function(t){e("throw",t,i,a)}):Promise.resolve(f).then(function(t){c.value=t,i(c)},function(t){return e("throw",t,i,a)})}a(u.arg)}(n,o,e,i)})}return e=e?e.then(i,i):i()}}function S(t,n){var r=t.iterator[n.method];if(r===e){if(n.delegate=null,"throw"===n.method){if(t.iterator.return&&(n.method="return",n.arg=e,S(t,n),"throw"===n.method))return y;n.method="throw",n.arg=new TypeError("The iterator does not provide a 'throw' method")}return y}var o=s(r,t.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,y;var i=o.arg;return i?i.done?(n[t.resultName]=i.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,y):i:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,y)}function j(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 k(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function M(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(j,this),this.reset(!0)}function E(t){if(t){var n=t[i];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,a=function n(){for(;++o<t.length;)if(r.call(t,o))return n.value=t[o],n.done=!1,n;return n.value=e,n.done=!0,n};return a.next=a}}return{next:P}}function P(){return{value:e,done:!0}}return d.prototype=w.constructor=g,g.constructor=d,g[u]=d.displayName="GeneratorFunction",t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===d||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,g):(t.__proto__=g,u in t||(t[u]="GeneratorFunction")),t.prototype=Object.create(w),t},t.awrap=function(t){return{__await:t}},x(O.prototype),O.prototype[a]=function(){return this},t.AsyncIterator=O,t.async=function(e,n,r,o){var i=new O(c(e,n,r,o));return t.isGeneratorFunction(n)?i:i.next().then(function(t){return t.done?t.value:i.next()})},x(w),w[u]="Generator",w[i]=function(){return this},w.toString=function(){return"[object Generator]"},t.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}},t.values=E,M.prototype={constructor:M,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(k),!t)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},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 n=this;function o(r,o){return u.type="throw",u.arg=t,n.next=r,o&&(n.method="next",n.arg=e),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],u=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var c=r.call(a,"catchLoc"),s=r.call(a,"finallyLoc");if(c&&s){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,y):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),y},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),k(n),y}},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 o=r.arg;k(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:E(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),y}},t}(t.exports);try{regeneratorRuntime=r}catch(t){Function("r","regeneratorRuntime = r")(r)}},function(t,e,n){n(312),t.exports=n(125).global},function(t,e,n){var r=n(313);r(r.G,{global:n(86)})},function(t,e,n){var r=n(86),o=n(125),i=n(314),a=n(316),u=n(323),c=function(t,e,n){var s,f,l,h=t&c.F,p=t&c.G,y=t&c.S,v=t&c.P,d=t&c.B,g=t&c.W,_=p?o:o[e]||(o[e]={}),b=_.prototype,m=p?r:y?r[e]:(r[e]||{}).prototype;for(s in p&&(n=e),n)(f=!h&&m&&void 0!==m[s])&&u(_,s)||(l=f?m[s]:n[s],_[s]=p&&"function"!=typeof m[s]?n[s]:d&&f?i(l,r):g&&m[s]==l?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}(l):v&&"function"==typeof l?i(Function.call,l):l,v&&((_.virtual||(_.virtual={}))[s]=l,t&c.R&&b&&!b[s]&&a(b,s,l)))};c.F=1,c.G=2,c.S=4,c.P=8,c.B=16,c.W=32,c.U=64,c.R=128,t.exports=c},function(t,e,n){var r=n(315);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,o){return t.call(e,n,r,o)}}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){var r=n(317),o=n(322);t.exports=n(88)?function(t,e,n){return r.f(t,e,o(1,n))}:function(t,e,n){return t[e]=n,t}},function(t,e,n){var r=n(318),o=n(319),i=n(321),a=Object.defineProperty;e.f=n(88)?Object.defineProperty:function(t,e,n){if(r(t),e=i(e,!0),r(n),o)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(87);t.exports=function(t){if(!r(t))throw TypeError(t+" is not an object!");return t}},function(t,e,n){t.exports=!n(88)&&!n(126)(function(){return 7!=Object.defineProperty(n(320)("div"),"a",{get:function(){return 7}}).a})},function(t,e,n){var r=n(87),o=n(86).document,i=r(o)&&r(o.createElement);t.exports=function(t){return i?o.createElement(t):{}}},function(t,e,n){var r=n(87);t.exports=function(t,e){if(!r(t))return t;var n,o;if(e&&"function"==typeof(n=t.toString)&&!r(o=n.call(t)))return o;if("function"==typeof(n=t.valueOf)&&!r(o=n.call(t)))return o;if(!e&&"function"==typeof(n=t.toString)&&!r(o=n.call(t)))return o;throw TypeError("Can't convert object to primitive value")}},function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},function(t,e){var n={}.hasOwnProperty;t.exports=function(t,e){return n.call(t,e)}},function(t,e,n){"use strict";n.r(e);var r={};n.r(r),n.d(r,"scaleBand",function(){return _t}),n.d(r,"scalePoint",function(){return bt}),n.d(r,"scaleIdentity",function(){return gn}),n.d(r,"scaleLinear",function(){return dn}),n.d(r,"scaleLog",function(){return jn}),n.d(r,"scaleOrdinal",function(){return gt}),n.d(r,"scaleImplicit",function(){return dt}),n.d(r,"scalePow",function(){return Mn}),n.d(r,"scaleSqrt",function(){return En}),n.d(r,"scaleQuantile",function(){return Pn}),n.d(r,"scaleQuantize",function(){return An}),n.d(r,"scaleThreshold",function(){return Ln}),n.d(r,"scaleTime",function(){return Jo}),n.d(r,"scaleUtc",function(){return Qo}),n.d(r,"scaleSequential",function(){return Ko}),n.d(r,"scaleDiverging",function(){return ti});var o=n(127),i=n.n(o),a=function(t,e){return t<e?-1:t>e?1:t>=e?0:NaN};var u,c;1===(u=a).length&&(c=u,u=function(t,e){return a(c(t),e)});var s=function(t,e){var n,r,o,i=t.length,a=-1;if(null==e){for(;++a<i;)if(null!=(n=t[a])&&n>=n)for(r=o=n;++a<i;)null!=(n=t[a])&&(r>n&&(r=n),o<n&&(o=n))}else for(;++a<i;)if(null!=(n=e(t[a],a,t))&&n>=n)for(r=o=n;++a<i;)null!=(n=e(t[a],a,t))&&(r>n&&(r=n),o<n&&(o=n));return[r,o]},f=Array.prototype,l=(f.slice,f.map,function(t,e,n){t=+t,e=+e,n=(o=arguments.length)<2?(e=t,t=0,1):o<3?1:+n;for(var r=-1,o=0|Math.max(0,Math.ceil((e-t)/n)),i=new Array(o);++r<o;)i[r]=t+r*n;return i});Math.sqrt(50),Math.sqrt(10),Math.sqrt(2);var h=h||{ELEMENT_NODE:1};var p=Object.prototype.toString,y=i.a.noConflict();y.mixin({createElement:function(t,e,n){var r=document.createElement(t);for(var o in e)r[o]=e[o];for(var i in n)r.style[i]=n[i];return r},getElement:function(t){if(t){var e=t;return y.isString(e)&&(e=document.getElementById(e)),e&&e.nodeType===h.ELEMENT_NODE?e:void 0}},getPixelRatio:function(){return window.devicePixelRatio||1},median:function(t,e){var n=t.length,r=y.isFn(e)?e:y.isString(e)?function(t){return t[e]}:function(t){return t};if(n>0){if(n%2==0){var o=n/2;return(r(t[o-1])+r(t[o]))/2}return r(t[(n-1)/2])}},convert2Array:function(t){return Array.isArray(t)?t:[t]},extent:s,offset:function(t){return function t(e){if(e.getBoundingClientRect)return e.getBoundingClientRect();if("BODY"!==e.tagName){var n=e.offsetTop,r=e.offsetLeft,o=t(e.parentElement);return{top:n+o.top,left:r+o.left}}return{top:e.offsetTop,left:e.offsetLeft}}(t)},assign:function(t){for(var e=0,n=arguments.length<=1?0:arguments.length-1;e<n;e++){var r=e+1<1||arguments.length<=e+1?void 0:arguments[e+1];for(var o in r)r.hasOwnProperty(o)&&(t[o]=r[o])}return t},callFn:function(t,e){if(y.isFn(t)){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];return t.apply(e,r)}},isImg:function(t){return"[object HTMLImageElement]"===y.toStr(t)},isCanvas:function(t){return"[object HTMLCanvasElement]"===y.toStr(t)},isFn:function(t){return"function"==typeof t},isNul:function(t){return null==t},isStr:function(t){return"string"==typeof t},isNum:function(t){return"number"==typeof t},toStr:function(t){return p.call(t)},nativeArrCheck:function(t){return Array.isArray(t)},forMap:function(t,e,n){for(var r in t)if(t.hasOwnProperty(r)){var o=t[r];e.call(n||this,o,r,t)}},is2DimArr:function(t){return y.isArray(t[0])&&!y.isArray(t[0][0])},log:function(){console&&console.log},time:function(){console&&console.time},timeEnd:function(){console&&console.timeEnd}});var v=y;function d(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)}}var g=v.assign,_=-1;function b(t){return t.replace(/^\s+|\s+$/g,"")}var m=/\s+/,w=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.__events__={},this.__id__=++_}var e,n,r;return e=t,(n=[{key:"on",value:function(t,e,n){for(var r=-1,o=(t=b(t).split(m)).length;++r<o;){var i=t[r];this._on(i,e,n)}return this}},{key:"_on",value:function(t,e,n){var r=this.__events__,o=r[t]=r[t]||[];n===this&&(n=void 0);for(var i=-1,a=o;++i<a;){var u=o[i],c=u.fn,s=u.ctx;if(c===e&&s===n)return this}var f={fn:e,ctx:n};return o.push(f),this}},{key:"once",value:function(t,e,n){function r(n){this.off(t,r),e.call(this,n)}return r.listener=e,this.on(t,r,n)}},{key:"off",value:function(t,e,n){if(!t)return this.__events__={},this;for(var r=-1,o=(t=b(t).split(m)).length;++r<o;){var i=t[r];i&&this._off(i,e,n)}return this}},{key:"_off",value:function(t,e,n){if(!t)return this.__events__={},this;var r=this.__events__;if(!e)return delete r[t],this;var o=r[t];if(o)for(var i=o.length;--i>=0;){var a=o[i],u=a.fn;a.ctx===n&&(u!==e&&u!==u.listener||(o.splice(i,1),u=function(){}))}return this}},{key:"emit",value:function(t,e,n){if(!this._listens(t,n))return this;var r=this.__events__[t],o=g({},e,{target:this,type:t});if(r)for(var i=-1,a=r.length;++i<a;){var u=r[i],c=u.fn,s=u.ctx;c.call(s||this,o)}return n&&this._propagateEvent(o),this}},{key:"addEventParent",value:function(t,e){return this._eventParents=this._eventParents||{},this._eventParents[t.__id__]={target:t,fn:e},this}},{key:"removeEventParent",value:function(t){return this._eventParents&&delete this._eventParents[t.__id__],this}},{key:"_propagateEvent",value:function(t){var e=this._eventParents;for(var n in e){var r=e[n],o=r.target,i=r.fn,a=g({},{propagatedFrom:t.target},t);a=i?i.call(this,a):a,o.emit(t.type,a,!0)}}},{key:"_listens",value:function(t,e){var n=this.__events__&&this.__events__[t];if(n&&n.length)return!0;if(e){var r=this._eventParents;for(var o in r)if(r[o].target._listens(t,e))return!0}return!1}},{key:"events",get:function(){return this.__events__}},{key:"id",get:function(){return this.__id__}}])&&d(e.prototype,n),r&&d(e,r),t}();function x(t){return(x="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)}function O(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 S(t,e){return!e||"object"!==x(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function j(t){return(j=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function k(t,e){return(k=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var M=function(t){function e(){var t,n,r,o;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);for(var i=arguments.length,a=new Array(i),u=0;u<i;u++)a[u]=arguments[u];return(n=o=S(this,(t=j(e)).call.apply(t,[this].concat(a))))._initProperties.apply(n,a),(r=o)._initialize.apply(r,a),o}var n,r,o;return 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}}),e&&k(t,e)}(e,w),n=e,(r=[{key:"_initProperties",value:function(){this._owner,this._owner2Add,this._bounds}},{key:"_initialize",value:function(){}},{key:"beforeAdd",value:function(){}},{key:"onAdd",value:function(t){}},{key:"onRemove",value:function(t){}},{key:"afterRemove",value:function(){}},{key:"addTo",value:function(t){return t&&t.addLayer(this),this}},{key:"remove",value:function(){return this.removeFrom(this._owner2Add)}},{key:"removeFrom",value:function(t){return t&&t.removeLayer(this),this}},{key:"getBounds",value:function(){return this._bounds}},{key:"destroy",value:function(){this.off(),this.remove(),delete this._owner,delete this._owner2Add,delete this._bounds}}])&&O(n.prototype,r),o&&O(n,o),e}(),E={ADD:"add",RM:"remove",LOAD:"load",MAP_LOAD:"mapload",LEGEND_UPDATE:"legendupdate",ADD_LAYER:"layeradd",RM_LAYER:"layerremove",CLICK:"click",DB_CLICK:"dblclick",MOUSE_MOVE:"mousemove",MOUSE_WHEEL:"mousewheel",MOUSE_ENTER:"mouseenter",MOUSE_LEAVE:"mouseleave",MOUSE_OVER:"mouseover",MOUSE_OUT:"mouseout",CONTEXT_MENU:"contextmenu",TOUCH_START:"touchstart",TOUCH_MOVE:"touchmove",TOUCH_END:"touchend",TOUCH_CANCEL:"touchcancel",MOVE_START:"movestart",MOVE:"move",MOVE_END:"moveend",ZOOM_CHANGE:"zoomchange",ZOOM:"zoom",ZOOM_END:"zoomend",MAP_MOVE:"mapmove",DRAG_START:"dragstart",DRAG_ING:"dragging",DRAG_END:"dragend",RESIZE:"resize",RENDER:"render"},P={continuous:["linear","power","sqrt","time","utc","log","identity","sequential"],ordinal:["ordinal","band","point","color","category"],scaleOrdinal:["color","borderColor"],scaleLinear:["size","radius","width","borderWidth","opacity","zIndex","offsetX","offsetY"]};function A(t){return(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})(t)}function L(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 C(t,e,n){return(C="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var r=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=T(t)););return t}(t,e);if(r){var o=Object.getOwnPropertyDescriptor(r,e);return o.get?o.get.call(n):o.value}})(t,e,n||t)}function T(t){return(T=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function R(t,e){return(R=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function D(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function N(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function I(t){t.onRemove(),delete t._owner2Add,delete t._owner,t.emit(E.RM)}var z=function(t){function e(){var t,n,r,o;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);for(var i=arguments.length,a=new Array(i),u=0;u<i;u++)a[u]=arguments[u];return r=this,n=!(o=(t=T(e)).call.apply(t,[this].concat(a)))||"object"!==A(o)&&"function"!=typeof o?D(r):o,N(D(D(n)),"addOverlay",n.addLayer),N(D(D(n)),"removeOverlay",n.removeLayer),n}var n,r,o;return 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}}),e&&R(t,e)}(e,M),n=e,(r=[{key:"_initProperties",value:function(){C(T(e.prototype),"_initProperties",this).call(this),this._domContainer,this._options={},this._overlays=[],this._zIndex=0,this._load=!1}},{key:"_initialize",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=(this._options=v.clone(e)).container;this._bindEvent(),this.addLayer(t),this.addTo(n)}},{key:"_bindEvent",value:function(){var t=this;this.on(E.LOAD,function(){t._load=!0})}},{key:"beforeAddLayer",value:function(t){}},{key:"addLayer",value:function(t,e){for(var n=this,r=this._overlays,o=[],i=-1,a=(t=v.convert2Array(t)).length;++i<a;){var u=t[i];u._owner2Add||(u._owner2Add=this,u.beforeAdd(),o.push(u),r.push(u))}var c=o.length;return c&&(this._options.zLevel&&(o=r.sort(function(t,e){return t._zIndex-e._zIndex}),c=o.length),this.whenReady(function(){if(n._owner2Add){n.beforeAddLayer(o);for(var t=-1;++t<c;){var r=o[t];r._owner2Add&&(r._owner=n,r.onAdd(),r.emit(E.ADD))}var i={layer:o};n.emit(E.ADD_LAYER,i),v.callFn(e,n,i)}})),this}},{key:"removeLayer",value:function(t){var e=this._overlays,n=[];if(v.isNil(t)){for(var r=-1,o=e.length;++r<o;){var i=e[r];I(i),n.push(i)}this._overlays=[]}else for(var a=(t=v.convert2Array(t)).length;--a>-1;){var u=t[a],c=e.indexOf(u);-1!==c&&(I(u),e.splice(c,1),n.push(u))}return n.length&&(this.afterRemoveLayer(n),this.emit(E.RM_LAYER,{layer:n})),this}},{key:"afterRemoveLayer",value:function(t){}},{key:"onAdd",value:function(t){var e=this;this._owner&&!this._load&&this._initLayout(function(n){n&&n.error||(v.callFn(t,e),e.emit(E.LOAD))})}},{key:"onRemove",value:function(){this._owner&&(this.removeLayer(),this._removeLayout(),this._load=!1)}},{key:"hasOverlay",value:function(t){return-1!==this._overlays.indexOf(t)}},{key:"setzIndex",value:function(t){}},{key:"getZIndex",value:function(){}},{key:"_initLayout",value:function(t){this._domContainer=this._owner.getContainer(),v.callFn(t,this)}},{key:"_removeLayout",value:function(){}},{key:"delegateEvent",value:function(t,e){}},{key:"whenReady",value:function(t){return this._load?t.call(this):this.on(E.LOAD,t),this}},{key:"getContainer",value:function(){return this._domContainer}},{key:"_onRedraw",value:function(){}},{key:"clear",value:function(){}},{key:"destroy",value:function(){C(T(e.prototype),"destroy",this).call(this),delete this._domContainer,delete this._options}}])&&L(n.prototype,r),o&&L(n,o),e}(),F=v.callFn,U="//webapi.amap.com",B=U+"/ui/1.0/main-async.js",q=["key","v","plugin","callback"],V=["64d8d022eef790d40aab5f2182977aa7","1.4.15","AMap.CustomLayer,Map3D,","__amap_callback__"];function W(){return 1e6*Math.random()}var G={_AMap:null,_AMapUI:null,_event:new w,init:function(t){var e,n=this,r=t||{},o=r.success,i=r.uiSuccess,a=r.key,u=r.version,c=r.plugin,s=r.ui,f=r.skipUrlCheck,l=this._event;this._checkAMap(f)?(e=this._AMap,F(o,this,e)):(a&&(V[0]=a),u&&(V[1]=u),c&&(V[2]+=c),V[3]+=Math.floor(W()),window[V[3]]=function(){if(!(e=n._AMap=window.AMap))throw new Error("AMap lib load error!");l.emit("apiReady",{amap:e})},l.on("apiReady",function(t){var e=t.amap;try{F(o,n,e)}catch(t){console}}),this._loadAPI()),s&&(this._checkUI()?this._whenAMapReady(function(t){F(i,n,t,n._AMapUI)},t):this._loadUI(function(){n._whenAMapReady(function(t){try{window.initAMapUI();var e=n._AMapUI=window.AMapUI;F(i,n,t,e),l.emit("uiReady",{amapUI:e})}catch(t){console}},t)}))},_whenAMapReady:function(t,e){var n=this,r=(e||{}).skipUrlCheck;this._checkAMap(r)?t.call(this,this._AMap):this._event.on("apiReady",function(e){t.call(n,e.amap)})},_whenUIReady:function(t){var e=this;this._checkUI()?t.call(this,this._AMapUI):this._event.on("uiReady",function(n){t.call(e,n.amapUI)})},_checkScript:function(t){for(var e=new RegExp("^(http:|https:)"+t,"ig"),n=document.getElementsByTagName("script"),r=-1,o=n.length;++r<o;){if(n[r].src.match(e))return!0}return!1},_checkAMap:function(t){var e=window.AMap;return!(!t&&!this._checkScript("//webapi.amap.com/maps")||!e)&&(this._AMap=e,!0)},_checkUI:function(){var t=window.AMapUI;return!(!this._checkScript(B)||!t)&&(this._AMapUI=t,!0)},_loadAPI:function(t){var e={};q.forEach(function(t,n){var r=V[n];r&&(e[t]=r)}),this._appendScript("//webapi.amap.com/maps",{args:e,success:t})},_loadUI:function(t){this._appendScript(B,{success:t})},_appendScript:function(t,e){var n=this,r=e.args,o=e.success,i=document.getElementsByTagName("head")[0],a=document.createElement("script");a.addEventListener&&a.addEventListener("load",function(t){F(o,n,t)});var u=[];for(var c in r){var s=r[c];s&&u.push(c+"="+s)}u.push("_r="+W());var f=new RegExp("^(http:|https:)","ig");location&&location.protocol.match(f)||(t="http:"+t),a.src=t+"?"+u.join("&"),i.insertBefore(a,null)},_getAPIKey:function(){return V[0]}},Y=function(t,e){return t<e?-1:t>e?1:t>=e?0:NaN},H=function(t){var e;return 1===t.length&&(e=t,t=function(t,n){return Y(e(t),n)}),{left:function(e,n,r,o){for(null==r&&(r=0),null==o&&(o=e.length);r<o;){var i=r+o>>>1;t(e[i],n)<0?r=i+1:o=i}return r},right:function(e,n,r,o){for(null==r&&(r=0),null==o&&(o=e.length);r<o;){var i=r+o>>>1;t(e[i],n)>0?o=i:r=i+1}return r}}};var $=H(Y),Z=$.right,X=($.left,Z);var J=function(t){return null===t?NaN:+t},Q=Array.prototype,K=(Q.slice,Q.map,function(t,e,n){t=+t,e=+e,n=(o=arguments.length)<2?(e=t,t=0,1):o<3?1:+n;for(var r=-1,o=0|Math.max(0,Math.ceil((e-t)/n)),i=new Array(o);++r<o;)i[r]=t+r*n;return i}),tt=Math.sqrt(50),et=Math.sqrt(10),nt=Math.sqrt(2),rt=function(t,e,n){var r,o,i,a,u=-1;if(n=+n,(t=+t)===(e=+e)&&n>0)return[t];if((r=e<t)&&(o=t,t=e,e=o),0===(a=ot(t,e,n))||!isFinite(a))return[];if(a>0)for(t=Math.ceil(t/a),e=Math.floor(e/a),i=new Array(o=Math.ceil(e-t+1));++u<o;)i[u]=(t+u)*a;else for(t=Math.floor(t*a),e=Math.ceil(e*a),i=new Array(o=Math.ceil(t-e+1));++u<o;)i[u]=(t-u)/a;return r&&i.reverse(),i};function ot(t,e,n){var r=(e-t)/Math.max(0,n),o=Math.floor(Math.log(r)/Math.LN10),i=r/Math.pow(10,o);return o>=0?(i>=tt?10:i>=et?5:i>=nt?2:1)*Math.pow(10,o):-Math.pow(10,-o)/(i>=tt?10:i>=et?5:i>=nt?2:1)}function it(t,e,n){var r=Math.abs(e-t)/Math.max(0,n),o=Math.pow(10,Math.floor(Math.log(r)/Math.LN10)),i=r/o;return i>=tt?o*=10:i>=et?o*=5:i>=nt&&(o*=2),e<t?-o:o}var at=function(t,e,n){if(null==n&&(n=J),r=t.length){if((e=+e)<=0||r<2)return+n(t[0],0,t);if(e>=1)return+n(t[r-1],r-1,t);var r,o=(r-1)*e,i=Math.floor(o),a=+n(t[i],i,t);return a+(+n(t[i+1],i+1,t)-a)*(o-i)}};function ut(){}function ct(t,e){var n=new ut;if(t instanceof ut)t.each(function(t,e){n.set(e,t)});else if(Array.isArray(t)){var r,o=-1,i=t.length;if(null==e)for(;++o<i;)n.set(o,t[o]);else for(;++o<i;)n.set(e(r=t[o],o,t),r)}else if(t)for(var a in t)n.set(a,t[a]);return n}ut.prototype=ct.prototype={constructor:ut,has:function(t){return"$"+t in this},get:function(t){return this["$"+t]},set:function(t,e){return this["$"+t]=e,this},remove:function(t){var e="$"+t;return e in this&&delete this[e]},clear:function(){for(var t in this)"$"===t[0]&&delete this[t]},keys:function(){var t=[];for(var e in this)"$"===e[0]&&t.push(e.slice(1));return t},values:function(){var t=[];for(var e in this)"$"===e[0]&&t.push(this[e]);return t},entries:function(){var t=[];for(var e in this)"$"===e[0]&&t.push({key:e.slice(1),value:this[e]});return t},size:function(){var t=0;for(var e in this)"$"===e[0]&&++t;return t},empty:function(){for(var t in this)if("$"===t[0])return!1;return!0},each:function(t){for(var e in this)"$"===e[0]&&t(this[e],e.slice(1),this)}};var st=ct;function ft(){}var lt=st.prototype;function ht(t,e){var n=new ft;if(t instanceof ft)t.each(function(t){n.add(t)});else if(t){var r=-1,o=t.length;if(null==e)for(;++r<o;)n.add(t[r]);else for(;++r<o;)n.add(e(t[r],r,t))}return n}ft.prototype=ht.prototype={constructor:ft,has:lt.has,add:function(t){return this["$"+(t+="")]=t,this},remove:lt.remove,clear:lt.clear,values:lt.keys,size:lt.size,empty:lt.empty,each:lt.each};var pt=Array.prototype,yt=pt.map,vt=pt.slice,dt={name:"implicit"};function gt(t){var e=st(),n=[],r=dt;function o(o){var i=o+"",a=e.get(i);if(!a){if(r!==dt)return r;e.set(i,a=n.push(o))}return t[(a-1)%t.length]}return t=null==t?[]:vt.call(t),o.domain=function(t){if(!arguments.length)return n.slice();n=[],e=st();for(var r,i,a=-1,u=t.length;++a<u;)e.has(i=(r=t[a])+"")||e.set(i,n.push(r));return o},o.range=function(e){return arguments.length?(t=vt.call(e),o):t.slice()},o.unknown=function(t){return arguments.length?(r=t,o):r},o.copy=function(){return gt().domain(n).range(t).unknown(r)},o}function _t(){var t,e,n=gt().unknown(void 0),r=n.domain,o=n.range,i=[0,1],a=!1,u=0,c=0,s=.5;function f(){var n=r().length,f=i[1]<i[0],l=i[f-0],h=i[1-f];t=(h-l)/Math.max(1,n-u+2*c),a&&(t=Math.floor(t)),l+=(h-l-t*(n-u))*s,e=t*(1-u),a&&(l=Math.round(l),e=Math.round(e));var p=K(n).map(function(e){return l+t*e});return o(f?p.reverse():p)}return delete n.unknown,n.domain=function(t){return arguments.length?(r(t),f()):r()},n.range=function(t){return arguments.length?(i=[+t[0],+t[1]],f()):i.slice()},n.rangeRound=function(t){return i=[+t[0],+t[1]],a=!0,f()},n.bandwidth=function(){return e},n.step=function(){return t},n.round=function(t){return arguments.length?(a=!!t,f()):a},n.padding=function(t){return arguments.length?(u=c=Math.max(0,Math.min(1,t)),f()):u},n.paddingInner=function(t){return arguments.length?(u=Math.max(0,Math.min(1,t)),f()):u},n.paddingOuter=function(t){return arguments.length?(c=Math.max(0,Math.min(1,t)),f()):c},n.align=function(t){return arguments.length?(s=Math.max(0,Math.min(1,t)),f()):s},n.copy=function(){return _t().domain(r()).range(i).round(a).paddingInner(u).paddingOuter(c).align(s)},f()}function bt(){return function t(e){var n=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return t(n())},e}(_t().paddingInner(1))}var mt=function(t,e,n){t.prototype=e.prototype=n,n.constructor=t};function wt(t,e){var n=Object.create(t.prototype);for(var r in e)n[r]=e[r];return n}function xt(){}var Ot="\\s*([+-]?\\d+)\\s*",St="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",jt="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",kt=/^#([0-9a-f]{3})$/,Mt=/^#([0-9a-f]{6})$/,Et=new RegExp("^rgb\\("+[Ot,Ot,Ot]+"\\)$"),Pt=new RegExp("^rgb\\("+[jt,jt,jt]+"\\)$"),At=new RegExp("^rgba\\("+[Ot,Ot,Ot,St]+"\\)$"),Lt=new RegExp("^rgba\\("+[jt,jt,jt,St]+"\\)$"),Ct=new RegExp("^hsl\\("+[St,jt,jt]+"\\)$"),Tt=new RegExp("^hsla\\("+[St,jt,jt,St]+"\\)$"),Rt={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 Dt(t){var e;return t=(t+"").trim().toLowerCase(),(e=kt.exec(t))?new Ut((e=parseInt(e[1],16))>>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):(e=Mt.exec(t))?Nt(parseInt(e[1],16)):(e=Et.exec(t))?new Ut(e[1],e[2],e[3],1):(e=Pt.exec(t))?new Ut(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=At.exec(t))?It(e[1],e[2],e[3],e[4]):(e=Lt.exec(t))?It(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=Ct.exec(t))?qt(e[1],e[2]/100,e[3]/100,1):(e=Tt.exec(t))?qt(e[1],e[2]/100,e[3]/100,e[4]):Rt.hasOwnProperty(t)?Nt(Rt[t]):"transparent"===t?new Ut(NaN,NaN,NaN,0):null}function Nt(t){return new Ut(t>>16&255,t>>8&255,255&t,1)}function It(t,e,n,r){return r<=0&&(t=e=n=NaN),new Ut(t,e,n,r)}function zt(t){return t instanceof xt||(t=Dt(t)),t?new Ut((t=t.rgb()).r,t.g,t.b,t.opacity):new Ut}function Ft(t,e,n,r){return 1===arguments.length?zt(t):new Ut(t,e,n,null==r?1:r)}function Ut(t,e,n,r){this.r=+t,this.g=+e,this.b=+n,this.opacity=+r}function Bt(t){return((t=Math.max(0,Math.min(255,Math.round(t)||0)))<16?"0":"")+t.toString(16)}function qt(t,e,n,r){return r<=0?t=e=n=NaN:n<=0||n>=1?t=e=NaN:e<=0&&(t=NaN),new Wt(t,e,n,r)}function Vt(t,e,n,r){return 1===arguments.length?function(t){if(t instanceof Wt)return new Wt(t.h,t.s,t.l,t.opacity);if(t instanceof xt||(t=Dt(t)),!t)return new Wt;if(t instanceof Wt)return t;var e=(t=t.rgb()).r/255,n=t.g/255,r=t.b/255,o=Math.min(e,n,r),i=Math.max(e,n,r),a=NaN,u=i-o,c=(i+o)/2;return u?(a=e===i?(n-r)/u+6*(n<r):n===i?(r-e)/u+2:(e-n)/u+4,u/=c<.5?i+o:2-i-o,a*=60):u=c>0&&c<1?0:a,new Wt(a,u,c,t.opacity)}(t):new Wt(t,e,n,null==r?1:r)}function Wt(t,e,n,r){this.h=+t,this.s=+e,this.l=+n,this.opacity=+r}function Gt(t,e,n){return 255*(t<60?e+(n-e)*t/60:t<180?n:t<240?e+(n-e)*(240-t)/60:e)}mt(xt,Dt,{displayable:function(){return this.rgb().displayable()},hex:function(){return this.rgb().hex()},toString:function(){return this.rgb()+""}}),mt(Ut,Ft,wt(xt,{brighter:function(t){return t=null==t?1/.7:Math.pow(1/.7,t),new Ut(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function(t){return t=null==t?.7:Math.pow(.7,t),new Ut(this.r*t,this.g*t,this.b*t,this.opacity)},rgb:function(){return this},displayable:function(){return 0<=this.r&&this.r<=255&&0<=this.g&&this.g<=255&&0<=this.b&&this.b<=255&&0<=this.opacity&&this.opacity<=1},hex:function(){return"#"+Bt(this.r)+Bt(this.g)+Bt(this.b)},toString:function(){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+")")}})),mt(Wt,Vt,wt(xt,{brighter:function(t){return t=null==t?1/.7:Math.pow(1/.7,t),new Wt(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?.7:Math.pow(.7,t),new Wt(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,o=2*n-r;return new Ut(Gt(t>=240?t-240:t+120,o,r),Gt(t,o,r),Gt(t<120?t+240:t-120,o,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}}));var Yt=Math.PI/180,Ht=180/Math.PI,$t=.96422,Zt=1,Xt=.82521,Jt=4/29,Qt=6/29,Kt=3*Qt*Qt,te=Qt*Qt*Qt;function ee(t){if(t instanceof re)return new re(t.l,t.a,t.b,t.opacity);if(t instanceof fe){if(isNaN(t.h))return new re(t.l,0,0,t.opacity);var e=t.h*Yt;return new re(t.l,Math.cos(e)*t.c,Math.sin(e)*t.c,t.opacity)}t instanceof Ut||(t=zt(t));var n,r,o=ue(t.r),i=ue(t.g),a=ue(t.b),u=oe((.2225045*o+.7168786*i+.0606169*a)/Zt);return o===i&&i===a?n=r=u:(n=oe((.4360747*o+.3850649*i+.1430804*a)/$t),r=oe((.0139322*o+.0971045*i+.7141733*a)/Xt)),new re(116*u-16,500*(n-u),200*(u-r),t.opacity)}function ne(t,e,n,r){return 1===arguments.length?ee(t):new re(t,e,n,null==r?1:r)}function re(t,e,n,r){this.l=+t,this.a=+e,this.b=+n,this.opacity=+r}function oe(t){return t>te?Math.pow(t,1/3):t/Kt+Jt}function ie(t){return t>Qt?t*t*t:Kt*(t-Jt)}function ae(t){return 255*(t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055)}function ue(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function ce(t){if(t instanceof fe)return new fe(t.h,t.c,t.l,t.opacity);if(t instanceof re||(t=ee(t)),0===t.a&&0===t.b)return new fe(NaN,0,t.l,t.opacity);var e=Math.atan2(t.b,t.a)*Ht;return new fe(e<0?e+360:e,Math.sqrt(t.a*t.a+t.b*t.b),t.l,t.opacity)}function se(t,e,n,r){return 1===arguments.length?ce(t):new fe(t,e,n,null==r?1:r)}function fe(t,e,n,r){this.h=+t,this.c=+e,this.l=+n,this.opacity=+r}mt(re,ne,wt(xt,{brighter:function(t){return new re(this.l+18*(null==t?1:t),this.a,this.b,this.opacity)},darker:function(t){return new re(this.l-18*(null==t?1:t),this.a,this.b,this.opacity)},rgb:function(){var t=(this.l+16)/116,e=isNaN(this.a)?t:t+this.a/500,n=isNaN(this.b)?t:t-this.b/200;return new Ut(ae(3.1338561*(e=$t*ie(e))-1.6168667*(t=Zt*ie(t))-.4906146*(n=Xt*ie(n))),ae(-.9787684*e+1.9161415*t+.033454*n),ae(.0719453*e-.2289914*t+1.4052427*n),this.opacity)}})),mt(fe,se,wt(xt,{brighter:function(t){return new fe(this.h,this.c,this.l+18*(null==t?1:t),this.opacity)},darker:function(t){return new fe(this.h,this.c,this.l-18*(null==t?1:t),this.opacity)},rgb:function(){return ee(this).rgb()}}));var le=-.14861,he=1.78277,pe=-.29227,ye=-.90649,ve=1.97294,de=ve*ye,ge=ve*he,_e=he*pe-ye*le;function be(t,e,n,r){return 1===arguments.length?function(t){if(t instanceof me)return new me(t.h,t.s,t.l,t.opacity);t instanceof Ut||(t=zt(t));var e=t.r/255,n=t.g/255,r=t.b/255,o=(_e*r+de*e-ge*n)/(_e+de-ge),i=r-o,a=(ve*(n-o)-pe*i)/ye,u=Math.sqrt(a*a+i*i)/(ve*o*(1-o)),c=u?Math.atan2(a,i)*Ht-120:NaN;return new me(c<0?c+360:c,u,o,t.opacity)}(t):new me(t,e,n,null==r?1:r)}function me(t,e,n,r){this.h=+t,this.s=+e,this.l=+n,this.opacity=+r}function we(t,e,n,r,o){var i=t*t,a=i*t;return((1-3*t+3*i-a)*e+(4-6*i+3*a)*n+(1+3*t+3*i-3*a)*r+a*o)/6}mt(me,be,wt(xt,{brighter:function(t){return t=null==t?1/.7:Math.pow(1/.7,t),new me(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?.7:Math.pow(.7,t),new me(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=isNaN(this.h)?0:(this.h+120)*Yt,e=+this.l,n=isNaN(this.s)?0:this.s*e*(1-e),r=Math.cos(t),o=Math.sin(t);return new Ut(255*(e+n*(le*r+he*o)),255*(e+n*(pe*r+ye*o)),255*(e+n*(ve*r)),this.opacity)}}));var xe=function(t){return function(){return t}};function Oe(t,e){return function(n){return t+n*e}}function Se(t,e){var n=e-t;return n?Oe(t,n>180||n<-180?n-360*Math.round(n/360):n):xe(isNaN(t)?e:t)}function je(t){return 1==(t=+t)?ke: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):xe(isNaN(e)?n:e)}}function ke(t,e){var n=e-t;return n?Oe(t,n):xe(isNaN(t)?e:t)}var Me=function t(e){var n=je(e);function r(t,e){var r=n((t=Ft(t)).r,(e=Ft(e)).r),o=n(t.g,e.g),i=n(t.b,e.b),a=ke(t.opacity,e.opacity);return function(e){return t.r=r(e),t.g=o(e),t.b=i(e),t.opacity=a(e),t+""}}return r.gamma=t,r}(1);function Ee(t){return function(e){var n,r,o=e.length,i=new Array(o),a=new Array(o),u=new Array(o);for(n=0;n<o;++n)r=Ft(e[n]),i[n]=r.r||0,a[n]=r.g||0,u[n]=r.b||0;return i=t(i),a=t(a),u=t(u),r.opacity=1,function(t){return r.r=i(t),r.g=a(t),r.b=u(t),r+""}}}Ee(function(t){var e=t.length-1;return function(n){var r=n<=0?n=0:n>=1?(n=1,e-1):Math.floor(n*e),o=t[r],i=t[r+1],a=r>0?t[r-1]:2*o-i,u=r<e-1?t[r+2]:2*i-o;return we((n-r/e)*e,a,o,i,u)}}),Ee(function(t){var e=t.length;return function(n){var r=Math.floor(((n%=1)<0?++n:n)*e),o=t[(r+e-1)%e],i=t[r%e],a=t[(r+1)%e],u=t[(r+2)%e];return we((n-r/e)*e,o,i,a,u)}});var Pe=function(t,e){return e-=t=+t,function(n){return t+e*n}},Ae=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Le=new RegExp(Ae.source,"g");var Ce,Te,Re,De,Ne=function(t,e){var n,r=typeof e;return null==e||"boolean"===r?xe(e):("number"===r?Pe:"string"===r?(n=Dt(e))?(e=n,Me):function(t,e){var n,r,o,i=Ae.lastIndex=Le.lastIndex=0,a=-1,u=[],c=[];for(t+="",e+="";(n=Ae.exec(t))&&(r=Le.exec(e));)(o=r.index)>i&&(o=e.slice(i,o),u[a]?u[a]+=o:u[++a]=o),(n=n[0])===(r=r[0])?u[a]?u[a]+=r:u[++a]=r:(u[++a]=null,c.push({i:a,x:Pe(n,r)})),i=Le.lastIndex;return i<e.length&&(o=e.slice(i),u[a]?u[a]+=o:u[++a]=o),u.length<2?c[0]?function(t){return function(e){return t(e)+""}}(c[0].x):function(t){return function(){return t}}(e):(e=c.length,function(t){for(var n,r=0;r<e;++r)u[(n=c[r]).i]=n.x(t);return u.join("")})}:e instanceof Dt?Me:e instanceof Date?function(t,e){var n=new Date;return e-=t=+t,function(r){return n.setTime(t+e*r),n}}:Array.isArray(e)?function(t,e){var n,r=e?e.length:0,o=t?Math.min(r,t.length):0,i=new Array(o),a=new Array(r);for(n=0;n<o;++n)i[n]=Ne(t[n],e[n]);for(;n<r;++n)a[n]=e[n];return function(t){for(n=0;n<o;++n)a[n]=i[n](t);return a}}:"function"!=typeof e.valueOf&&"function"!=typeof e.toString||isNaN(e)?function(t,e){var n,r={},o={};for(n in null!==t&&"object"==typeof t||(t={}),null!==e&&"object"==typeof e||(e={}),e)n in t?r[n]=Ne(t[n],e[n]):o[n]=e[n];return function(t){for(n in r)o[n]=r[n](t);return o}}:Pe)(t,e)},Ie=function(t,e){return e-=t=+t,function(n){return Math.round(t+e*n)}},ze=180/Math.PI,Fe={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1},Ue=function(t,e,n,r,o,i){var a,u,c;return(a=Math.sqrt(t*t+e*e))&&(t/=a,e/=a),(c=t*n+e*r)&&(n-=t*c,r-=e*c),(u=Math.sqrt(n*n+r*r))&&(n/=u,r/=u,c/=u),t*r<e*n&&(t=-t,e=-e,c=-c,a=-a),{translateX:o,translateY:i,rotate:Math.atan2(e,t)*ze,skewX:Math.atan(c)*ze,scaleX:a,scaleY:u}};function Be(t,e,n,r){function o(t){return t.length?t.pop()+" ":""}return function(i,a){var u=[],c=[];return i=t(i),a=t(a),function(t,r,o,i,a,u){if(t!==o||r!==i){var c=a.push("translate(",null,e,null,n);u.push({i:c-4,x:Pe(t,o)},{i:c-2,x:Pe(r,i)})}else(o||i)&&a.push("translate("+o+e+i+n)}(i.translateX,i.translateY,a.translateX,a.translateY,u,c),function(t,e,n,i){t!==e?(t-e>180?e+=360:e-t>180&&(t+=360),i.push({i:n.push(o(n)+"rotate(",null,r)-2,x:Pe(t,e)})):e&&n.push(o(n)+"rotate("+e+r)}(i.rotate,a.rotate,u,c),function(t,e,n,i){t!==e?i.push({i:n.push(o(n)+"skewX(",null,r)-2,x:Pe(t,e)}):e&&n.push(o(n)+"skewX("+e+r)}(i.skewX,a.skewX,u,c),function(t,e,n,r,i,a){if(t!==n||e!==r){var u=i.push(o(i)+"scale(",null,",",null,")");a.push({i:u-4,x:Pe(t,n)},{i:u-2,x:Pe(e,r)})}else 1===n&&1===r||i.push(o(i)+"scale("+n+","+r+")")}(i.scaleX,i.scaleY,a.scaleX,a.scaleY,u,c),i=a=null,function(t){for(var e,n=-1,r=c.length;++n<r;)u[(e=c[n]).i]=e.x(t);return u.join("")}}}Be(function(t){return"none"===t?Fe:(Ce||(Ce=document.createElement("DIV"),Te=document.documentElement,Re=document.defaultView),Ce.style.transform=t,t=Re.getComputedStyle(Te.appendChild(Ce),null).getPropertyValue("transform"),Te.removeChild(Ce),t=t.slice(7,-1).split(","),Ue(+t[0],+t[1],+t[2],+t[3],+t[4],+t[5]))},"px, ","px)","deg)"),Be(function(t){return null==t?Fe:(De||(De=document.createElementNS("http://www.w3.org/2000/svg","g")),De.setAttribute("transform",t),(t=De.transform.baseVal.consolidate())?(t=t.matrix,Ue(t.a,t.b,t.c,t.d,t.e,t.f)):Fe)},", ",")",")"),Math.SQRT2;function qe(t){return function(e,n){var r=t((e=Vt(e)).h,(n=Vt(n)).h),o=ke(e.s,n.s),i=ke(e.l,n.l),a=ke(e.opacity,n.opacity);return function(t){return e.h=r(t),e.s=o(t),e.l=i(t),e.opacity=a(t),e+""}}}qe(Se),qe(ke);function Ve(t){return function(e,n){var r=t((e=se(e)).h,(n=se(n)).h),o=ke(e.c,n.c),i=ke(e.l,n.l),a=ke(e.opacity,n.opacity);return function(t){return e.h=r(t),e.c=o(t),e.l=i(t),e.opacity=a(t),e+""}}}Ve(Se),Ve(ke);function We(t){return function e(n){function r(e,r){var o=t((e=be(e)).h,(r=be(r)).h),i=ke(e.s,r.s),a=ke(e.l,r.l),u=ke(e.opacity,r.opacity);return function(t){return e.h=o(t),e.s=i(t),e.l=a(Math.pow(t,n)),e.opacity=u(t),e+""}}return n=+n,r.gamma=e,r}(1)}We(Se),We(ke);var Ge=function(t){return function(){return t}},Ye=function(t){return+t},He=[0,1];function $e(t,e){return(e-=t=+t)?function(n){return(n-t)/e}:Ge(e)}function Ze(t,e,n,r){var o=t[0],i=t[1],a=e[0],u=e[1];return i<o?(o=n(i,o),a=r(u,a)):(o=n(o,i),a=r(a,u)),function(t){return a(o(t))}}function Xe(t,e,n,r){var o=Math.min(t.length,e.length)-1,i=new Array(o),a=new Array(o),u=-1;for(t[o]<t[0]&&(t=t.slice().reverse(),e=e.slice().reverse());++u<o;)i[u]=n(t[u],t[u+1]),a[u]=r(e[u],e[u+1]);return function(e){var n=X(t,e,1,o)-1;return a[n](i[n](e))}}function Je(t,e){return e.domain(t.domain()).range(t.range()).interpolate(t.interpolate()).clamp(t.clamp())}function Qe(t,e){var n,r,o,i=He,a=He,u=Ne,c=!1;function s(){return n=Math.min(i.length,a.length)>2?Xe:Ze,r=o=null,f}function f(e){return(r||(r=n(i,a,c?function(t){return function(e,n){var r=t(e=+e,n=+n);return function(t){return t<=e?0:t>=n?1:r(t)}}}(t):t,u)))(+e)}return f.invert=function(t){return(o||(o=n(a,i,$e,c?function(t){return function(e,n){var r=t(e=+e,n=+n);return function(t){return t<=0?e:t>=1?n:r(t)}}}(e):e)))(+t)},f.domain=function(t){return arguments.length?(i=yt.call(t,Ye),s()):i.slice()},f.range=function(t){return arguments.length?(a=vt.call(t),s()):a.slice()},f.rangeRound=function(t){return a=vt.call(t),u=Ie,s()},f.clamp=function(t){return arguments.length?(c=!!t,s()):c},f.interpolate=function(t){return arguments.length?(u=t,s()):u},s()}var Ke=function(t,e){if((n=(t=e?t.toExponential(e-1):t.toExponential()).indexOf("e"))<0)return null;var n,r=t.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+t.slice(n+1)]},tn=function(t){return(t=Ke(Math.abs(t)))?t[1]:NaN},en=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function nn(t){return new rn(t)}function rn(t){if(!(e=en.exec(t)))throw new Error("invalid format: "+t);var e;this.fill=e[1]||" ",this.align=e[2]||">",this.sign=e[3]||"-",this.symbol=e[4]||"",this.zero=!!e[5],this.width=e[6]&&+e[6],this.comma=!!e[7],this.precision=e[8]&&+e[8].slice(1),this.trim=!!e[9],this.type=e[10]||""}nn.prototype=rn.prototype,rn.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(null==this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(null==this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type};var on,an,un,cn,sn=function(t){t:for(var e,n=t.length,r=1,o=-1;r<n;++r)switch(t[r]){case".":o=e=r;break;case"0":0===o&&(o=r),e=r;break;default:if(o>0){if(!+t[r])break t;o=0}}return o>0?t.slice(0,o)+t.slice(e+1):t},fn=function(t,e){var n=Ke(t,e);if(!n)return t+"";var r=n[0],o=n[1];return o<0?"0."+new Array(-o).join("0")+r:r.length>o+1?r.slice(0,o+1)+"."+r.slice(o+1):r+new Array(o-r.length+2).join("0")},ln={"%":function(t,e){return(100*t).toFixed(e)},b:function(t){return Math.round(t).toString(2)},c:function(t){return t+""},d:function(t){return Math.round(t).toString(10)},e:function(t,e){return t.toExponential(e)},f:function(t,e){return t.toFixed(e)},g:function(t,e){return t.toPrecision(e)},o:function(t){return Math.round(t).toString(8)},p:function(t,e){return fn(100*t,e)},r:fn,s:function(t,e){var n=Ke(t,e);if(!n)return t+"";var r=n[0],o=n[1],i=o-(on=3*Math.max(-8,Math.min(8,Math.floor(o/3))))+1,a=r.length;return i===a?r:i>a?r+new Array(i-a+1).join("0"):i>0?r.slice(0,i)+"."+r.slice(i):"0."+new Array(1-i).join("0")+Ke(t,Math.max(0,e+i-1))[0]},X:function(t){return Math.round(t).toString(16).toUpperCase()},x:function(t){return Math.round(t).toString(16)}},hn=function(t){return t},pn=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];an=function(t){var e,n,r=t.grouping&&t.thousands?(e=t.grouping,n=t.thousands,function(t,r){for(var o=t.length,i=[],a=0,u=e[0],c=0;o>0&&u>0&&(c+u+1>r&&(u=Math.max(1,r-c)),i.push(t.substring(o-=u,o+u)),!((c+=u+1)>r));)u=e[a=(a+1)%e.length];return i.reverse().join(n)}):hn,o=t.currency,i=t.decimal,a=t.numerals?function(t){return function(e){return e.replace(/[0-9]/g,function(e){return t[+e]})}}(t.numerals):hn,u=t.percent||"%";function c(t){var e=(t=nn(t)).fill,n=t.align,c=t.sign,s=t.symbol,f=t.zero,l=t.width,h=t.comma,p=t.precision,y=t.trim,v=t.type;"n"===v?(h=!0,v="g"):ln[v]||(null==p&&(p=12),y=!0,v="g"),(f||"0"===e&&"="===n)&&(f=!0,e="0",n="=");var d="$"===s?o[0]:"#"===s&&/[boxX]/.test(v)?"0"+v.toLowerCase():"",g="$"===s?o[1]:/[%p]/.test(v)?u:"",_=ln[v],b=/[defgprs%]/.test(v);function m(t){var o,u,s,m=d,w=g;if("c"===v)w=_(t)+w,t="";else{var x=(t=+t)<0;if(t=_(Math.abs(t),p),y&&(t=sn(t)),x&&0==+t&&(x=!1),m=(x?"("===c?c:"-":"-"===c||"("===c?"":c)+m,w=("s"===v?pn[8+on/3]:"")+w+(x&&"("===c?")":""),b)for(o=-1,u=t.length;++o<u;)if(48>(s=t.charCodeAt(o))||s>57){w=(46===s?i+t.slice(o+1):t.slice(o))+w,t=t.slice(0,o);break}}h&&!f&&(t=r(t,1/0));var O=m.length+t.length+w.length,S=O<l?new Array(l-O+1).join(e):"";switch(h&&f&&(t=r(S+t,S.length?l-w.length:1/0),S=""),n){case"<":t=m+t+w+S;break;case"=":t=m+S+t+w;break;case"^":t=S.slice(0,O=S.length>>1)+m+t+w+S.slice(O);break;default:t=S+m+t+w}return a(t)}return p=null==p?6:/[gprs]/.test(v)?Math.max(1,Math.min(21,p)):Math.max(0,Math.min(20,p)),m.toString=function(){return t+""},m}return{format:c,formatPrefix:function(t,e){var n=c(((t=nn(t)).type="f",t)),r=3*Math.max(-8,Math.min(8,Math.floor(tn(e)/3))),o=Math.pow(10,-r),i=pn[8+r/3];return function(t){return n(o*t)+i}}}}({decimal:".",thousands:",",grouping:[3],currency:["$",""]}),un=an.format,cn=an.formatPrefix;var yn=function(t,e,n){var r,o=t[0],i=t[t.length-1],a=it(o,i,null==e?10:e);switch((n=nn(null==n?",f":n)).type){case"s":var u=Math.max(Math.abs(o),Math.abs(i));return null!=n.precision||isNaN(r=function(t,e){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(tn(e)/3)))-tn(Math.abs(t)))}(a,u))||(n.precision=r),cn(n,u);case"":case"e":case"g":case"p":case"r":null!=n.precision||isNaN(r=function(t,e){return t=Math.abs(t),e=Math.abs(e)-t,Math.max(0,tn(e)-tn(t))+1}(a,Math.max(Math.abs(o),Math.abs(i))))||(n.precision=r-("e"===n.type));break;case"f":case"%":null!=n.precision||isNaN(r=function(t){return Math.max(0,-tn(Math.abs(t)))}(a))||(n.precision=r-2*("%"===n.type))}return un(n)};function vn(t){var e=t.domain;return t.ticks=function(t){var n=e();return rt(n[0],n[n.length-1],null==t?10:t)},t.tickFormat=function(t,n){return yn(e(),t,n)},t.nice=function(n){null==n&&(n=10);var r,o=e(),i=0,a=o.length-1,u=o[i],c=o[a];return c<u&&(r=u,u=c,c=r,r=i,i=a,a=r),(r=ot(u,c,n))>0?r=ot(u=Math.floor(u/r)*r,c=Math.ceil(c/r)*r,n):r<0&&(r=ot(u=Math.ceil(u*r)/r,c=Math.floor(c*r)/r,n)),r>0?(o[i]=Math.floor(u/r)*r,o[a]=Math.ceil(c/r)*r,e(o)):r<0&&(o[i]=Math.ceil(u*r)/r,o[a]=Math.floor(c*r)/r,e(o)),t},t}function dn(){var t=Qe($e,Pe);return t.copy=function(){return Je(t,dn())},vn(t)}function gn(){var t=[0,1];function e(t){return+t}return e.invert=e,e.domain=e.range=function(n){return arguments.length?(t=yt.call(n,Ye),e):t.slice()},e.copy=function(){return gn().domain(t)},vn(e)}var _n=function(t,e){var n,r=0,o=(t=t.slice()).length-1,i=t[r],a=t[o];return a<i&&(n=r,r=o,o=n,n=i,i=a,a=n),t[r]=e.floor(i),t[o]=e.ceil(a),t};function bn(t,e){return(e=Math.log(e/t))?function(n){return Math.log(n/t)/e}:Ge(e)}function mn(t,e){return t<0?function(n){return-Math.pow(-e,n)*Math.pow(-t,1-n)}:function(n){return Math.pow(e,n)*Math.pow(t,1-n)}}function wn(t){return isFinite(t)?+("1e"+t):t<0?0:t}function xn(t){return 10===t?wn:t===Math.E?Math.exp:function(e){return Math.pow(t,e)}}function On(t){return t===Math.E?Math.log:10===t&&Math.log10||2===t&&Math.log2||(t=Math.log(t),function(e){return Math.log(e)/t})}function Sn(t){return function(e){return-t(-e)}}function jn(){var t=Qe(bn,mn).domain([1,10]),e=t.domain,n=10,r=On(10),o=xn(10);function i(){return r=On(n),o=xn(n),e()[0]<0&&(r=Sn(r),o=Sn(o)),t}return t.base=function(t){return arguments.length?(n=+t,i()):n},t.domain=function(t){return arguments.length?(e(t),i()):e()},t.ticks=function(t){var i,a=e(),u=a[0],c=a[a.length-1];(i=c<u)&&(h=u,u=c,c=h);var s,f,l,h=r(u),p=r(c),y=null==t?10:+t,v=[];if(!(n%1)&&p-h<y){if(h=Math.round(h)-1,p=Math.round(p)+1,u>0){for(;h<p;++h)for(f=1,s=o(h);f<n;++f)if(!((l=s*f)<u)){if(l>c)break;v.push(l)}}else for(;h<p;++h)for(f=n-1,s=o(h);f>=1;--f)if(!((l=s*f)<u)){if(l>c)break;v.push(l)}}else v=rt(h,p,Math.min(p-h,y)).map(o);return i?v.reverse():v},t.tickFormat=function(e,i){if(null==i&&(i=10===n?".0e":","),"function"!=typeof i&&(i=un(i)),e===1/0)return i;null==e&&(e=10);var a=Math.max(1,n*e/t.ticks().length);return function(t){var e=t/o(Math.round(r(t)));return e*n<n-.5&&(e*=n),e<=a?i(t):""}},t.nice=function(){return e(_n(e(),{floor:function(t){return o(Math.floor(r(t)))},ceil:function(t){return o(Math.ceil(r(t)))}}))},t.copy=function(){return Je(t,jn().base(n))},t}function kn(t,e){return t<0?-Math.pow(-t,e):Math.pow(t,e)}function Mn(){var t=1,e=Qe(function(e,n){return(n=kn(n,t)-(e=kn(e,t)))?function(r){return(kn(r,t)-e)/n}:Ge(n)},function(e,n){return n=kn(n,t)-(e=kn(e,t)),function(r){return kn(e+n*r,1/t)}}),n=e.domain;return e.exponent=function(e){return arguments.length?(t=+e,n(n())):t},e.copy=function(){return Je(e,Mn().exponent(t))},vn(e)}function En(){return Mn().exponent(.5)}function Pn(){var t=[],e=[],n=[];function r(){var r=0,i=Math.max(1,e.length);for(n=new Array(i-1);++r<i;)n[r-1]=at(t,r/i);return o}function o(t){if(!isNaN(t=+t))return e[X(n,t)]}return o.invertExtent=function(r){var o=e.indexOf(r);return o<0?[NaN,NaN]:[o>0?n[o-1]:t[0],o<n.length?n[o]:t[t.length-1]]},o.domain=function(e){if(!arguments.length)return t.slice();t=[];for(var n,o=0,i=e.length;o<i;++o)null==(n=e[o])||isNaN(n=+n)||t.push(n);return t.sort(Y),r()},o.range=function(t){return arguments.length?(e=vt.call(t),r()):e.slice()},o.quantiles=function(){return n.slice()},o.copy=function(){return Pn().domain(t).range(e)},o}function An(){var t=0,e=1,n=1,r=[.5],o=[0,1];function i(t){if(t<=t)return o[X(r,t,0,n)]}function a(){var o=-1;for(r=new Array(n);++o<n;)r[o]=((o+1)*e-(o-n)*t)/(n+1);return i}return i.domain=function(n){return arguments.length?(t=+n[0],e=+n[1],a()):[t,e]},i.range=function(t){return arguments.length?(n=(o=vt.call(t)).length-1,a()):o.slice()},i.invertExtent=function(i){var a=o.indexOf(i);return a<0?[NaN,NaN]:a<1?[t,r[0]]:a>=n?[r[n-1],e]:[r[a-1],r[a]]},i.copy=function(){return An().domain([t,e]).range(o)},vn(i)}function Ln(){var t=[.5],e=[0,1],n=1;function r(r){if(r<=r)return e[X(t,r,0,n)]}return r.domain=function(o){return arguments.length?(t=vt.call(o),n=Math.min(t.length,e.length-1),r):t.slice()},r.range=function(o){return arguments.length?(e=vt.call(o),n=Math.min(t.length,e.length-1),r):e.slice()},r.invertExtent=function(n){var r=e.indexOf(n);return[t[r-1],t[r]]},r.copy=function(){return Ln().domain(t).range(e)},r}var Cn=new Date,Tn=new Date;function Rn(t,e,n,r){function o(e){return t(e=new Date(+e)),e}return o.floor=o,o.ceil=function(n){return t(n=new Date(n-1)),e(n,1),t(n),n},o.round=function(t){var e=o(t),n=o.ceil(t);return t-e<n-t?e:n},o.offset=function(t,n){return e(t=new Date(+t),null==n?1:Math.floor(n)),t},o.range=function(n,r,i){var a,u=[];if(n=o.ceil(n),i=null==i?1:Math.floor(i),!(n<r&&i>0))return u;do{u.push(a=new Date(+n)),e(n,i),t(n)}while(a<n&&n<r);return u},o.filter=function(n){return Rn(function(e){if(e>=e)for(;t(e),!n(e);)e.setTime(e-1)},function(t,r){if(t>=t)if(r<0)for(;++r<=0;)for(;e(t,-1),!n(t););else for(;--r>=0;)for(;e(t,1),!n(t););})},n&&(o.count=function(e,r){return Cn.setTime(+e),Tn.setTime(+r),t(Cn),t(Tn),Math.floor(n(Cn,Tn))},o.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?o.filter(r?function(e){return r(e)%t==0}:function(e){return o.count(0,e)%t==0}):o:null}),o}var Dn=Rn(function(){},function(t,e){t.setTime(+t+e)},function(t,e){return e-t});Dn.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?Rn(function(e){e.setTime(Math.floor(e/t)*t)},function(e,n){e.setTime(+e+n*t)},function(e,n){return(n-e)/t}):Dn:null};var Nn=Dn,In=(Dn.range,6e4),zn=6048e5,Fn=Rn(function(t){t.setTime(1e3*Math.floor(t/1e3))},function(t,e){t.setTime(+t+1e3*e)},function(t,e){return(e-t)/1e3},function(t){return t.getUTCSeconds()}),Un=Fn,Bn=(Fn.range,Rn(function(t){t.setTime(Math.floor(t/In)*In)},function(t,e){t.setTime(+t+e*In)},function(t,e){return(e-t)/In},function(t){return t.getMinutes()})),qn=Bn,Vn=(Bn.range,Rn(function(t){var e=t.getTimezoneOffset()*In%36e5;e<0&&(e+=36e5),t.setTime(36e5*Math.floor((+t-e)/36e5)+e)},function(t,e){t.setTime(+t+36e5*e)},function(t,e){return(e-t)/36e5},function(t){return t.getHours()})),Wn=Vn,Gn=(Vn.range,Rn(function(t){t.setHours(0,0,0,0)},function(t,e){t.setDate(t.getDate()+e)},function(t,e){return(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*In)/864e5},function(t){return t.getDate()-1})),Yn=Gn;Gn.range;function Hn(t){return Rn(function(e){e.setDate(e.getDate()-(e.getDay()+7-t)%7),e.setHours(0,0,0,0)},function(t,e){t.setDate(t.getDate()+7*e)},function(t,e){return(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*In)/zn})}var $n=Hn(0),Zn=Hn(1),Xn=Hn(2),Jn=Hn(3),Qn=Hn(4),Kn=Hn(5),tr=Hn(6),er=($n.range,Zn.range,Xn.range,Jn.range,Qn.range,Kn.range,tr.range,Rn(function(t){t.setDate(1),t.setHours(0,0,0,0)},function(t,e){t.setMonth(t.getMonth()+e)},function(t,e){return e.getMonth()-t.getMonth()+12*(e.getFullYear()-t.getFullYear())},function(t){return t.getMonth()})),nr=er,rr=(er.range,Rn(function(t){t.setMonth(0,1),t.setHours(0,0,0,0)},function(t,e){t.setFullYear(t.getFullYear()+e)},function(t,e){return e.getFullYear()-t.getFullYear()},function(t){return t.getFullYear()}));rr.every=function(t){return isFinite(t=Math.floor(t))&&t>0?Rn(function(e){e.setFullYear(Math.floor(e.getFullYear()/t)*t),e.setMonth(0,1),e.setHours(0,0,0,0)},function(e,n){e.setFullYear(e.getFullYear()+n*t)}):null};var or=rr,ir=(rr.range,Rn(function(t){t.setUTCSeconds(0,0)},function(t,e){t.setTime(+t+e*In)},function(t,e){return(e-t)/In},function(t){return t.getUTCMinutes()})),ar=ir,ur=(ir.range,Rn(function(t){t.setUTCMinutes(0,0,0)},function(t,e){t.setTime(+t+36e5*e)},function(t,e){return(e-t)/36e5},function(t){return t.getUTCHours()})),cr=ur,sr=(ur.range,Rn(function(t){t.setUTCHours(0,0,0,0)},function(t,e){t.setUTCDate(t.getUTCDate()+e)},function(t,e){return(e-t)/864e5},function(t){return t.getUTCDate()-1})),fr=sr;sr.range;function lr(t){return Rn(function(e){e.setUTCDate(e.getUTCDate()-(e.getUTCDay()+7-t)%7),e.setUTCHours(0,0,0,0)},function(t,e){t.setUTCDate(t.getUTCDate()+7*e)},function(t,e){return(e-t)/zn})}var hr=lr(0),pr=lr(1),yr=lr(2),vr=lr(3),dr=lr(4),gr=lr(5),_r=lr(6),br=(hr.range,pr.range,yr.range,vr.range,dr.range,gr.range,_r.range,Rn(function(t){t.setUTCDate(1),t.setUTCHours(0,0,0,0)},function(t,e){t.setUTCMonth(t.getUTCMonth()+e)},function(t,e){return e.getUTCMonth()-t.getUTCMonth()+12*(e.getUTCFullYear()-t.getUTCFullYear())},function(t){return t.getUTCMonth()})),mr=br,wr=(br.range,Rn(function(t){t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},function(t,e){t.setUTCFullYear(t.getUTCFullYear()+e)},function(t,e){return e.getUTCFullYear()-t.getUTCFullYear()},function(t){return t.getUTCFullYear()}));wr.every=function(t){return isFinite(t=Math.floor(t))&&t>0?Rn(function(e){e.setUTCFullYear(Math.floor(e.getUTCFullYear()/t)*t),e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},function(e,n){e.setUTCFullYear(e.getUTCFullYear()+n*t)}):null};var xr=wr;wr.range;function Or(t){if(0<=t.y&&t.y<100){var e=new Date(-1,t.m,t.d,t.H,t.M,t.S,t.L);return e.setFullYear(t.y),e}return new Date(t.y,t.m,t.d,t.H,t.M,t.S,t.L)}function Sr(t){if(0<=t.y&&t.y<100){var e=new Date(Date.UTC(-1,t.m,t.d,t.H,t.M,t.S,t.L));return e.setUTCFullYear(t.y),e}return new Date(Date.UTC(t.y,t.m,t.d,t.H,t.M,t.S,t.L))}function jr(t){return{y:t,m:0,d:1,H:0,M:0,S:0,L:0}}var kr,Mr,Er,Pr,Ar={"-":"",_:" ",0:"0"},Lr=/^\s*\d+/,Cr=/^%/,Tr=/[\\^$*+?|[\]().{}]/g;function Rr(t,e,n){var r=t<0?"-":"",o=(r?-t:t)+"",i=o.length;return r+(i<n?new Array(n-i+1).join(e)+o:o)}function Dr(t){return t.replace(Tr,"\\$&")}function Nr(t){return new RegExp("^(?:"+t.map(Dr).join("|")+")","i")}function Ir(t){for(var e={},n=-1,r=t.length;++n<r;)e[t[n].toLowerCase()]=n;return e}function zr(t,e,n){var r=Lr.exec(e.slice(n,n+1));return r?(t.w=+r[0],n+r[0].length):-1}function Fr(t,e,n){var r=Lr.exec(e.slice(n,n+1));return r?(t.u=+r[0],n+r[0].length):-1}function Ur(t,e,n){var r=Lr.exec(e.slice(n,n+2));return r?(t.U=+r[0],n+r[0].length):-1}function Br(t,e,n){var r=Lr.exec(e.slice(n,n+2));return r?(t.V=+r[0],n+r[0].length):-1}function qr(t,e,n){var r=Lr.exec(e.slice(n,n+2));return r?(t.W=+r[0],n+r[0].length):-1}function Vr(t,e,n){var r=Lr.exec(e.slice(n,n+4));return r?(t.y=+r[0],n+r[0].length):-1}function Wr(t,e,n){var r=Lr.exec(e.slice(n,n+2));return r?(t.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function Gr(t,e,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(e.slice(n,n+6));return r?(t.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function Yr(t,e,n){var r=Lr.exec(e.slice(n,n+2));return r?(t.m=r[0]-1,n+r[0].length):-1}function Hr(t,e,n){var r=Lr.exec(e.slice(n,n+2));return r?(t.d=+r[0],n+r[0].length):-1}function $r(t,e,n){var r=Lr.exec(e.slice(n,n+3));return r?(t.m=0,t.d=+r[0],n+r[0].length):-1}function Zr(t,e,n){var r=Lr.exec(e.slice(n,n+2));return r?(t.H=+r[0],n+r[0].length):-1}function Xr(t,e,n){var r=Lr.exec(e.slice(n,n+2));return r?(t.M=+r[0],n+r[0].length):-1}function Jr(t,e,n){var r=Lr.exec(e.slice(n,n+2));return r?(t.S=+r[0],n+r[0].length):-1}function Qr(t,e,n){var r=Lr.exec(e.slice(n,n+3));return r?(t.L=+r[0],n+r[0].length):-1}function Kr(t,e,n){var r=Lr.exec(e.slice(n,n+6));return r?(t.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function to(t,e,n){var r=Cr.exec(e.slice(n,n+1));return r?n+r[0].length:-1}function eo(t,e,n){var r=Lr.exec(e.slice(n));return r?(t.Q=+r[0],n+r[0].length):-1}function no(t,e,n){var r=Lr.exec(e.slice(n));return r?(t.Q=1e3*+r[0],n+r[0].length):-1}function ro(t,e){return Rr(t.getDate(),e,2)}function oo(t,e){return Rr(t.getHours(),e,2)}function io(t,e){return Rr(t.getHours()%12||12,e,2)}function ao(t,e){return Rr(1+Yn.count(or(t),t),e,3)}function uo(t,e){return Rr(t.getMilliseconds(),e,3)}function co(t,e){return uo(t,e)+"000"}function so(t,e){return Rr(t.getMonth()+1,e,2)}function fo(t,e){return Rr(t.getMinutes(),e,2)}function lo(t,e){return Rr(t.getSeconds(),e,2)}function ho(t){var e=t.getDay();return 0===e?7:e}function po(t,e){return Rr($n.count(or(t),t),e,2)}function yo(t,e){var n=t.getDay();return t=n>=4||0===n?Qn(t):Qn.ceil(t),Rr(Qn.count(or(t),t)+(4===or(t).getDay()),e,2)}function vo(t){return t.getDay()}function go(t,e){return Rr(Zn.count(or(t),t),e,2)}function _o(t,e){return Rr(t.getFullYear()%100,e,2)}function bo(t,e){return Rr(t.getFullYear()%1e4,e,4)}function mo(t){var e=t.getTimezoneOffset();return(e>0?"-":(e*=-1,"+"))+Rr(e/60|0,"0",2)+Rr(e%60,"0",2)}function wo(t,e){return Rr(t.getUTCDate(),e,2)}function xo(t,e){return Rr(t.getUTCHours(),e,2)}function Oo(t,e){return Rr(t.getUTCHours()%12||12,e,2)}function So(t,e){return Rr(1+fr.count(xr(t),t),e,3)}function jo(t,e){return Rr(t.getUTCMilliseconds(),e,3)}function ko(t,e){return jo(t,e)+"000"}function Mo(t,e){return Rr(t.getUTCMonth()+1,e,2)}function Eo(t,e){return Rr(t.getUTCMinutes(),e,2)}function Po(t,e){return Rr(t.getUTCSeconds(),e,2)}function Ao(t){var e=t.getUTCDay();return 0===e?7:e}function Lo(t,e){return Rr(hr.count(xr(t),t),e,2)}function Co(t,e){var n=t.getUTCDay();return t=n>=4||0===n?dr(t):dr.ceil(t),Rr(dr.count(xr(t),t)+(4===xr(t).getUTCDay()),e,2)}function To(t){return t.getUTCDay()}function Ro(t,e){return Rr(pr.count(xr(t),t),e,2)}function Do(t,e){return Rr(t.getUTCFullYear()%100,e,2)}function No(t,e){return Rr(t.getUTCFullYear()%1e4,e,4)}function Io(){return"+0000"}function zo(){return"%"}function Fo(t){return+t}function Uo(t){return Math.floor(+t/1e3)}!function(t){kr=function(t){var e=t.dateTime,n=t.date,r=t.time,o=t.periods,i=t.days,a=t.shortDays,u=t.months,c=t.shortMonths,s=Nr(o),f=Ir(o),l=Nr(i),h=Ir(i),p=Nr(a),y=Ir(a),v=Nr(u),d=Ir(u),g=Nr(c),_=Ir(c),b={a:function(t){return a[t.getDay()]},A:function(t){return i[t.getDay()]},b:function(t){return c[t.getMonth()]},B:function(t){return u[t.getMonth()]},c:null,d:ro,e:ro,f:co,H:oo,I:io,j:ao,L:uo,m:so,M:fo,p:function(t){return o[+(t.getHours()>=12)]},Q:Fo,s:Uo,S:lo,u:ho,U:po,V:yo,w:vo,W:go,x:null,X:null,y:_o,Y:bo,Z:mo,"%":zo},m={a:function(t){return a[t.getUTCDay()]},A:function(t){return i[t.getUTCDay()]},b:function(t){return c[t.getUTCMonth()]},B:function(t){return u[t.getUTCMonth()]},c:null,d:wo,e:wo,f:ko,H:xo,I:Oo,j:So,L:jo,m:Mo,M:Eo,p:function(t){return o[+(t.getUTCHours()>=12)]},Q:Fo,s:Uo,S:Po,u:Ao,U:Lo,V:Co,w:To,W:Ro,x:null,X:null,y:Do,Y:No,Z:Io,"%":zo},w={a:function(t,e,n){var r=p.exec(e.slice(n));return r?(t.w=y[r[0].toLowerCase()],n+r[0].length):-1},A:function(t,e,n){var r=l.exec(e.slice(n));return r?(t.w=h[r[0].toLowerCase()],n+r[0].length):-1},b:function(t,e,n){var r=g.exec(e.slice(n));return r?(t.m=_[r[0].toLowerCase()],n+r[0].length):-1},B:function(t,e,n){var r=v.exec(e.slice(n));return r?(t.m=d[r[0].toLowerCase()],n+r[0].length):-1},c:function(t,n,r){return S(t,e,n,r)},d:Hr,e:Hr,f:Kr,H:Zr,I:Zr,j:$r,L:Qr,m:Yr,M:Xr,p:function(t,e,n){var r=s.exec(e.slice(n));return r?(t.p=f[r[0].toLowerCase()],n+r[0].length):-1},Q:eo,s:no,S:Jr,u:Fr,U:Ur,V:Br,w:zr,W:qr,x:function(t,e,r){return S(t,n,e,r)},X:function(t,e,n){return S(t,r,e,n)},y:Wr,Y:Vr,Z:Gr,"%":to};function x(t,e){return function(n){var r,o,i,a=[],u=-1,c=0,s=t.length;for(n instanceof Date||(n=new Date(+n));++u<s;)37===t.charCodeAt(u)&&(a.push(t.slice(c,u)),null!=(o=Ar[r=t.charAt(++u)])?r=t.charAt(++u):o="e"===r?" ":"0",(i=e[r])&&(r=i(n,o)),a.push(r),c=u+1);return a.push(t.slice(c,u)),a.join("")}}function O(t,e){return function(n){var r,o,i=jr(1900);if(S(i,t,n+="",0)!=n.length)return null;if("Q"in i)return new Date(i.Q);if("p"in i&&(i.H=i.H%12+12*i.p),"V"in i){if(i.V<1||i.V>53)return null;"w"in i||(i.w=1),"Z"in i?(o=(r=Sr(jr(i.y))).getUTCDay(),r=o>4||0===o?pr.ceil(r):pr(r),r=fr.offset(r,7*(i.V-1)),i.y=r.getUTCFullYear(),i.m=r.getUTCMonth(),i.d=r.getUTCDate()+(i.w+6)%7):(o=(r=e(jr(i.y))).getDay(),r=o>4||0===o?Zn.ceil(r):Zn(r),r=Yn.offset(r,7*(i.V-1)),i.y=r.getFullYear(),i.m=r.getMonth(),i.d=r.getDate()+(i.w+6)%7)}else("W"in i||"U"in i)&&("w"in i||(i.w="u"in i?i.u%7:"W"in i?1:0),o="Z"in i?Sr(jr(i.y)).getUTCDay():e(jr(i.y)).getDay(),i.m=0,i.d="W"in i?(i.w+6)%7+7*i.W-(o+5)%7:i.w+7*i.U-(o+6)%7);return"Z"in i?(i.H+=i.Z/100|0,i.M+=i.Z%100,Sr(i)):e(i)}}function S(t,e,n,r){for(var o,i,a=0,u=e.length,c=n.length;a<u;){if(r>=c)return-1;if(37===(o=e.charCodeAt(a++))){if(o=e.charAt(a++),!(i=w[o in Ar?e.charAt(a++):o])||(r=i(t,n,r))<0)return-1}else if(o!=n.charCodeAt(r++))return-1}return r}return b.x=x(n,b),b.X=x(r,b),b.c=x(e,b),m.x=x(n,m),m.X=x(r,m),m.c=x(e,m),{format:function(t){var e=x(t+="",b);return e.toString=function(){return t},e},parse:function(t){var e=O(t+="",Or);return e.toString=function(){return t},e},utcFormat:function(t){var e=x(t+="",m);return e.toString=function(){return t},e},utcParse:function(t){var e=O(t,Sr);return e.toString=function(){return t},e}}}(t),Mr=kr.format,kr.parse,Er=kr.utcFormat,Pr=kr.utcParse}({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});Date.prototype.toISOString||Er("%Y-%m-%dT%H:%M:%S.%LZ");+new Date("2000-01-01T00:00:00.000Z")||Pr("%Y-%m-%dT%H:%M:%S.%LZ");var Bo=1e3,qo=60*Bo,Vo=60*qo,Wo=24*Vo,Go=7*Wo,Yo=30*Wo,Ho=365*Wo;function $o(t){return new Date(t)}function Zo(t){return t instanceof Date?+t:+new Date(+t)}function Xo(t,e,n,r,o,i,a,u,c){var s=Qe($e,Pe),f=s.invert,l=s.domain,h=c(".%L"),p=c(":%S"),y=c("%I:%M"),v=c("%I %p"),d=c("%a %d"),g=c("%b %d"),_=c("%B"),b=c("%Y"),m=[[a,1,Bo],[a,5,5*Bo],[a,15,15*Bo],[a,30,30*Bo],[i,1,qo],[i,5,5*qo],[i,15,15*qo],[i,30,30*qo],[o,1,Vo],[o,3,3*Vo],[o,6,6*Vo],[o,12,12*Vo],[r,1,Wo],[r,2,2*Wo],[n,1,Go],[e,1,Yo],[e,3,3*Yo],[t,1,Ho]];function w(u){return(a(u)<u?h:i(u)<u?p:o(u)<u?y:r(u)<u?v:e(u)<u?n(u)<u?d:g:t(u)<u?_:b)(u)}function x(e,n,r,o){if(null==e&&(e=10),"number"==typeof e){var i=Math.abs(r-n)/e,a=H(function(t){return t[2]}).right(m,i);a===m.length?(o=it(n/Ho,r/Ho,e),e=t):a?(o=(a=m[i/m[a-1][2]<m[a][2]/i?a-1:a])[1],e=a[0]):(o=Math.max(it(n,r,e),1),e=u)}return null==o?e:e.every(o)}return s.invert=function(t){return new Date(f(t))},s.domain=function(t){return arguments.length?l(yt.call(t,Zo)):l().map($o)},s.ticks=function(t,e){var n,r=l(),o=r[0],i=r[r.length-1],a=i<o;return a&&(n=o,o=i,i=n),n=(n=x(t,o,i,e))?n.range(o,i+1):[],a?n.reverse():n},s.tickFormat=function(t,e){return null==e?w:c(e)},s.nice=function(t,e){var n=l();return(t=x(t,n[0],n[n.length-1],e))?l(_n(n,t)):s},s.copy=function(){return Je(s,Xo(t,e,n,r,o,i,a,u,c))},s}var Jo=function(){return Xo(or,nr,$n,Yn,Wn,qn,Un,Nn,Mr).domain([new Date(2e3,0,1),new Date(2e3,0,2)])},Qo=function(){return Xo(xr,mr,hr,fr,cr,ar,Un,Nn,Er).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)])};function Ko(t){var e=0,n=1,r=1,o=!1;function i(n){var i=(n-e)*r;return t(o?Math.max(0,Math.min(1,i)):i)}return i.domain=function(t){return arguments.length?(e=+t[0],n=+t[1],r=e===n?0:1/(n-e),i):[e,n]},i.clamp=function(t){return arguments.length?(o=!!t,i):o},i.interpolator=function(e){return arguments.length?(t=e,i):t},i.copy=function(){return Ko(t).domain([e,n]).clamp(o)},vn(i)}function ti(t){var e=0,n=.5,r=1,o=1,i=1,a=!1;function u(e){var r=.5+((e=+e)-n)*(e<n?o:i);return t(a?Math.max(0,Math.min(1,r)):r)}return u.domain=function(t){return arguments.length?(e=+t[0],n=+t[1],r=+t[2],o=e===n?0:.5/(n-e),i=n===r?0:.5/(r-n),u):[e,n,r]},u.clamp=function(t){return arguments.length?(a=!!t,u):a},u.interpolator=function(e){return arguments.length?(t=e,u):t},u.copy=function(){return ti(t).domain([e,n,r]).clamp(a)},vn(u)}var ei={get:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"linear",e=t[0].toUpperCase();t="scale"+e+t.substr(1);var n=r[t];return void 0===n?dn:n},create:function(t){return this.get(t)()}};function ni(t){return t[0]}function ri(t){return t[1]}var oi=function(){var t,e=ni,n=ri;function r(r){for(var o={},i=[],a=2*t,u=-1,c=r.length;++u<c;){var s,f=void 0,l=void 0;if(!isNaN(s=+e.call(null,f=r[u],u,r))&&!isNaN(l=+n.call(null,f,u,r))){var h=Math.floor(s/a),p=Math.floor(l/a),y=h+"-"+p,v=o[y];f.index=u,v?v.push(f):(i.push(v=o[y]=[f]),v.i=h,v.j=p,v.x=h*a+t,v.y=p*a+t)}}return i}return r.radius=function(e){return arguments.length?(t=+e,r):t},r.size=function(t){},r.radius(1)},ii=Math.PI/3,ai=[0,ii,2*ii,3*ii,4*ii,5*ii];function ui(t){return t[0]}function ci(t){return t[1]}var si=function(){var t,e,n,r=0,o=0,i=1,a=1,u=ui,c=ci;function s(t){var r,o={},i=[],a=t.length;for(r=0;r<a;++r)if(!isNaN(f=+u.call(null,s=t[r],r,t))&&!isNaN(l=+c.call(null,s,r,t))){var s,f,l,h=Math.round(l/=n),p=Math.round(f=f/e-(1&h)/2),y=l-h;if(3*Math.abs(y)>1){var v=f-p,d=p+(f<p?-1:1)/2,g=h+(l<h?-1:1),_=f-d,b=l-g;v*v+y*y>_*_+b*b&&(p=d+(1&h?1:-1)/2,h=g)}var m=p+"-"+h,w=o[m];s.index=r,w?w.push(s):(i.push(w=o[m]=[s]),w.i=p,w.j=h,w.x=(p+(1&h)/2)*e,w.y=h*n)}return i}function f(t){var e=0,n=0;return ai.map(function(r){var o=Math.sin(r)*t,i=-Math.cos(r)*t,a=o-e,u=i-n;return e=o,n=i,[a,u]})}return s.hexagon=function(e){return"m"+f(null==e?t:+e).join("l")+"z"},s.hexagonCorner=function(e){return f(null==e?t:+e)},s.centers=function(){for(var u=[],c=Math.round(o/n),s=Math.round(r/e),f=c*n;f<a+t;f+=n,++c)for(var l=s*e+(1&c)*e/2;l<i+e/2;l+=e)u.push([l,f]);return u},s.mesh=function(){var e=f(t).slice(0,4).join("l");return s.centers().map(function(t){return"M"+t+"m"+e}).join("")},s.x=function(t){return arguments.length?(u=t,s):u},s.y=function(t){return arguments.length?(c=t,s):c},s.radius=function(r){return arguments.length?(e=2*(t=+r)*Math.sin(ii),n=1.5*t,s):t},s.size=function(t){return arguments.length?(r=o=0,i=+t[0],a=+t[1],s):[i-r,a-o]},s.extent=function(t){return arguments.length?(r=+t[0][0],o=+t[0][1],i=+t[1][0],a=+t[1][1],s):[[r,o],[i,a]]},s.radius(1)};function fi(t,e,n){var r=60*n;"pointy"==(arguments.length>3&&void 0!==arguments[3]?arguments[3]:"pointy")&&(r+=30);var o=Math.PI/180*r;return[t[0]+e*Math.cos(o),t[1]+e*Math.sin(o)]}var li={getHexCorner:fi,getHexCorners:function(t,e,n){for(var r=[],o=-1;++o<6;)r.push(fi(t,e,o,n));return r},getHexSize:function(t){return"pointy"==(arguments.length>1&&void 0!==arguments[1]?arguments[1]:"pointy")?[Math.sqrt(3)*t,2*t]:[2*t,Math.sqrt(3)*t]}},hi=n(89),pi=n.n(hi);function yi(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=[],r=!0,o=!1,i=void 0;try{for(var a,u=t[Symbol.iterator]();!(r=(a=u.next()).done)&&(n.push(a.value),!e||n.length!==e);r=!0);}catch(t){o=!0,i=t}finally{try{r||null==u.return||u.return()}finally{if(o)throw i}}return n}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}var vi=pi.a.parseCSSColor;function di(t){return(t=Math.round(t))<0?0:t>255?255:t}function gi(t){return t<0?0:t>1?1:t}var _i={isColor:function(t){if("string"==typeof t)return!!pi()(t);if(Array.isArray(t)){for(var e=0,n=t.length;e<n;){var r=t[e++];if("string"!=typeof r)return!1;if(!vi(r))return!1}return!0}return!1},toColorIncrease:function(t){return[t[0]||0,t[1]||0,t[2]||0,t[3]||0]},toNormal:function(t){if(Array.isArray(t)){for(var e=[],n=0,r=t.length;n<r;){var o=t[n++];if("string"!=typeof o)return null;var i=vi(o);if(!i)return null;e.push(i)}return e}return"string"==typeof t?vi(t):null},toNormalArray:function(t){if(Array.isArray(t)){for(var e=[],n=0,r=t.length;n<r;){var o=t[n++];if("string"!=typeof o)return null;var i=vi(o);if(!i)return null;e.push(i)}return e}return"string"==typeof t?[vi(t)]:null},linearGradient:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:_i.Utils.Linear,r=t.length-1,o=r*e,i=o>>0,a=n;return function(t,e,n){var r=yi(t,4),o=r[0],i=r[1],u=r[2],c=r[3],s=yi(e,4),f=s[0],l=s[1],h=s[2],p=s[3];return[a(o,f,n)>>0,a(i,l,n)>>0,a(u,h,n)>>0,a(c,p,n)]}(t[i],t[i+1>r?r:i+1],o-i)},mixColors:function(t,e){var n=this.toNormal(t);if(Array.isArray(e)&&n){var r=[di(n[0]+e[0]||0),di(n[1]+e[1]||0),di(n[2]+e[2]||0),gi(n[3]+e[3]||0)];return"rgba("+[r[0],r[1],r[2],r[3]].join(",")+")"}return t},toRGBA:function(t){if(t&&t.length>=3){var e=void 0===t[3]?1:t[3];return"rgba("+di(t[0])+","+di(t[1])+","+di(t[2])+","+gi(e)+")"}return"transparent"},Utils:{Linear:function(t,e,n){return(e-t)*n+t}}},bi=_i,mi={isColor:function(t){return bi.isColor(t)},toNormal:function(t){return bi.toNormal(t)},toFragColor:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=this.toNormal(t);return[n[0]/255,n[1]/255,n[2]/255,n[3]*e]}};function wi(t,e,n,r){if(v.isNil(e))return t;var o=v.callFn(e,n||this,t,r);return v.isNil(o)?v.isNil(t[e])?e:t[e]:o}function xi(t,e){return function(t){return t&&v.isPlainObject(t)&&t.value}(t)||(t={value:v.clone(t)}),v.defaults({},t,e||{})}function Oi(t,e){var n=v.cloneDeep(t),r=n.style,o=void 0===r?{}:r,i=n.style.color,a=n.gradient,u=n.colorScale;return a&&!i?o.color={value:a,scale:u}:i&&v.isNil(i.value)&&(o.color={value:i,scale:u}),v.defaults(o,e.style),v.defaults(n,e)}function Si(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=[],r=!0,o=!1,i=void 0;try{for(var a,u=t[Symbol.iterator]();!(r=(a=u.next()).done)&&(n.push(a.value),!e||n.length!==e);r=!0);}catch(t){o=!0,i=t}finally{try{r||null==u.return||u.return()}finally{if(o)throw i}}return n}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}var ji={},ki={},Mi=2*Math.PI;function Ei(t){var e=ji[t];return null==e&&(e=ji[t]=Math.sin(t)),e}function Pi(t){var e=ki[t];return null==e&&(e=ki[t]=Math.cos(t)),e}function Ai(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,o=[];if(n<3)return[];for(var i=Si(t,2),a=i[0],u=i[1],c=-1,s=n;++c<s;){var f=Mi*c/n,l=a+e*Pi(f+r),h=u+e*Ei(f+r);o.push([l,h])}return o}var Li={},Ci={},Ti=12756274,Ri=Math.PI/180,Di=180/Math.PI,Ni=Math.PI/4,Ii=85.0511287798,zi=.5/Math.PI;function Fi(t){return Ci[t]||(Ci[t]=Math.pow(2,t)),Ci[t]}function Ui(t){return Li[t]||(Li[t]=256*Fi(t)),Li[t]}function Bi(t,e,n){var r=function(t,e){var n=-zi;return[(e=e||1)*(zi*t[0]+.5),e*(n*t[1]+.5)]}(function(t){var e=Math.max(Math.min(Ii,t[1]),-Ii),n=t[0]*Ri,r=e*Ri;return[n,r=Math.log(Math.tan(Ni+r/2))]}(t),e);return n&&(r[0]=Math.round(r[0]),r[1]=Math.round(r[1])),r}function qi(t,e,n){return Bi(t,Ui(e),n)}function Vi(t,e){return function(t){var e=t[0]*Di,n=(2*Math.atan(Math.exp(t[1]))-Math.PI/2)*Di;return[parseFloat(e.toFixed(6)),parseFloat(n.toFixed(6))]}(function(t,e){var n=zi,r=-n;return[(t[0]/e-.5)/n,(t[1]/e-.5)/r]}(t,Ui(e)))}var Wi=6378137,Gi=Math.PI,Yi=Gi/180,Hi=20,$i=[215440491,106744817],Zi={},Xi={};function Ji(t,e){return 2*Math.cos(t*Yi)*Gi*Wi/Ui(e)}function Qi(t){return Ki(qi(t,Hi))}function Ki(t){var e=t[0],n=t[1];return[e-$i[0],n-$i[1]]}function ta(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Hi,n=arguments.length>2?arguments[2]:void 0,r=n||{},o=r.useMercator,i=r.noCache,a=Zi[e]=Zi[e]||{},u=t[0]+","+t[1],c=a[u];if(!c){if(e===Hi)c=qi(t,e);else if(o)c=qi(t,e);else c=function(t,e){var n=Fi(20-e);return[t[0]/n,t[1]/n]}(ta(t,Hi,n),e);i||(a[u]=c)}return c.slice()}function ea(t,e,n,r){var o=(r||{}).p20,i=void 0===o?ta(t,Hi):o,a=ta(e,Hi,{noCache:!0}),u=Fi(Hi-n);return[(i[0]-a[0])/u,(i[1]-a[1])/u]}function na(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Hi,n=Xi[e]=Xi[e]||{},r=t[0]+","+t[1],o=n[r];return o||(o=Vi(t,e),Xi[r]=o),o}function ra(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:20,n=Ji(arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,e);return Math.round(t/n)}function oa(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[-180,-22],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:20,r=t[0],o=ta(t,n);if(r>e[0]&&r<e[1]){var i=256*Math.pow(2,n);o[0]+=i}return o}function ia(t){return(ia="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)}function aa(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)}}var ua=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._lng=+e,this._lat=+n,void 0!==r&&(this._alt=+r)}var e,n,r;return e=t,(n=[{key:"equals",value:function(t){return this._lng===t._lng&&this._lat===t._lat}},{key:"toString",value:function(){var t=this._lng+", "+this._lat;return void 0!==this._alt&&(t+=", "+this._alt),t}},{key:"distanceTo",value:function(t){return e=this.valueOf(),n=ca(t).valueOf(),r=Math.cos,o=e[1]*Ri,i=e[0]*Ri,a=n[1]*Ri,u=n[0]*Ri-i,c=(1-r(a-o)+(1-r(u))*r(o)*r(a))/2,Ti*Math.asin(Math.sqrt(c));var e,n,r,o,i,a,u,c}},{key:"getLat",value:function(){return this._lat}},{key:"getLng",value:function(){return this._lng}},{key:"getAlt",value:function(){return this._alt}},{key:"valueOf",value:function(){return[this._lng,this._lat]}}])&&aa(e.prototype,n),r&&aa(e,r),t}();function ca(t,e,n){return t instanceof ua?t:v.isArray(t)?t.length>=2?new ua(t[0],t[1],t[2]):void 0:"object"===ia(t)&&"lng"in t&&"lat"in t?new ua(t.lng,t.lat,t.alt):"string"==typeof t?ca(t.split(",")):null!=t&&void 0!==e?new ua(t,e,n):void 0}function sa(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)}}var fa=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this._southWest,this._northEast;for(var e=-1,n=arguments.length;++e<n;)this.expend(e<0||arguments.length<=e?void 0:arguments[e])}var e,n,r;return e=t,(n=[{key:"expend",value:function(e){var n,r,o=this._southWest,i=this._northEast;if(e instanceof ua)n=r=e;else{if(!(e instanceof t))return e?this.expend(ca(e)||la(e)):this;if(n=e._southWest,r=e._northEast,!n||!r)return this}if(o||i){var a=o._lng,u=o._lat,c=i._lng,s=i._lat,f=n._lng,l=n._lat,h=r._lng,p=r._lat;o._lng=f<a?f:a,o._lat=l<u?l:u,i._lng=h>c?h:c,i._lat=p>s?p:s}else this._southWest=new ua(n._lng,n._lat),this._northEast=new ua(r._lng,r._lat);return this}},{key:"contains",value:function(e){var n,r;(e="number"==typeof e[0]||e instanceof ua||"lat"in e?ca(e):la(e))instanceof ua?n=r=e:e instanceof t&&(n=e.getSouthWest(),r=e.getNorthEast());var o=this._southWest,i=this._northEast;return n.lat>=o.lat&&r.lat<=i.lat&&n.lng>=o.lng&&r.lng<=i.lng}},{key:"intersects",value:function(t){t=la(t);var e=this._southWest,n=this._northEast,r=t.getSouthWest(),o=t.getNorthEast(),i=o.lat>=e.lat&&r.lat<=n.lat,a=o.lng>=e.lng&&r.lng<=n.lng;return i&&a}},{key:"getCenter",value:function(){var t=this._southWest,e=this._northEast;return new ua((t._lng+e._lng)/2,(t._lat+e._lat)/2)}},{key:"isEmpty",value:function(){return!this._southWest&&!this._northEast}},{key:"getSouthWest",value:function(){return new ua(this.getSouth(),this.getWest())}},{key:"getNorthEast",value:function(){return new ua(this.getNorth(),this.getEast())}},{key:"getNorth",value:function(){return this._northEast._lat}},{key:"getSouth",value:function(){return this._southWest._lat}},{key:"getWest",value:function(){return this._southWest._lng}},{key:"getEast",value:function(){return this._northEast._lng}},{key:"valueOf",value:function(){var t=this._southWest,e=this._northEast;return[[t._lng,t._lat],[e._lng,e._lat]]}}])&&sa(e.prototype,n),r&&sa(e,r),t}();function la(t,e){return t instanceof fa?t:new fa(t,e)}function ha(t){return(ha="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)}function pa(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)}}var ya=Math.trunc||function(t){return t>0?Math.floor(t):Math.ceil(t)},va=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._x=r?e>>0:e,this._y=r?n>>0:n}var e,n,r;return e=t,(n=[{key:"clone",value:function(){return new t(this._x,this._y)}},{key:"add",value:function(t){return this.clone()._add(da(t))}},{key:"_add",value:function(t){return this._x+=t._x,this._y+=t._y,this}},{key:"subtract",value:function(t){return this.clone()._subtract(da(t))}},{key:"_subtract",value:function(t){return this._x-=t._x,this._y-=t._y,this}},{key:"divideBy",value:function(t){return this.clone()._divideBy(t)}},{key:"_divideBy",value:function(t){return this._x/=t,this._y/=t,this}},{key:"multiplyBy",value:function(t){return this.clone()._multiplyBy(t)}},{key:"_multiplyBy",value:function(t){return this._x*=t,this._y*=t,this}},{key:"scaleBy",value:function(e){return new t(this._x*e._x,this._y*e._y)}},{key:"unscaleBy",value:function(e){return new t(this._x/e._x,this._y/e._y)}},{key:"round",value:function(){return this.clone()._round()}},{key:"_round",value:function(){return this._x=this._x>>0,this._y=this._y>>0,this}},{key:"floor",value:function(){return this.clone()._floor()}},{key:"_floor",value:function(){return this._x=Math.floor(this._x),this._y=Math.floor(this._y),this}},{key:"ceil",value:function(){return this.clone()._ceil()}},{key:"_ceil",value:function(){return this._x=Math.ceil(this._x),this._y=Math.ceil(this._y),this}},{key:"trunc",value:function(){return this.clone()._trunc()}},{key:"_trunc",value:function(){return this._x=ya(this._x),this._y=ya(this._y),this}},{key:"distanceTo",value:function(t){return Math.sqrt(this.distanceSquare(t))}},{key:"distanceSquare",value:function(t){var e=(t=da(t))._x-this._x,n=t._y-this._y;return e*e+n*n}},{key:"equals",value:function(t){return(t=da(t))._x===this._x&&t._y===this._y}},{key:"getAngle",value:function(t){t=da(t);var e=0,n=this._x=t._x;return 0!=n&&(e=Math.atan2(this._y-t._y,n)),e}},{key:"valueOf",value:function(){return[this._x,this._y]}}])&&pa(e.prototype,n),r&&pa(e,r),t}();function da(t,e,n){return t instanceof va?t:v.isArray(t)?new va(t[0],t[1]):null==t?t:"object"===ha(t)&&"x"in t&&"y"in t?new va(t.x,t.y):new va(t,e,n)}function ga(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)}}var _a=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t);for(var e=0,n=arguments.length;e<n;e++)this.expend(e<0||arguments.length<=e?void 0:arguments[e])}var e,n,r;return e=t,(n=[{key:"expend",value:function(t){return t=da(t),this.min||this.max?(this.min._x=Math.min(t._x,this.min._x),this.max._x=Math.max(t._x,this.max._x),this.min._y=Math.min(t._y,this.min._y),this.max._y=Math.max(t._y,this.max._y)):(this.min=t.clone(),this.max=t.clone()),this}},{key:"getCenter",value:function(t){return new va((this.min._x+this.max._x)/2,(this.min._y+this.max._y)/2,t)}},{key:"getSize",value:function(){return this.max.subtract(this.min)}},{key:"contains",value:function(e){var n,r;return(e="number"==typeof e[0]||e instanceof va?da(e):ba(e))instanceof t?(n=e.min,r=e.max):n=r=e,n._x>=this.min._x&&r._x<=this.max._x&&n._y>=this.min._y&&r._y<=this.max._y}},{key:"intersects",value:function(t){t=ba(t);var e=this.min,n=this.max,r=t.min,o=t.max,i=o._x>=e._x&&r._x<=n._x,a=o._y>=e._y&&r._y<=n._y;return i&&a}},{key:"overlaps",value:function(t){t=ba(t);var e=this.min,n=this.max,r=t.min,o=t.max,i=o._x>e._x&&r._x<n._x,a=o._y>e._y&&r._y<n._y;return i&&a}},{key:"isValid",value:function(){return!(!this.min||!this.max)}},{key:"getBottomLeft",value:function(){return new va(this.min._x,this.max._y)}},{key:"getTopRight",value:function(){return new va(this.max._x,this.min._y)}},{key:"getTopLeft",value:function(){return this.min}},{key:"getBottomRight",value:function(){return this.max}},{key:"valueOf",value:function(){return[this.getTopLeft().valueOf(),this.getBottomRight().valueOf()]}}])&&ga(e.prototype,n),r&&ga(e,r),t}();function ba(t,e){return!t||t instanceof _a?t:new _a(t,e)}var ma="undefined"==typeof Float32Array?Array:Float32Array,wa={create:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=new ma(2);return n[0]=t,n[1]=e,n},copy:function(t,e){return t[0]=e[0],t[1]=e[1],t},clone:function(t){var e=new ma(2);return e[0]=t[0],e[1]=t[1],e},set:function(t,e,n){return t[0]=e,t[1]=n,t},add:function(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t},scaleAndAdd:function(t,e,n,r){return t[0]=e[0]+n[0]*r,t[1]=e[1]+n[1]*r,t},sub:function(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t},length:function(t){return Math.sqrt(this.lengthSquare(t))},lengthSquare:function(t){return t[0]*t[0]+t[1]*t[1]},multiply:function(t,e,n){return t[0]=e[0]*n[0],t[1]=e[1]*n[1],t},divide:function(t,e,n){return t[0]=e[0]/n[0],t[1]=e[1]/n[1],t},dot:function(t,e){return t[0]*e[0]+t[1]*e[1]},scale:function(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t},normalize:function(t,e){var n=this.len(e);return 0===n?(t[0]=0,t[1]=0):(t[0]=e[0]/n,t[1]=e[1]/n),t},distance:function(t,e){return Math.sqrt(this.distanceSquare(t,e))},distanceSquare:function(t,e){return(t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1])},negate:function(t,e){return t[0]=-e[0],t[1]=-e[1],t},lerp:function(t,e,n,r){return t[0]=e[0]+r*(n[0]-e[0]),t[1]=e[1]+r*(n[1]-e[1]),t},applyTransform:function(t,e,n){var r=e[0],o=e[1];return t[0]=n[0]*r+n[2]*o+n[4],t[1]=n[1]*r+n[3]*o+n[5],t},min:function(t,e,n){return t[0]=Math.min(e[0],n[0]),t[1]=Math.min(e[1],n[1]),t},max:function(t,e,n){return t[0]=Math.max(e[0],n[0]),t[1]=Math.max(e[1],n[1]),t},getAngle:function(t,e){var n=0;return 0!=t[0]-e[0]&&(n=Math.atan2(t[1]-e[1],t[0]-e[0])),n}};wa.len=wa.length,wa.lenSquare=wa.lengthSquare,wa.dist=wa.distance,wa.distSquare=wa.distanceSquare;var xa=wa;function Oa(t,e){for(var n=[],r=-1,o=t.length;++r<o;){var i=t[r];if(void 0!==i&&(!Array.isArray(i)||i.length))if(v.is2DimArr(i))n.push(Oa(i,e));else{var a=ca(i);e&&e.expend(a),n.push(a)}}return n}function Sa(t,e,n){return[(t[0]+e[0])/2-(t[1]-e[1])*n,(t[1]+e[1])/2-(e[0]-t[0])*n]}function ja(t,e){var n=e.project({x:t[0],y:t[1]});return xa.distSquare(t,[n.x,n.y])}var ka={key:"",version:"",records:{},getKey:function(t,e){return t=t||"",void 0!==e&&t?t+"@"+e:t},record:function(t,e,n){this.records[t]||(this.records[t]={});var r=this.getKey(e,n);null==this.records[t][r]&&(this.records[t][r]=0)},send:function(){var t=[];for(var e in this.records)if(this.records.hasOwnProperty(e)){var n=this.records[e],r=[];for(var o in n)n.hasOwnProperty(o)&&0==n[o]&&(r.push(o),n[o]=1);r.length&&t.push(e+"~"+r.join(","))}if(t.length){var i=AMap.Browser.mobile,a=AMap.Browser.plat,u="//webapi.amap.com/count?"+["type=nfl","k="+this.key,"m="+(i?1:0),"pf="+a||!1,"branch=LOCA","v="+this.version||!1,"log="+t.join("!")].join("&");new AMap.Http.JSONP(u)}}};function Ma(t){return(Ma="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)}function Ea(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 Pa(t,e){return!e||"object"!==Ma(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function Aa(t,e,n){return(Aa="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var r=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=La(t)););return t}(t,e);if(r){var o=Object.getOwnPropertyDescriptor(r,e);return o.get?o.get.call(n):o.value}})(t,e,n||t)}function La(t){return(La=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function Ca(t,e){return(Ca=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var Ta=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),Pa(this,La(e).apply(this,arguments))}var n,r,o;return 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}}),e&&Ca(t,e)}(e,z),n=e,(r=[{key:"_initProperties",value:function(){Aa(La(e.prototype),"_initProperties",this).call(this),this._bounds=new fa,this._amapLayer}},{key:"_initialize",value:function(){for(var t,n=this,r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];(t=Aa(La(e.prototype),"_initialize",this)).call.apply(t,[this].concat(o)),this.whenReady(function(){n._defCursor=n._owner.getMap().getDefaultCursor()})}},{key:"_bindEvent",value:function(){var t=this;Aa(La(e.prototype),"_bindEvent",this).call(this);var n=v.debounce(function(){t._onRedraw()},50);function r(t){var e=t.target;e._select=t.type===E.MOUSE_ENTER,e._options.selectStyle&&!this._owner._inDrag&&n()}this.on(E.ADD_LAYER,function(e){e.layer.forEach(function(t){t.on("".concat(E.MOUSE_ENTER," ").concat(E.MOUSE_LEAVE),r)}),t._updateBounds(e.layer,t._bounds),t._options.fitView&&t.setFitView()})}},{key:"delegateEvent",value:function(t,e){var n=this._options.eventSupport,r=this._overlays,o=r.length;if(n&&this._load&&!this._owner._inDrag&&o){var i=e.offsetX,a=e.offsetY,u=e.changedTouches;if(u&&u.length>0){var c=u[0],s=v.offset(c.target),f=s.top,l=s.left;i=c.pageX-l,a=c.pageY-f}for(var h=void 0,p=void 0;--o>-1;){var y=r[o];if(y.contains(i,a,t)){h=y;var d=y._selectIdx;v.isNil(d)||(p=d);break}}var g=this._lastOverlay;g&&g._owner!==this&&(g=this._lastOverlay=void 0);var _={originalEvent:e};t===E.MOUSE_MOVE&&(g!==h||!v.isNil(p)&&this._lastSelectIdx!==p)&&(g&&g.emit(E.MOUSE_LEAVE,_,!0).emit(E.MOUSE_OUT,_,!0),h&&h.emit(E.MOUSE_ENTER,_,!0).emit(E.MOUSE_OVER,_,!0),this._lastOverlay=h,this._lastSelectIdx=p),h&&h.emit(t,_,!0);var b=this._owner.getMap();h?b.setDefaultCursor("pointer"):this._defCursor&&b.setDefaultCursor(this._defCursor),this.emit(t,_)}}},{key:"setFitView",value:function(){var t=this;return this.whenReady(function(){t._owner.setBounds(t._bounds),t._options.fitView=!1}),this}},{key:"beforeAddLayer",value:function(t){this._options.zLevel&&this.clear()}},{key:"beforeAdd",value:function(){this.clear()}},{key:"afterRemoveLayer",value:function(t){this.clear();for(var e=this._overlays,n=-1,r=e.length;++n<r;){e[n].onAdd()}this._updateBounds()}},{key:"_updateBounds",value:function(t,e){this._bounds=e||new fa;for(var n=-1,r=(t=t||this._overlays).length;++n<r;){var o=t[n];this._bounds.expend(o.getBounds())}}},{key:"getContext",value:function(){return this._context}},{key:"getAMapLayer",value:function(){return this._amapLayer}},{key:"destroy",value:function(){Aa(La(e.prototype),"destroy",this).call(this),delete this._context,delete this._lastOverlay,delete this._lastSelectIdx}}])&&Ea(n.prototype,r),o&&Ea(n,o),e}();function Ra(t){return(Ra="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)}function Da(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=[],r=!0,o=!1,i=void 0;try{for(var a,u=t[Symbol.iterator]();!(r=(a=u.next()).done)&&(n.push(a.value),!e||n.length!==e);r=!0);}catch(t){o=!0,i=t}finally{try{r||null==u.return||u.return()}finally{if(o)throw i}}return n}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function Na(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 Ia(t,e){return!e||"object"!==Ra(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function za(t,e,n){return(za="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var r=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=Fa(t)););return t}(t,e);if(r){var o=Object.getOwnPropertyDescriptor(r,e);return o.get?o.get.call(n):o.value}})(t,e,n||t)}function Fa(t){return(Fa=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function Ua(t,e){return(Ua=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var Ba=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),Ia(this,Fa(e).apply(this,arguments))}var n,r,o;return 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}}),e&&Ua(t,e)}(e,Ta),n=e,(r=[{key:"_initProperties",value:function(){za(Fa(e.prototype),"_initProperties",this).call(this),this._customLayer}},{key:"_initLayout",value:function(t){var e=this,n=this._owner,r=n.getMap();function o(){var e=this;if(!this._customLayer){var r=this._options,o=r.opacity,i=r.blendMode,a=Da(n._size,2),u=a[0],c=a[1],s=v.getPixelRatio(),f=this._domContainer=v.createElement("canvas",{width:u*s,height:c*s},{width:u+"px",height:c+"px"});this._setContextConfig({canvas:f,baseline:"bottom",opacity:o,blendMode:i}),(this._customLayer=this._amapLayer=new AMap.CustomLayer(f,r)).render=function(){e._onRedraw()},n.on(E.RESIZE,v.debounce(function(){var t=Da(n.getSize(),2),r=t[0],o=t[1];f.width=r*s,f.height=o*s,f.style.width=r+"px",f.style.height=o+"px",e._setContextConfig({canvas:f,blendMode:i}),e._onRedraw(),e.emit(E.RENDER)},300)),v.callFn(t,this)}}AMap.CustomLayer?o.call(this):r.plugin(["AMap.CustomLayer"],function(){o.call(e)})}},{key:"_removeLayout",value:function(){var t=this._customLayer;t&&(t.render=void 0,t.setMap(null),delete this._customLayer)}},{key:"_setContextConfig",value:function(t){var e=t.canvas,n=t.baseline,r=t.opacity,o=t.blendMode;e&&(this._context=e.getContext("2d"));var i=this._context;if(i)return n&&(i.textBaseline=n),r&&(i.globalAlpha=r),o&&(i.globalCompositeOperation=o),i}},{key:"_onRedraw",value:function(){var t=this._owner;if(t){this.clear(),t.updateMapStatus();for(var e=-1,n=this._overlays,r=n.length;++e<r;){n[e].onAdd()}}}},{key:"setzIndex",value:function(t){var e=this;this.whenReady(function(){e._customLayer.setzIndex(t)})}},{key:"getZIndex",value:function(){var t,e=this._domContainer;return e&&(t=e.parentNode)&&t.style.zIndex}},{key:"clear",value:function(){var t=this._domContainer;if(t&&this._context){var e=t.width,n=t.height;this._context.clearRect(0,0,e,n)}}}])&&Na(n.prototype,r),o&&Na(n,o),e}();function qa(t){return(qa="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)}function Va(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Wa(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 Ga(t,e){return!e||"object"!==qa(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function Ya(t,e,n){return(Ya="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var r=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=Ha(t)););return t}(t,e);if(r){var o=Object.getOwnPropertyDescriptor(r,e);return o.get?o.get.call(n):o.value}})(t,e,n||t)}function Ha(t){return(Ha=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function $a(t,e){return($a=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var Za=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),Ga(this,Ha(e).apply(this,arguments))}var n,r,o;return 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}}),e&&$a(t,e)}(e,Ta),n=e,(r=[{key:"_initProperties",value:function(){Ya(Ha(e.prototype),"_initProperties",this).call(this),this._3DLayer,this._eventPool={}}},{key:"_initLayout",value:function(t){var e=this._owner;if(AMap&&AMap.Object3DLayer&&e&&e._map){if(!this._3DLayer){var n=this._options;this._context=this._3DLayer=this._amapLayer=new AMap.Object3DLayer(n);n.fitView&&this.setFitView(),v.callFn(t,this)}this._bindMapEvent()}else{if(!this._3DLayer){var r=this._options;this._context=this._3DLayer=this._amapLayer=new AMap.Object3DLayer(r);r.fitView&&this.setFitView(),v.callFn(t,this)}this._bindMapEvent()}}},{key:"_removeLayout",value:function(){var t=this._3DLayer;t&&t.setMap(null)}},{key:"_onRedraw",value:function(){if(this._owner)for(var t=this._overlays,e=-1,n=t.length;++e<n;){t[e]._refreshStyle()}}},{key:"delegateEvent",value:function(t,n){this.inMapChange||Ya(Ha(e.prototype),"delegateEvent",this).call(this,t,n)}},{key:"_bindMapEvent",value:function(){var t,e=this;this._eventPool=(Va(t={},E.MOVE,function(){e.inMapChange=!0}),Va(t,E.ZOOM,function(){e.inMapChange=!0}),Va(t,E.MOVE_END,function(){e.inMapChange=!1}),Va(t,E.ZOOM_END,function(){e.inMapChange=!1}),t);var n=this._eventPool;for(var r in n)this._owner.on(r,n[r])}},{key:"_removeMapEvent",value:function(){var t=this._owner,e=this._eventPool||{};if(t)for(var n in e){var r=e[n];r&&t.off(n,r)}this._eventPool={}}},{key:"setzIndex",value:function(t){var e=this;this.whenReady(function(){e._3DLayer.setzIndex(t)})}},{key:"destroy",value:function(){this._removeMapEvent(),Ya(Ha(e.prototype),"destroy",this).call(this)}}])&&Wa(n.prototype,r),o&&Wa(n,o),e}();function Xa(t){return(Xa="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Ja(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 Qa(t,e){return!e||"object"!==Xa(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function Ka(t,e,n){return(Ka="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var r=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=tu(t)););return t}(t,e);if(r){var o=Object.getOwnPropertyDescriptor(r,e);return o.get?o.get.call(n):o.value}})(t,e,n||t)}function tu(t){return(tu=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function eu(t,e){return(eu=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var nu={zIndex:0},ru=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),Qa(this,tu(e).apply(this,arguments))}var n,r,o;return 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}}),e&&eu(t,e)}(e,M),n=e,(r=[{key:"_initProperties",value:function(){Ka(tu(e.prototype),"_initProperties",this).call(this),this._data,this._options={},this._defaults={type:"overlay"},this._coord}},{key:"_initialize",value:function(t,e){this._data=t;var n=(this._options=v.defaults(e,this._defaults,nu)).position;this._coord=wi(t,n,this)}},{key:"onAdd",value:function(){this._owner&&this.render()}},{key:"render",value:function(){}},{key:"contains",value:function(t,e){}},{key:"setStyle",value:function(t,e){return e&&(t=v.merge({},this._options.style,t)),this._options.style=t,this}},{key:"getContainer",value:function(){var t=this._owner;return t&&t._owner}},{key:"getData",value:function(){return v.cloneDeep(this._data)}},{key:"getPosition",value:function(){return this._coord}},{key:"destroy",value:function(){Ka(tu(e.prototype),"destroy",this).call(this),delete this._data,delete this._options,delete this._coord}}])&&Ja(n.prototype,r),o&&Ja(n,o),e}();function ou(t){return(ou="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)}function iu(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 au(t,e){return!e||"object"!==ou(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function uu(t,e,n){return(uu="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var r=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=cu(t)););return t}(t,e);if(r){var o=Object.getOwnPropertyDescriptor(r,e);return o.get?o.get.call(n):o.value}})(t,e,n||t)}function cu(t){return(cu=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function su(t,e){return(su=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var fu,lu,hu,pu=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),au(this,cu(e).apply(this,arguments))}var n,r,o;return 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}}),e&&su(t,e)}(e,ru),n=e,o=[{key:"registerGraph",value:function(t){var n=t.type;n&&(e._graphs[n.toLowerCase()]=t)}},{key:"unRegisterGraph",value:function(t){var n=e._graphs;t&&(t=t.toLowerCase())&&n[t]&&delete n[t]}},{key:"getRegisteredGraph",value:function(t){return e._graphs[t.toLowerCase()]}}],(r=[{key:"_initialize",value:function(t,n){uu(cu(e.prototype),"_initialize",this).call(this,t,n);var r=this._options,o=r.type,i=r.shape,a=void 0===i?o:i,u=r.select;this._mergeStyle(),this._select=!!u;var c=e.getRegisteredGraph(a);if(!c)throw new Error("Please register component by Marker.registerGraph(".concat(a,"), first."));this._shape=new c(this._options)}},{key:"_mergeStyle",value:function(){var t=this._options,e=t.selectStyle,n=t.style;e&&(this._options.selectStyle=v.merge({},n,e))}},{key:"onAdd",value:function(){var t=this._owner;t&&(this._shape.setContext(t._context),this._refreshStyle(),this.render())}},{key:"render",value:function(){this._shape.update(this._coord,this._style).render()}},{key:"_refreshStyle",value:function(){var t=this._options,e=t.style,n=t.selectStyle,r=void 0===n?e:n;this._style=this._select?r:e}},{key:"contains",value:function(t,e){return this._shape.contains(t,e)}},{key:"setSelectStyle",value:function(t,e){return e&&(t=v.merge({},this._options.selectStyle,t)),this._options.selectStyle=t,this._mergeStyle(),this}},{key:"setFitView",value:function(){var t=this.getContainer();return t&&t.setBounds(this.getBounds()),this}}])&&iu(n.prototype,r),o&&iu(n,o),e}();hu={},(lu="_graphs")in(fu=pu)?Object.defineProperty(fu,lu,{value:hu,enumerable:!0,configurable:!0,writable:!0}):fu[lu]=hu;var yu=pu;function vu(t){return(vu="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)}function du(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 gu(t,e){return!e||"object"!==vu(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function _u(t,e,n){return(_u="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var r=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=bu(t)););return t}(t,e);if(r){var o=Object.getOwnPropertyDescriptor(r,e);return o.get?o.get.call(n):o.value}})(t,e,n||t)}function bu(t){return(bu=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function mu(t,e){return(mu=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var wu=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),gu(this,bu(e).apply(this,arguments))}var n,r,o;return 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}}),e&&mu(t,e)}(e,yu),n=e,(r=[{key:"_initialize",value:function(t,n){_u(bu(e.prototype),"_initialize",this).call(this,t,n),this._setLngLat(this._coord)}},{key:"render",value:function(){var t=this.getContainer(),e=this._coord,n=t.lngLat2Container(e),r=this._style;if(r){var o=this._options.unit;if("meter"===(void 0===o?"px":o)){var i=t.getGroundResolution(e),a=r.radius;a&&(r.r=a/i);var u=r.size;if(u){v.isArray(u)||(u=[u]),r.s=[];for(var c=-1,s=u.length;++c<s;)r.s.push(u[c]/i)}}else r.r=r.radius,r.s=r.size;r._coord_=n,this._shape.update(n,r).render()}return this}},{key:"_lngLats2Container",value:function(){}},{key:"setLngLat",value:function(t){this._setLngLat(t),this.render()}},{key:"_setLngLat",value:function(t){this._options.isP20&&(t=na(t)),this._coord=ca(t),this._bounds=new fa(this._coord)}},{key:"getLngLat",value:function(){return this._coord}}])&&du(n.prototype,r),o&&du(n,o),e}();function xu(t){return(xu="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)}function Ou(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 Su(t,e){return!e||"object"!==xu(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function ju(t,e,n){return(ju="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var r=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=ku(t)););return t}(t,e);if(r){var o=Object.getOwnPropertyDescriptor(r,e);return o.get?o.get.call(n):o.value}})(t,e,n||t)}function ku(t){return(ku=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function Mu(t,e){return(Mu=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var Eu=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),Su(this,ku(e).apply(this,arguments))}var n,r,o;return 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}}),e&&Mu(t,e)}(e,yu),n=e,(r=[{key:"_initialize",value:function(t,n){ju(ku(e.prototype),"_initialize",this).call(this,t,n),n.isP20?this._coord=t:this._setLngLats(this._coord)}},{key:"render",value:function(){var t,e=this._coord;t=this._options.isP20?this._p20ToContainer(e):this._lngLats2Container(e);var n=this._style;return n&&(n._coord_=t,v.is2DimArr(t)&&(t=[t]),this._shape.update(t,n).render()),this}},{key:"_p20ToContainer",value:function(t){for(var e=this.getContainer(),n=[],r=0;r<t.length;r++){var o=t[r];Array.isArray(o)&&Array.isArray(o[0])?n.push(this._p20ToContainer(o)):n.push(e.p20ToContainer(o))}return n}},{key:"_lngLats2Container",value:function(t){for(var e=[],n=this.getContainer(),r=-1,o=t.length;++r<o;){var i=t[r];i instanceof ua?e.push(n.lngLat2Container(i)):e.push(this._lngLats2Container(i))}return e}},{key:"setLngLats",value:function(t){this._setLngLats(t),this.render()}},{key:"_setLngLats",value:function(t){this._bounds=new fa,this._coord=Oa(t,this._bounds)}},{key:"getLngLats",value:function(){return this._coord}}])&&Ou(n.prototype,r),o&&Ou(n,o),e}();function Pu(t){return(Pu="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Au(t,e){return!e||"object"!==Pu(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function Lu(t){return(Lu=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function Cu(t,e){return(Cu=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var Tu=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),Au(this,Lu(e).apply(this,arguments))}return 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}}),e&&Cu(t,e)}(e,Eu),e}();function Ru(t){return(Ru="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)}function Du(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 Nu(t,e){return!e||"object"!==Ru(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function Iu(t,e,n){return(Iu="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var r=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=zu(t)););return t}(t,e);if(r){var o=Object.getOwnPropertyDescriptor(r,e);return o.get?o.get.call(n):o.value}})(t,e,n||t)}function zu(t){return(zu=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function Fu(t,e){return(Fu=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var Uu=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),Nu(this,zu(e).apply(this,arguments))}var n,r,o;return 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}}),e&&Fu(t,e)}(e,ru),n=e,(r=[{key:"_initProperties",value:function(){Iu(zu(e.prototype),"_initProperties",this).call(this),this._obj3D=[]}},{key:"setFitView",value:function(){var t=this.getContainer();return t&&t.setBounds(this.getBounds()),this}},{key:"onAdd",value:function(){this._owner&&this.render()}},{key:"onRemove",value:function(){var t=this;this._obj3D.forEach(function(e){t._owner._3DLayer.remove(e)}),this._obj3D=[]}},{key:"contains",value:function(t,e){var n=this.getContainer().getMap().getObject3DByContainerPos({x:t,y:e},[this._owner._3DLayer]);if(!n)return!1;var r=n.object;if(r)for(var o=this._obj3D,i=o.length;--i>-1;){var a=o[i];if(r.id===a.id)return!0}return!1}},{key:"_refreshStyle",value:function(){}}])&&Du(n.prototype,r),o&&Du(n,o),e}();var Bu={},qu={_tempCav:null,_getTempCav:function(){return this._tempCav||(this._tempCav=this.createCanvas()),this._tempCav},createCanvas:function(t){var e=t||{},n=e.width,r=e.height,o=document.createElement("canvas");return n&&(o.width=n),r&&(o.height=r),o},fillImage:function(t,e,n){var r,o=e.image,i=e.type,a=void 0===i?"stretch":i,u=e.size,c=e.noClip,s=n||{},f=s.x,l=s.y,h=s.width,p=s.height,y=o.width,v=o.height;switch(a.toLocaleLowerCase()){case"center":f+=(h-y)/2,l+=(p-v)/2,h=y,p=v;break;case"tile":r=t.createPattern(o,"repeat");break;case"size":var d=u.x,g=void 0===d?0:d,_=u.y,b=void 0===_?0:_,m=u.width,w=void 0===m?h:m,x=u.height;h=w,p=void 0===x?p:x,f+=g,l+=b;break;case"auto":h=y,p=v}t.save(),r?(t.fillStyle=r,t.fill()):(!c&&t.clip(),t.drawImage(o,f,l,h,p)),t.restore()},fillPattern:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"repeat";t.fillStyle=t.createPattern(e,n)},measureText:function(t,e,n){var r=e.content,o=e.fontFamily,i=e.fontSize,a=void 0===i?12:i,u=(n||{}).size;return u=void 0===u?a:u,u=parseInt(u),t.font="".concat(u,"px ").concat(o),t.textBaseline="top",{width:t.measureText(r).width,height:u}},icon2Canvas:function(t,e){var n=t.content,r=t.fontFamily,o=t.fontSize,i=void 0===o?12:o,a=(t.color,t.fill,t.stroke,t.opacity),u=t.size,c=this._getTempCav().getContext("2d");u=parseInt(u),c.font="".concat(u,"px ").concat(r),c.textBaseline="top";for(var s=c.measureText(n).width,f=e.length,l=s*f,h=0,p=0;l>Math.pow(2,h);)h++;for(var y=Math.pow(2,h);s>Math.pow(2,p);)p++;var v=Math.pow(2,p),d=this.createCanvas({width:4*y,height:4*v});u&&(i=4*u);for(var g=d.getContext("2d"),_=0;_<f;_++){var b=e[_];if(g.font="".concat(i,"px ").concat(r),g.textBaseline="top",b.color){g.shadowBlur=1,g.shadowColor=b.color;var m=mi.toNormal(b.color);m[3]=m[3]*a;var w="rgba("+m.join(",")+")";g.fillStyle=w,g.fillText(n,_*s*4,0)}}return{cav:d,width:s}},font2Canvas:function(t){var e=t.content,n=t.fontFamily,r=t.fontSize,o=void 0===r?12:r,i=t.color,a=(t.fill,t.stroke),u=t.opacity,c=t.size,s=this._getTempCav().getContext("2d"),f=this.measureText(s,t,{size:c}),l=(f.width,f.height,f.canvasSize),h=this.createCanvas({width:l,height:l});c&&(o=c);var p=h.getContext("2d");return p.globalAlpha=u,p.font="".concat(o,"px ").concat(n),p.textBaseline="top",i&&(p.fillStyle=i,p.fillText(e,0,0)),a&&(p.strokeStyle=i,p.strokeText(e,0,0)),h},source2Image:function(t,e){var n=this;if(v.isStr(t)){var r=Bu[t];if(r)e.call(this,r);else{var o=new Image;o.crossOrigin="anonymous",o.src=t,o.onload=function(){var r=Bu[t]={image:o,source:t};e.call(n,r)},o.onerror=function(){e.call(n)}}}},images2Canvas:function(t,e){for(var n=e.isTexture,r=e.opacity,o=void 0===r?1:r,i=[],a=0,u=0,c=-1,s=t.length;++c<s;){var f=t[c]||{},l=f.height,h=void 0===l?0:l,p=f.width;u=h>u?h:u,a+=S=void 0===p?0:p}var y=a,v=u;if(n){for(var d=0,g=0;a>Math.pow(2,d);)d++;for(a=Math.pow(2,d);u>Math.pow(2,g);)g++;u=Math.pow(2,g)}var _=this.createCanvas({width:a,height:u}),b=_.getContext("2d");b.globalAlpha=o,c=-1,s=t.length;for(var m=0;++c<s;){var w=t[c],x=w||{},O=x.width,S=void 0===O?0:O,j=x.height;h=void 0===j?0:j;i.push({img:w,startX:m,endX:m+S,startY:0,endY:h,width:S,height:h}),S&&b.drawImage(w,m,0,S,h),m+=S}return{canvas:_,imgAttr:i,imgWidth:y,imgHeight:v}},images2CanvasTexture:function(t,e){for(var n=e.isTexture,r=e.opacity,o=void 0===r?1:r,i={},a=-1,u=t.length;++a<u;){var c=t[a],s=encodeURI(c.source);i[s]||(i[s]=c.image)}var f=0,l=0;for(var h in i){var p=i[h]||{},y=p.height,v=void 0===y?0:y,d=p.width;l=v>l?v:l,f+=A=void 0===d?0:d}var g=f,_=l;if(n){var b=Math.ceil(Math.log2(f));f=Math.pow(2,b);var m=Math.ceil(Math.log2(l));l=Math.pow(2,m)}var w=this.createCanvas({width:f,height:l}),x=w.getContext("2d");x.globalAlpha=o;var O=0,S={};for(var j in i){var k=i[j],M=k||{},E=M.height,P=(v=void 0===E?0:E,M.width),A=void 0===P?0:P;S[j]={img:k,startX:O,endX:O+A,startY:0,endY:v,width:A,height:v},A&&x.drawImage(k,O,0,A,v),O+=A}return{canvas:w,imgAttrMap:S,imgHeight:_,imgWidth:g}},sources2Textures:function(t,e,n){for(var r=this,o=-1,i=t.length,a=v.after(i,function(t){var o=r.images2CanvasTexture(t,v.defaults(n,{isTexture:!0}));e.call(r,o)}),u=[];++o<i;){var c=t[o];this.source2Image(c,function(t){t&&u.push(t),a(u)})}}};function Vu(t){return(Vu="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)}function Wu(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=[],r=!0,o=!1,i=void 0;try{for(var a,u=t[Symbol.iterator]();!(r=(a=u.next()).done)&&(n.push(a.value),!e||n.length!==e);r=!0);}catch(t){o=!0,i=t}finally{try{r||null==u.return||u.return()}finally{if(o)throw i}}return n}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function Gu(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 Yu(t,e){return!e||"object"!==Vu(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function Hu(t){return(Hu=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function $u(t,e){return($u=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var Zu="imgLoad",Xu=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),Yu(this,Hu(e).apply(this,arguments))}var n,r,o;return 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}}),e&&$u(t,e)}(e,Uu),n=e,(r=[{key:"_initialize",value:function(t,e){var n=this;this._data=t;var r=(this._options=v.defaults(e,this._defaults)).position;this._coord=t.map(function(t,e){return wi(t,r,n,e)}),this.on(Zu,function(){n._load=!0});var o=this._options,i=o.style,a=o.selectStyle,u=o.source;"image"===o.type?(v.isArray(u)||(u=[u]),this._options.source=u,qu.sources2Textures(u,function(t){n._textures=t,n.emit(Zu)},i[0])):this.emit(Zu),this._options.style=v.isArray(i)?i:[i],v.isNil(a)||(this._options.selectStyle=v.isArray(a)?a:[a]),this._setLngLat(this._coord),this._obj3D=[],this._preSelectIdx=-1,this._selectIdx=-1}},{key:"render",value:function(){var t=this;return this.whenReady(function(){var e,n=t._options,r=n.style,o=n.heightUnit,i=n.type,a=void 0===i?"circle":i,u=n.crossDateLine,c=n.source,s=v.getPixelRatio(),f=AMap.v.split(".");if(f[0]>=1&&f[1]>=4&&f[2]>=13&&(s=1),"image"===a){e=new AMap.Object3D.Points;var l=t._textures,h=l.canvas,p=l.imgAttrMap,y=h.width,d=h.height;e.textures.push(h.toDataURL());for(var g=e.geometry,_=-1,b=t._coord.length;++_<b;){var m=t._coord[_],w=c[_]||c[0];v.isImg(w)&&(w=w.src);var x=r[_]||r[0],O=Ki(ta(m.valueOf())),S=p[encodeURI(w)],j=S.startX,k=S.endX,M=S.startY,E=S.endY,P=S.width,A=S.height,L=x.size,C=x.altitude,T=void 0===C?0:C;"meter"===o&&(T=ra(T)),g.vertices.push(O[0],O[1],-T);var R=0,D=0;v.isArray(L)?(R=+L[0],D=+L[1]):D=(R=+L)*A/P;var N=R>D?R:D;if(g.pointSizes.push(N*s),R>D){var I=(N-D)/N/2;g.pointAreas.push(0,I,1,1-I)}else{var z=(N-R)/N/2;g.pointAreas.push(z,0,1-z,1)}g.vertexUVs.push(j/y,M/d,k/y,E/d)}}else if("circle"===a)for(var F=(e=new AMap.Object3D.RoundPoints).geometry,U=-1,B=t._coord.length;++U<B;){var q=t._coord[U],V=r[U]||r[0],W=q.valueOf(),G=Ki(u?oa(W):ta(W)),Y=V.radius,H=V.altitude,$=(T=void 0===H?0:H,V.fill),Z=V.color,X=void 0===Z?$:Z,J=V.opacity;if("meter"===o&&(T=ra(T)),F.vertices.push(G[0],G[1],-T),F.pointSizes.push(Y*s*2),!v.isNil(X)){var Q=mi.toFragColor(X,J);F.vertexColors.push.apply(F.vertexColors,Q)}}e.transparent=!0,e.blendMode=t._options.blendMode;var K=r[0],tt=K.stroke,et=K.borderColor,nt=void 0===et?tt:et,rt=K.lineWidth,ot=K.borderWidth,it=void 0===ot?rt:ot,at=K.opacity;if(nt){var ut=mi.toFragColor(nt,at);e.borderColor=ut,e.borderWeight=it}t._owner._3DLayer.add(e),t._obj3D.push(e)})}},{key:"_refreshStyle",value:function(){var t=this._obj3D[0];if(t){var e=t.geometry,n=e.pointSizes,r=e.vertexColors,o=v.getPixelRatio(),i=AMap.v.split(".");i[0]>=1&&i[1]>=4&&i[2]>=13&&(o=1);var a=this._options,u=a.style,c=a.selectStyle,s=this._preSelectIdx;if(-1!==s){var f=u[s]||u[0],l=f.radius,h=f.size,p=f.fill,y=f.color,d=void 0===y?p:y,g=f.opacity;if(v.isNil(l)?v.isNil(h)||(n[s]=h*o):n[s]=l*o*2,!v.isNil(d)){var _=Wu(mi.toFragColor(d,g),4),b=_[0],m=_[1],w=_[2],x=_[3];r.splice(4*s,4,b,m,w,x)}t.needUpdate=!0,t.reDraw()}var O=this._selectIdx;if(this._select&&-1!==O){this._preSelectIdx=O;var S=c[O]||c[0],j=S.radius,k=S.fill,M=S.color,E=void 0===M?k:M,P=S.opacity;if(v.isNil(j)||(e.pointSizes[O]=j*o*2),!v.isNul(E)){var A=Wu(mi.toFragColor(E,P),4),L=A[0],C=A[1],T=A[2],R=A[3];e.vertexColors.splice(4*O,4,L,C,T,R)}t.needUpdate=!0,t.reDraw()}}}},{key:"_setLngLat",value:function(t){this._bounds=new fa,this._coord=Oa(t,this._bounds)}},{key:"setLngLat",value:function(t){this._setLngLat(t),this.render()}},{key:"contains",value:function(t,e){var n=this.getContainer().getMap().getObject3DByContainerPos({x:t,y:e},[this._owner._3DLayer]);if(this._selectIdx=-1,!n)return!1;var r=n.object,o=n.index;return this._obj3D[0].id===r.id&&(this._selectIdx=o,!0)}},{key:"getData",value:function(t){var e=(t||{}).selectSingle,n=this._selectIdx;if(e&&-1!=n){if(v.isNul(n))return;var r=v.clone(this._data[n]);return r.index=n,r}return v.clone(this._data)}},{key:"whenReady",value:function(t){return this._load?t.call(this):this.on(Zu,t),this}}])&&Gu(n.prototype,r),o&&Gu(n,o),e}();var Ju=n(60),Qu=n.n(Ju);function Ku(t){return(Ku="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)}function tc(t){return function(t){if(Array.isArray(t)){for(var e=0,n=new Array(t.length);e<t.length;e++)n[e]=t[e];return n}}(t)||function(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function ec(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=[],r=!0,o=!1,i=void 0;try{for(var a,u=t[Symbol.iterator]();!(r=(a=u.next()).done)&&(n.push(a.value),!e||n.length!==e);r=!0);}catch(t){o=!0,i=t}finally{try{r||null==u.return||u.return()}finally{if(o)throw i}}return n}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function nc(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 rc(t,e){return!e||"object"!==Ku(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function oc(t,e,n){return(oc="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var r=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=ic(t)););return t}(t,e);if(r){var o=Object.getOwnPropertyDescriptor(r,e);return o.get?o.get.call(n):o.value}})(t,e,n||t)}function ic(t){return(ic=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function ac(t,e){return(ac=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var uc=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),rc(this,ic(e).apply(this,arguments))}var n,r,o;return 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}}),e&&ac(t,e)}(e,Uu),n=e,(r=[{key:"_initialize",value:function(t,n){oc(ic(e.prototype),"_initialize",this).call(this,t,n),this._setLngLats(this._coord)}},{key:"render",value:function(){var t=this._coord,e=this._options,n=e.isG20,r=e.heightUnit,o=n?t:this._lngLats2Container(t),i=this._style||this._options.style,a=[];if(i){i._coord_=o;var u=i.stroke,c=i.color,s=void 0===c?u:c,f=i.opacity,l=void 0===f?1:f,h=i.curveness,p=void 0===h?0:h,y=i.height,d=void 0===y?0:y;"meter"===r&&(d=ra(d));var g=ec(mi.toFragColor(s,l),4),_=g[0],b=g[1],m=g[2],w=g[3];v.is2DimArr(o)&&(o=[o]);for(var x=0;x<o.length;x++){var O=o[x],S=O.length,j=void 0;if(p){var k=[].concat(tc(O[0]),[0]),M=[].concat(tc(O[S-1]),[0]),E=[(M[0]+k[0])/2,(M[1]+k[1])/2,2e6*p],P=new Qu.a([].concat(tc(k),E,tc(M))),A=P.length(),L=A>20?20:A;j=P.getLUT(L)}var C=new AMap.Object3D.Line,T=C.geometry;C.transparent=!0,p&&(S=(O=j).length);for(var R=0;R<S;R++){var D=O[R];D.x&&(D=[D.x,D.y,D.z]);var N=ec(D,3),I=N[0],z=N[1],F=N[2];T.vertices.push(I,z,-(F||d||0)),R<S-1&&T.segments.push(R,(R+1)%S),T.vertexColors.push(_,b,m,w)}this._owner._3DLayer.add(C),a.push(C)}}return this._obj3D=a,this}},{key:"_lngLats2Container",value:function(t){for(var e=[],n=this.getContainer(),r=-1,o=t.length;++r<o;){var i=t[r];i instanceof ua?e.push(n.lngLat2GeodeticCoord(i)):e.push(this._lngLats2Container(i))}return e}},{key:"_setLngLats",value:function(t){var e=!!this._options.isG20;this._bounds=new fa,this._coord=e?t:Oa(t,this._bounds)}},{key:"setLngLats",value:function(t){this._setLngLats(t),this.render()}}])&&nc(n.prototype,r),o&&nc(n,o),e}();function cc(t){return(cc="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)}function sc(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 fc(t,e){return!e||"object"!==cc(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function lc(t,e,n){return(lc="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var r=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=hc(t)););return t}(t,e);if(r){var o=Object.getOwnPropertyDescriptor(r,e);return o.get?o.get.call(n):o.value}})(t,e,n||t)}function hc(t){return(hc=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function pc(t,e){return(pc=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var yc=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),fc(this,hc(e).apply(this,arguments))}var n,r,o;return 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}}),e&&pc(t,e)}(e,Uu),n=e,(r=[{key:"_initialize",value:function(t,n){lc(hc(e.prototype),"_initialize",this).call(this,t,n),this._setLngLats(this._coord)}},{key:"render",value:function(){var t=this.getContainer().getMap(),e=this._owner._3DLayer;this._setLight||(t.AmbientLight=new AMap.Lights.AmbientLight([1,1,1],.5),t.DirectionLight=new AMap.Lights.DirectionLight([-6,-2,14],[1,1,1],.5),this._setLight=!0);var n=this._obj3D;n&&n.length>0&&n.forEach(function(t){e.remove(t)});var r=this._lngLats2Container(this._coord),o=this._style||this._options.style,i=this._options.heightUnit,a=[];if(o){o._coord_=r;var u=o.fill,c=o.color,s=void 0===c?u:c,f=o.fillOpacity,l=void 0===f?1:f,h=o.height,p=o.opacity,y=void 0===p?l:p;if(!s)return this;"meter"===i&&(h=ra(h));var d=mi.toFragColor(s,y);v.isArray(r)&&v.isArray(r[0])||(r=[r]);var g=new AMap.Object3D.Prism({path:r,height:h||0,color:d});g.transparent=!0,e.add(g),a.push(g)}return this._obj3D=a,this}},{key:"_lngLats2Container",value:function(t){for(var e=[],n=-1,r=t.length;++n<r;){var o=t[n];o instanceof ua?e.push(new AMap.LngLat(o.getLng(),o.getLat())):e.push(this._lngLats2Container(o))}return e}},{key:"_setLngLats",value:function(t){this._bounds=new fa,this._coord=Oa(t,this._bounds)}},{key:"setLngLats",value:function(t){this._setLngLats(t),this.render()}},{key:"_refreshStyle",value:function(){var t=this._options,e=t.selectStyle,n=t.style;this._style=this._select?v.merge({},n,e):n,this.render()}}])&&sc(n.prototype,r),o&&sc(n,o),e}();function vc(t){return(vc="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)}function dc(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=[],r=!0,o=!1,i=void 0;try{for(var a,u=t[Symbol.iterator]();!(r=(a=u.next()).done)&&(n.push(a.value),!e||n.length!==e);r=!0);}catch(t){o=!0,i=t}finally{try{r||null==u.return||u.return()}finally{if(o)throw i}}return n}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function gc(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 _c(t,e){return!e||"object"!==vc(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function bc(t,e,n){return(bc="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var r=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=mc(t)););return t}(t,e);if(r){var o=Object.getOwnPropertyDescriptor(r,e);return o.get?o.get.call(n):o.value}})(t,e,n||t)}function mc(t){return(mc=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function wc(t,e){return(wc=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var xc=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),_c(this,mc(e).apply(this,arguments))}var n,r,o;return 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}}),e&&wc(t,e)}(e,Uu),n=e,(r=[{key:"_initProperties",value:function(){bc(mc(e.prototype),"_initProperties",this).call(this),this._defaults={type:"Map3DAcceptLightPrism",unit:"meter",heightUnit:"meter"}}},{key:"_initialize",value:function(t,e){var n=this;this._data=t;var r=this._options=v.defaults(e,this._defaults),o=r.position,i=r.heightUnit;this._coord=t.map(function(t,e){return wi(t,o,n,e)});for(var a=this._options,u=a.style,c=a.selectStyle,s=[],f=[],l=-1,h=this._coord.length;++l<h;){var p=v.clone(u[l]||u),y=p.radius,d=p.topRadius,g=void 0===d?y:d,_=p.bottomRadius,b=void 0===_?y:_,m=p.height,w=void 0===m?0:m,x=p.altitude,O=void 0===x?0:x,S=p.color,j=p.opacity,k=void 0===j?1:j,M=p.sideColor,E=void 0===M?S:M,P=p.sideTopColor,A=void 0===P?E:P,L=p.sideBottomColor,C=void 0===L?E:L,T=p.topSideColor,R=void 0===T?S:T,D=p.topSideOpacity,N=void 0===D?k:D;p.radius=[b,g],"meter"===i&&(w=ra(w),O=ra(O)),p.height=[w+O,O];var I=mi.toFragColor(C,k),z=mi.toFragColor(A,k);if(p.color=[I,z],p.topSideColor=mi.toFragColor(R,N),s.push(p),!v.isNil(c)){var F=v.clone(c[l]||c);S=F.color;var U=F.opacity;k=void 0===U?k:U;var B=F.sideColor;E=void 0===B?S:B;var q=F.sideTopColor;A=void 0===q?E:q;var V=F.sideBottomColor;C=void 0===V?E:V;var W=F.topSideColor;R=void 0===W?S:W;var G=F.topSideOpacity;N=void 0===G?k:G,F.color=[],v.isNil(C)||(F.color[0]=mi.toFragColor(C,k)),v.isNil(A)||(F.color[1]=mi.toFragColor(A,k)),v.isNil(R)||(F.topSideColor=mi.toFragColor(R,N)),f.push(F)}}this._options.style=s,this._options.selectStyle=f.length?f:void 0,this._setLngLat(this._coord),this._selectIdx=-1,this._preSelectMeshIdx=-1,this._preSelectIdxInMesh=-1,this._selectMeshIdx=-1,this._selectIdxInMesh=-1}},{key:"_setLngLat",value:function(t){this._bounds=new fa,this._coord=Oa(t,this._bounds)}},{key:"setLngLat",value:function(t){this._setLngLat(t),this.render()}},{key:"render",value:function(){var t=this._options,e=t.vertex,n=void 0===e?4:e,r=t.unit,o=t.light,i=void 0===o?{ambient:!0,directional:!0}:o,a=i.ambient,u=i.directional,c=this.getContainer().getMap();if(a){var s=a.color,f=void 0===s?"#ffffff":s,l=a.intensity,h=void 0===l?.5:l,p=new AMap.Lights.AmbientLight(mi.toFragColor(f),h);c.AmbientLight=p}if(u){var y=u.color,v=void 0===y?"#ffffff":y,d=u.intensity,g=void 0===d?.5:d,_=u.direction,b=void 0===_?[1,-1,2]:_,m=new AMap.Lights.DirectionLight(b,mi.toFragColor(v),g);c.DirectionLight=m}for(var w=2*n,x=w+2*(1+n),O=x*this._coord.length,S=Math.ceil(O/65535),j=-1;++j<S;){var k=this.getContainer(),M=void 0;if(this._owner._options.fitView){var E=k._map.getFitZoomAndCenterByBounds(new AMap.Bounds(this._bounds._southWest._lng,this._bounds._southWest._lat,this._bounds._northEast._lng,this._bounds._northEast._lat));this._owner._options.fitView=!1,M=E[0]}else M=k.getZoom();var P=Math.ceil(65535*j/x),A=Math.ceil(P+65535/x),L=this._coord.slice(P,A),C=this._options.style.slice(P,A),T=[],R=[],D=new AMap.Object3D.MeshAcceptLights;D._dataLength=L.length;for(var N=D.geometry,I=N.vertices,z=N.vertexColors,F=N.faces,U=N.vertexNormals,B=-1,q=L.length;++B<q;){var V=L[B],W=Qi(V.valueOf());T.push(W);var G=C[B],Y=G.radius,H=G.height,$=G.color,Z=G.rotate,X=void 0;if("meter"===r){var J=Ji(V.getLat(),20);X=[Y[0]/J,Y[1]/J]}else{var Q=Fi(20)/Fi(M);X=[Y[0]*Q,Y[1]*Q]}var K=Ai(W,X[0],n,Z),tt=Ai(W,X[1],n,Z);R.push(tt);for(var et=B*w,nt=-1;++nt<n;){var rt=tt[nt],ot=K[nt];I.push(ot[0],ot[1],-H[1]),I.push(rt[0],rt[1],-H[0]),z.push.apply(z,$[0]),z.push.apply(z,$[1]);var it=2*Math.PI*nt/n,at=Pi(it),ut=Ei(it);U.push(at,ut,0),U.push(at,ut,0);var ct=2*nt+et,st=ct+1,ft=(ct+2)%w+et,lt=(ct+3)%w+et;F.push(ct,st,lt),F.push(ct,lt,ft)}}for(var ht=q*n*2,pt=-1;++pt<q;){var yt=C[pt],vt=(H=yt.height,yt.topSideColor),dt=T[pt],gt=R[pt];I.push(dt[0],dt[1],-H[0]),z.push.apply(z,vt),U.push(0,0,-1);for(var _t=-1;++_t<n;){var bt=gt[_t];I.push(bt[0],bt[1],-H[0]),z.push.apply(z,vt),U.push(0,0,-1)}for(var mt=-1,wt=n*pt+ht+1*pt;++mt<n;){var xt=(wt+2+mt)%wt,Ot=wt+1+mt,St=xt<=n?wt+xt:xt%n+wt;F.push(wt,St,Ot)}}D.transparent=!0,this._obj3D.push(D),this._owner._3DLayer.add(D)}}},{key:"contains",value:function(t,e){var n=this._options.vertex,r=void 0===n?4:n,o=this.getContainer().getMap().getObject3DByContainerPos({x:t,y:e},[this._owner._3DLayer]);if(this._selectIdx=-1,this._selectMeshIdx=-1,this._selectIdxInMesh=-1,!o)return!1;for(var i=o.object,a=o.index,u=-1,c=this._obj3D.length,s=0;++u<c;){var f=this._obj3D[u];if(f.id===i.id){var l=-1,h=f._dataLength*r*2;return l=a>=h?(a-=h)/r>>0:a/r/2>>0,this._selectMeshIdx=u,this._selectIdxInMesh=l,l+=s,this._selectIdx=l,!0}s+=f._dataLength}return!1}},{key:"_refreshStyle",value:function(){if(this._obj3D.length){var t=this._options,e=t.style,n=t.selectStyle,r=t.vertex,o=this._selectIdx,i=this._preSelectIdx,a=this._preSelectMeshIdx,u=this._preSelectIdxInMesh;if(-1!==u&&-1!==a&&-1!==i){for(var c=e[i]||e[0],s=c.color,f=c.topSideColor,l=this._obj3D[a],h=l._dataLength,p=l.geometry.vertexColors,y=dc(s,2),d=y[0],g=y[1],_=-1;++_<r;){var b=4*(u*r+_)*2,m=dc(d,4),w=m[0],x=m[1],O=m[2],S=m[3];p.splice(b,4,w,x,O,S);var j=dc(g,4);w=j[0],x=j[1],O=j[2],S=j[3],p.splice(b+4,4,w,x,O,S)}var k=h*r*2*4,M=u*(1+r)*4,E=dc(f,4),P=E[0],A=E[1],L=E[2],C=E[3];for(p.splice(k+M,4,P,A,L,C),_=-1;++_<r;)p.splice(k+M+4*(_+1),4,P,A,L,C);l.needUpdate=!0,l.reDraw()}var T=this._selectMeshIdx,R=this._selectIdxInMesh;if(this._select&&-1!==o){this._preSelectIdx=o,this._preSelectMeshIdx=T,this._preSelectIdxInMesh=R;for(var D=this._obj3D[T],N=D._dataLength,I=D.geometry.vertexColors,z=n[o]||n[0],F=z.color,U=z.topSideColor,B=dc(F,2),q=B[0],V=B[1],W=-1;++W<r;){var G=4*(R*r+W)*2,Y=void 0,H=void 0,$=void 0,Z=void 0;if(!v.isNil(q)){var X=dc(q,4);Y=X[0],H=X[1],$=X[2],Z=X[3],I.splice(G,4,Y,H,$,Z)}if(!v.isNil(V)){var J=dc(V,4);Y=J[0],H=J[1],$=J[2],Z=J[3],I.splice(G+4,4,Y,H,$,Z)}}if(!v.isNil(U)){var Q=dc(U,4),K=Q[0],tt=Q[1],et=Q[2],nt=Q[3],rt=N*r*2*4,ot=R*(1+r)*4;for(I.splice(rt+ot,4,K,tt,et,nt),W=-1;++W<r;)I.splice(rt+ot+4*(W+1),4,K,tt,et,nt)}D.needUpdate=!0,D.reDraw()}}}},{key:"getData",value:function(t){if((t||{}).selectSingle){var e=this._selectIdx;if(v.isNul(e)||-1===e)return;var n=v.clone(this._data[e]);return n.index=e,n}return v.clone(this._data)}}])&&gc(n.prototype,r),o&&gc(n,o),e}();function Oc(t){return(Oc="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)}function Sc(t){return function(t){if(Array.isArray(t)){for(var e=0,n=new Array(t.length);e<t.length;e++)n[e]=t[e];return n}}(t)||function(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function jc(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 kc(t,e){return!e||"object"!==Oc(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function Mc(t){return(Mc=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function Ec(t,e){return(Ec=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var Pc={zIndex:0},Ac=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),kc(this,Mc(e).apply(this,arguments))}var n,r,o;return 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}}),e&&Ec(t,e)}(e,Uu),n=e,(r=[{key:"_initialize",value:function(t,e){this._data=t,this._options=v.defaults(e,this._defaults,Pc),this._coord=t||[]}},{key:"render",value:function(){var t=this._coord.concat([]),e=t.shift(),n=this._options,r=n.style,o=void 0===r?{}:r,i=(n.type,o.height),a=o.innerHeight,u=o.color,c=o.opacity,s=void 0===c?1:c,f=mi.toFragColor(u,s),l=AMap.GeometryUtil.triangulateShape(e,t),h=new AMap.Object3D.Mesh;h.backOrFront="both",h.transparent=!0;var p=h.geometry,y=p.vertices,v=p.vertexColors,d=p.faces;return e.forEach(function(t){y.push.apply(y,Sc(t).concat([-i])),v.push.apply(v,Sc(f))}),t&&t.length&&t.forEach(function(t){t.forEach(function(t){y.push.apply(y,Sc(t).concat([-a])),v.push.apply(v,Sc(u))})}),l.forEach(function(t){d.push(t)}),this._owner._3DLayer.add(h),this._obj3D=[h],this}},{key:"_setLngLat",value:function(t){this._bounds=new fa,this._coord=Oa(t,this._bounds)}},{key:"setLngLat",value:function(t){this._setLngLat(t),this.render()}}])&&jc(n.prototype,r),o&&jc(n,o),e}();function Lc(t){return(Lc="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)}function Cc(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 Tc(t,e){return!e||"object"!==Lc(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function Rc(t,e,n){return(Rc="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var r=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=Dc(t)););return t}(t,e);if(r){var o=Object.getOwnPropertyDescriptor(r,e);return o.get?o.get.call(n):o.value}})(t,e,n||t)}function Dc(t){return(Dc=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function Nc(t,e){return(Nc=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var Ic={dataOptions:{position:"position",value:"value"},attrOpt:{adcode:1e5,mode:"count",style:{},gradient:["#eff3ff","#c6dbef","#9ecae1","#6baed6","#3182bd","#08519c"]}},zc=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),Tc(this,Dc(e).apply(this,arguments))}var n,r,o;return 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}}),e&&Nc(t,e)}(e,Ta),n=e,(r=[{key:"_initProperties",value:function(){Rc(Dc(e.prototype),"_initProperties",this).call(this),this._groupMap={},this._dataList=[],this._defOptions={drillDown:!1}}},{key:"_initLayout",value:function(t){var e=this;G._whenUIReady(function(n){n.loadUI(["geo/DistrictExplorer"],function(n){var r=e._owner;if(r){var o=e._map=r.getMap();if(o){e._explorer=new n({eventSupport:!1,map:o});var i="3D"===r.getViewMode(),a=e._group=new(i?Za:Ba)([],e._options);a.on(E.LOAD,function(){e._amapLayer=a.getAMapLayer(),v.callFn(t,e)}),a.addTo(r)}}})}),G.init({ui:!0})}},{key:"_bindEvent",value:function(){var t=this;Rc(Dc(e.prototype),"_bindEvent",this).call(this);var n=this._options,r=n.drillDown,o=n.fitView;r&&this.on(E.CLICK,function(e){var n=e.propagatedFrom.getData().subFeature.properties,r=n.adcode,o=n.childrenNum;r&&o&&t.goto(r)}),o&&this.on(E.RENDER,function(e){t.setFitView()})}},{key:"setData",value:function(t,e){this._groupMap={},this._bounds=new fa,this._dataList=[],this._data=v.clone(t);for(var n=this._dataOptions=v.defaults({},e,Ic.dataOptions),r=n.position,o=n.value,i=n.max,a=n.min,u=v.isNul(a)?-1/0:a,c=v.isNul(i)?1/0:i,s=-1,f=t.length;++s<f;){var l=t[s],h=ca(wi(l,r,this,s));this._bounds.expend(h);var p=+wi(l,o,this,s)||0;p=p>c?c:p<u?u:p,this._dataList.push({rawData:l,lngLat:h,value:p})}return this}},{key:"setOptions",value:function(t){this._attrOptions=Oi(t,Ic.attrOpt)}},{key:"_groupByAdCode",value:function(t,e,n){var r=this,o=this._groupMap[e];o?n.call(this,o.features):this.whenReady(function(){r._explorer.loadAreaNode(e,function(e,o){if(e)n.call(r);else{var i=o.adcode;if(!r._groupMap[i]){var a=o.groupByPosition(t,function(t){return t.lngLat.valueOf()});r._updateStatistics(a),r._groupMap[i]={features:a,areaNode:o},n.call(r,a)}}})})}},{key:"_updateStatistics",value:function(t){for(var e=-1,n=t.length;++e<n;){var r=t[e],o=r.subFeatureIndex,i=r.points;if(-1!==o){var a=i.length,u={count:a};a>0&&(u.sum=v.sumBy(i,"value"),u.max=v.maxBy(i,"value").value,u.min=v.minBy(i,"value").value,u.mean=v.meanBy(i,"value"),u.median=v.median(i,"value")),r.statistics=u}}return t}},{key:"changeMode",value:function(t){return this._attrOptions.mode=t,this._render(),this}},{key:"goto",value:function(t){if(-1===t){var e=this._adcode;if(e){var n=this._groupMap[e].areaNode.getParentFeature().properties.acroutes||[],r=n[n.length-1];r&&r!=e&&(this._attrOptions.adcode=r,this._render())}}else this._attrOptions.adcode=t,this._render();return this}},{key:"render",value:function(){return this._render(),this}},{key:"_render",value:function(){var t=this;return this.whenReady(function(){var e=t._attrOptions,n=e.displayBlank,r=e.mode,o=e.adcode,i=e.style,a=e.selectStyle;t._groupByAdCode(t._dataList,o,function(e){if(e){t._adcode=o;var u=[],c=[];e.forEach(function(t){var e=t.subFeatureIndex,n=t.points,o=t.statistics;if(-1!==e){var i=n.length>0?o[r]:void 0;u.push({feature:t,weight:i}),v.isNil(i)||c.push(i)}});var s=v.extent(c),f=i||{},l=f.color,h=f.stroke,p=f.borderColor,y=void 0===p?h:p,d=f.height,g=f.blankFill,_=xi(l,{scale:"quantile",input:s}),b=_.value,m=_.scale,w=_.input;"quantile"===m&&(w=v.chain(c).uniq().sortBy().value());var x=ei.create(m).domain(w).range(b);x.nice&&x.nice(),"function"==typeof b&&(x=!1);var O,S=xi(d,{scale:"linear",input:s,clamp:!0}),j=S.value,k=S.scale,M=S.input,P=S.clamp;v.isArray(j)&&(O=ei.create(k).domain(M).range(j)).clamp&&O.clamp(P);var A=[];u.forEach(function(t){var e=t.feature,r=t.weight,o=v.isNil(r);if(o&&!n)return!1;var u=e.subFeature,c=0;O&&(c=v.isNil(r)?0:O(r));var s=o?v.isNil(g)?"":g:x?x(r):b(t),f=v.defaults({color:s,borderColor:y,height:c},i),l=u.geometry.coordinates,h=[];l.forEach(function(t){h.push(t[0])});var p={type:"polygon",position:h,style:f,feature:e};a&&(p.selectStyle=v.defaults(a,Ic.attrOpt.selectStyle)),A.push(p)});var L=[],C="3D"===t._owner.getViewMode();A.forEach(function(e){var n=new(C?yc:Tu)(e.feature,e);n.addEventParent(t,function(t){var e=t.target.getData();return t.value=e.statistics[r],t.feature=e,t}),L.push(n)}),t._group.removeOverlay().addOverlay(L),t._buildLabels(A),t.emit(E.RENDER)}})}),this}},{key:"_buildLabels",value:function(t){if(this._labelsLayer)this._labelsLayer.clear();else{var e=this._options.zIndex;this._labelsLayer=new AMap.LabelsLayer({zIndex:e||1200,collision:!1,animation:!1}),null==this._options.visible||this._options.visible||this._labelsLayer.hide(),this._labelsLayer.setMap(this._map)}var n=t.map(function(t,e){var n=t.style;n.text||(n.text={});var r=t.style.text,o=Object.assign({},r);if("function"==typeof r)o=r({value:t.feature,index:e});else if("object"===Lc(r))for(var i in r)"function"==typeof r[i]&&(o[i]=r[i]({value:t.feature,index:e}));return new AMap.LabelMarker({position:t.feature.subFeature.properties.centroid||t.feature.subFeature.properties.center,text:{direction:o.direction,offset:o.offset,content:null==o.content?"":o.content+"",zooms:o.zooms,style:o}})});this._labelsLayer.add(n)}},{key:"getStatus",value:function(){var t=this._groupMap[this._adcode];return t?{adcode:this._adcode,features:t.features}:void 0}},{key:"setFitView",value:function(){var t=this;return this.whenReady(function(){t._group.setFitView()}),this}},{key:"setzIndex",value:function(t){var e=this;return this.whenReady(function(){e._group.setzIndex(t),e._labelsLayer.setzIndex(t)}),this}},{key:"destroy",value:function(){this._group&&this._group.destroy(),Rc(Dc(e.prototype),"destroy",this).call(this)}}])&&Cc(n.prototype,r),o&&Cc(n,o),e}();function Fc(t){return(Fc="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)}function Uc(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 Bc(t,e){return!e||"object"!==Fc(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function qc(t){return(qc=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function Vc(t,e){return(Vc=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var Wc=function(t){function e(t){var n;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),(n=Bc(this,qc(e).call(this)))._options=t,n}var n,r,o;return 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}}),e&&Vc(t,e)}(e,w),n=e,(r=[{key:"setContext",value:function(t){return this._ctx=t,this}},{key:"update",value:function(t,e){return this._vertices=t,this._attr=e,this.updateBounds(),this}},{key:"_updatePath",value:function(){return this}},{key:"_draw",value:function(){return this}},{key:"render",value:function(){this._updatePath(),this._draw(),this._attr.debugBounds&&this._renderBounds()}},{key:"contains",value:function(t,e){return this._bounds&&this._bounds.contains([t,e])}},{key:"updateBounds",value:function(){return this._bounds=new _a,this}},{key:"_renderBounds",value:function(){}}])&&Uc(n.prototype,r),o&&Uc(n,o),e}();!function(t,e,n){e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n}(Wc,"type","path");var Gc=Wc;function Yc(t){return(Yc="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)}function Hc(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=[],r=!0,o=!1,i=void 0;try{for(var a,u=t[Symbol.iterator]();!(r=(a=u.next()).done)&&(n.push(a.value),!e||n.length!==e);r=!0);}catch(t){o=!0,i=t}finally{try{r||null==u.return||u.return()}finally{if(o)throw i}}return n}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function $c(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 Zc(t,e){return!e||"object"!==Yc(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function Xc(t){return(Xc=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function Jc(t,e){return(Jc=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var Qc=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),Zc(this,Xc(e).apply(this,arguments))}var n,r,o;return 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}}),e&&Jc(t,e)}(e,Gc),n=e,(r=[{key:"_draw",value:function(){var t=this._ctx,e=this._attr,n=e.borderWidth,r=e.borderColor,o=e.color,i=e.fillImage,a=e.shadowBlur,u=e.shadowColor,c=e.shadowOffsetX,s=e.shadowOffsetY,f=e.lineWidth,l=void 0===f?n:f,h=e.stroke,p=void 0===h?r:h,y=e.opacity,v=e.fill,d=void 0===v?o:v,g=e.fillOpacity,_=void 0===g?y:g,b=e.dashArray,m=e.lineDashOffset,w=e.lineCap,x=e.lineJoin,O=e.fillRule,S=e.content,j=e.tX,k=e.tY;return t.shadowOffsetX=c,t.shadowOffsetY=s,t.shadowBlur=a,t.shadowColor=u,d&&(t.fillStyle=d,t.globalAlpha=_,t.fill(O||"nonzero")),p&&(t.setLineDash&&b&&(t.setLineDash(b),t.lineDashOffset=m),t.strokeStyle=p,t.globalAlpha=y,t.lineWidth=l,t.lineCap=w,t.lineJoin=x,t.stroke()),S&&t.fillText(S,j,k),i&&qu.fillImage(t,i,this._bounds),this}},{key:"_renderBounds",value:function(){var t=this._ctx,e=this._bounds;if(e.isValid()&&t){var n=Hc(e.valueOf(),2),r=Hc(n[0],2),o=r[0],i=r[1],a=Hc(n[1],2),u=a[0]-o,c=a[1]-i;t.beginPath(),t.rect(o,i,u,c),t.closePath(),t.save(),t.fillStyle="rgba(0, 238, 0, 0.2)",t.strokeStyle="rgba(255, 69, 0, 0.3)",t.lineWidth=.5,t.fill(),t.stroke(),t.restore()}}}])&&$c(n.prototype,r),o&&$c(n,o),e}(),Kc={};Kc.Coordinate={distance2LineString:function(t,e){for(var n=1/0,r=0,o=1,i=e.length;o<i;r=o,o+=1)n=Math.min(n,Kc.Coordinate.squaredDistanceToSegment(t,[e[r],e[o]]));return Math.sqrt(n)},squaredDistanceToSegment:function(t,e){return this.squaredDistance(t,this.closestOnSegment(t,e))},squaredDistance:function(t,e){var n=t[0]-e[0],r=t[1]-e[1];return n*n+r*r},closestOnSegment:function(t,e){var n,r,o=t[0],i=t[1],a=e[0],u=e[1],c=a[0],s=a[1],f=u[0],l=u[1],h=f-c,p=l-s,y=0===h&&0===p?0:(h*(o-c)+p*(i-s))/(h*h+p*p||0);return y<=0?(n=c,r=s):y>=1?(n=f,r=l):(n=c+y*h,r=s+y*p),[n,r]},isClockwise:function(t){for(var e,n,r,o=t.length,i=0,a=t[o-1],u=a[0],c=a[1],s=0;s<o;s+=1)i+=((e=(r=t[s])[0])-u)*((n=r[1])+c),u=e,c=n;return i>0},containsCoordinate:function(t,e,n){for(var r,o,i,a,u=t[0],c=t[1],s=!1,f=e.length,l=0,h=f-1;l<f;h=l,l+=1){var p=!1;if(r=e[l][0],o=e[l][1],i=e[h][0],a=e[h][1],r===u&&o===c||i===u&&a===c)return!!n;if(o<c==a>=c){var y=(i-r)*(c-o)/(a-o)+r;if(u===y)return!!n;p=u<y}p&&(s=!s)}return s}};var ts=Kc;function es(t){return(es="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)}function ns(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=[],r=!0,o=!1,i=void 0;try{for(var a,u=t[Symbol.iterator]();!(r=(a=u.next()).done)&&(n.push(a.value),!e||n.length!==e);r=!0);}catch(t){o=!0,i=t}finally{try{r||null==u.return||u.return()}finally{if(o)throw i}}return n}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function rs(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 os(t,e){return!e||"object"!==es(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function is(t){return(is=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function as(t,e){return(as=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var us=ts.Coordinate.containsCoordinate,cs=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),os(this,is(e).apply(this,arguments))}var n,r,o;return 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}}),e&&as(t,e)}(e,Qc),n=e,(r=[{key:"_updatePath",value:function(){var t=this._ctx,e=this._r,n=this._x,r=this._y,o=this._corners=li.getHexCorners([n,r],e),i=o[0],a=v.getPixelRatio();t.beginPath(),t.moveTo(i[0]*a,i[1]*a);for(var u=0,c=o.length;++u<c;){var s=ns(o[u],2),f=s[0],l=s[1];t.lineTo(f*a,l*a)}t.closePath()}},{key:"contains",value:function(t,e){return!!this._bounds.contains([t,e])&&us([t,e],this._corners,!0)}},{key:"updateBounds",value:function(){var t=this._attr,e=t.offsetX,n=t.offsetY,r=t.lineWidth,o=t.radius,i=t.r,a=void 0===i?o:i;e=e||0,n=n||0,r=r||1;var u=ns(this._vertices,2),c=u[0],s=u[1],f=this._x=c+e,l=this._y=s+n;this._r=a;var h=this._bounds=new _a([f-a,l-a],[f+a,l+a]),p=h.getTopLeft(),y=h.getBottomRight(),v=new va(r/2,r/2);h.expend(p.subtract(v)).expend(y.add(v))}}])&&rs(n.prototype,r),o&&rs(n,o),e}();!function(t,e,n){e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n}(cs,"type","hexagon");var ss=cs;function fs(t){return(fs="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)}function ls(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=[],r=!0,o=!1,i=void 0;try{for(var a,u=t[Symbol.iterator]();!(r=(a=u.next()).done)&&(n.push(a.value),!e||n.length!==e);r=!0);}catch(t){o=!0,i=t}finally{try{r||null==u.return||u.return()}finally{if(o)throw i}}return n}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function hs(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 ps(t,e){return!e||"object"!==fs(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function ys(t){return(ys=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function vs(t,e){return(vs=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var ds=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),ps(this,ys(e).apply(this,arguments))}var n,r,o;return 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}}),e&&vs(t,e)}(e,Qc),n=e,(r=[{key:"_updatePath",value:function(){var t=this._w,e=this._h,n=this._x,r=this._y,o=this._ctx,i=this._attr.angle,a=v.getPixelRatio();o.beginPath(),i?(o.save(),o.translate((n-t/2)*a,(r-e/2)*a),o.rotate(i),o.translate((t/2-n)*a,(e/2-r)*a),o.rect(n*a,r*a,t*a,e*a),o.restore()):o.rect(n*a,r*a,t*a,e*a)}},{key:"contains",value:function(t,e){return this._bounds.contains([t,e])}},{key:"updateBounds",value:function(){var t=this._attr,e=t.offsetX,n=t.offsetY,r=t.lineWidth,o=t.size,i=t.s,a=void 0===i?o:i;e=e||0,n=n||0,r=r||1;var u=ls(v.isArray(a)?a:[a,a],2),c=u[0],s=u[1],f=void 0===s?c:s,l=ls(this._vertices,2),h=l[0],p=l[1],y=this._x=h+e-c/2,d=this._y=p+n-f/2;this._w=c,this._h=f;var g=this._bounds=new _a([y,d],[y+c,d+f]),_=g.getTopLeft(),b=g.getBottomRight(),m=new va(r/2,r/2);g.expend(_.subtract(m)).expend(b.add(m))}}])&&hs(n.prototype,r),o&&hs(n,o),e}();!function(t,e,n){e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n}(ds,"type","rectangle");var gs=ds;function _s(t){return(_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})(t)}function bs(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable}))),r.forEach(function(e){js(t,e,n[e])})}return t}function ms(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 ws(t,e,n){return(ws="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var r=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=xs(t)););return t}(t,e);if(r){var o=Object.getOwnPropertyDescriptor(r,e);return o.get?o.get.call(n):o.value}})(t,e,n||t)}function xs(t){return(xs=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function Os(t,e){return(Os=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function Ss(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function js(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}pu.registerGraph(ss),pu.registerGraph(gs);var ks="center",Ms={position:"position",value:"value"},Es={style:{gap:0,opacity:1,lineWidth:1,color:["#eff3ff","#c6dbef","#9ecae1","#6baed6","#3182bd","#08519c"]},mode:"count",shape:"hexagon",unit:"px",heightUnit:"px"},Ps=function(t){function e(){var t,n,r,o;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);for(var i=arguments.length,a=new Array(i),u=0;u<i;u++)a[u]=arguments[u];return r=this,n=!(o=(t=xs(e)).call.apply(t,[this].concat(a)))||"object"!==_s(o)&&"function"!=typeof o?Ss(r):o,js(Ss(Ss(n)),"render",function(){var t=this;this.whenReady(function(){t._group.removeLayer(),t._updateBinning();var e=t._binData;if(e){var n=t._attrOptions,r=n.mode,o=t._options,i=o.shape;o.fitView;n.shape=i;var a,u=t._styleList=t._updateStyle(e,n);if(t._owner._is2D()){for(var c=[],s=[],f=[],l=-1,h=e.length;++l<h;){var p=e[l],y=u[l],d=v.defaults({position:"center",style:y},n),g=new wu(p,d);g.addEventParent(t,function(t){var e=t.target._data,n=e[ks],o=e.rawData,i=e.indexes;return t.indexes=v.clone(i),t.rawData=v.clone(o),t.lngLat=v.clone(n),t.value=e[r],t}),c.push(g),s.push(g._coord),f.push(g._options.style)}a={_options:{style:f},_coord:s},t._buildLabels(a),t._group.addOverlay(c)}else{var _;switch(i){case"hexagon":_=6;break;case"rectangle":default:_=4}var b=2/Math.pow(2,.5),m=Math.PI/_,w=u.map(function(t){return 4==_&&(t.radius=t.radius*b),t.rotate=m,t}),x=new xc(e,v.defaults({position:"center",vertex:_,style:w},n));x.addEventParent(t,function(t){var e=t.target,n=e._data,o=e._selectIdx,i=n[o];if(-1!==o&&i){var a=i[ks],u=i.rawData,c=i.indexes;t.indexes=v.clone(c),t.rawData=v.clone(u),t.lngLat=v.clone(a),t.value=i[r]}return t}),t._group.addOverlay(x),t._buildLabels(x)}t._hasRender=!0}})}),n}var n,r,o;return 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}}),e&&Os(t,e)}(e,Ta),n=e,(r=[{key:"_initProperties",value:function(){ws(xs(e.prototype),"_initProperties",this).call(this),this._data=[],this._attrOptions={},this._points=[],this._binMap={},this._colorLegend=[],this._labelsLayer}},{key:"_initLayout",value:function(t){var e=this,n=this._owner;this._map=n.getMap();var r=n._is2D(),o=this._group=new(r?Ba:Za)([],this._options);this._map.on(E.ZOOM_END,function(){e.emit(E.ZOOM_END)}),o.on(E.LOAD,function(){e._amapLayer=o.getAMapLayer(),v.callFn(t,e)})}},{key:"_bindEvent",value:function(){var t=this;ws(xs(e.prototype),"_bindEvent",this).call(this),this.on(E.ZOOM_END,function(){var e=t._attrOptions.unit,n=t._owner._is2D();("meter"!==e||n)&&t._hasRender&&(t._resetBin(),t.render())})}},{key:"setData",value:function(t,e){return this._data=v.cloneDeep(t||[]),this._dataOptions=v.defaults({},e,Ms),this._buildPointIdx(),this._resetBin(),this}},{key:"setOptions",value:function(t){return this._attrOptions=Oi(t,Es),this._resetBin(),this}},{key:"_buildPointIdx",value:function(){this._bounds=new fa;for(var t=this._dataOptions,e=t.position,n=t.value,r=[],o=this._data,i=-1,a=o.length;++i<a;){var u=o[i],c=ca(wi(u,e,this,i)),s=+wi(u,n,this,i);this._bounds.expend(c);var f=ta(c.valueOf(),20);f.value=s,f.lngLat=c.valueOf(),r.push(f)}this._points=r}},{key:"_updateBinning",value:function(){if(!this._binData){var t,e,n=this._options.shape,r=this._attrOptions,o=r.style,i=o.size,a=o.radius,u=r.unit;if(a=v.isNil(a)?(v.isNil(i[0])?i:i[0])/2:a,this._options.fitView){var c=this._map.getFitZoomAndCenterByBounds(new AMap.Bounds(this._bounds._southWest._lng,this._bounds._southWest._lat,this._bounds._northEast._lng,this._bounds._northEast._lat));this._options.fitView=!1,t=c[0],e=c[1]}else t=this._map.getZoom(),e=this._bounds.getCenter();var s="meter"===u?u:t,f=this._binMap[s];if("meter"===u)a/=Ji(e.getLat(),20);else a*=Fi(20-t);f=function(t,e){var n,r=e.radius;switch(e.shape.toLowerCase()){case"hexagon":n=si().radius(r);break;case"rectangle":default:n=oi().radius(r)}return n(t)}(this._points,{radius:a,shape:n});for(var l=-1,h=(f=this._addHeatValue(f)).length;++l<h;){for(var p=[],y=[],d=[],g=[],_=f[l],b=-1,m=_.length;++b<m;){var w=_[b],x=w.lngLat,O=w.index,S=w.value;d.push(O),g.push(S),p.push(x),y.push(this._data[O])}var j=na([_.x,_.y],20);_[ks]=j,_.indexes=d,_.values=g,_.lngLats=p,_.rawData=y}this._binMap[s]=f,this._binData=f}}},{key:"_addHeatValue",value:function(t){for(var e=-1,n=t.length;++e<n;){var r=t[e];r.count=r.length,r.count>0&&(r.sum=v.sumBy(r,"value"),r.mean=v.meanBy(r,"value"),r.max=v.maxBy(r,"value").value,r.min=v.minBy(r,"value").value,r.median=v.median(r,"value"))}return t}},{key:"_buildLabels",value:function(t){var e=this,n=t._coord;if(this._labelsLayer)this._labelsLayer.clear();else{var r=this._options.zIndex;this._labelsLayer=new AMap.LabelsLayer({zIndex:r||1200,collision:!1,animation:!1}),null==this._options.visible||this._options.visible||this._labelsLayer.hide(),this._labelsLayer.setMap(this._map)}var o=n.map(function(n,r){var o=t._options.style[r];if(o.text||(o.text={}),e._options.fitView){var i=e._map.getFitZoomAndCenterByBounds(new AMap.Bounds(e._bounds._southWest._lng,e._bounds._southWest._lat,e._bounds._northEast._lng,e._bounds._northEast._lat));e._options.fitView=!1,i[0],i[1]}else e._map.getZoom(),e._bounds.getCenter();var a=o.text;return new AMap.LabelMarker({position:[n._lng,n._lat],height:-o.height[0],text:{direction:a.direction||"center",offset:a.offset,content:null==a.content?"":a.content+"",zooms:a.zooms,style:bs({},a)}})});this._labelsLayer.add(o)}},{key:"_updateStyle",value:function(t,e){var n=this,r=e.style,o=e.style,i=o.radius,a=o.opacity,u=o.color,c=o.gap,s=o.height,f=o.text,l=e.mode,h=t.map(function(t){return t[l]}),p=v.extent(h),y=xi(u,{scale:"quantile",input:p}),d=y.value,g=y.scale,_=y.input;"quantile"===g&&(_=v.chain(h).uniq().sortBy().value());var b,m=ei.create(g).domain(_).range(d);m.nice&&m.nice(),this._colorLegend=[],v.isArray(d)?d.forEach(function(t){var e=m.invertExtent(t);n._colorLegend.push({color:t,range:e})}):m=!1,v.isArray(a)&&(b=ei.create().domain(p).range(a));var w,x=xi(s,{scale:"linear",input:p,clamp:!0}),O=x.value,S=x.scale,j=x.input,k=x.clamp;v.isArray(O)&&(w=ei.create(S).domain(j).range(O)).clamp&&w.clamp(k),i-=c/2;for(var M=[],P=-1,A=t.length;++P<A;){var L=t[P],C=L[l],T=m?m(C):d(L),R=b?b(C):a,D=w?w(C):O,N=Object.assign({},f);if("function"==typeof f)N=f({value:L,index:P});else if("object"===_s(f))for(var I in f)"function"==typeof f[I]&&(N[I]=f[I]({value:L,index:P}));var z=v.defaults({color:T,opacity:R,radius:i,size:2*i,height:D,text:N},r);M.push(z)}return this.emit(E.LEGEND_UPDATE,{colorLegend:this._colorLegend},!0),M}},{key:"_resetBin",value:function(){delete this._binData}},{key:"onAdd",value:function(t){ws(xs(e.prototype),"onAdd",this).call(this,t),this._group&&this._group.addTo(this._owner)}},{key:"onRemove",value:function(){ws(xs(e.prototype),"onRemove",this).call(this),this._group&&this._group.remove()}},{key:"setzIndex",value:function(t){var e=this;return this.whenReady(function(){e._group.setzIndex(t)}),this}},{key:"setFitView",value:function(){var t=this;return this.whenReady(function(){t._owner.setBounds(t._bounds)}),this}},{key:"destroy",value:function(){ws(xs(e.prototype),"destroy",this).call(this),this._group.destroy(),delete this._group,delete this._binData,delete this._styleList,delete this._dataOptions,delete this._attrOptions}}])&&ms(n.prototype,r),o&&ms(n,o),e}();function As(t){return(As="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)}function Ls(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=[],r=!0,o=!1,i=void 0;try{for(var a,u=t[Symbol.iterator]();!(r=(a=u.next()).done)&&(n.push(a.value),!e||n.length!==e);r=!0);}catch(t){o=!0,i=t}finally{try{r||null==u.return||u.return()}finally{if(o)throw i}}return n}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function Cs(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 Ts(t,e){return!e||"object"!==As(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function Rs(t){return(Rs=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function Ds(t,e){return(Ds=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var Ns={position:"position",value:"value"},Is={gradient:{.5:"#2c7bb6",.65:"#abd9e9",.7:"#ffffbf",.9:"#fde468",1:"#d7191c"}},zs=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),Ts(this,Rs(e).apply(this,arguments))}var n,r,o;return 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}}),e&&Ds(t,e)}(e,Ta),n=e,(r=[{key:"_initLayout",value:function(t){var e=this;(this._map=this._owner.getMap()).plugin(["AMap.Heatmap"],function(){e._amapLayer=e._heatmap=new AMap.Heatmap,v.callFn(t,e)})}},{key:"_removeLayout",value:function(){var t=this._heatmap;t&&(t.setMap(null),delete this._heatmap)}},{key:"delegateEvent",value:function(t,e){}},{key:"setData",value:function(t,e){var n=this;this._bounds=new fa,this._data=v.clone(t);var r=this._dataOptions=v.defaults({},e,Ns),o=r.position,i=r.value;return this._heatData=v.map(this._data,function(t,e){var r=ca(wi(t,o,n,e)),a=+wi(t,i,n,e);n._bounds.expend(r);var u=Ls(r.valueOf(),2);return{lng:u[0],lat:u[1],count:a}}),this}},{key:"setOptions",value:function(t){return this._attrOptions=Oi(t,Is),this}},{key:"render",value:function(){var t=this;this.whenReady(function(){var e=t._attrOptions,n=t._heatData,r=t._heatmap;if(n&&e){var o=e.style,i=o.color,a=o.radius,u=o.opacity,c=e.fitView,s=(e.visible,t._dataOptions),f=s.max,l=s.min;r.setDataSet({data:n,max:f,min:l}),r.setOptions({radius:a,gradient:i.value,opacity:u}),c&&t.setFitView()}})}},{key:"setzIndex",value:function(t){var e=this;return this.whenReady(function(){e._heatmap.setzIndex(t)}),this}}])&&Cs(n.prototype,r),o&&Cs(n,o),e}();var Fs=function(t,e){return t<e?-1:t>e?1:t>=e?0:NaN};var Us=function(t){var e;return 1===t.length&&(e=t,t=function(t,n){return Fs(e(t),n)}),{left:function(e,n,r,o){for(null==r&&(r=0),null==o&&(o=e.length);r<o;){var i=r+o>>>1;t(e[i],n)<0?r=i+1:o=i}return r},right:function(e,n,r,o){for(null==r&&(r=0),null==o&&(o=e.length);r<o;){var i=r+o>>>1;t(e[i],n)>0?o=i:r=i+1}return r}}}(Fs);Us.right,Us.left;var Bs=function(t,e){var n,r,o,i=t.length,a=-1;if(null==e){for(;++a<i;)if(null!=(n=t[a])&&n>=n)for(r=o=n;++a<i;)null!=(n=t[a])&&(r>n&&(r=n),o<n&&(o=n))}else for(;++a<i;)if(null!=(n=e(t[a],a,t))&&n>=n)for(r=o=n;++a<i;)null!=(n=e(t[a],a,t))&&(r>n&&(r=n),o<n&&(o=n));return[r,o]},qs=Array.prototype,Vs=(qs.slice,qs.map,function(t,e,n){t=+t,e=+e,n=(o=arguments.length)<2?(e=t,t=0,1):o<3?1:+n;for(var r=-1,o=0|Math.max(0,Math.ceil((e-t)/n)),i=new Array(o);++r<o;)i[r]=t+r*n;return i}),Ws=Math.sqrt(50),Gs=Math.sqrt(10),Ys=Math.sqrt(2);function Hs(t,e,n){var r=Math.abs(e-t)/Math.max(0,n),o=Math.pow(10,Math.floor(Math.log(r)/Math.LN10)),i=r/o;return i>=Ws?o*=10:i>=Gs?o*=5:i>=Ys&&(o*=2),e<t?-o:o}var $s=function(t){return Math.ceil(Math.log(t.length)/Math.LN2)+1};var Zs=Array.prototype.slice,Xs=function(t,e){return t-e},Js=function(t){for(var e=0,n=t.length,r=t[n-1][1]*t[0][0]-t[n-1][0]*t[0][1];++e<n;)r+=t[e-1][1]*t[e][0]-t[e-1][0]*t[e][1];return r},Qs=function(t){return function(){return t}},Ks=function(t,e){for(var n,r=-1,o=e.length;++r<o;)if(n=tf(t,e[r]))return n;return 0};function tf(t,e){for(var n=e[0],r=e[1],o=-1,i=0,a=t.length,u=a-1;i<a;u=i++){var c=t[i],s=c[0],f=c[1],l=t[u],h=l[0],p=l[1];if(ef(c,l,e))return 0;f>r!=p>r&&n<(h-s)*(r-f)/(p-f)+s&&(o=-o)}return o}function ef(t,e,n){var r,o,i,a;return function(t,e,n){return(e[0]-t[0])*(n[1]-t[1])==(n[0]-t[0])*(e[1]-t[1])}(t,e,n)&&(o=t[r=+(t[0]===e[0])],i=n[r],a=e[r],o<=i&&i<=a||a<=i&&i<=o)}var nf=function(){},rf=[[],[[[1,1.5],[.5,1]]],[[[1.5,1],[1,1.5]]],[[[1.5,1],[.5,1]]],[[[1,.5],[1.5,1]]],[[[1,1.5],[.5,1]],[[1,.5],[1.5,1]]],[[[1,.5],[1,1.5]]],[[[1,.5],[.5,1]]],[[[.5,1],[1,.5]]],[[[1,1.5],[1,.5]]],[[[.5,1],[1,.5]],[[1.5,1],[1,1.5]]],[[[1.5,1],[1,.5]]],[[[.5,1],[1.5,1]]],[[[1,1.5],[1.5,1]]],[[[.5,1],[1,1.5]]],[]],of=function(){var t=1,e=1,n=$s,r=u;function o(t){var e=n(t);if(Array.isArray(e))e=e.slice().sort(Xs);else{var r=Bs(t),o=r[0],a=r[1];e=Hs(o,a,e),e=Vs(Math.floor(o/e)*e,Math.floor(a/e)*e,e)}return e.map(function(e){return i(t,e)})}function i(n,o){var i=[],u=[];return function(n,r,o){var i,u,c,s,f,l,h=new Array,p=new Array;i=u=-1,s=n[0]>=r,rf[s<<1].forEach(y);for(;++i<t-1;)c=s,s=n[i+1]>=r,rf[c|s<<1].forEach(y);rf[s<<0].forEach(y);for(;++u<e-1;){for(i=-1,s=n[u*t+t]>=r,f=n[u*t]>=r,rf[s<<1|f<<2].forEach(y);++i<t-1;)c=s,s=n[u*t+t+i+1]>=r,l=f,f=n[u*t+i+1]>=r,rf[c|s<<1|f<<2|l<<3].forEach(y);rf[s|f<<3].forEach(y)}i=-1,f=n[u*t]>=r,rf[f<<2].forEach(y);for(;++i<t-1;)l=f,f=n[u*t+i+1]>=r,rf[f<<2|l<<3].forEach(y);function y(t){var e,n,r=[t[0][0]+i,t[0][1]+u],c=[t[1][0]+i,t[1][1]+u],s=a(r),f=a(c);(e=p[s])?(n=h[f])?(delete p[e.end],delete h[n.start],e===n?(e.ring.push(c),o(e.ring)):h[e.start]=p[n.end]={start:e.start,end:n.end,ring:e.ring.concat(n.ring)}):(delete p[e.end],e.ring.push(c),p[e.end=f]=e):(e=h[f])?(n=p[s])?(delete h[e.start],delete p[n.end],e===n?(e.ring.push(c),o(e.ring)):h[n.start]=p[e.end]={start:n.start,end:e.end,ring:n.ring.concat(e.ring)}):(delete h[e.start],e.ring.unshift(r),h[e.start=s]=e):h[s]=p[f]={start:s,end:f,ring:[r,c]}}rf[f<<3].forEach(y)}(n,o,function(t){r(t,n,o),Js(t)>0?i.push([t]):u.push(t)}),u.forEach(function(t){for(var e,n=0,r=i.length;n<r;++n)if(-1!==Ks((e=i[n])[0],t))return void e.push(t)}),{type:"MultiPolygon",value:o,coordinates:i}}function a(e){return 2*e[0]+e[1]*(t+1)*4}function u(n,r,o){n.forEach(function(n){var i,a=n[0],u=n[1],c=0|a,s=0|u,f=r[s*t+c];a>0&&a<t&&c===a&&(i=r[s*t+c-1],n[0]=a+(o-i)/(f-i)-.5),u>0&&u<e&&s===u&&(i=r[(s-1)*t+c],n[1]=u+(o-i)/(f-i)-.5)})}return o.contour=i,o.size=function(n){if(!arguments.length)return[t,e];var r=Math.ceil(n[0]),i=Math.ceil(n[1]);if(!(r>0&&i>0))throw new Error("invalid size");return t=r,e=i,o},o.thresholds=function(t){return arguments.length?(n="function"==typeof t?t:Array.isArray(t)?Qs(Zs.call(t)):Qs(t),o):n},o.smooth=function(t){return arguments.length?(r=t?u:nf,o):r===u},o};var af=n(128),uf=n.n(af),cf=function(t,e,n,r,o){var i=o*o,a=o*i,u=-.5*a+i-.5*o,c=1.5*a-2.5*i+1,s=-1.5*a+2*i+.5*o,f=.5*a-.5*i;return[t[0]*u+e[0]*c+n[0]*s+r[0]*f,t[1]*u+e[1]*c+n[1]*s+r[1]*f]},sf={createCanvas:function(t){var e=t.width,n=t.height,r=document.createElement("canvas");return r.setAttribute("width",e),r.setAttribute("height",n),r.getContext("2d")},set:function(t){var e=t.gridNum,n=t.effectRadius,r=t.step,o=t.blendMode,i=void 0===o?"normal":o,a=t.dataOpts,u=void 0===a?{}:a,c=t.extendGrid,s=e.m,f=e.n,l=(u.min,u.max),h=s,p=f;n/=r,r=1;var y=this.createCanvas({width:h,height:p});y.globalCompositeOperation=i||"normal";for(var v=0;v<c.length;v++)for(var d=c[v],g=0;g<d.length;g++){var _=d[g];if(void 0!==_){var b=r*g+r/2,m=r*v+r/2,w=y.createRadialGradient(b,m,0,b,m,n),x=255/l*_>>0;w.addColorStop(0,"rgb(".concat(x,", 0, 0)")),w.addColorStop(1,"rgb(0, 0, 0)"),y.beginPath(),y.fillStyle=w,y.arc(b,m,n,0,2*Math.PI),y.fill()}}window.imgData=y.getImageData(0,0,h,p).data;for(var O=h/s,S=p/f,j=0;j<f;j++)for(var k=c[j],M=0;M<s;M++){var E=k[M],P=Math.floor(M*O+.5*O),A=4*(Math.floor(j*S)*h+P)+0,L=window.imgData[A];void 0===E&&(c[j][M]=this.getFixed2Data(L/255*l))}return c},getFixed2Data:function(t,e){return parseFloat(t.toFixed(e||2))}};function ff(t){return(ff="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)}function lf(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=[],r=!0,o=!1,i=void 0;try{for(var a,u=t[Symbol.iterator]();!(r=(a=u.next()).done)&&(n.push(a.value),!e||n.length!==e);r=!0);}catch(t){o=!0,i=t}finally{try{r||null==u.return||u.return()}finally{if(o)throw i}}return n}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function hf(t,e,n){return(hf=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(t){return!1}}()?Reflect.construct:function(t,e,n){var r=[null];r.push.apply(r,e);var o=new(Function.bind.apply(t,r));return n&&_f(o,n.prototype),o}).apply(null,arguments)}function pf(t){return function(t){if(Array.isArray(t)){for(var e=0,n=new Array(t.length);e<t.length;e++)n[e]=t[e];return n}}(t)||function(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function yf(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 vf(t,e){return!e||"object"!==ff(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function df(t,e,n){return(df="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var r=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=gf(t)););return t}(t,e);if(r){var o=Object.getOwnPropertyDescriptor(r,e);return o.get?o.get.call(n):o.value}})(t,e,n||t)}function gf(t){return(gf=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function _f(t,e){return(_f=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var bf={getPoints:function(t){for(var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:2,r=(arguments.length>3&&void 0!==arguments[3]&&arguments[3],t.length),o=[],i=0,a=1;a<r;a++)i+=xa.distance(t[a-1],t[a]);var u=i/(2<<n);u=u>r?u<<0:r;for(var c=0;c<=u;c++){var s=c/u*(e?r:r-1),f=s>>0,l=s-f,h=void 0,p=t[f%r],y=void 0,v=void 0;e?(h=t[(f-1+r)%r],y=t[(f+1)%r],v=t[(f+2)%r]):(h=t[0===f?0:f-1],y=t[f+1>r-1?r-1:f+1],v=t[f+2>r-1?r-1:f+2]),o.push(cf(h,p,y,v,l))}return o},chaikinPolygonInterpolate:{chaikinPolygonInterpolate:function(t){for(var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:.25,n=[],r=0;r<t.length;r++){var o=t[r],i=r+1<t.length?t[r+1]:t[0],a=o[0],u=o[1],c=i[0],s=i[1],f=1-e,l=[f*a+e*c,f*u+e*s],h=[e*a+f*c,e*u+f*s];n.push(l),n.push(h)}return n}}.chaikinPolygonInterpolate}.chaikinPolygonInterpolate;var mf=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),vf(this,gf(e).apply(this,arguments))}var n,r,o;return 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}}),e&&_f(t,e)}(e,Ta),n=e,(r=[{key:"_initLayout",value:function(t){var e=this;this._map=this._owner.getMap();var n=this._owner._is2D();this._options.eventSupport=!1,this._group=new(n?Ba:Za)([],this._options),this._group.on("load",function(){e._amapLayer=e._group.getAMapLayer(),v.callFn(t,e)}),this._group.addTo(this._owner)}},{key:"setData",value:function(t,e){return this._data=t||[],this._dataOptions=v.defaults(e),this}},{key:"setOptions",value:function(t){var e=t.interpolation,n=void 0===e?{}:e,r=n.step,o=n.effectRadius;v.merge(n,{step:100*r,effectRadius:100*o}),this._options=v.assign(this._options,t)}},{key:"getP20Data",value:function(t){var e=(this._dataOptions||{}).lnglat||"lnglat",n=this._owner._is2D(),r=this._map;return e?v.map(t,function(t){var o=t[e],i=hf(AMap.LngLat,pf(o.split(",")));return n?r.lnglatToPixel(i,20):r.lngLatToGeodeticCoord(i)}):[]}},{key:"getValueAndBounds",value:function(t){var e=this._dataOptions||{},n=1/0,r=-1/0,o=e.value||"count";if(o){var i=v.map(t,function(t){var e=parseFloat(t[o]);return e<n&&(n=e),e>r&&(r=e),e});return this.value={min:n,max:r},i}return this.value={min:0,max:0},[]}},{key:"getBoundLnglat",value:function(){for(var t=1/0,e=1/0,n=-1/0,r=-1/0,o=this.p20Arr||[],i=0;i<o.length;i++){var a=o[i],u=a.x,c=a.y;u<=t&&(t=u),u>=n&&(n=u),c<=e&&(e=c),c>=r&&(r=c)}this.bounds={minLng:t,minLat:e,maxLng:n,maxLat:r}}},{key:"getGridNum",value:function(){var t=this._options.interpolation||{},e=t.effectRadius,n=t.step,r=this.bounds||{},o=r.minLng,i=r.minLat,a=r.maxLng,u=r.maxLat,c=(a+=e)-(o-=e),s=(u+=e)-(i-=e),f=Math.ceil(c/n),l=Math.ceil(s/n);if(f>1024||l>1024){var h=a-o,p=Math.ceil(h/90),y=Math.ceil(.2*p),v=Math.ceil(3*p);"您设置的 step 过小将会导致性能问题，建议您设置的 step 范围为 [".concat(y,", ").concat(v,"] ，并且 effectRadius 不超过 5 * step，threshold 不要过小。")}this.bounds={minLng:o,minLat:i,maxLng:a,maxLat:u},this.gridNum={m:f,n:l}}},{key:"initOriginGrid",value:function(){for(var t=(this._options||{}).interpolation,e=(void 0===t?{}:t).step,n=this.gridNum,r=n.m,o=n.n,i=new Array(o),a=this.valueArr||[],u=this.p20Arr||[],c=this.bounds,s=c.minLng,f=c.minLat,l=(c.maxLng,c.maxLat,0);l<o;l++)i[l]=new Array(r);u.forEach(function(t,n){var r=t.x,o=t.y,u=Math.floor((r-s)/e),c=Math.floor((o-f)/e);i[c][u]?i[c][u]=i[c][u]<a[n]?a[n]:i[c][u]:i[c][u]=a[n]}),this.originGrid=i}},{key:"interpolate",value:function(){var t=v.cloneDeep(this.originGrid),e=this.bounds,n=e.minLng,r=(e.minLat,e.maxLng),o=(e.maxLat,(this._options||{}).interpolation),i=void 0===o?{}:o,a=i.step,u=i.effectRadius,c=i.enable;if(u=void 0===u?Math.ceil(Math.ceil(r-n)/3):u,c){var s={gridNum:this.gridNum,dataOpts:this.value,effectRadius:u,extendGrid:t,step:a};this.extendGridWithData=sf.set(s)}else{for(var f=v.cloneDeep(t),l=0;l<t.length;l++)for(var h=t[l],p=0;p<h.length;p++){var y=h[p];f[l][p]=void 0===y?0:y}this.extendGridWithData=f}}},{key:"getFixed2Data",value:function(t,e){return parseFloat(t.toFixed(e||2))}},{key:"getContourMinVal",value:function(){for(var t=this.extendGridWithData||[],e=[],n=(this._options||{}).interpolation,r=void 0===n?{}:n,o=r.effectRadius,i=r.step,a=Math.ceil(o/i),u=t.length,c=0;c<u;c++){var s=t[c];if(c<=a||u-c<=a)e.push(s);else{var f=s.length;e.push(s.slice(0,a)),e.push(s.slice(f-a,f))}}var l=e.join(",").split(","),h=l.length,p=(l=v.map(l,function(t){return parseFloat(t)})).sort(function(t,e){return t-e}),y=(p[h-1]-p[0])/h,d=p[Math.ceil(.7*h)];return this.getFixed2Data(parseFloat(d)+y)}},{key:"getContour",value:function(){var t=this._dataOptions||{},e=t.min,n=t.max,r=this.gridNum,o=r.m,i=r.n,a=(this._options||{}).threshold;void 0===e&&(e=this.getContourMinVal()),void 0===n&&(n=this.value.max),this.geoJson=of().size([o,i]).thresholds(l(e,n,a))(this.flatGrid)}},{key:"filterSamePoint",value:function(){(this._options||{}).shape;for(var t=this.geoJson,e=0;e<t.length;e++)for(var n=t[e].coordinates,r=0;r<n.length;r++){for(var o=n[r],i=0;i<o.length;i++){for(var a=o[i],u=0;u<a.length-1;u++){var c=lf(a[u],2),s=c[0],f=c[1],l=lf(a[u+1],2),h=l[0],p=l[1];s===h&&f===p&&(a.splice(u,1),u--)}a.pop(),o[i]=a}t[e].coordinates[r]=o}this.geoJson=t}},{key:"smooth",value:function(){var t=(this._options||{}).smoothNumber;t=t>20?20:t;for(var e=this.geoJson,n=0;n<e.length;n++)for(var r=e[n].coordinates,o=0;o<r.length;o++){for(var i=r[o],a=0;a<i.length;a++){for(var u=i[a],c=0;c<t;c++)u=bf(u);u.push(u[0]),i[a]=u}e[n].coordinates[o]=i}}},{key:"setBounds",value:function(){var t,e,n=this._map,r=this._owner._is2D(),o=this.bounds,i=o.minLng,a=o.minLat,u=o.maxLng,c=o.maxLat;r?(t=n.pixelToLngLat(new AMap.Pixel(i,a),20)+"",e=n.pixelToLngLat(new AMap.Pixel(u,c),20)+""):(t=n.geodeticCoordToLngLat(new AMap.Pixel(i,a))+"",e=n.geodeticCoordToLngLat(new AMap.Pixel(u,c))+""),this._bounds=new fa(t.split(","),e.split(","))}},{key:"getCurColor",value:function(t,e,n){if(e<=1)return t[0];var r=e-1,o=t.length,i=n/r,a=parseInt(i*o);if(a>=o-1)return t[o-1];var u=t[a],c=t[a+1],s=i*o-a;return Ne(u,c)(s).toString()}},{key:"draw2D",value:function(){for(var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=this._options||{},n=e.style,r=void 0===n?{}:n,o=e.shape,i=r.color,a=r.strokeWeight,u=r.strokeColor,c=[],s=t.length,f=0;f<s;f++)for(var l=t[f]||[],h=this.getCurColor(i,s,f),p=0;p<l.length;p++){var y=l[p],v=void 0;v="isoband"===o?new Tu(y,{type:"polygon",isP20:!0,style:{stroke:u,lineWidth:a,fill:h}}):new Eu(y,{type:"line",isP20:!0,style:{stroke:h,lineWidth:a}}),c.push(v)}this._group.addOverlay(c)}},{key:"draw3D",value:function(t){for(var e=this._options,n=e.style,r=void 0===n?{}:n,o=e.shape,i=r.height,a=r.color,u=t.length,c=[],s=[],f=0;f<u;f++){var l=uf.a.normal.pdf(f,u,u/3*2);s.push(l)}for(var h=1/(s[u-1]-s[0]),p=0;p<u;p++)for(var y=t[p]||[],v=y.length,d=1==u?i:(s[p]-s[0])*h*i,g=this.getCurColor(a,u,p),_=0;_<v;_++){var b=y[_],m=void 0;"isoline"===o?(m=new uc(b,{isG20:!0,style:{stroke:g,height:d}}),c.push(m)):m=new Ac(b,{style:{color:g,height:d}}),c.push(m)}this._group.addOverlay(c)}},{key:"draw",value:function(){for(var t=this._options||{},e=t.style,n=void 0===e?{}:e,r=t.shape,o=(n.color,this.bounds||{}),i=o.minLng,a=o.minLat,u=o.maxLng,c=o.maxLat,s=this.gridNum||{},f=s.m,l=s.n,h=this.geoJson,p=(this._map,this._owner._is2D()?"2D":"3D"),y=[],v=(u-i)/f,d=(c-a)/l,g=0;g<h.length;g++){for(var _=h[g].coordinates,b=[],m=0;m<_.length;m++){for(var w=_[m],x=[],O=0;O<1;O++){for(var S=w[O],j=[],k=lf(S[0]||[],2),M=k[0],E=k[1],P=0;P<S.length;P++){var A=lf(S[P],2),L=A[0],C=A[1];if("isoline"!==r&&L==M&&C===E&&0!==P)break;var T=[i+v*L,a+d*C];j.push(T)}j.length&&x.push(j)}b.push(x.concat([]))}y.push(b.concat([]))}"3D"===p?this.draw3D(y):this.draw2D(y),this.setBounds()}},{key:"render",value:function(){var t=this;this.whenReady(function(){t._group.removeLayer(),t._render()})}},{key:"_render",value:function(){if(this.p20Arr=this.getP20Data(this._data),this.valueArr=this.getValueAndBounds(this._data),this.p20Arr&&this.p20Arr.length&&this.valueArr&&this.valueArr.length){this.getBoundLnglat(),this.getGridNum(),this.initOriginGrid(),this.interpolate();var t=this.extendGridWithData||[];return this.flatGrid=v.map(t.join(",").split(","),function(t){return parseFloat(t)}),this.getContour(),this.filterSamePoint(),this.smooth(),this.draw(),this}}},{key:"setzIndex",value:function(t){var e=this;return this.whenReady(function(){e._group.setzIndex(t)}),this}},{key:"setFitView",value:function(){var t=this;return this.whenReady(function(){t._owner.setBounds(t._bounds)}),this}},{key:"destroy",value:function(){this._group&&this._group.destroy(),df(gf(e.prototype),"destroy",this).call(this)}}])&&yf(n.prototype,r),o&&yf(n,o),e}();function wf(t){return(wf="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)}function xf(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 Of(t,e){return!e||"object"!==wf(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function Sf(t){return(Sf=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function jf(t,e){return(jf=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var kf=function(t){function e(){var t,n,r;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);for(var o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];return(r=Of(this,(t=Sf(e)).call.apply(t,[this].concat(i))))._initProperties(),(n=r)._initialize.apply(n,i),r}var n,r,o;return 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}}),e&&jf(t,e)}(e,w),n=e,(r=[{key:"_initProperties",value:function(){this._load=!0,this._defGroup,this._groups=[],this._eventMap={},this._domContainer,this._options={}}},{key:"_initialize",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._domContainer=v.getElement(t),this._options=v.clone(n),this.on(E.LOAD,function(){e._load=!0});var r=n.overlays,o=n.groups,i=n.defaultGroup,a=this._defGroup=this._createDefaultGroup(r,i);if(this.addLayer(a),o)for(var u=-1,c=o.length;++u<c;){var s=o[u];this.addLayer(s)}this.whenReady(function(){e._bindEvent()})}},{key:"_bindEvent",value:function(){var t=this,e=this._options.eventSupport;if(e){var n=this._domContainer,r=this._groups;"click dblclick contextmenu \n mousemove mouseover mouseout mouseenter mouseleave mousedown mouseup  \n touchstart touchmove touchend touchcancel".split(/\s/).forEach(function(o){var i=t._eventMap[o]=function(n){for(var i=-1,a=r.length;++i<a;){var u=r[i],c=u._options.eventSupport;c=v.isNul(c)?e:c,u._options.eventSupport=c,c&&u.delegateEvent(o,n)}t.emit(o,{originalEvent:n},!0)};n.addEventListener(o,i,!1)})}}},{key:"_unbindEvent",value:function(){var t=this._eventMap;for(var e in t)this._domContainer.removeEventListener(e,t[e]);this._eventMap={}}},{key:"_createDefaultGroup",value:function(t,e){return new z(t,e)}},{key:"getContainer",value:function(){return this._domContainer}},{key:"addLayer",value:function(t,e){return t instanceof ru?(v.isNul(e)&&(e=this._defGroup),this._addOverlay(t,e)):t instanceof z&&this._addGroup(t),this}},{key:"_addOverlay",value:function(t,e){var n=this;this.hasLayer(t)||e.addLayer(t,function(){n.emit(E.ADD_LAYER,{layer:t})})}},{key:"_addGroup",value:function(t){var e=this;this.hasLayer(t)||(this._groups.push(t),t._owner2Add=this,t.beforeAdd(),this.whenReady(function(){t._owner2Add===e&&(t._owner=e,t.onAdd(),t.emit(E.ADD),e.emit(E.ADD_LAYER,{layer:t}))}))}},{key:"removeLayer",value:function(t){return t instanceof ru?this._rmOverlay(t):t instanceof z&&this._rmGroup(t),this}},{key:"_rmOverlay",value:function(t){var e=this;if(this.hasLayer(t)){var n=t._owner2Add;n&&n.removeLayer(t,function(){e.emit(E.RM_LAYER,{layer:t})})}}},{key:"_rmGroup",value:function(t){if(this.hasLayer(t)){var e=this._groups,n=e.indexOf(t);-1!==n&&(t.onRemove(),t.emit(E.RM),this.emit(E.RM_LAYER,{layer:t}),delete t._owner,delete t._owner2Add,e.splice(n,1))}}},{key:"hasLayer",value:function(t){return t instanceof ru&&(t=t._owner2Add),-1!==this._groups.indexOf(t)}},{key:"whenReady",value:function(t){return this._load?t.call(this):this.on(E.LOAD,t),this}},{key:"destroy",value:function(){this.off(),this._unbindEvent();for(var t=this._groups;t.length;)t[t.length-1].destroy();this._groups=[],this._options={},delete this._load,delete this._domContainer}}])&&xf(n.prototype,r),o&&xf(n,o),e}();function Mf(t){return(Mf="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)}function Ef(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=[],r=!0,o=!1,i=void 0;try{for(var a,u=t[Symbol.iterator]();!(r=(a=u.next()).done)&&(n.push(a.value),!e||n.length!==e);r=!0);}catch(t){o=!0,i=t}finally{try{r||null==u.return||u.return()}finally{if(o)throw i}}return n}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function Pf(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Af(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 Lf(t,e){return!e||"object"!==Mf(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function Cf(t,e,n){return(Cf="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var r=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=Tf(t)););return t}(t,e);if(r){var o=Object.getOwnPropertyDescriptor(r,e);return o.get?o.get.call(n):o.value}})(t,e,n||t)}function Tf(t){return(Tf=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function Rf(t,e){return(Rf=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var Df=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),Lf(this,Tf(e).apply(this,arguments))}var n,r,o;return 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}}),e&&Rf(t,e)}(e,kf),n=e,(r=[{key:"_initProperties",value:function(){Cf(Tf(e.prototype),"_initProperties",this).call(this),this._load=!1,this._map=null,this._center=null,this._centerStr="",this._zoom=0,this._size=[0,0],this._eventPool={},this._inDrag=!1,this._amapLoader=G}},{key:"_initialize",value:function(t,n){var r=this;Cf(Tf(e.prototype),"_initialize",this).call(this,t,n);var o=function(e,n){var o=r._domContainer;o||t&&t.get&&(o=t.get("container"))&&(r._map=t,r._domContainer=o),r._createMap(),setTimeout(function(){r.emit(E.LOAD)},0)};this._options.ui?this._options.uiSuccess=o:this._options.success=o,G.init(this._options)}},{key:"_createDefaultGroup",value:function(t,e){return new("3D"===this._options.viewMode?Za:Ba)(t,e)}},{key:"_createMap",value:function(){var t,e=this;this._options.resizeEnable=!0;var n=this._map=this._map||new AMap.Map(this._domContainer,this._options);this.updateMapStatus();var r=E.ZOOM_END,o=E.ZOOM,i=E.MOVE,a=E.MOVE_END,u=E.RESIZE,c=E.DRAG_START,s=E.DRAG_END,f=this._eventPool=(Pf(t={},o,function(){e._inDrag=!0,e.emit(o)}),Pf(t,r,function(){e._updateMapZoom(),e._inDrag=!1,e.emit(r)}),Pf(t,i,function(){e.emit(i)}),Pf(t,a,function(){e._updateMapCenter(),e.emit(a)}),Pf(t,u,function(){e.updateMapStatus(),e.emit(u)}),Pf(t,c,function(){e._inDrag=!0}),Pf(t,s,function(){e._inDrag=!1}),t);for(var l in f)n.on(l,f[l])}},{key:"updateMapStatus",value:function(){this._updateMapZoom(),this._updateMapSize(),this._updateMapCenter()}},{key:"_updateMapZoom",value:function(){this._zoom=this._map.getZoom()}},{key:"_updateMapSize",value:function(){var t=this._map.getSize();this._size=[t.getWidth(),t.getHeight()]}},{key:"_updateMapCenter",value:function(){this._center=this._map.getCenter(),this._centerStr=this._center.toString()}},{key:"getMapStatus",value:function(){return{center:this._center,centerStr:this._centerStr,zoom:this._zoom,size:this._size}}},{key:"getZoom",value:function(){return this._updateMapZoom(),this._zoom}},{key:"getCenter",value:function(){return this._updateMapCenter(),{center:this._center,centerStr:this._centerStr}}},{key:"getSize",value:function(){return this._updateMapSize(),this._size}},{key:"getMap",value:function(){return this._map}},{key:"setFitView",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this._groups;return this.whenReady(function(){var n=new fa;v.isArray(e)||(e=[e]);for(var r=-1,o=e.length;++r<o;)n.expend(e[r].getBounds());t.setBounds(n)})}},{key:"setBounds",value:function(t){var e=this;return this.whenReady(function(){if(!(t=la(t)).isEmpty()){var n=Ef(t.valueOf(),2),r=Ef(n[0],2),o=r[0],i=r[1],a=Ef(n[1],2),u=a[0],c=a[1],s=AMap.LngLat;e._map.setBounds(new AMap.Bounds(new s(o,i),new s(u,c)))}})}},{key:"_getNorthWest",value:function(){var t=this._map,e=t.getBounds()||t.getBoundSize(),n=e.getNorthEast();return[e.getSouthWest().getLng(),n.getLat()]}},{key:"lngLat2Container",value:function(t){t=ca(t);var e=this._map.getZoom();return ea(t.valueOf(),this._getNorthWest(),e)}},{key:"p20ToContainer",value:function(t){var e=this._map.getZoom();return ea([],this._getNorthWest(),e,{p20:t})}},{key:"lngLat2GeodeticCoord",value:function(t){return Qi((t=ca(t)).valueOf())}},{key:"getGroundResolution",value:function(t,e){return Ji((t=ca(t)).getLat(),e||this._map.getZoom())}},{key:"getViewMode",value:function(){return this._map&&this._map.getViewMode_()}},{key:"_is2D",value:function(){return"2D"===this.getViewMode()}},{key:"destroy",value:function(){Cf(Tf(e.prototype),"destroy",this).call(this);var t=this._eventPool;for(var n in t){var r=t[n];this._map.off(n,r)}this._eventPool={},delete this._size,delete this._zoom,delete this._center,delete this._centerStr,delete this._map}}])&&Af(n.prototype,r),o&&Af(n,o),e}();var Nf={},If={},zf=34,Ff=10,Uf=13;function Bf(t){return new Function("d","return {"+t.map(function(t,e){return JSON.stringify(t)+": d["+e+"]"}).join(",")+"}")}var qf=function(t){var e=new RegExp('["'+t+"\n\r]"),n=t.charCodeAt(0);function r(t,e){var r,o=[],i=t.length,a=0,u=0,c=i<=0,s=!1;function f(){if(c)return If;if(s)return s=!1,Nf;var e,r,o=a;if(t.charCodeAt(o)===zf){for(;a++<i&&t.charCodeAt(a)!==zf||t.charCodeAt(++a)===zf;);return(e=a)>=i?c=!0:(r=t.charCodeAt(a++))===Ff?s=!0:r===Uf&&(s=!0,t.charCodeAt(a)===Ff&&++a),t.slice(o+1,e-1).replace(/""/g,'"')}for(;a<i;){if((r=t.charCodeAt(e=a++))===Ff)s=!0;else if(r===Uf)s=!0,t.charCodeAt(a)===Ff&&++a;else if(r!==n)continue;return t.slice(o,e)}return c=!0,t.slice(o,i)}for(t.charCodeAt(i-1)===Ff&&--i,t.charCodeAt(i-1)===Uf&&--i;(r=f())!==If;){for(var l=[];r!==Nf&&r!==If;)l.push(r),r=f();e&&null==(l=e(l,u++))||o.push(l)}return o}function o(e){return e.map(i).join(t)}function i(t){return null==t?"":e.test(t+="")?'"'+t.replace(/"/g,'""')+'"':t}return{parse:function(t,e){var n,o,i=r(t,function(t,r){if(n)return n(t,r-1);o=t,n=e?function(t,e){var n=Bf(t);return function(r,o){return e(n(r),o,t)}}(t,e):Bf(t)});return i.columns=o||[],i},parseRows:r,format:function(e,n){return null==n&&(n=function(t){var e=Object.create(null),n=[];return t.forEach(function(t){for(var r in t)r in e||n.push(e[r]=r)}),n}(e)),[n.map(i).join(t)].concat(e.map(function(e){return n.map(function(t){return i(e[t])}).join(t)})).join("\n")},formatRows:function(t){return t.map(o).join("\n")}}},Vf=qf(","),Wf=Vf.parse,Gf=(Vf.parseRows,Vf.format,Vf.formatRows,qf("\t")),Yf=Gf.parse,Hf=(Gf.parseRows,Gf.format,Gf.formatRows,n(129));function $f(t){return($f="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)}function Zf(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 Xf(t){return(Xf=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function Jf(t,e){return(Jf=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function Qf(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Kf(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var tl=v.clone,el=v.map,nl=v.isFunction,rl=function(t){function e(t,n){var r,o,i;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),o=this,r=!(i=Xf(e).call(this))||"object"!==$f(i)&&"function"!=typeof i?Qf(o):i,Kf(Qf(Qf(r)),"_data",void 0),Kf(Qf(Qf(r)),"_options",void 0),Kf(Qf(Qf(r)),"_lnglats",void 0),Kf(Qf(Qf(r)),"_bounds",void 0);var a=(r._options=n||{}).type,u=void 0===a?"json":a,c=tl(t);switch(u.toLowerCase()){case"csv":c=Wf(c);break;case"tsv":c=Yf(c);break;case"json":default:c.columns=v.keys(c[0])}return r._data=c,r}var n,r,o;return 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}}),e&&Jf(t,e)}(e,w),n=e,(r=[{key:"add",value:function(t){var e=tl(t);return this._data=this._data.concat(e),this}},{key:"getRow",value:function(t){return this._data[t]}},{key:"getColumns",value:function(){return this._data.columns}},{key:"getData",value:function(t){var e=this,n=this._data;return void 0===t?tl(n):el(n,function(n,r,o){return nl(t)?t.call(e,n,r,o):n[t]})}},{key:"getLnglats",value:function(){var t=this,e=this._lnglats;return e||(nl(this._options.lnglat)?e=this._data.map(function(e,n){return t._options.lnglat({value:e,index:n})}):Object(Hf.isString)(this._options.lnglat)&&(e=this._data.map(function(e){return e[t._options.lnglat]})),e)}},{key:"getBounds",value:function(){if(this._bounds)return this._bounds;var t=this.getLnglats(),e=-180,n=180,r=-90,o=90;return t.forEach(function(t){e=t[0]>e?t[0]:e,n=t[0]<n?t[0]:n,r=t[1]>r?t[1]:r,o=t[1]<o?t[1]:o}),this._bounds=new AMap.Bounds([n,o],[e,r]),this._bounds}},{key:"getFilterData",value:function(t){var e=this,n=this._data,r=tl(n);return this._options.filter instanceof Function&&(r=r.filter(this._options.filter)),void 0===t?tl(r):el(r,function(n,r,o){return nl(t)?t.call(e,n,r,o):n[t]})}},{key:"getLength",value:function(){return this._data.length}},{key:"getOptions",value:function(t){var e=tl(this._options);return t&&(e=e[t]),e}}])&&Zf(n.prototype,r),o&&Zf(n,o),e}();function ol(t){return(ol="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)}function il(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function al(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 ul(t,e){return!e||"object"!==ol(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function cl(t,e,n){return(cl="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var r=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=sl(t)););return t}(t,e);if(r){var o=Object.getOwnPropertyDescriptor(r,e);return o.get?o.get.call(n):o.value}})(t,e,n||t)}function sl(t){return(sl=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function fl(t,e){return(fl=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var ll=function(t){function e(t){var n;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),(n=ul(this,sl(e).call(this,t)))._initProperties(),n._config=v.assign({eventSupport:!1},n._config,t),n}var n,r,o;return 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}}),e&&fl(t,e)}(e,AMap.CompositeLayer),n=e,(r=[{key:"_initProperties",value:function(){this._config={},this._options={}}},{key:"setData",value:function(t,e){return this._dataSet=t instanceof rl?t:new rl(t,e),this}},{key:"setOptions",value:function(t){return t.style=v.assign({},this._options.style||{},t.style||{}),this._options=v.assign({},this._options,t),this}},{key:"setFitView",value:function(){return this._group&&this._group.setFitView(),this}},{key:"_bindOverlayEvents",value:function(){for(var t=this,e=this._group._overlays,n=-1,r=e.length,o=function(){var r=e[n];if(t._config.eventSupport){["mouseover","mouseout","click","dblclick","mouseenter","mouseleave","touchstart","touchmove","touchend","mousemove"].forEach(function(e){r.on(e,function(n){var r=n.originalEvent,o=n.target,i=o.getData({selectSingle:1}),a=o.getPosition().valueOf();t.emit(e,{originalTarget:o,originalEvent:r,rawData:i,lnglat:a,target:t})})})}};++n<r;)o()}},{key:"mapChanged",value:function(){if(cl(sl(e.prototype),"mapChanged",this).call(this),!this._container){var t=this.get("map");this._container=new Df(t,{eventSupport:!0,skipUrlCheck:!0})}}},{key:"_buildGroup",value:function(){var t=this;if(!this._group){var e=this.get("map");if(e){var n=e.getViewMode_(),r="2D"===n?Ba:Za,o=this._group=new r([],this._config);o.on("load",function(){"2D"===n&&o._setContextConfig(function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable}))),r.forEach(function(e){il(t,e,n[e])})}return t}({canvas:t.canvas},t._options));var e=o.getAMapLayer();t._amapLayer=e,t.addLayer(e)}),o.addTo(this._container)}}}},{key:"_buildOverlay",value:function(){}},{key:"_clean",value:function(){this._group&&this._group.removeLayer()}},{key:"onRemove",value:function(){this._container&&this._group&&(this.removeLayer(this._amapLayer),this._container.removeLayer(this._group),this._group.destroy(),this._container.destroy(),delete this._amapLayer,delete this._group,delete this._container)}},{key:"render",value:function(){try{this._clean(),this._buildGroup(),this._buildOverlay(),this._bindOverlayEvents(),this._config.fitView&&this.setFitView()}catch(t){}return this}}])&&al(n.prototype,r),o&&al(n,o),e}(),hl="key",pl="value",yl="input",vl="lnglat",dl="scale",gl="default",_l="clamp",bl="exponent",ml="base";function wl(t,e){return-1!==P.continuous.indexOf(e)?v.extent(t):v.uniq(t)}var xl=["source","unit","heightUnit","invisible"];function Ol(t){for(var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.style,r=e.selectStyle,o=function(t,e){var n=[];for(var r in e)if(e.hasOwnProperty(r)){var o=e[r];if(v.isPlainObject(o)){var i=o[hl],a=o[pl],u=o[yl],c=o[dl],s=void 0===c?"linear":c,f=o[_l],l=o[gl],h=o[bl],p=o[ml];if(i&&a){s=s.toLowerCase().replace("scale","");var y=t.getData(i),d=ei.get(s)();if(a=v.isFunction(a)?a.call(this,y):a,u=v.isFunction(u)?u.call(this,y):u||wl(y,s),v.nativeArrCheck(a)&&a.length>1&&v.nativeArrCheck(u)&&u.length>0){d.domain&&d.domain(u),d.range&&d.range(a),f&&d.clamp&&d.clamp(f),l&&d.unknown&&d.unknown(l),h&&d.exponent&&d.exponent(h),p&&d.base&&d.base(p);for(var g=-1,_=y.length;++g<_;){var b=d(y[g]);n[g]||(n[g]={}),n[g][r]=b}}}else n.style||(n.style={}),n.style[r]=o}else if(v.isFunction(o))for(var m=t.getData(),w=-1,x=m.length;++w<x;){var O=o.call(this,{value:m[w],index:w});n[w]||(n[w]={}),n[w][r]=O}else n.style||(n.style={}),n.style[r]=o}return n}(t,n),i=t.getData(),a=t.getOptions(),u=a[vl],c=(a.filter,[]),s=-1,f=i.length;++s<f;){for(var l=i[s],h=v.merge(o[s],o.style),p=t.getRow(s),y={},d=-1,g=xl.length;++d<g;){var _=xl[d],b=e[_];void 0!==b&&(y[_]=v.isFunction(b)?b.call(this,{value:p,index:s}):b)}var m=v.isFunction(u)?u({value:l,index:s}):l[u];y.position=m,y.data=p,y.style=h,y.selectStyle=r,c.push(y)}return{attrList:c,styleList:o}}function Sl(t,e,n){var r={};for(var o in e)if(e.hasOwnProperty(o)){var i=e[o];if(v.isPlainObject(i)){var a=i[hl],u=i[pl],c=i[yl],s=i[dl],f=void 0===s?"linear":s,l=i[_l],h=i[gl],p=i[bl],y=i[ml];if(a&&u){f=f.toLowerCase().replace("scale","");var d=n.getData(a),g=ei.get(f)();u=v.isFunction(u)?u.call(this,d):u,c=v.isFunction(c)?c.call(this,d):c||wl(d,f),v.nativeArrCheck(u)&&u.length>1&&v.nativeArrCheck(c)&&c.length>0&&(g.domain&&g.domain(c),g.range&&g.range(u),l&&g.clamp&&g.clamp(l),h&&g.unknown&&g.unknown(h),p&&g.exponent&&g.exponent(p),y&&g.base&&g.base(y),r[o]=g(t))}else r[o]=i}else v.isFunction(i)?r[o]=i.call(this,{value:t}):r[o]=e[o]}else r[o]=e[o];return r}function jl(t){return(jl="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)}function kl(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=[],r=!0,o=!1,i=void 0;try{for(var a,u=t[Symbol.iterator]();!(r=(a=u.next()).done)&&(n.push(a.value),!e||n.length!==e);r=!0);}catch(t){o=!0,i=t}finally{try{r||null==u.return||u.return()}finally{if(o)throw i}}return n}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function Ml(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 El(t,e){return!e||"object"!==jl(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function Pl(t,e,n){return(Pl="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var r=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=Al(t)););return t}(t,e);if(r){var o=Object.getOwnPropertyDescriptor(r,e);return o.get?o.get.call(n):o.value}})(t,e,n||t)}function Al(t){return(Al=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function Ll(t,e){return(Ll=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var Cl="imgLoad",Tl={},Rl=function(t){function e(t){var n;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),(n=El(this,Al(e).call(this,t))).on(Cl,function(){n._load=!0});var r=t.source;if(v.isStr(r)){var o=Tl[r];if(o)n._symbolEl=o,n.emit(Cl);else{var i=new Image;i.addEventListener("load",function(){n._symbolEl=Tl[r]={img:i,width:i.width,height:i.height},n.emit(Cl)}),i.addEventListener("error",function(){n.emit(Cl)}),i.src=r}}else(v.isImg(r)||v.isCanvas(r))&&(n._symbolEl=r,n.emit(Cl));return n}var n,r,o;return 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}}),e&&Ll(t,e)}(e,Qc),n=e,(r=[{key:"_draw",value:function(){var t=this;this.whenReady(function(){var e=t._ctx,n=t._symbolEl,r=n.img,o=n.width,i=n.height;r=r||t._symbolEl;var a=t._attr,u=a.opacity,c=a.size,s=a.s,f=void 0===s?c:s,l=a.angle,h=kl(t._vertices,2),p=h[0],y=h[1];v.isArray(f)||(f=[f]);var d=v.getPixelRatio(),g=i/o,_=kl(f,2),b=_[0],m=void 0===b?o:b,w=_[1],x=void 0===w?m*g:w,O=p-m/2,S=y-x/2;e.globalAlpha=u,l?(e.save(),e.translate(p*d,y*d),e.rotate(l),e.translate(-p*d,-y*d),e.drawImage(r,O*d,S*d,m*d,x*d),e.restore()):e.drawImage(r,O*d,S*d,m*d,x*d),t._bounds=new _a([O,S],[O+m,S+x])})}},{key:"whenReady",value:function(t){this._load?t.call(this):this.on(Cl,t)}},{key:"_renderBounds",value:function(){var t=this;this.whenReady(function(){Pl(Al(e.prototype),"_renderBounds",t).call(t)})}}])&&Ml(n.prototype,r),o&&Ml(n,o),e}();!function(t,e,n){e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n}(Rl,"type","image");var Dl=Rl;function Nl(t){return(Nl="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)}function Il(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 zl(t,e){return!e||"object"!==Nl(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function Fl(t,e,n){return(Fl="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var r=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=Ul(t)););return t}(t,e);if(r){var o=Object.getOwnPropertyDescriptor(r,e);return o.get?o.get.call(n):o.value}})(t,e,n||t)}function Ul(t){return(Ul=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function Bl(t,e){return(Bl=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}pu.registerGraph(Dl);var ql=function(t){function e(){var t,n;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return(n=zl(this,(t=Ul(e)).call.apply(t,[this].concat(o)))).CLASS_NAME="Loca.IconLayer",n}var n,r,o;return 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}}),e&&Bl(t,e)}(e,ll),n=e,(r=[{key:"_initProperties",value:function(){Fl(Ul(e.prototype),"_initProperties",this).call(this),this._config={shape:"image"},this._options={}}},{key:"_buildOverlay",value:function(){var t,e=this._config.shape,n=Ol(this._dataSet,this._options).attrList,r=this.get("map").getViewMode_();if("2D"===r)t=n.map(function(t){return t.type=e,new wu(t.data,t)}),this._group._setContextConfig({canvas:this.canvas,blendMode:this._options.blendMode});else if("3D"===r){var o=Xu,i=this._dataSet.getData(),a=[],u=[],c=[];n.forEach(function(t){v.isCanvas(t.source)?t.source=t.source.toDataURL():v.isImg(t.source)&&(t.source=t.source.src),a.push(t.style),u.push(t.source),c.push(t.position)}),t=new o(i,v.assign({},this._options,{type:e,position:function(t,e){return c[e]},style:a,source:u}))}this._group.addOverlay(t)}}])&&Il(n.prototype,r),o&&Il(n,o),e}();function Vl(t){return(Vl="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)}function Wl(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=[],r=!0,o=!1,i=void 0;try{for(var a,u=t[Symbol.iterator]();!(r=(a=u.next()).done)&&(n.push(a.value),!e||n.length!==e);r=!0);}catch(t){o=!0,i=t}finally{try{r||null==u.return||u.return()}finally{if(o)throw i}}return n}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function Gl(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 Yl(t){return(Yl=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function Hl(t,e){return(Hl=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function $l(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Zl(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Xl=function(t){function e(){var t,n,r,o;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);for(var i=arguments.length,a=new Array(i),u=0;u<i;u++)a[u]=arguments[u];return r=this,n=!(o=(t=Yl(e)).call.apply(t,[this].concat(a)))||"object"!==Vl(o)&&"function"!=typeof o?$l(r):o,Zl($l($l(n)),"_x",void 0),Zl($l($l(n)),"_y",void 0),Zl($l($l(n)),"_r",void 0),n}var n,r,o;return 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}}),e&&Hl(t,e)}(e,Qc),n=e,(r=[{key:"_updatePath",value:function(){var t=this._ctx,e=this._x,n=this._y,r=this._r,o=v.getPixelRatio();return t.beginPath(),t.arc(e*o,n*o,r*o,0,2*Math.PI),this}},{key:"contains",value:function(t,e){var n=this._attr.lineWidth;if(this._bounds.contains([t,e])){var r=(n||0)/2,o=this._r+r,i=t-this._x,a=e-this._y;return i*i+a*a<=o*o}}},{key:"updateBounds",value:function(){var t=Wl(this._vertices,2),e=t[0],n=t[1],r=this._attr,o=r.offsetX,i=r.offsetY,a=r.radius,u=r.size,c=r.r,s=void 0===c?a:c,f=r.s,l=void 0===f?u:f,h=r.lineWidth;e=+o?o+e:e,n=+i?i+n:n,this._x=e,this._y=n,s=v.isNul(s)?v.isNul(l)?1:l/2:s,this._r=s;var p=(h||0)/2,y=s-p,d=s+p;this._bounds=new _a([e-y,n-y],[e+d,n+d])}}])&&Gl(n.prototype,r),o&&Gl(n,o),e}();Zl(Xl,"type","circle");var Jl=Xl;function Ql(t){return(Ql="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)}function Kl(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 th(t,e){return!e||"object"!==Ql(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function eh(t,e,n){return(eh="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var r=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=nh(t)););return t}(t,e);if(r){var o=Object.getOwnPropertyDescriptor(r,e);return o.get?o.get.call(n):o.value}})(t,e,n||t)}function nh(t){return(nh=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function rh(t,e){return(rh=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}pu.registerGraph(Jl);var oh=function(t){function e(){var t,n;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return(n=th(this,(t=nh(e)).call.apply(t,[this].concat(o)))).CLASS_NAME="Loca.ScatterPointLayer",n}var n,r,o;return 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}}),e&&rh(t,e)}(e,ll),n=e,(r=[{key:"_initProperties",value:function(){var t=this;eh(nh(e.prototype),"_initProperties",this).call(this),this._config={shape:"circle"},this._options={unit:"meter",heightUnit:"meter",vertex:32,style:{height:0}},this.isFirstRender=!0,this.get("map").on("zoomend",function(){t.render()})}},{key:"_buildOverlay",value:function(){var t,e=this._config.shape,n=Ol(this._dataSet,this._options).attrList,r=this.get("map").getViewMode_();if("2D"===r)t=n.map(function(t){return t.type=e,new wu(t.data,t)}),this._group._setContextConfig({canvas:this.canvas,blendMode:this._options.blendMode});else if("3D"===r){var o=this._dataSet.getData(),i=[],a=[];n.forEach(function(t){i.push(t.style),a.push(t.position)}),t=new xc(o,v.assign({},this._options,{type:"prism",position:function(t,e){return a[e]},style:i}))}this._group.addOverlay(t)}},{key:"render",value:function(){try{this._clean(),this._buildGroup(),this._buildOverlay(),this._bindOverlayEvents(),this._config.fitView&&this.isFirstRender&&(this.setFitView(),this.isFirstRender=!1)}catch(t){}return this}}])&&Kl(n.prototype,r),o&&Kl(n,o),e}();function ih(t){return(ih="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)}function ah(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=[],r=!0,o=!1,i=void 0;try{for(var a,u=t[Symbol.iterator]();!(r=(a=u.next()).done)&&(n.push(a.value),!e||n.length!==e);r=!0);}catch(t){o=!0,i=t}finally{try{r||null==u.return||u.return()}finally{if(o)throw i}}return n}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function uh(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 ch(t,e){return!e||"object"!==ih(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function sh(t){return(sh=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function fh(t,e){return(fh=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var lh=ts.Coordinate.distance2LineString,hh=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),ch(this,sh(e).apply(this,arguments))}var n,r,o;return 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}}),e&&fh(t,e)}(e,Qc),n=e,(r=[{key:"_updatePath",value:function(){var t=this._ctx,e=this._verticesOnPaint,n=this._attr.curveness,r=v.getPixelRatio();t.beginPath();for(var o=-1,i=e.length;++o<i;){var a=e[o],u=-1,c=a.length;if(n)for(;++u<c;){var s=ah(a[u],3),f=s[0],l=s[1],h=s[2];t.moveTo(f[0]*r,f[1]*r),t.quadraticCurveTo(l[0]*r,l[1]*r,h[0]*r,h[1]*r)}else{f=a[0];for(t.moveTo(f[0]*r,f[1]*r),u=0;++u<c;){var p=a[u];t.lineTo(p[0]*r,p[1]*r)}}}}},{key:"_draw",value:function(){var t=this._ctx,e=this._attr,n=e.borderWidth,r=e.color,o=e.shadowBlur,i=e.shadowColor,a=e.shadowOffsetX,u=e.shadowOffsetY,c=e.lineWidth,s=void 0===c?n:c,f=e.stroke,l=void 0===f?r:f,h=e.opacity,p=e.dashArray,y=e.lineDashOffset,v=e.lineCap,d=e.lineJoin;return t.shadowOffsetX=a,t.shadowOffsetY=u,t.shadowBlur=o,t.shadowColor=i,l&&(t.setLineDash&&p&&(t.setLineDash(p),t.lineDashOffset=y),t.strokeStyle=l,t.globalAlpha=h,t.lineWidth=s,t.lineCap=v,t.lineJoin=d,t.stroke()),this}},{key:"contains",value:function(t,e){var n=[t,e];if(this._bounds.contains(n))for(var r=this._attr,o=r.lineWidth,i=r.curveness,a=this._verticesOnPaint,u=-1,c=a.length;++u<c;)if(i)for(var s=a[u],f=-1,l=s.length;++f<l;){var h=o/2;if(ja(n,s[f].bezier)<=h*h)return!0}else{var p=a[u];if(lh(n,p)-o/2<=0)return!0}return!1}},{key:"_interpolateLines",value:function(){}},{key:"updateBounds",value:function(){var t=this._bounds=new _a,e=this._attr,n=e.offsetX,r=e.offsetY,o=e.lineWidth,i=e.curveness;e.smooth,e.interpolate;n=n||0,r=r||0;for(var a=o||1,u=[],c=this._vertices,s=-1,f=c.length;++s<f;){var l=[],h=c[s],p=-1,y=h.length;if(i)for(;++p<y-1;){var v=h[p],d=h[p+1],g=Sa(v=[v[0]+n,v[1]+r],d=[d[0]+n,d[1]+r],i),_=new Qu.a(v[0],v[1],g[0],g[1],d[0],d[1]),b=[v,g,d];b.bezier=_,l.push(b);var m=_.bbox(),w=m.x,x=m.y;t.expend([w.min,x.min]).expend([w.max,x.max])}else for(;++p<y;){var O=h[p];O=[O[0]+n,O[1]+r],l.push(O),t.expend(O)}u.push(l)}var S=t.getTopLeft(),j=t.getBottomRight(),k=new va(a/2,a/2);t.expend(S.subtract(k)).expend(j.add(k)),this._verticesOnPaint=u}}])&&uh(n.prototype,r),o&&uh(n,o),e}();!function(t,e,n){e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n}(hh,"type","line");var ph=hh;function yh(t){return(yh="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)}function vh(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 dh(t,e){return!e||"object"!==yh(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function gh(t,e,n){return(gh="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var r=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=_h(t)););return t}(t,e);if(r){var o=Object.getOwnPropertyDescriptor(r,e);return o.get?o.get.call(n):o.value}})(t,e,n||t)}function _h(t){return(_h=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function bh(t,e){return(bh=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}pu.registerGraph(ph);var mh=function(t){function e(){var t,n;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return(n=dh(this,(t=_h(e)).call.apply(t,[this].concat(o)))).CLASS_NAME="Loca.LineLayer",n}var n,r,o;return 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}}),e&&bh(t,e)}(e,ll),n=e,(r=[{key:"_initProperties",value:function(){gh(_h(e.prototype),"_initProperties",this).call(this),this._config={shape:"line"},this._options={}}},{key:"_buildOverlay",value:function(){var t,e=this._config.shape,n=Ol(this._dataSet,this._options).attrList,r=this.get("map").getViewMode_();"2D"===r&&this._group._setContextConfig({canvas:this.canvas,blendMode:this._options.blendMode}),t=n.map(function(t){return t.type=e,t.curveness=0,"2D"===r?new Eu(t.data,t):new uc(t.data,t)}),this._group.addOverlay(t)}}])&&vh(n.prototype,r),o&&vh(n,o),e}();function wh(t){return(wh="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)}function xh(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 Oh(t,e){return!e||"object"!==wh(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function Sh(t,e,n){return(Sh="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var r=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=jh(t)););return t}(t,e);if(r){var o=Object.getOwnPropertyDescriptor(r,e);return o.get?o.get.call(n):o.value}})(t,e,n||t)}function jh(t){return(jh=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function kh(t,e){return(kh=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}pu.registerGraph(ph);var Mh=function(t){function e(){var t,n;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return(n=Oh(this,(t=jh(e)).call.apply(t,[this].concat(o)))).CLASS_NAME="Loca.LinkLayer",n}var n,r,o;return 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}}),e&&kh(t,e)}(e,ll),n=e,(r=[{key:"_initProperties",value:function(){Sh(jh(e.prototype),"_initProperties",this).call(this),this._config={shape:"line"},this._options={}}},{key:"_buildOverlay",value:function(){var t,e=this._config.shape,n=Ol(this._dataSet,this._options).attrList,r=this.get("map").getViewMode_();"2D"===r&&this._group._setContextConfig({canvas:this.canvas,blendMode:this._options.blendMode}),t=n.map(function(t){var n=t.position[0],o=t.position[t.position.length-1];return t.type=e,t.position=[n,o],"2D"===r?new Eu(t.data,t):new uc(t.data,t)}),this._group.addOverlay(t)}}])&&xh(n.prototype,r),o&&xh(n,o),e}();function Eh(t){return(Eh="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)}function Ph(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=[],r=!0,o=!1,i=void 0;try{for(var a,u=t[Symbol.iterator]();!(r=(a=u.next()).done)&&(n.push(a.value),!e||n.length!==e);r=!0);}catch(t){o=!0,i=t}finally{try{r||null==u.return||u.return()}finally{if(o)throw i}}return n}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function Ah(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 Lh(t,e){return!e||"object"!==Eh(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function Ch(t){return(Ch=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function Th(t,e){return(Th=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var Rh=ts.Coordinate.containsCoordinate,Dh=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),Lh(this,Ch(e).apply(this,arguments))}var n,r,o;return 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}}),e&&Th(t,e)}(e,Qc),n=e,(r=[{key:"_updatePath",value:function(){var t=v.getPixelRatio(),e=this._ctx;e.beginPath();for(var n=this._verticesOnPaint,r=-1,o=n.length;++r<o;){var i=n[r],a=0,u=i.length,c=Ph(i[0],2),s=c[0],f=c[1];for(e.moveTo(s*t,f*t);++a<u;){var l=Ph(i[a],2),h=l[0],p=l[1];e.lineTo(h*t,p*t)}e.closePath()}}},{key:"contains",value:function(t,e){var n=[t,e];if(this._bounds.contains(n))for(var r=this._verticesOnPaint,o=-1,i=r.length;++o<i;){if(Rh(n,r[o],!0))return!0}return!1}},{key:"updateBounds",value:function(){var t=this._bounds=new _a,e=this._attr,n=e.offsetX,r=e.offsetY;n=n||0,r=r||0;for(var o=e.lineWidth||1,i=[],a=this._vertices,u=-1,c=a.length;++u<c;){for(var s=[],f=a[u],l=-1,h=f.length;++l<h;){var p=f[l];p=[p[0]+n,p[1]+r],s.push(p),t.expend(p)}i.push(s)}var y=t.getTopLeft(),v=t.getBottomRight(),d=new va(o/2,o/2);t.expend(y.subtract(d)).expend(v.add(d)),this._verticesOnPaint=i}}])&&Ah(n.prototype,r),o&&Ah(n,o),e}();!function(t,e,n){e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n}(Dh,"type","polygon");var Nh=Dh;function Ih(t){return(Ih="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)}function zh(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 Fh(t,e){return!e||"object"!==Ih(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function Uh(t,e,n){return(Uh="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var r=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=Bh(t)););return t}(t,e);if(r){var o=Object.getOwnPropertyDescriptor(r,e);return o.get?o.get.call(n):o.value}})(t,e,n||t)}function Bh(t){return(Bh=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function qh(t,e){return(qh=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}pu.registerGraph(Nh);var Vh=function(t){function e(){var t,n;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return(n=Fh(this,(t=Bh(e)).call.apply(t,[this].concat(o)))).CLASS_NAME="Loca.PolygonLayer",n}var n,r,o;return 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}}),e&&qh(t,e)}(e,ll),n=e,(r=[{key:"_initProperties",value:function(){Uh(Bh(e.prototype),"_initProperties",this).call(this),this._config={shape:"polygon"},this._options={}}},{key:"_buildOverlay",value:function(){var t,e=this._config.shape,n=Ol(this._dataSet,this._options).attrList,r=this.get("map").getViewMode_();"2D"===r&&this._group._setContextConfig({canvas:this.canvas,blendMode:this._options.blendMode}),t=n.map(function(t){return t.type=e,"2D"===r?new Tu(t.data,t):new yc(t.data,t)}),this._group.addOverlay(t)}}])&&zh(n.prototype,r),o&&zh(n,o),e}();function Wh(t){return(Wh="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)}function Gh(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 Yh(t,e){return!e||"object"!==Wh(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function Hh(t,e,n){return(Hh="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var r=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=$h(t)););return t}(t,e);if(r){var o=Object.getOwnPropertyDescriptor(r,e);return o.get?o.get.call(n):o.value}})(t,e,n||t)}function $h(t){return($h=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function Zh(t,e){return(Zh=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var Xh=function(t){function e(){var t,n;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return(n=Yh(this,(t=$h(e)).call.apply(t,[this].concat(o)))).CLASS_NAME="Loca.HeatmapLayer",n}var n,r,o;return 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}}),e&&Zh(t,e)}(e,ll),n=e,(r=[{key:"_initProperties",value:function(){Hh($h(e.prototype),"_initProperties",this).call(this),this._config={shape:"normal"},this._options={}}},{key:"_buildGroup",value:function(){var t=this,e=this._group;if(!this._group){var n;if(!this.get("map"))return;switch(this._config.shape.toLowerCase()){case"hexagon":case"rectangle":n=Ps;break;case"normal":default:n=zs}(e=this._group=new n([],this._config)).on("load",function(){var n=e.getAMapLayer();t._amapLayer=n,t.addLayer(n),null==t._config.visible||t._config.visible||t.hide(),null!=t._config.zIndex&&t.setzIndex(t._config.zIndex)}),e.addTo(this._container)}var r=this._dataSet.getData(),o=this._dataSet.getOptions(),i=o.lnglat;v.isFn(i)&&(o.lnglat=function(e,n){return i.call(t,{value:e,index:n})}),o.position=o.lnglat,e.setData(r,o),e.setOptions(this._options),e.render()}}])&&Gh(n.prototype,r),o&&Gh(n,o),e}();function Jh(t){return(Jh="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)}function Qh(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 Kh(t,e){return!e||"object"!==Jh(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function tp(t,e,n){return(tp="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var r=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=ep(t)););return t}(t,e);if(r){var o=Object.getOwnPropertyDescriptor(r,e);return o.get?o.get.call(n):o.value}})(t,e,n||t)}function ep(t){return(ep=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function np(t,e){return(np=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var rp=function(t){function e(){var t,n;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return(n=Kh(this,(t=ep(e)).call.apply(t,[this].concat(o)))).CLASS_NAME="Loca.HexagonLayer",n}var n,r,o;return 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}}),e&&np(t,e)}(e,ll),n=e,(r=[{key:"_initProperties",value:function(){tp(ep(e.prototype),"_initProperties",this).call(this),this._config={shape:"hexagon"},this._options={unit:"meter",heightUnit:"meter",mode:"count"}}},{key:"_buildGroup",value:function(){var t=this,e=this._group;if(!e){var n;if(!this.get("map"))return;switch(this._config.shape.toLowerCase()){case"hexagon":case"rectangle":n=Ps;break;case"normal":default:n=zs}if(e=this._group=new n([],this._config),this._config.eventSupport){["mouseover","mouseout","click","dblclick","mouseenter","mouseleave","touchstart","touchmove","touchend","mousemove"].forEach(function(n){e.on(n,function(e){var r=e.originalEvent,o=e.rawData,i=e.indexes,a=e.lngLat,u=e.value;t.emit(n,{originalEvent:r,rawData:o,indexes:i,lngLat:a,value:u,target:t})})})}e.on("legendupdate",function(e){t.emit("legendupdate",v.assign({},e,{target:t}))}),e.on("load",function(){var n=e.getAMapLayer();t._amapLayer=n,t.addLayer(n)}),e.addTo(this._container)}var r=this._dataSet.getData(),o=this._dataSet.getOptions(),i=o.lnglat;v.isFn(i)&&(o.lnglat=function(e,n){return i.call(t,{value:e,index:n})}),o.position=o.lnglat,e.setData(r,o),e.setOptions(this._options),e.render()}},{key:"setzIndex",value:function(t){tp(ep(e.prototype),"setzIndex",this).call(this,t),this._group&&this._group._labelsLayer.setzIndex(t)}},{key:"show",value:function(){tp(ep(e.prototype),"show",this).call(this),this._group&&this._group._labelsLayer.show()}},{key:"hide",value:function(){tp(ep(e.prototype),"hide",this).call(this),this._group&&this._group._labelsLayer.hide()}},{key:"setMap",value:function(t){this._group&&this._group._labelsLayer.setMap(t),tp(ep(e.prototype),"setMap",this).call(this,t)}}])&&Qh(n.prototype,r),o&&Qh(n,o),e}();function op(t){return(op="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)}function ip(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 ap(t,e){return!e||"object"!==op(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function up(t,e,n){return(up="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var r=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=cp(t)););return t}(t,e);if(r){var o=Object.getOwnPropertyDescriptor(r,e);return o.get?o.get.call(n):o.value}})(t,e,n||t)}function cp(t){return(cp=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function sp(t,e){return(sp=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var fp=function(t){function e(){var t,n;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return(n=ap(this,(t=cp(e)).call.apply(t,[this].concat(o)))).CLASS_NAME="Loca.GridLayer",n}var n,r,o;return 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}}),e&&sp(t,e)}(e,ll),n=e,(r=[{key:"_initProperties",value:function(){up(cp(e.prototype),"_initProperties",this).call(this),this._config={shape:"rectangle"},this._options={unit:"meter",heightUnit:"meter",mode:"count"}}},{key:"_buildGroup",value:function(){var t=this,e=this._group;if(!e){var n;if(!this.get("map"))return;switch(this._config.shape.toLowerCase()){case"hexagon":case"rectangle":n=Ps;break;case"normal":default:n=zs}if(e=this._group=new n([],this._config),this._config.eventSupport){["mouseover","mouseout","click","dblclick","mouseenter","mouseleave","touchstart","touchmove","touchend","mousemove"].forEach(function(n){e.on(n,function(e){var r=e.originalEvent,o=e.rawData,i=e.indexes,a=e.lngLat,u=e.value;t.emit(n,{originalEvent:r,rawData:o,indexes:i,lngLat:a,value:u,target:t})},t)})}e.on("legendupdate",function(e){t.emit("legendupdate",v.assign({},e,{target:t}))}),e.on("load",function(){var n=e.getAMapLayer();t._amapLayer=n,t.addLayer(n)}),e.addTo(this._container)}var r=this._dataSet.getData(),o=this._dataSet.getOptions(),i=o.lnglat;v.isFn(i)&&(o.lnglat=function(e,n){return i.call(t,{value:e,index:n})}),o.position=o.lnglat,e.setData(r,o),e.setOptions(this._options),e.render()}},{key:"setzIndex",value:function(t){up(cp(e.prototype),"setzIndex",this).call(this,t),this._group&&this._group._labelsLayer.setzIndex(t)}},{key:"show",value:function(){up(cp(e.prototype),"show",this).call(this),this._group&&this._group._labelsLayer.show()}},{key:"hide",value:function(){up(cp(e.prototype),"hide",this).call(this),this._group&&this._group._labelsLayer.hide()}},{key:"setMap",value:function(t){this._group&&this._group._labelsLayer.setMap(t),up(cp(e.prototype),"setMap",this).call(this,t)}}])&&ip(n.prototype,r),o&&ip(n,o),e}();function lp(t){return(lp="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)}function hp(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 pp(t,e){return!e||"object"!==lp(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function yp(t,e,n){return(yp="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var r=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=vp(t)););return t}(t,e);if(r){var o=Object.getOwnPropertyDescriptor(r,e);return o.get?o.get.call(n):o.value}})(t,e,n||t)}function vp(t){return(vp=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function dp(t,e){return(dp=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var gp=function(t){function e(){var t,n;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return(n=pp(this,(t=vp(e)).call.apply(t,[this].concat(o)))).CLASS_NAME="Loca.DistrictLayer",n}var n,r,o;return 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}}),e&&dp(t,e)}(e,ll),n=e,(r=[{key:"_initProperties",value:function(){yp(vp(e.prototype),"_initProperties",this).call(this),this._config={},this._options={}}},{key:"_buildGroup",value:function(){var t=this,e=this._group;if(this.get("map")){if(!e){if(e=this._group=new zc([],this._config),this._config.eventSupport){["mouseover","mouseout","click","dblclick","mouseenter","mouseleave","touchstart","touchmove","touchend","mousemove"].forEach(function(n){e.on(n,function(e){var r=e.originalEvent,o=e.feature,i=e.value;t.emit(n,{originalEvent:r,feature:o,value:i,target:t})})})}e.on("load",function(){var n=e.getAMapLayer();t._amapLayer=n,t.addLayer(n)}),e.addTo(this._container)}var n=this._dataSet.getData(),r=this._dataSet.getOptions();r.position=r.lnglat,e.setData(n,r),e.setOptions(this._options),e.render()}}},{key:"goto",value:function(t){this._group&&this._group.goto(t)}},{key:"setzIndex",value:function(t){yp(vp(e.prototype),"setzIndex",this).call(this,t),this._group&&this._group._labelsLayer.setzIndex(t)}},{key:"show",value:function(){yp(vp(e.prototype),"show",this).call(this),this._group&&this._group._labelsLayer.show()}},{key:"hide",value:function(){yp(vp(e.prototype),"hide",this).call(this),this._group&&this._group._labelsLayer.hide()}},{key:"setMap",value:function(t){this._group&&this._group._labelsLayer.setMap(t),yp(vp(e.prototype),"setMap",this).call(this,t)}}])&&hp(n.prototype,r),o&&hp(n,o),e}();function _p(t){return(_p="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)}function bp(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 mp(t,e){return!e||"object"!==_p(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function wp(t,e,n){return(wp="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var r=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=xp(t)););return t}(t,e);if(r){var o=Object.getOwnPropertyDescriptor(r,e);return o.get?o.get.call(n):o.value}})(t,e,n||t)}function xp(t){return(xp=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function Op(t,e){return(Op=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var Sp=function(t){function e(){var t,n;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return(n=mp(this,(t=xp(e)).call.apply(t,[this].concat(o)))).CLASS_NAME="Loca.ContourLayer",n}var n,r,o;return 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}}),e&&Op(t,e)}(e,ll),n=e,(r=[{key:"_initProperties",value:function(){wp(xp(e.prototype),"_initProperties",this).call(this),this._config={},this._options={shape:"isoline",interpolation:{enable:!0,step:500,effectRadius:1e3},threshold:1,smoothNumber:2,style:{color:["#3656CD","#655FE7","#20C2E1","#23D561","#9CD523","#F1E229","#FFBF3A","#FB8C00","#FF5252","#BC54E2","#FF6FCE"],strokeWeight:1,strokeColor:"transparent",height:5e4}}}},{key:"setOptions",value:function(t){return t.interpolation=v.assign({},this._options.interpolation||{},t.interpolation||{}),t.style=v.assign({},this._options.style||{},t.style||{}),this._options=v.assign({},this._options,t),this}},{key:"_buildGroup",value:function(){var t=this,e=this._group;if(this.get("map")){e||((e=this._group=new mf([],this._config)).on("load",function(){var n=e.getAMapLayer();t._amapLayer=n,t.addLayer(n)}),e.addTo(this._container));var n=this._dataSet.getData(),r=this._dataSet.getOptions();r.position=r.lnglat,this._options.shape=this._config.shape,e.setData(n,r),e.setOptions(this._options),e.render()}}}])&&bp(n.prototype,r),o&&bp(n,o),e}();function jp(t){return(jp="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)}function kp(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 Mp(t,e){return!e||"object"!==jp(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function Ep(t,e,n){return(Ep="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var r=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=Pp(t)););return t}(t,e);if(r){var o=Object.getOwnPropertyDescriptor(r,e);return o.get?o.get.call(n):o.value}})(t,e,n||t)}function Pp(t){return(Pp=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function Ap(t,e){return(Ap=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}pu.registerGraph(Jl);var Lp=function(t){function e(){var t,n;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return(n=Mp(this,(t=Pp(e)).call.apply(t,[this].concat(o)))).CLASS_NAME="Loca.PointLayer",n}var n,r,o;return 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}}),e&&Ap(t,e)}(e,ll),n=e,(r=[{key:"_initProperties",value:function(){Ep(Pp(e.prototype),"_initProperties",this).call(this),this._config={shape:"circle"},this._options={}}},{key:"_buildOverlay",value:function(){var t,e=this._config.shape,n=Ol(this._dataSet,this._options).attrList,r=this.get("map").getViewMode_();if("2D"===r)t=n.map(function(t){return t.type=e,new wu(t.data,t)}),this._group._setContextConfig({canvas:this.canvas,blendMode:this._options.blendMode});else if("3D"===r){var o="prism"===e?xc:Xu,i=this._dataSet.getData(),a=[],u=[],c=[];n.forEach(function(t){a.push(t.style),u.push(t.source),c.push(t.position)}),t=new o(i,v.assign({},this._options,{type:e,position:function(t,e){return c[e]},style:a,source:u}))}this._group.addOverlay(t)}}])&&kp(n.prototype,r),o&&kp(n,o),e}();function Cp(t){return(Cp="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)}function Tp(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 Rp(t,e){return!e||"object"!==Cp(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function Dp(t,e,n){return(Dp="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var r=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=Np(t)););return t}(t,e);if(r){var o=Object.getOwnPropertyDescriptor(r,e);return o.get?o.get.call(n):o.value}})(t,e,n||t)}function Np(t){return(Np=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function Ip(t,e){return(Ip=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var zp=function(t){function e(t){var n;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),(n=Rp(this,Np(e).call(this,t)))._initOptions(),n.map=n.getMap(),n._layerOptions=t,n._initLayerOptions(),n._overlays=[],n._layerEvents={},n}var n,r,o;return 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}}),e&&Ip(t,e)}(e,AMap.CompositeLayer),n=e,(r=[{key:"_initOptions",value:function(){this._layerOptions=!1,this._dataOptions=!1,this._styleOptions=!1,this._styleComputed=!1,this._dataSet=!1}},{key:"_initLayerOptions",value:function(){var t=this,e=this._layerOptions,n=e.zIndex,r=e.visible,o=(e.fitView,this);setTimeout(function(){null==r||r||t.hide(),n&&o.setzIndex(n),t._layerOptions.fitView&&t.setFitView()},0)}},{key:"setData",value:function(t,e){this._dataSet;return this._dataSet=t instanceof rl?t:new rl(t,e),this._render&&this._render.setDataSource(this._dataSet).draw(),this}},{key:"setOptions",value:function(t){t.style=v.assign({},this._styleOptions.style||{},t.style||{}),this._styleOptions=v.assign({},this._styleOptions,t);var e=t.style.opacity;return null==e||isNaN(e)||this.setOpacity(e),this._render?this._render.setStyle(this._styleOptions.style).draw():this._buildOverlay(this),this}},{key:"_buildOverlay",value:function(){}},{key:"setFitView",value:function(){var t=this._dataSet.getBounds();this.map.setBounds(t)}},{key:"_removeAllOverlays",value:function(){}},{key:"_clean",value:function(){}},{key:"on",value:function(t,n){Dp(Np(e.prototype),"on",this).call(this,t,n);if(-1!=["click","dblclick","mouseenter","mouseleave","touchstart","touchmove","touchend","mousemove","mouseover","mouseout"].indexOf(t)&&v.isFn(n))return this._layerEvents=this._layerEvents||{},this._layerEvents[t]=n,this}},{key:"onRemove",value:function(){this._container&&this._group&&(this.removeLayer(this._amapLayer),delete this._amapLayer,delete this._container)}},{key:"render",value:function(){return this}}])&&Tp(n.prototype,r),o&&Tp(n,o),e}();function Fp(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)}}var Up=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._datasource=e,this._style=n,this.map=r.map,this._overlays=[],this._layers=[],this.initLayer()}var e,n,r;return e=t,(n=[{key:"initLayer",value:function(){var t=this;this._canvas=document.createElement("canvas");var e=this.map.getSize();this._pixelRatio=v.getPixelRatio(),this._canvas.width=e.getWidth()*this._pixelRatio,this._canvas.height=e.getHeight()*this._pixelRatio,this._canvas.style.width=e.getWidth()+"px",this._canvas.style.height=e.getHeight()+"px",this._ctx=this._canvas.getContext("2d"),this.setCanvasOptions(),AMap.CustomLayer?(this._customLayer=new AMap.CustomLayer(this._canvas),this._customLayer.render=this.draw.bind(this),this._layers.push(this._customLayer)):this.map.plugin(["AMap.CustomLayer"],function(){t._customLayer=new AMap.CustomLayer(t._canvas),t._customLayer.render=t.draw.bind(t),t._layers.push(t._customLayer)}),this.map.on("resize",v.debounce(function(e){t._canvas.width=e.newsize.width*t._pixelRatio,t._canvas.height=e.newsize.height*t._pixelRatio,t._canvas.style.width=e.newsize.width+"px",t._canvas.style.height=e.newsize.height+"px",t.draw()},300).bind(this))}},{key:"setCanvasOptions",value:function(){var t=this._style.opacity;null==t||isNaN(t)||(this._ctx.globalAlpha=t)}},{key:"setStyle",value:function(t){return this._style=t,this}},{key:"setDataSource",value:function(t){return this._datasource=t,this}},{key:"getNorthWest",value:function(){var t=this.map,e=t.getBounds()||t.getBoundSize(),n=e.getNorthEast();return[e.getSouthWest().getLng(),n.getLat()]}},{key:"clearOverlays",value:function(){this._overlays.length>0&&(this._overlays=[])}},{key:"draw",value:function(){}}])&&Fp(e.prototype,n),r&&Fp(e,r),t}();function Bp(t){return(Bp="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)}function qp(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 Vp(t,e){return!e||"object"!==Bp(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function Wp(t,e,n){return(Wp="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var r=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=Gp(t)););return t}(t,e);if(r){var o=Object.getOwnPropertyDescriptor(r,e);return o.get?o.get.call(n):o.value}})(t,e,n||t)}function Gp(t){return(Gp=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function Yp(t,e){return(Yp=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var Hp=function(t){function e(t,n,r){var o;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),(o=Vp(this,Gp(e).call(this,t,n,r)))._points=[],o}var n,r,o;return 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}}),e&&Yp(t,e)}(e,Up),n=e,(r=[{key:"setCanvasOptions",value:function(){Wp(Gp(e.prototype),"setCanvasOptions",this).call(this),this._ctx.globalCompositeOperation="lighter"}},{key:"draw",value:function(){var t=this;this.setCanvasOptions(),this._ctx.clearRect(0,0,this._canvas.width,this._canvas.height);var e=this.getNorthWest(),n=this.map.getZoom(),r=this._ctx,o=0==this._overlays.length,i=this._style.radius*this._pixelRatio,a=this._datasource.getLnglats();r.fillStyle=this._style.color,this._datasource.getData().forEach(function(u,c){var s=ea(a[c],e,n),f=s[0]*t._pixelRatio,l=s[1]*t._pixelRatio;r.fillRect(f,l,i,i),o&&t._overlays.push({feature:{geomertry:a[c],pixel:s,properties:u}})})}}])&&qp(n.prototype,r),o&&qp(n,o),e}();function $p(t){return function(t){if(Array.isArray(t)){for(var e=0,n=new Array(t.length);e<t.length;e++)n[e]=t[e];return n}}(t)||function(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function Zp(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)}}var Xp=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._layer=r,this.map=r.map,this._style=n,this._datasource=e,this._datas=e.getData(),this._layers=[],this._points=!1}var e,n,r;return e=t,(n=[{key:"createLayer",value:function(){var t=this,e=this._style.opacity;if(this._object3DLayer)return this._object3DLayer;AMap.Object3DLayer?(this._object3DLayer=new AMap.Object3DLayer({opacity:e}),this._layers.push(this._object3DLayer)):this.map.plugin(["Map3D"],function(){t._object3DLayer=new AMap.Object3DLayer({opacity:e}),t._layers.push(t._object3DLayer)})}},{key:"createOverlay",value:function(){this.createLayer(),this._points&&this._object3DLayer&&this._object3DLayer.clear(),this._points=new AMap.Object3D.RoundPoints,this._object3DLayer.add(this._points),this._points.blendMode="lighter",this._points.transparent=!0}},{key:"setStyle",value:function(t){return this._style=t,this}},{key:"setDataSource",value:function(t){return this._datasource=t,this}},{key:"draw",value:function(){this.createOverlay();var t=this._style,e=t.radius,n=t.color,r=t.opacity,o=this._points.geometry,i=v.getPixelRatio(),a=mi.toFragColor(n),u=this._datasource.getLnglats(),c=-1,s=u.length;for(null==r||isNaN(r)||(a[3]=r);++c<s;){var f,l=Ki(ta(u[c]));o.vertices.push(l[0],l[1],-1),o.pointSizes.push(e*i),(f=o.vertexColors).push.apply(f,$p(a))}}}])&&Zp(e.prototype,n),r&&Zp(e,r),t}();function Jp(t){return(Jp="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)}function Qp(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 Kp(t,e){return!e||"object"!==Jp(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function ty(t){return(ty=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function ey(t,e){return(ey=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var ny=function(t){function e(t){var n;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),(n=Kp(this,ty(e).call(this,t))).LOCA_CLASS_NAME="Loca.PointCloudLayer",n}var n,r,o;return 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}}),e&&ey(t,e)}(e,zp),n=e,(r=[{key:"_preBuild",value:function(){this._styleOptions.blendMode="lighter",v.isNum(this._styleOptions.style.radius)||(this._styleOptions.style.radius=.6),this._styleOptions.style.radius=Math.min(this._styleOptions.style.radius,2),v.isStr(this._styleOptions.style.color)||(this._styleOptions.style.color="rgba(150, 50, 50, 1)")}},{key:"_buildOverlay",value:function(){this._preBuild();var t=this.get("map").getViewMode_();"2D"===t?this._render=new Hp(this._dataSet,this._styleOptions.style,this):"3D"===t&&(this._render=new Xp(this._dataSet,this._styleOptions.style,this),this._render.draw())}},{key:"render",value:function(){var t=this;try{this._render._layers.forEach(function(e){t.has(t._render._layers)||t.addLayer(e)})}catch(t){}return this}}])&&Qp(n.prototype,r),o&&Qp(n,o),e}();n(138);function ry(t){return(ry="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)}function oy(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable}))),r.forEach(function(e){iy(t,e,n[e])})}return t}function iy(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function ay(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 uy(t,e){return!e||"object"!==ry(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function cy(t,e,n){return(cy="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var r=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=sy(t)););return t}(t,e);if(r){var o=Object.getOwnPropertyDescriptor(r,e);return o.get?o.get.call(n):o.value}})(t,e,n||t)}function sy(t){return(sy=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function fy(t,e){return(fy=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var ly=function(t){function e(t){var n;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),(n=uy(this,sy(e).call(this,t))).LOCA_CLASS_NAME="Loca.LabelsLayer",n._layerOptions=t,n._labelMarkers=[],n.labelsLayer=new AMap.LabelsLayer({animation:!1,collision:t.collision}),n._styleOptions={style:{direction:"center",offset:[0,0],padding:[3,3,3,3],strokeWidth:1,fontSize:12}},n}var n,r,o;return 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}}),e&&fy(t,e)}(e,zp),n=e,(r=[{key:"_buildOverlay",value:function(){var t=this,e=Ol(this._dataSet,this._styleOptions).attrList,n=this._dataSet.getData();e.forEach(function(e,r){!Array.isArray(e.position)&&e.position.indexOf(",")>-1&&(e.position=e.position.split(","));var o=e.style,i=new AMap.LabelMarker({position:e.position,text:{content:o.text+"",direction:o.direction,offset:o.offset,zooms:o.zooms,style:oy({},o)}});t._labelMarkers.push(i),t._overlays.push({_id:r,style:o,selectStyle:e.selectStyle,feature:i,geomerty:e.position,properties:n[r]})}),this.labelsLayer.add(this._labelMarkers)}},{key:"on",value:function(t,n){var r=this;cy(sy(e.prototype),"on",this).call(this,t,n);var o=this;-1!=["click","dblclick","mouseenter","mouseleave","touchstart","touchmove","touchend","mousemove","mouseover","mouseout"].indexOf(t)&&v.isFn(n)&&(this._layerOptions.eventSupport,setTimeout(function(){r._overlays.forEach(function(e){e.feature.on(t,function(t){var e=o._overlays.find(function(e){return e.feature._LabelMarkerId==t.data.data.id});e&&(t.overlay=e,n(t))})})},0))}},{key:"_selectStyle",value:function(){if(this._styleOptions.selectStyle){var t=this;this.on("mouseover",function(e){t.setOverlaysStyle(function(t){return e.overlay._id===t._id},t._styleOptions.selectStyle)}),this.on("mouseout",function(e){t.setOverlaysStyle(function(t){return e.overlay._id===t._id},t._styleOptions.style)})}}},{key:"setOverlaysStyle",value:function(t,e){var n=this,r=this.getOverlays(t);return r.forEach(function(t){t.style=v.merge(t.style,Sl(t.properties,e,n._dataSet)),n.setOverlayStyle(t,t.style)}),r}},{key:"setOverlayStyle",value:function(t,e){var n=v.merge(t.style,Sl(t.properties,e,this._dataSet));return t.feature.setText({content:n.text+"",direction:n.direction,offset:n.offset,zooms:n.zooms,style:oy({},n)}),t.style=n,t}},{key:"getOverlays",value:function(t){if(void 0===t||"{}"===JSON.stringify(t))return this._overlays;var e=[];if(v.isFn(t))e=this._overlays.filter(t);else if(v.isObject(t)){var n=Object.keys(t);e=this._overlays.filter(function(e){return n.every(function(n){return t[n]===e.properties[n]})})}return e}},{key:"setOptions",value:function(t){t.style=v.assign({},this._styleOptions.style||{},t.style||{}),this._styleOptions=v.assign({},this._styleOptions,t);var e=t.style.opacity;return null==e||isNaN(e)||this.setOpacity(e),this._labelMarkers.length>0?(this.setOverlaysStyle({},this._styleOptions.style),this):(this._buildOverlay(),this)}},{key:"setFitView",value:function(){this.map.setFitView(this._labelMarkers)}},{key:"_removeAllOverlays",value:function(){this.labelsLayer.clear(),this._overlays=[],this._labelMarkers=[]}},{key:"render",value:function(){try{this.has(this.labelsLayer)||(this._selectStyle(),this.addLayer(this.labelsLayer))}catch(t){}return this}}])&&ay(n.prototype,r),o&&ay(n,o),e}();n.d(e,"Loca",function(){return hy});var hy={PointLayer:Lp,PointCloudLayer:ny,RoundPointLayer:Lp,IconLayer:ql,ScatterPointLayer:oh,LineLayer:mh,LinkLayer:Mh,PolygonLayer:Vh,HeatmapLayer:Xh,HexagonLayer:rp,GridLayer:fp,DistrictLayer:gp,ContourLayer:Sp,LabelsLayer:ly,version:"1.3.2"};ka.version=hy.version}])});