Files
music-admin/.output/public/_nuxt/CzwNFFo0.js
poptong 83b162d2bd
Some checks failed
🚀 Deploy - Demo / deployment (push) Has been cancelled
🔧 웹훅 URL을 HTTPS로 수정
- 웹훅 URL을 https://admin.youtooplay.com/webhook로 변경
- Nginx 리버스 프록시 설정 파일 추가
- 배포 가이드 업데이트
2025-10-01 01:47:51 +09:00

6 lines
25 KiB
JavaScript

import{_ as Q}from"./CSv7hpo5.js";import{_ as st}from"./CIz8R0Jd.js";import{l as Z}from"./D3Ia18PY.js";import{R as $,r as M,w as F,y as at,aQ as it,S as K,T as V,U as L,bG as S,bH as G,d as J,aA as tt,aL as ct,Z as C,Y as W,c as m,a5 as et,aN as T,aK as ut,V as P}from"./C0u2Lk3h.js";import{u as ht,s as ft}from"./Dv2BvCMR.js";import dt from"./DlJCaRaK.js";import{_ as pt}from"./BVhkMzlw.js";import{_ as vt}from"./MNtG3NDc.js";import{V as gt}from"./C9VE9OU6.js";import"./BMKr9CCw.js";import"./vJlLu25e.js";import"./BK2mOCZY.js";import"./CCmxpPjt.js";import"./5zhjgqfi.js";import"./CHrTZ85L.js";import"./Cr9s0UKx.js";/* empty css *//*!
* perfect-scrollbar v1.5.6
* Copyright 2024 Hyunje Jun, MDBootstrap and Contributors
* Licensed under MIT
*/function H(t){return getComputedStyle(t)}function Y(t,e){for(var r in e){var n=e[r];typeof n=="number"&&(n=n+"px"),t.style[r]=n}return t}function D(t){var e=document.createElement("div");return e.className=t,e}var U=typeof Element<"u"&&(Element.prototype.matches||Element.prototype.webkitMatchesSelector||Element.prototype.mozMatchesSelector||Element.prototype.msMatchesSelector);function R(t,e){if(!U)throw new Error("No element matching method supported");return U.call(t,e)}function A(t){t.remove?t.remove():t.parentNode&&t.parentNode.removeChild(t)}function j(t,e){return Array.prototype.filter.call(t.children,function(r){return R(r,e)})}var b={main:"ps",rtl:"ps__rtl",element:{thumb:function(t){return"ps__thumb-"+t},rail:function(t){return"ps__rail-"+t},consuming:"ps__child--consume"},state:{focus:"ps--focus",clicking:"ps--clicking",active:function(t){return"ps--active-"+t},scrolling:function(t){return"ps--scrolling-"+t}}},rt={x:null,y:null};function lt(t,e){var r=t.element.classList,n=b.state.scrolling(e);r.contains(n)?clearTimeout(rt[e]):r.add(n)}function nt(t,e){rt[e]=setTimeout(function(){return t.isAlive&&t.element.classList.remove(b.state.scrolling(e))},t.settings.scrollingThreshold)}function bt(t,e){lt(t,e),nt(t,e)}var k=function(e){this.element=e,this.handlers={}},ot={isEmpty:{configurable:!0}};k.prototype.bind=function(e,r){typeof this.handlers[e]>"u"&&(this.handlers[e]=[]),this.handlers[e].push(r),this.element.addEventListener(e,r,!1)};k.prototype.unbind=function(e,r){var n=this;this.handlers[e]=this.handlers[e].filter(function(c){return r&&c!==r?!0:(n.element.removeEventListener(e,c,!1),!1)})};k.prototype.unbindAll=function(){for(var e in this.handlers)this.unbind(e)};ot.isEmpty.get=function(){var t=this;return Object.keys(this.handlers).every(function(e){return t.handlers[e].length===0})};Object.defineProperties(k.prototype,ot);var x=function(){this.eventElements=[]};x.prototype.eventElement=function(e){var r=this.eventElements.filter(function(n){return n.element===e})[0];return r||(r=new k(e),this.eventElements.push(r)),r};x.prototype.bind=function(e,r,n){this.eventElement(e).bind(r,n)};x.prototype.unbind=function(e,r,n){var c=this.eventElement(e);c.unbind(r,n),c.isEmpty&&this.eventElements.splice(this.eventElements.indexOf(c),1)};x.prototype.unbindAll=function(){this.eventElements.forEach(function(e){return e.unbindAll()}),this.eventElements=[]};x.prototype.once=function(e,r,n){var c=this.eventElement(e),s=function(o){c.unbind(r,s),n(o)};c.bind(r,s)};function B(t){if(typeof window.CustomEvent=="function")return new CustomEvent(t);var e=document.createEvent("CustomEvent");return e.initCustomEvent(t,!1,!1,void 0),e}function I(t,e,r,n,c){n===void 0&&(n=!0),c===void 0&&(c=!1);var s;if(e==="top")s=["contentHeight","containerHeight","scrollTop","y","up","down"];else if(e==="left")s=["contentWidth","containerWidth","scrollLeft","x","left","right"];else throw new Error("A proper axis should be provided");mt(t,r,s,n,c)}function mt(t,e,r,n,c){var s=r[0],o=r[1],a=r[2],l=r[3],u=r[4],h=r[5];n===void 0&&(n=!0),c===void 0&&(c=!1);var i=t.element;t.reach[l]=null,i[a]<1&&(t.reach[l]="start"),i[a]>t[s]-t[o]-1&&(t.reach[l]="end"),e&&(i.dispatchEvent(B("ps-scroll-"+l)),e<0?i.dispatchEvent(B("ps-scroll-"+u)):e>0&&i.dispatchEvent(B("ps-scroll-"+h)),n&&bt(t,l)),t.reach[l]&&(e||c)&&i.dispatchEvent(B("ps-"+l+"-reach-"+t.reach[l]))}function g(t){return parseInt(t,10)||0}function yt(t){return R(t,"input,[contenteditable]")||R(t,"select,[contenteditable]")||R(t,"textarea,[contenteditable]")||R(t,"button,[contenteditable]")}function wt(t){var e=H(t);return g(e.width)+g(e.paddingLeft)+g(e.paddingRight)+g(e.borderLeftWidth)+g(e.borderRightWidth)}var _={isWebKit:typeof document<"u"&&"WebkitAppearance"in document.documentElement.style,supportsTouch:typeof window<"u"&&("ontouchstart"in window||"maxTouchPoints"in window.navigator&&window.navigator.maxTouchPoints>0||window.DocumentTouch&&document instanceof window.DocumentTouch),supportsIePointer:typeof navigator<"u"&&navigator.msMaxTouchPoints,isChrome:typeof navigator<"u"&&/Chrome/i.test(navigator&&navigator.userAgent)};function E(t){var e=t.element,r=Math.floor(e.scrollTop),n=e.getBoundingClientRect();t.containerWidth=Math.floor(n.width),t.containerHeight=Math.floor(n.height),t.contentWidth=e.scrollWidth,t.contentHeight=e.scrollHeight,e.contains(t.scrollbarXRail)||(j(e,b.element.rail("x")).forEach(function(c){return A(c)}),e.appendChild(t.scrollbarXRail)),e.contains(t.scrollbarYRail)||(j(e,b.element.rail("y")).forEach(function(c){return A(c)}),e.appendChild(t.scrollbarYRail)),!t.settings.suppressScrollX&&t.containerWidth+t.settings.scrollXMarginOffset<t.contentWidth?(t.scrollbarXActive=!0,t.railXWidth=t.containerWidth-t.railXMarginWidth,t.railXRatio=t.containerWidth/t.railXWidth,t.scrollbarXWidth=q(t,g(t.railXWidth*t.containerWidth/t.contentWidth)),t.scrollbarXLeft=g((t.negativeScrollAdjustment+e.scrollLeft)*(t.railXWidth-t.scrollbarXWidth)/(t.contentWidth-t.containerWidth))):t.scrollbarXActive=!1,!t.settings.suppressScrollY&&t.containerHeight+t.settings.scrollYMarginOffset<t.contentHeight?(t.scrollbarYActive=!0,t.railYHeight=t.containerHeight-t.railYMarginHeight,t.railYRatio=t.containerHeight/t.railYHeight,t.scrollbarYHeight=q(t,g(t.railYHeight*t.containerHeight/t.contentHeight)),t.scrollbarYTop=g(r*(t.railYHeight-t.scrollbarYHeight)/(t.contentHeight-t.containerHeight))):t.scrollbarYActive=!1,t.scrollbarXLeft>=t.railXWidth-t.scrollbarXWidth&&(t.scrollbarXLeft=t.railXWidth-t.scrollbarXWidth),t.scrollbarYTop>=t.railYHeight-t.scrollbarYHeight&&(t.scrollbarYTop=t.railYHeight-t.scrollbarYHeight),Lt(e,t),t.scrollbarXActive?e.classList.add(b.state.active("x")):(e.classList.remove(b.state.active("x")),t.scrollbarXWidth=0,t.scrollbarXLeft=0,e.scrollLeft=t.isRtl===!0?t.contentWidth:0),t.scrollbarYActive?e.classList.add(b.state.active("y")):(e.classList.remove(b.state.active("y")),t.scrollbarYHeight=0,t.scrollbarYTop=0,e.scrollTop=0)}function q(t,e){return t.settings.minScrollbarLength&&(e=Math.max(e,t.settings.minScrollbarLength)),t.settings.maxScrollbarLength&&(e=Math.min(e,t.settings.maxScrollbarLength)),e}function Lt(t,e){var r={width:e.railXWidth},n=Math.floor(t.scrollTop);e.isRtl?r.left=e.negativeScrollAdjustment+t.scrollLeft+e.containerWidth-e.contentWidth:r.left=t.scrollLeft,e.isScrollbarXUsingBottom?r.bottom=e.scrollbarXBottom-n:r.top=e.scrollbarXTop+n,Y(e.scrollbarXRail,r);var c={top:n,height:e.railYHeight};e.isScrollbarYUsingRight?e.isRtl?c.right=e.contentWidth-(e.negativeScrollAdjustment+t.scrollLeft)-e.scrollbarYRight-e.scrollbarYOuterWidth-9:c.right=e.scrollbarYRight-t.scrollLeft:e.isRtl?c.left=e.negativeScrollAdjustment+t.scrollLeft+e.containerWidth*2-e.contentWidth-e.scrollbarYLeft-e.scrollbarYOuterWidth:c.left=e.scrollbarYLeft+t.scrollLeft,Y(e.scrollbarYRail,c),Y(e.scrollbarX,{left:e.scrollbarXLeft,width:e.scrollbarXWidth-e.railBorderXWidth}),Y(e.scrollbarY,{top:e.scrollbarYTop,height:e.scrollbarYHeight-e.railBorderYWidth})}function Yt(t){t.event.bind(t.scrollbarY,"mousedown",function(e){return e.stopPropagation()}),t.event.bind(t.scrollbarYRail,"mousedown",function(e){var r=e.pageY-window.pageYOffset-t.scrollbarYRail.getBoundingClientRect().top,n=r>t.scrollbarYTop?1:-1;t.element.scrollTop+=n*t.containerHeight,E(t),e.stopPropagation()}),t.event.bind(t.scrollbarX,"mousedown",function(e){return e.stopPropagation()}),t.event.bind(t.scrollbarXRail,"mousedown",function(e){var r=e.pageX-window.pageXOffset-t.scrollbarXRail.getBoundingClientRect().left,n=r>t.scrollbarXLeft?1:-1;t.element.scrollLeft+=n*t.containerWidth,E(t),e.stopPropagation()})}var O=null;function Xt(t){z(t,["containerHeight","contentHeight","pageY","railYHeight","scrollbarY","scrollbarYHeight","scrollTop","y","scrollbarYRail"]),z(t,["containerWidth","contentWidth","pageX","railXWidth","scrollbarX","scrollbarXWidth","scrollLeft","x","scrollbarXRail"])}function z(t,e){var r=e[0],n=e[1],c=e[2],s=e[3],o=e[4],a=e[5],l=e[6],u=e[7],h=e[8],i=t.element,f=null,v=null,d=null;function p(w){w.touches&&w.touches[0]&&(w[c]=w.touches[0]["page"+u.toUpperCase()]),O===o&&(i[l]=f+d*(w[c]-v),lt(t,u),E(t),w.stopPropagation(),w.preventDefault())}function y(){nt(t,u),t[h].classList.remove(b.state.clicking),document.removeEventListener("mousemove",p),document.removeEventListener("mouseup",y),document.removeEventListener("touchmove",p),document.removeEventListener("touchend",y),O=null}function X(w){O===null&&(O=o,f=i[l],w.touches&&(w[c]=w.touches[0]["page"+u.toUpperCase()]),v=w[c],d=(t[n]-t[r])/(t[s]-t[a]),w.touches?(document.addEventListener("touchmove",p,{passive:!1}),document.addEventListener("touchend",y)):(document.addEventListener("mousemove",p),document.addEventListener("mouseup",y)),t[h].classList.add(b.state.clicking)),w.stopPropagation(),w.cancelable&&w.preventDefault()}t[o].addEventListener("mousedown",X),t[o].addEventListener("touchstart",X)}function Wt(t){var e=t.element,r=function(){return R(e,":hover")},n=function(){return R(t.scrollbarX,":focus")||R(t.scrollbarY,":focus")};function c(s,o){var a=Math.floor(e.scrollTop);if(s===0){if(!t.scrollbarYActive)return!1;if(a===0&&o>0||a>=t.contentHeight-t.containerHeight&&o<0)return!t.settings.wheelPropagation}var l=e.scrollLeft;if(o===0){if(!t.scrollbarXActive)return!1;if(l===0&&s<0||l>=t.contentWidth-t.containerWidth&&s>0)return!t.settings.wheelPropagation}return!0}t.event.bind(t.ownerDocument,"keydown",function(s){if(!(s.isDefaultPrevented&&s.isDefaultPrevented()||s.defaultPrevented)&&!(!r()&&!n())){var o=document.activeElement?document.activeElement:t.ownerDocument.activeElement;if(o){if(o.tagName==="IFRAME")o=o.contentDocument.activeElement;else for(;o.shadowRoot;)o=o.shadowRoot.activeElement;if(yt(o))return}var a=0,l=0;switch(s.which){case 37:s.metaKey?a=-t.contentWidth:s.altKey?a=-t.containerWidth:a=-30;break;case 38:s.metaKey?l=t.contentHeight:s.altKey?l=t.containerHeight:l=30;break;case 39:s.metaKey?a=t.contentWidth:s.altKey?a=t.containerWidth:a=30;break;case 40:s.metaKey?l=-t.contentHeight:s.altKey?l=-t.containerHeight:l=-30;break;case 32:s.shiftKey?l=t.containerHeight:l=-t.containerHeight;break;case 33:l=t.containerHeight;break;case 34:l=-t.containerHeight;break;case 36:l=t.contentHeight;break;case 35:l=-t.contentHeight;break;default:return}t.settings.suppressScrollX&&a!==0||t.settings.suppressScrollY&&l!==0||(e.scrollTop-=l,e.scrollLeft+=a,E(t),c(a,l)&&s.preventDefault())}})}function Tt(t){var e=t.element;function r(o,a){var l=Math.floor(e.scrollTop),u=e.scrollTop===0,h=l+e.offsetHeight===e.scrollHeight,i=e.scrollLeft===0,f=e.scrollLeft+e.offsetWidth===e.scrollWidth,v;return Math.abs(a)>Math.abs(o)?v=u||h:v=i||f,v?!t.settings.wheelPropagation:!0}function n(o){var a=o.deltaX,l=-1*o.deltaY;return(typeof a>"u"||typeof l>"u")&&(a=-1*o.wheelDeltaX/6,l=o.wheelDeltaY/6),o.deltaMode&&o.deltaMode===1&&(a*=10,l*=10),a!==a&&l!==l&&(a=0,l=o.wheelDelta),o.shiftKey?[-l,-a]:[a,l]}function c(o,a,l){if(!_.isWebKit&&e.querySelector("select:focus"))return!0;if(!e.contains(o))return!1;for(var u=o;u&&u!==e;){if(u.classList.contains(b.element.consuming))return!0;var h=H(u);if(l&&h.overflowY.match(/(scroll|auto)/)){var i=u.scrollHeight-u.clientHeight;if(i>0&&(u.scrollTop>0&&l<0||u.scrollTop<i&&l>0))return!0}if(a&&h.overflowX.match(/(scroll|auto)/)){var f=u.scrollWidth-u.clientWidth;if(f>0&&(u.scrollLeft>0&&a<0||u.scrollLeft<f&&a>0))return!0}u=u.parentNode}return!1}function s(o){var a=n(o),l=a[0],u=a[1];if(!c(o.target,l,u)){var h=!1;t.settings.useBothWheelAxes?t.scrollbarYActive&&!t.scrollbarXActive?(u?e.scrollTop-=u*t.settings.wheelSpeed:e.scrollTop+=l*t.settings.wheelSpeed,h=!0):t.scrollbarXActive&&!t.scrollbarYActive&&(l?e.scrollLeft+=l*t.settings.wheelSpeed:e.scrollLeft-=u*t.settings.wheelSpeed,h=!0):(e.scrollTop-=u*t.settings.wheelSpeed,e.scrollLeft+=l*t.settings.wheelSpeed),E(t),h=h||r(l,u),h&&!o.ctrlKey&&(o.stopPropagation(),o.preventDefault())}}typeof window.onwheel<"u"?t.event.bind(e,"wheel",s):typeof window.onmousewheel<"u"&&t.event.bind(e,"mousewheel",s)}function Ht(t){if(!_.supportsTouch&&!_.supportsIePointer)return;var e=t.element,r={startOffset:{},startTime:0,speed:{},easingLoop:null};function n(i,f){var v=Math.floor(e.scrollTop),d=e.scrollLeft,p=Math.abs(i),y=Math.abs(f);if(y>p){if(f<0&&v===t.contentHeight-t.containerHeight||f>0&&v===0)return window.scrollY===0&&f>0&&_.isChrome}else if(p>y&&(i<0&&d===t.contentWidth-t.containerWidth||i>0&&d===0))return!0;return!0}function c(i,f){e.scrollTop-=f,e.scrollLeft-=i,E(t)}function s(i){return i.targetTouches?i.targetTouches[0]:i}function o(i){return i.target===t.scrollbarX||i.target===t.scrollbarY||i.pointerType&&i.pointerType==="pen"&&i.buttons===0?!1:!!(i.targetTouches&&i.targetTouches.length===1||i.pointerType&&i.pointerType!=="mouse"&&i.pointerType!==i.MSPOINTER_TYPE_MOUSE)}function a(i){if(o(i)){var f=s(i);r.startOffset.pageX=f.pageX,r.startOffset.pageY=f.pageY,r.startTime=new Date().getTime(),r.easingLoop!==null&&clearInterval(r.easingLoop)}}function l(i,f,v){if(!e.contains(i))return!1;for(var d=i;d&&d!==e;){if(d.classList.contains(b.element.consuming))return!0;var p=H(d);if(v&&p.overflowY.match(/(scroll|auto)/)){var y=d.scrollHeight-d.clientHeight;if(y>0&&(d.scrollTop>0&&v<0||d.scrollTop<y&&v>0))return!0}if(f&&p.overflowX.match(/(scroll|auto)/)){var X=d.scrollWidth-d.clientWidth;if(X>0&&(d.scrollLeft>0&&f<0||d.scrollLeft<X&&f>0))return!0}d=d.parentNode}return!1}function u(i){if(o(i)){var f=s(i),v={pageX:f.pageX,pageY:f.pageY},d=v.pageX-r.startOffset.pageX,p=v.pageY-r.startOffset.pageY;if(l(i.target,d,p))return;c(d,p),r.startOffset=v;var y=new Date().getTime(),X=y-r.startTime;X>0&&(r.speed.x=d/X,r.speed.y=p/X,r.startTime=y),n(d,p)&&i.cancelable&&i.preventDefault()}}function h(){t.settings.swipeEasing&&(clearInterval(r.easingLoop),r.easingLoop=setInterval(function(){if(t.isInitialized){clearInterval(r.easingLoop);return}if(!r.speed.x&&!r.speed.y){clearInterval(r.easingLoop);return}if(Math.abs(r.speed.x)<.01&&Math.abs(r.speed.y)<.01){clearInterval(r.easingLoop);return}c(r.speed.x*30,r.speed.y*30),r.speed.x*=.8,r.speed.y*=.8},10))}_.supportsTouch?(t.event.bind(e,"touchstart",a),t.event.bind(e,"touchmove",u),t.event.bind(e,"touchend",h)):_.supportsIePointer&&(window.PointerEvent?(t.event.bind(e,"pointerdown",a),t.event.bind(e,"pointermove",u),t.event.bind(e,"pointerup",h)):window.MSPointerEvent&&(t.event.bind(e,"MSPointerDown",a),t.event.bind(e,"MSPointerMove",u),t.event.bind(e,"MSPointerUp",h)))}var Et=function(){return{handlers:["click-rail","drag-thumb","keyboard","wheel","touch"],maxScrollbarLength:null,minScrollbarLength:null,scrollingThreshold:1e3,scrollXMarginOffset:0,scrollYMarginOffset:0,suppressScrollX:!1,suppressScrollY:!1,swipeEasing:!0,useBothWheelAxes:!1,wheelPropagation:!0,wheelSpeed:1}},Rt={"click-rail":Yt,"drag-thumb":Xt,keyboard:Wt,wheel:Tt,touch:Ht},N=function(e,r){var n=this;if(r===void 0&&(r={}),typeof e=="string"&&(e=document.querySelector(e)),!e||!e.nodeName)throw new Error("no element is specified to initialize PerfectScrollbar");this.element=e,e.classList.add(b.main),this.settings=Et();for(var c in r)this.settings[c]=r[c];this.containerWidth=null,this.containerHeight=null,this.contentWidth=null,this.contentHeight=null;var s=function(){return e.classList.add(b.state.focus)},o=function(){return e.classList.remove(b.state.focus)};this.isRtl=H(e).direction==="rtl",this.isRtl===!0&&e.classList.add(b.rtl),this.isNegativeScroll=function(){var u=e.scrollLeft,h=null;return e.scrollLeft=-1,h=e.scrollLeft<0,e.scrollLeft=u,h}(),this.negativeScrollAdjustment=this.isNegativeScroll?e.scrollWidth-e.clientWidth:0,this.event=new x,this.ownerDocument=e.ownerDocument||document,this.scrollbarXRail=D(b.element.rail("x")),e.appendChild(this.scrollbarXRail),this.scrollbarX=D(b.element.thumb("x")),this.scrollbarXRail.appendChild(this.scrollbarX),this.scrollbarX.setAttribute("tabindex",0),this.event.bind(this.scrollbarX,"focus",s),this.event.bind(this.scrollbarX,"blur",o),this.scrollbarXActive=null,this.scrollbarXWidth=null,this.scrollbarXLeft=null;var a=H(this.scrollbarXRail);this.scrollbarXBottom=parseInt(a.bottom,10),isNaN(this.scrollbarXBottom)?(this.isScrollbarXUsingBottom=!1,this.scrollbarXTop=g(a.top)):this.isScrollbarXUsingBottom=!0,this.railBorderXWidth=g(a.borderLeftWidth)+g(a.borderRightWidth),Y(this.scrollbarXRail,{display:"block"}),this.railXMarginWidth=g(a.marginLeft)+g(a.marginRight),Y(this.scrollbarXRail,{display:""}),this.railXWidth=null,this.railXRatio=null,this.scrollbarYRail=D(b.element.rail("y")),e.appendChild(this.scrollbarYRail),this.scrollbarY=D(b.element.thumb("y")),this.scrollbarYRail.appendChild(this.scrollbarY),this.scrollbarY.setAttribute("tabindex",0),this.event.bind(this.scrollbarY,"focus",s),this.event.bind(this.scrollbarY,"blur",o),this.scrollbarYActive=null,this.scrollbarYHeight=null,this.scrollbarYTop=null;var l=H(this.scrollbarYRail);this.scrollbarYRight=parseInt(l.right,10),isNaN(this.scrollbarYRight)?(this.isScrollbarYUsingRight=!1,this.scrollbarYLeft=g(l.left)):this.isScrollbarYUsingRight=!0,this.scrollbarYOuterWidth=this.isRtl?wt(this.scrollbarY):null,this.railBorderYWidth=g(l.borderTopWidth)+g(l.borderBottomWidth),Y(this.scrollbarYRail,{display:"block"}),this.railYMarginHeight=g(l.marginTop)+g(l.marginBottom),Y(this.scrollbarYRail,{display:""}),this.railYHeight=null,this.railYRatio=null,this.reach={x:e.scrollLeft<=0?"start":e.scrollLeft>=this.contentWidth-this.containerWidth?"end":null,y:e.scrollTop<=0?"start":e.scrollTop>=this.contentHeight-this.containerHeight?"end":null},this.isAlive=!0,this.settings.handlers.forEach(function(u){return Rt[u](n)}),this.lastScrollTop=Math.floor(e.scrollTop),this.lastScrollLeft=e.scrollLeft,this.event.bind(this.element,"scroll",function(u){return n.onScroll(u)}),E(this)};N.prototype.update=function(){this.isAlive&&(this.negativeScrollAdjustment=this.isNegativeScroll?this.element.scrollWidth-this.element.clientWidth:0,Y(this.scrollbarXRail,{display:"block"}),Y(this.scrollbarYRail,{display:"block"}),this.railXMarginWidth=g(H(this.scrollbarXRail).marginLeft)+g(H(this.scrollbarXRail).marginRight),this.railYMarginHeight=g(H(this.scrollbarYRail).marginTop)+g(H(this.scrollbarYRail).marginBottom),Y(this.scrollbarXRail,{display:"none"}),Y(this.scrollbarYRail,{display:"none"}),E(this),I(this,"top",0,!1,!0),I(this,"left",0,!1,!0),Y(this.scrollbarXRail,{display:""}),Y(this.scrollbarYRail,{display:""}))};N.prototype.onScroll=function(e){this.isAlive&&(E(this),I(this,"top",this.element.scrollTop-this.lastScrollTop),I(this,"left",this.element.scrollLeft-this.lastScrollLeft),this.lastScrollTop=Math.floor(this.element.scrollTop),this.lastScrollLeft=this.element.scrollLeft)};N.prototype.destroy=function(){this.isAlive&&(this.event.unbindAll(),A(this.scrollbarX),A(this.scrollbarY),A(this.scrollbarXRail),A(this.scrollbarYRail),this.removePsClasses(),this.element=null,this.scrollbarX=null,this.scrollbarY=null,this.scrollbarXRail=null,this.scrollbarYRail=null,this.isAlive=!1)};N.prototype.removePsClasses=function(){this.element.className=this.element.className.split(" ").filter(function(e){return!e.match(/^ps([-_].+|)$/)}).join(" ")};const St=$({__name:"PerfectScrollbar",props:{tag:{default:"div"},options:{default:()=>({})}},emits:["scroll","ps-scroll-y","ps-scroll-x","ps-scroll-up","ps-scroll-down","ps-scroll-left","ps-scroll-right","ps-y-reach-start","ps-y-reach-end","ps-x-reach-start","ps-x-reach-end"],setup(t,{expose:e,emit:r}){const n=t,c=r,s=M(null),o=M(null);F(()=>n.options,()=>{l(),a()},{deep:!0}),at(()=>{s.value&&a()}),it(()=>{l()});function a(){s.value&&(o.value=new N(s.value,n.options),i())}function l(){o.value&&(i(!1),o.value.destroy(),o.value=null)}const u={scroll:h("scroll"),"ps-scroll-y":h("ps-scroll-y"),"ps-scroll-x":h("ps-scroll-x"),"ps-scroll-up":h("ps-scroll-up"),"ps-scroll-down":h("ps-scroll-down"),"ps-scroll-left":h("ps-scroll-left"),"ps-scroll-right":h("ps-scroll-right"),"ps-y-reach-start":h("ps-y-reach-start"),"ps-y-reach-end":h("ps-y-reach-end"),"ps-x-reach-start":h("ps-x-reach-start"),"ps-x-reach-end":h("ps-x-reach-end")};function h(f){return function(v){c(f,v)}}function i(f=!0){var v;(v=o.value)!=null&&v.element&&Object.entries(u).forEach(([d,p])=>{var y,X;f?(y=o.value)==null||y.element.addEventListener(d,p):(X=o.value)==null||X.element.removeEventListener(d,p)})}return e({ps:o}),(f,v)=>(V(),K(G(f.tag),{ref_key:"scrollbar",ref:s,class:"ps"},{default:L(()=>[S(f.$slots,"default")]),_:3},512))}}),_t={class:"nav-header"},At=["innerHTML"],Mt=$({__name:"VerticalNav",props:{tag:{default:"aside"},isOverlayNavActive:{type:Boolean},toggleIsOverlayNavActive:{}},setup(t){const e=t,{mdAndDown:r}=J(),n=M(),c=tt();F(()=>c.path,()=>{e.toggleIsOverlayNavActive(!1)});const s=M(!1),o=l=>s.value=l,a=l=>{s.value=l.target.scrollTop>0};return(l,u)=>{const h=Q;return V(),K(G(e.tag),{ref_key:"refNav",ref:n,"data-allow-mismatch":"",class:ct(["layout-vertical-nav",[{visible:t.isOverlayNavActive,scrolled:C(s),"overlay-nav":C(r)}]])},{default:L(()=>[W("div",_t,[S(l.$slots,"nav-header",{},()=>[m(h,{to:"/",class:"app-logo app-title-wrapper"},{default:L(()=>[W("div",{class:"d-flex",innerHTML:C(Z)},null,8,At),u[0]||(u[0]=W("h1",{class:"leading-normal"}," sneat ",-1))]),_:1})],!0)]),S(l.$slots,"before-nav-items",{},()=>[u[1]||(u[1]=W("div",{class:"vertical-nav-items-shadow"},null,-1))],!0),S(l.$slots,"nav-items",{updateIsVerticalNavScrolled:o},()=>[m(C(St),{tag:"ul",class:"nav-items",options:{wheelPropagation:!1},onPsScrollY:a},{default:L(()=>[S(l.$slots,"default",{},void 0,!0)]),_:3})],!0),S(l.$slots,"after-nav-items",{},void 0,!0)]),_:3},8,["class"])}}}),xt=et(Mt,[["__scopeId","data-v-80be9a01"]]),Pt=$({setup(t,{slots:e}){const r=M(!1),n=M(!1),c=ht(r),s=tt(),{mdAndDown:o}=J();return ft(r,n),()=>{var f,v,d;const a=T(xt,{isOverlayNavActive:r.value,toggleIsOverlayNavActive:c},{"nav-header":()=>{var p;return(p=e["vertical-nav-header"])==null?void 0:p.call(e,{toggleIsOverlayNavActive:c})},"before-nav-items":()=>{var p;return(p=e["before-vertical-nav-items"])==null?void 0:p.call(e)},default:()=>{var p;return(p=e["vertical-nav-content"])==null?void 0:p.call(e)},"after-nav-items":()=>{var p;return(p=e["after-vertical-nav-items"])==null?void 0:p.call(e)}}),l=T("header",{class:["layout-navbar navbar-blur"]},[T("div",{class:"navbar-content-container"},(f=e.navbar)==null?void 0:f.call(e,{toggleVerticalOverlayNavActive:c}))]),u=T("main",{class:"layout-page-content"},T("div",{class:"page-content-container"},(v=e.default)==null?void 0:v.call(e))),h=T("footer",{class:"layout-footer"},[T("div",{class:"footer-content-container"},(d=e.footer)==null?void 0:d.call(e))]),i=T("div",{class:["layout-overlay",{visible:n.value}],onClick:()=>{n.value=!n.value}});return T("div",{class:["layout-wrapper layout-nav-type-vertical layout-navbar-static layout-footer-static layout-content-width-fluid",o.value&&"layout-overlay-nav",s.meta.layoutWrapperClasses]},[a,T("div",{class:"layout-content-wrapper"},[l,u,h]),i])}}}),Ct={class:"d-flex h-100 align-center"},kt={class:"d-flex align-center cursor-pointer ms-lg-n3",style:{"user-select":"none"}},Nt=["innerHTML"],Dt=$({__name:"DefaultLayoutWithVerticalNav",setup(t){return(e,r)=>{const n=ut("IconBtn"),c=Q;return V(),K(Pt,null,{navbar:L(({toggleVerticalOverlayNavActive:s})=>[W("div",Ct,[m(n,{class:"ms-n3 d-lg-none",onClick:o=>s(!0)},{default:L(()=>[m(P,{icon:"bx-menu"})]),_:1},8,["onClick"]),W("div",kt,[m(n,null,{default:L(()=>[m(P,{icon:"bx-search"})]),_:1}),r[0]||(r[0]=W("span",{class:"d-none d-md-flex align-center text-disabled ms-2"},[W("span",{class:"me-2"},"Search"),W("span",{class:"meta-key"},"⌘K")],-1))]),m(gt),m(n,{href:"https://github.com/themeselection/sneat-vuetify-nuxtjs-admin-template-free",target:"_blank",rel:"noopener noreferrer"},{default:L(()=>[m(P,{icon:"bxl-github"})]),_:1}),m(n,null,{default:L(()=>[m(P,{icon:"bx-bell"})]),_:1}),m(pt,{class:"me-1"}),m(vt)])]),"vertical-nav-header":L(({toggleIsOverlayNavActive:s})=>[m(c,{to:"/",class:"app-logo app-title-wrapper"},{default:L(()=>[W("div",{class:"d-flex",innerHTML:C(Z)},null,8,Nt),r[1]||(r[1]=W("h1",{class:"app-logo-title"}," sneat ",-1))]),_:1}),m(n,{class:"d-block d-lg-none",onClick:o=>s(!1)},{default:L(()=>[m(P,{icon:"bx-x"})]),_:1},8,["onClick"])]),"vertical-nav-content":L(()=>[m(st)]),footer:L(()=>[m(dt)]),default:L(()=>[S(e.$slots,"default",{},void 0,!0)]),_:3})}}}),re=et(Dt,[["__scopeId","data-v-4a4e6556"]]);export{re as default};