jQuery(document).ready(function($){window.xooEl=window.xooEl||{};function objectifyForm($form){var form=$form instanceof jQuery?$form[0]:$form;var formData=new FormData(form);var result={};formData.forEach(function(value,name){if(value instanceof File)return;if(result.hasOwnProperty(name)){if(!Array.isArray(result[name])){result[name]=[result[name]]} result[name].push(value)}else{result[name]=value}});return result} function parse_notice(message,type){type=(typeof type!=='undefined')?type:'error';return xoo_el_localize.html.notice[type].replace('%s',message)} var classReferral={'xoo-el-login-tgr':'login','xoo-el-reg-tgr':'register',} function getReferral(className){return classReferral[className]?classReferral[className]:''} function getFormsTrigger($container){$container=$container||'';var isSingle=!1;if($container.length&&$container.find('.xoo-el-section[data-section="single"]').length){isSingle=!0} var formsTrigger={'xoo-el-sing-tgr':'single','xoo-el-login-tgr':isSingle?'single':'login','xoo-el-reg-tgr':isSingle?'single':'register','xoo-el-lostpw-tgr':'lostpw','xoo-el-resetpw-tgr':'resetpw','xoo-el-forcereg-tgr':'register','xoo-el-forcelogin-tgr':'login',} return formsTrigger} class Container{constructor($container){this.$container=$container;this.$tabs=$container.find('ul.xoo-el-tabs').length?$container.find('ul.xoo-el-tabs'):null;this.display=$container.hasClass('xoo-el-form-inline')?'inline':'popup';this.formRetries=0;if(this.$container.attr('data-active')){this.toggleForm(this.$container.attr('data-active'))} this.createFormsTriggerHTML();this.eventHandlers()} createFormsTriggerHTML(){var HTML='
';$.each(getFormsTrigger(this.$container),function(triggerClass,type){HTML+=''}) HTML+='
';this.$container.append(HTML)} eventHandlers(){this.$container.on('submit','.xoo-el-action-form',this.submitForm.bind(this));this.$container.on('click','.xoo-el-edit-em',this.emailFieldEditClick.bind(this));$(document.body).on('xoo_el_form_submitted',this.singleFormProcess.bind(this));this.formTriggerEvent()} emailFieldEditClick(e){this.toggleForm('single');this.$container.find('input[name="xoo-el-sing-user"]').val($(e.currentTarget).siblings('input').val()).focus().trigger('keyup')} formTriggerEvent(){var container=this,formsTrigger=getFormsTrigger(container.$container);$.each(formsTrigger,function(triggerClass,formType){$(container.$container).on('click','.'+triggerClass,function(e){e.preventDefault();e.stopImmediatePropagation();container.toggleForm(formType,getReferral(triggerClass))})})} toggleForm(formType,referral){referral=referral||'';this.$container.attr('data-active',formType);var $section=this.$container.find('.xoo-el-section[data-section="'+formType+'"]'),activeClass='xoo-el-active';if($section.length){var $sectionForm=$section.find('form');this.$container.find('.xoo-el-section').removeClass(activeClass);$section.addClass(activeClass);$section.find('.xoo-el-notice').html('').hide();$section.find('.xoo-el-action-form').show();if($sectionForm.length&&referral&&$sectionForm.find('input[name="_xoo_el_referral"]').length){$sectionForm.find('input[name="_xoo_el_referral"]').val(referral)}} if(this.$tabs){this.$tabs.find('li').removeClass(activeClass);if(this.$tabs.find('li[data-tab="'+formType+'"]').length){this.$tabs.find('li[data-tab="'+formType+'"]').addClass(activeClass)}} $(document.body).trigger('xoo_el_form_toggled',[formType,this,referral]);this.$container.triggerHandler('xoo_el_form_toggled',[formType,this,referral])} submitForm(e){e.preventDefault();var $form=$(e.currentTarget),$button=$form.find('button[type="submit"]'),$section=$form.parents('.xoo-el-section'),buttonTxt=$button.text(),$notice=$section.find('.xoo-el-notice'),formType=$section.attr('data-section'),container=this;$notice.html('');$button.html(xoo_el_localize.html.spinner).addClass('xoo-el-processing');var form_data=new FormData($form[0]);form_data.append('action','xoo_el_form_action');form_data.append('display',container.display);form_data.append('_ajax_nonce',xoo_el_localize.nonce);$.ajax({url:xoo_el_localize.adminurl,type:'POST',processData:!1,contentType:!1,cache:!1,enctype:'multipart/form-data',data:form_data,complete:function(xhr,status){$button.removeClass('xoo-el-processing').html(buttonTxt);if((status!=='success'||!xhr.responseJSON||xhr.responseJSON.error===undefined)){if(container.formRetries<2){$form.submit();container.formRetries++;return} if(xoo_el_localize.errorLog==='yes'){$notice.html(parse_notice("We could not process your request, please check console or try again later.",'error')).show()}else if(status!=='error'){location.reload()}}},success:function(response){container.formRetries=0;if(response.error===undefined){console.log(response);return} if(response.notice){$notice.html(response.notice).show();if(container.display==='inline'){$('html, body').animate({scrollTop:$notice.offset().top-100},500)}} if(response.error===0){if(response.redirect){setTimeout(function(){window.location=response.redirect},xoo_el_localize.redirectDelay)}else{$form.hide()} $form.trigger('reset');if(formType==='resetpw'&&xoo_el_localize.resetPwPattern==='link'){$form.add('.xoo-el-resetpw-hnotice').remove()}} $(document.body).trigger('xoo_el_form_submitted',[response,$form,container]);$form.triggerHandler('xoo_el_form_submitted',[response,$form,container])}}).fail(function(jqXHR,textStatus,errorThrown){if(container.formRetries<2)return;$('body, .xoo-el-popup-notice').addClass('xoo-el-popup-notice-active');var iframe=$('.xoo-el-notice-wrap iframe').get(0);iframe.contentWindow.document.open();iframe.contentWindow.document.write(jqXHR.responseText);iframe.contentWindow.document.close();var iframeDocument=iframe.contentWindow.document;var style=iframeDocument.createElement("style");style.textContent=$('.xoo-el-notice-iframestyle').text();iframeDocument.head.appendChild(style)})} singleFormProcess(e,response,$form,container){if(this!==container)return;if(response.field){var $field=this.$container.find(response.field);if($field.length){this.toggleForm($field.closest('.xoo-el-section').attr('data-section'));$field.closest('form').show();$field.val(response.fieldValue);$field.closest('.xoo-el-section').find('.xoo-el-notice').html(response.notice).show();var $fieldCont=$field.closest('.xoo-aff-group');if(!$fieldCont.find('.xoo-el-edit-em').length){$fieldCont.addClass('xoo-el-block-edit');$(xoo_el_localize.html.editField).insertAfter($field)}}}}} class Popup{constructor($popup){this.$popup=$popup;this.eventHandlers()} eventHandlers(){if(!xoo_el_localize.preventClosing){this.$popup.on('click','.xoo-el-close, .xoo-el-modal, .xoo-el-opac',this.closeOnClick.bind(this));$(document.body).on('xoo_el_popup_toggled.xooEscEvent',this.onPopupToggled.bind(this))} $(document.body).on('xoo_el_form_submitted',this.onFormSubmitSuccess.bind(this));this.$popup.on('click','.xoo-el-action-btn',this.setScrollBarOnSubmit.bind(this));$(window).on('hashchange load',this.openViaHash.bind(this));this.triggerPopupOnClick();if(xoo_el_localize.checkout&&xoo_el_localize.checkout.loginEnabled==='yes'){$('body').on('click','.wc-block-checkout__login-prompt, .wc-block-must-login-prompt',this.checkoutPageLinkClick.bind(this))}} onPopupToggled(e,type){if($('body').hasClass('xoo-el-popup-active')){$(document).on('keydown.xooEscClose',this.closeOnEscPress.bind(this))}else{$(document).off('keydown.xooEscClose')}} closeOnEscPress(e){if(event.key==="Escape"||event.keyCode===27){popup.toggle('hide')}} checkoutPageLinkClick(e){e.preventDefault();$(e.currentTarget).attr('data-redirect',xoo_el_localize.checkout.loginRedirect).addClass('xoo-el-login-tgr').trigger('click')} triggerPopupOnClick(){$.each(getFormsTrigger(this.$popup),function(triggerClass,formType){$(document.body).on('click','.'+triggerClass,function(e){if($(this).parents('.xoo-el-form-container').length)return!0;e.preventDefault();e.stopImmediatePropagation();popup.toggle('show');if($(this).attr('data-redirect')){popup.$popup.find('input[name="xoo_el_redirect"]').val($(this).attr('data-redirect'))} popup.$popup.find('.'+triggerClass).trigger('click');return!1})})} toggle(type){var $els=this.$popup.add('body'),activeClass='xoo-el-popup-active';if(type==='show'){$els.addClass(activeClass)}else if(type==='hide'){$els.removeClass(activeClass)}else{$els.toggleClass(activeClass)} $(document.body).trigger('xoo_el_popup_toggled',[type])} closeOnClick(e){var elClassList=e.target.classList;if(elClassList.contains('xoo-el-close')||elClassList.contains('xoo-el-modal')||elClassList.contains('xoo-el-opac')){this.toggle('hide')}} setScrollbarPosition(position){this.$popup.find('.xoo-el-srcont').animate({scrollTop:position||0},300);console.log(this.$popup.find('.xoo-el-srcont').scrollTop)} onFormSubmitSuccess(e,response,$form,container){this.setScrollbarPosition()} setScrollBarOnSubmit(e){var invalid_els=$(e.currentTarget).closest('form').find('input:invalid');if(invalid_els.length===0)return;this.setScrollbarPosition(invalid_els.filter(":first").closest('.xoo-aff-group').position().top)} openViaHash(){var hash=$(location).attr('hash');if(hash==='#login'||hash==='#register'){this.toggle('show');var uri=window.location.toString(),clean_uri=uri.substring(0,uri.indexOf("#"));window.history.replaceState({},document.title,clean_uri)} if(hash==='#login'){this.$popup.find('.xoo-el-login-tgr').trigger('click')}else if(hash==='#register'){this.$popup.find('.xoo-el-reg-tgr').trigger('click')}}} class Form{constructor($form){this.$form=$form} eventHandlers(){}} var popup=null;if($('.xoo-el-container').length){popup=new Popup($('.xoo-el-container'))} if(xoo_el_localize.isLoggedIn==="no"&&xoo_el_localize.autoOpenPopup==='yes'&&localStorage.getItem("xoo_el_popup_opened")!=="yes"){if(xoo_el_localize.autoOpenPopupOnce==="yes"){localStorage.setItem("xoo_el_popup_opened","yes")} setTimeout(function(){popup.toggle('show')},xoo_el_localize.aoDelay)} $('.xoo-el-form-container').each(function(key,el){new Container($(el))}) if($('form.xoo-el-form-resetpw').length&&xoo_el_localize.resetPwPattern==="link"){if($('.xoo-el-form-inline').length){$([document.documentElement,document.body]).animate({scrollTop:$(".xoo-el-form-inline").offset().top},500)}else{if(popup){popup.toggle('show')}}} if($('body.woocommerce-checkout').length&&$('.xoo-el-form-inline').length&&$('a.showlogin').length){var $inlineForm=$('.xoo-el-form-inline');$inlineForm.hide();$(document.body).on('click','a.showlogin',function(){$inlineForm.slideToggle();$inlineForm.find('.xoo-el-login-tgr').trigger('click')})} if(popup&&xoo_el_localize.loginClass&&$('.'+xoo_el_localize.loginClass).length){$('body:not(.logged-in) .'+xoo_el_localize.loginClass).on('click',function(e){e.preventDefault();e.stopImmediatePropagation();popup.toggle('show');popup.$popup.find('.xoo-el-login-tgr').trigger('click')})} if(popup&&xoo_el_localize.registerClass&&$('.'+xoo_el_localize.registerClass).length){$('body:not(.logged-in) .'+xoo_el_localize.registerClass).on('click',function(e){e.preventDefault();e.stopImmediatePropagation();popup.toggle('show');popup.$popup.find('.xoo-el-reg-tgr').trigger('click')})} $('.xoo-el-notice-close').on('click',function(){$('body, .xoo-el-popup-notice').removeClass('xoo-el-popup-notice-active')}) class CodeFormHandler{constructor($codeForm){const existing=CodeFormHandler.instances.get($codeForm[0]);if(existing)return existing;this.$codeForm=$codeForm;this.codeFormID=this.$codeForm.data('code');this.$parentForm=this.$codeForm.data('parentform')?$(this.$codeForm.siblings(this.$codeForm.data('parentform')).get(0)):$();this.CodePasted=!1;this.resendData={};this.$noticeCont=this.$codeForm.find('.xoo-el-code-notice');this.$submitBtn=this.$codeForm.find('.xoo-el-code-submit-btn');this.submitBtnTxt=this.$submitBtn.html();this.$inputs=this.$codeForm.find('.xoo-el-code-input');this.$resendLink=this.$codeForm.find('.xoo-el-code-resend-link');this.noticeTimout=this.resendTimer=!1;this.parentFormValues={} this.codesent=!1;this.$container=this.$codeForm.closest('.xoo-el-form-container');this.events();CodeFormHandler.instances.set($codeForm[0],this)} events(){this.$resendLink.on('click',{_thisObj:this},this.resendCode);this.$codeForm.find('.xoo-el-code-no-change').on('click',{_thisObj:this},this.changeParentInput);this.$codeForm.on('submit',{_thisObj:this},this.onSubmit);this.$inputs.on('paste',{_thisObj:this},this.onCodeInputPaste);this.$inputs.on('input',{_thisObj:this},this.onCodeInputChange);this.$inputs.on('keydown ',{_thisObj:this},this.beforeCodeInputChange);this.$container.on('xoo_el_form_toggled',this.onParentFormToggled.bind(this))} onParentFormToggled(e,formType,containerObj,referral){let _thisObj=this;if(_thisObj.codesent){_thisObj.$parentForm.hide();_thisObj.$codeForm.show()}} onCodeInputPaste(event){var _thisObj=event.data._thisObj,_this=$(this);_thisObj.CodePasted=!0;setTimeout(function(){var inputVal=_this.val().trim(),inputValLength=inputVal.length;_thisObj.$inputs.val('');for(var i=0;i1&&!_thisObj.CodePasted){$(this).trigger('paste');return} if(_thisObj.CodePasted||_thisObj.processing){return} _thisObj.processing=!0;var $nextInput=$(this).next('input.xoo-el-code-input'),$prevInput=$(this).prev('input.xoo-el-code-input');if(inputValLength&&$nextInput.length!==0){$nextInput.focus()} _thisObj.processing=!1} beforeCodeInputChange(event){var _thisObj=event.data._thisObj,inputVal=$(this).val(),inputValLength=inputVal.length;var $nextInput=$(this).next('input.xoo-el-code-input'),$prevInput=$(this).prev('input.xoo-el-code-input');if(inputVal.length&&event.keyCode!=8&&event.keyCode!==13){if($nextInput.length&&!$nextInput.val()){$nextInput.focus()}else{$(this).val('')}} if(!inputValLength&&event.keyCode==8&&$prevInput.length!==0){$prevInput.focus()}} onSubmit(event){event.preventDefault();var _thisObj=event.data._thisObj;if(!_thisObj.validateInputs()||!_thisObj.getCodeValue().length)return!1;_thisObj.$submitBtn.html(xoo_el_localize.html.spinner).addClass('xoo-el-processing');_thisObj.verifyCode()} changeParentInput(event){var _thisObj=event.data._thisObj;_thisObj.codesent=!1;_thisObj.$codeForm.hide();_thisObj.$parentForm.show();_thisObj.$inputs.val('')} resendCode(event){event.preventDefault();var _thisObj=event.data._thisObj;_thisObj.startResendTimer();var form_data={action:'xoo_el_resend_code','parentFormData':objectifyForm(_thisObj.$parentForm),} form_data=Object.assign({},form_data,_thisObj.resendData);_thisObj.$resendLink.addClass('xoo-el-processing');$.ajax({url:xoo_el_localize.adminurl,type:'POST',data:form_data,success:function(response){_thisObj.$resendLink.trigger('xoo_el_code_resent',[response,_thisObj]);_thisObj.$resendLink.removeClass('xoo-el-processing');if(response.notice){_thisObj.showNotice(response.notice)}},complete:function(){}})} validateInputs(){var passedValidation=!0;this.$inputs.each(function(index,input){var $input=$(input);if($input.val().trim()===''){$input.focus();passedValidation=!1;return!1}});return passedValidation} onSuccess(response){this.$codeForm.removeAttr('data-processing');this.codesent=!1;this.$codeForm.hide();this.$inputs.val('');if(this.$parentForm.length){if(response.notice){this.$parentForm.closest('.xoo-el-section').find('.xoo-el-notice').html(response.notice).show()} this.$parentForm.show()}} startResendTimer(){var _thisObj=this,$cont=this.$codeForm.find('.xoo-el-code-resend'),$resendLink=$cont.find('.xoo-el-code-resend-link'),$timer=$cont.find('.xoo-el-code-resend-timer'),resendTime=parseInt(xoo_el_localize.resend_wait);if(resendTime===0)return;$resendLink.addClass('xoo-el-disabled');clearInterval(this.resendTimer);this.resendTimer=setInterval(function(){$timer.html('('+resendTime+')');if(resendTime<=0){clearInterval(_thisObj.resendTimer);$resendLink.removeClass('xoo-el-disabled');$timer.html('')} resendTime--},1000)} showNotice(notice){var _thisObj=this;clearTimeout(this.noticeTimout);this.$noticeCont.html(notice).show();this.noticeTimout=setTimeout(function(){_thisObj.$noticeCont.hide()},4000)} onCodeSent(response){var _thisObj=this;if(response.error)return;_thisObj.codesent=!0;_thisObj.$codeForm.show();if(response.code_txt){_thisObj.$codeForm.find('.xoo-el-code-no-txt').html(response.code_txt)} setTimeout(function(){_thisObj.$inputs.first().trigger('click');_thisObj.$inputs.first().focus();_thisObj.$inputs.first().attr('autofocus',!0)},500) _thisObj.startResendTimer();_thisObj.parentFormValues=_thisObj.$parentForm.serialize();_thisObj.$codeForm.attr('data-processing','yes');_thisObj.$parentForm.hide()} verifyCode(data){var _thisObj=this;var form_data=$.extend({'code':_thisObj.getCodeValue(),'action':'xoo_el_code_form_submit','xoo_el_code_ajax':_thisObj.codeFormID,'parentFormData':objectifyForm(_thisObj.$parentForm),'_ajax_nonce':xoo_el_localize.nonce},data);$.ajax({url:xoo_el_localize.adminurl,type:'POST',data:form_data,success:function(response){_thisObj.$submitBtn.removeClass('xoo-el-processing').html(_thisObj.submitBtnTxt);if(response.notice){_thisObj.showNotice(response.notice)} if(response.error===0){_thisObj.onSuccess(response);_thisObj.$codeForm.trigger('xoo_el_on_code_success',[response])}}})} validateFormSubmit(){if(this.validateInputs()&&this.getCodeValue().length){this.$submitBtn.html(xoo_el_localize.html.spinner).addClass('xoo-el-processing');return!0}} getCodeValue(){var code='';this.$inputs.each(function(index,input){code+=$(input).val()});return code}} CodeFormHandler.instances=new WeakMap();$('.xoo-el-code-form').each(function(index,codeForm){new CodeFormHandler($(codeForm))});window.xooEl.CodeFormHandler=CodeFormHandler;if(xoo_el_localize.resetPwPattern==="code"){class lostPasswordFormHandler{constructor($form){this.$form=$form;this.$section=this.$form.closest('.xoo-el-section');this.$resetPwSection=this.$section.siblings('[data-section="resetpw"]');this.$resetPwForm=this.$resetPwSection.find('.xoo-el-form-resetpw');this.$container=this.$section.closest('.xoo-el-form-container');this.codeFormHandler=new CodeFormHandler($form.siblings('.xoo-el-code-form'));this.events()} events(){this.$form.on('xoo_el_form_submitted',this.onFormSubmit.bind(this));this.$resetPwForm.on('xoo_el_form_submitted',this.onResetPWFormSubmit.bind(this));this.codeFormHandler.$codeForm.on('xoo_el_on_code_success',this.onCodeVerificationSuccess.bind(this));this.$container.on('xoo_el_form_toggled',this.onLostPasswordFormToggle.bind(this))} onFormSubmit(e,response,$form,container){let _thisObj=this;_thisObj.codeFormHandler.onCodeSent(response);_thisObj.$resetPwSection.removeAttr('data-verified','yes')} onResetPWFormSubmit(e,response,$form,containerObj){let _thisObj=this;_thisObj.$resetPwSection.removeAttr('data-verified','yes');if(response.error){_thisObj.$section.find('.xoo-el-notice').html(response.notice).show();if(response.error_code==='code_reset'){containerObj.toggleForm('lostpw')}}else{containerObj.toggleForm('login');this.$container.find('.xoo-el-section[data-section="login"]').find('.xoo-el-notice').html(response.notice).show()}} onCodeVerificationSuccess(e,response){let _thisObj=this;_thisObj.$container.find('.xoo-el-resetpw-tgr').trigger('click');_thisObj.$resetPwSection.attr('data-verified','yes')} onLostPasswordFormToggle(e,formType,containerObj,referral){let _thisObj=this;if(formType!=='lostpw')return;if(_thisObj.$resetPwSection.attr('data-verified')==="yes"){containerObj.toggleForm('resetpw')}}} $('form.xoo-el-form-lostpw').each(function(index,el){new lostPasswordFormHandler($(el))})}}); !function(){var t={213:function(t,e){var n,i,o;i=[],n=function(){var t=Object.assign||window.jQuery&&jQuery.extend,e=8,n=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(t,e){return window.setTimeout((function(){t()}),25)};!function(){if("function"==typeof window.CustomEvent)return!1;function t(t,e){e=e||{bubbles:!1,cancelable:!1,detail:undefined};var n=document.createEvent("CustomEvent");return n.initCustomEvent(t,e.bubbles,e.cancelable,e.detail),n}t.prototype=window.Event.prototype,window.CustomEvent=t}();var i={textarea:!0,input:!0,select:!0,button:!0},o={move:"mousemove",cancel:"mouseup dragstart",end:"mouseup"},r={move:"touchmove",cancel:"touchend",end:"touchend"},s=/\s+/,a={bubbles:!0,cancelable:!0},u="function"==typeof Symbol?Symbol("events"):{};function l(t){return new CustomEvent(t,a)}function c(t){return t[u]||(t[u]={})}function h(t,e,n,i,o){e=e.split(s);var r,a=c(t),u=e.length;function l(t){n(t,i)}for(;u--;)(a[r=e[u]]||(a[r]=[])).push([n,l]),t.addEventListener(r,l)}function d(t,e,n,i){e=e.split(s);var o,r,a,u=c(t),l=e.length;if(u)for(;l--;)if(r=u[o=e[l]])for(a=r.length;a--;)r[a][0]===n&&(t.removeEventListener(o,r[a][1]),r.splice(a,1))}function f(e,n,i){var o=l(n);i&&t(o,i),e.dispatchEvent(o)}function p(t){var e=t,i=!1,o=!1;function r(t){i?(e(),n(r),o=!0,i=!1):o=!1}this.kick=function(t){i=!0,o||r()},this.end=function(t){var n=e;t&&(o?(e=i?function(){n(),t()}:t,i=!0):t())}}function m(){}function g(t){t.preventDefault()}function v(t){return!!i[t.target.tagName.toLowerCase()]}function y(t){return 1===t.which&&!t.ctrlKey&&!t.altKey}function _(t,e){var n,i;if(t.identifiedTouch)return t.identifiedTouch(e);for(n=-1,i=t.length;++n"),!e.no_overlay){i.append("
");var a=i.find(".twentytwenty-overlay");a.append("
"),a.append("
")}var u=i.find("img:first"),l=i.find("img:last");i.append("
");var c=i.find(".twentytwenty-handle");c.append(""),c.append(""),i.addClass("twentytwenty-container"),u.addClass("twentytwenty-before"),l.addClass("twentytwenty-after");var h=function(t){var e,n,r,s=(e=t,n=u.width(),r=u.height(),{w:n+"px",h:r+"px",cw:e*n+"px",ch:e*r+"px"});c.css("vertical"===o?"top":"left","vertical"===o?s.ch:s.cw),function(t){"vertical"===o?(u.css("clip","rect(0,"+t.w+","+t.ch+",0)"),l.css("clip","rect("+t.ch+","+t.w+","+t.h+",0)")):(u.css("clip","rect(0,"+t.cw+","+t.h+",0)"),l.css("clip","rect(0,"+t.w+","+t.h+","+t.cw+")")),i.css("height",t.h)}(s)},d=function(t,e){var n,i,r;return n="vertical"===o?(e-p)/g:(t-f)/m,i=0,r=1,Math.max(i,Math.min(r,n))};t(window).on("resize.twentytwenty",(function(t){h(n)}));var f=0,p=0,m=0,g=0,v=function(t){((t.distX>t.distY&&t.distX<-t.distY||t.distX-t.distY)&&"vertical"!==o||(t.distXt.distY&&t.distX>-t.distY)&&"vertical"===o)&&t.preventDefault(),i.addClass("active"),f=i.offset().left,p=i.offset().top,m=u.width(),g=u.height()},y=function(t){i.hasClass("active")&&(n=d(t.pageX,t.pageY),h(n))},_=function(){i.removeClass("active")},b=e.move_with_handle_only?c:i;b.on("movestart",v),b.on("move",y),b.on("moveend",_),e.move_slider_on_hover&&(i.on("mouseenter",v),i.on("mousemove",y),i.on("mouseleave",_)),c.on("touchmove",(function(t){t.preventDefault()})),i.find("img").on("mousedown",(function(t){t.preventDefault()})),e.click_to_move&&i.on("click",(function(t){f=i.offset().left,p=i.offset().top,m=u.width(),g=u.height(),n=d(t.pageX,t.pageY),h(n)})),t(window).trigger("resize.twentytwenty")}))}}(jQuery)},795:function(t,e,n){var i,o,r,s,a,u,l,c,h,d,f,p,m,g,v,y,_,b,w,E;function T(t){return T="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},T(t) /*! * Masonry PACKAGED v4.1.1 * Cascading grid layout library * http://masonry.desandro.com * MIT License * by David DeSandro */}E=window,b=[n(669)],w=function(t){return function(t,e){"use strict";function n(n,r,a){function u(t,e,i){var o,r="$()."+n+'("'+e+'")';return t.each((function(t,u){var l=a.data(u,n);if(l){var c=l[e];if(c&&"_"!=e.charAt(0)){var h=c.apply(l,i);o=void 0===o?h:o}else s(r+" is not a valid method")}else s(n+" not initialized. Cannot call methods, i.e. "+r)})),void 0!==o?o:t}function l(t,e){t.each((function(t,i){var o=a.data(i,n);o?(o.option(e),o._init()):(o=new r(i,e),a.data(i,n,o))}))}(a=a||e||t.jQuery)&&(r.prototype.option||(r.prototype.option=function(t){a.isPlainObject(t)&&(this.options=a.extend(!0,this.options,t))}),a.fn[n]=function(t){return"string"==typeof t?u(this,t,o.call(arguments,1)):(l(this,t),this)},i(a))}function i(t){!t||t&&t.bridget||(t.bridget=n)}var o=Array.prototype.slice,r=t.console,s=void 0===r?function(){}:function(t){r.error(t)};return i(e||t.jQuery),n}(E,t)}.apply(e,b),w===undefined||(t.exports=w),"undefined"!=typeof window&&window,o=function(){function t(){}var e=t.prototype;return e.on=function(t,e){if(t&&e){var n=this._events=this._events||{},i=n[t]=n[t]||[];return-1==i.indexOf(e)&&i.push(e),this}},e.once=function(t,e){if(t&&e){this.on(t,e);var n=this._onceEvents=this._onceEvents||{};return(n[t]=n[t]||{})[e]=!0,this}},e.off=function(t,e){var n=this._events&&this._events[t];if(n&&n.length){var i=n.indexOf(e);return-1!=i&&n.splice(i,1),this}},e.emitEvent=function(t,e){var n=this._events&&this._events[t];if(n&&n.length){var i=0,o=n[i];e=e||[];for(var r=this._onceEvents&&this._onceEvents[t];o;){var s=r&&r[o];s&&(this.off(t,o),delete r[o]),o.apply(this,e),o=n[i+=s?0:1]}return this}},t},"function"==typeof o?(r={id:"ev-emitter/ev-emitter",exports:{},loaded:!1},i=o.call(r.exports,n,r.exports,r),r.loaded=!0,i===undefined&&(i=r.exports)):i=o,function(t,e){"use strict";s=function(){return function(){function t(t){var e=parseFloat(t);return-1==t.indexOf("%")&&!isNaN(e)&&e}function e(){}function n(){for(var t={width:0,height:0,innerWidth:0,innerHeight:0,outerWidth:0,outerHeight:0},e=0;l>e;e++){t[u[e]]=0}return t}function i(t){var e=getComputedStyle(t);return e||a("Style returned "+e+". Are you running this code in a hidden iframe on Firefox? See http://bit.ly/getsizebug1"),e}function o(){if(!c){c=!0;var e=document.createElement("div");e.style.width="200px",e.style.padding="1px 2px 3px 4px",e.style.borderStyle="solid",e.style.borderWidth="1px 2px 3px 4px",e.style.boxSizing="border-box";var n=document.body||document.documentElement;n.appendChild(e);var o=i(e);r.isBoxSizeOuter=s=200==t(o.width),n.removeChild(e)}}function r(e){if(o(),"string"==typeof e&&(e=document.querySelector(e)),e&&"object"==T(e)&&e.nodeType){var r=i(e);if("none"==r.display)return n();var a={};a.width=e.offsetWidth,a.height=e.offsetHeight;for(var c=a.isBorderBox="border-box"==r.boxSizing,h=0;l>h;h++){var d=u[h],f=r[d],p=parseFloat(f);a[d]=isNaN(p)?0:p}var m=a.paddingLeft+a.paddingRight,g=a.paddingTop+a.paddingBottom,v=a.marginLeft+a.marginRight,y=a.marginTop+a.marginBottom,_=a.borderLeftWidth+a.borderRightWidth,b=a.borderTopWidth+a.borderBottomWidth,w=c&&s,E=t(r.width);!1!==E&&(a.width=E+(w?0:m+_));var C=t(r.height);return!1!==C&&(a.height=C+(w?0:g+b)),a.innerWidth=a.width-(m+_),a.innerHeight=a.height-(g+b),a.outerWidth=a.width+v,a.outerHeight=a.height+y,a}}var s,a="undefined"==typeof console?e:function(t){console.error(t)},u=["paddingLeft","paddingRight","paddingTop","paddingBottom","marginLeft","marginRight","marginTop","marginBottom","borderLeftWidth","borderRightWidth","borderTopWidth","borderBottomWidth"],l=u.length,c=!1;return r}()}.apply(a={},b=[]),s!==undefined||(s=a)}(window),function(t,e){"use strict";l=function(){var t=function(){var t=Element.prototype;if(t.matches)return"matches";if(t.matchesSelector)return"matchesSelector";for(var e=["webkit","moz","ms","o"],n=0;ns?"round":"floor"](r),this.cols=Math.max(r,1)},n.prototype.getContainerWidth=function(){var t=this._getOption("fitWidth")?this.element.parentNode:this.element,n=e(t);this.containerWidth=n&&n.innerWidth},n.prototype._getItemLayoutPosition=function(t){t.getSize();var e=t.size.outerWidth%this.columnWidth,n=Math[e&&1>e?"round":"ceil"](t.size.outerWidth/this.columnWidth);n=Math.min(n,this.cols);for(var i=this._getColGroup(n),o=Math.min.apply(Math,i),r=i.indexOf(o),s={x:this.columnWidth*r,y:o},a=o+t.size.outerHeight,u=this.cols+1-i.length,l=0;u>l;l++)this.colYs[r+l]=a;return s},n.prototype._getColGroup=function(t){if(2>t)return this.colYs;for(var e=[],n=this.cols+1-t,i=0;n>i;i++){var o=this.colYs.slice(i,i+t);e[i]=Math.max.apply(Math,o)}return e},n.prototype._manageStamp=function(t){var n=e(t),i=this._getElementOffset(t),o=this._getOption("originLeft")?i.left:i.right,r=o+n.outerWidth,s=Math.floor(o/this.columnWidth);s=Math.max(0,s);var a=Math.floor(r/this.columnWidth);a-=r%this.columnWidth?0:1,a=Math.min(this.cols-1,a);for(var u=(this._getOption("originTop")?i.top:i.bottom)+n.outerHeight,l=s;a>=l;l++)this.colYs[l]=Math.max(u,this.colYs[l])},n.prototype._getContainerSize=function(){this.maxY=Math.max.apply(Math,this.colYs);var t={height:this.maxY};return this._getOption("fitWidth")&&(t.width=this._getContainerFitWidth()),t},n.prototype._getContainerFitWidth=function(){for(var t=0,e=this.cols;--e&&0===this.colYs[e];)t++;return(this.cols-t)*this.columnWidth-this.gutter},n.prototype.needsResizeLayout=function(){var t=this.containerWidth;return this.getContainerWidth(),t!=this.containerWidth},n},(w="function"==typeof _?_.apply(e,b):_)===undefined||(t.exports=w)},827:function(){!function(t){"use strict";t((function(){var e;function n(e,n,i){t(document).on(e,n,i)}e=t(".elementskit-menu-container"),t(e).each((function(){var e=t(this);"yes"!=e.attr("ekit-dom-added")&&(0===e.parents(".elementor-widget-ekit-nav-menu").length&&e.parents(".ekit-wid-con").addClass("ekit_menu_responsive_tablet"),e.attr("ekit-dom-added","yes"))})),n("click",".elementskit-dropdown-has > a",(function(e){var n=t(this).parents(".elementskit-navbar-nav, .ekit-vertical-navbar-nav"),i=t(this).parents(".ekit-wid-con").data("responsive-breakpoint");if((!n.hasClass("submenu-click-on-icon")||t(e.target).hasClass("elementskit-submenu-indicator"))&&(!(t(document).width()>Number(i)&&n.hasClass("submenu-click-on-"))||t(e.target).hasClass("elementskit-submenu-indicator"))){e.preventDefault();var o=t(this).parent().find(">.elementskit-dropdown, >.elementskit-megamenu-panel");o.find(".elementskit-dropdown-open").removeClass("elementskit-dropdown-open"),o.hasClass("elementskit-dropdown-open")?o.removeClass("elementskit-dropdown-open"):o.addClass("elementskit-dropdown-open")}})),n("click",".elementskit-menu-toggler",(function(e){e.preventDefault();var n=t(this).parents(".elementskit-menu-container").parent();n.length<1&&(n=t(this).parent());var i=n.find(".elementskit-menu-offcanvas-elements");i.hasClass("active")?i.removeClass("active"):i.addClass("active")})),t(".elementskit-navbar-nav li a").on("click",(function(e){var n=t(this),i=n.get(0);if(i&&n.attr("href")){var o=i.href,r=o.includes("#"),s=n.closest(".elementskit-menu-container").hasClass("ekit-nav-menu-one-page-yes"),a=i.pathname===window.location.pathname;"elementskit-submenu-indicator"!==e.target.className&&r&&o.length>1&&s&&a&&n.closest(".ekit-wid-con").find(".elementskit-menu-close").trigger("click")}}))}))}(jQuery)},123:function(){ /** * @name Shuffle Letters * @author Martin Angelov * @version 1.0 * @url http://tutorialzine.com/2011/09/shuffle-letters-effect-jquery/ * @license MIT License */ !function(t){function e(t){var e="";"lowerLetter"==t?e="abcdefghijklmnopqrstuvwxyz0123456789":"upperLetter"==t?e="ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789":"symbol"==t&&(e=",.?/\\(^)![]{}*&^%$#'\"");var n=e.split("");return n[Math.floor(Math.random()*n.length)]}t.fn.shuffleLetters=function(n){var i=t.extend({step:8,fps:25,text:"",callback:function(){}},n);return this.each((function(){var n=t(this),o="";if(n.data("animated"))return!0;n.data("animated",!0),o=i.text?i.text.split(""):n.text().split("");for(var r=[],s=[],a=0;au)return n.data("animated",!1),void i.callback(n);for(a=Math.max(t,0);a0?n:null}catch(t){return null}},reflow:function(t){return t.offsetHeight},triggerTransitionEnd:function(n){t(n).trigger(e.end)},supportsTransitionEnd:function(){return Boolean(e)},isElement:function(t){return(t[0]||t).nodeType},typeCheckConfig:function(t,e,i){for(var o in i)if(Object.prototype.hasOwnProperty.call(i,o)){var r=i[o],s=e[o],a=s&&n.isElement(s)?"element":(u=s,{}.toString.call(u).match(/\s([a-zA-Z]+)/)[1].toLowerCase());if(!new RegExp(r).test(a))throw new Error(t.toUpperCase()+': Option "'+o+'" provided type "'+a+'" but expected type "'+r+'".')}var u}};return e=("undefined"==typeof window||!window.QUnit)&&{end:"transitionend"},t.fn.emulateTransitionEnd=function(e){var i=this,o=!1;return t(this).one(n.TRANSITION_END,(function(){o=!0})),setTimeout((function(){o||n.triggerTransitionEnd(i)}),e),this},n.supportsTransitionEnd()&&(t.event.special[n.TRANSITION_END]={bindType:e.end,delegateType:e.end,handle:function(e){if(t(e.target).is(this))return e.handleObj.handler.apply(this,arguments)}}),n}(e),u=function(t){var e="collapse",n="bs.collapse",i=t.fn[e],u={toggle:!0,parent:""},l={toggle:"boolean",parent:"(string|element)"},c="show.bs.collapse",h="shown.bs.collapse",d="hide.bs.collapse",f="hidden.bs.collapse",p="click.bs.collapse.data-api",m="show",g="collapse",v="collapsing",y="collapsed",_="width",b=".show, .collapsing",w='[data-ekit-toggle="collapse"]',E=function(){function i(e,n){this._isTransitioning=!1,this._element=e,this._config=this._getConfig(n),this._triggerArray=t.makeArray(t('[data-ekit-toggle="collapse"][href="#'+e.id+'"],[data-ekit-toggle="collapse"][data-target="#'+e.id+'"]'));for(var i=t(w),o=0;o0&&(this._selector=a,this._triggerArray.push(r))}this._parent=this._config.parent?this._getParent():null,this._config.parent||this._addAriaAndCollapsedClass(this._element,this._triggerArray),this._config.toggle&&this.toggle()}var p=i.prototype;return p.toggle=function(){t(this._element).hasClass(m)?this.hide():this.show()},p.show=function(){var e,o,r=this;if(!(this._isTransitioning||t(this._element).hasClass(m)||(this._parent&&0===(e=t.makeArray(t(this._parent).find(b).filter('[data-parent="'+this._config.parent+'"]'))).length&&(e=null),e&&(o=t(e).not(this._selector).data(n))&&o._isTransitioning))){var a=t.Event(c);if(t(this._element).trigger(a),!a.isDefaultPrevented()){e&&(i._jQueryInterface.call(t(e).not(this._selector),"hide"),o||t(e).data(n,null));var u=this._getDimension();t(this._element).removeClass(g).addClass(v),this._element.style[u]=0,this._triggerArray.length>0&&t(this._triggerArray).removeClass(y).attr("aria-expanded",!0),this.setTransitioning(!0);var l=function(){t(r._element).removeClass(v).addClass(g).addClass(m),r._element.style[u]="",r.setTransitioning(!1),t(r._element).trigger(h)};if(s.supportsTransitionEnd()){var d="scroll"+(u[0].toUpperCase()+u.slice(1));t(this._element).one(s.TRANSITION_END,l).emulateTransitionEnd(600),this._element.style[u]=this._element[d]+"px"}else l()}}},p.hide=function(){var e=this;if(!this._isTransitioning&&t(this._element).hasClass(m)){var n=t.Event(d);if(t(this._element).trigger(n),!n.isDefaultPrevented()){var i=this._getDimension();if(this._element.style[i]=this._element.getBoundingClientRect()[i]+"px",s.reflow(this._element),t(this._element).addClass(v).removeClass(g).removeClass(m),this._triggerArray.length>0)for(var o=0;o0&&t(n).toggleClass(y,!i).attr("aria-expanded",i)}},i._getTargetFromElement=function(e){var n=s.getSelectorFromElement(e);return n?t(n)[0]:null},i._jQueryInterface=function(e){return this.each((function(){var o=t(this),s=o.data(n),l=r({},u,o.data(),"object"==a(e)&&e);if(!s&&l.toggle&&/show|hide/.test(e)&&(l.toggle=!1),s||(s=new i(this,l),o.data(n,s)),"string"==typeof e){if(void 0===s[e])throw new TypeError('No method named "'+e+'"');s[e]()}}))},o(i,null,[{key:"VERSION",get:function(){return"4.0.0"}},{key:"Default",get:function(){return u}}]),i}();return t(document).on(p,w,(function(e){"A"===e.currentTarget.tagName&&e.preventDefault();var i=t(this),o=s.getSelectorFromElement(this);t(o).each((function(){var e=t(this),o=e.data(n)?"toggle":i.data();E._jQueryInterface.call(e,o)}))})),t.fn[e]=E._jQueryInterface,t.fn[e].Constructor=E,t.fn[e].noConflict=function(){return t.fn[e]=i,E._jQueryInterface},E}(e),l=function(t){var e=t.fn.tab,n="hide.bs.tab",i="hidden.bs.tab",r="show.bs.tab",a="shown.bs.tab",u="click.bs.tab.data-api",l="active",c="show",h=".active",d="> li > .active",f=function(){function e(t){this._element=t}var u=e.prototype;return u.show=function(){var e=this;if(!(this._element.parentNode&&this._element.parentNode.nodeType===Node.ELEMENT_NODE&&t(this._element).hasClass(l)||t(this._element).hasClass("disabled"))){var o,u,c=t(this._element).closest(".nav, .list-group")[0],f=s.getSelectorFromElement(this._element);if(c){var p="UL"===c.nodeName?d:h;u=(u=t.makeArray(t(c).find(p)))[u.length-1]}var m=t.Event(n,{relatedTarget:this._element}),g=t.Event(r,{relatedTarget:u});if(u&&t(u).trigger(m),t(this._element).trigger(g),!g.isDefaultPrevented()&&!m.isDefaultPrevented()){f&&(o=t(f)[0]),this._activate(this._element,c);var v=function(){var n=t.Event(i,{relatedTarget:e._element}),o=t.Event(a,{relatedTarget:u});t(u).trigger(n),t(e._element).trigger(o)};o?this._activate(o,o.parentNode,v):v()}}},u.dispose=function(){t.removeData(this._element,"bs.tab"),this._element=null},u._activate=function(e,n,i){var o=this,r=("UL"===n.nodeName?t(n).find(d):t(n).children(h))[0],a=i&&s.supportsTransitionEnd()&&r&&t(r).hasClass("fade"),u=function(){return o._transitionComplete(e,r,i)};r&&a?t(r).one(s.TRANSITION_END,u).emulateTransitionEnd(150):u()},u._transitionComplete=function(e,n,i){if(n){t(n).removeClass(c+" "+l);var o=t(n.parentNode).find("> .dropdown-menu .active")[0];o&&t(o).removeClass(l),"tab"===n.getAttribute("role")&&n.setAttribute("aria-selected",!1)}if(t(e).addClass(l),"tab"===e.getAttribute("role")&&e.setAttribute("aria-selected",!0),s.reflow(e),t(e).addClass(c),e.parentNode&&t(e.parentNode).hasClass("dropdown-menu")){var r=t(e).closest(".dropdown")[0];r&&t(r).find(".dropdown-toggle").addClass(l),e.setAttribute("aria-expanded",!0)}i&&i()},e._jQueryInterface=function(n){return this.each((function(){var i=t(this),o=i.data("bs.tab");if(o||(o=new e(this),i.data("bs.tab",o)),"string"==typeof n){if(void 0===o[n])throw new TypeError('No method named "'+n+'"');o[n]()}}))},o(e,null,[{key:"VERSION",get:function(){return"4.0.0"}}]),e}();return t(document).on(u,'[data-ekit-toggle="tab"], [data-ekit-toggle="pill"], [data-ekit-toggle="list"]',(function(e){e.preventDefault(),f._jQueryInterface.call(t(this),"show")})),t.fn.tab=f._jQueryInterface,t.fn.tab.Constructor=f,t.fn.tab.noConflict=function(){return t.fn.tab=e,f._jQueryInterface},f}(e);!function(t){if(void 0===t)throw new TypeError("Ekit Prefixed Bootstrap's JavaScript requires jQuery. jQuery must be included before Ekit Prefixed Bootstrap's JavaScript.");var e=t.fn.jquery.split(" ")[0].split(".");if(e[0]<2&&e[1]<9||1===e[0]&&9===e[1]&&e[2]<1||e[0]>=4)throw new Error("Ekit Prefixed UI's JavaScript requires at least jQuery v1.9.1 but less than v4.0.0")}(e),t.Util=s,t.Collapse=u,t.Tab=l,Object.defineProperty(t,"__esModule",{value:!0})},"object"==a(e)?s(e,n(669)):(o=[e,n(669)],(r="function"==typeof(i=s)?i.apply(e,o):i)===undefined||(t.exports=r))},669:function(t){"use strict";t.exports=jQuery}},e={};function n(i){var o=e[i];if(o!==undefined)return o.exports;var r=e[i]={exports:{}};return t[i].call(r.exports,r,r.exports,n),r.exports}n.n=function(t){var e=t&&t.__esModule?function(){return t["default"]}:function(){return t};return n.d(e,{a:e}),e},n.d=function(t,e){for(var i in e)n.o(e,i)&&!n.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:e[i]})},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},function(){"use strict";n(213),n(846),n(795),n(827),n(123),n(244)}()}(); /*! This file is auto-generated */ /*! * imagesLoaded PACKAGED v5.0.0 * JavaScript is all like "You images are done yet or what?" * MIT License */ !function(t,e){"object"==typeof module&&module.exports?module.exports=e():t.EvEmitter=e()}("undefined"!=typeof window?window:this,(function(){function t(){}let e=t.prototype;return e.on=function(t,e){if(!t||!e)return this;let i=this._events=this._events||{},s=i[t]=i[t]||[];return s.includes(e)||s.push(e),this},e.once=function(t,e){if(!t||!e)return this;this.on(t,e);let i=this._onceEvents=this._onceEvents||{};return(i[t]=i[t]||{})[e]=!0,this},e.off=function(t,e){let i=this._events&&this._events[t];if(!i||!i.length)return this;let s=i.indexOf(e);return-1!=s&&i.splice(s,1),this},e.emitEvent=function(t,e){let i=this._events&&this._events[t];if(!i||!i.length)return this;i=i.slice(0),e=e||[];let s=this._onceEvents&&this._onceEvents[t];for(let n of i){s&&s[n]&&(this.off(t,n),delete s[n]),n.apply(this,e)}return this},e.allOff=function(){return delete this._events,delete this._onceEvents,this},t})), /*! * imagesLoaded v5.0.0 * JavaScript is all like "You images are done yet or what?" * MIT License */ function(t,e){"object"==typeof module&&module.exports?module.exports=e(t,require("ev-emitter")):t.imagesLoaded=e(t,t.EvEmitter)}("undefined"!=typeof window?window:this,(function(t,e){let i=t.jQuery,s=t.console;function n(t,e,o){if(!(this instanceof n))return new n(t,e,o);let r=t;var h;("string"==typeof t&&(r=document.querySelectorAll(t)),r)?(this.elements=(h=r,Array.isArray(h)?h:"object"==typeof h&&"number"==typeof h.length?[...h]:[h]),this.options={},"function"==typeof e?o=e:Object.assign(this.options,e),o&&this.on("always",o),this.getImages(),i&&(this.jqDeferred=new i.Deferred),setTimeout(this.check.bind(this))):s.error(`Bad element for imagesLoaded ${r||t}`)}n.prototype=Object.create(e.prototype),n.prototype.getImages=function(){this.images=[],this.elements.forEach(this.addElementImages,this)};const o=[1,9,11];n.prototype.addElementImages=function(t){"IMG"===t.nodeName&&this.addImage(t),!0===this.options.background&&this.addElementBackgroundImages(t);let{nodeType:e}=t;if(!e||!o.includes(e))return;let i=t.querySelectorAll("img");for(let t of i)this.addImage(t);if("string"==typeof this.options.background){let e=t.querySelectorAll(this.options.background);for(let t of e)this.addElementBackgroundImages(t)}};const r=/url\((['"])?(.*?)\1\)/gi;function h(t){this.img=t}function d(t,e){this.url=t,this.element=e,this.img=new Image}return n.prototype.addElementBackgroundImages=function(t){let e=getComputedStyle(t);if(!e)return;let i=r.exec(e.backgroundImage);for(;null!==i;){let s=i&&i[2];s&&this.addBackground(s,t),i=r.exec(e.backgroundImage)}},n.prototype.addImage=function(t){let e=new h(t);this.images.push(e)},n.prototype.addBackground=function(t,e){let i=new d(t,e);this.images.push(i)},n.prototype.check=function(){if(this.progressedCount=0,this.hasAnyBroken=!1,!this.images.length)return void this.complete();let t=(t,e,i)=>{setTimeout((()=>{this.progress(t,e,i)}))};this.images.forEach((function(e){e.once("progress",t),e.check()}))},n.prototype.progress=function(t,e,i){this.progressedCount++,this.hasAnyBroken=this.hasAnyBroken||!t.isLoaded,this.emitEvent("progress",[this,t,e]),this.jqDeferred&&this.jqDeferred.notify&&this.jqDeferred.notify(this,t),this.progressedCount===this.images.length&&this.complete(),this.options.debug&&s&&s.log(`progress: ${i}`,t,e)},n.prototype.complete=function(){let t=this.hasAnyBroken?"fail":"done";if(this.isComplete=!0,this.emitEvent(t,[this]),this.emitEvent("always",[this]),this.jqDeferred){let t=this.hasAnyBroken?"reject":"resolve";this.jqDeferred[t](this)}},h.prototype=Object.create(e.prototype),h.prototype.check=function(){this.getIsImageComplete()?this.confirm(0!==this.img.naturalWidth,"naturalWidth"):(this.proxyImage=new Image,this.img.crossOrigin&&(this.proxyImage.crossOrigin=this.img.crossOrigin),this.proxyImage.addEventListener("load",this),this.proxyImage.addEventListener("error",this),this.img.addEventListener("load",this),this.img.addEventListener("error",this),this.proxyImage.src=this.img.currentSrc||this.img.src)},h.prototype.getIsImageComplete=function(){return this.img.complete&&this.img.naturalWidth},h.prototype.confirm=function(t,e){this.isLoaded=t;let{parentNode:i}=this.img,s="PICTURE"===i.nodeName?i:this.img;this.emitEvent("progress",[this,s,e])},h.prototype.handleEvent=function(t){let e="on"+t.type;this[e]&&this[e](t)},h.prototype.onload=function(){this.confirm(!0,"onload"),this.unbindEvents()},h.prototype.onerror=function(){this.confirm(!1,"onerror"),this.unbindEvents()},h.prototype.unbindEvents=function(){this.proxyImage.removeEventListener("load",this),this.proxyImage.removeEventListener("error",this),this.img.removeEventListener("load",this),this.img.removeEventListener("error",this)},d.prototype=Object.create(h.prototype),d.prototype.check=function(){this.img.addEventListener("load",this),this.img.addEventListener("error",this),this.img.src=this.url,this.getIsImageComplete()&&(this.confirm(0!==this.img.naturalWidth,"naturalWidth"),this.unbindEvents())},d.prototype.unbindEvents=function(){this.img.removeEventListener("load",this),this.img.removeEventListener("error",this)},d.prototype.confirm=function(t,e){this.isLoaded=t,this.emitEvent("progress",[this,this.element,e])},n.makeJQueryPlugin=function(e){(e=e||t.jQuery)&&(i=e,i.fn.imagesLoaded=function(t,e){return new n(this,t,e).jqDeferred.promise(i(this))})},n.makeJQueryPlugin(),n}));; /*! This file is auto-generated */ /*! * Masonry PACKAGED v4.2.2 * Cascading grid layout library * https://masonry.desandro.com * MIT License * by David DeSandro */ !function(t,e){"function"==typeof define&&define.amd?define("jquery-bridget/jquery-bridget",["jquery"],function(i){return e(t,i)}):"object"==typeof module&&module.exports?module.exports=e(t,require("jquery")):t.jQueryBridget=e(t,t.jQuery)}(window,function(t,e){"use strict";function i(i,r,a){function h(t,e,n){var o,r="$()."+i+'("'+e+'")';return t.each(function(t,h){var u=a.data(h,i);if(!u)return void s(i+" not initialized. Cannot call methods, i.e. "+r);var d=u[e];if(!d||"_"==e.charAt(0))return void s(r+" is not a valid method");var l=d.apply(u,n);o=void 0===o?l:o}),void 0!==o?o:t}function u(t,e){t.each(function(t,n){var o=a.data(n,i);o?(o.option(e),o._init()):(o=new r(n,e),a.data(n,i,o))})}a=a||e||t.jQuery,a&&(r.prototype.option||(r.prototype.option=function(t){a.isPlainObject(t)&&(this.options=a.extend(!0,this.options,t))}),a.fn[i]=function(t){if("string"==typeof t){var e=o.call(arguments,1);return h(this,t,e)}return u(this,t),this},n(a))}function n(t){!t||t&&t.bridget||(t.bridget=i)}var o=Array.prototype.slice,r=t.console,s="undefined"==typeof r?function(){}:function(t){r.error(t)};return n(e||t.jQuery),i}),function(t,e){"function"==typeof define&&define.amd?define("ev-emitter/ev-emitter",e):"object"==typeof module&&module.exports?module.exports=e():t.EvEmitter=e()}("undefined"!=typeof window?window:this,function(){function t(){}var e=t.prototype;return e.on=function(t,e){if(t&&e){var i=this._events=this._events||{},n=i[t]=i[t]||[];return-1==n.indexOf(e)&&n.push(e),this}},e.once=function(t,e){if(t&&e){this.on(t,e);var i=this._onceEvents=this._onceEvents||{},n=i[t]=i[t]||{};return n[e]=!0,this}},e.off=function(t,e){var i=this._events&&this._events[t];if(i&&i.length){var n=i.indexOf(e);return-1!=n&&i.splice(n,1),this}},e.emitEvent=function(t,e){var i=this._events&&this._events[t];if(i&&i.length){i=i.slice(0),e=e||[];for(var n=this._onceEvents&&this._onceEvents[t],o=0;oe;e++){var i=h[e];t[i]=0}return t}function n(t){var e=getComputedStyle(t);return e||a("Style returned "+e+". Are you running this code in a hidden iframe on Firefox? See https://bit.ly/getsizebug1"),e}function o(){if(!d){d=!0;var e=document.createElement("div");e.style.width="200px",e.style.padding="1px 2px 3px 4px",e.style.borderStyle="solid",e.style.borderWidth="1px 2px 3px 4px",e.style.boxSizing="border-box";var i=document.body||document.documentElement;i.appendChild(e);var o=n(e);s=200==Math.round(t(o.width)),r.isBoxSizeOuter=s,i.removeChild(e)}}function r(e){if(o(),"string"==typeof e&&(e=document.querySelector(e)),e&&"object"==typeof e&&e.nodeType){var r=n(e);if("none"==r.display)return i();var a={};a.width=e.offsetWidth,a.height=e.offsetHeight;for(var d=a.isBorderBox="border-box"==r.boxSizing,l=0;u>l;l++){var c=h[l],f=r[c],m=parseFloat(f);a[c]=isNaN(m)?0:m}var p=a.paddingLeft+a.paddingRight,g=a.paddingTop+a.paddingBottom,y=a.marginLeft+a.marginRight,v=a.marginTop+a.marginBottom,_=a.borderLeftWidth+a.borderRightWidth,z=a.borderTopWidth+a.borderBottomWidth,E=d&&s,b=t(r.width);b!==!1&&(a.width=b+(E?0:p+_));var x=t(r.height);return x!==!1&&(a.height=x+(E?0:g+z)),a.innerWidth=a.width-(p+_),a.innerHeight=a.height-(g+z),a.outerWidth=a.width+y,a.outerHeight=a.height+v,a}}var s,a="undefined"==typeof console?e:function(t){console.error(t)},h=["paddingLeft","paddingRight","paddingTop","paddingBottom","marginLeft","marginRight","marginTop","marginBottom","borderLeftWidth","borderRightWidth","borderTopWidth","borderBottomWidth"],u=h.length,d=!1;return r}),function(t,e){"use strict";"function"==typeof define&&define.amd?define("desandro-matches-selector/matches-selector",e):"object"==typeof module&&module.exports?module.exports=e():t.matchesSelector=e()}(window,function(){"use strict";var t=function(){var t=window.Element.prototype;if(t.matches)return"matches";if(t.matchesSelector)return"matchesSelector";for(var e=["webkit","moz","ms","o"],i=0;is?"round":"floor";r=Math[a](r),this.cols=Math.max(r,1)},n.getContainerWidth=function(){var t=this._getOption("fitWidth"),i=t?this.element.parentNode:this.element,n=e(i);this.containerWidth=n&&n.innerWidth},n._getItemLayoutPosition=function(t){t.getSize();var e=t.size.outerWidth%this.columnWidth,i=e&&1>e?"round":"ceil",n=Math[i](t.size.outerWidth/this.columnWidth);n=Math.min(n,this.cols);for(var o=this.options.horizontalOrder?"_getHorizontalColPosition":"_getTopColPosition",r=this[o](n,t),s={x:this.columnWidth*r.col,y:r.y},a=r.y+t.size.outerHeight,h=n+r.col,u=r.col;h>u;u++)this.colYs[u]=a;return s},n._getTopColPosition=function(t){var e=this._getTopColGroup(t),i=Math.min.apply(Math,e);return{col:e.indexOf(i),y:i}},n._getTopColGroup=function(t){if(2>t)return this.colYs;for(var e=[],i=this.cols+1-t,n=0;i>n;n++)e[n]=this._getColGroupY(n,t);return e},n._getColGroupY=function(t,e){if(2>e)return this.colYs[t];var i=this.colYs.slice(t,t+e);return Math.max.apply(Math,i)},n._getHorizontalColPosition=function(t,e){var i=this.horizontalColIndex%this.cols,n=t>1&&i+t>this.cols;i=n?0:i;var o=e.size.outerWidth&&e.size.outerHeight;return this.horizontalColIndex=o?i+t:this.horizontalColIndex,{col:i,y:this._getColGroupY(i,t)}},n._manageStamp=function(t){var i=e(t),n=this._getElementOffset(t),o=this._getOption("originLeft"),r=o?n.left:n.right,s=r+i.outerWidth,a=Math.floor(r/this.columnWidth);a=Math.max(0,a);var h=Math.floor(s/this.columnWidth);h-=s%this.columnWidth?0:1,h=Math.min(this.cols-1,h);for(var u=this._getOption("originTop"),d=(u?n.top:n.bottom)+i.outerHeight,l=a;h>=l;l++)this.colYs[l]=Math.max(d,this.colYs[l])},n._getContainerSize=function(){this.maxY=Math.max.apply(Math,this.colYs);var t={height:this.maxY};return this._getOption("fitWidth")&&(t.width=this._getContainerFitWidth()),t},n._getContainerFitWidth=function(){for(var t=0,e=this.cols;--e&&0===this.colYs[e];)t++;return(this.cols-t)*this.columnWidth-this.gutter},n.needsResizeLayout=function(){var t=this.containerWidth;return this.getContainerWidth(),t!=this.containerWidth},i});; !function(r){var o=this.SelectBox=function(e,t){if(e instanceof jQuery){if(!(0'),a=e.attr("multiple")||1 "),s=parseInt(a.find(".selectBox-options A:first").html(" ").outerHeight()),a.remove(),o.height(s*l))):(a=r(''),s=r(''),a.attr("class",this.getLabelClass()).text(this.getLabelText()),(t=this.getOptions("dropdown")).appendTo("BODY"),o.data("selectBox-options",t).addClass("selectBox-dropdown").append(a).append(s).bind("mousedown.selectBox",function(e){1===e.which&&(o.hasClass("selectBox-menuShowing")?i.hideMenus():(e.stopPropagation(),t.data("selectBox-down-at-x",e.screenX).data("selectBox-down-at-y",e.screenY),i.showMenu()))}).bind("keydown.selectBox",function(e){i.handleKeyDown(e)}).bind("keypress.selectBox",function(e){i.handleKeyPress(e)}).bind("open.selectBox",function(e,t){t&&!0===t._selectBox||i.showMenu()}).bind("close.selectBox",function(e,t){t&&!0===t._selectBox||i.hideMenus()}).insertAfter(e),l=o.width()-s.outerWidth()-parseInt(a.css("paddingLeft"))||0-parseInt(a.css("paddingRight"))||0,a.width(l)),this.disableSelection(o),e.addClass("selectBox").data("selectBox-control",o).data("selectBox-settings",n).hide()},o.prototype.getOptions=function(e){var t,s=r(this.selectElement),o=this,a=function(e,t){return e.children("OPTION, OPTGROUP").each(function(){var e;r(this).is("OPTION")?0 "):((e=r('
  • ')).text(r(this).attr("label")),t.append(e),t=a(r(this),t))}),t};switch(e){case"inline":return t=r('
      '),(t=a(s,t)).find("A").bind("mouseover.selectBox",function(e){o.addHover(r(this).parent())}).bind("mouseout.selectBox",function(e){o.removeHover(r(this).parent())}).bind("mousedown.selectBox",function(e){1!==e.which||(e.preventDefault(),s.selectBox("control").hasClass("selectBox-active"))||s.selectBox("control").focus()}).bind("mouseup.selectBox",function(e){1===e.which&&(o.hideMenus(),o.selectOption(r(this).parent(),e))}),this.disableSelection(t),t;case"dropdown":t=r('
        '),(t=a(s,t)).data("selectBox-select",s).css("display","none").appendTo("BODY").find("A").bind("mousedown.selectBox",function(e){1===e.which&&(e.preventDefault(),e.screenX===t.data("selectBox-down-at-x"))&&e.screenY===t.data("selectBox-down-at-y")&&(t.removeData("selectBox-down-at-x").removeData("selectBox-down-at-y"),o.hideMenus())}).bind("mouseup.selectBox",function(e){1!==e.which||e.screenX===t.data("selectBox-down-at-x")&&e.screenY===t.data("selectBox-down-at-y")||(t.removeData("selectBox-down-at-x").removeData("selectBox-down-at-y"),o.selectOption(r(this).parent()),o.hideMenus())}).bind("mouseover.selectBox",function(e){o.addHover(r(this).parent())}).bind("mouseout.selectBox",function(e){o.removeHover(r(this).parent())});var n=s.attr("class")||"";if(""!==n)for(var l in n=n.split(" "))t.addClass(n[l]+"-selectBox-dropdown-menu");return this.disableSelection(t),t}},o.prototype.getLabelClass=function(){return("selectBox-label "+(r(this.selectElement).find("OPTION:selected").attr("class")||"")).replace(/\s+$/,"")},o.prototype.getLabelText=function(){return r(this.selectElement).find("OPTION:selected").text()||" "},o.prototype.setLabel=function(){var e=r(this.selectElement).data("selectBox-control");e&&e.find(".selectBox-label").attr("class",this.getLabelClass()).text(this.getLabelText())},o.prototype.destroy=function(){var e=r(this.selectElement),t=e.data("selectBox-control");t&&(t.data("selectBox-options").remove(),t.remove(),e.removeClass("selectBox").removeData("selectBox-control").data("selectBox-control",null).removeData("selectBox-settings").data("selectBox-settings",null).show())},o.prototype.refresh=function(){var e=r(this.selectElement),t=e.data("selectBox-control"),s=t.hasClass("selectBox-dropdown"),t=t.hasClass("selectBox-menuShowing");e.selectBox("options",e.html()),s&&t&&this.showMenu()},o.prototype.showMenu=function(){var t=this,e=r(this.selectElement),s=e.data("selectBox-control"),o=e.data("selectBox-settings"),a=s.data("selectBox-options");if(s.hasClass("selectBox-disabled"))return!1;this.hideMenus();var n=parseInt(s.css("borderBottomWidth"))||0;if(a.width(s.innerWidth()).css({top:s.offset().top+s.outerHeight()-n,left:s.offset().left}),e.triggerHandler("beforeopen"))return!1;var l=function(){e.triggerHandler("open",{_selectBox:!0})};switch(o.menuTransition){case"fade":a.fadeIn(o.menuSpeed,l);break;case"slide":a.slideDown(o.menuSpeed,l);break;default:a.show(o.menuSpeed,l)}o.menuSpeed||l();n=a.find(".selectBox-selected:first");this.keepOptionInView(n,!0),this.addHover(n),s.addClass("selectBox-menuShowing"),r(document).bind("mousedown.selectBox",function(e){1!==e.which||r(e.target).parents().andSelf().hasClass("selectBox-options")||t.hideMenus()})},o.prototype.hideMenus=function(){0!==r(".selectBox-dropdown-menu:visible").length&&(r(document).unbind("mousedown.selectBox"),r(".selectBox-dropdown-menu").each(function(){var e=r(this),t=e.data("selectBox-select"),s=t.data("selectBox-control"),o=t.data("selectBox-settings");if(t.triggerHandler("beforeclose"))return!1;var a=function(){t.triggerHandler("close",{_selectBox:!0})};if(o){switch(o.menuTransition){case"fade":e.fadeOut(o.menuSpeed,a);break;case"slide":e.slideUp(o.menuSpeed,a);break;default:e.hide(o.menuSpeed,a)}o.menuSpeed||a(),s.removeClass("selectBox-menuShowing")}else r(this).hide(),r(this).triggerHandler("close",{_selectBox:!0}),r(this).removeClass("selectBox-menuShowing")}))},o.prototype.selectOption=function(e,t){var s,o=r(this.selectElement),a=(e=r(e),o.data("selectBox-control"));o.data("selectBox-settings");if(a.hasClass("selectBox-disabled"))return!1;if(0===e.length||e.hasClass("selectBox-disabled"))return!1;o.attr("multiple")?t.shiftKey&&a.data("selectBox-last-selected")?(e.toggleClass("selectBox-selected"),s=(s=e.index()>a.data("selectBox-last-selected").index()?e.siblings().slice(a.data("selectBox-last-selected").index(),e.index()):e.siblings().slice(e.index(),a.data("selectBox-last-selected").index())).not(".selectBox-optgroup, .selectBox-disabled"),e.hasClass("selectBox-selected")?s.addClass("selectBox-selected"):s.removeClass("selectBox-selected")):this.isMac&&t.metaKey||!this.isMac&&t.ctrlKey?e.toggleClass("selectBox-selected"):(e.siblings().removeClass("selectBox-selected"),e.addClass("selectBox-selected")):(e.siblings().removeClass("selectBox-selected"),e.addClass("selectBox-selected")),a.hasClass("selectBox-dropdown")&&a.find(".selectBox-label").text(e.text());var n=0,l=[];return o.attr("multiple")?a.find(".selectBox-selected A").each(function(){l[n++]=r(this).attr("rel")}):l=e.find("A").attr("rel"),a.data("selectBox-last-selected",e),o.val()!==l&&(o.val(l),this.setLabel(),o.trigger("change")),!0},o.prototype.addHover=function(e){e=r(e),r(this.selectElement).data("selectBox-control").data("selectBox-options").find(".selectBox-hover").removeClass("selectBox-hover"),e.addClass("selectBox-hover")},o.prototype.getSelectElement=function(){return this.selectElement},o.prototype.removeHover=function(e){e=r(e),r(this.selectElement).data("selectBox-control").data("selectBox-options").find(".selectBox-hover").removeClass("selectBox-hover")},o.prototype.keepOptionInView=function(e,t){var s,o,a;e&&0!==e.length&&(o=(s=r(this.selectElement).data("selectBox-control")).data("selectBox-options"),s=s.hasClass("selectBox-dropdown")?o:o.parent(),o=parseInt(e.offset().top-s.position().top),a=parseInt(o+e.outerHeight()),t?s.scrollTop(e.offset().top-s.offset().top+s.scrollTop()-s.height()/2):(o<0&&s.scrollTop(e.offset().top-s.offset().top+s.scrollTop()),a>s.height()&&s.scrollTop(e.offset().top+e.outerHeight()-s.offset().top+s.scrollTop()-s.height())))},o.prototype.handleKeyDown=function(e){var t=r(this.selectElement),s=t.data("selectBox-control"),o=s.data("selectBox-options"),a=t.data("selectBox-settings"),n=0,l=0;if(!s.hasClass("selectBox-disabled"))switch(e.keyCode){case 8:e.preventDefault(),this.typeSearch="";break;case 9:case 27:this.hideMenus(),this.removeHover();break;case 13:s.hasClass("selectBox-menuShowing")?(this.selectOption(o.find("LI.selectBox-hover:first"),e),s.hasClass("selectBox-dropdown")&&this.hideMenus()):this.showMenu();break;case 38:case 37:if(e.preventDefault(),s.hasClass("selectBox-menuShowing")){for(var i=o.find(".selectBox-hover").prev("LI"),n=o.find("LI:not(.selectBox-optgroup)").length,l=0;(0===i.length||i.hasClass("selectBox-disabled")||i.hasClass("selectBox-optgroup"))&&(0===(i=i.prev("LI")).length&&(i=a.loopOptions?o.find("LI:last"):o.find("LI:first")),!(++l>=n)););this.addHover(i),this.selectOption(i,e),this.keepOptionInView(i)}else this.showMenu();break;case 40:case 39:if(e.preventDefault(),s.hasClass("selectBox-menuShowing")){var c=o.find(".selectBox-hover").next("LI");for(n=o.find("LI:not(.selectBox-optgroup)").length,l=0;(0===c.length||c.hasClass("selectBox-disabled")||c.hasClass("selectBox-optgroup"))&&(0===(c=c.next("LI")).length&&(c=a.loopOptions?o.find("LI:first"):o.find("LI:last")),!(++l>=n)););this.addHover(c),this.selectOption(c,e),this.keepOptionInView(c)}else this.showMenu()}},o.prototype.handleKeyPress=function(e){var t=r(this.selectElement).data("selectBox-control"),s=t.data("selectBox-options");if(!t.hasClass("selectBox-disabled"))switch(e.keyCode){case 9:case 27:case 13:case 38:case 37:case 40:case 39:break;default:t.hasClass("selectBox-menuShowing")||this.showMenu(),e.preventDefault(),clearTimeout(this.typeTimer),this.typeSearch+=String.fromCharCode(e.charCode||e.keyCode),s.find("A").each(function(){if(r(this).text().substr(0,this.typeSearch.length).toLowerCase()===this.typeSearch.toLowerCase())return this.addHover(r(this).parent()),this.selectOption(r(this).parent(),e),this.keepOptionInView(r(this).parent()),!1}),this.typeTimer=setTimeout(function(){this.typeSearch=""},1e3)}},o.prototype.enable=function(){var e=r(this.selectElement),e=(e.prop("disabled",!1),e.data("selectBox-control"));e&&e.removeClass("selectBox-disabled")},o.prototype.disable=function(){var e=r(this.selectElement),e=(e.prop("disabled",!0),e.data("selectBox-control"));e&&e.addClass("selectBox-disabled")},o.prototype.setValue=function(t){var e,s=r(this.selectElement),o=(s.val(t),null===(t=s.val())&&(t=s.children().first().val(),s.val(t)),s.data("selectBox-control"));o&&(e=s.data("selectBox-settings"),o=o.data("selectBox-options"),this.setLabel(),o.find(".selectBox-selected").removeClass("selectBox-selected"),o.find("A").each(function(){if("object"==typeof t)for(var e=0;e');for(n in e[a])l.append('");s.append(l)}else{var i=r('");s.append(i)}}if(o)switch(o.data("selectBox-options").remove(),t=o.hasClass("selectBox-dropdown")?"dropdown":"inline",e=this.getOptions(t),o.data("selectBox-options",e),t){case"inline":o.append(e);break;case"dropdown":this.setLabel(),r("BODY").append(e)}},o.prototype.disableSelection=function(e){r(e).css("MozUserSelect","none").bind("selectstart",function(e){e.preventDefault()})},o.prototype.generateOptions=function(e,t){var s=r("
      • "),o=r("");s.addClass(e.attr("class")),s.data(e.data()),o.attr("rel",e.val()).text(e.text()),s.append(o),e.attr("disabled")&&s.addClass("selectBox-disabled"),e.attr("selected")&&s.addClass("selectBox-selected"),t.append(s)},r.extend(r.fn,{selectBox:function(s,e){var t;switch(s){case"control":return r(this).data("selectBox-control");case"settings":if(!e)return r(this).data("selectBox-settings");r(this).each(function(){r(this).data("selectBox-settings",r.extend(!0,r(this).data("selectBox-settings"),e))});break;case"options":if(undefined===e)return r(this).data("selectBox-control").data("selectBox-options");r(this).each(function(){(t=r(this).data("selectBox"))&&t.setOptions(e)});break;case"value":if(undefined===e)return r(this).val();r(this).each(function(){(t=r(this).data("selectBox"))&&t.setValue(e)});break;case"refresh":r(this).each(function(){(t=r(this).data("selectBox"))&&t.refresh()});break;case"enable":r(this).each(function(){(t=r(this).data("selectBox"))&&t.enable(this)});break;case"disable":r(this).each(function(){(t=r(this).data("selectBox"))&&t.disable()});break;case"destroy":r(this).each(function(){(t=r(this).data("selectBox"))&&(t.destroy(),r(this).data("selectBox",null))});break;case"instance":return r(this).data("selectBox");default:r(this).each(function(e,t){r(t).data("selectBox")||r(t).data("selectBox",new o(t,s))})}return r(this)}})}(jQuery);;