芝麻web文件管理V1.00
编辑当前文件:/home/qrafawbu/rentandbuyrealty.com/rentandbuyrealty.com/public/assets/js/mazer.js
/*! For license information please see mazer.js.LICENSE.txt */ (()=>{var t={750:()=>{function t(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function e(t,e){for(var i=0;i
=e?(t.style.height="",t.style.paddingTop="",t.style.paddingBottom="",t.style.marginTop="",t.style.marginBottom="",t.style.overflow="",r||(t.style.display="none"),"function"==typeof i&&i()):window.requestAnimationFrame(o)}))}var r=function(){function r(e){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};t(this,r),this.sidebarEL=e instanceof HTMLElement?e:document.querySelector(e),this.options=i,this.init()}var n,o,l;return n=r,(o=[{key:"init",value:function(){var t=this;document.querySelectorAll(".burger-btn").forEach((function(e){return e.addEventListener("click",t.toggle.bind(t))})),document.querySelectorAll(".sidebar-hide").forEach((function(e){return e.addEventListener("click",t.toggle.bind(t))})),window.addEventListener("resize",this.onResize.bind(this));for(var e=document.querySelectorAll(".sidebar-item.has-sub"),r=function(){var r=e[n];e[n].querySelector(".sidebar-link").addEventListener("click",(function(e){e.preventDefault();var n,o,l,s=r.querySelector(".submenu");s.classList.contains("active")&&(s.style.display="block"),"none"==s.style.display?s.classList.add("active"):s.classList.remove("active"),o=300,l=function(){return t.forceElementVisibility(r)},0===(n=s).clientHeight?i(n,o,l,!0):i(n,o,l)}))},n=0;n
=0&&e.left>=0&&e.bottom<=(window.innerHeight||document.documentElement.clientHeight)&&e.right<=(window.innerWidth||document.documentElement.clientWidth)}},{key:"forceElementVisibility",value:function(t){this.isElementInViewport(t)||t.scrollIntoView(!1)}}])&&e(n.prototype,o),l&&e(n,l),Object.defineProperty(n,"prototype",{writable:!1}),r}(),n=document.getElementById("sidebar");n&&(window.sidebar=new r(n))},225:function(t){t.exports=function(){"use strict";var t=Math.abs,e=Math.floor;function i(t){return getComputedStyle(t)}function r(t,e){for(var i in e){var r=e[i];"number"==typeof r&&(r+="px"),t.style[i]=r}return t}function n(t){var e=document.createElement("div");return e.className=t,e}function o(t,e){if(!Y)throw new Error("No element matching method supported");return Y.call(t,e)}function l(t){t.remove?t.remove():t.parentNode&&t.parentNode.removeChild(t)}function s(t,e){return Array.prototype.filter.call(t.children,(function(t){return o(t,e)}))}function a(t,e){var i=t.element.classList,r=L.state.scrolling(e);i.contains(r)?clearTimeout(X[e]):i.add(r)}function c(t,e){X[e]=setTimeout((function(){return t.isAlive&&t.element.classList.remove(L.state.scrolling(e))}),t.settings.scrollingThreshold)}function h(t,e){a(t,e),c(t,e)}function d(t){if("function"==typeof window.CustomEvent)return new CustomEvent(t);var e=document.createEvent("CustomEvent");return e.initCustomEvent(t,!1,!1,void 0),e}function u(t,e,i,r,n){var o;if(void 0===r&&(r=!0),void 0===n&&(n=!1),"top"===e)o=["contentHeight","containerHeight","scrollTop","y","up","down"];else{if("left"!==e)throw new Error("A proper axis should be provided");o=["contentWidth","containerWidth","scrollLeft","x","left","right"]}p(t,i,o,r,n)}function p(t,e,i,r,n){var o=i[0],l=i[1],s=i[2],a=i[3],c=i[4],u=i[5];void 0===r&&(r=!0),void 0===n&&(n=!1);var p=t.element;t.reach[a]=null,1>p[s]&&(t.reach[a]="start"),p[s]>t[o]-t[l]-1&&(t.reach[a]="end"),e&&(p.dispatchEvent(d("ps-scroll-"+a)),0>e?p.dispatchEvent(d("ps-scroll-"+c)):0
=t.railXWidth-t.scrollbarXWidth&&(t.scrollbarXLeft=t.railXWidth-t.scrollbarXWidth),t.scrollbarYTop>=t.railYHeight-t.scrollbarYHeight&&(t.scrollbarYTop=t.railYHeight-t.scrollbarYHeight),y(r,t),t.scrollbarXActive?r.classList.add(L.state.active("x")):(r.classList.remove(L.state.active("x")),t.scrollbarXWidth=0,t.scrollbarXLeft=0,r.scrollLeft=!0===t.isRtl?t.contentWidth:0),t.scrollbarYActive?r.classList.add(L.state.active("y")):(r.classList.remove(L.state.active("y")),t.scrollbarYHeight=0,t.scrollbarYTop=0,r.scrollTop=0)}function m(t,e){var i=Math.min,r=Math.max;return t.settings.minScrollbarLength&&(e=r(e,t.settings.minScrollbarLength)),t.settings.maxScrollbarLength&&(e=i(e,t.settings.maxScrollbarLength)),e}function y(t,i){var n={width:i.railXWidth},o=e(t.scrollTop);n.left=i.isRtl?i.negativeScrollAdjustment+t.scrollLeft+i.containerWidth-i.contentWidth:t.scrollLeft,i.isScrollbarXUsingBottom?n.bottom=i.scrollbarXBottom-o:n.top=i.scrollbarXTop+o,r(i.scrollbarXRail,n);var l={top:o,height:i.railYHeight};i.isScrollbarYUsingRight?i.isRtl?l.right=i.contentWidth-(i.negativeScrollAdjustment+t.scrollLeft)-i.scrollbarYRight-i.scrollbarYOuterWidth-9:l.right=i.scrollbarYRight-t.scrollLeft:i.isRtl?l.left=i.negativeScrollAdjustment+t.scrollLeft+2*i.containerWidth-i.contentWidth-i.scrollbarYLeft-i.scrollbarYOuterWidth:l.left=i.scrollbarYLeft+t.scrollLeft,r(i.scrollbarYRail,l),r(i.scrollbarX,{left:i.scrollbarXLeft,width:i.scrollbarXWidth-i.railBorderXWidth}),r(i.scrollbarY,{top:i.scrollbarYTop,height:i.scrollbarYHeight-i.railBorderYWidth})}function w(t,e){function i(e){e.touches&&e.touches[0]&&(e[s]=e.touches[0].pageY),g[p]=m+w*(e[s]-y),a(t,f),b(t),e.stopPropagation(),e.type.startsWith("touch")&&1
t.scrollbarYTop?1:-1;t.element.scrollTop+=i*t.containerHeight,b(t),e.stopPropagation()})),t.event.bind(t.scrollbarX,"mousedown",(function(t){return t.stopPropagation()})),t.event.bind(t.scrollbarXRail,"mousedown",(function(e){var i=e.pageX-window.pageXOffset-t.scrollbarXRail.getBoundingClientRect().left>t.scrollbarXLeft?1:-1;t.element.scrollLeft+=i*t.containerWidth,b(t),e.stopPropagation()}))},"drag-thumb":function(t){w(t,["containerWidth","contentWidth","pageX","railXWidth","scrollbarX","scrollbarXWidth","scrollLeft","x","scrollbarXRail"]),w(t,["containerHeight","contentHeight","pageY","railYHeight","scrollbarY","scrollbarYHeight","scrollTop","y","scrollbarYRail"])},keyboard:function(t){function i(i,n){var o=e(r.scrollTop);if(0===i){if(!t.scrollbarYActive)return!1;if(0===o&&0
=t.contentHeight-t.containerHeight&&0>n)return!t.settings.wheelPropagation}var l=r.scrollLeft;if(0===n){if(!t.scrollbarXActive)return!1;if(0===l&&0>i||l>=t.contentWidth-t.containerWidth&&0
t(i)?l||s:c||h)||!r.settings.wheelPropagation}function o(t){var e=t.deltaX,i=-1*t.deltaY;return(void 0===e||void 0===i)&&(e=-1*t.wheelDeltaX/6,i=t.wheelDeltaY/6),t.deltaMode&&1===t.deltaMode&&(e*=10,i*=10),e!=e&&i!=i&&(e=0,i=t.wheelDelta),t.shiftKey?[-i,-e]:[e,i]}function l(t,e,r){if(!R.isWebKit&&a.querySelector("select:focus"))return!0;if(!a.contains(t))return!1;for(var n=t;n&&n!==a;){if(n.classList.contains(L.element.consuming))return!0;var o=i(n);if(r&&o.overflowY.match(/(scroll|auto)/)){var l=n.scrollHeight-n.clientHeight;if(0
r||n.scrollTop
e||n.scrollLeft
s){if(0>n&&o===r.contentHeight-r.containerHeight||0
a&&(0>i&&l===r.contentWidth-r.containerWidth||0
r||n.scrollTop
e||n.scrollLeft
t(v.x)&&.01>t(v.y)?void clearInterval(g):r.element?(o(30*v.x,30*v.y),v.x*=.8,void(v.y*=.8)):void clearInterval(g):void clearInterval(g)}),10))}if(R.supportsTouch||R.supportsIePointer){var u=r.element,p={},f=0,v={},g=null;R.supportsTouch?(r.event.bind(u,"touchstart",a),r.event.bind(u,"touchmove",h),r.event.bind(u,"touchend",d)):R.supportsIePointer&&(window.PointerEvent?(r.event.bind(u,"pointerdown",a),r.event.bind(u,"pointermove",h),r.event.bind(u,"pointerup",d)):window.MSPointerEvent&&(r.event.bind(u,"MSPointerDown",a),r.event.bind(u,"MSPointerMove",h),r.event.bind(u,"MSPointerUp",d)))}}},k=function(t,o){var l=this;if(void 0===o&&(o={}),"string"==typeof t&&(t=document.querySelector(t)),!t||!t.nodeName)throw new Error("no element is specified to initialize PerfectScrollbar");for(var s in this.element=t,t.classList.add(L.main),this.settings=S(),o)this.settings[s]=o[s];this.containerWidth=null,this.containerHeight=null,this.contentWidth=null,this.contentHeight=null;var a=function(){return t.classList.add(L.state.focus)},c=function(){return t.classList.remove(L.state.focus)};this.isRtl="rtl"===i(t).direction,!0===this.isRtl&&t.classList.add(L.rtl),this.isNegativeScroll=function(){var e=t.scrollLeft,i=null;return t.scrollLeft=-1,i=0>t.scrollLeft,t.scrollLeft=e,i}(),this.negativeScrollAdjustment=this.isNegativeScroll?t.scrollWidth-t.clientWidth:0,this.event=new T,this.ownerDocument=t.ownerDocument||document,this.scrollbarXRail=n(L.element.rail("x")),t.appendChild(this.scrollbarXRail),this.scrollbarX=n(L.element.thumb("x")),this.scrollbarXRail.appendChild(this.scrollbarX),this.scrollbarX.setAttribute("tabindex",0),this.event.bind(this.scrollbarX,"focus",a),this.event.bind(this.scrollbarX,"blur",c),this.scrollbarXActive=null,this.scrollbarXWidth=null,this.scrollbarXLeft=null;var h=i(this.scrollbarXRail);this.scrollbarXBottom=parseInt(h.bottom,10),isNaN(this.scrollbarXBottom)?(this.isScrollbarXUsingBottom=!1,this.scrollbarXTop=f(h.top)):this.isScrollbarXUsingBottom=!0,this.railBorderXWidth=f(h.borderLeftWidth)+f(h.borderRightWidth),r(this.scrollbarXRail,{display:"block"}),this.railXMarginWidth=f(h.marginLeft)+f(h.marginRight),r(this.scrollbarXRail,{display:""}),this.railXWidth=null,this.railXRatio=null,this.scrollbarYRail=n(L.element.rail("y")),t.appendChild(this.scrollbarYRail),this.scrollbarY=n(L.element.thumb("y")),this.scrollbarYRail.appendChild(this.scrollbarY),this.scrollbarY.setAttribute("tabindex",0),this.event.bind(this.scrollbarY,"focus",a),this.event.bind(this.scrollbarY,"blur",c),this.scrollbarYActive=null,this.scrollbarYHeight=null,this.scrollbarYTop=null;var d=i(this.scrollbarYRail);this.scrollbarYRight=parseInt(d.right,10),isNaN(this.scrollbarYRight)?(this.isScrollbarYUsingRight=!1,this.scrollbarYLeft=f(d.left)):this.isScrollbarYUsingRight=!0,this.scrollbarYOuterWidth=this.isRtl?g(this.scrollbarY):null,this.railBorderYWidth=f(d.borderTopWidth)+f(d.borderBottomWidth),r(this.scrollbarYRail,{display:"block"}),this.railYMarginHeight=f(d.marginTop)+f(d.marginBottom),r(this.scrollbarYRail,{display:""}),this.railYHeight=null,this.railYRatio=null,this.reach={x:0>=t.scrollLeft?"start":t.scrollLeft>=this.contentWidth-this.containerWidth?"end":null,y:0>=t.scrollTop?"start":t.scrollTop>=this.contentHeight-this.containerHeight?"end":null},this.isAlive=!0,this.settings.handlers.forEach((function(t){return H[t](l)})),this.lastScrollTop=e(t.scrollTop),this.lastScrollLeft=t.scrollLeft,this.event.bind(this.element,"scroll",(function(t){return l.onScroll(t)})),b(this)};return k.prototype.update=function(){this.isAlive&&(this.negativeScrollAdjustment=this.isNegativeScroll?this.element.scrollWidth-this.element.clientWidth:0,r(this.scrollbarXRail,{display:"block"}),r(this.scrollbarYRail,{display:"block"}),this.railXMarginWidth=f(i(this.scrollbarXRail).marginLeft)+f(i(this.scrollbarXRail).marginRight),this.railYMarginHeight=f(i(this.scrollbarYRail).marginTop)+f(i(this.scrollbarYRail).marginBottom),r(this.scrollbarXRail,{display:"none"}),r(this.scrollbarYRail,{display:"none"}),b(this),u(this,"top",0,!1,!0),u(this,"left",0,!1,!0),r(this.scrollbarXRail,{display:""}),r(this.scrollbarYRail,{display:""}))},k.prototype.onScroll=function(){this.isAlive&&(b(this),u(this,"top",this.element.scrollTop-this.lastScrollTop),u(this,"left",this.element.scrollLeft-this.lastScrollLeft),this.lastScrollTop=e(this.element.scrollTop),this.lastScrollLeft=this.element.scrollLeft)},k.prototype.destroy=function(){this.isAlive&&(this.event.unbindAll(),l(this.scrollbarX),l(this.scrollbarY),l(this.scrollbarXRail),l(this.scrollbarYRail),this.removePsClasses(),this.element=null,this.scrollbarX=null,this.scrollbarY=null,this.scrollbarXRail=null,this.scrollbarYRail=null,this.isAlive=!1)},k.prototype.removePsClasses=function(){this.element.className=this.element.className.split(" ").filter((function(t){return!t.match(/^ps([-_].+|)$/)})).join(" ")},k}()}},e={};function i(r){var n=e[r];if(void 0!==n)return n.exports;var o=e[r]={exports:{}};return t[r].call(o.exports,o,o.exports,i),o.exports}i.d=(t,e)=>{for(var r in e)i.o(e,r)&&!i.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},i.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),(()=>{"use strict";window.PerfectScrollbar=i(225);i(750)})()})();