UNPKG

vis-network

Version:

A dynamic, browser-based visualization library.

26 lines 617 kB
/** * vis-network - network * http://visjs.org/ * * A dynamic, browser-based visualization library. * * @version 6.3.1 * @date 2019-10-29T23:07:20Z * * @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. */ !function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e((t=t||self).vis=t.vis||{})}(this,(function(t){"use strict";var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function i(){throw new Error("Dynamic requires are not currently supported by rollup-plugin-commonjs")}function n(t,e){return t(e={exports:{}},e.exports),e.exports}var o,r,s,a=function(t){return t&&t.Math==Math&&t},h=a("object"==typeof globalThis&&globalThis)||a("object"==typeof window&&window)||a("object"==typeof self&&self)||a("object"==typeof e&&e)||Function("return this")(),d=function(t){try{return!!t()}catch(t){return!0}},l=!d((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})),u={}.propertyIsEnumerable,c=Object.getOwnPropertyDescriptor,f={f:c&&!u.call({1:2},1)?function(t){var e=c(this,t);return!!e&&e.enumerable}:u},p=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},v={}.toString,g=function(t){return v.call(t).slice(8,-1)},y="".split,m=d((function(){return!Object("z").propertyIsEnumerable(0)}))?function(t){return"String"==g(t)?y.call(t,""):Object(t)}:Object,b=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t},_=function(t){return m(b(t))},w=function(t){return"object"==typeof t?null!==t:"function"==typeof t},k=function(t,e){if(!w(t))return t;var i,n;if(e&&"function"==typeof(i=t.toString)&&!w(n=i.call(t)))return n;if("function"==typeof(i=t.valueOf)&&!w(n=i.call(t)))return n;if(!e&&"function"==typeof(i=t.toString)&&!w(n=i.call(t)))return n;throw TypeError("Can't convert object to primitive value")},x={}.hasOwnProperty,S=function(t,e){return x.call(t,e)},O=h.document,D=w(O)&&w(O.createElement),M=function(t){return D?O.createElement(t):{}},E=!l&&!d((function(){return 7!=Object.defineProperty(M("div"),"a",{get:function(){return 7}}).a})),T=Object.getOwnPropertyDescriptor,C={f:l?T:function(t,e){if(t=_(t),e=k(e,!0),E)try{return T(t,e)}catch(t){}if(S(t,e))return p(!f.f.call(t,e),t[e])}},P=function(t){if(!w(t))throw TypeError(String(t)+" is not an object");return t},I=Object.defineProperty,N={f:l?I:function(t,e,i){if(P(t),e=k(e,!0),P(i),E)try{return I(t,e,i)}catch(t){}if("get"in i||"set"in i)throw TypeError("Accessors not supported");return"value"in i&&(t[e]=i.value),t}},F=l?function(t,e,i){return N.f(t,e,p(1,i))}:function(t,e,i){return t[e]=i,t},A=function(t,e){try{F(h,t,e)}catch(i){h[t]=e}return e},R=h["__core-js_shared__"]||A("__core-js_shared__",{}),Y=n((function(t){(t.exports=function(t,e){return R[t]||(R[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.3.4",mode:"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})})),j=Y("native-function-to-string",Function.toString),z=h.WeakMap,L="function"==typeof z&&/native code/.test(j.call(z)),B=0,H=Math.random(),W=function(t){return"Symbol("+String(void 0===t?"":t)+")_"+(++B+H).toString(36)},V=Y("keys"),U=function(t){return V[t]||(V[t]=W(t))},G={},q=h.WeakMap;if(L){var Z=new q,X=Z.get,$=Z.has,K=Z.set;o=function(t,e){return K.call(Z,t,e),e},r=function(t){return X.call(Z,t)||{}},s=function(t){return $.call(Z,t)}}else{var J=U("state");G[J]=!0,o=function(t,e){return F(t,J,e),e},r=function(t){return S(t,J)?t[J]:{}},s=function(t){return S(t,J)}}var Q,tt={set:o,get:r,has:s,enforce:function(t){return s(t)?r(t):o(t,{})},getterFor:function(t){return function(e){var i;if(!w(e)||(i=r(e)).type!==t)throw TypeError("Incompatible receiver, "+t+" required");return i}}},et=n((function(t){var e=tt.get,i=tt.enforce,n=String(j).split("toString");Y("inspectSource",(function(t){return j.call(t)})),(t.exports=function(t,e,o,r){var s=!!r&&!!r.unsafe,a=!!r&&!!r.enumerable,d=!!r&&!!r.noTargetGet;"function"==typeof o&&("string"!=typeof e||S(o,"name")||F(o,"name",e),i(o).source=n.join("string"==typeof e?e:"")),t!==h?(s?!d&&t[e]&&(a=!0):delete t[e],a?t[e]=o:F(t,e,o)):a?t[e]=o:A(e,o)})(Function.prototype,"toString",(function(){return"function"==typeof this&&e(this).source||j.call(this)}))})),it=h,nt=function(t){return"function"==typeof t?t:void 0},ot=function(t,e){return arguments.length<2?nt(it[t])||nt(h[t]):it[t]&&it[t][e]||h[t]&&h[t][e]},rt=Math.ceil,st=Math.floor,at=function(t){return isNaN(t=+t)?0:(t>0?st:rt)(t)},ht=Math.min,dt=function(t){return t>0?ht(at(t),9007199254740991):0},lt=Math.max,ut=Math.min,ct=function(t,e){var i=at(t);return i<0?lt(i+e,0):ut(i,e)},ft=function(t){return function(e,i,n){var o,r=_(e),s=dt(r.length),a=ct(n,s);if(t&&i!=i){for(;s>a;)if((o=r[a++])!=o)return!0}else for(;s>a;a++)if((t||a in r)&&r[a]===i)return t||a||0;return!t&&-1}},pt={includes:ft(!0),indexOf:ft(!1)},vt=pt.indexOf,gt=function(t,e){var i,n=_(t),o=0,r=[];for(i in n)!S(G,i)&&S(n,i)&&r.push(i);for(;e.length>o;)S(n,i=e[o++])&&(~vt(r,i)||r.push(i));return r},yt=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],mt=yt.concat("length","prototype"),bt={f:Object.getOwnPropertyNames||function(t){return gt(t,mt)}},_t={f:Object.getOwnPropertySymbols},wt=ot("Reflect","ownKeys")||function(t){var e=bt.f(P(t)),i=_t.f;return i?e.concat(i(t)):e},kt=function(t,e){for(var i=wt(e),n=N.f,o=C.f,r=0;r<i.length;r++){var s=i[r];S(t,s)||n(t,s,o(e,s))}},xt=/#|\.prototype\./,St=function(t,e){var i=Dt[Ot(t)];return i==Et||i!=Mt&&("function"==typeof e?d(e):!!e)},Ot=St.normalize=function(t){return String(t).replace(xt,".").toLowerCase()},Dt=St.data={},Mt=St.NATIVE="N",Et=St.POLYFILL="P",Tt=St,Ct=C.f,Pt=function(t,e){var i,n,o,r,s,a=t.target,d=t.global,l=t.stat;if(i=d?h:l?h[a]||A(a,{}):(h[a]||{}).prototype)for(n in e){if(r=e[n],o=t.noTargetGet?(s=Ct(i,n))&&s.value:i[n],!Tt(d?n:a+(l?".":"#")+n,t.forced)&&void 0!==o){if(typeof r==typeof o)continue;kt(r,o)}(t.sham||o&&o.sham)&&F(r,"sham",!0),et(i,n,r,t)}},It=!!Object.getOwnPropertySymbols&&!d((function(){return!String(Symbol())})),Nt=h.Symbol,Ft=Y("wks"),At=function(t){return Ft[t]||(Ft[t]=It&&Nt[t]||(It?Nt:W)("Symbol."+t))},Rt=At("toStringTag"),Yt="Arguments"==g(function(){return arguments}()),jt=function(t){var e,i,n;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(i=function(t,e){try{return t[e]}catch(t){}}(e=Object(t),Rt))?i:Yt?g(e):"Object"==(n=g(e))&&"function"==typeof e.callee?"Arguments":n},zt=function(t){return Object(b(t))},Lt=!d((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype})),Bt=U("IE_PROTO"),Ht=Object.prototype,Wt=Lt?Object.getPrototypeOf:function(t){return t=zt(t),S(t,Bt)?t[Bt]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?Ht:null},Vt=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,i={};try{(t=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(i,[]),e=i instanceof Array}catch(t){}return function(i,n){return P(i),function(t){if(!w(t)&&null!==t)throw TypeError("Can't set "+String(t)+" as a prototype")}(n),e?t.call(i,n):i.__proto__=n,i}}():void 0),Ut=N.f,Gt=h.DataView,qt=Gt&&Gt.prototype,Zt=h.Int8Array,Xt=Zt&&Zt.prototype,$t=h.Uint8ClampedArray,Kt=$t&&$t.prototype,Jt=Zt&&Wt(Zt),Qt=Xt&&Wt(Xt),te=Object.prototype,ee=te.isPrototypeOf,ie=At("toStringTag"),ne=W("TYPED_ARRAY_TAG"),oe=!(!h.ArrayBuffer||!Gt),re=oe&&!!Vt&&"Opera"!==jt(h.opera),se=!1,ae={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},he=function(t){return w(t)&&S(ae,jt(t))};for(Q in ae)h[Q]||(re=!1);if((!re||"function"!=typeof Jt||Jt===Function.prototype)&&(Jt=function(){throw TypeError("Incorrect invocation")},re))for(Q in ae)h[Q]&&Vt(h[Q],Jt);if((!re||!Qt||Qt===te)&&(Qt=Jt.prototype,re))for(Q in ae)h[Q]&&Vt(h[Q].prototype,Qt);if(re&&Wt(Kt)!==Qt&&Vt(Kt,Qt),l&&!S(Qt,ie))for(Q in se=!0,Ut(Qt,ie,{get:function(){return w(this)?this[ne]:void 0}}),ae)h[Q]&&F(h[Q],ne,Q);oe&&Vt&&Wt(qt)!==te&&Vt(qt,te);var de={NATIVE_ARRAY_BUFFER:oe,NATIVE_ARRAY_BUFFER_VIEWS:re,TYPED_ARRAY_TAG:se&&ne,aTypedArray:function(t){if(he(t))return t;throw TypeError("Target is not a typed array")},aTypedArrayConstructor:function(t){if(Vt){if(ee.call(Jt,t))return t}else for(var e in ae)if(S(ae,Q)){var i=h[e];if(i&&(t===i||ee.call(i,t)))return t}throw TypeError("Target is not a typed array constructor")},exportProto:function(t,e,i){if(l){if(i)for(var n in ae){var o=h[n];o&&S(o.prototype,t)&&delete o.prototype[t]}Qt[t]&&!i||et(Qt,t,i?e:re&&Xt[t]||e)}},exportStatic:function(t,e,i){var n,o;if(l){if(Vt){if(i)for(n in ae)(o=h[n])&&S(o,t)&&delete o[t];if(Jt[t]&&!i)return;try{return et(Jt,t,i?e:re&&Zt[t]||e)}catch(t){}}for(n in ae)!(o=h[n])||o[t]&&!i||et(o,t,e)}},isView:function(t){var e=jt(t);return"DataView"===e||S(ae,e)},isTypedArray:he,TypedArray:Jt,TypedArrayPrototype:Qt},le=function(t,e,i){for(var n in e)et(t,n,e[n],i);return t},ue=function(t,e,i){if(!(t instanceof e))throw TypeError("Incorrect "+(i?i+" ":"")+"invocation");return t},ce=function(t){if(void 0===t)return 0;var e=at(t),i=dt(e);if(e!==i)throw RangeError("Wrong length or index");return i},fe=function(t){for(var e=zt(this),i=dt(e.length),n=arguments.length,o=ct(n>1?arguments[1]:void 0,i),r=n>2?arguments[2]:void 0,s=void 0===r?i:ct(r,i);s>o;)e[o++]=t;return e},pe=N.f,ve=At("toStringTag"),ge=function(t,e,i){t&&!S(t=i?t:t.prototype,ve)&&pe(t,ve,{configurable:!0,value:e})},ye=de.NATIVE_ARRAY_BUFFER,me=bt.f,be=N.f,_e=tt.get,we=tt.set,ke=h.ArrayBuffer,xe=ke,Se=h.DataView,Oe=h.Math,De=h.RangeError,Me=Oe.abs,Ee=Oe.pow,Te=Oe.floor,Ce=Oe.log,Pe=Oe.LN2,Ie=function(t,e,i){var n,o,r,s=new Array(i),a=8*i-e-1,h=(1<<a)-1,d=h>>1,l=23===e?Ee(2,-24)-Ee(2,-77):0,u=t<0||0===t&&1/t<0?1:0,c=0;for((t=Me(t))!=t||t===1/0?(o=t!=t?1:0,n=h):(n=Te(Ce(t)/Pe),t*(r=Ee(2,-n))<1&&(n--,r*=2),(t+=n+d>=1?l/r:l*Ee(2,1-d))*r>=2&&(n++,r/=2),n+d>=h?(o=0,n=h):n+d>=1?(o=(t*r-1)*Ee(2,e),n+=d):(o=t*Ee(2,d-1)*Ee(2,e),n=0));e>=8;s[c++]=255&o,o/=256,e-=8);for(n=n<<e|o,a+=e;a>0;s[c++]=255&n,n/=256,a-=8);return s[--c]|=128*u,s},Ne=function(t,e){var i,n=t.length,o=8*n-e-1,r=(1<<o)-1,s=r>>1,a=o-7,h=n-1,d=t[h--],l=127&d;for(d>>=7;a>0;l=256*l+t[h],h--,a-=8);for(i=l&(1<<-a)-1,l>>=-a,a+=e;a>0;i=256*i+t[h],h--,a-=8);if(0===l)l=1-s;else{if(l===r)return i?NaN:d?-1/0:1/0;i+=Ee(2,e),l-=s}return(d?-1:1)*i*Ee(2,l-e)},Fe=function(t){return t[3]<<24|t[2]<<16|t[1]<<8|t[0]},Ae=function(t){return[255&t]},Re=function(t){return[255&t,t>>8&255]},Ye=function(t){return[255&t,t>>8&255,t>>16&255,t>>24&255]},je=function(t){return Ie(t,23,4)},ze=function(t){return Ie(t,52,8)},Le=function(t,e){be(t.prototype,e,{get:function(){return _e(this)[e]}})},Be=function(t,e,i,n){var o=ce(+i),r=_e(t);if(o+e>r.byteLength)throw De("Wrong index");var s=_e(r.buffer).bytes,a=o+r.byteOffset,h=s.slice(a,a+e);return n?h:h.reverse()},He=function(t,e,i,n,o,r){var s=ce(+i),a=_e(t);if(s+e>a.byteLength)throw De("Wrong index");for(var h=_e(a.buffer).bytes,d=s+a.byteOffset,l=n(+o),u=0;u<e;u++)h[d+u]=l[r?u:e-u-1]};if(ye){if(!d((function(){ke(1)}))||!d((function(){new ke(-1)}))||d((function(){return new ke,new ke(1.5),new ke(NaN),"ArrayBuffer"!=ke.name}))){for(var We,Ve=(xe=function(t){return ue(this,xe),new ke(ce(t))}).prototype=ke.prototype,Ue=me(ke),Ge=0;Ue.length>Ge;)(We=Ue[Ge++])in xe||F(xe,We,ke[We]);Ve.constructor=xe}var qe=new Se(new xe(2)),Ze=Se.prototype.setInt8;qe.setInt8(0,2147483648),qe.setInt8(1,2147483649),!qe.getInt8(0)&&qe.getInt8(1)||le(Se.prototype,{setInt8:function(t,e){Ze.call(this,t,e<<24>>24)},setUint8:function(t,e){Ze.call(this,t,e<<24>>24)}},{unsafe:!0})}else xe=function(t){ue(this,xe,"ArrayBuffer");var e=ce(t);we(this,{bytes:fe.call(new Array(e),0),byteLength:e}),l||(this.byteLength=e)},Se=function(t,e,i){ue(this,Se,"DataView"),ue(t,xe,"DataView");var n=_e(t).byteLength,o=at(e);if(o<0||o>n)throw De("Wrong offset");if(o+(i=void 0===i?n-o:dt(i))>n)throw De("Wrong length");we(this,{buffer:t,byteLength:i,byteOffset:o}),l||(this.buffer=t,this.byteLength=i,this.byteOffset=o)},l&&(Le(xe,"byteLength"),Le(Se,"buffer"),Le(Se,"byteLength"),Le(Se,"byteOffset")),le(Se.prototype,{getInt8:function(t){return Be(this,1,t)[0]<<24>>24},getUint8:function(t){return Be(this,1,t)[0]},getInt16:function(t){var e=Be(this,2,t,arguments.length>1?arguments[1]:void 0);return(e[1]<<8|e[0])<<16>>16},getUint16:function(t){var e=Be(this,2,t,arguments.length>1?arguments[1]:void 0);return e[1]<<8|e[0]},getInt32:function(t){return Fe(Be(this,4,t,arguments.length>1?arguments[1]:void 0))},getUint32:function(t){return Fe(Be(this,4,t,arguments.length>1?arguments[1]:void 0))>>>0},getFloat32:function(t){return Ne(Be(this,4,t,arguments.length>1?arguments[1]:void 0),23)},getFloat64:function(t){return Ne(Be(this,8,t,arguments.length>1?arguments[1]:void 0),52)},setInt8:function(t,e){He(this,1,t,Ae,e)},setUint8:function(t,e){He(this,1,t,Ae,e)},setInt16:function(t,e){He(this,2,t,Re,e,arguments.length>2?arguments[2]:void 0)},setUint16:function(t,e){He(this,2,t,Re,e,arguments.length>2?arguments[2]:void 0)},setInt32:function(t,e){He(this,4,t,Ye,e,arguments.length>2?arguments[2]:void 0)},setUint32:function(t,e){He(this,4,t,Ye,e,arguments.length>2?arguments[2]:void 0)},setFloat32:function(t,e){He(this,4,t,je,e,arguments.length>2?arguments[2]:void 0)},setFloat64:function(t,e){He(this,8,t,ze,e,arguments.length>2?arguments[2]:void 0)}});ge(xe,"ArrayBuffer"),ge(Se,"DataView");var Xe={ArrayBuffer:xe,DataView:Se},$e=function(t){if("function"!=typeof t)throw TypeError(String(t)+" is not a function");return t},Ke=At("species"),Je=function(t,e){var i,n=P(t).constructor;return void 0===n||null==(i=P(n)[Ke])?e:$e(i)},Qe=Xe.ArrayBuffer,ti=Xe.DataView,ei=Qe.prototype.slice,ii=d((function(){return!new Qe(2).slice(1,void 0).byteLength}));Pt({target:"ArrayBuffer",proto:!0,unsafe:!0,forced:ii},{slice:function(t,e){if(void 0!==ei&&void 0===e)return ei.call(P(this),t);for(var i=P(this).byteLength,n=ct(t,i),o=ct(void 0===e?i:e,i),r=new(Je(this,Qe))(dt(o-n)),s=new ti(this),a=new ti(r),h=0;n<o;)a.setUint8(h++,s.getUint8(n++));return r}}),Pt({global:!0,forced:!de.NATIVE_ARRAY_BUFFER},{DataView:Xe.DataView});var ni={};ni[At("toStringTag")]="z";var oi="[object z]"!==String(ni)?function(){return"[object "+jt(this)+"]"}:ni.toString,ri=Object.prototype;oi!==ri.toString&&et(ri,"toString",oi,{unsafe:!0}),"undefined"!=typeof CanvasRenderingContext2D&&(CanvasRenderingContext2D.prototype.circle=function(t,e,i){this.beginPath(),this.arc(t,e,i,0,2*Math.PI,!1),this.closePath()},CanvasRenderingContext2D.prototype.square=function(t,e,i){this.beginPath(),this.rect(t-i,e-i,2*i,2*i),this.closePath()},CanvasRenderingContext2D.prototype.triangle=function(t,e,i){this.beginPath(),e+=.275*(i*=1.15);var n=2*i,o=n/2,r=Math.sqrt(3)/6*n,s=Math.sqrt(n*n-o*o);this.moveTo(t,e-(s-r)),this.lineTo(t+o,e+r),this.lineTo(t-o,e+r),this.lineTo(t,e-(s-r)),this.closePath()},CanvasRenderingContext2D.prototype.triangleDown=function(t,e,i){this.beginPath(),e-=.275*(i*=1.15);var n=2*i,o=n/2,r=Math.sqrt(3)/6*n,s=Math.sqrt(n*n-o*o);this.moveTo(t,e+(s-r)),this.lineTo(t+o,e-r),this.lineTo(t-o,e-r),this.lineTo(t,e+(s-r)),this.closePath()},CanvasRenderingContext2D.prototype.star=function(t,e,i){this.beginPath(),e+=.1*(i*=.82);for(var n=0;n<10;n++){var o=n%2==0?1.3*i:.5*i;this.lineTo(t+o*Math.sin(2*n*Math.PI/10),e-o*Math.cos(2*n*Math.PI/10))}this.closePath()},CanvasRenderingContext2D.prototype.diamond=function(t,e,i){this.beginPath(),this.lineTo(t,e+i),this.lineTo(t+i,e),this.lineTo(t,e-i),this.lineTo(t-i,e),this.closePath()},CanvasRenderingContext2D.prototype.roundRect=function(t,e,i,n,o){var r=Math.PI/180;i-2*o<0&&(o=i/2),n-2*o<0&&(o=n/2),this.beginPath(),this.moveTo(t+o,e),this.lineTo(t+i-o,e),this.arc(t+i-o,e+o,o,270*r,360*r,!1),this.lineTo(t+i,e+n-o),this.arc(t+i-o,e+n-o,o,0,90*r,!1),this.lineTo(t+o,e+n),this.arc(t+o,e+n-o,o,90*r,180*r,!1),this.lineTo(t,e+o),this.arc(t+o,e+o,o,180*r,270*r,!1),this.closePath()},CanvasRenderingContext2D.prototype.ellipse_vis=function(t,e,i,n){var o=i/2*.5522848,r=n/2*.5522848,s=t+i,a=e+n,h=t+i/2,d=e+n/2;this.beginPath(),this.moveTo(t,d),this.bezierCurveTo(t,d-r,h-o,e,h,e),this.bezierCurveTo(h+o,e,s,d-r,s,d),this.bezierCurveTo(s,d+r,h+o,a,h,a),this.bezierCurveTo(h-o,a,t,d+r,t,d),this.closePath()},CanvasRenderingContext2D.prototype.database=function(t,e,i,n){var o=n*(1/3),r=i/2*.5522848,s=o/2*.5522848,a=t+i,h=e+o,d=t+i/2,l=e+o/2,u=e+(n-o/2),c=e+n;this.beginPath(),this.moveTo(a,l),this.bezierCurveTo(a,l+s,d+r,h,d,h),this.bezierCurveTo(d-r,h,t,l+s,t,l),this.bezierCurveTo(t,l-s,d-r,e,d,e),this.bezierCurveTo(d+r,e,a,l-s,a,l),this.lineTo(a,u),this.bezierCurveTo(a,u+s,d+r,c,d,c),this.bezierCurveTo(d-r,c,t,u+s,t,u),this.lineTo(t,l)},CanvasRenderingContext2D.prototype.dashedLine=function(t,e,i,n,o){this.beginPath(),this.moveTo(t,e);for(var r=o.length,s=i-t,a=n-e,h=a/s,d=Math.sqrt(s*s+a*a),l=0,u=!0,c=0,f=+o[0];d>=.1;)(f=+o[l++%r])>d&&(f=d),c=Math.sqrt(f*f/(1+h*h)),t+=c=s<0?-c:c,e+=h*c,!0===u?this.lineTo(t,e):this.moveTo(t,e),d-=f,u=!u},CanvasRenderingContext2D.prototype.hexagon=function(t,e,i){this.beginPath();var n=2*Math.PI/6;this.moveTo(t+i,e);for(var o=1;o<6;o++)this.lineTo(t+i*Math.cos(n*o),e+i*Math.sin(n*o));this.closePath()});var si=n((function(t){function e(t){if(t)return function(t){for(var i in e.prototype)t[i]=e.prototype[i];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 i(){this.off(t,i),e.apply(this,arguments)}return i.fn=e,this.on(t,i),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 i,n=this._callbacks["$"+t];if(!n)return this;if(1==arguments.length)return delete this._callbacks["$"+t],this;for(var o=0;o<n.length;o++)if((i=n[o])===e||i.fn===e){n.splice(o,1);break}return 0===n.length&&delete this._callbacks["$"+t],this},e.prototype.emit=function(t){this._callbacks=this._callbacks||{};for(var e=new Array(arguments.length-1),i=this._callbacks["$"+t],n=1;n<arguments.length;n++)e[n-1]=arguments[n];if(i){n=0;for(var o=(i=i.slice(0)).length;n<o;++n)i[n].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}}));"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self&&self;function ai(){throw new Error("Dynamic requires are not currently supported by rollup-plugin-commonjs")}function hi(t,e){return t(e={exports:{}},e.exports),e.exports}var di=hi((function(t){var e=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=e)})),li=hi((function(t){var e=t.exports={version:"2.6.9"};"number"==typeof __e&&(__e=e)})),ui=(li.version,hi((function(t){var e=di["__core-js_shared__"]||(di["__core-js_shared__"]={});(t.exports=function(t,i){return e[t]||(e[t]=void 0!==i?i:{})})("versions",[]).push({version:li.version,mode:"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})}))),ci=0,fi=Math.random(),pi=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++ci+fi).toString(36))},vi=hi((function(t){var e=ui("wks"),i=di.Symbol,n="function"==typeof i;(t.exports=function(t){return e[t]||(e[t]=n&&i[t]||(n?i:pi)("Symbol."+t))}).store=e})),gi={f:vi},yi=function(t){return"object"==typeof t?null!==t:"function"==typeof t},mi=function(t){if(!yi(t))throw TypeError(t+" is not an object!");return t},bi=function(t){try{return!!t()}catch(t){return!0}},_i=!bi((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})),wi=di.document,ki=yi(wi)&&yi(wi.createElement),xi=function(t){return ki?wi.createElement(t):{}},Si=!_i&&!bi((function(){return 7!=Object.defineProperty(xi("div"),"a",{get:function(){return 7}}).a})),Oi=function(t,e){if(!yi(t))return t;var i,n;if(e&&"function"==typeof(i=t.toString)&&!yi(n=i.call(t)))return n;if("function"==typeof(i=t.valueOf)&&!yi(n=i.call(t)))return n;if(!e&&"function"==typeof(i=t.toString)&&!yi(n=i.call(t)))return n;throw TypeError("Can't convert object to primitive value")},Di=Object.defineProperty,Mi={f:_i?Object.defineProperty:function(t,e,i){if(mi(t),e=Oi(e,!0),mi(i),Si)try{return Di(t,e,i)}catch(t){}if("get"in i||"set"in i)throw TypeError("Accessors not supported!");return"value"in i&&(t[e]=i.value),t}},Ei=Mi.f,Ti=function(t){var e=li.Symbol||(li.Symbol=di.Symbol||{});"_"==t.charAt(0)||t in e||Ei(e,t,{value:gi.f(t)})};Ti("asyncIterator");var Ci={}.hasOwnProperty,Pi=function(t,e){return Ci.call(t,e)},Ii=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},Ni=_i?function(t,e,i){return Mi.f(t,e,Ii(1,i))}:function(t,e,i){return t[e]=i,t},Fi=ui("native-function-to-string",Function.toString),Ai=hi((function(t){var e=pi("src"),i=(""+Fi).split("toString");li.inspectSource=function(t){return Fi.call(t)},(t.exports=function(t,n,o,r){var s="function"==typeof o;s&&(Pi(o,"name")||Ni(o,"name",n)),t[n]!==o&&(s&&(Pi(o,e)||Ni(o,e,t[n]?""+t[n]:i.join(String(n)))),t===di?t[n]=o:r?t[n]?t[n]=o:Ni(t,n,o):(delete t[n],Ni(t,n,o)))})(Function.prototype,"toString",(function(){return"function"==typeof this&&this[e]||Fi.call(this)}))})),Ri=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t},Yi=function(t,e,i){if(Ri(t),void 0===e)return t;switch(i){case 1:return function(i){return t.call(e,i)};case 2:return function(i,n){return t.call(e,i,n)};case 3:return function(i,n,o){return t.call(e,i,n,o)}}return function(){return t.apply(e,arguments)}},ji=function(t,e,i){var n,o,r,s,a=t&ji.F,h=t&ji.G,d=t&ji.S,l=t&ji.P,u=t&ji.B,c=h?di:d?di[e]||(di[e]={}):(di[e]||{}).prototype,f=h?li:li[e]||(li[e]={}),p=f.prototype||(f.prototype={});for(n in h&&(i=e),i)r=((o=!a&&c&&void 0!==c[n])?c:i)[n],s=u&&o?Yi(r,di):l&&"function"==typeof r?Yi(Function.call,r):r,c&&Ai(c,n,r,t&ji.U),f[n]!=r&&Ni(f,n,s),l&&p[n]!=r&&(p[n]=r)};di.core=li,ji.F=1,ji.G=2,ji.S=4,ji.P=8,ji.B=16,ji.W=32,ji.U=64,ji.R=128;var zi,Li=ji,Bi=hi((function(t){var e=pi("meta"),i=Mi.f,n=0,o=Object.isExtensible||function(){return!0},r=!bi((function(){return o(Object.preventExtensions({}))})),s=function(t){i(t,e,{value:{i:"O"+ ++n,w:{}}})},a=t.exports={KEY:e,NEED:!1,fastKey:function(t,i){if(!yi(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!Pi(t,e)){if(!o(t))return"F";if(!i)return"E";s(t)}return t[e].i},getWeak:function(t,i){if(!Pi(t,e)){if(!o(t))return!0;if(!i)return!1;s(t)}return t[e].w},onFreeze:function(t){return r&&a.NEED&&o(t)&&!Pi(t,e)&&s(t),t}}})),Hi=(Bi.KEY,Bi.NEED,Bi.fastKey,Bi.getWeak,Bi.onFreeze,Mi.f),Wi=vi("toStringTag"),Vi=function(t,e,i){t&&!Pi(t=i?t:t.prototype,Wi)&&Hi(t,Wi,{configurable:!0,value:e})},Ui={}.toString,Gi=function(t){return Ui.call(t).slice(8,-1)},qi=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==Gi(t)?t.split(""):Object(t)},Zi=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t},Xi=function(t){return qi(Zi(t))},$i=Math.ceil,Ki=Math.floor,Ji=function(t){return isNaN(t=+t)?0:(t>0?Ki:$i)(t)},Qi=Math.min,tn=function(t){return t>0?Qi(Ji(t),9007199254740991):0},en=Math.max,nn=Math.min,on=ui("keys"),rn=function(t){return on[t]||(on[t]=pi(t))},sn=(zi=!1,function(t,e,i){var n,o=Xi(t),r=tn(o.length),s=function(t,e){return(t=Ji(t))<0?en(t+e,0):nn(t,e)}(i,r);if(zi&&e!=e){for(;r>s;)if((n=o[s++])!=n)return!0}else for(;r>s;s++)if((zi||s in o)&&o[s]===e)return zi||s||0;return!zi&&-1}),an=rn("IE_PROTO"),hn=function(t,e){var i,n=Xi(t),o=0,r=[];for(i in n)i!=an&&Pi(n,i)&&r.push(i);for(;e.length>o;)Pi(n,i=e[o++])&&(~sn(r,i)||r.push(i));return r},dn="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(","),ln=Object.keys||function(t){return hn(t,dn)},un={f:Object.getOwnPropertySymbols},cn={f:{}.propertyIsEnumerable},fn=Array.isArray||function(t){return"Array"==Gi(t)},pn=function(t){return Object(Zi(t))},vn=_i?Object.defineProperties:function(t,e){mi(t);for(var i,n=ln(e),o=n.length,r=0;o>r;)Mi.f(t,i=n[r++],e[i]);return t},gn=di.document,yn=gn&&gn.documentElement,mn=rn("IE_PROTO"),bn=function(){},_n=function(){var t,e=xi("iframe"),i=dn.length;for(e.style.display="none",yn.appendChild(e),e.src="javascript:",(t=e.contentWindow.document).open(),t.write("<script>document.F=Object<\/script>"),t.close(),_n=t.F;i--;)delete _n.prototype[dn[i]];return _n()},wn=Object.create||function(t,e){var i;return null!==t?(bn.prototype=mi(t),i=new bn,bn.prototype=null,i[mn]=t):i=_n(),void 0===e?i:vn(i,e)},kn=dn.concat("length","prototype"),xn={f:Object.getOwnPropertyNames||function(t){return hn(t,kn)}},Sn=xn.f,On={}.toString,Dn="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],Mn={f:function(t){return Dn&&"[object Window]"==On.call(t)?function(t){try{return Sn(t)}catch(t){return Dn.slice()}}(t):Sn(Xi(t))}},En=Object.getOwnPropertyDescriptor,Tn={f:_i?En:function(t,e){if(t=Xi(t),e=Oi(e,!0),Si)try{return En(t,e)}catch(t){}if(Pi(t,e))return Ii(!cn.f.call(t,e),t[e])}},Cn=Bi.KEY,Pn=Tn.f,In=Mi.f,Nn=Mn.f,Fn=di.Symbol,An=di.JSON,Rn=An&&An.stringify,Yn=vi("_hidden"),jn=vi("toPrimitive"),zn={}.propertyIsEnumerable,Ln=ui("symbol-registry"),Bn=ui("symbols"),Hn=ui("op-symbols"),Wn=Object.prototype,Vn="function"==typeof Fn&&!!un.f,Un=di.QObject,Gn=!Un||!Un.prototype||!Un.prototype.findChild,qn=_i&&bi((function(){return 7!=wn(In({},"a",{get:function(){return In(this,"a",{value:7}).a}})).a}))?function(t,e,i){var n=Pn(Wn,e);n&&delete Wn[e],In(t,e,i),n&&t!==Wn&&In(Wn,e,n)}:In,Zn=function(t){var e=Bn[t]=wn(Fn.prototype);return e._k=t,e},Xn=Vn&&"symbol"==typeof Fn.iterator?function(t){return"symbol"==typeof t}:function(t){return t instanceof Fn},$n=function(t,e,i){return t===Wn&&$n(Hn,e,i),mi(t),e=Oi(e,!0),mi(i),Pi(Bn,e)?(i.enumerable?(Pi(t,Yn)&&t[Yn][e]&&(t[Yn][e]=!1),i=wn(i,{enumerable:Ii(0,!1)})):(Pi(t,Yn)||In(t,Yn,Ii(1,{})),t[Yn][e]=!0),qn(t,e,i)):In(t,e,i)},Kn=function(t,e){mi(t);for(var i,n=function(t){var e=ln(t),i=un.f;if(i)for(var n,o=i(t),r=cn.f,s=0;o.length>s;)r.call(t,n=o[s++])&&e.push(n);return e}(e=Xi(e)),o=0,r=n.length;r>o;)$n(t,i=n[o++],e[i]);return t},Jn=function(t){var e=zn.call(this,t=Oi(t,!0));return!(this===Wn&&Pi(Bn,t)&&!Pi(Hn,t))&&(!(e||!Pi(this,t)||!Pi(Bn,t)||Pi(this,Yn)&&this[Yn][t])||e)},Qn=function(t,e){if(t=Xi(t),e=Oi(e,!0),t!==Wn||!Pi(Bn,e)||Pi(Hn,e)){var i=Pn(t,e);return!i||!Pi(Bn,e)||Pi(t,Yn)&&t[Yn][e]||(i.enumerable=!0),i}},to=function(t){for(var e,i=Nn(Xi(t)),n=[],o=0;i.length>o;)Pi(Bn,e=i[o++])||e==Yn||e==Cn||n.push(e);return n},eo=function(t){for(var e,i=t===Wn,n=Nn(i?Hn:Xi(t)),o=[],r=0;n.length>r;)!Pi(Bn,e=n[r++])||i&&!Pi(Wn,e)||o.push(Bn[e]);return o};Vn||(Ai((Fn=function(){if(this instanceof Fn)throw TypeError("Symbol is not a constructor!");var t=pi(arguments.length>0?arguments[0]:void 0),e=function(i){this===Wn&&e.call(Hn,i),Pi(this,Yn)&&Pi(this[Yn],t)&&(this[Yn][t]=!1),qn(this,t,Ii(1,i))};return _i&&Gn&&qn(Wn,t,{configurable:!0,set:e}),Zn(t)}).prototype,"toString",(function(){return this._k})),Tn.f=Qn,Mi.f=$n,xn.f=Mn.f=to,cn.f=Jn,un.f=eo,_i&&Ai(Wn,"propertyIsEnumerable",Jn,!0),gi.f=function(t){return Zn(vi(t))}),Li(Li.G+Li.W+Li.F*!Vn,{Symbol:Fn});for(var io="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),no=0;io.length>no;)vi(io[no++]);for(var oo=ln(vi.store),ro=0;oo.length>ro;)Ti(oo[ro++]);Li(Li.S+Li.F*!Vn,"Symbol",{for:function(t){return Pi(Ln,t+="")?Ln[t]:Ln[t]=Fn(t)},keyFor:function(t){if(!Xn(t))throw TypeError(t+" is not a symbol!");for(var e in Ln)if(Ln[e]===t)return e},useSetter:function(){Gn=!0},useSimple:function(){Gn=!1}}),Li(Li.S+Li.F*!Vn,"Object",{create:function(t,e){return void 0===e?wn(t):Kn(wn(t),e)},defineProperty:$n,defineProperties:Kn,getOwnPropertyDescriptor:Qn,getOwnPropertyNames:to,getOwnPropertySymbols:eo});var so=bi((function(){un.f(1)}));function ao(t){return(ao="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 ho(t,e,i){return e in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}function lo(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,n)}return i}function uo(t){return function(t){if(Array.isArray(t)){for(var e=0,i=new Array(t.length);e<t.length;e++)i[e]=t[e];return i}}(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")}()}Li(Li.S+Li.F*so,"Object",{getOwnPropertySymbols:function(t){return un.f(pn(t))}}),An&&Li(Li.S+Li.F*(!Vn||bi((function(){var t=Fn();return"[null]"!=Rn([t])||"{}"!=Rn({a:t})||"{}"!=Rn(Object(t))}))),"JSON",{stringify:function(t){for(var e,i,n=[t],o=1;arguments.length>o;)n.push(arguments[o++]);if(i=e=n[1],(yi(e)||void 0!==t)&&!Xn(t))return fn(e)||(e=function(t,e){if("function"==typeof i&&(e=i.call(this,t,e)),!Xn(e))return e}),n[1]=e,Rn.apply(An,n)}}),Fn.prototype[jn]||Ni(Fn.prototype,jn,Fn.prototype.valueOf),Vi(Fn,"Symbol"),Vi(Math,"Math",!0),Vi(di.JSON,"JSON",!0);var co,fo,po,vo;co="keys",fo=function(){return function(t){return ln(pn(t))}},po=(li.Object||{})[co]||Object[co],(vo={})[co]=fo(po),Li(Li.S+Li.F*bi((function(){po(1)})),"Object",vo);var go=function(){var t=mi(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e};_i&&"g"!=/./g.flags&&Mi.f(RegExp.prototype,"flags",{configurable:!0,get:go});var yo=/./.toString,mo=function(t){Ai(RegExp.prototype,"toString",t,!0)};bi((function(){return"/a/b"!=yo.call({source:"a",flags:"b"})}))?mo((function(){var t=mi(this);return"/".concat(t.source,"/","flags"in t?t.flags:!_i&&t instanceof RegExp?go.call(t):void 0)})):"toString"!=yo.name&&mo((function(){return yo.call(this)}));var bo=function(t){return function(e,i){var n,o,r=String(Zi(e)),s=Ji(i),a=r.length;return s<0||s>=a?t?"":void 0:(n=r.charCodeAt(s))<55296||n>56319||s+1===a||(o=r.charCodeAt(s+1))<56320||o>57343?t?r.charAt(s):n:t?r.slice(s,s+2):o-56320+(n-55296<<10)+65536}}(!0),_o=function(t,e,i){return e+(i?bo(t,e).length:1)},wo=vi("toStringTag"),ko="Arguments"==Gi(function(){return arguments}()),xo=function(t){var e,i,n;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(i=function(t,e){try{return t[e]}catch(t){}}(e=Object(t),wo))?i:ko?Gi(e):"Object"==(n=Gi(e))&&"function"==typeof e.callee?"Arguments":n},So=RegExp.prototype.exec,Oo=function(t,e){var i=t.exec;if("function"==typeof i){var n=i.call(t,e);if("object"!=typeof n)throw new TypeError("RegExp exec method returned something other than an Object or null");return n}if("RegExp"!==xo(t))throw new TypeError("RegExp#exec called on incompatible receiver");return So.call(t,e)},Do=RegExp.prototype.exec,Mo=String.prototype.replace,Eo=Do,To=function(){var t=/a/,e=/b*/g;return Do.call(t,"a"),Do.call(e,"a"),0!==t.lastIndex||0!==e.lastIndex}(),Co=void 0!==/()??/.exec("")[1];(To||Co)&&(Eo=function(t){var e,i,n,o,r=this;return Co&&(i=new RegExp("^"+r.source+"$(?!\\s)",go.call(r))),To&&(e=r.lastIndex),n=Do.call(r,t),To&&n&&(r.lastIndex=r.global?n.index+n[0].length:e),Co&&n&&n.length>1&&Mo.call(n[0],i,(function(){for(o=1;o<arguments.length-2;o++)void 0===arguments[o]&&(n[o]=void 0)})),n});var Po=Eo;Li({target:"RegExp",proto:!0,forced:Po!==/./.exec},{exec:Po});var Io=vi("species"),No=!bi((function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")})),Fo=function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var i="ab".split(t);return 2===i.length&&"a"===i[0]&&"b"===i[1]}(),Ao=function(t,e,i){var n=vi(t),o=!bi((function(){var e={};return e[n]=function(){return 7},7!=""[t](e)})),r=o?!bi((function(){var e=!1,i=/a/;return i.exec=function(){return e=!0,null},"split"===t&&(i.constructor={},i.constructor[Io]=function(){return i}),i[n](""),!e})):void 0;if(!o||!r||"replace"===t&&!No||"split"===t&&!Fo){var s=/./[n],a=i(Zi,n,""[t],(function(t,e,i,n,r){return e.exec===Po?o&&!r?{done:!0,value:s.call(e,i,n)}:{done:!0,value:t.call(i,e,n)}:{done:!1}})),h=a[0],d=a[1];Ai(String.prototype,t,h),Ni(RegExp.prototype,n,2==e?function(t,e){return d.call(t,this,e)}:function(t){return d.call(t,this)})}},Ro=Math.max,Yo=Math.min,jo=Math.floor,zo=/\$([$&`']|\d\d?|<[^>]*>)/g,Lo=/\$([$&`']|\d\d?)/g;Ao("replace",2,(function(t,e,i,n){return[function(n,o){var r=t(this),s=null==n?void 0:n[e];return void 0!==s?s.call(n,r,o):i.call(String(r),n,o)},function(t,e){var r=n(i,t,this,e);if(r.done)return r.value;var s=mi(t),a=String(this),h="function"==typeof e;h||(e=String(e));var d=s.global;if(d){var l=s.unicode;s.lastIndex=0}for(var u=[];;){var c=Oo(s,a);if(null===c)break;if(u.push(c),!d)break;""===String(c[0])&&(s.lastIndex=_o(a,tn(s.lastIndex),l))}for(var f,p="",v=0,g=0;g<u.length;g++){c=u[g];for(var y=String(c[0]),m=Ro(Yo(Ji(c.index),a.length),0),b=[],_=1;_<c.length;_++)b.push(void 0===(f=c[_])?f:String(f));var w=c.groups;if(h){var k=[y].concat(b,m,a);void 0!==w&&k.push(w);var x=String(e.apply(void 0,k))}else x=o(y,a,m,b,w,e);m>=v&&(p+=a.slice(v,m)+x,v=m+y.length)}return p+a.slice(v)}];function o(t,e,n,o,r,s){var a=n+t.length,h=o.length,d=Lo;return void 0!==r&&(r=pn(r),d=zo),i.call(s,d,(function(i,s){var d;switch(s.charAt(0)){case"$":return"$";case"&":return t;case"`":return e.slice(0,n);case"'":return e.slice(a);case"<":d=r[s.slice(1,-1)];break;default:var l=+s;if(0===l)return i;if(l>h){var u=jo(l/10);return 0===u?i:u<=h?void 0===o[u-1]?s.charAt(1):o[u-1]+s.charAt(1):i}d=o[l-1]}return void 0===d?"":d}))}}));var Bo=vi("unscopables"),Ho=Array.prototype;null==Ho[Bo]&&Ni(Ho,Bo,{});var Wo=function(t){Ho[Bo][t]=!0},Vo=function(t,e){return{value:e,done:!!t}},Uo={},Go={};Ni(Go,vi("iterator"),(function(){return this}));var qo=function(t,e,i){t.prototype=wn(Go,{next:Ii(1,i)}),Vi(t,e+" Iterator")},Zo=rn("IE_PROTO"),Xo=Object.prototype,$o=Object.getPrototypeOf||function(t){return t=pn(t),Pi(t,Zo)?t[Zo]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?Xo:null},Ko=vi("iterator"),Jo=!([].keys&&"next"in[].keys()),Qo=function(){return this},tr=function(t,e,i,n,o,r,s){qo(i,e,n);var a,h,d,l=function(t){if(!Jo&&t in p)return p[t];switch(t){case"keys":case"values":return function(){return new i(this,t)}}return function(){return new i(this,t)}},u=e+" Iterator",c="values"==o,f=!1,p=t.prototype,v=p[Ko]||p["@@iterator"]||o&&p[o],g=v||l(o),y=o?c?l("entries"):g:void 0,m="Array"==e&&p.entries||v;if(m&&(d=$o(m.call(new t)))!==Object.prototype&&d.next&&(Vi(d,u,!0),"function"!=typeof d[Ko]&&Ni(d,Ko,Qo)),c&&v&&"values"!==v.name&&(f=!0,g=function(){return v.call(this)}),(Jo||f||!p[Ko])&&Ni(p,Ko,g),Uo[e]=g,Uo[u]=Qo,o)if(a={values:c?g:l("values"),keys:r?g:l("keys"),entries:y},s)for(h in a)h in p||Ai(p,h,a[h]);else Li(Li.P+Li.F*(Jo||f),e,a);return a}(Array,"Array",(function(t,e){this._t=Xi(t),this._i=0,this._k=e}),(function(){var t=this._t,e=this._k,i=this._i++;return!t||i>=t.length?(this._t=void 0,Vo(1)):Vo(0,"keys"==e?i:"values"==e?t[i]:[i,t[i]])}),"values");Uo.Arguments=Uo.Array,Wo("keys"),Wo("values"),Wo("entries");for(var er=vi("iterator"),ir=vi("toStringTag"),nr=Uo.Array,or={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},rr=ln(or),sr=0;sr<rr.length;sr++){var ar,hr=rr[sr],dr=or[hr],lr=di[hr],ur=lr&&lr.prototype;if(ur&&(ur[er]||Ni(ur,er,nr),ur[ir]||Ni(ur,ir,hr),Uo[hr]=nr,dr))for(ar in tr)ur[ar]||Ai(ur,ar,tr[ar],!0)}var cr={};cr[vi("toStringTag")]="z",cr+""!="[object z]"&&Ai(Object.prototype,"toString",(function(){return"[object "+xo(this)+"]"}),!0);var fr,pr=cn.f,vr=(fr=!1,function(t){for(var e,i=Xi(t),n=ln(i),o=n.length,r=0,s=[];o>r;)e=n[r++],_i&&!pr.call(i,e)||s.push(fr?[e,i[e]]:i[e]);return s});Li(Li.S,"Object",{values:function(t){return vr(t)}});var gr=vi("match"),yr=vi("species"),mr=Math.min,br=[].push,_r=!bi((function(){RegExp(4294967295,"y")}));Ao("split",2,(function(t,e,i,n){var o;return o="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 n,o,r=String(this);if(void 0===t&&0===e)return[];if(!yi(n=t)||(void 0!==(o=n[gr])?!o:"RegExp"!=Gi(n)))return i.call(r,t,e);for(var s,a,h,d=[],l=(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.unicode?"u":"")+(t.sticky?"y":""),u=0,c=void 0===e?4294967295:e>>>0,f=new RegExp(t.source,l+"g");(s=Po.call(f,r))&&!((a=f.lastIndex)>u&&(d.push(r.slice(u,s.index)),s.length>1&&s.index<r.length&&br.apply(d,s.slice(1)),h=s[0].length,u=a,d.length>=c));)f.lastIndex===s.index&&f.lastIndex++;return u===r.length?!h&&f.test("")||d.push(""):d.push(r.slice(u)),d.length>c?d.slice(0,c):d}:"0".split(void 0,0).length?function(t,e){return void 0===t&&0===e?[]:i.call(this,t,e)}:i,[function(i,n){var r=t(this),s=null==i?void 0:i[e];return void 0!==s?s.call(i,r,n):o.call(String(r),i,n)},function(t,e){var r=n(o,t,this,e,o!==i);if(r.done)return r.value;var s=mi(t),a=String(this),h=function(t,e){var i,n=mi(t).constructor;return void 0===n||null==(i=mi(n)[yr])?e:Ri(i)}(s,RegExp),d=s.unicode,l=(s.ignoreCase?"i":"")+(s.multiline?"m":"")+(s.unicode?"u":"")+(_r?"y":"g"),u=new h(_r?s:"^(?:"+s.source+")",l),c=void 0===e?4294967295:e>>>0;if(0===c)return[];if(0===a.length)return null===Oo(u,a)?[a]:[];for(var f=0,p=0,v=[];p<a.length;){u.lastIndex=_r?p:0;var g,y=Oo(u,_r?a:a.slice(p));if(null===y||(g=mr(tn(u.lastIndex+(_r?0:p)),a.length))===f)p=_o(a,p,d);else{if(v.push(a.slice(f,p)),v.length===c)return v;for(var m=1;m<=y.length-1;m++)if(v.push(y[m]),v.length===c)return v;p=f=g}}return v.push(a.slice(f)),v}]}));var wr=Object.assign,kr=!wr||bi((function(){var t={},e={},i=Symbol(),n="abcdefghijklmnopqrst";return t[i]=7,n.split("").forEach((function(t){e[t]=t})),7!=wr({},t)[i]||Object.keys(wr({},e)).join("")!=n}))?function(t,e){for(var i=pn(t),n=arguments.length,o=1,r=un.f,s=cn.f;n>o;)for(var a,h=qi(arguments[o++]),d=r?ln(h).concat(r(h)):ln(h),l=d.length,u=0;l>u;)a=d[u++],_i&&!s.call(h,a)||(i[a]=h[a]);return i}:wr;Li(Li.S+Li.F,"Object",{assign:kr});var xr=function(t,e){if(mi(t),!yi(e)&&null!==e)throw TypeError(e+": can't set as prototype!")},Sr={set:Object.setPrototypeOf||("__proto__"in{}?function(t,e,i){try{(i=Yi(Function.call,Tn.f(Object.prototype,"__proto__").set,2))(t,[]),e=!(t instanceof Array)}catch(t){e=!0}return function(t,n){return xr(t,n),e?t.__proto__=n:i(t,n),t}}({},!1):void 0),check:xr}.set,Or=function(t,e,i){var n,o=e.constructor;return o!==i&&"function"==typeof o&&(n=o.prototype)!==i.prototype&&yi(n)&&Sr&&Sr(t,n),t},Dr="\t\n\v\f\r   ᠎              \u2028\u2029\ufeff",Mr="["+Dr+"]",Er=RegExp("^"+Mr+Mr+"*"),Tr=RegExp(Mr+Mr+"*$"),Cr=function(t,e,i){var n={},o=bi((function(){return!!Dr[t]()||"​…"!="​…"[t]()})),r=n[t]=o?e(Pr):Dr[t];i&&(n[i]=r),Li(Li.P+Li.F*o,"String",n)},Pr=Cr.trim=function(t,e){return t=String(Zi(t)),1&e&&(t=t.replace(Er,"")),2&e&&(t=t.replace(Tr,"")),t},Ir=Cr,Nr=xn.f,Fr=Tn.f,Ar=Mi.f,Rr=Ir.trim,Yr=di.Number,jr=Yr,zr=Yr.prototype,Lr="Number"==Gi(wn(zr)),Br="trim"in String.prototype,Hr=function(t){var e=Oi(t,!1);if("string"==typeof e&&e.length>2){var i,n,o,r=(e=Br?e.trim():Rr(e,3)).charCodeAt(0);if(43===r||45===r){if(88===(i=e.charCodeAt(2))||120===i)return NaN}else if(48===r){switch(e.charCodeAt(1)){case 66:case 98:n=2,o=49;break;case 79:case 111:n=8,o=55;break;default:return+e}for(var s,a=e.slice(2),h=0,d=a.length;h<d;h++)if((s=a.charCodeAt(h))<48||s>o)return NaN;return parseInt(a,n)}}return+e};if(!Yr(" 0o1")||!Yr("0b1")||Yr("+0x1")){Yr=function(t){var e=arguments.length<1?0:t,i=this;return i instanceof Yr&&(Lr?bi((function(){zr.valueOf.call(i)})):"Number"!=Gi(i))?Or(new jr(Hr(e)),i,Yr):Hr(e)};for(var Wr,Vr=_i?Nr(jr):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),Ur=0;Vr.length>Ur;Ur++)Pi(jr,Wr=Vr[Ur])&&!Pi(Yr,Wr)&&Ar(Yr,Wr,Fr(jr,Wr));Yr.prototype=zr,zr.constructor=Yr,Ai(di,"Number",Yr)}for(var Gr=hi((function(t,e){t.exports=function(){var e,i;function n(){return e.apply(null,arguments)}function o(t){return t instanceof Array||"[object Array]"===Object.prototype.toString.call(t)}function r(t){return null!=t&&"[object Object]"===Object.prototype.toString.call(t)}function s(t){return void 0===t}function a(t){return"number"==typeof t||"[object Number]"===Object.prototype.toString.call(t)}function h(t){return t instanceof Date||"[object Date]"===Object.prototype.toString.call(t)}function d(t,e){var i,n=[];for(i=0;i<t.length;++i)n.push(e(t[i],i));return n}function l(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function u(t,e){for(var i in e)l(e,i)&&(t[i]=e[i]);return l(e,"toString")&&(t.toString=e.toString),l(e,"valueOf")&&(t.valueOf=e.valueOf),t}function c(t,e,i,n){return Ie(t,e,i,n,!0).utc()}function f(t){return null==t._pf&&(t._pf={empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],meridiem:null,rfc2822:!1,weekdayMismatch:!1}),t._pf}function p(t){if(null==t._isValid){var e=f(t),n=i.call(e.parsedDateParts,(function(t){return null!=t})),o=!isNaN(t._d.getTime())&&e.overflow<0&&!e.empty&&!e.invalidMonth&&!e.invalidWeekday&&!e.weekdayMismatch&&!e.nullInput&&!e.invalidFormat&&!e.userInvalidated&&(!e.meridiem||e.meridiem&&n);if(t._strict&&(o=o&&0===e.charsLeftOver&&0===e.unusedTokens.length&&void 0===e.bigHour),null!=Object.isFrozen&&Object.isFrozen(t))return o;t._isValid=o}return t._isValid}function v(t){var e=c(NaN);return null!=t?u(f(e),t):f(e).userInvalidated=!0,e}i=Array.prototype.some?Array.prototype.some:function(t){for(var e=Object(this),i=e.length>>>0,n=0;n<i;n++)if(n in e&&t.call(this,e[n],n,e))return!0;return!1};var g=n.momentProperties=[];function y(t,e){var i,n,o;if(s(e._isAMomentObject)||(t._isAMomentObject=e._isAMomentObject),s(e._i)||(t._i=e._i),s(e._f)||(t._f=e._f),s(e._l)||(t._l=e._l),s(e._strict)||(t._strict=e._strict),s(e._tzm)||(t._tzm=e._tzm),s(e._isUTC)||(t._isUTC=e._isUTC),s(e._offset)||(t._offset=e._offset),s(e._pf)||(t._pf=f(e)),s(e._locale)||(t._locale=e._locale),g.length>0)for(i=0;i<g.length;i++)s(o=e[n=g[i]])||(t[n]=o);return t}var m=!1;function b(t){y(this,t),this._d=new Date(null!=t._d?t._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===m&&(m=!0,n.updateOffset(this),m=!1)}function _(t){return t instanceof b||null!=t&&null!=t._isAMomentObject}function w(t){return t<0?Math.ceil(t)||0:Math.floor(t)}function k(t){var e=+t,i=0;return 0!==e&&isFinite(e)&&(i=w(e)),i}function x(t,e,i){var n,o=Math.min(t.length,e.length),r=Math.abs(t.length-e.length),s=0;for(n=0;n<o;n++)(i&&t[n]!==e[n]||!i&&k(t[n])!==k(e[n]))&&s++;return s+r}function S(t){!1===n.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+t)}function O(t,e){var i=!0;return u((function(){if(null!=n.deprecationHandler&&n.deprecationHandler(null,t),i){for(var o,r=[],s=0;s<arguments.length;s++){if(o="","object"==typeof arguments[s]){for(var a in o+="\n["+s+"] ",arguments[0])o+=a+": "+arguments[0][a]+", ";o=o.slice(0,-2)}else o=arguments[s];r.push(o)}S(t+"\nArguments: "+Array.prototype.slice.call(r).join("")+"\n"+(new Error).stack),i=!1}return e.apply(this,arguments)}),e)}var D,M={};function E(t,e){null!=n.deprecationHandler&&n.deprecationHandler(t,e),M[t]||(S(e),M[t]=!0)}function T(t){return t instanceof Function||"[object Function]"===Object.prototype.toString.call(t)}function C(t,e){var i,n=u({},t);for(i in e)l(e,i)&&(r(t[i])&&r(e[i])?(n[i]={},u(n[i],t[i]),u(n[i],e[i])):null!=e[i]?n[i]=e[i]:delete n[i]);for(i in t)l(t,i)&&!l(e,i)&&r(t[i])&&(n[i]=u({},n[i]));return n}function P(t){null!=t&&this.set(t)}n.suppressDeprecationWarnings=!1,n.deprecationHandler=null,D=Object.keys?Object.keys:function(t){var e,i=[];for(e in t)l(t,e)&&i.push(e);return i};var I={};function N(t,e){var i=t.toLowerCase();I[i]=I[i+"s"]=I[e]=t}function F(t){return"string"==typeof t?I[t]||I[t.toLowerCase()]:void 0}function A(t){var e,i,n={};for(i in t)l(t,i)&&(e=F(i))&&(n[e]=t[i]);return n}var R={};function Y(t,e){R[t]=e}function j(t,e,i){var n=""+Math.abs(t),o=e-n.length;return(t>=0?i?"+":"":"-")+Math.pow(10,Math.max(0,o)).toString().substr(1)+n}var z=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|YYYYYY|YYYYY|YYYY|YY|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,L=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,B={},H={};function W(t,e,i,n){var o=n;"string"==typeof n&&(o=function(){return this[n]()}),t&&(H[t]=o),e&&(H[e[0]]=function(){return j(o.apply(this,arguments),e[1],e[2])}),i&&(H[i]=function(){return this.localeData().ordinal(o.apply(this,arguments),t)})}function V(t,e){return t.isValid()?(e=U(e,t.localeData()),B[e]=B[e]||function(t){var e,i,n,o=t.match(z);for(e=0,i=o.length;e<i;e++)H[o[e]]?o[e]=H[o[e]]:o[e]=(n=o[e]).match(/\[[\s\S]/)?n.replace(/^\[|\]$/g,""):n.replace(/\\/g,"");return function(e){var n,r="";for(n=0;n<i;n++)r+=T(o[n])?o[n].call(e,t):o[n];return r}}(e),B[e](t)):t.localeData().invalidDate()}function U(t,e){var i=5;function n(t){return e.longDateFormat(t)||t}for(L.lastIndex=0;i>=0&&L.test(t);)t=t.replace(L,n),L.lastIndex=0,i-=1;return t}var G=/\d/,q=/\d\d/,Z=/\d{3}/,X=/\d{4}/,$=/[+-]?\d{6}/,K=/\d\d?/,J=/\d\d\d\d?/,Q=/\d\d\d\d\d\d?/,tt=/\d{1,3}/,et=/\d{1,4}/,it=/[+-]?\d{1,6}/,nt=/\d+/,ot=/[+-]?\d+/,rt=/Z|[+-]\d\d:?\d\d/gi,st=/Z|[+-]\d\d(?::?\d\d)?/gi,at=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,ht={};function dt(t,e,i){ht[t]=T(e)?e:function(t,n){return t&&i?i:e}}function lt(t,e){return l(ht,t)?ht[t](e._strict,e._locale):new RegExp(ut(t.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,(function(t,e,i,n,o){return e||i||n||o}))))}function ut(t){return t.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}var ct={};function ft(t,e){var i,n=e;for("string"==typeof t&&(t=[t]),a(e)&&(n=function(t,i){i[e]=k(t)}),i=0;i<t.length;i++)ct[t[i]]=n}function pt(t,e){ft(t,(function(t,i,n,o){n._w=n._w||{},e(t,n._w,n,o)}))}function vt(t,e,i){null!=e&&l(ct,t)&&ct[t](e,i._a,i,t)}var gt=0,yt=1,mt=2,bt=3,_t=4,wt=5,kt=6,xt=7,St=8;function Ot(t){return Dt(t)?366:365}function Dt(t){return t%4==0&&t%100!=0||t%400==0}W("Y",0,0,(function(){var t=this.year();return t<=9999?""+t:"+"+t})),W(0,["YY",2],0,(function(){return this.year()%100})),W(0,["YYYY",4],0,"year"),W(0,["YYYYY",5],0,"year"),W(0,["YYYYYY",6,!0],0,"year"),N("year","y"),Y("year",1),dt("Y",ot),dt("YY",K,q),dt("YYYY",et,X),dt("YYYYY",it,$),dt("YYYYYY",it,$),ft(["YYYYY","YYYYYY"],gt),ft("YYYY",(function(t,e){e[gt]=2===t.length?n.parseTwoDigitYear(t):k(t)})),ft("YY",(function(t,e){e[gt]=n.parseTwoDigitYear(t)})),ft("Y",(function(t,e){e[gt]=parseInt(t,10)})),n.parseTwoDigitYear=function(t){return k(t)+(k(t)>68?1900:2e3)};var Mt,Et=Tt("FullYear",!0);function Tt(t,e){return function(i){return null!=i?(Pt(this,t,i),n.updateOffset(this,e),this):Ct(this,t)}}function Ct(t,e){return t.isValid()?t._d["get"+(t._isUTC?"UTC":"")+e]():NaN}function Pt(t,e,i){t.isValid()&&!isNaN(i)&&("FullYear"===e&&Dt(t.year())&&1===t.month()&&29===t.date()?t._d["set"+(t._isUTC?"UTC":"")+e](i,t.month(),It(i,t.month())):t._d["set"+(t._isUTC?"UTC":"")+e](i))}function It(t,e){if(isNaN(t)||isNaN(e))return NaN;var i,n=(e%(i=12)+i)%i;return t+=(e-n)/12,1===n?Dt(t)?29:28:31-n%7%2}Mt=Array.prototype.indexOf?Array.prototype.indexOf:function(t){var e;for(e=0;e<this.length;++e)if(this[e]===t)return e;return-1},W("M",["MM",2],"Mo",(function(){return this.month()+1})),W("MMM",0,0,(function(t){return this.localeData().monthsShort(this,t)})),W("MMMM",0,0,(function(t){return this.localeData().months(this,t)})),N("month","M"),Y("month",8),dt("M",K),dt("MM",K,q),dt("MMM",(function(t,e){return e.monthsShortRegex(t)})),dt("MMMM",(function(t,e){return e.monthsRegex(t)})),ft(["M","MM"],(function(t,e){e[yt]=k(t)-1})),ft(["MMM","MMMM"],(function(t,e,i,n){var o=i._locale.monthsParse(t,n,i._strict);null!=o?e[yt]=o:f(i).invalidMonth=t}));var Nt=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,Ft="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),At="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_");function Rt(t,e,i){var n,o,r,s=t.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],t