UNPKG

vis-network

Version:

A dynamic, browser-based visualization library.

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