UNPKG

vis-network

Version:

A dynamic, browser-based visualization library.

26 lines 407 kB
/** * vis-network * https://visjs.github.io/vis-network/ * * A dynamic, browser-based visualization library. * * @version 9.1.12 * @date 2025-06-10T17:35:44.677Z * * @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. */ var t="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function e(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var i=function(t){return t&&t.Math===Math&&t},o=i("object"==typeof globalThis&&globalThis)||i("object"==typeof window&&window)||i("object"==typeof self&&self)||i("object"==typeof t&&t)||function(){return this}()||t||Function("return this")(),s=function(t){try{return!!t()}catch(t){return!0}},n=!s((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")})),r=n,a=Function.prototype,h=a.apply,d=a.call,l="object"==typeof Reflect&&Reflect.apply||(r?d.bind(h):function(){return d.apply(h,arguments)}),c=n,u=Function.prototype,p=u.call,f=c&&u.bind.bind(p,p),g=c?f:function(t){return function(){return p.apply(t,arguments)}},m=g,y=m({}.toString),b=m("".slice),v=function(t){return b(y(t),8,-1)},w=v,_=g,x=function(t){if("Function"===w(t))return _(t)},E="object"==typeof document&&document.all,O={all:E,IS_HTMLDDA:void 0===E&&void 0!==E},C=O.all,k=O.IS_HTMLDDA?function(t){return"function"==typeof t||t===C}:function(t){return"function"==typeof t},S={},T=!s((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]})),D=n,M=Function.prototype.call,P=D?M.bind(M):function(){return M.apply(M,arguments)},I={},B={}.propertyIsEnumerable,N=Object.getOwnPropertyDescriptor,z=N&&!B.call({1:2},1);I.f=z?function(t){var e=N(this,t);return!!e&&e.enumerable}:B;var F,A,j=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},R=s,L=v,H=Object,W=g("".split),q=R((function(){return!H("z").propertyIsEnumerable(0)}))?function(t){return"String"===L(t)?W(t,""):H(t)}:H,V=function(t){return null==t},U=V,Y=TypeError,X=function(t){if(U(t))throw new Y("Can't call method on "+t);return t},G=q,K=X,Z=function(t){return G(K(t))},Q=k,$=O.all,J=O.IS_HTMLDDA?function(t){return"object"==typeof t?null!==t:Q(t)||t===$}:function(t){return"object"==typeof t?null!==t:Q(t)},tt={},et=tt,it=o,ot=k,st=function(t){return ot(t)?t:void 0},nt=function(t,e){return arguments.length<2?st(et[t])||st(it[t]):et[t]&&et[t][e]||it[t]&&it[t][e]},rt=g({}.isPrototypeOf),at="undefined"!=typeof navigator&&String(navigator.userAgent)||"",ht=o,dt=at,lt=ht.process,ct=ht.Deno,ut=lt&&lt.versions||ct&&ct.version,pt=ut&&ut.v8;pt&&(A=(F=pt.split("."))[0]>0&&F[0]<4?1:+(F[0]+F[1])),!A&&dt&&(!(F=dt.match(/Edge\/(\d+)/))||F[1]>=74)&&(F=dt.match(/Chrome\/(\d+)/))&&(A=+F[1]);var ft=A,gt=ft,mt=s,yt=o.String,bt=!!Object.getOwnPropertySymbols&&!mt((function(){var t=Symbol("symbol detection");return!yt(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&gt&&gt<41})),vt=bt&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,wt=nt,_t=k,xt=rt,Et=Object,Ot=vt?function(t){return"symbol"==typeof t}:function(t){var e=wt("Symbol");return _t(e)&&xt(e.prototype,Et(t))},Ct=String,kt=function(t){try{return Ct(t)}catch(t){return"Object"}},St=k,Tt=kt,Dt=TypeError,Mt=function(t){if(St(t))return t;throw new Dt(Tt(t)+" is not a function")},Pt=Mt,It=V,Bt=function(t,e){var i=t[e];return It(i)?void 0:Pt(i)},Nt=P,zt=k,Ft=J,At=TypeError,jt={exports:{}},Rt=o,Lt=Object.defineProperty,Ht=function(t,e){try{Lt(Rt,t,{value:e,configurable:!0,writable:!0})}catch(i){Rt[t]=e}return e},Wt="__core-js_shared__",qt=o[Wt]||Ht(Wt,{}),Vt=qt;(jt.exports=function(t,e){return Vt[t]||(Vt[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.33.0",mode:"pure",copyright:"© 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.33.0/LICENSE",source:"https://github.com/zloirock/core-js"});var Ut=jt.exports,Yt=X,Xt=Object,Gt=function(t){return Xt(Yt(t))},Kt=Gt,Zt=g({}.hasOwnProperty),Qt=Object.hasOwn||function(t,e){return Zt(Kt(t),e)},$t=g,Jt=0,te=Math.random(),ee=$t(1..toString),ie=function(t){return"Symbol("+(void 0===t?"":t)+")_"+ee(++Jt+te,36)},oe=Ut,se=Qt,ne=ie,re=bt,ae=vt,he=o.Symbol,de=oe("wks"),le=ae?he.for||he:he&&he.withoutSetter||ne,ce=function(t){return se(de,t)||(de[t]=re&&se(he,t)?he[t]:le("Symbol."+t)),de[t]},ue=P,pe=J,fe=Ot,ge=Bt,me=function(t,e){var i,o;if("string"===e&&zt(i=t.toString)&&!Ft(o=Nt(i,t)))return o;if(zt(i=t.valueOf)&&!Ft(o=Nt(i,t)))return o;if("string"!==e&&zt(i=t.toString)&&!Ft(o=Nt(i,t)))return o;throw new At("Can't convert object to primitive value")},ye=TypeError,be=ce("toPrimitive"),ve=function(t,e){if(!pe(t)||fe(t))return t;var i,o=ge(t,be);if(o){if(void 0===e&&(e="default"),i=ue(o,t,e),!pe(i)||fe(i))return i;throw new ye("Can't convert object to primitive value")}return void 0===e&&(e="number"),me(t,e)},we=Ot,_e=function(t){var e=ve(t,"string");return we(e)?e:e+""},xe=J,Ee=o.document,Oe=xe(Ee)&&xe(Ee.createElement),Ce=function(t){return Oe?Ee.createElement(t):{}},ke=Ce,Se=!T&&!s((function(){return 7!==Object.defineProperty(ke("div"),"a",{get:function(){return 7}}).a})),Te=T,De=P,Me=I,Pe=j,Ie=Z,Be=_e,Ne=Qt,ze=Se,Fe=Object.getOwnPropertyDescriptor;S.f=Te?Fe:function(t,e){if(t=Ie(t),e=Be(e),ze)try{return Fe(t,e)}catch(t){}if(Ne(t,e))return Pe(!De(Me.f,t,e),t[e])};var Ae=s,je=k,Re=/#|\.prototype\./,Le=function(t,e){var i=We[He(t)];return i===Ve||i!==qe&&(je(e)?Ae(e):!!e)},He=Le.normalize=function(t){return String(t).replace(Re,".").toLowerCase()},We=Le.data={},qe=Le.NATIVE="N",Ve=Le.POLYFILL="P",Ue=Le,Ye=Mt,Xe=n,Ge=x(x.bind),Ke=function(t,e){return Ye(t),void 0===e?t:Xe?Ge(t,e):function(){return t.apply(e,arguments)}},Ze={},Qe=T&&s((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),$e=J,Je=String,ti=TypeError,ei=function(t){if($e(t))return t;throw new ti(Je(t)+" is not an object")},ii=T,oi=Se,si=Qe,ni=ei,ri=_e,ai=TypeError,hi=Object.defineProperty,di=Object.getOwnPropertyDescriptor,li="enumerable",ci="configurable",ui="writable";Ze.f=ii?si?function(t,e,i){if(ni(t),e=ri(e),ni(i),"function"==typeof t&&"prototype"===e&&"value"in i&&ui in i&&!i[ui]){var o=di(t,e);o&&o[ui]&&(t[e]=i.value,i={configurable:ci in i?i[ci]:o[ci],enumerable:li in i?i[li]:o[li],writable:!1})}return hi(t,e,i)}:hi:function(t,e,i){if(ni(t),e=ri(e),ni(i),oi)try{return hi(t,e,i)}catch(t){}if("get"in i||"set"in i)throw new ai("Accessors not supported");return"value"in i&&(t[e]=i.value),t};var pi=Ze,fi=j,gi=T?function(t,e,i){return pi.f(t,e,fi(1,i))}:function(t,e,i){return t[e]=i,t},mi=o,yi=l,bi=x,vi=k,wi=S.f,_i=Ue,xi=tt,Ei=Ke,Oi=gi,Ci=Qt,ki=function(t){var e=function(i,o,s){if(this instanceof e){switch(arguments.length){case 0:return new t;case 1:return new t(i);case 2:return new t(i,o)}return new t(i,o,s)}return yi(t,this,arguments)};return e.prototype=t.prototype,e},Si=function(t,e){var i,o,s,n,r,a,h,d,l,c=t.target,u=t.global,p=t.stat,f=t.proto,g=u?mi:p?mi[c]:(mi[c]||{}).prototype,m=u?xi:xi[c]||Oi(xi,c,{})[c],y=m.prototype;for(n in e)o=!(i=_i(u?n:c+(p?".":"#")+n,t.forced))&&g&&Ci(g,n),a=m[n],o&&(h=t.dontCallGetSet?(l=wi(g,n))&&l.value:g[n]),r=o&&h?h:e[n],o&&typeof a==typeof r||(d=t.bind&&o?Ei(r,mi):t.wrap&&o?ki(r):f&&vi(r)?bi(r):r,(t.sham||r&&r.sham||a&&a.sham)&&Oi(d,"sham",!0),Oi(m,n,d),f&&(Ci(xi,s=c+"Prototype")||Oi(xi,s,{}),Oi(xi[s],n,r),t.real&&y&&(i||!y[n])&&Oi(y,n,r)))},Ti=Math.ceil,Di=Math.floor,Mi=Math.trunc||function(t){var e=+t;return(e>0?Di:Ti)(e)},Pi=function(t){var e=+t;return e!=e||0===e?0:Mi(e)},Ii=Pi,Bi=Math.max,Ni=Math.min,zi=function(t,e){var i=Ii(t);return i<0?Bi(i+e,0):Ni(i,e)},Fi=Pi,Ai=Math.min,ji=function(t){return t>0?Ai(Fi(t),9007199254740991):0},Ri=function(t){return ji(t.length)},Li=Z,Hi=zi,Wi=Ri,qi=function(t){return function(e,i,o){var s,n=Li(e),r=Wi(n),a=Hi(o,r);if(t&&i!=i){for(;r>a;)if((s=n[a++])!=s)return!0}else for(;r>a;a++)if((t||a in n)&&n[a]===i)return t||a||0;return!t&&-1}},Vi={includes:qi(!0),indexOf:qi(!1)},Ui={},Yi=Qt,Xi=Z,Gi=Vi.indexOf,Ki=Ui,Zi=g([].push),Qi=function(t,e){var i,o=Xi(t),s=0,n=[];for(i in o)!Yi(Ki,i)&&Yi(o,i)&&Zi(n,i);for(;e.length>s;)Yi(o,i=e[s++])&&(~Gi(n,i)||Zi(n,i));return n},$i=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Ji=Qi,to=$i,eo=Object.keys||function(t){return Ji(t,to)},io={};io.f=Object.getOwnPropertySymbols;var oo=T,so=g,no=P,ro=s,ao=eo,ho=io,lo=I,co=Gt,uo=q,po=Object.assign,fo=Object.defineProperty,go=so([].concat),mo=!po||ro((function(){if(oo&&1!==po({b:1},po(fo({},"a",{enumerable:!0,get:function(){fo(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var t={},e={},i=Symbol("assign detection"),o="abcdefghijklmnopqrst";return t[i]=7,o.split("").forEach((function(t){e[t]=t})),7!==po({},t)[i]||ao(po({},e)).join("")!==o}))?function(t,e){for(var i=co(t),o=arguments.length,s=1,n=ho.f,r=lo.f;o>s;)for(var a,h=uo(arguments[s++]),d=n?go(ao(h),n(h)):ao(h),l=d.length,c=0;l>c;)a=d[c++],oo&&!no(r,h,a)||(i[a]=h[a]);return i}:po,yo=mo;Si({target:"Object",stat:!0,arity:2,forced:Object.assign!==yo},{assign:yo});var bo=e(tt.Object.assign),vo=g([].slice),wo=g,_o=Mt,xo=J,Eo=Qt,Oo=vo,Co=n,ko=Function,So=wo([].concat),To=wo([].join),Do={},Mo=Co?ko.bind:function(t){var e=_o(this),i=e.prototype,o=Oo(arguments,1),s=function(){var i=So(o,Oo(arguments));return this instanceof s?function(t,e,i){if(!Eo(Do,e)){for(var o=[],s=0;s<e;s++)o[s]="a["+s+"]";Do[e]=ko("C,a","return new C("+To(o,",")+")")}return Do[e](t,i)}(e,i.length,i):e.apply(t,i)};return xo(i)&&(s.prototype=i),s},Po=Mo;Si({target:"Function",proto:!0,forced:Function.bind!==Po},{bind:Po});var Io=tt,Bo=function(t){return Io[t+"Prototype"]},No=Bo("Function").bind,zo=rt,Fo=No,Ao=Function.prototype,jo=function(t){var e=t.bind;return t===Ao||zo(Ao,t)&&e===Ao.bind?Fo:e},Ro=e(jo);function Lo(t,e,i,o){t.beginPath(),t.arc(e,i,o,0,2*Math.PI,!1),t.closePath()}function Ho(t,e,i,o,s,n){const r=Math.PI/180;o-2*n<0&&(n=o/2),s-2*n<0&&(n=s/2),t.beginPath(),t.moveTo(e+n,i),t.lineTo(e+o-n,i),t.arc(e+o-n,i+n,n,270*r,360*r,!1),t.lineTo(e+o,i+s-n),t.arc(e+o-n,i+s-n,n,0,90*r,!1),t.lineTo(e+n,i+s),t.arc(e+n,i+s-n,n,90*r,180*r,!1),t.lineTo(e,i+n),t.arc(e+n,i+n,n,180*r,270*r,!1),t.closePath()}function Wo(t,e,i,o,s){const n=.5522848,r=o/2*n,a=s/2*n,h=e+o,d=i+s,l=e+o/2,c=i+s/2;t.beginPath(),t.moveTo(e,c),t.bezierCurveTo(e,c-a,l-r,i,l,i),t.bezierCurveTo(l+r,i,h,c-a,h,c),t.bezierCurveTo(h,c+a,l+r,d,l,d),t.bezierCurveTo(l-r,d,e,c+a,e,c),t.closePath()}function qo(t,e,i,o,s){const n=s*(1/3),r=.5522848,a=o/2*r,h=n/2*r,d=e+o,l=i+n,c=e+o/2,u=i+n/2,p=i+(s-n/2),f=i+s;t.beginPath(),t.moveTo(d,u),t.bezierCurveTo(d,u+h,c+a,l,c,l),t.bezierCurveTo(c-a,l,e,u+h,e,u),t.bezierCurveTo(e,u-h,c-a,i,c,i),t.bezierCurveTo(c+a,i,d,u-h,d,u),t.lineTo(d,p),t.bezierCurveTo(d,p+h,c+a,f,c,f),t.bezierCurveTo(c-a,f,e,p+h,e,p),t.lineTo(e,u)}function Vo(t,e,i,o,s,n){t.beginPath(),t.moveTo(e,i);const r=n.length,a=o-e,h=s-i,d=h/a;let l=Math.sqrt(a*a+h*h),c=0,u=!0,p=0,f=+n[0];for(;l>=.1;)f=+n[c++%r],f>l&&(f=l),p=Math.sqrt(f*f/(1+d*d)),p=a<0?-p:p,e+=p,i+=d*p,!0===u?t.lineTo(e,i):t.moveTo(e,i),l-=f,u=!u}const Uo={circle:Lo,dashedLine:Vo,database:qo,diamond:function(t,e,i,o){t.beginPath(),t.lineTo(e,i+o),t.lineTo(e+o,i),t.lineTo(e,i-o),t.lineTo(e-o,i),t.closePath()},ellipse:Wo,ellipse_vis:Wo,hexagon:function(t,e,i,o){t.beginPath();const s=2*Math.PI/6;t.moveTo(e+o,i);for(let n=1;n<6;n++)t.lineTo(e+o*Math.cos(s*n),i+o*Math.sin(s*n));t.closePath()},roundRect:Ho,square:function(t,e,i,o){t.beginPath(),t.rect(e-o,i-o,2*o,2*o),t.closePath()},star:function(t,e,i,o){t.beginPath(),i+=.1*(o*=.82);for(let s=0;s<10;s++){const n=s%2==0?1.3*o:.5*o;t.lineTo(e+n*Math.sin(2*s*Math.PI/10),i-n*Math.cos(2*s*Math.PI/10))}t.closePath()},triangle:function(t,e,i,o){t.beginPath(),i+=.275*(o*=1.15);const s=2*o,n=s/2,r=Math.sqrt(3)/6*s,a=Math.sqrt(s*s-n*n);t.moveTo(e,i-(a-r)),t.lineTo(e+n,i+r),t.lineTo(e-n,i+r),t.lineTo(e,i-(a-r)),t.closePath()},triangleDown:function(t,e,i,o){t.beginPath(),i-=.275*(o*=1.15);const s=2*o,n=s/2,r=Math.sqrt(3)/6*s,a=Math.sqrt(s*s-n*n);t.moveTo(e,i+(a-r)),t.lineTo(e+n,i-r),t.lineTo(e-n,i-r),t.lineTo(e,i+(a-r)),t.closePath()}};var Yo={exports:{}};!function(t){function e(t){if(t)return function(t){for(var i in e.prototype)t[i]=e.prototype[i];return t}(t)}Yo.exports=e,e.prototype.on=e.prototype.addEventListener=function(t,e){return this._callbacks=this._callbacks||{},(this._callbacks["$"+t]=this._callbacks["$"+t]||[]).push(e),this},e.prototype.once=function(t,e){function i(){this.off(t,i),e.apply(this,arguments)}return i.fn=e,this.on(t,i),this},e.prototype.off=e.prototype.removeListener=e.prototype.removeAllListeners=e.prototype.removeEventListener=function(t,e){if(this._callbacks=this._callbacks||{},0==arguments.length)return this._callbacks={},this;var i,o=this._callbacks["$"+t];if(!o)return this;if(1==arguments.length)return delete this._callbacks["$"+t],this;for(var s=0;s<o.length;s++)if((i=o[s])===e||i.fn===e){o.splice(s,1);break}return 0===o.length&&delete this._callbacks["$"+t],this},e.prototype.emit=function(t){this._callbacks=this._callbacks||{};for(var e=new Array(arguments.length-1),i=this._callbacks["$"+t],o=1;o<arguments.length;o++)e[o-1]=arguments[o];if(i){o=0;for(var s=(i=i.slice(0)).length;o<s;++o)i[o].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}}();var Xo=e(Yo.exports),Go=v,Ko=Array.isArray||function(t){return"Array"===Go(t)},Zo=TypeError,Qo=function(t){if(t>9007199254740991)throw Zo("Maximum allowed index exceeded");return t},$o=_e,Jo=Ze,ts=j,es=function(t,e,i){var o=$o(e);o in t?Jo.f(t,o,ts(0,i)):t[o]=i},is={};is[ce("toStringTag")]="z";var os="[object z]"===String(is),ss=os,ns=k,rs=v,as=ce("toStringTag"),hs=Object,ds="Arguments"===rs(function(){return arguments}()),ls=ss?rs:function(t){var e,i,o;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(i=function(t,e){try{return t[e]}catch(t){}}(e=hs(t),as))?i:ds?rs(e):"Object"===(o=rs(e))&&ns(e.callee)?"Arguments":o},cs=k,us=qt,ps=g(Function.toString);cs(us.inspectSource)||(us.inspectSource=function(t){return ps(t)});var fs=us.inspectSource,gs=g,ms=s,ys=k,bs=ls,vs=fs,ws=function(){},_s=[],xs=nt("Reflect","construct"),Es=/^\s*(?:class|function)\b/,Os=gs(Es.exec),Cs=!Es.test(ws),ks=function(t){if(!ys(t))return!1;try{return xs(ws,_s,t),!0}catch(t){return!1}},Ss=function(t){if(!ys(t))return!1;switch(bs(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return Cs||!!Os(Es,vs(t))}catch(t){return!0}};Ss.sham=!0;var Ts=!xs||ms((function(){var t;return ks(ks.call)||!ks(Object)||!ks((function(){t=!0}))||t}))?Ss:ks,Ds=Ko,Ms=Ts,Ps=J,Is=ce("species"),Bs=Array,Ns=function(t){var e;return Ds(t)&&(e=t.constructor,(Ms(e)&&(e===Bs||Ds(e.prototype))||Ps(e)&&null===(e=e[Is]))&&(e=void 0)),void 0===e?Bs:e},zs=function(t,e){return new(Ns(t))(0===e?0:e)},Fs=s,As=ft,js=ce("species"),Rs=function(t){return As>=51||!Fs((function(){var e=[];return(e.constructor={})[js]=function(){return{foo:1}},1!==e[t](Boolean).foo}))},Ls=Si,Hs=s,Ws=Ko,qs=J,Vs=Gt,Us=Ri,Ys=Qo,Xs=es,Gs=zs,Ks=Rs,Zs=ft,Qs=ce("isConcatSpreadable"),$s=Zs>=51||!Hs((function(){var t=[];return t[Qs]=!1,t.concat()[0]!==t})),Js=function(t){if(!qs(t))return!1;var e=t[Qs];return void 0!==e?!!e:Ws(t)};Ls({target:"Array",proto:!0,arity:1,forced:!$s||!Ks("concat")},{concat:function(t){var e,i,o,s,n,r=Vs(this),a=Gs(r,0),h=0;for(e=-1,o=arguments.length;e<o;e++)if(Js(n=-1===e?r:arguments[e]))for(s=Us(n),Ys(h+s),i=0;i<s;i++,h++)i in n&&Xs(a,h,n[i]);else Ys(h+1),Xs(a,h++,n);return a.length=h,a}});var tn=ls,en=String,on=function(t){if("Symbol"===tn(t))throw new TypeError("Cannot convert a Symbol value to a string");return en(t)},sn={},nn=T,rn=Qe,an=Ze,hn=ei,dn=Z,ln=eo;sn.f=nn&&!rn?Object.defineProperties:function(t,e){hn(t);for(var i,o=dn(e),s=ln(e),n=s.length,r=0;n>r;)an.f(t,i=s[r++],o[i]);return t};var cn,un=nt("document","documentElement"),pn=ie,fn=Ut("keys"),gn=function(t){return fn[t]||(fn[t]=pn(t))},mn=ei,yn=sn,bn=$i,vn=Ui,wn=un,_n=Ce,xn="prototype",En="script",On=gn("IE_PROTO"),Cn=function(){},kn=function(t){return"<"+En+">"+t+"</"+En+">"},Sn=function(t){t.write(kn("")),t.close();var e=t.parentWindow.Object;return t=null,e},Tn=function(){try{cn=new ActiveXObject("htmlfile")}catch(t){}var t,e,i;Tn="undefined"!=typeof document?document.domain&&cn?Sn(cn):(e=_n("iframe"),i="java"+En+":",e.style.display="none",wn.appendChild(e),e.src=String(i),(t=e.contentWindow.document).open(),t.write(kn("document.F=Object")),t.close(),t.F):Sn(cn);for(var o=bn.length;o--;)delete Tn[xn][bn[o]];return Tn()};vn[On]=!0;var Dn=Object.create||function(t,e){var i;return null!==t?(Cn[xn]=mn(t),i=new Cn,Cn[xn]=null,i[On]=t):i=Tn(),void 0===e?i:yn.f(i,e)},Mn={},Pn=Qi,In=$i.concat("length","prototype");Mn.f=Object.getOwnPropertyNames||function(t){return Pn(t,In)};var Bn={},Nn=zi,zn=Ri,Fn=es,An=Array,jn=Math.max,Rn=function(t,e,i){for(var o=zn(t),s=Nn(e,o),n=Nn(void 0===i?o:i,o),r=An(jn(n-s,0)),a=0;s<n;s++,a++)Fn(r,a,t[s]);return r.length=a,r},Ln=v,Hn=Z,Wn=Mn.f,qn=Rn,Vn="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];Bn.f=function(t){return Vn&&"Window"===Ln(t)?function(t){try{return Wn(t)}catch(t){return qn(Vn)}}(t):Wn(Hn(t))};var Un=gi,Yn=function(t,e,i,o){return o&&o.enumerable?t[e]=i:Un(t,e,i),t},Xn=Ze,Gn=function(t,e,i){return Xn.f(t,e,i)},Kn={},Zn=ce;Kn.f=Zn;var Qn,$n,Jn,tr=tt,er=Qt,ir=Kn,or=Ze.f,sr=function(t){var e=tr.Symbol||(tr.Symbol={});er(e,t)||or(e,t,{value:ir.f(t)})},nr=P,rr=nt,ar=ce,hr=Yn,dr=function(){var t=rr("Symbol"),e=t&&t.prototype,i=e&&e.valueOf,o=ar("toPrimitive");e&&!e[o]&&hr(e,o,(function(t){return nr(i,this)}),{arity:1})},lr=ls,cr=os?{}.toString:function(){return"[object "+lr(this)+"]"},ur=os,pr=Ze.f,fr=gi,gr=Qt,mr=cr,yr=ce("toStringTag"),br=function(t,e,i,o){if(t){var s=i?t:t.prototype;gr(s,yr)||pr(s,yr,{configurable:!0,value:e}),o&&!ur&&fr(s,"toString",mr)}},vr=k,wr=o.WeakMap,_r=vr(wr)&&/native code/.test(String(wr)),xr=_r,Er=o,Or=J,Cr=gi,kr=Qt,Sr=qt,Tr=gn,Dr=Ui,Mr="Object already initialized",Pr=Er.TypeError,Ir=Er.WeakMap;if(xr||Sr.state){var Br=Sr.state||(Sr.state=new Ir);Br.get=Br.get,Br.has=Br.has,Br.set=Br.set,Qn=function(t,e){if(Br.has(t))throw new Pr(Mr);return e.facade=t,Br.set(t,e),e},$n=function(t){return Br.get(t)||{}},Jn=function(t){return Br.has(t)}}else{var Nr=Tr("state");Dr[Nr]=!0,Qn=function(t,e){if(kr(t,Nr))throw new Pr(Mr);return e.facade=t,Cr(t,Nr,e),e},$n=function(t){return kr(t,Nr)?t[Nr]:{}},Jn=function(t){return kr(t,Nr)}}var zr={set:Qn,get:$n,has:Jn,enforce:function(t){return Jn(t)?$n(t):Qn(t,{})},getterFor:function(t){return function(e){var i;if(!Or(e)||(i=$n(e)).type!==t)throw new Pr("Incompatible receiver, "+t+" required");return i}}},Fr=Ke,Ar=q,jr=Gt,Rr=Ri,Lr=zs,Hr=g([].push),Wr=function(t){var e=1===t,i=2===t,o=3===t,s=4===t,n=6===t,r=7===t,a=5===t||n;return function(h,d,l,c){for(var u,p,f=jr(h),g=Ar(f),m=Fr(d,l),y=Rr(g),b=0,v=c||Lr,w=e?v(h,y):i||r?v(h,0):void 0;y>b;b++)if((a||b in g)&&(p=m(u=g[b],b,f),t))if(e)w[b]=p;else if(p)switch(t){case 3:return!0;case 5:return u;case 6:return b;case 2:Hr(w,u)}else switch(t){case 4:return!1;case 7:Hr(w,u)}return n?-1:o||s?s:w}},qr={forEach:Wr(0),map:Wr(1),filter:Wr(2),some:Wr(3),every:Wr(4),find:Wr(5),findIndex:Wr(6),filterReject:Wr(7)},Vr=Si,Ur=o,Yr=P,Xr=g,Gr=T,Kr=bt,Zr=s,Qr=Qt,$r=rt,Jr=ei,ta=Z,ea=_e,ia=on,oa=j,sa=Dn,na=eo,ra=Mn,aa=Bn,ha=io,da=S,la=Ze,ca=sn,ua=I,pa=Yn,fa=Gn,ga=Ut,ma=Ui,ya=ie,ba=ce,va=Kn,wa=sr,_a=dr,xa=br,Ea=zr,Oa=qr.forEach,Ca=gn("hidden"),ka="Symbol",Sa="prototype",Ta=Ea.set,Da=Ea.getterFor(ka),Ma=Object[Sa],Pa=Ur.Symbol,Ia=Pa&&Pa[Sa],Ba=Ur.RangeError,Na=Ur.TypeError,za=Ur.QObject,Fa=da.f,Aa=la.f,ja=aa.f,Ra=ua.f,La=Xr([].push),Ha=ga("symbols"),Wa=ga("op-symbols"),qa=ga("wks"),Va=!za||!za[Sa]||!za[Sa].findChild,Ua=function(t,e,i){var o=Fa(Ma,e);o&&delete Ma[e],Aa(t,e,i),o&&t!==Ma&&Aa(Ma,e,o)},Ya=Gr&&Zr((function(){return 7!==sa(Aa({},"a",{get:function(){return Aa(this,"a",{value:7}).a}})).a}))?Ua:Aa,Xa=function(t,e){var i=Ha[t]=sa(Ia);return Ta(i,{type:ka,tag:t,description:e}),Gr||(i.description=e),i},Ga=function(t,e,i){t===Ma&&Ga(Wa,e,i),Jr(t);var o=ea(e);return Jr(i),Qr(Ha,o)?(i.enumerable?(Qr(t,Ca)&&t[Ca][o]&&(t[Ca][o]=!1),i=sa(i,{enumerable:oa(0,!1)})):(Qr(t,Ca)||Aa(t,Ca,oa(1,{})),t[Ca][o]=!0),Ya(t,o,i)):Aa(t,o,i)},Ka=function(t,e){Jr(t);var i=ta(e),o=na(i).concat(Ja(i));return Oa(o,(function(e){Gr&&!Yr(Za,i,e)||Ga(t,e,i[e])})),t},Za=function(t){var e=ea(t),i=Yr(Ra,this,e);return!(this===Ma&&Qr(Ha,e)&&!Qr(Wa,e))&&(!(i||!Qr(this,e)||!Qr(Ha,e)||Qr(this,Ca)&&this[Ca][e])||i)},Qa=function(t,e){var i=ta(t),o=ea(e);if(i!==Ma||!Qr(Ha,o)||Qr(Wa,o)){var s=Fa(i,o);return!s||!Qr(Ha,o)||Qr(i,Ca)&&i[Ca][o]||(s.enumerable=!0),s}},$a=function(t){var e=ja(ta(t)),i=[];return Oa(e,(function(t){Qr(Ha,t)||Qr(ma,t)||La(i,t)})),i},Ja=function(t){var e=t===Ma,i=ja(e?Wa:ta(t)),o=[];return Oa(i,(function(t){!Qr(Ha,t)||e&&!Qr(Ma,t)||La(o,Ha[t])})),o};Kr||(pa(Ia=(Pa=function(){if($r(Ia,this))throw new Na("Symbol is not a constructor");var t=arguments.length&&void 0!==arguments[0]?ia(arguments[0]):void 0,e=ya(t),i=function(t){this===Ma&&Yr(i,Wa,t),Qr(this,Ca)&&Qr(this[Ca],e)&&(this[Ca][e]=!1);var o=oa(1,t);try{Ya(this,e,o)}catch(t){if(!(t instanceof Ba))throw t;Ua(this,e,o)}};return Gr&&Va&&Ya(Ma,e,{configurable:!0,set:i}),Xa(e,t)})[Sa],"toString",(function(){return Da(this).tag})),pa(Pa,"withoutSetter",(function(t){return Xa(ya(t),t)})),ua.f=Za,la.f=Ga,ca.f=Ka,da.f=Qa,ra.f=aa.f=$a,ha.f=Ja,va.f=function(t){return Xa(ba(t),t)},Gr&&fa(Ia,"description",{configurable:!0,get:function(){return Da(this).description}})),Vr({global:!0,constructor:!0,wrap:!0,forced:!Kr,sham:!Kr},{Symbol:Pa}),Oa(na(qa),(function(t){wa(t)})),Vr({target:ka,stat:!0,forced:!Kr},{useSetter:function(){Va=!0},useSimple:function(){Va=!1}}),Vr({target:"Object",stat:!0,forced:!Kr,sham:!Gr},{create:function(t,e){return void 0===e?sa(t):Ka(sa(t),e)},defineProperty:Ga,defineProperties:Ka,getOwnPropertyDescriptor:Qa}),Vr({target:"Object",stat:!0,forced:!Kr},{getOwnPropertyNames:$a}),_a(),xa(Pa,ka),ma[Ca]=!0;var th=bt&&!!Symbol.for&&!!Symbol.keyFor,eh=Si,ih=nt,oh=Qt,sh=on,nh=Ut,rh=th,ah=nh("string-to-symbol-registry"),hh=nh("symbol-to-string-registry");eh({target:"Symbol",stat:!0,forced:!rh},{for:function(t){var e=sh(t);if(oh(ah,e))return ah[e];var i=ih("Symbol")(e);return ah[e]=i,hh[i]=e,i}});var dh=Si,lh=Qt,ch=Ot,uh=kt,ph=th,fh=Ut("symbol-to-string-registry");dh({target:"Symbol",stat:!0,forced:!ph},{keyFor:function(t){if(!ch(t))throw new TypeError(uh(t)+" is not a symbol");if(lh(fh,t))return fh[t]}});var gh=Ko,mh=k,yh=v,bh=on,vh=g([].push),wh=Si,_h=nt,xh=l,Eh=P,Oh=g,Ch=s,kh=k,Sh=Ot,Th=vo,Dh=function(t){if(mh(t))return t;if(gh(t)){for(var e=t.length,i=[],o=0;o<e;o++){var s=t[o];"string"==typeof s?vh(i,s):"number"!=typeof s&&"Number"!==yh(s)&&"String"!==yh(s)||vh(i,bh(s))}var n=i.length,r=!0;return function(t,e){if(r)return r=!1,e;if(gh(this))return e;for(var o=0;o<n;o++)if(i[o]===t)return e}}},Mh=bt,Ph=String,Ih=_h("JSON","stringify"),Bh=Oh(/./.exec),Nh=Oh("".charAt),zh=Oh("".charCodeAt),Fh=Oh("".replace),Ah=Oh(1..toString),jh=/[\uD800-\uDFFF]/g,Rh=/^[\uD800-\uDBFF]$/,Lh=/^[\uDC00-\uDFFF]$/,Hh=!Mh||Ch((function(){var t=_h("Symbol")("stringify detection");return"[null]"!==Ih([t])||"{}"!==Ih({a:t})||"{}"!==Ih(Object(t))})),Wh=Ch((function(){return'"\\udf06\\ud834"'!==Ih("\udf06\ud834")||'"\\udead"'!==Ih("\udead")})),qh=function(t,e){var i=Th(arguments),o=Dh(e);if(kh(o)||void 0!==t&&!Sh(t))return i[1]=function(t,e){if(kh(o)&&(e=Eh(o,this,Ph(t),e)),!Sh(e))return e},xh(Ih,null,i)},Vh=function(t,e,i){var o=Nh(i,e-1),s=Nh(i,e+1);return Bh(Rh,t)&&!Bh(Lh,s)||Bh(Lh,t)&&!Bh(Rh,o)?"\\u"+Ah(zh(t,0),16):t};Ih&&wh({target:"JSON",stat:!0,arity:3,forced:Hh||Wh},{stringify:function(t,e,i){var o=Th(arguments),s=xh(Hh?qh:Ih,null,o);return Wh&&"string"==typeof s?Fh(s,jh,Vh):s}});var Uh=io,Yh=Gt;Si({target:"Object",stat:!0,forced:!bt||s((function(){Uh.f(1)}))},{getOwnPropertySymbols:function(t){var e=Uh.f;return e?e(Yh(t)):[]}}),sr("asyncIterator"),sr("hasInstance"),sr("isConcatSpreadable"),sr("iterator"),sr("match"),sr("matchAll"),sr("replace"),sr("search"),sr("species"),sr("split");var Xh=dr;sr("toPrimitive"),Xh();var Gh=nt,Kh=br;sr("toStringTag"),Kh(Gh("Symbol"),"Symbol"),sr("unscopables"),br(o.JSON,"JSON",!0);var Zh,Qh,$h,Jh=tt.Symbol,td={},ed=T,id=Qt,od=Function.prototype,sd=ed&&Object.getOwnPropertyDescriptor,nd=id(od,"name"),rd={EXISTS:nd,PROPER:nd&&"something"===function(){}.name,CONFIGURABLE:nd&&(!ed||ed&&sd(od,"name").configurable)},ad=!s((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype})),hd=Qt,dd=k,ld=Gt,cd=ad,ud=gn("IE_PROTO"),pd=Object,fd=pd.prototype,gd=cd?pd.getPrototypeOf:function(t){var e=ld(t);if(hd(e,ud))return e[ud];var i=e.constructor;return dd(i)&&e instanceof i?i.prototype:e instanceof pd?fd:null},md=s,yd=k,bd=J,vd=Dn,wd=gd,_d=Yn,xd=ce("iterator"),Ed=!1;[].keys&&("next"in($h=[].keys())?(Qh=wd(wd($h)))!==Object.prototype&&(Zh=Qh):Ed=!0);var Od=!bd(Zh)||md((function(){var t={};return Zh[xd].call(t)!==t}));yd((Zh=Od?{}:vd(Zh))[xd])||_d(Zh,xd,(function(){return this}));var Cd={IteratorPrototype:Zh,BUGGY_SAFARI_ITERATORS:Ed},kd=Cd.IteratorPrototype,Sd=Dn,Td=j,Dd=br,Md=td,Pd=function(){return this},Id=Si,Bd=P,Nd=rd,zd=function(t,e,i,o){var s=e+" Iterator";return t.prototype=Sd(kd,{next:Td(+!o,i)}),Dd(t,s,!1,!0),Md[s]=Pd,t},Fd=gd,Ad=br,jd=Yn,Rd=td,Ld=Cd,Hd=Nd.PROPER,Wd=Ld.BUGGY_SAFARI_ITERATORS,qd=ce("iterator"),Vd="keys",Ud="values",Yd="entries",Xd=function(){return this},Gd=function(t,e,i,o,s,n,r){zd(i,e,o);var a,h,d,l=function(t){if(t===s&&g)return g;if(!Wd&&t&&t in p)return p[t];switch(t){case Vd:case Ud:case Yd:return function(){return new i(this,t)}}return function(){return new i(this)}},c=e+" Iterator",u=!1,p=t.prototype,f=p[qd]||p["@@iterator"]||s&&p[s],g=!Wd&&f||l(s),m="Array"===e&&p.entries||f;if(m&&(a=Fd(m.call(new t)))!==Object.prototype&&a.next&&(Ad(a,c,!0,!0),Rd[c]=Xd),Hd&&s===Ud&&f&&f.name!==Ud&&(u=!0,g=function(){return Bd(f,this)}),s)if(h={values:l(Ud),keys:n?g:l(Vd),entries:l(Yd)},r)for(d in h)(Wd||u||!(d in p))&&jd(p,d,h[d]);else Id({target:e,proto:!0,forced:Wd||u},h);return r&&p[qd]!==g&&jd(p,qd,g,{name:s}),Rd[e]=g,h},Kd=function(t,e){return{value:t,done:e}},Zd=Z,Qd=td,$d=zr;Ze.f;var Jd=Gd,tl=Kd,el="Array Iterator",il=$d.set,ol=$d.getterFor(el);Jd(Array,"Array",(function(t,e){il(this,{type:el,target:Zd(t),index:0,kind:e})}),(function(){var t=ol(this),e=t.target,i=t.kind,o=t.index++;if(!e||o>=e.length)return t.target=void 0,tl(void 0,!0);switch(i){case"keys":return tl(o,!1);case"values":return tl(e[o],!1)}return tl([o,e[o]],!1)}),"values"),Qd.Arguments=Qd.Array;var sl={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},nl=o,rl=ls,al=gi,hl=td,dl=ce("toStringTag");for(var ll in sl){var cl=nl[ll],ul=cl&&cl.prototype;ul&&rl(ul)!==dl&&al(ul,dl,ll),hl[ll]=hl.Array}var pl=Jh,fl=e(pl),gl=Si,ml=Ko,yl=Ts,bl=J,vl=zi,wl=Ri,_l=Z,xl=es,El=ce,Ol=vo,Cl=Rs("slice"),kl=El("species"),Sl=Array,Tl=Math.max;gl({target:"Array",proto:!0,forced:!Cl},{slice:function(t,e){var i,o,s,n=_l(this),r=wl(n),a=vl(t,r),h=vl(void 0===e?r:e,r);if(ml(n)&&(i=n.constructor,(yl(i)&&(i===Sl||ml(i.prototype))||bl(i)&&null===(i=i[kl]))&&(i=void 0),i===Sl||void 0===i))return Ol(n,a,h);for(o=new(void 0===i?Sl:i)(Tl(h-a,0)),s=0;a<h;a++,s++)a in n&&xl(o,s,n[a]);return o.length=s,o}});var Dl=Bo("Array").slice,Ml=rt,Pl=Dl,Il=Array.prototype,Bl=function(t){var e=t.slice;return t===Il||Ml(Il,t)&&e===Il.slice?Pl:e},Nl=e(Bl),zl=nt,Fl=Mn,Al=io,jl=ei,Rl=g([].concat),Ll=zl("Reflect","ownKeys")||function(t){var e=Fl.f(jl(t)),i=Al.f;return i?Rl(e,i(t)):e};Si({target:"Reflect",stat:!0},{ownKeys:Ll});var Hl=e(tt.Reflect.ownKeys);Si({target:"Array",stat:!0},{isArray:Ko});var Wl=e(tt.Array.isArray),ql=qr.map;Si({target:"Array",proto:!0,forced:!Rs("map")},{map:function(t){return ql(this,t,arguments.length>1?arguments[1]:void 0)}});var Vl=Bo("Array").map,Ul=rt,Yl=Vl,Xl=Array.prototype,Gl=function(t){var e=t.map;return t===Xl||Ul(Xl,t)&&e===Xl.map?Yl:e},Kl=e(Gl),Zl=Gt,Ql=eo;Si({target:"Object",stat:!0,forced:s((function(){Ql(1)}))},{keys:function(t){return Ql(Zl(t))}});var $l=e(tt.Object.keys),Jl=Si,tc=Date,ec=g(tc.prototype.getTime);Jl({target:"Date",stat:!0},{now:function(){return ec(new tc)}});var ic=e(tt.Date.now),oc=s,sc=function(t,e){var i=[][t];return!!i&&oc((function(){i.call(null,e||function(){return 1},1)}))},nc=qr.forEach,rc=sc("forEach")?[].forEach:function(t){return nc(this,t,arguments.length>1?arguments[1]:void 0)};Si({target:"Array",proto:!0,forced:[].forEach!==rc},{forEach:rc});var ac=Bo("Array").forEach,hc=ls,dc=Qt,lc=rt,cc=ac,uc=Array.prototype,pc={DOMTokenList:!0,NodeList:!0},fc=function(t){var e=t.forEach;return t===uc||lc(uc,t)&&e===uc.forEach||dc(pc,hc(t))?cc:e},gc=e(fc),mc=Si,yc=Ko,bc=g([].reverse),vc=[1,2];mc({target:"Array",proto:!0,forced:String(vc)===String(vc.reverse())},{reverse:function(){return yc(this)&&(this.length=this.length),bc(this)}});var wc=Bo("Array").reverse,_c=rt,xc=wc,Ec=Array.prototype,Oc=function(t){var e=t.reverse;return t===Ec||_c(Ec,t)&&e===Ec.reverse?xc:e},Cc=e(Oc),kc=T,Sc=Ko,Tc=TypeError,Dc=Object.getOwnPropertyDescriptor,Mc=kc&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(t){return t instanceof TypeError}}(),Pc=kt,Ic=TypeError,Bc=function(t,e){if(!delete t[e])throw new Ic("Cannot delete property "+Pc(e)+" of "+Pc(t))},Nc=Si,zc=Gt,Fc=zi,Ac=Pi,jc=Ri,Rc=Mc?function(t,e){if(Sc(t)&&!Dc(t,"length").writable)throw new Tc("Cannot set read only .length");return t.length=e}:function(t,e){return t.length=e},Lc=Qo,Hc=zs,Wc=es,qc=Bc,Vc=Rs("splice"),Uc=Math.max,Yc=Math.min;Nc({target:"Array",proto:!0,forced:!Vc},{splice:function(t,e){var i,o,s,n,r,a,h=zc(this),d=jc(h),l=Fc(t,d),c=arguments.length;for(0===c?i=o=0:1===c?(i=0,o=d-l):(i=c-2,o=Yc(Uc(Ac(e),0),d-l)),Lc(d+i-o),s=Hc(h,o),n=0;n<o;n++)(r=l+n)in h&&Wc(s,n,h[r]);if(s.length=o,i<o){for(n=l;n<d-o;n++)a=n+i,(r=n+o)in h?h[a]=h[r]:qc(h,a);for(n=d;n>d-o+i;n--)qc(h,n-1)}else if(i>o)for(n=d-o;n>l;n--)a=n+i-1,(r=n+o-1)in h?h[a]=h[r]:qc(h,a);for(n=0;n<i;n++)h[n+l]=arguments[n+2];return Rc(h,d-o+i),s}});var Xc=Bo("Array").splice,Gc=rt,Kc=Xc,Zc=Array.prototype,Qc=function(t){var e=t.splice;return t===Zc||Gc(Zc,t)&&e===Zc.splice?Kc:e},$c=e(Qc),Jc=Vi.includes;Si({target:"Array",proto:!0,forced:s((function(){return!Array(1).includes()}))},{includes:function(t){return Jc(this,t,arguments.length>1?arguments[1]:void 0)}});var tu=Bo("Array").includes,eu=J,iu=v,ou=ce("match"),su=function(t){var e;return eu(t)&&(void 0!==(e=t[ou])?!!e:"RegExp"===iu(t))},nu=TypeError,ru=ce("match"),au=Si,hu=function(t){if(su(t))throw new nu("The method doesn't accept regular expressions");return t},du=X,lu=on,cu=function(t){var e=/./;try{"/./"[t](e)}catch(i){try{return e[ru]=!1,"/./"[t](e)}catch(t){}}return!1},uu=g("".indexOf);au({target:"String",proto:!0,forced:!cu("includes")},{includes:function(t){return!!~uu(lu(du(this)),lu(hu(t)),arguments.length>1?arguments[1]:void 0)}});var pu=Bo("String").includes,fu=rt,gu=tu,mu=pu,yu=Array.prototype,bu=String.prototype,vu=function(t){var e=t.includes;return t===yu||fu(yu,t)&&e===yu.includes?gu:"string"==typeof t||t===bu||fu(bu,t)&&e===bu.includes?mu:e},wu=e(vu),_u=Gt,xu=gd,Eu=ad;Si({target:"Object",stat:!0,forced:s((function(){xu(1)})),sham:!Eu},{getPrototypeOf:function(t){return xu(_u(t))}});var Ou=e(tt.Object.getPrototypeOf),Cu=Bo("Array").concat,ku=rt,Su=Cu,Tu=Array.prototype,Du=function(t){var e=t.concat;return t===Tu||ku(Tu,t)&&e===Tu.concat?Su:e},Mu=e(Du),Pu=qr.filter;Si({target:"Array",proto:!0,forced:!Rs("filter")},{filter:function(t){return Pu(this,t,arguments.length>1?arguments[1]:void 0)}});var Iu=Bo("Array").filter,Bu=rt,Nu=Iu,zu=Array.prototype,Fu=function(t){var e=t.filter;return t===zu||Bu(zu,t)&&e===zu.filter?Nu:e},Au=e(Fu),ju=T,Ru=s,Lu=g,Hu=gd,Wu=eo,qu=Z,Vu=Lu(I.f),Uu=Lu([].push),Yu=ju&&Ru((function(){var t=Object.create(null);return t[2]=2,!Vu(t,2)})),Xu=function(t){return function(e){for(var i,o=qu(e),s=Wu(o),n=Yu&&null===Hu(o),r=s.length,a=0,h=[];r>a;)i=s[a++],ju&&!(n?i in o:Vu(o,i))||Uu(h,t?[i,o[i]]:o[i]);return h}},Gu={entries:Xu(!0),values:Xu(!1)},Ku=Gu.values;Si({target:"Object",stat:!0},{values:function(t){return Ku(t)}});var Zu=e(tt.Object.values),Qu="\t\n\v\f\r                 \u2028\u2029\ufeff",$u=X,Ju=on,tp=Qu,ep=g("".replace),ip=RegExp("^["+tp+"]+"),op=RegExp("(^|[^"+tp+"])["+tp+"]+$"),sp=function(t){return function(e){var i=Ju($u(e));return 1&t&&(i=ep(i,ip,"")),2&t&&(i=ep(i,op,"$1")),i}},np={start:sp(1),end:sp(2),trim:sp(3)},rp=o,ap=s,hp=g,dp=on,lp=np.trim,cp=Qu,up=rp.parseInt,pp=rp.Symbol,fp=pp&&pp.iterator,gp=/^[+-]?0x/i,mp=hp(gp.exec),yp=8!==up(cp+"08")||22!==up(cp+"0x16")||fp&&!ap((function(){up(Object(fp))}))?function(t,e){var i=lp(dp(t));return up(i,e>>>0||(mp(gp,i)?16:10))}:up;Si({global:!0,forced:parseInt!==yp},{parseInt:yp});var bp=e(tt.parseInt),vp=Si,wp=Vi.indexOf,_p=sc,xp=x([].indexOf),Ep=!!xp&&1/xp([1],1,-0)<0;vp({target:"Array",proto:!0,forced:Ep||!_p("indexOf")},{indexOf:function(t){var e=arguments.length>1?arguments[1]:void 0;return Ep?xp(this,t,e)||0:wp(this,t,e)}});var Op=Bo("Array").indexOf,Cp=rt,kp=Op,Sp=Array.prototype,Tp=function(t){var e=t.indexOf;return t===Sp||Cp(Sp,t)&&e===Sp.indexOf?kp:e},Dp=e(Tp),Mp=Gu.entries;Si({target:"Object",stat:!0},{entries:function(t){return Mp(t)}});var Pp=e(tt.Object.entries);Si({target:"Object",stat:!0,sham:!T},{create:Dn});var Ip=tt.Object,Bp=e((function(t,e){return Ip.create(t,e)})),Np=tt,zp=l;Np.JSON||(Np.JSON={stringify:JSON.stringify});var Fp=e((function(t,e,i){return zp(Np.JSON.stringify,null,arguments)})),Ap="function"==typeof Bun&&Bun&&"string"==typeof Bun.version,jp=TypeError,Rp=o,Lp=l,Hp=k,Wp=Ap,qp=at,Vp=vo,Up=function(t,e){if(t<e)throw new jp("Not enough arguments");return t},Yp=Rp.Function,Xp=/MSIE .\./.test(qp)||Wp&&function(){var t=Rp.Bun.version.split(".");return t.length<3||"0"===t[0]&&(t[1]<3||"3"===t[1]&&"0"===t[2])}(),Gp=function(t,e){var i=e?2:1;return Xp?function(o,s){var n=Up(arguments.length,1)>i,r=Hp(o)?o:Yp(o),a=n?Vp(arguments,i):[],h=n?function(){Lp(r,this,a)}:r;return e?t(h,s):t(h)}:t},Kp=Si,Zp=o,Qp=Gp(Zp.setInterval,!0);Kp({global:!0,bind:!0,forced:Zp.setInterval!==Qp},{setInterval:Qp});var $p=Si,Jp=o,tf=Gp(Jp.setTimeout,!0);$p({global:!0,bind:!0,forced:Jp.setTimeout!==tf},{setTimeout:tf});var ef=e(tt.setTimeout),of=Gt,sf=zi,nf=Ri,rf=function(t){for(var e=of(this),i=nf(e),o=arguments.length,s=sf(o>1?arguments[1]:void 0,i),n=o>2?arguments[2]:void 0,r=void 0===n?i:sf(n,i);r>s;)e[s++]=t;return e};Si({target:"Array",proto:!0},{fill:rf});var af,hf=Bo("Array").fill,df=rt,lf=hf,cf=Array.prototype,uf=function(t){var e=t.fill;return t===cf||df(cf,t)&&e===cf.fill?lf:e},pf=e(uf);function ff(){return ff=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var i=arguments[e];for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(t[o]=i[o])}return t},ff.apply(this,arguments)}function gf(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}function mf(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}af="function"!=typeof Object.assign?function(t){if(null==t)throw new TypeError("Cannot convert undefined or null to object");for(var e=Object(t),i=1;i<arguments.length;i++){var o=arguments[i];if(null!=o)for(var s in o)o.hasOwnProperty(s)&&(e[s]=o[s])}return e}:Object.assign;var yf,bf=af,vf=["","webkit","Moz","MS","ms","o"],wf="undefined"==typeof document?{style:{}}:document.createElement("div"),_f=Math.round,xf=Math.abs,Ef=Date.now;function Of(t,e){for(var i,o,s=e[0].toUpperCase()+e.slice(1),n=0;n<vf.length;){if((o=(i=vf[n])?i+s:e)in t)return o;n++}}yf="undefined"==typeof window?{}:window;var Cf=Of(wf.style,"touchAction"),kf=void 0!==Cf;var Sf="compute",Tf="auto",Df="manipulation",Mf="none",Pf="pan-x",If="pan-y",Bf=function(){if(!kf)return!1;var t={},e=yf.CSS&&yf.CSS.supports;return["auto","manipulation","pan-y","pan-x","pan-x pan-y","none"].forEach((function(i){return t[i]=!e||yf.CSS.supports("touch-action",i)})),t}(),Nf="ontouchstart"in yf,zf=void 0!==Of(yf,"PointerEvent"),Ff=Nf&&/mobile|tablet|ip(ad|hone|od)|android/i.test(navigator.userAgent),Af="touch",jf="mouse",Rf=25,Lf=1,Hf=4,Wf=8,qf=1,Vf=2,Uf=4,Yf=8,Xf=16,Gf=Vf|Uf,Kf=Yf|Xf,Zf=Gf|Kf,Qf=["x","y"],$f=["clientX","clientY"];function Jf(t,e,i){var o;if(t)if(t.forEach)t.forEach(e,i);else if(void 0!==t.length)for(o=0;o<t.length;)e.call(i,t[o],o,t),o++;else for(o in t)t.hasOwnProperty(o)&&e.call(i,t[o],o,t)}function tg(t,e){return"function"==typeof t?t.apply(e&&e[0]||void 0,e):t}function eg(t,e){return t.indexOf(e)>-1}var ig=function(){function t(t,e){this.manager=t,this.set(e)}var e=t.prototype;return e.set=function(t){t===Sf&&(t=this.compute()),kf&&this.manager.element.style&&Bf[t]&&(this.manager.element.style[Cf]=t),this.actions=t.toLowerCase().trim()},e.update=function(){this.set(this.manager.options.touchAction)},e.compute=function(){var t=[];return Jf(this.manager.recognizers,(function(e){tg(e.options.enable,[e])&&(t=t.concat(e.getTouchAction()))})),function(t){if(eg(t,Mf))return Mf;var e=eg(t,Pf),i=eg(t,If);return e&&i?Mf:e||i?e?Pf:If:eg(t,Df)?Df:Tf}(t.join(" "))},e.preventDefaults=function(t){var e=t.srcEvent,i=t.offsetDirection;if(this.manager.session.prevented)e.preventDefault();else{var o=this.actions,s=eg(o,Mf)&&!Bf[Mf],n=eg(o,If)&&!Bf[If],r=eg(o,Pf)&&!Bf[Pf];if(s){var a=1===t.pointers.length,h=t.distance<2,d=t.deltaTime<250;if(a&&h&&d)return}if(!r||!n)return s||n&&i&Gf||r&&i&Kf?this.preventSrc(e):void 0}},e.preventSrc=function(t){this.manager.session.prevented=!0,t.preventDefault()},t}();function og(t,e){for(;t;){if(t===e)return!0;t=t.parentNode}return!1}function sg(t){var e=t.length;if(1===e)return{x:_f(t[0].clientX),y:_f(t[0].clientY)};for(var i=0,o=0,s=0;s<e;)i+=t[s].clientX,o+=t[s].clientY,s++;return{x:_f(i/e),y:_f(o/e)}}function ng(t){for(var e=[],i=0;i<t.pointers.length;)e[i]={clientX:_f(t.pointers[i].clientX),clientY:_f(t.pointers[i].clientY)},i++;return{timeStamp:Ef(),pointers:e,center:sg(e),deltaX:t.deltaX,deltaY:t.deltaY}}function rg(t,e,i){i||(i=Qf);var o=e[i[0]]-t[i[0]],s=e[i[1]]-t[i[1]];return Math.sqrt(o*o+s*s)}function ag(t,e,i){i||(i=Qf);var o=e[i[0]]-t[i[0]],s=e[i[1]]-t[i[1]];return 180*Math.atan2(s,o)/Math.PI}function hg(t,e){return t===e?qf:xf(t)>=xf(e)?t<0?Vf:Uf:e<0?Yf:Xf}function dg(t,e,i){return{x:e/t||0,y:i/t||0}}function lg(t,e){var i=t.session,o=e.pointers,s=o.length;i.firstInput||(i.firstInput=ng(e)),s>1&&!i.firstMultiple?i.firstMultiple=ng(e):1===s&&(i.firstMultiple=!1);var n=i.firstInput,r=i.firstMultiple,a=r?r.center:n.center,h=e.center=sg(o);e.timeStamp=Ef(),e.deltaTime=e.timeStamp-n.timeStamp,e.angle=ag(a,h),e.distance=rg(a,h),function(t,e){var i=e.center,o=t.offsetDelta||{},s=t.prevDelta||{},n=t.prevInput||{};e.eventType!==Lf&&n.eventType!==Hf||(s=t.prevDelta={x:n.deltaX||0,y:n.deltaY||0},o=t.offsetDelta={x:i.x,y:i.y}),e.deltaX=s.x+(i.x-o.x),e.deltaY=s.y+(i.y-o.y)}(i,e),e.offsetDirection=hg(e.deltaX,e.deltaY);var d,l,c=dg(e.deltaTime,e.deltaX,e.deltaY);e.overallVelocityX=c.x,e.overallVelocityY=c.y,e.overallVelocity=xf(c.x)>xf(c.y)?c.x:c.y,e.scale=r?(d=r.pointers,rg((l=o)[0],l[1],$f)/rg(d[0],d[1],$f)):1,e.rotation=r?function(t,e){return ag(e[1],e[0],$f)+ag(t[1],t[0],$f)}(r.pointers,o):0,e.maxPointers=i.prevInput?e.pointers.length>i.prevInput.maxPointers?e.pointers.length:i.prevInput.maxPointers:e.pointers.length,function(t,e){var i,o,s,n,r=t.lastInterval||e,a=e.timeStamp-r.timeStamp;if(e.eventType!==Wf&&(a>Rf||void 0===r.velocity)){var h=e.deltaX-r.deltaX,d=e.deltaY-r.deltaY,l=dg(a,h,d);o=l.x,s=l.y,i=xf(l.x)>xf(l.y)?l.x:l.y,n=hg(h,d),t.lastInterval=e}else i=r.velocity,o=r.velocityX,s=r.velocityY,n=r.direction;e.velocity=i,e.velocityX=o,e.velocityY=s,e.direction=n}(i,e);var u,p=t.element,f=e.srcEvent;og(u=f.composedPath?f.composedPath()[0]:f.path?f.path[0]:f.target,p)&&(p=u),e.target=p}function cg(t,e,i){var o=i.pointers.length,s=i.changedPointers.length,n=e&Lf&&o-s==0,r=e&(Hf|Wf)&&o-s==0;i.isFirst=!!n,i.isFinal=!!r,n&&(t.session={}),i.eventType=e,lg(t,i),t.emit("hammer.input",i),t.recognize(i),t.session.prevInput=i}function ug(t){return t.trim().split(/\s+/g)}function pg(t,e,i){Jf(ug(e),(function(e){t.addEventListener(e,i,!1)}))}function fg(t,e,i){Jf(ug(e),(function(e){t.removeEventListener(e,i,!1)}))}function gg(t){var e=t.ownerDocument||t;return e.defaultView||e.parentWindow||window}var mg=function(){function t(t,e){var i=this;this.manager=t,this.callback=e,this.element=t.element,this.target=t.options.inputTarget,this.domHandler=function(e){tg(t.options.enable,[t])&&i.handler(e)},this.init()}var e=t.prototype;return e.handler=function(){},e.init=function(){this.evEl&&pg(this.element,this.evEl,this.domHandler),this.evTarget&&pg(this.target,this.evTarget,this.domHandler),this.evWin&&pg(gg(this.element),this.evWin,this.domHandler)},e.destroy=function(){this.evEl&&fg(this.element,this.evEl,this.domHandler),this.evTarget&&fg(this.target,this.evTarget,this.domHandler),this.evWin&&fg(gg(this.element),this.evWin,this.domHandler)},t}();function yg(t,e,i){if(t.indexOf&&!i)return t.indexOf(e);for(var o=0;o<t.length;){if(i&&t[o][i]==e||!i&&t[o]===e)return o;o++}return-1}var bg={pointerdown:Lf,pointermove:2,pointerup:Hf,pointercancel:Wf,pointerout:Wf},vg={2:Af,3:"pen",4:jf,5:"kinect"},wg="pointerdown",_g="pointermove pointerup pointercancel";yf.MSPointerEvent&&!yf.PointerEvent&&(wg="MSPointerDown",_g="MSPointerMove MSPointerUp MSPointerCancel");var xg=function(t){function e(){var i,o=e.prototype;return o.evEl=wg,o.evWin=_g,(i=t.apply(this,arguments)||this).store=i.manager.session.pointerEvents=[],i}return gf(e,t),e.prototype.handler=function(t){var e=this.store,i=!1,o=t.type.toLowerCase().replace("ms",""),s=bg[o],n=vg[t.pointerType]||t.pointerType,r=n===Af,a=yg(e,t.pointerId,"pointerId");s&Lf&&(0===t.button||r)?a<0&&(e.push(t),a=e.length-1):s&(Hf|Wf)&&(i=!0),a<0||(e[a]=t,this.callback(this.manager,s,{pointers:e,changedPointers:[t],pointerType:n,srcEvent:t}),i&&e.splice(a,1))},e}(mg);function Eg(t){return Array.prototype.slice.call(t,0)}function Og(t,e,i){for(var o=[],s=[],n=0;n<t.length;){var r=e?t[n][e]:t[n];yg(s,r)<0&&o.push(t[n]),s[n]=r,n++}return i&&(o=e?o.sort((function(t,i){return t[e]>i[e]})):o.sort()),o}var Cg={touchstart:Lf,touchmove:2,touchend:Hf,touchcancel:Wf},kg=function(t){function e(){var i;return e.prototype.evTarget="touchstart touchmove touchend touchcancel",(i=t.apply(this,arguments)||this).targetIds={},i}return gf(e,t),e.prototype.handler=function(t){var e=Cg[t.type],i=Sg.call(this,t,e);i&&this.callback(this.manager,e,{pointers:i[0],changedPointers:i[1],pointerType:Af,srcEvent:t})},e}(mg);function Sg(t,e){var i,o,s=Eg(t.touches),n=this.targetIds;if(e&(2|Lf)&&1===s.length)return n[s[0].identifier]=!0,[s,s];var r=Eg(t.changedTouches),a=[],h=this.target;if(o=s.filter((function(t){return og(t.target,h)})),e===Lf)for(i=0;i<o.length;)n[o[i].identifier]=!0,i++;for(i=0;i<r.length;)n[r[i].identifier]&&a.push(r[i]),e&(Hf|Wf)&&delete n[r[i].identifier],i++;return a.length?[Og(o.concat(a),"identifier",!0),a]:void 0}var Tg={mousedown:Lf,mousemove:2,mouseup:Hf},Dg=function(t){function e(){var i,o=e.prototype;return o.evEl="mousedown",o.evWin="mousemove mouseup",(i=t.apply(this,arguments)||this).pressed=!1,i}return gf(e,t),e.prototype.handler=function(t){var e=Tg[t.type];e&Lf&&0===t.button&&(this.pressed=!0),2&e&&1!==t.which&&(e=Hf),this.pressed&&(e&Hf&&(this.pressed=!1),this.callback(this.manager,e,{pointers:[t],changedPointers:[t],pointerType:jf,srcEvent:t}))},e}(mg),Mg=2500;function Pg(t){var e=t.changedPointers[0];if(e.identifier===this.primaryTouch){var i={x:e.clientX,y:e.clientY},o=this.lastTouches;this.lastTouches.push(i);setTimeout((function(){var t=o.indexOf(i);t>-1&&o.splice(t,1)}),Mg)}}function Ig(t,e){t&Lf?(this.primaryTouch=e.changedPointers[0].identifier,Pg.call(this,e)):t&(Hf|Wf)&&Pg.call(this,e)}function Bg(t){for(var e=t.srcEvent.clientX,i=t.srcEvent.clientY,o=0;o<this.lastTouches.length;o++){var s=this.lastTouches[o],n=Math.abs(e-s.x),r=Math.abs(i-s.y);if(n<=25&&r<=25)return!0}return!1}var Ng=function(){return function(t){function e(e,i){var o;return(o=t.call(this,e,i)||this).handler=function(t,e,i){var s=i.pointerType===Af,n=i.pointerType===jf;if(!(n&&i.sourceCapabilities&&i.sourceCapabilities.firesTouchEvents)){if(s)Ig.call(mf(mf(o)),e,i);else if(n&&Bg.call(mf(mf(o)),i))return;o.callback(t,e,i)}},o.touch=new kg(o.manager,o.handler),o.mouse=new Dg(o.manager,o.handler),o.primaryTouch=null,o.lastTouches=[],o}return gf(e,t),e.prototype.destroy=function(){this.touch.destroy(),this.mouse.destroy()},e}(mg)}();function zg(t,e,i){return!!Array.isArray(t)&&(Jf(t,i[e],i),!0)}var Fg=32,Ag=1;function jg(t,e){var i=e.manager;return i?i.get(t):t}function Rg(t){return 16&t?"cancel":8&t?"end":4&t?"move":2&t?"start":""}var Lg=function(){function t(t){void 0===t&&(t={}),this.options=ff({enable:!0},t),this.id=Ag++,this.manager=null,this.state=1,this.simultaneous={},this.requireFail=[]}var e=t.prototype;return e.set=function(t){return bf(this.options,t),this.manager&&this.manager.touchAction.update(),this},e.recognizeWith=function(t){if(zg(t,"recognizeWith",this))return this;var e=this.simultaneous;return e[(t=jg(t,this)).id]||(e[t.id]=t,t.recognizeWith(this)),this},e.dropRecognizeWith=function(t){return zg(t,"dropRecognizeWith",this)||(t=jg(t,this),delete this.simultaneous[t.id]),this},e.requireFailure=function(t){if(zg(t,"requireFailure",this))return this;var e=this.requireFail;return-1===yg(e,t=jg(t,this))&&(e.push(t),t.requireFailure(this)),this},e.dropRequireFailure=function(t){if(zg(t,"dropRequireFailure",this))return this;t=jg(t,this);var e=yg(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,i=this.state;function o(i){e.manager.emit(i,t)}i<8&&o(e.options.event+Rg(i)),o(e.options.event),t.additionalEvent&&o(t.additionalEvent),i>=8&&o(e.options.event+Rg(i))},e.tryEmit=function(t){if(this.canEmit())return this.emit(t);this.state=Fg},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=bf({},t);if(!tg(this.options.enable,[this,e]))return this.reset(),void(this.state=Fg);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}(),Hg=function(t){function e(e){var i;return void 0===e&&(e={}),(i=t.call(this,ff({event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:9,posThreshold:10},e))||this).pTime=!1,i.pCenter=!1,i._timer=null,i._input=null,i.count=0,i}gf(e,t);var i=e.prototype;return i.getTouchAction=function(){return[Df]},i.process=function(t){var e=this,i=this.options,o=t.pointers.length===i.pointers,s=t.distance<i.threshold,n=t.deltaTime<i.time;if(this.reset(),t.eventType&Lf&&0===this.count)return this.failTimeout();if(s&&n&&o){if(t.eventType!==Hf)return this.failTimeout();var r=!this.pTime||t.timeStamp-this.pTime<i.interval,a=!this.pCenter||rg(this.pCenter,t.center)<i.posThreshold;if(this.pTime=t.timeStamp,this.pCenter=t.center,a&&r?this.count+=1:this.count=1,this._input=t,0===this.count%i.taps)return this.hasRequireFailures()?(this._timer=setTimeout((function(){e.state=8,e.tryEmit()}),i.interval),2):8}return Fg},i.failTimeout=function(){var t=this;return this._timer=setTimeout((function(){t.state=Fg}),this.options.interval),Fg},i.reset=function(){clearTimeout(this._timer)},i.emit=function(){8===this.state&&(this._input.tapCount=this.count,this.manager.emit(this.options.event,this._input))},e}(Lg),Wg=function(t){function e(e){return void 0===e&&(e={}),t.call(this,ff({pointers:1},e))||this}gf(e,t);var i=e.prototype;return i.attrTest=function(t){var e=this.options.pointers;return 0===e||t.pointers.length===e},i.process=function(t){var e=this.state,i=t.eventType,o=6&e,s=this.attrTest(t);return o&&(i&Wf||!s)?16|e:o||s?i&Hf?8|e:2&e?4|e:2:Fg},e}(Lg);function qg(t){return t===Xf?"down":t===Yf?"up":t===Vf?"left":t===Uf?"right":""}var Vg=function(t){function e(e){var i;return void 0===e&&(e={}),(i=t.call(this,ff({event:"pan",threshold:10,pointers:1,direction:Zf},e))||this).pX=null,i.pY=null,i}gf(e,t);var i=e.prototype;return i.getTouchAction=function(){var t=this.options.direction,e=[];return t&Gf&&e.push(If),t&Kf&&e.push(Pf),e},i.directionTest=function(t){var e=this.options,i=!0,o=t.distance,s=t.direction,n=t.deltaX,r=t.deltaY;return s&e.direction||(e.direction&Gf?(s=0===n?qf:n<0?Vf:Uf,i=n!==this.pX,o=Math.abs(t.deltaX)):(s=0===r?qf:r<0?Yf:Xf,i=r!==this.pY,o=Math.abs(t.deltaY))),t.direction=s,i&&o>e.threshold&&s&e.direction},i.attrTest=function(t){return Wg.prototype.attrTest.call(this,t)&&(2&this.state||!(2&this.state)&&this.directionTest(t))},i.emit=function(e){this.pX=e.deltaX,this.pY=e.deltaY;var i=qg(e.direction);i&&(e.additionalEvent=this.options.