@danielgindi/dom-utils 1.0.7 → 1.0.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,7 +1,7 @@
1
1
  /*!
2
- * @danielgindi/dom-utils 1.0.7
2
+ * @danielgindi/dom-utils 1.0.9
3
3
  * git://github.com/danielgindi/dom-utils.git
4
4
  */
5
- "use strict";function e(t){return(e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(t)}function t(e){this.wrapped=e}function n(e){var n,r;function o(n,r){try{var a=e[n](r),l=a.value,c=l instanceof t;Promise.resolve(c?l.wrapped:l).then((function(e){c?o("return"===n?"return":"next",e):i(a.done?"return":"normal",e)}),(function(e){o("throw",e)}))}catch(e){i("throw",e)}}function i(e,t){switch(e){case"return":n.resolve({value:t,done:!0});break;case"throw":n.reject(t);break;default:n.resolve({value:t,done:!1})}(n=n.next)?o(n.key,n.arg):r=null}this._invoke=function(e,t){return new Promise((function(i,a){var l={key:e,arg:t,resolve:i,reject:a,next:null};r?r=r.next=l:(n=r=l,o(e,t))}))},"function"!=typeof e.return&&(this.return=void 0)}function r(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function o(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i=[],a=!0,l=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(l)throw o}}return i}}(e,t)||i(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(e,t){if(e){if("string"==typeof e)return a(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?a(e,t):void 0}}function a(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function l(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=i(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,l=!0,c=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return l=e.done,e},e:function(e){c=!0,a=e},f:function(){try{l||null==n.return||n.return()}finally{if(c)throw a}}}}Object.defineProperty(exports,"__esModule",{value:!0}),n.prototype["function"==typeof Symbol&&Symbol.asyncIterator||"@@asyncIterator"]=function(){return this},n.prototype.next=function(e){return this._invoke("next",e)},n.prototype.throw=function(e){return this._invoke("throw",e)},n.prototype.return=function(e){return this._invoke("return",e)};var c,u,f="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},s=function(e){return e&&e.Math==Math&&e},d=s("object"==typeof globalThis&&globalThis)||s("object"==typeof window&&window)||s("object"==typeof self&&self)||s("object"==typeof f&&f)||function(){return this}()||Function("return this")(),p={},h=function(e){try{return!!e()}catch(e){return!0}},v=!h((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),g={},y={}.propertyIsEnumerable,m=Object.getOwnPropertyDescriptor,b=m&&!y.call({1:2},1),x=(g.f=b?function(e){var t=m(this,e);return!!t&&t.enumerable}:y,function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}),S={}.toString,w=function(e){return S.call(e).slice(8,-1)},E=w,O="".split,j=h((function(){return!Object("z").propertyIsEnumerable(0)}))?function(e){return"String"==E(e)?O.call(e,""):Object(e)}:Object,C=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e},T=j,_=C,A=function(e){return T(_(e))},N=function(e){return"function"==typeof e},I=N,F=function(e){return"object"==typeof e?null!==e:I(e)},R=d,P=N,M=function(e){return P(e)?e:void 0},L=function(e,t){return arguments.length<2?M(R[e]):R[e]&&R[e][t]},k=d,W=L("navigator","userAgent")||"",$=k.process,z=k.Deno,D=$&&$.versions||z&&z.version,B=D&&D.v8;B?u=(c=B.split("."))[0]<4?1:c[0]+c[1]:W&&(!(c=W.match(/Edge\/(\d+)/))||c[1]>=74)&&(c=W.match(/Chrome\/(\d+)/))&&(u=c[1]);var H=u&&+u,U=H,Y=h,q=!!Object.getOwnPropertySymbols&&!Y((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&U&&U<41})),X=q&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,G=N,K=L,V=X?function(e){return"symbol"==typeof e}:function(e){var t=K("Symbol");return G(t)&&Object(e)instanceof t},J=function(e){try{return String(e)}catch(e){return"Object"}},Q=N,Z=J,ee=function(e){if(Q(e))return e;throw TypeError(Z(e)+" is not a function")},te=ee,ne=function(e,t){var n=e[t];return null==n?void 0:te(n)},re=N,oe=F,ie={exports:{}},ae=d,le=function(e,t){try{Object.defineProperty(ae,e,{value:t,configurable:!0,writable:!0})}catch(n){ae[e]=t}return t},ce=le,ue=d["__core-js_shared__"]||ce("__core-js_shared__",{}),fe=ue;(ie.exports=function(e,t){return fe[e]||(fe[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.18.2",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"}),ie.exports;var se=C,de=function(e){return Object(se(e))},pe=de,he={}.hasOwnProperty,ve=Object.hasOwn||function(e,t){return he.call(pe(e),t)},ge=0,ye=Math.random(),me=function(e){return"Symbol("+String(void 0===e?"":e)+")_"+(++ge+ye).toString(36)},be=d,xe=ie.exports,Se=ve,we=me,Ee=q,Oe=X,je=xe("wks"),Ce=be.Symbol,Te=Oe?Ce:Ce&&Ce.withoutSetter||we,_e=function(e){return Se(je,e)&&(Ee||"string"==typeof je[e])||(Ee&&Se(Ce,e)?je[e]=Ce[e]:je[e]=Te("Symbol."+e)),je[e]},Ae=F,Ne=V,Ie=ne,Fe=_e("toPrimitive"),Re=function(e,t){if(!Ae(e)||Ne(e))return e;var n,r=Ie(e,Fe);if(r){if(void 0===t&&(t="default"),n=r.call(e,t),!Ae(n)||Ne(n))return n;throw TypeError("Can't convert object to primitive value")}return void 0===t&&(t="number"),function(e,t){var n,r;if("string"===t&&re(n=e.toString)&&!oe(r=n.call(e)))return r;if(re(n=e.valueOf)&&!oe(r=n.call(e)))return r;if("string"!==t&&re(n=e.toString)&&!oe(r=n.call(e)))return r;throw TypeError("Can't convert object to primitive value")}(e,t)},Pe=V,Me=function(e){var t=Re(e,"string");return Pe(t)?t:String(t)},Le=F,ke=d.document,We=Le(ke)&&Le(ke.createElement),$e=function(e){return We?ke.createElement(e):{}},ze=$e,De=!v&&!h((function(){return 7!=Object.defineProperty(ze("div"),"a",{get:function(){return 7}}).a})),Be=v,He=g,Ue=x,Ye=A,qe=Me,Xe=ve,Ge=De,Ke=Object.getOwnPropertyDescriptor,Ve=(p.f=Be?Ke:function(e,t){if(e=Ye(e),t=qe(t),Ge)try{return Ke(e,t)}catch(e){}if(Xe(e,t))return Ue(!He.f.call(e,t),e[t])},{}),Je=F,Qe=function(e){if(Je(e))return e;throw TypeError(String(e)+" is not an object")},Ze=v,et=De,tt=Qe,nt=Me,rt=Object.defineProperty,ot=(Ve.f=Ze?rt:function(e,t,n){if(tt(e),t=nt(t),tt(n),et)try{return rt(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(e[t]=n.value),e},Ve),it=x,at=v?function(e,t,n){return ot.f(e,t,it(1,n))}:function(e,t,n){return e[t]=n,e},lt={exports:{}},ct=N,ut=ue,ft=Function.toString;ct(ut.inspectSource)||(ut.inspectSource=function(e){return ft.call(e)});var st,dt,pt,ht=ut.inspectSource,vt=N,gt=ht,yt=d.WeakMap,mt=vt(yt)&&/native code/.test(gt(yt)),bt=ie.exports,xt=me,St=bt("keys"),wt=function(e){return St[e]||(St[e]=xt(e))},Et={},Ot=mt,jt=F,Ct=at,Tt=ve,_t=ue,At=wt,Nt=Et,It=d.WeakMap;if(Ot||_t.state){var Ft=_t.state||(_t.state=new It),Rt=Ft.get,Pt=Ft.has,Mt=Ft.set;st=function(e,t){if(Pt.call(Ft,e))throw new TypeError("Object already initialized");return t.facade=e,Mt.call(Ft,e,t),t},dt=function(e){return Rt.call(Ft,e)||{}},pt=function(e){return Pt.call(Ft,e)}}else{var Lt=At("state");Nt[Lt]=!0,st=function(e,t){if(Tt(e,Lt))throw new TypeError("Object already initialized");return t.facade=e,Ct(e,Lt,t),t},dt=function(e){return Tt(e,Lt)?e[Lt]:{}},pt=function(e){return Tt(e,Lt)}}var kt={set:st,get:dt,has:pt,enforce:function(e){return pt(e)?dt(e):st(e,{})},getterFor:function(e){return function(t){var n;if(!jt(t)||(n=dt(t)).type!==e)throw TypeError("Incompatible receiver, "+e+" required");return n}}},Wt=v,$t=ve,zt=Function.prototype,Dt=Wt&&Object.getOwnPropertyDescriptor,Bt=$t(zt,"name"),Ht={EXISTS:Bt,PROPER:Bt&&"something"===function(){}.name,CONFIGURABLE:Bt&&(!Wt||Wt&&Dt(zt,"name").configurable)},Ut=d,Yt=N,qt=ve,Xt=at,Gt=le,Kt=ht,Vt=Ht.CONFIGURABLE,Jt=kt.get,Qt=kt.enforce,Zt=String(String).split("String");(lt.exports=function(e,t,n,r){var o,i=!!r&&!!r.unsafe,a=!!r&&!!r.enumerable,l=!!r&&!!r.noTargetGet,c=r&&void 0!==r.name?r.name:t;Yt(n)&&("Symbol("===String(c).slice(0,7)&&(c="["+String(c).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!qt(n,"name")||Vt&&n.name!==c)&&Xt(n,"name",c),(o=Qt(n)).source||(o.source=Zt.join("string"==typeof c?c:""))),e!==Ut?(i?!l&&e[t]&&(a=!0):delete e[t],a?e[t]=n:Xt(e,t,n)):a?e[t]=n:Gt(t,n)})(Function.prototype,"toString",(function(){return Yt(this)&&Jt(this).source||Kt(this)})),lt.exports;var en={},tn=Math.ceil,nn=Math.floor,rn=function(e){var t=+e;return t!=t||0===t?0:(t>0?nn:tn)(t)},on=rn,an=Math.max,ln=Math.min,cn=rn,un=Math.min,fn=function(e){return e>0?un(cn(e),9007199254740991):0},sn=fn,dn=function(e){return sn(e.length)},pn=A,hn=dn,vn=function(e){return function(t,n,r){var o,i=pn(t),a=hn(i),l=function(e,t){var n=on(e);return n<0?an(n+t,0):ln(n,t)}(r,a);if(e&&n!=n){for(;a>l;)if((o=i[l++])!=o)return!0}else for(;a>l;l++)if((e||l in i)&&i[l]===n)return e||l||0;return!e&&-1}},gn={includes:vn(!0),indexOf:vn(!1)},yn=ve,mn=A,bn=gn.indexOf,xn=Et,Sn=function(e,t){var n,r=mn(e),o=0,i=[];for(n in r)!yn(xn,n)&&yn(r,n)&&i.push(n);for(;t.length>o;)yn(r,n=t[o++])&&(~bn(i,n)||i.push(n));return i},wn=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],En=Sn,On=wn.concat("length","prototype"),jn=(en.f=Object.getOwnPropertyNames||function(e){return En(e,On)},{}),Cn=(jn.f=Object.getOwnPropertySymbols,en),Tn=jn,_n=Qe,An=L("Reflect","ownKeys")||function(e){var t=Cn.f(_n(e)),n=Tn.f;return n?t.concat(n(e)):t},Nn=ve,In=An,Fn=p,Rn=Ve,Pn=h,Mn=N,Ln=/#|\.prototype\./,kn=function(e,t){var n=$n[Wn(e)];return n==Dn||n!=zn&&(Mn(t)?Pn(t):!!t)},Wn=kn.normalize=function(e){return String(e).replace(Ln,".").toLowerCase()},$n=kn.data={},zn=kn.NATIVE="N",Dn=kn.POLYFILL="P",Bn=kn,Hn=d,Un=p.f,Yn=at,qn=lt.exports,Xn=le,Gn=function(e,t){for(var n=In(t),r=Rn.f,o=Fn.f,i=0;i<n.length;i++){var a=n[i];Nn(e,a)||r(e,a,o(t,a))}},Kn=Bn,Vn=function(e,t){var n,r,o,i,a,l=e.target,c=e.global,u=e.stat;if(n=c?Hn:u?Hn[l]||Xn(l,{}):(Hn[l]||{}).prototype)for(r in t){if(i=t[r],o=e.noTargetGet?(a=Un(n,r))&&a.value:n[r],!Kn(c?r:l+(u?".":"#")+r,e.forced)&&void 0!==o){if(typeof i==typeof o)continue;Gn(i,o)}(e.sham||o&&o.sham)&&Yn(i,"sham",!0),qn(n,r,i,e)}},Jn=Sn,Qn=wn,Zn=Object.keys||function(e){return Jn(e,Qn)},er=v,tr=Zn,nr=A,rr=g.f,or=function(e){return function(t){for(var n,r=nr(t),o=tr(r),i=o.length,a=0,l=[];i>a;)n=o[a++],er&&!rr.call(r,n)||l.push(e?[n,r[n]]:r[n]);return l}},ir=[or(!0),or(!1)][0];Vn({target:"Object",stat:!0},{entries:function(e){return ir(e)}});var ar={};ar[_e("toStringTag")]="z";var lr,cr="[object z]"===String(ar),ur=N,fr=w,sr=_e("toStringTag"),dr="Arguments"==fr(function(){return arguments}()),pr=cr?fr:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=Object(e),sr))?n:dr?fr(t):"Object"==(r=fr(t))&&ur(t.callee)?"Arguments":r},hr=pr,vr=function(e){if("Symbol"===hr(e))throw TypeError("Cannot convert a Symbol value to a string");return String(e)},gr=F,yr=w,mr=_e("match"),br=function(e){var t;return gr(e)&&(void 0!==(t=e[mr])?!!t:"RegExp"==yr(e))},xr=br,Sr=_e("match"),wr=Vn,Er=p.f,Or=fn,jr=vr,Cr=function(e){if(xr(e))throw TypeError("The method doesn't accept regular expressions");return e},Tr=C,_r="".endsWith,Ar=Math.min,Nr=function(e){var t=/./;try{"/./"[e](t)}catch(n){try{return t[Sr]=!1,"/./"[e](t)}catch(e){}}return!1}("endsWith");wr({target:"String",proto:!0,forced:!(!Nr&&(lr=Er(String.prototype,"endsWith"),lr&&!lr.writable)||Nr)},{endsWith:function(e){var t=jr(Tr(this));Cr(e);var n=arguments.length>1?arguments[1]:void 0,r=t.length,o=void 0===n?r:Ar(Or(n),r),i=jr(e);return _r?_r.call(t,i,o):t.slice(o-i.length,o)===i}});var Ir,Fr=Qe,Rr={},Pr=h,Mr=d.RegExp,Lr=(Rr.UNSUPPORTED_Y=Pr((function(){var e=Mr("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),Rr.BROKEN_CARET=Pr((function(){var e=Mr("^r","gy");return e.lastIndex=2,null!=e.exec("str")})),Ve),kr=Qe,Wr=Zn,$r=v?Object.defineProperties:function(e,t){kr(e);for(var n,r=Wr(t),o=r.length,i=0;o>i;)Lr.f(e,n=r[i++],t[n]);return e},zr=L("document","documentElement"),Dr=Qe,Br=$r,Hr=wn,Ur=Et,Yr=zr,qr=$e,Xr=wt("IE_PROTO"),Gr=function(){},Kr=function(e){return"<script>"+e+"<\/script>"},Vr=function(e){e.write(Kr("")),e.close();var t=e.parentWindow.Object;return e=null,t},Jr=function(){try{Ir=new ActiveXObject("htmlfile")}catch(e){}var e,t;Jr="undefined"!=typeof document?document.domain&&Ir?Vr(Ir):((t=qr("iframe")).style.display="none",Yr.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(Kr("document.F=Object")),e.close(),e.F):Vr(Ir);for(var n=Hr.length;n--;)delete Jr.prototype[Hr[n]];return Jr()};Ur[Xr]=!0;var Qr,Zr,eo=Object.create||function(e,t){var n;return null!==e?(Gr.prototype=Dr(e),n=new Gr,Gr.prototype=null,n[Xr]=e):n=Jr(),void 0===t?n:Br(n,t)},to=h,no=d.RegExp,ro=to((function(){var e=no(".","s");return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)})),oo=h,io=d.RegExp,ao=oo((function(){var e=io("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")})),lo=vr,co=function(){var e=Fr(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t},uo=Rr,fo=ie.exports,so=eo,po=kt.get,ho=ro,vo=ao,go=RegExp.prototype.exec,yo=fo("native-string-replace",String.prototype.replace),mo=go,bo=(Qr=/a/,Zr=/b*/g,go.call(Qr,"a"),go.call(Zr,"a"),0!==Qr.lastIndex||0!==Zr.lastIndex),xo=uo.UNSUPPORTED_Y||uo.BROKEN_CARET,So=void 0!==/()??/.exec("")[1];(bo||So||xo||ho||vo)&&(mo=function(e){var t,n,r,o,i,a,l,c=this,u=po(c),f=lo(e),s=u.raw;if(s)return s.lastIndex=c.lastIndex,t=mo.call(s,f),c.lastIndex=s.lastIndex,t;var d=u.groups,p=xo&&c.sticky,h=co.call(c),v=c.source,g=0,y=f;if(p&&(-1===(h=h.replace("y","")).indexOf("g")&&(h+="g"),y=f.slice(c.lastIndex),c.lastIndex>0&&(!c.multiline||c.multiline&&"\n"!==f.charAt(c.lastIndex-1))&&(v="(?: "+v+")",y=" "+y,g++),n=new RegExp("^(?:"+v+")",h)),So&&(n=new RegExp("^"+v+"$(?!\\s)",h)),bo&&(r=c.lastIndex),o=go.call(p?n:c,y),p?o?(o.input=o.input.slice(g),o[0]=o[0].slice(g),o.index=c.lastIndex,c.lastIndex+=o[0].length):c.lastIndex=0:bo&&o&&(c.lastIndex=c.global?o.index+o[0].length:r),So&&o&&o.length>1&&yo.call(o[0],n,(function(){for(i=1;i<arguments.length-2;i++)void 0===arguments[i]&&(o[i]=void 0)})),o&&d)for(o.groups=a=so(null),i=0;i<d.length;i++)a[(l=d[i])[0]]=o[l[1]];return o});var wo=mo;Vn({target:"RegExp",proto:!0,forced:/./.exec!==wo},{exec:wo});var Eo=lt.exports,Oo=wo,jo=h,Co=_e,To=at,_o=Co("species"),Ao=RegExp.prototype,No=function(e,t,n,r){var o=Co(e),i=!jo((function(){var t={};return t[o]=function(){return 7},7!=""[e](t)})),a=i&&!jo((function(){var t=!1,n=/a/;return"split"===e&&((n={}).constructor={},n.constructor[_o]=function(){return n},n.flags="",n[o]=/./[o]),n.exec=function(){return t=!0,null},n[o](""),!t}));if(!i||!a||n){var l=/./[o],c=t(o,""[e],(function(e,t,n,r,o){var a=t.exec;return a===Oo||a===Ao.exec?i&&!o?{done:!0,value:l.call(t,n,r)}:{done:!0,value:e.call(n,t,r)}:{done:!1}}));Eo(String.prototype,e,c[0]),Eo(Ao,o,c[1])}r&&To(Ao[o],"sham",!0)},Io=h,Fo=N,Ro=pr,Po=ht,Mo=[],Lo=L("Reflect","construct"),ko=/^\s*(?:class|function)\b/,Wo=ko.exec,$o=!ko.exec((function(){})),zo=function(e){if(!Fo(e))return!1;try{return Lo(Object,Mo,e),!0}catch(e){return!1}},Do=!Lo||Io((function(){var e;return zo(zo.call)||!zo(Object)||!zo((function(){e=!0}))||e}))?function(e){if(!Fo(e))return!1;switch(Ro(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return $o||!!Wo.call(ko,Po(e))}:zo,Bo=Do,Ho=J,Uo=Qe,Yo=_e("species"),qo=rn,Xo=vr,Go=C,Ko=function(e){return function(t,n){var r,o,i=Xo(Go(t)),a=qo(n),l=i.length;return a<0||a>=l?e?"":void 0:(r=i.charCodeAt(a))<55296||r>56319||a+1===l||(o=i.charCodeAt(a+1))<56320||o>57343?e?i.charAt(a):r:e?i.slice(a,a+2):o-56320+(r-55296<<10)+65536}},Vo=(Ko(!1),Ko(!0)),Jo=function(e,t,n){return t+(n?Vo(e,t).length:1)},Qo=Qe,Zo=N,ei=w,ti=wo,ni=function(e,t){var n=e.exec;if(Zo(n)){var r=n.call(e,t);return null!==r&&Qo(r),r}if("RegExp"===ei(e))return ti.call(e,t);throw TypeError("RegExp#exec called on incompatible receiver")},ri=No,oi=br,ii=Qe,ai=C,li=function(e,t){var n,r=Uo(e).constructor;return void 0===r||null==(n=Uo(r)[Yo])?t:function(e){if(Bo(e))return e;throw TypeError(Ho(e)+" is not a constructor")}(n)},ci=Jo,ui=fn,fi=vr,si=ne,di=ni,pi=wo,hi=h,vi=Rr.UNSUPPORTED_Y,gi=[].push,yi=Math.min;ri("split",(function(e,t,n){var r;return r="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(e,n){var r=fi(ai(this)),o=void 0===n?4294967295:n>>>0;if(0===o)return[];if(void 0===e)return[r];if(!oi(e))return t.call(r,e,o);for(var i,a,l,c=[],u=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),f=0,s=new RegExp(e.source,u+"g");(i=pi.call(s,r))&&!((a=s.lastIndex)>f&&(c.push(r.slice(f,i.index)),i.length>1&&i.index<r.length&&gi.apply(c,i.slice(1)),l=i[0].length,f=a,c.length>=o));)s.lastIndex===i.index&&s.lastIndex++;return f===r.length?!l&&s.test("")||c.push(""):c.push(r.slice(f)),c.length>o?c.slice(0,o):c}:"0".split(void 0,0).length?function(e,n){return void 0===e&&0===n?[]:t.call(this,e,n)}:t,[function(t,n){var o=ai(this),i=null==t?void 0:si(t,e);return i?i.call(t,o,n):r.call(fi(o),t,n)},function(e,o){var i=ii(this),a=fi(e),l=n(r,i,a,o,r!==t);if(l.done)return l.value;var c=li(i,RegExp),u=i.unicode,f=(i.ignoreCase?"i":"")+(i.multiline?"m":"")+(i.unicode?"u":"")+(vi?"g":"y"),s=new c(vi?"^(?:"+i.source+")":i,f),d=void 0===o?4294967295:o>>>0;if(0===d)return[];if(0===a.length)return null===di(s,a)?[a]:[];for(var p=0,h=0,v=[];h<a.length;){s.lastIndex=vi?0:h;var g,y=di(s,vi?a.slice(h):a);if(null===y||(g=yi(ui(s.lastIndex+(vi?h:0)),a.length))===p)h=ci(a,h,u);else{if(v.push(a.slice(p,h)),v.length===d)return v;for(var m=1;m<=y.length-1;m++)if(v.push(y[m]),v.length===d)return v;h=p=g}}return v.push(a.slice(p)),v}]}),!!hi((function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n="ab".split(e);return 2!==n.length||"a"!==n[0]||"b"!==n[1]})),vi);var mi=ee,bi=w,xi=Array.isArray||function(e){return"Array"==bi(e)},Si=Do,wi=F,Ei=_e("species"),Oi=j,ji=de,Ci=dn,Ti=function(e,t){return new(function(e){var t;return xi(e)&&(t=e.constructor,(Si(t)&&(t===Array||xi(t.prototype))||wi(t)&&null===(t=t[Ei]))&&(t=void 0)),void 0===t?Array:t}(e))(0===t?0:t)},_i=[].push,Ai=function(e){var t=1==e,n=2==e,r=3==e,o=4==e,i=6==e,a=7==e,l=5==e||i;return function(c,u,f,s){for(var d,p,h=ji(c),v=Oi(h),g=function(e,t,n){if(mi(e),void 0===t)return e;switch(n){case 0:return function(){return e.call(t)};case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,o){return e.call(t,n,r,o)}}return function(){return e.apply(t,arguments)}}(u,f,3),y=Ci(v),m=0,b=s||Ti,x=t?b(c,y):n||a?b(c,0):void 0;y>m;m++)if((l||m in v)&&(p=g(d=v[m],m,h),e))if(t)x[m]=p;else if(p)switch(e){case 3:return!0;case 5:return d;case 6:return m;case 2:_i.call(x,d)}else switch(e){case 4:return!1;case 7:_i.call(x,d)}return i?-1:r||o?o:x}},Ni={forEach:Ai(0),map:Ai(1),filter:Ai(2),some:Ai(3),every:Ai(4),find:Ai(5),findIndex:Ai(6),filterReject:Ai(7)},Ii=h,Fi=H,Ri=_e("species"),Pi=function(e){return Fi>=51||!Ii((function(){var t=[];return(t.constructor={})[Ri]=function(){return{foo:1}},1!==t[e](Boolean).foo}))},Mi=Ni.map;Vn({target:"Array",proto:!0,forced:!Pi("map")},{map:function(e){return Mi(this,e,arguments.length>1?arguments[1]:void 0)}});var Li=Ni.filter;Vn({target:"Array",proto:!0,forced:!Pi("filter")},{filter:function(e){return Li(this,e,arguments.length>1?arguments[1]:void 0)}});var ki=Qe,Wi=fn,$i=vr,zi=C,Di=ne,Bi=Jo,Hi=ni;No("match",(function(e,t,n){return[function(t){var n=zi(this),r=null==t?void 0:Di(t,e);return r?r.call(t,n):new RegExp(t)[e]($i(n))},function(e){var r=ki(this),o=$i(e),i=n(t,r,o);if(i.done)return i.value;if(!r.global)return Hi(r,o);var a=r.unicode;r.lastIndex=0;for(var l,c=[],u=0;null!==(l=Hi(r,o));){var f=$i(l[0]);c[u]=f,""===f&&(r.lastIndex=Bi(o,Wi(r.lastIndex),a)),u++}return 0===u?null:c}]}));var Ui,Yi=C,qi=vr,Xi="[\t\n\v\f\r                 \u2028\u2029\ufeff]",Gi=RegExp("^"+Xi+Xi+"*"),Ki=RegExp(Xi+Xi+"*$"),Vi=function(e){return function(t){var n=qi(Yi(t));return 1&e&&(n=n.replace(Gi,"")),2&e&&(n=n.replace(Ki,"")),n}},Ji={start:Vi(1),end:Vi(2),trim:Vi(3)},Qi=Ht.PROPER,Zi=Ji.trim;Vn({target:"String",proto:!0,forced:(Ui="trim",h((function(){return!!"\t\n\v\f\r                 \u2028\u2029\ufeff".trim()||"​…᠎"!=="​…᠎".trim()||Qi&&"\t\n\v\f\r                 \u2028\u2029\ufeff".trim.name!==Ui})))},{trim:function(){return Zi(this)}});var ea=function(e,t){for(var n=0,r=Object.entries(t);n<r.length;n++){var i=o(r[n],2),a=i[0],l=i[1];e.style[a]=null==l?"":String(l)}},ta=function(e,t,n,r,o){return function(){var i,a,l,c,u=arguments.length<=0?void 0:arguments[0];if(e?(i=arguments.length<=1?void 0:arguments[1],a=!!(arguments.length<=2?void 0:arguments[2]),l=!!(arguments.length<=3?void 0:arguments[3]),c=!!(arguments.length<=4?void 0:arguments[4])):(a=!!(arguments.length<=1?void 0:arguments[1]),l=!!(arguments.length<=2?void 0:arguments[2]),c=!!(arguments.length<=3?void 0:arguments[3])),u===window)return u.document.documentElement["client".concat(n)];if(9===u.nodeType){var f=u.documentElement,s=u.body;return Math.max(s["scroll".concat(n)],f["scroll".concat(n)],s["offset".concat(n)],f["offset".concat(n)],f["client".concat(n)])}var d,p,h=!1,v=!1;if(!e&&"getBoundingClientRect"in u&&(d=u.getBoundingClientRect()[t],h=!0,v=!0),(void 0===d||c||h!==a||v!==l)&&(p=e?getComputedStyle(u,i):getComputedStyle(u)),void 0===d){var g=p[t];"auto"===g?(d=u["client".concat(n)],h=!0):d=parseFloat(g),"border-box"===p.boxSizing&&(h=!0,v=!0)}if(a!==h){var y=parseFloat(p["padding-".concat(r)]||0)+parseFloat(p["padding-".concat(o)]||0);a?d+=y:d-=y}if(l!==v){var m=parseFloat(p["border-".concat(r,"-width")]||0)+parseFloat(p["border-".concat(o,"-width")]||0);l?d+=m:d-=m}if(d<0&&(d=0),c){var b=parseFloat(p["margin-".concat(r)]||0)+parseFloat(p["margin-".concat(o)]||0);d+=b}return d}},na=function(e,t,n,r){return function(t,o){var i=arguments.length>2&&void 0!==arguments[2]&&arguments[2],a=arguments.length>3&&void 0!==arguments[3]&&arguments[3],l=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(t!==window&&9!==t.nodeType){var c=getComputedStyle(t),u=!1;if("border-box"===c.boxSizing&&(u=!0),i=!!i,a=!!a,(l=!!l)&&(o-=(parseFloat(c["margin-".concat(n)])||0)+(parseFloat(c["margin-".concat(r)])||0)),i!==u){var f=parseFloat(c["padding-".concat(n)]||0)+parseFloat(c["padding-".concat(r)]||0);i?o-=f:o+=f}if(a!==u){var s=(parseFloat(c["border-".concat(n,"-width")])||0)+(parseFloat(c["border-".concat(r,"-width")])||0);a?o-=s:o+=s}o<0&&(o=0),t.style[e]=o+"px"}}},ra=ta(!1,"width","Width","left","right"),oa=ta(!1,"height","Height","top","bottom"),ia=ta(!0,"width","Width","left","right"),aa=ta(!0,"height","Height","top","bottom"),la=na("width",0,"left","right"),ca=na("height",0,"top","bottom"),ua=function(e){if(e){var t=e.endsWith("ms");return parseFloat(e)*(t?1:1e3)}},fa=function(e){return/^-?(0?\.)?\d+m?s$/.test(e)},sa=function(e){var t=e.split(/\s+/),n=t[0],r=t[1],o=t[2],i=t[3];return fa(o)?{delay:ua(o),duration:ua(r),name:n}:{delay:ua(i),duration:ua(r),name:n,timingFunction:o}},da=Object.freeze({__proto__:null,getCssProps:function(e,t){var n,r=getComputedStyle(e),o={},i=l(t);try{for(i.s();!(n=i.n()).done;){var a=n.value,c=r[a];("width"===a||"height"===a)&&"auto"===c&&e instanceof HTMLElement&&(c=e["offset"+a.substr(0,1).toUpperCase()+a.substr(1)],"border-box"!==r.boxSizing&&("width"===a?(c-=parseFloat(r.paddingLeft||0),c-=parseFloat(r.paddingRight||0),c-=parseFloat(r.borderLeftWidth||0),c-=parseFloat(r.borderRightWidth||0)):(c-=parseFloat(r.paddingTop||0),c-=parseFloat(r.paddingBottom||0),c-=parseFloat(r.borderTopWidth||0),c-=parseFloat(r.borderBottomWidth||0)),c<0&&(c=0)),c+="px"),o[a]=c}}catch(e){i.e(e)}finally{i.f()}return o},setCssProps:ea,getElementWidth:ra,getElementHeight:oa,setElementWidth:la,setElementHeight:ca,getPseudoElementWidth:ia,getPseudoElementHeight:aa,getElementOffset:function(e){if(!e.getClientRects().length)return{top:0,left:0};var t=e.getBoundingClientRect(),n=e.ownerDocument.defaultView;return{top:t.top+n.pageYOffset,left:t.left+n.pageXOffset}},anchoredPosition:function(e,t,n,r,o){var i,a,l,c;if(r||(r={width:ra(e,!0,!0),height:ra(e,!0,!0)}),"start"!==t&&"end"!==t||(null==o&&(o="rtl"===getComputedStyle(e).direction),t="start"===t?o?"right":"left":o?"left":"right"),"right"===t)i=r.width,l=0;else if("center"===t)l=i=r.width/2;else if("left"===t)i=0,l=r.width;else if(t&&"string"==typeof t&&"%"===t.charAt(t.length-1)){var u=(parseFloat(t)||0)/100;i=r.width*u,l=r.width*-u,null==o&&(o="rtl"===getComputedStyle(e).direction),o&&(i=r.width-i,l=r.width-i)}else l=-(i=parseFloat(t)||0);if("bottom"===n)a=r.height,c=0;else if("center"===n)c=a=r.height/2;else if("top"===n)a=0,c=r.height;else if(n&&"string"==typeof n&&"%"===n.charAt(n.length-1)){var f=(parseFloat(n)||0)/100;a=r.height*f,c=r.height*-f}else c=-(a=parseFloat(n)||0);return{left:i,top:a,right:l,bottom:c,xSpec:t,ySpec:n}},parseTransition:function(e){return e.match(/([^,()]|\([^)]*\))+/g).map((function(e){return e.trim()})).filter((function(e){return e.length>0})).map(sa)},parseSingleTransition:sa,isTimeString:fa,timeToMs:ua}),pa=function(e,t){for(var n=0,r=Object.entries(t);n<r.length;n++){var i=o(r[n],2),a=i[0],l=i[1];null!=l&&("innerHTML"===a?e.innerHTML=String(l):"css"===a&&"style"in e?ea(e,l):a in e&&"style"!==a?e[a]=l:e.setAttribute(a,String(l)))}},ha=Object.freeze({__proto__:null,createElement:function(t,n,r){var o=document.createElement(t);if(n&&"object"===e(n)&&pa(o,n),r)if(r instanceof Node)o.appendChild(r);else if(Array.isArray(r)){var i,a=l(r);try{for(a.s();!(i=a.n()).done;){var c=i.value;o.appendChild(c)}}catch(e){a.e(e)}finally{a.f()}}return o},setElementAttrs:pa,closestUntil:function(e,t,n){if("closest"in e&&!n)return e.closest(t);var r=Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector;do{if(r.call(e,t))return e;if(n&&e===n)return null;e=e.parentElement||e.parentNode}while(null!==e&&1===e.nodeType);return null},prev:function(e,t){if(!e)return null;var n=Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector;do{if(n.call(e,t))return e;e=e.previousElementSibling||e.previousSibling}while(null!==e&&1===e.nodeType);return null},next:function(e,t){if(!e)return null;var n=Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector;do{if(n.call(e,t))return e;e=e.nextElementSibling||e.nextSibling}while(null!==e&&1===e.nodeType);return null},unwrapChildren:function(e){for(var t=e.parentNode;e.firstChild;)t.insertBefore(e.firstChild,e);t.removeChild(e)}}),va=de,ga=Math.floor,ya="".replace,ma=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,ba=/\$([$&'`]|\d{1,2})/g,xa=No,Sa=h,wa=Qe,Ea=N,Oa=rn,ja=fn,Ca=vr,Ta=C,_a=Jo,Aa=ne,Na=function(e,t,n,r,o,i){var a=n+e.length,l=r.length,c=ba;return void 0!==o&&(o=va(o),c=ma),ya.call(i,c,(function(i,c){var u;switch(c.charAt(0)){case"$":return"$";case"&":return e;case"`":return t.slice(0,n);case"'":return t.slice(a);case"<":u=o[c.slice(1,-1)];break;default:var f=+c;if(0===f)return i;if(f>l){var s=ga(f/10);return 0===s?i:s<=l?void 0===r[s-1]?c.charAt(1):r[s-1]+c.charAt(1):i}u=r[f-1]}return void 0===u?"":u}))},Ia=ni,Fa=_e("replace"),Ra=Math.max,Pa=Math.min,Ma="$0"==="a".replace(/./,"$0"),La=!!/./[Fa]&&""===/./[Fa]("a","$0");xa("replace",(function(e,t,n){var r=La?"$":"$0";return[function(e,n){var r=Ta(this),o=null==e?void 0:Aa(e,Fa);return o?o.call(e,r,n):t.call(Ca(r),e,n)},function(e,o){var i=wa(this),a=Ca(e);if("string"==typeof o&&-1===o.indexOf(r)&&-1===o.indexOf("$<")){var l=n(t,i,a,o);if(l.done)return l.value}var c=Ea(o);c||(o=Ca(o));var u=i.global;if(u){var f=i.unicode;i.lastIndex=0}for(var s=[];;){var d=Ia(i,a);if(null===d)break;if(s.push(d),!u)break;""===Ca(d[0])&&(i.lastIndex=_a(a,ja(i.lastIndex),f))}for(var p,h="",v=0,g=0;g<s.length;g++){d=s[g];for(var y=Ca(d[0]),m=Ra(Pa(Oa(d.index),a.length),0),b=[],x=1;x<d.length;x++)b.push(void 0===(p=d[x])?p:String(p));var S=d.groups;if(c){var w=[y].concat(b,m,a);void 0!==S&&w.push(S);var E=Ca(o.apply(void 0,w))}else E=Na(y,a,m,b,S,o);m>=v&&(h+=a.slice(v,m)+E,v=m+y.length)}return h+a.slice(v)}]}),!!Sa((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")}))||!Ma||La);var ka=null,Wa=function(){try{document.createElement("div").querySelector(":scope > div"),ka=!0}catch(e){ka=!1}},$a=Object.freeze({__proto__:null,getRootNode:function(e){if(!e)return null;if("getRootNode"in e)return e.getRootNode();for(;e.parentNode;)e=e.parentNode;return e},closest:function(e,t){if("closest"in e)return e.closest(t);var n=Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector;do{if(n.call(e,t))return e;e=e.parentElement||e.parentNode}while(null!==e&&1===e.nodeType);return null},remove:function(e){e&&("remove"in e&&e.remove(),e.parentNode&&e.parentNode.removeChild(e))},before:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];if(0!==n.length)if("before"in e)e.before.apply(e,n);else if(1===n.length){var o=n[0],i=o instanceof Node;o=i?o:document.createTextNode(String(o)),e.parentNode.insertBefore(o,e)}else{var a,c=document.createDocumentFragment(),u=l(n);try{for(u.s();!(a=u.n()).done;){var f=a.value,s=f instanceof Node;c.appendChild(s?f:document.createTextNode(String(f)))}}catch(e){u.e(e)}finally{u.f()}e.parentNode.insertBefore(c,e)}},after:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];if(0!==n.length)if("after"in e)e.after.apply(e,n);else if(1===n.length){var o=n[0],i=o instanceof Node;o=i?o:document.createTextNode(String(o)),e.nextSibling?e.parentNode.insertBefore(o,e.nextSibling):e.parentNode.appendChild(o)}else{var a,c=document.createDocumentFragment(),u=l(n);try{for(u.s();!(a=u.n()).done;){var f=a.value,s=f instanceof Node;c.appendChild(s?f:document.createTextNode(String(f)))}}catch(e){u.e(e)}finally{u.f()}e.nextSibling?e.parentNode.insertBefore(c,e.nextSibling):e.parentNode.appendChild(c)}},prepend:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];if(0!==n.length)if("prepend"in e)e.prepend.apply(e,n);else if(1===n.length){var o=n[0],i=o instanceof Node;o=i?o:document.createTextNode(String(o)),e.firstChild?e.insertBefore(o,e.firstChild):e.appendChild(o)}else{var a,c=document.createDocumentFragment(),u=l(n);try{for(u.s();!(a=u.n()).done;){var f=a.value,s=f instanceof Node;c.appendChild(s?f:document.createTextNode(String(f)))}}catch(e){u.e(e)}finally{u.f()}e.firstChild?e.insertBefore(c,e.firstChild):e.appendChild(c)}},append:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];if(0!==n.length)if("append"in e)e.append.apply(e,n);else if(1===n.length){var o=n[0],i=o instanceof Node;o=i?o:document.createTextNode(String(o)),e.appendChild(o)}else{var a,c=document.createDocumentFragment(),u=l(n);try{for(u.s();!(a=u.n()).done;){var f=a.value,s=f instanceof Node;c.appendChild(s?f:document.createTextNode(String(f)))}}catch(e){u.e(e)}finally{u.f()}e.appendChild(c)}},scopedSelector:function(e,t){if(null===ka&&Wa(),!0===ka)return e.querySelector(t.replace(/((?:^|,)\s*)/g,"$1:scope "));var n=e.id,r="ID_"+Date.now();e.id=r,t=t.replace(/((?:^|,)\s*)/g,"$1#"+r);try{return e.querySelector(t)}finally{this.id=n}},scopedSelectorAll:function(e,t){if(null===ka&&Wa(),!0===ka)return e.querySelectorAll(t.replace(/((?:^|,)\s*)/g,"$1:scope "));var n=e.id,r="ID_"+Date.now();e.id=r,t=t.replace(/((?:^|,)\s*)/g,"$1#"+r);try{return e.querySelectorAll(t)}finally{this.id=n}},toggleClass:function(e,t,n){var r=e.classList;return void 0===n?r.contains(t)?(r.remove(t),!1):(r.add(t),!0):n?(r.add(t),!0):(r.remove(t),!1)}}),za=v,Da=Ht.EXISTS,Ba=Ve.f,Ha=Function.prototype,Ua=Ha.toString,Ya=/^\s*function ([^ (]*)/;za&&!Da&&Ba(Ha,"name",{configurable:!0,get:function(){try{return Ua.call(this).match(Ya)[1]}catch(e){return""}}});var qa=function(){function t(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),this._events=[]}var n,o;return n=t,(o=[{key:"add",value:function(t,n,r,o){var i=n.split("."),a=i[0],l=i[1];t.addEventListener(a,r,o||!1);var c=!0===o||"object"===e(o)&&!0===o.capture;return this._events.push({el:t,name:a,namespace:l,handler:r,useCapture:c}),this}},{key:"remove",value:function(t,n,r,o){var i=n?n.split("."):"",a=i[0],c=i[1],u=!0===o||"object"===e(o)&&!0===o.capture,f=[],s=[];if(t||a||c||r||void 0!==o){var d,p=l(this._events);try{for(p.s();!(d=p.n()).done;){var h=d.value;t&&h.el!==t||a&&h.name!==a||c&&h.namespace!==c||r&&h.handler!==r||void 0!==o&&h.useCapture!==u?f.push(h):s.push(h)}}catch(e){p.e(e)}finally{p.f()}}else s=this._events;this._events=f;var v,g=l(s);try{for(g.s();!(v=g.n()).done;){var y=v.value;y.el.removeEventListener(y.name,y.handler,y.useCapture)}}catch(e){g.e(e)}finally{g.f()}return this}}])&&r(n.prototype,o),t}(),Xa=Object.freeze({__proto__:null,default:qa}),Ga=Vn,Ka=Math.hypot,Va=Math.abs,Ja=Math.sqrt;Ga({target:"Math",stat:!0,forced:!!Ka&&Ka(1/0,NaN)!==1/0},{hypot:function(e,t){for(var n,r,o=0,i=0,a=arguments.length,l=0;i<a;)l<(n=Va(arguments[i++]))?(o=o*(r=l/n)*r+1,l=n):o+=n>0?(r=n/l)*r:n;return l===1/0?1/0:l*Ja(o)}});var Qa,Za=Object.freeze({__proto__:null,bindTouchTap:function(e,t){var n=null,r=null,o=function(t){if(null===n){var o=t.changedTouches[0];n=o.identifier,r=o?{x:o.pageX,y:o.pageY}:{x:t.pageX,y:t.pageY},e.addEventListener("touchend",i),e.addEventListener("touchcancel",a)}},i=function(e){if(null!==n){var o=null;if(e.changedTouches){if(null!=n){var i,a=l(e.changedTouches);try{for(a.s();!(i=a.n()).done;){var c=i.value;if(c.identifier===n){o=c;break}}}catch(e){a.e(e)}finally{a.f()}}o||(o=e.changedTouches[0])}var u=o?{x:o.pageX,y:o.pageY}:{x:e.pageX,y:e.pageY},f=r;if(n=null,r=null,null!==t.distance){var s=t.distance||1;if(Math.hypot(Math.abs(u.x-f.x),Math.abs(u.y-f.y))>=s)return!1}t.handler&&t.handler(e)}},a=function t(){n=null,r=null,e.removeEventListener("touchend",i),e.removeEventListener("touchcancel",t)};return e.addEventListener("touchstart",o),{unbind:function(){e.removeEventListener("touchstart",o),e.removeEventListener("touchend",i),e.removeEventListener("touchcancel",a)}}}}),el=v,tl=h,nl=Zn,rl=jn,ol=g,il=de,al=j,ll=Object.assign,cl=Object.defineProperty,ul=!ll||tl((function(){if(el&&1!==ll({b:1},ll(cl({},"a",{enumerable:!0,get:function(){cl(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},n=Symbol(),r="abcdefghijklmnopqrst";return e[n]=7,r.split("").forEach((function(e){t[e]=e})),7!=ll({},e)[n]||nl(ll({},t)).join("")!=r}))?function(e,t){for(var n=il(e),r=arguments.length,o=1,i=rl.f,a=ol.f;r>o;)for(var l,c=al(arguments[o++]),u=i?nl(c).concat(i(c)):nl(c),f=u.length,s=0;f>s;)l=u[s++],el&&!a.call(c,l)||(n[l]=c[l]);return n}:ll;Vn({target:"Object",stat:!0,forced:Object.assign!==ul},{assign:ul});var fl=function(){var e=document.createElement("div");e.dir="rtl",Object.assign(e.style,{direction:"rtl",fontSize:"14px",width:"1px",height:"1px",position:"absolute",top:"-1000px",overflow:"scroll"}),e.textContent="A",document.body.appendChild(e);var t="reverse";return e.scrollLeft>0?t="default":(e.scrollLeft=1,0===Math.floor(e.scrollLeft)&&(t="negative")),e.parentNode.removeChild(e),t};function sl(e,t,n){if(void 0===n&&(n="rtl"===getComputedStyle(e).direction),!0===n&&void 0===Qa&&(Qa=fl()),!n)return t;switch(Qa){case"negative":return t-e.scrollWidth+e.clientWidth;case"reverse":return e.scrollWidth-t-e.clientWidth;default:return t}}function dl(e,t){if(void 0===t&&(t="rtl"===getComputedStyle(e).direction),!0===t&&void 0===Qa&&(Qa=fl()),!t)return e.scrollLeft;switch(Qa){case"negative":return e.scrollLeft+e.scrollWidth-e.clientWidth;case"reverse":return e.scrollWidth-e.scrollLeft-e.clientWidth;default:return e.scrollLeft}}function pl(e,t,n){return void 0===n&&(n="rtl"===getComputedStyle(e).direction),sl(e,n?e.scrollWidth-e.clientWidth-t:t,n)}var hl=Object.freeze({__proto__:null,calculateNativeScrollLeftForLeft:sl,getScrollLeft:dl,setScrollLeft:function(e,t,n){e.scrollLeft=sl(e,t,n)},calculateNativeScrollLeftForHorz:pl,getScrollHorz:function(e,t){return void 0===t&&(t="rtl"===getComputedStyle(e).direction),t?e.scrollWidth-e.clientWidth-dl(e,t):dl(e,t)},setScrollHorz:function(e,t,n){e.scrollLeft=pl(e,t,n)}});exports.Css=da,exports.Dom=ha,exports.DomCompat=$a,exports.DomEventsSink=Xa,exports.ScrollHelper=hl,exports.Touches=Za;
5
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});const e=function(e,t){for(let[n,r]of Object.entries(t))e.style[n]=null==r?"":String(r)},t=function(e,t,n,r,o){return function(){let l,i,s,d,a=arguments.length<=0?void 0:arguments[0];if(e?(l=arguments.length<=1?void 0:arguments[1],i=!!(arguments.length<=2?void 0:arguments[2]),s=!!(arguments.length<=3?void 0:arguments[3]),d=!!(arguments.length<=4?void 0:arguments[4])):(i=!!(arguments.length<=1?void 0:arguments[1]),s=!!(arguments.length<=2?void 0:arguments[2]),d=!!(arguments.length<=3?void 0:arguments[3])),a===window)return a.document.documentElement[`client${n}`];if(9===a.nodeType){const e=a.documentElement,t=a.body;return Math.max(t[`scroll${n}`],e[`scroll${n}`],t[`offset${n}`],e[`offset${n}`],e[`client${n}`])}{let c,p,u=!1,f=!1;if(!e&&"getBoundingClientRect"in a&&(c=a.getBoundingClientRect()[t],u=!0,f=!0),(void 0===c||d||u!==i||f!==s)&&(p=e?getComputedStyle(a,l):getComputedStyle(a)),void 0===c){let e=p[t];"auto"===e?(c=a[`client${n}`],u=!0):c=parseFloat(e),"border-box"===p.boxSizing&&(u=!0,f=!0)}if(i!==u){let e=parseFloat(p[`padding-${r}`]||0)+parseFloat(p[`padding-${o}`]||0);i?c+=e:c-=e}if(s!==f){let e=parseFloat(p[`border-${r}-width`]||0)+parseFloat(p[`border-${o}-width`]||0);s?c+=e:c-=e}return c<0&&(c=0),d&&(c+=parseFloat(p[`margin-${r}`]||0)+parseFloat(p[`margin-${o}`]||0)),c}}},n=(e,t,n,r)=>function(t,o){let l=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=arguments.length>3&&void 0!==arguments[3]&&arguments[3],s=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(t===window)return;if(9===t.nodeType)return;const d=getComputedStyle(t);let a=!1;if("border-box"===d.boxSizing&&(a=!0),l=!!l,i=!!i,s=!!s,s&&(o-=(parseFloat(d[`margin-${n}`])||0)+(parseFloat(d[`margin-${r}`])||0)),l!==a){let e=parseFloat(d[`padding-${n}`]||0)+parseFloat(d[`padding-${r}`]||0);l?o-=e:o+=e}if(i!==a){let e=(parseFloat(d[`border-${n}-width`])||0)+(parseFloat(d[`border-${r}-width`])||0);i?o-=e:o+=e}o<0&&(o=0),t.style[e]=o+"px"},r=t(!1,"width","Width","left","right"),o=t(!1,"height","Height","top","bottom"),l=t(!0,"width","Width","left","right"),i=t(!0,"height","Height","top","bottom"),s=n("width",0,"left","right"),d=n("height",0,"top","bottom"),a=e=>{if(!e)return;let t=e.endsWith("ms");return parseFloat(e)*(t?1:1e3)},c=e=>/^-?(0?\.)?\d+m?s$/.test(e),p=e=>{let t=e.split(/\s+/),n=t[0],r=t[1],o=t[2],l=t[3];return c(o)?{delay:a(o),duration:a(r),name:n}:{delay:a(l),duration:a(r),name:n,timingFunction:o}};var u=Object.freeze({__proto__:null,getCssProps:function(e,t){const n=getComputedStyle(e);let r={};for(let o of t){let t=n[o];("width"===o||"height"===o)&&"auto"===t&&e instanceof HTMLElement&&(t=e["offset"+o.substr(0,1).toUpperCase()+o.substr(1)],"border-box"!==n.boxSizing&&("width"===o?(t-=parseFloat(n.paddingLeft||0),t-=parseFloat(n.paddingRight||0),t-=parseFloat(n.borderLeftWidth||0),t-=parseFloat(n.borderRightWidth||0)):(t-=parseFloat(n.paddingTop||0),t-=parseFloat(n.paddingBottom||0),t-=parseFloat(n.borderTopWidth||0),t-=parseFloat(n.borderBottomWidth||0)),t<0&&(t=0)),t+="px"),r[o]=t}return r},setCssProps:e,getElementWidth:r,getElementHeight:o,setElementWidth:s,setElementHeight:d,getPseudoElementWidth:l,getPseudoElementHeight:i,getElementOffset:e=>{if(!e.getClientRects().length)return{top:0,left:0};let t=e.getBoundingClientRect(),n=e.ownerDocument.defaultView;return{top:t.top+n.pageYOffset,left:t.left+n.pageXOffset}},anchoredPosition:function(e,t,n,o,l){let i,s,d,a;if(o||(o={width:r(e,!0,!0),height:r(e,!0,!0)}),"start"!==t&&"end"!==t||(null==l&&(l="rtl"===getComputedStyle(e).direction),t="start"===t?l?"right":"left":l?"left":"right"),"right"===t)i=o.width,d=0;else if("center"===t)i=o.width/2,d=i;else if("left"===t)i=0,d=o.width;else if(t&&"string"==typeof t&&"%"===t.charAt(t.length-1)){let n=(parseFloat(t)||0)/100;i=o.width*n,d=o.width*-n,null==l&&(l="rtl"===getComputedStyle(e).direction),l&&(i=o.width-i,d=o.width-i)}else i=parseFloat(t)||0,d=-i;if("bottom"===n)s=o.height,a=0;else if("center"===n)s=o.height/2,a=s;else if("top"===n)s=0,a=o.height;else if(n&&"string"==typeof n&&"%"===n.charAt(n.length-1)){let e=(parseFloat(n)||0)/100;s=o.height*e,a=o.height*-e}else s=parseFloat(n)||0,a=-s;return{left:i,top:s,right:d,bottom:a,xSpec:t,ySpec:n}},parseTransition:e=>e?(e.match(/([^,()]|\([^)]*\))+/g)??[]).map((e=>e.trim())).filter((e=>e.length>0)).map(p):[],parseSingleTransition:p,isTimeString:c,timeToMs:a});const f=function(t,n){for(let[r,o]of Object.entries(n))null!=o&&("innerHTML"===r?t.innerHTML=String(o):"css"===r&&"style"in t?e(t,o):r in t&&"style"!==r?t[r]=o:t.setAttribute(r,String(o)))};var h=Object.freeze({__proto__:null,createElement:function(e,t,n){let r=document.createElement(e);if(t&&"object"==typeof t&&f(r,t),n)if(n instanceof Node)r.appendChild(n);else if(Array.isArray(n))for(let e of n)r.appendChild(e);return r},setElementAttrs:f,closestUntil:function(e,t,n){if("closest"in e&&!n)return e.closest(t);const r=Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector;do{if(r.call(e,t))return e;if(n&&e===n)return null;e=e.parentElement||e.parentNode}while(null!==e&&1===e.nodeType);return null},prev:function(e,t){if(!e)return null;const n=Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector;do{if(n.call(e,t))return e;e=e.previousElementSibling||e.previousSibling}while(null!==e&&1===e.nodeType);return null},next:function(e,t){if(!e)return null;const n=Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector;do{if(n.call(e,t))return e;e=e.nextElementSibling||e.nextSibling}while(null!==e&&1===e.nodeType);return null},unwrapChildren:function(e){let t=e.parentNode;for(;e.firstChild;)t.insertBefore(e.firstChild,e);t.removeChild(e)}});let g=null;const m=()=>{try{document.createElement("div").querySelector(":scope > div"),g=!0}catch(e){g=!1}};var v=Object.freeze({__proto__:null,getRootNode:function(e){if(!e)return null;if("getRootNode"in e)return e.getRootNode();for(;e.parentNode;)e=e.parentNode;return e},closest:function(e,t){if("closest"in e)return e.closest(t);const n=Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector;do{if(n.call(e,t))return e;e=e.parentElement||e.parentNode}while(null!==e&&1===e.nodeType);return null},remove:function(e){e&&("remove"in e?e.remove():e.parentNode&&e.parentNode.removeChild(e))},before:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];if(0!==n.length)if("before"in e)e.before(...n);else if(1===n.length){let t=n[0];t=t instanceof Node?t:document.createTextNode(String(t)),e.parentNode.insertBefore(t,e)}else{let t=document.createDocumentFragment();for(const e of n){const n=e instanceof Node;t.appendChild(n?e:document.createTextNode(String(e)))}e.parentNode.insertBefore(t,e)}},after:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];if(0!==n.length)if("after"in e)e.after(...n);else if(1===n.length){let t=n[0];t=t instanceof Node?t:document.createTextNode(String(t)),e.nextSibling?e.parentNode.insertBefore(t,e.nextSibling):e.parentNode.appendChild(t)}else{let t=document.createDocumentFragment();for(const e of n){const n=e instanceof Node;t.appendChild(n?e:document.createTextNode(String(e)))}e.nextSibling?e.parentNode.insertBefore(t,e.nextSibling):e.parentNode.appendChild(t)}},prepend:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];if(0!==n.length)if("prepend"in e)e.prepend(...n);else if(1===n.length){let t=n[0];t=t instanceof Node?t:document.createTextNode(String(t)),e.firstChild?e.insertBefore(t,e.firstChild):e.appendChild(t)}else{let t=document.createDocumentFragment();for(const e of n){const n=e instanceof Node;t.appendChild(n?e:document.createTextNode(String(e)))}e.firstChild?e.insertBefore(t,e.firstChild):e.appendChild(t)}},append:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];if(0!==n.length)if("append"in e)e.append(...n);else if(1===n.length){let t=n[0];t=t instanceof Node?t:document.createTextNode(String(t)),e.appendChild(t)}else{let t=document.createDocumentFragment();for(const e of n){const n=e instanceof Node;t.appendChild(n?e:document.createTextNode(String(e)))}e.appendChild(t)}},scopedSelector:function(e,t){if(null===g&&m(),!0===g)return e.querySelector(t.replace(/((?:^|,)\s*)/g,"$1:scope "));{let n=e.id;const r="ID_"+Date.now();e.id=r,t=t.replace(/((?:^|,)\s*)/g,"$1#"+r);try{return e.querySelector(t)}finally{this.id=n}}},scopedSelectorAll:function(e,t){if(null===g&&m(),!0===g)return e.querySelectorAll(t.replace(/((?:^|,)\s*)/g,"$1:scope "));{let n=e.id;const r="ID_"+Date.now();e.id=r,t=t.replace(/((?:^|,)\s*)/g,"$1#"+r);try{return e.querySelectorAll(t)}finally{this.id=n}}},toggleClass:function(e,t,n){let r=e.classList;return void 0===n?r.contains(t)?(r.remove(t),!1):(r.add(t),!0):n?(r.add(t),!0):(r.remove(t),!1)}}),y=Object.freeze({__proto__:null,default:class{constructor(){this._events=[]}add(e,t,n,r){let o=t.split("."),l=o[0],i=o[1];e.addEventListener(l,n,r||!1);let s=!0===r||"object"==typeof r&&!0===r.capture;return this._events.push({el:e,name:l,namespace:i,handler:n,useCapture:s}),this}remove(e,t,n,r){let o=t?t.split("."):"",l=o[0],i=o[1],s=!0===r||"object"==typeof r&&!0===r.capture,d=[],a=[];if(e||l||i||n||void 0!==r)for(let t of this._events)e&&t.el!==e||l&&t.name!==l||i&&t.namespace!==i||n&&t.handler!==n||void 0!==r&&t.useCapture!==s?d.push(t):a.push(t);else a=this._events;this._events=d;for(let e of a)e.el.removeEventListener(e.name,e.handler,e.useCapture);return this}}}),b=Object.freeze({__proto__:null,bindTouchTap:function(e,t){let n=null,r=null;const o=t=>{if(null!==n)return;let o=t.changedTouches[0];n=o.identifier,r=o?{x:o.pageX,y:o.pageY}:{x:t.pageX,y:t.pageY},e.addEventListener("touchend",l),e.addEventListener("touchcancel",i)},l=e=>{if(null===n)return;let o=null;if(e.changedTouches){if(null!=n)for(let t of e.changedTouches)if(t.identifier===n){o=t;break}o||(o=e.changedTouches[0])}let l=o?{x:o.pageX,y:o.pageY}:{x:e.pageX,y:e.pageY},i=r;if(n=null,r=null,null!==t.distance){let e=t.distance||1;if(Math.hypot(Math.abs(l.x-i.x),Math.abs(l.y-i.y))>=e)return!1}t.handler&&t.handler(e)},i=()=>{n=null,r=null,e.removeEventListener("touchend",l),e.removeEventListener("touchcancel",i)};return e.addEventListener("touchstart",o),{unbind:()=>{e.removeEventListener("touchstart",o),e.removeEventListener("touchend",l),e.removeEventListener("touchcancel",i)}}}});let S;const C=()=>{const e=document.createElement("div");e.dir="rtl",Object.assign(e.style,{direction:"rtl",fontSize:"14px",width:"1px",height:"1px",position:"absolute",top:"-1000px",overflow:"scroll"}),e.textContent="A",document.body.appendChild(e);let t="reverse";return e.scrollLeft>0?t="default":(e.scrollLeft=1,0===Math.floor(e.scrollLeft)&&(t="negative")),e.parentNode.removeChild(e),t};function x(e,t,n){if(void 0===n&&(n="rtl"===getComputedStyle(e).direction),!0===n&&void 0===S&&(S=C()),!n)return t;switch(S){case"negative":return t-e.scrollWidth+e.clientWidth;case"reverse":return e.scrollWidth-t-e.clientWidth;default:return t}}function w(e,t){if(void 0===t&&(t="rtl"===getComputedStyle(e).direction),!0===t&&void 0===S&&(S=C()),!t)return e.scrollLeft;switch(S){case"negative":return e.scrollLeft+e.scrollWidth-e.clientWidth;case"reverse":return e.scrollWidth-e.scrollLeft-e.clientWidth;default:return e.scrollLeft}}function E(e,t,n){return void 0===n&&(n="rtl"===getComputedStyle(e).direction),x(e,n?e.scrollWidth-e.clientWidth-t:t,n)}var N=Object.freeze({__proto__:null,calculateNativeScrollLeftForLeft:x,getScrollLeft:w,setScrollLeft:function(e,t,n){e.scrollLeft=x(e,t,n)},calculateNativeScrollLeftForHorz:E,getScrollHorz:function(e,t){return void 0===t&&(t="rtl"===getComputedStyle(e).direction),t?e.scrollWidth-e.clientWidth-w(e,t):w(e,t)},setScrollHorz:function(e,t,n){e.scrollLeft=E(e,t,n)}});exports.Css=u,exports.Dom=h,exports.DomCompat=v,exports.DomEventsSink=y,exports.ScrollHelper=N,exports.Touches=b;
6
6
 
7
7
  //# sourceMappingURL=lib.cjs.min.js.map