-
-
Notifications
You must be signed in to change notification settings - Fork 211
/
index-1b1oI7MP.js
9 lines (9 loc) · 29.6 KB
/
index-1b1oI7MP.js
1
2
3
4
5
6
7
8
9
(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))o(s);new MutationObserver(s=>{for(const c of s)if(c.type==="childList")for(const r of c.addedNodes)r.tagName==="LINK"&&r.rel==="modulepreload"&&o(r)}).observe(document,{childList:!0,subtree:!0});function n(s){const c={};return s.integrity&&(c.integrity=s.integrity),s.referrerPolicy&&(c.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?c.credentials="include":s.crossOrigin==="anonymous"?c.credentials="omit":c.credentials="same-origin",c}function o(s){if(s.ep)return;s.ep=!0;const c=n(s);fetch(s.href,c)}})();/*!
* OverlayScrollbars
* Version: 2.6.1
*
* Copyright (c) Rene Haas | KingSora.
* https://github.com/KingSora
*
* Released under the MIT license.
*/const St=(t,e)=>{const{o:n,u:o,_:s}=t;let c=n,r;const l=(a,f)=>{const v=c,E=a,A=f||(o?!o(v,E):v!==E);return(A||s)&&(c=E,r=v),[c,A,r]};return[e?a=>l(e(c,r),a):l,a=>[c,!!a,r]]},yn=typeof window<"u",gt=yn?window:{},we=Math.max,Fo=Math.min,Ge=Math.round,Jn=gt.cancelAnimationFrame,Zn=gt.requestAnimationFrame,We=gt.setTimeout,Xe=gt.clearTimeout,Ae=t=>typeof gt[t]<"u"?gt[t]:void 0,qo=Ae("MutationObserver"),An=Ae("IntersectionObserver"),xe=Ae("ResizeObserver"),Ye=Ae("ScrollTimeline"),Qn=yn&&Node.ELEMENT_NODE,{toString:Uo,hasOwnProperty:Ve}=Object.prototype,jo=/^\[object (.+)\]$/,ye=t=>t===void 0,Le=t=>t===null,Go=t=>ye(t)||Le(t)?`${t}`:Uo.call(t).replace(jo,"$1").toLowerCase(),Ct=t=>typeof t=="number",He=t=>typeof t=="string",to=t=>typeof t=="boolean",$t=t=>typeof t=="function",Ot=t=>Array.isArray(t),ue=t=>typeof t=="object"&&!Ot(t)&&!Le(t),Pe=t=>{const e=!!t&&t.length,n=Ct(e)&&e>-1&&e%1==0;return Ot(t)||!$t(t)&&n?e>0&&ue(t)?e-1 in t:!0:!1},Ee=t=>{if(!t||!ue(t)||Go(t)!=="object")return!1;let e;const n="constructor",o=t[n],s=o&&o.prototype,c=Ve.call(t,n),r=s&&Ve.call(s,"isPrototypeOf");if(o&&!c&&!r)return!1;for(e in t);return ye(e)||Ve.call(t,e)},le=t=>{const e=HTMLElement;return t?e?t instanceof e:t.nodeType===Qn:!1},De=t=>{const e=Element;return t?e?t instanceof e:t.nodeType===Qn:!1};function G(t,e){if(Pe(t))for(let n=0;n<t.length&&e(t[n],n,t)!==!1;n++);else t&&G(Object.keys(t),n=>e(t[n],n,t));return t}const Ie=(t,e)=>t.indexOf(e)>=0,Tt=(t,e)=>t.concat(e),J=(t,e,n)=>(!n&&!He(e)&&Pe(e)?Array.prototype.push.apply(t,e):t.push(e),t),qt=t=>Array.from(t||[]),eo=t=>Ot(t)?t:[t],Ke=t=>!!t&&!t.length,Ln=t=>qt(new Set(t)),mt=(t,e,n)=>{G(t,s=>s&&s.apply(void 0,e||[])),!n&&(t.length=0)},no="paddingTop",oo="paddingRight",so="paddingLeft",co="paddingBottom",ro="marginLeft",lo="marginRight",io="marginBottom",ke="overflowX",Me="overflowY",Jt="width",Zt="height",Qt="hidden",ao="visible",vn=(t,e,n,o)=>{if(t&&e){let s=!0;return G(n,c=>{const r=o?o(t[c]):t[c],l=o?o(e[c]):e[c];r!==l&&(s=!1)}),s}return!1},uo=(t,e)=>vn(t,e,["w","h"]),fo=(t,e)=>vn(t,e,["x","y"]),Wo=(t,e)=>vn(t,e,["t","r","b","l"]),wt=()=>{},R=(t,...e)=>t.bind(0,...e),Pt=t=>{let e;const n=t?We:Zn,o=t?Xe:Jn;return[s=>{o(e),e=n(s,$t(t)?t():t)},()=>o(e)]},po=(t,e)=>{let n,o,s,c=wt;const{v:r,p:l,S:i}=e||{},u=function(A){c(),Xe(n),n=o=void 0,c=wt,t.apply(this,A)},a=E=>i&&o?i(o,E):E,f=()=>{c!==wt&&u(a(s)||s)},v=function(){const A=qt(arguments),L=$t(r)?r():r;if(Ct(L)&&L>=0){const H=$t(l)?l():l,w=Ct(H)&&H>=0,m=L>0?We:Zn,x=L>0?Xe:Jn,D=a(A)||A,N=u.bind(0,D);c();const V=m(N,L);c=()=>x(V),w&&!n&&(n=We(f,H)),o=s=D}else u(A)};return v.m=f,v},yo=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),At=t=>t?Object.keys(t):[],j=(t,e,n,o,s,c,r)=>{const l=[e,n,o,s,c,r];return(typeof t!="object"||Le(t))&&!$t(t)&&(t={}),G(l,i=>{G(i,(u,a)=>{const f=i[a];if(t===f)return!0;const v=Ot(f);if(f&&Ee(f)){const E=t[a];let A=E;v&&!Ot(E)?A=[]:!v&&!Ee(E)&&(A={}),t[a]=j(A,f)}else t[a]=v?f.slice():f})}),t},vo=(t,e)=>G(j({},t),(n,o,s)=>{n===void 0?delete s[o]:e&&n&&Ee(n)&&(s[o]=vo(n,e))}),gn=t=>{for(const e in t)return!1;return!0},Je=(t,e,n)=>we(t,Fo(e,n)),Vt=t=>qt(new Set((Ot(t)?t:(t||"").split(" ")).filter(e=>e))),Re=(t,e)=>t&&t.getAttribute(e),ht=(t,e,n)=>{G(Vt(e),o=>{t&&t.setAttribute(o,n||"")})},Et=(t,e)=>{G(Vt(e),n=>t&&t.removeAttribute(n))},_e=(t,e)=>{const n=Vt(Re(t,e)),o=R(ht,t,e),s=(c,r)=>{const l=new Set(n);return G(Vt(c),i=>l[r](i)),qt(l).join(" ")};return{O:c=>o(s(c,"delete")),$:c=>o(s(c,"add")),C:c=>{const r=Vt(c);return r.reduce((l,i)=>l&&n.includes(i),r.length>0)}}},go=(t,e,n)=>{_e(t,e).O(n)},de=(t,e,n)=>(_e(t,e).$(n),R(go,t,e,n)),Oe=(t,e,n,o)=>{(o?de:go)(t,e,n)},Xo=(t,e,n)=>_e(t,e).C(n),mo=t=>_e(t,"class"),mn=(t,e)=>{mo(t).O(e)},Ce=(t,e)=>(mo(t).$(e),R(mn,t,e)),Hn=yn&&Element.prototype,bo=(t,e)=>{const n=[],o=e?De(e)&&e:document;return o?J(n,o.querySelectorAll(t)):n},Yo=(t,e)=>{const n=e?De(e)&&e:document;return n?n.querySelector(t):null},Ze=(t,e)=>De(t)?(Hn.matches||Hn.msMatchesSelector).call(t,e):!1,Qe=t=>t?qt(t.childNodes):[],te=t=>t&&t.parentElement,Gt=(t,e)=>De(t)&&t.closest(e),Ko=(t,e,n)=>{const o=Gt(t,e),s=t&&Yo(n,o),c=Gt(s,e)===o;return o&&s?o===t||s===t||c&&Gt(Gt(t,n),e)!==o:!1},kt=t=>{if(Pe(t))G(qt(t),e=>kt(e));else if(t){const e=te(t);e&&e.removeChild(t)}},ho=(t,e,n)=>{if(n&&t){let o=e,s;return Pe(n)?(s=document.createDocumentFragment(),G(n,c=>{c===o&&(o=c.previousSibling),s.appendChild(c)})):s=n,e&&(o?o!==e&&(o=o.nextSibling):o=t.firstChild),t.insertBefore(s,o||null),()=>kt(n)}return wt},vt=(t,e)=>ho(t,null,e),Pn=(t,e)=>ho(te(t),t&&t.nextSibling,e),Xt=t=>{const e=document.createElement("div");return ht(e,"class",t),e},So=t=>{const e=Xt();return e.innerHTML=t.trim(),G(Qe(e),n=>kt(n))},Jo=/^--/,Dn=(t,e)=>t.getPropertyValue(e)||t[e]||"",bn=t=>{const e=t||0;return isFinite(e)?e:0},be=t=>bn(parseFloat(t||"")),In=t=>`${(bn(t)*100).toFixed(3)}%`,tn=t=>`${bn(t)}px`;function ee(t,e){t&&G(e,(n,o)=>{try{const s=t.style,c=Ct(n)?tn(n):(n||"")+"";Jo.test(o)?s.setProperty(o,c):s[o]=c}catch{}})}function Ft(t,e,n){const o=He(e);let s=o?"":{};if(t){const c=gt.getComputedStyle(t,n)||t.style;s=o?Dn(c,e):e.reduce((r,l)=>(r[l]=Dn(c,l),r),s)}return s}const It=t=>Ft(t,"direction")==="rtl",kn=(t,e,n)=>{const o=e?`${e}-`:"",s=n?`-${n}`:"",c=`${o}top${s}`,r=`${o}right${s}`,l=`${o}bottom${s}`,i=`${o}left${s}`,u=Ft(t,[c,r,l,i]);return{t:be(u[c]),r:be(u[r]),b:be(u[l]),l:be(u[i])}},Fe=(t,e)=>`translate${ue(t)?`(${t.x},${t.y})`:`${e?"X":"Y"}(${t})`}`,Zo={w:0,h:0},Be=(t,e)=>e?{w:e[`${t}Width`],h:e[`${t}Height`]}:Zo,Qo=t=>Be("inner",t||gt),ie=R(Be,"offset"),wo=R(Be,"client"),en=R(Be,"scroll"),hn=t=>{const e=parseFloat(Ft(t,Jt))||0,n=parseFloat(Ft(t,Zt))||0;return{w:e-Ge(e),h:n-Ge(n)}},Yt=t=>t.getBoundingClientRect(),nn=t=>!!(t&&(t[Zt]||t[Jt])),Oo=(t,e)=>{const n=nn(t);return!nn(e)&&n},Mn=(t,e,n,o)=>{G(Vt(e),s=>{t.removeEventListener(s,n,o)})},nt=(t,e,n,o)=>{var s;const c=(s=o&&o.H)!=null?s:!0,r=o&&o.I||!1,l=o&&o.A||!1,i={passive:c,capture:r};return R(mt,Vt(e).map(u=>{const a=l?f=>{Mn(t,u,a,r),n(f)}:n;return t.addEventListener(u,a,i),R(Mn,t,u,a,r)}))},Sn=t=>t.stopPropagation(),Rn=t=>t.preventDefault(),ts={x:0,y:0},qe=t=>{const e=t&&Yt(t);return e?{x:e.left+gt.scrollX,y:e.top+gt.scrollY}:ts},$e=(t,e,n)=>n?n.n?-t+0:n.i?e-t:t:t,_n=(t,e)=>[$e(0,t,e),$e(t,t,e)],Bn=(t,e,n)=>Je(0,1,$e(t,e,n)/e||0),Mt=(t,e)=>{const{x:n,y:o}=Ct(e)?{x:e,y:e}:e||{};Ct(n)&&(t.scrollLeft=n),Ct(o)&&(t.scrollTop=o)},ne=t=>({x:t.scrollLeft,y:t.scrollTop}),zn=(t,e)=>{G(eo(e),t)},on=t=>{const e=new Map,n=(c,r)=>{if(c){const l=e.get(c);zn(i=>{l&&l[i?"delete":"clear"](i)},r)}else e.forEach(l=>{l.clear()}),e.clear()},o=(c,r)=>{if(He(c)){const u=e.get(c)||new Set;return e.set(c,u),zn(a=>{$t(a)&&u.add(a)},r),R(n,c,r)}to(r)&&r&&n();const l=At(c),i=[];return G(l,u=>{const a=c[u];a&&J(i,o(u,a))}),R(mt,i)},s=(c,r)=>{G(qt(e.get(c)),l=>{r&&!Ke(r)?l.apply(0,r):l()})};return o(t||{}),[o,n,s]},Nn=t=>JSON.stringify(t,(e,n)=>{if($t(n))throw 0;return n}),Vn=(t,e)=>t?`${e}`.split(".").reduce((n,o)=>n&&yo(n,o)?n[o]:void 0,t):void 0,es={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"]}},xo=(t,e)=>{const n={},o=Tt(At(e),At(t));return G(o,s=>{const c=t[s],r=e[s];if(ue(c)&&ue(r))j(n[s]={},xo(c,r)),gn(n[s])&&delete n[s];else if(yo(e,s)&&r!==c){let l=!0;if(Ot(c)||Ot(r))try{Nn(c)===Nn(r)&&(l=!1)}catch{}l&&(n[s]=r)}}),n},Fn=(t,e,n)=>o=>[Vn(t,o),n||Vn(e,o)!==void 0],ve="data-overlayscrollbars",Eo="os-environment",ns=`${Eo}-scrollbar-hidden`,Ue=`${ve}-initialize`,yt=ve,Co=`${yt}-overflow-x`,$o=`${yt}-overflow-y`,To="overflowVisible",os="scrollbarPressed",sn="updating",ss="body",Dt=`${ve}-viewport`,cs="arrange",Ao="scrollbarHidden",Kt=To,cn=`${ve}-padding`,rs=Kt,qn=`${ve}-content`,wn="os-size-observer",ls=`${wn}-appear`,is=`${wn}-listener`,as="os-trinsic-observer",us="os-theme-none",ft="os-scrollbar",ds=`${ft}-rtl`,fs=`${ft}-horizontal`,ps=`${ft}-vertical`,Lo=`${ft}-track`,On=`${ft}-handle`,ys=`${ft}-visible`,vs=`${ft}-cornerless`,Un=`${ft}-interaction`,jn=`${ft}-unusable`,rn=`${ft}-auto-hide`,Gn=`${rn}-hidden`,Wn=`${ft}-wheel`,gs=`${Lo}-interactive`,ms=`${On}-interactive`,Ho={},Po={},bs=t=>{G(t,e=>G(e,(n,o)=>{Ho[o]=e[o]}))},Do=(t,e,n)=>At(t).map(o=>{const{static:s,instance:c}=t[o],[r,l,i]=n||[],u=n?c:s;if(u){const a=n?u(r,l,e):u(e);return(i||Po)[o]=a}}),oe=t=>Po[t],hs="__osOptionsValidationPlugin",Ss="__osSizeObserverPlugin",ws=(t,e)=>{const{T:n}=e,[o,s]=t("showNativeOverlaidScrollbars");return[o&&n.x&&n.y,s]},Te=t=>t.indexOf(ao)===0,Io=(t,e)=>{const{D:n}=t,o=i=>{const u=Ft(n,i),f=(e?e[i]:u)==="scroll";return[u,f]},[s,c]=o(ke),[r,l]=o(Me);return{k:{x:s,y:r},R:{x:c,y:l}}},Os=(t,e,n,o)=>{const s=e.x||e.y,c=(a,f)=>{const v=Te(a),E=v&&s?"hidden":"",A=f&&v&&a.replace(`${ao}-`,"")||E;return[f&&!v?a:"",Te(A)?"hidden":A]},[r,l]=c(n.x,e.x),[i,u]=c(n.y,e.y);return o[ke]=l&&i?l:r,o[Me]=u&&r?u:i,Io(t,o)},xn="__osScrollbarsHidingPlugin",xs="__osClickScrollPlugin";let je;const Es=()=>{const t=(m,x,M,D)=>{vt(m,x);const N=wo(x),V=ie(x),_=hn(M);return D&&kt(x),{x:V.h-N.h+_.h,y:V.w-N.w+_.w}},e=m=>{let x=!1;const M=Ce(m,ns);try{x=Ft(m,"scrollbar-width")==="none"||Ft(m,"display","::-webkit-scrollbar")==="none"}catch{}return M(),x},n=(m,x)=>{ee(m,{[ke]:Qt,[Me]:Qt,direction:"rtl"}),Mt(m,{x:0});const M=qe(m),D=qe(x);Mt(m,{x:-999});const N=qe(x);return{i:M.x===D.x,n:D.x!==N.x}},{body:o}=document,c=So(`<div class="${Eo}"><div></div></div>`)[0],r=c.firstChild,[l,,i]=on(),[u,a]=St({o:t(o,c,r),u:fo},R(t,o,c,r,!0)),[f]=a(),v=e(c),E={x:f.x===0,y:f.y===0},A={elements:{host:null,padding:!v,viewport:m=>v&&m===m.ownerDocument.body&&m,content:!1},scrollbars:{slot:!0},cancel:{nativeScrollbarsOverlaid:!1,body:null}},L=j({},es),k=R(j,{},L),H=R(j,{},A),w={P:f,T:E,L:v,J:!!Ye,K:n(c,r),Z:R(l,"r"),G:H,tt:m=>j(A,m)&&H(),nt:k,ot:m=>j(L,m)&&k(),st:j({},A),et:j({},L)};return Et(c,"style"),kt(c),gt.addEventListener("resize",()=>{let m;if(!v&&(!E.x||!E.y)){const x=oe(xn);m=!!(x?x.Y():wt)(w,u)}i("r",[m])}),w},bt=()=>(je||(je=Es()),je),En=(t,e)=>$t(e)?e.apply(0,t):e,Cs=(t,e,n,o)=>{const s=ye(o)?n:o;return En(t,s)||e.apply(0,t)},ko=(t,e,n,o)=>{const s=ye(o)?n:o,c=En(t,s);return!!c&&(le(c)?c:e.apply(0,t))},$s=(t,e)=>{const{nativeScrollbarsOverlaid:n,body:o}=e||{},{T:s,L:c,G:r}=bt(),{nativeScrollbarsOverlaid:l,body:i}=r().cancel,u=n??l,a=ye(o)?i:o,f=(s.x||s.y)&&u,v=t&&(Le(a)?!c:a);return!!f||!!v},Cn=new WeakMap,Ts=(t,e)=>{Cn.set(t,e)},As=t=>{Cn.delete(t)},Mo=t=>Cn.get(t),Ls=(t,e,n)=>{let o=!1;const s=n?new WeakMap:!1,c=()=>{o=!0},r=l=>{if(s&&n){const i=n.map(u=>{const[a,f]=u||[];return[f&&a?(l||bo)(a,t):[],f]});G(i,u=>G(u[0],a=>{const f=u[1],v=s.get(a)||[];if(t.contains(a)&&f){const A=nt(a,f,L=>{o?(A(),s.delete(a)):e(L)});s.set(a,J(v,A))}else mt(v),s.delete(a)}))}};return r(),[c,r]},Xn=(t,e,n,o)=>{let s=!1;const{ct:c,rt:r,lt:l,it:i,ut:u,ft:a}=o||{},f=po(()=>s&&n(!0),{v:33,p:99}),[v,E]=Ls(t,f,l),A=c||[],L=r||[],k=Tt(A,L),H=(m,x)=>{if(!Ke(x)){const M=u||wt,D=a||wt,N=[],V=[];let _=!1,O=!1;if(G(x,b=>{const{attributeName:$,target:S,type:C,oldValue:z,addedNodes:W,removedNodes:q}=b,F=C==="attributes",X=C==="childList",Q=t===S,ot=F&&$,tt=ot&&Re(S,$||"")||null,P=ot&&z!==tt,Z=Ie(L,$)&&P;if(e&&(X||!Q)){const et=F&&P,it=et&&i&&Ze(S,i),p=(it?!M(S,$,z,tt):!F||et)&&!D(b,!!it,t,o);G(W,y=>J(N,y)),G(q,y=>J(N,y)),O=O||p}!e&&Q&&P&&!M(S,$,z,tt)&&(J(V,$),_=_||Z)}),E(b=>Ln(N).reduce(($,S)=>(J($,bo(b,S)),Ze(S,b)?J($,S):$),[])),e)return!m&&O&&n(!1),[!1];if(!Ke(V)||_){const b=[Ln(V),_];return!m&&n.apply(0,b),b}}},w=new qo(R(H,!1));return[()=>(w.observe(t,{attributes:!0,attributeOldValue:!0,attributeFilter:k,subtree:e,childList:e,characterData:e}),s=!0,()=>{s&&(v(),w.disconnect(),s=!1)}),()=>{if(s)return f.m(),H(!0,w.takeRecords())}]},Ro=(t,e,n)=>{const{_t:s,dt:c}=n||{},r=oe(Ss),{K:l}=bt(),i=R(It,t),[u]=St({o:!1,_:!0});return()=>{const a=[],v=So(`<div class="${wn}"><div class="${is}"></div></div>`)[0],E=v.firstChild,A=L=>{const k=L instanceof ResizeObserverEntry,H=!k&&Ot(L);let w=!1,m=!1,x=!0;if(k){const[M,,D]=u(L.contentRect),N=nn(M),V=Oo(M,D);m=!D||V,w=!m&&!N,x=!w}else H?[,x]=L:m=L===!0;if(s&&x){const M=H?L[0]:It(v);Mt(v,{x:$e(3333333,3333333,M&&l),y:3333333})}w||e({vt:H?L:void 0,ht:!H,dt:m})};if(xe){const L=new xe(k=>A(k.pop()));L.observe(E),J(a,()=>{L.disconnect()})}else if(r){const[L,k]=r(E,A,c);J(a,Tt([Ce(v,ls),nt(v,"animationstart",L)],k))}else return wt;if(s){const[L]=St({o:void 0},i);J(a,nt(v,"scroll",k=>{const H=L(),[w,m,x]=H;m&&(mn(E,"ltr rtl"),Ce(E,w?"rtl":"ltr"),A([!!w,m,x])),Sn(k)}))}return R(mt,J(a,vt(t,v)))}},Hs=(t,e)=>{let n;const o=i=>i.h===0||i.isIntersecting||i.intersectionRatio>0,s=Xt(as),[c]=St({o:!1}),r=(i,u)=>{if(i){const a=c(o(i)),[,f]=a;return f&&!u&&e(a)&&[a]}},l=(i,u)=>r(u.pop(),i);return[()=>{const i=[];if(An)n=new An(R(l,!1),{root:t}),n.observe(s),J(i,()=>{n.disconnect()});else{const u=()=>{const a=ie(s);r(a)};J(i,Ro(s,u)()),u()}return R(mt,J(i,vt(t,s)))},()=>n&&l(!0,n.takeRecords())]},Ps=(t,e,n,o)=>{let s,c,r,l,i,u;const{L:a}=bt(),f=`[${yt}]`,v=`[${Dt}]`,E=["tabindex"],A=["wrap","cols","rows"],L=["id","class","style","open"],{gt:k,bt:H,D:w,wt:m,St:x,V:M,yt:D,Ot:N}=t,V={$t:!1,N:It(k)},_=bt(),O=oe(xn),[b]=St({u:uo,o:{w:0,h:0}},()=>{const d=O&&O.M(t,e,V,_,n).W,p=D(Kt),y=!M&&D(cs),g=y&&ne(w);N(Kt),M&&N(sn,!0);const h=y&&d&&d()[0],T=en(m),I=en(w),B=hn(w);return N(Kt,p),M&&N(sn),h&&h(),Mt(w,g),{w:I.w+T.w+B.w,h:I.h+T.h+B.h}}),$=x?A:Tt(L,A),S=po(o,{v:()=>s,p:()=>c,S(d,p){const[y]=d,[g]=p;return[Tt(At(y),At(g)).reduce((h,T)=>(h[T]=y[T]||g[T],h),{})]}}),C=d=>{if(M){const p=It(k);j(d,{Ct:u!==p}),j(V,{N:p}),u=p}},z=d=>{G(d||E,p=>{if(Ie(E,p)){const y=Re(H,p);He(y)?ht(w,p,y):Et(w,p)}})},W=(d,p)=>{const[y,g]=d,h={xt:g};return j(V,{$t:y}),!p&&o(h),h},q=({ht:d,vt:p,dt:y})=>{const h=!(d&&!y&&!p)&&a?S:o,[T,I]=p||[],B={ht:d||y,dt:y,Ct:I};C(B),p&&j(V,{N:T}),h(B)},F=(d,p)=>{const[,y]=b(),g={Ht:y};return C(g),y&&!p&&(d?o:S)(g),g},X=(d,p,y)=>{const g={It:p};return C(g),p&&!y?S(g):M||z(d),g},{Z:Q}=_,[ot,tt]=m?Hs(H,W):[],P=!M&&Ro(H,q,{dt:!0,_t:!0}),[Z,et]=Xn(H,!1,X,{rt:L,ct:Tt(L,E)}),it=M&&xe&&new xe(d=>{const p=d[d.length-1].contentRect;q({ht:!0,dt:Oo(p,i)}),i=p});return[()=>{z(),it&&it.observe(H);const d=P&&P(),p=ot&&ot(),y=Z(),g=Q(h=>{const[,T]=b();S({zt:h,Ht:T})});return()=>{it&&it.disconnect(),d&&d(),p&&p(),l&&l(),y(),g()}},({Et:d,At:p,Tt:y})=>{const g={},[h]=d("update.ignoreMutation"),[T,I]=d("update.attributes"),[B,Y]=d("update.elementEvents"),[rt,at]=d("update.debounce"),K=Y||I,lt=p||y,_t=U=>$t(h)&&h(U);if(K){r&&r(),l&&l();const[U,ct]=Xn(m||w,!0,F,{ct:Tt($,T||[]),lt:B,it:f,ft:(ut,dt)=>{const{target:st,attributeName:pt}=ut;return(!dt&&pt&&!M?Ko(st,f,v):!1)||!!Gt(st,`.${ft}`)||!!_t(ut)}});l=U(),r=ct}if(at)if(S.m(),Ot(rt)){const U=rt[0],ct=rt[1];s=Ct(U)&&U,c=Ct(ct)&&ct}else Ct(rt)?(s=rt,c=!1):(s=!1,c=!1);if(lt){const U=et(),ct=tt&&tt(),ut=r&&r();U&&j(g,X(U[0],U[1],lt)),ct&&j(g,W(ct[0],lt)),ut&&j(g,F(ut[0],lt))}return C(g),g},V]},Ds=(t,e,n,o)=>{const{G:s,K:c}=bt(),{scrollbars:r}=s(),{slot:l}=r,{gt:i,bt:u,D:a,Dt:f,kt:v,Rt:E,V:A}=e,{scrollbars:L}=f?{}:t,{slot:k}=L||{},H=new Map,w=d=>Ye&&new Ye({source:v,axis:d}),m=w("x"),x=w("y"),M=ko([i,u,a],()=>A&&E?i:u,l,k),D=(d,p)=>{if(p){const B=d?Jt:Zt,{Mt:Y,Vt:rt}=p,at=Yt(rt)[B],K=Yt(Y)[B];return Je(0,1,at/K||0)}const y=d?"x":"y",{Lt:g,Pt:h}=n,T=h[y],I=g[y];return Je(0,1,T/(T+I)||0)},N=(d,p,y,g)=>{const h=D(y,d);return 1/h*(1-h)*(g?1-p:p)||0},V=(d,p)=>j(d,p?{clear:["left"]}:{}),_=d=>{H.forEach((p,y)=>{(d?Ie(eo(d),y):!0)&&(G(p||[],h=>{h&&h.cancel()}),H.delete(y))})},O=(d,p,y,g)=>{const h=H.get(d)||[],T=h.find(I=>I&&I.timeline===p);T?T.effect=new KeyframeEffect(d,y,{composite:g}):H.set(d,Tt(h,[d.animate(y,{timeline:p,composite:g})]))},b=(d,p,y)=>{const g=y?Ce:mn;G(d,h=>{g(h.Ut,p)})},$=(d,p)=>{G(d,y=>{const[g,h]=p(y);ee(g,h)})},S=(d,p)=>{$(d,y=>{const{Vt:g}=y;return[g,{[p?Jt:Zt]:In(D(p))}]})},C=(d,p)=>{const{Lt:y}=n,g=p?y.x:y.y,h=(T,I,B)=>Fe(In(N(T,Bn(I,g,B),p,B)),p);if(m&&x)G(d,T=>{const{Ut:I,Vt:B}=T,Y=p&&It(I)&&c;O(B,p?m:x,V({transform:_n(g,Y).map(rt=>h(T,rt,Y))},Y))});else{const T=ne(v);$(d,I=>{const{Vt:B,Ut:Y}=I;return[B,{transform:h(I,p?T.x:T.y,p&&It(Y)&&c)}]})}},z=d=>A&&!E&&te(d)===a,W=[],q=[],F=[],X=(d,p,y)=>{const g=to(y),h=g?y:!0,T=g?!y:!0;h&&b(q,d,p),T&&b(F,d,p)},Q=()=>{S(q,!0),S(F)},ot=()=>{C(q,!0),C(F)},tt=()=>{if(A){const{Lt:d}=n,p=.5;if(m&&x)G(Tt(F,q),({Ut:y})=>{if(z(y)){const g=(h,T,I)=>{const B=I&&It(y)&&c;O(y,h,V({transform:_n(T-p,B).map(Y=>Fe(tn(Y),I))},B),"add")};g(m,d.x,!0),g(x,d.y)}else _(y)});else{const y=ne(v),g=h=>{const{Ut:T}=h,I=z(T)&&T,B=(Y,rt,at)=>{const K=Bn(Y,rt,at),lt=rt*K;return tn(at?-lt:lt)};return[I,{transform:I?Fe({x:B(y.x,d.x,It(T)&&c),y:B(y.y,d.y)}):""}]};$(q,g),$(F,g)}}},P=d=>{const y=Xt(`${ft} ${d?fs:ps}`),g=Xt(Lo),h=Xt(On),T={Ut:y,Mt:g,Vt:h};return J(d?q:F,T),J(W,[vt(y,g),vt(g,h),R(kt,y),_,o(T,X,C,d)]),T},Z=R(P,!0),et=R(P,!1),it=()=>(vt(M,q[0].Ut),vt(M,F[0].Ut),R(mt,W));return Z(),et(),[{Bt:Q,Nt:ot,jt:tt,Ft:X,qt:{J:m,Wt:q,Xt:Z,Yt:R($,q)},Jt:{J:x,Wt:F,Xt:et,Yt:R($,F)}},it]},Is=(t,e,n)=>{const{bt:o,kt:s,Kt:c}=e;return(r,l,i,u)=>{const{Ut:a,Mt:f,Vt:v}=r,[E,A]=Pt(333),[L,k]=Pt(),H=R(i,[r],u),w=!!s.scrollBy,m=`client${u?"X":"Y"}`,x=u?Jt:Zt,M=u?"left":"top",D=u?"w":"h",N=u?"x":"y",V=b=>b.propertyName.indexOf(x)>-1,_=()=>{const b="pointerup pointerleave pointercancel lostpointercapture",$=(S,C)=>z=>{const{Lt:W}=n,q=ie(f)[D]-ie(v)[D],X=C*z/q*W[N];Mt(s,{[N]:S+X})};return nt(f,"pointerdown",S=>{const C=Gt(S.target,`.${On}`)===v,z=C?v:f,W=t.scrollbars,{button:q,isPrimary:F,pointerType:X}=S,{pointers:Q}=W;if(q===0&&F&&W[C?"dragScroll":"clickScroll"]&&(Q||[]).includes(X)){const tt=!C&&S.shiftKey,P=R(Yt,v),Z=R(Yt,f),et=(K,lt)=>(K||P())[M]-(lt||Z())[M],it=Ge(Yt(s)[x])/ie(s)[D]||1,d=$(ne(s)[N]||0,1/it),p=S[m],y=P(),g=Z(),h=y[x],T=et(y,g)+h/2,I=p-g[M],B=C?0:I-T,Y=K=>{mt(at),z.releasePointerCapture(K.pointerId)},at=[de(o,yt,os),nt(c,b,Y),nt(c,"selectstart",K=>Rn(K),{H:!1}),nt(f,b,Y),nt(f,"pointermove",K=>{const lt=K[m]-p;(C||tt)&&d(B+lt)})];if(z.setPointerCapture(S.pointerId),tt)d(B);else if(!C){const K=oe(xs);K&&J(at,K(d,et,B,h,I))}}})};let O=!0;return R(mt,[nt(a,"pointerenter",()=>{l(Un,!0)}),nt(a,"pointerleave pointercancel",()=>{l(Un,!1)}),nt(a,"wheel",b=>{const{deltaX:$,deltaY:S,deltaMode:C}=b;w&&O&&C===0&&te(a)===o&&s.scrollBy({left:$,top:S,behavior:"smooth"}),O=!1,l(Wn,!0),E(()=>{O=!0,l(Wn)}),Rn(b)},{H:!1,I:!0}),nt(v,"transitionstart",b=>{if(V(b)){const $=()=>{H(),L($)};$()}}),nt(v,"transitionend transitioncancel",b=>{V(b)&&(k(),H())}),nt(a,"mousedown",R(nt,c,"click",Sn,{A:!0,I:!0}),{I:!0}),_(),A,k])}},ks=(t,e,n,o,s,c)=>{let r,l,i,u,a,f=wt,v=0;const[E,A]=Pt(),[L,k]=Pt(),[H,w]=Pt(100),[m,x]=Pt(100),[M,D]=Pt(100),[N,V]=Pt(()=>v),[_,O]=Ds(t,s,o,Is(e,s,o)),{bt:b,Zt:$,Rt:S}=s,{Ft:C,Bt:z,Nt:W,jt:q}=_,F=P=>{C(rn,P,!0),C(rn,P,!1)},X=(P,Z)=>{if(V(),P)C(Gn);else{const et=R(C,Gn,!0);v>0&&!Z?N(et):et()}},Q=P=>P.pointerType==="mouse",ot=P=>{Q(P)&&(u=l,u&&X(!0))},tt=[w,V,x,D,k,A,()=>f(),nt(b,"pointerover",ot,{A:!0}),nt(b,"pointerenter",ot),nt(b,"pointerleave",P=>{Q(P)&&(u=!1,l&&X(!1))}),nt(b,"pointermove",P=>{Q(P)&&r&&E(()=>{w(),X(!0),m(()=>{r&&X(!1)})})}),nt($,"scroll",P=>{L(()=>{W(),i&&X(!0),H(()=>{i&&!u&&X(!1)})}),c(P),q()})];return[()=>R(mt,J(tt,O())),({Et:P,Tt:Z,Gt:et,Qt:it})=>{const{tn:d,nn:p,sn:y}=it||{},{Ct:g,dt:h}=et||{},{N:T}=n,{T:I}=bt(),{k:B,en:Y}=o,[rt,at]=P("showNativeOverlaidScrollbars"),[K,lt]=P("scrollbars.theme"),[_t,U]=P("scrollbars.visibility"),[ct,ut]=P("scrollbars.autoHide"),[dt,st]=P("scrollbars.autoHideSuspend"),[pt]=P("scrollbars.autoHideDelay"),[Bt,Ut]=P("scrollbars.dragScroll"),[xt,zt]=P("scrollbars.clickScroll"),[Lt,ze]=P("overflow"),Ht=h&&!Z,Ne=Y.x||Y.y,se=d||p||g||Z,ge=y||U||ze,me=rt&&I.x&&I.y,ce=(re,jt,$n)=>{const Tn=re.includes("scroll")&&(_t==="visible"||_t==="auto"&&jt==="scroll");return C(ys,Tn,$n),Tn};if(v=pt,Ht&&(dt&&Ne?(F(!1),f(),M(()=>{f=nt($,"scroll",R(F,!0),{A:!0})})):F(!0)),at&&C(us,me),lt&&(C(a),C(K,!0),a=K),st&&!dt&&F(!0),ut&&(r=ct==="move",l=ct==="leave",i=ct!=="never",X(!i,!0)),Ut&&C(ms,Bt),zt&&C(gs,xt),ge){const re=ce(Lt.x,B.x,!0),jt=ce(Lt.y,B.y,!1);C(vs,!(re&&jt))}se&&(z(),W(),q(),C(jn,!Y.x,!0),C(jn,!Y.y,!1),C(ds,T&&!S))},{},_]},Ms=t=>{const e=bt(),{G:n,L:o}=e,{elements:s}=n(),{host:c,padding:r,viewport:l,content:i}=s,u=le(t),a=u?{}:t,{elements:f}=a,{host:v,padding:E,viewport:A,content:L}=f||{},k=u?t:a.target,H=Ze(k,"textarea"),w=k.ownerDocument,m=w.documentElement,x=k===w.body,M=w.defaultView,D=()=>w.activeElement,N=U=>{U&&U.focus&&U.focus()},V=R(Cs,[k]),_=R(ko,[k]),O=R(En,[k]),b=R(Xt,""),$=R(V,b,l),S=R(_,b,i),C=$(A),z=C===k,W=z&&x,q=!z&&S(L),F=!z&&le(C)&&C===q,X=F&&!!O(i),Q=X?$():C,ot=X?q:S(),P=W?m:F?Q:C,Z=H?V(b,c,v):k,et=W?P:Z,it=F?ot:q,d={gt:k,bt:et,D:P,cn:!z&&_(b,r,E),wt:it,kt:W?m:P,Zt:W?w:P,rn:x?m:k,ln:M,Kt:w,St:H,Rt:x,Dt:u,V:z,an:F,yt:U=>Xo(P,z?yt:Dt,U),Ot:(U,ct)=>Oe(P,z?yt:Dt,U,ct)},p=At(d).reduce((U,ct)=>{const ut=d[ct];return J(U,ut&&le(ut)&&!te(ut)?ut:!1)},[]),y=U=>U?Ie(p,U):null,{gt:g,bt:h,cn:T,D:I,wt:B}=d,Y=[()=>{Et(h,[yt,Ue]),Et(g,Ue),x&&Et(m,[Ue,yt])}],rt=H&&y(h);let at=H?g:Qe([B,I,T,h,g].find(U=>y(U)===!1));const K=W?g:B||I,lt=R(mt,Y);return[d,()=>{const U=D(),ct=st=>{vt(te(st),Qe(st)),kt(st)},ut=st=>st?nt(st,"focusin focusout focus blur",pt=>{Sn(pt),pt.stopImmediatePropagation()},{I:!0,H:!1}):wt,dt=ut(U);if(ht(h,yt,z?"viewport":"host"),ht(T,cn,""),ht(B,qn,""),z||(ht(I,Dt,""),x&&de(m,yt,ss)),rt&&(Pn(g,h),J(Y,()=>{Pn(h,g),kt(h)})),vt(K,at),vt(h,T),vt(T||h,!z&&I),vt(I,B),J(Y,[dt,()=>{const st=D(),pt=ut(st);Et(T,cn),Et(B,qn),Et(I,[Co,$o,Dt]),y(B)&&ct(B),y(I)&&ct(I),y(T)&&ct(T),N(st),pt()}]),o&&!z&&(de(I,Dt,Ao),J(Y,R(Et,I,Dt))),!z&&M.top===M&&U===k){const st="tabindex",pt=Re(I,st);ht(I,st,"-1"),N(I);const Bt=()=>pt?ht(I,st,pt):Et(I,st),Ut=nt(w,"pointerdown keydown",()=>{Bt(),Ut()});J(Y,[Bt,Ut])}else N(U);return dt(),at=0,lt},lt]},Rs=({wt:t})=>({Gt:e,un:n,Tt:o})=>{const{xt:s}=e||{},{$t:c}=n;t&&(s||o)&&ee(t,{[Zt]:c&&"100%"})},_s=({bt:t,cn:e,D:n,V:o},s)=>{const[c,r]=St({u:Wo,o:kn()},R(kn,t,"padding",""));return({Et:l,Gt:i,un:u,Tt:a})=>{let[f,v]=r(a);const{L:E}=bt(),{ht:A,Ht:L,Ct:k}=i||{},{N:H}=u,[w,m]=l("paddingAbsolute");(A||v||(a||L))&&([f,v]=c(a));const M=!o&&(m||k||v);if(M){const D=!w||!e&&!E,N=f.r+f.l,V=f.t+f.b,_={[lo]:D&&!H?-N:0,[io]:D?-V:0,[ro]:D&&H?-N:0,top:D?-f.t:0,right:D?H?-f.r:"auto":0,left:D?H?"auto":-f.l:0,[Jt]:D&&`calc(100% + ${N}px)`},O={[no]:D?f.t:0,[oo]:D?f.r:0,[co]:D?f.b:0,[so]:D?f.l:0};ee(e||n,_),ee(n,O),j(s,{cn:f,fn:!D,j:e?O:j({},_,O)})}return{_n:M}}},Bs=(t,e)=>{const n=bt(),{bt:o,cn:s,D:c,V:r,Ot:l,Rt:i,ln:u}=t,{L:a}=n,f=i&&r,v=R(we,0),E={u:uo,o:{w:0,h:0}},A={u:fo,o:{x:Qt,y:Qt}},L=(O,b)=>{const $=gt.devicePixelRatio%1!==0?1:0,S={w:v(O.w-b.w),h:v(O.h-b.h)};return{w:S.w>$?S.w:0,h:S.h>$?S.h:0}},[k,H]=St(E,R(hn,c)),[w,m]=St(E,R(en,c)),[x,M]=St(E),[D,N]=St(E),[V]=St(A),_=oe(xn);return({Et:O,Gt:b,un:$,Tt:S},{_n:C})=>{const{ht:z,Ht:W,Ct:q,zt:F}=b||{},X=_&&_.M(t,e,$,n,O),{q:Q,W:ot,X:tt}=X||{},[P,Z]=ws(O,n),[et,it]=O("overflow"),d=z||C||W||q||F||Z,p=Te(et.x),y=Te(et.y),g=p||y;let h=H(S),T=m(S),I=M(S),B=N(S),Y;if(Z&&a&&l(Ao,!P),d){g&&l(Kt,!1);const[xt,zt]=ot?ot(Y):[],[Lt,ze]=h=k(S),[Ht,Ne]=T=w(S),se=wo(c),ge=Ht,me=se;xt&&xt(),(Ne||ze||Z)&&zt&&!P&&Q&&Q(zt,Ht,Lt);const ce=Qo(u),re={w:v(we(Ht.w,ge.w)+Lt.w),h:v(we(Ht.h,ge.h)+Lt.h)},jt={w:v((f?ce.w:me.w+v(se.w-Ht.w))+Lt.w),h:v((f?ce.h:me.h+v(se.h-Ht.h))+Lt.h)};B=D(jt),I=x(L(re,jt),S)}const[rt,at]=B,[K,lt]=I,[_t,U]=T,[ct,ut]=h,dt={x:K.w>0,y:K.h>0},st=p&&y&&(dt.x||dt.y)||p&&dt.x&&!dt.y||y&&dt.y&&!dt.x;if(C||q||F||ut||U||at||lt||it||Z||d){const xt={},zt=Os(t,dt,et,xt);tt&&tt(zt,$,!!Q&&Q(zt,_t,ct),xt),r?(ht(o,Co,xt[ke]),ht(o,$o,xt[Me])):ee(c,xt)}Oe(o,yt,To,st),Oe(s,cn,rs,st),r||Oe(c,Dt,Kt,g);const[Bt,Ut]=V(Io(t).k);return j(e,{k:Bt,Pt:{x:rt.w,y:rt.h},Lt:{x:K.w,y:K.h},en:dt}),{sn:Ut,tn:at,nn:lt}}},zs=t=>{const[e,n,o]=Ms(t),s={cn:{t:0,r:0,b:0,l:0},fn:!1,j:{[lo]:0,[io]:0,[ro]:0,[no]:0,[oo]:0,[co]:0,[so]:0},Pt:{x:0,y:0},Lt:{x:0,y:0},k:{x:Qt,y:Qt},en:{x:!1,y:!1}},{gt:c,D:r,V:l}=e,{L:i,T:u}=bt(),a=!i&&(u.x||u.y),f=[Rs(e),_s(e,s),Bs(e,s)];return[n,v=>{const E={},L=a&&ne(r),k=l?de(r,yt,sn):wt;return G(f,H=>{j(E,H(v,E)||{})}),k(),Mt(r,L),!l&&Mt(c,0),E},s,e,o]},Ns=(t,e,n,o)=>{const s=Fn(e,{}),[c,r,l,i,u]=zs(t),[a,f,v]=Ps(i,l,s,w=>{H({},w)}),[E,A,,L]=ks(t,e,v,l,i,o),k=w=>At(w).some(m=>!!w[m]),H=(w,m)=>{const{dn:x,Tt:M,At:D,vn:N}=w,V=x||{},_=!!M,O={Et:Fn(e,V,_),dn:V,Tt:_};if(N)return A(O),!1;const b=m||f(j({},O,{At:D})),$=r(j({},O,{un:v,Gt:b}));A(j({},O,{Gt:b,Qt:$}));const S=k(b),C=k($),z=S||C||!gn(V)||_;return z&&n(w,{Gt:b,Qt:$}),z};return[()=>{const{rn:w,D:m}=i,x=ne(w),M=[a(),c(),E()];return Mt(m,x),R(mt,M)},H,()=>({hn:v,pn:l}),{gn:i,bn:L},u]},Rt=(t,e,n)=>{const{nt:o}=bt(),s=le(t),c=s?t:t.target,r=Mo(c);if(e&&!r){let l=!1;const i=[],u={},a=O=>{const b=vo(O,!0),$=oe(hs);return $?$(b,!0):b},f=j({},o(),a(e)),[v,E,A]=on(),[L,k,H]=on(n),w=(O,b)=>{H(O,b),A(O,b)},[m,x,M,D,N]=Ns(t,f,({dn:O,Tt:b},{Gt:$,Qt:S})=>{const{ht:C,Ct:z,xt:W,Ht:q,It:F,dt:X}=$,{tn:Q,nn:ot,sn:tt}=S;w("updated",[_,{updateHints:{sizeChanged:!!C,directionChanged:!!z,heightIntrinsicChanged:!!W,overflowEdgeChanged:!!Q,overflowAmountChanged:!!ot,overflowStyleChanged:!!tt,contentMutation:!!q,hostMutation:!!F,appear:!!X},changedOptions:O||{},force:!!b}])},O=>w("scroll",[_,O])),V=O=>{As(c),mt(i),l=!0,w("destroyed",[_,O]),E(),k()},_={options(O,b){if(O){const $=b?o():{},S=xo(f,j($,a(O)));gn(S)||(j(f,S),x({dn:S}))}return j({},f)},on:L,off:(O,b)=>{O&&b&&k(O,b)},state(){const{hn:O,pn:b}=M(),{N:$}=O,{Pt:S,Lt:C,k:z,en:W,cn:q,fn:F}=b;return j({},{overflowEdge:S,overflowAmount:C,overflowStyle:z,hasOverflow:W,padding:q,paddingAbsolute:F,directionRTL:$,destroyed:l})},elements(){const{gt:O,bt:b,cn:$,D:S,wt:C,kt:z,Zt:W}=D.gn,{qt:q,Jt:F}=D.bn,X=ot=>{const{Vt:tt,Mt:P,Ut:Z}=ot;return{scrollbar:Z,track:P,handle:tt}},Q=ot=>{const{Wt:tt,Xt:P}=ot,Z=X(tt[0]);return j({},Z,{clone:()=>{const et=X(P());return x({vn:!0}),et}})};return j({},{target:O,host:b,padding:$||S,viewport:S,content:C||S,scrollOffsetElement:z,scrollEventElement:W,scrollbarHorizontal:Q(q),scrollbarVertical:Q(F)})},update:O=>x({Tt:O,At:!0}),destroy:R(V,!1),plugin:O=>u[At(O)[0]]};return J(i,[N]),Ts(c,_),Do(Ho,Rt,[_,v,u]),$s(D.gn.Rt,!s&&t.cancel)?(V(!0),_):(J(i,m()),w("initialized",[_]),_.update(!0),_)}return r};Rt.plugin=t=>{const e=Ot(t),n=e?t:[t],o=n.map(s=>Do(s,Rt)[0]);return bs(n),e?o:o[0]};Rt.valid=t=>{const e=t&&t.elements,n=$t(e)&&e();return Ee(n)&&!!Mo(n.target)};Rt.env=()=>{const{P:t,T:e,L:n,K:o,J:s,st:c,et:r,G:l,tt:i,nt:u,ot:a}=bt();return j({},{scrollbarsSize:t,scrollbarsOverlaid:e,scrollbarsHiding:n,rtlScrollBehavior:o,scrollTimeline:s,staticDefaultInitialization:c,staticDefaultOptions:r,getDefaultInitialization:l,setDefaultInitialization:i,getDefaultOptions:u,setDefaultOptions:a})};const Vs=document.querySelector("#eventsSection"),Yn=document.querySelector("#events"),Fs=t=>{Vs.style.display="",Yn.innerHTML="",Object.entries(t).forEach(([e,n])=>{const o=document.createElement("div");o.className=`event ${n.active?"active":""}`,o.textContent=`${e} (${n.count})`,Yn.append(o)})},qs=()=>{let t=[];const e={},n={},o=r=>({active:t.includes(r),count:e[r]||0}),s=r=>{t=r,Fs({initialized:o("initialized"),destroyed:o("destroyed"),updated:o("updated"),scroll:o("scroll")})};return r=>{const l=e[r];e[r]=typeof l=="number"?l+1:1,s(Array.from(new Set([...t,r]))),clearTimeout(n[r]),n[r]=setTimeout(()=>{const i=new Set(t);i.delete(r),s(Array.from(i))},500)}};let Nt,ln=!1,an=!1,un=!0;const he=qs(),Wt=document.querySelector("#target"),Kn=document.querySelector("#targetContent"),Se=document.querySelector("#impostor"),dn=document.querySelector("#scrollButton"),fe=document.querySelector("#toggleContentButton"),pe=document.querySelector("#toggleElementButton"),fn=document.querySelector("#toggleOverlayScrollbarsButton"),_o=()=>{ln?(Kn.style.display="none",fe.textContent="Show Content"):(Kn.style.display="",fe.textContent="Hide Content")},Bo=()=>{an?(Wt.style.display="none",pe.textContent="Show Element"):(Wt.style.display="",pe.textContent="Hide Element")},zo=()=>{var t,e;un?((t=Se.parentElement)==null||t.append(Wt),Se.remove(),dn.style.display="",fe.style.display="",pe.style.display="",fn.textContent="Destroy OverlayScrollbars",Nt=Rt(Wt,{},{initialized:()=>he("initialized"),destroyed:()=>he("destroyed"),updated:()=>he("updated"),scroll:()=>he("scroll")})):(Nt==null||Nt.destroy(),(e=Wt.parentElement)==null||e.append(Se),Wt.remove(),Se.style.display="",dn.style.display="none",fe.style.display="none",pe.style.display="none",fn.textContent="Initialize OverlayScrollbars")};dn.addEventListener("click",()=>{if(!Nt)return;const{overflowAmount:t}=Nt.state(),{scrollOffsetElement:e}=Nt.elements(),{scrollLeft:n,scrollTop:o}=e;e.scrollTo({behavior:"smooth",left:Math.round((t.x-n)/t.x)*t.x,top:Math.round((t.y-o)/t.y)*t.y})});fe.addEventListener("click",()=>{ln=!ln,_o()});pe.addEventListener("click",()=>{an=!an,Bo()});fn.addEventListener("click",()=>{un=!un,zo()});_o();Bo();zo();let ae=null;const No=t=>Rt({target:document.body,cancel:{body:t?!1:null}},{}).state().destroyed,Us=document.querySelector("#toggleBodyOverlayScrollbarsSection"),pn=document.querySelector("#toggleBodyOverlayScrollbarsButton"),Vo=()=>{ae===null&&(ae=!No()),Us.style.display="",pn.style.display="",pn.textContent=`${ae?"Destroy":"Initialize"} Body OverlayScrollbars`};pn.addEventListener("click",()=>{const t=Rt(document.body);t?(t.destroy(),ae=!1):ae=!No(!0),Vo()});Vo();