3 lines
28 KiB
JavaScript
3 lines
28 KiB
JavaScript
|
import{r as oe,R as vr}from"./index-4d70ff75.js";import"./iframe-f8443767.js";import"../sb-preview/runtime.js";import"./_commonjsHelpers-725317a4.js";import"./index-d37d4223.js";import"./index-f073aaf1.js";import"./index-356e4a49.js";function D(e,t){if(xt(e))for(let r=0;r<e.length&&t(e[r],r,e)!==!1;r++);else e&&D(Object.keys(e),r=>t(e[r],r,e));return e}function re(e,t){let r=_e(t);if(ye(t)||r){let l=r?"":{};if(e){let n=window.getComputedStyle(e,null);l=r?wr(e,n,t):t.reduce((o,i)=>(o[i]=wr(e,n,i),o),l)}return l}e&&D(pe(t),l=>kl(e,l,t[l]))}var he=(e,t)=>{let{o:r,u:l,_:n}=e,o=r,i,s=(a,c)=>{let d=o,p=a,f=c||(l?!l(d,p):d!==p);return(f||n)&&(o=p,i=d),[o,f,i]};return[t?a=>s(t(o,i),a):s,a=>[o,!!a,i]]},lt=()=>typeof window<"u",Fr=lt()&&Node.ELEMENT_NODE,{toString:wl,hasOwnProperty:Mt}=Object.prototype,Ie=e=>e===void 0,St=e=>e===null,yl=e=>Ie(e)||St(e)?`${e}`:wl.call(e).replace(/^\[object (.+)\]$/,"$1").toLowerCase(),Te=e=>typeof e=="number",_e=e=>typeof e=="string",Qt=e=>typeof e=="boolean",we=e=>typeof e=="function",ye=e=>Array.isArray(e),et=e=>typeof e=="object"&&!ye(e)&&!St(e),xt=e=>{let t=!!e&&e.length,r=Te(t)&&t>-1&&t%1==0;return ye(e)||!we(e)&&r?t>0&&et(e)?t-1 in e:!0:!1},Xt=e=>{if(!e||!et(e)||yl(e)!=="object")return!1;let t,r="constructor",l=e[r],n=l&&l.prototype,o=Mt.call(e,r),i=n&&Mt.call(n,"isPrototypeOf");if(l&&!o&&!i)return!1;for(t in e);return Ie(t)||Mt.call(e,t)},vt=e=>{let t=HTMLElement;return e?t?e instanceof t:e.nodeType===Fr:!1},Ot=e=>{let t=Element;return e?t?e instanceof t:e.nodeType===Fr:!1},er=(e,t,r)=>e.indexOf(t,r),W=(e,t,r)=>(!r&&!_e(t)&&xt(t)?Array.prototype.push.apply(e,t):e.push(t),e),Fe=e=>{let t=Array.from,r=[];return t&&e?t(e):(e instanceof Set?e.forEach(l=>{W(r,l)}):D(e,l=>{W(r,l)}),r)},tr=e=>!!e&&e.length===0,Ce=(e,t,r)=>{D(e,l=>l&&l.apply(void 0,t||[])),!r&&(e.length=0)},Ct=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),pe=e=>e?Object.keys(e):[],K=(e,t,r,l,n,o,i)=>{let s=[t,r,l,n,o,i];return(typeof e!="object"||St(e))&&!we(e)&&(e={}),D(s,a=>{D(pe(a),c=>{let d=a[c];if(e===d)return!0;let p=ye(d);if(d&&(Xt(d)||p)){let f=e[c],u=f;p&&!ye(f)?u=[]:!p&&!Xt(f)&&(u={}),e[c]=K(u,d)}else e[c]=d})}),e},rr=e=>{for(let t in e)return!1;return!0},jr=(e,t,r,l)=>{if(Ie(l))return r?r[e]:t;r&&(_e(l)||Te(l))&&(r[e]=l)},te=(e,t,r)=>{if(Ie(r))return e?e.getAttribute(t):null;e&&e.setAttribute(t,r)},se=(e,t)=>{e&&e.removeAttribute(t)},Ne=(e,t,r,l)=>{if(r){let n=te(e,t)||"",o=new Set(n.split(" "));o[l?"add":"delete"](r);let i=Fe(o).join(" ").trim();te(e,t,i)}},Sl=(e,t,r)=>{let l=te(e,t)||"";return new Set(l.split(" ")).has(r)},me=(e,t)=>jr("scrollLeft",0,e,t),Le=(e,t)=>jr("scrollTop",0,e,t),Wt=lt()&&Element.prototype,qr=(e,t)=>{let r=[],l=t?Ot(t)?t:null:document;return l?W(r,l.querySelectorAll(e)):r},xl=(e,t)=>{let r=t?Ot(t)?t:null:document;return r?r.querySelector(e):null},ht=(e,t)=>Ot(e)?(Wt.matches||Wt.msMatchesSelector).call(e,t):!1,lr=e=>e?Fe(e.childNodes):[],Pe=e=>e?e.parentElement:null,Je=(e,t)=>{if(Ot(e)){let r=Wt.closest;if(r)return r.call(e,t);do{if(ht(e,t))return e;e=Pe(e)}while(e)}return null},Ol=(e,t,r)=>{let l=e&&Je(e,t),n=e&&xl(r,l),o=Je(n,t)===l;return l&&n?l===e||n===e||o&&Je(Je(e,r),t)!==l:!1},nr=(e,t,r)=>{if(r&&e){let l=t,n;xt(r)?(n=document.createDocumentFragment(),D(r,o=>{o===l&&(l=o.previousSibling),n.appendChild(o)})):n=r,t&&(l?l!==t&&(l=l.nextSibling):l=e.firstChild),e.insertBefore(n,l||null)}},ve=(e,t)=>{nr(e,null,t)},Cl=(e,t)=>{nr(Pe(e),e,t)},hr=(e,t)=>{nr(Pe(e),e&&e.nextSibling,t)},Oe=e=>{if(xt(e))D(Fe(e),t=>Oe(t));else if(e){let t=Pe(e);t&&t.removeChild(e)}},Ve=e=>{let t=document.createElement("div");return e&&te(t,"class",e),t},Xr=e=>{let t=Ve();return t.innerHTML=e.trim(),D(lr(t),r=>Oe(r))},Ut=e=>e.charAt(0).toUpperCase()+e.slice(1),El=()=>Ve().style,$l=["-webkit-","-moz-","-o-","-ms-"],Al=["WebKit","Moz","O","MS","webkit","moz","o","ms"],Tt={},_t={},Ll=e=>{let t=_t[e];if(Ct(_t,e))return t;let r=Ut(e),l=El();return D($l,n=>{let o=n.replace(/-/g,"");return!(t=[e,n+e,o+r,Ut(o)+r].find(i=>l[i]!==void 0))}),_t[e]=t||""},nt=e=>{if(lt()){let t=Tt[e]||window[e];return Ct(Tt,e)||(D(Al,r=>(t=t||wind
|
||
|
//# sourceMappingURL=OverlayScrollbars-GZGLA7DL-1612b709.js.map
|