Files
OverlayScrollbars/packages/overlayscrollbars/dist/overlayscrollbars.cjs.min.js
T

11 lines
28 KiB
JavaScript

/*!
* OverlayScrollbars
* Version: 2.0.0-beta.0
*
* Copyright (c) Rene Haas | KingSora.
* https://github.com/KingSora
*
* Released under the MIT license.
*/
"use strict";function t(e,n){if(w(e))for(let t=0;t<e.length&&!1!==n(e[t],t,e);t++);else e&&t(Object.keys(e),(t=>n(e[t],t,e)));return e}function e(e,n){const r=d(n);if(p(n)||r){let t=r?"":{};if(e){const o=window.getComputedStyle(e,null);t=r?mt(e,o,n):n.reduce(((t,n)=>(t[n]=mt(e,o,n),t)),t)}return t}e&&t(L(n),(t=>xt(e,t,n[t])))}Object.defineProperties(exports,{o:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const n=(t,e)=>{const{u:n,_:r,g:o}=t;let i,s=n;const l=(t,e)=>{const n=s,l=t,c=e||(r?!r(n,l):n!==l);return(c||o)&&(s=l,i=n),[s,c,i]};return[e?t=>l(e(s,i),t):l,t=>[s,!!t,i]]},r=Node.ELEMENT_NODE,{toString:o,hasOwnProperty:i}=Object.prototype,s=t=>void 0===t,l=t=>null===t,c=t=>s(t)||l(t)?`${t}`:o.call(t).replace(/^\[object (.+)\]$/,"$1").toLowerCase(),a=t=>"number"==typeof t,d=t=>"string"==typeof t,u=t=>"boolean"==typeof t,h=t=>"function"==typeof t,p=t=>Array.isArray(t),f=t=>"object"==typeof t&&!p(t)&&!l(t),w=t=>{const e=!!t&&t.length,n=a(e)&&e>-1&&e%1==0;return!(!(p(t)||!h(t)&&n)||e>0&&f(t)&&!(e-1 in t))},g=t=>{if(!t||!f(t)||"object"!==c(t))return!1;let e;const n="constructor",r=t[n],o=r&&r.prototype,l=i.call(t,n),a=o&&i.call(o,"isPrototypeOf");if(r&&!l&&!a)return!1;for(e in t);return s(e)||i.call(t,e)},b=t=>{const e=HTMLElement;return!!t&&(e?t instanceof e:t.nodeType===r)},v=t=>{const e=Element;return!!t&&(e?t instanceof e:t.nodeType===r)},y=(t,e,n)=>t.indexOf(e,n),m=(t,e,n)=>(n||d(e)||!w(e)?t.push(e):Array.prototype.push.apply(t,e),t),x=e=>{const n=Array.from,r=[];return n&&e?n(e):(e instanceof Set?e.forEach((t=>{m(r,t)})):t(e,(t=>{m(r,t)})),r)},$=t=>!!t&&0===t.length,O=(e,n,r)=>{t(e,(t=>t&&t.apply(void 0,n||[]))),!r&&(e.length=0)},S=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),L=t=>t?Object.keys(t):[],E=(e,n,r,o,i,s,c)=>{const a=[n,r,o,i,s,c];return"object"==typeof e&&!l(e)||h(e)||(e={}),t(a,(n=>{t(L(n),(t=>{const r=n[t];if(e===r)return!0;const o=p(r);if(r&&(g(r)||o)){const n=e[t];let i=n;o&&!p(n)?i=[]:o||g(n)||(i={}),e[t]=E(i,r)}else e[t]=r}))})),e},C=t=>{for(const e in t)return!1;return!0},P=(t,e,n,r)=>{if(s(r))return n?n[t]:e;n&&(d(r)||a(r))&&(n[t]=r)},R=(t,e,n)=>{if(s(n))return t?t.getAttribute(e):null;t&&t.setAttribute(e,n)},M=(t,e,n,r)=>{if(n){const o=R(t,e)||"",i=new Set(o.split(" "));i[r?"add":"delete"](n),R(t,e,x(i).join(" ").trim())}},H=(t,e)=>{t&&t.removeAttribute(e)},I=(t,e)=>P("scrollLeft",0,t,e),z=(t,e)=>P("scrollTop",0,t,e),D=Element.prototype,T=(t,e)=>{const n=[],r=e?v(e)?e:null:document;return r?m(n,r.querySelectorAll(t)):n},A=(t,e)=>!!v(t)&&(D.matches||D.msMatchesSelector).call(t,e),j=t=>t?x(t.childNodes):[],B=t=>t?t.parentElement:null,N=(t,e)=>{if(v(t)){const n=D.closest;if(n)return n.call(t,e);do{if(A(t,e))return t;t=B(t)}while(t)}return null},k=(e,n,r)=>{if(r&&e){let o,i=n;w(r)?(o=document.createDocumentFragment(),t(r,(t=>{t===i&&(i=t.previousSibling),o.appendChild(t)}))):o=r,n&&(i?i!==n&&(i=i.nextSibling):i=e.firstChild),e.insertBefore(o,i||null)}},_=(t,e)=>{k(t,null,e)},F=(t,e)=>{k(B(t),t&&t.nextSibling,e)},q=e=>{if(w(e))t(x(e),(t=>q(t)));else if(e){const t=B(e);t&&t.removeChild(e)}},V=t=>{const e=document.createElement("div");return t&&R(e,"class",t),e},X=e=>{const n=V();return n.innerHTML=e.trim(),t(j(n),(t=>q(t)))},Y=t=>t.charAt(0).toUpperCase()+t.slice(1),W=["-webkit-","-moz-","-o-","-ms-"],Z=["WebKit","Moz","O","MS","webkit","moz","o","ms"],K={},J={},G=e=>{let n=J[e];if(S(J,e))return n;const r=Y(e),o=V().style;return t(W,(t=>{const i=t.replace(/-/g,""),s=[e,t+e,i+r,Y(i)+r];return!(n=s.find((t=>void 0!==o[t])))})),J[e]=n||""},U=e=>{let n=K[e]||window[e];return S(K,e)||(t(Z,(t=>(n=n||window[t+Y(e)],!n))),K[e]=n),n},Q=U("MutationObserver"),tt=U("IntersectionObserver"),et=U("ResizeObserver"),nt=U("cancelAnimationFrame"),rt=U("requestAnimationFrame"),ot=window.setTimeout,it=window.clearTimeout,st=/[^\x20\t\r\n\f]+/g,lt=(t,e,n)=>{const r=t&&t.classList;let o,i=0,s=!1;if(r&&e&&d(e)){const t=e.match(st)||[];for(s=t.length>0;o=t[i++];)s=!!n(r,o)&&s}return s},ct=(t,e)=>{lt(t,e,((t,e)=>t.remove(e)))},at=(t,e)=>(lt(t,e,((t,e)=>t.add(e))),ct.bind(0,t,e)),dt=(e,n,r,o)=>{if(e&&n){let i=!0;return t(r,(t=>{(o?o(e[t]):e[t])!==(o?o(n[t]):n[t])&&(i=!1)})),i}return!1},ut=(t,e)=>dt(t,e,["w","h"]),ht=(t,e)=>dt(t,e,["x","y"]),pt=(t,e)=>dt(t,e,["t","r","b","l"]),ft=(t,e,n)=>dt(t,e,["width","height"],n&&(t=>Math.round(t))),wt=()=>{},gt=t=>{let e;const n=t?ot:rt,r=t?it:nt;return[o=>{r(e),e=n(o,h(t)?t():t)},()=>r(e)]},bt=(t,e)=>{let n,r,o,i=wt;const{v:s,p:l,m:c}=e||{},d=function(e){i(),it(n),n=r=void 0,i=wt,t.apply(this,e)},u=t=>c&&r?c(r,t):t,p=()=>{i!==wt&&d(u(o)||o)},f=function(){const t=x(arguments),e=h(s)?s():s,c=a(e)&&e>=0;if(c){const s=h(l)?l():l,c=a(s)&&s>=0,f=e>0?ot:rt,w=e>0?it:nt,g=u(t)||t,b=d.bind(0,g);i();const v=f(b,e);i=()=>w(v),c&&!n&&(n=ot(p,s)),r=o=g}else d(t)};return f.S=p,f},vt={opacity:1,zindex:1},yt=(t,e)=>{const n=e?parseFloat(t):parseInt(t,10);return n==n?n:0},mt=(t,e,n)=>null!=e?e[n]||e.getPropertyValue(n):t.style[n],xt=(t,e,n)=>{try{const{style:r}=t;s(r[e])?r.setProperty(e,n):r[e]=((t,e)=>!vt[t.toLowerCase()]&&a(e)?`${e}px`:e)(e,n)}catch(D){}},$t=t=>"rtl"===e(t,"direction"),Ot=(t,n,r)=>{const o=n?`${n}-`:"",i=r?`-${r}`:"",s=`${o}top${i}`,l=`${o}right${i}`,c=`${o}bottom${i}`,a=`${o}left${i}`,d=e(t,[s,l,c,a]);return{t:yt(d[s]),r:yt(d[l]),b:yt(d[c]),l:yt(d[a])}},{round:St}=Math,Lt={w:0,h:0},Et=t=>t?{w:t.offsetWidth,h:t.offsetHeight}:Lt,Ct=t=>t?{w:t.clientWidth,h:t.clientHeight}:Lt,Pt=t=>t?{w:t.scrollWidth,h:t.scrollHeight}:Lt,Rt=t=>{const n=parseFloat(e(t,"height"))||0,r=parseFloat(e(t,"width"))||0;return{w:r-St(r),h:n-St(n)}},Mt=t=>t.getBoundingClientRect();let Ht;const It=t=>t.split(" "),zt=(e,n,r,o)=>{t(It(n),(t=>{e.removeEventListener(t,r,o)}))},Dt=(e,n,r,o)=>{var i;const l=(()=>{if(s(Ht)){Ht=!1;try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get(){Ht=!0}}))}catch(e){}}return Ht})(),c=null!=(i=l&&o&&o.$)?i:l,a=o&&o.C||!1,d=o&&o.O||!1,u=[],h=l?{passive:c,capture:a}:a;return t(It(n),(t=>{const n=d?o=>{e.removeEventListener(t,n,a),r&&r(o)}:r;m(u,zt.bind(null,e,t,n,a)),e.addEventListener(t,n,h)})),O.bind(0,u)},Tt=t=>t.stopPropagation(),At=t=>t.preventDefault(),jt={x:0,y:0},Bt=t=>{const e=t?Mt(t):0;return e?{x:e.left+window.pageYOffset,y:e.top+window.pageXOffset}:jt},Nt=(e,n)=>{t(p(n)?n:[n],e)},kt=e=>{const n=new Map,r=(t,e)=>{if(t){const r=n.get(t);Nt((t=>{r&&r[t?"delete":"clear"](t)}),e)}else n.forEach((t=>{t.clear()})),n.clear()},o=(t,e)=>{const o=n.get(t)||new Set;return n.set(t,o),Nt((t=>{t&&o.add(t)}),e),r.bind(0,t,e)};return t(L(e),(t=>{o(t,e[t])})),[o,r,(e,r)=>{const o=n.get(e);t(x(o),(t=>{r&&!$(r)?t.apply(0,r):t()}))}]},_t=t=>JSON.stringify(t,((t,e)=>{if(h(e))throw new Error;return e})),Ft={paddingAbsolute:!1,showNativeOverlaidScrollbars:!1,update:{elementEvents:[["img","load"]],debounce:[0,33],attributes:null,ignoreMutation:null},overflow:{x:"scroll",y:"scroll"},scrollbars:{theme:"os-theme-dark",visibility:"auto",autoHide:"never",autoHideDelay:1300,dragScroll:!0,clickScroll:!1,pointers:["mouse","touch","pen"]}},qt=(e,n)=>{const r={};return t(L(n).concat(L(e)),(t=>{const o=e[t],i=n[t];if(f(o)&&f(i))E(r[t]={},qt(o,i));else if(S(n,t)&&i!==o){let e=!0;if(p(o)||p(i))try{_t(o)===_t(i)&&(e=!1)}catch(K){}e&&(r[t]=i)}})),r},Vt="os-environment",Xt=`${Vt}-flexbox-glue`,Yt=`${Xt}-max`,Wt="data-overlayscrollbars",Zt=`${Wt}-overflow-x`,Kt=`${Wt}-overflow-y`,Jt="overflowVisible",Gt="scrollbarHidden",Ut="updating",Qt="os-padding",te="os-viewport",ee=`${te}-arrange`,ne="os-content",re=`${te}-scrollbar-hidden`,oe=`os-overflow-visible`,ie="os-size-observer",se=`${ie}-appear`,le=`${ie}-listener`,ce=`${le}-scroll`,ae=`${le}-item`,de=`${ae}-final`,ue="os-trinsic-observer",he="os-scrollbar",pe=`${he}-rtl`,fe=`${he}-horizontal`,we=`${he}-vertical`,ge=`${he}-track`,be=`${he}-handle`,ve=`${he}-visible`,ye=`${he}-cornerless`,me=`${he}-transitionless`,xe=`${he}-interaction`,$e=`${he}-unusable`,Oe=`${he}-auto-hidden`,Se=`${he}-wheel`,Le=`${ge}-interactive`,Ee=`${be}-interactive`,Ce={},Pe=()=>Ce,Re="__osOptionsValidationPlugin",Me=3333333,He="scroll",Ie="__osSizeObserverPlugin",ze={[Ie]:{A:(t,n,r)=>{const o=X(`<div class="${ae}" dir="ltr"><div class="${ae}"><div class="${de}"></div></div><div class="${ae}"><div class="${de}" style="width: 200%; height: 200%"></div></div></div>`);_(t,o),at(t,ce);const i=o[0],s=i.lastChild,l=i.firstChild,c=null==l?void 0:l.firstChild;let a,d=Et(i),u=d,h=!1;const p=()=>{I(l,Me),z(l,Me),I(s,Me),z(s,Me)},f=t=>{a=0,h&&(d=u,n(!0===t))},w=t=>{u=Et(i),h=!t||!ut(u,d),t?(Tt(t),h&&!a&&(nt(a),a=rt(f))):f(!1===t),p()},g=m([],[Dt(l,He,w),Dt(s,He,w)]);return e(c,{width:Me,height:Me}),rt(p),[r?w.bind(0,!1):p,g]}}};let De=0;const{round:Te,abs:Ae}=Math,je="__osScrollbarsHidingPlugin",Be={[je]:{T:t=>{const{I:e,L:n,H:r}=t,o=!(r||e||!n.x&&!n.y)&&document.createElement("style");return o&&(R(o,"id",`${ee}-${De}`),De++),o},M:(n,r,o,i,s,l,c)=>[(t,r,l,c)=>{if(n){const{P:n}=s(),{D:a,R:d}=t,{x:u,y:h}=d,{x:p,y:f}=a,w=n[c?"paddingRight":"paddingLeft"],g=n.paddingTop,b=r.w+l.w,v=r.h+l.h,y={w:f&&h?`${f+b-w}px`:"",h:p&&u?`${p+v-g}px`:""};if(i){const{sheet:t}=i;if(t){const{cssRules:e}=t;if(e){e.length||t.insertRule(`#${R(i,"id")} + .${ee}::before {}`,0);const n=e[0].style;n.width=y.w,n.height=y.h}}}else e(o,{"--os-vaw":y.w,"--os-vah":y.h})}return n},(i,a,d)=>{if(n){const u=d||l(i),{P:h}=s(),{R:p}=u,{x:f,y:w}=p,g={},b=e=>t(e.split(" "),(t=>{g[t]=h[t]}));f&&b("marginBottom paddingTop paddingBottom"),w&&b("marginLeft marginRight paddingLeft paddingRight");const v=e(o,L(g));return ct(o,ee),r||(g.height=""),e(o,g),[()=>{c(u,a,n,v),e(o,v),at(o,ee)},u]}return[wt]}],k:()=>{let t={w:0,h:0},e=0;return(n,r,o)=>{const i={w:window.innerWidth,h:window.innerHeight},s={w:i.w-t.w,h:i.h-t.h};if(0===s.w&&0===s.h)return;const l=Ae(s.w),c=Ae(s.h),a={w:Ae(Te(i.w/(t.w/100))),h:Ae(Te(i.h/(t.h/100)))},d=(()=>{const t=window.screen.deviceXDPI||0,e=window.screen.logicalXDPI||1;return window.devicePixelRatio||t/e})(),u=l>2&&c>2,h=!((t,e)=>{const n=Ae(t),r=Ae(e);return!(n===r||n+1===r||n-1===r)})(a.w,a.h);if(u&&h&&d!==e&&d>0){const[t,e]=r();E(n.B,t),e&&o()}t=i,e=d}}}};let Ne;const ke=(t,e,n,r)=>{_(t,e);const o=Ct(e),i=Et(e),s=Rt(n);return r&&q(e),{x:i.h-o.h+s.h,y:i.w-o.w+s.w}},_e=(t,n)=>{const r="hidden";e(t,{overflowX:r,overflowY:r,direction:"rtl"}),I(t,0);const o=Bt(t),i=Bt(n);I(t,-999);const s=Bt(n);return{i:o.x===i.x,n:i.x!==s.x}},Fe=(t,e)=>{const n=at(t,Xt),r=Mt(t),o=Mt(e),i=ft(o,r,!0),s=at(t,Yt),l=Mt(t),c=Mt(e),a=ft(c,l,!0);return n(),s(),i&&a},qe=()=>(Ne||(Ne=(()=>{const{body:t}=document,r=X(`<div class="${Vt}"><div></div></div>`)[0],o=r.firstChild,[i,,s]=kt(),[l,c]=n({u:ke(t,r,o),_:ht},ke.bind(0,t,r,o,!0)),[a]=c(),d=(t=>{let n=!1;const r=at(t,re);try{n="none"===e(t,G("scrollbar-width"))||"none"===window.getComputedStyle(t,"::-webkit-scrollbar").getPropertyValue("display")}catch(o){}return r(),n})(r),u={x:0===a.x,y:0===a.y},h={elements:{host:null,padding:!d,viewport:t=>d&&t===t.ownerDocument.body&&t,content:!1},scrollbars:{slot:!0},cancel:{nativeScrollbarsOverlaid:!1,body:null}},p=E({},Ft),f={B:a,L:u,I:d,H:"-1"===e(r,"zIndex"),V:_e(r,o),j:Fe(r,o),Y:t=>i("_",t),q:E.bind(0,{},h),F(t){E(h,t)},G:E.bind(0,{},p),N(t){E(p,t)},X:E({},h),U:E({},p)};if(H(r,"style"),q(r),!(d||u.x&&u.y)){let t;window.addEventListener("resize",(()=>{const e=Pe()[je];t=t||e&&e.k(),t&&t(f,l,s.bind(0,"_"))}))}return f})()),Ne),Ve=(t,e)=>h(t)?t.apply(0,e):t,Xe=(t,e,n,r)=>{const o=s(r)?n:r;return Ve(o,t)||e()},Ye=(t,e,n,r)=>{const o=s(r)?n:r,i=Ve(o,t);return!!i&&(b(i)?i:e())},We=new WeakMap,Ze=t=>We.get(t),Ke=(t,e)=>t?e.split(".").reduce(((t,e)=>t&&S(t,e)?t[e]:void 0),t):void 0,Je=(t,e,n)=>r=>[Ke(t,r),n||void 0!==Ke(e,r)],Ge=t=>{let e=t;return[()=>e,t=>{e=E({},e,t)}]},Ue="tabindex",Qe=V.bind(0,""),tn=t=>{_(B(t),j(t)),q(t)},en=t=>{const e=qe(),{q:n,I:r}=e,o=Pe()[je],i=o&&o.T,{elements:s}=n(),{host:l,viewport:c,padding:a,content:d}=s,u=b(t),h=u?{}:t,{elements:p}=h,{host:f,padding:w,viewport:g,content:v}=p||{},x=u?t:h.target,$=A(x,"textarea"),S=x.ownerDocument,E=x===S.body,C=S.defaultView,P=Xe.bind(0,[x]),I=Ye.bind(0,[x]),z=P(Qe,c,g),D=z===x,T=D&&E,N=!D&&C.top===C&&S.activeElement===x,V={J:x,K:$?P(Qe,l,f):x,Z:z,tt:!D&&I(Qe,a,w),nt:!D&&I(Qe,d,v),ot:!D&&!r&&i&&i(e),st:T?S.documentElement:z,et:T?S:z,ct:C,rt:S,lt:$,W:E,it:u,ut:D,dt:(t,e)=>D?((t,e,n)=>{const r=R(t,Wt)||"";return new Set(r.split(" ")).has(n)})(z,0,e):((t,e)=>lt(t,e,((t,e)=>t.contains(e))))(z,t),ft:(t,e,n)=>D?M(z,Wt,e,n):(n?at:ct)(z,t)},X=L(V).reduce(((t,e)=>{const n=V[e];return m(t,!(!n||B(n))&&n)}),[]),Y=t=>t?y(X,t)>-1:null,{J:W,K:Z,tt:K,Z:J,nt:G,ot:U}=V,Q=[],tt=$&&Y(Z);let et=$?W:j([G,J,K,Z,W].find((t=>!1===Y(t))));const nt=G||J;return[V,()=>{const t=((t,e)=>(R(t,Wt,e),H.bind(0,t,Wt)))(Z,D?"viewport":"host"),e=at(K,Qt),n=at(J,!D&&te),o=at(G,ne),i=E?at(B(x),re):wt;if(tt&&(F(W,Z),m(Q,(()=>{F(Z,W),q(Z)}))),_(nt,et),_(Z,K),_(K||Z,!D&&J),_(J,G),m(Q,(()=>{i(),t(),H(J,Zt),H(J,Kt),Y(G)&&tn(G),Y(J)&&tn(J),Y(K)&&tn(K),e(),n(),o()})),r&&!D&&m(Q,ct.bind(0,J,re)),U&&(((t,e)=>{k(B(t),t,e)})(J,U),m(Q,q.bind(0,U))),N){const t=R(J,Ue);R(J,Ue,"-1"),J.focus();const e=Dt(S,"pointerdown keydown",(()=>{t?R(J,Ue,t):H(J,Ue),e()}))}et=0},O.bind(0,Q)]},nn=(t,n)=>{const{nt:r}=t,[o]=n;return t=>{const{j:n}=qe(),{_t:i}=o(),{ht:s}=t,l=(r||!n)&&s;return l&&e(r,{height:i?"":"100%"}),{gt:l,vt:l}}},rn=(t,r)=>{const[o,i]=r,{K:s,tt:l,Z:c,ut:a}=t,[d,u]=n({_:pt,u:Ot()},Ot.bind(0,s,"padding",""));return(t,n,r)=>{let[s,h]=u(r);const{I:p,j:f}=qe(),{wt:w}=o(),{gt:g,vt:b,bt:v}=t,[y,m]=n("paddingAbsolute");(g||h||!f&&b)&&([s,h]=d(r));const x=!a&&(m||v||h);if(x){const t=!y||!l&&!p,n=s.r+s.l,r=s.t+s.b,o={marginRight:t&&!w?-n:0,marginBottom:t?-r:0,marginLeft:t&&w?-n:0,top:t?-s.t:0,right:t?w?-s.r:"auto":0,left:t?w?"auto":-s.l:0,width:t?`calc(100% + ${n}px)`:""},a={paddingTop:t?s.t:0,paddingRight:t?s.r:0,paddingBottom:t?s.b:0,paddingLeft:t?s.l:0};e(l||c,o),e(c,a),i({tt:s,yt:!t,P:l?a:E({},o,a)})}return{St:x}}},{max:on}=Math,sn=on.bind(0,0),ln="visible",cn="hidden",an=42,dn={_:ut,u:{w:0,h:0}},un={_:ht,u:{x:cn,y:cn}},hn=(t,e,n)=>n?at(t,e):ct(t,e),pn=t=>0===t.indexOf(ln),fn=(t,r)=>{const[o,i]=r,{K:s,tt:l,Z:c,ot:a,ut:d,ft:u,W:h,ct:p}=t,{B:f,j:w,I:g,L:b}=qe(),v=Pe()[je],y=!d&&!g&&(b.x||b.y),m=h&&d,[x,$]=n(dn,Rt.bind(0,c)),[O,S]=n(dn,Pt.bind(0,c)),[L,E]=n(dn),[C,P]=n(dn),[H]=n(un),I=(t,n)=>{if(e(c,{height:""}),n){const{yt:n,tt:r}=o(),{xt:i,D:l}=t,a=Rt(s),d=Ct(s),u="content-box"===e(c,"boxSizing"),h=n||u?r.b+r.t:0,p=!(b.x&&u);e(c,{height:d.h+a.h+(i.x&&p?l.x:0)-h})}},z=(t,n)=>{const r=g||t?0:an,o=(t,o,i)=>{const s=e(c,t),l="scroll"===(n?n[t]:s);return[s,l,l&&!g?o?r:i:0,o&&!!r]},[i,s,l,a]=o("overflowX",b.x,f.x),[d,u,h,p]=o("overflowY",b.y,f.y);return{$t:{x:i,y:d},xt:{x:s,y:u},D:{x:l,y:h},R:{x:a,y:p}}},D=(t,e,n,r)=>{const{D:i,R:s}=t,{x:l,y:c}=s,{x:a,y:d}=i,{P:u}=o(),h=e?"marginLeft":"marginRight",p=e?"paddingLeft":"paddingRight",f=u[h],w=u.marginBottom,g=u[p],b=u.paddingBottom;r.width=`calc(100% + ${d+-1*f}px)`,r[h]=-d+f,r.marginBottom=-a+w,n&&(r[p]=g+(c?d:0),r.paddingBottom=b+(l?a:0))},[T,A]=v?v.M(y,w,c,a,o,z,D):[()=>y,()=>[wt]];return(t,n,r)=>{const{gt:a,Ct:h,vt:f,St:v,ht:y,bt:j}=t,{_t:B,wt:N}=o(),[k,_]=n("showNativeOverlaidScrollbars"),[F,q]=n("overflow"),V=k&&b.x&&b.y,X=!d&&!w&&(a||f||h||_||y),Y=pn(F.x),W=pn(F.y),Z=Y||W;let K,J=$(r),G=S(r),U=E(r),Q=P(r);if(_&&g&&u(re,Gt,!V),X&&(K=z(V),I(K,B)),a||v||f||j||_){Z&&u(oe,Jt,!1);const[t,e]=A(V,N,K),[n,o]=J=x(r),[i,s]=G=O(r),l=Ct(c);let a=i,d=l;t(),(s||o||_)&&e&&!V&&T(e,i,n,N)&&(d=Ct(c),a=Pt(c));const h={w:sn(on(i.w,a.w)+n.w),h:sn(on(i.h,a.h)+n.h)},f={w:sn(m?p.innerWidth:d.w+sn(l.w-i.w)+n.w),h:sn(m?p.innerHeight:d.h+sn(l.h-i.h)+n.h)};Q=C(f),U=L(((t,e)=>{const n=window.devicePixelRatio%1!=0?1:0,r={w:sn(t.w-e.w),h:sn(t.h-e.h)};return{w:r.w>n?r.w:0,h:r.h>n?r.h:0}})(h,f),r)}const[tt,et]=Q,[nt,rt]=U,[ot,it]=G,[st,lt]=J,ct={x:nt.w>0,y:nt.h>0},at=Y&&W&&(ct.x||ct.y)||Y&&ct.x&&!ct.y||W&&ct.y&&!ct.x;if(v||j||lt||it||et||rt||q||_||X){const t={marginRight:0,marginBottom:0,marginLeft:0,width:"",overflowY:"",overflowX:""},n=((t,e,n,r)=>{const o=(t,e)=>{const n=pn(t),r=e&&n&&t.replace(`${ln}-`,"")||"";return[e&&!n?t:"",pn(r)?"hidden":r]},[i,s]=o(n.x,e.x),[l,c]=o(n.y,e.y);return r.overflowX=s&&l?s:i,r.overflowY=c&&i?c:l,z(t,r)})(V,ct,F,t),r=T(n,ot,st,N);d||D(n,N,r,t),X&&I(n,B),d?(R(s,Zt,t.overflowX),R(s,Kt,t.overflowY)):e(c,t)}M(s,Wt,Jt,at),hn(l,oe,at),!d&&hn(c,oe,Z);const[dt,ut]=H(z(V).$t);return i({$t:dt,Ot:{x:tt.w,y:tt.h},Et:{x:nt.w,y:nt.h},At:ct}),{Tt:ut,zt:et,It:rt}}},wn=(e,n,r)=>{const o={},i=n||{};return t(L(e).concat(L(i)),(t=>{const n=e[t],s=i[t];o[t]=!!(r||n||s)})),o},gn=3333333,bn=t=>t&&(t.height||t.width),vn=(t,e,r)=>{const{Lt:o=!1,Ht:i=!1}=r||{},s=Pe()[Ie],{V:l}=qe(),c=X(`<div class="${ie}"><div class="${le}"></div></div>`)[0],a=c.firstChild,d=$t.bind(0,t),[h]=n({u:void 0,g:!0,_:(t,e)=>!(!t||!bn(t)&&bn(e))}),w=t=>{const n=p(t)&&t.length>0&&f(t[0]),r=!n&&u(t[0]);let i=!1,s=!1,a=!0;if(n){const[e,,n]=h(t.pop().contentRect),r=bn(e),o=bn(n);i=!n||!r,s=!o&&r,a=!i}else r?[,a]=t:s=!0===t;if(o&&a){const e=r?t[0]:$t(c);I(c,e?l.n?-gn:l.i?0:gn:gn),z(c,gn)}i||e({gt:!r,Mt:r?t:void 0,Ht:!!s})},g=[];let b=!!i&&w;return[()=>{O(g),q(c)},()=>{if(et){const t=new et(w);t.observe(a),m(g,(()=>{t.disconnect()}))}else if(s){const[t,e]=s.A(a,w,i);b=t,m(g,e)}if(o){const[t]=n({u:!d()},d);m(g,Dt(c,"scroll",(e=>{const n=t(),[r,o]=n;o&&(ct(a,"ltr rtl"),at(a,r?"rtl":"ltr"),w(n)),Tt(e)})))}b&&(at(c,se),m(g,Dt(c,"animationstart",b,{O:!!et}))),_(t,c)}]},yn=(t,e)=>{let r;const o=V(ue),i=[],[s]=n({u:!1}),l=(t,n)=>{if(t){const r=s((t=>0===t.h||t.isIntersecting||t.intersectionRatio>0)(t)),[,o]=r;if(o)return!n&&e(r),[r]}},c=(t,e)=>{if(t&&t.length>0)return l(t.pop(),e)};return[()=>{O(i),q(o)},()=>{if(tt)r=new tt((t=>c(t)),{root:t}),r.observe(o),m(i,(()=>{r.disconnect()}));else{const t=()=>{const t=Et(o);l(t)},[e,n]=vn(o,t);m(i,e),n(),t()}_(t,o)},()=>{if(r)return c(r.takeRecords(),!0)}]},mn=(e,n,r,o)=>{let i=!1;const{Pt:s,Dt:l,Rt:c,kt:a,Bt:u,Vt:h}=o||{},p=bt((()=>{i&&r(!0)}),{v:33,p:99}),[f,w]=((e,n,r)=>{let o,i=!1;const s=s=>{if(r){const l=r.reduce(((t,n)=>{if(n){const r=n[0],o=n[1],i=o&&r&&(s?s(r):T(r,e));i&&i.length&&o&&d(o)&&m(t,[i,o.trim()],!0)}return t}),[]);t(l,(e=>t(e[0],(t=>{const r=e[1],s=o.get(t);if(s){const t=s[0],e=s[1];t===r&&e()}const l=Dt(t,r,(e=>{i?(l(),o.delete(t)):n(e)}));o.set(t,[r,l])}))))}};return r&&(o=new WeakMap,s()),[()=>{i=!0},s]})(e,p,c),g=l||[],b=(s||[]).concat(g),v=(i,s)=>{const l=u||wt,c=h||wt,p=[],f=[];let b=!1,v=!1,x=!1;return t(i,(t=>{const{attributeName:r,target:i,type:s,oldValue:u,addedNodes:h}=t,w="attributes"===s,$="childList"===s,O=e===i,S=w&&d(r)?R(i,r):0,L=0!==S&&u!==S,E=y(g,r)>-1&&L;if(n&&!O){const n=!w,s=w&&E,d=s&&a&&A(i,a),p=(d?!l(i,r,u,S):n||s)&&!c(t,!!d,e,o);m(f,h),v=v||p,x=x||$}!n&&O&&L&&!l(i,r,u,S)&&(m(p,r),b=b||E)})),x&&!$(f)&&w((t=>f.reduce(((e,n)=>(m(e,T(t,n)),A(n,t)?m(e,n):e)),[]))),n?(!s&&v&&r(!1),[!1]):!$(p)||b?(!s&&r(p,b),[p,b]):void 0},x=new Q((t=>v(t)));return x.observe(e,{attributes:!0,attributeOldValue:!0,attributeFilter:b,subtree:n,childList:n,characterData:n}),i=!0,[()=>{i&&(f(),x.disconnect(),i=!1)},()=>{if(i){p.S();const t=x.takeRecords();return!$(t)&&v(t,!0)}}]},xn=`[${Wt}]`,$n=`.${te}`,On=["tabindex"],Sn=["wrap","cols","rows"],Ln=["id","class","style","open"],En=(e,r,o)=>{let i,s,l;const[,c]=r,{K:u,Z:f,nt:w,lt:g,ut:b,dt:x,ft:$}=e,{j:O}=qe(),[S]=n({_:ut,u:{w:0,h:0}},(()=>{const t=x(oe,Jt),e=x(ee,""),n=e&&I(f),r=e&&z(f);$(oe,Jt),$(ee,""),$("",Ut,!0);const o=Pt(w),i=Pt(f),s=Rt(f);return $(oe,Jt,t),$(ee,"",e),$("",Ut),I(f,n),z(f,r),{w:i.w+o.w+s.w,h:i.h+o.h+s.h}})),C=g?Sn:Ln.concat(Sn),P=bt(o,{v:()=>i,p:()=>s,m(t,e){const[n]=t,[r]=e;return[L(n).concat(L(r)).reduce(((t,e)=>(t[e]=n[e]||r[e],t)),{})]}}),M=e=>{t(e||On,(t=>{if(y(On,t)>-1){const e=R(u,t);d(e)?R(f,t,e):H(f,t)}}))},D=(t,e)=>{const[n,r]=t,i={ht:r};return c({_t:n}),!e&&o(i),i},T=({gt:t,Mt:e,Ht:n})=>{const r=!t||n?o:P;let i=!1;if(e){const[t,n]=e;i=n,c({wt:t})}r({gt:t,bt:i})},A=(t,e)=>{const[,n]=S(),r={vt:n};return n&&!e&&(t?o:P)(r),r},j=(t,e,n)=>{const r={Ct:e};return e?!n&&P(r):b||M(t),r},[B,k,_]=w||!O?yn(u,D):[wt,wt,wt],[F,q]=b?[wt,wt]:vn(u,T,{Ht:!0,Lt:!0}),[V,X]=mn(u,!1,j,{Dt:Ln,Pt:Ln.concat(On)}),Y=b&&et&&new et(T.bind(0,{gt:!0}));return Y&&Y.observe(u),M(),[()=>{B(),F(),l&&l[0](),Y&&Y.disconnect(),V()},()=>{q(),k()},()=>{const t={},e=X(),n=_(),r=l&&l[1]();return e&&E(t,j.apply(0,m(e,!0))),n&&E(t,D.apply(0,m(n,!0))),r&&E(t,A.apply(0,m(r,!0))),t},t=>{const[e]=t("update.ignoreMutation"),[n,r]=t("update.attributes"),[o,c]=t("update.elementEvents"),[d,u]=t("update.debounce"),g=t=>h(e)&&e(t);if((c||r)&&(l&&(l[1](),l[0]()),l=mn(w||f,!0,A,{Dt:C.concat(n||[]),Pt:C.concat(n||[]),Rt:o,kt:xn,Vt:(t,e)=>{const{target:n,attributeName:r}=t;return!(e||!r||b)&&((t,e,n)=>{const r=t&&N(t,e),o=t&&((t,e)=>{const n=e?v(e)?e:null:document;return n?n.querySelector(t):null})(n,r),i=N(o,e)===r;return!(!r||!o)&&(r===t||o===t||i&&N(N(t,n),e)!==r)})(n,xn,$n)||!!N(n,`.${he}`)||!!g(t)}})),u)if(P.S(),p(d)){const t=d[0],e=d[1];i=a(t)&&t,s=a(e)&&e}else a(d)?(i=d,s=!1):(i=!1,s=!1)}]},Cn={x:0,y:0},Pn={tt:{t:0,r:0,b:0,l:0},yt:!1,P:{marginRight:0,marginBottom:0,marginLeft:0,paddingTop:0,paddingRight:0,paddingBottom:0,paddingLeft:0},Ot:Cn,Et:Cn,$t:{x:"hidden",y:"hidden"},At:{x:!1,y:!1},_t:!1,wt:!1},{round:Rn}=Math,Mn=t=>({x:t.clientX,y:t.clientY}),Hn=(t,e)=>Dt(t,"mousedown",Dt.bind(0,e,"click",Tt,{O:!0,C:!0}),{C:!0}),In=(t,e,n,r,o,i)=>{const{V:s}=qe(),{Ft:l,Gt:c,Nt:a}=n,d=`scroll${i?"Left":"Top"}`,u=`${i?"x":"y"}`,h=`${i?"w":"h"}`,p=(t,e,n)=>p=>{const{Et:f}=o(),w=(Mn(p)[u]-e)*n/(Et(c)[h]-Et(l)[h])*f[u],g=$t(a)&&i?s.n||s.i?1:-1:1;r[d]=t+w*g};return Dt(l,"pointerdown",(n=>{if(((t,e,n)=>{const r=e.scrollbars,{button:o,isPrimary:i,pointerType:s}=t,{pointers:l}=r;return 0===o&&i&&r["dragScroll"]&&(l||[]).includes(s)})(n,t)){const t=Dt(e,"selectstart",(t=>At(t)),{$:!1}),o=Dt(l,"pointermove",p(r[d]||0,Mn(n)[u],1/(t=>{const{width:e,height:n}=Mt(t),{w:r,h:o}=Et(t);return{x:Rn(e)/r||1,y:Rn(n)/o||1}})(r)[u]));Dt(l,"pointerup",(e=>{t(),o(),l.releasePointerCapture(e.pointerId)}),{O:!0}),l.setPointerCapture(n.pointerId)}}))},{min:zn,max:Dn,abs:Tn,round:An}=Math,jn=(t,e,n,r)=>{if(r){const t=n?"x":"y",{Et:e,Ot:o}=r,i=o[t],s=e[t];return Dn(0,zn(1,i/(i+s)))}const o=n?"w":"h",i=Et(t)[o],s=Et(e)[o];return Dn(0,zn(1,i/s))},Bn=(n,r,o)=>{const{q:i}=qe(),{scrollbars:s}=i(),{slot:l}=s,{rt:c,J:a,K:d,Z:h,it:p,st:f}=r,{scrollbars:w}=p?{}:n,{slot:g}=w||{},b=Ye([a,d,h],(()=>d),l,g),v=(e,n,r)=>{const o=r?at:ct;t(e,(t=>{o(t.Nt,n)}))},y=(n,r)=>{t(n,(t=>{const[n,o]=r(t);e(n,o)}))},x=(t,e,n)=>{y(t,(t=>{const{Ft:r,Gt:o}=t;return[r,{[n?"width":"height"]:`${(100*jn(r,o,n,e)).toFixed(3)}%`}]}))},S=(t,e,n)=>{const r=n?"X":"Y";y(t,(t=>{const{Ft:o,Gt:i,Nt:s}=t,l=((t,e,n,r,o,i)=>{const{V:s}=qe(),l=i?"x":"y",c=i?"Left":"Top",{Et:a}=r,d=An(a[l]),u=Tn(n[`scroll${c}`]),h=i&&o,p=s.i?u:d-u,f=zn(1,(h?p:u)/d),w=jn(t,e,i);return 1/w*(1-w)*f})(o,i,f,e,$t(s),n);return[o,{transform:l==l?`translate${r}(${(100*l).toFixed(3)}%)`:""}]}))},L=[],E=[],C=[],P=(t,e,n)=>{const r=u(n),o=!r||!n;(!r||n)&&v(E,t,e),o&&v(C,t,e)},R=t=>{const e=t?fe:we,n=t?E:C,r=$(n)?me:"",i=V(`${he} ${e} ${r}`),s=V(ge),l=V(be),a={Nt:i,Gt:s,Ft:l};return _(i,s),_(s,l),m(n,a),m(L,[q.bind(0,i),o(a,P,c,d,f,t)]),a},M=R.bind(0,!0),H=R.bind(0,!1);return M(),H(),[{Xt:t=>{x(E,t,!0),x(C,t)},Ut:t=>{S(E,t,!0),S(C,t)},Wt:P,Jt:{Kt:E,Zt:M,Qt:y.bind(0,E)},tn:{Kt:C,Zt:H,Qt:y.bind(0,C)}},()=>{_(b,E[0].Nt),_(b,C[0].Nt),ot((()=>{P(me)}),300)},O.bind(0,L)]},Nn=(e,n,r)=>{const{G:o,Y:i}=qe(),c=Pe(),a=b(e),d=a?e:e.target,u=Ze(d);if(n&&!u){let u=!1;const p=c[Re],f=t=>{const e=t||{},n=p&&p.A;return n?n(e,!0):e},w=E({},o(),f(n)),[g,b,v]=kt(r),[y,m,x]=((e,n)=>{const r=Je(n,{}),o=Ge(Pn),[i,s,l]=kt(),[c]=o,[a,d,u]=en(e),h=((e,n)=>{const{J:r,Z:o,ft:i,ut:s}=e,{I:l,L:c,j:a}=qe(),d=!l&&(c.x||c.y),u=[nn(e,n),rn(e,n),fn(e,n)];return(e,n,l)=>{const c=wn(E({gt:!1,St:!1,bt:!1,ht:!1,zt:!1,It:!1,Tt:!1,Ct:!1,vt:!1},n),{},l),h=d||!a,p=h&&I(o),f=h&&z(o);i("",Ut,!0);let w=c;return t(u,(t=>{w=wn(w,t(w,e,!!l)||{},l)})),I(o,p),z(o,f),i("",Ut),s||(I(r,0),z(r,0)),w}})(a,o),p=(t,e,n)=>{const r=L(t).some((e=>t[e]));(r||!C(e)||n)&&l("u",[t,e,n])},[f,w,g,b]=En(a,o,(t=>{p(h(r,t),{},!1)})),v=c.bind(0);return v.jt=t=>{i("u",t)},v.Yt=()=>{const{J:t,Z:e}=a,n=I(t),r=z(t);w(),d(),I(e,n),z(e,r)},v.qt=a,[(t,e)=>{const r=Je(n,t,e);b(r),p(h(r,g(),e),t,!!e)},v,()=>{s(),f(),u()}]})(e,w),[$,S,P]=((t,e,n)=>{let r,o,i,s,l,c=0;const a=Ge({}),[d]=a,[u,h]=gt(),[p,f]=gt(),[w,g]=gt(100),[b,v]=gt(100),[y,m]=gt((()=>c)),[x,$,S]=Bn(t,n.qt,((t,e)=>(n,r,o,i,s,l)=>{const{Nt:c}=n,[a,d]=gt(500),u=!!s.scrollBy;let h=!0;return O.bind(0,[Dt(c,"pointerenter",(()=>{r(xe,!0)})),Dt(c,"pointerleave pointercancel",(()=>{r(xe)})),Dt(c,"wheel",(t=>{const{deltaX:e,deltaY:n,deltaMode:o}=t;u&&h&&0===o&&B(c)===i&&s.scrollBy({left:e,top:n,behavior:"smooth"}),h=!1,r(Se,!0),a((()=>{h=!0,r(Se)})),At(t)}),{$:!1,C:!0}),Hn(c,o),In(t,o,n,s,e,l),d])})(e,n)),{K:L,Z:E,st:C,et:P,ut:R,W:M}=n.qt,{Jt:H,tn:D,Wt:T,Xt:A,Ut:j}=x,{Qt:N}=H,{Qt:k}=D,_=t=>{const{Nt:e}=t,n=R&&!M&&B(e)===E&&e;return[n,{transform:n?`translate(${I(C)}px, ${z(C)}px)`:""}]},F=(t,e)=>{if(m(),t)T(Oe);else{const t=()=>T(Oe,!0);c>0&&!e?y(t):t()}},q=()=>{s=o,s&&F(!0)},V=[g,m,v,f,h,S,Dt(L,"pointerover",q,{O:!0}),Dt(L,"pointerenter",q),Dt(L,"pointerleave",(()=>{s=!1,o&&F(!1)})),Dt(L,"pointermove",(()=>{r&&u((()=>{g(),F(!0),b((()=>{r&&F(!1)}))}))})),Dt(P,"scroll",(()=>{p((()=>{j(n()),i&&F(!0),w((()=>{i&&!s&&F(!1)}))})),R&&N(_),R&&k(_)}))],X=d.bind(0);return X.qt=x,X.Yt=$,[(t,s,a)=>{const{zt:d,It:u,Tt:h,bt:p}=a,f=Je(e,t,s),w=n(),{Et:g,$t:b,wt:v}=w,[y,m]=f("scrollbars.theme"),[x,$]=f("scrollbars.visibility"),[O,S]=f("scrollbars.autoHide"),[L]=f("scrollbars.autoHideDelay"),[E,C]=f("scrollbars.dragScroll"),[P,R]=f("scrollbars.clickScroll"),H=d||u||p||s,I=h||$||s,z=(t,e)=>{const n="visible"===x||"auto"===x&&"scroll"===t;return T(ve,n,e),n};if(c=L,m&&(T(l),T(y,!0),l=y),S&&(r="move"===O,o="leave"===O,i="never"!==O,F(!i,!0)),C&&T(Ee,E),R&&T(Le,P),I){const t=z(b.x,!0),e=z(b.y,!1);T(ye,!(t&&e))}H&&(A(w),j(w),T($e,!g.x,!0),T($e,!g.y,!1),T(pe,v&&!M))},X,O.bind(0,V)]})(e,w,m),R=(t,e)=>{y(t,!!e)},M=i(R.bind(0,{},!0)),H=t=>{(t=>{We.delete(t)})(d),M(),P(),x(),u=!0,v("destroyed",[D,!!t]),b()},D={options(t){if(t){const e=qt(w,f(t));C(e)||(E(w,e),R(e))}return E({},w)},on:g,off:(t,e)=>{t&&e&&b(t,e)},state(){const{Ot:t,Et:e,$t:n,At:r,tt:o,yt:i,wt:s}=m();return E({},{overflowEdge:t,overflowAmount:e,overflowStyle:n,hasOverflow:r,padding:o,paddingAbsolute:i,directionRTL:s,destroyed:u})},elements(){const{J:t,K:e,tt:n,Z:r,nt:o,st:i,et:s}=m.qt,{Jt:l,tn:c}=S.qt,a=t=>{const{Ft:e,Gt:n,Nt:r}=t;return{scrollbar:r,track:n,handle:e}},d=t=>{const{Kt:e,Zt:n}=t,r=a(e[0]);return E({},r,{clone:()=>{const t=a(n());return $({},!0,{}),t}})};return E({},{target:t,host:e,padding:n||r,viewport:r,content:o||r,scrollOffsetElement:i,scrollEventElement:s,scrollbarHorizontal:d(l),scrollbarVertical:d(c)})},update:t=>(R({},t),D),destroy:H.bind(0)};return m.jt(((t,e,n)=>{$(e,n,t)})),t(L(c),(t=>{const e=c[t];h(e)&&e(Nn,D)})),((t,e)=>{const{nativeScrollbarsOverlaid:n,body:r}=t||{},{W:o}=e,{q:i,L:c,I:a}=qe(),{nativeScrollbarsOverlaid:d,body:u}=i().cancel,h=null!=n?n:d,p=s(r)?u:r,f=(c.x||c.y)&&h,w=o&&(l(p)?!a:p);return!!f||!!w})(!a&&e.cancel,m.qt)?(H(!0),D):(m.Yt(),S.Yt(),((t,e)=>{We.set(t,e)})(d,D),v("initialized",[D]),m.jt(((t,e,n)=>{const{gt:r,bt:o,ht:i,zt:s,It:l,Tt:c,vt:a,Ct:d}=t;v("updated",[D,{updateHints:{sizeChanged:r,directionChanged:o,heightIntrinsicChanged:i,overflowEdgeChanged:s,overflowAmountChanged:l,overflowStyleChanged:c,contentMutation:a,hostMutation:d},changedOptions:e,force:n}])})),D.update(!0))}return u};Nn.plugin=e=>{t(p(e)?e:[e],(t=>{const e=L(t)[0];Ce[e]=t[e]}))},Nn.valid=t=>{const e=t&&t.elements,n=h(e)&&e();return g(n)&&!!Ze(n.target)},Nn.env=()=>{const{B:t,L:e,I:n,V:r,j:o,H:i,X:s,U:l,q:c,F:a,G:d,N:u}=qe();return E({},{scrollbarsSize:t,scrollbarsOverlaid:e,scrollbarsHiding:n,rtlScrollBehavior:r,flexboxGlue:o,cssCustomProperties:i,staticDefaultInitialization:s,staticDefaultOptions:l,getDefaultInitialization:c,setDefaultInitialization:a,getDefaultOptions:d,setDefaultOptions:u})},exports.OverlayScrollbars=Nn,exports.scrollbarsHidingPlugin=Be,exports.sizeObserverPlugin=ze;