vis-util 5.0.2 → 5.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/declarations/deep-object-assign.d.ts +0 -2
- package/declarations/deep-object-assign.d.ts.map +1 -1
- package/declarations/random/alea.d.ts +0 -1
- package/declarations/random/alea.d.ts.map +1 -1
- package/declarations/shared/configurator-types.d.ts +2 -1
- package/declarations/shared/configurator-types.d.ts.map +1 -1
- package/declarations/util.d.ts +7 -65
- package/declarations/util.d.ts.map +1 -1
- package/esnext/esm/vis-util.js +57 -143
- package/esnext/esm/vis-util.js.map +1 -1
- package/esnext/esm/vis-util.min.js +3 -3
- package/esnext/esm/vis-util.min.js.map +1 -1
- package/esnext/umd/vis-util.js +66 -159
- package/esnext/umd/vis-util.js.map +1 -1
- package/esnext/umd/vis-util.min.js +3 -3
- package/esnext/umd/vis-util.min.js.map +1 -1
- package/package.json +27 -31
- package/peer/esm/vis-util.js +3872 -3390
- package/peer/esm/vis-util.js.map +1 -1
- package/peer/esm/vis-util.min.js +4 -4
- package/peer/esm/vis-util.min.js.map +1 -1
- package/peer/umd/vis-util.js +11232 -10752
- package/peer/umd/vis-util.js.map +1 -1
- package/peer/umd/vis-util.min.js +9 -9
- package/peer/umd/vis-util.min.js.map +1 -1
- package/standalone/esm/vis-util.js +3872 -3390
- package/standalone/esm/vis-util.js.map +1 -1
- package/standalone/esm/vis-util.min.js +4 -4
- package/standalone/esm/vis-util.min.js.map +1 -1
- package/standalone/umd/vis-util.js +11232 -10752
- package/standalone/umd/vis-util.js.map +1 -1
- package/standalone/umd/vis-util.min.js +9 -9
- package/standalone/umd/vis-util.min.js.map +1 -1
package/peer/umd/vis-util.min.js
CHANGED
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
*
|
|
5
5
|
* utilitie collection for visjs
|
|
6
6
|
*
|
|
7
|
-
* @version 5.0.
|
|
8
|
-
* @date
|
|
7
|
+
* @version 5.0.4
|
|
8
|
+
* @date 2023-09-13T20:29:32.256Z
|
|
9
9
|
*
|
|
10
10
|
* @copyright (c) 2011-2017 Almende B.V, http://almende.com
|
|
11
11
|
* @copyright (c) 2017-2019 visjs contributors, https://github.com/visjs
|
|
@@ -23,12 +23,12 @@
|
|
|
23
23
|
*
|
|
24
24
|
* vis.js may be distributed under either license.
|
|
25
25
|
*/
|
|
26
|
-
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e((t="undefined"!=typeof globalThis?globalThis:t||self).vis=t.vis||{})}(this,(function(t){var e=function(t){try{return!!t()}catch(t){return!0}},n={}.toString,r=function(t){return n.call(t).slice(8,-1)},i="".split,o=e((function(){return!Object("z").propertyIsEnumerable(0)}))?function(t){return"String"==r(t)?i.call(t,""):Object(t)}:Object,a=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t},s=function(t){return o(a(t))},c={},l="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function u(t){var e={exports:{}};return t(e,e.exports),e.exports}var h=function(t){return t&&t.Math==Math&&t},f=h("object"==typeof globalThis&&globalThis)||h("object"==typeof window&&window)||h("object"==typeof self&&self)||h("object"==typeof l&&l)||function(){return this}()||Function("return this")(),p=!e((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),v=function(t){return"object"==typeof t?null!==t:"function"==typeof t},d=f.document,g=v(d)&&v(d.createElement),y=function(t){return g?d.createElement(t):{}},m=!p&&!e((function(){return 7!=Object.defineProperty(y("div"),"a",{get:function(){return 7}}).a})),b=function(t){if(!v(t))throw TypeError(String(t)+" is not an object");return t},k=function(t,e){if(!v(t))return t;var n,r;if(e&&"function"==typeof(n=t.toString)&&!v(r=n.call(t)))return r;if("function"==typeof(n=t.valueOf)&&!v(r=n.call(t)))return r;if(!e&&"function"==typeof(n=t.toString)&&!v(r=n.call(t)))return r;throw TypeError("Can't convert object to primitive value")},w=Object.defineProperty,C={f:p?w:function(t,e,n){if(b(t),e=k(e,!0),b(n),m)try{return w(t,e,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},E=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},O=p?function(t,e,n){return C.f(t,e,E(1,n))}:function(t,e,n){return t[e]=n,t},T="__core-js_shared__",_=f[T]||function(t,e){try{O(f,t,e)}catch(n){f[t]=e}return e}(T,{}),A=Function.toString;"function"!=typeof _.inspectSource&&(_.inspectSource=function(t){return A.call(t)});var F,S,x,P=_.inspectSource,D=f.WeakMap,j="function"==typeof D&&/native code/.test(P(D)),I={}.hasOwnProperty,R=function(t,e){return I.call(t,e)},N=u((function(t){(t.exports=function(t,e){return _[t]||(_[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.8.3",mode:"pure",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),M=0,B=Math.random(),L=function(t){return"Symbol("+String(void 0===t?"":t)+")_"+(++M+B).toString(36)},H=N("keys"),z=function(t){return H[t]||(H[t]=L(t))},W={},V=f.WeakMap;if(j){var q=_.state||(_.state=new V),Y=q.get,X=q.has,G=q.set;F=function(t,e){return e.facade=t,G.call(q,t,e),e},S=function(t){return Y.call(q,t)||{}},x=function(t){return X.call(q,t)}}else{var U=z("state");W[U]=!0,F=function(t,e){return e.facade=t,O(t,U,e),e},S=function(t){return R(t,U)?t[U]:{}},x=function(t){return R(t,U)}}var $,Q,J,K={set:F,get:S,has:x,enforce:function(t){return x(t)?S(t):F(t,{})},getterFor:function(t){return function(e){var n;if(!v(e)||(n=S(e)).type!==t)throw TypeError("Incompatible receiver, "+t+" required");return n}}},Z={}.propertyIsEnumerable,tt=Object.getOwnPropertyDescriptor,et={f:tt&&!Z.call({1:2},1)?function(t){var e=tt(this,t);return!!e&&e.enumerable}:Z},nt=Object.getOwnPropertyDescriptor,rt={f:p?nt:function(t,e){if(t=s(t),e=k(e,!0),m)try{return nt(t,e)}catch(t){}if(R(t,e))return E(!et.f.call(t,e),t[e])}},it=/#|\.prototype\./,ot=function(t,n){var r=st[at(t)];return r==lt||r!=ct&&("function"==typeof n?e(n):!!n)},at=ot.normalize=function(t){return String(t).replace(it,".").toLowerCase()},st=ot.data={},ct=ot.NATIVE="N",lt=ot.POLYFILL="P",ut=ot,ht={},ft=function(t){if("function"!=typeof t)throw TypeError(String(t)+" is not a function");return t},pt=function(t,e,n){if(ft(t),void 0===e)return t;switch(n){case 0:return function(){return t.call(e)};case 1:return function(n){return t.call(e,n)};case 2:return function(n,r){return t.call(e,n,r)};case 3:return function(n,r,i){return t.call(e,n,r,i)}}return function(){return t.apply(e,arguments)}},vt=rt.f,dt=function(t){var e=function(e,n,r){if(this instanceof t){switch(arguments.length){case 0:return new t;case 1:return new t(e);case 2:return new t(e,n)}return new t(e,n,r)}return t.apply(this,arguments)};return e.prototype=t.prototype,e},gt=function(t,e){var n,r,i,o,a,s,c,l,u=t.target,h=t.global,p=t.stat,v=t.proto,d=h?f:p?f[u]:(f[u]||{}).prototype,g=h?ht:ht[u]||(ht[u]={}),y=g.prototype;for(i in e)n=!ut(h?i:u+(p?".":"#")+i,t.forced)&&d&&R(d,i),a=g[i],n&&(s=t.noTargetGet?(l=vt(d,i))&&l.value:d[i]),o=n&&s?s:e[i],n&&typeof a==typeof o||(c=t.bind&&n?pt(o,f):t.wrap&&n?dt(o):v&&"function"==typeof o?pt(Function.call,o):o,(t.sham||o&&o.sham||a&&a.sham)&&O(c,"sham",!0),g[i]=c,v&&(R(ht,r=u+"Prototype")||O(ht,r,{}),ht[r][i]=o,t.real&&y&&!y[i]&&O(y,i,o)))},yt=function(t){return Object(a(t))},mt=!e((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype})),bt=z("IE_PROTO"),kt=Object.prototype,wt=mt?Object.getPrototypeOf:function(t){return t=yt(t),R(t,bt)?t[bt]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?kt:null},Ct=!!Object.getOwnPropertySymbols&&!e((function(){return!String(Symbol())})),Et=Ct&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,Ot=N("wks"),Tt=f.Symbol,_t=Et?Tt:Tt&&Tt.withoutSetter||L,At=function(t){return R(Ot,t)||(Ct&&R(Tt,t)?Ot[t]=Tt[t]:Ot[t]=_t("Symbol."+t)),Ot[t]},Ft=At("iterator"),St=!1;[].keys&&("next"in(J=[].keys())?(Q=wt(wt(J)))!==Object.prototype&&($=Q):St=!0);var xt=null==$||e((function(){var t={};return $[Ft].call(t)!==t}));xt&&($={}),xt&&!R($,Ft)&&O($,Ft,(function(){return this}));var Pt,Dt={IteratorPrototype:$,BUGGY_SAFARI_ITERATORS:St},jt=Math.ceil,It=Math.floor,Rt=function(t){return isNaN(t=+t)?0:(t>0?It:jt)(t)},Nt=Math.min,Mt=function(t){return t>0?Nt(Rt(t),9007199254740991):0},Bt=Math.max,Lt=Math.min,Ht=function(t,e){var n=Rt(t);return n<0?Bt(n+e,0):Lt(n,e)},zt=function(t){return function(e,n,r){var i,o=s(e),a=Mt(o.length),c=Ht(r,a);if(t&&n!=n){for(;a>c;)if((i=o[c++])!=i)return!0}else for(;a>c;c++)if((t||c in o)&&o[c]===n)return t||c||0;return!t&&-1}},Wt={includes:zt(!0),indexOf:zt(!1)},Vt=Wt.indexOf,qt=function(t,e){var n,r=s(t),i=0,o=[];for(n in r)!R(W,n)&&R(r,n)&&o.push(n);for(;e.length>i;)R(r,n=e[i++])&&(~Vt(o,n)||o.push(n));return o},Yt=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Xt=Object.keys||function(t){return qt(t,Yt)},Gt=p?Object.defineProperties:function(t,e){b(t);for(var n,r=Xt(e),i=r.length,o=0;i>o;)C.f(t,n=r[o++],e[n]);return t},Ut=function(t){return"function"==typeof t?t:void 0},$t=function(t,e){return arguments.length<2?Ut(ht[t])||Ut(f[t]):ht[t]&&ht[t][e]||f[t]&&f[t][e]},Qt=$t("document","documentElement"),Jt=z("IE_PROTO"),Kt=function(){},Zt=function(t){return"<script>"+t+"</"+"script>"},te=function(){try{Pt=document.domain&&new ActiveXObject("htmlfile")}catch(t){}var t,e;te=Pt?function(t){t.write(Zt("")),t.close();var e=t.parentWindow.Object;return t=null,e}(Pt):((e=y("iframe")).style.display="none",Qt.appendChild(e),e.src=String("javascript:"),(t=e.contentWindow.document).open(),t.write(Zt("document.F=Object")),t.close(),t.F);for(var n=Yt.length;n--;)delete te.prototype[Yt[n]];return te()};W[Jt]=!0;var ee=Object.create||function(t,e){var n;return null!==t?(Kt.prototype=b(t),n=new Kt,Kt.prototype=null,n[Jt]=t):n=te(),void 0===e?n:Gt(n,e)},ne={};ne[At("toStringTag")]="z";var re="[object z]"===String(ne),ie=At("toStringTag"),oe="Arguments"==r(function(){return arguments}()),ae=re?r:function(t){var e,n,i;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=function(t,e){try{return t[e]}catch(t){}}(e=Object(t),ie))?n:oe?r(e):"Object"==(i=r(e))&&"function"==typeof e.callee?"Arguments":i},se=re?{}.toString:function(){return"[object "+ae(this)+"]"},ce=C.f,le=At("toStringTag"),ue=function(t,e,n,r){if(t){var i=n?t:t.prototype;R(i,le)||ce(i,le,{configurable:!0,value:e}),r&&!re&&O(i,"toString",se)}},he=Dt.IteratorPrototype,fe=function(){return this};Object.setPrototypeOf||"__proto__"in{}&&function(){var t,e=!1,n={};try{(t=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(n,[]),e=n instanceof Array}catch(t){}}();var pe=function(t,e,n,r){r&&r.enumerable?t[e]=n:O(t,e,n)},ve=Dt.IteratorPrototype,de=Dt.BUGGY_SAFARI_ITERATORS,ge=At("iterator"),ye="keys",me="values",be="entries",ke=function(){return this},we=function(t,e,n,r,i,o,a){!function(t,e,n){var r=e+" Iterator";t.prototype=ee(he,{next:E(1,n)}),ue(t,r,!1,!0),c[r]=fe}(n,e,r);var s,l,u,h=function(t){if(t===i&&g)return g;if(!de&&t in v)return v[t];switch(t){case ye:case me:case be:return function(){return new n(this,t)}}return function(){return new n(this)}},f=e+" Iterator",p=!1,v=t.prototype,d=v[ge]||v["@@iterator"]||i&&v[i],g=!de&&d||h(i),y="Array"==e&&v.entries||d;if(y&&(s=wt(y.call(new t)),ve!==Object.prototype&&s.next&&(ue(s,f,!0,!0),c[f]=ke)),i==me&&d&&d.name!==me&&(p=!0,g=function(){return d.call(this)}),a&&v[ge]!==g&&O(v,ge,g),c[e]=g,i)if(l={values:h(me),keys:o?g:h(ye),entries:h(be)},a)for(u in l)(de||p||!(u in v))&&pe(v,u,l[u]);else gt({target:e,proto:!0,forced:de||p},l);return l},Ce="Array Iterator",Ee=K.set,Oe=K.getterFor(Ce);we(Array,"Array",(function(t,e){Ee(this,{type:Ce,target:s(t),index:0,kind:e})}),(function(){var t=Oe(this),e=t.target,n=t.kind,r=t.index++;return!e||r>=e.length?(t.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:r,done:!1}:"values"==n?{value:e[r],done:!1}:{value:[r,e[r]],done:!1}}),"values"),c.Arguments=c.Array;var Te=At("toStringTag");for(var _e in{CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}){var Ae=f[_e],Fe=Ae&&Ae.prototype;Fe&&ae(Fe)!==Te&&O(Fe,Te,_e),c[_e]=c.Array}var Se=function(t){return function(e,n){var r,i,o=String(a(e)),s=Rt(n),c=o.length;return s<0||s>=c?t?"":void 0:(r=o.charCodeAt(s))<55296||r>56319||s+1===c||(i=o.charCodeAt(s+1))<56320||i>57343?t?o.charAt(s):r:t?o.slice(s,s+2):i-56320+(r-55296<<10)+65536}},xe={codeAt:Se(!1),charAt:Se(!0)}.charAt,Pe="String Iterator",De=K.set,je=K.getterFor(Pe);we(String,"String",(function(t){De(this,{type:Pe,string:String(t),index:0})}),(function(){var t,e=je(this),n=e.string,r=e.index;return r>=n.length?{value:void 0,done:!0}:(t=xe(n,r),e.index+=t.length,{value:t,done:!1})}));var Ie=At("iterator"),Re=function(t){if(null!=t)return t[Ie]||t["@@iterator"]||c[ae(t)]},Ne=function(t){var e=Re(t);if("function"!=typeof e)throw TypeError(String(t)+" is not iterable");return b(e.call(t))},Me=Re,Be=function(t,e,n,r){try{return r?e(b(n)[0],n[1]):e(n)}catch(e){throw function(t){var e=t.return;if(void 0!==e)b(e.call(t)).value}(t),e}},Le=At("iterator"),He=Array.prototype,ze=function(t){return void 0!==t&&(c.Array===t||He[Le]===t)},We=function(t,e,n){var r=k(e);r in t?C.f(t,r,E(0,n)):t[r]=n},Ve=At("iterator"),qe=!1;try{var Ye=0,Xe={next:function(){return{done:!!Ye++}},return:function(){qe=!0}};Xe[Ve]=function(){return this},Array.from(Xe,(function(){throw 2}))}catch(t){}var Ge=!function(t,e){if(!e&&!qe)return!1;var n=!1;try{var r={};r[Ve]=function(){return{next:function(){return{done:n=!0}}}},t(r)}catch(t){}return n}((function(t){Array.from(t)}));gt({target:"Array",stat:!0,forced:Ge},{from:function(t){var e,n,r,i,o,a,s=yt(t),c="function"==typeof this?this:Array,l=arguments.length,u=l>1?arguments[1]:void 0,h=void 0!==u,f=Re(s),p=0;if(h&&(u=pt(u,l>2?arguments[2]:void 0,2)),null==f||c==Array&&ze(f))for(n=new c(e=Mt(s.length));e>p;p++)a=h?u(s[p],p):s[p],We(n,p,a);else for(o=(i=f.call(s)).next,n=new c;!(r=o.call(i)).done;p++)a=h?Be(i,u,[r.value,p],!0):r.value,We(n,p,a);return n.length=p,n}});var Ue=ht.Array.from,$e=Ue,Qe=e((function(){Xt(1)}));gt({target:"Object",stat:!0,forced:Qe},{keys:function(t){return Xt(yt(t))}});var Je,Ke,Ze=ht.Object.keys,tn=Array.isArray||function(t){return"Array"==r(t)},en=At("species"),nn=function(t,e){var n;return tn(t)&&("function"!=typeof(n=t.constructor)||n!==Array&&!tn(n.prototype)?v(n)&&null===(n=n[en])&&(n=void 0):n=void 0),new(void 0===n?Array:n)(0===e?0:e)},rn=[].push,on=function(t){var e=1==t,n=2==t,r=3==t,i=4==t,a=6==t,s=7==t,c=5==t||a;return function(l,u,h,f){for(var p,v,d=yt(l),g=o(d),y=pt(u,h,3),m=Mt(g.length),b=0,k=f||nn,w=e?k(l,m):n||s?k(l,0):void 0;m>b;b++)if((c||b in g)&&(v=y(p=g[b],b,d),t))if(e)w[b]=v;else if(v)switch(t){case 3:return!0;case 5:return p;case 6:return b;case 2:rn.call(w,p)}else switch(t){case 4:return!1;case 7:rn.call(w,p)}return a?-1:r||i?i:w}},an={forEach:on(0),map:on(1),filter:on(2),some:on(3),every:on(4),find:on(5),findIndex:on(6),filterOut:on(7)},sn=$t("navigator","userAgent")||"",cn=f.process,ln=cn&&cn.versions,un=ln&&ln.v8;un?Ke=(Je=un.split("."))[0]+Je[1]:sn&&(!(Je=sn.match(/Edge\/(\d+)/))||Je[1]>=74)&&(Je=sn.match(/Chrome\/(\d+)/))&&(Ke=Je[1]);var hn=Ke&&+Ke,fn=At("species"),pn=function(t){return hn>=51||!e((function(){var e=[];return(e.constructor={})[fn]=function(){return{foo:1}},1!==e[t](Boolean).foo}))},vn=Object.defineProperty,dn={},gn=function(t){throw t},yn=function(t,n){if(R(dn,t))return dn[t];n||(n={});var r=[][t],i=!!R(n,"ACCESSORS")&&n.ACCESSORS,o=R(n,0)?n[0]:gn,a=R(n,1)?n[1]:void 0;return dn[t]=!!r&&!e((function(){if(i&&!p)return!0;var t={length:-1};i?vn(t,1,{enumerable:!0,get:gn}):t[1]=1,r.call(t,o,a)}))},mn=an.map,bn=pn("map"),kn=yn("map");gt({target:"Array",proto:!0,forced:!bn||!kn},{map:function(t){return mn(this,t,arguments.length>1?arguments[1]:void 0)}});var wn=function(t){return ht[t+"Prototype"]},Cn=wn("Array").map,En=Array.prototype,On=function(t){var e=t.map;return t===En||t instanceof Array&&e===En.map?Cn:e};gt({target:"Array",stat:!0},{isArray:tn});var Tn=ht.Array.isArray,_n=Tn,An={f:At},Fn=C.f,Sn=function(t){var e=ht.Symbol||(ht.Symbol={});R(e,t)||Fn(e,t,{value:An.f(t)})};Sn("iterator");var xn=An.f("iterator"),Pn=At("isConcatSpreadable"),Dn=9007199254740991,jn="Maximum allowed index exceeded",In=hn>=51||!e((function(){var t=[];return t[Pn]=!1,t.concat()[0]!==t})),Rn=pn("concat"),Nn=function(t){if(!v(t))return!1;var e=t[Pn];return void 0!==e?!!e:tn(t)};gt({target:"Array",proto:!0,forced:!In||!Rn},{concat:function(t){var e,n,r,i,o,a=yt(this),s=nn(a,0),c=0;for(e=-1,r=arguments.length;e<r;e++)if(Nn(o=-1===e?a:arguments[e])){if(c+(i=Mt(o.length))>Dn)throw TypeError(jn);for(n=0;n<i;n++,c++)n in o&&We(s,c,o[n])}else{if(c>=Dn)throw TypeError(jn);We(s,c++,o)}return s.length=c,s}});var Mn=Yt.concat("length","prototype"),Bn={f:Object.getOwnPropertyNames||function(t){return qt(t,Mn)}},Ln=Bn.f,Hn={}.toString,zn="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],Wn={f:function(t){return zn&&"[object Window]"==Hn.call(t)?function(t){try{return Ln(t)}catch(t){return zn.slice()}}(t):Ln(s(t))}},Vn={f:Object.getOwnPropertySymbols},qn=an.forEach,Yn=z("hidden"),Xn="Symbol",Gn=At("toPrimitive"),Un=K.set,$n=K.getterFor(Xn),Qn=Object.prototype,Jn=f.Symbol,Kn=$t("JSON","stringify"),Zn=rt.f,tr=C.f,er=Wn.f,nr=et.f,rr=N("symbols"),ir=N("op-symbols"),or=N("string-to-symbol-registry"),ar=N("symbol-to-string-registry"),sr=N("wks"),cr=f.QObject,lr=!cr||!cr.prototype||!cr.prototype.findChild,ur=p&&e((function(){return 7!=ee(tr({},"a",{get:function(){return tr(this,"a",{value:7}).a}})).a}))?function(t,e,n){var r=Zn(Qn,e);r&&delete Qn[e],tr(t,e,n),r&&t!==Qn&&tr(Qn,e,r)}:tr,hr=function(t,e){var n=rr[t]=ee(Jn.prototype);return Un(n,{type:Xn,tag:t,description:e}),p||(n.description=e),n},fr=Et?function(t){return"symbol"==typeof t}:function(t){return Object(t)instanceof Jn},pr=function(t,e,n){t===Qn&&pr(ir,e,n),b(t);var r=k(e,!0);return b(n),R(rr,r)?(n.enumerable?(R(t,Yn)&&t[Yn][r]&&(t[Yn][r]=!1),n=ee(n,{enumerable:E(0,!1)})):(R(t,Yn)||tr(t,Yn,E(1,{})),t[Yn][r]=!0),ur(t,r,n)):tr(t,r,n)},vr=function(t,e){b(t);var n=s(e),r=Xt(n).concat(mr(n));return qn(r,(function(e){p&&!dr.call(n,e)||pr(t,e,n[e])})),t},dr=function(t){var e=k(t,!0),n=nr.call(this,e);return!(this===Qn&&R(rr,e)&&!R(ir,e))&&(!(n||!R(this,e)||!R(rr,e)||R(this,Yn)&&this[Yn][e])||n)},gr=function(t,e){var n=s(t),r=k(e,!0);if(n!==Qn||!R(rr,r)||R(ir,r)){var i=Zn(n,r);return!i||!R(rr,r)||R(n,Yn)&&n[Yn][r]||(i.enumerable=!0),i}},yr=function(t){var e=er(s(t)),n=[];return qn(e,(function(t){R(rr,t)||R(W,t)||n.push(t)})),n},mr=function(t){var e=t===Qn,n=er(e?ir:s(t)),r=[];return qn(n,(function(t){!R(rr,t)||e&&!R(Qn,t)||r.push(rr[t])})),r};if(Ct||(pe((Jn=function(){if(this instanceof Jn)throw TypeError("Symbol is not a constructor");var t=arguments.length&&void 0!==arguments[0]?String(arguments[0]):void 0,e=L(t),n=function(t){this===Qn&&n.call(ir,t),R(this,Yn)&&R(this[Yn],e)&&(this[Yn][e]=!1),ur(this,e,E(1,t))};return p&&lr&&ur(Qn,e,{configurable:!0,set:n}),hr(e,t)}).prototype,"toString",(function(){return $n(this).tag})),pe(Jn,"withoutSetter",(function(t){return hr(L(t),t)})),et.f=dr,C.f=pr,rt.f=gr,Bn.f=Wn.f=yr,Vn.f=mr,An.f=function(t){return hr(At(t),t)},p&&tr(Jn.prototype,"description",{configurable:!0,get:function(){return $n(this).description}})),gt({global:!0,wrap:!0,forced:!Ct,sham:!Ct},{Symbol:Jn}),qn(Xt(sr),(function(t){Sn(t)})),gt({target:Xn,stat:!0,forced:!Ct},{for:function(t){var e=String(t);if(R(or,e))return or[e];var n=Jn(e);return or[e]=n,ar[n]=e,n},keyFor:function(t){if(!fr(t))throw TypeError(t+" is not a symbol");if(R(ar,t))return ar[t]},useSetter:function(){lr=!0},useSimple:function(){lr=!1}}),gt({target:"Object",stat:!0,forced:!Ct,sham:!p},{create:function(t,e){return void 0===e?ee(t):vr(ee(t),e)},defineProperty:pr,defineProperties:vr,getOwnPropertyDescriptor:gr}),gt({target:"Object",stat:!0,forced:!Ct},{getOwnPropertyNames:yr,getOwnPropertySymbols:mr}),gt({target:"Object",stat:!0,forced:e((function(){Vn.f(1)}))},{getOwnPropertySymbols:function(t){return Vn.f(yt(t))}}),Kn){var br=!Ct||e((function(){var t=Jn();return"[null]"!=Kn([t])||"{}"!=Kn({a:t})||"{}"!=Kn(Object(t))}));gt({target:"JSON",stat:!0,forced:br},{stringify:function(t,e,n){for(var r,i=[t],o=1;arguments.length>o;)i.push(arguments[o++]);if(r=e,(v(e)||void 0!==t)&&!fr(t))return tn(e)||(e=function(t,e){if("function"==typeof r&&(e=r.call(this,t,e)),!fr(e))return e}),i[1]=e,Kn.apply(null,i)}})}Jn.prototype[Gn]||O(Jn.prototype,Gn,Jn.prototype.valueOf),ue(Jn,Xn),W[Yn]=!0,Sn("asyncIterator"),Sn("hasInstance"),Sn("isConcatSpreadable"),Sn("match"),Sn("matchAll"),Sn("replace"),Sn("search"),Sn("species"),Sn("split"),Sn("toPrimitive"),Sn("toStringTag"),Sn("unscopables"),ue(f.JSON,"JSON",!0);var kr=ht.Symbol;Sn("asyncDispose"),Sn("dispose"),Sn("observable"),Sn("patternMatch"),Sn("replaceAll");var wr=kr,Cr=u((function(t){function e(n){return t.exports=e="function"==typeof wr&&"symbol"==typeof xn?function(t){return typeof t}:function(t){return t&&"function"==typeof wr&&t.constructor===wr&&t!==wr.prototype?"symbol":typeof t},e(n)}t.exports=e})),Er=$t("Reflect","ownKeys")||function(t){var e=Bn.f(b(t)),n=Vn.f;return n?e.concat(n(t)):e};gt({target:"Reflect",stat:!0},{ownKeys:Er});var Or=ht.Reflect.ownKeys,Tr=pn("slice"),_r=yn("slice",{ACCESSORS:!0,0:0,1:2}),Ar=At("species"),Fr=[].slice,Sr=Math.max;gt({target:"Array",proto:!0,forced:!Tr||!_r},{slice:function(t,e){var n,r,i,o=s(this),a=Mt(o.length),c=Ht(t,a),l=Ht(void 0===e?a:e,a);if(tn(o)&&("function"!=typeof(n=o.constructor)||n!==Array&&!tn(n.prototype)?v(n)&&null===(n=n[Ar])&&(n=void 0):n=void 0,n===Array||void 0===n))return Fr.call(o,c,l);for(r=new(void 0===n?Array:n)(Sr(l-c,0)),i=0;c<l;c++,i++)c in o&&We(r,i,o[c]);return r.length=i,r}});var xr=wn("Array").slice,Pr=Array.prototype,Dr=function(t){var e=t.slice;return t===Pr||t instanceof Array&&e===Pr.slice?xr:e},jr=Dr,Ir=Tn;var Rr=function(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r};var Nr=function(t){if(Ir(t))return Rr(t)},Mr=Ue,Br=At("iterator"),Lr=function(t){var e=Object(t);return void 0!==e[Br]||"@@iterator"in e||c.hasOwnProperty(ae(e))};var Hr=function(t){if(void 0!==wr&&Lr(Object(t)))return Mr(t)},zr=Dr;var Wr=function(t,e){var n;if(t){if("string"==typeof t)return Rr(t,e);var r=zr(n=Object.prototype.toString.call(t)).call(n,8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Mr(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Rr(t,e):void 0}};var Vr=function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")};var qr=function(t){return Nr(t)||Hr(t)||Wr(t)||Vr()},Yr=wn("Array").concat,Xr=Array.prototype,Gr=function(t){var e=t.concat;return t===Xr||t instanceof Array&&e===Xr.concat?Yr:e},Ur=kr;function $r(t,e){var n;if(void 0===Ur||null==Me(t)){if(_n(t)||(n=function(t,e){var n;if(!t)return;if("string"==typeof t)return Qr(t,e);var r=jr(n=Object.prototype.toString.call(t)).call(n,8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return $e(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Qr(t,e)}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=Ne(t)},n:function(){var t=n.next();return a=t.done,t},e:function(t){s=!0,o=t},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function Qr(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var Jr=Ur("DELETE");function Kr(){var t=Zr.apply(void 0,arguments);return ei(t),t}function Zr(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];if(e.length<2)return e[0];var r;if(e.length>2)return Zr.apply(void 0,Gr(r=[Kr(e[0],e[1])]).call(r,qr(jr(e).call(e,2))));var i,o=e[0],a=e[1],s=$r(Or(a));try{for(s.s();!(i=s.n()).done;){var c=i.value;Object.prototype.propertyIsEnumerable.call(a,c)&&(a[c]===Jr?delete o[c]:null===o[c]||null===a[c]||"object"!==Cr(o[c])||"object"!==Cr(a[c])||_n(o[c])||_n(a[c])?o[c]=ti(a[c]):o[c]=Zr(o[c],a[c]))}}catch(t){s.e(t)}finally{s.f()}return o}function ti(t){return _n(t)?On(t).call(t,(function(t){return ti(t)})):"object"===Cr(t)&&null!==t?Zr({},t):t}function ei(t){for(var e=0,n=Ze(t);e<n.length;e++){var r=n[e];t[r]===Jr?delete t[r]:"object"===Cr(t[r])&&null!==t[r]&&ei(t[r])}}var ni=function(t){if(Ir(t))return t};var ri=function(t,e){if(void 0!==wr&&Lr(Object(t))){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=Ne(t);!(r=(a=s.next()).done)&&(n.push(a.value),!e||n.length!==e);r=!0);}catch(t){i=!0,o=t}finally{try{r||null==s.return||s.return()}finally{if(i)throw o}}return n}};var ii=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")};var oi=function(t,e){return ni(t)||ri(t,e)||Wr(t,e)||ii()};gt({target:"Date",stat:!0},{now:function(){return(new Date).getTime()}});var ai=ht.Date.now;function si(t){var e=function(){for(var t=ci(),e=t(" "),n=t(" "),r=t(" "),i=0;i<arguments.length;i++)(e-=t(i<0||arguments.length<=i?void 0:arguments[i]))<0&&(e+=1),(n-=t(i<0||arguments.length<=i?void 0:arguments[i]))<0&&(n+=1),(r-=t(i<0||arguments.length<=i?void 0:arguments[i]))<0&&(r+=1);return[e,n,r]}(t),n=oi(e,3),r=n[0],i=n[1],o=n[2],a=1,s=function(){var t=2091639*r+2.3283064365386963e-10*a;return r=i,i=o,o=t-(a=0|t)};return s.uint32=function(){return 4294967296*s()},s.fract53=function(){return s()+11102230246251565e-32*(2097152*s()|0)},s.algorithm="Alea",s.seed=t,s.version="0.9",s}function ci(){var t=4022871197;return function(e){for(var n=e.toString(),r=0;r<n.length;r++){var i=.02519603282416938*(t+=n.charCodeAt(r));i-=t=i>>>0,t=(i*=t)>>>0,t+=4294967296*(i-=t)}return 2.3283064365386963e-10*(t>>>0)}}var li=pn("splice"),ui=yn("splice",{ACCESSORS:!0,0:0,1:2}),hi=Math.max,fi=Math.min,pi=9007199254740991,vi="Maximum allowed length exceeded";gt({target:"Array",proto:!0,forced:!li||!ui},{splice:function(t,e){var n,r,i,o,a,s,c=yt(this),l=Mt(c.length),u=Ht(t,l),h=arguments.length;if(0===h?n=r=0:1===h?(n=0,r=l-u):(n=h-2,r=fi(hi(Rt(e),0),l-u)),l+n-r>pi)throw TypeError(vi);for(i=nn(c,r),o=0;o<r;o++)(a=u+o)in c&&We(i,o,c[a]);if(i.length=r,n<r){for(o=u;o<l-r;o++)s=o+n,(a=o+r)in c?c[s]=c[a]:delete c[s];for(o=l;o>l-r+n;o--)delete c[o-1]}else if(n>r)for(o=l-r;o>u;o--)s=o+n-1,(a=o+r-1)in c?c[s]=c[a]:delete c[s];for(o=0;o<n;o++)c[o+u]=arguments[o+2];return c.length=l-r+n,i}});var di=wn("Array").splice,gi=Array.prototype,yi=function(t){var e=t.splice;return t===gi||t instanceof Array&&e===gi.splice?di:e},mi=[].reverse,bi=[1,2];gt({target:"Array",proto:!0,forced:String(bi)===String(bi.reverse())},{reverse:function(){return tn(this)&&(this.length=this.length),mi.call(this)}});var ki=wn("Array").reverse,wi=Array.prototype,Ci=function(t){var e=t.reverse;return t===wi||t instanceof Array&&e===wi.reverse?ki:e},Ei=function(t,n){var r=[][t];return!!r&&e((function(){r.call(null,n||function(){throw 1},1)}))},Oi=an.forEach,Ti=Ei("forEach"),_i=yn("forEach"),Ai=Ti&&_i?[].forEach:function(t){return Oi(this,t,arguments.length>1?arguments[1]:void 0)};gt({target:"Array",proto:!0,forced:[].forEach!=Ai},{forEach:Ai});var Fi=wn("Array").forEach,Si=Array.prototype,xi={DOMTokenList:!0,NodeList:!0},Pi=function(t){var e=t.forEach;return t===Si||t instanceof Array&&e===Si.forEach||xi.hasOwnProperty(ae(t))?Fi:e},Di=[].slice,ji={},Ii=function(t,e,n){if(!(e in ji)){for(var r=[],i=0;i<e;i++)r[i]="a["+i+"]";ji[e]=Function("C,a","return new C("+r.join(",")+")")}return ji[e](t,n)},Ri=Function.bind||function(t){var e=ft(this),n=Di.call(arguments,1),r=function(){var i=n.concat(Di.call(arguments));return this instanceof r?Ii(e,i.length,i):e.apply(t,i)};return v(e.prototype)&&(r.prototype=e.prototype),r};gt({target:"Function",proto:!0},{bind:Ri});var Ni=wn("Function").bind,Mi=Function.prototype,Bi=function(t){var e=t.bind;return t===Mi||t instanceof Function&&e===Mi.bind?Ni:e},Li=u((function(t){function e(t){if(t)return function(t){for(var n in e.prototype)t[n]=e.prototype[n];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 n(){this.off(t,n),e.apply(this,arguments)}return n.fn=e,this.on(t,n),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 n,r=this._callbacks["$"+t];if(!r)return this;if(1==arguments.length)return delete this._callbacks["$"+t],this;for(var i=0;i<r.length;i++)if((n=r[i])===e||n.fn===e){r.splice(i,1);break}return 0===r.length&&delete this._callbacks["$"+t],this},e.prototype.emit=function(t){this._callbacks=this._callbacks||{};for(var e=new Array(arguments.length-1),n=this._callbacks["$"+t],r=1;r<arguments.length;r++)e[r-1]=arguments[r];if(n){r=0;for(var i=(n=n.slice(0)).length;r<i;++r)n[r].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}}));
|
|
26
|
+
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e((t="undefined"!=typeof globalThis?globalThis:t||self).vis=t.vis||{})}(this,(function(t){var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function n(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var r=function(t){try{return!!t()}catch(t){return!0}},i=!r((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")})),o=i,a=Function.prototype,s=a.call,c=o&&a.bind.bind(s,s),u=o?c:function(t){return function(){return s.apply(t,arguments)}},l=Math.ceil,h=Math.floor,f=Math.trunc||function(t){var e=+t;return(e>0?h:l)(e)},p=function(t){var e=+t;return e!=e||0===e?0:f(e)},v=function(t){return t&&t.Math==Math&&t},d=v("object"==typeof globalThis&&globalThis)||v("object"==typeof window&&window)||v("object"==typeof self&&self)||v("object"==typeof e&&e)||function(){return this}()||Function("return this")(),g={exports:{}},y=d,m=Object.defineProperty,b=function(t,e){try{m(y,t,{value:e,configurable:!0,writable:!0})}catch(n){y[t]=e}return e},k="__core-js_shared__",w=d[k]||b(k,{}),C=w;(g.exports=function(t,e){return C[t]||(C[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.29.0",mode:"pure",copyright:"© 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.29.0/LICENSE",source:"https://github.com/zloirock/core-js"});var E,O,T=g.exports,F=function(t){return null==t},_=F,S=TypeError,A=function(t){if(_(t))throw S("Can't call method on "+t);return t},x=A,P=Object,D=function(t){return P(x(t))},j=D,I=u({}.hasOwnProperty),R=Object.hasOwn||function(t,e){return I(j(t),e)},N=u,M=0,B=Math.random(),L=N(1..toString),H=function(t){return"Symbol("+(void 0===t?"":t)+")_"+L(++M+B,36)},z="undefined"!=typeof navigator&&String(navigator.userAgent)||"",W=d,V=z,q=W.process,Y=W.Deno,X=q&&q.versions||Y&&Y.version,G=X&&X.v8;G&&(O=(E=G.split("."))[0]>0&&E[0]<4?1:+(E[0]+E[1])),!O&&V&&(!(E=V.match(/Edge\/(\d+)/))||E[1]>=74)&&(E=V.match(/Chrome\/(\d+)/))&&(O=+E[1]);var U=O,$=U,Q=r,J=!!Object.getOwnPropertySymbols&&!Q((function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&$&&$<41})),K=J&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,Z=T,tt=R,et=H,nt=J,rt=K,it=d.Symbol,ot=Z("wks"),at=rt?it.for||it:it&&it.withoutSetter||et,st=function(t){return tt(ot,t)||(ot[t]=nt&&tt(it,t)?it[t]:at("Symbol."+t)),ot[t]},ct={};ct[st("toStringTag")]="z";var ut="[object z]"===String(ct),lt="object"==typeof document&&document.all,ht={all:lt,IS_HTMLDDA:void 0===lt&&void 0!==lt},ft=ht.all,pt=ht.IS_HTMLDDA?function(t){return"function"==typeof t||t===ft}:function(t){return"function"==typeof t},vt=u,dt=vt({}.toString),gt=vt("".slice),yt=function(t){return gt(dt(t),8,-1)},mt=ut,bt=pt,kt=yt,wt=st("toStringTag"),Ct=Object,Et="Arguments"==kt(function(){return arguments}()),Ot=mt?kt:function(t){var e,n,r;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=function(t,e){try{return t[e]}catch(t){}}(e=Ct(t),wt))?n:Et?kt(e):"Object"==(r=kt(e))&&bt(e.callee)?"Arguments":r},Tt=Ot,Ft=String,_t=function(t){if("Symbol"===Tt(t))throw TypeError("Cannot convert a Symbol value to a string");return Ft(t)},St=u,At=p,xt=_t,Pt=A,Dt=St("".charAt),jt=St("".charCodeAt),It=St("".slice),Rt=function(t){return function(e,n){var r,i,o=xt(Pt(e)),a=At(n),s=o.length;return a<0||a>=s?t?"":void 0:(r=jt(o,a))<55296||r>56319||a+1===s||(i=jt(o,a+1))<56320||i>57343?t?Dt(o,a):r:t?It(o,a,a+2):i-56320+(r-55296<<10)+65536}},Nt={codeAt:Rt(!1),charAt:Rt(!0)},Mt=pt,Bt=d.WeakMap,Lt=Mt(Bt)&&/native code/.test(String(Bt)),Ht=pt,zt=ht.all,Wt=ht.IS_HTMLDDA?function(t){return"object"==typeof t?null!==t:Ht(t)||t===zt}:function(t){return"object"==typeof t?null!==t:Ht(t)},Vt=!r((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),qt={},Yt=Wt,Xt=d.document,Gt=Yt(Xt)&&Yt(Xt.createElement),Ut=function(t){return Gt?Xt.createElement(t):{}},$t=Ut,Qt=!Vt&&!r((function(){return 7!=Object.defineProperty($t("div"),"a",{get:function(){return 7}}).a})),Jt=Vt&&r((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),Kt=Wt,Zt=String,te=TypeError,ee=function(t){if(Kt(t))return t;throw te(Zt(t)+" is not an object")},ne=i,re=Function.prototype.call,ie=ne?re.bind(re):function(){return re.apply(re,arguments)},oe={},ae=oe,se=d,ce=pt,ue=function(t){return ce(t)?t:void 0},le=function(t,e){return arguments.length<2?ue(ae[t])||ue(se[t]):ae[t]&&ae[t][e]||se[t]&&se[t][e]},he=u({}.isPrototypeOf),fe=le,pe=pt,ve=he,de=Object,ge=K?function(t){return"symbol"==typeof t}:function(t){var e=fe("Symbol");return pe(e)&&ve(e.prototype,de(t))},ye=String,me=function(t){try{return ye(t)}catch(t){return"Object"}},be=pt,ke=me,we=TypeError,Ce=function(t){if(be(t))return t;throw we(ke(t)+" is not a function")},Ee=Ce,Oe=F,Te=function(t,e){var n=t[e];return Oe(n)?void 0:Ee(n)},Fe=ie,_e=pt,Se=Wt,Ae=TypeError,xe=ie,Pe=Wt,De=ge,je=Te,Ie=function(t,e){var n,r;if("string"===e&&_e(n=t.toString)&&!Se(r=Fe(n,t)))return r;if(_e(n=t.valueOf)&&!Se(r=Fe(n,t)))return r;if("string"!==e&&_e(n=t.toString)&&!Se(r=Fe(n,t)))return r;throw Ae("Can't convert object to primitive value")},Re=TypeError,Ne=st("toPrimitive"),Me=function(t,e){if(!Pe(t)||De(t))return t;var n,r=je(t,Ne);if(r){if(void 0===e&&(e="default"),n=xe(r,t,e),!Pe(n)||De(n))return n;throw Re("Can't convert object to primitive value")}return void 0===e&&(e="number"),Ie(t,e)},Be=ge,Le=function(t){var e=Me(t,"string");return Be(e)?e:e+""},He=Vt,ze=Qt,We=Jt,Ve=ee,qe=Le,Ye=TypeError,Xe=Object.defineProperty,Ge=Object.getOwnPropertyDescriptor,Ue="enumerable",$e="configurable",Qe="writable";qt.f=He?We?function(t,e,n){if(Ve(t),e=qe(e),Ve(n),"function"==typeof t&&"prototype"===e&&"value"in n&&Qe in n&&!n[Qe]){var r=Ge(t,e);r&&r[Qe]&&(t[e]=n.value,n={configurable:$e in n?n[$e]:r[$e],enumerable:Ue in n?n[Ue]:r[Ue],writable:!1})}return Xe(t,e,n)}:Xe:function(t,e,n){if(Ve(t),e=qe(e),Ve(n),ze)try{return Xe(t,e,n)}catch(t){}if("get"in n||"set"in n)throw Ye("Accessors not supported");return"value"in n&&(t[e]=n.value),t};var Je,Ke,Ze,tn=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},en=qt,nn=tn,rn=Vt?function(t,e,n){return en.f(t,e,nn(1,n))}:function(t,e,n){return t[e]=n,t},on=H,an=T("keys"),sn=function(t){return an[t]||(an[t]=on(t))},cn={},un=Lt,ln=d,hn=Wt,fn=rn,pn=R,vn=w,dn=sn,gn=cn,yn="Object already initialized",mn=ln.TypeError,bn=ln.WeakMap;if(un||vn.state){var kn=vn.state||(vn.state=new bn);kn.get=kn.get,kn.has=kn.has,kn.set=kn.set,Je=function(t,e){if(kn.has(t))throw mn(yn);return e.facade=t,kn.set(t,e),e},Ke=function(t){return kn.get(t)||{}},Ze=function(t){return kn.has(t)}}else{var wn=dn("state");gn[wn]=!0,Je=function(t,e){if(pn(t,wn))throw mn(yn);return e.facade=t,fn(t,wn,e),e},Ke=function(t){return pn(t,wn)?t[wn]:{}},Ze=function(t){return pn(t,wn)}}var Cn={set:Je,get:Ke,has:Ze,enforce:function(t){return Ze(t)?Ke(t):Je(t,{})},getterFor:function(t){return function(e){var n;if(!hn(e)||(n=Ke(e)).type!==t)throw mn("Incompatible receiver, "+t+" required");return n}}},En=i,On=Function.prototype,Tn=On.apply,Fn=On.call,_n="object"==typeof Reflect&&Reflect.apply||(En?Fn.bind(Tn):function(){return Fn.apply(Tn,arguments)}),Sn=yt,An=u,xn=function(t){if("Function"===Sn(t))return An(t)},Pn={},Dn={},jn={}.propertyIsEnumerable,In=Object.getOwnPropertyDescriptor,Rn=In&&!jn.call({1:2},1);Dn.f=Rn?function(t){var e=In(this,t);return!!e&&e.enumerable}:jn;var Nn=r,Mn=yt,Bn=Object,Ln=u("".split),Hn=Nn((function(){return!Bn("z").propertyIsEnumerable(0)}))?function(t){return"String"==Mn(t)?Ln(t,""):Bn(t)}:Bn,zn=Hn,Wn=A,Vn=function(t){return zn(Wn(t))},qn=Vt,Yn=ie,Xn=Dn,Gn=tn,Un=Vn,$n=Le,Qn=R,Jn=Qt,Kn=Object.getOwnPropertyDescriptor;Pn.f=qn?Kn:function(t,e){if(t=Un(t),e=$n(e),Jn)try{return Kn(t,e)}catch(t){}if(Qn(t,e))return Gn(!Yn(Xn.f,t,e),t[e])};var Zn=r,tr=pt,er=/#|\.prototype\./,nr=function(t,e){var n=ir[rr(t)];return n==ar||n!=or&&(tr(e)?Zn(e):!!e)},rr=nr.normalize=function(t){return String(t).replace(er,".").toLowerCase()},ir=nr.data={},or=nr.NATIVE="N",ar=nr.POLYFILL="P",sr=nr,cr=Ce,ur=i,lr=xn(xn.bind),hr=function(t,e){return cr(t),void 0===e?t:ur?lr(t,e):function(){return t.apply(e,arguments)}},fr=d,pr=_n,vr=xn,dr=pt,gr=Pn.f,yr=sr,mr=oe,br=hr,kr=rn,wr=R,Cr=function(t){var e=function(n,r,i){if(this instanceof e){switch(arguments.length){case 0:return new t;case 1:return new t(n);case 2:return new t(n,r)}return new t(n,r,i)}return pr(t,this,arguments)};return e.prototype=t.prototype,e},Er=function(t,e){var n,r,i,o,a,s,c,u,l,h=t.target,f=t.global,p=t.stat,v=t.proto,d=f?fr:p?fr[h]:(fr[h]||{}).prototype,g=f?mr:mr[h]||kr(mr,h,{})[h],y=g.prototype;for(o in e)r=!(n=yr(f?o:h+(p?".":"#")+o,t.forced))&&d&&wr(d,o),s=g[o],r&&(c=t.dontCallGetSet?(l=gr(d,o))&&l.value:d[o]),a=r&&c?c:e[o],r&&typeof s==typeof a||(u=t.bind&&r?br(a,fr):t.wrap&&r?Cr(a):v&&dr(a)?vr(a):a,(t.sham||a&&a.sham||s&&s.sham)&&kr(u,"sham",!0),kr(g,o,u),v&&(wr(mr,i=h+"Prototype")||kr(mr,i,{}),kr(mr[i],o,a),t.real&&y&&(n||!y[o])&&kr(y,o,a)))},Or=Vt,Tr=R,Fr=Function.prototype,_r=Or&&Object.getOwnPropertyDescriptor,Sr=Tr(Fr,"name"),Ar={EXISTS:Sr,PROPER:Sr&&"something"===function(){}.name,CONFIGURABLE:Sr&&(!Or||Or&&_r(Fr,"name").configurable)},xr={},Pr=p,Dr=Math.max,jr=Math.min,Ir=function(t,e){var n=Pr(t);return n<0?Dr(n+e,0):jr(n,e)},Rr=p,Nr=Math.min,Mr=function(t){return t>0?Nr(Rr(t),9007199254740991):0},Br=function(t){return Mr(t.length)},Lr=Vn,Hr=Ir,zr=Br,Wr=function(t){return function(e,n,r){var i,o=Lr(e),a=zr(o),s=Hr(r,a);if(t&&n!=n){for(;a>s;)if((i=o[s++])!=i)return!0}else for(;a>s;s++)if((t||s in o)&&o[s]===n)return t||s||0;return!t&&-1}},Vr={includes:Wr(!0),indexOf:Wr(!1)},qr=R,Yr=Vn,Xr=Vr.indexOf,Gr=cn,Ur=u([].push),$r=function(t,e){var n,r=Yr(t),i=0,o=[];for(n in r)!qr(Gr,n)&&qr(r,n)&&Ur(o,n);for(;e.length>i;)qr(r,n=e[i++])&&(~Xr(o,n)||Ur(o,n));return o},Qr=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Jr=$r,Kr=Qr,Zr=Object.keys||function(t){return Jr(t,Kr)},ti=Vt,ei=Jt,ni=qt,ri=ee,ii=Vn,oi=Zr;xr.f=ti&&!ei?Object.defineProperties:function(t,e){ri(t);for(var n,r=ii(e),i=oi(e),o=i.length,a=0;o>a;)ni.f(t,n=i[a++],r[n]);return t};var ai,si=le("document","documentElement"),ci=ee,ui=xr,li=Qr,hi=cn,fi=si,pi=Ut,vi="prototype",di="script",gi=sn("IE_PROTO"),yi=function(){},mi=function(t){return"<"+di+">"+t+"</"+di+">"},bi=function(t){t.write(mi("")),t.close();var e=t.parentWindow.Object;return t=null,e},ki=function(){try{ai=new ActiveXObject("htmlfile")}catch(t){}var t,e,n;ki="undefined"!=typeof document?document.domain&&ai?bi(ai):(e=pi("iframe"),n="java"+di+":",e.style.display="none",fi.appendChild(e),e.src=String(n),(t=e.contentWindow.document).open(),t.write(mi("document.F=Object")),t.close(),t.F):bi(ai);for(var r=li.length;r--;)delete ki[vi][li[r]];return ki()};hi[gi]=!0;var wi,Ci,Ei,Oi=Object.create||function(t,e){var n;return null!==t?(yi[vi]=ci(t),n=new yi,yi[vi]=null,n[gi]=t):n=ki(),void 0===e?n:ui.f(n,e)},Ti=!r((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype})),Fi=R,_i=pt,Si=D,Ai=Ti,xi=sn("IE_PROTO"),Pi=Object,Di=Pi.prototype,ji=Ai?Pi.getPrototypeOf:function(t){var e=Si(t);if(Fi(e,xi))return e[xi];var n=e.constructor;return _i(n)&&e instanceof n?n.prototype:e instanceof Pi?Di:null},Ii=rn,Ri=function(t,e,n,r){return r&&r.enumerable?t[e]=n:Ii(t,e,n),t},Ni=r,Mi=pt,Bi=Wt,Li=Oi,Hi=ji,zi=Ri,Wi=st("iterator"),Vi=!1;[].keys&&("next"in(Ei=[].keys())?(Ci=Hi(Hi(Ei)))!==Object.prototype&&(wi=Ci):Vi=!0);var qi=!Bi(wi)||Ni((function(){var t={};return wi[Wi].call(t)!==t}));Mi((wi=qi?{}:Li(wi))[Wi])||zi(wi,Wi,(function(){return this}));var Yi={IteratorPrototype:wi,BUGGY_SAFARI_ITERATORS:Vi},Xi=Ot,Gi=ut?{}.toString:function(){return"[object "+Xi(this)+"]"},Ui=ut,$i=qt.f,Qi=rn,Ji=R,Ki=Gi,Zi=st("toStringTag"),to=function(t,e,n,r){if(t){var i=n?t:t.prototype;Ji(i,Zi)||$i(i,Zi,{configurable:!0,value:e}),r&&!Ui&&Qi(i,"toString",Ki)}},eo={},no=Yi.IteratorPrototype,ro=Oi,io=tn,oo=to,ao=eo,so=function(){return this},co=Er,uo=ie,lo=Ar,ho=function(t,e,n,r){var i=e+" Iterator";return t.prototype=ro(no,{next:io(+!r,n)}),oo(t,i,!1,!0),ao[i]=so,t},fo=ji,po=to,vo=Ri,go=eo,yo=Yi,mo=lo.PROPER,bo=yo.BUGGY_SAFARI_ITERATORS,ko=st("iterator"),wo="keys",Co="values",Eo="entries",Oo=function(){return this},To=function(t,e,n,r,i,o,a){ho(n,e,r);var s,c,u,l=function(t){if(t===i&&d)return d;if(!bo&&t in p)return p[t];switch(t){case wo:case Co:case Eo:return function(){return new n(this,t)}}return function(){return new n(this)}},h=e+" Iterator",f=!1,p=t.prototype,v=p[ko]||p["@@iterator"]||i&&p[i],d=!bo&&v||l(i),g="Array"==e&&p.entries||v;if(g&&(s=fo(g.call(new t)))!==Object.prototype&&s.next&&(po(s,h,!0,!0),go[h]=Oo),mo&&i==Co&&v&&v.name!==Co&&(f=!0,d=function(){return uo(v,this)}),i)if(c={values:l(Co),keys:o?d:l(wo),entries:l(Eo)},a)for(u in c)(bo||f||!(u in p))&&vo(p,u,c[u]);else co({target:e,proto:!0,forced:bo||f},c);return a&&p[ko]!==d&&vo(p,ko,d,{name:i}),go[e]=d,c},Fo=function(t,e){return{value:t,done:e}},_o=Nt.charAt,So=_t,Ao=Cn,xo=To,Po=Fo,Do="String Iterator",jo=Ao.set,Io=Ao.getterFor(Do);xo(String,"String",(function(t){jo(this,{type:Do,string:So(t),index:0})}),(function(){var t,e=Io(this),n=e.string,r=e.index;return r>=n.length?Po(void 0,!0):(t=_o(n,r),e.index+=t.length,Po(t,!1))}));var Ro=ie,No=ee,Mo=Te,Bo=ee,Lo=function(t,e,n){var r,i;No(t);try{if(!(r=Mo(t,"return"))){if("throw"===e)throw n;return n}r=Ro(r,t)}catch(t){i=!0,r=t}if("throw"===e)throw n;if(i)throw r;return No(r),n},Ho=eo,zo=st("iterator"),Wo=Array.prototype,Vo=pt,qo=w,Yo=u(Function.toString);Vo(qo.inspectSource)||(qo.inspectSource=function(t){return Yo(t)});var Xo=qo.inspectSource,Go=u,Uo=r,$o=pt,Qo=Ot,Jo=Xo,Ko=function(){},Zo=[],ta=le("Reflect","construct"),ea=/^\s*(?:class|function)\b/,na=Go(ea.exec),ra=!ea.exec(Ko),ia=function(t){if(!$o(t))return!1;try{return ta(Ko,Zo,t),!0}catch(t){return!1}},oa=function(t){if(!$o(t))return!1;switch(Qo(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return ra||!!na(ea,Jo(t))}catch(t){return!0}};oa.sham=!0;var aa=!ta||Uo((function(){var t;return ia(ia.call)||!ia(Object)||!ia((function(){t=!0}))||t}))?oa:ia,sa=Le,ca=qt,ua=tn,la=function(t,e,n){var r=sa(e);r in t?ca.f(t,r,ua(0,n)):t[r]=n},ha=Ot,fa=Te,pa=F,va=eo,da=st("iterator"),ga=function(t){if(!pa(t))return fa(t,da)||fa(t,"@@iterator")||va[ha(t)]},ya=ie,ma=Ce,ba=ee,ka=me,wa=ga,Ca=TypeError,Ea=hr,Oa=ie,Ta=D,Fa=function(t,e,n,r){try{return r?e(Bo(n)[0],n[1]):e(n)}catch(e){Lo(t,"throw",e)}},_a=function(t){return void 0!==t&&(Ho.Array===t||Wo[zo]===t)},Sa=aa,Aa=Br,xa=la,Pa=function(t,e){var n=arguments.length<2?wa(t):e;if(ma(n))return ba(ya(n,t));throw Ca(ka(t)+" is not iterable")},Da=ga,ja=Array,Ia=st("iterator"),Ra=!1;try{var Na=0,Ma={next:function(){return{done:!!Na++}},return:function(){Ra=!0}};Ma[Ia]=function(){return this},Array.from(Ma,(function(){throw 2}))}catch(t){}var Ba=function(t){var e=Ta(t),n=Sa(this),r=arguments.length,i=r>1?arguments[1]:void 0,o=void 0!==i;o&&(i=Ea(i,r>2?arguments[2]:void 0));var a,s,c,u,l,h,f=Da(e),p=0;if(!f||this===ja&&_a(f))for(a=Aa(e),s=n?new this(a):ja(a);a>p;p++)h=o?i(e[p],p):e[p],xa(s,p,h);else for(l=(u=Pa(e,f)).next,s=n?new this:[];!(c=Oa(l,u)).done;p++)h=o?Fa(u,i,[c.value,p],!0):c.value,xa(s,p,h);return s.length=p,s},La=function(t,e){if(!e&&!Ra)return!1;var n=!1;try{var r={};r[Ia]=function(){return{next:function(){return{done:n=!0}}}},t(r)}catch(t){}return n};Er({target:"Array",stat:!0,forced:!La((function(t){Array.from(t)}))},{from:Ba});var Ha=oe.Array.from,za=n(Ha),Wa=Vn,Va=eo,qa=Cn;qt.f;var Ya=To,Xa=Fo,Ga="Array Iterator",Ua=qa.set,$a=qa.getterFor(Ga);Ya(Array,"Array",(function(t,e){Ua(this,{type:Ga,target:Wa(t),index:0,kind:e})}),(function(){var t=$a(this),e=t.target,n=t.kind,r=t.index++;return!e||r>=e.length?(t.target=void 0,Xa(void 0,!0)):Xa("keys"==n?r:"values"==n?e[r]:[r,e[r]],!1)}),"values"),Va.Arguments=Va.Array;var Qa=ga,Ja={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},Ka=d,Za=Ot,ts=rn,es=eo,ns=st("toStringTag");for(var rs in Ja){var is=Ka[rs],os=is&&is.prototype;os&&Za(os)!==ns&&ts(os,ns,rs),es[rs]=es.Array}var as=n(Qa),ss=yt,cs=Array.isArray||function(t){return"Array"==ss(t)},us=TypeError,ls=function(t){if(t>9007199254740991)throw us("Maximum allowed index exceeded");return t},hs=cs,fs=aa,ps=Wt,vs=st("species"),ds=Array,gs=function(t){var e;return hs(t)&&(e=t.constructor,(fs(e)&&(e===ds||hs(e.prototype))||ps(e)&&null===(e=e[vs]))&&(e=void 0)),void 0===e?ds:e},ys=function(t,e){return new(gs(t))(0===e?0:e)},ms=r,bs=U,ks=st("species"),ws=function(t){return bs>=51||!ms((function(){var e=[];return(e.constructor={})[ks]=function(){return{foo:1}},1!==e[t](Boolean).foo}))},Cs=Er,Es=r,Os=cs,Ts=Wt,Fs=D,_s=Br,Ss=ls,As=la,xs=ys,Ps=ws,Ds=U,js=st("isConcatSpreadable"),Is=Ds>=51||!Es((function(){var t=[];return t[js]=!1,t.concat()[0]!==t})),Rs=function(t){if(!Ts(t))return!1;var e=t[js];return void 0!==e?!!e:Os(t)};Cs({target:"Array",proto:!0,arity:1,forced:!Is||!Ps("concat")},{concat:function(t){var e,n,r,i,o,a=Fs(this),s=xs(a,0),c=0;for(e=-1,r=arguments.length;e<r;e++)if(Rs(o=-1===e?a:arguments[e]))for(i=_s(o),Ss(c+i),n=0;n<i;n++,c++)n in o&&As(s,c,o[n]);else Ss(c+1),As(s,c++,o);return s.length=c,s}});var Ns={},Ms=$r,Bs=Qr.concat("length","prototype");Ns.f=Object.getOwnPropertyNames||function(t){return Ms(t,Bs)};var Ls={},Hs=Ir,zs=Br,Ws=la,Vs=Array,qs=Math.max,Ys=yt,Xs=Vn,Gs=Ns.f,Us=function(t,e,n){for(var r=zs(t),i=Hs(e,r),o=Hs(void 0===n?r:n,r),a=Vs(qs(o-i,0)),s=0;i<o;i++,s++)Ws(a,s,t[i]);return a.length=s,a},$s="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];Ls.f=function(t){return $s&&"Window"==Ys(t)?function(t){try{return Gs(t)}catch(t){return Us($s)}}(t):Gs(Xs(t))};var Qs={};Qs.f=Object.getOwnPropertySymbols;var Js=qt,Ks={},Zs=st;Ks.f=Zs;var tc=oe,ec=R,nc=Ks,rc=qt.f,ic=function(t){var e=tc.Symbol||(tc.Symbol={});ec(e,t)||rc(e,t,{value:nc.f(t)})},oc=ie,ac=le,sc=st,cc=Ri,uc=function(){var t=ac("Symbol"),e=t&&t.prototype,n=e&&e.valueOf,r=sc("toPrimitive");e&&!e[r]&&cc(e,r,(function(t){return oc(n,this)}),{arity:1})},lc=hr,hc=Hn,fc=D,pc=Br,vc=ys,dc=u([].push),gc=function(t){var e=1==t,n=2==t,r=3==t,i=4==t,o=6==t,a=7==t,s=5==t||o;return function(c,u,l,h){for(var f,p,v=fc(c),d=hc(v),g=lc(u,l),y=pc(d),m=0,b=h||vc,k=e?b(c,y):n||a?b(c,0):void 0;y>m;m++)if((s||m in d)&&(p=g(f=d[m],m,v),t))if(e)k[m]=p;else if(p)switch(t){case 3:return!0;case 5:return f;case 6:return m;case 2:dc(k,f)}else switch(t){case 4:return!1;case 7:dc(k,f)}return o?-1:r||i?i:k}},yc={forEach:gc(0),map:gc(1),filter:gc(2),some:gc(3),every:gc(4),find:gc(5),findIndex:gc(6),filterReject:gc(7)},mc=Er,bc=d,kc=ie,wc=u,Cc=Vt,Ec=J,Oc=r,Tc=R,Fc=he,_c=ee,Sc=Vn,Ac=Le,xc=_t,Pc=tn,Dc=Oi,jc=Zr,Ic=Ns,Rc=Ls,Nc=Qs,Mc=Pn,Bc=qt,Lc=xr,Hc=Dn,zc=Ri,Wc=function(t,e,n){return Js.f(t,e,n)},Vc=T,qc=cn,Yc=H,Xc=st,Gc=Ks,Uc=ic,$c=uc,Qc=to,Jc=Cn,Kc=yc.forEach,Zc=sn("hidden"),tu="Symbol",eu="prototype",nu=Jc.set,ru=Jc.getterFor(tu),iu=Object[eu],ou=bc.Symbol,au=ou&&ou[eu],su=bc.TypeError,cu=bc.QObject,uu=Mc.f,lu=Bc.f,hu=Rc.f,fu=Hc.f,pu=wc([].push),vu=Vc("symbols"),du=Vc("op-symbols"),gu=Vc("wks"),yu=!cu||!cu[eu]||!cu[eu].findChild,mu=Cc&&Oc((function(){return 7!=Dc(lu({},"a",{get:function(){return lu(this,"a",{value:7}).a}})).a}))?function(t,e,n){var r=uu(iu,e);r&&delete iu[e],lu(t,e,n),r&&t!==iu&&lu(iu,e,r)}:lu,bu=function(t,e){var n=vu[t]=Dc(au);return nu(n,{type:tu,tag:t,description:e}),Cc||(n.description=e),n},ku=function(t,e,n){t===iu&&ku(du,e,n),_c(t);var r=Ac(e);return _c(n),Tc(vu,r)?(n.enumerable?(Tc(t,Zc)&&t[Zc][r]&&(t[Zc][r]=!1),n=Dc(n,{enumerable:Pc(0,!1)})):(Tc(t,Zc)||lu(t,Zc,Pc(1,{})),t[Zc][r]=!0),mu(t,r,n)):lu(t,r,n)},wu=function(t,e){_c(t);var n=Sc(e),r=jc(n).concat(Tu(n));return Kc(r,(function(e){Cc&&!kc(Cu,n,e)||ku(t,e,n[e])})),t},Cu=function(t){var e=Ac(t),n=kc(fu,this,e);return!(this===iu&&Tc(vu,e)&&!Tc(du,e))&&(!(n||!Tc(this,e)||!Tc(vu,e)||Tc(this,Zc)&&this[Zc][e])||n)},Eu=function(t,e){var n=Sc(t),r=Ac(e);if(n!==iu||!Tc(vu,r)||Tc(du,r)){var i=uu(n,r);return!i||!Tc(vu,r)||Tc(n,Zc)&&n[Zc][r]||(i.enumerable=!0),i}},Ou=function(t){var e=hu(Sc(t)),n=[];return Kc(e,(function(t){Tc(vu,t)||Tc(qc,t)||pu(n,t)})),n},Tu=function(t){var e=t===iu,n=hu(e?du:Sc(t)),r=[];return Kc(n,(function(t){!Tc(vu,t)||e&&!Tc(iu,t)||pu(r,vu[t])})),r};Ec||(ou=function(){if(Fc(au,this))throw su("Symbol is not a constructor");var t=arguments.length&&void 0!==arguments[0]?xc(arguments[0]):void 0,e=Yc(t),n=function(t){this===iu&&kc(n,du,t),Tc(this,Zc)&&Tc(this[Zc],e)&&(this[Zc][e]=!1),mu(this,e,Pc(1,t))};return Cc&&yu&&mu(iu,e,{configurable:!0,set:n}),bu(e,t)},zc(au=ou[eu],"toString",(function(){return ru(this).tag})),zc(ou,"withoutSetter",(function(t){return bu(Yc(t),t)})),Hc.f=Cu,Bc.f=ku,Lc.f=wu,Mc.f=Eu,Ic.f=Rc.f=Ou,Nc.f=Tu,Gc.f=function(t){return bu(Xc(t),t)},Cc&&Wc(au,"description",{configurable:!0,get:function(){return ru(this).description}})),mc({global:!0,constructor:!0,wrap:!0,forced:!Ec,sham:!Ec},{Symbol:ou}),Kc(jc(gu),(function(t){Uc(t)})),mc({target:tu,stat:!0,forced:!Ec},{useSetter:function(){yu=!0},useSimple:function(){yu=!1}}),mc({target:"Object",stat:!0,forced:!Ec,sham:!Cc},{create:function(t,e){return void 0===e?Dc(t):wu(Dc(t),e)},defineProperty:ku,defineProperties:wu,getOwnPropertyDescriptor:Eu}),mc({target:"Object",stat:!0,forced:!Ec},{getOwnPropertyNames:Ou}),$c(),Qc(ou,tu),qc[Zc]=!0;var Fu=J&&!!Symbol.for&&!!Symbol.keyFor,_u=Er,Su=le,Au=R,xu=_t,Pu=T,Du=Fu,ju=Pu("string-to-symbol-registry"),Iu=Pu("symbol-to-string-registry");_u({target:"Symbol",stat:!0,forced:!Du},{for:function(t){var e=xu(t);if(Au(ju,e))return ju[e];var n=Su("Symbol")(e);return ju[e]=n,Iu[n]=e,n}});var Ru=Er,Nu=R,Mu=ge,Bu=me,Lu=Fu,Hu=T("symbol-to-string-registry");Ru({target:"Symbol",stat:!0,forced:!Lu},{keyFor:function(t){if(!Mu(t))throw TypeError(Bu(t)+" is not a symbol");if(Nu(Hu,t))return Hu[t]}});var zu=u([].slice),Wu=cs,Vu=pt,qu=yt,Yu=_t,Xu=u([].push),Gu=Er,Uu=le,$u=_n,Qu=ie,Ju=u,Ku=r,Zu=pt,tl=ge,el=zu,nl=function(t){if(Vu(t))return t;if(Wu(t)){for(var e=t.length,n=[],r=0;r<e;r++){var i=t[r];"string"==typeof i?Xu(n,i):"number"!=typeof i&&"Number"!=qu(i)&&"String"!=qu(i)||Xu(n,Yu(i))}var o=n.length,a=!0;return function(t,e){if(a)return a=!1,e;if(Wu(this))return e;for(var r=0;r<o;r++)if(n[r]===t)return e}}},rl=J,il=String,ol=Uu("JSON","stringify"),al=Ju(/./.exec),sl=Ju("".charAt),cl=Ju("".charCodeAt),ul=Ju("".replace),ll=Ju(1..toString),hl=/[\uD800-\uDFFF]/g,fl=/^[\uD800-\uDBFF]$/,pl=/^[\uDC00-\uDFFF]$/,vl=!rl||Ku((function(){var t=Uu("Symbol")();return"[null]"!=ol([t])||"{}"!=ol({a:t})||"{}"!=ol(Object(t))})),dl=Ku((function(){return'"\\udf06\\ud834"'!==ol("\udf06\ud834")||'"\\udead"'!==ol("\udead")})),gl=function(t,e){var n=el(arguments),r=nl(e);if(Zu(r)||void 0!==t&&!tl(t))return n[1]=function(t,e){if(Zu(r)&&(e=Qu(r,this,il(t),e)),!tl(e))return e},$u(ol,null,n)},yl=function(t,e,n){var r=sl(n,e-1),i=sl(n,e+1);return al(fl,t)&&!al(pl,i)||al(pl,t)&&!al(fl,r)?"\\u"+ll(cl(t,0),16):t};ol&&Gu({target:"JSON",stat:!0,arity:3,forced:vl||dl},{stringify:function(t,e,n){var r=el(arguments),i=$u(vl?gl:ol,null,r);return dl&&"string"==typeof i?ul(i,hl,yl):i}});var ml=Qs,bl=D;Er({target:"Object",stat:!0,forced:!J||r((function(){ml.f(1)}))},{getOwnPropertySymbols:function(t){var e=ml.f;return e?e(bl(t)):[]}}),ic("asyncIterator"),ic("hasInstance"),ic("isConcatSpreadable"),ic("iterator"),ic("match"),ic("matchAll"),ic("replace"),ic("search"),ic("species"),ic("split");var kl=uc;ic("toPrimitive"),kl();var wl=le,Cl=to;ic("toStringTag"),Cl(wl("Symbol"),"Symbol"),ic("unscopables"),to(d.JSON,"JSON",!0);var El=oe.Symbol;ic("dispose");var Ol=El;ic("asyncDispose");var Tl=Er,Fl=u,_l=le("Symbol"),Sl=_l.keyFor,Al=Fl(_l.prototype.valueOf);Tl({target:"Symbol",stat:!0},{isRegistered:function(t){try{return void 0!==Sl(Al(t))}catch(t){return!1}}});for(var xl=Er,Pl=T,Dl=le,jl=u,Il=ge,Rl=st,Nl=Dl("Symbol"),Ml=Nl.isWellKnown,Bl=Dl("Object","getOwnPropertyNames"),Ll=jl(Nl.prototype.valueOf),Hl=Pl("wks"),zl=0,Wl=Bl(Nl),Vl=Wl.length;zl<Vl;zl++)try{var ql=Wl[zl];Il(Nl[ql])&&Rl(ql)}catch(t){}xl({target:"Symbol",stat:!0,forced:!0},{isWellKnown:function(t){if(Ml&&Ml(t))return!0;try{for(var e=Ll(t),n=0,r=Bl(Hl),i=r.length;n<i;n++)if(Hl[r[n]]==e)return!0}catch(t){}return!1}}),ic("matcher"),ic("metadataKey"),ic("observable"),ic("metadata"),ic("patternMatch"),ic("replaceAll");var Yl=n(Ol),Xl=n(Ks.f("iterator"));function Gl(t){return Gl="function"==typeof Yl&&"symbol"==typeof Xl?function(t){return typeof t}:function(t){return t&&"function"==typeof Yl&&t.constructor===Yl&&t!==Yl.prototype?"symbol":typeof t},Gl(t)}Er({target:"Array",stat:!0},{isArray:cs});var Ul=oe.Array.isArray,$l=n(Ul);function Ql(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var Jl=n(Ha);var Kl=Er,Zl=cs,th=aa,eh=Wt,nh=Ir,rh=Br,ih=Vn,oh=la,ah=st,sh=zu,ch=ws("slice"),uh=ah("species"),lh=Array,hh=Math.max;Kl({target:"Array",proto:!0,forced:!ch},{slice:function(t,e){var n,r,i,o=ih(this),a=rh(o),s=nh(t,a),c=nh(void 0===e?a:e,a);if(Zl(o)&&(n=o.constructor,(th(n)&&(n===lh||Zl(n.prototype))||eh(n)&&null===(n=n[uh]))&&(n=void 0),n===lh||void 0===n))return sh(o,s,c);for(r=new(void 0===n?lh:n)(hh(c-s,0)),i=0;s<c;s++,i++)s in o&&oh(r,i,o[s]);return r.length=i,r}});var fh=oe,ph=function(t){return fh[t+"Prototype"]},vh=ph("Array").slice,dh=he,gh=vh,yh=Array.prototype,mh=function(t){var e=t.slice;return t===yh||dh(yh,t)&&e===yh.slice?gh:e},bh=n(mh);function kh(t,e){var n;if(t){if("string"==typeof t)return Ql(t,e);var r=bh(n=Object.prototype.toString.call(t)).call(n,8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Jl(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Ql(t,e):void 0}}function wh(t){return function(t){if($l(t))return Ql(t)}(t)||function(t){if(void 0!==Yl&&null!=as(t)||null!=t["@@iterator"])return Jl(t)}(t)||kh(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var Ch=n(El),Eh=ph("Array").concat,Oh=he,Th=Eh,Fh=Array.prototype,_h=n((function(t){var e=t.concat;return t===Fh||Oh(Fh,t)&&e===Fh.concat?Th:e})),Sh=n(mh),Ah=le,xh=Ns,Ph=Qs,Dh=ee,jh=u([].concat),Ih=Ah("Reflect","ownKeys")||function(t){var e=xh.f(Dh(t)),n=Ph.f;return n?jh(e,n(t)):e};Er({target:"Reflect",stat:!0},{ownKeys:Ih});var Rh=n(oe.Reflect.ownKeys),Nh=n(Ul),Mh=yc.map;Er({target:"Array",proto:!0,forced:!ws("map")},{map:function(t){return Mh(this,t,arguments.length>1?arguments[1]:void 0)}});var Bh=ph("Array").map,Lh=he,Hh=Bh,zh=Array.prototype,Wh=n((function(t){var e=t.map;return t===zh||Lh(zh,t)&&e===zh.map?Hh:e})),Vh=D,qh=Zr;Er({target:"Object",stat:!0,forced:r((function(){qh(1)}))},{keys:function(t){return qh(Vh(t))}});var Yh=n(oe.Object.keys);function Xh(t,e){var n=void 0!==Ch&&as(t)||t["@@iterator"];if(!n){if(Nh(t)||(n=function(t,e){var n;if(!t)return;if("string"==typeof t)return Gh(t,e);var r=Sh(n=Object.prototype.toString.call(t)).call(n,8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return za(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Gh(t,e)}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return a=t.done,t},e:function(t){s=!0,o=t},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function Gh(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var Uh=Ch("DELETE");function $h(){var t=Qh.apply(void 0,arguments);return Kh(t),t}function Qh(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];if(e.length<2)return e[0];var r;if(e.length>2)return Qh.apply(void 0,_h(r=[$h(e[0],e[1])]).call(r,wh(Sh(e).call(e,2))));var i,o=e[0],a=e[1],s=Xh(Rh(a));try{for(s.s();!(i=s.n()).done;){var c=i.value;Object.prototype.propertyIsEnumerable.call(a,c)&&(a[c]===Uh?delete o[c]:null===o[c]||null===a[c]||"object"!==Gl(o[c])||"object"!==Gl(a[c])||Nh(o[c])||Nh(a[c])?o[c]=Jh(a[c]):o[c]=Qh(o[c],a[c]))}}catch(t){s.e(t)}finally{s.f()}return o}function Jh(t){return Nh(t)?Wh(t).call(t,(function(t){return Jh(t)})):"object"===Gl(t)&&null!==t?Qh({},t):t}function Kh(t){for(var e=0,n=Yh(t);e<n.length;e++){var r=n[e];t[r]===Uh?delete t[r]:"object"===Gl(t[r])&&null!==t[r]&&Kh(t[r])}}function Zh(t,e){return function(t){if($l(t))return t}(t)||function(t,e){var n=null==t?null:void 0!==Yl&&as(t)||t["@@iterator"];if(null!=n){var r,i,o,a,s=[],c=!0,u=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=o.call(n)).done)&&(s.push(r.value),s.length!==e);c=!0);}catch(t){u=!0,i=t}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw i}}return s}}(t,e)||kh(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var tf=Er,ef=Date,nf=u(ef.prototype.getTime);tf({target:"Date",stat:!0},{now:function(){return nf(new ef)}});var rf=n(oe.Date.now);var of=u,af=Ce,sf=Wt,cf=R,uf=zu,lf=i,hf=Function,ff=of([].concat),pf=of([].join),vf={},df=lf?hf.bind:function(t){var e=af(this),n=e.prototype,r=uf(arguments,1),i=function(){var n=ff(r,uf(arguments));return this instanceof i?function(t,e,n){if(!cf(vf,e)){for(var r=[],i=0;i<e;i++)r[i]="a["+i+"]";vf[e]=hf("C,a","return new C("+pf(r,",")+")")}return vf[e](t,n)}(e,n.length,n):e.apply(t,n)};return sf(n)&&(i.prototype=n),i},gf=df;Er({target:"Function",proto:!0,forced:Function.bind!==gf},{bind:gf});var yf=ph("Function").bind,mf=he,bf=yf,kf=Function.prototype,wf=n((function(t){var e=t.bind;return t===kf||mf(kf,t)&&e===kf.bind?bf:e})),Cf=r,Ef=function(t,e){var n=[][t];return!!n&&Cf((function(){n.call(null,e||function(){return 1},1)}))},Of=yc.forEach,Tf=Ef("forEach")?[].forEach:function(t){return Of(this,t,arguments.length>1?arguments[1]:void 0)};Er({target:"Array",proto:!0,forced:[].forEach!=Tf},{forEach:Tf});var Ff=ph("Array").forEach,_f=Ot,Sf=R,Af=he,xf=Ff,Pf=Array.prototype,Df={DOMTokenList:!0,NodeList:!0},jf=n((function(t){var e=t.forEach;return t===Pf||Af(Pf,t)&&e===Pf.forEach||Sf(Df,_f(t))?xf:e})),If=Er,Rf=cs,Nf=u([].reverse),Mf=[1,2];If({target:"Array",proto:!0,forced:String(Mf)===String(Mf.reverse())},{reverse:function(){return Rf(this)&&(this.length=this.length),Nf(this)}});var Bf=ph("Array").reverse,Lf=he,Hf=Bf,zf=Array.prototype,Wf=n((function(t){var e=t.reverse;return t===zf||Lf(zf,t)&&e===zf.reverse?Hf:e})),Vf=Vt,qf=cs,Yf=TypeError,Xf=Object.getOwnPropertyDescriptor,Gf=Vf&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(t){return t instanceof TypeError}}(),Uf=me,$f=TypeError,Qf=Er,Jf=D,Kf=Ir,Zf=p,tp=Br,ep=Gf?function(t,e){if(qf(t)&&!Xf(t,"length").writable)throw Yf("Cannot set read only .length");return t.length=e}:function(t,e){return t.length=e},np=ls,rp=ys,ip=la,op=function(t,e){if(!delete t[e])throw $f("Cannot delete property "+Uf(e)+" of "+Uf(t))},ap=ws("splice"),sp=Math.max,cp=Math.min;Qf({target:"Array",proto:!0,forced:!ap},{splice:function(t,e){var n,r,i,o,a,s,c=Jf(this),u=tp(c),l=Kf(t,u),h=arguments.length;for(0===h?n=r=0:1===h?(n=0,r=u-l):(n=h-2,r=cp(sp(Zf(e),0),u-l)),np(u+n-r),i=rp(c,r),o=0;o<r;o++)(a=l+o)in c&&ip(i,o,c[a]);if(i.length=r,n<r){for(o=l;o<u-r;o++)s=o+n,(a=o+r)in c?c[s]=c[a]:op(c,s);for(o=u;o>u-r+n;o--)op(c,o-1)}else if(n>r)for(o=u-r;o>l;o--)s=o+n-1,(a=o+r-1)in c?c[s]=c[a]:op(c,s);for(o=0;o<n;o++)c[o+l]=arguments[o+2];return ep(c,u-r+n),i}});var up=ph("Array").splice,lp=he,hp=up,fp=Array.prototype,pp=n((function(t){var e=t.splice;return t===fp||lp(fp,t)&&e===fp.splice?hp:e})),vp={exports:{}};!function(t){function e(t){if(t)return function(t){for(var n in e.prototype)t[n]=e.prototype[n];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 n(){this.off(t,n),e.apply(this,arguments)}return n.fn=e,this.on(t,n),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 n,r=this._callbacks["$"+t];if(!r)return this;if(1==arguments.length)return delete this._callbacks["$"+t],this;for(var i=0;i<r.length;i++)if((n=r[i])===e||n.fn===e){r.splice(i,1);break}return 0===r.length&&delete this._callbacks["$"+t],this},e.prototype.emit=function(t){this._callbacks=this._callbacks||{};for(var e=new Array(arguments.length-1),n=this._callbacks["$"+t],r=1;r<arguments.length;r++)e[r-1]=arguments[r];if(n){r=0;for(var i=(n=n.slice(0)).length;r<i;++r)n[r].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}}(vp);var dp,gp=n(vp.exports);
|
|
27
27
|
/*! Hammer.JS - v2.0.17-rc - 2019-12-16
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
function Hi(){return(Hi=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t}).apply(this,arguments)}function zi(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}function Wi(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}var Vi,qi="function"!=typeof Object.assign?function(t){if(null==t)throw new TypeError("Cannot convert undefined or null to object");for(var e=Object(t),n=1;n<arguments.length;n++){var r=arguments[n];if(null!=r)for(var i in r)r.hasOwnProperty(i)&&(e[i]=r[i])}return e}:Object.assign,Yi=["","webkit","Moz","MS","ms","o"],Xi="undefined"==typeof document?{style:{}}:document.createElement("div"),Gi=Math.round,Ui=Math.abs,$i=Date.now;function Qi(t,e){for(var n,r,i=e[0].toUpperCase()+e.slice(1),o=0;o<Yi.length;){if((r=(n=Yi[o])?n+i:e)in t)return r;o++}}Vi="undefined"==typeof window?{}:window;var Ji=Qi(Xi.style,"touchAction"),Ki=void 0!==Ji;var Zi="compute",to="auto",eo="manipulation",no="none",ro="pan-x",io="pan-y",oo=function(){if(!Ki)return!1;var t={},e=Vi.CSS&&Vi.CSS.supports;return["auto","manipulation","pan-y","pan-x","pan-x pan-y","none"].forEach((function(n){return t[n]=!e||Vi.CSS.supports("touch-action",n)})),t}(),ao="ontouchstart"in Vi,so=void 0!==Qi(Vi,"PointerEvent"),co=ao&&/mobile|tablet|ip(ad|hone|od)|android/i.test(navigator.userAgent),lo="touch",uo="mouse",ho=16,fo=24,po=["x","y"],vo=["clientX","clientY"];function go(t,e,n){var r;if(t)if(t.forEach)t.forEach(e,n);else if(void 0!==t.length)for(r=0;r<t.length;)e.call(n,t[r],r,t),r++;else for(r in t)t.hasOwnProperty(r)&&e.call(n,t[r],r,t)}function yo(t,e){return"function"==typeof t?t.apply(e&&e[0]||void 0,e):t}function mo(t,e){return t.indexOf(e)>-1}var bo=function(){function t(t,e){this.manager=t,this.set(e)}var e=t.prototype;return e.set=function(t){t===Zi&&(t=this.compute()),Ki&&this.manager.element.style&&oo[t]&&(this.manager.element.style[Ji]=t),this.actions=t.toLowerCase().trim()},e.update=function(){this.set(this.manager.options.touchAction)},e.compute=function(){var t=[];return go(this.manager.recognizers,(function(e){yo(e.options.enable,[e])&&(t=t.concat(e.getTouchAction()))})),function(t){if(mo(t,no))return no;var e=mo(t,ro),n=mo(t,io);return e&&n?no:e||n?e?ro:io:mo(t,eo)?eo:to}(t.join(" "))},e.preventDefaults=function(t){var e=t.srcEvent,n=t.offsetDirection;if(this.manager.session.prevented)e.preventDefault();else{var r=this.actions,i=mo(r,no)&&!oo.none,o=mo(r,io)&&!oo["pan-y"],a=mo(r,ro)&&!oo["pan-x"];if(i){var s=1===t.pointers.length,c=t.distance<2,l=t.deltaTime<250;if(s&&c&&l)return}if(!a||!o)return i||o&&6&n||a&&n&fo?this.preventSrc(e):void 0}},e.preventSrc=function(t){this.manager.session.prevented=!0,t.preventDefault()},t}();function ko(t,e){for(;t;){if(t===e)return!0;t=t.parentNode}return!1}function wo(t){var e=t.length;if(1===e)return{x:Gi(t[0].clientX),y:Gi(t[0].clientY)};for(var n=0,r=0,i=0;i<e;)n+=t[i].clientX,r+=t[i].clientY,i++;return{x:Gi(n/e),y:Gi(r/e)}}function Co(t){for(var e=[],n=0;n<t.pointers.length;)e[n]={clientX:Gi(t.pointers[n].clientX),clientY:Gi(t.pointers[n].clientY)},n++;return{timeStamp:$i(),pointers:e,center:wo(e),deltaX:t.deltaX,deltaY:t.deltaY}}function Eo(t,e,n){n||(n=po);var r=e[n[0]]-t[n[0]],i=e[n[1]]-t[n[1]];return Math.sqrt(r*r+i*i)}function Oo(t,e,n){n||(n=po);var r=e[n[0]]-t[n[0]],i=e[n[1]]-t[n[1]];return 180*Math.atan2(i,r)/Math.PI}function To(t,e){return t===e?1:Ui(t)>=Ui(e)?t<0?2:4:e<0?8:ho}function _o(t,e,n){return{x:e/t||0,y:n/t||0}}function Ao(t,e){var n=t.session,r=e.pointers,i=r.length;n.firstInput||(n.firstInput=Co(e)),i>1&&!n.firstMultiple?n.firstMultiple=Co(e):1===i&&(n.firstMultiple=!1);var o=n.firstInput,a=n.firstMultiple,s=a?a.center:o.center,c=e.center=wo(r);e.timeStamp=$i(),e.deltaTime=e.timeStamp-o.timeStamp,e.angle=Oo(s,c),e.distance=Eo(s,c),function(t,e){var n=e.center,r=t.offsetDelta||{},i=t.prevDelta||{},o=t.prevInput||{};1!==e.eventType&&4!==o.eventType||(i=t.prevDelta={x:o.deltaX||0,y:o.deltaY||0},r=t.offsetDelta={x:n.x,y:n.y}),e.deltaX=i.x+(n.x-r.x),e.deltaY=i.y+(n.y-r.y)}(n,e),e.offsetDirection=To(e.deltaX,e.deltaY);var l,u,h=_o(e.deltaTime,e.deltaX,e.deltaY);e.overallVelocityX=h.x,e.overallVelocityY=h.y,e.overallVelocity=Ui(h.x)>Ui(h.y)?h.x:h.y,e.scale=a?(l=a.pointers,Eo((u=r)[0],u[1],vo)/Eo(l[0],l[1],vo)):1,e.rotation=a?function(t,e){return Oo(e[1],e[0],vo)+Oo(t[1],t[0],vo)}(a.pointers,r):0,e.maxPointers=n.prevInput?e.pointers.length>n.prevInput.maxPointers?e.pointers.length:n.prevInput.maxPointers:e.pointers.length,function(t,e){var n,r,i,o,a=t.lastInterval||e,s=e.timeStamp-a.timeStamp;if(8!==e.eventType&&(s>25||void 0===a.velocity)){var c=e.deltaX-a.deltaX,l=e.deltaY-a.deltaY,u=_o(s,c,l);r=u.x,i=u.y,n=Ui(u.x)>Ui(u.y)?u.x:u.y,o=To(c,l),t.lastInterval=e}else n=a.velocity,r=a.velocityX,i=a.velocityY,o=a.direction;e.velocity=n,e.velocityX=r,e.velocityY=i,e.direction=o}(n,e);var f,p=t.element,v=e.srcEvent;ko(f=v.composedPath?v.composedPath()[0]:v.path?v.path[0]:v.target,p)&&(p=f),e.target=p}function Fo(t,e,n){var r=n.pointers.length,i=n.changedPointers.length,o=1&e&&r-i==0,a=12&e&&r-i==0;n.isFirst=!!o,n.isFinal=!!a,o&&(t.session={}),n.eventType=e,Ao(t,n),t.emit("hammer.input",n),t.recognize(n),t.session.prevInput=n}function So(t){return t.trim().split(/\s+/g)}function xo(t,e,n){go(So(e),(function(e){t.addEventListener(e,n,!1)}))}function Po(t,e,n){go(So(e),(function(e){t.removeEventListener(e,n,!1)}))}function Do(t){var e=t.ownerDocument||t;return e.defaultView||e.parentWindow||window}var jo=function(){function t(t,e){var n=this;this.manager=t,this.callback=e,this.element=t.element,this.target=t.options.inputTarget,this.domHandler=function(e){yo(t.options.enable,[t])&&n.handler(e)},this.init()}var e=t.prototype;return e.handler=function(){},e.init=function(){this.evEl&&xo(this.element,this.evEl,this.domHandler),this.evTarget&&xo(this.target,this.evTarget,this.domHandler),this.evWin&&xo(Do(this.element),this.evWin,this.domHandler)},e.destroy=function(){this.evEl&&Po(this.element,this.evEl,this.domHandler),this.evTarget&&Po(this.target,this.evTarget,this.domHandler),this.evWin&&Po(Do(this.element),this.evWin,this.domHandler)},t}();function Io(t,e,n){if(t.indexOf&&!n)return t.indexOf(e);for(var r=0;r<t.length;){if(n&&t[r][n]==e||!n&&t[r]===e)return r;r++}return-1}var Ro={pointerdown:1,pointermove:2,pointerup:4,pointercancel:8,pointerout:8},No={2:lo,3:"pen",4:uo,5:"kinect"},Mo="pointerdown",Bo="pointermove pointerup pointercancel";Vi.MSPointerEvent&&!Vi.PointerEvent&&(Mo="MSPointerDown",Bo="MSPointerMove MSPointerUp MSPointerCancel");var Lo=function(t){function e(){var n,r=e.prototype;return r.evEl=Mo,r.evWin=Bo,(n=t.apply(this,arguments)||this).store=n.manager.session.pointerEvents=[],n}return zi(e,t),e.prototype.handler=function(t){var e=this.store,n=!1,r=t.type.toLowerCase().replace("ms",""),i=Ro[r],o=No[t.pointerType]||t.pointerType,a=o===lo,s=Io(e,t.pointerId,"pointerId");1&i&&(0===t.button||a)?s<0&&(e.push(t),s=e.length-1):12&i&&(n=!0),s<0||(e[s]=t,this.callback(this.manager,i,{pointers:e,changedPointers:[t],pointerType:o,srcEvent:t}),n&&e.splice(s,1))},e}(jo);function Ho(t){return Array.prototype.slice.call(t,0)}function zo(t,e,n){for(var r=[],i=[],o=0;o<t.length;){var a=e?t[o][e]:t[o];Io(i,a)<0&&r.push(t[o]),i[o]=a,o++}return n&&(r=e?r.sort((function(t,n){return t[e]>n[e]})):r.sort()),r}var Wo={touchstart:1,touchmove:2,touchend:4,touchcancel:8},Vo="touchstart touchmove touchend touchcancel",qo=function(t){function e(){var n;return e.prototype.evTarget=Vo,(n=t.apply(this,arguments)||this).targetIds={},n}return zi(e,t),e.prototype.handler=function(t){var e=Wo[t.type],n=Yo.call(this,t,e);n&&this.callback(this.manager,e,{pointers:n[0],changedPointers:n[1],pointerType:lo,srcEvent:t})},e}(jo);function Yo(t,e){var n,r,i=Ho(t.touches),o=this.targetIds;if(3&e&&1===i.length)return o[i[0].identifier]=!0,[i,i];var a=Ho(t.changedTouches),s=[],c=this.target;if(r=i.filter((function(t){return ko(t.target,c)})),1===e)for(n=0;n<r.length;)o[r[n].identifier]=!0,n++;for(n=0;n<a.length;)o[a[n].identifier]&&s.push(a[n]),12&e&&delete o[a[n].identifier],n++;return s.length?[zo(r.concat(s),"identifier",!0),s]:void 0}var Xo={mousedown:1,mousemove:2,mouseup:4},Go="mousedown",Uo="mousemove mouseup",$o=function(t){function e(){var n,r=e.prototype;return r.evEl=Go,r.evWin=Uo,(n=t.apply(this,arguments)||this).pressed=!1,n}return zi(e,t),e.prototype.handler=function(t){var e=Xo[t.type];1&e&&0===t.button&&(this.pressed=!0),2&e&&1!==t.which&&(e=4),this.pressed&&(4&e&&(this.pressed=!1),this.callback(this.manager,e,{pointers:[t],changedPointers:[t],pointerType:uo,srcEvent:t}))},e}(jo);function Qo(t){var e=t.changedPointers[0];if(e.identifier===this.primaryTouch){var n={x:e.clientX,y:e.clientY},r=this.lastTouches;this.lastTouches.push(n);setTimeout((function(){var t=r.indexOf(n);t>-1&&r.splice(t,1)}),2500)}}function Jo(t,e){1&t?(this.primaryTouch=e.changedPointers[0].identifier,Qo.call(this,e)):12&t&&Qo.call(this,e)}function Ko(t){for(var e=t.srcEvent.clientX,n=t.srcEvent.clientY,r=0;r<this.lastTouches.length;r++){var i=this.lastTouches[r],o=Math.abs(e-i.x),a=Math.abs(n-i.y);if(o<=25&&a<=25)return!0}return!1}var Zo=function(){return function(t){function e(e,n){var r;return(r=t.call(this,e,n)||this).handler=function(t,e,n){var i=n.pointerType===lo,o=n.pointerType===uo;if(!(o&&n.sourceCapabilities&&n.sourceCapabilities.firesTouchEvents)){if(i)Jo.call(Wi(Wi(r)),e,n);else if(o&&Ko.call(Wi(Wi(r)),n))return;r.callback(t,e,n)}},r.touch=new qo(r.manager,r.handler),r.mouse=new $o(r.manager,r.handler),r.primaryTouch=null,r.lastTouches=[],r}return zi(e,t),e.prototype.destroy=function(){this.touch.destroy(),this.mouse.destroy()},e}(jo)}();function ta(t,e,n){return!!Array.isArray(t)&&(go(t,n[e],n),!0)}var ea=32,na=1;function ra(t,e){var n=e.manager;return n?n.get(t):t}function ia(t){return 16&t?"cancel":8&t?"end":4&t?"move":2&t?"start":""}var oa=function(){function t(t){void 0===t&&(t={}),this.options=Hi({enable:!0},t),this.id=na++,this.manager=null,this.state=1,this.simultaneous={},this.requireFail=[]}var e=t.prototype;return e.set=function(t){return qi(this.options,t),this.manager&&this.manager.touchAction.update(),this},e.recognizeWith=function(t){if(ta(t,"recognizeWith",this))return this;var e=this.simultaneous;return e[(t=ra(t,this)).id]||(e[t.id]=t,t.recognizeWith(this)),this},e.dropRecognizeWith=function(t){return ta(t,"dropRecognizeWith",this)||(t=ra(t,this),delete this.simultaneous[t.id]),this},e.requireFailure=function(t){if(ta(t,"requireFailure",this))return this;var e=this.requireFail;return-1===Io(e,t=ra(t,this))&&(e.push(t),t.requireFailure(this)),this},e.dropRequireFailure=function(t){if(ta(t,"dropRequireFailure",this))return this;t=ra(t,this);var e=Io(this.requireFail,t);return e>-1&&this.requireFail.splice(e,1),this},e.hasRequireFailures=function(){return this.requireFail.length>0},e.canRecognizeWith=function(t){return!!this.simultaneous[t.id]},e.emit=function(t){var e=this,n=this.state;function r(n){e.manager.emit(n,t)}n<8&&r(e.options.event+ia(n)),r(e.options.event),t.additionalEvent&&r(t.additionalEvent),n>=8&&r(e.options.event+ia(n))},e.tryEmit=function(t){if(this.canEmit())return this.emit(t);this.state=ea},e.canEmit=function(){for(var t=0;t<this.requireFail.length;){if(!(33&this.requireFail[t].state))return!1;t++}return!0},e.recognize=function(t){var e=qi({},t);if(!yo(this.options.enable,[this,e]))return this.reset(),void(this.state=ea);56&this.state&&(this.state=1),this.state=this.process(e),30&this.state&&this.tryEmit(e)},e.process=function(t){},e.getTouchAction=function(){},e.reset=function(){},t}(),aa=function(t){function e(e){var n;return void 0===e&&(e={}),(n=t.call(this,Hi({event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:9,posThreshold:10},e))||this).pTime=!1,n.pCenter=!1,n._timer=null,n._input=null,n.count=0,n}zi(e,t);var n=e.prototype;return n.getTouchAction=function(){return[eo]},n.process=function(t){var e=this,n=this.options,r=t.pointers.length===n.pointers,i=t.distance<n.threshold,o=t.deltaTime<n.time;if(this.reset(),1&t.eventType&&0===this.count)return this.failTimeout();if(i&&o&&r){if(4!==t.eventType)return this.failTimeout();var a=!this.pTime||t.timeStamp-this.pTime<n.interval,s=!this.pCenter||Eo(this.pCenter,t.center)<n.posThreshold;if(this.pTime=t.timeStamp,this.pCenter=t.center,s&&a?this.count+=1:this.count=1,this._input=t,0===this.count%n.taps)return this.hasRequireFailures()?(this._timer=setTimeout((function(){e.state=8,e.tryEmit()}),n.interval),2):8}return ea},n.failTimeout=function(){var t=this;return this._timer=setTimeout((function(){t.state=ea}),this.options.interval),ea},n.reset=function(){clearTimeout(this._timer)},n.emit=function(){8===this.state&&(this._input.tapCount=this.count,this.manager.emit(this.options.event,this._input))},e}(oa),sa=function(t){function e(e){return void 0===e&&(e={}),t.call(this,Hi({pointers:1},e))||this}zi(e,t);var n=e.prototype;return n.attrTest=function(t){var e=this.options.pointers;return 0===e||t.pointers.length===e},n.process=function(t){var e=this.state,n=t.eventType,r=6&e,i=this.attrTest(t);return r&&(8&n||!i)?16|e:r||i?4&n?8|e:2&e?4|e:2:ea},e}(oa);function ca(t){return t===ho?"down":8===t?"up":2===t?"left":4===t?"right":""}var la=function(t){function e(e){var n;return void 0===e&&(e={}),(n=t.call(this,Hi({event:"pan",threshold:10,pointers:1,direction:30},e))||this).pX=null,n.pY=null,n}zi(e,t);var n=e.prototype;return n.getTouchAction=function(){var t=this.options.direction,e=[];return 6&t&&e.push(io),t&fo&&e.push(ro),e},n.directionTest=function(t){var e=this.options,n=!0,r=t.distance,i=t.direction,o=t.deltaX,a=t.deltaY;return i&e.direction||(6&e.direction?(i=0===o?1:o<0?2:4,n=o!==this.pX,r=Math.abs(t.deltaX)):(i=0===a?1:a<0?8:ho,n=a!==this.pY,r=Math.abs(t.deltaY))),t.direction=i,n&&r>e.threshold&&i&e.direction},n.attrTest=function(t){return sa.prototype.attrTest.call(this,t)&&(2&this.state||!(2&this.state)&&this.directionTest(t))},n.emit=function(e){this.pX=e.deltaX,this.pY=e.deltaY;var n=ca(e.direction);n&&(e.additionalEvent=this.options.event+n),t.prototype.emit.call(this,e)},e}(sa),ua=function(t){function e(e){return void 0===e&&(e={}),t.call(this,Hi({event:"swipe",threshold:10,velocity:.3,direction:30,pointers:1},e))||this}zi(e,t);var n=e.prototype;return n.getTouchAction=function(){return la.prototype.getTouchAction.call(this)},n.attrTest=function(e){var n,r=this.options.direction;return 30&r?n=e.overallVelocity:6&r?n=e.overallVelocityX:r&fo&&(n=e.overallVelocityY),t.prototype.attrTest.call(this,e)&&r&e.offsetDirection&&e.distance>this.options.threshold&&e.maxPointers===this.options.pointers&&Ui(n)>this.options.velocity&&4&e.eventType},n.emit=function(t){var e=ca(t.offsetDirection);e&&this.manager.emit(this.options.event+e,t),this.manager.emit(this.options.event,t)},e}(sa),ha=function(t){function e(e){return void 0===e&&(e={}),t.call(this,Hi({event:"pinch",threshold:0,pointers:2},e))||this}zi(e,t);var n=e.prototype;return n.getTouchAction=function(){return[no]},n.attrTest=function(e){return t.prototype.attrTest.call(this,e)&&(Math.abs(e.scale-1)>this.options.threshold||2&this.state)},n.emit=function(e){if(1!==e.scale){var n=e.scale<1?"in":"out";e.additionalEvent=this.options.event+n}t.prototype.emit.call(this,e)},e}(sa),fa=function(t){function e(e){return void 0===e&&(e={}),t.call(this,Hi({event:"rotate",threshold:0,pointers:2},e))||this}zi(e,t);var n=e.prototype;return n.getTouchAction=function(){return[no]},n.attrTest=function(e){return t.prototype.attrTest.call(this,e)&&(Math.abs(e.rotation)>this.options.threshold||2&this.state)},e}(sa),pa=function(t){function e(e){var n;return void 0===e&&(e={}),(n=t.call(this,Hi({event:"press",pointers:1,time:251,threshold:9},e))||this)._timer=null,n._input=null,n}zi(e,t);var n=e.prototype;return n.getTouchAction=function(){return[to]},n.process=function(t){var e=this,n=this.options,r=t.pointers.length===n.pointers,i=t.distance<n.threshold,o=t.deltaTime>n.time;if(this._input=t,!i||!r||12&t.eventType&&!o)this.reset();else if(1&t.eventType)this.reset(),this._timer=setTimeout((function(){e.state=8,e.tryEmit()}),n.time);else if(4&t.eventType)return 8;return ea},n.reset=function(){clearTimeout(this._timer)},n.emit=function(t){8===this.state&&(t&&4&t.eventType?this.manager.emit(this.options.event+"up",t):(this._input.timeStamp=$i(),this.manager.emit(this.options.event,this._input)))},e}(oa),va={domEvents:!1,touchAction:Zi,enable:!0,inputTarget:null,inputClass:null,cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}},da=[[fa,{enable:!1}],[ha,{enable:!1},["rotate"]],[ua,{direction:6}],[la,{direction:6},["swipe"]],[aa],[aa,{event:"doubletap",taps:2},["tap"]],[pa]];function ga(t,e){var n,r=t.element;r.style&&(go(t.options.cssProps,(function(i,o){n=Qi(r.style,o),e?(t.oldCssProps[n]=r.style[n],r.style[n]=i):r.style[n]=t.oldCssProps[n]||""})),e||(t.oldCssProps={}))}var ya=function(){function t(t,e){var n,r=this;this.options=qi({},va,e||{}),this.options.inputTarget=this.options.inputTarget||t,this.handlers={},this.session={},this.recognizers=[],this.oldCssProps={},this.element=t,this.input=new((n=this).options.inputClass||(so?Lo:co?qo:ao?Zo:$o))(n,Fo),this.touchAction=new bo(this,this.options.touchAction),ga(this,!0),go(this.options.recognizers,(function(t){var e=r.add(new t[0](t[1]));t[2]&&e.recognizeWith(t[2]),t[3]&&e.requireFailure(t[3])}),this)}var e=t.prototype;return e.set=function(t){return qi(this.options,t),t.touchAction&&this.touchAction.update(),t.inputTarget&&(this.input.destroy(),this.input.target=t.inputTarget,this.input.init()),this},e.stop=function(t){this.session.stopped=t?2:1},e.recognize=function(t){var e=this.session;if(!e.stopped){var n;this.touchAction.preventDefaults(t);var r=this.recognizers,i=e.curRecognizer;(!i||i&&8&i.state)&&(e.curRecognizer=null,i=null);for(var o=0;o<r.length;)n=r[o],2===e.stopped||i&&n!==i&&!n.canRecognizeWith(i)?n.reset():n.recognize(t),!i&&14&n.state&&(e.curRecognizer=n,i=n),o++}},e.get=function(t){if(t instanceof oa)return t;for(var e=this.recognizers,n=0;n<e.length;n++)if(e[n].options.event===t)return e[n];return null},e.add=function(t){if(ta(t,"add",this))return this;var e=this.get(t.options.event);return e&&this.remove(e),this.recognizers.push(t),t.manager=this,this.touchAction.update(),t},e.remove=function(t){if(ta(t,"remove",this))return this;var e=this.get(t);if(t){var n=this.recognizers,r=Io(n,e);-1!==r&&(n.splice(r,1),this.touchAction.update())}return this},e.on=function(t,e){if(void 0===t||void 0===e)return this;var n=this.handlers;return go(So(t),(function(t){n[t]=n[t]||[],n[t].push(e)})),this},e.off=function(t,e){if(void 0===t)return this;var n=this.handlers;return go(So(t),(function(t){e?n[t]&&n[t].splice(Io(n[t],e),1):delete n[t]})),this},e.emit=function(t,e){this.options.domEvents&&function(t,e){var n=document.createEvent("Event");n.initEvent(t,!0,!0),n.gesture=e,e.target.dispatchEvent(n)}(t,e);var n=this.handlers[t]&&this.handlers[t].slice();if(n&&n.length){e.type=t,e.preventDefault=function(){e.srcEvent.preventDefault()};for(var r=0;r<n.length;)n[r](e),r++}},e.destroy=function(){this.element&&ga(this,!1),this.handlers={},this.session={},this.input.destroy(),this.element=null},t}(),ma={touchstart:1,touchmove:2,touchend:4,touchcancel:8},ba="touchstart",ka="touchstart touchmove touchend touchcancel",wa=function(t){function e(){var n,r=e.prototype;return r.evTarget=ba,r.evWin=ka,(n=t.apply(this,arguments)||this).started=!1,n}return zi(e,t),e.prototype.handler=function(t){var e=ma[t.type];if(1===e&&(this.started=!0),this.started){var n=Ca.call(this,t,e);12&e&&n[0].length-n[1].length==0&&(this.started=!1),this.callback(this.manager,e,{pointers:n[0],changedPointers:n[1],pointerType:lo,srcEvent:t})}},e}(jo);function Ca(t,e){var n=Ho(t.touches),r=Ho(t.changedTouches);return 12&e&&(n=zo(n.concat(r),"identifier",!0)),[n,r]}function Ea(t,e,n){var r="DEPRECATED METHOD: "+e+"\n"+n+" AT \n";return function(){var e=new Error("get-stack-trace"),n=e&&e.stack?e.stack.replace(/^[^\(]+?[\n$]/gm,"").replace(/^\s+at\s+/gm,"").replace(/^Object.<anonymous>\s*\(/gm,"{anonymous}()@"):"Unknown Stack Trace",i=window.console&&(window.console.warn||window.console.log);return i&&i.call(window.console,r,n),t.apply(this,arguments)}}var Oa=Ea((function(t,e,n){for(var r=Object.keys(e),i=0;i<r.length;)(!n||n&&void 0===t[r[i]])&&(t[r[i]]=e[r[i]]),i++;return t}),"extend","Use `assign`."),Ta=Ea((function(t,e){return Oa(t,e,!0)}),"merge","Use `assign`.");function _a(t,e,n){var r,i=e.prototype;(r=t.prototype=Object.create(i)).constructor=t,r._super=i,n&&qi(r,n)}function Aa(t,e){return function(){return t.apply(e,arguments)}}var Fa=function(){var t=function(t,e){return void 0===e&&(e={}),new ya(t,Hi({recognizers:da.concat()},e))};return t.VERSION="2.0.17-rc",t.DIRECTION_ALL=30,t.DIRECTION_DOWN=ho,t.DIRECTION_LEFT=2,t.DIRECTION_RIGHT=4,t.DIRECTION_UP=8,t.DIRECTION_HORIZONTAL=6,t.DIRECTION_VERTICAL=fo,t.DIRECTION_NONE=1,t.DIRECTION_DOWN=ho,t.INPUT_START=1,t.INPUT_MOVE=2,t.INPUT_END=4,t.INPUT_CANCEL=8,t.STATE_POSSIBLE=1,t.STATE_BEGAN=2,t.STATE_CHANGED=4,t.STATE_ENDED=8,t.STATE_RECOGNIZED=8,t.STATE_CANCELLED=16,t.STATE_FAILED=ea,t.Manager=ya,t.Input=jo,t.TouchAction=bo,t.TouchInput=qo,t.MouseInput=$o,t.PointerEventInput=Lo,t.TouchMouseInput=Zo,t.SingleTouchInput=wa,t.Recognizer=oa,t.AttrRecognizer=sa,t.Tap=aa,t.Pan=la,t.Swipe=ua,t.Pinch=ha,t.Rotate=fa,t.Press=pa,t.on=xo,t.off=Po,t.each=go,t.merge=Ta,t.extend=Oa,t.bindFn=Aa,t.assign=qi,t.inherit=_a,t.bindFn=Aa,t.prefixed=Qi,t.toArray=Ho,t.inArray=Io,t.uniqueArray=zo,t.splitStr=So,t.boolOrFn=yo,t.hasParent=ko,t.addEventListeners=xo,t.removeEventListeners=Po,t.defaults=qi({},va,{preset:da}),t}();var Sa="undefined"!=typeof window?window.Hammer||Fa:function(){return{on:t=function(){},off:t,destroy:t,emit:t,get:function(){return{set:t}}};var t};function xa(t,e){var n;if(void 0===Ur||null==Me(t)){if(_n(t)||(n=function(t,e){var n;if(!t)return;if("string"==typeof t)return Pa(t,e);var r=jr(n=Object.prototype.toString.call(t)).call(n,8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return $e(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Pa(t,e)}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=Ne(t)},n:function(){var t=n.next();return a=t.done,t},e:function(t){s=!0,o=t},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function Pa(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function Da(t){var e,n=this;this._cleanupQueue=[],this.active=!1,this._dom={container:t,overlay:document.createElement("div")},this._dom.overlay.classList.add("vis-overlay"),this._dom.container.appendChild(this._dom.overlay),this._cleanupQueue.push((function(){n._dom.overlay.parentNode.removeChild(n._dom.overlay)}));var r=Sa(this._dom.overlay);r.on("tap",Bi(e=this._onTapOverlay).call(e,this)),this._cleanupQueue.push((function(){r.destroy()}));var i=["tap","doubletap","press","pinch","pan","panstart","panmove","panend"];Pi(i).call(i,(function(t){r.on(t,(function(t){t.srcEvent.stopPropagation()}))})),document&&document.body&&(this._onClick=function(e){(function(t,e){for(;t;){if(t===e)return!0;t=t.parentNode}return!1})(e.target,t)||n.deactivate()},document.body.addEventListener("click",this._onClick),this._cleanupQueue.push((function(){document.body.removeEventListener("click",n._onClick)}))),this._escListener=function(t){("key"in t?"Escape"===t.key:27===t.keyCode)&&n.deactivate()}}Li(Da.prototype),Da.current=null,Da.prototype.destroy=function(){var t,e;this.deactivate();var n,r=xa(Ci(t=yi(e=this._cleanupQueue).call(e,0)).call(t));try{for(r.s();!(n=r.n()).done;){(0,n.value)()}}catch(t){r.e(t)}finally{r.f()}},Da.prototype.activate=function(){Da.current&&Da.current.deactivate(),Da.current=this,this.active=!0,this._dom.overlay.style.display="none",this._dom.container.classList.add("vis-active"),this.emit("change"),this.emit("activate"),document.body.addEventListener("keydown",this._escListener)},Da.prototype.deactivate=function(){this.active=!1,this._dom.overlay.style.display="block",this._dom.container.classList.remove("vis-active"),document.body.removeEventListener("keydown",this._escListener),this.emit("change"),this.emit("deactivate")},Da.prototype._onTapOverlay=function(t){this.activate(),t.srcEvent.stopPropagation()};gt({target:"Array",proto:!0},{fill:function(t){for(var e=yt(this),n=Mt(e.length),r=arguments.length,i=Ht(r>1?arguments[1]:void 0,n),o=r>2?arguments[2]:void 0,a=void 0===o?n:Ht(o,n);a>i;)e[i++]=t;return e}});var ja=wn("Array").fill,Ia=Array.prototype,Ra=function(t){var e=t.fill;return t===Ia||t instanceof Array&&e===Ia.fill?ja:e},Na=[].slice,Ma=/MSIE .\./.test(sn),Ba=function(t){return function(e,n){var r=arguments.length>2,i=r?Na.call(arguments,2):void 0;return t(r?function(){("function"==typeof e?e:Function(e)).apply(this,i)}:e,n)}};gt({global:!0,bind:!0,forced:Ma},{setTimeout:Ba(f.setTimeout),setInterval:Ba(f.setInterval)});var La=ht.setTimeout,Ha=Object.assign,za=Object.defineProperty,Wa=!Ha||e((function(){if(p&&1!==Ha({b:1},Ha(za({},"a",{enumerable:!0,get:function(){za(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var t={},e={},n=Symbol(),r="abcdefghijklmnopqrst";return t[n]=7,r.split("").forEach((function(t){e[t]=t})),7!=Ha({},t)[n]||Xt(Ha({},e)).join("")!=r}))?function(t,e){for(var n=yt(t),r=arguments.length,i=1,a=Vn.f,s=et.f;r>i;)for(var c,l=o(arguments[i++]),u=a?Xt(l).concat(a(l)):Xt(l),h=u.length,f=0;h>f;)c=u[f++],p&&!s.call(l,c)||(n[c]=l[c]);return n}:Ha;gt({target:"Object",stat:!0,forced:Object.assign!==Wa},{assign:Wa});var Va=ht.Object.assign,qa=$t("JSON","stringify"),Ya=/[\uD800-\uDFFF]/g,Xa=/^[\uD800-\uDBFF]$/,Ga=/^[\uDC00-\uDFFF]$/,Ua=function(t,e,n){var r=n.charAt(e-1),i=n.charAt(e+1);return Xa.test(t)&&!Ga.test(i)||Ga.test(t)&&!Xa.test(r)?"\\u"+t.charCodeAt(0).toString(16):t},$a=e((function(){return'"\\udf06\\ud834"'!==qa("\udf06\ud834")||'"\\udead"'!==qa("\udead")}));qa&>({target:"JSON",stat:!0,forced:$a},{stringify:function(t,e,n){var r=qa.apply(null,arguments);return"string"==typeof r?r.replace(Ya,Ua):r}}),ht.JSON||(ht.JSON={stringify:JSON.stringify});var Qa=function(t,e,n){return ht.JSON.stringify.apply(null,arguments)};var Ja=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")};gt({target:"Object",stat:!0,forced:!p,sham:!p},{defineProperty:C.f});var Ka=u((function(t){var e=ht.Object,n=t.exports=function(t,n,r){return e.defineProperty(t,n,r)};e.defineProperty.sham&&(n.sham=!0)})),Za=Ka;function ts(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Za(t,r.key,r)}}var es=function(t,e,n){return e&&ts(t.prototype,e),n&&ts(t,n),t},ns=Ka;gt({target:"Object",stat:!0,forced:!p,sham:!p},{defineProperties:Gt});var rs=u((function(t){var e=ht.Object,n=t.exports=function(t,n){return e.defineProperties(t,n)};e.defineProperties.sham&&(n.sham=!0)}));gt({target:"Object",stat:!0,sham:!p},{getOwnPropertyDescriptors:function(t){for(var e,n,r=s(t),i=rt.f,o=Er(r),a={},c=0;o.length>c;)void 0!==(n=i(r,e=o[c++]))&&We(a,e,n);return a}});var is=ht.Object.getOwnPropertyDescriptors,os=rt.f,as=e((function(){os(1)}));gt({target:"Object",stat:!0,forced:!p||as,sham:!p},{getOwnPropertyDescriptor:function(t,e){return os(s(t),e)}});var ss=u((function(t){var e=ht.Object,n=t.exports=function(t,n){return e.getOwnPropertyDescriptor(t,n)};e.getOwnPropertyDescriptor.sham&&(n.sham=!0)})),cs=ht.Object.getOwnPropertySymbols;gt({target:"Object",stat:!0,sham:!p},{create:ee});var ls=ht.Object,us=function(t,e){return ls.create(t,e)};var hs,fs=function(t,e,n){return e in t?Za(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t},ps="\t\n\v\f\r \u2028\u2029\ufeff",vs="["+ps+"]",ds=RegExp("^"+vs+vs+"*"),gs=RegExp(vs+vs+"*$"),ys=function(t){return function(e){var n=String(a(e));return 1&t&&(n=n.replace(ds,"")),2&t&&(n=n.replace(gs,"")),n}},ms={start:ys(1),end:ys(2),trim:ys(3)},bs=ms.trim;gt({target:"String",proto:!0,forced:(hs="trim",e((function(){return!!ps[hs]()||"
"!="
"[hs]()||ps[hs].name!==hs})))},{trim:function(){return bs(this)}});var ks=wn("String").trim,ws=String.prototype,Cs=function(t){var e=t.trim;return"string"==typeof t||t===ws||t instanceof String&&e===ws.trim?ks:e},Es=Wt.indexOf,Os=[].indexOf,Ts=!!Os&&1/[1].indexOf(1,-0)<0,_s=Ei("indexOf"),As=yn("indexOf",{ACCESSORS:!0,1:0});gt({target:"Array",proto:!0,forced:Ts||!_s||!As},{indexOf:function(t){return Ts?Os.apply(this,arguments)||0:Es(this,t,arguments.length>1?arguments[1]:void 0)}});var Fs=wn("Array").indexOf,Ss=Array.prototype,xs=function(t){var e=t.indexOf;return t===Ss||t instanceof Array&&e===Ss.indexOf?Fs:e},Ps=ms.trim,Ds=f.parseInt,js=/^[+-]?0[Xx]/,Is=8!==Ds(ps+"08")||22!==Ds(ps+"0x16")?function(t,e){var n=Ps(String(t));return Ds(n,e>>>0||(js.test(n)?16:10))}:Ds;gt({global:!0,forced:parseInt!=Is},{parseInt:Is});var Rs=ht.parseInt,Ns=et.f,Ms=function(t){return function(e){for(var n,r=s(e),i=Xt(r),o=i.length,a=0,c=[];o>a;)n=i[a++],p&&!Ns.call(r,n)||c.push(t?[n,r[n]]:r[n]);return c}},Bs={entries:Ms(!0),values:Ms(!1)}.values;gt({target:"Object",stat:!0},{values:function(t){return Bs(t)}});var Ls=ht.Object.values,Hs=an.filter,zs=pn("filter"),Ws=yn("filter");gt({target:"Array",proto:!0,forced:!zs||!Ws},{filter:function(t){return Hs(this,t,arguments.length>1?arguments[1]:void 0)}});var Vs=wn("Array").filter,qs=Array.prototype,Ys=function(t){var e=t.filter;return t===qs||t instanceof Array&&e===qs.filter?Vs:e},Xs=e((function(){wt(1)}));gt({target:"Object",stat:!0,forced:Xs,sham:!mt},{getPrototypeOf:function(t){return wt(yt(t))}});var Gs=ht.Object.getPrototypeOf,Us=Wt.includes,$s=yn("indexOf",{ACCESSORS:!0,1:0});gt({target:"Array",proto:!0,forced:!$s},{includes:function(t){return Us(this,t,arguments.length>1?arguments[1]:void 0)}});var Qs=wn("Array").includes,Js=At("match"),Ks=function(t){if(function(t){var e;return v(t)&&(void 0!==(e=t[Js])?!!e:"RegExp"==r(t))}(t))throw TypeError("The method doesn't accept regular expressions");return t},Zs=At("match");gt({target:"String",proto:!0,forced:!function(t){var e=/./;try{"/./"[t](e)}catch(n){try{return e[Zs]=!1,"/./"[t](e)}catch(t){}}return!1}("includes")},{includes:function(t){return!!~String(a(this)).indexOf(Ks(t),arguments.length>1?arguments[1]:void 0)}});var tc=wn("String").includes,ec=Array.prototype,nc=String.prototype,rc=function(t){var e=t.includes;return t===ec||t instanceof Array&&e===ec.includes?Qs:"string"==typeof t||t===nc||t instanceof String&&e===nc.includes?tc:e};function ic(t,e){var n;if(void 0===Ur||null==Me(t)){if(_n(t)||(n=function(t,e){var n;if(!t)return;if("string"==typeof t)return oc(t,e);var r=jr(n=Object.prototype.toString.call(t)).call(n,8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return $e(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return oc(t,e)}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=Ne(t)},n:function(){var t=n.next();return a=t.done,t},e:function(t){s=!0,o=t},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function oc(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function ac(t,e){var n=Ze(t);if(cs){var r=cs(t);e&&(r=Ys(r).call(r,(function(e){return ss(t,e).enumerable}))),n.push.apply(n,r)}return n}function sc(t){for(var e=1;e<arguments.length;e++){var n,r=null!=arguments[e]?arguments[e]:{};if(e%2)Pi(n=ac(Object(r),!0)).call(n,(function(e){fs(t,e,r[e])}));else if(is)rs(t,is(r));else{var i;Pi(i=ac(Object(r))).call(i,(function(e){ns(t,e,ss(r,e))}))}}return t}var cc=/^\/?Date\((-?\d+)/i,lc=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i,uc=/^#?([a-f\d])([a-f\d])([a-f\d])$/i,hc=/^rgb\( *(1?\d{1,2}|2[0-4]\d|25[0-5]) *, *(1?\d{1,2}|2[0-4]\d|25[0-5]) *, *(1?\d{1,2}|2[0-4]\d|25[0-5]) *\)$/i,fc=/^rgba\( *(1?\d{1,2}|2[0-4]\d|25[0-5]) *, *(1?\d{1,2}|2[0-4]\d|25[0-5]) *, *(1?\d{1,2}|2[0-4]\d|25[0-5]) *, *([01]|0?\.\d+) *\)$/i;function pc(t){return t instanceof Number||"number"==typeof t}function vc(t){return t instanceof String||"string"==typeof t}function dc(t){return"object"===Cr(t)&&null!==t}function gc(t,e,n,r){var i=!1;!0===r&&(i=null===e[n]&&void 0!==t[n]),i?delete t[n]:t[n]=e[n]}var yc=Va;function mc(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)||!0===n)if("object"===Cr(e[i])&&null!==e[i]&&Gs(e[i])===Object.prototype)void 0===t[i]?t[i]=mc({},e[i],n):"object"===Cr(t[i])&&null!==t[i]&&Gs(t[i])===Object.prototype?mc(t[i],e[i],n):gc(t,e,i,r);else if(_n(e[i])){var o;t[i]=jr(o=e[i]).call(o)}else gc(t,e,i,r);return t}function bc(t,e){var n;return Gr(n=[]).call(n,qr(t),[e])}function kc(t){return jr(t).call(t)}var wc=Ls;var Cc={asBoolean:function(t,e){return"function"==typeof t&&(t=t()),null!=t?0!=t:e||null},asNumber:function(t,e){return"function"==typeof t&&(t=t()),null!=t?Number(t)||e||null:e||null},asString:function(t,e){return"function"==typeof t&&(t=t()),null!=t?String(t):e||null},asSize:function(t,e){return"function"==typeof t&&(t=t()),vc(t)?t:pc(t)?t+"px":e||null},asElement:function(t,e){return"function"==typeof t&&(t=t()),t||e||null}};function Ec(t){var e;switch(t.length){case 3:case 4:return(e=uc.exec(t))?{r:Rs(e[1]+e[1],16),g:Rs(e[2]+e[2],16),b:Rs(e[3]+e[3],16)}:null;case 6:case 7:return(e=lc.exec(t))?{r:Rs(e[1],16),g:Rs(e[2],16),b:Rs(e[3],16)}:null;default:return null}}function Oc(t,e,n){var r;return"#"+jr(r=((1<<24)+(t<<16)+(e<<8)+n).toString(16)).call(r,1)}function Tc(t,e,n){t/=255,e/=255,n/=255;var r=Math.min(t,Math.min(e,n)),i=Math.max(t,Math.max(e,n));return r===i?{h:0,s:0,v:r}:{h:60*((t===r?3:n===r?1:5)-(t===r?e-n:n===r?t-e:n-t)/(i-r))/360,s:(i-r)/i,v:i}}var _c=function(t){var e,n={};return Pi(e=t.split(";")).call(e,(function(t){if(""!=Cs(t).call(t)){var e,r,i=t.split(":"),o=Cs(e=i[0]).call(e),a=Cs(r=i[1]).call(r);n[o]=a}})),n},Ac=function(t){var e;return On(e=Ze(t)).call(e,(function(e){return e+": "+t[e]})).join("; ")};function Fc(t,e,n){var r,i,o,a=Math.floor(6*t),s=6*t-a,c=n*(1-e),l=n*(1-s*e),u=n*(1-(1-s)*e);switch(a%6){case 0:r=n,i=u,o=c;break;case 1:r=l,i=n,o=c;break;case 2:r=c,i=n,o=u;break;case 3:r=c,i=l,o=n;break;case 4:r=u,i=c,o=n;break;case 5:r=n,i=c,o=l}return{r:Math.floor(255*r),g:Math.floor(255*i),b:Math.floor(255*o)}}function Sc(t,e,n){var r=Fc(t,e,n);return Oc(r.r,r.g,r.b)}function xc(t){var e=Ec(t);if(!e)throw new TypeError("'".concat(t,"' is not a valid color."));return Tc(e.r,e.g,e.b)}function Pc(t){return/(^#[0-9A-F]{6}$)|(^#[0-9A-F]{3}$)/i.test(t)}function Dc(t){return hc.test(t)}function jc(t){return fc.test(t)}function Ic(t){if(null===t||"object"!==Cr(t))return null;if(t instanceof Element)return t;var e=us(t);for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&"object"==Cr(t[n])&&(e[n]=Ic(t[n]));return e}var Rc={black:"#000000",navy:"#000080",darkblue:"#00008B",mediumblue:"#0000CD",blue:"#0000FF",darkgreen:"#006400",green:"#008000",teal:"#008080",darkcyan:"#008B8B",deepskyblue:"#00BFFF",darkturquoise:"#00CED1",mediumspringgreen:"#00FA9A",lime:"#00FF00",springgreen:"#00FF7F",aqua:"#00FFFF",cyan:"#00FFFF",midnightblue:"#191970",dodgerblue:"#1E90FF",lightseagreen:"#20B2AA",forestgreen:"#228B22",seagreen:"#2E8B57",darkslategray:"#2F4F4F",limegreen:"#32CD32",mediumseagreen:"#3CB371",turquoise:"#40E0D0",royalblue:"#4169E1",steelblue:"#4682B4",darkslateblue:"#483D8B",mediumturquoise:"#48D1CC",indigo:"#4B0082",darkolivegreen:"#556B2F",cadetblue:"#5F9EA0",cornflowerblue:"#6495ED",mediumaquamarine:"#66CDAA",dimgray:"#696969",slateblue:"#6A5ACD",olivedrab:"#6B8E23",slategray:"#708090",lightslategray:"#778899",mediumslateblue:"#7B68EE",lawngreen:"#7CFC00",chartreuse:"#7FFF00",aquamarine:"#7FFFD4",maroon:"#800000",purple:"#800080",olive:"#808000",gray:"#808080",skyblue:"#87CEEB",lightskyblue:"#87CEFA",blueviolet:"#8A2BE2",darkred:"#8B0000",darkmagenta:"#8B008B",saddlebrown:"#8B4513",darkseagreen:"#8FBC8F",lightgreen:"#90EE90",mediumpurple:"#9370D8",darkviolet:"#9400D3",palegreen:"#98FB98",darkorchid:"#9932CC",yellowgreen:"#9ACD32",sienna:"#A0522D",brown:"#A52A2A",darkgray:"#A9A9A9",lightblue:"#ADD8E6",greenyellow:"#ADFF2F",paleturquoise:"#AFEEEE",lightsteelblue:"#B0C4DE",powderblue:"#B0E0E6",firebrick:"#B22222",darkgoldenrod:"#B8860B",mediumorchid:"#BA55D3",rosybrown:"#BC8F8F",darkkhaki:"#BDB76B",silver:"#C0C0C0",mediumvioletred:"#C71585",indianred:"#CD5C5C",peru:"#CD853F",chocolate:"#D2691E",tan:"#D2B48C",lightgrey:"#D3D3D3",palevioletred:"#D87093",thistle:"#D8BFD8",orchid:"#DA70D6",goldenrod:"#DAA520",crimson:"#DC143C",gainsboro:"#DCDCDC",plum:"#DDA0DD",burlywood:"#DEB887",lightcyan:"#E0FFFF",lavender:"#E6E6FA",darksalmon:"#E9967A",violet:"#EE82EE",palegoldenrod:"#EEE8AA",lightcoral:"#F08080",khaki:"#F0E68C",aliceblue:"#F0F8FF",honeydew:"#F0FFF0",azure:"#F0FFFF",sandybrown:"#F4A460",wheat:"#F5DEB3",beige:"#F5F5DC",whitesmoke:"#F5F5F5",mintcream:"#F5FFFA",ghostwhite:"#F8F8FF",salmon:"#FA8072",antiquewhite:"#FAEBD7",linen:"#FAF0E6",lightgoldenrodyellow:"#FAFAD2",oldlace:"#FDF5E6",red:"#FF0000",fuchsia:"#FF00FF",magenta:"#FF00FF",deeppink:"#FF1493",orangered:"#FF4500",tomato:"#FF6347",hotpink:"#FF69B4",coral:"#FF7F50",darkorange:"#FF8C00",lightsalmon:"#FFA07A",orange:"#FFA500",lightpink:"#FFB6C1",pink:"#FFC0CB",gold:"#FFD700",peachpuff:"#FFDAB9",navajowhite:"#FFDEAD",moccasin:"#FFE4B5",bisque:"#FFE4C4",mistyrose:"#FFE4E1",blanchedalmond:"#FFEBCD",papayawhip:"#FFEFD5",lavenderblush:"#FFF0F5",seashell:"#FFF5EE",cornsilk:"#FFF8DC",lemonchiffon:"#FFFACD",floralwhite:"#FFFAF0",snow:"#FFFAFA",yellow:"#FFFF00",lightyellow:"#FFFFE0",ivory:"#FFFFF0",white:"#FFFFFF"},Nc=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;Ja(this,t),this.pixelRatio=e,this.generated=!1,this.centerCoordinates={x:144.5,y:144.5},this.r=289*.49,this.color={r:255,g:255,b:255,a:1},this.hueCircle=void 0,this.initialColor={r:255,g:255,b:255,a:1},this.previousColor=void 0,this.applied=!1,this.updateCallback=function(){},this.closeCallback=function(){},this._create()}return es(t,[{key:"insertTo",value:function(t){void 0!==this.hammer&&(this.hammer.destroy(),this.hammer=void 0),this.container=t,this.container.appendChild(this.frame),this._bindHammer(),this._setSize()}},{key:"setUpdateCallback",value:function(t){if("function"!=typeof t)throw new Error("Function attempted to set as colorPicker update callback is not a function.");this.updateCallback=t}},{key:"setCloseCallback",value:function(t){if("function"!=typeof t)throw new Error("Function attempted to set as colorPicker closing callback is not a function.");this.closeCallback=t}},{key:"_isColorString",value:function(t){if("string"==typeof t)return Rc[t]}},{key:"setColor",value:function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if("none"!==t){var n,r=this._isColorString(t);if(void 0!==r&&(t=r),!0===vc(t)){if(!0===Dc(t)){var i=t.substr(4).substr(0,t.length-5).split(",");n={r:i[0],g:i[1],b:i[2],a:1}}else if(!0===jc(t)){var o=t.substr(5).substr(0,t.length-6).split(",");n={r:o[0],g:o[1],b:o[2],a:o[3]}}else if(!0===Pc(t)){var a=Ec(t);n={r:a.r,g:a.g,b:a.b,a:1}}}else if(t instanceof Object&&void 0!==t.r&&void 0!==t.g&&void 0!==t.b){var s=void 0!==t.a?t.a:"1.0";n={r:t.r,g:t.g,b:t.b,a:s}}if(void 0===n)throw new Error("Unknown color passed to the colorPicker. Supported are strings: rgb, hex, rgba. Object: rgb ({r:r,g:g,b:b,[a:a]}). Supplied: "+Qa(t));this._setColor(n,e)}}},{key:"show",value:function(){void 0!==this.closeCallback&&(this.closeCallback(),this.closeCallback=void 0),this.applied=!1,this.frame.style.display="block",this._generateHueCircle()}},{key:"_hide",value:function(){var t=this,e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];!0===e&&(this.previousColor=Va({},this.color)),!0===this.applied&&this.updateCallback(this.initialColor),this.frame.style.display="none",La((function(){void 0!==t.closeCallback&&(t.closeCallback(),t.closeCallback=void 0)}),0)}},{key:"_save",value:function(){this.updateCallback(this.color),this.applied=!1,this._hide()}},{key:"_apply",value:function(){this.applied=!0,this.updateCallback(this.color),this._updatePicker(this.color)}},{key:"_loadLast",value:function(){void 0!==this.previousColor?this.setColor(this.previousColor,!1):alert("There is no last color to load...")}},{key:"_setColor",value:function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];!0===e&&(this.initialColor=Va({},t)),this.color=t;var n=Tc(t.r,t.g,t.b),r=2*Math.PI,i=this.r*n.s,o=this.centerCoordinates.x+i*Math.sin(r*n.h),a=this.centerCoordinates.y+i*Math.cos(r*n.h);this.colorPickerSelector.style.left=o-.5*this.colorPickerSelector.clientWidth+"px",this.colorPickerSelector.style.top=a-.5*this.colorPickerSelector.clientHeight+"px",this._updatePicker(t)}},{key:"_setOpacity",value:function(t){this.color.a=t/100,this._updatePicker(this.color)}},{key:"_setBrightness",value:function(t){var e=Tc(this.color.r,this.color.g,this.color.b);e.v=t/100;var n=Fc(e.h,e.s,e.v);n.a=this.color.a,this.color=n,this._updatePicker()}},{key:"_updatePicker",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.color,e=Tc(t.r,t.g,t.b),n=this.colorPickerCanvas.getContext("2d");void 0===this.pixelRation&&(this.pixelRatio=(window.devicePixelRatio||1)/(n.webkitBackingStorePixelRatio||n.mozBackingStorePixelRatio||n.msBackingStorePixelRatio||n.oBackingStorePixelRatio||n.backingStorePixelRatio||1)),n.setTransform(this.pixelRatio,0,0,this.pixelRatio,0,0);var r=this.colorPickerCanvas.clientWidth,i=this.colorPickerCanvas.clientHeight;n.clearRect(0,0,r,i),n.putImageData(this.hueCircle,0,0),n.fillStyle="rgba(0,0,0,"+(1-e.v)+")",n.circle(this.centerCoordinates.x,this.centerCoordinates.y,this.r),Ra(n).call(n),this.brightnessRange.value=100*e.v,this.opacityRange.value=100*t.a,this.initialColorDiv.style.backgroundColor="rgba("+this.initialColor.r+","+this.initialColor.g+","+this.initialColor.b+","+this.initialColor.a+")",this.newColorDiv.style.backgroundColor="rgba("+this.color.r+","+this.color.g+","+this.color.b+","+this.color.a+")"}},{key:"_setSize",value:function(){this.colorPickerCanvas.style.width="100%",this.colorPickerCanvas.style.height="100%",this.colorPickerCanvas.width=289*this.pixelRatio,this.colorPickerCanvas.height=289*this.pixelRatio}},{key:"_create",value:function(){var t,e,n,r;if(this.frame=document.createElement("div"),this.frame.className="vis-color-picker",this.colorPickerDiv=document.createElement("div"),this.colorPickerSelector=document.createElement("div"),this.colorPickerSelector.className="vis-selector",this.colorPickerDiv.appendChild(this.colorPickerSelector),this.colorPickerCanvas=document.createElement("canvas"),this.colorPickerDiv.appendChild(this.colorPickerCanvas),this.colorPickerCanvas.getContext){var i=this.colorPickerCanvas.getContext("2d");this.pixelRatio=(window.devicePixelRatio||1)/(i.webkitBackingStorePixelRatio||i.mozBackingStorePixelRatio||i.msBackingStorePixelRatio||i.oBackingStorePixelRatio||i.backingStorePixelRatio||1),this.colorPickerCanvas.getContext("2d").setTransform(this.pixelRatio,0,0,this.pixelRatio,0,0)}else{var o=document.createElement("DIV");o.style.color="red",o.style.fontWeight="bold",o.style.padding="10px",o.innerText="Error: your browser does not support HTML canvas",this.colorPickerCanvas.appendChild(o)}this.colorPickerDiv.className="vis-color",this.opacityDiv=document.createElement("div"),this.opacityDiv.className="vis-opacity",this.brightnessDiv=document.createElement("div"),this.brightnessDiv.className="vis-brightness",this.arrowDiv=document.createElement("div"),this.arrowDiv.className="vis-arrow",this.opacityRange=document.createElement("input");try{this.opacityRange.type="range",this.opacityRange.min="0",this.opacityRange.max="100"}catch(t){}this.opacityRange.value="100",this.opacityRange.className="vis-range",this.brightnessRange=document.createElement("input");try{this.brightnessRange.type="range",this.brightnessRange.min="0",this.brightnessRange.max="100"}catch(t){}this.brightnessRange.value="100",this.brightnessRange.className="vis-range",this.opacityDiv.appendChild(this.opacityRange),this.brightnessDiv.appendChild(this.brightnessRange);var a=this;this.opacityRange.onchange=function(){a._setOpacity(this.value)},this.opacityRange.oninput=function(){a._setOpacity(this.value)},this.brightnessRange.onchange=function(){a._setBrightness(this.value)},this.brightnessRange.oninput=function(){a._setBrightness(this.value)},this.brightnessLabel=document.createElement("div"),this.brightnessLabel.className="vis-label vis-brightness",this.brightnessLabel.innerText="brightness:",this.opacityLabel=document.createElement("div"),this.opacityLabel.className="vis-label vis-opacity",this.opacityLabel.innerText="opacity:",this.newColorDiv=document.createElement("div"),this.newColorDiv.className="vis-new-color",this.newColorDiv.innerText="new",this.initialColorDiv=document.createElement("div"),this.initialColorDiv.className="vis-initial-color",this.initialColorDiv.innerText="initial",this.cancelButton=document.createElement("div"),this.cancelButton.className="vis-button vis-cancel",this.cancelButton.innerText="cancel",this.cancelButton.onclick=Bi(t=this._hide).call(t,this,!1),this.applyButton=document.createElement("div"),this.applyButton.className="vis-button vis-apply",this.applyButton.innerText="apply",this.applyButton.onclick=Bi(e=this._apply).call(e,this),this.saveButton=document.createElement("div"),this.saveButton.className="vis-button vis-save",this.saveButton.innerText="save",this.saveButton.onclick=Bi(n=this._save).call(n,this),this.loadButton=document.createElement("div"),this.loadButton.className="vis-button vis-load",this.loadButton.innerText="load last",this.loadButton.onclick=Bi(r=this._loadLast).call(r,this),this.frame.appendChild(this.colorPickerDiv),this.frame.appendChild(this.arrowDiv),this.frame.appendChild(this.brightnessLabel),this.frame.appendChild(this.brightnessDiv),this.frame.appendChild(this.opacityLabel),this.frame.appendChild(this.opacityDiv),this.frame.appendChild(this.newColorDiv),this.frame.appendChild(this.initialColorDiv),this.frame.appendChild(this.cancelButton),this.frame.appendChild(this.applyButton),this.frame.appendChild(this.saveButton),this.frame.appendChild(this.loadButton)}},{key:"_bindHammer",value:function(){var t=this;this.drag={},this.pinch={},this.hammer=new Sa(this.colorPickerCanvas),this.hammer.get("pinch").set({enable:!0}),this.hammer.on("hammer.input",(function(e){e.isFirst&&t._moveSelector(e)})),this.hammer.on("tap",(function(e){t._moveSelector(e)})),this.hammer.on("panstart",(function(e){t._moveSelector(e)})),this.hammer.on("panmove",(function(e){t._moveSelector(e)})),this.hammer.on("panend",(function(e){t._moveSelector(e)}))}},{key:"_generateHueCircle",value:function(){if(!1===this.generated){var t=this.colorPickerCanvas.getContext("2d");void 0===this.pixelRation&&(this.pixelRatio=(window.devicePixelRatio||1)/(t.webkitBackingStorePixelRatio||t.mozBackingStorePixelRatio||t.msBackingStorePixelRatio||t.oBackingStorePixelRatio||t.backingStorePixelRatio||1)),t.setTransform(this.pixelRatio,0,0,this.pixelRatio,0,0);var e,n,r,i,o=this.colorPickerCanvas.clientWidth,a=this.colorPickerCanvas.clientHeight;t.clearRect(0,0,o,a),this.centerCoordinates={x:.5*o,y:.5*a},this.r=.49*o;var s,c=2*Math.PI/360,l=1/this.r;for(r=0;r<360;r++)for(i=0;i<this.r;i++)e=this.centerCoordinates.x+i*Math.sin(c*r),n=this.centerCoordinates.y+i*Math.cos(c*r),s=Fc(.002777777777777778*r,i*l,1),t.fillStyle="rgb("+s.r+","+s.g+","+s.b+")",t.fillRect(e-.5,n-.5,2,2);t.strokeStyle="rgba(0,0,0,1)",t.circle(this.centerCoordinates.x,this.centerCoordinates.y,this.r),t.stroke(),this.hueCircle=t.getImageData(0,0,o,a)}this.generated=!0}},{key:"_moveSelector",value:function(t){var e=this.colorPickerDiv.getBoundingClientRect(),n=t.center.x-e.left,r=t.center.y-e.top,i=.5*this.colorPickerDiv.clientHeight,o=.5*this.colorPickerDiv.clientWidth,a=n-o,s=r-i,c=Math.atan2(a,s),l=.98*Math.min(Math.sqrt(a*a+s*s),o),u=Math.cos(c)*l+i,h=Math.sin(c)*l+o;this.colorPickerSelector.style.top=u-.5*this.colorPickerSelector.clientHeight+"px",this.colorPickerSelector.style.left=h-.5*this.colorPickerSelector.clientWidth+"px";var f=c/(2*Math.PI);f=f<0?f+1:f;var p=l/this.r,v=Tc(this.color.r,this.color.g,this.color.b);v.h=f,v.s=p;var d=Fc(v.h,v.s,v.v);d.a=this.color.a,this.color=d,this.initialColorDiv.style.backgroundColor="rgba("+this.initialColor.r+","+this.initialColor.g+","+this.initialColor.b+","+this.initialColor.a+")",this.newColorDiv.style.backgroundColor="rgba("+this.color.r+","+this.color.g+","+this.color.b+","+this.color.a+")"}}]),t}();function Mc(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];if(e.length<1)throw new TypeError("Invalid arguments.");if(1===e.length)return document.createTextNode(e[0]);var r=document.createElement(e[0]);return r.appendChild(Mc.apply(void 0,qr(jr(e).call(e,1)))),r}var Bc,Lc=function(){function t(e,n,r){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:function(){return!1};Ja(this,t),this.parent=e,this.changedOptions=[],this.container=n,this.allowCreation=!1,this.hideOption=o,this.options={},this.initialized=!1,this.popupCounter=0,this.defaultOptions={enabled:!1,filter:!0,container:void 0,showButton:!0},Va(this.options,this.defaultOptions),this.configureOptions=r,this.moduleOptions={},this.domElements=[],this.popupDiv={},this.popupLimit=5,this.popupHistory={},this.colorPicker=new Nc(i),this.wrapper=void 0}return es(t,[{key:"setOptions",value:function(t){if(void 0!==t){this.popupHistory={},this._removePopup();var e=!0;if("string"==typeof t)this.options.filter=t;else if(_n(t))this.options.filter=t.join();else if("object"===Cr(t)){if(null==t)throw new TypeError("options cannot be null");void 0!==t.container&&(this.options.container=t.container),void 0!==Ys(t)&&(this.options.filter=Ys(t)),void 0!==t.showButton&&(this.options.showButton=t.showButton),void 0!==t.enabled&&(e=t.enabled)}else"boolean"==typeof t?(this.options.filter=!0,e=t):"function"==typeof t&&(this.options.filter=t,e=!0);!1===Ys(this.options)&&(e=!1),this.options.enabled=e}this._clean()}},{key:"setModuleOptions",value:function(t){this.moduleOptions=t,!0===this.options.enabled&&(this._clean(),void 0!==this.options.container&&(this.container=this.options.container),this._create())}},{key:"_create",value:function(){this._clean(),this.changedOptions=[];var t=Ys(this.options),e=0,n=!1;for(var r in this.configureOptions)Object.prototype.hasOwnProperty.call(this.configureOptions,r)&&(this.allowCreation=!1,n=!1,"function"==typeof t?n=(n=t(r,[]))||this._handleObject(this.configureOptions[r],[r],!0):!0!==t&&-1===xs(t).call(t,r)||(n=!0),!1!==n&&(this.allowCreation=!0,e>0&&this._makeItem([]),this._makeHeader(r),this._handleObject(this.configureOptions[r],[r])),e++);this._makeButton(),this._push()}},{key:"_push",value:function(){this.wrapper=document.createElement("div"),this.wrapper.className="vis-configuration-wrapper",this.container.appendChild(this.wrapper);for(var t=0;t<this.domElements.length;t++)this.wrapper.appendChild(this.domElements[t]);this._showPopupIfNeeded()}},{key:"_clean",value:function(){for(var t=0;t<this.domElements.length;t++)this.wrapper.removeChild(this.domElements[t]);void 0!==this.wrapper&&(this.container.removeChild(this.wrapper),this.wrapper=void 0),this.domElements=[],this._removePopup()}},{key:"_getValue",value:function(t){for(var e=this.moduleOptions,n=0;n<t.length;n++){if(void 0===e[t[n]]){e=void 0;break}e=e[t[n]]}return e}},{key:"_makeItem",value:function(t){if(!0===this.allowCreation){var e=document.createElement("div");e.className="vis-configuration vis-config-item vis-config-s"+t.length;for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return Pi(r).call(r,(function(t){e.appendChild(t)})),this.domElements.push(e),this.domElements.length}return 0}},{key:"_makeHeader",value:function(t){var e=document.createElement("div");e.className="vis-configuration vis-config-header",e.innerText=t,this._makeItem([],e)}},{key:"_makeLabel",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=document.createElement("div");if(r.className="vis-configuration vis-config-label vis-config-s"+e.length,!0===n){for(;r.firstChild;)r.removeChild(r.firstChild);r.appendChild(Mc("i","b",t))}else r.innerText=t+":";return r}},{key:"_makeDropdown",value:function(t,e,n){var r=document.createElement("select");r.className="vis-configuration vis-config-select";var i=0;void 0!==e&&-1!==xs(t).call(t,e)&&(i=xs(t).call(t,e));for(var o=0;o<t.length;o++){var a=document.createElement("option");a.value=t[o],o===i&&(a.selected="selected"),a.innerText=t[o],r.appendChild(a)}var s=this;r.onchange=function(){s._update(this.value,n)};var c=this._makeLabel(n[n.length-1],n);this._makeItem(n,c,r)}},{key:"_makeRange",value:function(t,e,n){var r=t[0],i=t[1],o=t[2],a=t[3],s=document.createElement("input");s.className="vis-configuration vis-config-range";try{s.type="range",s.min=i,s.max=o}catch(t){}s.step=a;var c="",l=0;if(void 0!==e){var u=1.2;e<0&&e*u<i?(s.min=Math.ceil(e*u),l=s.min,c="range increased"):e/u<i&&(s.min=Math.ceil(e/u),l=s.min,c="range increased"),e*u>o&&1!==o&&(s.max=Math.ceil(e*u),l=s.max,c="range increased"),s.value=e}else s.value=r;var h=document.createElement("input");h.className="vis-configuration vis-config-rangeinput",h.value=s.value;var f=this;s.onchange=function(){h.value=this.value,f._update(Number(this.value),n)},s.oninput=function(){h.value=this.value};var p=this._makeLabel(n[n.length-1],n),v=this._makeItem(n,p,s,h);""!==c&&this.popupHistory[v]!==l&&(this.popupHistory[v]=l,this._setupPopup(c,v))}},{key:"_makeButton",value:function(){var t=this;if(!0===this.options.showButton){var e=document.createElement("div");e.className="vis-configuration vis-config-button",e.innerText="generate options",e.onclick=function(){t._printOptions()},e.onmouseover=function(){e.className="vis-configuration vis-config-button hover"},e.onmouseout=function(){e.className="vis-configuration vis-config-button"},this.optionsContainer=document.createElement("div"),this.optionsContainer.className="vis-configuration vis-config-option-container",this.domElements.push(this.optionsContainer),this.domElements.push(e)}}},{key:"_setupPopup",value:function(t,e){var n=this;if(!0===this.initialized&&!0===this.allowCreation&&this.popupCounter<this.popupLimit){var r=document.createElement("div");r.id="vis-configuration-popup",r.className="vis-configuration-popup",r.innerText=t,r.onclick=function(){n._removePopup()},this.popupCounter+=1,this.popupDiv={html:r,index:e}}}},{key:"_removePopup",value:function(){void 0!==this.popupDiv.html&&(this.popupDiv.html.parentNode.removeChild(this.popupDiv.html),clearTimeout(this.popupDiv.hideTimeout),clearTimeout(this.popupDiv.deleteTimeout),this.popupDiv={})}},{key:"_showPopupIfNeeded",value:function(){var t=this;if(void 0!==this.popupDiv.html){var e=this.domElements[this.popupDiv.index].getBoundingClientRect();this.popupDiv.html.style.left=e.left+"px",this.popupDiv.html.style.top=e.top-30+"px",document.body.appendChild(this.popupDiv.html),this.popupDiv.hideTimeout=La((function(){t.popupDiv.html.style.opacity=0}),1500),this.popupDiv.deleteTimeout=La((function(){t._removePopup()}),1800)}}},{key:"_makeCheckbox",value:function(t,e,n){var r=document.createElement("input");r.type="checkbox",r.className="vis-configuration vis-config-checkbox",r.checked=t,void 0!==e&&(r.checked=e,e!==t&&("object"===Cr(t)?e!==t.enabled&&this.changedOptions.push({path:n,value:e}):this.changedOptions.push({path:n,value:e})));var i=this;r.onchange=function(){i._update(this.checked,n)};var o=this._makeLabel(n[n.length-1],n);this._makeItem(n,o,r)}},{key:"_makeTextInput",value:function(t,e,n){var r=document.createElement("input");r.type="text",r.className="vis-configuration vis-config-text",r.value=e,e!==t&&this.changedOptions.push({path:n,value:e});var i=this;r.onchange=function(){i._update(this.value,n)};var o=this._makeLabel(n[n.length-1],n);this._makeItem(n,o,r)}},{key:"_makeColorField",value:function(t,e,n){var r=this,i=t[1],o=document.createElement("div");"none"!==(e=void 0===e?i:e)?(o.className="vis-configuration vis-config-colorBlock",o.style.backgroundColor=e):o.className="vis-configuration vis-config-colorBlock none",e=void 0===e?i:e,o.onclick=function(){r._showColorPicker(e,o,n)};var a=this._makeLabel(n[n.length-1],n);this._makeItem(n,a,o)}},{key:"_showColorPicker",value:function(t,e,n){var r=this;e.onclick=function(){},this.colorPicker.insertTo(e),this.colorPicker.show(),this.colorPicker.setColor(t),this.colorPicker.setUpdateCallback((function(t){var i="rgba("+t.r+","+t.g+","+t.b+","+t.a+")";e.style.backgroundColor=i,r._update(i,n)})),this.colorPicker.setCloseCallback((function(){e.onclick=function(){r._showColorPicker(t,e,n)}}))}},{key:"_handleObject",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=!1,i=Ys(this.options),o=!1;for(var a in t)if(Object.prototype.hasOwnProperty.call(t,a)){r=!0;var s=t[a],c=bc(e,a);if("function"==typeof i&&!1===(r=i(a,e))&&!_n(s)&&"string"!=typeof s&&"boolean"!=typeof s&&s instanceof Object&&(this.allowCreation=!1,r=this._handleObject(s,c,!0),this.allowCreation=!1===n),!1!==r){o=!0;var l=this._getValue(c);if(_n(s))this._handleArray(s,l,c);else if("string"==typeof s)this._makeTextInput(s,l,c);else if("boolean"==typeof s)this._makeCheckbox(s,l,c);else if(s instanceof Object){if(!this.hideOption(e,a,this.moduleOptions))if(void 0!==s.enabled){var u=bc(c,"enabled"),h=this._getValue(u);if(!0===h){var f=this._makeLabel(a,c,!0);this._makeItem(c,f),o=this._handleObject(s,c)||o}else this._makeCheckbox(s,h,c)}else{var p=this._makeLabel(a,c,!0);this._makeItem(c,p),o=this._handleObject(s,c)||o}}else console.error("dont know how to handle",s,a,c)}}return o}},{key:"_handleArray",value:function(t,e,n){"string"==typeof t[0]&&"color"===t[0]?(this._makeColorField(t,e,n),t[1]!==e&&this.changedOptions.push({path:n,value:e})):"string"==typeof t[0]?(this._makeDropdown(t,e,n),t[0]!==e&&this.changedOptions.push({path:n,value:e})):"number"==typeof t[0]&&(this._makeRange(t,e,n),t[0]!==e&&this.changedOptions.push({path:n,value:Number(e)}))}},{key:"_update",value:function(t,e){var n=this._constructOptions(t,e);this.parent.body&&this.parent.body.emitter&&this.parent.body.emitter.emit&&this.parent.body.emitter.emit("configChange",n),this.initialized=!0,this.parent.setOptions(n)}},{key:"_constructOptions",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n;t="false"!==(t="true"===t||t)&&t;for(var i=0;i<e.length;i++)"global"!==e[i]&&(void 0===r[e[i]]&&(r[e[i]]={}),i!==e.length-1?r=r[e[i]]:r[e[i]]=t);return n}},{key:"_printOptions",value:function(){for(var t=this.getOptions();this.optionsContainer.firstChild;)this.optionsContainer.removeChild(this.optionsContainer.firstChild);this.optionsContainer.appendChild(Mc("pre","const options = "+Qa(t,null,2)))}},{key:"getOptions",value:function(){for(var t={},e=0;e<this.changedOptions.length;e++)this._constructOptions(this.changedOptions[e].value,this.changedOptions[e].path,t);return t}}]),t}(),Hc=!1,zc="background: #FFeeee; color: #dd0000",Wc=Da,Vc=Nc,qc=Lc,Yc=Sa,Xc=function(){function t(e,n){Ja(this,t),this.container=e,this.overflowMethod=n||"cap",this.x=0,this.y=0,this.padding=5,this.hidden=!1,this.frame=document.createElement("div"),this.frame.className="vis-tooltip",this.container.appendChild(this.frame)}return es(t,[{key:"setPosition",value:function(t,e){this.x=Rs(t),this.y=Rs(e)}},{key:"setText",value:function(t){if(t instanceof Element){for(;this.frame.firstChild;)this.frame.removeChild(this.frame.firstChild);this.frame.appendChild(t)}else this.frame.innerText=t}},{key:"show",value:function(t){if(void 0===t&&(t=!0),!0===t){var e=this.frame.clientHeight,n=this.frame.clientWidth,r=this.frame.parentNode.clientHeight,i=this.frame.parentNode.clientWidth,o=0,a=0;if("flip"==this.overflowMethod){var s=!1,c=!0;this.y-e<this.padding&&(c=!1),this.x+n>i-this.padding&&(s=!0),o=s?this.x-n:this.x,a=c?this.y-e:this.y}else(a=this.y-e)+e+this.padding>r&&(a=r-e-this.padding),a<this.padding&&(a=this.padding),(o=this.x)+n+this.padding>i&&(o=i-n-this.padding),o<this.padding&&(o=this.padding);this.frame.style.left=o+"px",this.frame.style.top=a+"px",this.frame.style.visibility="visible",this.hidden=!1}else this.hide()}},{key:"hide",value:function(){this.hidden=!0,this.frame.style.left="0",this.frame.style.top="0",this.frame.style.visibility="hidden"}},{key:"destroy",value:function(){this.frame.parentNode.removeChild(this.frame)}}]),t}(),Gc=function(){function t(){Ja(this,t)}return es(t,null,[{key:"validate",value:function(e,n,r){Hc=!1,Bc=n;var i=n;return void 0!==r&&(i=n[r]),t.parse(e,i,[]),Hc}},{key:"parse",value:function(e,n,r){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.check(i,e,n,r)}},{key:"check",value:function(e,n,r,i){if(void 0!==r[e]||void 0!==r.__any__){var o=e,a=!0;void 0===r[e]&&void 0!==r.__any__&&(o="__any__",a="object"===t.getType(n[e]));var s=r[o];a&&void 0!==s.__type__&&(s=s.__type__),t.checkFields(e,n,r,o,s,i)}else t.getSuggestion(e,r,i)}},{key:"checkFields",value:function(e,n,r,i,o,a){var s=function(n){console.error("%c"+n+t.printLocation(a,e),zc)},c=t.getType(n[e]),l=o[c];void 0!==l?"array"===t.getType(l)&&-1===xs(l).call(l,n[e])?(s('Invalid option detected in "'+e+'". Allowed values are:'+t.print(l)+' not "'+n[e]+'". '),Hc=!0):"object"===c&&"__any__"!==i&&(a=bc(a,e),t.parse(n[e],r[i],a)):void 0===o.any&&(s('Invalid type received for "'+e+'". Expected: '+t.print(Ze(o))+". Received ["+c+'] "'+n[e]+'"'),Hc=!0)}},{key:"getType",value:function(t){var e=Cr(t);return"object"===e?null===t?"null":t instanceof Boolean?"boolean":t instanceof Number?"number":t instanceof String?"string":_n(t)?"array":t instanceof Date?"date":void 0!==t.nodeType?"dom":!0===t._isAMomentObject?"moment":"object":"number"===e?"number":"boolean"===e?"boolean":"string"===e?"string":void 0===e?"undefined":e}},{key:"getSuggestion",value:function(e,n,r){var i,o=t.findInOptions(e,n,r,!1),a=t.findInOptions(e,Bc,[],!0);i=void 0!==o.indexMatch?" in "+t.printLocation(o.path,e,"")+'Perhaps it was incomplete? Did you mean: "'+o.indexMatch+'"?\n\n':a.distance<=4&&o.distance>a.distance?" in "+t.printLocation(o.path,e,"")+"Perhaps it was misplaced? Matching option found at: "+t.printLocation(a.path,a.closestMatch,""):o.distance<=8?'. Did you mean "'+o.closestMatch+'"?'+t.printLocation(o.path,e):". Did you mean one of these: "+t.print(Ze(n))+t.printLocation(r,e),console.error('%cUnknown option detected: "'+e+'"'+i,zc),Hc=!0}},{key:"findInOptions",value:function(e,n,r){var i=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o=1e9,a="",s=[],c=e.toLowerCase(),l=void 0;for(var u in n){var h=void 0;if(void 0!==n[u].__type__&&!0===i){var f=t.findInOptions(e,n[u],bc(r,u));o>f.distance&&(a=f.closestMatch,s=f.path,o=f.distance,l=f.indexMatch)}else{var p;-1!==xs(p=u.toLowerCase()).call(p,c)&&(l=u),o>(h=t.levenshteinDistance(e,u))&&(a=u,s=kc(r),o=h)}}return{closestMatch:a,path:s,distance:o,indexMatch:l}}},{key:"printLocation",value:function(t,e){for(var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"Problem value found at: \n",r="\n\n"+n+"options = {\n",i=0;i<t.length;i++){for(var o=0;o<i+1;o++)r+=" ";r+=t[i]+": {\n"}for(var a=0;a<t.length+1;a++)r+=" ";r+=e+"\n";for(var s=0;s<t.length+1;s++){for(var c=0;c<t.length-s;c++)r+=" ";r+="}\n"}return r+"\n\n"}},{key:"print",value:function(t){return Qa(t).replace(/(")|(\[)|(\])|(,"__type__")/g,"").replace(/(,)/g,", ")}},{key:"levenshteinDistance",value:function(t,e){if(0===t.length)return e.length;if(0===e.length)return t.length;var n,r,i=[];for(n=0;n<=e.length;n++)i[n]=[n];for(r=0;r<=t.length;r++)i[0][r]=r;for(n=1;n<=e.length;n++)for(r=1;r<=t.length;r++)e.charAt(n-1)==t.charAt(r-1)?i[n][r]=i[n-1][r-1]:i[n][r]=Math.min(i[n-1][r-1]+1,Math.min(i[n][r-1]+1,i[n-1][r]+1));return i[e.length][t.length]}}]),t}();t.Activator=Wc,t.Alea=function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return si(e.length?e:[ai()])},t.ColorPicker=Vc,t.Configurator=qc,t.DELETE=Jr,t.HSVToHex=Sc,t.HSVToRGB=Fc,t.Hammer=Yc,t.Popup=Xc,t.RGBToHSV=Tc,t.RGBToHex=Oc,t.VALIDATOR_PRINT_STYLE="background: #FFeeee; color: #dd0000",t.Validator=Gc,t.addClassName=function(t,e){var n=t.className.split(" "),r=e.split(" ");n=Gr(n).call(n,Ys(r).call(r,(function(t){return!rc(n).call(n,t)}))),t.className=n.join(" ")},t.addCssText=function(t,e){var n=_c(t.style.cssText),r=_c(e),i=sc(sc({},n),r);t.style.cssText=Ac(i)},t.addEventListener=function(t,e,n,r){var i;t.addEventListener?(void 0===r&&(r=!1),"mousewheel"===e&&rc(i=navigator.userAgent).call(i,"Firefox")&&(e="DOMMouseScroll"),t.addEventListener(e,n,r)):t.attachEvent("on"+e,n)},t.binarySearchCustom=function(t,e,n,r){for(var i=0,o=0,a=t.length-1;o<=a&&i<1e4;){var s=Math.floor((o+a)/2),c=t[s],l=e(void 0===r?c[n]:c[n][r]);if(0==l)return s;-1==l?o=s+1:a=s-1,i++}return-1},t.binarySearchValue=function(t,e,n,r,i){var o,a,s,c,l=0,u=0,h=t.length-1;for(i=null!=i?i:function(t,e){return t==e?0:t<e?-1:1};u<=h&&l<1e4;){if(c=Math.floor(.5*(h+u)),o=t[Math.max(0,c-1)][n],a=t[c][n],s=t[Math.min(t.length-1,c+1)][n],0==i(a,e))return c;if(i(o,e)<0&&i(a,e)>0)return"before"==r?Math.max(0,c-1):c;if(i(a,e)<0&&i(s,e)>0)return"before"==r?c:Math.min(t.length-1,c+1);i(a,e)<0?u=c+1:h=c-1,l++}return-1},t.bridgeObject=Ic,t.copyAndExtendArray=bc,t.copyArray=kc,t.deepExtend=mc,t.deepObjectAssign=Kr,t.easingFunctions={linear:function(t){return t},easeInQuad:function(t){return t*t},easeOutQuad:function(t){return t*(2-t)},easeInOutQuad:function(t){return t<.5?2*t*t:(4-2*t)*t-1},easeInCubic:function(t){return t*t*t},easeOutCubic:function(t){return--t*t*t+1},easeInOutCubic:function(t){return t<.5?4*t*t*t:(t-1)*(2*t-2)*(2*t-2)+1},easeInQuart:function(t){return t*t*t*t},easeOutQuart:function(t){return 1- --t*t*t*t},easeInOutQuart:function(t){return t<.5?8*t*t*t*t:1-8*--t*t*t*t},easeInQuint:function(t){return t*t*t*t*t},easeOutQuint:function(t){return 1+--t*t*t*t*t},easeInOutQuint:function(t){return t<.5?16*t*t*t*t*t:1+16*--t*t*t*t*t}},t.equalArray=function(t,e){if(t.length!==e.length)return!1;for(var n=0,r=t.length;n<r;n++)if(t[n]!=e[n])return!1;return!0},t.extend=yc,t.fillIfDefined=function t(e,n){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];for(var i in e)if(void 0!==n[i])if(null===n[i]||"object"!==Cr(n[i]))gc(e,n,i,r);else{var o=e[i],a=n[i];dc(o)&&dc(a)&&t(o,a,r)}},t.forEach=function(t,e){if(_n(t))for(var n=t.length,r=0;r<n;r++)e(t[r],r,t);else for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e(t[i],i,t)},t.getAbsoluteLeft=function(t){return t.getBoundingClientRect().left},t.getAbsoluteRight=function(t){return t.getBoundingClientRect().right},t.getAbsoluteTop=function(t){return t.getBoundingClientRect().top},t.getScrollBarWidth=function(){var t=document.createElement("p");t.style.width="100%",t.style.height="200px";var e=document.createElement("div");e.style.position="absolute",e.style.top="0px",e.style.left="0px",e.style.visibility="hidden",e.style.width="200px",e.style.height="150px",e.style.overflow="hidden",e.appendChild(t),document.body.appendChild(e);var n=t.offsetWidth;e.style.overflow="scroll";var r=t.offsetWidth;return n==r&&(r=e.clientWidth),document.body.removeChild(e),n-r},t.getTarget=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window.event,e=null;return t&&(t.target?e=t.target:t.srcElement&&(e=t.srcElement)),e instanceof Element&&(null==e.nodeType||3!=e.nodeType||(e=e.parentNode)instanceof Element)?e:null},t.getType=function(t){var e=Cr(t);return"object"===e?null===t?"null":t instanceof Boolean?"Boolean":t instanceof Number?"Number":t instanceof String?"String":_n(t)?"Array":t instanceof Date?"Date":"Object":"number"===e?"Number":"boolean"===e?"Boolean":"string"===e?"String":void 0===e?"undefined":e},t.hasParent=function(t,e){for(var n=t;n;){if(n===e)return!0;if(!n.parentNode)return!1;n=n.parentNode}return!1},t.hexToHSV=xc,t.hexToRGB=Ec,t.insertSort=function(t,e){for(var n=0;n<t.length;n++){var r=t[n],i=void 0;for(i=n;i>0&&e(r,t[i-1])<0;i--)t[i]=t[i-1];t[i]=r}return t},t.isDate=function(t){if(t instanceof Date)return!0;if(vc(t)){if(cc.exec(t))return!0;if(!isNaN(Date.parse(t)))return!0}return!1},t.isNumber=pc,t.isObject=dc,t.isString=vc,t.isValidHex=Pc,t.isValidRGB=Dc,t.isValidRGBA=jc,t.mergeOptions=function(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=function(t){return null!=t},o=function(t){return null!==t&&"object"===Cr(t)},a=function(t){for(var e in t)if(Object.prototype.hasOwnProperty.call(t,e))return!1;return!0};if(!o(t))throw new Error("Parameter mergeTarget must be an object");if(!o(e))throw new Error("Parameter options must be an object");if(!i(n))throw new Error("Parameter option must have a value");if(!o(r))throw new Error("Parameter globalOptions must be an object");var s=function(t,e,n){o(t[n])||(t[n]={});var r=e[n],i=t[n];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(i[a]=r[a])},c=e[n],l=o(r)&&!a(r),u=l?r[n]:void 0,h=u?u.enabled:void 0;if(void 0!==c){if("boolean"==typeof c)return o(t[n])||(t[n]={}),void(t[n].enabled=c);if(null===c&&!o(t[n])){if(!i(u))return;t[n]=us(u)}if(o(c)){var f=!0;void 0!==c.enabled?f=c.enabled:void 0!==h&&(f=u.enabled),s(t,e,n),t[n].enabled=f}}},t.option=Cc,t.overrideOpacity=function(t,e){if(rc(t).call(t,"rgba"))return t;if(rc(t).call(t,"rgb")){var n=t.substr(xs(t).call(t,"(")+1).replace(")","").split(",");return"rgba("+n[0]+","+n[1]+","+n[2]+","+e+")"}var r=Ec(t);return null==r?t:"rgba("+r.r+","+r.g+","+r.b+","+e+")"},t.parseColor=function(t,e){if(vc(t)){var n=t;if(Dc(n)){var r,i=On(r=n.substr(4).substr(0,n.length-5).split(",")).call(r,(function(t){return Rs(t)}));n=Oc(i[0],i[1],i[2])}if(!0===Pc(n)){var o=xc(n),a={h:o.h,s:.8*o.s,v:Math.min(1,1.02*o.v)},s={h:o.h,s:Math.min(1,1.25*o.s),v:.8*o.v},c=Sc(s.h,s.s,s.v),l=Sc(a.h,a.s,a.v);return{background:n,border:c,highlight:{background:l,border:c},hover:{background:l,border:c}}}return{background:n,border:n,highlight:{background:n,border:n},hover:{background:n,border:n}}}return e?{background:t.background||e.background,border:t.border||e.border,highlight:vc(t.highlight)?{border:t.highlight,background:t.highlight}:{background:t.highlight&&t.highlight.background||e.highlight.background,border:t.highlight&&t.highlight.border||e.highlight.border},hover:vc(t.hover)?{border:t.hover,background:t.hover}:{border:t.hover&&t.hover.border||e.hover.border,background:t.hover&&t.hover.background||e.hover.background}}:{background:t.background||void 0,border:t.border||void 0,highlight:vc(t.highlight)?{border:t.highlight,background:t.highlight}:{background:t.highlight&&t.highlight.background||void 0,border:t.highlight&&t.highlight.border||void 0},hover:vc(t.hover)?{border:t.hover,background:t.hover}:{border:t.hover&&t.hover.border||void 0,background:t.hover&&t.hover.background||void 0}}},t.preventDefault=function(t){t||(t=window.event),t&&(t.preventDefault?t.preventDefault():t.returnValue=!1)},t.pureDeepObjectAssign=function(t){for(var e,n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return Kr.apply(void 0,Gr(e=[{},t]).call(e,r))},t.recursiveDOMDelete=function t(e){if(e)for(;!0===e.hasChildNodes();){var n=e.firstChild;n&&(t(n),e.removeChild(n))}},t.removeClassName=function(t,e){var n=t.className.split(" "),r=e.split(" ");n=Ys(n).call(n,(function(t){return!rc(r).call(r,t)})),t.className=n.join(" ")},t.removeCssText=function(t,e){var n=_c(t.style.cssText),r=_c(e);for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&delete n[i];t.style.cssText=Ac(n)},t.removeEventListener=function(t,e,n,r){var i;t.removeEventListener?(void 0===r&&(r=!1),"mousewheel"===e&&rc(i=navigator.userAgent).call(i,"Firefox")&&(e="DOMMouseScroll"),t.removeEventListener(e,n,r)):t.detachEvent("on"+e,n)},t.selectiveBridgeObject=function(t,e){if(null!==e&&"object"===Cr(e)){for(var n=us(e),r=0;r<t.length;r++)Object.prototype.hasOwnProperty.call(e,t[r])&&"object"==Cr(e[t[r]])&&(n[t[r]]=Ic(e[t[r]]));return n}return null},t.selectiveDeepExtend=function(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(_n(n))throw new TypeError("Arrays are not supported by deepExtend");for(var i=0;i<t.length;i++){var o=t[i];if(Object.prototype.hasOwnProperty.call(n,o))if(n[o]&&n[o].constructor===Object)void 0===e[o]&&(e[o]={}),e[o].constructor===Object?mc(e[o],n[o],!1,r):gc(e,n,o,r);else{if(_n(n[o]))throw new TypeError("Arrays are not supported by deepExtend");gc(e,n,o,r)}}return e},t.selectiveExtend=function(t,e){if(!_n(t))throw new Error("Array with property names expected as first argument");for(var n=arguments.length,r=new Array(n>2?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i];for(var o=0,a=r;o<a.length;o++)for(var s=a[o],c=0;c<t.length;c++){var l=t[c];s&&Object.prototype.hasOwnProperty.call(s,l)&&(e[l]=s[l])}return e},t.selectiveNotDeepExtend=function(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(_n(n))throw new TypeError("Arrays are not supported by deepExtend");for(var i in n)if(Object.prototype.hasOwnProperty.call(n,i)&&!rc(t).call(t,i))if(n[i]&&n[i].constructor===Object)void 0===e[i]&&(e[i]={}),e[i].constructor===Object?mc(e[i],n[i]):gc(e,n,i,r);else if(_n(n[i])){e[i]=[];for(var o=0;o<n[i].length;o++)e[i].push(n[i][o])}else gc(e,n,i,r);return e},t.throttle=function(t){var e=!1;return function(){e||(e=!0,requestAnimationFrame((function(){e=!1,t()})))}},t.toArray=wc,t.topMost=function(t,e){var n;_n(e)||(e=[e]);var r,i=ic(t);try{for(i.s();!(r=i.n()).done;){var o=r.value;if(o){n=o[e[0]];for(var a=1;a<e.length;a++)n&&(n=n[e[a]]);if(void 0!==n)break}}}catch(t){i.e(t)}finally{i.f()}return n},t.updateProperty=function(t,e,n){return t[e]!==n&&(t[e]=n,!0)},Object.defineProperty(t,"__esModule",{value:!0})}));
|
|
28
|
+
* http://naver.github.io/egjs
|
|
29
|
+
*
|
|
30
|
+
* Forked By Naver egjs
|
|
31
|
+
* Copyright (c) hammerjs
|
|
32
|
+
* Licensed under the MIT license */
|
|
33
|
+
function yp(){return yp=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},yp.apply(this,arguments)}function mp(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}function bp(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}dp="function"!=typeof Object.assign?function(t){if(null==t)throw new TypeError("Cannot convert undefined or null to object");for(var e=Object(t),n=1;n<arguments.length;n++){var r=arguments[n];if(null!=r)for(var i in r)r.hasOwnProperty(i)&&(e[i]=r[i])}return e}:Object.assign;var kp,wp=dp,Cp=["","webkit","Moz","MS","ms","o"],Ep="undefined"==typeof document?{style:{}}:document.createElement("div"),Op=Math.round,Tp=Math.abs,Fp=Date.now;function _p(t,e){for(var n,r,i=e[0].toUpperCase()+e.slice(1),o=0;o<Cp.length;){if((r=(n=Cp[o])?n+i:e)in t)return r;o++}}kp="undefined"==typeof window?{}:window;var Sp=_p(Ep.style,"touchAction"),Ap=void 0!==Sp;var xp="compute",Pp="auto",Dp="manipulation",jp="none",Ip="pan-x",Rp="pan-y",Np=function(){if(!Ap)return!1;var t={},e=kp.CSS&&kp.CSS.supports;return["auto","manipulation","pan-y","pan-x","pan-x pan-y","none"].forEach((function(n){return t[n]=!e||kp.CSS.supports("touch-action",n)})),t}(),Mp="ontouchstart"in kp,Bp=void 0!==_p(kp,"PointerEvent"),Lp=Mp&&/mobile|tablet|ip(ad|hone|od)|android/i.test(navigator.userAgent),Hp="touch",zp="mouse",Wp=25,Vp=1,qp=4,Yp=8,Xp=1,Gp=2,Up=4,$p=8,Qp=16,Jp=Gp|Up,Kp=$p|Qp,Zp=Jp|Kp,tv=["x","y"],ev=["clientX","clientY"];function nv(t,e,n){var r;if(t)if(t.forEach)t.forEach(e,n);else if(void 0!==t.length)for(r=0;r<t.length;)e.call(n,t[r],r,t),r++;else for(r in t)t.hasOwnProperty(r)&&e.call(n,t[r],r,t)}function rv(t,e){return"function"==typeof t?t.apply(e&&e[0]||void 0,e):t}function iv(t,e){return t.indexOf(e)>-1}var ov=function(){function t(t,e){this.manager=t,this.set(e)}var e=t.prototype;return e.set=function(t){t===xp&&(t=this.compute()),Ap&&this.manager.element.style&&Np[t]&&(this.manager.element.style[Sp]=t),this.actions=t.toLowerCase().trim()},e.update=function(){this.set(this.manager.options.touchAction)},e.compute=function(){var t=[];return nv(this.manager.recognizers,(function(e){rv(e.options.enable,[e])&&(t=t.concat(e.getTouchAction()))})),function(t){if(iv(t,jp))return jp;var e=iv(t,Ip),n=iv(t,Rp);return e&&n?jp:e||n?e?Ip:Rp:iv(t,Dp)?Dp:Pp}(t.join(" "))},e.preventDefaults=function(t){var e=t.srcEvent,n=t.offsetDirection;if(this.manager.session.prevented)e.preventDefault();else{var r=this.actions,i=iv(r,jp)&&!Np[jp],o=iv(r,Rp)&&!Np[Rp],a=iv(r,Ip)&&!Np[Ip];if(i){var s=1===t.pointers.length,c=t.distance<2,u=t.deltaTime<250;if(s&&c&&u)return}if(!a||!o)return i||o&&n&Jp||a&&n&Kp?this.preventSrc(e):void 0}},e.preventSrc=function(t){this.manager.session.prevented=!0,t.preventDefault()},t}();function av(t,e){for(;t;){if(t===e)return!0;t=t.parentNode}return!1}function sv(t){var e=t.length;if(1===e)return{x:Op(t[0].clientX),y:Op(t[0].clientY)};for(var n=0,r=0,i=0;i<e;)n+=t[i].clientX,r+=t[i].clientY,i++;return{x:Op(n/e),y:Op(r/e)}}function cv(t){for(var e=[],n=0;n<t.pointers.length;)e[n]={clientX:Op(t.pointers[n].clientX),clientY:Op(t.pointers[n].clientY)},n++;return{timeStamp:Fp(),pointers:e,center:sv(e),deltaX:t.deltaX,deltaY:t.deltaY}}function uv(t,e,n){n||(n=tv);var r=e[n[0]]-t[n[0]],i=e[n[1]]-t[n[1]];return Math.sqrt(r*r+i*i)}function lv(t,e,n){n||(n=tv);var r=e[n[0]]-t[n[0]],i=e[n[1]]-t[n[1]];return 180*Math.atan2(i,r)/Math.PI}function hv(t,e){return t===e?Xp:Tp(t)>=Tp(e)?t<0?Gp:Up:e<0?$p:Qp}function fv(t,e,n){return{x:e/t||0,y:n/t||0}}function pv(t,e){var n=t.session,r=e.pointers,i=r.length;n.firstInput||(n.firstInput=cv(e)),i>1&&!n.firstMultiple?n.firstMultiple=cv(e):1===i&&(n.firstMultiple=!1);var o=n.firstInput,a=n.firstMultiple,s=a?a.center:o.center,c=e.center=sv(r);e.timeStamp=Fp(),e.deltaTime=e.timeStamp-o.timeStamp,e.angle=lv(s,c),e.distance=uv(s,c),function(t,e){var n=e.center,r=t.offsetDelta||{},i=t.prevDelta||{},o=t.prevInput||{};e.eventType!==Vp&&o.eventType!==qp||(i=t.prevDelta={x:o.deltaX||0,y:o.deltaY||0},r=t.offsetDelta={x:n.x,y:n.y}),e.deltaX=i.x+(n.x-r.x),e.deltaY=i.y+(n.y-r.y)}(n,e),e.offsetDirection=hv(e.deltaX,e.deltaY);var u,l,h=fv(e.deltaTime,e.deltaX,e.deltaY);e.overallVelocityX=h.x,e.overallVelocityY=h.y,e.overallVelocity=Tp(h.x)>Tp(h.y)?h.x:h.y,e.scale=a?(u=a.pointers,uv((l=r)[0],l[1],ev)/uv(u[0],u[1],ev)):1,e.rotation=a?function(t,e){return lv(e[1],e[0],ev)+lv(t[1],t[0],ev)}(a.pointers,r):0,e.maxPointers=n.prevInput?e.pointers.length>n.prevInput.maxPointers?e.pointers.length:n.prevInput.maxPointers:e.pointers.length,function(t,e){var n,r,i,o,a=t.lastInterval||e,s=e.timeStamp-a.timeStamp;if(e.eventType!==Yp&&(s>Wp||void 0===a.velocity)){var c=e.deltaX-a.deltaX,u=e.deltaY-a.deltaY,l=fv(s,c,u);r=l.x,i=l.y,n=Tp(l.x)>Tp(l.y)?l.x:l.y,o=hv(c,u),t.lastInterval=e}else n=a.velocity,r=a.velocityX,i=a.velocityY,o=a.direction;e.velocity=n,e.velocityX=r,e.velocityY=i,e.direction=o}(n,e);var f,p=t.element,v=e.srcEvent;av(f=v.composedPath?v.composedPath()[0]:v.path?v.path[0]:v.target,p)&&(p=f),e.target=p}function vv(t,e,n){var r=n.pointers.length,i=n.changedPointers.length,o=e&Vp&&r-i==0,a=e&(qp|Yp)&&r-i==0;n.isFirst=!!o,n.isFinal=!!a,o&&(t.session={}),n.eventType=e,pv(t,n),t.emit("hammer.input",n),t.recognize(n),t.session.prevInput=n}function dv(t){return t.trim().split(/\s+/g)}function gv(t,e,n){nv(dv(e),(function(e){t.addEventListener(e,n,!1)}))}function yv(t,e,n){nv(dv(e),(function(e){t.removeEventListener(e,n,!1)}))}function mv(t){var e=t.ownerDocument||t;return e.defaultView||e.parentWindow||window}var bv=function(){function t(t,e){var n=this;this.manager=t,this.callback=e,this.element=t.element,this.target=t.options.inputTarget,this.domHandler=function(e){rv(t.options.enable,[t])&&n.handler(e)},this.init()}var e=t.prototype;return e.handler=function(){},e.init=function(){this.evEl&&gv(this.element,this.evEl,this.domHandler),this.evTarget&&gv(this.target,this.evTarget,this.domHandler),this.evWin&&gv(mv(this.element),this.evWin,this.domHandler)},e.destroy=function(){this.evEl&&yv(this.element,this.evEl,this.domHandler),this.evTarget&&yv(this.target,this.evTarget,this.domHandler),this.evWin&&yv(mv(this.element),this.evWin,this.domHandler)},t}();function kv(t,e,n){if(t.indexOf&&!n)return t.indexOf(e);for(var r=0;r<t.length;){if(n&&t[r][n]==e||!n&&t[r]===e)return r;r++}return-1}var wv={pointerdown:Vp,pointermove:2,pointerup:qp,pointercancel:Yp,pointerout:Yp},Cv={2:Hp,3:"pen",4:zp,5:"kinect"},Ev="pointerdown",Ov="pointermove pointerup pointercancel";kp.MSPointerEvent&&!kp.PointerEvent&&(Ev="MSPointerDown",Ov="MSPointerMove MSPointerUp MSPointerCancel");var Tv=function(t){function e(){var n,r=e.prototype;return r.evEl=Ev,r.evWin=Ov,(n=t.apply(this,arguments)||this).store=n.manager.session.pointerEvents=[],n}return mp(e,t),e.prototype.handler=function(t){var e=this.store,n=!1,r=t.type.toLowerCase().replace("ms",""),i=wv[r],o=Cv[t.pointerType]||t.pointerType,a=o===Hp,s=kv(e,t.pointerId,"pointerId");i&Vp&&(0===t.button||a)?s<0&&(e.push(t),s=e.length-1):i&(qp|Yp)&&(n=!0),s<0||(e[s]=t,this.callback(this.manager,i,{pointers:e,changedPointers:[t],pointerType:o,srcEvent:t}),n&&e.splice(s,1))},e}(bv);function Fv(t){return Array.prototype.slice.call(t,0)}function _v(t,e,n){for(var r=[],i=[],o=0;o<t.length;){var a=e?t[o][e]:t[o];kv(i,a)<0&&r.push(t[o]),i[o]=a,o++}return n&&(r=e?r.sort((function(t,n){return t[e]>n[e]})):r.sort()),r}var Sv={touchstart:Vp,touchmove:2,touchend:qp,touchcancel:Yp},Av=function(t){function e(){var n;return e.prototype.evTarget="touchstart touchmove touchend touchcancel",(n=t.apply(this,arguments)||this).targetIds={},n}return mp(e,t),e.prototype.handler=function(t){var e=Sv[t.type],n=xv.call(this,t,e);n&&this.callback(this.manager,e,{pointers:n[0],changedPointers:n[1],pointerType:Hp,srcEvent:t})},e}(bv);function xv(t,e){var n,r,i=Fv(t.touches),o=this.targetIds;if(e&(2|Vp)&&1===i.length)return o[i[0].identifier]=!0,[i,i];var a=Fv(t.changedTouches),s=[],c=this.target;if(r=i.filter((function(t){return av(t.target,c)})),e===Vp)for(n=0;n<r.length;)o[r[n].identifier]=!0,n++;for(n=0;n<a.length;)o[a[n].identifier]&&s.push(a[n]),e&(qp|Yp)&&delete o[a[n].identifier],n++;return s.length?[_v(r.concat(s),"identifier",!0),s]:void 0}var Pv={mousedown:Vp,mousemove:2,mouseup:qp},Dv=function(t){function e(){var n,r=e.prototype;return r.evEl="mousedown",r.evWin="mousemove mouseup",(n=t.apply(this,arguments)||this).pressed=!1,n}return mp(e,t),e.prototype.handler=function(t){var e=Pv[t.type];e&Vp&&0===t.button&&(this.pressed=!0),2&e&&1!==t.which&&(e=qp),this.pressed&&(e&qp&&(this.pressed=!1),this.callback(this.manager,e,{pointers:[t],changedPointers:[t],pointerType:zp,srcEvent:t}))},e}(bv),jv=2500;function Iv(t){var e=t.changedPointers[0];if(e.identifier===this.primaryTouch){var n={x:e.clientX,y:e.clientY},r=this.lastTouches;this.lastTouches.push(n);setTimeout((function(){var t=r.indexOf(n);t>-1&&r.splice(t,1)}),jv)}}function Rv(t,e){t&Vp?(this.primaryTouch=e.changedPointers[0].identifier,Iv.call(this,e)):t&(qp|Yp)&&Iv.call(this,e)}function Nv(t){for(var e=t.srcEvent.clientX,n=t.srcEvent.clientY,r=0;r<this.lastTouches.length;r++){var i=this.lastTouches[r],o=Math.abs(e-i.x),a=Math.abs(n-i.y);if(o<=25&&a<=25)return!0}return!1}var Mv=function(){return function(t){function e(e,n){var r;return(r=t.call(this,e,n)||this).handler=function(t,e,n){var i=n.pointerType===Hp,o=n.pointerType===zp;if(!(o&&n.sourceCapabilities&&n.sourceCapabilities.firesTouchEvents)){if(i)Rv.call(bp(bp(r)),e,n);else if(o&&Nv.call(bp(bp(r)),n))return;r.callback(t,e,n)}},r.touch=new Av(r.manager,r.handler),r.mouse=new Dv(r.manager,r.handler),r.primaryTouch=null,r.lastTouches=[],r}return mp(e,t),e.prototype.destroy=function(){this.touch.destroy(),this.mouse.destroy()},e}(bv)}();function Bv(t,e,n){return!!Array.isArray(t)&&(nv(t,n[e],n),!0)}var Lv=32,Hv=1;function zv(t,e){var n=e.manager;return n?n.get(t):t}function Wv(t){return 16&t?"cancel":8&t?"end":4&t?"move":2&t?"start":""}var Vv=function(){function t(t){void 0===t&&(t={}),this.options=yp({enable:!0},t),this.id=Hv++,this.manager=null,this.state=1,this.simultaneous={},this.requireFail=[]}var e=t.prototype;return e.set=function(t){return wp(this.options,t),this.manager&&this.manager.touchAction.update(),this},e.recognizeWith=function(t){if(Bv(t,"recognizeWith",this))return this;var e=this.simultaneous;return e[(t=zv(t,this)).id]||(e[t.id]=t,t.recognizeWith(this)),this},e.dropRecognizeWith=function(t){return Bv(t,"dropRecognizeWith",this)||(t=zv(t,this),delete this.simultaneous[t.id]),this},e.requireFailure=function(t){if(Bv(t,"requireFailure",this))return this;var e=this.requireFail;return-1===kv(e,t=zv(t,this))&&(e.push(t),t.requireFailure(this)),this},e.dropRequireFailure=function(t){if(Bv(t,"dropRequireFailure",this))return this;t=zv(t,this);var e=kv(this.requireFail,t);return e>-1&&this.requireFail.splice(e,1),this},e.hasRequireFailures=function(){return this.requireFail.length>0},e.canRecognizeWith=function(t){return!!this.simultaneous[t.id]},e.emit=function(t){var e=this,n=this.state;function r(n){e.manager.emit(n,t)}n<8&&r(e.options.event+Wv(n)),r(e.options.event),t.additionalEvent&&r(t.additionalEvent),n>=8&&r(e.options.event+Wv(n))},e.tryEmit=function(t){if(this.canEmit())return this.emit(t);this.state=Lv},e.canEmit=function(){for(var t=0;t<this.requireFail.length;){if(!(33&this.requireFail[t].state))return!1;t++}return!0},e.recognize=function(t){var e=wp({},t);if(!rv(this.options.enable,[this,e]))return this.reset(),void(this.state=Lv);56&this.state&&(this.state=1),this.state=this.process(e),30&this.state&&this.tryEmit(e)},e.process=function(t){},e.getTouchAction=function(){},e.reset=function(){},t}(),qv=function(t){function e(e){var n;return void 0===e&&(e={}),(n=t.call(this,yp({event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:9,posThreshold:10},e))||this).pTime=!1,n.pCenter=!1,n._timer=null,n._input=null,n.count=0,n}mp(e,t);var n=e.prototype;return n.getTouchAction=function(){return[Dp]},n.process=function(t){var e=this,n=this.options,r=t.pointers.length===n.pointers,i=t.distance<n.threshold,o=t.deltaTime<n.time;if(this.reset(),t.eventType&Vp&&0===this.count)return this.failTimeout();if(i&&o&&r){if(t.eventType!==qp)return this.failTimeout();var a=!this.pTime||t.timeStamp-this.pTime<n.interval,s=!this.pCenter||uv(this.pCenter,t.center)<n.posThreshold;if(this.pTime=t.timeStamp,this.pCenter=t.center,s&&a?this.count+=1:this.count=1,this._input=t,0===this.count%n.taps)return this.hasRequireFailures()?(this._timer=setTimeout((function(){e.state=8,e.tryEmit()}),n.interval),2):8}return Lv},n.failTimeout=function(){var t=this;return this._timer=setTimeout((function(){t.state=Lv}),this.options.interval),Lv},n.reset=function(){clearTimeout(this._timer)},n.emit=function(){8===this.state&&(this._input.tapCount=this.count,this.manager.emit(this.options.event,this._input))},e}(Vv),Yv=function(t){function e(e){return void 0===e&&(e={}),t.call(this,yp({pointers:1},e))||this}mp(e,t);var n=e.prototype;return n.attrTest=function(t){var e=this.options.pointers;return 0===e||t.pointers.length===e},n.process=function(t){var e=this.state,n=t.eventType,r=6&e,i=this.attrTest(t);return r&&(n&Yp||!i)?16|e:r||i?n&qp?8|e:2&e?4|e:2:Lv},e}(Vv);function Xv(t){return t===Qp?"down":t===$p?"up":t===Gp?"left":t===Up?"right":""}var Gv=function(t){function e(e){var n;return void 0===e&&(e={}),(n=t.call(this,yp({event:"pan",threshold:10,pointers:1,direction:Zp},e))||this).pX=null,n.pY=null,n}mp(e,t);var n=e.prototype;return n.getTouchAction=function(){var t=this.options.direction,e=[];return t&Jp&&e.push(Rp),t&Kp&&e.push(Ip),e},n.directionTest=function(t){var e=this.options,n=!0,r=t.distance,i=t.direction,o=t.deltaX,a=t.deltaY;return i&e.direction||(e.direction&Jp?(i=0===o?Xp:o<0?Gp:Up,n=o!==this.pX,r=Math.abs(t.deltaX)):(i=0===a?Xp:a<0?$p:Qp,n=a!==this.pY,r=Math.abs(t.deltaY))),t.direction=i,n&&r>e.threshold&&i&e.direction},n.attrTest=function(t){return Yv.prototype.attrTest.call(this,t)&&(2&this.state||!(2&this.state)&&this.directionTest(t))},n.emit=function(e){this.pX=e.deltaX,this.pY=e.deltaY;var n=Xv(e.direction);n&&(e.additionalEvent=this.options.event+n),t.prototype.emit.call(this,e)},e}(Yv),Uv=function(t){function e(e){return void 0===e&&(e={}),t.call(this,yp({event:"swipe",threshold:10,velocity:.3,direction:Jp|Kp,pointers:1},e))||this}mp(e,t);var n=e.prototype;return n.getTouchAction=function(){return Gv.prototype.getTouchAction.call(this)},n.attrTest=function(e){var n,r=this.options.direction;return r&(Jp|Kp)?n=e.overallVelocity:r&Jp?n=e.overallVelocityX:r&Kp&&(n=e.overallVelocityY),t.prototype.attrTest.call(this,e)&&r&e.offsetDirection&&e.distance>this.options.threshold&&e.maxPointers===this.options.pointers&&Tp(n)>this.options.velocity&&e.eventType&qp},n.emit=function(t){var e=Xv(t.offsetDirection);e&&this.manager.emit(this.options.event+e,t),this.manager.emit(this.options.event,t)},e}(Yv),$v=function(t){function e(e){return void 0===e&&(e={}),t.call(this,yp({event:"pinch",threshold:0,pointers:2},e))||this}mp(e,t);var n=e.prototype;return n.getTouchAction=function(){return[jp]},n.attrTest=function(e){return t.prototype.attrTest.call(this,e)&&(Math.abs(e.scale-1)>this.options.threshold||2&this.state)},n.emit=function(e){if(1!==e.scale){var n=e.scale<1?"in":"out";e.additionalEvent=this.options.event+n}t.prototype.emit.call(this,e)},e}(Yv),Qv=function(t){function e(e){return void 0===e&&(e={}),t.call(this,yp({event:"rotate",threshold:0,pointers:2},e))||this}mp(e,t);var n=e.prototype;return n.getTouchAction=function(){return[jp]},n.attrTest=function(e){return t.prototype.attrTest.call(this,e)&&(Math.abs(e.rotation)>this.options.threshold||2&this.state)},e}(Yv),Jv=function(t){function e(e){var n;return void 0===e&&(e={}),(n=t.call(this,yp({event:"press",pointers:1,time:251,threshold:9},e))||this)._timer=null,n._input=null,n}mp(e,t);var n=e.prototype;return n.getTouchAction=function(){return[Pp]},n.process=function(t){var e=this,n=this.options,r=t.pointers.length===n.pointers,i=t.distance<n.threshold,o=t.deltaTime>n.time;if(this._input=t,!i||!r||t.eventType&(qp|Yp)&&!o)this.reset();else if(t.eventType&Vp)this.reset(),this._timer=setTimeout((function(){e.state=8,e.tryEmit()}),n.time);else if(t.eventType&qp)return 8;return Lv},n.reset=function(){clearTimeout(this._timer)},n.emit=function(t){8===this.state&&(t&&t.eventType&qp?this.manager.emit(this.options.event+"up",t):(this._input.timeStamp=Fp(),this.manager.emit(this.options.event,this._input)))},e}(Vv),Kv={domEvents:!1,touchAction:xp,enable:!0,inputTarget:null,inputClass:null,cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}},Zv=[[Qv,{enable:!1}],[$v,{enable:!1},["rotate"]],[Uv,{direction:Jp}],[Gv,{direction:Jp},["swipe"]],[qv],[qv,{event:"doubletap",taps:2},["tap"]],[Jv]];function td(t,e){var n,r=t.element;r.style&&(nv(t.options.cssProps,(function(i,o){n=_p(r.style,o),e?(t.oldCssProps[n]=r.style[n],r.style[n]=i):r.style[n]=t.oldCssProps[n]||""})),e||(t.oldCssProps={}))}var ed=function(){function t(t,e){var n,r=this;this.options=wp({},Kv,e||{}),this.options.inputTarget=this.options.inputTarget||t,this.handlers={},this.session={},this.recognizers=[],this.oldCssProps={},this.element=t,this.input=new((n=this).options.inputClass||(Bp?Tv:Lp?Av:Mp?Mv:Dv))(n,vv),this.touchAction=new ov(this,this.options.touchAction),td(this,!0),nv(this.options.recognizers,(function(t){var e=r.add(new t[0](t[1]));t[2]&&e.recognizeWith(t[2]),t[3]&&e.requireFailure(t[3])}),this)}var e=t.prototype;return e.set=function(t){return wp(this.options,t),t.touchAction&&this.touchAction.update(),t.inputTarget&&(this.input.destroy(),this.input.target=t.inputTarget,this.input.init()),this},e.stop=function(t){this.session.stopped=t?2:1},e.recognize=function(t){var e=this.session;if(!e.stopped){var n;this.touchAction.preventDefaults(t);var r=this.recognizers,i=e.curRecognizer;(!i||i&&8&i.state)&&(e.curRecognizer=null,i=null);for(var o=0;o<r.length;)n=r[o],2===e.stopped||i&&n!==i&&!n.canRecognizeWith(i)?n.reset():n.recognize(t),!i&&14&n.state&&(e.curRecognizer=n,i=n),o++}},e.get=function(t){if(t instanceof Vv)return t;for(var e=this.recognizers,n=0;n<e.length;n++)if(e[n].options.event===t)return e[n];return null},e.add=function(t){if(Bv(t,"add",this))return this;var e=this.get(t.options.event);return e&&this.remove(e),this.recognizers.push(t),t.manager=this,this.touchAction.update(),t},e.remove=function(t){if(Bv(t,"remove",this))return this;var e=this.get(t);if(t){var n=this.recognizers,r=kv(n,e);-1!==r&&(n.splice(r,1),this.touchAction.update())}return this},e.on=function(t,e){if(void 0===t||void 0===e)return this;var n=this.handlers;return nv(dv(t),(function(t){n[t]=n[t]||[],n[t].push(e)})),this},e.off=function(t,e){if(void 0===t)return this;var n=this.handlers;return nv(dv(t),(function(t){e?n[t]&&n[t].splice(kv(n[t],e),1):delete n[t]})),this},e.emit=function(t,e){this.options.domEvents&&function(t,e){var n=document.createEvent("Event");n.initEvent(t,!0,!0),n.gesture=e,e.target.dispatchEvent(n)}(t,e);var n=this.handlers[t]&&this.handlers[t].slice();if(n&&n.length){e.type=t,e.preventDefault=function(){e.srcEvent.preventDefault()};for(var r=0;r<n.length;)n[r](e),r++}},e.destroy=function(){this.element&&td(this,!1),this.handlers={},this.session={},this.input.destroy(),this.element=null},t}(),nd={touchstart:Vp,touchmove:2,touchend:qp,touchcancel:Yp},rd=function(t){function e(){var n,r=e.prototype;return r.evTarget="touchstart",r.evWin="touchstart touchmove touchend touchcancel",(n=t.apply(this,arguments)||this).started=!1,n}return mp(e,t),e.prototype.handler=function(t){var e=nd[t.type];if(e===Vp&&(this.started=!0),this.started){var n=id.call(this,t,e);e&(qp|Yp)&&n[0].length-n[1].length==0&&(this.started=!1),this.callback(this.manager,e,{pointers:n[0],changedPointers:n[1],pointerType:Hp,srcEvent:t})}},e}(bv);function id(t,e){var n=Fv(t.touches),r=Fv(t.changedTouches);return e&(qp|Yp)&&(n=_v(n.concat(r),"identifier",!0)),[n,r]}function od(t,e,n){var r="DEPRECATED METHOD: "+e+"\n"+n+" AT \n";return function(){var e=new Error("get-stack-trace"),n=e&&e.stack?e.stack.replace(/^[^\(]+?[\n$]/gm,"").replace(/^\s+at\s+/gm,"").replace(/^Object.<anonymous>\s*\(/gm,"{anonymous}()@"):"Unknown Stack Trace",i=window.console&&(window.console.warn||window.console.log);return i&&i.call(window.console,r,n),t.apply(this,arguments)}}var ad=od((function(t,e,n){for(var r=Object.keys(e),i=0;i<r.length;)(!n||n&&void 0===t[r[i]])&&(t[r[i]]=e[r[i]]),i++;return t}),"extend","Use `assign`."),sd=od((function(t,e){return ad(t,e,!0)}),"merge","Use `assign`.");function cd(t,e,n){var r,i=e.prototype;(r=t.prototype=Object.create(i)).constructor=t,r._super=i,n&&wp(r,n)}function ud(t,e){return function(){return t.apply(e,arguments)}}var ld=function(){var t=function(t,e){return void 0===e&&(e={}),new ed(t,yp({recognizers:Zv.concat()},e))};return t.VERSION="2.0.17-rc",t.DIRECTION_ALL=Zp,t.DIRECTION_DOWN=Qp,t.DIRECTION_LEFT=Gp,t.DIRECTION_RIGHT=Up,t.DIRECTION_UP=$p,t.DIRECTION_HORIZONTAL=Jp,t.DIRECTION_VERTICAL=Kp,t.DIRECTION_NONE=Xp,t.DIRECTION_DOWN=Qp,t.INPUT_START=Vp,t.INPUT_MOVE=2,t.INPUT_END=qp,t.INPUT_CANCEL=Yp,t.STATE_POSSIBLE=1,t.STATE_BEGAN=2,t.STATE_CHANGED=4,t.STATE_ENDED=8,t.STATE_RECOGNIZED=8,t.STATE_CANCELLED=16,t.STATE_FAILED=Lv,t.Manager=ed,t.Input=bv,t.TouchAction=ov,t.TouchInput=Av,t.MouseInput=Dv,t.PointerEventInput=Tv,t.TouchMouseInput=Mv,t.SingleTouchInput=rd,t.Recognizer=Vv,t.AttrRecognizer=Yv,t.Tap=qv,t.Pan=Gv,t.Swipe=Uv,t.Pinch=$v,t.Rotate=Qv,t.Press=Jv,t.on=gv,t.off=yv,t.each=nv,t.merge=sd,t.extend=ad,t.bindFn=ud,t.assign=wp,t.inherit=cd,t.bindFn=ud,t.prefixed=_p,t.toArray=Fv,t.inArray=kv,t.uniqueArray=_v,t.splitStr=dv,t.boolOrFn=rv,t.hasParent=av,t.addEventListeners=gv,t.removeEventListeners=yv,t.defaults=wp({},Kv,{preset:Zv}),t}();ld.defaults;var hd=ld;var fd="undefined"!=typeof window?window.Hammer||hd:function(){return function(){var t=function(){};return{on:t,off:t,destroy:t,emit:t,get:function(){return{set:t}}}}()};function pd(t,e){var n=void 0!==Ch&&as(t)||t["@@iterator"];if(!n){if(Nh(t)||(n=function(t,e){var n;if(!t)return;if("string"==typeof t)return vd(t,e);var r=Sh(n=Object.prototype.toString.call(t)).call(n,8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return za(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return vd(t,e)}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return a=t.done,t},e:function(t){s=!0,o=t},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function vd(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function dd(t){var e,n=this;this._cleanupQueue=[],this.active=!1,this._dom={container:t,overlay:document.createElement("div")},this._dom.overlay.classList.add("vis-overlay"),this._dom.container.appendChild(this._dom.overlay),this._cleanupQueue.push((function(){n._dom.overlay.parentNode.removeChild(n._dom.overlay)}));var r=fd(this._dom.overlay);r.on("tap",wf(e=this._onTapOverlay).call(e,this)),this._cleanupQueue.push((function(){r.destroy()}));var i=["tap","doubletap","press","pinch","pan","panstart","panmove","panend"];jf(i).call(i,(function(t){r.on(t,(function(t){t.srcEvent.stopPropagation()}))})),document&&document.body&&(this._onClick=function(e){(function(t,e){for(;t;){if(t===e)return!0;t=t.parentNode}return!1})(e.target,t)||n.deactivate()},document.body.addEventListener("click",this._onClick),this._cleanupQueue.push((function(){document.body.removeEventListener("click",n._onClick)}))),this._escListener=function(t){("key"in t?"Escape"===t.key:27===t.keyCode)&&n.deactivate()}}function gd(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}gp(dd.prototype),dd.current=null,dd.prototype.destroy=function(){var t,e;this.deactivate();var n,r=pd(Wf(t=pp(e=this._cleanupQueue).call(e,0)).call(t));try{for(r.s();!(n=r.n()).done;){(0,n.value)()}}catch(t){r.e(t)}finally{r.f()}},dd.prototype.activate=function(){dd.current&&dd.current.deactivate(),dd.current=this,this.active=!0,this._dom.overlay.style.display="none",this._dom.container.classList.add("vis-active"),this.emit("change"),this.emit("activate"),document.body.addEventListener("keydown",this._escListener)},dd.prototype.deactivate=function(){this.active=!1,this._dom.overlay.style.display="block",this._dom.container.classList.remove("vis-active"),document.body.removeEventListener("keydown",this._escListener),this.emit("change"),this.emit("deactivate")},dd.prototype._onTapOverlay=function(t){this.activate(),t.srcEvent.stopPropagation()};var yd={exports:{}},md=Er,bd=Vt,kd=qt.f;md({target:"Object",stat:!0,forced:Object.defineProperty!==kd,sham:!bd},{defineProperty:kd});var wd=oe.Object,Cd=yd.exports=function(t,e,n){return wd.defineProperty(t,e,n)};wd.defineProperty.sham&&(Cd.sham=!0);var Ed=n(yd.exports),Od=n(Ks.f("toPrimitive"));function Td(t){var e=function(t,e){if("object"!==Gl(t)||null===t)return t;var n=t[Od];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==Gl(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===Gl(e)?e:String(e)}function Fd(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Ed(t,Td(r.key),r)}}function _d(t,e,n){return e&&Fd(t.prototype,e),n&&Fd(t,n),Ed(t,"prototype",{writable:!1}),t}var Sd=oe,Ad=_n;Sd.JSON||(Sd.JSON={stringify:JSON.stringify});var xd=function(t,e,n){return Ad(Sd.JSON.stringify,null,arguments)},Pd=n(xd),Dd=Vt,jd=u,Id=ie,Rd=r,Nd=Zr,Md=Qs,Bd=Dn,Ld=D,Hd=Hn,zd=Object.assign,Wd=Object.defineProperty,Vd=jd([].concat),qd=!zd||Rd((function(){if(Dd&&1!==zd({b:1},zd(Wd({},"a",{enumerable:!0,get:function(){Wd(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var t={},e={},n=Symbol(),r="abcdefghijklmnopqrst";return t[n]=7,r.split("").forEach((function(t){e[t]=t})),7!=zd({},t)[n]||Nd(zd({},e)).join("")!=r}))?function(t,e){for(var n=Ld(t),r=arguments.length,i=1,o=Md.f,a=Bd.f;r>i;)for(var s,c=Hd(arguments[i++]),u=o?Vd(Nd(c),o(c)):Nd(c),l=u.length,h=0;l>h;)s=u[h++],Dd&&!Id(a,c,s)||(n[s]=c[s]);return n}:zd,Yd=qd;Er({target:"Object",stat:!0,arity:2,forced:Object.assign!==Yd},{assign:Yd});var Xd=n(oe.Object.assign),Gd="function"==typeof Bun&&Bun&&"string"==typeof Bun.version,Ud=TypeError,$d=d,Qd=_n,Jd=pt,Kd=Gd,Zd=z,tg=zu,eg=function(t,e){if(t<e)throw Ud("Not enough arguments");return t},ng=$d.Function,rg=/MSIE .\./.test(Zd)||Kd&&function(){var t=$d.Bun.version.split(".");return t.length<3||0==t[0]&&(t[1]<3||3==t[1]&&0==t[2])}(),ig=function(t,e){var n=e?2:1;return rg?function(r,i){var o=eg(arguments.length,1)>n,a=Jd(r)?r:ng(r),s=o?tg(arguments,n):[],c=o?function(){Qd(a,this,s)}:a;return e?t(c,i):t(c)}:t},og=Er,ag=d,sg=ig(ag.setInterval,!0);og({global:!0,bind:!0,forced:ag.setInterval!==sg},{setInterval:sg});var cg=Er,ug=d,lg=ig(ug.setTimeout,!0);cg({global:!0,bind:!0,forced:ug.setTimeout!==lg},{setTimeout:lg});var hg=n(oe.setTimeout),fg=D,pg=Ir,vg=Br,dg=function(t){for(var e=fg(this),n=vg(e),r=arguments.length,i=pg(r>1?arguments[1]:void 0,n),o=r>2?arguments[2]:void 0,a=void 0===o?n:pg(o,n);a>i;)e[i++]=t;return e};Er({target:"Array",proto:!0},{fill:dg});var gg=ph("Array").fill,yg=he,mg=gg,bg=Array.prototype,kg=n((function(t){var e=t.fill;return t===bg||yg(bg,t)&&e===bg.fill?mg:e})),wg=Vr.includes;Er({target:"Array",proto:!0,forced:r((function(){return!Array(1).includes()}))},{includes:function(t){return wg(this,t,arguments.length>1?arguments[1]:void 0)}});var Cg=ph("Array").includes,Eg=Wt,Og=yt,Tg=st("match"),Fg=function(t){var e;return Eg(t)&&(void 0!==(e=t[Tg])?!!e:"RegExp"==Og(t))},_g=TypeError,Sg=st("match"),Ag=Er,xg=function(t){if(Fg(t))throw _g("The method doesn't accept regular expressions");return t},Pg=A,Dg=_t,jg=function(t){var e=/./;try{"/./"[t](e)}catch(n){try{return e[Sg]=!1,"/./"[t](e)}catch(t){}}return!1},Ig=u("".indexOf);Ag({target:"String",proto:!0,forced:!jg("includes")},{includes:function(t){return!!~Ig(Dg(Pg(this)),Dg(xg(t)),arguments.length>1?arguments[1]:void 0)}});var Rg=ph("String").includes,Ng=he,Mg=Cg,Bg=Rg,Lg=Array.prototype,Hg=String.prototype,zg=n((function(t){var e=t.includes;return t===Lg||Ng(Lg,t)&&e===Lg.includes?Mg:"string"==typeof t||t===Hg||Ng(Hg,t)&&e===Hg.includes?Bg:e})),Wg=D,Vg=ji,qg=Ti;Er({target:"Object",stat:!0,forced:r((function(){Vg(1)})),sham:!qg},{getPrototypeOf:function(t){return Vg(Wg(t))}});var Yg=n(oe.Object.getPrototypeOf),Xg=yc.filter;Er({target:"Array",proto:!0,forced:!ws("filter")},{filter:function(t){return Xg(this,t,arguments.length>1?arguments[1]:void 0)}});var Gg=ph("Array").filter,Ug=he,$g=Gg,Qg=Array.prototype,Jg=n((function(t){var e=t.filter;return t===Qg||Ug(Qg,t)&&e===Qg.filter?$g:e})),Kg=Vt,Zg=u,ty=Zr,ey=Vn,ny=Zg(Dn.f),ry=Zg([].push),iy=function(t){return function(e){for(var n,r=ey(e),i=ty(r),o=i.length,a=0,s=[];o>a;)n=i[a++],Kg&&!ny(r,n)||ry(s,t?[n,r[n]]:r[n]);return s}},oy={entries:iy(!0),values:iy(!1)},ay=oy.values;Er({target:"Object",stat:!0},{values:function(t){return ay(t)}});var sy=n(oe.Object.values),cy="\t\n\v\f\r \u2028\u2029\ufeff",uy=A,ly=_t,hy=cy,fy=u("".replace),py=RegExp("^["+hy+"]+"),vy=RegExp("(^|[^"+hy+"])["+hy+"]+$"),dy=function(t){return function(e){var n=ly(uy(e));return 1&t&&(n=fy(n,py,"")),2&t&&(n=fy(n,vy,"$1")),n}},gy={start:dy(1),end:dy(2),trim:dy(3)},yy=d,my=r,by=u,ky=_t,wy=gy.trim,Cy=cy,Ey=yy.parseInt,Oy=yy.Symbol,Ty=Oy&&Oy.iterator,Fy=/^[+-]?0x/i,_y=by(Fy.exec),Sy=8!==Ey(Cy+"08")||22!==Ey(Cy+"0x16")||Ty&&!my((function(){Ey(Object(Ty))}))?function(t,e){var n=wy(ky(t));return Ey(n,e>>>0||(_y(Fy,n)?16:10))}:Ey;Er({global:!0,forced:parseInt!=Sy},{parseInt:Sy});var Ay=n(oe.parseInt),xy=Er,Py=Vr.indexOf,Dy=Ef,jy=xn([].indexOf),Iy=!!jy&&1/jy([1],1,-0)<0;xy({target:"Array",proto:!0,forced:Iy||!Dy("indexOf")},{indexOf:function(t){var e=arguments.length>1?arguments[1]:void 0;return Iy?jy(this,t,e)||0:Py(this,t,e)}});var Ry=ph("Array").indexOf,Ny=he,My=Ry,By=Array.prototype,Ly=n((function(t){var e=t.indexOf;return t===By||Ny(By,t)&&e===By.indexOf?My:e})),Hy=oy.entries;Er({target:"Object",stat:!0},{entries:function(t){return Hy(t)}});var zy=n(oe.Object.entries);Er({target:"Object",stat:!0,sham:!Vt},{create:Oi});var Wy=oe.Object,Vy=n((function(t,e){return Wy.create(t,e)}));function qy(t,e){var n=void 0!==Ch&&as(t)||t["@@iterator"];if(!n){if(Nh(t)||(n=function(t,e){var n;if(!t)return;if("string"==typeof t)return Yy(t,e);var r=Sh(n=Object.prototype.toString.call(t)).call(n,8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return za(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Yy(t,e)}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return a=t.done,t},e:function(t){s=!0,o=t},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function Yy(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var Xy=/^\/?Date\((-?\d+)/i,Gy=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i,Uy=/^#?([a-f\d])([a-f\d])([a-f\d])$/i,$y=/^rgb\( *(1?\d{1,2}|2[0-4]\d|25[0-5]) *, *(1?\d{1,2}|2[0-4]\d|25[0-5]) *, *(1?\d{1,2}|2[0-4]\d|25[0-5]) *\)$/i,Qy=/^rgba\( *(1?\d{1,2}|2[0-4]\d|25[0-5]) *, *(1?\d{1,2}|2[0-4]\d|25[0-5]) *, *(1?\d{1,2}|2[0-4]\d|25[0-5]) *, *([01]|0?\.\d+) *\)$/i;function Jy(t){return t instanceof Number||"number"==typeof t}function Ky(t){return t instanceof String||"string"==typeof t}function Zy(t){return"object"===Gl(t)&&null!==t}function tm(t,e,n,r){var i=!1;!0===r&&(i=null===e[n]&&void 0!==t[n]),i?delete t[n]:t[n]=e[n]}var em=Xd;function nm(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)||!0===n)if("object"===Gl(e[i])&&null!==e[i]&&Yg(e[i])===Object.prototype)void 0===t[i]?t[i]=nm({},e[i],n):"object"===Gl(t[i])&&null!==t[i]&&Yg(t[i])===Object.prototype?nm(t[i],e[i],n):tm(t,e,i,r);else if(Nh(e[i])){var o;t[i]=Sh(o=e[i]).call(o)}else tm(t,e,i,r);return t}function rm(t,e){var n;return _h(n=[]).call(n,wh(t),[e])}function im(t){return Sh(t).call(t)}var om=sy;var am={asBoolean:function(t,e){return"function"==typeof t&&(t=t()),null!=t?0!=t:e||null},asNumber:function(t,e){return"function"==typeof t&&(t=t()),null!=t?Number(t)||e||null:e||null},asString:function(t,e){return"function"==typeof t&&(t=t()),null!=t?String(t):e||null},asSize:function(t,e){return"function"==typeof t&&(t=t()),Ky(t)?t:Jy(t)?t+"px":e||null},asElement:function(t,e){return"function"==typeof t&&(t=t()),t||e||null}};function sm(t){var e;switch(t.length){case 3:case 4:return(e=Uy.exec(t))?{r:Ay(e[1]+e[1],16),g:Ay(e[2]+e[2],16),b:Ay(e[3]+e[3],16)}:null;case 6:case 7:return(e=Gy.exec(t))?{r:Ay(e[1],16),g:Ay(e[2],16),b:Ay(e[3],16)}:null;default:return null}}function cm(t,e,n){var r;return"#"+Sh(r=((1<<24)+(t<<16)+(e<<8)+n).toString(16)).call(r,1)}function um(t,e,n){t/=255,e/=255,n/=255;var r=Math.min(t,Math.min(e,n)),i=Math.max(t,Math.max(e,n));return r===i?{h:0,s:0,v:r}:{h:60*((t===r?3:n===r?1:5)-(t===r?e-n:n===r?t-e:n-t)/(i-r))/360,s:(i-r)/i,v:i}}function lm(t){var e=document.createElement("div"),n={};e.style.cssText=t;for(var r=0;r<e.style.length;++r)n[e.style[r]]=e.style.getPropertyValue(e.style[r]);return n}function hm(t,e,n){var r,i,o,a=Math.floor(6*t),s=6*t-a,c=n*(1-e),u=n*(1-s*e),l=n*(1-(1-s)*e);switch(a%6){case 0:r=n,i=l,o=c;break;case 1:r=u,i=n,o=c;break;case 2:r=c,i=n,o=l;break;case 3:r=c,i=u,o=n;break;case 4:r=l,i=c,o=n;break;case 5:r=n,i=c,o=u}return{r:Math.floor(255*r),g:Math.floor(255*i),b:Math.floor(255*o)}}function fm(t,e,n){var r=hm(t,e,n);return cm(r.r,r.g,r.b)}function pm(t){var e=sm(t);if(!e)throw new TypeError("'".concat(t,"' is not a valid color."));return um(e.r,e.g,e.b)}function vm(t){return/(^#[0-9A-F]{6}$)|(^#[0-9A-F]{3}$)/i.test(t)}function dm(t){return $y.test(t)}function gm(t){return Qy.test(t)}function ym(t){if(null===t||"object"!==Gl(t))return null;if(t instanceof Element)return t;var e=Vy(t);for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&"object"==Gl(t[n])&&(e[n]=ym(t[n]));return e}var mm={black:"#000000",navy:"#000080",darkblue:"#00008B",mediumblue:"#0000CD",blue:"#0000FF",darkgreen:"#006400",green:"#008000",teal:"#008080",darkcyan:"#008B8B",deepskyblue:"#00BFFF",darkturquoise:"#00CED1",mediumspringgreen:"#00FA9A",lime:"#00FF00",springgreen:"#00FF7F",aqua:"#00FFFF",cyan:"#00FFFF",midnightblue:"#191970",dodgerblue:"#1E90FF",lightseagreen:"#20B2AA",forestgreen:"#228B22",seagreen:"#2E8B57",darkslategray:"#2F4F4F",limegreen:"#32CD32",mediumseagreen:"#3CB371",turquoise:"#40E0D0",royalblue:"#4169E1",steelblue:"#4682B4",darkslateblue:"#483D8B",mediumturquoise:"#48D1CC",indigo:"#4B0082",darkolivegreen:"#556B2F",cadetblue:"#5F9EA0",cornflowerblue:"#6495ED",mediumaquamarine:"#66CDAA",dimgray:"#696969",slateblue:"#6A5ACD",olivedrab:"#6B8E23",slategray:"#708090",lightslategray:"#778899",mediumslateblue:"#7B68EE",lawngreen:"#7CFC00",chartreuse:"#7FFF00",aquamarine:"#7FFFD4",maroon:"#800000",purple:"#800080",olive:"#808000",gray:"#808080",skyblue:"#87CEEB",lightskyblue:"#87CEFA",blueviolet:"#8A2BE2",darkred:"#8B0000",darkmagenta:"#8B008B",saddlebrown:"#8B4513",darkseagreen:"#8FBC8F",lightgreen:"#90EE90",mediumpurple:"#9370D8",darkviolet:"#9400D3",palegreen:"#98FB98",darkorchid:"#9932CC",yellowgreen:"#9ACD32",sienna:"#A0522D",brown:"#A52A2A",darkgray:"#A9A9A9",lightblue:"#ADD8E6",greenyellow:"#ADFF2F",paleturquoise:"#AFEEEE",lightsteelblue:"#B0C4DE",powderblue:"#B0E0E6",firebrick:"#B22222",darkgoldenrod:"#B8860B",mediumorchid:"#BA55D3",rosybrown:"#BC8F8F",darkkhaki:"#BDB76B",silver:"#C0C0C0",mediumvioletred:"#C71585",indianred:"#CD5C5C",peru:"#CD853F",chocolate:"#D2691E",tan:"#D2B48C",lightgrey:"#D3D3D3",palevioletred:"#D87093",thistle:"#D8BFD8",orchid:"#DA70D6",goldenrod:"#DAA520",crimson:"#DC143C",gainsboro:"#DCDCDC",plum:"#DDA0DD",burlywood:"#DEB887",lightcyan:"#E0FFFF",lavender:"#E6E6FA",darksalmon:"#E9967A",violet:"#EE82EE",palegoldenrod:"#EEE8AA",lightcoral:"#F08080",khaki:"#F0E68C",aliceblue:"#F0F8FF",honeydew:"#F0FFF0",azure:"#F0FFFF",sandybrown:"#F4A460",wheat:"#F5DEB3",beige:"#F5F5DC",whitesmoke:"#F5F5F5",mintcream:"#F5FFFA",ghostwhite:"#F8F8FF",salmon:"#FA8072",antiquewhite:"#FAEBD7",linen:"#FAF0E6",lightgoldenrodyellow:"#FAFAD2",oldlace:"#FDF5E6",red:"#FF0000",fuchsia:"#FF00FF",magenta:"#FF00FF",deeppink:"#FF1493",orangered:"#FF4500",tomato:"#FF6347",hotpink:"#FF69B4",coral:"#FF7F50",darkorange:"#FF8C00",lightsalmon:"#FFA07A",orange:"#FFA500",lightpink:"#FFB6C1",pink:"#FFC0CB",gold:"#FFD700",peachpuff:"#FFDAB9",navajowhite:"#FFDEAD",moccasin:"#FFE4B5",bisque:"#FFE4C4",mistyrose:"#FFE4E1",blanchedalmond:"#FFEBCD",papayawhip:"#FFEFD5",lavenderblush:"#FFF0F5",seashell:"#FFF5EE",cornsilk:"#FFF8DC",lemonchiffon:"#FFFACD",floralwhite:"#FFFAF0",snow:"#FFFAFA",yellow:"#FFFF00",lightyellow:"#FFFFE0",ivory:"#FFFFF0",white:"#FFFFFF"},bm=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;gd(this,t),this.pixelRatio=e,this.generated=!1,this.centerCoordinates={x:144.5,y:144.5},this.r=289*.49,this.color={r:255,g:255,b:255,a:1},this.hueCircle=void 0,this.initialColor={r:255,g:255,b:255,a:1},this.previousColor=void 0,this.applied=!1,this.updateCallback=function(){},this.closeCallback=function(){},this._create()}return _d(t,[{key:"insertTo",value:function(t){void 0!==this.hammer&&(this.hammer.destroy(),this.hammer=void 0),this.container=t,this.container.appendChild(this.frame),this._bindHammer(),this._setSize()}},{key:"setUpdateCallback",value:function(t){if("function"!=typeof t)throw new Error("Function attempted to set as colorPicker update callback is not a function.");this.updateCallback=t}},{key:"setCloseCallback",value:function(t){if("function"!=typeof t)throw new Error("Function attempted to set as colorPicker closing callback is not a function.");this.closeCallback=t}},{key:"_isColorString",value:function(t){if("string"==typeof t)return mm[t]}},{key:"setColor",value:function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if("none"!==t){var n,r=this._isColorString(t);if(void 0!==r&&(t=r),!0===Ky(t)){if(!0===dm(t)){var i=t.substr(4).substr(0,t.length-5).split(",");n={r:i[0],g:i[1],b:i[2],a:1}}else if(!0===gm(t)){var o=t.substr(5).substr(0,t.length-6).split(",");n={r:o[0],g:o[1],b:o[2],a:o[3]}}else if(!0===vm(t)){var a=sm(t);n={r:a.r,g:a.g,b:a.b,a:1}}}else if(t instanceof Object&&void 0!==t.r&&void 0!==t.g&&void 0!==t.b){var s=void 0!==t.a?t.a:"1.0";n={r:t.r,g:t.g,b:t.b,a:s}}if(void 0===n)throw new Error("Unknown color passed to the colorPicker. Supported are strings: rgb, hex, rgba. Object: rgb ({r:r,g:g,b:b,[a:a]}). Supplied: "+Pd(t));this._setColor(n,e)}}},{key:"show",value:function(){void 0!==this.closeCallback&&(this.closeCallback(),this.closeCallback=void 0),this.applied=!1,this.frame.style.display="block",this._generateHueCircle()}},{key:"_hide",value:function(){var t=this;!0===(!(arguments.length>0&&void 0!==arguments[0])||arguments[0])&&(this.previousColor=Xd({},this.color)),!0===this.applied&&this.updateCallback(this.initialColor),this.frame.style.display="none",hg((function(){void 0!==t.closeCallback&&(t.closeCallback(),t.closeCallback=void 0)}),0)}},{key:"_save",value:function(){this.updateCallback(this.color),this.applied=!1,this._hide()}},{key:"_apply",value:function(){this.applied=!0,this.updateCallback(this.color),this._updatePicker(this.color)}},{key:"_loadLast",value:function(){void 0!==this.previousColor?this.setColor(this.previousColor,!1):alert("There is no last color to load...")}},{key:"_setColor",value:function(t){!0===(!(arguments.length>1&&void 0!==arguments[1])||arguments[1])&&(this.initialColor=Xd({},t)),this.color=t;var e=um(t.r,t.g,t.b),n=2*Math.PI,r=this.r*e.s,i=this.centerCoordinates.x+r*Math.sin(n*e.h),o=this.centerCoordinates.y+r*Math.cos(n*e.h);this.colorPickerSelector.style.left=i-.5*this.colorPickerSelector.clientWidth+"px",this.colorPickerSelector.style.top=o-.5*this.colorPickerSelector.clientHeight+"px",this._updatePicker(t)}},{key:"_setOpacity",value:function(t){this.color.a=t/100,this._updatePicker(this.color)}},{key:"_setBrightness",value:function(t){var e=um(this.color.r,this.color.g,this.color.b);e.v=t/100;var n=hm(e.h,e.s,e.v);n.a=this.color.a,this.color=n,this._updatePicker()}},{key:"_updatePicker",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.color,e=um(t.r,t.g,t.b),n=this.colorPickerCanvas.getContext("2d");void 0===this.pixelRation&&(this.pixelRatio=(window.devicePixelRatio||1)/(n.webkitBackingStorePixelRatio||n.mozBackingStorePixelRatio||n.msBackingStorePixelRatio||n.oBackingStorePixelRatio||n.backingStorePixelRatio||1)),n.setTransform(this.pixelRatio,0,0,this.pixelRatio,0,0);var r=this.colorPickerCanvas.clientWidth,i=this.colorPickerCanvas.clientHeight;n.clearRect(0,0,r,i),n.putImageData(this.hueCircle,0,0),n.fillStyle="rgba(0,0,0,"+(1-e.v)+")",n.circle(this.centerCoordinates.x,this.centerCoordinates.y,this.r),kg(n).call(n),this.brightnessRange.value=100*e.v,this.opacityRange.value=100*t.a,this.initialColorDiv.style.backgroundColor="rgba("+this.initialColor.r+","+this.initialColor.g+","+this.initialColor.b+","+this.initialColor.a+")",this.newColorDiv.style.backgroundColor="rgba("+this.color.r+","+this.color.g+","+this.color.b+","+this.color.a+")"}},{key:"_setSize",value:function(){this.colorPickerCanvas.style.width="100%",this.colorPickerCanvas.style.height="100%",this.colorPickerCanvas.width=289*this.pixelRatio,this.colorPickerCanvas.height=289*this.pixelRatio}},{key:"_create",value:function(){var t,e,n,r;if(this.frame=document.createElement("div"),this.frame.className="vis-color-picker",this.colorPickerDiv=document.createElement("div"),this.colorPickerSelector=document.createElement("div"),this.colorPickerSelector.className="vis-selector",this.colorPickerDiv.appendChild(this.colorPickerSelector),this.colorPickerCanvas=document.createElement("canvas"),this.colorPickerDiv.appendChild(this.colorPickerCanvas),this.colorPickerCanvas.getContext){var i=this.colorPickerCanvas.getContext("2d");this.pixelRatio=(window.devicePixelRatio||1)/(i.webkitBackingStorePixelRatio||i.mozBackingStorePixelRatio||i.msBackingStorePixelRatio||i.oBackingStorePixelRatio||i.backingStorePixelRatio||1),this.colorPickerCanvas.getContext("2d").setTransform(this.pixelRatio,0,0,this.pixelRatio,0,0)}else{var o=document.createElement("DIV");o.style.color="red",o.style.fontWeight="bold",o.style.padding="10px",o.innerText="Error: your browser does not support HTML canvas",this.colorPickerCanvas.appendChild(o)}this.colorPickerDiv.className="vis-color",this.opacityDiv=document.createElement("div"),this.opacityDiv.className="vis-opacity",this.brightnessDiv=document.createElement("div"),this.brightnessDiv.className="vis-brightness",this.arrowDiv=document.createElement("div"),this.arrowDiv.className="vis-arrow",this.opacityRange=document.createElement("input");try{this.opacityRange.type="range",this.opacityRange.min="0",this.opacityRange.max="100"}catch(t){}this.opacityRange.value="100",this.opacityRange.className="vis-range",this.brightnessRange=document.createElement("input");try{this.brightnessRange.type="range",this.brightnessRange.min="0",this.brightnessRange.max="100"}catch(t){}this.brightnessRange.value="100",this.brightnessRange.className="vis-range",this.opacityDiv.appendChild(this.opacityRange),this.brightnessDiv.appendChild(this.brightnessRange);var a=this;this.opacityRange.onchange=function(){a._setOpacity(this.value)},this.opacityRange.oninput=function(){a._setOpacity(this.value)},this.brightnessRange.onchange=function(){a._setBrightness(this.value)},this.brightnessRange.oninput=function(){a._setBrightness(this.value)},this.brightnessLabel=document.createElement("div"),this.brightnessLabel.className="vis-label vis-brightness",this.brightnessLabel.innerText="brightness:",this.opacityLabel=document.createElement("div"),this.opacityLabel.className="vis-label vis-opacity",this.opacityLabel.innerText="opacity:",this.newColorDiv=document.createElement("div"),this.newColorDiv.className="vis-new-color",this.newColorDiv.innerText="new",this.initialColorDiv=document.createElement("div"),this.initialColorDiv.className="vis-initial-color",this.initialColorDiv.innerText="initial",this.cancelButton=document.createElement("div"),this.cancelButton.className="vis-button vis-cancel",this.cancelButton.innerText="cancel",this.cancelButton.onclick=wf(t=this._hide).call(t,this,!1),this.applyButton=document.createElement("div"),this.applyButton.className="vis-button vis-apply",this.applyButton.innerText="apply",this.applyButton.onclick=wf(e=this._apply).call(e,this),this.saveButton=document.createElement("div"),this.saveButton.className="vis-button vis-save",this.saveButton.innerText="save",this.saveButton.onclick=wf(n=this._save).call(n,this),this.loadButton=document.createElement("div"),this.loadButton.className="vis-button vis-load",this.loadButton.innerText="load last",this.loadButton.onclick=wf(r=this._loadLast).call(r,this),this.frame.appendChild(this.colorPickerDiv),this.frame.appendChild(this.arrowDiv),this.frame.appendChild(this.brightnessLabel),this.frame.appendChild(this.brightnessDiv),this.frame.appendChild(this.opacityLabel),this.frame.appendChild(this.opacityDiv),this.frame.appendChild(this.newColorDiv),this.frame.appendChild(this.initialColorDiv),this.frame.appendChild(this.cancelButton),this.frame.appendChild(this.applyButton),this.frame.appendChild(this.saveButton),this.frame.appendChild(this.loadButton)}},{key:"_bindHammer",value:function(){var t=this;this.drag={},this.pinch={},this.hammer=new fd(this.colorPickerCanvas),this.hammer.get("pinch").set({enable:!0}),this.hammer.on("hammer.input",(function(e){e.isFirst&&t._moveSelector(e)})),this.hammer.on("tap",(function(e){t._moveSelector(e)})),this.hammer.on("panstart",(function(e){t._moveSelector(e)})),this.hammer.on("panmove",(function(e){t._moveSelector(e)})),this.hammer.on("panend",(function(e){t._moveSelector(e)}))}},{key:"_generateHueCircle",value:function(){if(!1===this.generated){var t=this.colorPickerCanvas.getContext("2d");void 0===this.pixelRation&&(this.pixelRatio=(window.devicePixelRatio||1)/(t.webkitBackingStorePixelRatio||t.mozBackingStorePixelRatio||t.msBackingStorePixelRatio||t.oBackingStorePixelRatio||t.backingStorePixelRatio||1)),t.setTransform(this.pixelRatio,0,0,this.pixelRatio,0,0);var e,n,r,i,o=this.colorPickerCanvas.clientWidth,a=this.colorPickerCanvas.clientHeight;t.clearRect(0,0,o,a),this.centerCoordinates={x:.5*o,y:.5*a},this.r=.49*o;var s,c=2*Math.PI/360,u=1/this.r;for(r=0;r<360;r++)for(i=0;i<this.r;i++)e=this.centerCoordinates.x+i*Math.sin(c*r),n=this.centerCoordinates.y+i*Math.cos(c*r),s=hm(.002777777777777778*r,i*u,1),t.fillStyle="rgb("+s.r+","+s.g+","+s.b+")",t.fillRect(e-.5,n-.5,2,2);t.strokeStyle="rgba(0,0,0,1)",t.circle(this.centerCoordinates.x,this.centerCoordinates.y,this.r),t.stroke(),this.hueCircle=t.getImageData(0,0,o,a)}this.generated=!0}},{key:"_moveSelector",value:function(t){var e=this.colorPickerDiv.getBoundingClientRect(),n=t.center.x-e.left,r=t.center.y-e.top,i=.5*this.colorPickerDiv.clientHeight,o=.5*this.colorPickerDiv.clientWidth,a=n-o,s=r-i,c=Math.atan2(a,s),u=.98*Math.min(Math.sqrt(a*a+s*s),o),l=Math.cos(c)*u+i,h=Math.sin(c)*u+o;this.colorPickerSelector.style.top=l-.5*this.colorPickerSelector.clientHeight+"px",this.colorPickerSelector.style.left=h-.5*this.colorPickerSelector.clientWidth+"px";var f=c/(2*Math.PI);f=f<0?f+1:f;var p=u/this.r,v=um(this.color.r,this.color.g,this.color.b);v.h=f,v.s=p;var d=hm(v.h,v.s,v.v);d.a=this.color.a,this.color=d,this.initialColorDiv.style.backgroundColor="rgba("+this.initialColor.r+","+this.initialColor.g+","+this.initialColor.b+","+this.initialColor.a+")",this.newColorDiv.style.backgroundColor="rgba("+this.color.r+","+this.color.g+","+this.color.b+","+this.color.a+")"}}]),t}();function km(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];if(e.length<1)throw new TypeError("Invalid arguments.");if(1===e.length)return document.createTextNode(e[0]);var r=document.createElement(e[0]);return r.appendChild(km.apply(void 0,wh(Sh(e).call(e,1)))),r}var wm,Cm=function(){function t(e,n,r){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:function(){return!1};gd(this,t),this.parent=e,this.changedOptions=[],this.container=n,this.allowCreation=!1,this.hideOption=o,this.options={},this.initialized=!1,this.popupCounter=0,this.defaultOptions={enabled:!1,filter:!0,container:void 0,showButton:!0},Xd(this.options,this.defaultOptions),this.configureOptions=r,this.moduleOptions={},this.domElements=[],this.popupDiv={},this.popupLimit=5,this.popupHistory={},this.colorPicker=new bm(i),this.wrapper=void 0}return _d(t,[{key:"setOptions",value:function(t){if(void 0!==t){this.popupHistory={},this._removePopup();var e=!0;if("string"==typeof t)this.options.filter=t;else if(Nh(t))this.options.filter=t.join();else if("object"===Gl(t)){if(null==t)throw new TypeError("options cannot be null");void 0!==t.container&&(this.options.container=t.container),void 0!==Jg(t)&&(this.options.filter=Jg(t)),void 0!==t.showButton&&(this.options.showButton=t.showButton),void 0!==t.enabled&&(e=t.enabled)}else"boolean"==typeof t?(this.options.filter=!0,e=t):"function"==typeof t&&(this.options.filter=t,e=!0);!1===Jg(this.options)&&(e=!1),this.options.enabled=e}this._clean()}},{key:"setModuleOptions",value:function(t){this.moduleOptions=t,!0===this.options.enabled&&(this._clean(),void 0!==this.options.container&&(this.container=this.options.container),this._create())}},{key:"_create",value:function(){this._clean(),this.changedOptions=[];var t=Jg(this.options),e=0,n=!1;for(var r in this.configureOptions)Object.prototype.hasOwnProperty.call(this.configureOptions,r)&&(this.allowCreation=!1,n=!1,"function"==typeof t?n=(n=t(r,[]))||this._handleObject(this.configureOptions[r],[r],!0):!0!==t&&-1===Ly(t).call(t,r)||(n=!0),!1!==n&&(this.allowCreation=!0,e>0&&this._makeItem([]),this._makeHeader(r),this._handleObject(this.configureOptions[r],[r])),e++);this._makeButton(),this._push()}},{key:"_push",value:function(){this.wrapper=document.createElement("div"),this.wrapper.className="vis-configuration-wrapper",this.container.appendChild(this.wrapper);for(var t=0;t<this.domElements.length;t++)this.wrapper.appendChild(this.domElements[t]);this._showPopupIfNeeded()}},{key:"_clean",value:function(){for(var t=0;t<this.domElements.length;t++)this.wrapper.removeChild(this.domElements[t]);void 0!==this.wrapper&&(this.container.removeChild(this.wrapper),this.wrapper=void 0),this.domElements=[],this._removePopup()}},{key:"_getValue",value:function(t){for(var e=this.moduleOptions,n=0;n<t.length;n++){if(void 0===e[t[n]]){e=void 0;break}e=e[t[n]]}return e}},{key:"_makeItem",value:function(t){if(!0===this.allowCreation){var e=document.createElement("div");e.className="vis-configuration vis-config-item vis-config-s"+t.length;for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return jf(r).call(r,(function(t){e.appendChild(t)})),this.domElements.push(e),this.domElements.length}return 0}},{key:"_makeHeader",value:function(t){var e=document.createElement("div");e.className="vis-configuration vis-config-header",e.innerText=t,this._makeItem([],e)}},{key:"_makeLabel",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=document.createElement("div");if(r.className="vis-configuration vis-config-label vis-config-s"+e.length,!0===n){for(;r.firstChild;)r.removeChild(r.firstChild);r.appendChild(km("i","b",t))}else r.innerText=t+":";return r}},{key:"_makeDropdown",value:function(t,e,n){var r=document.createElement("select");r.className="vis-configuration vis-config-select";var i=0;void 0!==e&&-1!==Ly(t).call(t,e)&&(i=Ly(t).call(t,e));for(var o=0;o<t.length;o++){var a=document.createElement("option");a.value=t[o],o===i&&(a.selected="selected"),a.innerText=t[o],r.appendChild(a)}var s=this;r.onchange=function(){s._update(this.value,n)};var c=this._makeLabel(n[n.length-1],n);this._makeItem(n,c,r)}},{key:"_makeRange",value:function(t,e,n){var r=t[0],i=t[1],o=t[2],a=t[3],s=document.createElement("input");s.className="vis-configuration vis-config-range";try{s.type="range",s.min=i,s.max=o}catch(t){}s.step=a;var c="",u=0;if(void 0!==e){var l=1.2;e<0&&e*l<i?(s.min=Math.ceil(e*l),u=s.min,c="range increased"):e/l<i&&(s.min=Math.ceil(e/l),u=s.min,c="range increased"),e*l>o&&1!==o&&(s.max=Math.ceil(e*l),u=s.max,c="range increased"),s.value=e}else s.value=r;var h=document.createElement("input");h.className="vis-configuration vis-config-rangeinput",h.value=s.value;var f=this;s.onchange=function(){h.value=this.value,f._update(Number(this.value),n)},s.oninput=function(){h.value=this.value};var p=this._makeLabel(n[n.length-1],n),v=this._makeItem(n,p,s,h);""!==c&&this.popupHistory[v]!==u&&(this.popupHistory[v]=u,this._setupPopup(c,v))}},{key:"_makeButton",value:function(){var t=this;if(!0===this.options.showButton){var e=document.createElement("div");e.className="vis-configuration vis-config-button",e.innerText="generate options",e.onclick=function(){t._printOptions()},e.onmouseover=function(){e.className="vis-configuration vis-config-button hover"},e.onmouseout=function(){e.className="vis-configuration vis-config-button"},this.optionsContainer=document.createElement("div"),this.optionsContainer.className="vis-configuration vis-config-option-container",this.domElements.push(this.optionsContainer),this.domElements.push(e)}}},{key:"_setupPopup",value:function(t,e){var n=this;if(!0===this.initialized&&!0===this.allowCreation&&this.popupCounter<this.popupLimit){var r=document.createElement("div");r.id="vis-configuration-popup",r.className="vis-configuration-popup",r.innerText=t,r.onclick=function(){n._removePopup()},this.popupCounter+=1,this.popupDiv={html:r,index:e}}}},{key:"_removePopup",value:function(){void 0!==this.popupDiv.html&&(this.popupDiv.html.parentNode.removeChild(this.popupDiv.html),clearTimeout(this.popupDiv.hideTimeout),clearTimeout(this.popupDiv.deleteTimeout),this.popupDiv={})}},{key:"_showPopupIfNeeded",value:function(){var t=this;if(void 0!==this.popupDiv.html){var e=this.domElements[this.popupDiv.index].getBoundingClientRect();this.popupDiv.html.style.left=e.left+"px",this.popupDiv.html.style.top=e.top-30+"px",document.body.appendChild(this.popupDiv.html),this.popupDiv.hideTimeout=hg((function(){t.popupDiv.html.style.opacity=0}),1500),this.popupDiv.deleteTimeout=hg((function(){t._removePopup()}),1800)}}},{key:"_makeCheckbox",value:function(t,e,n){var r=document.createElement("input");r.type="checkbox",r.className="vis-configuration vis-config-checkbox",r.checked=t,void 0!==e&&(r.checked=e,e!==t&&("object"===Gl(t)?e!==t.enabled&&this.changedOptions.push({path:n,value:e}):this.changedOptions.push({path:n,value:e})));var i=this;r.onchange=function(){i._update(this.checked,n)};var o=this._makeLabel(n[n.length-1],n);this._makeItem(n,o,r)}},{key:"_makeTextInput",value:function(t,e,n){var r=document.createElement("input");r.type="text",r.className="vis-configuration vis-config-text",r.value=e,e!==t&&this.changedOptions.push({path:n,value:e});var i=this;r.onchange=function(){i._update(this.value,n)};var o=this._makeLabel(n[n.length-1],n);this._makeItem(n,o,r)}},{key:"_makeColorField",value:function(t,e,n){var r=this,i=t[1],o=document.createElement("div");"none"!==(e=void 0===e?i:e)?(o.className="vis-configuration vis-config-colorBlock",o.style.backgroundColor=e):o.className="vis-configuration vis-config-colorBlock none",e=void 0===e?i:e,o.onclick=function(){r._showColorPicker(e,o,n)};var a=this._makeLabel(n[n.length-1],n);this._makeItem(n,a,o)}},{key:"_showColorPicker",value:function(t,e,n){var r=this;e.onclick=function(){},this.colorPicker.insertTo(e),this.colorPicker.show(),this.colorPicker.setColor(t),this.colorPicker.setUpdateCallback((function(t){var i="rgba("+t.r+","+t.g+","+t.b+","+t.a+")";e.style.backgroundColor=i,r._update(i,n)})),this.colorPicker.setCloseCallback((function(){e.onclick=function(){r._showColorPicker(t,e,n)}}))}},{key:"_handleObject",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=!1,i=Jg(this.options),o=!1;for(var a in t)if(Object.prototype.hasOwnProperty.call(t,a)){r=!0;var s=t[a],c=rm(e,a);if("function"==typeof i&&!1===(r=i(a,e))&&!Nh(s)&&"string"!=typeof s&&"boolean"!=typeof s&&s instanceof Object&&(this.allowCreation=!1,r=this._handleObject(s,c,!0),this.allowCreation=!1===n),!1!==r){o=!0;var u=this._getValue(c);if(Nh(s))this._handleArray(s,u,c);else if("string"==typeof s)this._makeTextInput(s,u,c);else if("boolean"==typeof s)this._makeCheckbox(s,u,c);else if(s instanceof Object){if(!this.hideOption(e,a,this.moduleOptions))if(void 0!==s.enabled){var l=rm(c,"enabled"),h=this._getValue(l);if(!0===h){var f=this._makeLabel(a,c,!0);this._makeItem(c,f),o=this._handleObject(s,c)||o}else this._makeCheckbox(s,h,c)}else{var p=this._makeLabel(a,c,!0);this._makeItem(c,p),o=this._handleObject(s,c)||o}}else console.error("dont know how to handle",s,a,c)}}return o}},{key:"_handleArray",value:function(t,e,n){"string"==typeof t[0]&&"color"===t[0]?(this._makeColorField(t,e,n),t[1]!==e&&this.changedOptions.push({path:n,value:e})):"string"==typeof t[0]?(this._makeDropdown(t,e,n),t[0]!==e&&this.changedOptions.push({path:n,value:e})):"number"==typeof t[0]&&(this._makeRange(t,e,n),t[0]!==e&&this.changedOptions.push({path:n,value:Number(e)}))}},{key:"_update",value:function(t,e){var n=this._constructOptions(t,e);this.parent.body&&this.parent.body.emitter&&this.parent.body.emitter.emit&&this.parent.body.emitter.emit("configChange",n),this.initialized=!0,this.parent.setOptions(n)}},{key:"_constructOptions",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n;t="false"!==(t="true"===t||t)&&t;for(var i=0;i<e.length;i++)"global"!==e[i]&&(void 0===r[e[i]]&&(r[e[i]]={}),i!==e.length-1?r=r[e[i]]:r[e[i]]=t);return n}},{key:"_printOptions",value:function(){for(var t=this.getOptions();this.optionsContainer.firstChild;)this.optionsContainer.removeChild(this.optionsContainer.firstChild);this.optionsContainer.appendChild(km("pre","const options = "+Pd(t,null,2)))}},{key:"getOptions",value:function(){for(var t={},e=0;e<this.changedOptions.length;e++)this._constructOptions(this.changedOptions[e].value,this.changedOptions[e].path,t);return t}}]),t}(),Em=function(){function t(e,n){gd(this,t),this.container=e,this.overflowMethod=n||"cap",this.x=0,this.y=0,this.padding=5,this.hidden=!1,this.frame=document.createElement("div"),this.frame.className="vis-tooltip",this.container.appendChild(this.frame)}return _d(t,[{key:"setPosition",value:function(t,e){this.x=Ay(t),this.y=Ay(e)}},{key:"setText",value:function(t){if(t instanceof Element){for(;this.frame.firstChild;)this.frame.removeChild(this.frame.firstChild);this.frame.appendChild(t)}else this.frame.innerText=t}},{key:"show",value:function(t){if(void 0===t&&(t=!0),!0===t){var e=this.frame.clientHeight,n=this.frame.clientWidth,r=this.frame.parentNode.clientHeight,i=this.frame.parentNode.clientWidth,o=0,a=0;if("flip"==this.overflowMethod){var s=!1,c=!0;this.y-e<this.padding&&(c=!1),this.x+n>i-this.padding&&(s=!0),o=s?this.x-n:this.x,a=c?this.y-e:this.y}else(a=this.y-e)+e+this.padding>r&&(a=r-e-this.padding),a<this.padding&&(a=this.padding),(o=this.x)+n+this.padding>i&&(o=i-n-this.padding),o<this.padding&&(o=this.padding);this.frame.style.left=o+"px",this.frame.style.top=a+"px",this.frame.style.visibility="visible",this.hidden=!1}else this.hide()}},{key:"hide",value:function(){this.hidden=!0,this.frame.style.left="0",this.frame.style.top="0",this.frame.style.visibility="hidden"}},{key:"destroy",value:function(){this.frame.parentNode.removeChild(this.frame)}}]),t}(),Om=!1,Tm="background: #FFeeee; color: #dd0000",Fm=function(){function t(){gd(this,t)}return _d(t,null,[{key:"validate",value:function(e,n,r){Om=!1,wm=n;var i=n;return void 0!==r&&(i=n[r]),t.parse(e,i,[]),Om}},{key:"parse",value:function(e,n,r){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.check(i,e,n,r)}},{key:"check",value:function(e,n,r,i){if(void 0!==r[e]||void 0!==r.__any__){var o=e,a=!0;void 0===r[e]&&void 0!==r.__any__&&(o="__any__",a="object"===t.getType(n[e]));var s=r[o];a&&void 0!==s.__type__&&(s=s.__type__),t.checkFields(e,n,r,o,s,i)}else t.getSuggestion(e,r,i)}},{key:"checkFields",value:function(e,n,r,i,o,a){var s=function(n){console.error("%c"+n+t.printLocation(a,e),Tm)},c=t.getType(n[e]),u=o[c];void 0!==u?"array"===t.getType(u)&&-1===Ly(u).call(u,n[e])?(s('Invalid option detected in "'+e+'". Allowed values are:'+t.print(u)+' not "'+n[e]+'". '),Om=!0):"object"===c&&"__any__"!==i&&(a=rm(a,e),t.parse(n[e],r[i],a)):void 0===o.any&&(s('Invalid type received for "'+e+'". Expected: '+t.print(Yh(o))+". Received ["+c+'] "'+n[e]+'"'),Om=!0)}},{key:"getType",value:function(t){var e=Gl(t);return"object"===e?null===t?"null":t instanceof Boolean?"boolean":t instanceof Number?"number":t instanceof String?"string":Nh(t)?"array":t instanceof Date?"date":void 0!==t.nodeType?"dom":!0===t._isAMomentObject?"moment":"object":"number"===e?"number":"boolean"===e?"boolean":"string"===e?"string":void 0===e?"undefined":e}},{key:"getSuggestion",value:function(e,n,r){var i,o=t.findInOptions(e,n,r,!1),a=t.findInOptions(e,wm,[],!0);i=void 0!==o.indexMatch?" in "+t.printLocation(o.path,e,"")+'Perhaps it was incomplete? Did you mean: "'+o.indexMatch+'"?\n\n':a.distance<=4&&o.distance>a.distance?" in "+t.printLocation(o.path,e,"")+"Perhaps it was misplaced? Matching option found at: "+t.printLocation(a.path,a.closestMatch,""):o.distance<=8?'. Did you mean "'+o.closestMatch+'"?'+t.printLocation(o.path,e):". Did you mean one of these: "+t.print(Yh(n))+t.printLocation(r,e),console.error('%cUnknown option detected: "'+e+'"'+i,Tm),Om=!0}},{key:"findInOptions",value:function(e,n,r){var i=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o=1e9,a="",s=[],c=e.toLowerCase(),u=void 0;for(var l in n){var h=void 0;if(void 0!==n[l].__type__&&!0===i){var f=t.findInOptions(e,n[l],rm(r,l));o>f.distance&&(a=f.closestMatch,s=f.path,o=f.distance,u=f.indexMatch)}else{var p;-1!==Ly(p=l.toLowerCase()).call(p,c)&&(u=l),o>(h=t.levenshteinDistance(e,l))&&(a=l,s=im(r),o=h)}}return{closestMatch:a,path:s,distance:o,indexMatch:u}}},{key:"printLocation",value:function(t,e){for(var n="\n\n"+(arguments.length>2&&void 0!==arguments[2]?arguments[2]:"Problem value found at: \n")+"options = {\n",r=0;r<t.length;r++){for(var i=0;i<r+1;i++)n+=" ";n+=t[r]+": {\n"}for(var o=0;o<t.length+1;o++)n+=" ";n+=e+"\n";for(var a=0;a<t.length+1;a++){for(var s=0;s<t.length-a;s++)n+=" ";n+="}\n"}return n+"\n\n"}},{key:"print",value:function(t){return Pd(t).replace(/(")|(\[)|(\])|(,"__type__")/g,"").replace(/(,)/g,", ")}},{key:"levenshteinDistance",value:function(t,e){if(0===t.length)return e.length;if(0===e.length)return t.length;var n,r,i=[];for(n=0;n<=e.length;n++)i[n]=[n];for(r=0;r<=t.length;r++)i[0][r]=r;for(n=1;n<=e.length;n++)for(r=1;r<=t.length;r++)e.charAt(n-1)==t.charAt(r-1)?i[n][r]=i[n-1][r-1]:i[n][r]=Math.min(i[n-1][r-1]+1,Math.min(i[n][r-1]+1,i[n-1][r]+1));return i[e.length][t.length]}}]),t}(),_m=dd,Sm=bm,Am=Cm,xm=fd,Pm=Em,Dm=Tm,jm=Fm;t.Activator=_m,t.Alea=function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return function(t){var e=function(){for(var t=function(){var t=4022871197;return function(e){for(var n=e.toString(),r=0;r<n.length;r++){var i=.02519603282416938*(t+=n.charCodeAt(r));i-=t=i>>>0,t=(i*=t)>>>0,t+=4294967296*(i-=t)}return 2.3283064365386963e-10*(t>>>0)}}(),e=t(" "),n=t(" "),r=t(" "),i=0;i<arguments.length;i++)(e-=t(i<0||arguments.length<=i?void 0:arguments[i]))<0&&(e+=1),(n-=t(i<0||arguments.length<=i?void 0:arguments[i]))<0&&(n+=1),(r-=t(i<0||arguments.length<=i?void 0:arguments[i]))<0&&(r+=1);return[e,n,r]}(t),n=Zh(e,3),r=n[0],i=n[1],o=n[2],a=1,s=function(){var t=2091639*r+2.3283064365386963e-10*a;return r=i,i=o,o=t-(a=0|t)};return s.uint32=function(){return 4294967296*s()},s.fract53=function(){return s()+11102230246251565e-32*(2097152*s()|0)},s.algorithm="Alea",s.seed=t,s.version="0.9",s}(e.length?e:[rf()])},t.ColorPicker=Sm,t.Configurator=Am,t.DELETE=Uh,t.HSVToHex=fm,t.HSVToRGB=hm,t.Hammer=xm,t.Popup=Pm,t.RGBToHSV=um,t.RGBToHex=cm,t.VALIDATOR_PRINT_STYLE=Dm,t.Validator=jm,t.addClassName=function(t,e){var n=t.className.split(" "),r=e.split(" ");n=_h(n).call(n,Jg(r).call(r,(function(t){return!zg(n).call(n,t)}))),t.className=n.join(" ")},t.addCssText=function(t,e){for(var n=lm(e),r=0,i=zy(n);r<i.length;r++){var o=Zh(i[r],2),a=o[0],s=o[1];t.style.setProperty(a,s)}},t.addEventListener=function(t,e,n,r){var i;t.addEventListener?(void 0===r&&(r=!1),"mousewheel"===e&&zg(i=navigator.userAgent).call(i,"Firefox")&&(e="DOMMouseScroll"),t.addEventListener(e,n,r)):t.attachEvent("on"+e,n)},t.binarySearchCustom=function(t,e,n,r){for(var i=0,o=0,a=t.length-1;o<=a&&i<1e4;){var s=Math.floor((o+a)/2),c=t[s],u=e(void 0===r?c[n]:c[n][r]);if(0==u)return s;-1==u?o=s+1:a=s-1,i++}return-1},t.binarySearchValue=function(t,e,n,r,i){var o,a,s,c,u=0,l=0,h=t.length-1;for(i=null!=i?i:function(t,e){return t==e?0:t<e?-1:1};l<=h&&u<1e4;){if(c=Math.floor(.5*(h+l)),o=t[Math.max(0,c-1)][n],a=t[c][n],s=t[Math.min(t.length-1,c+1)][n],0==i(a,e))return c;if(i(o,e)<0&&i(a,e)>0)return"before"==r?Math.max(0,c-1):c;if(i(a,e)<0&&i(s,e)>0)return"before"==r?c:Math.min(t.length-1,c+1);i(a,e)<0?l=c+1:h=c-1,u++}return-1},t.bridgeObject=ym,t.copyAndExtendArray=rm,t.copyArray=im,t.deepExtend=nm,t.deepObjectAssign=$h,t.easingFunctions={linear:function(t){return t},easeInQuad:function(t){return t*t},easeOutQuad:function(t){return t*(2-t)},easeInOutQuad:function(t){return t<.5?2*t*t:(4-2*t)*t-1},easeInCubic:function(t){return t*t*t},easeOutCubic:function(t){return--t*t*t+1},easeInOutCubic:function(t){return t<.5?4*t*t*t:(t-1)*(2*t-2)*(2*t-2)+1},easeInQuart:function(t){return t*t*t*t},easeOutQuart:function(t){return 1- --t*t*t*t},easeInOutQuart:function(t){return t<.5?8*t*t*t*t:1-8*--t*t*t*t},easeInQuint:function(t){return t*t*t*t*t},easeOutQuint:function(t){return 1+--t*t*t*t*t},easeInOutQuint:function(t){return t<.5?16*t*t*t*t*t:1+16*--t*t*t*t*t}},t.equalArray=function(t,e){if(t.length!==e.length)return!1;for(var n=0,r=t.length;n<r;n++)if(t[n]!=e[n])return!1;return!0},t.extend=em,t.fillIfDefined=function t(e,n){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];for(var i in e)if(void 0!==n[i])if(null===n[i]||"object"!==Gl(n[i]))tm(e,n,i,r);else{var o=e[i],a=n[i];Zy(o)&&Zy(a)&&t(o,a,r)}},t.forEach=function(t,e){if(Nh(t))for(var n=t.length,r=0;r<n;r++)e(t[r],r,t);else for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e(t[i],i,t)},t.getAbsoluteLeft=function(t){return t.getBoundingClientRect().left},t.getAbsoluteRight=function(t){return t.getBoundingClientRect().right},t.getAbsoluteTop=function(t){return t.getBoundingClientRect().top},t.getScrollBarWidth=function(){var t=document.createElement("p");t.style.width="100%",t.style.height="200px";var e=document.createElement("div");e.style.position="absolute",e.style.top="0px",e.style.left="0px",e.style.visibility="hidden",e.style.width="200px",e.style.height="150px",e.style.overflow="hidden",e.appendChild(t),document.body.appendChild(e);var n=t.offsetWidth;e.style.overflow="scroll";var r=t.offsetWidth;return n==r&&(r=e.clientWidth),document.body.removeChild(e),n-r},t.getTarget=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window.event,e=null;return t&&(t.target?e=t.target:t.srcElement&&(e=t.srcElement)),e instanceof Element&&(null==e.nodeType||3!=e.nodeType||(e=e.parentNode)instanceof Element)?e:null},t.getType=function(t){var e=Gl(t);return"object"===e?null===t?"null":t instanceof Boolean?"Boolean":t instanceof Number?"Number":t instanceof String?"String":Nh(t)?"Array":t instanceof Date?"Date":"Object":"number"===e?"Number":"boolean"===e?"Boolean":"string"===e?"String":void 0===e?"undefined":e},t.hasParent=function(t,e){for(var n=t;n;){if(n===e)return!0;if(!n.parentNode)return!1;n=n.parentNode}return!1},t.hexToHSV=pm,t.hexToRGB=sm,t.insertSort=function(t,e){for(var n=0;n<t.length;n++){var r=t[n],i=void 0;for(i=n;i>0&&e(r,t[i-1])<0;i--)t[i]=t[i-1];t[i]=r}return t},t.isDate=function(t){if(t instanceof Date)return!0;if(Ky(t)){if(Xy.exec(t))return!0;if(!isNaN(Date.parse(t)))return!0}return!1},t.isNumber=Jy,t.isObject=Zy,t.isString=Ky,t.isValidHex=vm,t.isValidRGB=dm,t.isValidRGBA=gm,t.mergeOptions=function(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=function(t){return null!=t},o=function(t){return null!==t&&"object"===Gl(t)};if(!o(t))throw new Error("Parameter mergeTarget must be an object");if(!o(e))throw new Error("Parameter options must be an object");if(!i(n))throw new Error("Parameter option must have a value");if(!o(r))throw new Error("Parameter globalOptions must be an object");var a=e[n],s=o(r)&&!function(t){for(var e in t)if(Object.prototype.hasOwnProperty.call(t,e))return!1;return!0}(r)?r[n]:void 0,c=s?s.enabled:void 0;if(void 0!==a){if("boolean"==typeof a)return o(t[n])||(t[n]={}),void(t[n].enabled=a);if(null===a&&!o(t[n])){if(!i(s))return;t[n]=Vy(s)}if(o(a)){var u=!0;void 0!==a.enabled?u=a.enabled:void 0!==c&&(u=s.enabled),function(t,e,n){o(t[n])||(t[n]={});var r=e[n],i=t[n];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(i[a]=r[a])}(t,e,n),t[n].enabled=u}}},t.option=am,t.overrideOpacity=function(t,e){if(zg(t).call(t,"rgba"))return t;if(zg(t).call(t,"rgb")){var n=t.substr(Ly(t).call(t,"(")+1).replace(")","").split(",");return"rgba("+n[0]+","+n[1]+","+n[2]+","+e+")"}var r=sm(t);return null==r?t:"rgba("+r.r+","+r.g+","+r.b+","+e+")"},t.parseColor=function(t,e){if(Ky(t)){var n=t;if(dm(n)){var r,i=Wh(r=n.substr(4).substr(0,n.length-5).split(",")).call(r,(function(t){return Ay(t)}));n=cm(i[0],i[1],i[2])}if(!0===vm(n)){var o=pm(n),a={h:o.h,s:.8*o.s,v:Math.min(1,1.02*o.v)},s={h:o.h,s:Math.min(1,1.25*o.s),v:.8*o.v},c=fm(s.h,s.s,s.v),u=fm(a.h,a.s,a.v);return{background:n,border:c,highlight:{background:u,border:c},hover:{background:u,border:c}}}return{background:n,border:n,highlight:{background:n,border:n},hover:{background:n,border:n}}}return e?{background:t.background||e.background,border:t.border||e.border,highlight:Ky(t.highlight)?{border:t.highlight,background:t.highlight}:{background:t.highlight&&t.highlight.background||e.highlight.background,border:t.highlight&&t.highlight.border||e.highlight.border},hover:Ky(t.hover)?{border:t.hover,background:t.hover}:{border:t.hover&&t.hover.border||e.hover.border,background:t.hover&&t.hover.background||e.hover.background}}:{background:t.background||void 0,border:t.border||void 0,highlight:Ky(t.highlight)?{border:t.highlight,background:t.highlight}:{background:t.highlight&&t.highlight.background||void 0,border:t.highlight&&t.highlight.border||void 0},hover:Ky(t.hover)?{border:t.hover,background:t.hover}:{border:t.hover&&t.hover.border||void 0,background:t.hover&&t.hover.background||void 0}}},t.preventDefault=function(t){t||(t=window.event),t&&(t.preventDefault?t.preventDefault():t.returnValue=!1)},t.pureDeepObjectAssign=function(t){for(var e,n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return $h.apply(void 0,_h(e=[{},t]).call(e,r))},t.recursiveDOMDelete=function t(e){if(e)for(;!0===e.hasChildNodes();){var n=e.firstChild;n&&(t(n),e.removeChild(n))}},t.removeClassName=function(t,e){var n=t.className.split(" "),r=e.split(" ");n=Jg(n).call(n,(function(t){return!zg(r).call(r,t)})),t.className=n.join(" ")},t.removeCssText=function(t,e){for(var n=lm(e),r=0,i=Yh(n);r<i.length;r++){var o=i[r];t.style.removeProperty(o)}},t.removeEventListener=function(t,e,n,r){var i;t.removeEventListener?(void 0===r&&(r=!1),"mousewheel"===e&&zg(i=navigator.userAgent).call(i,"Firefox")&&(e="DOMMouseScroll"),t.removeEventListener(e,n,r)):t.detachEvent("on"+e,n)},t.selectiveBridgeObject=function(t,e){if(null!==e&&"object"===Gl(e)){for(var n=Vy(e),r=0;r<t.length;r++)Object.prototype.hasOwnProperty.call(e,t[r])&&"object"==Gl(e[t[r]])&&(n[t[r]]=ym(e[t[r]]));return n}return null},t.selectiveDeepExtend=function(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(Nh(n))throw new TypeError("Arrays are not supported by deepExtend");for(var i=0;i<t.length;i++){var o=t[i];if(Object.prototype.hasOwnProperty.call(n,o))if(n[o]&&n[o].constructor===Object)void 0===e[o]&&(e[o]={}),e[o].constructor===Object?nm(e[o],n[o],!1,r):tm(e,n,o,r);else{if(Nh(n[o]))throw new TypeError("Arrays are not supported by deepExtend");tm(e,n,o,r)}}return e},t.selectiveExtend=function(t,e){if(!Nh(t))throw new Error("Array with property names expected as first argument");for(var n=arguments.length,r=new Array(n>2?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i];for(var o=0,a=r;o<a.length;o++)for(var s=a[o],c=0;c<t.length;c++){var u=t[c];s&&Object.prototype.hasOwnProperty.call(s,u)&&(e[u]=s[u])}return e},t.selectiveNotDeepExtend=function(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(Nh(n))throw new TypeError("Arrays are not supported by deepExtend");for(var i in n)if(Object.prototype.hasOwnProperty.call(n,i)&&!zg(t).call(t,i))if(n[i]&&n[i].constructor===Object)void 0===e[i]&&(e[i]={}),e[i].constructor===Object?nm(e[i],n[i]):tm(e,n,i,r);else if(Nh(n[i])){e[i]=[];for(var o=0;o<n[i].length;o++)e[i].push(n[i][o])}else tm(e,n,i,r);return e},t.throttle=function(t){var e=!1;return function(){e||(e=!0,requestAnimationFrame((function(){e=!1,t()})))}},t.toArray=om,t.topMost=function(t,e){var n;Nh(e)||(e=[e]);var r,i=qy(t);try{for(i.s();!(r=i.n()).done;){var o=r.value;if(o){n=o[e[0]];for(var a=1;a<e.length;a++)n&&(n=n[e[a]]);if(void 0!==n)break}}}catch(t){i.e(t)}finally{i.f()}return n},t.updateProperty=function(t,e,n){return t[e]!==n&&(t[e]=n,!0)}}));
|
|
34
34
|
//# sourceMappingURL=vis-util.min.js.map
|