Dre4m Shell
Server IP : 85.214.239.14  /  Your IP : 18.189.192.220
Web Server : Apache/2.4.62 (Debian)
System : Linux h2886529.stratoserver.net 4.9.0 #1 SMP Tue Jan 9 19:45:01 MSK 2024 x86_64
User : www-data ( 33)
PHP Version : 7.4.18
Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
MySQL : OFF  |  cURL : OFF  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : OFF
Directory :  /proc/3/cwd/var/www/wordpress/wp-content/plugins/fictional-maps-handler/js/lib/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME SHELL ]     

Current File : /proc/3/cwd/var/www/wordpress/wp-content/plugins/fictional-maps-handler/js/lib//jBox.min.js
function jBoxWrapper(O){function a(t,i){return this.options={id:null,width:"auto",height:"auto",minWidth:null,minHeight:null,maxWidth:null,maxHeight:null,responsiveWidth:!0,responsiveHeight:!0,responsiveMinWidth:100,responsiveMinHeight:100,attach:null,trigger:"click",preventDefault:!1,content:null,getContent:null,title:null,getTitle:null,footer:null,isolateScroll:!0,ajax:{url:null,data:"",reload:!1,getURL:"data-url",getData:"data-ajax",setContent:!0,loadingClass:!0,spinner:!0,spinnerDelay:300,spinnerReposition:!0},cancelAjaxOnClose:!0,target:null,position:{x:"center",y:"center"},outside:null,offset:0,attributes:{x:"left",y:"top"},fixed:!1,adjustPosition:!0,adjustTracker:!1,adjustDistance:5,reposition:!0,repositionOnOpen:!0,repositionOnContent:!0,holdPosition:!0,pointer:!1,pointTo:"target",fade:180,animation:null,theme:"Default",addClass:null,overlay:!1,overlayClass:null,zIndex:1e4,delayOpen:0,delayClose:0,closeOnEsc:!1,closeOnClick:!1,closeOnMouseleave:!1,closeButton:!1,appendTo:O("body"),createOnInit:!1,blockScroll:!1,blockScrollAdjust:!0,draggable:!1,dragOver:!0,autoClose:!1,delayOnHover:!1,showCountdown:!1,preloadAudio:!0,audio:null,volume:100,onInit:null,onAttach:null,onPosition:null,onCreated:null,onOpen:null,onClose:null,onCloseComplete:null,onDragStart:null,onDragEnd:null},this._pluginOptions={Tooltip:{getContent:"title",trigger:"mouseenter",position:{x:"center",y:"top"},outside:"y",pointer:!0},Mouse:{responsiveWidth:!1,responsiveHeight:!1,adjustPosition:"flip",target:"mouse",trigger:"mouseenter",position:{x:"right",y:"bottom"},outside:"xy",offset:5},Modal:{target:O(window),fixed:!0,blockScroll:!0,closeOnEsc:!0,closeOnClick:"overlay",closeButton:!0,overlay:!0,animation:"zoomIn"}},this.options=O.extend(!0,this.options,this._pluginOptions[t]?this._pluginOptions[t]:a._pluginOptions[t],i),"string"==O.type(t)&&(this.type=t),this.isTouchDevice=function(){var t=" -webkit- -moz- -o- -ms- ".split(" ");if("ontouchstart"in window||window.DocumentTouch&&document instanceof DocumentTouch)return!0;var i,s=["(",t.join("touch-enabled),("),"heartz",")"].join("");return i=s,window.matchMedia(i).matches}(),this.isTouchDevice&&"mouseenter"===this.options.trigger&&!1===this.options.closeOnClick&&(this.options.closeOnClick="body"),this._fireEvent=function(t,i){this.options["_"+t]&&this.options["_"+t].bind(this)(i),this.options[t]&&this.options[t].bind(this)(i)},null===this.options.id&&(this.options.id="jBox"+a._getUniqueID()),this.id=this.options.id,("center"==this.options.position.x&&"x"==this.options.outside||"center"==this.options.position.y&&"y"==this.options.outside)&&(this.options.outside=null),"target"!=this.options.pointTo||this.options.outside&&"xy"!=this.options.outside||(this.options.pointer=!1),"object"!=O.type(this.options.offset)?this.options.offset={x:this.options.offset,y:this.options.offset}:this.options.offset=O.extend({x:0,y:0},this.options.offset),"object"!=O.type(this.options.adjustDistance)?this.options.adjustDistance={top:this.options.adjustDistance,right:this.options.adjustDistance,bottom:this.options.adjustDistance,left:this.options.adjustDistance}:this.options.adjustDistance=O.extend({top:5,left:5,right:5,bottom:5},this.options.adjustDistance),this.outside=!(!this.options.outside||"xy"==this.options.outside)&&this.options.position[this.options.outside],this.align=this.outside?this.outside:"center"!=this.options.position.y&&"number"!=O.type(this.options.position.y)?this.options.position.x:"center"!=this.options.position.x&&"number"!=O.type(this.options.position.x)?this.options.position.y:this.options.attributes.x,a.zIndexMax=Math.max(a.zIndexMax||0,"auto"===this.options.zIndex?1e4:this.options.zIndex),"auto"===this.options.zIndex&&(this.adjustZIndexOnOpen=!0,a.zIndexMax+=2,this.options.zIndex=a.zIndexMax,this.trueModal=this.options.overlay),this._getOpp=function(t){return{left:"right",right:"left",top:"bottom",bottom:"top",x:"y",y:"x"}[t]},this._getXY=function(t){return{left:"x",right:"x",top:"y",bottom:"y",center:"x"}[t]},this._getTL=function(t){return{left:"left",right:"left",top:"top",bottom:"top",center:"left",x:"left",y:"top"}[t]},this._getInt=function(t,i){return"auto"==t?"auto":t&&"string"==O.type(t)&&"%"==t.slice(-1)?O(window)["height"==i?"innerHeight":"innerWidth"]()*parseInt(t.replace("%",""))/100:t},this._createSVG=function(t,i){var s=document.createElementNS("http://www.w3.org/2000/svg",t);return O.each(i,function(t,i){s.setAttribute(i[0],i[1]||"")}),s},this._isolateScroll=function(e){e&&e.length&&e.on("DOMMouseScroll.jBoxIsolateScroll mousewheel.jBoxIsolateScroll",function(t){var i=t.wheelDelta||t.originalEvent&&t.originalEvent.wheelDelta||-t.detail,s=0<=this.scrollTop+e.outerHeight()-this.scrollHeight,o=this.scrollTop<=0;(i<0&&s||0<i&&o)&&t.preventDefault()})},this._setTitleWidth=function(){if(!this.titleContainer||"auto"==this.content[0].style.width&&!this.content[0].style.maxWidth)return null;if("none"==this.wrapper.css("display")){this.wrapper.css("display","block");var t=this.content.outerWidth();this.wrapper.css("display","none")}else t=this.content.outerWidth();this.titleContainer.css({maxWidth:Math.max(t,parseInt(this.content[0].style.maxWidth))||null})},this._draggable=function(){if(!this.options.draggable)return!1;var t="title"==this.options.draggable?this.titleContainer:this.options.draggable instanceof O?this.options.draggable:"string"==O.type(this.options.draggable)?O(this.options.draggable):this.wrapper;return!(!(t&&t instanceof O&&t.length)||t.data("jBox-draggable"))&&(t.addClass("jBox-draggable").data("jBox-draggable",!0).on("touchstart mousedown",function(t){if(2!=t.button&&!O(t.target).hasClass("jBox-noDrag")&&!O(t.target).parents(".jBox-noDrag").length){this.draggingStartX=t.pageX,this.draggingStartY=t.pageY,this.options.dragOver&&!this.trueModal&&parseInt(this.wrapper.css("zIndex"),10)<=a.zIndexMaxDragover&&(a.zIndexMaxDragover+=1,this.wrapper.css("zIndex",a.zIndexMaxDragover));var i=this.wrapper.outerHeight(),s=this.wrapper.outerWidth(),o=this.wrapper.offset().top+i-t.pageY,e=this.wrapper.offset().left+s-t.pageX;O(document).on("touchmove.jBox-draggable-"+this.id+" mousemove.jBox-draggable-"+this.id,function(t){this.dragging||this.draggingStartX==t.pageX||this.draggingStartY==t.pageY||(this._fireEvent("onDragStart"),this.dragging=!0),this.wrapper.offset({top:t.pageY+o-i,left:t.pageX+e-s})}.bind(this)),t.preventDefault()}}.bind(this)).on("touchend mouseup",function(){if(O(document).off("touchmove.jBox-draggable-"+this.id+" mousemove.jBox-draggable-"+this.id),this.dragging&&this._fireEvent("onDragEnd"),this.dragging=!1,("Modal"==this.type||"Confirm"==this.type)&&this.options.holdPosition){var t=O("#"+this.id).offset(),i={x:t.left-O(document).scrollLeft(),y:t.top-O(document).scrollTop()};this.position({position:i,offset:{x:0,y:0}})}}.bind(this)),this.trueModal||(a.zIndexMaxDragover=a.zIndexMaxDragover?Math.max(a.zIndexMaxDragover,this.options.zIndex):this.options.zIndex),this)},this._create=function(){if(!this.wrapper){if(this.wrapper=O("<div/>",{id:this.id,class:"jBox-wrapper"+(this.type?" jBox-"+this.type:"")+(this.options.theme?" jBox-"+this.options.theme:"")+(this.options.addClass?" "+this.options.addClass:"")}).css({position:this.options.fixed?"fixed":"absolute",display:"none",opacity:0,zIndex:this.options.zIndex}).data("jBox",this),this.options.closeOnMouseleave&&this.wrapper.on("mouseleave",function(t){!this.source||t.relatedTarget!=this.source[0]&&-1===O.inArray(this.source[0],O(t.relatedTarget).parents("*"))&&this.close()}.bind(this)),"box"==this.options.closeOnClick&&this.wrapper.on("click",function(){this.close({ignoreDelay:!0})}.bind(this)),this.container=O('<div class="jBox-container"/>').appendTo(this.wrapper),this.content=O('<div class="jBox-content"/>').appendTo(this.container),this.options.footer&&(this.footer=O('<div class="jBox-footer"/>').append(this.options.footer).appendTo(this.container)),this.options.isolateScroll&&this._isolateScroll(this.content),this.options.closeButton){var t=this._createSVG("svg",[["viewBox","0 0 24 24"]]);t.appendChild(this._createSVG("path",[["d","M22.2,4c0,0,0.5,0.6,0,1.1l-6.8,6.8l6.9,6.9c0.5,0.5,0,1.1,0,1.1L20,22.3c0,0-0.6,0.5-1.1,0L12,15.4l-6.9,6.9c-0.5,0.5-1.1,0-1.1,0L1.7,20c0,0-0.5-0.6,0-1.1L8.6,12L1.7,5.1C1.2,4.6,1.7,4,1.7,4L4,1.7c0,0,0.6-0.5,1.1,0L12,8.5l6.8-6.8c0.5-0.5,1.1,0,1.1,0L22.2,4z"]])),this.closeButton=O('<div class="jBox-closeButton jBox-noDrag"/>').on("click",function(t){this.close({ignoreDelay:!0})}.bind(this)).append(t),"box"!=this.options.closeButton&&(!0!==this.options.closeButton||this.options.overlay||this.options.title||this.options.getTitle)||(this.wrapper.addClass("jBox-closeButton-box"),this.closeButton.appendTo(this.container))}if(this.wrapper.appendTo(this.options.appendTo),this.wrapper.find(".jBox-closeButton").length&&O.each(["top","right","bottom","left"],function(t,i){this.wrapper.find(".jBox-closeButton").css(i)&&"auto"!=this.wrapper.find(".jBox-closeButton").css(i)&&(this.options.adjustDistance[i]=Math.max(this.options.adjustDistance[i],this.options.adjustDistance[i]+-1*((parseInt(this.wrapper.find(".jBox-closeButton").css(i))||0)+(parseInt(this.container.css("border-"+i+"-width"))||0))))}.bind(this)),this.options.pointer){if(this.pointer={position:"target"!=this.options.pointTo?this.options.pointTo:this._getOpp(this.outside),xy:"target"!=this.options.pointTo?this._getXY(this.options.pointTo):this._getXY(this.outside),align:"center",offset:0},this.pointer.element=O('<div class="jBox-pointer jBox-pointer-'+this.pointer.position+'"/>').appendTo(this.wrapper),this.pointer.dimensions={x:this.pointer.element.outerWidth(),y:this.pointer.element.outerHeight()},"string"==O.type(this.options.pointer)){var i=this.options.pointer.split(":");i[0]&&(this.pointer.align=i[0]),i[1]&&(this.pointer.offset=parseInt(i[1]))}this.pointer.alignAttribute="x"==this.pointer.xy?"bottom"==this.pointer.align?"bottom":"top":"right"==this.pointer.align?"right":"left",this.wrapper.css("padding-"+this.pointer.position,this.pointer.dimensions[this.pointer.xy]),this.pointer.element.css(this.pointer.alignAttribute,"center"==this.pointer.align?"50%":0).css("margin-"+this.pointer.alignAttribute,this.pointer.offset),this.pointer.margin={},this.pointer.margin["margin-"+this.pointer.alignAttribute]=this.pointer.offset,"center"==this.pointer.align&&this.pointer.element.css("transform","translate("+("y"==this.pointer.xy?-.5*this.pointer.dimensions.x+"px":0)+", "+("x"==this.pointer.xy?-.5*this.pointer.dimensions.y+"px":0)+")"),this.pointer.element.css("x"==this.pointer.xy?"width":"height",parseInt(this.pointer.dimensions[this.pointer.xy])+parseInt(this.container.css("border-"+this.pointer.alignAttribute+"-width"))),this.wrapper.addClass("jBox-pointerPosition-"+this.pointer.position)}this.setContent(this.options.content,!0),this.setTitle(this.options.title,!0),this.options.draggable&&this._draggable(),this._fireEvent("onCreated")}},this.options.createOnInit&&this._create(),this.options.attach&&this.attach(),this._attachEvents=function(){this.options.delayOnHover&&O("#"+this.id).on("mouseenter",function(t){this.isHovered=!0}.bind(this)),this.options.delayOnHover&&O("#"+this.id).on("mouseleave",function(t){this.isHovered=!1}.bind(this)),(this.options.adjustPosition||this.options.reposition)&&!this.fixed&&this.outside&&(this.options.adjustTracker&&O(window).on("scroll.jBox-"+this.id,function(t){this.position()}.bind(this)),(this.options.adjustPosition||this.options.reposition)&&O(window).on("resize.jBox-"+this.id,function(t){this.position()}.bind(this))),"mouse"==this.options.target&&O("body").on("mousemove.jBox-"+this.id,function(t){this.position({mouseTarget:{top:t.pageY,left:t.pageX}})}.bind(this))},this._detachEvents=function(){this.options.closeOnEsc&&O(document).off("keyup.jBox-"+this.id),!0!==this.options.closeOnClick&&"body"!=this.options.closeOnClick||O(document).off("click.jBox-"+this.id),this.options.adjustTracker&&O(window).off("scroll.jBox-"+this.id),(this.options.adjustPosition||this.options.reposition)&&O(window).off("resize.jBox-"+this.id),"mouse"==this.options.target&&O("body").off("mousemove.jBox-"+this.id)},this._showOverlay=function(){this.overlay||(this.overlay=O('<div id="'+this.id+'-overlay"/>').addClass("jBox-overlay"+(this.type?" jBox-overlay-"+this.type:"")).css({display:"none",opacity:0,zIndex:this.options.zIndex-1}).appendTo(this.options.appendTo),this.options.overlayClass&&this.overlay.addClass(this.options.overlayClass),"overlay"!=this.options.closeButton&&!0!==this.options.closeButton||this.overlay.append(this.closeButton),"overlay"==this.options.closeOnClick&&this.overlay.on("click",function(){this.close({ignoreDelay:!0})}.bind(this)),O("#"+this.id+"-overlay .jBox-closeButton").length&&(this.options.adjustDistance.top=Math.max(O("#"+this.id+"-overlay .jBox-closeButton").outerHeight(),this.options.adjustDistance.top))),!0===this.adjustZIndexOnOpen&&this.overlay.css("zIndex",parseInt(this.wrapper.css("zIndex"),10)-1),"block"!=this.overlay.css("display")&&(this.options.fade?this.overlay.stop()&&this.overlay.animate({opacity:1},{queue:!1,duration:this.options.fade,start:function(){this.overlay.css({display:"block"})}.bind(this)}):this.overlay.css({display:"block",opacity:1}))},this._hideOverlay=function(){this.overlay&&(this.options.fade?this.overlay.stop()&&this.overlay.animate({opacity:0},{queue:!1,duration:this.options.fade,complete:function(){this.overlay.css({display:"none"})}.bind(this)}):this.overlay.css({display:"none",opacity:0}))},this._exposeDimensions=function(){this.wrapper.css({top:-1e4,left:-1e4,right:"auto",bottom:"auto"});var t={x:this.wrapper.outerWidth(),y:this.wrapper.outerHeight()};return this.wrapper.css({top:"auto",left:"auto"}),t},this._generateAnimationCSS=function(){if("object"!=O.type(this.options.animation)&&(this.options.animation={pulse:{open:"pulse",close:"zoomOut"},zoomIn:{open:"zoomIn",close:"zoomIn"},zoomOut:{open:"zoomOut",close:"zoomOut"},move:{open:"move",close:"move"},slide:{open:"slide",close:"slide"},flip:{open:"flip",close:"flip"},tada:{open:"tada",close:"zoomOut"}}[this.options.animation]),!this.options.animation)return null;this.options.animation.open&&(this.options.animation.open=this.options.animation.open.split(":")),this.options.animation.close&&(this.options.animation.close=this.options.animation.close.split(":")),this.options.animation.openDirection=this.options.animation.open[1]?this.options.animation.open[1]:null,this.options.animation.closeDirection=this.options.animation.close[1]?this.options.animation.close[1]:null,this.options.animation.open&&(this.options.animation.open=this.options.animation.open[0]),this.options.animation.close&&(this.options.animation.close=this.options.animation.close[0]),this.options.animation.open&&(this.options.animation.open+="Open"),this.options.animation.close&&(this.options.animation.close+="Close");var n={pulse:{duration:350,css:[["0%","scale(1)"],["50%","scale(1.1)"],["100%","scale(1)"]]},zoomInOpen:{duration:this.options.fade||180,css:[["0%","scale(0.9)"],["100%","scale(1)"]]},zoomInClose:{duration:this.options.fade||180,css:[["0%","scale(1)"],["100%","scale(0.9)"]]},zoomOutOpen:{duration:this.options.fade||180,css:[["0%","scale(1.1)"],["100%","scale(1)"]]},zoomOutClose:{duration:this.options.fade||180,css:[["0%","scale(1)"],["100%","scale(1.1)"]]},moveOpen:{duration:this.options.fade||180,positions:{top:{"0%":-12},right:{"0%":12},bottom:{"0%":12},left:{"0%":-12}},css:[["0%","translate%XY(%Vpx)"],["100%","translate%XY(0px)"]]},moveClose:{duration:this.options.fade||180,timing:"ease-in",positions:{top:{"100%":-12},right:{"100%":12},bottom:{"100%":12},left:{"100%":-12}},css:[["0%","translate%XY(0px)"],["100%","translate%XY(%Vpx)"]]},slideOpen:{duration:400,positions:{top:{"0%":-400},right:{"0%":400},bottom:{"0%":400},left:{"0%":-400}},css:[["0%","translate%XY(%Vpx)"],["100%","translate%XY(0px)"]]},slideClose:{duration:400,timing:"ease-in",positions:{top:{"100%":-400},right:{"100%":400},bottom:{"100%":400},left:{"100%":-400}},css:[["0%","translate%XY(0px)"],["100%","translate%XY(%Vpx)"]]},flipOpen:{duration:600,css:[["0%","perspective(400px) rotateX(90deg)"],["40%","perspective(400px) rotateX(-15deg)"],["70%","perspective(400px) rotateX(15deg)"],["100%","perspective(400px) rotateX(0deg)"]]},flipClose:{duration:this.options.fade||300,css:[["0%","perspective(400px) rotateX(0deg)"],["100%","perspective(400px) rotateX(90deg)"]]},tada:{duration:800,css:[["0%","scale(1)"],["10%, 20%","scale(0.9) rotate(-3deg)"],["30%, 50%, 70%, 90%","scale(1.1) rotate(3deg)"],["40%, 60%, 80%","scale(1.1) rotate(-3deg)"],["100%","scale(1) rotate(0)"]]}};O.each(["pulse","tada"],function(t,i){n[i+"Open"]=n[i+"Close"]=n[i]});var o=function(o,e){return keyframe_css="@keyframes jBox-"+this.id+"-animation-"+this.options.animation[o]+"-"+o+(e?"-"+e:"")+" {",O.each(n[this.options.animation[o]].css,function(t,i){var s=e?i[1].replace("%XY",this._getXY(e).toUpperCase()):i[1];n[this.options.animation[o]].positions&&(s=s.replace("%V",n[this.options.animation[o]].positions[e][i[0]])),keyframe_css+=i[0]+" {transform:"+s+";}"}.bind(this)),keyframe_css+="}",keyframe_css+=".jBox-"+this.id+"-animation-"+this.options.animation[o]+"-"+o+(e?"-"+e:"")+" {",keyframe_css+="animation-duration: "+n[this.options.animation[o]].duration+"ms;",keyframe_css+="animation-name: jBox-"+this.id+"-animation-"+this.options.animation[o]+"-"+o+(e?"-"+e:"")+";",keyframe_css+=n[this.options.animation[o]].timing?"animation-timing-function: "+n[this.options.animation[o]].timing+";":"",keyframe_css+="}",keyframe_css}.bind(this);this._animationCSS="",O.each(["open","close"],function(t,s){if(!this.options.animation[s]||!n[this.options.animation[s]]||"close"==s&&!this.options.fade)return"";n[this.options.animation[s]].positions?O.each(["top","right","bottom","left"],function(t,i){this._animationCSS+=o(s,i)}.bind(this)):this._animationCSS+=o(s)}.bind(this))},this.options.animation&&this._generateAnimationCSS(),this._blockBodyClick=function(){this.blockBodyClick=!0,setTimeout(function(){this.blockBodyClick=!1}.bind(this),10)},this._animate=function(t){if(t=t||(this.isOpen?"open":"close"),!this.options.fade&&"close"==t)return null;var i=this.options.animation[t+"Direction"]||("center"!=this.align?this.align:this.options.attributes.x);this.flipped&&this._getXY(i)==this._getXY(this.align)&&(i=this._getOpp(i));var s="jBox-"+this.id+"-animation-"+this.options.animation[t]+"-"+t+" jBox-"+this.id+"-animation-"+this.options.animation[t]+"-"+t+"-"+i;this.wrapper.addClass(s);var o=1e3*parseFloat(this.wrapper.css("animation-duration"));"close"==t&&(o=Math.min(o,this.options.fade)),setTimeout(function(){this.wrapper.removeClass(s)}.bind(this),o)},this._abortAnimation=function(){var t=this.wrapper.attr("class").split(" ").filter(function(t){return 0!==t.lastIndexOf("jBox-"+this.id+"-animation",0)}.bind(this));this.wrapper.attr("class",t.join(" "))},(this.options.responsiveWidth||this.options.responsiveHeight)&&O(window).on("resize.responsivejBox-"+this.id,function(t){this.isOpen&&this.position()}.bind(this)),"string"===O.type(this.options.preloadAudio)&&(this.options.preloadAudio=[this.options.preloadAudio]),"string"===O.type(this.options.audio)&&(this.options.audio={open:this.options.audio}),"number"===O.type(this.options.volume)&&(this.options.volume={open:this.options.volume,close:this.options.volume}),!0===this.options.preloadAudio&&this.options.audio&&(this.options.preloadAudio=[],O.each(this.options.audio,function(t,i){this.options.preloadAudio.push(i+".mp3"),this.options.preloadAudio.push(i+".ogg")}.bind(this))),this.options.preloadAudio.length&&O.each(this.options.preloadAudio,function(t,i){var s=new Audio;s.src=i,s.preload="auto"}),this._fireEvent("onInit"),this}var t,i;return a.prototype.attach=function(t,o){return t=t||this.options.attach,"string"==O.type(t)&&(t=O(t)),o=o||this.options.trigger,t&&t.length&&O.each(t,function(t,s){(s=O(s)).data("jBox-attached-"+this.id)||("title"==this.options.getContent&&null!=s.attr("title")&&s.data("jBox-getContent",s.attr("title")).removeAttr("title"),this.attachedElements||(this.attachedElements=[]),this.attachedElements.push(s[0]),s.on(o+".jBox-attach-"+this.id,function(t){if(this.timer&&clearTimeout(this.timer),"mouseenter"!=o||!this.isOpen||this.source[0]!=s[0]){if(this.isOpen&&this.source&&this.source[0]!=s[0])var i=!0;this.source=s,this.options.target||(this.target=s),"click"==o&&this.options.preventDefault&&t.preventDefault(),this["click"!=o||i?"open":"toggle"]()}}.bind(this)),"mouseenter"==this.options.trigger&&s.on("mouseleave",function(t){if(!this.wrapper)return null;this.options.closeOnMouseleave&&(t.relatedTarget==this.wrapper[0]||O(t.relatedTarget).parents("#"+this.id).length)||this.close()}.bind(this)),s.data("jBox-attached-"+this.id,o),this._fireEvent("onAttach",s))}.bind(this)),this},a.prototype.detach=function(t){return(t=t||(this.attachedElements||[]))&&t.length&&O.each(t,function(t,i){(i=O(i)).data("jBox-attached-"+this.id)&&(i.off(i.data("jBox-attached-"+this.id)+".jBox-attach-"+this.id),i.data("jBox-attached-"+this.id,null)),this.attachedElements=O.grep(this.attachedElements,function(t){return t!=i[0]})}.bind(this)),this},a.prototype.setTitle=function(t,i){if(null==t||null==t)return this;this.wrapper||this._create();var s=this.wrapper.outerHeight(),o=this.wrapper.outerWidth();return this.title||(this.titleContainer=O('<div class="jBox-title"/>'),this.title=O("<div/>").appendTo(this.titleContainer),"title"!=this.options.closeButton&&(!0!==this.options.closeButton||this.options.overlay)||(this.wrapper.addClass("jBox-closeButton-title"),this.closeButton.appendTo(this.titleContainer)),this.titleContainer.insertBefore(this.content),this._setTitleWidth()),this.wrapper[t?"addClass":"removeClass"]("jBox-hasTitle"),this.title.html(t),o!=this.wrapper.outerWidth()&&this._setTitleWidth(),this.options.draggable&&this._draggable(),i||!this.options.repositionOnContent||s==this.wrapper.outerHeight()&&o==this.wrapper.outerWidth()||this.position(),this},a.prototype.setContent=function(t,i){if(null==t||null==t)return this;this.wrapper||this._create();var s=this.wrapper.outerHeight(),o=this.wrapper.outerWidth();switch(this.content.children("[data-jbox-content-appended]").appendTo("body").css({display:"none"}),O.type(t)){case"string":this.content.html(t);break;case"object":t&&(t instanceof O||t.constructor.prototype.jquery)?(this.content.html(""),t.attr("data-jbox-content-appended",1).appendTo(this.content).css({display:"block"})):this.content.html(JSON.stringify(t))}return o!=this.wrapper.outerWidth()&&this._setTitleWidth(),this.options.draggable&&this._draggable(),i||!this.options.repositionOnContent||s==this.wrapper.outerHeight()&&o==this.wrapper.outerWidth()||this.position(),this},a.prototype.setDimensions=function(t,i,s){this.wrapper||this._create(),null==i&&(i="auto"),this.content.css(t,this._getInt(i)),"width"==t&&this._setTitleWidth(),this.options[t]=i,null!=s&&!s||this.position()},a.prototype.setWidth=function(t,i){this.setDimensions("width",t,i)},a.prototype.setHeight=function(t,i){this.setDimensions("height",t,i)},a.prototype.position=function(s){if(s=s||{},s=O.extend(!0,this.options,s),this.target=s.target||this.target||O(window),this.target instanceof O||"mouse"==this.target||(this.target=O(this.target)),!this.target.length)return this;this.content.css({width:this._getInt(s.width,"width"),height:this._getInt(s.height,"height"),minWidth:this._getInt(s.minWidth,"width"),minHeight:this._getInt(s.minHeight,"height"),maxWidth:this._getInt(s.maxWidth,"width"),maxHeight:this._getInt(s.maxHeight,"height")}),this._setTitleWidth();var o=this._exposeDimensions();"mouse"==this.target||this.target.data("jBox-"+this.id+"-fixed")||this.target.data("jBox-"+this.id+"-fixed",this.target[0]!=O(window)[0]&&("fixed"==this.target.css("position")||0<this.target.parents().filter(function(){return"fixed"==O(this).css("position")}).length)?"fixed":"static");var t={x:O(window).outerWidth(),y:O(window).outerHeight(),top:s.fixed&&this.target.data("jBox-"+this.id+"-fixed")?0:O(window).scrollTop(),left:s.fixed&&this.target.data("jBox-"+this.id+"-fixed")?0:O(window).scrollLeft()};t.bottom=t.top+t.y,t.right=t.left+t.x;try{var i=this.target.offset()}catch(t){i={top:0,left:0}}"mouse"!=this.target&&"fixed"==this.target.data("jBox-"+this.id+"-fixed")&&s.fixed&&(i.top=i.top-O(window).scrollTop(),i.left=i.left-O(window).scrollLeft());var e={x:"mouse"==this.target?12:this.target.outerWidth(),y:"mouse"==this.target?20:this.target.outerHeight(),top:"mouse"==this.target&&s.mouseTarget?s.mouseTarget.top:i?i.top:0,left:"mouse"==this.target&&s.mouseTarget?s.mouseTarget.left:i?i.left:0},n=s.outside&&!("center"==s.position.x&&"center"==s.position.y),a={x:t.x-s.adjustDistance.left-s.adjustDistance.right,y:t.y-s.adjustDistance.top-s.adjustDistance.bottom,left:n?e.left-O(window).scrollLeft()-s.adjustDistance.left:0,right:n?t.x-e.left+O(window).scrollLeft()-e.x-s.adjustDistance.right:0,top:n?e.top-O(window).scrollTop()-this.options.adjustDistance.top:0,bottom:n?t.y-e.top+O(window).scrollTop()-e.y-s.adjustDistance.bottom:0},h={x:"x"!=s.outside&&"xy"!=s.outside||"number"==O.type(s.position.x)?null:s.position.x,y:"y"!=s.outside&&"xy"!=s.outside||"number"==O.type(s.position.y)?null:s.position.y},r={x:!1,y:!1};if(h.x&&o.x>a[h.x]&&a[this._getOpp(h.x)]>a[h.x]&&(h.x=this._getOpp(h.x))&&(r.x=!0),h.y&&o.y>a[h.y]&&a[this._getOpp(h.y)]>a[h.y]&&(h.y=this._getOpp(h.y))&&(r.y=!0),s.responsiveWidth||s.responsiveHeight){var p=function(){if(s.responsiveWidth&&o.x>a[h.x||"x"]){var t=a[h.x||"x"]-(this.pointer&&n&&"x"==s.outside?this.pointer.dimensions.x:0)-parseInt(this.container.css("border-left-width"))-parseInt(this.container.css("border-right-width"));this.content.css({width:t>this.options.responsiveMinWidth?t:null,minWidth:t<parseInt(this.content.css("minWidth"))?0:null}),this._setTitleWidth()}o=this._exposeDimensions()}.bind(this);s.responsiveWidth&&p(),s.responsiveWidth&&!r.y&&h.y&&o.y>a[h.y]&&a[this._getOpp(h.y)]>a[h.y]&&(h.y=this._getOpp(h.y))&&(r.y=!0);var l=function(){if(s.responsiveHeight&&o.y>a[h.y||"y"]){var t=function(){if(!this.titleContainer&&!this.footer)return 0;if("none"==this.wrapper.css("display")){this.wrapper.css("display","block");var t=(this.titleContainer?this.titleContainer.outerHeight():0)+(this.footer?this.footer.outerHeight():0);this.wrapper.css("display","none")}else t=(this.titleContainer?this.titleContainer.outerHeight():0)+(this.footer?this.footer.outerHeight():0);return t||0}.bind(this),i=a[h.y||"y"]-(this.pointer&&n&&"y"==s.outside?this.pointer.dimensions.y:0)-t()-parseInt(this.container.css("border-top-width"))-parseInt(this.container.css("border-bottom-width"));this.content.css({height:i>this.options.responsiveMinHeight?i:null}),this._setTitleWidth()}o=this._exposeDimensions()}.bind(this);s.responsiveHeight&&l(),s.responsiveHeight&&!r.x&&h.x&&o.x>a[h.x]&&a[this._getOpp(h.x)]>a[h.x]&&(h.x=this._getOpp(h.x))&&(r.x=!0),s.adjustPosition&&"move"!=s.adjustPosition&&(r.x&&p(),r.y&&l())}var d={},c=function(t){if("number"!=O.type(s.position[t])){var i=s.attributes[t]="x"==t?"left":"top";if(d[i]=e[i],"center"==s.position[t])return d[i]+=Math.ceil((e[t]-o[t])/2),void("mouse"!=this.target&&this.target[0]&&this.target[0]==O(window)[0]&&(d[i]+=.5*(s.adjustDistance[i]-s.adjustDistance[this._getOpp(i)])));i!=s.position[t]&&(d[i]+=e[t]-o[t]),s.outside!=t&&"xy"!=s.outside||(d[i]+=o[t]*(i!=s.position[t]?1:-1))}else d[s.attributes[t]]=s.position[t]}.bind(this);if(c("x"),c("y"),this.pointer&&"target"==s.pointTo&&"number"!=O.type(s.position.x)&&"number"!=O.type(s.position.y)){var u=0;switch(this.pointer.align){case"center":"center"!=s.position[this._getOpp(s.outside)]&&(u+=o[this._getOpp(s.outside)]/2);break;default:switch(s.position[this._getOpp(s.outside)]){case"center":u+=(o[this._getOpp(s.outside)]/2-this.pointer.dimensions[this._getOpp(s.outside)]/2)*(this.pointer.align==this._getTL(this.pointer.align)?1:-1);break;default:u+=this.pointer.align!=s.position[this._getOpp(s.outside)]?this.dimensions[this._getOpp(s.outside)]*(-1!==O.inArray(this.pointer.align,["top","left"])?1:-1)+this.pointer.dimensions[this._getOpp(s.outside)]/2*(-1!==O.inArray(this.pointer.align,["top","left"])?-1:1):this.pointer.dimensions[this._getOpp(s.outside)]/2*(-1!==O.inArray(this.pointer.align,["top","left"])?1:-1)}}u*=s.position[this._getOpp(s.outside)]==this.pointer.alignAttribute?-1:1,u+=this.pointer.offset*(this.pointer.align==this._getOpp(this._getTL(this.pointer.align))?1:-1),d[this._getTL(this._getOpp(this.pointer.xy))]+=u}if(d[s.attributes.x]+=s.offset.x,d[s.attributes.y]+=s.offset.y,this.wrapper.css(d),s.adjustPosition){this.positionAdjusted&&(this.pointer&&this.wrapper.css("padding",0).css("padding-"+this._getOpp(this.outside),this.pointer.dimensions[this._getXY(this.outside)]).removeClass("jBox-pointerPosition-"+this._getOpp(this.pointer.position)).addClass("jBox-pointerPosition-"+this.pointer.position),this.pointer&&this.pointer.element.attr("class","jBox-pointer jBox-pointer-"+this._getOpp(this.outside)).css(this.pointer.margin),this.positionAdjusted=!1,this.flipped=!1);var g=t.top>d.top-(s.adjustDistance.top||0),m=t.right<d.left+o.x+(s.adjustDistance.right||0),f=t.bottom<d.top+o.y+(s.adjustDistance.bottom||0),x=t.left>d.left-(s.adjustDistance.left||0),y=x?"left":m?"right":null,v=g?"top":f?"bottom":null;if(y||v){if(("Modal"==this.type||"Confirm"==this.type)&&"number"==O.type(this.options.position.x)&&"number"==O.type(this.options.position.y)){var b=0,j=0;return this.options.holdPosition&&(x?b=t.left-(d.left-(s.adjustDistance.left||0)):m&&(b=t.right-(d.left+o.x+(s.adjustDistance.right||0))),g?j=t.top-(d.top-(s.adjustDistance.top||0)):f&&(j=t.bottom-(d.top+o.y+(s.adjustDistance.bottom||0))),this.options.position.x=Math.max(t.top,this.options.position.x+b),this.options.position.y=Math.max(t.left,this.options.position.y+j),c("x"),c("y"),this.wrapper.css(d)),this._fireEvent("onPosition"),this}if(!0===s.adjustPosition||"flip"===s.adjustPosition){var w=function(t){this.wrapper.css(this._getTL(t),d[this._getTL(t)]+(o[this._getXY(t)]+s.offset[this._getXY(t)]*("top"==t||"left"==t?-2:2)+e[this._getXY(t)])*("top"==t||"left"==t?1:-1)),this.pointer&&this.wrapper.removeClass("jBox-pointerPosition-"+this.pointer.position).addClass("jBox-pointerPosition-"+this._getOpp(this.pointer.position)).css("padding",0).css("padding-"+t,this.pointer.dimensions[this._getXY(t)]),this.pointer&&this.pointer.element.attr("class","jBox-pointer jBox-pointer-"+t),this.positionAdjusted=!0,this.flipped=!0}.bind(this);r.x&&w(this.options.position.x),r.y&&w(this.options.position.y)}var _="x"==this._getXY(this.outside)?v:y;if(this.pointer&&"target"==s.pointTo&&"flip"!=s.adjustPosition&&this._getXY(_)==this._getOpp(this._getXY(this.outside))){if("center"==this.pointer.align)var B=o[this._getXY(_)]/2-this.pointer.dimensions[this._getOpp(this.pointer.xy)]/2-parseInt(this.pointer.element.css("margin-"+this.pointer.alignAttribute))*(_!=this._getTL(_)?-1:1);else B=_==this.pointer.alignAttribute?parseInt(this.pointer.element.css("margin-"+this.pointer.alignAttribute)):o[this._getXY(_)]-parseInt(this.pointer.element.css("margin-"+this.pointer.alignAttribute))-this.pointer.dimensions[this._getXY(_)];var C=_==this._getTL(_)?t[this._getTL(_)]-d[this._getTL(_)]+s.adjustDistance[_]:-1*(t[this._getOpp(this._getTL(_))]-d[this._getTL(_)]-s.adjustDistance[_]-o[this._getXY(_)]);_==this._getOpp(this._getTL(_))&&d[this._getTL(_)]-C<t[this._getTL(_)]+s.adjustDistance[this._getTL(_)]&&(C-=t[this._getTL(_)]+s.adjustDistance[this._getTL(_)]-(d[this._getTL(_)]-C)),(C=Math.min(C,B))<=B&&0<C&&(this.pointer.element.css("margin-"+this.pointer.alignAttribute,parseInt(this.pointer.element.css("margin-"+this.pointer.alignAttribute))-C*(_!=this.pointer.alignAttribute?-1:1)),this.wrapper.css(this._getTL(_),d[this._getTL(_)]+C*(_!=this._getTL(_)?-1:1)),this.positionAdjusted=!0)}}}return this._fireEvent("onPosition"),this},(a.prototype.unscroll=function(t){if(this.set=function(t,i){window.unscrollStore||(window.unscrollStore={}),window.unscrollStore[t]=i},this.get=function(t){return window.unscrollStore?window.unscrollStore[t]:null},this.getScrollbarWidth=function(){if(this.get("scrollbarWidth"))return this.get("scrollbarWidth")+"px";var t=document.createElement("div");t.style.width="100px",t.style.height="100px",t.style.overflow="scroll",t.style.position="absolute",t.style.top="-10000",document.body.appendChild(t);var i=t.offsetWidth-t.clientWidth;return document.body.removeChild(t),this.set("scrollbarWidth",i),i+"px"},this.getElementsToAdjust=function(s){"string"==typeof(s=s||[])&&(s=[[s,"padding-right"]]),s.forEach(function(t,i){"string"==typeof t&&(s[i]=[t,"padding-right"])});for(var t=!1,i=0;i<s.length;i++)-1!==s[i][0].indexOf("body")&&(t=!0);return!1===t&&s.push(["body","padding-right"]),s},this.pageHasScrollbar=function(){return this.getScrollbarWidth()&&document.body.offsetHeight>window.innerHeight},this.pageHasScrollbar()){t=this.getElementsToAdjust(t);for(var i=0;i<t.length;i++)for(var s=document.querySelectorAll(t[i][0]),o=0;o<s.length;o++){if(s[o].getAttribute("data-unscroll"))return;var e=t[i][1],n=window.getComputedStyle(s[o]).getPropertyValue(e);s[o].setAttribute("data-unscroll",e),n=n||"0px";var a="padding-right"==e||"right"==e?"+":"-";s[o].style[e]="calc("+n+" "+a+" "+this.getScrollbarWidth()+")"}}!function(){if(!document.getElementById("unscroll-class-name")){var t=document.head||document.getElementsByTagName("head")[0],i=document.createElement("style");i.type="text/css",i.setAttribute("id","unscroll-class-name"),i.appendChild(document.createTextNode(".unscrollable { overflow: hidden !important; }")),t.appendChild(i)}}(),document.body.classList.add("unscrollable")}).reset=function(){for(var t=document.querySelectorAll("[data-unscroll]"),i=0;i<t.length;i++){var s=t[i].getAttribute("data-unscroll");t[i].style[s]=null,t[i].removeAttribute("data-unscroll")}document.body.classList.remove("unscrollable")},a.prototype.open=function(t){if(t=t||{},this.isDestroyed)return this;if(this.wrapper||this._create(),this._styles||(this._styles=O("<style/>").append(this._animationCSS).appendTo(O("head"))),this.timer&&clearTimeout(this.timer),this._blockBodyClick(),this.isDisabled)return this;this.options.closeOnEsc&&O(document).on("keyup.jBox-"+this.id,function(t){27==t.keyCode&&this.close({ignoreDelay:!0})}.bind(this)),!0!==this.options.closeOnClick&&"body"!==this.options.closeOnClick||(O("body").on("click.jBox-"+this.id,function(t){this.blockBodyClick||"body"==this.options.closeOnClick&&(t.target==this.wrapper[0]||this.wrapper.has(t.target).length)||this.close({ignoreDelay:!0})}.bind(this)),this.isTouchDevice&&O("body > *").on("click.jBox-"+this.id,function(){return!0}));var i=function(){!0===this.adjustZIndexOnOpen&&(a.zIndexMax=Math.max(parseInt(this.wrapper.css("zIndex"),10),this.options.zIndex,a.zIndexMax||0,a.zIndexMaxDragover||0)+2,this.wrapper.css("zIndex",a.zIndexMax),this.options.zIndex=a.zIndexMax),this.source&&this.options.getTitle&&this.source.attr(this.options.getTitle)&&this.setTitle(this.source.attr(this.options.getTitle),!0),this.source&&this.options.getContent&&(this.source.data("jBox-getContent")?this.setContent(this.source.data("jBox-getContent"),!0):this.source.attr(this.options.getContent)?this.setContent(this.source.attr(this.options.getContent),!0):"html"==this.options.getContent&&this.setContent(this.source.html(),!0)),this._fireEvent("onOpen"),(this.options.ajax&&(this.options.ajax.url||this.source&&this.source.attr(this.options.ajax.getURL))&&(!this.ajaxLoaded||this.options.ajax.reload)||t.ajax&&(t.ajax.url||t.ajax.data))&&("strict"==this.options.ajax.reload||!this.source||!this.source.data("jBox-ajax-data")||t.ajax&&(t.ajax.url||t.ajax.data)?this.ajax(t.ajax||null,!0):this.setContent(this.source.data("jBox-ajax-data"))),this.positionedOnOpen&&!this.options.repositionOnOpen||!this.position(t)||(this.positionedOnOpen=!0),this.isClosing&&this._abortAnimation(),this.isOpen||(this.isOpen=!0,this.options.autoClose&&(this.options.delayClose=this.options.autoClose)&&this.close(),this._attachEvents(),this.options.blockScroll&&(this.options.blockScrollAdjust?a.blockScrollScopes?a.blockScrollScopes++:(a.blockScrollScopes=1,this.unscroll(Array.isArray(this.options.blockScrollAdjust)||"string"==typeof this.options.blockScrollAdjust?this.options.blockScrollAdjust:null)):O("body").addClass("jBox-blockScroll-"+this.id)),this.options.overlay&&(this._showOverlay(),this.position()),this.options.animation&&!this.isClosing&&this._animate("open"),this.options.audio&&this.options.audio.open&&this.audio(this.options.audio.open,this.options.volume.open),this.options.fade?this.wrapper.stop().animate({opacity:1},{queue:!1,duration:this.options.fade,start:function(){this.isOpening=!0,this.wrapper.css({display:"block"})}.bind(this),always:function(){this.isOpening=!1,setTimeout(function(){this.positionOnFadeComplete&&this.position()&&(this.positionOnFadeComplete=!1)}.bind(this),10)}.bind(this)}):(this.wrapper.css({display:"block",opacity:1}),this.positionOnFadeComplete&&this.position()&&(this.positionOnFadeComplete=!1)))}.bind(this);return!this.options.delayOpen||this.isOpen||this.isClosing||t.ignoreDelay?i():this.timer=setTimeout(i,this.options.delayOpen),this},a.prototype.close=function(t){if(t=t||{},O("body").off("click.jBox-"+this.id),this.isTouchDevice&&O("body > *").off("click.jBox-"+this.id),this.isDestroyed||this.isClosing)return this;if(this.timer&&clearTimeout(this.timer),this._blockBodyClick(),this.isDisabled)return this;var i=function(){if(this._fireEvent("onClose"),this.options.cancelAjaxOnClose&&this.cancelAjax(),this.isOpen){this.isOpen=!1,this._detachEvents(),this.options.blockScroll&&(this.options.blockScrollAdjust?(a.blockScrollScopes=a.blockScrollScopes?--a.blockScrollScopes:0)||this.unscroll.reset():O("body").removeClass("jBox-blockScroll-"+this.id)),this.options.overlay&&this._hideOverlay(),this.options.animation&&!this.isOpening&&this._animate("close"),this.options.audio&&this.options.audio.close&&this.audio(this.options.audio.close,this.options.volume.close);var t=this.isTouchDevice&&"mouse"==this.options.target?0:this.options.fade;t?this.wrapper.stop().animate({opacity:0},{queue:!1,duration:t,start:function(){this.isClosing=!0}.bind(this),complete:function(){this.wrapper.css({display:"none"}),this._fireEvent("onCloseComplete")}.bind(this),always:function(){this.isClosing=!1}.bind(this)}):(this.wrapper.css({display:"none",opacity:0}),this._fireEvent("onCloseComplete"))}}.bind(this);if(t.ignoreDelay||this.isTouchDevice&&"mouse"==this.options.target)i();else if((this.options.delayOnHover||this.options.showCountdown)&&10<this.options.delayClose){var s=this,o=this.options.delayClose,e=Date.now();if(this.options.showCountdown&&!this.inner){var n=O('<div class="jBox-countdown" />');this.inner=O('<div class="jBox-countdown-inner" />'),n.prepend(this.inner),O("#"+this.id).append(n)}this.countdown=function(){var t=Date.now();s.isHovered||(o-=t-e),e=t,0<o?(s.options.showCountdown&&s.inner.css("width",100*o/s.options.delayClose+"%"),window.requestAnimationFrame(s.countdown)):i()},window.requestAnimationFrame(this.countdown)}else this.timer=setTimeout(i,Math.max(this.options.delayClose,10));return this},a.prototype.toggle=function(t){return this[this.isOpen?"close":"open"](t),this},a.prototype.disable=function(){return this.isDisabled=!0,this},a.prototype.enable=function(){return this.isDisabled=!1,this},a.prototype.hide=function(){return this.disable(),this.wrapper&&(this.cacheWrapperDisplay=this.wrapper.css("display"),this.wrapper.css({display:"none"})),this.overlay&&(this.cacheOverlayDisplay=this.overlay.css("display"),this.overlay.css({display:"none"})),this},a.prototype.show=function(){return this.enable(),this.wrapper&&this.cacheWrapperDisplay&&(this.wrapper.css({display:this.cacheWrapperDisplay}),this.cacheWrapperDisplay=null),this.overlay&&this.cacheOverlayDisplay&&(this.overlay.css({display:this.cacheOverlayDisplay}),this.cacheOverlayDisplay=null),this},a.prototype.ajax=function(s,i){s=s||{},O.each([["getData","data"],["getURL","url"]],function(t,i){this.options.ajax[i[0]]&&!s[i[1]]&&this.source&&null!=this.source.attr(this.options.ajax[i[0]])&&(s[i[1]]=this.source.attr(this.options.ajax[i[0]])||"")}.bind(this));var t=O.extend(!0,{},this.options.ajax);this.cancelAjax();var o=s.beforeSend||t.beforeSend||function(){},e=s.complete||t.complete||function(){},n=s.success||t.success||function(){},a=s.error||t.error||function(){},h=O.extend(!0,t,s);return h.beforeSend=function(t){h.loadingClass&&this.wrapper.addClass(!0===h.loadingClass?"jBox-loading":h.loadingClass),h.spinner&&(this.spinnerDelay=setTimeout(function(){this.wrapper.addClass("jBox-loading-spinner"),h.spinnerReposition&&(i?this.positionOnFadeComplete=!0:this.position()),this.spinner=O(!0!==h.spinner?h.spinner:'<div class="jBox-spinner"></div>').appendTo(this.container),this.titleContainer&&"absolute"==this.spinner.css("position")&&this.spinner.css({transform:"translateY("+.5*this.titleContainer.outerHeight()+"px)"})}.bind(this),""!=this.content.html()&&h.spinnerDelay||0)),o.bind(this)(t)}.bind(this),h.complete=function(t){this.spinnerDelay&&clearTimeout(this.spinnerDelay),this.wrapper.removeClass("jBox-loading jBox-loading-spinner jBox-loading-spinner-delay"),this.spinner&&this.spinner.length&&this.spinner.remove()&&h.spinnerReposition&&(i?this.positionOnFadeComplete=!0:this.position()),this.ajaxLoaded=!0,e.bind(this)(t)}.bind(this),h.success=function(t){h.setContent&&this.setContent(t,!0)&&(i?this.positionOnFadeComplete=!0:this.position()),h.setContent&&this.source&&this.source.data("jBox-ajax-data",t),n.bind(this)(t)}.bind(this),h.error=function(t){a.bind(this)(t)}.bind(this),this.ajaxRequest=O.ajax(h),this},a.prototype.cancelAjax=function(){this.ajaxRequest&&(this.ajaxRequest.abort(),this.ajaxLoaded=!1)},a.prototype.audio=function(t,i){if(!t)return this;if(a._audio||(a._audio={}),!a._audio[t]){var s=O("<audio/>");O("<source/>",{src:t+".mp3"}).appendTo(s),O("<source/>",{src:t+".ogg"}).appendTo(s),a._audio[t]=s[0]}a._audio[t].volume=Math.min((null!=i?i:100)/100,1);try{a._audio[t].pause(),a._audio[t].currentTime=0}catch(t){}return a._audio[t].play(),this},a._animationSpeeds={tada:1e3,tadaSmall:1e3,flash:500,shake:400,pulseUp:250,pulseDown:250,popIn:250,popOut:250,fadeIn:200,fadeOut:200,slideUp:400,slideRight:400,slideLeft:400,slideDown:400},a.prototype.animate=function(t,i){i=i||{},this.animationTimeout||(this.animationTimeout={}),i.element||(i.element=this.wrapper),i.element.data("jBox-animating-id")||i.element.data("jBox-animating-id",a._getUniqueElementID()),i.element.data("jBox-animating")&&(i.element.removeClass(i.element.data("jBox-animating")).data("jBox-animating",null),this.animationTimeout[i.element.data("jBox-animating-id")]&&clearTimeout(this.animationTimeout[i.element.data("jBox-animating-id")])),i.element.addClass("jBox-animated-"+t).data("jBox-animating","jBox-animated-"+t),this.animationTimeout[i.element.data("jBox-animating-id")]=setTimeout(function(){i.element.removeClass(i.element.data("jBox-animating")).data("jBox-animating",null),i.complete&&i.complete()},a._animationSpeeds[t])},a.prototype.swipeDetector=function(i,o){var e=0,n=0,a=0,h=0,r=0,t={swipeThreshold:70,useOnlyTouch:!1};function s(t){o.useOnlyTouch&&!t.originalEvent.touches||(t.originalEvent.touches&&(t=t.originalEvent.touches[0]),0===e&&(e=1,n=t.clientX,a=t.clientY))}function p(t){2===e&&(e=0,Math.abs(h)>Math.abs(r)&&Math.abs(h)>o.swipeThreshold?h<0?i.trigger($.Event("swipeLeft.sd")):i.trigger($.Event("swipeRight.sd")):Math.abs(r)>o.swipeThreshold&&(r<0?i.trigger($.Event("swipeUp.sd")):i.trigger($.Event("swipeDown.sd"))))}function l(t){if(1===e){t.originalEvent.touches&&(t=t.originalEvent.touches[0]);var i=t.clientX-n,s=t.clientY-a;(Math.abs(i)>o.swipeThreshold||Math.abs(s)>o.swipeThreshold)&&(e=2,h=i,r=s)}}return o=O.extend(t,o),i.on("mousedown touchstart",s),$("html").on("mouseup touchend",p),$("html").on("mousemove touchmove",l),i},a.prototype.destroy=function(){return this.detach(),this.isOpen&&this.close({ignoreDelay:!0}),this.wrapper&&this.wrapper.remove(),this.overlay&&this.overlay.remove(),this._styles&&this._styles.remove(),this.isDestroyed=!0,this},a._getUniqueID=(t=1,function(){return t++}),a._getUniqueElementID=(i=1,function(){return i++}),a._pluginOptions={},a.plugin=function(t,i){a._pluginOptions[t]=i},O.fn.jBox=function(t,i){return i=i||{},new a(t=t||{},O.extend(i,{attach:this}))},a}!function(i,s){"function"==typeof define&&define.amd?define(["jquery"],function(t){return i.jBox=s(t)}):"object"==typeof module&&module.exports?module.exports=i.jBox=s(require("jquery")):i.jBox=s(i.jQuery)}(this,function(t){var i=jBoxWrapper(t);try{"undefined"!=typeof jBoxConfirmWrapper&&jBoxConfirmWrapper&&jBoxConfirmWrapper(i,t)}catch(t){console.error(t)}try{"undefined"!=typeof jBoxImageWrapper&&jBoxImageWrapper&&jBoxImageWrapper(i,t)}catch(t){console.error(t)}try{"undefined"!=typeof jBoxNoticeWrapper&&jBoxNoticeWrapper&&jBoxNoticeWrapper(i,t)}catch(t){console.error(t)}return i});

Anon7 - 2022
AnonSec Team