@danielgindi/dom-utils 1.0.8 → 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.
- package/dist/lib.cjs.js +329 -4846
- package/dist/lib.cjs.js.map +1 -1
- package/dist/lib.cjs.min.js +2 -2
- package/dist/lib.cjs.min.js.map +1 -1
- package/dist/lib.es6.js +3 -4
- package/dist/lib.es6.js.map +1 -1
- package/dist/lib.es6.min.js +2 -2
- package/dist/lib.es6.min.js.map +1 -1
- package/dist/lib.umd.js +977 -5494
- package/dist/lib.umd.js.map +1 -1
- package/dist/lib.umd.min.js +2 -2
- package/dist/lib.umd.min.js.map +1 -1
- package/eslint.config.mjs +136 -0
- package/lib/DomCompat.js +2 -3
- package/package.json +14 -13
package/dist/lib.umd.min.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @danielgindi/dom-utils 1.0.
|
|
2
|
+
* @danielgindi/dom-utils 1.0.9
|
|
3
3
|
* git://github.com/danielgindi/dom-utils.git
|
|
4
4
|
*/
|
|
5
|
-
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).domutils={})}(this,(function(e){"use strict";function t(e){return(t="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})(e)}function n(e){this.wrapped=e}function r(e){var t,r;function o(t,r){try{var a=e[t](r),u=a.value,c=u instanceof n;Promise.resolve(c?u.wrapped:u).then((function(e){c?o("return"===t?"return":"next",e):i(a.done?"return":"normal",e)}),(function(e){o("throw",e)}))}catch(e){i("throw",e)}}function i(e,n){switch(e){case"return":t.resolve({value:n,done:!0});break;case"throw":t.reject(n);break;default:t.resolve({value:n,done:!1})}(t=t.next)?o(t.key,t.arg):r=null}this._invoke=function(e,n){return new Promise((function(i,a){var u={key:e,arg:n,resolve:i,reject:a,next:null};r?r=r.next=u:(t=r=u,o(e,n))}))},"function"!=typeof e.return&&(this.return=void 0)}function o(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 i(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,u=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){u=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(u)throw o}}return i}}(e,t)||a(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 a(e,t){if(e){if("string"==typeof e)return u(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)?u(e,t):void 0}}function u(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 c(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=a(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 i,u=!0,c=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return u=e.done,e},e:function(e){c=!0,i=e},f:function(){try{u||null==n.return||n.return()}finally{if(c)throw i}}}}r.prototype["function"==typeof Symbol&&Symbol.asyncIterator||"@@asyncIterator"]=function(){return this},r.prototype.next=function(e){return this._invoke("next",e)},r.prototype.throw=function(e){return this._invoke("throw",e)},r.prototype.return=function(e){return this._invoke("return",e)};var l,f,s="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},d=function(e){return e&&e.Math==Math&&e},p=d("object"==typeof globalThis&&globalThis)||d("object"==typeof window&&window)||d("object"==typeof self&&self)||d("object"==typeof s&&s)||function(){return this}()||Function("return this")(),h={},v=function(e){try{return!!e()}catch(e){return!0}},g=!v((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),y=!v((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")})),m=y,b=Function.prototype.call,S=m?b.bind(b):function(){return b.apply(b,arguments)},x={},w={}.propertyIsEnumerable,E=Object.getOwnPropertyDescriptor,O=E&&!w.call({1:2},1),j=(x.f=O?function(e){var t=E(this,e);return!!t&&t.enumerable}:w,function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}),C=y,T=Function.prototype,F=T.bind,I=T.call,N=C&&F.bind(I,I),_=C?function(e){return e&&N(e)}:function(e){return e&&function(){return I.apply(e,arguments)}},A=_,R=A({}.toString),P=A("".slice),M=function(e){return P(R(e),8,-1)},L=_,k=v,W=M,$=p.Object,z=L("".split),D=k((function(){return!$("z").propertyIsEnumerable(0)}))?function(e){return"String"==W(e)?z(e,""):$(e)}:$,B=p.TypeError,H=function(e){if(null==e)throw B("Can't call method on "+e);return e},U=D,Y=H,q=function(e){return U(Y(e))},X=function(e){return"function"==typeof e},G=X,K=function(e){return"object"==typeof e?null!==e:G(e)},V=p,J=X,Q=function(e){return J(e)?e:void 0},Z=function(e,t){return arguments.length<2?Q(V[e]):V[e]&&V[e][t]},ee=_({}.isPrototypeOf),te=p,ne=Z("navigator","userAgent")||"",re=te.process,oe=te.Deno,ie=re&&re.versions||oe&&oe.version,ae=ie&&ie.v8;ae&&(f=(l=ae.split("."))[0]>0&&l[0]<4?1:+(l[0]+l[1])),!f&&ne&&(!(l=ne.match(/Edge\/(\d+)/))||l[1]>=74)&&(l=ne.match(/Chrome\/(\d+)/))&&(f=+l[1]);var ue=f,ce=ue,le=v,fe=!!Object.getOwnPropertySymbols&&!le((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&ce&&ce<41})),se=fe&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,de=Z,pe=X,he=ee,ve=se,ge=p.Object,ye=ve?function(e){return"symbol"==typeof e}:function(e){var t=de("Symbol");return pe(t)&&he(t.prototype,ge(e))},me=p.String,be=function(e){try{return me(e)}catch(e){return"Object"}},Se=X,xe=be,we=p.TypeError,Ee=function(e){if(Se(e))return e;throw we(xe(e)+" is not a function")},Oe=Ee,je=function(e,t){var n=e[t];return null==n?void 0:Oe(n)},Ce=S,Te=X,Fe=K,Ie=p.TypeError,Ne={exports:{}},_e=p,Ae=Object.defineProperty,Re=function(e,t){try{Ae(_e,e,{value:t,configurable:!0,writable:!0})}catch(n){_e[e]=t}return t},Pe=Re,Me="__core-js_shared__",Le=p[Me]||Pe(Me,{}),ke=Le;(Ne.exports=function(e,t){return ke[e]||(ke[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.21.1",mode:"global",copyright:"© 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.21.1/LICENSE",source:"https://github.com/zloirock/core-js"}),Ne.exports;var We=H,$e=p.Object,ze=function(e){return $e(We(e))},De=ze,Be=_({}.hasOwnProperty),He=Object.hasOwn||function(e,t){return Be(De(e),t)},Ue=_,Ye=0,qe=Math.random(),Xe=Ue(1..toString),Ge=function(e){return"Symbol("+(void 0===e?"":e)+")_"+Xe(++Ye+qe,36)},Ke=p,Ve=Ne.exports,Je=He,Qe=Ge,Ze=fe,et=se,tt=Ve("wks"),nt=Ke.Symbol,rt=nt&&nt.for,ot=et?nt:nt&&nt.withoutSetter||Qe,it=function(e){if(!Je(tt,e)||!Ze&&"string"!=typeof tt[e]){var t="Symbol."+e;Ze&&Je(nt,e)?tt[e]=nt[e]:tt[e]=et&&rt?rt(t):ot(t)}return tt[e]},at=S,ut=K,ct=ye,lt=je,ft=it,st=p.TypeError,dt=ft("toPrimitive"),pt=function(e,t){if(!ut(e)||ct(e))return e;var n,r=lt(e,dt);if(r){if(void 0===t&&(t="default"),n=at(r,e,t),!ut(n)||ct(n))return n;throw st("Can't convert object to primitive value")}return void 0===t&&(t="number"),function(e,t){var n,r;if("string"===t&&Te(n=e.toString)&&!Fe(r=Ce(n,e)))return r;if(Te(n=e.valueOf)&&!Fe(r=Ce(n,e)))return r;if("string"!==t&&Te(n=e.toString)&&!Fe(r=Ce(n,e)))return r;throw Ie("Can't convert object to primitive value")}(e,t)},ht=ye,vt=function(e){var t=pt(e,"string");return ht(t)?t:t+""},gt=K,yt=p.document,mt=gt(yt)&>(yt.createElement),bt=function(e){return mt?yt.createElement(e):{}},St=bt,xt=!g&&!v((function(){return 7!=Object.defineProperty(St("div"),"a",{get:function(){return 7}}).a})),wt=g,Et=S,Ot=x,jt=j,Ct=q,Tt=vt,Ft=He,It=xt,Nt=Object.getOwnPropertyDescriptor,_t=(h.f=wt?Nt:function(e,t){if(e=Ct(e),t=Tt(t),It)try{return Nt(e,t)}catch(e){}if(Ft(e,t))return jt(!Et(Ot.f,e,t),e[t])},{}),At=g&&v((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),Rt=p,Pt=K,Mt=Rt.String,Lt=Rt.TypeError,kt=function(e){if(Pt(e))return e;throw Lt(Mt(e)+" is not an object")},Wt=g,$t=xt,zt=At,Dt=kt,Bt=vt,Ht=p.TypeError,Ut=Object.defineProperty,Yt=Object.getOwnPropertyDescriptor,qt=(_t.f=Wt?zt?function(e,t,n){if(Dt(e),t=Bt(t),Dt(n),"function"==typeof e&&"prototype"===t&&"value"in n&&"writable"in n&&!n.writable){var r=Yt(e,t);r&&r.writable&&(e[t]=n.value,n={configurable:"configurable"in n?n.configurable:r.configurable,enumerable:"enumerable"in n?n.enumerable:r.enumerable,writable:!1})}return Ut(e,t,n)}:Ut:function(e,t,n){if(Dt(e),t=Bt(t),Dt(n),$t)try{return Ut(e,t,n)}catch(e){}if("get"in n||"set"in n)throw Ht("Accessors not supported");return"value"in n&&(e[t]=n.value),e},_t),Xt=j,Gt=g?function(e,t,n){return qt.f(e,t,Xt(1,n))}:function(e,t,n){return e[t]=n,e},Kt={exports:{}},Vt=X,Jt=Le,Qt=_(Function.toString);Vt(Jt.inspectSource)||(Jt.inspectSource=function(e){return Qt(e)});var Zt,en,tn,nn=Jt.inspectSource,rn=X,on=nn,an=p.WeakMap,un=rn(an)&&/native code/.test(on(an)),cn=Ne.exports,ln=Ge,fn=cn("keys"),sn=function(e){return fn[e]||(fn[e]=ln(e))},dn={},pn=un,hn=p,vn=_,gn=K,yn=Gt,mn=He,bn=Le,Sn=sn,xn=dn,wn="Object already initialized",En=hn.TypeError,On=hn.WeakMap;if(pn||bn.state){var jn=bn.state||(bn.state=new On),Cn=vn(jn.get),Tn=vn(jn.has),Fn=vn(jn.set);Zt=function(e,t){if(Tn(jn,e))throw new En(wn);return t.facade=e,Fn(jn,e,t),t},en=function(e){return Cn(jn,e)||{}},tn=function(e){return Tn(jn,e)}}else{var In=Sn("state");xn[In]=!0,Zt=function(e,t){if(mn(e,In))throw new En(wn);return t.facade=e,yn(e,In,t),t},en=function(e){return mn(e,In)?e[In]:{}},tn=function(e){return mn(e,In)}}var Nn={set:Zt,get:en,has:tn,enforce:function(e){return tn(e)?en(e):Zt(e,{})},getterFor:function(e){return function(t){var n;if(!gn(t)||(n=en(t)).type!==e)throw En("Incompatible receiver, "+e+" required");return n}}},_n=g,An=He,Rn=Function.prototype,Pn=_n&&Object.getOwnPropertyDescriptor,Mn=An(Rn,"name"),Ln={EXISTS:Mn,PROPER:Mn&&"something"===function(){}.name,CONFIGURABLE:Mn&&(!_n||_n&&Pn(Rn,"name").configurable)},kn=p,Wn=X,$n=He,zn=Gt,Dn=Re,Bn=nn,Hn=Ln.CONFIGURABLE,Un=Nn.get,Yn=Nn.enforce,qn=String(String).split("String");(Kt.exports=function(e,t,n,r){var o,i=!!r&&!!r.unsafe,a=!!r&&!!r.enumerable,u=!!r&&!!r.noTargetGet,c=r&&void 0!==r.name?r.name:t;Wn(n)&&("Symbol("===String(c).slice(0,7)&&(c="["+String(c).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!$n(n,"name")||Hn&&n.name!==c)&&zn(n,"name",c),(o=Yn(n)).source||(o.source=qn.join("string"==typeof c?c:""))),e!==kn?(i?!u&&e[t]&&(a=!0):delete e[t],a?e[t]=n:zn(e,t,n)):a?e[t]=n:Dn(t,n)})(Function.prototype,"toString",(function(){return Wn(this)&&Un(this).source||Bn(this)})),Kt.exports;var Xn={},Gn=Math.ceil,Kn=Math.floor,Vn=function(e){var t=+e;return t!=t||0===t?0:(t>0?Kn:Gn)(t)},Jn=Vn,Qn=Math.max,Zn=Math.min,er=function(e,t){var n=Jn(e);return n<0?Qn(n+t,0):Zn(n,t)},tr=Vn,nr=Math.min,rr=function(e){return e>0?nr(tr(e),9007199254740991):0},or=rr,ir=function(e){return or(e.length)},ar=q,ur=er,cr=ir,lr=function(e){return function(t,n,r){var o,i=ar(t),a=cr(i),u=ur(r,a);if(e&&n!=n){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((e||u in i)&&i[u]===n)return e||u||0;return!e&&-1}},fr={includes:lr(!0),indexOf:lr(!1)},sr=He,dr=q,pr=fr.indexOf,hr=dn,vr=_([].push),gr=function(e,t){var n,r=dr(e),o=0,i=[];for(n in r)!sr(hr,n)&&sr(r,n)&&vr(i,n);for(;t.length>o;)sr(r,n=t[o++])&&(~pr(i,n)||vr(i,n));return i},yr=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],mr=gr,br=yr.concat("length","prototype"),Sr=(Xn.f=Object.getOwnPropertyNames||function(e){return mr(e,br)},{}),xr=(Sr.f=Object.getOwnPropertySymbols,Z),wr=Xn,Er=Sr,Or=kt,jr=_([].concat),Cr=xr("Reflect","ownKeys")||function(e){var t=wr.f(Or(e)),n=Er.f;return n?jr(t,n(e)):t},Tr=He,Fr=Cr,Ir=h,Nr=_t,_r=v,Ar=X,Rr=/#|\.prototype\./,Pr=function(e,t){var n=Lr[Mr(e)];return n==Wr||n!=kr&&(Ar(t)?_r(t):!!t)},Mr=Pr.normalize=function(e){return String(e).replace(Rr,".").toLowerCase()},Lr=Pr.data={},kr=Pr.NATIVE="N",Wr=Pr.POLYFILL="P",$r=Pr,zr=p,Dr=h.f,Br=Gt,Hr=Kt.exports,Ur=Re,Yr=function(e,t,n){for(var r=Fr(t),o=Nr.f,i=Ir.f,a=0;a<r.length;a++){var u=r[a];Tr(e,u)||n&&Tr(n,u)||o(e,u,i(t,u))}},qr=$r,Xr=function(e,t){var n,r,o,i,a,u=e.target,c=e.global,l=e.stat;if(n=c?zr:l?zr[u]||Ur(u,{}):(zr[u]||{}).prototype)for(r in t){if(i=t[r],o=e.noTargetGet?(a=Dr(n,r))&&a.value:n[r],!qr(c?r:u+(l?".":"#")+r,e.forced)&&void 0!==o){if(typeof i==typeof o)continue;Yr(i,o)}(e.sham||o&&o.sham)&&Br(i,"sham",!0),Hr(n,r,i,e)}},Gr={};Gr[it("toStringTag")]="z";var Kr="[object z]"===String(Gr),Vr=p,Jr=Kr,Qr=X,Zr=M,eo=it("toStringTag"),to=Vr.Object,no="Arguments"==Zr(function(){return arguments}()),ro=Jr?Zr: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=to(e),eo))?n:no?Zr(t):"Object"==(r=Zr(t))&&Qr(t.callee)?"Arguments":r},oo=ro,io=p.String,ao=function(e){if("Symbol"===oo(e))throw TypeError("Cannot convert a Symbol value to a string");return io(e)},uo=H,co=ao,lo=_("".replace),fo="[\t\n\v\f\r \u2028\u2029\ufeff]",so=RegExp("^"+fo+fo+"*"),po=RegExp(fo+fo+"*$"),ho=function(e){return function(t){var n=co(uo(t));return 1&e&&(n=lo(n,so,"")),2&e&&(n=lo(n,po,"")),n}},vo={start:ho(1),end:ho(2),trim:ho(3)},go=p,yo=v,mo=ao,bo=vo.trim,So=_("".charAt),xo=go.parseFloat,wo=go.Symbol,Eo=wo&&wo.iterator,Oo=1/xo("\t\n\v\f\r \u2028\u2029\ufeff-0")!=-1/0||Eo&&!yo((function(){xo(Object(Eo))}))?function(e){var t=bo(mo(e)),n=xo(t);return 0===n&&"-"==So(t,0)?-0:n}:xo;Xr({global:!0,forced:parseFloat!=Oo},{parseFloat:Oo});var jo=gr,Co=yr,To=Object.keys||function(e){return jo(e,Co)},Fo=g,Io=_,No=To,_o=q,Ao=Io(x.f),Ro=Io([].push),Po=function(e){return function(t){for(var n,r=_o(t),o=No(r),i=o.length,a=0,u=[];i>a;)n=o[a++],Fo&&!Ao(r,n)||Ro(u,e?[n,r[n]]:r[n]);return u}},Mo=[Po(!0),Po(!1)][0];Xr({target:"Object",stat:!0},{entries:function(e){return Mo(e)}});var Lo,ko=K,Wo=M,$o=it("match"),zo=function(e){var t;return ko(e)&&(void 0!==(t=e[$o])?!!t:"RegExp"==Wo(e))},Do=zo,Bo=p.TypeError,Ho=it("match"),Uo=Xr,Yo=_,qo=h.f,Xo=rr,Go=ao,Ko=function(e){if(Do(e))throw Bo("The method doesn't accept regular expressions");return e},Vo=H,Jo=Yo("".endsWith),Qo=Yo("".slice),Zo=Math.min,ei=function(e){var t=/./;try{"/./"[e](t)}catch(n){try{return t[Ho]=!1,"/./"[e](t)}catch(e){}}return!1}("endsWith");Uo({target:"String",proto:!0,forced:!(!ei&&(Lo=qo(String.prototype,"endsWith"),Lo&&!Lo.writable)||ei)},{endsWith:function(e){var t=Go(Vo(this));Ko(e);var n=arguments.length>1?arguments[1]:void 0,r=t.length,o=void 0===n?r:Zo(Xo(n),r),i=Go(e);return Jo?Jo(t,i,o):Qo(t,o-i.length,o)===i}});var ti,ni=kt,ri=v,oi=p.RegExp,ii=ri((function(){var e=oi("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),ai=ii||ri((function(){return!oi("a","y").sticky})),ui={BROKEN_CARET:ii||ri((function(){var e=oi("^r","gy");return e.lastIndex=2,null!=e.exec("str")})),MISSED_STICKY:ai,UNSUPPORTED_Y:ii},ci={},li=g,fi=At,si=_t,di=kt,pi=q,hi=To,vi=(ci.f=li&&!fi?Object.defineProperties:function(e,t){di(e);for(var n,r=pi(t),o=hi(t),i=o.length,a=0;i>a;)si.f(e,n=o[a++],r[n]);return e},Z("document","documentElement")),gi=kt,yi=ci,mi=yr,bi=dn,Si=vi,xi=bt,wi=sn("IE_PROTO"),Ei=function(){},Oi=function(e){return"<script>"+e+"<\/script>"},ji=function(e){e.write(Oi("")),e.close();var t=e.parentWindow.Object;return e=null,t},Ci=function(){try{ti=new ActiveXObject("htmlfile")}catch(e){}var e,t;Ci="undefined"!=typeof document?document.domain&&ti?ji(ti):((t=xi("iframe")).style.display="none",Si.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(Oi("document.F=Object")),e.close(),e.F):ji(ti);for(var n=mi.length;n--;)delete Ci.prototype[mi[n]];return Ci()};bi[wi]=!0;var Ti,Fi,Ii=Object.create||function(e,t){var n;return null!==e?(Ei.prototype=gi(e),n=new Ei,Ei.prototype=null,n[wi]=e):n=Ci(),void 0===t?n:yi.f(n,t)},Ni=v,_i=p.RegExp,Ai=Ni((function(){var e=_i(".","s");return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)})),Ri=v,Pi=p.RegExp,Mi=Ri((function(){var e=Pi("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")})),Li=S,ki=_,Wi=ao,$i=function(){var e=ni(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},zi=ui,Di=Ne.exports,Bi=Ii,Hi=Nn.get,Ui=Ai,Yi=Mi,qi=Di("native-string-replace",String.prototype.replace),Xi=RegExp.prototype.exec,Gi=Xi,Ki=ki("".charAt),Vi=ki("".indexOf),Ji=ki("".replace),Qi=ki("".slice),Zi=(Fi=/b*/g,Li(Xi,Ti=/a/,"a"),Li(Xi,Fi,"a"),0!==Ti.lastIndex||0!==Fi.lastIndex),ea=zi.BROKEN_CARET,ta=void 0!==/()??/.exec("")[1];(Zi||ta||ea||Ui||Yi)&&(Gi=function(e){var t,n,r,o,i,a,u,c=this,l=Hi(c),f=Wi(e),s=l.raw;if(s)return s.lastIndex=c.lastIndex,t=Li(Gi,s,f),c.lastIndex=s.lastIndex,t;var d=l.groups,p=ea&&c.sticky,h=Li($i,c),v=c.source,g=0,y=f;if(p&&(h=Ji(h,"y",""),-1===Vi(h,"g")&&(h+="g"),y=Qi(f,c.lastIndex),c.lastIndex>0&&(!c.multiline||c.multiline&&"\n"!==Ki(f,c.lastIndex-1))&&(v="(?: "+v+")",y=" "+y,g++),n=new RegExp("^(?:"+v+")",h)),ta&&(n=new RegExp("^"+v+"$(?!\\s)",h)),Zi&&(r=c.lastIndex),o=Li(Xi,p?n:c,y),p?o?(o.input=Qi(o.input,g),o[0]=Qi(o[0],g),o.index=c.lastIndex,c.lastIndex+=o[0].length):c.lastIndex=0:Zi&&o&&(c.lastIndex=c.global?o.index+o[0].length:r),ta&&o&&o.length>1&&Li(qi,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=Bi(null),i=0;i<d.length;i++)a[(u=d[i])[0]]=o[u[1]];return o});var na=Gi;Xr({target:"RegExp",proto:!0,forced:/./.exec!==na},{exec:na});var ra=y,oa=Function.prototype,ia=oa.apply,aa=oa.call,ua="object"==typeof Reflect&&Reflect.apply||(ra?aa.bind(ia):function(){return aa.apply(ia,arguments)}),ca=_,la=Kt.exports,fa=na,sa=v,da=it,pa=Gt,ha=da("species"),va=RegExp.prototype,ga=function(e,t,n,r){var o=da(e),i=!sa((function(){var t={};return t[o]=function(){return 7},7!=""[e](t)})),a=i&&!sa((function(){var t=!1,n=/a/;return"split"===e&&((n={}).constructor={},n.constructor[ha]=function(){return n},n.flags="",n[o]=/./[o]),n.exec=function(){return t=!0,null},n[o](""),!t}));if(!i||!a||n){var u=ca(/./[o]),c=t(o,""[e],(function(e,t,n,r,o){var a=ca(e),c=t.exec;return c===fa||c===va.exec?i&&!o?{done:!0,value:u(t,n,r)}:{done:!0,value:a(n,t,r)}:{done:!1}}));la(String.prototype,e,c[0]),la(va,o,c[1])}r&&pa(va[o],"sham",!0)},ya=_,ma=v,ba=X,Sa=ro,xa=nn,wa=function(){},Ea=[],Oa=Z("Reflect","construct"),ja=/^\s*(?:class|function)\b/,Ca=ya(ja.exec),Ta=!ja.exec(wa),Fa=function(e){if(!ba(e))return!1;try{return Oa(wa,Ea,e),!0}catch(e){return!1}},Ia=function(e){if(!ba(e))return!1;switch(Sa(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return Ta||!!Ca(ja,xa(e))}catch(e){return!0}};Ia.sham=!0;var Na=!Oa||ma((function(){var e;return Fa(Fa.call)||!Fa(Object)||!Fa((function(){e=!0}))||e}))?Ia:Fa,_a=Na,Aa=be,Ra=p.TypeError,Pa=kt,Ma=it("species"),La=_,ka=Vn,Wa=ao,$a=H,za=La("".charAt),Da=La("".charCodeAt),Ba=La("".slice),Ha=function(e){return function(t,n){var r,o,i=Wa($a(t)),a=ka(n),u=i.length;return a<0||a>=u?e?"":void 0:(r=Da(i,a))<55296||r>56319||a+1===u||(o=Da(i,a+1))<56320||o>57343?e?za(i,a):r:e?Ba(i,a,a+2):o-56320+(r-55296<<10)+65536}},Ua=(Ha(!1),Ha(!0)),Ya=function(e,t,n){return t+(n?Ua(e,t).length:1)},qa=vt,Xa=_t,Ga=j,Ka=er,Va=ir,Ja=p.Array,Qa=Math.max,Za=S,eu=kt,tu=X,nu=M,ru=na,ou=p.TypeError,iu=function(e,t){var n=e.exec;if(tu(n)){var r=Za(n,e,t);return null!==r&&eu(r),r}if("RegExp"===nu(e))return Za(ru,e,t);throw ou("RegExp#exec called on incompatible receiver")},au=ua,uu=S,cu=_,lu=ga,fu=zo,su=kt,du=H,pu=function(e,t){var n,r=Pa(e).constructor;return void 0===r||null==(n=Pa(r)[Ma])?t:function(e){if(_a(e))return e;throw Ra(Aa(e)+" is not a constructor")}(n)},hu=Ya,vu=rr,gu=ao,yu=je,mu=function(e,t,n){for(var r=Va(e),o=Ka(t,r),i=Ka(void 0===n?r:n,r),a=Ja(Qa(i-o,0)),u=0;o<i;o++,u++)c=a,l=u,f=e[o],s=void 0,(s=qa(l))in c?Xa.f(c,s,Ga(0,f)):c[s]=f;var c,l,f,s;return a.length=u,a},bu=iu,Su=na,xu=v,wu=ui.UNSUPPORTED_Y,Eu=4294967295,Ou=Math.min,ju=[].push,Cu=cu(/./.exec),Tu=cu(ju),Fu=cu("".slice);lu("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=gu(du(this)),o=void 0===n?Eu:n>>>0;if(0===o)return[];if(void 0===e)return[r];if(!fu(e))return uu(t,r,e,o);for(var i,a,u,c=[],l=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),f=0,s=new RegExp(e.source,l+"g");(i=uu(Su,s,r))&&!((a=s.lastIndex)>f&&(Tu(c,Fu(r,f,i.index)),i.length>1&&i.index<r.length&&au(ju,c,mu(i,1)),u=i[0].length,f=a,c.length>=o));)s.lastIndex===i.index&&s.lastIndex++;return f===r.length?!u&&Cu(s,"")||Tu(c,""):Tu(c,Fu(r,f)),c.length>o?mu(c,0,o):c}:"0".split(void 0,0).length?function(e,n){return void 0===e&&0===n?[]:uu(t,this,e,n)}:t,[function(t,n){var o=du(this),i=null==t?void 0:yu(t,e);return i?uu(i,t,o,n):uu(r,gu(o),t,n)},function(e,o){var i=su(this),a=gu(e),u=n(r,i,a,o,r!==t);if(u.done)return u.value;var c=pu(i,RegExp),l=i.unicode,f=(i.ignoreCase?"i":"")+(i.multiline?"m":"")+(i.unicode?"u":"")+(wu?"g":"y"),s=new c(wu?"^(?:"+i.source+")":i,f),d=void 0===o?Eu:o>>>0;if(0===d)return[];if(0===a.length)return null===bu(s,a)?[a]:[];for(var p=0,h=0,v=[];h<a.length;){s.lastIndex=wu?0:h;var g,y=bu(s,wu?Fu(a,h):a);if(null===y||(g=Ou(vu(s.lastIndex+(wu?h:0)),a.length))===p)h=hu(a,h,l);else{if(Tu(v,Fu(a,p,h)),v.length===d)return v;for(var m=1;m<=y.length-1;m++)if(Tu(v,y[m]),v.length===d)return v;h=p=g}}return Tu(v,Fu(a,p)),v}]}),!!xu((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]})),wu);var Iu=Ee,Nu=y,_u=_(_.bind),Au=M,Ru=p,Pu=Array.isArray||function(e){return"Array"==Au(e)},Mu=Na,Lu=K,ku=it("species"),Wu=Ru.Array,$u=D,zu=ze,Du=ir,Bu=function(e,t){return new(function(e){var t;return Pu(e)&&(t=e.constructor,(Mu(t)&&(t===Wu||Pu(t.prototype))||Lu(t)&&null===(t=t[ku]))&&(t=void 0)),void 0===t?Wu:t}(e))(0===t?0:t)},Hu=_([].push),Uu=function(e){var t=1==e,n=2==e,r=3==e,o=4==e,i=6==e,a=7==e,u=5==e||i;return function(c,l,f,s){for(var d,p,h=zu(c),v=$u(h),g=function(e,t){return Iu(e),void 0===t?e:Nu?_u(e,t):function(){return e.apply(t,arguments)}}(l,f),y=Du(v),m=0,b=s||Bu,S=t?b(c,y):n||a?b(c,0):void 0;y>m;m++)if((u||m in v)&&(p=g(d=v[m],m,h),e))if(t)S[m]=p;else if(p)switch(e){case 3:return!0;case 5:return d;case 6:return m;case 2:Hu(S,d)}else switch(e){case 4:return!1;case 7:Hu(S,d)}return i?-1:r||o?o:S}},Yu={forEach:Uu(0),map:Uu(1),filter:Uu(2),some:Uu(3),every:Uu(4),find:Uu(5),findIndex:Uu(6),filterReject:Uu(7)},qu=v,Xu=ue,Gu=it("species"),Ku=function(e){return Xu>=51||!qu((function(){var t=[];return(t.constructor={})[Gu]=function(){return{foo:1}},1!==t[e](Boolean).foo}))},Vu=Yu.map;Xr({target:"Array",proto:!0,forced:!Ku("map")},{map:function(e){return Vu(this,e,arguments.length>1?arguments[1]:void 0)}});var Ju=Yu.filter;Xr({target:"Array",proto:!0,forced:!Ku("filter")},{filter:function(e){return Ju(this,e,arguments.length>1?arguments[1]:void 0)}});var Qu=ro,Zu=Kr?{}.toString:function(){return"[object "+Qu(this)+"]"},ec=Kr,tc=Kt.exports,nc=Zu;ec||tc(Object.prototype,"toString",nc,{unsafe:!0});var rc=S,oc=kt,ic=rr,ac=ao,uc=H,cc=je,lc=Ya,fc=iu;ga("match",(function(e,t,n){return[function(t){var n=uc(this),r=null==t?void 0:cc(t,e);return r?rc(r,t,n):new RegExp(t)[e](ac(n))},function(e){var r=oc(this),o=ac(e),i=n(t,r,o);if(i.done)return i.value;if(!r.global)return fc(r,o);var a=r.unicode;r.lastIndex=0;for(var u,c=[],l=0;null!==(u=fc(r,o));){var f=ac(u[0]);c[l]=f,""===f&&(r.lastIndex=lc(o,ic(r.lastIndex),a)),l++}return 0===l?null:c}]}));var sc,dc=Ln.PROPER,pc="\t\n\v\f\r \u2028\u2029\ufeff",hc=vo.trim;Xr({target:"String",proto:!0,forced:(sc="trim",v((function(){return!!pc.trim()||"
"!=="
".trim()||dc&&pc.trim.name!==sc})))},{trim:function(){return hc(this)}});var vc=function(e,t){for(var n=0,r=Object.entries(t);n<r.length;n++){var o=i(r[n],2),a=o[0],u=o[1];e.style[a]=null==u?"":String(u)}},gc=function(e,t,n,r,o){return function(){var i,a,u,c,l=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]),u=!!(arguments.length<=3?void 0:arguments[3]),c=!!(arguments.length<=4?void 0:arguments[4])):(a=!!(arguments.length<=1?void 0:arguments[1]),u=!!(arguments.length<=2?void 0:arguments[2]),c=!!(arguments.length<=3?void 0:arguments[3])),l===window)return l.document.documentElement["client".concat(n)];if(9===l.nodeType){var f=l.documentElement,s=l.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 l&&(d=l.getBoundingClientRect()[t],h=!0,v=!0),(void 0===d||c||h!==a||v!==u)&&(p=e?getComputedStyle(l,i):getComputedStyle(l)),void 0===d){var g=p[t];"auto"===g?(d=l["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(u!==v){var m=parseFloat(p["border-".concat(r,"-width")]||0)+parseFloat(p["border-".concat(o,"-width")]||0);u?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}},yc=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],u=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(t!==window&&9!==t.nodeType){var c=getComputedStyle(t),l=!1;if("border-box"===c.boxSizing&&(l=!0),i=!!i,a=!!a,(u=!!u)&&(o-=(parseFloat(c["margin-".concat(n)])||0)+(parseFloat(c["margin-".concat(r)])||0)),i!==l){var f=parseFloat(c["padding-".concat(n)]||0)+parseFloat(c["padding-".concat(r)]||0);i?o-=f:o+=f}if(a!==l){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"}}},mc=gc(!1,"width","Width","left","right"),bc=gc(!1,"height","Height","top","bottom"),Sc=gc(!0,"width","Width","left","right"),xc=gc(!0,"height","Height","top","bottom"),wc=yc("width",0,"left","right"),Ec=yc("height",0,"top","bottom"),Oc=function(e){if(e){var t=e.endsWith("ms");return parseFloat(e)*(t?1:1e3)}},jc=function(e){return/^-?(0?\.)?\d+m?s$/.test(e)},Cc=function(e){var t=e.split(/\s+/),n=t[0],r=t[1],o=t[2],i=t[3];return jc(o)?{delay:Oc(o),duration:Oc(r),name:n}:{delay:Oc(i),duration:Oc(r),name:n,timingFunction:o}},Tc=Object.freeze({__proto__:null,getCssProps:function(e,t){var n,r=getComputedStyle(e),o={},i=c(t);try{for(i.s();!(n=i.n()).done;){var a=n.value,u=r[a];("width"===a||"height"===a)&&"auto"===u&&e instanceof HTMLElement&&(u=e["offset"+a.substr(0,1).toUpperCase()+a.substr(1)],"border-box"!==r.boxSizing&&("width"===a?(u-=parseFloat(r.paddingLeft||0),u-=parseFloat(r.paddingRight||0),u-=parseFloat(r.borderLeftWidth||0),u-=parseFloat(r.borderRightWidth||0)):(u-=parseFloat(r.paddingTop||0),u-=parseFloat(r.paddingBottom||0),u-=parseFloat(r.borderTopWidth||0),u-=parseFloat(r.borderBottomWidth||0)),u<0&&(u=0)),u+="px"),o[a]=u}}catch(e){i.e(e)}finally{i.f()}return o},setCssProps:vc,getElementWidth:mc,getElementHeight:bc,setElementWidth:wc,setElementHeight:Ec,getPseudoElementWidth:Sc,getPseudoElementHeight:xc,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,u,c;if(r||(r={width:mc(e,!0,!0),height:mc(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,u=0;else if("center"===t)u=i=r.width/2;else if("left"===t)i=0,u=r.width;else if(t&&"string"==typeof t&&"%"===t.charAt(t.length-1)){var l=(parseFloat(t)||0)/100;i=r.width*l,u=r.width*-l,null==o&&(o="rtl"===getComputedStyle(e).direction),o&&(i=r.width-i,u=r.width-i)}else u=-(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:u,bottom:c,xSpec:t,ySpec:n}},parseTransition:function(e){var t;return e?(null!==(t=e.match(/([^,()]|\([^)]*\))+/g))&&void 0!==t?t:[]).map((function(e){return e.trim()})).filter((function(e){return e.length>0})).map(Cc):[]},parseSingleTransition:Cc,isTimeString:jc,timeToMs:Oc}),Fc=function(e,t){for(var n=0,r=Object.entries(t);n<r.length;n++){var o=i(r[n],2),a=o[0],u=o[1];null!=u&&("innerHTML"===a?e.innerHTML=String(u):"css"===a&&"style"in e?vc(e,u):a in e&&"style"!==a?e[a]=u:e.setAttribute(a,String(u)))}},Ic=Object.freeze({__proto__:null,createElement:function(e,n,r){var o=document.createElement(e);if(n&&"object"===t(n)&&Fc(o,n),r)if(r instanceof Node)o.appendChild(r);else if(Array.isArray(r)){var i,a=c(r);try{for(a.s();!(i=a.n()).done;){var u=i.value;o.appendChild(u)}}catch(e){a.e(e)}finally{a.f()}}return o},setElementAttrs:Fc,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)}}),Nc=_,_c=ze,Ac=Math.floor,Rc=Nc("".charAt),Pc=Nc("".replace),Mc=Nc("".slice),Lc=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,kc=/\$([$&'`]|\d{1,2})/g,Wc=ua,$c=S,zc=_,Dc=ga,Bc=v,Hc=kt,Uc=X,Yc=Vn,qc=rr,Xc=ao,Gc=H,Kc=Ya,Vc=je,Jc=function(e,t,n,r,o,i){var a=n+e.length,u=r.length,c=kc;return void 0!==o&&(o=_c(o),c=Lc),Pc(i,c,(function(i,c){var l;switch(Rc(c,0)){case"$":return"$";case"&":return e;case"`":return Mc(t,0,n);case"'":return Mc(t,a);case"<":l=o[Mc(c,1,-1)];break;default:var f=+c;if(0===f)return i;if(f>u){var s=Ac(f/10);return 0===s?i:s<=u?void 0===r[s-1]?Rc(c,1):r[s-1]+Rc(c,1):i}l=r[f-1]}return void 0===l?"":l}))},Qc=iu,Zc=it("replace"),el=Math.max,tl=Math.min,nl=zc([].concat),rl=zc([].push),ol=zc("".indexOf),il=zc("".slice),al="$0"==="a".replace(/./,"$0"),ul=!!/./[Zc]&&""===/./[Zc]("a","$0");Dc("replace",(function(e,t,n){var r=ul?"$":"$0";return[function(e,n){var r=Gc(this),o=null==e?void 0:Vc(e,Zc);return o?$c(o,e,r,n):$c(t,Xc(r),e,n)},function(e,o){var i=Hc(this),a=Xc(e);if("string"==typeof o&&-1===ol(o,r)&&-1===ol(o,"$<")){var u=n(t,i,a,o);if(u.done)return u.value}var c=Uc(o);c||(o=Xc(o));var l=i.global;if(l){var f=i.unicode;i.lastIndex=0}for(var s=[];;){var d=Qc(i,a);if(null===d)break;if(rl(s,d),!l)break;""===Xc(d[0])&&(i.lastIndex=Kc(a,qc(i.lastIndex),f))}for(var p,h="",v=0,g=0;g<s.length;g++){for(var y=Xc((d=s[g])[0]),m=el(tl(Yc(d.index),a.length),0),b=[],S=1;S<d.length;S++)rl(b,void 0===(p=d[S])?p:String(p));var x=d.groups;if(c){var w=nl([y],b,m,a);void 0!==x&&rl(w,x);var E=Xc(Wc(o,void 0,w))}else E=Jc(y,a,m,b,x,o);m>=v&&(h+=il(a,v,m)+E,v=m+y.length)}return h+il(a,v)}]}),!!Bc((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")}))||!al||ul);var cl=null,ll=function(){try{document.createElement("div").querySelector(":scope > div"),cl=!0}catch(e){cl=!1}},fl=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,u=document.createDocumentFragment(),l=c(n);try{for(l.s();!(a=l.n()).done;){var f=a.value,s=f instanceof Node;u.appendChild(s?f:document.createTextNode(String(f)))}}catch(e){l.e(e)}finally{l.f()}e.parentNode.insertBefore(u,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,u=document.createDocumentFragment(),l=c(n);try{for(l.s();!(a=l.n()).done;){var f=a.value,s=f instanceof Node;u.appendChild(s?f:document.createTextNode(String(f)))}}catch(e){l.e(e)}finally{l.f()}e.nextSibling?e.parentNode.insertBefore(u,e.nextSibling):e.parentNode.appendChild(u)}},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,u=document.createDocumentFragment(),l=c(n);try{for(l.s();!(a=l.n()).done;){var f=a.value,s=f instanceof Node;u.appendChild(s?f:document.createTextNode(String(f)))}}catch(e){l.e(e)}finally{l.f()}e.firstChild?e.insertBefore(u,e.firstChild):e.appendChild(u)}},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,u=document.createDocumentFragment(),l=c(n);try{for(l.s();!(a=l.n()).done;){var f=a.value,s=f instanceof Node;u.appendChild(s?f:document.createTextNode(String(f)))}}catch(e){l.e(e)}finally{l.f()}e.appendChild(u)}},scopedSelector:function(e,t){if(null===cl&&ll(),!0===cl)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===cl&&ll(),!0===cl)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)}}),sl=g,dl=Ln.EXISTS,pl=_,hl=_t.f,vl=Function.prototype,gl=pl(vl.toString),yl=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,ml=pl(yl.exec);sl&&!dl&&hl(vl,"name",{configurable:!0,get:function(){try{return ml(yl,gl(this))[1]}catch(e){return""}}});var bl=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._events=[]}var n,r;return n=e,(r=[{key:"add",value:function(e,n,r,o){var i=n.split("."),a=i[0],u=i[1];e.addEventListener(a,r,o||!1);var c=!0===o||"object"===t(o)&&!0===o.capture;return this._events.push({el:e,name:a,namespace:u,handler:r,useCapture:c}),this}},{key:"remove",value:function(e,n,r,o){var i=n?n.split("."):"",a=i[0],u=i[1],l=!0===o||"object"===t(o)&&!0===o.capture,f=[],s=[];if(e||a||u||r||void 0!==o){var d,p=c(this._events);try{for(p.s();!(d=p.n()).done;){var h=d.value;e&&h.el!==e||a&&h.name!==a||u&&h.namespace!==u||r&&h.handler!==r||void 0!==o&&h.useCapture!==l?f.push(h):s.push(h)}}catch(e){p.e(e)}finally{p.f()}}else s=this._events;this._events=f;var v,g=c(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}}])&&o(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),e}(),Sl=Object.freeze({__proto__:null,default:bl}),xl=Xr,wl=Math.hypot,El=Math.abs,Ol=Math.sqrt;xl({target:"Math",stat:!0,forced:!!wl&&wl(1/0,NaN)!==1/0},{hypot:function(e,t){for(var n,r,o=0,i=0,a=arguments.length,u=0;i<a;)u<(n=El(arguments[i++]))?(o=o*(r=u/n)*r+1,u=n):o+=n>0?(r=n/u)*r:n;return u===1/0?1/0:u*Ol(o)}});var jl,Cl=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=c(e.changedTouches);try{for(a.s();!(i=a.n()).done;){var u=i.value;if(u.identifier===n){o=u;break}}}catch(e){a.e(e)}finally{a.f()}}o||(o=e.changedTouches[0])}var l=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(l.x-f.x),Math.abs(l.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)}}}}),Tl=g,Fl=_,Il=S,Nl=v,_l=To,Al=Sr,Rl=x,Pl=ze,Ml=D,Ll=Object.assign,kl=Object.defineProperty,Wl=Fl([].concat),$l=!Ll||Nl((function(){if(Tl&&1!==Ll({b:1},Ll(kl({},"a",{enumerable:!0,get:function(){kl(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]||_l(Ll({},t)).join("")!=r}))?function(e,t){for(var n=Pl(e),r=arguments.length,o=1,i=Al.f,a=Rl.f;r>o;)for(var u,c=Ml(arguments[o++]),l=i?Wl(_l(c),i(c)):_l(c),f=l.length,s=0;f>s;)u=l[s++],Tl&&!Il(a,c,u)||(n[u]=c[u]);return n}:Ll;Xr({target:"Object",stat:!0,forced:Object.assign!==$l},{assign:$l});var zl=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 Dl(e,t,n){if(void 0===n&&(n="rtl"===getComputedStyle(e).direction),!0===n&&void 0===jl&&(jl=zl()),!n)return t;switch(jl){case"negative":return t-e.scrollWidth+e.clientWidth;case"reverse":return e.scrollWidth-t-e.clientWidth;default:return t}}function Bl(e,t){if(void 0===t&&(t="rtl"===getComputedStyle(e).direction),!0===t&&void 0===jl&&(jl=zl()),!t)return e.scrollLeft;switch(jl){case"negative":return e.scrollLeft+e.scrollWidth-e.clientWidth;case"reverse":return e.scrollWidth-e.scrollLeft-e.clientWidth;default:return e.scrollLeft}}function Hl(e,t,n){return void 0===n&&(n="rtl"===getComputedStyle(e).direction),Dl(e,n?e.scrollWidth-e.clientWidth-t:t,n)}var Ul=Object.freeze({__proto__:null,calculateNativeScrollLeftForLeft:Dl,getScrollLeft:Bl,setScrollLeft:function(e,t,n){e.scrollLeft=Dl(e,t,n)},calculateNativeScrollLeftForHorz:Hl,getScrollHorz:function(e,t){return void 0===t&&(t="rtl"===getComputedStyle(e).direction),t?e.scrollWidth-e.clientWidth-Bl(e,t):Bl(e,t)},setScrollHorz:function(e,t,n){e.scrollLeft=Hl(e,t,n)}});e.Css=Tc,e.Dom=Ic,e.DomCompat=fl,e.DomEventsSink=Sl,e.ScrollHelper=Ul,e.Touches=Cl,Object.defineProperty(e,"__esModule",{value:!0})}));
|
|
5
|
+
var e,t;e=this,t=function(e){"use strict";const t=function(e,t){for(let[n,o]of Object.entries(t))e.style[n]=null==o?"":String(o)},n=function(e,t,n,o,r){return function(){let l,i,d,s,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]),d=!!(arguments.length<=3?void 0:arguments[3]),s=!!(arguments.length<=4?void 0:arguments[4])):(i=!!(arguments.length<=1?void 0:arguments[1]),d=!!(arguments.length<=2?void 0:arguments[2]),s=!!(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,f,u=!1,p=!1;if(!e&&"getBoundingClientRect"in a&&(c=a.getBoundingClientRect()[t],u=!0,p=!0),(void 0===c||s||u!==i||p!==d)&&(f=e?getComputedStyle(a,l):getComputedStyle(a)),void 0===c){let e=f[t];"auto"===e?(c=a[`client${n}`],u=!0):c=parseFloat(e),"border-box"===f.boxSizing&&(u=!0,p=!0)}if(i!==u){let e=parseFloat(f[`padding-${o}`]||0)+parseFloat(f[`padding-${r}`]||0);i?c+=e:c-=e}if(d!==p){let e=parseFloat(f[`border-${o}-width`]||0)+parseFloat(f[`border-${r}-width`]||0);d?c+=e:c-=e}return c<0&&(c=0),s&&(c+=parseFloat(f[`margin-${o}`]||0)+parseFloat(f[`margin-${r}`]||0)),c}}},o=(e,t,n,o)=>function(t,r){let l=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=arguments.length>3&&void 0!==arguments[3]&&arguments[3],d=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(t===window)return;if(9===t.nodeType)return;const s=getComputedStyle(t);let a=!1;if("border-box"===s.boxSizing&&(a=!0),l=!!l,i=!!i,d=!!d,d&&(r-=(parseFloat(s[`margin-${n}`])||0)+(parseFloat(s[`margin-${o}`])||0)),l!==a){let e=parseFloat(s[`padding-${n}`]||0)+parseFloat(s[`padding-${o}`]||0);l?r-=e:r+=e}if(i!==a){let e=(parseFloat(s[`border-${n}-width`])||0)+(parseFloat(s[`border-${o}-width`])||0);i?r-=e:r+=e}r<0&&(r=0),t.style[e]=r+"px"},r=n(!1,"width","Width","left","right"),l=n(!1,"height","Height","top","bottom"),i=n(!0,"width","Width","left","right"),d=n(!0,"height","Height","top","bottom"),s=o("width",0,"left","right"),a=o("height",0,"top","bottom"),c=e=>{if(!e)return;let t=e.endsWith("ms");return parseFloat(e)*(t?1:1e3)},f=e=>/^-?(0?\.)?\d+m?s$/.test(e),u=e=>{let t=e.split(/\s+/),n=t[0],o=t[1],r=t[2],l=t[3];return f(r)?{delay:c(r),duration:c(o),name:n}:{delay:c(l),duration:c(o),name:n,timingFunction:r}};var p=Object.freeze({__proto__:null,getCssProps:function(e,t){const n=getComputedStyle(e);let o={};for(let r of t){let t=n[r];("width"===r||"height"===r)&&"auto"===t&&e instanceof HTMLElement&&(t=e["offset"+r.substr(0,1).toUpperCase()+r.substr(1)],"border-box"!==n.boxSizing&&("width"===r?(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"),o[r]=t}return o},setCssProps:t,getElementWidth:r,getElementHeight:l,setElementWidth:s,setElementHeight:a,getPseudoElementWidth:i,getPseudoElementHeight:d,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,d,s,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,s=0;else if("center"===t)i=o.width/2,s=i;else if("left"===t)i=0,s=o.width;else if(t&&"string"==typeof t&&"%"===t.charAt(t.length-1)){let n=(parseFloat(t)||0)/100;i=o.width*n,s=o.width*-n,null==l&&(l="rtl"===getComputedStyle(e).direction),l&&(i=o.width-i,s=o.width-i)}else i=parseFloat(t)||0,s=-i;if("bottom"===n)d=o.height,a=0;else if("center"===n)d=o.height/2,a=d;else if("top"===n)d=0,a=o.height;else if(n&&"string"==typeof n&&"%"===n.charAt(n.length-1)){let e=(parseFloat(n)||0)/100;d=o.height*e,a=o.height*-e}else d=parseFloat(n)||0,a=-d;return{left:i,top:d,right:s,bottom:a,xSpec:t,ySpec:n}},parseTransition:e=>e?(e.match(/([^,()]|\([^)]*\))+/g)??[]).map((e=>e.trim())).filter((e=>e.length>0)).map(u):[],parseSingleTransition:u,isTimeString:f,timeToMs:c});const h=function(e,n){for(let[o,r]of Object.entries(n))null!=r&&("innerHTML"===o?e.innerHTML=String(r):"css"===o&&"style"in e?t(e,r):o in e&&"style"!==o?e[o]=r:e.setAttribute(o,String(r)))};var g=Object.freeze({__proto__:null,createElement:function(e,t,n){let o=document.createElement(e);if(t&&"object"==typeof t&&h(o,t),n)if(n instanceof Node)o.appendChild(n);else if(Array.isArray(n))for(let e of n)o.appendChild(e);return o},setElementAttrs:h,closestUntil:function(e,t,n){if("closest"in e&&!n)return e.closest(t);const o=Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector;do{if(o.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 m=null;const v=()=>{try{document.createElement("div").querySelector(":scope > div"),m=!0}catch(e){m=!1}};var y=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),o=1;o<t;o++)n[o-1]=arguments[o];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),o=1;o<t;o++)n[o-1]=arguments[o];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),o=1;o<t;o++)n[o-1]=arguments[o];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),o=1;o<t;o++)n[o-1]=arguments[o];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===m&&v(),!0===m)return e.querySelector(t.replace(/((?:^|,)\s*)/g,"$1:scope "));{let n=e.id;const o="ID_"+Date.now();e.id=o,t=t.replace(/((?:^|,)\s*)/g,"$1#"+o);try{return e.querySelector(t)}finally{this.id=n}}},scopedSelectorAll:function(e,t){if(null===m&&v(),!0===m)return e.querySelectorAll(t.replace(/((?:^|,)\s*)/g,"$1:scope "));{let n=e.id;const o="ID_"+Date.now();e.id=o,t=t.replace(/((?:^|,)\s*)/g,"$1#"+o);try{return e.querySelectorAll(t)}finally{this.id=n}}},toggleClass:function(e,t,n){let o=e.classList;return void 0===n?o.contains(t)?(o.remove(t),!1):(o.add(t),!0):n?(o.add(t),!0):(o.remove(t),!1)}}),b=Object.freeze({__proto__:null,default:class{constructor(){this._events=[]}add(e,t,n,o){let r=t.split("."),l=r[0],i=r[1];e.addEventListener(l,n,o||!1);let d=!0===o||"object"==typeof o&&!0===o.capture;return this._events.push({el:e,name:l,namespace:i,handler:n,useCapture:d}),this}remove(e,t,n,o){let r=t?t.split("."):"",l=r[0],i=r[1],d=!0===o||"object"==typeof o&&!0===o.capture,s=[],a=[];if(e||l||i||n||void 0!==o)for(let t of this._events)e&&t.el!==e||l&&t.name!==l||i&&t.namespace!==i||n&&t.handler!==n||void 0!==o&&t.useCapture!==d?s.push(t):a.push(t);else a=this._events;this._events=s;for(let e of a)e.el.removeEventListener(e.name,e.handler,e.useCapture);return this}}}),S=Object.freeze({__proto__:null,bindTouchTap:function(e,t){let n=null,o=null;const r=t=>{if(null!==n)return;let r=t.changedTouches[0];n=r.identifier,o=r?{x:r.pageX,y:r.pageY}:{x:t.pageX,y:t.pageY},e.addEventListener("touchend",l),e.addEventListener("touchcancel",i)},l=e=>{if(null===n)return;let r=null;if(e.changedTouches){if(null!=n)for(let t of e.changedTouches)if(t.identifier===n){r=t;break}r||(r=e.changedTouches[0])}let l=r?{x:r.pageX,y:r.pageY}:{x:e.pageX,y:e.pageY},i=o;if(n=null,o=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,o=null,e.removeEventListener("touchend",l),e.removeEventListener("touchcancel",i)};return e.addEventListener("touchstart",r),{unbind:()=>{e.removeEventListener("touchstart",r),e.removeEventListener("touchend",l),e.removeEventListener("touchcancel",i)}}}});let C;const w=()=>{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 E(e,t,n){if(void 0===n&&(n="rtl"===getComputedStyle(e).direction),!0===n&&void 0===C&&(C=w()),!n)return t;switch(C){case"negative":return t-e.scrollWidth+e.clientWidth;case"reverse":return e.scrollWidth-t-e.clientWidth;default:return t}}function x(e,t){if(void 0===t&&(t="rtl"===getComputedStyle(e).direction),!0===t&&void 0===C&&(C=w()),!t)return e.scrollLeft;switch(C){case"negative":return e.scrollLeft+e.scrollWidth-e.clientWidth;case"reverse":return e.scrollWidth-e.scrollLeft-e.clientWidth;default:return e.scrollLeft}}function N(e,t,n){return void 0===n&&(n="rtl"===getComputedStyle(e).direction),E(e,n?e.scrollWidth-e.clientWidth-t:t,n)}var F=Object.freeze({__proto__:null,calculateNativeScrollLeftForLeft:E,getScrollLeft:x,setScrollLeft:function(e,t,n){e.scrollLeft=E(e,t,n)},calculateNativeScrollLeftForHorz:N,getScrollHorz:function(e,t){return void 0===t&&(t="rtl"===getComputedStyle(e).direction),t?e.scrollWidth-e.clientWidth-x(e,t):x(e,t)},setScrollHorz:function(e,t,n){e.scrollLeft=N(e,t,n)}});e.Css=p,e.Dom=g,e.DomCompat=y,e.DomEventsSink=b,e.ScrollHelper=F,e.Touches=S,Object.defineProperty(e,"__esModule",{value:!0})},"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).domutils={});
|
|
6
6
|
|
|
7
7
|
//# sourceMappingURL=lib.umd.min.js.map
|