UNPKG

vis-network

Version:

A dynamic, browser-based visualization library.

26 lines 837 kB
/** * vis-network - network * http://visjs.org/ * * A dynamic, browser-based visualization library. * * @version 6.3.1 * @date 2019-10-29T23:06:18Z * * @copyright (c) 2011-2017 Almende B.V, http://almende.com * @copyright (c) 2018-2019 visjs contributors, https://github.com/visjs * * @license * vis.js is dual licensed under both * * 1. The Apache 2.0 License * http://www.apache.org/licenses/LICENSE-2.0 * * and * * 2. The MIT License * http://opensource.org/licenses/MIT * * vis.js may be distributed under either license. */ var t="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function e(t,e){return t(e={exports:{}},e.exports),e.exports}function g(t){return t&&t.default||t}var A,i,I,C=function(t){return t&&t.Math==Math&&t},n=C("object"==typeof globalThis&&globalThis)||C("object"==typeof window&&window)||C("object"==typeof self&&self)||C("object"==typeof t&&t)||Function("return this")(),o=function(t){try{return!!t()}catch(t){return!0}},r=!o((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})),s={}.propertyIsEnumerable,a=Object.getOwnPropertyDescriptor,d={f:a&&!s.call({1:2},1)?function(t){var e=a(this,t);return!!e&&e.enumerable}:s},h=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},l={}.toString,c=function(t){return l.call(t).slice(8,-1)},u="".split,f=o((function(){return!Object("z").propertyIsEnumerable(0)}))?function(t){return"String"==c(t)?u.call(t,""):Object(t)}:Object,p=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t},v=function(t){return f(p(t))},m=function(t){return"object"==typeof t?null!==t:"function"==typeof t},y=function(t,e){if(!m(t))return t;var g,A;if(e&&"function"==typeof(g=t.toString)&&!m(A=g.call(t)))return A;if("function"==typeof(g=t.valueOf)&&!m(A=g.call(t)))return A;if(!e&&"function"==typeof(g=t.toString)&&!m(A=g.call(t)))return A;throw TypeError("Can't convert object to primitive value")},b={}.hasOwnProperty,w=function(t,e){return b.call(t,e)},x=n.document,k=m(x)&&m(x.createElement),D=function(t){return k?x.createElement(t):{}},O=!r&&!o((function(){return 7!=Object.defineProperty(D("div"),"a",{get:function(){return 7}}).a})),N=Object.getOwnPropertyDescriptor,M={f:r?N:function(t,e){if(t=v(t),e=y(e,!0),O)try{return N(t,e)}catch(t){}if(w(t,e))return h(!d.f.call(t,e),t[e])}},E=function(t){if(!m(t))throw TypeError(String(t)+" is not an object");return t},T=Object.defineProperty,Z={f:r?T:function(t,e,g){if(E(t),e=y(e,!0),E(g),O)try{return T(t,e,g)}catch(t){}if("get"in g||"set"in g)throw TypeError("Accessors not supported");return"value"in g&&(t[e]=g.value),t}},R=r?function(t,e,g){return Z.f(t,e,h(1,g))}:function(t,e,g){return t[e]=g,t},S=function(t,e){try{R(n,t,e)}catch(g){n[t]=e}return e},G=n["__core-js_shared__"]||S("__core-js_shared__",{}),B=e((function(t){(t.exports=function(t,e){return G[t]||(G[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.3.4",mode:"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})})),F=B("native-function-to-string",Function.toString),Y=n.WeakMap,L="function"==typeof Y&&/native code/.test(F.call(Y)),W=0,_=Math.random(),Q=function(t){return"Symbol("+String(void 0===t?"":t)+")_"+(++W+_).toString(36)},z=B("keys"),P=function(t){return z[t]||(z[t]=Q(t))},j={},V=n.WeakMap;if(L){var U=new V,X=U.get,H=U.has,J=U.set;A=function(t,e){return J.call(U,t,e),e},i=function(t){return X.call(U,t)||{}},I=function(t){return H.call(U,t)}}else{var K=P("state");j[K]=!0,A=function(t,e){return R(t,K,e),e},i=function(t){return w(t,K)?t[K]:{}},I=function(t){return w(t,K)}}var q,$={set:A,get:i,has:I,enforce:function(t){return I(t)?i(t):A(t,{})},getterFor:function(t){return function(e){var g;if(!m(e)||(g=i(e)).type!==t)throw TypeError("Incompatible receiver, "+t+" required");return g}}},tt=e((function(t){var e=$.get,g=$.enforce,A=String(F).split("toString");B("inspectSource",(function(t){return F.call(t)})),(t.exports=function(t,e,i,I){var C=!!I&&!!I.unsafe,o=!!I&&!!I.enumerable,r=!!I&&!!I.noTargetGet;"function"==typeof i&&("string"!=typeof e||w(i,"name")||R(i,"name",e),g(i).source=A.join("string"==typeof e?e:"")),t!==n?(C?!r&&t[e]&&(o=!0):delete t[e],o?t[e]=i:R(t,e,i)):o?t[e]=i:S(e,i)})(Function.prototype,"toString",(function(){return"function"==typeof this&&e(this).source||F.call(this)}))})),et=n,gt=function(t){return"function"==typeof t?t:void 0},At=function(t,e){return arguments.length<2?gt(et[t])||gt(n[t]):et[t]&&et[t][e]||n[t]&&n[t][e]},it=Math.ceil,It=Math.floor,Ct=function(t){return isNaN(t=+t)?0:(t>0?It:it)(t)},nt=Math.min,ot=function(t){return t>0?nt(Ct(t),9007199254740991):0},rt=Math.max,st=Math.min,at=function(t,e){var g=Ct(t);return g<0?rt(g+e,0):st(g,e)},dt=function(t){return function(e,g,A){var i,I=v(e),C=ot(I.length),n=at(A,C);if(t&&g!=g){for(;C>n;)if((i=I[n++])!=i)return!0}else for(;C>n;n++)if((t||n in I)&&I[n]===g)return t||n||0;return!t&&-1}},ht={includes:dt(!0),indexOf:dt(!1)},lt=ht.indexOf,ct=function(t,e){var g,A=v(t),i=0,I=[];for(g in A)!w(j,g)&&w(A,g)&&I.push(g);for(;e.length>i;)w(A,g=e[i++])&&(~lt(I,g)||I.push(g));return I},ut=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],ft=ut.concat("length","prototype"),pt={f:Object.getOwnPropertyNames||function(t){return ct(t,ft)}},vt={f:Object.getOwnPropertySymbols},mt=At("Reflect","ownKeys")||function(t){var e=pt.f(E(t)),g=vt.f;return g?e.concat(g(t)):e},yt=function(t,e){for(var g=mt(e),A=Z.f,i=M.f,I=0;I<g.length;I++){var C=g[I];w(t,C)||A(t,C,i(e,C))}},bt=/#|\.prototype\./,wt=function(t,e){var g=kt[xt(t)];return g==Ot||g!=Dt&&("function"==typeof e?o(e):!!e)},xt=wt.normalize=function(t){return String(t).replace(bt,".").toLowerCase()},kt=wt.data={},Dt=wt.NATIVE="N",Ot=wt.POLYFILL="P",Nt=wt,Mt=M.f,Et=function(t,e){var g,A,i,I,C,o=t.target,r=t.global,s=t.stat;if(g=r?n:s?n[o]||S(o,{}):(n[o]||{}).prototype)for(A in e){if(I=e[A],i=t.noTargetGet?(C=Mt(g,A))&&C.value:g[A],!Nt(r?A:o+(s?".":"#")+A,t.forced)&&void 0!==i){if(typeof I==typeof i)continue;yt(I,i)}(t.sham||i&&i.sham)&&R(I,"sham",!0),tt(g,A,I,t)}},Tt=!!Object.getOwnPropertySymbols&&!o((function(){return!String(Symbol())})),Zt=n.Symbol,Rt=B("wks"),St=function(t){return Rt[t]||(Rt[t]=Tt&&Zt[t]||(Tt?Zt:Q)("Symbol."+t))},Gt=St("toStringTag"),Bt="Arguments"==c(function(){return arguments}()),Ft=function(t){var e,g,A;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(g=function(t,e){try{return t[e]}catch(t){}}(e=Object(t),Gt))?g:Bt?c(e):"Object"==(A=c(e))&&"function"==typeof e.callee?"Arguments":A},Yt=function(t){return Object(p(t))},Lt=!o((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype})),Wt=P("IE_PROTO"),_t=Object.prototype,Qt=Lt?Object.getPrototypeOf:function(t){return t=Yt(t),w(t,Wt)?t[Wt]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?_t:null},zt=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,g={};try{(t=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(g,[]),e=g instanceof Array}catch(t){}return function(g,A){return E(g),function(t){if(!m(t)&&null!==t)throw TypeError("Can't set "+String(t)+" as a prototype")}(A),e?t.call(g,A):g.__proto__=A,g}}():void 0),Pt=Z.f,jt=n.DataView,Vt=jt&&jt.prototype,Ut=n.Int8Array,Xt=Ut&&Ut.prototype,Ht=n.Uint8ClampedArray,Jt=Ht&&Ht.prototype,Kt=Ut&&Qt(Ut),qt=Xt&&Qt(Xt),$t=Object.prototype,te=$t.isPrototypeOf,ee=St("toStringTag"),ge=Q("TYPED_ARRAY_TAG"),Ae=!(!n.ArrayBuffer||!jt),ie=Ae&&!!zt&&"Opera"!==Ft(n.opera),Ie=!1,Ce={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},ne=function(t){return m(t)&&w(Ce,Ft(t))};for(q in Ce)n[q]||(ie=!1);if((!ie||"function"!=typeof Kt||Kt===Function.prototype)&&(Kt=function(){throw TypeError("Incorrect invocation")},ie))for(q in Ce)n[q]&&zt(n[q],Kt);if((!ie||!qt||qt===$t)&&(qt=Kt.prototype,ie))for(q in Ce)n[q]&&zt(n[q].prototype,qt);if(ie&&Qt(Jt)!==qt&&zt(Jt,qt),r&&!w(qt,ee))for(q in Ie=!0,Pt(qt,ee,{get:function(){return m(this)?this[ge]:void 0}}),Ce)n[q]&&R(n[q],ge,q);Ae&&zt&&Qt(Vt)!==$t&&zt(Vt,$t);var oe={NATIVE_ARRAY_BUFFER:Ae,NATIVE_ARRAY_BUFFER_VIEWS:ie,TYPED_ARRAY_TAG:Ie&&ge,aTypedArray:function(t){if(ne(t))return t;throw TypeError("Target is not a typed array")},aTypedArrayConstructor:function(t){if(zt){if(te.call(Kt,t))return t}else for(var e in Ce)if(w(Ce,q)){var g=n[e];if(g&&(t===g||te.call(g,t)))return t}throw TypeError("Target is not a typed array constructor")},exportProto:function(t,e,g){if(r){if(g)for(var A in Ce){var i=n[A];i&&w(i.prototype,t)&&delete i.prototype[t]}qt[t]&&!g||tt(qt,t,g?e:ie&&Xt[t]||e)}},exportStatic:function(t,e,g){var A,i;if(r){if(zt){if(g)for(A in Ce)(i=n[A])&&w(i,t)&&delete i[t];if(Kt[t]&&!g)return;try{return tt(Kt,t,g?e:ie&&Ut[t]||e)}catch(t){}}for(A in Ce)!(i=n[A])||i[t]&&!g||tt(i,t,e)}},isView:function(t){var e=Ft(t);return"DataView"===e||w(Ce,e)},isTypedArray:ne,TypedArray:Kt,TypedArrayPrototype:qt},re=function(t,e,g){for(var A in e)tt(t,A,e[A],g);return t},se=function(t,e,g){if(!(t instanceof e))throw TypeError("Incorrect "+(g?g+" ":"")+"invocation");return t},ae=function(t){if(void 0===t)return 0;var e=Ct(t),g=ot(e);if(e!==g)throw RangeError("Wrong length or index");return g},de=function(t){for(var e=Yt(this),g=ot(e.length),A=arguments.length,i=at(A>1?arguments[1]:void 0,g),I=A>2?arguments[2]:void 0,C=void 0===I?g:at(I,g);C>i;)e[i++]=t;return e},he=Z.f,le=St("toStringTag"),ce=function(t,e,g){t&&!w(t=g?t:t.prototype,le)&&he(t,le,{configurable:!0,value:e})},ue=oe.NATIVE_ARRAY_BUFFER,fe=pt.f,pe=Z.f,ve=$.get,me=$.set,ye=n.ArrayBuffer,be=ye,we=n.DataView,xe=n.Math,ke=n.RangeError,De=xe.abs,Oe=xe.pow,Ne=xe.floor,Me=xe.log,Ee=xe.LN2,Te=function(t,e,g){var A,i,I,C=new Array(g),n=8*g-e-1,o=(1<<n)-1,r=o>>1,s=23===e?Oe(2,-24)-Oe(2,-77):0,a=t<0||0===t&&1/t<0?1:0,d=0;for((t=De(t))!=t||t===1/0?(i=t!=t?1:0,A=o):(A=Ne(Me(t)/Ee),t*(I=Oe(2,-A))<1&&(A--,I*=2),(t+=A+r>=1?s/I:s*Oe(2,1-r))*I>=2&&(A++,I/=2),A+r>=o?(i=0,A=o):A+r>=1?(i=(t*I-1)*Oe(2,e),A+=r):(i=t*Oe(2,r-1)*Oe(2,e),A=0));e>=8;C[d++]=255&i,i/=256,e-=8);for(A=A<<e|i,n+=e;n>0;C[d++]=255&A,A/=256,n-=8);return C[--d]|=128*a,C},Ze=function(t,e){var g,A=t.length,i=8*A-e-1,I=(1<<i)-1,C=I>>1,n=i-7,o=A-1,r=t[o--],s=127&r;for(r>>=7;n>0;s=256*s+t[o],o--,n-=8);for(g=s&(1<<-n)-1,s>>=-n,n+=e;n>0;g=256*g+t[o],o--,n-=8);if(0===s)s=1-C;else{if(s===I)return g?NaN:r?-1/0:1/0;g+=Oe(2,e),s-=C}return(r?-1:1)*g*Oe(2,s-e)},Re=function(t){return t[3]<<24|t[2]<<16|t[1]<<8|t[0]},Se=function(t){return[255&t]},Ge=function(t){return[255&t,t>>8&255]},Be=function(t){return[255&t,t>>8&255,t>>16&255,t>>24&255]},Fe=function(t){return Te(t,23,4)},Ye=function(t){return Te(t,52,8)},Le=function(t,e){pe(t.prototype,e,{get:function(){return ve(this)[e]}})},We=function(t,e,g,A){var i=ae(+g),I=ve(t);if(i+e>I.byteLength)throw ke("Wrong index");var C=ve(I.buffer).bytes,n=i+I.byteOffset,o=C.slice(n,n+e);return A?o:o.reverse()},_e=function(t,e,g,A,i,I){var C=ae(+g),n=ve(t);if(C+e>n.byteLength)throw ke("Wrong index");for(var o=ve(n.buffer).bytes,r=C+n.byteOffset,s=A(+i),a=0;a<e;a++)o[r+a]=s[I?a:e-a-1]};if(ue){if(!o((function(){ye(1)}))||!o((function(){new ye(-1)}))||o((function(){return new ye,new ye(1.5),new ye(NaN),"ArrayBuffer"!=ye.name}))){for(var Qe,ze=(be=function(t){return se(this,be),new ye(ae(t))}).prototype=ye.prototype,Pe=fe(ye),je=0;Pe.length>je;)(Qe=Pe[je++])in be||R(be,Qe,ye[Qe]);ze.constructor=be}var Ve=new we(new be(2)),Ue=we.prototype.setInt8;Ve.setInt8(0,2147483648),Ve.setInt8(1,2147483649),!Ve.getInt8(0)&&Ve.getInt8(1)||re(we.prototype,{setInt8:function(t,e){Ue.call(this,t,e<<24>>24)},setUint8:function(t,e){Ue.call(this,t,e<<24>>24)}},{unsafe:!0})}else be=function(t){se(this,be,"ArrayBuffer");var e=ae(t);me(this,{bytes:de.call(new Array(e),0),byteLength:e}),r||(this.byteLength=e)},we=function(t,e,g){se(this,we,"DataView"),se(t,be,"DataView");var A=ve(t).byteLength,i=Ct(e);if(i<0||i>A)throw ke("Wrong offset");if(i+(g=void 0===g?A-i:ot(g))>A)throw ke("Wrong length");me(this,{buffer:t,byteLength:g,byteOffset:i}),r||(this.buffer=t,this.byteLength=g,this.byteOffset=i)},r&&(Le(be,"byteLength"),Le(we,"buffer"),Le(we,"byteLength"),Le(we,"byteOffset")),re(we.prototype,{getInt8:function(t){return We(this,1,t)[0]<<24>>24},getUint8:function(t){return We(this,1,t)[0]},getInt16:function(t){var e=We(this,2,t,arguments.length>1?arguments[1]:void 0);return(e[1]<<8|e[0])<<16>>16},getUint16:function(t){var e=We(this,2,t,arguments.length>1?arguments[1]:void 0);return e[1]<<8|e[0]},getInt32:function(t){return Re(We(this,4,t,arguments.length>1?arguments[1]:void 0))},getUint32:function(t){return Re(We(this,4,t,arguments.length>1?arguments[1]:void 0))>>>0},getFloat32:function(t){return Ze(We(this,4,t,arguments.length>1?arguments[1]:void 0),23)},getFloat64:function(t){return Ze(We(this,8,t,arguments.length>1?arguments[1]:void 0),52)},setInt8:function(t,e){_e(this,1,t,Se,e)},setUint8:function(t,e){_e(this,1,t,Se,e)},setInt16:function(t,e){_e(this,2,t,Ge,e,arguments.length>2?arguments[2]:void 0)},setUint16:function(t,e){_e(this,2,t,Ge,e,arguments.length>2?arguments[2]:void 0)},setInt32:function(t,e){_e(this,4,t,Be,e,arguments.length>2?arguments[2]:void 0)},setUint32:function(t,e){_e(this,4,t,Be,e,arguments.length>2?arguments[2]:void 0)},setFloat32:function(t,e){_e(this,4,t,Fe,e,arguments.length>2?arguments[2]:void 0)},setFloat64:function(t,e){_e(this,8,t,Ye,e,arguments.length>2?arguments[2]:void 0)}});ce(be,"ArrayBuffer"),ce(we,"DataView");var Xe={ArrayBuffer:be,DataView:we},He=function(t){if("function"!=typeof t)throw TypeError(String(t)+" is not a function");return t},Je=St("species"),Ke=function(t,e){var g,A=E(t).constructor;return void 0===A||null==(g=E(A)[Je])?e:He(g)},qe=Xe.ArrayBuffer,$e=Xe.DataView,tg=qe.prototype.slice,eg=o((function(){return!new qe(2).slice(1,void 0).byteLength}));Et({target:"ArrayBuffer",proto:!0,unsafe:!0,forced:eg},{slice:function(t,e){if(void 0!==tg&&void 0===e)return tg.call(E(this),t);for(var g=E(this).byteLength,A=at(t,g),i=at(void 0===e?g:e,g),I=new(Ke(this,qe))(ot(i-A)),C=new $e(this),n=new $e(I),o=0;A<i;)n.setUint8(o++,C.getUint8(A++));return I}}),Et({global:!0,forced:!oe.NATIVE_ARRAY_BUFFER},{DataView:Xe.DataView});var gg={};gg[St("toStringTag")]="z";var Ag="[object z]"!==String(gg)?function(){return"[object "+Ft(this)+"]"}:gg.toString,ig=Object.prototype;Ag!==ig.toString&&tt(ig,"toString",Ag,{unsafe:!0}),"undefined"!=typeof CanvasRenderingContext2D&&(CanvasRenderingContext2D.prototype.circle=function(t,e,g){this.beginPath(),this.arc(t,e,g,0,2*Math.PI,!1),this.closePath()},CanvasRenderingContext2D.prototype.square=function(t,e,g){this.beginPath(),this.rect(t-g,e-g,2*g,2*g),this.closePath()},CanvasRenderingContext2D.prototype.triangle=function(t,e,g){this.beginPath(),e+=.275*(g*=1.15);var A=2*g,i=A/2,I=Math.sqrt(3)/6*A,C=Math.sqrt(A*A-i*i);this.moveTo(t,e-(C-I)),this.lineTo(t+i,e+I),this.lineTo(t-i,e+I),this.lineTo(t,e-(C-I)),this.closePath()},CanvasRenderingContext2D.prototype.triangleDown=function(t,e,g){this.beginPath(),e-=.275*(g*=1.15);var A=2*g,i=A/2,I=Math.sqrt(3)/6*A,C=Math.sqrt(A*A-i*i);this.moveTo(t,e+(C-I)),this.lineTo(t+i,e-I),this.lineTo(t-i,e-I),this.lineTo(t,e+(C-I)),this.closePath()},CanvasRenderingContext2D.prototype.star=function(t,e,g){this.beginPath(),e+=.1*(g*=.82);for(var A=0;A<10;A++){var i=A%2==0?1.3*g:.5*g;this.lineTo(t+i*Math.sin(2*A*Math.PI/10),e-i*Math.cos(2*A*Math.PI/10))}this.closePath()},CanvasRenderingContext2D.prototype.diamond=function(t,e,g){this.beginPath(),this.lineTo(t,e+g),this.lineTo(t+g,e),this.lineTo(t,e-g),this.lineTo(t-g,e),this.closePath()},CanvasRenderingContext2D.prototype.roundRect=function(t,e,g,A,i){var I=Math.PI/180;g-2*i<0&&(i=g/2),A-2*i<0&&(i=A/2),this.beginPath(),this.moveTo(t+i,e),this.lineTo(t+g-i,e),this.arc(t+g-i,e+i,i,270*I,360*I,!1),this.lineTo(t+g,e+A-i),this.arc(t+g-i,e+A-i,i,0,90*I,!1),this.lineTo(t+i,e+A),this.arc(t+i,e+A-i,i,90*I,180*I,!1),this.lineTo(t,e+i),this.arc(t+i,e+i,i,180*I,270*I,!1),this.closePath()},CanvasRenderingContext2D.prototype.ellipse_vis=function(t,e,g,A){var i=g/2*.5522848,I=A/2*.5522848,C=t+g,n=e+A,o=t+g/2,r=e+A/2;this.beginPath(),this.moveTo(t,r),this.bezierCurveTo(t,r-I,o-i,e,o,e),this.bezierCurveTo(o+i,e,C,r-I,C,r),this.bezierCurveTo(C,r+I,o+i,n,o,n),this.bezierCurveTo(o-i,n,t,r+I,t,r),this.closePath()},CanvasRenderingContext2D.prototype.database=function(t,e,g,A){var i=A*(1/3),I=g/2*.5522848,C=i/2*.5522848,n=t+g,o=e+i,r=t+g/2,s=e+i/2,a=e+(A-i/2),d=e+A;this.beginPath(),this.moveTo(n,s),this.bezierCurveTo(n,s+C,r+I,o,r,o),this.bezierCurveTo(r-I,o,t,s+C,t,s),this.bezierCurveTo(t,s-C,r-I,e,r,e),this.bezierCurveTo(r+I,e,n,s-C,n,s),this.lineTo(n,a),this.bezierCurveTo(n,a+C,r+I,d,r,d),this.bezierCurveTo(r-I,d,t,a+C,t,a),this.lineTo(t,s)},CanvasRenderingContext2D.prototype.dashedLine=function(t,e,g,A,i){this.beginPath(),this.moveTo(t,e);for(var I=i.length,C=g-t,n=A-e,o=n/C,r=Math.sqrt(C*C+n*n),s=0,a=!0,d=0,h=+i[0];r>=.1;)(h=+i[s++%I])>r&&(h=r),d=Math.sqrt(h*h/(1+o*o)),t+=d=C<0?-d:d,e+=o*d,!0===a?this.lineTo(t,e):this.moveTo(t,e),r-=h,a=!a},CanvasRenderingContext2D.prototype.hexagon=function(t,e,g){this.beginPath();var A=2*Math.PI/6;this.moveTo(t+g,e);for(var i=1;i<6;i++)this.lineTo(t+g*Math.cos(A*i),e+g*Math.sin(A*i));this.closePath()});var Ig,Cg,ng=Array.isArray||function(t){return"Array"==c(t)},og=function(t,e,g){var A=y(e);A in t?Z.f(t,A,h(0,g)):t[A]=g},rg=At("navigator","userAgent")||"",sg=n.process,ag=sg&&sg.versions,dg=ag&&ag.v8;dg?Cg=(Ig=dg.split("."))[0]+Ig[1]:rg&&(Ig=rg.match(/Chrome\/(\d+)/))&&(Cg=Ig[1]);var hg=Cg&&+Cg,lg=St("species"),cg=function(t){return hg>=51||!o((function(){var e=[];return(e.constructor={})[lg]=function(){return{foo:1}},1!==e[t](Boolean).foo}))},ug=St("species"),fg=[].slice,pg=Math.max;Et({target:"Array",proto:!0,forced:!cg("slice")},{slice:function(t,e){var g,A,i,I=v(this),C=ot(I.length),n=at(t,C),o=at(void 0===e?C:e,C);if(ng(I)&&("function"!=typeof(g=I.constructor)||g!==Array&&!ng(g.prototype)?m(g)&&null===(g=g[ug])&&(g=void 0):g=void 0,g===Array||void 0===g))return fg.call(I,n,o);for(A=new(void 0===g?Array:g)(pg(o-n,0)),i=0;n<o;n++,i++)n in I&&og(A,i,I[n]);return A.length=i,A}});var vg=St("species"),mg=function(t,e){var g;return ng(t)&&("function"!=typeof(g=t.constructor)||g!==Array&&!ng(g.prototype)?m(g)&&null===(g=g[vg])&&(g=void 0):g=void 0),new(void 0===g?Array:g)(0===e?0:e)},yg=Math.max,bg=Math.min;Et({target:"Array",proto:!0,forced:!cg("splice")},{splice:function(t,e){var g,A,i,I,C,n,o=Yt(this),r=ot(o.length),s=at(t,r),a=arguments.length;if(0===a?g=A=0:1===a?(g=0,A=r-s):(g=a-2,A=bg(yg(Ct(e),0),r-s)),r+g-A>9007199254740991)throw TypeError("Maximum allowed length exceeded");for(i=mg(o,A),I=0;I<A;I++)(C=s+I)in o&&og(i,I,o[C]);if(i.length=A,g<A){for(I=s;I<r-A;I++)n=I+g,(C=I+A)in o?o[n]=o[C]:delete o[n];for(I=r;I>r-A+g;I--)delete o[I-1]}else if(g>A)for(I=r-A;I>s;I--)n=I+g-1,(C=I+A-1)in o?o[n]=o[C]:delete o[n];for(I=0;I<g;I++)o[I+s]=arguments[I+2];return o.length=r-A+g,i}});var wg=e((function(t){function e(t){if(t)return function(t){for(var g in e.prototype)t[g]=e.prototype[g];return t}(t)}t.exports=e,e.prototype.on=e.prototype.addEventListener=function(t,e){return this._callbacks=this._callbacks||{},(this._callbacks["$"+t]=this._callbacks["$"+t]||[]).push(e),this},e.prototype.once=function(t,e){function g(){this.off(t,g),e.apply(this,arguments)}return g.fn=e,this.on(t,g),this},e.prototype.off=e.prototype.removeListener=e.prototype.removeAllListeners=e.prototype.removeEventListener=function(t,e){if(this._callbacks=this._callbacks||{},0==arguments.length)return this._callbacks={},this;var g,A=this._callbacks["$"+t];if(!A)return this;if(1==arguments.length)return delete this._callbacks["$"+t],this;for(var i=0;i<A.length;i++)if((g=A[i])===e||g.fn===e){A.splice(i,1);break}return 0===A.length&&delete this._callbacks["$"+t],this},e.prototype.emit=function(t){this._callbacks=this._callbacks||{};for(var e=new Array(arguments.length-1),g=this._callbacks["$"+t],A=1;A<arguments.length;A++)e[A-1]=arguments[A];if(g){A=0;for(var i=(g=g.slice(0)).length;A<i;++A)g[A].apply(this,e)}return this},e.prototype.listeners=function(t){return this._callbacks=this._callbacks||{},this._callbacks["$"+t]||[]},e.prototype.hasListeners=function(t){return!!this.listeners(t).length}})),xg=Object.keys||function(t){return ct(t,ut)},kg=r?Object.defineProperties:function(t,e){E(t);for(var g,A=xg(e),i=A.length,I=0;i>I;)Z.f(t,g=A[I++],e[g]);return t},Dg=At("document","documentElement"),Og=P("IE_PROTO"),Ng=function(){},Mg=function(){var t,e=D("iframe"),g=ut.length;for(e.style.display="none",Dg.appendChild(e),e.src=String("javascript:"),(t=e.contentWindow.document).open(),t.write("<script>document.F=Object<\/script>"),t.close(),Mg=t.F;g--;)delete Mg.prototype[ut[g]];return Mg()},Eg=Object.create||function(t,e){var g;return null!==t?(Ng.prototype=E(t),g=new Ng,Ng.prototype=null,g[Og]=t):g=Mg(),void 0===e?g:kg(g,e)};j[Og]=!0;var Tg=pt.f,Zg={}.toString,Rg="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],Sg={f:function(t){return Rg&&"[object Window]"==Zg.call(t)?function(t){try{return Tg(t)}catch(t){return Rg.slice()}}(t):Tg(v(t))}},Gg={f:St},Bg=Z.f,Fg=function(t){var e=et.Symbol||(et.Symbol={});w(e,t)||Bg(e,t,{value:Gg.f(t)})},Yg=function(t,e,g){if(He(t),void 0===e)return t;switch(g){case 0:return function(){return t.call(e)};case 1:return function(g){return t.call(e,g)};case 2:return function(g,A){return t.call(e,g,A)};case 3:return function(g,A,i){return t.call(e,g,A,i)}}return function(){return t.apply(e,arguments)}},Lg=[].push,Wg=function(t){var e=1==t,g=2==t,A=3==t,i=4==t,I=6==t,C=5==t||I;return function(n,o,r,s){for(var a,d,h=Yt(n),l=f(h),c=Yg(o,r,3),u=ot(l.length),p=0,v=s||mg,m=e?v(n,u):g?v(n,0):void 0;u>p;p++)if((C||p in l)&&(d=c(a=l[p],p,h),t))if(e)m[p]=d;else if(d)switch(t){case 3:return!0;case 5:return a;case 6:return p;case 2:Lg.call(m,a)}else if(i)return!1;return I?-1:A||i?i:m}},_g={forEach:Wg(0),map:Wg(1),filter:Wg(2),some:Wg(3),every:Wg(4),find:Wg(5),findIndex:Wg(6)},Qg=_g.forEach,zg=P("hidden"),Pg=St("toPrimitive"),jg=$.set,Vg=$.getterFor("Symbol"),Ug=Object.prototype,Xg=n.Symbol,Hg=n.JSON,Jg=Hg&&Hg.stringify,Kg=M.f,qg=Z.f,$g=Sg.f,tA=d.f,eA=B("symbols"),gA=B("op-symbols"),AA=B("string-to-symbol-registry"),iA=B("symbol-to-string-registry"),IA=B("wks"),CA=n.QObject,nA=!CA||!CA.prototype||!CA.prototype.findChild,oA=r&&o((function(){return 7!=Eg(qg({},"a",{get:function(){return qg(this,"a",{value:7}).a}})).a}))?function(t,e,g){var A=Kg(Ug,e);A&&delete Ug[e],qg(t,e,g),A&&t!==Ug&&qg(Ug,e,A)}:qg,rA=function(t,e){var g=eA[t]=Eg(Xg.prototype);return jg(g,{type:"Symbol",tag:t,description:e}),r||(g.description=e),g},sA=Tt&&"symbol"==typeof Xg.iterator?function(t){return"symbol"==typeof t}:function(t){return Object(t)instanceof Xg},aA=function(t,e,g){t===Ug&&aA(gA,e,g),E(t);var A=y(e,!0);return E(g),w(eA,A)?(g.enumerable?(w(t,zg)&&t[zg][A]&&(t[zg][A]=!1),g=Eg(g,{enumerable:h(0,!1)})):(w(t,zg)||qg(t,zg,h(1,{})),t[zg][A]=!0),oA(t,A,g)):qg(t,A,g)},dA=function(t,e){E(t);var g=v(e),A=xg(g).concat(uA(g));return Qg(A,(function(e){r&&!hA.call(g,e)||aA(t,e,g[e])})),t},hA=function(t){var e=y(t,!0),g=tA.call(this,e);return!(this===Ug&&w(eA,e)&&!w(gA,e))&&(!(g||!w(this,e)||!w(eA,e)||w(this,zg)&&this[zg][e])||g)},lA=function(t,e){var g=v(t),A=y(e,!0);if(g!==Ug||!w(eA,A)||w(gA,A)){var i=Kg(g,A);return!i||!w(eA,A)||w(g,zg)&&g[zg][A]||(i.enumerable=!0),i}},cA=function(t){var e=$g(v(t)),g=[];return Qg(e,(function(t){w(eA,t)||w(j,t)||g.push(t)})),g},uA=function(t){var e=t===Ug,g=$g(e?gA:v(t)),A=[];return Qg(g,(function(t){!w(eA,t)||e&&!w(Ug,t)||A.push(eA[t])})),A};Tt||(tt((Xg=function(){if(this instanceof Xg)throw TypeError("Symbol is not a constructor");var t=arguments.length&&void 0!==arguments[0]?String(arguments[0]):void 0,e=Q(t),g=function(t){this===Ug&&g.call(gA,t),w(this,zg)&&w(this[zg],e)&&(this[zg][e]=!1),oA(this,e,h(1,t))};return r&&nA&&oA(Ug,e,{configurable:!0,set:g}),rA(e,t)}).prototype,"toString",(function(){return Vg(this).tag})),d.f=hA,Z.f=aA,M.f=lA,pt.f=Sg.f=cA,vt.f=uA,r&&(qg(Xg.prototype,"description",{configurable:!0,get:function(){return Vg(this).description}}),tt(Ug,"propertyIsEnumerable",hA,{unsafe:!0})),Gg.f=function(t){return rA(St(t),t)}),Et({global:!0,wrap:!0,forced:!Tt,sham:!Tt},{Symbol:Xg}),Qg(xg(IA),(function(t){Fg(t)})),Et({target:"Symbol",stat:!0,forced:!Tt},{for:function(t){var e=String(t);if(w(AA,e))return AA[e];var g=Xg(e);return AA[e]=g,iA[g]=e,g},keyFor:function(t){if(!sA(t))throw TypeError(t+" is not a symbol");if(w(iA,t))return iA[t]},useSetter:function(){nA=!0},useSimple:function(){nA=!1}}),Et({target:"Object",stat:!0,forced:!Tt,sham:!r},{create:function(t,e){return void 0===e?Eg(t):dA(Eg(t),e)},defineProperty:aA,defineProperties:dA,getOwnPropertyDescriptor:lA}),Et({target:"Object",stat:!0,forced:!Tt},{getOwnPropertyNames:cA,getOwnPropertySymbols:uA}),Et({target:"Object",stat:!0,forced:o((function(){vt.f(1)}))},{getOwnPropertySymbols:function(t){return vt.f(Yt(t))}}),Hg&&Et({target:"JSON",stat:!0,forced:!Tt||o((function(){var t=Xg();return"[null]"!=Jg([t])||"{}"!=Jg({a:t})||"{}"!=Jg(Object(t))}))},{stringify:function(t){for(var e,g,A=[t],i=1;arguments.length>i;)A.push(arguments[i++]);if(g=e=A[1],(m(e)||void 0!==t)&&!sA(t))return ng(e)||(e=function(t,e){if("function"==typeof g&&(e=g.call(this,t,e)),!sA(e))return e}),A[1]=e,Jg.apply(Hg,A)}}),Xg.prototype[Pg]||R(Xg.prototype,Pg,Xg.prototype.valueOf),ce(Xg,"Symbol"),j[zg]=!0;var fA=Z.f,pA=n.Symbol;if(r&&"function"==typeof pA&&(!("description"in pA.prototype)||void 0!==pA().description)){var vA={},mA=function(){var t=arguments.length<1||void 0===arguments[0]?void 0:String(arguments[0]),e=this instanceof mA?new pA(t):void 0===t?pA():pA(t);return""===t&&(vA[e]=!0),e};yt(mA,pA);var yA=mA.prototype=pA.prototype;yA.constructor=mA;var bA=yA.toString,wA="Symbol(test)"==String(pA("test")),xA=/^Symbol\((.*)\)[^)]+$/;fA(yA,"description",{configurable:!0,get:function(){var t=m(this)?this.valueOf():this,e=bA.call(t);if(w(vA,t))return"";var g=wA?e.slice(7,-1):e.replace(xA,"$1");return""===g?void 0:g}}),Et({global:!0,forced:!0},{Symbol:mA})}Fg("iterator");var kA=St("isConcatSpreadable"),DA=!o((function(){var t=[];return t[kA]=!1,t.concat()[0]!==t})),OA=cg("concat"),NA=function(t){if(!m(t))return!1;var e=t[kA];return void 0!==e?!!e:ng(t)};Et({target:"Array",proto:!0,forced:!DA||!OA},{concat:function(t){var e,g,A,i,I,C=Yt(this),n=mg(C,0),o=0;for(e=-1,A=arguments.length;e<A;e++)if(I=-1===e?C:arguments[e],NA(I)){if(o+(i=ot(I.length))>9007199254740991)throw TypeError("Maximum allowed index exceeded");for(g=0;g<i;g++,o++)g in I&&og(n,o,I[g])}else{if(o>=9007199254740991)throw TypeError("Maximum allowed index exceeded");og(n,o++,I)}return n.length=o,n}});var MA=_g.filter;Et({target:"Array",proto:!0,forced:!cg("filter")},{filter:function(t){return MA(this,t,arguments.length>1?arguments[1]:void 0)}});var EA=function(t,e){var g=[][t];return!g||!o((function(){g.call(null,e||function(){throw 1},1)}))},TA=_g.forEach,ZA=EA("forEach")?function(t){return TA(this,t,arguments.length>1?arguments[1]:void 0)}:[].forEach;Et({target:"Array",proto:!0,forced:[].forEach!=ZA},{forEach:ZA});var RA=function(t,e,g,A){try{return A?e(E(g)[0],g[1]):e(g)}catch(e){var i=t.return;throw void 0!==i&&E(i.call(t)),e}},SA={},GA=St("iterator"),BA=Array.prototype,FA=function(t){return void 0!==t&&(SA.Array===t||BA[GA]===t)},YA=St("iterator"),LA=function(t){if(null!=t)return t[YA]||t["@@iterator"]||SA[Ft(t)]},WA=St("iterator"),_A=!1;try{var QA=0,zA={next:function(){return{done:!!QA++}},return:function(){_A=!0}};zA[WA]=function(){return this},Array.from(zA,(function(){throw 2}))}catch(t){}var PA=function(t,e){if(!e&&!_A)return!1;var g=!1;try{var A={};A[WA]=function(){return{next:function(){return{done:g=!0}}}},t(A)}catch(t){}return g},jA=!PA((function(t){Array.from(t)}));Et({target:"Array",stat:!0,forced:jA},{from:function(t){var e,g,A,i,I,C=Yt(t),n="function"==typeof this?this:Array,o=arguments.length,r=o>1?arguments[1]:void 0,s=void 0!==r,a=0,d=LA(C);if(s&&(r=Yg(r,o>2?arguments[2]:void 0,2)),null==d||n==Array&&FA(d))for(g=new n(e=ot(C.length));e>a;a++)og(g,a,s?r(C[a],a):C[a]);else for(I=(i=d.call(C)).next,g=new n;!(A=I.call(i)).done;a++)og(g,a,s?RA(i,r,[A.value,a],!0):A.value);return g.length=a,g}});var VA=ht.indexOf,UA=[].indexOf,XA=!!UA&&1/[1].indexOf(1,-0)<0,HA=EA("indexOf");Et({target:"Array",proto:!0,forced:XA||HA},{indexOf:function(t){return XA?UA.apply(this,arguments)||0:VA(this,t,arguments.length>1?arguments[1]:void 0)}});var JA=St("unscopables"),KA=Array.prototype;null==KA[JA]&&R(KA,JA,Eg(null));var qA,$A,ti,ei=function(t){KA[JA][t]=!0},gi=St("iterator"),Ai=!1;[].keys&&("next"in(ti=[].keys())?($A=Qt(Qt(ti)))!==Object.prototype&&(qA=$A):Ai=!0),null==qA&&(qA={}),w(qA,gi)||R(qA,gi,(function(){return this}));var ii={IteratorPrototype:qA,BUGGY_SAFARI_ITERATORS:Ai},Ii=ii.IteratorPrototype,Ci=function(){return this},ni=ii.IteratorPrototype,oi=ii.BUGGY_SAFARI_ITERATORS,ri=St("iterator"),si=function(){return this},ai=function(t,e,g,A,i,I,C){!function(t,e,g){var A=e+" Iterator";t.prototype=Eg(Ii,{next:h(1,g)}),ce(t,A,!1),SA[A]=Ci}(g,e,A);var n,o,r,s=function(t){if(t===i&&u)return u;if(!oi&&t in l)return l[t];switch(t){case"keys":case"values":case"entries":return function(){return new g(this,t)}}return function(){return new g(this)}},a=e+" Iterator",d=!1,l=t.prototype,c=l[ri]||l["@@iterator"]||i&&l[i],u=!oi&&c||s(i),f="Array"==e&&l.entries||c;if(f&&(n=Qt(f.call(new t)),ni!==Object.prototype&&n.next&&(Qt(n)!==ni&&(zt?zt(n,ni):"function"!=typeof n[ri]&&R(n,ri,si)),ce(n,a,!0))),"values"==i&&c&&"values"!==c.name&&(d=!0,u=function(){return c.call(this)}),l[ri]!==u&&R(l,ri,u),SA[e]=u,i)if(o={values:s("values"),keys:I?u:s("keys"),entries:s("entries")},C)for(r in o)!oi&&!d&&r in l||tt(l,r,o[r]);else Et({target:e,proto:!0,forced:oi||d},o);return o},di=$.set,hi=$.getterFor("Array Iterator"),li=ai(Array,"Array",(function(t,e){di(this,{type:"Array Iterator",target:v(t),index:0,kind:e})}),(function(){var t=hi(this),e=t.target,g=t.kind,A=t.index++;return!e||A>=e.length?(t.target=void 0,{value:void 0,done:!0}):"keys"==g?{value:A,done:!1}:"values"==g?{value:e[A],done:!1}:{value:[A,e[A]],done:!1}}),"values");SA.Arguments=SA.Array,ei("keys"),ei("values"),ei("entries");var ci=[].join,ui=f!=Object,fi=EA("join",",");Et({target:"Array",proto:!0,forced:ui||fi},{join:function(t){return ci.call(v(this),void 0===t?",":t)}});var pi=_g.map;Et({target:"Array",proto:!0,forced:!cg("map")},{map:function(t){return pi(this,t,arguments.length>1?arguments[1]:void 0)}});var vi=_g.some;Et({target:"Array",proto:!0,forced:EA("some")},{some:function(t){return vi(this,t,arguments.length>1?arguments[1]:void 0)}});var mi=[].sort,yi=[1,2,3],bi=o((function(){yi.sort(void 0)})),wi=o((function(){yi.sort(null)})),xi=EA("sort");Et({target:"Array",proto:!0,forced:bi||!wi||xi},{sort:function(t){return void 0===t?mi.call(Yt(this)):mi.call(Yt(this),He(t))}});var ki="".repeat||function(t){var e=String(p(this)),g="",A=Ct(t);if(A<0||A==1/0)throw RangeError("Wrong number of repetitions");for(;A>0;(A>>>=1)&&(e+=e))1&A&&(g+=e);return g},Di=Math.ceil,Oi=function(t){return function(e,g,A){var i,I,C=String(p(e)),n=C.length,o=void 0===A?" ":String(A),r=ot(g);return r<=n||""==o?C:(i=r-n,(I=ki.call(o,Di(i/o.length))).length>i&&(I=I.slice(0,i)),t?C+I:I+C)}},Ni={start:Oi(!1),end:Oi(!0)}.start,Mi=Math.abs,Ei=Date.prototype,Ti=Ei.getTime,Zi=Ei.toISOString,Ri=o((function(){return"0385-07-25T07:06:39.999Z"!=Zi.call(new Date(-5e13-1))}))||!o((function(){Zi.call(new Date(NaN))}))?function(){if(!isFinite(Ti.call(this)))throw RangeError("Invalid time value");var t=this.getUTCFullYear(),e=this.getUTCMilliseconds(),g=t<0?"-":t>9999?"+":"";return g+Ni(Mi(t),g?6:4,0)+"-"+Ni(this.getUTCMonth()+1,2,0)+"-"+Ni(this.getUTCDate(),2,0)+"T"+Ni(this.getUTCHours(),2,0)+":"+Ni(this.getUTCMinutes(),2,0)+":"+Ni(this.getUTCSeconds(),2,0)+"."+Ni(e,3,0)+"Z"}:Zi;Et({target:"Date",proto:!0,forced:Date.prototype.toISOString!==Ri},{toISOString:Ri});var Si=o((function(){return null!==new Date(NaN).toJSON()||1!==Date.prototype.toJSON.call({toISOString:function(){return 1}})}));Et({target:"Date",proto:!0,forced:Si},{toJSON:function(t){var e=Yt(this),g=y(e);return"number"!=typeof g||isFinite(g)?e.toISOString():null}});var Gi=Date.prototype,Bi=Gi.toString,Fi=Gi.getTime;new Date(NaN)+""!="Invalid Date"&&tt(Gi,"toString",(function(){var t=Fi.call(this);return t==t?Bi.call(this):"Invalid Date"}));var Yi=Z.f,Li=Function.prototype,Wi=Li.toString,_i=/^\s*function ([^ (]*)/;!r||"name"in Li||Yi(Li,"name",{configurable:!0,get:function(){try{return Wi.call(this).match(_i)[1]}catch(t){return""}}});var Qi=function(t,e,g){var A,i;return zt&&"function"==typeof(A=e.constructor)&&A!==g&&m(i=A.prototype)&&i!==g.prototype&&zt(t,i),t},zi="\t\n\v\f\r                 \u2028\u2029\ufeff",Pi="["+zi+"]",ji=RegExp("^"+Pi+Pi+"*"),Vi=RegExp(Pi+Pi+"*$"),Ui=function(t){return function(e){var g=String(p(e));return 1&t&&(g=g.replace(ji,"")),2&t&&(g=g.replace(Vi,"")),g}},Xi={start:Ui(1),end:Ui(2),trim:Ui(3)},Hi=pt.f,Ji=M.f,Ki=Z.f,qi=Xi.trim,$i=n.Number,tI=$i.prototype,eI="Number"==c(Eg(tI)),gI=function(t){var e,g,A,i,I,C,n,o,r=y(t,!1);if("string"==typeof r&&r.length>2)if(43===(e=(r=qi(r)).charCodeAt(0))||45===e){if(88===(g=r.charCodeAt(2))||120===g)return NaN}else if(48===e){switch(r.charCodeAt(1)){case 66:case 98:A=2,i=49;break;case 79:case 111:A=8,i=55;break;default:return+r}for(C=(I=r.slice(2)).length,n=0;n<C;n++)if((o=I.charCodeAt(n))<48||o>i)return NaN;return parseInt(I,A)}return+r};if(Nt("Number",!$i(" 0o1")||!$i("0b1")||$i("+0x1"))){for(var AI,iI=function(t){var e=arguments.length<1?0:t,g=this;return g instanceof iI&&(eI?o((function(){tI.valueOf.call(g)})):"Number"!=c(g))?Qi(new $i(gI(e)),g,iI):gI(e)},II=r?Hi($i):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),CI=0;II.length>CI;CI++)w($i,AI=II[CI])&&!w(iI,AI)&&Ki(iI,AI,Ji($i,AI));iI.prototype=tI,tI.constructor=iI,tt(n,"Number",iI)}var nI=1..toFixed,oI=Math.floor,rI=function(t,e,g){return 0===e?g:e%2==1?rI(t,e-1,g*t):rI(t*t,e/2,g)},sI=nI&&("0.000"!==8e-5.toFixed(3)||"1"!==.9.toFixed(0)||"1.25"!==1.255.toFixed(2)||"1000000000000000128"!==(0xde0b6b3a7640080).toFixed(0))||!o((function(){nI.call({})}));Et({target:"Number",proto:!0,forced:sI},{toFixed:function(t){var e,g,A,i,I=function(t){if("number"!=typeof t&&"Number"!=c(t))throw TypeError("Incorrect invocation");return+t}(this),C=Ct(t),n=[0,0,0,0,0,0],o="",r="0",s=function(t,e){for(var g=-1,A=e;++g<6;)A+=t*n[g],n[g]=A%1e7,A=oI(A/1e7)},a=function(t){for(var e=6,g=0;--e>=0;)g+=n[e],n[e]=oI(g/t),g=g%t*1e7},d=function(){for(var t=6,e="";--t>=0;)if(""!==e||0===t||0!==n[t]){var g=String(n[t]);e=""===e?g:e+ki.call("0",7-g.length)+g}return e};if(C<0||C>20)throw RangeError("Incorrect fraction digits");if(I!=I)return"NaN";if(I<=-1e21||I>=1e21)return String(I);if(I<0&&(o="-",I=-I),I>1e-21)if(g=(e=function(t){for(var e=0,g=t;g>=4096;)e+=12,g/=4096;for(;g>=2;)e+=1,g/=2;return e}(I*rI(2,69,1))-69)<0?I*rI(2,-e,1):I/rI(2,e,1),g*=4503599627370496,(e=52-e)>0){for(s(0,g),A=C;A>=7;)s(1e7,0),A-=7;for(s(rI(10,A,1),0),A=e-1;A>=23;)a(1<<23),A-=23;a(1<<A),s(1,1),a(2),r=d()}else s(0,g),s(1<<-e,0),r=d()+ki.call("0",C);return r=C>0?o+((i=r.length)<=C?"0."+ki.call("0",C-i)+r:r.slice(0,i-C)+"."+r.slice(i-C)):o+r}});var aI=Object.assign,dI=!aI||o((function(){var t={},e={},g=Symbol();return t[g]=7,"abcdefghijklmnopqrst".split("").forEach((function(t){e[t]=t})),7!=aI({},t)[g]||"abcdefghijklmnopqrst"!=xg(aI({},e)).join("")}))?function(t,e){for(var g=Yt(t),A=arguments.length,i=1,I=vt.f,C=d.f;A>i;)for(var n,o=f(arguments[i++]),s=I?xg(o).concat(I(o)):xg(o),a=s.length,h=0;a>h;)n=s[h++],r&&!C.call(o,n)||(g[n]=o[n]);return g}:aI;Et({target:"Object",stat:!0,forced:Object.assign!==dI},{assign:dI}),Et({target:"Object",stat:!0,forced:!r,sham:!r},{defineProperties:kg}),Et({target:"Object",stat:!0,forced:!r,sham:!r},{defineProperty:Z.f});var hI=!o((function(){return Object.isExtensible(Object.preventExtensions({}))})),lI=e((function(t){var e=Z.f,g=Q("meta"),A=0,i=Object.isExtensible||function(){return!0},I=function(t){e(t,g,{value:{objectID:"O"+ ++A,weakData:{}}})},C=t.exports={REQUIRED:!1,fastKey:function(t,e){if(!m(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!w(t,g)){if(!i(t))return"F";if(!e)return"E";I(t)}return t[g].objectID},getWeakData:function(t,e){if(!w(t,g)){if(!i(t))return!0;if(!e)return!1;I(t)}return t[g].weakData},onFreeze:function(t){return hI&&C.REQUIRED&&i(t)&&!w(t,g)&&I(t),t}};j[g]=!0})),cI=(lI.REQUIRED,lI.fastKey,lI.getWeakData,lI.onFreeze,lI.onFreeze),uI=Object.freeze,fI=o((function(){uI(1)}));Et({target:"Object",stat:!0,forced:fI,sham:!hI},{freeze:function(t){return uI&&m(t)?uI(cI(t)):t}});var pI=M.f,vI=o((function(){pI(1)}));Et({target:"Object",stat:!0,forced:!r||vI,sham:!r},{getOwnPropertyDescriptor:function(t,e){return pI(v(t),e)}}),Et({target:"Object",stat:!0,sham:!r},{getOwnPropertyDescriptors:function(t){for(var e,g,A=v(t),i=M.f,I=mt(A),C={},n=0;I.length>n;)void 0!==(g=i(A,e=I[n++]))&&og(C,e,g);return C}});var mI=Sg.f,yI=o((function(){return!Object.getOwnPropertyNames(1)}));Et({target:"Object",stat:!0,forced:yI},{getOwnPropertyNames:mI});var bI=o((function(){Qt(1)}));Et({target:"Object",stat:!0,forced:bI,sham:!Lt},{getPrototypeOf:function(t){return Qt(Yt(t))}});var wI=Object.isExtensible,xI=o((function(){wI(1)}));Et({target:"Object",stat:!0,forced:xI},{isExtensible:function(t){return!!m(t)&&(!wI||wI(t))}});var kI=Object.isFrozen,DI=o((function(){kI(1)}));Et({target:"Object",stat:!0,forced:DI},{isFrozen:function(t){return!m(t)||!!kI&&kI(t)}});var OI=o((function(){xg(1)}));Et({target:"Object",stat:!0,forced:OI},{keys:function(t){return xg(Yt(t))}});var NI=lI.onFreeze,MI=Object.preventExtensions,EI=o((function(){MI(1)}));Et({target:"Object",stat:!0,forced:EI,sham:!hI},{preventExtensions:function(t){return MI&&m(t)?MI(NI(t)):t}}),Et({target:"Object",stat:!0},{setPrototypeOf:zt});var TI=d.f,ZI=function(t){return function(e){for(var g,A=v(e),i=xg(A),I=i.length,C=0,n=[];I>C;)g=i[C++],r&&!TI.call(A,g)||n.push(t?[g,A[g]]:A[g]);return n}},RI={entries:ZI(!0),values:ZI(!1)}.values;Et({target:"Object",stat:!0},{values:function(t){return RI(t)}});var SI=Xi.trim,GI=n.parseFloat,BI=1/GI(zi+"-0")!=-1/0?function(t){var e=SI(String(t)),g=GI(e);return 0===g&&"-"==e.charAt(0)?-0:g}:GI;Et({global:!0,forced:parseFloat!=BI},{parseFloat:BI});var FI=Xi.trim,YI=n.parseInt,LI=/^[+-]?0[Xx]/,WI=8!==YI(zi+"08")||22!==YI(zi+"0x16")?function(t,e){var g=FI(String(t));return YI(g,e>>>0||(LI.test(g)?16:10))}:YI;Et({global:!0,forced:parseInt!=WI},{parseInt:WI});var _I=St("match"),QI=function(t){var e;return m(t)&&(void 0!==(e=t[_I])?!!e:"RegExp"==c(t))},zI=function(){var t=E(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e},PI=St("species"),jI=function(t){var e=At(t),g=Z.f;r&&e&&!e[PI]&&g(e,PI,{configurable:!0,get:function(){return this}})},VI=Z.f,UI=pt.f,XI=St("match"),HI=n.RegExp,JI=HI.prototype,KI=/a/g,qI=/a/g,$I=new HI(KI)!==KI;if(r&&Nt("RegExp",!$I||o((function(){return qI[XI]=!1,HI(KI)!=KI||HI(qI)==qI||"/a/i"!=HI(KI,"i")})))){for(var tC=function(t,e){var g=this instanceof tC,A=QI(t),i=void 0===e;return!g&&A&&t.constructor===tC&&i?t:Qi($I?new HI(A&&!i?t.source:t,e):HI((A=t instanceof tC)?t.source:t,A&&i?zI.call(t):e),g?this:JI,tC)},eC=function(t){t in tC||VI(tC,t,{configurable:!0,get:function(){return HI[t]},set:function(e){HI[t]=e}})},gC=UI(HI),AC=0;gC.length>AC;)eC(gC[AC++]);JI.constructor=tC,tC.prototype=JI,tt(n,"RegExp",tC)}jI("RegExp");var iC=RegExp.prototype.exec,IC=String.prototype.replace,CC=iC,nC=function(){var t=/a/,e=/b*/g;return iC.call(t,"a"),iC.call(e,"a"),0!==t.lastIndex||0!==e.lastIndex}(),oC=void 0!==/()??/.exec("")[1];(nC||oC)&&(CC=function(t){var e,g,A,i,I=this;return oC&&(g=new RegExp("^"+I.source+"$(?!\\s)",zI.call(I))),nC&&(e=I.lastIndex),A=iC.call(I,t),nC&&A&&(I.lastIndex=I.global?A.index+A[0].length:e),oC&&A&&A.length>1&&IC.call(A[0],g,(function(){for(i=1;i<arguments.length-2;i++)void 0===arguments[i]&&(A[i]=void 0)})),A});var rC=CC;Et({target:"RegExp",proto:!0,forced:/./.exec!==rC},{exec:rC}),r&&"g"!=/./g.flags&&Z.f(RegExp.prototype,"flags",{configurable:!0,get:zI});var sC=RegExp.prototype,aC=sC.toString,dC=o((function(){return"/a/b"!=aC.call({source:"a",flags:"b"})})),hC="toString"!=aC.name;(dC||hC)&&tt(RegExp.prototype,"toString",(function(){var t=E(this),e=String(t.source),g=t.flags;return"/"+e+"/"+String(void 0===g&&t instanceof RegExp&&!("flags"in sC)?zI.call(t):g)}),{unsafe:!0});var lC=function(t){return function(e,g){var A,i,I=String(p(e)),C=Ct(g),n=I.length;return C<0||C>=n?t?"":void 0:(A=I.charCodeAt(C))<55296||A>56319||C+1===n||(i=I.charCodeAt(C+1))<56320||i>57343?t?I.charAt(C):A:t?I.slice(C,C+2):i-56320+(A-55296<<10)+65536}},cC={codeAt:lC(!1),charAt:lC(!0)},uC=cC.charAt,fC=$.set,pC=$.getterFor("String Iterator");ai(String,"String",(function(t){fC(this,{type:"String Iterator",string:String(t),index:0})}),(function(){var t,e=pC(this),g=e.string,A=e.index;return A>=g.length?{value:void 0,done:!0}:(t=uC(g,A),e.index+=t.length,{value:t,done:!1})}));var vC=St("species"),mC=!o((function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")})),yC=!o((function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var g="ab".split(t);return 2!==g.length||"a"!==g[0]||"b"!==g[1]})),bC=function(t,e,g,A){var i=St(t),I=!o((function(){var e={};return e[i]=function(){return 7},7!=""[t](e)})),C=I&&!o((function(){var e=!1,g=/a/;return"split"===t&&((g={}).constructor={},g.constructor[vC]=function(){return g},g.flags="",g[i]=/./[i]),g.exec=function(){return e=!0,null},g[i](""),!e}));if(!I||!C||"replace"===t&&!mC||"split"===t&&!yC){var n=/./[i],r=g(i,""[t],(function(t,e,g,A,i){return e.exec===rC?I&&!i?{done:!0,value:n.call(e,g,A)}:{done:!0,value:t.call(g,e,A)}:{done:!1}})),s=r[0],a=r[1];tt(String.prototype,t,s),tt(RegExp.prototype,i,2==e?function(t,e){return a.call(t,this,e)}:function(t){return a.call(t,this)}),A&&R(RegExp.prototype[i],"sham",!0)}},wC=cC.charAt,xC=function(t,e,g){return e+(g?wC(t,e).length:1)},kC=function(t,e){var g=t.exec;if("function"==typeof g){var A=g.call(t,e);if("object"!=typeof A)throw TypeError("RegExp exec method returned something other than an Object or null");return A}if("RegExp"!==c(t))throw TypeError("RegExp#exec called on incompatible receiver");return rC.call(t,e)};bC("match",1,(function(t,e,g){return[function(e){var g=p(this),A=null==e?void 0:e[t];return void 0!==A?A.call(e,g):new RegExp(e)[t](String(g))},function(t){var A=g(e,t,this);if(A.done)return A.value;var i=E(t),I=String(this);if(!i.global)return kC(i,I);var C=i.unicode;i.lastIndex=0;for(var n,o=[],r=0;null!==(n=kC(i,I));){var s=String(n[0]);o[r]=s,""===s&&(i.lastIndex=xC(I,ot(i.lastIndex),C)),r++}return 0===r?null:o}]}));var DC=Math.max,OC=Math.min,NC=Math.floor,MC=/\$([$&'`]|\d\d?|<[^>]*>)/g,EC=/\$([$&'`]|\d\d?)/g;bC("replace",2,(function(t,e,g){return[function(g,A){var i=p(this),I=null==g?void 0:g[t];return void 0!==I?I.call(g,i,A):e.call(String(i),g,A)},function(t,i){var I=g(e,t,this,i);if(I.done)return I.value;var C=E(t),n=String(this),o="function"==typeof i;o||(i=String(i));var r=C.global;if(r){var s=C.unicode;C.lastIndex=0}for(var a=[];;){var d=kC(C,n);if(null===d)break;if(a.push(d),!r)break;""===String(d[0])&&(C.lastIndex=xC(n,ot(C.lastIndex),s))}for(var h,l="",c=0,u=0;u<a.length;u++){d=a[u];for(var f=String(d[0]),p=DC(OC(Ct(d.index),n.length),0),v=[],m=1;m<d.length;m++)v.push(void 0===(h=d[m])?h:String(h));var y=d.groups;if(o){var b=[f].concat(v,p,n);void 0!==y&&b.push(y);var w=String(i.apply(void 0,b))}else w=A(f,n,p,v,y,i);p>=c&&(l+=n.slice(c,p)+w,c=p+f.length)}return l+n.slice(c)}];function A(t,g,A,i,I,C){var n=A+t.length,o=i.length,r=EC;return void 0!==I&&(I=Yt(I),r=MC),e.call(C,r,(function(e,C){var r;switch(C.charAt(0)){case"$":return"$";case"&":return t;case"`":return g.slice(0,A);case"'":return g.slice(n);case"<":r=I[C.slice(1,-1)];break;default:var s=+C;if(0===s)return e;if(s>o){var a=NC(s/10);return 0===a?e:a<=o?void 0===i[a-1]?C.charAt(1):i[a-1]+C.charAt(1):e}r=i[s-1]}return void 0===r?"":r}))}}));var TC=[].push,ZC=Math.min,RC=!o((function(){return!RegExp(4294967295,"y")}));bC("split",2,(function(t,e,g){var A;return A="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,g){var A=String(p(this)),i=void 0===g?4294967295:g>>>0;if(0===i)return[];if(void 0===t)return[A];if(!QI(t))return e.call(A,t,i);for(var I,C,n,o=[],r=(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.unicode?"u":"")+(t.sticky?"y":""),s=0,a=new RegExp(t.source,r+"g");(I=rC.call(a,A))&&!((C=a.lastIndex)>s&&(o.push(A.slice(s,I.index)),I.length>1&&I.index<A.length&&TC.apply(o,I.slice(1)),n=I[0].length,s=C,o.length>=i));)a.lastIndex===I.index&&a.lastIndex++;return s===A.length?!n&&a.test("")||o.push(""):o.push(A.slice(s)),o.length>i?o.slice(0,i):o}:"0".split(void 0,0).length?function(t,g){return void 0===t&&0===g?[]:e.call(this,t,g)}:e,[function(e,g){var i=p(this),I=null==e?void 0:e[t];return void 0!==I?I.call(e,i,g):A.call(String(i),e,g)},function(t,i){var I=g(A,t,this,i,A!==e);if(I.done)return I.value;var C=E(t),n=String(this),o=Ke(C,RegExp),r=C.unicode,s=(C.ignoreCase?"i":"")+(C.multiline?"m":"")+(C.unicode?"u":"")+(RC?"y":"g"),a=new o(RC?C:"^(?:"+C.source+")",s),d=void 0===i?4294967295:i>>>0;if(0===d)return[];if(0===n.length)return null===kC(a,n)?[n]:[];for(var h=0,l=0,c=[];l<n.length;){a.lastIndex=RC?l:0;var u,f=kC(a,RC?n:n.slice(l));if(null===f||(u=ZC(ot(a.lastIndex+(RC?0:l)),n.length))===h)l=xC(n,l,r);else{if(c.push(n.slice(h,l)),c.length===d)return c;for(var p=1;p<=f.length-1;p++)if(c.push(f[p]),c.length===d)return c;l=h=u}}return c.push(n.slice(h)),c}]}),!RC);var SC=Xi.trim;Et({target:"String",proto:!0,forced:function(t){return o((function(){return!!zi[t]()||"​…᠎"!="​…᠎"[t]()||zi[t].name!==t}))}("trim")},{trim:function(){return SC(this)}});var GC=oe.NATIVE_ARRAY_BUFFER_VIEWS,BC=n.ArrayBuffer,FC=n.Int8Array,YC=!GC||!o((function(){FC(1)}))||!o((function(){new FC(-1)}))||!PA((function(t){new FC,new FC(null),new FC(1.5),new FC(t)}),!0)||o((function(){return 1!==new FC(new BC(2),1,void 0).length})),LC=function(t,e){var g=function(t){var e=Ct(t);if(e<0)throw RangeError("The argument can't be less than 0");return e}(t);if(g%e)throw RangeError("Wrong offset");return g},WC=oe.aTypedArrayConstructor,_C=function(t){var e,g,A,i,I,C,n=Yt(t),o=arguments.length,r=o>1?arguments[1]:void 0,s=void 0!==r,a=LA(n);if(null!=a&&!FA(a))for(C=(I=a.call(n)).next,n=[];!(i=C.call(I)).done;)n.push(i.value);for(s&&o>2&&(r=Yg(r,arguments[2],2)),g=ot(n.length),A=new(WC(this))(g),e=0;g>e;e++)A[e]=s?r(n[e],e):n[e];return A};e((function(t){var e=pt.f,g=_g.forEach,A=$.get,i=$.set,I=Z.f,C=M.f,o=Math.round,s=n.RangeError,a=Xe.ArrayBuffer,d=Xe.DataView,l=oe.NATIVE_ARRAY_BUFFER_VIEWS,c=oe.TYPED_ARRAY_TAG,u=oe.TypedArray,f=oe.TypedArrayPrototype,p=oe.aTypedArrayConstructor,v=oe.isTypedArray,b=function(t,e){for(var g=0,A=e.length,i=new(p(t))(A);A>g;)i[g]=e[g++];return i},x=function(t,e){I(t,e,{get:function(){return A(this)[e]}})},k=function(t){var e;return t instanceof a||"ArrayBuffer"==(e=Ft(t))||"SharedArrayBuffer"==e},D=function(t,e){return v(t)&&"symbol"!=typeof e&&e in t&&String(+e)==String(e)},O=function(t,e){return D(t,e=y(e,!0))?h(2,t[e]):C(t,e)},N=function(t,e,g){return!(D(t,e=y(e,!0))&&m(g)&&w(g,"value"))||w(g,"get")||w(g,"set")||g.configurable||w(g,"writable")&&!g.writable||w(g,"enumerable")&&!g.enumerable?I(t,e,g):(t[e]=g.value,t)};r?(l||(M.f=O,Z.f=N,x(f,"buffer"),x(f,"byteOffset"),x(f,"byteLength"),x(f,"length")),Et({target:"Object",stat:!0,forced:!l},{getOwnPropertyDescriptor:O,defineProperty:N}),t.exports=function(t,C,r,h){var p=t+(h?"Clamped":"")+"Array",y="get"+t,w="set"+t,x=n[p],D=x,O=D&&D.prototype,N={},M=function(t,e){I(t,e,{get:function(){return function(t,e){var g=A(t);return g.view[y](e*C+g.byteOffset,!0)}(this,e)},set:function(t){return function(t,e,g){var i=A(t);h&&(g=(g=o(g))<0?0:g>255?255:255&g),i.view[w](e*C+i.byteOffset,g,!0)}(this,e,t)},enumerable:!0})};l?YC&&(D=r((function(t,e,g,A){return se(t,D,p),m(e)?k(e)?void 0!==A?new x(e,LC(g,C),A):void 0!==g?new x(e,LC(g,C)):new x(e):v(e)?b(D,e):_C.call(D,e):new x(ae(e))})),zt&&zt(D,u),g(e(x),(function(t){t in D||R(D,t,x[t])})),D.prototype=O):(D=r((function(t,e,g,A){se(t,D,p);var I,n,o,r=0,h=0;if(m(e)){if(!k(e))return v(e)?b(D,e):_C.call(D,e);I=e,h=LC(g,C);var l=e.byteLength;if(void 0===A){if(l%C)throw s("Wrong length");if((n=l-h)<0)throw s("Wrong length")}else if((n=ot(A)*C)+h>l)throw s("Wrong length");o=n/C}else o=ae(e),I=new a(n=o*C);for(i(t,{buffer:I,byteOffset:h,byteLength:n,length:o,view:new d(I)});r<o;)M(t,r++)})),zt&&zt(D,u),O=D.prototype=Eg(f)),O.constructor!==D&&R(O,"constructor",D),c&&R(O,c,p),N[p]=D,Et({global:!0,forced:D!=x,sham:!l},N),"BYTES_PER_ELEMENT"in D||R(D,"BYTES_PER_ELEMENT",C),"BYTES_PER_ELEMENT"in O||R(O,"BYTES_PER_ELEMENT",C),jI(p)}):t.exports=function(){}}))("Uint8",1,(function(t){return function(e,g,A){return t(this,e,g,A)}}));var QC=Math.min,zC=[].copyWithin||function(t,e){var g=Yt(this),A=ot(g.length),i=at(t,A),I=at(e,A),C=arguments.length>2?arguments[2]:void 0,n=QC((void 0===C?A:at(C,A))-I,A-i),o=1;for(I<i&&i<I+n&&(o=-1,I+=n-1,i+=n-1);n-- >0;)I in g?g[i]=g[I]:delete g[i],i+=o,I+=o;return g},PC=oe.aTypedArray;oe.exportProto("copyWithin",(function(t,e){return zC.call(PC(this),t,e,arguments.length>2?arguments[2]:void 0)}));var jC=_g.every,VC=oe.aTypedArray;oe.exportProto("every",(function(t){return