PHP Classes

File: public/assets/overlayscrollbars/overlayscrollbars.min.js

Recommend this page to a friend!
  Packages of Aby Dahana   Aksara   public/assets/overlayscrollbars/overlayscrollbars.min.js   Download  
File: public/assets/overlayscrollbars/overlayscrollbars.min.js
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: Aksara
A CodeIgniter based API and CRUD generator
Author: By
Last change:
Date: 1 month ago
Size: 29,878 bytes
 

Contents

Class file image Download
/*! * OverlayScrollbars * Version: 2.8.0 * * Copyright (c) Rene Haas | KingSora. * https://github.com/KingSora * * Released under the MIT license. */ var OverlayScrollbarsGlobal=function(t){"use strict";const e=(t,e)=>{const{o:n,i:r,u:o}=t;let s,i=n;const c=(t,e)=>{const n=i,c=t,l=e||(r?!r(n,c):n!==c);return(l||o)&&(i=c,s=n),[i,l,s]};return[e?t=>c(e(i,s),t):c,t=>[i,!!t,s]]},n="undefined"!=typeof window&&"undefined"!=typeof document,r=n?window:{},o=Math.max,s=Math.min,i=Math.round,c=Math.abs,l=Math.sign,a=r.cancelAnimationFrame,u=r.requestAnimationFrame,d=r.setTimeout,p=r.clearTimeout,y=t=>void 0!==r[t]?r[t]:void 0,f=y("MutationObserver"),h=y("IntersectionObserver"),v=y("ResizeObserver"),b=y("ScrollTimeline"),x=n&&Node.ELEMENT_NODE,{toString:g,hasOwnProperty:m}=Object.prototype,w=/^\[object (.+)\]$/,$=t=>void 0===t,S=t=>null===t,O=t=>"number"==typeof t,M=t=>"string"==typeof t,C=t=>"boolean"==typeof t,T=t=>"function"==typeof t,k=t=>Array.isArray(t),A=t=>"object"==typeof t&&!k(t)&&!S(t),E=t=>{const e=!!t&&t.length,n=O(e)&&e>-1&&e%1==0;return!(!(k(t)||!T(t)&&n)||e>0&&A(t)&&!(e-1 in t))},H=t=>{if(!t||!A(t)||"object"!==(t=>$(t)||S(t)?`${t}`:g.call(t).replace(w,"$1").toLowerCase())(t))return!1;let e;const n="constructor",r=t[n],o=r&&r.prototype,s=m.call(t,n),i=o&&m.call(o,"isPrototypeOf");if(r&&!s&&!i)return!1;for(e in t);return $(e)||m.call(t,e)},P=t=>{const e=HTMLElement;return!!t&&(e?t instanceof e:t.nodeType===x)},L=t=>{const e=Element;return!!t&&(e?t instanceof e:t.nodeType===x)},D=()=>performance.now(),R=(t,e,n,r,s)=>{let i=0;const c=D(),l=o(0,n),d=n=>{const a=D(),p=a-c>=l,y=n?1:1-(o(0,c+l-a)/l||0),f=(e-t)*(T(s)?s(y,y*l,0,1,l):y)+t,h=p||1===y;r&&r(f,y,h),i=h?0:u((()=>d()))};return d(),t=>{a(i),t&&d(t)}};function _(t,e){if(E(t))for(let n=0;n<t.length&&!1!==e(t[n],n,t);n++);else t&&_(Object.keys(t),(n=>e(t[n],n,t)));return t}const z=(t,e)=>t.indexOf(e)>=0,I=(t,e)=>t.concat(e),J=(t,e,n)=>(n||M(e)||!E(e)?t.push(e):Array.prototype.push.apply(t,e),t),N=t=>Array.from(t||[]),V=t=>k(t)?t:[t],j=t=>!!t&&!t.length,F=t=>N(new Set(t)),B=(t,e,n)=>{_(t,(t=>t&&t.apply(void 0,e||[]))),!n&&(t.length=0)},K="paddingTop",X="paddingRight",Y="paddingLeft",q="paddingBottom",W="marginLeft",G="marginRight",U="marginBottom",Z="overflowX",Q="overflowY",tt="width",et="height",nt="visible",rt="hidden",ot="scroll",st=(t,e,n,r)=>{if(t&&e){let o=!0;return _(n,(n=>{(r?r(t[n]):t[n])!==(r?r(e[n]):e[n])&&(o=!1)})),o}return!1},it=(t,e)=>st(t,e,["w","h"]),ct=(t,e)=>st(t,e,["x","y"]),lt=(t,e)=>st(t,e,["t","r","b","l"]),at=()=>{},ut=(t,...e)=>t.bind(0,...e),dt=t=>{let e;const n=t?d:u,r=t?p:a;return[o=>{r(e),e=n(o,T(t)?t():t)},()=>r(e)]},pt=(t,e)=>{let n,r,o,s=at;const{_:i,p:c,v:l}=e||{},y=function(e){s(),p(n),n=r=void 0,s=at,t.apply(this,e)},f=t=>l&&r?l(r,t):t,h=()=>{s!==at&&y(f(o)||o)},v=function(){const t=N(arguments),e=T(i)?i():i;if(O(e)&&e>=0){const i=T(c)?c():c,l=O(i)&&i>=0,v=e>0?d:u,b=e>0?p:a,x=f(t)||t,g=y.bind(0,x);s();const m=v(g,e);s=()=>b(m),l&&!n&&(n=d(h,i)),r=o=x}else y(t)};return v.S=h,v},yt=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),ft=t=>t?Object.keys(t):[],ht=(t,e,n,r,o,s,i)=>{const c=[e,n,r,o,s,i];return"object"==typeof t&&!S(t)||T(t)||(t={}),_(c,(e=>{_(e,((n,r)=>{const o=e[r];if(t===o)return!0;const s=k(o);if(o&&H(o)){const e=t[r];let n=e;s&&!k(e)?n=[]:s||H(e)||(n={}),t[r]=ht(n,o)}else t[r]=s?o.slice():o}))})),t},vt=(t,e)=>_(ht({},t),((t,n,r)=>{void 0===t?delete r[n]:e&&t&&H(t)&&(r[n]=vt(t,e))})),bt=t=>{for(const e in t)return!1;return!0},xt=(t,e,n)=>o(t,s(e,n)),gt=t=>N(new Set((k(t)?t:(t||"").split(" ")).filter((t=>t)))),mt=(t,e)=>t&&t.getAttribute(e),wt=(t,e)=>t&&t.hasAttribute(e),$t=(t,e,n)=>{_(gt(e),(e=>{t&&t.setAttribute(e,String(n||""))}))},St=(t,e)=>{_(gt(e),(e=>t&&t.removeAttribute(e)))},Ot=(t,e)=>{const n=gt(mt(t,e)),r=ut($t,t,e),o=(t,e)=>{const r=new Set(n);return _(gt(t),(t=>{r[e](t)})),N(r).join(" ")};return{m:t=>r(o(t,"delete")),O:t=>r(o(t,"add")),$:t=>{const e=gt(t);return e.reduce(((t,e)=>t&&n.includes(e)),e.length>0)}}},Mt=(t,e,n)=>(Ot(t,e).m(n),ut(Ct,t,e,n)),Ct=(t,e,n)=>(Ot(t,e).O(n),ut(Mt,t,e,n)),Tt=(t,e,n,r)=>(r?Ct:Mt)(t,e,n),kt=t=>Ot(t,"class"),At=(t,e)=>{kt(t).m(e)},Et=(t,e)=>(kt(t).O(e),ut(At,t,e)),Ht=(t,e)=>{const n=[],r=e?L(e)&&e:document;return r?J(n,r.querySelectorAll(t)):n},Pt=(t,e)=>!!L(t)&&t.matches(e),Lt=t=>Pt(t,"body"),Dt=t=>t?N(t.childNodes):[],Rt=t=>t&&t.parentElement,_t=(t,e)=>L(t)&&t.closest(e),zt=t=>(t||document).activeElement,It=t=>{if(E(t))_(N(t),(t=>It(t)));else if(t){const e=Rt(t);e&&e.removeChild(t)}},Jt=(t,e,n)=>{if(n&&t){let r,o=e;return E(n)?(r=document.createDocumentFragment(),_(n,(t=>{t===o&&(o=t.previousSibling),r.appendChild(t)}))):r=n,e&&(o?o!==e&&(o=o.nextSibling):o=t.firstChild),t.insertBefore(r,o||null),()=>It(n)}return at},Nt=(t,e)=>Jt(t,null,e),Vt=(t,e)=>Jt(Rt(t),t&&t.nextSibling,e),jt=t=>{const e=document.createElement("div");return $t(e,"class",t),e},Ft=t=>{const e=jt();return e.innerHTML=t.trim(),_(Dt(e),(t=>It(t)))},Bt=/^--/,Kt=(t,e)=>t.getPropertyValue(e)||t[e]||"",Xt=t=>{const e=t||0;return isFinite(e)?e:0},Yt=t=>Xt(parseFloat(t||"")),qt=t=>`${(100*Xt(t)).toFixed(3)}%`,Wt=t=>`${Xt(t)}px`;function Gt(t,e){t&&e&&_(e,((e,n)=>{try{const r=t.style,o=O(e)?Wt(e):(e||"")+"";Bt.test(n)?r.setProperty(n,o):r[n]=o}catch(o){}}))}function Ut(t,e,n){const o=M(e);let s=o?"":{};if(t){const i=r.getComputedStyle(t,n)||t.style;s=o?Kt(i,e):N(e).reduce(((t,e)=>(t[e]=Kt(i,e),t)),s)}return s}const Zt=(t,e,n)=>{const r=e?`${e}-`:"",o=n?`-${n}`:"",s=`${r}top${o}`,i=`${r}right${o}`,c=`${r}bottom${o}`,l=`${r}left${o}`,a=Ut(t,[s,i,c,l]);return{t:Yt(a[s]),r:Yt(a[i]),b:Yt(a[c]),l:Yt(a[l])}},Qt=(t,e)=>`translate${A(t)?`(${t.x},${t.y})`:`${e?"X":"Y"}(${t})`}`,te={w:0,h:0},ee=(t,e)=>e?{w:e[`${t}Width`],h:e[`${t}Height`]}:te,ne=t=>ee("inner",t||r),re=ut(ee,"offset"),oe=ut(ee,"client"),se=ut(ee,"scroll"),ie=t=>{const e=parseFloat(Ut(t,tt))||0,n=parseFloat(Ut(t,et))||0;return{w:e-i(e),h:n-i(n)}},ce=t=>t.getBoundingClientRect(),le=t=>!(!t||!t[et]&&!t[tt]),ae=(t,e)=>{const n=le(t);return!le(e)&&n},ue=(t,e,n,r)=>{_(gt(e),(e=>{t&&t.removeEventListener(e,n,r)}))},de=(t,e,n,r)=>{var o;const s=null==(o=r&&r.C)||o,i=r&&r.H||!1,c=r&&r.A||!1,l={passive:s,capture:i};return ut(B,gt(e).map((e=>{const r=c?o=>{ue(t,e,r,i),n&&n(o)}:n;return t&&t.addEventListener(e,r,l),ut(ue,t,e,r,i)})))},pe=t=>t.stopPropagation(),ye=t=>t.preventDefault(),fe=t=>pe(t)||ye(t),he=(t,e)=>{const{x:n,y:r}=O(e)?{x:e,y:e}:e||{};O(n)&&(t.scrollLeft=n),O(r)&&(t.scrollTop=r)},ve=t=>({x:t.scrollLeft,y:t.scrollTop}),be=(t,e)=>{const{I:n,T:r}=t,{w:o,h:s}=e,i=(t,e,n)=>{let r=l(t)*n,o=l(e)*n;if(r===o){const n=c(t),s=c(e);o=n>s?0:o,r=n<s?0:r}return[r+0,o+0]},[a,u]=i(n.x,r.x,o),[d,p]=i(n.y,r.y,s);return{I:{x:a,y:d},T:{x:u,y:p}}},xe=({I:t,T:e})=>{const n=(t,e)=>0===t&&t<=e;return{x:n(t.x,e.x),y:n(t.y,e.y)}},ge=({I:t,T:e},n)=>{const r=(t,e,n)=>xt(0,1,(t-n)/(t-e)||0);return{x:r(t.x,e.x,n.x),y:r(t.y,e.y,n.y)}},me=(t,e)=>{_(V(e),t)},we=t=>{const e=new Map,n=(t,n)=>{if(t){const r=e.get(t);me((t=>{r&&r[t?"delete":"clear"](t)}),n)}else e.forEach((t=>{t.clear()})),e.clear()},r=(t,o)=>{if(M(t)){const r=e.get(t)||new Set;return e.set(t,r),me((t=>{T(t)&&r.add(t)}),o),ut(n,t,o)}C(o)&&o&&n();const s=ft(t),i=[];return _(s,(e=>{const n=t[e];n&&J(i,r(e,n))})),ut(B,i)};return r(t||{}),[r,n,(t,n)=>{_(N(e.get(t)),(t=>{n&&!j(n)?t.apply(0,n):t()}))}]},$e=t=>JSON.stringify(t,((t,e)=>{if(T(e))throw 0;return e})),Se=(t,e)=>t?`${e}`.split(".").reduce(((t,e)=>t&&yt(t,e)?t[e]:void 0),t):void 0,Oe={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,autoHideSuspend:!1,dragScroll:!0,clickScroll:!1,pointers:["mouse","touch","pen"]}},Me=(t,e)=>{const n={};return _(I(ft(e),ft(t)),(r=>{const o=t[r],s=e[r];if(A(o)&&A(s))ht(n[r]={},Me(o,s)),bt(n[r])&&delete n[r];else if(yt(e,r)&&s!==o){let t=!0;if(k(o)||k(s))try{$e(o)===$e(s)&&(t=!1)}catch(c){}t&&(n[r]=s)}})),n},Ce=(t,e,n)=>r=>[Se(t,r),n||void 0!==Se(e,r)],Te=`data-overlayscrollbars`,ke="os-environment",Ae=`${ke}-scrollbar-hidden`,Ee=`${Te}-initialize`,He="noClipping",Pe=`${Te}-body`,Le=Te,De="host",Re=`${Te}-viewport`,_e=Z,ze=Q,Ie="arrange",Je="measuring",Ne="scrollbarHidden",Ve="scrollbarPressed",je="noContent",Fe=`${Te}-padding`,Be=`${Te}-content`,Ke="os-size-observer",Xe=`${Ke}-appear`,Ye=`${Ke}-listener`,qe=`${Ye}-scroll`,We=`${Ye}-item`,Ge=`${We}-final`,Ue="os-trinsic-observer",Ze="os-theme-none",Qe="os-scrollbar",tn=`${Qe}-rtl`,en=`${Qe}-horizontal`,nn=`${Qe}-vertical`,rn=`${Qe}-track`,on=`${Qe}-handle`,sn=`${Qe}-visible`,cn=`${Qe}-cornerless`,ln=`${Qe}-interaction`,an=`${Qe}-unusable`,un=`${Qe}-auto-hide`,dn=`${un}-hidden`,pn=`${Qe}-wheel`,yn=`${rn}-interactive`,fn=`${on}-interactive`;let hn;const vn=()=>(hn||(hn=(()=>{const t=(t,e,n)=>{Nt(document.body,t),Nt(document.body,t);const r=oe(t),o=re(t),s=ie(e);return n&&It(t),{x:o.h-r.h+s.h,y:o.w-r.w+s.w}},n=Ft(`<div class="${ke}"><div></div><style>${`.${ke}{scroll-behavior:auto!important;position:fixed;opacity:0;visibility:hidden;overflow:scroll;height:200px;width:200px;z-index:-1}.${ke} div{width:200%;height:200%;margin:10px 0}.${Ae}{scrollbar-width:none!important}.${Ae}::-webkit-scrollbar,.${Ae}::-webkit-scrollbar-corner{appearance:none!important;display:none!important;width:0!important;height:0!important}`}</style></div>`)[0],o=n.firstChild,[s,,i]=we(),[c,l]=e({o:t(n,o),i:ct},ut(t,n,o,!0)),[a]=l(),u=(t=>{let e=!1;const r=Et(t,Ae);try{e="none"===Ut(t,"scrollbar-width")||"none"===Ut(t,"display","::-webkit-scrollbar")}catch(n){}return r(),e})(n),d={x:0===a.x,y:0===a.y},p={elements:{host:null,padding:!u,viewport:t=>u&&Lt(t)&&t,content:!1},scrollbars:{slot:!0},cancel:{nativeScrollbarsOverlaid:!1,body:null}},y=ht({},Oe),f=ut(ht,{},y),h=ut(ht,{},p),v={D:a,k:d,M:u,R:!!b,V:ut(s,"r"),L:h,P:t=>ht(p,t)&&h(),U:f,N:t=>ht(y,t)&&f(),j:ht({},p),q:ht({},y)};if(St(n,"style"),It(n),de(r,"resize",(()=>{i("r",[])})),T(r.matchMedia)&&!u&&(!d.x||!d.y)){const t=e=>{const n=r.matchMedia(`(resolution: ${r.devicePixelRatio}dppx)`);de(n,"change",(()=>{e(),t(e)}),{A:!0})};t((()=>{const[t,e]=c();ht(v.D,t),i("r",[e])}))}return v})()),hn),bn=(t,e)=>T(e)?e.apply(0,t):e,xn=(t,e,n,r)=>{const o=$(r)?n:r;return bn(t,o)||e.apply(0,t)},gn=(t,e,n,r)=>{const o=$(r)?n:r,s=bn(t,o);return!!s&&(P(s)?s:e.apply(0,t))},mn=new WeakMap,wn=t=>mn.get(t),$n=(t,e,n,r)=>{let o=!1;const{F:s,B:i,X:c,Y:l,W:a,G:u}=r||{},d=pt((()=>o&&n(!0)),{_:33,p:99}),[p,y]=((t,e,n)=>{let r=!1;const o=!!n&&new WeakMap,s=s=>{if(o&&n){const i=n.map((e=>{const[n,r]=e||[];return[r&&n?(s||Ht)(n,t):[],r]}));_(i,(n=>_(n[0],(s=>{const i=n[1],c=o.get(s)||[];if(t.contains(s)&&i){const t=de(s,i,(n=>{r?(t(),o.delete(s)):e(n)}));o.set(s,J(c,t))}else B(c),o.delete(s)}))))}};return s(),[()=>{r=!0},s]})(t,d,c),h=i||[],v=I(s||[],h),b=(o,s)=>{if(!j(s)){const i=a||at,c=u||at,d=[],p=[];let f=!1,v=!1;if(_(s,(n=>{const{attributeName:o,target:s,type:a,oldValue:u,addedNodes:y,removedNodes:b}=n,x="attributes"===a,g="childList"===a,m=t===s,w=x&&o,$=w&&mt(s,o||"")||null,S=w&&u!==$,O=z(h,o)&&S;if(e&&(g||!m)){const e=x&&S,a=e&&l&&Pt(s,l),p=(a?!i(s,o,u,$):!x||e)&&!c(n,!!a,t,r);_(y,(t=>J(d,t))),_(b,(t=>J(d,t))),v=v||p}!e&&m&&S&&!i(s,o,u,$)&&(J(p,o),f=f||O)})),y((t=>F(d).reduce(((e,n)=>(J(e,Ht(t,n)),Pt(n,t)?J(e,n):e)),[]))),e)return!o&&v&&n(!1),[!1];if(!j(p)||f){const t=[F(p),f];return!o&&n.apply(0,t),t}}},x=new f(ut(b,!1));return[()=>(x.observe(t,{attributes:!0,attributeOldValue:!0,attributeFilter:v,subtree:e,childList:e,characterData:e}),o=!0,()=>{o&&(p(),x.disconnect(),o=!1)}),()=>{if(o)return d.S(),b(!0,x.takeRecords())}]},Sn={},On={},Mn=(t,e,n)=>ft(t).map((r=>{const{static:o,instance:s}=t[r],[i,c,l]=n||[],a=n?s:o;if(a){const t=n?a(i,c,e):a(e);return(l||On)[r]=t}})),Cn=t=>On[t],Tn="__osOptionsValidationPlugin",kn="__osSizeObserverPlugin",An=(()=>({[kn]:{static:()=>(t,e,n)=>{const r=3333333,o="scroll",s=Ft(`<div class="${We}" dir="ltr"><div class="${We}"><div class="${Ge}"></div></div><div class="${We}"><div class="${Ge}" style="width: 200%; height: 200%"></div></div></div>`),i=s[0],c=i.lastChild,l=i.firstChild,d=null==l?void 0:l.firstChild;let p,y=re(i),f=y,h=!1;const v=()=>{he(l,r),he(c,r)},b=t=>{p=0,h&&(y=f,e(!0===t))},x=t=>{f=re(i),h=!t||!it(f,y),t?(pe(t),h&&!p&&(a(p),p=u(b))):b(!1===t),v()},g=[Nt(t,s),de(l,o,x),de(c,o,x)];return Et(t,qe),Gt(d,{[tt]:r,[et]:r}),u(v),[n?ut(x,!1):v,g]}}}))(),En=(t,e)=>{const{k:n}=e,[r,o]=t("showNativeOverlaidScrollbars");return[r&&n.x&&n.y,o]},Hn=t=>0===t.indexOf(nt),Pn=(t,e)=>{const n=(t,e,n,r)=>{const o=t===nt?rt:t.replace(`${nt}-`,""),s=Hn(t),i=Hn(n);return e||r?s&&i?nt:s?e&&r?o:e?nt:rt:e?o:i&&r?nt:rt:rt},r={x:n(e.x,t.x,e.y,t.y),y:n(e.y,t.y,e.x,t.x)};return{J:r,K:{x:r.x===ot,y:r.y===ot}}},Ln="__osScrollbarsHidingPlugin",Dn=(()=>({[Ln]:{static:()=>({Z:(t,e,n,r,o)=>{const{tt:s,nt:i}=t,{M:c,k:l,D:a}=r,u=!s&&!c&&(l.x||l.y),[d]=En(o,r),p=t=>{const{K:e}=t,n=c||d?0:42,r=(t,e,r)=>[e&&!c?t?n:r:0,t&&!!n],[o,s]=r(l.x,e.x,a.x),[i,u]=r(l.y,e.y,a.y);return{ot:{x:o,y:i},st:{x:s,y:u}}},y=(t,{et:n},r)=>{if(!s){const o=ht({},{[G]:0,[U]:0,[W]:0}),{ot:s,st:i}=p(t),{x:c,y:l}=i,{x:a,y:u}=s,{ct:d}=e,y=n?W:G,f=n?Y:X,h=d[y],v=d[U],b=d[f],x=d[q];return o[tt]=`calc(100% + ${u+-1*h}px)`,o[y]=-u+h,o[U]=-a+v,r&&(o[f]=b+(l?u:0),o[q]=x+(c?a:0)),o}};return{rt:p,lt:(t,r,o)=>{if(u){const{ct:s}=e,{ot:c,st:l}=p(t),{x:a,y:u}=l,{x:d,y}=c,{et:f}=n,h=s[f?X:Y],v=s.paddingTop,b=r.w+o.w,x=r.h+o.h,g={w:y&&u?`${y+b-h}px`:"",h:d&&a?`${d+x-v}px`:""};Gt(i,{"--os-vaw":g.w,"--os-vah":g.h})}return u},it:t=>{if(u){const r=t||(()=>{const t=t=>{const e=Ut(i,t);return[e,e===ot]},[e,n]=t(Z),[r,o]=t(Q);return{J:{x:e,y:r},K:{x:n,y:o}}})(),{ct:o}=e,{st:s}=p(r),{x:c,y:l}=s,a={},d=t=>_(t,(t=>{a[t]=o[t]}));c&&d([U,K,q]),l&&d([W,G,Y,X]);const f=Ut(i,ft(a)),h=Mt(i,Re,Ie);return Gt(i,a),[()=>{Gt(i,ht({},f,y(r,n,u))),h()},r]}return[at]},ut:y}}})}}))(),Rn="__osClickScrollPlugin",_n=(()=>({[Rn]:{static:()=>(t,e,n,r,o)=>{let s=0,i=at;const c=l=>{i=R(l,l+r*Math.sign(n),133,((n,l,a)=>{t(n);const u=e();if(a&&!(o>=u&&o<=u+r)){if(s)c(n);else{const t=d((()=>{c(n)}),222);i=()=>{clearTimeout(t)}}s++}}))};return c(0),()=>i()}}}))(),zn=(t,n,r)=>{const{dt:o}=r||{},s=Cn(kn),[i]=e({o:!1,u:!0});return()=>{const e=[],r=Ft(`<div class="${Ke}"><div class="${Ye}"></div></div>`)[0],c=r.firstChild,l=t=>{let e=!1,r=!1;if(t instanceof ResizeObserverEntry){const[n,,o]=i(t.contentRect),s=le(n);r=ae(n,o),e=!r&&!s}else r=!0===t;e||n({_t:!0,dt:r})};if(v){const t=new v((t=>l(t.pop())));t.observe(c),J(e,(()=>{t.disconnect()}))}else{if(!s)return at;{const[t,n]=s(c,l,o);J(e,I([Et(r,Xe),de(r,"animationstart",t)],n))}}return ut(B,J(e,Nt(t,r)))}},In=(t,n)=>{let r;const o=jt(Ue),[s]=e({o:!1}),i=(t,e)=>{if(t){const r=s((t=>0===t.h||t.isIntersecting||t.intersectionRatio>0)(t)),[,o]=r;return o&&!e&&n(r)&&[r]}},c=(t,e)=>i(e.pop(),t);return[()=>{const e=[];if(h)r=new h(ut(c,!1),{root:t}),r.observe(o),J(e,(()=>{r.disconnect()}));else{const t=()=>{const t=re(o);i(t)};J(e,zn(o,t)()),t()}return ut(B,J(e,Nt(t,o)))},()=>r&&c(!0,r.takeRecords())]},Jn=(t,n,r,o)=>{let s,i,c,l,a,u;const{M:d}=vn(),p=`[${Le}]`,y=`[${Re}]`,f=["tabindex"],h=["wrap","cols","rows"],b=["id","class","style","open"],{ft:x,vt:g,nt:m,ht:w,gt:$,bt:S,tt:C,wt:A,yt:E}=t,H=t=>"rtl"===Ut(t,"direction"),P={St:!1,et:H(x)},D=vn(),R=Cn(Ln),[J]=e({i:it,o:{w:0,h:0}},(()=>{const e=R&&R.Z(t,n,P,D,r).it,o=!C&&A(Ie),s=o&&ve(w),i=E(Je,!0),c=o&&e&&e()[0],l=se($),a=se(m),u=ie(m);return c&&c(),he(w,s),i(),{w:a.w+l.w+u.w,h:a.h+l.h+u.h}})),N=S?h:I(b,h),V=pt(o,{_:()=>s,p:()=>i,v(t,e){const[n]=t,[r]=e;return[I(ft(n),ft(r)).reduce(((t,e)=>(t[e]=n[e]||r[e],t)),{})]}}),j=t=>{const e=H(x);ht(t,{Ot:u!==e}),ht(P,{et:e}),u=e},F=t=>{_(t||f,(t=>{if(z(f,t)){const e=mt(g,t);M(e)?$t(m,t,e):St(m,t)}}))},B=(t,e)=>{const[n,r]=t,s={$t:r};return ht(P,{St:n}),!e&&o(s),s},K=({_t:t,dt:e})=>{const n=t&&!e||!d?o:V,r={_t:t||e,dt:e};j(r),n(r)},X=(t,e)=>{const[,n]=J(),r={Ct:n};return j(r),n&&!e&&(t?o:V)(r),r},Y=(t,e,n)=>{const r={xt:e};return j(r),e&&!n?V(r):C||F(t),r},{V:q}=D,[W,G]=$?In(g,B):[],U=!C&&zn(g,K,{dt:!0}),[Z,Q]=$n(g,!1,Y,{B:b,F:I(b,f)}),tt=C&&v&&new v((t=>{const e=t[t.length-1].contentRect;K({_t:!0,dt:ae(e,a)}),a=e}));return[()=>{F(),tt&&tt.observe(g);const t=U&&U(),e=W&&W(),n=Z(),r=q((t=>{const[,e]=J();V({Ht:t,Ct:e})}));return()=>{tt&&tt.disconnect(),t&&t(),e&&e(),l&&l(),n(),r()}},({Et:t,zt:e,At:n})=>{const r={},[o]=t("update.ignoreMutation"),[a,u]=t("update.attributes"),[d,f]=t("update.elementEvents"),[h,v]=t("update.debounce"),b=e||n;if(f||u){c&&c(),l&&l();const[t,e]=$n($||m,!0,X,{F:I(N,a||[]),X:d,Y:p,G:(t,e)=>{const{target:n,attributeName:r}=t;return!(e||!r||C)&&((t,e,n)=>{const r=_t(t,e),o=t&&((t,e)=>{const n=e?L(e)&&e:document;return n?n.querySelector(t):null})(n,r),s=_t(o,e)===r;return!(!r||!o)&&(r===t||o===t||s&&_t(_t(t,n),e)!==r)})(n,p,y)||!!_t(n,`.${Qe}`)||!!(t=>T(o)&&o(t))(t)}});l=t(),c=e}if(v)if(V.S(),k(h)){const t=h[0],e=h[1];s=O(t)&&t,i=O(e)&&e}else O(h)?(s=h,i=!1):(s=!1,i=!1);if(b){const t=Q(),e=G&&G(),n=c&&c();t&&ht(r,Y(t[0],t[1],b)),e&&ht(r,B(e[0],b)),n&&ht(r,X(n[0],b))}return j(r),r},P]},Nn=(t,e,n,r)=>{const{L:o}=vn(),{scrollbars:s}=o(),{slot:i}=s,{ft:c,vt:l,nt:a,It:u,ht:d,Tt:p,tt:y}=e,{scrollbars:f}=u?{}:t,{slot:h}=f||{},v=new Map,x=t=>b&&new b({source:d,axis:t}),g={x:x("x"),y:x("y")},m=gn([c,l,a],(()=>y&&p?c:l),i,h),w=(t,e)=>{if(e){const n=t?tt:et,{Dt:r,kt:o}=e,s=ce(o)[n],i=ce(r)[n];return xt(0,1,s/i||0)}const r=t?"x":"y",{Mt:o,Rt:s}=n,i=s[r],c=o[r];return xt(0,1,i/(i+c)||0)},$=t=>ht(t,{clear:["left"]}),S=t=>{v.forEach(((e,n)=>{(!t||z(V(t),n))&&(_(e||[],(t=>{t&&t.cancel()})),v.delete(n))}))},O=(t,e,n,r)=>{const o=v.get(t)||[],s=o.find((t=>t&&t.timeline===e));s?s.effect=new KeyframeEffect(t,n,{composite:r}):v.set(t,I(o,[t.animate(n,{timeline:e,composite:r})]))},M=(t,e,n)=>{const r=n?Et:At;_(t,(t=>{r(t.Vt,e)}))},T=(t,e)=>{_(t,(t=>{const[n,r]=e(t);Gt(n,r)}))},k=(t,e)=>{T(t,(t=>{const{kt:n}=t;return[n,{[e?tt:et]:qt(w(e))}]}))},A=(t,e)=>{const{Lt:r}=n,o=e?"x":"y",s=g[o],i=xe(r)[o],c=(t,n)=>Qt(qt(((t,e,n)=>{const r=w(n,t);return 1/r*(1-r)*e})(t,i?n:1-n,e)),e);s?_(t,(t=>{const{kt:e}=t;O(e,s,$({transform:[0,1].map((e=>c(t,e)))}))})):T(t,(t=>[t.kt,{transform:c(t,ge(r,ve(d))[o])}]))},E=t=>y&&!p&&Rt(t)===a,H=[],P=[],L=[],D=(t,e,n)=>{const r=C(n),o=!r||!n;(!r||n)&&M(P,t,e),o&&M(L,t,e)},R=t=>{const e=jt(`${Qe} ${t?en:nn}`),n=jt(rn),o=jt(on),s={Vt:e,Dt:n,kt:o};return J(t?P:L,s),J(H,[Nt(e,n),Nt(n,o),ut(It,e),S,r(s,D,A,t)]),s},N=ut(R,!0),j=ut(R,!1);return N(),j(),[{Pt:()=>{k(P,!0),k(L)},Ut:()=>{A(P,!0),A(L)},Nt:()=>{if(y){const{Mt:t,Lt:e}=n,r=xe(e),o=.5;if(g.x&&g.y)_(I(L,P),(({Vt:e})=>{if(E(e)){const n=n=>O(e,g[n],$({transform:[0,r[n]?1:-1].map((e=>Qt(Wt(e*(t[n]-o)),"x"===n)))}),"add");n("x"),n("y")}else S(e)}));else{const n=ge(e,ve(d)),o=e=>{const{Vt:o}=e,s=E(o)&&o,i=(t,e,n)=>{const r=e*t;return Wt(n?r:-r)};return[s,s&&{transform:Qt({x:i(n.x,t.x,r.x),y:i(n.y,t.y,r.y)})}]};T(P,o),T(L,o)}}},jt:D,qt:{R:g.x,Ft:P,Bt:N,Xt:ut(T,P)},Yt:{R:g.y,Ft:L,Bt:j,Xt:ut(T,L)}},()=>(Nt(m,P[0].Vt),Nt(m,L[0].Vt),ut(B,H))]},Vn=(t,e,n,r)=>(o,s,l,a)=>{const{vt:u,nt:p,tt:y,ht:f,Wt:h,yt:v}=e,{Vt:b,Dt:x,kt:g}=o,[m,w]=dt(333),[$,S]=dt(444),[O,M]=dt(),C=ut(l,[o],a),k=t=>{T(f.scrollBy)&&f.scrollBy({behavior:"smooth",left:t.x,top:t.y})},A=a?tt:et;let E=!0;const H=t=>t.propertyName.indexOf(A)>-1;return ut(B,[de(g,"pointermove pointerleave",r),de(b,"pointerenter",(()=>{s(ln,!0)})),de(b,"pointerleave pointercancel",(()=>{s(ln,!1)})),!y&&de(b,"mousedown",(()=>{const t=zt();(wt(t,Re)||wt(t,Le)||t===document.body)&&d((()=>{p.focus({preventScroll:!0})}),25)})),de(b,"wheel",(t=>{const{deltaX:e,deltaY:n,deltaMode:r}=t;E&&0===r&&Rt(b)===u&&k({x:e,y:n}),E=!1,s(pn,!0),m((()=>{E=!0,s(pn)})),ye(t)}),{C:!1,H:!0}),de(g,"transitionstart",(t=>{if(H(t)){const t=()=>{C(),O(t)};t()}})),de(g,"transitionend transitioncancel",(t=>{H(t)&&(M(),C())})),de(b,"pointerdown",ut(de,h,"click",fe,{A:!0,H:!0,C:!1}),{H:!0}),(()=>{const e="pointerup pointercancel lostpointercapture",r=`client${a?"X":"Y"}`,o=a?"left":"top",s=a?"w":"h",l=a?"x":"y",u=(t,e)=>r=>{const{Mt:o}=n,i=re(x)[s]-re(g)[s],c=e*r/i*o[l];he(f,{[l]:t+c})};return de(x,"pointerdown",(n=>{const a=_t(n.target,`.${on}`)===g,d=a?g:x,p=t.scrollbars,{button:y,isPrimary:b,pointerType:m}=n,{pointers:w}=p;if(0===y&&b&&p[a?"dragScroll":"clickScroll"]&&(w||[]).includes(m)){S();const t=!a&&n.shiftKey,p=ut(ce,g),y=ut(ce,x),b=(t,e)=>(t||p())[o]-(e||y())[o],m=i(ce(f)[A])/re(f)[s]||1,w=u(ve(f)[l],1/m),O=n[r],M=p(),C=y(),T=M[A],E=b(M,C)+T/2,H=O-C[o],P=a?0:H-E,L=t=>{B(_),d.releasePointerCapture(t.pointerId)},D=()=>v(Ve,!0),R=D(),_=[()=>{const t=ve(f);R();const e=ve(f),n={x:e.x-t.x,y:e.y-t.y};(c(n.x)>3||c(n.y)>3)&&(D(),he(f,t),k(n),$(R))},de(h,e,L),de(h,"selectstart",(t=>ye(t)),{C:!1}),de(x,e,L),de(x,"pointermove",(e=>{const n=e[r]-O;(a||t)&&w(P+n)}))];if(d.setPointerCapture(n.pointerId),t)w(P);else if(!a){const t=Cn(Rn);t&&J(_,t(w,b,P,T,H))}}}))})(),w,S,M])},jn=t=>{const e=vn(),{L:n,M:o}=e,{elements:s}=n(),{host:i,padding:c,viewport:l,content:a}=s,u=P(t),d=u?{}:t,{elements:p}=d,{host:y,padding:f,viewport:h,content:v}=p||{},b=u?t:d.target,x=Lt(b),g=Pt(b,"textarea"),m=b.ownerDocument,w=m.documentElement,$=()=>m.defaultView||r,S=t=>{t&&t.focus&&t.focus({preventScroll:!0})},O=ut(xn,[b]),M=ut(gn,[b]),C=ut(jt,""),T=ut(O,C,l),k=ut(M,C,a),A=T(h),E=A===b,H=E&&x,L=!E&&k(v),D=!E&&A===L,R=H?w:A,_=g?O(C,i,y):b,I=H?R:_,N=!E&&M(C,c,f),V=!D&&L,j=[V,R,N,I].map((t=>P(t)&&!Rt(t)&&t)),F=t=>t&&z(j,t),K=F(R)?b:R,X={ft:b,vt:I,nt:R,en:N,gt:V,ht:H?w:R,Gt:H?m:R,cn:x?w:K,Wt:m,bt:g,Tt:x,It:u,tt:E,rn:$,wt:t=>((t,e,n)=>Ot(t,e).$(n))(R,Re,t),yt:(t,e)=>Tt(R,Re,t,e)},{ft:Y,vt:q,en:W,nt:G,gt:U}=X,Z=[()=>{St(q,[Le,Ee]),St(Y,Ee),x&&St(w,[Ee,Le])}],Q=g&&F(q);let tt=g?Y:Dt([U,G,W,q,Y].find((t=>t&&!F(t))));const et=H?Y:U||G,nt=ut(B,Z);return[X,()=>{const t=$(),e=zt(),n=t=>{Nt(Rt(t),Dt(t)),It(t)},r=t=>de(t,"focusin focusout focus blur",pe,{H:!0}),s="tabindex",i=mt(G,s),c=r(e);return $t(q,Le,E?"":De),$t(W,Fe,""),$t(G,Re,""),$t(U,Be,""),E||($t(G,s,i||"-1"),x&&$t(w,Pe,"")),Q&&(Vt(Y,q),J(Z,(()=>{Vt(q,Y),It(q)}))),Nt(et,tt),Nt(q,W),Nt(W||q,!E&&G),Nt(G,U),J(Z,[c,()=>{const t=zt(),e=r(t);St(W,Fe),St(U,Be),St(G,Re),x&&St(w,Pe),i?$t(G,s,i):St(G,s),F(U)&&n(U),F(G)&&n(G),F(W)&&n(W),S(t),e()}]),o&&!E&&(Ct(G,Re,Ne),J(Z,ut(St,G,Re))),S(E||e!==b||t.top!==t?e:G),c(),tt=0,nt},nt]},Fn=({gt:t})=>({Jt:e,ln:n,At:r})=>{const{$t:o}=e||{},{St:s}=n;t&&(o||r)&&Gt(t,{[et]:s&&"100%"})},Bn=({vt:t,en:n,nt:r,tt:o},s)=>{const[i,c]=e({i:lt,o:Zt()},ut(Zt,t,"padding",""));return({Et:t,Jt:e,ln:l,At:a})=>{let[u,d]=c(a);const{M:p}=vn(),{_t:y,Ct:f,Ot:h}=e||{},{et:v}=l,[b,x]=t("paddingAbsolute");(y||d||a||f)&&([u,d]=i(a));const g=!o&&(x||h||d);if(g){const t=!b||!n&&!p,e=u.r+u.l,o=u.t+u.b,i={[G]:t&&!v?-e:0,[U]:t?-o:0,[W]:t&&v?-e:0,top:t?-u.t:0,right:t?v?-u.r:"auto":0,left:t?v?"auto":-u.l:0,[tt]:t&&`calc(100% + ${e}px)`},c={[K]:t?u.t:0,[X]:t?u.r:0,[q]:t?u.b:0,[Y]:t?u.l:0};Gt(n||r,i),Gt(r,c),ht(s,{en:u,an:!t,ct:n?c:ht({},i,c)})}return{un:g}}},Kn=(t,n)=>{const s=vn(),{vt:i,en:c,nt:l,tt:a,ht:u,Tt:d,yt:p,rn:y}=t,{M:f}=s,h=d&&a,v=ut(o,0),b=["display","direction","flexDirection","writingMode"],x={i:it,o:{w:0,h:0}},g={i:ct,o:{}},m=(t,e)=>{const n=r.devicePixelRatio%1!=0?1:0,o={w:v(t.w-e.w),h:v(t.h-e.h)};return{w:o.w>n?o.w:0,h:o.h>n?o.h:0}},w=()=>{const t=ve(u),e=p(je,!0),n=de(u,ot,pe,{H:!0});he(u,{x:0,y:0}),e();const r=ve(u),o=se(u);he(u,{x:o.w,y:o.h});const s=ve(u);he(u,{x:s.x-r.x<1&&-o.w,y:s.y-r.y<1&&-o.h});const i=ve(u);return he(u,t),n(),{I:r,T:i}},$=()=>ht({},(t=>!!t&&(t=>!!(t.offsetWidth||t.offsetHeight||t.getClientRects().length))(t))(l)?Ut(l,b):{}),[S,O]=e(x,ut(ie,l)),[M,C]=e(x,ut(se,l)),[T,k]=e(x),[A]=e(g),[E,H]=e(x),[P]=e(g),[L]=e({i:(t,e)=>st(t,e,b),o:{}}),[D,R]=e({i:(t,e)=>ct(t.I,e.I)&&ct(t.T,e.T),o:{I:{x:0,y:0},T:{x:0,y:0}}}),z=Cn(Ln),I=(t,e)=>`${e?_e:ze}${(t=>{const e=String(t||"");return e?e[0].toUpperCase()+e.slice(1):""})(t)}`,J=t=>{const{J:e}=t;_(ft(e),(t=>{const n="x"===t,r=[nt,rt,ot].map((t=>I(t,n)));p(r.join(" ")),p(I(e[t],n),!0)}))};return({Et:e,Jt:r,ln:a,At:u},{un:d})=>{const{_t:b,Ct:x,Ot:g,dt:_,Ht:I}=r||{},N=z&&z.Z(t,n,a,s,e),{lt:V,it:j,ut:F}=N||{},[B,K]=En(e,s),[X,Y]=e("overflow"),q=Hn(X.x),W=Hn(X.y),G=b||d||x||g||I||K;let U=O(u),Z=C(u),Q=k(u),tt=H(u);if(K&&f&&p(Ne,!B),G){const[t]=j?j():[],[e]=U=S(u),[n]=Z=M(u),r=oe(l),s=n,i=r;t&&t();const c=ne(y()),a={w:v(o(n.w,s.w)+e.w),h:v(o(n.h,s.h)+e.h)},d={w:v((h?c.w:i.w+v(r.w-n.w))+e.w),h:v((h?c.h:i.h+v(r.h-n.h))+e.h)};tt=E(d),Q=T(m(a,d),u)}const[et,nt]=tt,[rt,ot]=Q,[st,it]=Z,[ct,lt]=U,[at,ut]=A({x:rt.w>0,y:rt.h>0}),dt=q&&W&&(at.x||at.y)||q&&at.x&&!at.y||W&&at.y&&!at.x,pt=d||g||I||lt||it||nt||ot||Y||K||G,yt=Pn(at,X),[ft,vt]=P(yt.J),[,bt]=L($(),u),xt=g||_||bt||ut||u,[gt,mt]=xt?D(w(),u):R();return pt&&(J(yt),F&&V&&Gt(l,F(yt,a,V(yt,st,ct)))),Tt(i,Le,He,dt),Tt(c,Fe,He,dt),ht(n,{J:ft,Rt:{x:et.w,y:et.h},Mt:{x:rt.w,y:rt.h},sn:at,Lt:be(gt,rt)}),{tn:vt,Qt:nt,Zt:ot,nn:mt||ot}}},Xn=(t,e,n,r)=>{const o=Ce(e,{}),[s,i,c,l,a]=(t=>{const[e,n,r]=jn(t),o={en:{t:0,r:0,b:0,l:0},an:!1,ct:{[G]:0,[U]:0,[W]:0,[K]:0,[X]:0,[q]:0,[Y]:0},Rt:{x:0,y:0},Mt:{x:0,y:0},J:{x:rt,y:rt},sn:{x:!1,y:!1},Lt:{I:{x:0,y:0},T:{x:0,y:0}}},{ft:s,ht:i,tt:c,yt:l}=e,{M:a,k:u}=vn(),d=!a&&(u.x||u.y),p=[Fn(e),Bn(e,o),Kn(e,o)];return[n,t=>{const e={},n=d,r=l(Je,!0),o=n&&ve(i);return _(p,(n=>{ht(e,n(t,e)||{})})),he(i,o),!c&&he(s,0),r(),e},o,e,r]})(t),[u,d,p]=Jn(l,c,o,(t=>{b({},t)})),[y,f,,h]=((t,e,n,r,o,s)=>{let i,c,l,a,u,d=at,p=0;const y=t=>"mouse"===t.pointerType,[f,h]=dt(),[v,b]=dt(100),[x,g]=dt(100),[m,w]=dt((()=>p)),[$,S]=Nn(t,o,r,Vn(e,o,r,(t=>y(t)&&P()))),{vt:O,Gt:M,Tt:C}=o,{jt:T,Pt:k,Ut:A,Nt:E}=$,H=(t,e)=>{if(w(),t)T(dn);else{const t=ut(T,dn,!0);p>0&&!e?m(t):t()}},P=()=>{(l?i:a)||(H(!0),v((()=>{H(!1)})))},L=t=>{T(un,t,!0),T(un,t,!1)},D=t=>{y(t)&&(i=l,l&&H(!0))},R=[w,b,g,h,()=>d(),de(O,"pointerover",D,{A:!0}),de(O,"pointerenter",D),de(O,"pointerleave",(t=>{y(t)&&(i=!1,l&&H(!1))})),de(O,"pointermove",(t=>{y(t)&&c&&P()})),de(M,"scroll",(t=>{f((()=>{A(),P()})),s(t),E()}))];return[()=>ut(B,J(R,S())),({Et:t,At:e,Jt:o,Kt:s})=>{const{Qt:i,Zt:y,tn:f,nn:h}=s||{},{Ot:v,dt:b}=o||{},{et:g}=n,{k:m}=vn(),{J:w,sn:$}=r,[S,O]=t("showNativeOverlaidScrollbars"),[P,D]=t("scrollbars.theme"),[R,_]=t("scrollbars.visibility"),[z,I]=t("scrollbars.autoHide"),[J,N]=t("scrollbars.autoHideSuspend"),[V]=t("scrollbars.autoHideDelay"),[j,F]=t("scrollbars.dragScroll"),[B,K]=t("scrollbars.clickScroll"),[X,Y]=t("overflow"),q=b&&!e,W=$.x||$.y,G=i||y||h||v||e,U=f||_||Y,Z=S&&m.x&&m.y,Q=(t,e,n)=>{const r=t.includes(ot)&&(R===nt||"auto"===R&&e===ot);return T(sn,r,n),r};if(p=V,q&&(J&&W?(L(!1),d(),x((()=>{d=de(M,"scroll",ut(L,!0),{A:!0})}))):L(!0)),O&&T(Ze,Z),D&&(T(u),T(P,!0),u=P),N&&!J&&L(!0),I&&(c="move"===z,l="leave"===z,a="never"===z,H(a,!0)),F&&T(fn,j),K&&T(yn,B),U){const t=Q(X.x,w.x,!0),e=Q(X.y,w.y,!1);T(cn,!(t&&e))}G&&(k(),A(),E(),T(an,!$.x,!0),T(an,!$.y,!1),T(tn,g&&!C))},{},$]})(t,e,p,c,l,r),v=t=>ft(t).some((e=>!!t[e])),b=(t,r)=>{const{dn:o,At:s,zt:c,_n:l}=t,a=o||{},u=!!s,y={Et:Ce(e,a,u),dn:a,At:u};if(l)return f(y),!1;const h=r||d(ht({},y,{zt:c})),b=i(ht({},y,{ln:p,Jt:h}));f(ht({},y,{Jt:h,Kt:b}));const x=v(h),g=v(b),m=x||g||!bt(a)||u;return m&&n(t,{Jt:h,Kt:b}),m};return[()=>{const{cn:t,ht:e,yt:n}=l,r=n(Je,!0),o=ve(t),i=[u(),s(),y()];return he(e,o),r(),ut(B,i)},b,()=>({fn:p,pn:c}),{vn:l,hn:h},a]},Yn=(t,e,n)=>{const{U:r}=vn(),o=P(t),s=o?t:t.target,i=wn(s);if(e&&!i){let i=!1;const c=[],l={},a=t=>{const e=vt(t,!0),n=Cn(Tn);return n?n(e,!0):e},u=ht({},r(),a(e)),[d,p,y]=we(),[f,h,v]=we(n),b=(t,e)=>{v(t,e),y(t,e)},[x,g,m,w,O]=Xn(t,u,(({dn:t,At:e},{Jt:n,Kt:r})=>{const{_t:o,Ot:s,$t:i,Ct:c,xt:l,dt:a}=n,{Qt:u,Zt:d,tn:p,nn:y}=r;b("updated",[C,{updateHints:{sizeChanged:!!o,directionChanged:!!s,heightIntrinsicChanged:!!i,overflowEdgeChanged:!!u,overflowAmountChanged:!!d,overflowStyleChanged:!!p,scrollCoordinatesChanged:!!y,contentMutation:!!c,hostMutation:!!l,appear:!!a},changedOptions:t||{},force:!!e}])}),(t=>b("scroll",[C,t]))),M=t=>{(t=>{mn.delete(t)})(s),B(c),i=!0,b("destroyed",[C,t]),p(),h()},C={options(t,e){if(t){const n=e?r():{},o=Me(u,ht(n,a(t)));bt(o)||(ht(u,o),g({dn:o}))}return ht({},u)},on:f,off:(t,e)=>{t&&e&&h(t,e)},state(){const{fn:t,pn:e}=m(),{et:n}=t,{Rt:r,Mt:o,J:s,sn:c,en:l,an:a,Lt:u}=e;return ht({},{overflowEdge:r,overflowAmount:o,overflowStyle:s,hasOverflow:c,scrollCoordinates:{start:u.I,end:u.T},padding:l,paddingAbsolute:a,directionRTL:n,destroyed:i})},elements(){const{ft:t,vt:e,en:n,nt:r,gt:o,ht:s,Gt:i}=w.vn,{qt:c,Yt:l}=w.hn,a=t=>{const{kt:e,Dt:n,Vt:r}=t;return{scrollbar:r,track:n,handle:e}},u=t=>{const{Ft:e,Bt:n}=t,r=a(e[0]);return ht({},r,{clone:()=>{const t=a(n());return g({_n:!0}),t}})};return ht({},{target:t,host:e,padding:n||r,viewport:r,content:o||r,scrollOffsetElement:s,scrollEventElement:i,scrollbarHorizontal:u(c),scrollbarVertical:u(l)})},update:t=>g({At:t,zt:!0}),destroy:ut(M,!1),plugin:t=>l[ft(t)[0]]};return J(c,[O]),((t,e)=>{mn.set(t,e)})(s,C),Mn(Sn,Yn,[C,d,l]),((t,e)=>{const{nativeScrollbarsOverlaid:n,body:r}=e||{},{k:o,M:s,L:i}=vn(),{nativeScrollbarsOverlaid:c,body:l}=i().cancel,a=null!=n?n:c,u=$(r)?l:r,d=(o.x||o.y)&&a,p=t&&(S(u)?!s:u);return!!d||!!p})(w.vn.Tt,!o&&t.cancel)?(M(!0),C):(J(c,x()),b("initialized",[C]),C.update(!0),C)}return i};return Yn.plugin=t=>{const e=k(t),n=e?t:[t],r=n.map((t=>Mn(t,Yn)[0]));return(t=>{_(t,(t=>_(t,((e,n)=>{Sn[n]=t[n]}))))})(n),e?r:r[0]},Yn.valid=t=>{const e=t&&t.elements,n=T(e)&&e();return H(n)&&!!wn(n.target)},Yn.env=()=>{const{D:t,k:e,M:n,R:r,j:o,q:s,L:i,P:c,U:l,N:a}=vn();return ht({},{scrollbarsSize:t,scrollbarsOverlaid:e,scrollbarsHiding:n,scrollTimeline:r,staticDefaultInitialization:o,staticDefaultOptions:s,getDefaultInitialization:i,setDefaultInitialization:c,getDefaultOptions:l,setDefaultOptions:a})},t.ClickScrollPlugin=_n,t.OverlayScrollbars=Yn,t.ScrollbarsHidingPlugin=Dn,t.SizeObserverPlugin=An,Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),t}({});