oda-framework
Version:
26 lines • 201 kB
JavaScript
/**
* vis-graph3d
* https://visjs.github.io/vis-graph3d/
*
* Create interactive, animated 3d graphs. Surfaces, lines, dots and block styling out of the box.
*
* @version 0.0.0-no-version
* @date 2021-05-13T13:17:17.358Z
*
* @copyright (c) 2011-2017 Almende B.V, http://almende.com
* @copyright (c) 2017-2019 visjs contributors, https://github.com/visjs
*
* @license
* vis.js is dual licensed under both
*
* 1. The Apache 2.0 License
* http://www.apache.org/licenses/LICENSE-2.0
*
* and
*
* 2. The MIT License
* http://opensource.org/licenses/MIT
*
* vis.js may be distributed under either license.
*/
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e((t="undefined"!=typeof globalThis?globalThis:t||self).vis=t.vis||{})}(this,(function(t){"use strict";var e=Math.ceil,n=Math.floor,r=function(t){return isNaN(t=+t)?0:(t>0?n:e)(t)},i=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t},o=function(t){return function(e,n){var o,a,s=String(i(e)),l=r(n),u=s.length;return l<0||l>=u?t?"":void 0:(o=s.charCodeAt(l))<55296||o>56319||l+1===u||(a=s.charCodeAt(l+1))<56320||a>57343?t?s.charAt(l):o:t?s.slice(l,l+2):a-56320+(o-55296<<10)+65536}},a={codeAt:o(!1),charAt:o(!0)},s="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function l(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function u(t,e){return t(e={exports:{}},e.exports),e.exports}function c(t){return t&&t.default||t}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 s&&s)||function(){return this}()||Function("return this")(),d=function(t){try{return!!t()}catch(t){return!0}},p=!d((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),v=function(t){return"object"==typeof t?null!==t:"function"==typeof t},y=f.document,m=v(y)&&v(y.createElement),g=function(t){return m?y.createElement(t):{}},b=!p&&!d((function(){return 7!=Object.defineProperty(g("div"),"a",{get:function(){return 7}}).a})),_=function(t){if(!v(t))throw TypeError(String(t)+" is not an object");return t},x=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,k={f:p?w:function(t,e,n){if(_(t),e=x(e,!0),_(n),b)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}},C=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},E=p?function(t,e,n){return k.f(t,e,C(1,n))}:function(t,e,n){return t[e]=n,t},S="__core-js_shared__",T=f[S]||function(t,e){try{E(f,t,e)}catch(n){f[t]=e}return e}(S,{}),A=Function.toString;"function"!=typeof T.inspectSource&&(T.inspectSource=function(t){return A.call(t)});var O,P,D,L=T.inspectSource,M=f.WeakMap,R="function"==typeof M&&/native code/.test(L(M)),F=function(t){return Object(i(t))},I={}.hasOwnProperty,j=function(t,e){return I.call(F(t),e)},z=u((function(t){(t.exports=function(t,e){return T[t]||(T[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.11.1",mode:"pure",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),B=0,N=Math.random(),W=function(t){return"Symbol("+String(void 0===t?"":t)+")_"+(++B+N).toString(36)},Y=z("keys"),G=function(t){return Y[t]||(Y[t]=W(t))},V={},X="Object already initialized",U=f.WeakMap;if(R){var H=T.state||(T.state=new U),q=H.get,Z=H.has,Q=H.set;O=function(t,e){if(Z.call(H,t))throw new TypeError(X);return e.facade=t,Q.call(H,t,e),e},P=function(t){return q.call(H,t)||{}},D=function(t){return Z.call(H,t)}}else{var $=G("state");V[$]=!0,O=function(t,e){if(j(t,$))throw new TypeError(X);return e.facade=t,E(t,$,e),e},P=function(t){return j(t,$)?t[$]:{}},D=function(t){return j(t,$)}}var K,J,tt={set:O,get:P,has:D,enforce:function(t){return D(t)?P(t):O(t,{})},getterFor:function(t){return function(e){var n;if(!v(e)||(n=P(e)).type!==t)throw TypeError("Incompatible receiver, "+t+" required");return n}}},et={}.propertyIsEnumerable,nt=Object.getOwnPropertyDescriptor,rt={f:nt&&!et.call({1:2},1)?function(t){var e=nt(this,t);return!!e&&e.enumerable}:et},it={}.toString,ot=function(t){return it.call(t).slice(8,-1)},at="".split,st=d((function(){return!Object("z").propertyIsEnumerable(0)}))?function(t){return"String"==ot(t)?at.call(t,""):Object(t)}:Object,lt=function(t){return st(i(t))},ut=Object.getOwnPropertyDescriptor,ct={f:p?ut:function(t,e){if(t=lt(t),e=x(e,!0),b)try{return ut(t,e)}catch(t){}if(j(t,e))return C(!rt.f.call(t,e),t[e])}},ht=/#|\.prototype\./,ft=function(t,e){var n=pt[dt(t)];return n==yt||n!=vt&&("function"==typeof e?d(e):!!e)},dt=ft.normalize=function(t){return String(t).replace(ht,".").toLowerCase()},pt=ft.data={},vt=ft.NATIVE="N",yt=ft.POLYFILL="P",mt=ft,gt={},bt=function(t){if("function"!=typeof t)throw TypeError(String(t)+" is not a function");return t},_t=function(t,e,n){if(bt(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)}},xt=ct.f,wt=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},kt=function(t,e){var n,r,i,o,a,s,l,u,c=t.target,h=t.global,d=t.stat,p=t.proto,v=h?f:d?f[c]:(f[c]||{}).prototype,y=h?gt:gt[c]||(gt[c]={}),m=y.prototype;for(i in e)n=!mt(h?i:c+(d?".":"#")+i,t.forced)&&v&&j(v,i),a=y[i],n&&(s=t.noTargetGet?(u=xt(v,i))&&u.value:v[i]),o=n&&s?s:e[i],n&&typeof a==typeof o||(l=t.bind&&n?_t(o,f):t.wrap&&n?wt(o):p&&"function"==typeof o?_t(Function.call,o):o,(t.sham||o&&o.sham||a&&a.sham)&&E(l,"sham",!0),y[i]=l,p&&(j(gt,r=c+"Prototype")||E(gt,r,{}),gt[r][i]=o,t.real&&m&&!m[i]&&E(m,i,o)))},Ct=!d((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype})),Et=G("IE_PROTO"),St=Object.prototype,Tt=Ct?Object.getPrototypeOf:function(t){return t=F(t),j(t,Et)?t[Et]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?St:null},At="process"==ot(f.process),Ot=function(t){return"function"==typeof t?t:void 0},Pt=function(t,e){return arguments.length<2?Ot(gt[t])||Ot(f[t]):gt[t]&>[t][e]||f[t]&&f[t][e]},Dt=Pt("navigator","userAgent")||"",Lt=f.process,Mt=Lt&&Lt.versions,Rt=Mt&&Mt.v8;Rt?J=(K=Rt.split("."))[0]+K[1]:Dt&&(!(K=Dt.match(/Edge\/(\d+)/))||K[1]>=74)&&(K=Dt.match(/Chrome\/(\d+)/))&&(J=K[1]);var Ft,It,jt,zt=J&&+J,Bt=!!Object.getOwnPropertySymbols&&!d((function(){return!Symbol.sham&&(At?38===zt:zt>37&&zt<41)})),Nt=Bt&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,Wt=z("wks"),Yt=f.Symbol,Gt=Nt?Yt:Yt&&Yt.withoutSetter||W,Vt=function(t){return j(Wt,t)&&(Bt||"string"==typeof Wt[t])||(Bt&&j(Yt,t)?Wt[t]=Yt[t]:Wt[t]=Gt("Symbol."+t)),Wt[t]},Xt=Vt("iterator"),Ut=!1;[].keys&&("next"in(jt=[].keys())?(It=Tt(Tt(jt)))!==Object.prototype&&(Ft=It):Ut=!0);var Ht=null==Ft||d((function(){var t={};return Ft[Xt].call(t)!==t}));Ht&&(Ft={}),Ht&&!j(Ft,Xt)&&E(Ft,Xt,(function(){return this}));var qt,Zt={IteratorPrototype:Ft,BUGGY_SAFARI_ITERATORS:Ut},Qt=Math.min,$t=function(t){return t>0?Qt(r(t),9007199254740991):0},Kt=Math.max,Jt=Math.min,te=function(t,e){var n=r(t);return n<0?Kt(n+e,0):Jt(n,e)},ee=function(t){return function(e,n,r){var i,o=lt(e),a=$t(o.length),s=te(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}},ne={includes:ee(!0),indexOf:ee(!1)},re=ne.indexOf,ie=function(t,e){var n,r=lt(t),i=0,o=[];for(n in r)!j(V,n)&&j(r,n)&&o.push(n);for(;e.length>i;)j(r,n=e[i++])&&(~re(o,n)||o.push(n));return o},oe=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],ae=Object.keys||function(t){return ie(t,oe)},se=p?Object.defineProperties:function(t,e){_(t);for(var n,r=ae(e),i=r.length,o=0;i>o;)k.f(t,n=r[o++],e[n]);return t},le=Pt("document","documentElement"),ue=G("IE_PROTO"),ce=function(){},he=function(t){return"<script>"+t+"</"+"script>"},fe=function(){try{qt=document.domain&&new ActiveXObject("htmlfile")}catch(t){}var t,e;fe=qt?function(t){t.write(he("")),t.close();var e=t.parentWindow.Object;return t=null,e}(qt):((e=g("iframe")).style.display="none",le.appendChild(e),e.src=String("javascript:"),(t=e.contentWindow.document).open(),t.write(he("document.F=Object")),t.close(),t.F);for(var n=oe.length;n--;)delete fe.prototype[oe[n]];return fe()};V[ue]=!0;var de=Object.create||function(t,e){var n;return null!==t?(ce.prototype=_(t),n=new ce,ce.prototype=null,n[ue]=t):n=fe(),void 0===e?n:se(n,e)},pe={};pe[Vt("toStringTag")]="z";var ve="[object z]"===String(pe),ye=Vt("toStringTag"),me="Arguments"==ot(function(){return arguments}()),ge=ve?ot: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=Object(t),ye))?n:me?ot(e):"Object"==(r=ot(e))&&"function"==typeof e.callee?"Arguments":r},be=ve?{}.toString:function(){return"[object "+ge(this)+"]"},_e=k.f,xe=Vt("toStringTag"),we=function(t,e,n,r){if(t){var i=n?t:t.prototype;j(i,xe)||_e(i,xe,{configurable:!0,value:e}),r&&!ve&&E(i,"toString",be)}},ke={},Ce=Zt.IteratorPrototype,Ee=function(){return this},Se=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){}return function(n,r){return _(n),function(t){if(!v(t)&&null!==t)throw TypeError("Can't set "+String(t)+" as a prototype")}(r),e?t.call(n,r):n.__proto__=r,n}}():void 0),Te=function(t,e,n,r){r&&r.enumerable?t[e]=n:E(t,e,n)},Ae=Zt.IteratorPrototype,Oe=Zt.BUGGY_SAFARI_ITERATORS,Pe=Vt("iterator"),De="keys",Le="values",Me="entries",Re=function(){return this},Fe=function(t,e,n,r,i,o,a){!function(t,e,n){var r=e+" Iterator";t.prototype=de(Ce,{next:C(1,n)}),we(t,r,!1,!0),ke[r]=Ee}(n,e,r);var s,l,u,c=function(t){if(t===i&&v)return v;if(!Oe&&t in d)return d[t];switch(t){case De:case Le:case Me:return function(){return new n(this,t)}}return function(){return new n(this)}},h=e+" Iterator",f=!1,d=t.prototype,p=d[Pe]||d["@@iterator"]||i&&d[i],v=!Oe&&p||c(i),y="Array"==e&&d.entries||p;if(y&&(s=Tt(y.call(new t)),Ae!==Object.prototype&&s.next&&(we(s,h,!0,!0),ke[h]=Re)),i==Le&&p&&p.name!==Le&&(f=!0,v=function(){return p.call(this)}),a&&d[Pe]!==v&&E(d,Pe,v),ke[e]=v,i)if(l={values:c(Le),keys:o?v:c(De),entries:c(Me)},a)for(u in l)(Oe||f||!(u in d))&&Te(d,u,l[u]);else kt({target:e,proto:!0,forced:Oe||f},l);return l},Ie=a.charAt,je="String Iterator",ze=tt.set,Be=tt.getterFor(je);Fe(String,"String",(function(t){ze(this,{type:je,string:String(t),index:0})}),(function(){var t,e=Be(this),n=e.string,r=e.index;return r>=n.length?{value:void 0,done:!0}:(t=Ie(n,r),e.index+=t.length,{value:t,done:!1})}));var Ne=function(t){var e=t.return;if(void 0!==e)return _(e.call(t)).value},We=function(t,e,n,r){try{return r?e(_(n)[0],n[1]):e(n)}catch(e){throw Ne(t),e}},Ye=Vt("iterator"),Ge=Array.prototype,Ve=function(t){return void 0!==t&&(ke.Array===t||Ge[Ye]===t)},Xe=function(t,e,n){var r=x(e);r in t?k.f(t,r,C(0,n)):t[r]=n},Ue=Vt("iterator"),He=function(t){if(null!=t)return t[Ue]||t["@@iterator"]||ke[ge(t)]},qe=Vt("iterator"),Ze=!1;try{var Qe=0,$e={next:function(){return{done:!!Qe++}},return:function(){Ze=!0}};$e[qe]=function(){return this},Array.from($e,(function(){throw 2}))}catch(t){}var Ke=!function(t,e){if(!e&&!Ze)return!1;var n=!1;try{var r={};r[qe]=function(){return{next:function(){return{done:n=!0}}}},t(r)}catch(t){}return n}((function(t){Array.from(t)}));kt({target:"Array",stat:!0,forced:Ke},{from:function(t){var e,n,r,i,o,a,s=F(t),l="function"==typeof this?this:Array,u=arguments.length,c=u>1?arguments[1]:void 0,h=void 0!==c,f=He(s),d=0;if(h&&(c=_t(c,u>2?arguments[2]:void 0,2)),null==f||l==Array&&Ve(f))for(n=new l(e=$t(s.length));e>d;d++)a=h?c(s[d],d):s[d],Xe(n,d,a);else for(o=(i=f.call(s)).next,n=new l;!(r=o.call(i)).done;d++)a=h?We(i,c,[r.value,d],!0):r.value,Xe(n,d,a);return n.length=d,n}});var Je=gt.Array.from,tn=Je,en="Array Iterator",nn=tt.set,rn=tt.getterFor(en);Fe(Array,"Array",(function(t,e){nn(this,{type:en,target:lt(t),index:0,kind:e})}),(function(){var t=rn(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"),ke.Arguments=ke.Array;var on=Vt("toStringTag");for(var an 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 sn=f[an],ln=sn&&sn.prototype;ln&&ge(ln)!==on&&E(ln,on,an),ke[an]=ke.Array}var un=He,cn=Array.isArray||function(t){return"Array"==ot(t)},hn=oe.concat("length","prototype"),fn={f:Object.getOwnPropertyNames||function(t){return ie(t,hn)}},dn=fn.f,pn={}.toString,vn="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],yn={f:function(t){return vn&&"[object Window]"==pn.call(t)?function(t){try{return dn(t)}catch(t){return vn.slice()}}(t):dn(lt(t))}},mn={f:Object.getOwnPropertySymbols},gn={f:Vt},bn=k.f,_n=function(t){var e=gt.Symbol||(gt.Symbol={});j(e,t)||bn(e,t,{value:gn.f(t)})},xn=Vt("species"),wn=function(t,e){var n;return cn(t)&&("function"!=typeof(n=t.constructor)||n!==Array&&!cn(n.prototype)?v(n)&&null===(n=n[xn])&&(n=void 0):n=void 0),new(void 0===n?Array:n)(0===e?0:e)},kn=[].push,Cn=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(l,u,c,h){for(var f,d,p=F(l),v=st(p),y=_t(u,c,3),m=$t(v.length),g=0,b=h||wn,_=e?b(l,m):n||a?b(l,0):void 0;m>g;g++)if((s||g in v)&&(d=y(f=v[g],g,p),t))if(e)_[g]=d;else if(d)switch(t){case 3:return!0;case 5:return f;case 6:return g;case 2:kn.call(_,f)}else switch(t){case 4:return!1;case 7:kn.call(_,f)}return o?-1:r||i?i:_}},En={forEach:Cn(0),map:Cn(1),filter:Cn(2),some:Cn(3),every:Cn(4),find:Cn(5),findIndex:Cn(6),filterOut:Cn(7)},Sn=En.forEach,Tn=G("hidden"),An="Symbol",On=Vt("toPrimitive"),Pn=tt.set,Dn=tt.getterFor(An),Ln=Object.prototype,Mn=f.Symbol,Rn=Pt("JSON","stringify"),Fn=ct.f,In=k.f,jn=yn.f,zn=rt.f,Bn=z("symbols"),Nn=z("op-symbols"),Wn=z("string-to-symbol-registry"),Yn=z("symbol-to-string-registry"),Gn=z("wks"),Vn=f.QObject,Xn=!Vn||!Vn.prototype||!Vn.prototype.findChild,Un=p&&d((function(){return 7!=de(In({},"a",{get:function(){return In(this,"a",{value:7}).a}})).a}))?function(t,e,n){var r=Fn(Ln,e);r&&delete Ln[e],In(t,e,n),r&&t!==Ln&&In(Ln,e,r)}:In,Hn=function(t,e){var n=Bn[t]=de(Mn.prototype);return Pn(n,{type:An,tag:t,description:e}),p||(n.description=e),n},qn=Nt?function(t){return"symbol"==typeof t}:function(t){return Object(t)instanceof Mn},Zn=function(t,e,n){t===Ln&&Zn(Nn,e,n),_(t);var r=x(e,!0);return _(n),j(Bn,r)?(n.enumerable?(j(t,Tn)&&t[Tn][r]&&(t[Tn][r]=!1),n=de(n,{enumerable:C(0,!1)})):(j(t,Tn)||In(t,Tn,C(1,{})),t[Tn][r]=!0),Un(t,r,n)):In(t,r,n)},Qn=function(t,e){_(t);var n=lt(e),r=ae(n).concat(tr(n));return Sn(r,(function(e){p&&!$n.call(n,e)||Zn(t,e,n[e])})),t},$n=function(t){var e=x(t,!0),n=zn.call(this,e);return!(this===Ln&&j(Bn,e)&&!j(Nn,e))&&(!(n||!j(this,e)||!j(Bn,e)||j(this,Tn)&&this[Tn][e])||n)},Kn=function(t,e){var n=lt(t),r=x(e,!0);if(n!==Ln||!j(Bn,r)||j(Nn,r)){var i=Fn(n,r);return!i||!j(Bn,r)||j(n,Tn)&&n[Tn][r]||(i.enumerable=!0),i}},Jn=function(t){var e=jn(lt(t)),n=[];return Sn(e,(function(t){j(Bn,t)||j(V,t)||n.push(t)})),n},tr=function(t){var e=t===Ln,n=jn(e?Nn:lt(t)),r=[];return Sn(n,(function(t){!j(Bn,t)||e&&!j(Ln,t)||r.push(Bn[t])})),r};if(Bt||(Te((Mn=function(){if(this instanceof Mn)throw TypeError("Symbol is not a constructor");var t=arguments.length&&void 0!==arguments[0]?String(arguments[0]):void 0,e=W(t),n=function(t){this===Ln&&n.call(Nn,t),j(this,Tn)&&j(this[Tn],e)&&(this[Tn][e]=!1),Un(this,e,C(1,t))};return p&&Xn&&Un(Ln,e,{configurable:!0,set:n}),Hn(e,t)}).prototype,"toString",(function(){return Dn(this).tag})),Te(Mn,"withoutSetter",(function(t){return Hn(W(t),t)})),rt.f=$n,k.f=Zn,ct.f=Kn,fn.f=yn.f=Jn,mn.f=tr,gn.f=function(t){return Hn(Vt(t),t)},p&&In(Mn.prototype,"description",{configurable:!0,get:function(){return Dn(this).description}})),kt({global:!0,wrap:!0,forced:!Bt,sham:!Bt},{Symbol:Mn}),Sn(ae(Gn),(function(t){_n(t)})),kt({target:An,stat:!0,forced:!Bt},{for:function(t){var e=String(t);if(j(Wn,e))return Wn[e];var n=Mn(e);return Wn[e]=n,Yn[n]=e,n},keyFor:function(t){if(!qn(t))throw TypeError(t+" is not a symbol");if(j(Yn,t))return Yn[t]},useSetter:function(){Xn=!0},useSimple:function(){Xn=!1}}),kt({target:"Object",stat:!0,forced:!Bt,sham:!p},{create:function(t,e){return void 0===e?de(t):Qn(de(t),e)},defineProperty:Zn,defineProperties:Qn,getOwnPropertyDescriptor:Kn}),kt({target:"Object",stat:!0,forced:!Bt},{getOwnPropertyNames:Jn,getOwnPropertySymbols:tr}),kt({target:"Object",stat:!0,forced:d((function(){mn.f(1)}))},{getOwnPropertySymbols:function(t){return mn.f(F(t))}}),Rn){var er=!Bt||d((function(){var t=Mn();return"[null]"!=Rn([t])||"{}"!=Rn({a:t})||"{}"!=Rn(Object(t))}));kt({target:"JSON",stat:!0,forced:er},{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)&&!qn(t))return cn(e)||(e=function(t,e){if("function"==typeof r&&(e=r.call(this,t,e)),!qn(e))return e}),i[1]=e,Rn.apply(null,i)}})}Mn.prototype[On]||E(Mn.prototype,On,Mn.prototype.valueOf),we(Mn,An),V[Tn]=!0;var nr=gt.Object.getOwnPropertySymbols,rr=ct.f,ir=d((function(){rr(1)}));kt({target:"Object",stat:!0,forced:!p||ir,sham:!p},{getOwnPropertyDescriptor:function(t,e){return rr(lt(t),e)}});var or=u((function(t){var e=gt.Object,n=t.exports=function(t,n){return e.getOwnPropertyDescriptor(t,n)};e.getOwnPropertyDescriptor.sham&&(n.sham=!0)})),ar=Pt("Reflect","ownKeys")||function(t){var e=fn.f(_(t)),n=mn.f;return n?e.concat(n(t)):e};kt({target:"Object",stat:!0,sham:!p},{getOwnPropertyDescriptors:function(t){for(var e,n,r=lt(t),i=ct.f,o=ar(r),a={},s=0;o.length>s;)void 0!==(n=i(r,e=o[s++]))&&Xe(a,e,n);return a}});var sr=gt.Object.getOwnPropertyDescriptors;kt({target:"Object",stat:!0,forced:!p,sham:!p},{defineProperties:se});var lr=u((function(t){var e=gt.Object,n=t.exports=function(t,n){return e.defineProperties(t,n)};e.defineProperties.sham&&(n.sham=!0)}));kt({target:"Object",stat:!0,forced:!p,sham:!p},{defineProperty:k.f});var ur=u((function(t){var e=gt.Object,n=t.exports=function(t,n,r){return e.defineProperty(t,n,r)};e.defineProperty.sham&&(n.sham=!0)})),cr=ur,hr=l(u((function(t){t.exports=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")},t.exports.default=t.exports,t.exports.__esModule=!0}))),fr=ur,dr=l(u((function(t){function e(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),fr(t,r.key,r)}}t.exports=function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t},t.exports.default=t.exports,t.exports.__esModule=!0}))),pr=l(u((function(t){t.exports=function(t,e,n){return e in t?fr(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t},t.exports.default=t.exports,t.exports.__esModule=!0})));kt({target:"Array",stat:!0},{isArray:cn});var vr=gt.Array.isArray,yr=vr,mr=u((function(t){t.exports=function(t){if(yr(t))return t},t.exports.default=t.exports,t.exports.__esModule=!0}));l(mr);var gr=Vt("species"),br=function(t){return zt>=51||!d((function(){var e=[];return(e.constructor={})[gr]=function(){return{foo:1}},1!==e[t](Boolean).foo}))},_r=Vt("isConcatSpreadable"),xr=9007199254740991,wr="Maximum allowed index exceeded",kr=zt>=51||!d((function(){var t=[];return t[_r]=!1,t.concat()[0]!==t})),Cr=br("concat"),Er=function(t){if(!v(t))return!1;var e=t[_r];return void 0!==e?!!e:cn(t)};kt({target:"Array",proto:!0,forced:!kr||!Cr},{concat:function(t){var e,n,r,i,o,a=F(this),s=wn(a,0),l=0;for(e=-1,r=arguments.length;e<r;e++)if(Er(o=-1===e?a:arguments[e])){if(l+(i=$t(o.length))>xr)throw TypeError(wr);for(n=0;n<i;n++,l++)n in o&&Xe(s,l,o[n])}else{if(l>=xr)throw TypeError(wr);Xe(s,l++,o)}return s.length=l,s}});var Sr=Object.freeze({__proto__:null});_n("asyncIterator");var Tr=Object.freeze({__proto__:null});_n("hasInstance"),_n("isConcatSpreadable"),_n("iterator"),_n("match"),_n("matchAll"),_n("replace"),_n("search"),_n("species"),_n("split"),_n("toPrimitive"),_n("toStringTag"),_n("unscopables"),we(f.JSON,"JSON",!0);var Ar=Object.freeze({__proto__:null}),Or=Object.freeze({__proto__:null});c(Sr),c(Tr),c(Ar),c(Or);var Pr=gt.Symbol;_n("asyncDispose"),_n("dispose"),_n("observable"),_n("patternMatch"),_n("replaceAll");var Dr=Pr,Lr=u((function(t){t.exports=function(t,e){var n=t&&(void 0!==Dr&&un(t)||t["@@iterator"]);if(null!=n){var r,i,o=[],a=!0,s=!1;try{for(n=n.call(t);!(a=(r=n.next()).done)&&(o.push(r.value),!e||o.length!==e);a=!0);}catch(t){s=!0,i=t}finally{try{a||null==n.return||n.return()}finally{if(s)throw i}}return o}},t.exports.default=t.exports,t.exports.__esModule=!0}));l(Lr);var Mr=br("slice"),Rr=Vt("species"),Fr=[].slice,Ir=Math.max;kt({target:"Array",proto:!0,forced:!Mr},{slice:function(t,e){var n,r,i,o=lt(this),a=$t(o.length),s=te(t,a),l=te(void 0===e?a:e,a);if(cn(o)&&("function"!=typeof(n=o.constructor)||n!==Array&&!cn(n.prototype)?v(n)&&null===(n=n[Rr])&&(n=void 0):n=void 0,n===Array||void 0===n))return Fr.call(o,s,l);for(r=new(void 0===n?Array:n)(Ir(l-s,0)),i=0;s<l;s++,i++)s in o&&Xe(r,i,o[s]);return r.length=i,r}});var jr=function(t){return gt[t+"Prototype"]},zr=jr("Array").slice,Br=Array.prototype,Nr=function(t){var e=t.slice;return t===Br||t instanceof Array&&e===Br.slice?zr:e},Wr=Nr,Yr=Je,Gr=u((function(t){t.exports=function(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r},t.exports.default=t.exports,t.exports.__esModule=!0}));l(Gr);var Vr=u((function(t){t.exports=function(t,e){var n;if(t){if("string"==typeof t)return Gr(t,e);var r=Wr(n=Object.prototype.toString.call(t)).call(n,8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Yr(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Gr(t,e):void 0}},t.exports.default=t.exports,t.exports.__esModule=!0}));l(Vr);var Xr=u((function(t){t.exports=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},t.exports.default=t.exports,t.exports.__esModule=!0}));l(Xr);var Ur=l(u((function(t){t.exports=function(t,e){return mr(t)||Lr(t,e)||Vr(t,e)||Xr()},t.exports.default=t.exports,t.exports.__esModule=!0}))),Hr=gn.f("iterator"),qr=Hr,Zr=u((function(t){function e(n){return"function"==typeof Dr&&"symbol"==typeof qr?(t.exports=e=function(t){return typeof t},t.exports.default=t.exports,t.exports.__esModule=!0):(t.exports=e=function(t){return t&&"function"==typeof Dr&&t.constructor===Dr&&t!==Dr.prototype?"symbol":typeof t},t.exports.default=t.exports,t.exports.__esModule=!0),e(n)}t.exports=e,t.exports.default=t.exports,t.exports.__esModule=!0})),Qr=l(Zr),$r=u((function(t){t.exports=function(t){if(yr(t))return Gr(t)},t.exports.default=t.exports,t.exports.__esModule=!0}));l($r);var Kr=u((function(t){t.exports=function(t){if(void 0!==Dr&&null!=un(t)||null!=t["@@iterator"])return Yr(t)},t.exports.default=t.exports,t.exports.__esModule=!0}));l(Kr);var Jr=u((function(t){t.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},t.exports.default=t.exports,t.exports.__esModule=!0}));l(Jr);var ti=l(u((function(t){t.exports=function(t){return $r(t)||Kr(t)||Vr(t)||Jr()},t.exports.default=t.exports,t.exports.__esModule=!0}))),ei=Pr,ni=jr("Array").concat,ri=Array.prototype,ii=function(t){var e=t.concat;return t===ri||t instanceof Array&&e===ri.concat?ni:e},oi=Nr;kt({target:"Reflect",stat:!0},{ownKeys:ar});var ai=gt.Reflect.ownKeys,si=vr,li=En.map,ui=br("map");kt({target:"Array",proto:!0,forced:!ui},{map:function(t){return li(this,t,arguments.length>1?arguments[1]:void 0)}});var ci=jr("Array").map,hi=Array.prototype,fi=function(t){var e=t.map;return t===hi||t instanceof Array&&e===hi.map?ci:e},di=d((function(){ae(1)}));kt({target:"Object",stat:!0,forced:di},{keys:function(t){return ae(F(t))}});var pi=gt.Object.keys;kt({target:"Date",stat:!0},{now:function(){return(new Date).getTime()}});var vi=gt.Date.now,yi=[].slice,mi={},gi=function(t,e,n){if(!(e in mi)){for(var r=[],i=0;i<e;i++)r[i]="a["+i+"]";mi[e]=Function("C,a","return new C("+r.join(",")+")")}return mi[e](t,n)},bi=Function.bind||function(t){var e=bt(this),n=yi.call(arguments,1),r=function(){var i=n.concat(yi.call(arguments));return this instanceof r?gi(e,i.length,i):e.apply(t,i)};return v(e.prototype)&&(r.prototype=e.prototype),r};kt({target:"Function",proto:!0},{bind:bi});var _i=jr("Function").bind,xi=Function.prototype,wi=function(t){var e=t.bind;return t===xi||t instanceof Function&&e===xi.bind?_i:e},ki=function(t,e){var n=[][t];return!!n&&d((function(){n.call(null,e||function(){throw 1},1)}))},Ci=En.forEach,Ei=ki("forEach")?[].forEach:function(t){return Ci(this,t,arguments.length>1?arguments[1]:void 0)};kt({target:"Array",proto:!0,forced:[].forEach!=Ei},{forEach:Ei});var Si=jr("Array").forEach,Ti=Array.prototype,Ai={DOMTokenList:!0,NodeList:!0},Oi=function(t){var e=t.forEach;return t===Ti||t instanceof Array&&e===Ti.forEach||Ai.hasOwnProperty(ge(t))?Si:e},Pi=[].reverse,Di=[1,2];kt({target:"Array",proto:!0,forced:String(Di)===String(Di.reverse())},{reverse:function(){return cn(this)&&(this.length=this.length),Pi.call(this)}});var Li=jr("Array").reverse,Mi=Array.prototype,Ri=function(t){var e=t.reverse;return t===Mi||t instanceof Array&&e===Mi.reverse?Li:e},Fi=br("splice"),Ii=Math.max,ji=Math.min,zi=9007199254740991,Bi="Maximum allowed length exceeded";kt({target:"Array",proto:!0,forced:!Fi},{splice:function(t,e){var n,i,o,a,s,l,u=F(this),c=$t(u.length),h=te(t,c),f=arguments.length;if(0===f?n=i=0:1===f?(n=0,i=c-h):(n=f-2,i=ji(Ii(r(e),0),c-h)),c+n-i>zi)throw TypeError(Bi);for(o=wn(u,i),a=0;a<i;a++)(s=h+a)in u&&Xe(o,a,u[s]);if(o.length=i,n<i){for(a=h;a<c-i;a++)l=a+n,(s=a+i)in u?u[l]=u[s]:delete u[l];for(a=c;a>c-i+n;a--)delete u[a-1]}else if(n>i)for(a=c-i;a>h;a--)l=a+n-1,(s=a+i-1)in u?u[l]=u[s]:delete u[l];for(a=0;a<n;a++)u[a+h]=arguments[a+2];return u.length=c-i+n,o}});var Ni=jr("Array").splice,Wi=Array.prototype,Yi=function(t){var e=t.splice;return t===Wi||t instanceof Array&&e===Wi.splice?Ni:e},Gi=Object.assign,Vi=Object.defineProperty,Xi=!Gi||d((function(){if(p&&1!==Gi({b:1},Gi(Vi({},"a",{enumerable:!0,get:function(){Vi(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!=Gi({},t)[n]||ae(Gi({},e)).join("")!=r}))?function(t,e){for(var n=F(t),r=arguments.length,i=1,o=mn.f,a=rt.f;r>i;)for(var s,l=st(arguments[i++]),u=o?ae(l).concat(o(l)):ae(l),c=u.length,h=0;c>h;)s=u[h++],p&&!a.call(l,s)||(n[s]=l[s]);return n}:Gi;kt({target:"Object",stat:!0,forced:Object.assign!==Xi},{assign:Xi});var Ui=gt.Object.assign,Hi=ne.includes;kt({target:"Array",proto:!0},{includes:function(t){return Hi(this,t,arguments.length>1?arguments[1]:void 0)}});var qi=jr("Array").includes,Zi=Vt("match"),Qi=function(t){if(function(t){var e;return v(t)&&(void 0!==(e=t[Zi])?!!e:"RegExp"==ot(t))}(t))throw TypeError("The method doesn't accept regular expressions");return t},$i=Vt("match");kt({target:"String",proto:!0,forced:!function(t){var e=/./;try{"/./"[t](e)}catch(n){try{return e[$i]=!1,"/./"[t](e)}catch(t){}}return!1}("includes")},{includes:function(t){return!!~String(i(this)).indexOf(Qi(t),arguments.length>1?arguments[1]:void 0)}});var Ki=jr("String").includes,Ji=Array.prototype,to=String.prototype,eo=function(t){var e=t.includes;return t===Ji||t instanceof Array&&e===Ji.includes?qi:"string"==typeof t||t===to||t instanceof String&&e===to.includes?Ki:e},no=d((function(){Tt(1)}));kt({target:"Object",stat:!0,forced:no,sham:!Ct},{getPrototypeOf:function(t){return Tt(F(t))}});var ro=gt.Object.getPrototypeOf,io=ro,oo=En.filter,ao=br("filter");kt({target:"Array",proto:!0,forced:!ao},{filter:function(t){return oo(this,t,arguments.length>1?arguments[1]:void 0)}});var so=jr("Array").filter,lo=Array.prototype,uo=function(t){var e=t.filter;return t===lo||t instanceof Array&&e===lo.filter?so:e},co=rt.f,ho=function(t){return function(e){for(var n,r=lt(e),i=ae(r),o=i.length,a=0,s=[];o>a;)n=i[a++],p&&!co.call(r,n)||s.push(t?[n,r[n]]:r[n]);return s}},fo={entries:ho(!0),values:ho(!1)}.values;kt({target:"Object",stat:!0},{values:function(t){return fo(t)}});var po=gt.Object.values,vo="\t\n\v\f\r \u2028\u2029\ufeff",yo="["+vo+"]",mo=RegExp("^"+yo+yo+"*"),go=RegExp(yo+yo+"*$"),bo=function(t){return function(e){var n=String(i(e));return 1&t&&(n=n.replace(mo,"")),2&t&&(n=n.replace(go,"")),n}},_o={start:bo(1),end:bo(2),trim:bo(3)},xo=_o.trim,wo=f.parseInt,ko=/^[+-]?0[Xx]/,Co=8!==wo(vo+"08")||22!==wo(vo+"0x16")?function(t,e){var n=xo(String(t));return wo(n,e>>>0||(ko.test(n)?16:10))}:wo;kt({global:!0,forced:parseInt!=Co},{parseInt:Co});var Eo=gt.parseInt,So=ne.indexOf,To=[].indexOf,Ao=!!To&&1/[1].indexOf(1,-0)<0,Oo=ki("indexOf");kt({target:"Array",proto:!0,forced:Ao||!Oo},{indexOf:function(t){return Ao?To.apply(this,arguments)||0:So(this,t,arguments.length>1?arguments[1]:void 0)}});var Po,Do=jr("Array").indexOf,Lo=Array.prototype,Mo=function(t){var e=t.indexOf;return t===Lo||t instanceof Array&&e===Lo.indexOf?Do:e},Ro=_o.trim;kt({target:"String",proto:!0,forced:(Po="trim",d((function(){return!!vo[Po]()||"
"!="
"[Po]()||vo[Po].name!==Po})))},{trim:function(){return Ro(this)}});var Fo=jr("String").trim,Io=String.prototype,jo=function(t){var e=t.trim;return"string"==typeof t||t===Io||t instanceof String&&e===Io.trim?Fo:e};kt({target:"Object",stat:!0,sham:!p},{create:de});var zo=gt.Object,Bo=function(t,e){return zo.create(t,e)},No=Bo,Wo=Pt("JSON","stringify"),Yo=/[\uD800-\uDFFF]/g,Go=/^[\uD800-\uDBFF]$/,Vo=/^[\uDC00-\uDFFF]$/,Xo=function(t,e,n){var r=n.charAt(e-1),i=n.charAt(e+1);return Go.test(t)&&!Vo.test(i)||Vo.test(t)&&!Go.test(r)?"\\u"+t.charCodeAt(0).toString(16):t},Uo=d((function(){return'"\\udf06\\ud834"'!==Wo("\udf06\ud834")||'"\\udead"'!==Wo("\udead")}));Wo&&kt({target:"JSON",stat:!0,forced:Uo},{stringify:function(t,e,n){var r=Wo.apply(null,arguments);return"string"==typeof r?r.replace(Yo,Xo):r}}),gt.JSON||(gt.JSON={stringify:JSON.stringify});var Ho=function(t,e,n){return gt.JSON.stringify.apply(null,arguments)},qo=[].slice,Zo=/MSIE .\./.test(Dt),Qo=function(t){return function(e,n){var r=arguments.length>2,i=r?qo.call(arguments,2):void 0;return t(r?function(){("function"==typeof e?e:Function(e)).apply(this,i)}:e,n)}};kt({global:!0,bind:!0,forced:Zo},{setTimeout:Qo(f.setTimeout),setInterval:Qo(f.setInterval)});var $o=gt.setTimeout;kt({target:"Array",proto:!0},{fill:function(t){for(var e=F(this),n=$t(e.length),r=arguments.length,i=te(r>1?arguments[1]:void 0,n),o=r>2?arguments[2]:void 0,a=void 0===o?n:te(o,n);a>i;)e[i++]=t;return e}});var Ko=jr("Array").fill,Jo=Array.prototype,ta=function(t){var e=t.fill;return t===Jo||t instanceof Array&&e===Jo.fill?Ko:e},ea=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}}));function na(){return(na=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 ra(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}function ia(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}var oa,aa="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,sa=["","webkit","Moz","MS","ms","o"],la="undefined"==typeof document?{style:{}}:document.createElement("div"),ua=Math.round,ca=Math.abs,ha=Date.now;function fa(t,e){for(var n,r,i=e[0].toUpperCase()+e.slice(1),o=0;o<sa.length;){if((r=(n=sa[o])?n+i:e)in t)return r;o++}}oa="undefined"==typeof window?{}:window;var da=fa(la.style,"touchAction"),pa=void 0!==da;var va="compute",ya="auto",ma="manipulation",ga="none",ba="pan-x",_a="pan-y",xa=function(){if(!pa)return!1;var t={},e=oa.CSS&&oa.CSS.supports;return["auto","manipulation","pan-y","pan-x","pan-x pan-y","none"].forEach((function(n){return t[n]=!e||oa.CSS.supports("touch-action",n)})),t}(),wa="ontouchstart"in oa,ka=void 0!==fa(oa,"PointerEvent"),Ca=wa&&/mobile|tablet|ip(ad|hone|od)|android/i.test(navigator.userAgent),Ea="touch",Sa="mouse",Ta=16,Aa=24,Oa=["x","y"],Pa=["clientX","clientY"];function Da(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 La(t,e){return"function"==typeof t?t.apply(e&&e[0]||void 0,e):t}function Ma(t,e){return t.indexOf(e)>-1}var Ra=function(){function t(t,e){this.manager=t,this.set(e)}var e=t.prototype;return e.set=function(t){t===va&&(t=this.compute()),pa&&this.manager.element.style&&xa[t]&&(this.manager.element.style[da]=t),this.actions=t.toLowerCase().trim()},e.update=function(){this.set(this.manager.options.touchAction)},e.compute=function(){var t=[];return Da(this.manager.recognizers,(function(e){La(e.options.enable,[e])&&(t=t.concat(e.getTouchAction()))})),function(t){if(Ma(t,ga))return ga;var e=Ma(t,ba),n=Ma(t,_a);return e&&n?ga:e||n?e?ba:_a:Ma(t,ma)?ma:ya}(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=Ma(r,ga)&&!xa.none,o=Ma(r,_a)&&!xa["pan-y"],a=Ma(r,ba)&&!xa["pan-x"];if(i){var s=1===t.pointers.length,l=t.distance<2,u=t.deltaTime<250;if(s&&l&&u)return}if(!a||!o)return i||o&&6&n||a&&n&Aa?this.preventSrc(e):void 0}},e.preventSrc=function(t){this.manager.session.prevented=!0,t.preventDefault()},t}();function Fa(t,e){for(;t;){if(t===e)return!0;t=t.parentNode}return!1}function Ia(t){var e=t.length;if(1===e)return{x:ua(t[0].clientX),y:ua(t[0].clientY)};for(var n=0,r=0,i=0;i<e;)n+=t[i].clientX,r+=t[i].clientY,i++;return{x:ua(n/e),y:ua(r/e)}}function ja(t){for(var e=[],n=0;n<t.pointers.length;)e[n]={clientX:ua(t.pointers[n].clientX),clientY:ua(t.pointers[n].clientY)},n++;return{timeStamp:ha(),pointers:e,center:Ia(e),deltaX:t.deltaX,deltaY:t.deltaY}}function za(t,e,n){n||(n=Oa);var r=e[n[0]]-t[n[0]],i=e[n[1]]-t[n[1]];return Math.sqrt(r*r+i*i)}function Ba(t,e,n){n||(n=Oa);var r=e[n[0]]-t[n[0]],i=e[n[1]]-t[n[1]];return 180*Math.atan2(i,r)/Math.PI}function Na(t,e){return t===e?1:ca(t)>=ca(e)?t<0?2:4:e<0?8:Ta}function Wa(t,e,n){return{x:e/t||0,y:n/t||0}}function Ya(t,e){var n=t.session,r=e.pointers,i=r.length;n.firstInput||(n.firstInput=ja(e)),i>1&&!n.firstMultiple?n.firstMultiple=ja(e):1===i&&(n.firstMultiple=!1);var o=n.firstInput,a=n.firstMultiple,s=a?a.center:o.center,l=e.center=Ia(r);e.timeStamp=ha(),e.deltaTime=e.timeStamp-o.timeStamp,e.angle=Ba(s,l),e.distance=za(s,l),function(t,e){var n=e.center,r=t.offsetDelta||{},i=t.prevDelta||{},o=t.prevInput||{};1!==e.eventType&&4!==o.eventType||(i=t.prevDelta={x:o.deltaX||0,y:o.deltaY||0},r=t.offsetDelta={x:n.x,y:n.y}),e.deltaX=i.x+(n.x-r.x),e.deltaY=i.y+(n.y-r.y)}(n,e),e.offsetDirection=Na(e.deltaX,e.deltaY);var u,c,h=Wa(e.deltaTime,e.deltaX,e.deltaY);e.overallVelocityX=h.x,e.overallVelocityY=h.y,e.overallVelocity=ca(h.x)>ca(h.y)?h.x:h.y,e.scale=a?(u=a.pointers,za((c=r)[0],c[1],Pa)/za(u[0],u[1],Pa)):1,e.rotation=a?function(t,e){return Ba(e[1],e[0],Pa)+Ba(t[1],t[0],Pa)}(a.pointers,r):0,e.maxPointers=n.prevInput?e.pointers.length>n.prevInput.maxPointers?e.pointers.length:n.prevInput.maxPointers:e.pointers.length,function(t,e){var n,r,i,o,a=t.lastInterval||e,s=e.timeStamp-a.timeStamp;if(8!==e.eventType&&(s>25||void 0===a.velocity)){var l=e.deltaX-a.deltaX,u=e.deltaY-a.deltaY,c=Wa(s,l,u);r=c.x,i=c.y,n=ca(c.x)>ca(c.y)?c.x:c.y,o=Na(l,u),t.lastInterval=e}else n=a.velocity,r=a.velocityX,i=a.velocityY,o=a.direction;e.velocity=n,e.velocityX=r,e.velocityY=i,e.direction=o}(n,e);var f,d=t.element,p=e.srcEvent;Fa(f=p.composedPath?p.composedPath()[0]:p.path?p.path[0]:p.target,d)&&(d=f),e.target=d}function Ga(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,Ya(t,n),t.emit("hammer.input",n),t.recognize(n),t.session.prevInput=n}function Va(t){return t.trim().split(/\s+/g)}function Xa(t,e,n){Da(Va(e),(function(e){t.addEventListener(e,n,!1)}))}function Ua(t,e,n){Da(Va(e),(function(e){t.removeEventListener(e,n,!1)}))}function Ha(t){var e=t.ownerDocument||t;return e.defaultView||e.parentWindow||window}var qa=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){La(t.options.enable,[t])&&n.handler(e)},this.init()}var e=t.prototype;return e.handler=function(){},e.init=function(){this.evEl&&Xa(this.element,this.evEl,this.domHandler),this.evTarget&&Xa(this.target,this.evTarget,this.domHandler),this.evWin&&Xa(Ha(this.element),this.evWin,this.domHandler)},e.destroy=function(){this.evEl&&Ua(this.element,this.evEl,this.domHandler),this.evTarget&&Ua(this.target,this.evTarget,this.domHandler),this.evWin&&Ua(Ha(this.element),this.evWin,this.domHandler)},t}();function Za(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 Qa={pointerdown:1,pointermove:2,pointerup:4,pointercancel:8,pointerout:8},$a={2:Ea,3:"pen",4:Sa,5:"kinect"},Ka="pointerdown",Ja="pointermove pointerup pointercancel";oa.MSPointerEvent&&!oa.PointerEvent&&(Ka="MSPointerDown",Ja="MSPointerMove MSPointerUp MSPointerCancel");var ts=function(t){function e(){var n,r=e.prototype;return r.evEl=Ka,r.evWin=Ja,(n=t.apply(this,arguments)||this).store=n.manager.session.pointerEvents=[],n}return ra(e,t),e.prototype.handler=function(t){var e=this.store,n=!1,r=t.type.toLowerCase().replace("ms",""),i=Qa[r],o=$a[t.pointerType]||t.pointerType,a=o===Ea,s=Za(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}(qa);function es(t){return Array.prototype.slice.call(t,0)}function ns(t,e,n){for(var r=[],i=[],o=0;o<t.length;){var a=e?t[o][e]:t[o];Za(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 rs={touchstart:1,touchmove:2,touchend:4,touchcancel:8},is="touchstart touchmove touchend touchcancel",os=function(t){function e(){var n;return e.prototype.evTarget=is,(n=t.apply(this,arguments)||this).targetIds={},n}return ra(e,t),e.prototype.handler=function(t){var e=rs[t.type],n=as.call(this,t,e);n&&this.callback(this.manager,e,{pointers:n[0],changedPointers:n[1],pointerType:Ea,srcEvent:t})},e}(qa);function as(t,e){var n,r,i=es(t.touches),o=this.targetIds;if(3&e&&1===i.length)return o[i[0].identifier]=!0,[i,i];var a=es(t.changedTouches),s=[],l=this.target;if(r=i.filter((function(t){return Fa(t.target,l)})),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?[ns(r.concat(s),"identifier",!0),s]:void 0}var ss={mousedown:1,mousemove:2,mouseup:4},ls="mousedown",us="mousemove mouseup",cs=function(t){function e(){var n,r=e.prototype;return r.evEl=ls,r.evWin=us,(n=t.apply(this,arguments)||this).pressed=!1,n}return ra(e,t),e.prototype.handler=function(t){var e=ss[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:Sa,srcEvent:t}))},e}(qa);function hs(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 fs(t,e){1&t?(this.primaryTouch=e.changedPointers[0].identifier,hs.call(this,e)):12&t&&hs.call(this,e)}function ds(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 ps=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===Ea,o=n.pointerType===Sa;if(!(o&&n.sourceCapabilities&&n.sourceCapabilities.firesTouchEvents)){if(i)fs.call(ia(ia(r)),e,n);else if(o&&ds.call(ia(ia(r)),n))return;r.callback(t,e,n)}},r.touch=new os(r.manager,r.handler),r.mouse=new cs(r.manager,r.handler),r.primaryTouch=null,r.lastTouches=[],r}return ra(e,t),e.prototype.destroy=function(){this.touch.destroy(),this.mouse.destroy()},e}(qa)}();function vs(t,e,n){return!!Array.isArray(t)&&(Da(t,n[e],n),!0)}var ys=32,ms=1;function gs(t,e){var n=e.manager;return n?n.get(t):t}function bs(t){return 16&t?"cancel":8&t?"end":4&t?"move":2&t?"start":""}var _s=function(){function t(t){void 0===t&&(t={}),this.options=na({enable:!0},t),this.id=ms++,this.manager=null,this.state=1,this.simultaneous={},this.requireFail=[]}var e=t.prototype;return e.set=function(t){return aa(this.options,t),this.manager&&this.manager.touchAction.update(),this},e.recognizeWith=function(t){if(vs(t,"recognizeWith",this))return this;var e=this.simultaneous;return e[(t=gs(t,this)).id]||(e[t.id]=t,t.recognizeWith(this)),this},e.dropRecognizeWith=function(t){return vs(t,"dropRecognizeWith",this)||(t=gs(t,this),delete this.simultaneous[t.id]),this},e.requireFailure=function(t){if(vs(t,"requireFailure",this))return this;var e=this.requireFail;return-1===Za(e,t=gs(t,this))&&(e.push(t),t.requireFailure(this)),this},e.dropRequireFailure=function(t){if(vs(t,"dropRequireFailure",this))return this;t=gs(t,this);var e=Za(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+bs(n)),r(e.options.event),t.additionalEvent&&r(t.additionalEvent),n>=8&&r(e.options.event+bs(n))},e.tryEmit=function(t){if(this.canEmit())return this.emit(t);this.state=ys},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=aa({},t);if(!La(this.options.enable,[this,e]))return this.reset(),void(this.state=ys);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}(),xs=function(t){function e(e){var n;return void 0===e&&(e={}),(n=t.call(this,na({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}ra(e,t);var n=e.prototype;return n.getTouchAction=function(){return[ma]},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||za(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 ys},n.failTimeout=function(){var t=this;return this._timer=setTimeout((function(){t.state=ys}),this.options.interval),ys},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}(_s),ws=function(t){function e(e){return void 0===e&&(e={}),t.call(this,na({pointers:1},e))||this}ra(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:ys},e}(_s);function ks(t){return t===Ta?"down":8===t?"up":2===t?"left":4===t?"right":""}var Cs=function(t){function e(e){var n;return void 0===e&&(e={}),(n=t.call(this,na({event:"pan",threshold:10,pointers:1,direction:30},e))||this).pX=null,n.pY=null,n}ra(e,t);var n=e.prototype;return n.getTouchAction=function(){var t=this.options.direction,e=[];return 6&t&&e.push(_a),t&Aa&&e.push(ba),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:Ta,n=a!==this.pY,r=Math.abs(t.deltaY))),t.direction=i,n&&r>e.threshold&&i&e.direction},n.attrTest=function(t){return ws.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=ks(e.direction);n&&(e.additionalEvent=this.options.event+n),t.prototype.emit.call(this,e)},e}(ws),Es=function(t){function e(e){return void 0===e&&(e={}),t.call(this,na({event:"swipe",threshold:10,velocity:.3,direction:30,pointers:1},e))||this}ra(e,t);var n=e.prototype;return n.getTouchAction=function(){return Cs.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&Aa&&(n=e.overallVelocityY),t.prototype.attrTest.call(this,e)&&r&e.offsetDirection&&e.distance>this.options.threshold&&e.maxPointers===this.options.pointers&&ca(n)>this.options.velocity&&4&e.eventType},n.emit=function(t){var e=ks(t.offsetDirection);e&&this.manager.emit(this.options.event+e,t),this.manager.emit(this.options.event,t)},e}(ws),Ss=function(t){function e(e){return void 0===e&&(e={}),t.call(this,na({event:"pinch",threshold:0,pointers:2},e))||this}ra(e,t);var n=e.prototype;return n.getTouchAction=function(){return[ga]},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}(ws),Ts=function(t){function e(e){return void 0===e&&(e={}),t.call(this,na({event:"rotate",threshold:0,pointers:2},e))||this}ra(e,t);var n=e.prototype;return n.getTouchAction=function(){return[ga]},n.attrTest=function(e){return t.prototype.attrTest.call(this,e)&&(Math.abs(e.rotation)>this.options.threshold||2&this.state)},e}(ws),As=function(t){function e(e){var n;return void 0===e&&(e={}),(n=t.call(this,na({event:"press",pointers:1,time:251,threshold:9},e))||this)._timer=null,n._input=null,n}ra(e,t);var n=e.prototype;return n.getTouchAction=function(){return[ya]},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 ys},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=ha(),this.manager.emit(this.options.event,this._input)))},e}(_s