1!function($,_undefined){"use strict";const _window=window;const _document=document;const _navigator=_window.navigator;const _location=_window.location;const max=Math.max;const min=Math.min;const pow=Math.pow;if($.isPlainObject(_window.$ush)){return} 2_window.$ush={};$ush.TAB_KEYCODE=9;$ush.ENTER_KEYCODE=13;$ush.ESC_KEYCODE=27;$ush.SPACE_KEYCODE=32;$ush.UP_KEYCODE=38;$ush.DOWN_KEYCODE=40;const ua=_navigator.userAgent.toLowerCase();const base64Chars='ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=';const fromCharCode=String.fromCharCode;$ush.ua=ua;$ush.isMacOS=/(Mac|iPhone|iPod|iPad)/i.test(_navigator.platform);$ush.isFirefox=ua.includes('firefox');$ush.isSafari=/^((?!chrome|android).)*safari/i.test(ua);$ush.isTouchend=('ontouchend' in _document);$ush.safariVersion=function(){const self=this;if(self.isSafari){return self.parseInt((ua.match(/version\/([\d]+)/i)||[])[1])} 3return 0} 4$ush.fn=function(fn){if(typeof fn==='function'){fn()}};$ush.isUndefined=function(value){return(typeof value==='undefined'||value==='undefined')};$ush.isNumeric=function(value){const type=typeof value;return(type==="number"||type==="string")&&!isNaN(value-parseFloat(value))};$ush.isRtl=function(){return this.toString(_document.body.className).split(/\p{Zs}/u).includes('rtl')};$ush.isNode=function(node){return!!(node&&node.nodeType)};$ush.isNodeInViewport=function(node){const self=this;const rect=$ush.$rect(node);const nearestTop=rect.top-_window.innerHeight;return nearestTop<=0&&(rect.top+rect.height)>=0};$ush.uniqid=function(prefix){return(prefix||'')+Math.random().toString(36).substr(2,9)};$ush.utf8Decode=function(data){var tmp_arr=[],i=0,ac=0,c1=0,c2=0,c3=0;data+='';while(i<data.length){c1=data.charCodeAt(i);if(c1<128){tmp_arr[ac ++]=fromCharCode(c1);i ++}else if(c1>191&&c1<224){c2=data.charCodeAt(i+1);tmp_arr[ac ++]=fromCharCode(((c1&31)<<6)|(c2&63));i+=2}else{c2=data.charCodeAt(i+1);c3=data.charCodeAt(i+2);tmp_arr[ac ++]=fromCharCode(((c1&15)<<12)|((c2&63)<<6)|(c3&63));i+=3}} 5return tmp_arr.join('')};$ush.utf8Encode=function(data){if(data===null||this.isUndefined(data)){return''} 6var string=(''+data),utftext='',start,end,stringl=0;start=end=0;stringl=string.length;for(var n=0;n<stringl;n ++){var c1=string.charCodeAt(n);var enc=null;if(c1<128){end ++}else if(c1>127&&c1<2048){enc=fromCharCode((c1>>6)|192)+fromCharCode((c1&63)|128)}else{enc=fromCharCode((c1>>12)|224)+fromCharCode(((c1>>6)&63)|128)+fromCharCode((c1&63)|128)} 7if(enc!==null){if(end>start){utftext+=string.slice(start,end)} 8utftext+=enc;start=end=n+1}} 9if(end>start){utftext+=string.slice(start,stringl)} 10return utftext};$ush.base64Decode=function(data){var o1,o2,o3,h1,h2,h3,h4,bits,i=0,ac=0,dec='',tmp_arr=[],self=this;if(!data){return data} 11data+='';do{h1=base64Chars.indexOf(data.charAt(i ++));h2=base64Chars.indexOf(data.charAt(i ++));h3=base64Chars.indexOf(data.charAt(i ++));h4=base64Chars.indexOf(data.charAt(i ++));bits=h1<<18|h2<<12|h3<<6|h4;o1=bits>>16&0xff;o2=bits>>8&0xff;o3=bits&0xff;if(h3==64){tmp_arr[ac ++]=fromCharCode(o1)}else if(h4==64){tmp_arr[ac ++]=fromCharCode(o1,o2)}else{tmp_arr[ac ++]=fromCharCode(o1,o2,o3)}}while(i<data.length);return self.utf8Decode(tmp_arr.join(''))};$ush.base64Encode=function(data){var o1,o2,o3,h1,h2,h3,h4,bits,i=0,ac=0,enc='',tmp_arr=[],self=this;if(!data){return data} 12data=self.utf8Encode(''+data);do{o1=data.charCodeAt(i ++);o2=data.charCodeAt(i ++);o3=data.charCodeAt(i ++);bits=o1<<16|o2<<8|o3;h1=bits>>18&0x3f;h2=bits>>12&0x3f;h3=bits>>6&0x3f;h4=bits&0x3f;tmp_arr[ac ++]=base64Chars.charAt(h1)+base64Chars.charAt(h2)+base64Chars.charAt(h3)+base64Chars.charAt(h4)}while(i<data.length);enc=tmp_arr.join('');const r=data.length%3;return(r?enc.slice(0,r-3):enc)+'==='.slice(r||3)};$ush.stripTags=function(input){var output=$ush.toString(input),prev;do{prev=output;output=output.replace(/(<([^>]+)>)/ig,'')}while(output!==prev);return output.replace(/"/g,'"')};$ush.rawurldecode=function(str){return decodeURIComponent(this.toString(str))};$ush.rawurlencode=function(str){return encodeURIComponent(this.toString(str)).replace(/!/g,'%21').replace(/'/g,'%27').replace(/\(/g,'%28').replace(/\)/g,'%29').replace(/\*/g,'%2A')};$ush.timeout=function(fn,delay){const targetDelay=(typeof delay==='number'&&!isNaN(delay))?delay:$ush.parseFloat(delay);const start=Date.now();const handle={value:null};function loop(){if(Date.now()-start>=targetDelay){fn()}else{handle.value=_window.requestAnimationFrame(loop)}} 13handle.value=_window.requestAnimationFrame(loop);return handle};$ush.clearTimeout=function(handle){if(handle===null||handle===undefined){return} 14const id=typeof handle==='object'?handle.value:handle;if(typeof id==='number'){_window.cancelAnimationFrame(id)}};$ush.throttle=function(fn,wait,no_trailing,debounce_mode){if(typeof fn!=='function'){return $.noop||(()=>{})} 15const waitTime=typeof wait==='number'?wait:0;const useTrailing=no_trailing!==!0;const hasDebounceMode=debounce_mode!==undefined;var lastExec=0;var timeoutId=null;var storedContext=null;var storedArgs=null;const self=this;function exec(){lastExec=Date.now();timeoutId=null;const ctx=storedContext;const args=storedArgs;storedContext=null;storedArgs=null;fn.apply(ctx,args)} 16function clear(){timeoutId=null} 17return function throttled(){storedContext=this;storedArgs=arguments;const now=Date.now();const elapsed=now-lastExec;if(debounce_mode&&!timeoutId){exec()} 18if(timeoutId!==null){self.clearTimeout(timeoutId)} 19if(!hasDebounceMode&&elapsed>waitTime){exec()}else if(useTrailing){timeoutId=self.timeout(debounce_mode?clear:exec,!hasDebounceMode?(waitTime-elapsed):waitTime)}}};$ush.debounce=function(fn,wait,at_begin){return at_begin===undefined?this.throttle(fn,wait,undefined,
19!1):this.throttle(fn,wait,at_begin!==!1)};$ush.debounce_fn_1ms=$ush.debounce($ush.fn,1);$ush.debounce_fn_10ms=$ush.debounce($ush.fn,10);$ush.parseInt=function(value){value=parseInt(value,10);return!isNaN(value)?value:0};$ush.parseFloat=function(value){value=parseFloat(value);return!isNaN(value)?value:0};$ush.limitValueByRange=function(value,minValue,maxValue){return $ush.parseFloat(min(maxValue,max(minValue,value)))};$ush.toArray=function(data){if(['string','number','bigint','boolean','symbol','function'].includes(typeof data)){return[data]} 20try{data=[].slice.call(data||[])}catch(err){console.error(err);data=[]} 21return data};$ush.toString=function(value){const self=this;if(self.isUndefined(value)||value===null){return''}else if($.isPlainObject(value)||Array.isArray(value)){return self.rawurlencode(JSON.stringify(value))} 22return String(value)};$ush.toPlainObject=function(value){const self=this;try{value=JSON.parse(self.rawurldecode(value)||'{}')}catch(err){} 23if(!$.isPlainObject(value)){value={}} 24return value};$ush.toLowerCase=function(value){return $ush.toString(value).toLowerCase()};$ush.clone=function(_object,_default){return $.extend(!0,{},_default||{},_object||{})};$ush.escapePcre=function(value){return $ush.toString(value).replace(/[.*+?^${}()|\:[\]\\]/g,'\\$&')};$ush.removeSpaces=function(text){return $ush.toString(text).replace(/\p{Zs}/gu,'')};$ush.fromCharCode=function(text){return $ush.toString(text).replace(/&#(\d+);/g,(_,num)=>fromCharCode(num))};$ush.comparePlainObject=function(){const args=arguments;for(var i=1;i>-1;i--){if(!$.isPlainObject(args[i])){return!1}} 25return JSON.stringify(args[0])===JSON.stringify(args[1])};$ush.checksum=function(value){if(typeof value!=='string'){value=JSON.stringify(value)} 26if(value.length){return value.split('').reduce((acc,val)=>(acc=(acc<<5)-acc+val.charCodeAt(0))&acc)} 27return 0};$ush.$rect=function(node){return this.isNode(node)?node.getBoundingClientRect():{}};$ush.setCaretPosition=function(node,position){const self=this;if(!self.isNode(node)){return} 28if(self.isUndefined(position)){position=node.value.length} 29if(node.createTextRange){const range=node.createTextRange();range.move('character',position);range.select()}else{if(node.selectionStart){node.focus();node.setSelectionRange(position,position)}else{node.focus()}}};$ush.copyTextToClipboard=function(text){const self=this;try{const textarea=_document.createElement('textarea');textarea.value=self.toString(text);textarea.setAttribute('readonly','');textarea.setAttribute('css','position:absolute;top:-9999px;left:-9999px');_document.body.append(textarea);textarea.select();_document.execCommand('copy');if(_window.getSelection){_window.getSelection().removeAllRanges()}else if(_document.selection){_document.selection.empty()} 30textarea.remove();return!0}catch(err){return!1}};$ush.storage=function(namespace){if(namespace=$ush.toString(namespace)){namespace+='_'} 31const _localStorage=_window.localStorage;return{set:function(key,value){_localStorage.setItem(namespace+key,value)},get:function(key){return _localStorage.getItem(namespace+key)},remove:function(key){_localStorage.removeItem(namespace+key)}}};$ush.setCookie=function(name,value,expiry){const date=new Date() 32date.setTime(date.getTime()+(expiry*86400000));_document.cookie=name+'='+value+';expires='+date.toUTCString()+';path=/'};$ush.getCookie=function(name){name+='=' 33const decodedCookie=decodeURIComponent(_document.cookie);const cookies=decodedCookie.split(';');for(var i=0;i<cookies.length;i++){var cookie=cookies[i];while(cookie.charAt(0)==' '){cookie=cookie.substring(1)} 34if(cookie.indexOf(name)==0){return cookie.substring(name.length,cookie.length)}} 35return null};$ush.removeCookie=function(name){const self=this;if(self.getCookie(name)!==null){self.setCookie(name,1,-1)}};$ush.DIRECTION_TOP=0;$ush.DIRECTION_RIGHT=1;$ush.DIRECTION_BOTTOM=2;$ush.DIRECTION_LEFT=3;$ush.getCursorDirection=function(mouseEvent,target){const rect=target.getBoundingClientRect();const w=rect.width;const h=rect.height;const x=(mouseEvent.clientX-rect.left-(w/2))*(w>h?(h/w):1);const y=(mouseEvent.clientY-rect.top-(h/2))*(h>w?(w/h):1);return Math.round(Math.atan2(y,x)/(Math.PI/2)+5)%4};$ush.download=function(data,fileName,type){const fileBlob=new Blob([String(data)],{type:type});if(_navigator.msSaveOrOpenBlob){_navigator.msSaveOrOpenBlob(fileBlob,fileName)}else{const url=_window.URL.createObjectURL(fileBlob);const anchorElement=_document.createElement('a');anchorElement.href=url;anchorElement.download=fileName;_document.body.appendChild(anchorElement);anchorElement.click();$ush.timeout(()=>{_document.body.removeChild(anchorElement);_window.URL.revokeObjectURL(url)})}};$ush.time=function(){return new Date().getTime()};$ush.mixinEvents={on:function(eventType,handler,one){const self=this;var registry=self.$$events;if(registry===undefined){registry=self.$$events={}} 36var list=registry[eventType];
36if(list===undefined){list=registry[eventType]=[]} 37list.push({handler:handler,one:one===!0});return self},one:function(eventType,handler){return this.on(eventType,handler,!0)},off:function(eventType,handler){const self=this;const registry=self.$$events;if(registry===undefined){return self} 38const list=registry[eventType];if(list===undefined||list.length===0){return self} 39if(handler!==undefined){var i=list.length;while(i--){if(list[i].handler===handler){list.splice(i,1)}}}else{registry[eventType]=[]} 40return self},trigger:function(eventType,extraParams){const self=this;const registry=self.$$events;if(registry===undefined){return self} 41let list=registry[eventType];if(list===undefined||list.length===0){return self} 42var params;const argsLength=arguments.length;if(argsLength>2){params=new Array(argsLength-1);for(var k=1;k<argsLength;k++){params[k-1]=arguments[k]}}else{params=Array.isArray(extraParams)?extraParams:(extraParams!==undefined?[extraParams]:[])} 43var i=0;while(i<list.length){const event=list[i];event.handler.apply(event.handler,params);if(event.one){self.off(eventType,event.handler);list=registry[eventType]||[]}else{i++}} 44return self}};$ush.urlManager=function(url){const $window=$(_window);const events=$ush.clone($ush.mixinEvents);var _url=new URL($ush.isUndefined(url)?_location.href:url),lastUrl=_url.toString();if($ush.isUndefined(url)){function refresh(){_url=new URL(lastUrl=_location.href)} 45$window.on('pushstate',refresh).on('popstate',(e)=>{refresh();events.trigger('popstate',e.originalEvent)})} 46return $.extend(events,{isChanged:function(){return this.toString()!==_location.href},has:function(key,value){if(typeof key==='string'){const hasKey=_url.searchParams.has(key);if(!value){return hasKey} 47return hasKey&&_url.searchParams.get(key)===value} 48return!1},set:function(key,value){const setParam=(key,value)=>{if($ush.isUndefined(value)||value===null){_url.searchParams.delete(key)}else{_url.searchParams.set(key,$ush.toString(value))}};if($.isPlainObject(key)){for(const k in key){setParam(k,key[k])}}else{setParam(key,value)} 49return this},get:function(){const args=$ush.toArray(arguments);const result={};for(const key of args){if(this.has(key)){result[key]=_url.searchParams.get(key)}else{result[key]=_undefined}} 50if(args.length===1){return Object.values(result)[0]} 51return result},remove:function(){const self=this;const args=$ush.toArray(arguments);for(const key of args)if(self.has(key)){_url.searchParams.delete(key)} 52return self},toString:function(){return _url.toString()},toJson:function(toString){var result={};_url.searchParams.forEach((_,key,searchParams)=>{var values=searchParams.getAll(key);if(values.length<2){values=values[0]} 53result[key]=$ush.isUndefined(values)?'':values});if(toString){result=JSON.stringify(result);if(result==='{}'){result=''}} 54return result},ignoreParams:[],getChangedParams:function(){const self=this;const data={setParams:{},oldParams:{}};if(!self.isChanged()){return data} 55const ignoreParams=$ush.toArray(self.ignoreParams);(new URL(lastUrl)).searchParams.forEach((value,key)=>{if(!ignoreParams.includes(key)&&!self.has(key,value)){data.oldParams[key]=value}});_url.searchParams.forEach((value,key)=>{if(!ignoreParams.includes(key)||(!$ush.isUndefined(data.oldParams[key])&&data.oldParams[key]!==value)){data.setParams[key]=value}});return $ush.clone(data)},push:function(state,urldecode){const self=this;if(!self.isChanged()){return} 56if(!$.isPlainObject(state)){state={}} 57history.pushState($.extend(state,self.getChangedParams()),'',lastUrl=self.toString());$window.trigger('pushstate');return self}})}}(jQuery);var _document=document,_navigator=navigator,_undefined=undefined,_window=window;!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})),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;
57function 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}));jQuery.easing.jswing=jQuery.easing.swing;var pow=Math.pow;jQuery.extend(jQuery.easing,{def:"easeOutExpo",easeInExpo:function(a){return 0===a?0:pow(2,10*a-10)},easeOutExpo:function(a){return 1===a?1:1-pow(2,-10*a)},easeInOutExpo:function(a){return 0===a?0:1===a?1:.5>a?pow(2,20*a-10)/2:(2-pow(2,-20*a+10))/2}});_window.$us=_window.$us||{};_window.$ush=_window.$ush||{};$us.iOS=(/^iPad|iPhone|iPod/.test(_navigator.platform)||(_navigator.userAgent.indexOf('Mac')>-1&&_navigator.maxTouchPoints>1&&$ush.isTouchend));$us.mobileNavOpened=0;$us.header={};['getCurrentHeight','getHeaderInitialPos','getHeight','getScrollDirection','getScrollTop','isFixed','isHidden','isHorizontal','isStatic','isSticky','isStickyAutoHidden','stickyAutoHideEnabled','stickyEnabled','isTransparent','isVertical','on'].map((name)=>{$us.header[name]=jQuery.noop});jQuery.fn.usMod=function(mod,value){const self=this;if(self.length==0)return self;if(value===_undefined){const pcre=new RegExp('^.*?'+mod+'_([\dA-Za-z_-]+).*?$');return(pcre.exec(self.get(0).className)||[])[1]||!1} 58self.each((_,item)=>{item.className=item.className.replace(new RegExp('(^| )'+mod+'_[\dA-Za-z_-]+( |$)'),'$2');if(value!==!1){item.className+=' '+mod+'_'+value}});return self};$us.getAnimationName=function(animationName,defaultAnimationName){if(jQuery.easing.hasOwnProperty(animationName)){return animationName} 59return defaultAnimationName?defaultAnimationName:jQuery.easing._default};$us.mixins={};$us.mixins.Events={on:function(eventType,handler){const self=this;if(self.$$events===_undefined){self.$$events={}} 60if(self.$$events[eventType]===_undefined){self.$$events[eventType]=[]} 61self.$$events[eventType].push(handler);return self},off:function(eventType,handler){const self=this;if(self.$$events===_undefined||self.$$events[eventType]===_undefined){return self} 62if(handler!==_undefined){var handlerPos=jQuery.inArray(handler,self.$$events[eventType]);if(handlerPos!=-1){self.$$events[eventType].splice(handlerPos,1)}}else{self.$$events[eventType]=[]} 63return self},trigger:function(eventType,extraParameters){const self=this;if(self.$$events===_undefined||self.$$events[eventType]===_undefined||self.$$events[eventType].length==0){return self} 64var args=arguments,params=(args.length>2||!Array.isArray(extraParameters))?Array.prototype.slice.call(args,1):extraParameters;params.unshift(self);for(var index=0;
64index<self.$$events[eventType].length;index ++){self.$$events[eventType][index].apply(self.$$events[eventType][index],params)} 65return self}};jQuery.isMobile=(/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(_navigator.userAgent)||(_navigator.platform=='MacIntel'&&_navigator.maxTouchPoints>1));!function($){$us.$window=$(_window);$us.$document=$(_document);$us.$html=$('html');$us.$body=$('.l-body:first');$us.$htmlBody=$us.$html.add($us.$body);$us.$canvas=$('.l-canvas:first');$us.usbPreview=()=>{return _document.body.className.includes('usb_preview')};if($us.iOS){$us.$html.removeClass('no-touch').addClass('ios-touch')}else if($.isMobile||$ush.isTouchend){$us.$html.removeClass('no-touch').addClass('touch')}else{}}(jQuery);!function($){$us.getCurrentState=()=>{return $ush.toString($us.$body.usMod('state'))};$us.currentStateIs=(state)=>{if(!state){return!1} 66if(!Array.isArray(state)){state=[$ush.toString(state)]} 67return state.includes($us.getCurrentState())};$us.getAdminBarHeight=()=>{return(_document.getElementById('wpadminbar')||{}).offsetHeight||0}}(jQuery);!function($){"use strict";function USCanvas(options){const self=this;const defaults={disableEffectsWidth:900,backToTopDisplay:100};self.options=$.extend({},defaults,options||{});self.setGlobalState();self.$header=$('.l-header',$us.$canvas);self.$main=$('.l-main',$us.$canvas);self.$sections=$('> *:not(.l-header) .l-section',$us.$canvas);self.$firstSection=self.$sections.first();self.$secondSection=self.$sections.eq(1);self.$stickySections=self.$sections.filter('.type_sticky:visible');self.$fullscreenSections=self.$sections.filter('.full_height');self.$topLink=$('.w-toplink');self.type=$us.$canvas.usMod('type');self._headerPos=self.$header.usMod('pos');self.headerPos=self._headerPos;self.headerBg=self.$header.usMod('bg');self.rtl=$us.$body.hasClass('rtl');self.isScrolling=!1;self.isAndroid=/Android/i.test(_navigator.userAgent);self._events={scroll:self.scroll.bind(self),resize:self.resize.bind(self),toggleClassIsSticky:self.toggleClassIsSticky.bind(self),} 68if($us.$body.hasClass('us_iframe')){$('a:not([target])').each((_,node)=>$(node).attr('target','_parent'));$(()=>$('.l-popup-box',_window.parent.document).removeClass('loading'))} 69if(self.hasStickyFirstSection()){$us.$body.addClass('sticky_first_section')} 70$us.$window.on('scroll.noPreventDefault',self._events.scroll).on('resize load',self._events.resize).on('scroll.noPreventDefault resize load',self._events.toggleClassIsSticky);$ush.timeout(self._events.resize,25);$ush.timeout(self._events.resize,75)} 71USCanvas.prototype={setGlobalState:function(){const self=this;self.winHeight=$ush.parseInt($us.$window.height());self.winWidth=$ush.parseInt($us.$window.width());$us.$body.toggleClass('disable_effects',(self.winWidth<self.options.disableEffectsWidth));var state;if(self.winWidth>self.options.laptopsBreakpoint){state='default'}else if(self.winWidth>self.options.tabletsBreakpoint){state='laptops'}else if(self.winWidth>self.options.mobilesBreakpoint){state='tablets'}else{state='mobiles'} 72$us.$body.usMod('state',state)},getOffsetTop:function(){var top=Math.ceil($us.$canvas.offset().top);if($us.currentStateIs('mobiles')){top-=$us.getAdminBarHeight()} 73return top},isStickySection:function(){return this.$stickySections.length>0},hasStickySection:function(){const self=this;if(self.isStickySection()){return self.$stickySections.hasClass('is_sticky')} 74return!1},hasPositionStickySections:function(){const self=this;if(self.isStickySection()){return self.$stickySections.filter((_,node)=>{return $(node).css('position')=='sticky'}).length>0} 75return!1},getStickySectionHeight:function(){const self=this;var stickySectionHeight=0;if(self.isStickySection()){var header=$us.header,$stickySection=self.$stickySections.first();stickySectionHeight=$stickySection.outerHeight(!0);if(self.hasStickyFirstSection()&&header.isHorizontal()&&!header.isStatic()){stickySectionHeight-=header.getCurrentHeight()}} 76return stickySectionHeight},hasStickyFirstSection:function(){const self=this;const $first=self.$stickySections.first();return self.isStickySection()&&$first.index()===0&&$first.hasClass('is_sticky')},isAfterStickySection:function(node){var $node=$(node);if($node.length==0){return!1} 77if(!$node.hasClass('l-section')){$node=$node.closest('.l-section')} 78return $node.index()>this.$stickySections.index()},getHeightFirstSection:function(){return this.$firstSection.length>0?parseFloat(this.$firstSection.outerHeight(!0)):0},scroll:function(){const self=this;const scrollTop=parseInt($us.$window.scrollTop());self.$topLink.toggleClass('visible',(scrollTop>=self.winHeight*self.options.backToTopDisplay/100));if(self.isAndroid){if(self.pid){$ush.clearTimeout(self.pid)} 79self.isScrolling=!0;self.pid=$ush.timeout(()=>{self.isScrolling=!1},100)}},resize:function(){const self=this;self.setGlobalState();if($us.$body.hasClass('us_iframe')){var $frameContent=$('.l-popup-box-content',_window.parent.document),outerHeight=$us.$body.outerHeight(!0);if(outerHeight>0&&$(_window.parent).height()>outerHeight){$frameContent.css('height',outerHeight)}else{$frameContent.css('height','')}} 80self.scroll()},toggleClassIsSticky:function(){const self=this;if(!self.isStickySection()){return} 81self.$stickySections.each((_,section)=>{const $section=$(section);const offsetTop=section.getBoundingClientRect().top-parseInt($section.css('top'));$section.toggleClass('is_sticky',(parseInt(offsetTop)===0&&$section.css('position')=='sticky'))})}};$us.canvas=new USCanvas($us.canvasOptions||{})}(jQuery);!function($){$.fn.resetInlineCSS=function(){const self=this;var args=[].slice.call(arguments);if(args.length>0&&Array.isArray(args[0])){args=args[0]} 82for(var index=0;
82index<args.length;index++){self.css(args[index],'')} 83return self};$.fn.clearPreviousTransitions=function(){const self=this;const prevTimers=(self.data('animation-timers')||'').split(',');if(prevTimers.length>=2){self.resetInlineCSS('transition');prevTimers.map(clearTimeout);self.removeData('animation-timers')} 84return self};$.fn.performCSSTransition=function(css,duration,onFinish,easing,delay){const self=this;var transition=[];duration=duration||250;delay=delay||25;easing=easing||'ease';self.clearPreviousTransitions();for(const attr in css){if(!css.hasOwnProperty(attr)){continue} 85transition.push(attr+' '+(duration/1000)+'s '+easing)} 86transition=transition.join(', ');self.css({transition:transition});const timer1=setTimeout(()=>self.css(css),delay);const timer2=setTimeout(()=>{self.resetInlineCSS('transition');if(typeof onFinish==='function'){onFinish()}},duration+delay);self.data('animation-timers',timer1+','+timer2)};$.fn.slideDownCSS=function(duration,onFinish,easing,delay){const self=this;if(self.length==0){return} 87self.clearPreviousTransitions();self.resetInlineCSS('padding-top','padding-bottom');const timer1=setTimeout(()=>{const paddingTop=parseInt(self.css('padding-top'));const paddingBottom=parseInt(self.css('padding-bottom'));self.css({visibility:'hidden',position:'absolute',height:'auto','padding-top':0,'padding-bottom':0,display:'block'});var height=self.height();self.css({overflow:'hidden',height:'0px',opacity:0,visibility:'',position:''});self.performCSSTransition({opacity:1,height:height+paddingTop+paddingBottom,'padding-top':paddingTop,'padding-bottom':paddingBottom},duration,()=>{self.resetInlineCSS('overflow').css('height','auto');if(typeof onFinish=='function'){onFinish()}},easing,delay)},25);self.data('animation-timers',timer1+',null')};$.fn.slideUpCSS=function(duration,onFinish,easing,delay){const self=this;if(self.length==0){return} 88self.clearPreviousTransitions();self.css({height:self.outerHeight(),overflow:'hidden','padding-top':self.css('padding-top'),'padding-bottom':self.css('padding-bottom')});self.performCSSTransition({height:0,opacity:0,'padding-top':0,'padding-bottom':0},duration,()=>{self.resetInlineCSS('overflow','padding-top','padding-bottom').css({display:'none'});if(typeof onFinish=='function'){onFinish()}},easing,delay)};$.fn.fadeInCSS=function(duration,onFinish,easing,delay){const self=this;if(self.length==0){return} 89self.clearPreviousTransitions();self.css({opacity:0,display:'block'});self.performCSSTransition({opacity:1},duration,onFinish,easing,delay)};$.fn.fadeOutCSS=function(duration,onFinish,easing,delay){const self=this;if(self.length==0){return} 90self.performCSSTransition({opacity:0},duration,()=>{self.css('display','none');if(typeof onFinish==='function'){onFinish()}},easing,delay)}}(jQuery);jQuery(function($){"use strict";if(_document.cookie.indexOf('us_cookie_notice_accepted=true')!==-1){$('.l-cookie').remove()}else{$us.$document.on('click','#us-set-cookie',(e)=>{e.preventDefault();e.stopPropagation();const d=new Date();d.setFullYear(d.getFullYear()+1);_document.cookie=`us_cookie_notice_accepted=true; expires=${d.toUTCString()}; path=/;`;if(location.protocol==='https:'){_document.cookie+=' secure;'} 91$('.l-cookie').remove()})} 92if($us.darkThemeIsOn&&window.matchMedia('(prefers-color-scheme: dark)').matches&&!$ush.getCookie('us_color_scheme_switch_is_on')){$ush.setCookie('us_color_scheme_switch_is_on','true',30);$('.w-color-switch input[name=us-color-scheme-switch]').prop('checked',!0);$us.$html.addClass('us-color-scheme-on')} 93$us.$document.on('change','[name=us-color-scheme-switch]',()=>{if($ush.getCookie('us_color_scheme_switch_is_on')==='true'){$us.$html.removeClass('us-color-scheme-on');$us.$html.addClass('us-color-scheme-off');$ush.setCookie('us_color_scheme_switch_is_on','false',30)}else{$us.$html.addClass('us-color-scheme-on');$us.$html.removeClass('us-color-scheme-off');$ush.setCookie('us_color_scheme_switch_is_on','true',30)} 94if($us.header.$container.length){$us.header.$container.addClass('notransition');$ush.timeout(()=>$us.header.$container.removeClass('notransition'),50)}});function usPopupLink(context,opts){const $links=$('a[ref=magnificPopup][class!=direct-link]:not(.inited)',context||_document);const defaultOptions={fixedContentPos:!0,mainClass:'mfp-fade',removalDelay:300,type:'image'};if($links.length>0){$links.addClass('inited').magnificPopup($.extend({},defaultOptions,opts||{}))}};$.fn.usPopupLink=function(opts){return this.each(function(){$(this).data('usPopupLink',new usPopupLink(this,opts))})};$(()=>$us.$document.usPopupLink());if($.magnificPopup){$.magnificPopup.defaults.callbacks=$.extend({},$.magnificPopup.defaults.callbacks,{afterChange:function(){const item=this.currItem;if(item&&item.img&&item.el&&item.el.is('[data-alt]')){item.img.attr('alt',item.el.attr('data-alt'))}},open:function(){const self=this;
94self.wrap.attr({'role':'dialog','aria-modal':'true','aria-label':$us.langOptions.magnificPopup.tDialog});$us.$body.children().each((_,node)=>{const $node=$(node);if($node.is(self.wrap)||$node.is(self.bgOverlay)||$node.is('script, style, link')||$node.attr('aria-hidden')){return} 95$node.attr({'aria-hidden':'true','data-mfp-hidden':''})})},afterClose:function(){$('[data-mfp-hidden]').removeAttr('aria-hidden data-mfp-hidden')}})}(function(){const $footer=$('.l-footer');if($us.$body.hasClass('footer_reveal')&&$footer.length>0&&$footer.html().trim().length>0){function usFooterReveal(){var footerHeight=$footer.innerHeight();if(_window.innerWidth>parseInt($us.canvasOptions.columnsStackingWidth)-1){$us.$canvas.css('margin-bottom',Math.round(footerHeight)-1)}else{$us.$canvas.css('margin-bottom','')}};usFooterReveal();$us.$window.on('resize load',usFooterReveal)}})();const $usYTVimeoVideoContainer=$('.with_youtube, .with_vimeo');if($usYTVimeoVideoContainer.length>0){$us.$window.on('resize load',()=>{$usYTVimeoVideoContainer.each(function(){var $container=$(this),$frame=$container.find('iframe').first(),cHeight=$container.innerHeight(),cWidth=$container.innerWidth(),fWidth='',fHeight='';if(cWidth/cHeight<16/9){fWidth=cHeight*(16/9);fHeight=cHeight}else{fWidth=cWidth;fHeight=fWidth*(9/16)} 96$frame.css({'width':Math.round(fWidth),'height':Math.round(fHeight),})})})}});(function($){"use strict";function USWaypoints(){const self=this;self.waypoints=[];$us.$canvas.on('contentChange',self._countAll.bind(self));$us.$window.on('resize load',self._events.resize.bind(self)).on('scroll scroll.waypoints',self._events.scroll.bind(self));$ush.timeout(self._events.resize.bind(self),75);$ush.timeout(self._events.scroll.bind(self),75)} 97USWaypoints.prototype={_events:{scroll:function(){const self=this;var scrollTop=parseInt($us.$window.scrollTop());scrollTop=(scrollTop>=0)?scrollTop:0;for(var i=0;i<self.waypoints.length;i ++){if(self.waypoints[i].scrollPos<scrollTop){self.waypoints[i].fn(self.waypoints[i].$node);self.waypoints.splice(i,1);i --}}},resize:function(){const self=this;$ush.timeout(()=>{self._countAll.call(self);self._events.scroll.call(self)},150);self._countAll.call(self);self._events.scroll.call(self)}},add:function($node,offset,fn){const self=this;$node=($node instanceof $)?$node:$($node);if($node.length==0){return} 98if(typeof offset!='string'||offset.indexOf('%')==-1){offset=parseInt(offset)} 99if($node.offset().top<($us.$window.height()+$us.$window.scrollTop())){offset=0} 100var waypoint={$node:$node,offset:offset,fn:fn};self._count(waypoint);self.waypoints.push(waypoint)},_count:function(waypoint){const elmTop=waypoint.$node.offset().top,winHeight=$us.$window.height();if(typeof waypoint.offset=='number'){waypoint.scrollPos=elmTop-winHeight+waypoint.offset}else{waypoint.scrollPos=elmTop-winHeight+winHeight*parseInt(waypoint.offset)/100}},_countAll:function(){const self=this;for(var i=0;i<self.waypoints.length;i ++){self._count(self.waypoints[i])}}};$us.waypoints=new USWaypoints})(jQuery);(function(){var lastTime=0;const vendors=['ms','moz','webkit','o'];for(var x=0;x<vendors.length&&!_window.requestAnimationFrame;++ x){_window.requestAnimationFrame=_window[vendors[x]+'RequestAnimationFrame'];_window.cancelAnimationFrame=_window[vendors[x]+'CancelAnimationFrame']||_window[vendors[x]+'CancelRequestAnimationFrame']} 101if(!_window.requestAnimationFrame){_window.requestAnimationFrame=(callback,element)=>{const currTime=new Date().getTime();const timeToCall=Math.max(0,16-(currTime-lastTime));const id=_window.setTimeout(()=>callback(currTime+timeToCall),timeToCall);lastTime=currTime+timeToCall;return id}} 102if(!_window.cancelAnimationFrame){_window.cancelAnimationFrame=(id)=>clearTimeout(id)}}());!function($){if($us.$body.hasClass('single-format-video')){$('figure.wp-block-embed div.wp-block-embed__wrapper',$us.$body).each((_,node)=>{if(node.firstElementChild===null){node.remove()}})}}(jQuery);!function($){"use strict";function usCollapsibleContent(container){const self=this;self._events={showContent:self.showContent.bind(self),};self.$container=$(container);self.$firstElement=$('> *:first',self.$container);self.collapsedHeight=self.$container.data('content-height')||200;self.$container.on('click','.collapsible-content-more, .collapsible-content-less',self._events.showContent);if(self.$container.closest('.owl-carousel').length==0){self.setHeight.call(self)}};usCollapsibleContent.prototype={setHeight:function(){const self=this;let collapsedHeight=self.$firstElement.css('height',self.collapsedHeight).height();self.$firstElement.css('height','');let heightFirstElement=self.$firstElement.height();if(heightFirstElement&&heightFirstElement<=collapsedHeight){$('.toggle-links',self.$container).hide();self.$firstElement.css('height','');self.$container.removeClass('with_collapsible_content')}else{$('.toggle-links',self.$container).show();self.$firstElement.css('height',self.collapsedHeight)}},showContent:function(e){const self=this;e.preventDefault();e.stopPropagation();self.$container.toggleClass('show_content',$(e.target).hasClass('collapsible-content-more')).trigger('showContent');$ush.timeout(()=>{$us.$canvas.trigger('contentChange');if($.isMobile&&!$ush.isNodeInViewport(self.$container[0])){$us.$htmlBody.stop(!0,!1).scrollTop(self.$container.offset().top-$us.header.getCurrentHeight(!0))}},1)}};$.fn.usCollapsibleContent=function(){return this.each(function(){$(this).data('usCollapsibleContent',new usCollapsibleContent(this))})};$('[data-content-height]',$us.$canvas).usCollapsibleContent();$us.$document.on('usPostList.itemsLoaded usGrid.itemsLoaded',(_,$items)=>{$('[data-content-height]',$items).usCollapsibleContent()});if($('.owl-carousel',$us.$canvas).length>0){$us.$canvas.on('click','.collapsible-content-more, .collapsible-content-less',(e)=>{const $target=$(e.target);const $container=$target.closest('[data-content-height]');
102if(!$container.data('usCollapsibleContent')){$container.usCollapsibleContent();$target.trigger('click')}})}}(jQuery);!function($){$us.$document.on('usPopup.afterShow',(_,usPopup)=>{if(usPopup instanceof $us.usPopup&&$('video.wp-video-shortcode',usPopup.$box).length>0){const handle=$ush.timeout(()=>{$ush.clearTimeout(handle);_window.dispatchEvent(new Event('resize'))},1)}})}(jQuery);!function($){"use strict";$us.scrollbarWidth=function(force){const self=this;if($ush.isUndefined(self.width)||force){const scrollDiv=_document.createElement('div');scrollDiv.style.cssText='width: 99px; height: 99px; overflow: scroll; position: absolute; top: -9999px;';_document.body.appendChild(scrollDiv);self.width=scrollDiv.offsetWidth-scrollDiv.clientWidth;_document.body.removeChild(scrollDiv)} 103return self.width};if($.magnificPopup){const origMfpOpen=$.magnificPopup.proto.open;const origMfpClose=$.magnificPopup.proto._close;$.magnificPopup.proto.open=function(){const result=origMfpOpen.apply(this,arguments);$us.$html.css('margin-right','');$us.$document.trigger('usMagnificPopupOpened',this);return result};$.magnificPopup.proto._close=function(){const result=origMfpClose.apply(this,arguments);$us.$document.trigger('usMagnificPopupClosed',this);return result};function animateItemChange(mfp,fromRight){if(!mfp.wrap){return} 104const wrap=mfp.wrap[0];wrap.classList.remove('us_mfp_from_left','us_mfp_from_right');if(wrap.offsetWidth){wrap.classList.add(fromRight?'us_mfp_from_right':'us_mfp_from_left')}} 105const origMfpNext=$.magnificPopup.proto.next;const origMfpPrev=$.magnificPopup.proto.prev;$.magnificPopup.proto.next=function(){const result=origMfpNext.apply(this,arguments);animateItemChange(this,!$ush.isRtl());return result};$.magnificPopup.proto.prev=function(){const result=origMfpPrev.apply(this,arguments);animateItemChange(this,$ush.isRtl());return result};const SWIPE_MIN_DISTANCE=50;const SWIPE_MAX_DURATION=700;const SWIPE_AXIS_RATIO=1.5;let swipe;$us.$document.on('touchstart.usMfpSwipe','.mfp-wrap',(e)=>{const touches=e.originalEvent.touches;swipe=_undefined;if(touches.length!=1){return} 106if($(e.target).closest('.mfp-arrow, .mfp-close').length){return} 107swipe={startX:touches[0].clientX,startY:touches[0].clientY,startTime:Date.now(),}}).on('touchcancel.usMfpSwipe','.mfp-wrap',()=>{swipe=_undefined}).on('touchend.usMfpSwipe','.mfp-wrap',(e)=>{if(!swipe){return} 108const touch=e.originalEvent.changedTouches[0];const mfp=$.magnificPopup.instance;const deltaX=touch.clientX-swipe.startX;const deltaY=touch.clientY-swipe.startY;const isExpired=(Date.now()-swipe.startTime)>SWIPE_MAX_DURATION;swipe=_undefined;if(isExpired||!mfp||!mfp.isOpen){return} 109if(Math.abs(deltaX)>=SWIPE_MIN_DISTANCE&&Math.abs(deltaX)>Math.abs(deltaY)*SWIPE_AXIS_RATIO){if((mfp.st.gallery||{}).enabled&&(mfp.items||[]).length>1){if((deltaX<0)!=$ush.isRtl()){mfp.next()}else{mfp.prev()}} 110return} 111if(Math.abs(deltaY)>=SWIPE_MIN_DISTANCE&&Math.abs(deltaY)>Math.abs(deltaX)*SWIPE_AXIS_RATIO){mfp.close()}})} 112$us.$document.on('usPopupOpened usMagnificPopupOpened',()=>{$us.$html.addClass('us_popup_is_opened');if(!$.isMobile&&$us.$html[0].scrollHeight>$us.$html[0].clientHeight){const scrollbarWidth=$us.scrollbarWidth();if(scrollbarWidth){$us.$html.css('--scrollbar-width',scrollbarWidth+'px')}}});$us.$document.on('usPopupClosed usMagnificPopupClosed',()=>{$us.$html.removeClass('us_popup_is_opened');if(!$.isMobile){$us.$html.css('--scrollbar-width','')}})}(jQuery);!function($,_undefined){"use strict";const _document=document;const _location=location;const ceil=Math.ceil;window.$ush=window.$ush||{};window.$us=window.$us||{};function USScroll(opts){const self=this;const defaultOpts={attachOnInit:['.menu-item a[href*="#"]','.menu-item[href*="#"]','.post_custom_field a[href*="#"]','.post_title a[href*="#"]','.w-ibanner a[href*="#"]','.vc_custom_heading a[href*="#"]','.vc_icon_element a[href*="#"]','.w-comments-title a[href*="#"]','.w-iconbox a[href*="#"]','.w-image a[href*="#"]:not([onclick])','.w-text a[href*="#"]','.w-toplink','a.smooth-scroll[href*="#"]','a.w-btn[href*="#"]:not([onclick]):not(.w-skip-btn)','a.w-grid-item-anchor[href*="#"]'].join(),buttonActiveClass:'active',menuItemActiveClass:'current-menu-item',menuItemAncestorActiveClass:'current-menu-ancestor',animationDuration:($us.canvasOptions||{}).scrollDuration||0,animationEasing:$us.getAnimationName('easeInOutExpo'),endAnimationEasing:$us.getAnimationName('easeOutExpo')};self.opts=$.extend({},defaultOpts,opts||{});self.blocks={};self.isScrolling=!1;self._events={onAnchorClick:self.onAnchorClick.bind(self),onCancel:self.onCancel.bind(self),onScroll:self.onScroll.bind(self),onResize:self.onResize.bind(self)};$us.$window.on('resize load',$ush.debounce(self._events.onResize,1));$ush.timeout(self._events.onResize,75);$us.$window.on('scroll.noPreventDefault',self._events.onScroll);$ush.timeout(self._events.onScroll,75);if(self.opts.attachOnInit){self.attach(self.opts.attachOnInit)} 113$us.$canvas.on('contentChange',self._countAllPositions.bind(self));if(_location.hash&&_location.hash.indexOf('#!')==-1){var hash=_location.hash,scrollPlace=(self.blocks[hash]!==_undefined)?hash:_undefined;if(scrollPlace===_undefined){try{const $target=$(hash);if($target.length!=0){scrollPlace=$target}}catch(error){}} 114if(scrollPlace!==_undefined){var keepScrollPositionTimer=setInterval(()=>{self.scrollTo(scrollPlace);if(_document.readyState!=='loading'){clearInterval(keepScrollPositionTimer)}},100);const clearHashEvents=()=>{$us.$window.off('load mousewheel.noPreventDefault DOMMouseScroll touchstart.noPreventDefault',clearHashEvents);$ush.timeout(()=>{$us.canvas.resize();self._countAllPositions();
114if($us.hasOwnProperty('waypoints')){$us.waypoints._countAll()} 115self.scrollTo(scrollPlace)},100)};$us.$window.on('load mousewheel.noPreventDefault DOMMouseScroll touchstart.noPreventDefault',clearHashEvents)}} 116self.animateOpts={duration:self.opts.animationDuration,easing:self.opts.animationEasing,start:()=>{self.isScrolling=!0},complete:()=>{self.onCancel()},}} 117USScroll.prototype={_countPosition:function(hash){const self=this;var $target=self.blocks[hash].$target,offsetTop=$target.offset().top;if($target.hasClass('type_sticky')){var key='realTop';if(!$target.hasClass('is_sticky')){$target.removeData(key)} 118if(!$target.data(key)){$target.data(key,offsetTop)} 119offsetTop=$target.data(key)||offsetTop} 120if($us.$body.hasClass('footer_reveal')&&$target.closest('footer').length){offsetTop=$us.$body.outerHeight(!0)+(offsetTop-$us.$window.scrollTop())} 121self.blocks[hash].top=ceil(offsetTop-$us.canvas.getOffsetTop())},_countAllPositions:function(){const self=this;for(const hash in self.blocks){if(self.blocks[hash]){self._countPosition(hash)}}},indicatePosition:function(activeHash){const self=this;for(const hash in self.blocks){if(!self.blocks[hash]){continue} 122const block=self.blocks[hash];if(!$ush.isUndefined(block.buttons)){block.buttons.toggleClass(self.opts.buttonActiveClass,hash===activeHash)} 123if(!$ush.isUndefined(block.menuItems)){block.menuItems.toggleClass(self.opts.menuItemActiveClass,hash===activeHash)} 124if(!$ush.isUndefined(block.menuAncestors)){block.menuAncestors.removeClass(self.opts.menuItemAncestorActiveClass)}} 125if(!$ush.isUndefined(self.blocks[activeHash])&&!$ush.isUndefined(self.blocks[activeHash].menuAncestors)){self.blocks[activeHash].menuAncestors.addClass(self.opts.menuItemAncestorActiveClass)}},attach:function(anchors){const self=this;const $anchors=$(anchors).not('.no_smooth_scroll');if($anchors.length==0){return} 126var _pathname=decodeURIComponent(_location.pathname),patternPathname=new RegExp('^'+_pathname.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")+'#'),patternPageId=/^\/?(\?page_id=\d+).*?/;$anchors.each((index,anchor)=>{const $anchor=$(anchor);if($anchor.closest('.no_smooth_scroll').length>0){return} 127var href=$ush.toString($anchor.attr('href')).replace(_location.origin,''),hash=$anchor.prop('hash'),hasProtocol=/^(https?:\/\/)/.test(href),hasPageId=patternPageId.test(href);if(hash.indexOf('#!')>-1||href.indexOf('#')<0||(href.substr(0,2)=='/#'&&_location.search&&_pathname=='/')||(hasProtocol&&href.indexOf(_location.origin)!==0)||(hasPageId&&href.indexOf((_location.search.match(patternPageId)||[])[1])==-1)||(href.charAt(0)=='/'&&!hasPageId&&!patternPathname.test(href))){return} 128if(hash!=''&&hash!='#'){if(self.blocks[hash]===_undefined){var $target=$(`[id="${hash.slice(1)}"]:visible`),$originalTarget,type='';if($target.length==0){return} 129if($target.hasClass('g-cols')&&$target.hasClass('vc-row')&&$target.parent().children().length==1){$target=$target.closest('.l-section')} 130if($target.hasClass('w-tabs-section')){const $newTarget=$target.closest('.w-tabs');if(!$newTarget.hasClass('accordion')){$originalTarget=$target;$target=$newTarget} 131type='tab-section'}else if($target.hasClass('w-tabs')){type='tabs'} 132self.blocks[hash]={type:type,$target:$target,$originalTarget:$originalTarget};self._countPosition(hash)} 133if($anchor.parent().length>0&&$anchor.parent().hasClass('menu-item')){var $menuIndicator=$anchor.closest('.menu-item');self.blocks[hash].menuItems=(self.blocks[hash].menuItems||$()).add($menuIndicator);var $menuAncestors=$menuIndicator.parents('.menu-item-has-children');if($menuAncestors.length>0){self.blocks[hash].menuAncestors=(self.blocks[hash].menuAncestors||$()).add($menuAncestors)}}else{self.blocks[hash].buttons=(self.blocks[hash].buttons||$()).add($anchor)}} 134$anchor.on('click',self._events.onAnchorClick)})},getPlacePosition:function(place){const self=this;const data={newY:0,type:''};if(place===''||place==='#'){data.newY=0;data.type='top'}else if(self.blocks[place]!==_undefined){self._countPosition(place);data.newY=self.blocks[place].top;data.type='hash';place=self.blocks[place].$target}else if(place instanceof $){if(place.hasClass('w-tabs-section')){var newPlace=place.closest('.w-tabs');if(!newPlace.hasClass('accordion')){place=newPlace}} 135data.newY=place.offset().top;data.type='element'}else{data.newY=place} 136if($us.canvas.isStickySection()&&$us.canvas.hasPositionStickySections()&&!$(place).hasClass('type_sticky')&&$us.canvas.isAfterStickySection(place)){data.newY-=$us.canvas.getStickySectionHeight()} 137return data},scrollTo:function(place,animate){const self=this;var $place=$(place);if($place.closest('.w-popup-wrap').length){self.scrollToPopupContent(place);return!0} 138var offset=self.getPlacePosition(place),indicateActive=()=>{if(offset.type==='hash'){self.indicatePosition(place)}else{self.onScroll()}};if(animate){if(navigator.userAgent.match(/iPad/i)!=null&&$('.us_iframe').length&&offset.type=='hash'){$place[0].scrollIntoView({behavior:"smooth",block:"start"})} 139var scrollTop=$us.$window.scrollTop(),scrollDirections=scrollTop<offset.newY?'down':'up';if(scrollTop===offset.newY){return} 140const animateOpts=$.extend({},self.animateOpts,{always:()=>{self.isScrolling=!1;indicateActive()}});animateOpts.step=(now,fx)=>{var newY=self.getPlacePosition(place).newY;if($us.header.isHorizontal()&&$us.header.stickyEnabled()){newY-=$us.header.getCurrentHeight()} 141fx.end=newY};if($place.hasClass('us_animate_this')){$place.trigger('us_startAnimate')} 142$us.$htmlBody.stop(!0,!1).animate({scrollTop:offset.newY+'px'},animateOpts);$us.$window.on('keydown mousewheel.noPreventDefault DOMMouseScroll touchstart.noPreventDefault',self._events.onCancel)}else{if($us.header.stickyEnabled()&&$us.header.isHorizontal()){offset.newY-=$us.header.getCurrentHeight(!0)} 143$us.$htmlBody.stop(!0,!1).scrollTop(offset.newY);indicateActive()}},scrollToPopupContent:function(place){const self=this;const node=_document.getElementById(place.replace('#',''));const animateOpts=$.extend({},self.animateOpts,{always:()=>{self.isScrolling=!1},});$(node).closest('.w-popup-wrap').stop(!0,!1).animate({scrollTop:node.offsetTop+'px'},animateOpts);$us.$window.on('keydown mousewheel.noPreventDefault DOMMouseScroll touchstart.noPreventDefault',self._events.onCancel)},onAnchorClick:function(e){e.preventDefault();const self=this;const $anchor=$(e.currentTarget);const hash=$anchor.prop('hash');if($anchor.hasClass('w-nav-anchor')&&$anchor.closest('.menu-item').hasClass('menu-item-has-children')&&$anchor.closest('.w-nav').hasClass('type_mobile')){var menuOptions=$anchor.closest('.w-nav').find('.w-nav-options:first')[0].onclick()||{},dropByLabel=$anchor.parents('.menu-item').hasClass('mobile-drop-by_label'),dropByArrow=$anchor.parents('.menu-item').hasClass('mobile-drop-by_arrow');if(dropByLabel||(menuOptions.mobileBehavior&&!dropByArrow)){return!1}} 144if($anchor.attr('href')==='#'&&$anchor.closest('.w-popup-wrap').length){return!1} 145self.scrollTo(hash,!0);if(hash==='#page-top'){const active=document.activeElement;if(active&&typeof active.blur==='function'){active.blur()} 146if(!self.focusHolder){self.focusHolder=document.createElement('div');self.focusHolder.tabIndex=-1;self.focusHolder.classList.add('focus-holder');self.focusHolder.setAttribute('aria-hidden','true');document.body.appendChild(self.focusHolder)} 147requestAnimationFrame(()=>{self.focusHolder.focus({preventScroll:!0})});return} 148self.indicatePosition(hash);if(typeof self.blocks[hash]!=='undefined'){var block=self.blocks[hash];if(['tabs','tab-section'].includes(block.type)){var $linkedSection=$(`.w-tabs-section[id="${hash.substr(1)}"]`,block.$target);if(block.type==='tabs'){$linkedSection=$('.w-tabs-section:first',block.$target)}else if(block.$target.hasClass('w-tabs-section')){$linkedSection=block.$target} 149if($linkedSection.length){$('.w-tabs-section-header',$linkedSection).trigger('click')}}else if(block.menuItems!==_undefined&&$us.currentStateIs(['mobiles','tablets'])&&$us.$body.hasClass('header-show')){$us.$body.removeClass('header-show')}}},onCancel:function(){$us.$htmlBody.stop(!0,!1);$us.$window.off('keydown mousewheel.noPreventDefault DOMMouseScroll touchstart',this._events.onCancel);this.isScrolling=!1},onScroll:function(){const self=this;if(self.isScrolling){return} 150var scrollTop=ceil($us.header.getScrollTop()),activeHash;scrollTop=(scrollTop>=0)?scrollTop:0;for(const hash in self.blocks){const block=self.blocks[hash];if(!block||activeHash||$ush.isNodeInViewport(block)){continue} 151var top=block.top;if(!$us.header.isHorizontal()){top-=$us.canvas.getOffsetTop()}else{if($us.header.stickyEnabled()){top-=$us.header.getCurrentHeight(!0)} 152if($us.canvas.hasStickySection()){top-=$us.canvas.getStickySectionHeight()}} 153top=$ush.parseInt(top.toFixed(0));if(scrollTop>=top&&scrollTop<=(top+block.$target.outerHeight(!1))){activeHash=hash} 154if(activeHash&&block.type==='tab-section'&&block.$originalTarget.is(':hidden')){activeHash=_undefined}} 155$ush.debounce_fn_1ms(self.indicatePosition.bind(self,activeHash))},onResize:function(){const self=this;$ush.timeout(()=>{self._countAllPositions();self.onScroll()},150);self._countAllPositions();self.onScroll()}};$(()=>
155$us.scroll=new USScroll($us.scrollOptions||{}))}(jQuery);(function($){"use strict";var USAnimate=function(container){var self=this;self.$container=$(container);self.$items=$('[class*="us_animate_"]:not(.off_autostart)',self.$container);self.$items.each(function(_,item){var $item=$(item);if($item.data('_animate_inited')||$item.hasClass('off_autostart')){return} 156if($item.parents('.owl-carousel').length){$item.addClass('start')} 157$item.data('_animate_inited',!0);const docHeight=document.documentElement.scrollHeight;const offset=(docHeight-$item.offset().top)>docHeight*0.12?'12%':'0%';$us.waypoints.add($item,offset,function($node){if(!$node.hasClass('start')){$ush.timeout(function(){$node.addClass('start')},20)}});$item.one('us_startAnimate',function(){if(!$item.hasClass('start')){$item.addClass('start')}})})};window.USAnimate=USAnimate;new USAnimate(document);$('.wpb_animate_when_almost_visible').each(function(){$us.waypoints.add($(this),'12%',function($node){if(!$node.hasClass('wpb_start_animation')){$ush.timeout(function(){$node.addClass('wpb_start_animation')},20)}})})})(jQuery);!function($,_undefined){window.$us=window.$us||{};function usForm(container){const self=this;self.$form=$(container);if(!self.$form.hasClass('for_cform')){self.$form=$('.w-form.for_cform',container)} 158self.$formH=$('.w-form-h',self.$form);self.$dateFields=$('.w-form-row.for_date input',self.$form);self.$message=$('.w-form-message',self.$form);self.$reusableBlock=$('.w-form-reusable-block',self.$form);self.$submit=$('.w-btn',self.$form);self.opts={};self.isFileValid=!0;self.datepickerOpts={};var $formJson=$('.w-form-json',self.$form);if($formJson.is('[onclick]')){self.opts=$formJson[0].onclick()||{};if(!$us.usbPreview()){$formJson.remove()}} 159if(self.$dateFields.length){$(()=>self.initDateField())} 160$(['input[type=text]','input[type=email]','input[type=tel]','input[type=number]','input[type=date]','input[type=search]','input[type=url]','input[type=password]','textarea'].join(),self.$form).each((_,input)=>{const $input=$(input);const $row=$input.closest('.w-form-row');if($input.attr('type')==='hidden'){return} 161$row.toggleClass('not-empty',input.value!='');$input.on('input change',()=>{$row.toggleClass('not-empty',input.value!='')})});self._events={onChangeFile:self.onChangeFile.bind(self),onSubmit:self.onSubmit.bind(self),};self.$form.on('change','input[type=file]:visible',self._events.onChangeFile).on('submit',self._events.onSubmit)};$.extend(usForm.prototype,{getExtension:function(name){return $ush.toString(name).split('.').pop()},_validExtension:function(file,accepts){const self=this;if(!accepts){return!0} 162accepts=$ush.toString(accepts).split(',');for(var i in accepts){var accept=$ush.toString(accepts[i]).trim();if(!accept){continue} 163if(accept.indexOf('/')>-1){var acceptMatches=accept.split('/');if(file.type===accept||(acceptMatches[1]==='*'&&$ush.toString(file.type).indexOf(acceptMatches[0])===0)){return!0}}else if(self.getExtension(file.name)===accept.replace(/[^A-Za-z\d]+/g,'')){return!0}} 164return!1},_requiredValidation:function(){const self=this;var errors=0;$('[data-required=true]',self.$form).each(function(_,input){var $input=$(input),isEmpty=$input.is('[type=checkbox]')?!$input.is(':checked'):$input.val()=='',$row=$input.closest('.w-form-row');if($row.hasClass('for_checkboxes')||$row.hasClass('for_radio')){return!0} 165if(input.type==='file'){isEmpty=isEmpty||!self.isFileValid} 166if(input.type==='select-one'){isEmpty=$input.val()===$('option:first-child',$input).val()} 167$row.toggleClass('check_wrong',isEmpty);if(isEmpty){errors ++}});$('.for_checkboxes.required',self.$form).each((_,node)=>{var $input=$('input[type=checkbox]',node),isEmpty=!$input.is(':checked');$input.closest('.w-form-row').toggleClass('check_wrong',isEmpty);if(isEmpty){errors ++}});$('.for_radio.required',self.$form).each((_,node)=>{var $input,isEmpty;if(node.className.includes('pre_select_first_value')){$input=$('input[type=radio]:first',node);isEmpty=$input.is(':checked')}else{$input=$('input[type=radio]',node);isEmpty=!$input.is(':checked')} 168$input.closest('.w-form-row').toggleClass('check_wrong',isEmpty);if(isEmpty){errors ++}});return!errors},initDateField:function(){const self=this;$.each(self.$dateFields,(_,input)=>{const $input=$(input);self.datepickerOpts.dateFormat=$input.data('date-format');try{$input.datepicker(self.datepickerOpts);if($input.closest('.w-popup-wrap').length){$input.on('click',(e)=>{var $datepicker=$('#ui-datepicker-div'),datepickerHeight=$datepicker.outerHeight(),inputBounds=e.currentTarget.getBoundingClientRect();if(window.innerHeight-(inputBounds.bottom+datepickerHeight)>0){$datepicker.css({position:'fixed',left:inputBounds.left,top:(inputBounds.top+inputBounds.height)})}else{$datepicker.css({position:'fixed',left:inputBounds.left,top:(inputBounds.top-datepickerHeight),})}})}}catch(e){}})},onChangeFile:function(e){const self=this;
168var errMessage='',input=e.target,$input=$(input),accept=$input.attr('accept')||'',maxSize=$input.data('max_size')||$input.data('std')||0;if(input.files.length){for(var i in input.files){if(errMessage){break} 169var file=input.files[i];if(!(file instanceof File)){continue} 170if(!self._validExtension(file,accept)){errMessage=(self.opts.messages.err_extension||'').replace('%s',self.getExtension(file.name))} 171if(!errMessage&&file.size>(parseFloat(maxSize)*1048576)){errMessage=(self.opts.messages.err_size||'').replace('%s',maxSize)}}} 172$input.closest('.for_file').toggleClass('check_wrong',!(self.isFileValid=!errMessage)).find('.w-form-row-state').html(errMessage||self.opts.messages.err_empty)},onSubmit:function(e){const self=this;e.preventDefault();self.$message.usMod('type',!1).html('');if(self.$submit.hasClass('loading')||!self._requiredValidation()||!self.isFileValid){return} 173self.$submit.addClass('loading');const formData=window.FormData?new FormData(self.$form[0]):self.$form.serialize();if(self.$form.hasClass('validate_by_recaptcha')){grecaptcha.ready(()=>{try{grecaptcha.execute(self.opts.recaptcha_site_key,{action:'submit'}).then((token)=>{formData.append('g-recaptcha-response',token);sendAjaxRequest()})}catch(e){self.$message.usMod('type','error').html(self.opts.messages.err_recaptcha_keys);self.$submit.removeClass('loading')}})}else{sendAjaxRequest()} 174function sendAjaxRequest(){$.ajax({type:'POST',url:self.opts.ajaxurl,data:formData,cache:!1,processData:!1,contentType:!1,dataType:'json',success:function(res){$('.w-form-row.check_wrong',self.$form).removeClass('check_wrong');if(res.success){if(res.data.redirect_url){window.location.replace(res.data.redirect_url);return} 175if(res.data.popup_selector){const $popupTrigger=$(res.data.popup_selector).find('.w-popup-trigger');if($popupTrigger.length){$popupTrigger.trigger('click')}} 176if(res.data.message){self.$message.usMod('type','success').html(res.data.message)} 177if(self.$reusableBlock.length){self.$reusableBlock.slideDown(400)} 178if(self.opts.close_popup_after_sending){const $popupCloser=self.$form.closest('.w-popup-wrap').find('.w-popup-closer');if($popupCloser.length){$popupCloser.trigger('click')}} 179if(self.opts.hide_form_after_sending){const formPos=self.$form.offset().top;const scrollTop=$us.$window.scrollTop();if(!$ush.isNodeInViewport(self.$form[0])||formPos>=(scrollTop+window.innerHeight)||scrollTop>=formPos){$us.$htmlBody.animate({scrollTop:formPos-$us.header.getInitHeight()},400)} 180self.$formH.slideUp(400)} 181$('.w-form-row.not-empty',self.$form).removeClass('not-empty');$('input[type=text], input[type=email], textarea',self.$form).val('');self.$form.trigger('usCformSuccess',res).get(0).reset()}else{if($.isPlainObject(res.data)){for(const fieldName in res.data){if(fieldName==='empty_message'){$resultField.usMod('type','error');continue} 182if(fieldName==='reCAPTCHA'&&res.data[fieldName].error_message){self.$message.usMod('type','error').html(res.data.reCAPTCHA.error_message)} 183$(`[name="${fieldName}"]`,self.$form).closest('.w-form-row').addClass('check_wrong').find('.w-form-row-state').html(res.data[fieldName].error_message||'')}}else{self.$message.usMod('type','error').html(res.data)}}},complete:()=>{self.$submit.removeClass('loading')}})}}});$.fn.usForm=function(){return this.each(function(){$(this).data('usForm',new usForm(this))})};$(()=>$('.w-form.for_cform').usForm())}(jQuery);(function($,_undefined){"use strict";function usGallery(container){const self=this;self.numPage=0;self.ajaxData={};self.$container=$(container);self.$list=$('.w-gallery-list',container);self.$itemsImg=$('.w-gallery-item-img',container);self.$loadmore=$('.w-gallery-loadmore',container);self.$jsonContainer=$('.w-gallery-json',container);self._events={showNumberOfHiddenImages:$ush.debounce(self.showNumberOfHiddenImages.bind(self),5),getItems:self.getItems.bind(self),usbReloadIsotopeLayout:self._usbReloadIsotopeLayout.bind(self),};if(self.$jsonContainer.length&&!$us.usbPreview()){self.ajaxData=self.$jsonContainer[0].onclick()||{}} 184if(self.$container.hasClass('type_masonry')){self.initMasonry()} 185if(self.$container.hasClass('action_popup_image')){self.initMagnificPopup()} 186self.$container.on('usbReloadIsotopeLayout',self._events.usbReloadIsotopeLayout);$us.$window.on('resize',self._events.showNumberOfHiddenImages);self.showNumberOfHiddenImages();if(((self.ajaxData.template_vars||{}).ids||[]).length===0){return} 187$('button',self.$loadmore).on('click',self._events.getItems);if(self.ajaxData.template_vars.pagination=='load_on_scroll'){$us.wayp
187oints.add(self.$loadmore,'-70%',self._events.getItems)}} 188usGallery.prototype={initMagnificPopup:function(){$('a.w-gallery-item-link',this.$container).magnificPopup({type:'image',gallery:{enabled:!0,navigateByImgClick:!0,preload:[0,1],tPrev:$us.langOptions.magnificPopup.tPrev,tNext:$us.langOptions.magnificPopup.tNext,tCounter:$us.langOptions.magnificPopup.tCounter},removalDelay:300,mainClass:'mfp-fade',fixedContentPos:!0})},initMasonry:function(){const self=this;const isotopeOptions={itemSelector:'.w-gallery-item:not(.hidden)',layoutMode:'masonry',isOriginLeft:!$ush.isRtl(),};if(self.$list.parents('.w-tabs-section-content-h').length){isotopeOptions.transitionDuration=0} 189$('>*:not(.hidden)',self.$list).imagesLoaded(()=>{self.$list.isotope(isotopeOptions);self.$list.isotope()});$us.$canvas.on('contentChange',()=>{$('>*:not(.hidden)',self.$list).imagesLoaded(()=>{self.$list.isotope()})})},showNumberOfHiddenImages:function(){const self=this;const hiddenImagesNumber=self.$itemsImg.filter(':hidden').length;self.$itemsImg.removeAttr('data-hidden-images-number');if(hiddenImagesNumber){self.$itemsImg.filter(':visible:last').attr('data-hidden-images-number',hiddenImagesNumber)}},_usbReloadIsotopeLayout:function(){const self=this;if(self.$container.hasClass('with_isotope')){self.$list.isotope('layout')}},getItems:function(){const self=this;if(self.$loadmore.hasClass('hidden')){return} 190if(self.numPage===self.ajaxData.template_vars.max_num_pages){self.$loadmore.addClass('hidden');return} 191self.numPage+=1;self.$loadmore.addClass('loading');$.ajax({type:'post',url:$us.ajaxUrl,data:$.extend({},self.ajaxData,{template_vars:JSON.stringify(self.ajaxData.template_vars),num_page:self.numPage,}),success:(html)=>{var $result=$(html),$items=$('.w-gallery-list > *',$result);if(!$items.length||self.numPage===self.ajaxData.template_vars.max_num_pages-1){self.$loadmore.addClass('hidden')} 192self.$list.append($items);if(self.$container.hasClass('action_popup_image')){self.initMagnificPopup()} 193if(self.$container.hasClass('type_masonry')){var isotope=self.$list.data('isotope');if(isotope){isotope.insert($items);isotope.reloadItems()}} 194if(self.ajaxData.template_vars.pagination=='load_on_scroll'){$us.waypoints.add(self.$loadmore,'-70%',self._events.getItems)} 195self.$loadmore.removeClass('loading')},error:()=>{self.$loadmore.removeClass('loading')}})},};$.fn.usGallery=function(){return this.each(function(){$(this).data('usGallery',new usGallery(this))})};$(()=>$('.w-gallery').usGallery());$us.$document.on('usPostList.itemsLoaded usGrid.itemsLoaded',(_,$items)=>{$('.w-gallery',$items).usGallery()})})(jQuery);(function($,_undefined){"use strict";const _window=window;$us.WGrid=function(container,options){const self=this;self.$container=$(container);self.$filters=$('.g-filters-item',self.$container);self.$list=$('.w-grid-list',self.$container);self.$loadmore=$('.g-loadmore',self.$container);self.$pagination=$('> .pagination',self.$container);self.$preloader=$('.w-grid-preloader',self.$container);self.$style=$('> style:first',self.$container);self.loading=!1;self.changeUpdateState=!1;self.gridFilter=null;self.curFilterTaxonomy='';self.paginationType=self.$pagination.length?'regular':(self.$loadmore.length?'ajax':'none');self.filterTaxonomyName=self.$list.data('filter_taxonomy_name')?self.$list.data('filter_taxonomy_name'):'category';if(self.$container.data('gridInit')==1){return} 196self.$container.data('gridInit',1);self._events={updateState:self._updateState.bind(self),updateOrderBy:self._updateOrderBy.bind(self),initMagnificPopup:self._initMagnificPopup.bind(self),usbReloadIsotopeLayout:self._usbReloadIsotopeLayout.bind(self),scrollToGrid:$ush.debounce(self.scrollToGrid.bind(self),10),addNextPage:self.addNextPage.bind(self),};var $jsonContainer=$('.w-grid-json',self.$container);if($jsonContainer.length&&$jsonContainer.is('[onclick]')){self.ajaxData=$jsonContainer[0].onclick()||{};if(!$us.usbPreview()){$jsonContainer.remove()}}else{self.ajaxData={};self.ajaxUrl=''} 197if(self.$container.hasClass('open_items_in_popup')){new $us.usPopup().popupPost(self.$container)} 198if(self.paginationType!='none'||self.$filters.length){if(self.ajaxData==_undefined){return} 199self.templateVars=self.ajaxData.template_vars||{};if(self.filterTaxonomyName){self.initialFilterTaxonomy=self.$list.data('filter_default_taxonomies')?self.$list.data('filter_default_taxonomies').toString().split(','):'';self.curFilterTaxonomy=self.initialFilterTaxonomy} 200self.curPage=self.ajaxData.current_page||1;self.infiniteScroll=self.ajaxData.infinite_scroll||0} 201if(self.$container.hasClass('with_isotope')){self.$list.imagesLoaded(()=>
201{var smallestItemSelector,isotopeOptions={itemSelector:'.w-grid-item',layoutMode:(self.$container.hasClass('isotope_fit_rows'))?'fitRows':'masonry',isOriginLeft:!$('.l-body').hasClass('rtl'),transitionDuration:0};if(self.$list.find('.size_1x1').length){smallestItemSelector='.size_1x1'}else if(self.$list.find('.size_1x2').length){smallestItemSelector='.size_1x2'}else if(self.$list.find('.size_2x1').length){smallestItemSelector='.size_2x1'}else if(self.$list.find('.size_2x2').length){smallestItemSelector='.size_2x2'} 202if(smallestItemSelector){smallestItemSelector=smallestItemSelector||'.w-grid-item';isotopeOptions.masonry={columnWidth:smallestItemSelector}} 203self.$list.on('layoutComplete',()=>{if(_window.USAnimate){$('.w-grid-item.off_autostart',self.$list).removeClass('off_autostart');new USAnimate(self.$list)} 204$us.$window.trigger('scroll.waypoints')});self.$list.isotope(isotopeOptions);if(self.paginationType=='ajax'){self.initAjaxPagination()} 205$us.$canvas.on('contentChange',()=>{self.$list.imagesLoaded(()=>{self.$list.isotope('layout')})})});self.$container.on('usbReloadIsotopeLayout',self._events.usbReloadIsotopeLayout)}else if(self.paginationType=='ajax'){self.initAjaxPagination()} 206self.$filters.each((index,filter)=>{var $filter=$(filter),taxonomy=$filter.data('taxonomy');$filter.on('click',()=>{if(taxonomy!=self.curFilterTaxonomy){if(self.loading){return} 207self.setState(1,taxonomy);self.$filters.removeClass('active');$filter.addClass('active')}})});if(self.$container.closest('.l-main').length){$us.$body.on('us_grid.updateState',self._events.updateState).on('us_grid.updateOrderBy',self._events.updateOrderBy)} 208self.$container.on('scrollToGrid',self._events.scrollToGrid);self.$list.on('click','[ref=magnificPopup]',self._events.initMagnificPopup);if($('[ref=magnificPopupList]:first',self.$list).length){self.initMagnificPopupList()}};$us.WGrid.prototype={_updateState:function(e,queryString,page,gridFilter){const self=this;var $container=self.$container;if(!$container.is('[data-filterable="true"]')||!$container.hasClass('used_by_grid_filter')||(!$container.is(':visible')&&!$container.hasClass('hidden'))){return} 209page=page||1;self.changeUpdateState=!0;self.gridFilter=gridFilter;if(self.ajaxData===_undefined){self.ajaxData={}} 210if(!self.hasOwnProperty('templateVars')){self.templateVars=self.ajaxData.template_vars||{query_args:{}}} 211self.templateVars.us_grid_filter_query_string=queryString;if(self.templateVars.query_args!==!1){self.templateVars.query_args.paged=page} 212self.templateVars.filters_args=gridFilter.filtersArgs||{};self.setState(page);if(self.paginationType==='regular'&&/page(=|\/)/.test(location.href)){var url=location.href.replace(/(page(=|\/))(\d+)(\/?)/,'$1'+page+'$2');if(history.replaceState){history.replaceState(document.title,document.title,url)}}},_updateOrderBy:function(e,orderby,page,gridOrder){const self=this;if(!self.$container.is('[data-filterable="true"]')||!self.$container.hasClass('used_by_grid_order')){return} 213page=page||1;self.changeUpdateState=!0;if(!self.hasOwnProperty('templateVars')){self.templateVars=self.ajaxData.template_vars||{query_args:{}}} 214if(self.templateVars.query_args!==!1){self.templateVars.query_args.paged=page} 215self.templateVars.grid_orderby=orderby;self.setState(page)},_usbReloadIsotopeLayout:function(){const self=this;if(self.$container.hasClass('with_isotope')){self.$list.isotope('layout')}},initAjaxPagination:function(){const self=this;self.$loadmore.on('click',self._events.addNextPage);if(self.infiniteScroll){$us.waypoints.add(self.$loadmore,'-70%',self._events.addNextPage)}},addNextPage:function(){const self=this;if($ush.isUndefined(self.xhr)&&!self.loading&&self.curPage<self.ajaxData.max_num_pages){self.setState(self.curPage+1)}},setState:function(page,taxonomy){const self=this;if(self.loading&&!self.changeUpdateState){return} 216if(page!==1&&self.paginationType=='ajax'&&self.none!==_undefined&&self.none==!0){return} 217self.none=!1;self.loading=!0;self.$container.next('.w-grid-none').addClass('hidden');if(self.$filters.length&&!self.changeUpdateState){taxonomy=taxonomy||self.curFilterTaxonomy;if(taxonomy=='*'){taxonomy=self.initialFilterTaxonomy} 218if(taxonomy!=''){var newTaxArgs={'taxonomy':self.filterTaxonomyName,'field':'slug','terms':taxonomy},taxQueryFound=!1;if(self.templateVars.query_args.tax_query==_undefined){self.templateVars.query_args.tax_query=[]}else{$.each(self.templateVars.query_args.tax_query,(index,taxArgs)=>{if(taxArgs!=null&&taxArgs.taxonomy==self.filterTaxonomyName){self.templateVars.query_args.tax_query[index]=newTaxArgs;taxQueryFound=!0;return!1}})} 219if(!taxQueryFound){self.templateVars.query_args.tax_query.push(newTaxArgs)}}else if(self.templateVars.query_args.tax_query!=_undefined){$.each(self.templateVars.query_args.tax_query,(index,taxArgs)=>{if(taxArgs!=null&&taxArgs.taxonomy==self.filterTaxonomyName){self.templateVars.query_args.tax_query[index]=null;return!1}})}} 220if(self.templateVars.query_args!==!1){self.templateVars.query_args.paged=page} 221if(self.paginationType=='ajax'){if(page==1){self.$loadmore.addClass('hidden')}else{self.$container.addClass('loading_items')} 222if(!self.infiniteScroll){self.prevScrollTop=$us.$window.scrollTop()}} 223if(self.paginationType!='ajax'||page==1){self.$preloader.addClass('active');if(self.$list.data('isotope')){self.$list.isotope('remove',self.$container.find('.w-grid-item'));self.$list.isotope('layout')}else{self.$container.find('.w-grid-item').remove()}} 224self.ajaxData.template_vars=JSON.stringify(self.templateVars);var isotope=self.$list.data('isotope');if(isotope&&page==1){self.$list.html('');isotope.remove(isotope.items);isotope.reloadItems()} 225if(self.xhr!==_undefined){self.xhr.abort()} 226self.xhr=$.ajax({type:'post',url:$us.ajaxUrl,data:self.ajaxData,cache:!1,beforeSend:function(){self.$container.removeClass('hidden')},success:function(html){var $result=$(html),$container=$('.w-gri
226d-list',$result).first(),$pagination=$('.pagination > *',$result),$items=$container.children(),smallestItemSelector;self.$container.toggleClass('hidden',!$items.length);$container.imagesLoaded(()=>{self.beforeAppendItems($items);$items.appendTo(self.$list);$container.html('');var $sliders=$items.find('.w-slider');if(isotope){isotope.insert($items);isotope.reloadItems()} 227if($sliders.length){$sliders.each((index,slider)=>{$(slider).usImageSlider().find('.royalSlider').data('royalSlider').ev.on('rsAfterInit',()=>{if(isotope){self.$list.isotope('layout')}})})} 228if(isotope){if(self.$list.find('.size_1x1').length){smallestItemSelector='.size_1x1'}else if(self.$list.find('.size_1x2').length){smallestItemSelector='.size_1x2'}else if(self.$list.find('.size_2x1').length){smallestItemSelector='.size_2x1'}else if(self.$list.find('.size_2x2').length){smallestItemSelector='.size_2x2'} 229if(isotope.options.masonry){isotope.options.masonry.columnWidth=smallestItemSelector||'.w-grid-item'} 230self.$list.isotope('layout');self.$list.trigger('layoutComplete')} 231if(self.paginationType=='ajax'){if(page==1){var $jsonContainer=$result.find('.w-grid-json');if($jsonContainer.length){var ajaxData=$jsonContainer[0].onclick()||{};self.ajaxData.max_num_pages=ajaxData.max_num_pages||self.ajaxData.max_num_pages}else{self.ajaxData.max_num_pages=1}} 232if(self.templateVars.query_args.paged>=self.ajaxData.max_num_pages||!$items.length){self.$loadmore.addClass('hidden')}else{self.$loadmore.removeClass('hidden');self.$container.removeClass('loading_items')} 233if(self.infiniteScroll){$us.waypoints.add(self.$loadmore,'-70%',self._events.addNextPage)}else if(Math.round(self.prevScrollTop)!=Math.round($us.$window.scrollTop())){$us.$window.scrollTop(self.prevScrollTop)}}else if(self.paginationType==='regular'&&self.changeUpdateState){$('a[href]',$pagination).each((_,item)=>{var $item=$(item),pathname=location.pathname.replace(/((\/page.*)?)\/$/,'');$item.attr('href',pathname+$item.attr('href'))});self.$pagination.html($pagination)} 234var $result_none=$result.next('.w-grid-none');if(self.changeUpdateState&&$result_none.length){var $none=self.$container.next('.w-grid-none');if($none.length){$none.removeClass('hidden')}else{self.$container.after($result_none)} 235var $nextGrid=$('.w-grid:first',self.$container.next('.w-grid-none'));if($nextGrid.length){$nextGrid.wGrid()} 236self.none=!0} 237if(self.changeUpdateState&&self.gridFilter){var $jsonData=$result.filter('.w-grid-filter-json-data:first');if($jsonData.length){self.gridFilter.trigger('us_grid_filter.update-items-amount',$jsonData[0].onclick()||{})} 238$jsonData.remove()} 239var customStyles=$('style#grid-post-content-css',$result).html()||'';if(customStyles){if(!self.$style.length){self.$style=$('<style></style>');self.$container.append(self.$style)} 240self.$style.text(self.$style.text()+customStyles)} 241$us.$canvas.resize();self.$preloader.removeClass('active');if(_window.USAnimate&&self.$container.hasClass('with_css_animation')){new USAnimate(self.$container)} 242$ush.timeout(()=>{$us.$document.trigger('usGrid.itemsLoaded',[$items])},1)});self.$container.trigger('scrollToGrid');self.loading=!1;self.$container.trigger('USGridItemsLoaded')},complete:()=>{self.$container.removeClass('loading_items');delete self.xhr},});self.curPage=page;self.curFilterTaxonomy=taxonomy},scrollToGrid:function(){const self=this;if(self.curPage!==1){return} 243var $container=self.$container;if($container.hasClass('hidden')){$container=$container.next()} 244const gridPos=$ush.parseInt($container.offset().top);if(!gridPos){return} 245const scrollTop=$us.$window.scrollTop();if(scrollTop>=gridPos||gridPos>=(scrollTop+_window.innerHeight)){$us.$htmlBody.stop(!0,!1).animate({scrollTop:(gridPos-$us.header.getCurrentHeight())},500)}},beforeAppendItems:function($items){if($('[data-content-height]',$items).length){var handle=$ush.timeout(()=>{$('[data-content-height]',$items).usCollapsibleContent();$ush.clearTimeout(handle)},1)}},};$.extend($us.WGrid.prototype,{_initMagnificPopup:function(e){e.stopPropagation();e.preventDefault();var $target=$(e.currentTarget);if($target.data('magnificPopup')===_undefined){$target.magnificPopup({type:'image',mainClass:'mfp-fade'});$target.trigger('click')}},initMagnificPopupList:function(){const self=this;const globalOpts=$us.langOptions.magnificPopup;self.$list.magnificPopup({type:'image',delegate:'a[ref=magnificPopupList]:visible',gallery:{enabled:!0,navigateByImgClick:!0,preload:[0,1],tPrev:globalOpts.tPrev,tNext:globalOpts.tNext,tCounter:globalOpts.tCounter}
245,image:{titleSrc:'aria-label'},removalDelay:300,mainClass:'mfp-fade',fixedContentPos:!0,})},}) 246$.fn.wGrid=function(options){return this.each(function(){$(this).data('wGrid',new $us.WGrid(this,options))})};$(()=>$('.w-grid:not(.us_post_list,.us_product_list,.type_carousel)').wGrid())})(jQuery);!function($,_undefined){"use strict";const _window=window;_window.$ush=_window.$ush||{};_window.$us.canvas=_window.$us.canvas||{};function toBoolean(value){if(typeof value=='boolean'){return value} 247if(typeof value=='string'){value=value.trim();return value.toLocaleLowerCase()=='true'||value=='1'} 248return!!parseInt(value)} 249function USHeader(settings){const self=this;self.$container=$('.l-header',$us.$canvas);self.$showBtn=$('.w-header-show:first',$us.$body);self.settings=settings||{};self.canvasOffset=0;self.bodyHeight=$us.$body.height();self.adminBarHeight=0;self._states={init_height:0,scroll_direction:'down',sticky:!1,sticky_auto_hide:!1,vertical_scrollable:!1};if(self.$container.length===0){return} 250self.breakpoints={laptops:1280,tablets:1024,mobiles:600};for(const k in self.breakpoints){self.breakpoints[k]=parseInt(((self.settings[k]||{}).options||{}).breakpoint)||self.breakpoints[k]} 251self._events={hideMobileVerticalHeader:self.hideMobileVerticalHeader.bind(self),contentChange:self.contentChange.bind(self),showBtn:self.showBtn.bind(self),scroll:$ush.debounce(self.scroll.bind(self),1),resize:$ush.debounce(self.resize.bind(self),1),};self._states.init_height=self.getHeight();$us.$window.on('scroll.noPreventDefault',self._events.scroll).on('resize load',self._events.resize);self.$container.on('contentChange',self._events.contentChange);self.$showBtn.on('click',self._events.showBtn);self.setView($us.$body.usMod('state')||'default');self.resize();if(self.stickyAutoHideEnabled()){self.$container.addClass('sticky_auto_hide')} 252self.$container.on('transitionend webkitTransitionEnd oTransitionEnd MSTransitionEnd',$ush.debounce(()=>{self.trigger.call(self,'transitionEnd')},1))} 253$.extend(USHeader.prototype,$us.mixins.Events,{prevScrollTop:0,currentStateIs:function(state){return(state&&['default','laptops','tablets','mobiles'].includes(state)&&this.state===state)},isVertical:function(){return this.orientation==='ver'},isHorizontal:function(){return this.orientation==='hor'},isFixed:function(){return this.pos==='fixed'},isStatic:function(){return this.pos==='static'},isTransparent:function(){return this.bg==='transparent'},_isWithinScrollBoundaries:function(scrollTop){scrollTop=Math.ceil(scrollTop);return(scrollTop+_window.innerHeight>=$us.$document.height())||scrollTop<=0},isHidden:function(){return!!$us.header.settings.is_hidden},stickyEnabled:function(){return((this.settings[this.state]||{}).options||{}).sticky||!1},stickyAutoHideEnabled:function(){return this.stickyEnabled()&&(((this.settings[this.state]||{}).options||{}).sticky_auto_hide||!1)},isPinned:function(){return this._states.sticky||!1},isStickyAutoHidden:function(){return this._states.sticky_auto_hide||!1},getHeaderInitialPos:function(){return $us.$body.usMod('headerinpos')||''},getScrollDirection:function(){return this._states.scroll_direction||'down'},getHeight:function(){const self=this;if(!self.$container.length){return 0} 254const beforeContent=getComputedStyle(self.$container[0],':before').content;var height=0;if(beforeContent&&['none','auto'].includes(beforeContent)===!1){height=beforeContent.replace(/[^+\d]/g,'')} 255if(!height){height=self.$container.outerHeight()} 256return $ush.parseFloat(height)},getInitHeight:function(){return $ush.parseInt(this._states.init_height)||this.getHeight()},getCurrentHeight:function(adminBar){const self=this;var height=0;if(adminBar&&self.isHorizontal()&&(!self.currentStateIs('mobiles')||(self.adminBarHeight&&self.adminBarHeight>=self.getScrollTop()))){height+=self.adminBarHeight} 257if(!self.isStickyAutoHidden()){height+=self.getHeight()} 258return height},getScrollTop:function(){return _window.scrollY||this.prevScrollTop},prevOffsetTop:0,getOffsetTop:function(){return(this.prevOffsetTop=Math.max(this.prevOffsetTop,$ush.parseFloat(this.$container.css('top'))))},isScrollAtTopPosition:function(){return $ush.parseInt(_window.scrollY)===0}
258,setView:function(newState){const self=this;if(newState==self.state){return} 259var options=(self.settings[newState]||{}).options||{},orientation=options.orientation||'hor',pos=toBoolean(options.sticky)?'fixed':'static',bg=toBoolean(options.transparent)?'transparent':'solid',shadow=options.shadow||'thin';if(orientation==='ver'){pos='fixed';bg='solid'} 260self._setPos(pos);self._setBg(bg);self._setShadow(shadow);self.orientation=orientation 261self.state=newState 262$us.$document.trigger('usHeader.update_view');if(self.stickyAutoHideEnabled()){self.$container.removeClass('down')}},_setPos:function(pos){const self=this;if(pos===self.pos){return} 263self.$container.usMod('pos',self.pos=pos);if(self.pos==='static'){self.changeSticky(!1)}},_setBg:function(bg){const self=this;if(bg!=self.bg){self.$container.usMod('bg',self.bg=bg)}},_setShadow:function(shadow){const self=this;if(shadow!=self.shadow){self.$container.usMod('shadow',self.shadow=shadow)}},_isVerticalScrollable:function(){const self=this;if(!self.isVertical()){return} 264if((self.currentStateIs('default')||self.currentStateIs('laptops'))&&self.isFixed()){self.$container.addClass('scrollable');var headerHeight=self.getHeight(),canvasHeight=parseInt($us.canvas.winHeight),documentHeight=parseInt($us.$document.height());self.$container.removeClass('scrollable');if((headerHeight/canvasHeight)>1.05){self.swichVerticalScrollable(!0)}else if(self._states.vertical_scrollable){self.swichVerticalScrollable(!1)} 265if((headerHeight/documentHeight)>1.05){self.$container.css({position:'absolute',top:0})}}else if(self._states.vertical_scrollable){self.swichVerticalScrollable(!1)}},swichVerticalScrollable:function(state){const self=this;self.$container.toggleClass('scrollable',self._states.vertical_scrollable=!!state);if(!self._states.vertical_scrollable){self.$container.resetInlineCSS('position','top','bottom');delete self._headerScrollRange}},changeSticky:function(state){const self=this;self._states.sticky=!!state;var currentHeight=self.getCurrentHeight(!0),resetCss=['position','top','bottom'];if($us.canvas.hasStickyFirstSection()&&self.getHeaderInitialPos()=='bottom'&&!self.stickyAutoHideEnabled()){resetCss=resetCss.filter((value)=>{return value!=='top'})} 266self.$container.toggleClass('sticky',self._states.sticky).resetInlineCSS(resetCss);if(currentHeight==self.getCurrentHeight(!0)){self.trigger('transitionEnd')}},contentChange:function(){this._isVerticalScrollable()},showBtn:function(e){const self=this;if($us.$body.hasClass('header-show')){return} 267e.stopPropagation();$us.$body.addClass('header-show').on(($.isMobile?'touchstart.noPreventDefault':'click'),self._events.hideMobileVerticalHeader)},hideMobileVerticalHeader:function(e){const self=this;if($.contains(self.$container[0],e.target)){return} 268$us.$body.off(($.isMobile?'touchstart':'click'),self._events.hideMobileVerticalHeader);$ush.timeout(()=>$us.$body.removeClass('header-show'),10)},scroll:function(){const self=this;var scrollTop=self.getScrollTop(),headerAbovePosition=(self.getHeaderInitialPos()==='above');if(self.prevScrollTop!=scrollTop){self._states.scroll_direction=(self.prevScrollTop<=scrollTop)?'down':'up'} 269self.prevScrollTop=scrollTop;if(self.isScrollAtTopPosition()){self._states.scroll_direction='up'} 270if(self.stickyAutoHideEnabled()&&self.isPinned()&&!self._isWithinScrollBoundaries(scrollTop)&&!headerAbovePosition){self._states.sticky_auto_hide=(self.getScrollDirection()==='down');self.$container.toggleClass('down',self._states.sticky_auto_hide)} 271if(!self.isFixed()){return} 272var headerAttachedFirstSection=['bottom','below'].includes(self.getHeaderInitialPos());if(self.isHorizontal()&&(headerAbovePosition||(headerAttachedFirstSection&&(self.currentStateIs('tablets')||self.currentStateIs('mobiles')))||!headerAttachedFirstSection)){if(self.stickyEnabled()){var scrollBreakpoint=parseInt(((self.settings[self.state]||{}).options||{}).scroll_breakpoint)||100,isSticky=Math.ceil(scrollTop)>=scrollBreakpoint;if(isSticky!=self.isPinned()){self.changeSticky(self._states.sticky!==isSticky)}} 273if(self.isPinned()&&!_window.scrollY){self.changeSticky(!1)}} 274if(self.isHorizontal()&&headerAttachedFirstSection&&!headerAbovePosition&&(self.currentStateIs('default')||self.currentStateIs('laptops'))){var top=($us.canvas.getHeightFirstSection()+self.adminBarHeight);if(self.getHeaderInitialPos()=='bottom'){top-=self.getInitHeight()} 275if(self.stickyEnabled()){var isSticky=_window.scrollY>=top;if(isSticky!=self.isPinned()){self.changeSticky(isSticky)}} 276if(!self.isPinned()&&top!=self.getOffsetTop()){self.$container.css('--heading-below-first-section-top',`${top}px`)}} 277if(self.isVertical()&&!headerAttachedFirstSection&&!headerAbovePosition&&self._states.vertical_scrollable){var headerHeight=self.getHeight(),documentHeight=parseInt($us.$document.height());if(documentHeight>headerHeight){var canvasHeight=parseInt($us.canvas.winHeight)+self.canvasOffset,scrollRangeDiff=(headerHeight-canvasHeight),cssProps;if(self._headerScrollRange===_undefined){self._headerScrollRange=[0,scrollRangeDiff]} 278if(self.bodyHeight>headerHeight){if(scrollTop<self._headerScrollRange[0]){self._headerScrollRange[0]=Math.max(0,scrollTop);self._headerScrollRange[1]=(self._headerScrollRange[0]+scrollRangeDiff);cssProps={position:'fixed',top:self.adminBarHeight}}else if(self._headerScrollRange[0]<scrollTop&&scrollTop<self._headerScrollRange[1]){cssProps={position:'absolute',top:self._headerScrollRange[0]}}else if(self._headerScrollRange[1]<=scrollTop){self._headerScrollRange[1]=Math.min(documentHeight-canvasHeight,scrollTop);self._headerScrollRange[0]=(self._headerScrollRange[1]-scrollRangeDiff);cssProps={position:'fixed',top:(canvasHeight-headerHeight)}}}else{cssProps={position:'absolute',top:self.adminBarHeight,}} 279if(cssProps){self.$container.css(cssProps)}}}},resize:function(){const self=this;self.canvasOffset=$us.$window.outerHeight()-$us.$window.innerHeight();self.bodyHeight=$us.$body.height();self.adminBarHeight=$us.getAdminBarHeight()||0;if(self.isFixed()&&self.isHorizontal()){self.$container.addClass('notransition');$ush.timeout(()=>self.$container.removeClass('notransition'),50)} 280self._isVerticalScrollable();self.scroll()}});_window.USHeader=USHeader;$us.header=new USHeader($us.headerSettings||{})}(jQuery);!function($,_undefined){"use strict";function usImageSlider(container){const self=this;const $container=$(container);const $frame=$('.w-slider-h',container);const $royalSlider=$('.royalSlider',container);const options={};if(!$.fn.royalSlider||$container.data('usImageSlider')){return} 281const $jsonData=$('.w-slider-json',container);if($jsonData.length){$.extend(options,$jsonData[0].onclick()||{})} 282$jsonData.remove();if($container.parent().hasClass('w-post-elm')){options.imageScaleMode='fill'} 283options.usePreloader=!1;$royalSlider.royalSlider(options);const royalSlider=$royalSlider.data('royalSlider');if(options.fullscreen&&options.fullscreen.enabled){const rsEnterFullscreen=function(){$royalSlider.appendTo($us.$body);
283royalSlider.ev.off('rsEnterFullscreen',rsEnterFullscreen);royalSlider.ev.on('rsExitFullscreen',rsExitFullscreen);royalSlider.updateSliderSize()};royalSlider.ev.on('rsEnterFullscreen',rsEnterFullscreen);const rsExitFullscreen=function(){$royalSlider.prependTo($frame);royalSlider.ev.off('rsExitFullscreen',rsExitFullscreen);royalSlider.ev.on('rsEnterFullscreen',rsEnterFullscreen)}} 284royalSlider.ev.on('rsAfterContentSet',function(){royalSlider.slides.forEach(function(slide){$(slide.content.find('img')[0]).attr('alt',slide.caption.attr('data-alt'))})});$us.$canvas.on('contentChange',function(){$royalSlider.parent().imagesLoaded(function(){royalSlider.updateSliderSize()})});self.royalSlider=royalSlider} 285$.fn.usImageSlider=function(){return this.each(function(){$(this).data('usImageSlider',new usImageSlider(this))})};$(()=>{$('.w-slider').usImageSlider()});$us.$document.on('usPostList.itemsLoaded usGrid.itemsLoaded',(_,$items)=>{$('.w-slider',$items).usImageSlider()})}(jQuery);!function($,_undefined){"use strict";window.$us=window.$us||{};$us.mobileNavOpened=0;const SLIDE_DURATION=250;function usNav(container){const self=this;self.$container=$(container);if(self.$container.length===0){return} 286self.$items=$('.menu-item',self.$container);self.$list=$('.w-nav-list.level_1',self.$container);self.$anchors=$('.w-nav-anchor',self.$container);self.$mobileMenu=$('.w-nav-control',self.$container);self.$itemsHasChildren=$('.menu-item-has-children',self.$list);self.$childLists=$('.menu-item-has-children > .w-nav-list',self.$list);self.$reusableBlocksLinks=$('.menu-item-object-us_page_block a',self.$container);self.type=self.$container.usMod('type');self.layout=self.$container.usMod('layout');self.openDropdownOnClick=self.$container.hasClass('open_on_click');self.mobileNavOpened=!1;self.keyboardNavEvent=!1;self.opts={};self._events={closeMobileMenu:self.closeMobileMenu.bind(self),closeMobileMenuOnClick:self.closeMobileMenuOnClick.bind(self),closeMobileMenuOnFocusIn:self.closeMobileMenuOnFocusIn.bind(self),closeOnClickOutside:self.closeOnClickOutside.bind(self),closeOnMouseOver:self.closeOnMouseOver.bind(self),forwardArrowClick:self.forwardArrowClick.bind(self),handleKeyboardNav:self.handleKeyboardNav.bind(self),handleMobileClick:self.handleMobileClick.bind(self),resize:self.resize.bind(self),toggleMenuOnClick:self.toggleMenuOnClick.bind(self),toggleMobileMenu:self.toggleMobileMenu.bind(self),toggleSubMenu:self.toggleSubMenu.bind(self),updateDropDirection:self.updateDropDirection.bind(self),} 287const $opts=$('.w-nav-options:first',self.$container);if($opts.is('[onclick]')){self.opts=$opts[0].onclick()||{};$opts.remove()} 288self.$container.on('transitionend',()=>self.$container.removeClass('us_animate_this')).on('keydown.upsolution',self._events.handleKeyboardNav).on('click','.w-nav-close',self._events.closeMobileMenu).on('click','.w-nav-anchor, .w-hwrapper-link',self._events.closeMobileMenuOnClick).on('click','.w-nav-control',self._events.toggleMobileMenu).on('closeMobileMenu',self._events.closeMobileMenu).on('mouseenter','.menu-item-has-children',self._events.updateDropDirection).on('focusin','.menu-item-has-children > .w-nav-anchor, .menu-item-has-children > .w-nav-item-toggle',self._events.updateDropDirection);if(self.openDropdownOnClick){self.$container.on('click','.menu-item.togglable > .w-nav-anchor',self._events.toggleMenuOnClick);$us.$document.on('mouseup touchend.noPreventDefault',self._events.closeOnClickOutside)} 289$us.$document.on('usHeader.update_view',self._events.resize);$us.$window.on('resize',$ush.debounce(self._events.resize,5));if($ush.isSafari){self.$mobileMenu.on('mouseup',()=>{self.$mobileMenu.attr('style','outline: none')})} 290self.$reusableBlocksLinks.each((index,anchor)=>{if($(anchor).parents('.w-popup-wrap').length===0){self.$anchors.push(anchor)}});if($.isMobile&&self.type==='desktop'){self.$list.on('click','.w-nav-anchor[class*="level_"]',(e)=>{const $target=$(e.currentTarget);const $menuItem=$target.closest('.menu-item');if($target.usMod('level')>1&&!$menuItem.hasClass('menu-item-has-children')){self.setOpened($target.parents('.menu-item.opened'),!1)}})} 291self.$itemsHasChildren.each((_,menuItem)=>{const $menuItem=$(menuItem);const isInMegaMenu=$menuItem.parents('.menu-item.has_cols, .menu-item.has_side_panel').length>0;if(!isInMegaMenu){$menuItem.addClass('togglable')} 292const $subAnchor=$menuItem.children('.w-nav-anchor');const dropByLabel=$menuItem.hasClass('mobile-drop-by_label')||$menuItem.parents('.menu-item').hasClass('mobile-drop-by_label');const dropByArrow=$menuItem.hasClass('mobile-drop-by_arrow')||$menuItem.parents('.menu-item').hasClass('mobile-drop-by_arrow');$menuItem.children('.w-nav-item-toggle').on('click',self._events.toggleSubMenu);if(dropByLabel||(self.opts.mobileBehavior&&!dropByArrow)){$subAnchor.on('click',self._events.handleMobileClick)}else{$('.w-nav-arrow',$subAnchor).on('click',self._events.forwardArrowClick)}});if(!$us.$html.hasClass('no-touch')){self.$list.on('click','.menu-item-has-children.togglable > .w-nav-anchor',(e)=>{if(self.type==='mobile'){return} 293e.preventDefault();const $target=$(e.currentTarget);const $menuItem=$target.parent();if($menuItem.hasClass('opened')){return location.assign($target.attr('href'))} 294self.setOpened($menuItem,!0);const onOutsideClick=(e)=>{if($.contains($menuItem[0],e.target)){return} 295self.setOpened($menuItem,!1);$us.$body.off('touchstart',onOutsideClick)};$us.$body.on('touchstart.noPreventDefault',onOutsideClick)})} 296$us.$document.on('keydown',(e)=>{if($ush.isSafari){self.$mobileMenu.removeAttr('style')} 297if(e.keyCode===$ush.ESC_KEYCODE&&self.type==='mobile'&&self.mobileNavOpened){self.closeMobileMenu()} 298if(e.keyCode===$ush.TAB_KEYCODE&&self.type==='desktop'&&!$(e.target).closest('.w-nav').length){self.setOpened(self.$items,!1)}});$ush.timeout(()=>{self.resize();$us.header.$container.trigger('contentChange')},50)};$.extend(usNav.prototype,{toggleMobileMenu:function(e){const self=this;e.preventDefault();self.mobileNavOpened=!self.mobileNavOpened;$us.$document.on('mouseup touchend.noPreventDefault',self._events.closeOnClickOutside);self.$anchors.each((_,node)=>{node.href=node.href||'javascript:void(0)'});if(self.mobileNavOpened){$('.l-header .w-nav').not(self.$container).each((_,node)=>{$(node).trigger('closeMobileMenu')});self.$mobileMenu.addClass('active').focus();self.setOpened(self.$items.filter('.opened'),!1);self.$childLists.resetInlineCSS('display','height','opacity');if(self.layout==='dropdown'){self.$list.slideDownCSS(SLIDE_DURATION,()=>$us.header.$container.trigger('contentChange'))} 299$us.$html.addClass('w-nav-open');self.$mobileMenu.attr('aria-expanded','true');$us.mobileNavOpened++;$us.$document.on('focusin',self._events.closeMobileMenuOnFocusIn)}else{self.closeMobileMenu()} 300$us.$canvas.trigger('contentChange')},handleMobileClick:function(e){const self=this;if(self.type==='mobile'){e.stopPropagation();e.preventDefault();const $menuItem=$(e.currentTarget).closest('.menu-item');self.switchMobileSubMenu($menuItem,!$menuItem.hasClass('opened'))}},switchMobileSubMenu:function($menuItem,opened){const self=this;if(self.type!=='mobile'){return} 301const $subMenu=$menuItem.children('.w-nav-list');self.setOpened($menuItem,opened);if(opened){$subMenu.slideDownCSS(SLIDE_DURATION,()=>$us.header.$container.trigger('contentChange'))}else{$subMenu.slideUpCSS(SLIDE_DURATION,()=>$us.header.$container.trigger('contentChange'))}},closeMobileMenuOnFocusIn:function(){const self=this;if(!$.contains(self.$container[0],document.activeElement)){self.closeMobileMenu()}},closeMobileMenu:function(){const self=this;if(self.type!=='mobile'){return} 302self.mobileNavOpened=!1;self.$mobileMenu.removeClass('active');$us.$html.removeClass('w-nav-open');self.$mobileMenu.attr('aria-expanded','false');if(self.$list&&self.layout==='dropdown'){self.$list.slideUpCSS(SLIDE_DURATION)} 303$us.mobileNavOpened--;self.$mobileMenu[0].focus();$us.$canvas.trigger('contentChange');$us.$document.off('focusin',self._events.closeMobileMenuOnFocusIn).off('mouseup touchend.noPreventDefault',self._events.closeOnClickOutside)},closeMobileMenuOnClick:function(e){const self=this;const $menuItem=$(e.currentTarget).closest('.menu-item');const dropByLabel=$menuItem.hasClass('mobile-drop-by_label')||$menuItem.parents('.menu-item').hasClass('mobile-drop-by_label');const dropByArrow=$menuItem.hasClass('mobile-drop-by_arrow')||$menuItem.parents('.menu-item').hasClass('mobile-drop-by_arrow');if(self.type!=='mobile'||$us.header.isVertical()){return} 304if(dropByLabel||(self.opts.mobileBehavior&&$menuItem.hasClass('menu-item-has-children')&&!dropByArrow)){return} 305self.closeMobileMenu()},});$.extend(usNav.prototype,{setOpened:function($menuItems,opened){$menuItems.toggleClass('opened',!!opened).children('.w-nav-item-toggle').attr('aria-expanded',opened?'true':'false')},toggleSubMenu:function(e){const self=this;const $toggle=$(e.currentTarget);const $menuItem=$toggle.closest('.menu-item-has-children');e.preventDefault();e.stopPropagation();if(self.type==='mobile'){self.switchMobileSubMenu($menuItem,!$menuItem.hasClass('opened'));return} 306self.$itemsHasChildren.off('mouseover',self._events.closeOnMouseOver).one('mouseover',self._events.closeOnMouseOver);if($menuItem.hasClass('opened')){self.setOpened($menuItem,!1);return} 307self.setOpened(self.$itemsHasChildren.not($menuItem).not($menuItem.parents('.menu-item-has-children')),!1);self.setOpened($menuItem,!0)},forwardArrowClick:function(e){const self=this;if(self.type!=='mobile'){return} 308e.preventDefault();e.stopPropagation();const toggle=$(e.currentTarget).closest('.menu-item-has-children').children('.w-nav-item-toggle')[0];if(toggle){toggle.click()}},toggleMenuOnClick:function(e){const self=this;if(self.type==='mobile'){return} 309const $menuItem=$(e.currentTarget).closest('.menu-item');const isOpened=$menuItem.hasClass('opened');if(!self.keyboardNavEvent){e.preventDefault();e.stopPropagation()}else{return} 310self.setOpened($menuItem,!isOpened);if(!isOpened){self.closeOnMouseOver(e)}else{self.setOpened($('.menu-item-has-children.opened',$menuItem),!1)}},closeOnClickOutside:function(e){const self=this;if(self.mobileNavOpened&&self.type==='mobile'){if(!self.$mobileMenu.is(e.target)&&!self.$mobileMenu.has(e.target).length&&!self.$list.is(e.target)&&!self.$list.has(e.target).length){self.closeMobileMenu()}}else if(self.$itemsHasChildren.hasClass('opened')&&!$.contains(self.$container[0],e.target)){self.setOpened(self.$itemsHasChildren,!1)}},closeOnMouseOver:function(e){const self=this;if(self.type==='mobile'){return} 311const $target=$(e.target);const $itemHasChildren=$target.closest('.menu-item-has-children');const $menuItemLevel1=$target.closest('.menu-item.level_1');self.setOpened(self.$itemsHasChildren.not($itemHasChildren).not($itemHasChildren.parents('.menu-item-has-children')).not($menuItemLevel1),!1)},switchSidePanelTab:function(e){const $target=$(e.target);if(!$target.is('.w-nav-anchor.level_2')||!$target.closest('.menu-item.has_side_panel').length){return} 312e.preventDefault();const $tabs=$target.closest('.w-nav-list.level_2').children('.w-nav-item').children('.w-nav-anchor');const index=$tabs.index($target);if(index===-1){return} 313const shift=((e.keyCode||e.which)===$ush.DOWN_KEYCODE)?1:-1;$tabs.eq((index+shift+$tabs.length)%$tabs.length).focus()},updateDropDirection:function(e){const self=this;if(self.type!=='desktop'||$us.header.isVertical()){return} 314const $itemHasChildren=$(e.currentTarget).closest('.menu-item-has-children');const dropdown=$itemHasChildren.children('.w-nav-list')[0];if(!dropdown){return} 315if($itemHasChildren.closest('.menu-item.has_cols, .menu-item.has_side_panel, .menu-item.dropdown_full_width').length){return} 316const itemRect=$ush.$rect($itemHasChildren[0]);const isLevel1=$itemHasChildren.hasClass('level_1');const dropLeft=$ush.isRtl()?((isLevel1?itemRect.right:itemRect.left)-dropdown.offsetWidth<0):((isLevel1?itemRect.left:itemRect.right)+dropdown.offsetWidth>window.innerWidth);$itemHasChildren.toggleClass('drop_left',dropLeft)},handleKeyboardNav:function(e){const self=this;const keyCode=e.keyCode||e.which;const $target=$(e.target);const $menuItemLevel1=$target.closest('.menu-item.level_1');if(self.type==='mobile'){if(keyCode===$ush.SPACE_KEYCODE&&$target.is(self.$mobileMenu)){e.
316stopPropagation();self.toggleMobileMenu(e)} 317if(keyCode===$ush.TAB_KEYCODE){if(e.shiftKey&&self.$anchors.index($target)===0){self.closeMobileMenu()}}} 318if(self.type==='desktop'){if(keyCode===$ush.ESC_KEYCODE){if($menuItemLevel1.hasClass('opened')){$menuItemLevel1.children('.w-nav-item-toggle').focus()} 319self.setOpened(self.$items,!1)} 320if([$ush.UP_KEYCODE,$ush.DOWN_KEYCODE].includes(keyCode)){self.switchSidePanelTab(e)} 321self.keyboardNavEvent=!0;$ush.timeout(()=>{self.keyboardNavEvent=!1},1)}},resize:function(){const self=this;if(self.$container.length===0){return} 322const newType=(window.innerWidth<self.opts.mobileWidth)?'mobile':'desktop';if($us.header.orientation!==self.headerOrientation||newType!==self.type){self.$childLists.resetInlineCSS('display','height','opacity');if(self.headerOrientation==='hor'&&self.type==='mobile'){self.$list.resetInlineCSS('display','height','opacity')} 323self.setOpened(self.$items,!1);self.headerOrientation=$us.header.orientation;self.type=newType;self.$container.usMod('type',newType)} 324self.$list.removeClass('hide_for_mobiles')},});$.fn.usNav=function(){return this.each(function(){$(this).data('usNav',new usNav(this))})};$('.l-header .w-nav').usNav()}(jQuery);!function($,undefined){"use strict";var _document=document,_window=window,_null=null;_window.$us=_window.$us||{};const _REGEXP_EXTRACT_COORDINATES_=/^(-?[\d\.]+),(-?[\d\.]+)$/;$us.wLmaps=function(container,options){var self=this;self.$container=$(container);if(self.$container.data('_inited')){return} 325self.$container.data('_inited',1);self._mapInstance=_null;self.cookieName=self.$container.data('cookie-name');self.options=options||{};self._events={confirmInit:self._confirmInit.bind(self),redraw:self._redraw.bind(self)};if(self.cookieName){self.$container.on('click','.action_confirm_load',self._events.confirmInit);return} 326self._init()};$.extend($us.wLmaps.prototype,{_confirmInit:function(){var self=this;if($('input[name^='+self.cookieName+']:checked',self.$container).length){$ush.setCookie(self.cookieName,1,365)} 327self.$container.html($ush.base64Decode($('script[type="text/template"]',self.$container).text())).removeAttr('data-cookie-name');self._init()},_init:function(){var self=this;var $mapJson=$('.w-map-json',self.$container);if($mapJson.is('[onclick]')){$.extend(self.options,$mapJson[0].onclick()||{});$mapJson.remove()} 328$us.$canvas.on('contentChange',self._events.redraw);self._beforeRender()},_beforeRender:function(){var self=this,address=(''+self.options.address),matches=$ush.removeSpaces(address).match(_REGEXP_EXTRACT_COORDINATES_);if(matches){self.center=[matches[1],matches[2]];self._render()}else{self._geocoder(address)}},_render:function(){var self=this,mapId=self.$container.attr('id'),lmapsOptions={center:self.center,zoom:self.options.zoom};if(self.options.hideControls){lmapsOptions.zoomControl=!1} 329if(self.options.disableZoom){lmapsOptions.scrollWheelZoom=!1} 330self._mapInstance=L.map(mapId,lmapsOptions);L.tileLayer(self.options.style,{attribution:'© <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors'}).addTo(self._mapInstance);self._renderMarkers();if($us.usbPreview()||self.options.disableDragging&&!$us.$html.hasClass('no-touch')){self._mapInstance.dragging.disable()}},_geocoder:function(text,markerOptions,popup){var self=this,osmUrl='https://nominatim.openstreetmap.org/search?format=json&limit=1&q='+encodeURI(text);$.getJSON(osmUrl,$.noop).done(function(json){if(!json.length){return} 331var boundingBox=json[0].boundingbox;if(!markerOptions){self.center=[boundingBox[1],boundingBox[3]];self._render()}else{self.marker=L.marker([boundingBox[1],boundingBox[3]],markerOptions).addTo(self._mapInstance);if(popup){self.marker.bindPopup(popup)}}})},_redraw:function(){var self=this;if(!self._mapInstance||self.$container.is(':hidden')){return} 332$ush.timeout(self._mapInstance.invalidateSize.bind(self._mapInstance,!0),100)},_renderMarkers:function(){var self=this;if(!self.options.markers.length){return} 333var mainOptions={};for(var i=0;i<self.options.markers.length;i++){var item=self.options.markers[i];if(i==0){if(self.options.icon!=_null){var mainMarkerSizes=self.options.icon.size[0],markerImg=L.icon({iconUrl:self.options.icon.url,iconSize:mainMarkerSizes,});markerImg.options.iconAnchor=[mainMarkerSizes/2,mainMarkerSizes];markerImg.options.popupAnchor=[0,-mainMarkerSizes];mainOptions.icon=markerImg} 334var marker=L.marker(self.center,mainOptions).addTo(self._mapInstance);if(item.html){if(item.infowindow){marker.bindPopup(item.html).openPopup()}else{marker.bindPopup(item.html)}}}else{var markerOptions={};if(item.marker_img!=_null){var markerSizes=item.marker_size[0],markerImg=L.icon({iconUrl:item.marker_img[0],iconSize:markerSizes,});markerImg.options.iconAnchor=[markerSizes/2,markerSizes];markerImg.options.popupAnchor=[0,-markerSizes];markerOptions.icon=markerImg}else{markerOptions=mainOptions} 335var matches=$ush.removeSpaces(item.address).match(_REGEXP_EXTRACT_COORDINATES_);if(matches){self.marker=L.marker([matches[1],matches[2]],markerOptions).addTo(self._mapInstance);if(item.html){self.marker.bindPopup(item.html)}}else{self._geocoder(item.address,markerOptions,item.html)}}}}});$.fn.wLmaps=function(options){options=options||{};return this.each(function(){this._wLmaps=new $us.wLmaps(this,$ush.clone(options))})};$(function(){$('.w-map.provider_osm').wLmaps()})}(jQuery);!function($,_undefined){"use strict";var _originalUrl;$us.usPopup=function(container){const self=this;self.$container=$(container);self.$content=$('.w-popup-box-content',self.$container);self.$closer=$('.w-popup-closer',self.$container);self._events={show:self.show.bind(self),afterShow:self.afterShow.bind(self),handleCloseViaButton:self.handleCloseViaButton.bind(self),handleCloseViaLink:self.handleCloseViaLink.bind(self),handleCloseViaWrap:self.handleCloseViaWrap.bind(self),afterHide:self.afterHide.bind(self),keyup:(e)=>{if(e.keyCode===$ush.ESC_KEYCODE){self.hide();self.$trigger[0].focus()}},scroll:()=>{$us.$document.trigger('scroll')},touchmove:(e)=>{self.savePopupSizes();if((self.popupSizes.wrapHeight>self.popupSizes.contentHeight)||$(e.target).closest('.w-popup-box').length===0){e.preventDefault()}},tabFocusTrap:self.tabFocusTrap.bind(self)};self.isDesktop=!jQuery.isMobile;self.forListItem=self.$container.hasClass('for_list-item');
335self.transitionEndEvent=(navigator.userAgent.search(/webkit/i)>0)?'webkitTransitionEnd':'transitionend';self.$trigger=$('.w-popup-trigger',self.$container);self.triggerType=self.$trigger.usMod('type');self.triggerOptions=$ush.toPlainObject(self.$trigger.data('options'));if(self.triggerType==='load'){let _timeoutHandle;if(self.$container.css('display')!=='none'){const delay=$ush.parseInt(self.triggerOptions.delay);_timeoutHandle=$ush.timeout(self.show.bind(self),delay*1000)} 336self.$container.on('usb.refreshedEntireNode',()=>{if(_timeoutHandle){$ush.clearTimeout(_timeoutHandle)} 337self.$overlay.remove();self.$wrap.remove()})}else if(self.triggerType==='selector'){const selector=self.$trigger.data('selector');if(selector){$us.$body.on('click',selector,self._events.show)}}else{self.$trigger.on('click',self._events.show)} 338self.$wrap=$('.w-popup-wrap',self.$container);self.$box=$('.w-popup-box',self.$container);self.$overlay=$('.w-popup-overlay',self.$container);self.$closer.on('click',self._events.handleCloseViaButton);self.$wrap.on('click','a',self._events.handleCloseViaLink).on('click',self._events.handleCloseViaWrap);self.$media=$('video,audio',self.$box);self.$wVideos=$('.w-video',self.$box);self.timer=null;self.ajaxData={action:'us_list_item_popup_content',};if(self.forListItem&&self.$container.is('[onclick]')){$.extend(self.ajaxData,self.$container[0].onclick()||{});self.ajaxData.post_id=self.$container.parents('.w-grid-item').attr('data-id');self.$container.removeAttr('onclick')} 339self.popupSizes={wrapHeight:0,contentHeight:0,}};$us.usPopup.prototype={isKeyboardUsed:function(e){return e.pointerType&&!['mouse','touch','pen'].includes(e.pointerType)},show:function(e){const self=this;if(e!==_undefined){e.preventDefault()} 340if(self.$content.is(':empty')){$ush.timeout(self.loadItemContent.bind(self))} 341if(self.triggerType==='load'&&!$us.usbPreview()){const uniqueId=$ush.toString(self.triggerOptions.uniqueId),cookieName='us_popup_'+uniqueId;if(uniqueId){if($ush.getCookie(cookieName)!==null){return} 342const daysUntilNextShow=$ush.parseFloat(self.triggerOptions.daysUntilNextShow);$ush.setCookie(cookieName,'shown',daysUntilNextShow||365)}} 343$ush.clearTimeout(self.timer);self.$overlay.appendTo($us.$body).show();self.$wrap.appendTo($us.$body).css('display','flex');if(!self.isDesktop){self.$wrap.on('touchmove',self._events.touchmove);$us.$document.on('touchmove',self._events.touchmove)} 344$us.$body.on('keyup',self._events.keyup);self.$wrap.on('scroll.noPreventDefault',self._events.scroll);self.timer=$ush.timeout(self._events.afterShow,25);$us.$document.on('keydown.usPopup',self._events.tabFocusTrap);$us.$document.trigger('usPopupOpened',[self.$container]);if(e){self.$closer[0].focus({preventScroll:!0})}},afterShow:function(){const self=this;$ush.clearTimeout(self.timer);self.$overlay.addClass('active');self.$box.addClass('active');if(window.$us!==_undefined&&$us.$canvas!==_undefined){$us.$canvas.trigger('contentChange',{elm:self.$container})} 345if(self.$wVideos.length){self.$wVideos.each((_,wVideo)=>{const $wVideoSource=$('[data-src]',wVideo);const $videoTag=$wVideoSource.parent('video');const src=$wVideoSource.data('src');if(!src){return} 346$wVideoSource.attr('src',src);if($videoTag.length>0){$videoTag[0].load()}})} 347$us.$window.trigger('resize');$us.$document.trigger('usPopup.afterShow',self)},loadItemContent:function(){const self=this;if(!self.forListItem){return} 348$.ajax({url:$us.ajaxUrl,type:'POST',dataType:'json',data:self.ajaxData,beforeSend:()=>{self.$content.html('<div class="g-preloader type_1"></div>')},success:(res)=>{if(res.success&&res.data){self.$content.html(res.data);$us.$document.trigger('usPopup.itemContentLoaded',self)}},})},hide:function(){const self=this;$ush.clearTimeout(self.timer);$us.$body.off('keyup',self._events.keyup);self.$overlay.on(self.transitionEndEvent,self._events.afterHide);self.$overlay.removeClass('active');self.$box.removeClass('active');self.$wrap.off('scroll.noPreventDefault',self._events.scroll);$us.$document.off('touchmove',self._events.touchmove);self.timer=$ush.timeout(self._events.afterHide,1000);$us.$document.off('keydown.usPopup')},handleCloseViaLink:function(e){const self=this;const $elm=$(e.currentTarget);const place=$elm.attr('href');if(place.indexOf('#')===-1){return} 349if(place!=='#'&&place.indexOf('#')===0&&$(place,self.$wrap).length>0){return}
350if($elm.hasClass('flex-prev')||$elm.hasClass('flex-next')){return} 351self.hide()},handleCloseViaButton:function(e){const self=this;e.stopPropagation();self.hide() 352if(self.isKeyboardUsed(e)){self.$trigger[0].focus()}},handleCloseViaWrap:function(e){const self=this;if(self.$box.has(e.target).length===0){self.hide()} 353if(self.isKeyboardUsed(e)){self.$trigger[0].focus()}},afterHide:function(){const self=this;$ush.clearTimeout(self.timer);self.$overlay.off(self.transitionEndEvent,self._events.afterHide);self.$overlay.appendTo(self.$container).hide();self.$wrap.appendTo(self.$container).hide();$us.$document.trigger('usPopupClosed');$us.$window.trigger('resize',!0).trigger('usPopup.afterHide',self);if(self.$media.length>0){self.$media.trigger('pause')} 354if(self.$wVideos.length){self.$wVideos.each((_,wVideo)=>{const $wVideoSource=$('[src]',wVideo);if(!$wVideoSource.data('src')){$wVideoSource.attr('data-src',$wVideoSource.attr('src'))} 355$wVideoSource.attr('src','')})}},savePopupSizes:function(){const self=this;self.popupSizes.wrapHeight=self.$wrap.height();self.popupSizes.contentHeight=self.$content.outerHeight(!0)},tabFocusTrap:function(e,$wrap,$popupCloser,triggerElm){const self=this;self.$wrap=$wrap||self.$wrap;self.$closer=$popupCloser||self.$closer;if(self.$wrap.hasClass('l-popup')){$us.$document.on('usPopupClosed',()=>{if($ush.isNode(triggerElm)){triggerElm.focus()}})} 356if(e.keyCode!==$ush.TAB_KEYCODE){return} 357const focusableSelectors=['a[href]','area[href]','input:not([disabled])','select:not([disabled])','textarea:not([disabled])','button:not([disabled])','iframe','object','embed','[tabindex]:not([tabindex="-1"])','[contenteditable]','video[controls] source'].join();const $focusable=$(focusableSelectors,self.$wrap).filter((_,node)=>{if($(node).is('video[controls], source')){return!0} 358return $(node).is(':visible')});if(!$focusable.length){e.preventDefault();self.$closer[0].focus();return} 359const firstElement=$focusable.first()[0];const lastElement=$focusable.last()[0];const target=e.target;if(!$.contains(self.$wrap[0],target)&&$us.$html.hasClass('us_popup_is_opened')&&!$(target).hasClass('w-popup-closer')){e.preventDefault();if(e.shiftKey){lastElement.focus()}else{firstElement.focus()} 360return} 361if(e.shiftKey&&target===firstElement){e.preventDefault();lastElement.focus()}else if(!e.shiftKey&&target===lastElement){e.preventDefault();firstElement.focus()}}};$.extend($us.usPopup.prototype,{popupPost:function(gridList){if(!gridList.hasClass('open_items_in_popup')){return} 362const self=this;self.gridList=gridList;self.$popupPost=$('.l-popup',gridList);self.$popupPostBox=$('.l-popup-box',self.$popupPost);self.$popupPostFrame=$('.l-popup-box-content-frame',self.$popupPost);self.$popupPostToPrev=$('.l-popup-arrow.to_prev',self.$popupPost);self.$popupPostToNext=$('.l-popup-arrow.to_next',self.$popupPost);self.$popupPostCloser=$('.l-popup-closer',self.$popupPost);self.$list=$('.w-grid-list',gridList);$.extend(self._events,{closePostInPopup:self.closePostInPopup.bind(self),closePostInPopupByEsc:self.closePostInPopupByEsc.bind(self),loadPostInPopup:self.loadPostInPopup.bind(self),navInPopup:self.navInPopup.bind(self),openPostInPopup:self.openPostInPopup.bind(self),setPostInPopup:self.setPostInPopup.bind(self)});$us.$body.append(self.$popupPost);self.$list.on('click','.w-grid-item:not(.custom-link) .w-grid-item-anchor',self._events.openPostInPopup);self.$popupPostFrame.on('load',self._events.loadPostInPopup);self.$popupPost.on('click','.l-popup-arrow',self._events.navInPopup).on('click','.l-popup-closer, .l-popup-box',self._events.closePostInPopup)},setPostInPopup:function(index){const self=this;var $node=$('> *:eq('+$ush.parseInt(index)+')',self.$list);if(self.gridList.hasClass('type_carousel')){$node=$('.owl-item:eq('+$ush.parseInt(index)+')',self.$list)}
363const url=$ush.toString($('[href]:first',$node).attr('href'));if(!url){console.error('No url to loaded post');return} 364const $prev=$node.prev(':not(.custom-link)');const $next=$node.next(':not(.custom-link)');var pageTemplate=self.$popupPostBox.data('page-template');pageTemplate=pageTemplate?`&us_popup_page_template=${pageTemplate}`:'';self.$popupPostToPrev.data('index',$prev.index()).attr('title',$('.post_title',$prev).text()).toggleClass('hidden',!$prev.length);self.$popupPostToNext.data('index',$next.index()).attr('title',$('.post_title',$next).text()).toggleClass('hidden',!$next.length);self.$popupPostBox.addClass('loading');self.$popupPostBox.off('transitionend webkitTransitionEnd oTransitionEnd MSTransitionEnd');self.$popupPostFrame.attr('src',url+(url.includes('?')?'&':'?')+'us_iframe=1'+pageTemplate);history.replaceState(null,null,url)},openPostInPopup:function(e){const self=this;if($us.$window.width()<=$us.canvasOptions.disablePostPopupWidth){return} 365e.stopPropagation();e.preventDefault();if(!_originalUrl){_originalUrl=location.href} 366if(self.gridList.hasClass('type_carousel')){self.setPostInPopup($(e.target).closest('.owl-item').index())}else{self.setPostInPopup($(e.target).closest('.w-grid-item').index())} 367self.$popupPost.addClass('active');self.$popupPostBox.addClass('loading');$us.$document.trigger('usPopupOpened',[self.$popupPost,self.$popupPostCloser,e.target]);$ush.timeout(()=>{self.$popupPostBox.addClass('show')},25)},loadPostInPopup:function(){const self=this;self.$popupPost.on('keyup.usCloseLightbox',self._events.closePostInPopupByEsc);$('body',self.$popupPostFrame.contents()).on('keyup.usCloseLightbox',self._events.closePostInPopupByEsc)},navInPopup:function(e){this.setPostInPopup($(e.target).data('index'))},closePostInPopup:function(){const self=this;self.$popupPost.addClass('closing');self.$popupPostFrame.attr('src','about:blank');self.$popupPostBox.removeClass('show').one('transitionend webkitTransitionEnd oTransitionEnd MSTransitionEnd',$ush.debounce(()=>{self.$popupPost.removeClass('active closing');self.$popupPostToPrev.addClass('hidden');self.$popupPostToNext.addClass('hidden');$us.$document.trigger('usPopupClosed')},1));self.$popupPost.off('keyup.usCloseLightbox');if(_originalUrl){history.replaceState(null,null,_originalUrl)}},closePostInPopupByEsc:function(e){const self=this;if(e.keyCode===$ush.ESC_KEYCODE&&self.$popupPost.hasClass('active')){self.closePostInPopup()}},});$.fn.usPopup=function(options){return this.each(function(){$(this).data('usPopup',new $us.usPopup(this,options))})};$(()=>$('.w-popup').usPopup());$us.$document.on('usPostList.itemsLoaded usGrid.itemsLoaded',(_,$items)=>{$('.w-popup',$items).usPopup()});$us.$document.on('usPopupOpened',(e,$popup,$popupCloser,triggerElm)=>{if($popup.hasClass('l-popup')){if(e){$popupCloser[0].focus({preventScroll:!0})} 368$us.$document.on('keydown.usPopup',(e)=>{$us.usPopup.prototype.tabFocusTrap(e,$popup,$popupCloser,triggerElm)})}});$us.$document.on('usPopupClosed',()=>$us.$document.off('keydown.usPopup'))}(jQuery);!function($,undefined){"use strict";var _window=window,_body=document.body;var abs=Math.abs,max=Math.max,min=Math.min,floor=Math.floor,round=Math.round;_window.$us=_window.$us||{};_window.$ush=_window.$ush||{};const _TRANSLATE_FACTOR_=7;function scroll(){return{top:_window.scrollY||_window.pageYOffset,}} 369function areEffectsDisabled(){return $us.canvasOptions.disableEffectsWidth>=_body.clientWidth} 370var _lastState={bodyHeight:$ush.parseInt(_body.clientHeight),effectsDisabled:areEffectsDisabled(),};function ScrollEffects(){var self=this;self.elms=[];self._events={onScroll:self._onScroll.bind(self),onContentChange:self._onContentChange.bind(self),};$us.$window.on('scroll.noPreventDefault',self._events.onScroll).on('resize',$ush.debounce(self._events.onContentChange,25));$us.$canvas.on('contentChange',$ush.debounce(self._events.onContentChange,1))} 371ScrollEffects.prototype={addElms:function(elms){var self=this;if(!Array.isArray(elms)){elms=[elms]} 372elms.map(function(element){if($ush.isNode(element)){for(var i in self.elms){if(self.elms[i].node===element){self.elms[i].removeEffects();self.elms.splice(i,1);break}} 373self.elms.push(new SE_Manager(element))}})},_onContentChange:function(){var self=this;
373var effectsDisabled=areEffectsDisabled();if(_lastState.effectsDisabled!==effectsDisabled){_lastState.effectsDisabled=effectsDisabled;self.elms.map(function(element){element[effectsDisabled?'removeEffects':'applyEffects']()})} 374var bodyHeight=$ush.parseInt(_body.clientHeight);if(_lastState.bodyHeight!==bodyHeight){_lastState.bodyHeight=bodyHeight;self.elms.map(function(element){element.setInitialData()})}},_onScroll:function(){var self=this;if(areEffectsDisabled()){return} 375self.elms.map(function(element){if(!element.isInViewport()){element.node.classList.remove('in_viewport');return} 376element.node.classList.add('in_viewport');requestAnimationFrame(()=>element.applyEffects())})}};$us.scrollEffects=new ScrollEffects;function SE_Manager(node){var self=this;self.node=node;self.offsetTop=-0;self.nearestTop=-0;self.currentHeight=-0;self.initialData={top:-0,height:-0,};self._config={start_position:'0%',end_position:'100%',from_initial_position:0,translate_y:0,translate_y_direction:'up',translate_y_speed:'0.5x',translate_x:0,translate_x_direction:'left',translate_x_speed:'0.5x',opacity:0,opacity_direction:'out-in',blur:0,blur_direction:'out-in',blur_speed:'0.5x',scale:0,scale_direction:'up',scale_speed:'0.5x',delay:'0.1s',};var $node=$(node);$.extend(self._config,$node.data('us-scroll')||{});$node.removeAttr('data-us-scroll');self.setInitialData();node.classList.toggle('in_viewport',self.isInViewport());if(!areEffectsDisabled()){self.applyEffects()} 377$ush.timeout(function(){node.style.setProperty('--scroll-delay',self.getParam('delay'))},100)} 378SE_Manager.prototype={setInitialData:function(){var self=this,rect=$ush.$rect(self.node);self.currentHeight=rect.height;self.initialData.height=rect.height;self.initialData.top=scroll().top+rect.top-$ush.parseFloat(self.style('--translateY'));self.translateSpeedY=$ush.parseFloat(self.getParam('translate_y_speed'));self.translateSpeedX=$ush.parseFloat(self.getParam('translate_x_speed'));if($ush.parseInt(self.getParam('from_initial_position'))!=1){var startPosition=$ush.parseInt(self.getParam('start_position')),endPosition=$ush.parseInt(self.getParam('end_position')),centerPosition=50;self.centerScrollTop=$ush.parseInt(self.initialData.top+self.initialData.height/2-_window.innerHeight/2);self.startScrollTop=self.centerScrollTop-_window.innerHeight/2+(startPosition/100*_window.innerHeight)-self.initialData.height*(centerPosition-startPosition)/100;self.endScrollTop=self.centerScrollTop-_window.innerHeight/2+(endPosition/100*_window.innerHeight)+self.initialData.height*(endPosition-centerPosition)/100}},isInViewport:function(){var self=this,rect=$ush.$rect(self.node),initialTop=self.initialData.top-scroll().top,nearestTop=min(initialTop,rect.top)-_window.innerHeight;self.offsetTop=rect.top;self.nearestTop=nearestTop;self.currentHeight=rect.height;return(nearestTop<=0&&(max(initialTop,rect.top)+rect.height)>=0)},hasClass:function(className){return className&&this.node.classList.contains(className)},style:function(prop,value){var elmStyle=this.node.style;if($ush.isUndefined(value)){return elmStyle.getPropertyValue(prop)}else{elmStyle.setProperty(prop,$ush.toString(value))}},getParam:function(name,defaultValue){var self=this;return(self.node.dataset[name]||self._config[name]||defaultValue)},getPositionData:function(offsetY,distanceInPx){var self=this,currentPosition=100-($ush.parseFloat(offsetY)/$ush.parseFloat(distanceInPx)*100),startPosition=$ush.parseInt(self.getParam('start_position')),endPosition=$ush.parseInt(self.getParam('end_position'));return{start:startPosition,current:$ush.limitValueByRange(currentPosition,0,100),end:endPosition,diff:(endPosition-startPosition),}},applyEffects:function(){var self=this;self.setTranslateY();self.setTranslateX();self.setOpacity();self.setScale();self.setBlur()},removeEffects:function(){var self=this;['--translateY','--translateX','--opacity','--scale'].map(function(varName){self.style(varName,'')})},getPosition:function(translateSpeed){var self=this,position=-0;if($ush.parseInt(self.getParam('from_initial_position'))==1){position=scroll().top*translateSpeed}else{if(self.startScrollTop<scroll().top&&scroll().top<self.endScrollTop){position=(scroll().top-self.centerScrollTop)*translateSpeed}else if(self.startScrollTop>=scroll().top){position=(self.startScrollTop-self.centerScrollTop)*translateSpeed}else if(self.endScrollTop<=scroll().top){position=(self.endScrollTop-self.centerScrollTop)*translateSpeed}} 379if(self.initialData.top+self.initialData.height+position>=_lastState.bodyHeight){return _lastState.bodyHeight-self.initialData.top-self.initialData.height-1} 380return position},setTranslateY:function(){var self=this;if(!self.hasClass('has_translate_y')||!self.translateSpeedY){return} 381var translateSpeed=self.translateSpeedY,translateY;if(self.getParam('translate_y_direction')!=='down'){translateSpeed=-translateSpeed} 382self.style('--translateY',self.getPosition(translateSpeed)+'px')},setTranslateX:function(){var self=this;if(!self.hasClass('has_translate_x')||!self.translateSpeedX){return} 383var translateSpeed=self.translateSpeedX,translateX;if(self.getParam('translate_x_direction')!=='right'){translateSpeed=-translateSpeed} 384self.style('--translateX',self.getPosition(translateSpeed)+'px')},setOpacity:function(){var self=this;var opacityDirection=self.getParam('opacity_direction'),opacity;if(!self.hasClass('has_opacity')||!opacityDirection){return} 385if($ush.parseInt(self.getParam('from_initial_position'))==1){var initialPosition=$ush.parseInt(self.initialData.top+self.initialData.height/2);opacity=min(1,scroll().top/initialPosition)}
385else{var elmHeight=self.initialData.height,viewportHeight=_window.innerHeight,offsetTop=viewportHeight+self.nearestTop+elmHeight,position=self.getPositionData(offsetTop,viewportHeight+elmHeight),startPosition=position.start,currentPosition=$ush.limitValueByRange(round(position.current),startPosition,position.end);opacity=((100/position.diff)*(currentPosition-startPosition))/100} 386if(opacityDirection==='in-out'){opacity=1-opacity}else if(opacityDirection==='in-out-in'){opacity=(2*opacity)-1}else if(opacityDirection==='out-in-out'){opacity=(opacity>0.5?2:0)-(2*opacity)} 387self.style('--opacity',$ush.limitValueByRange(abs(opacity).toFixed(3),0,1))},setBlur:function(){var self=this;var blur,blurDirection=self.getParam('blur_direction'),blurSpeed=$ush.parseFloat(self.getParam('blur_speed'));if(!self.hasClass('has_blur')||!blurDirection||!blurSpeed){return} 388if($ush.parseInt(self.getParam('from_initial_position'))==1){var initialPosition=$ush.parseInt(self.initialData.top+self.initialData.height/2);blur=min(1,scroll().top/initialPosition)}else{var elmHeight=self.initialData.height,viewportHeight=_window.innerHeight,offsetTop=viewportHeight+self.nearestTop+elmHeight,position=self.getPositionData(offsetTop,viewportHeight+elmHeight),startPosition=position.start,currentPosition=$ush.limitValueByRange(round(position.current),startPosition,position.end);blur=((100/position.diff)*(currentPosition-startPosition))/100} 389if(blurDirection==='out-in'){blur=1-blur}else if(blurDirection==='out-in-out'){blur=(2*blur)-1}else if(blurDirection==='in-out-in'){blur=(blur>0.5?2:0)-(2*blur)} 390self.style('--blur',abs((blur*blurSpeed*20)).toFixed(2)+'px')},setScale:function(){var self=this;var scaleSpeed=$ush.parseFloat(self.getParam('scale_speed'));if(!self.hasClass('has_scale')||!scaleSpeed){return} 391if(self.getParam('scale_direction')==='down'){scaleSpeed=-scaleSpeed} 392if($ush.parseInt(self.getParam('from_initial_position'))==1){var scale=1+(scroll().top/_window.innerHeight*100)/50*scaleSpeed}else{var elmHeight=max(self.initialData.height,self.currentHeight),viewportHeight=_window.innerHeight,offsetTop=viewportHeight+self.nearestTop+elmHeight,position=self.getPositionData(offsetTop,viewportHeight+elmHeight),currentPosition=$ush.limitValueByRange(round(position.current),position.start,position.end);var scale=1-(50-currentPosition)/50*scaleSpeed} 393if(scale<0){scale=0} 394self.style('--scale',scale)}};$.fn.usScrollEffects=function(){return this.each(function(){$us.scrollEffects.addElms(this)})};$(function(){$('[data-us-scroll]').usScrollEffects()})}(jQuery);!function($,_undefined){"use strict";window.$us=window.$us||{};const SLIDE_DURATION=250;function usSimpleNav(container){const self=this;self.$container=$(container);if(self.$container.length===0){return} 395self.isCatNavElm=self.$container.hasClass('for_category_nav');if(self.isCatNavElm){self.$items=$('.cat-item',self.$container);self.$menuItemHasChildren=$('.cat-item:has(>.children)',self.$container)}else{self.$items=$('.menu-item',self.$container);self.$menuItemHasChildren=$('.menu-item-has-children',self.$container)} 396self.$menuItemHasChildren.each((_,section)=>{const $section=$(section);if(!$section.hasClass('current-menu-ancestor')&&!$section.hasClass('current-cat-ancestor')&&!$section.hasClass('current-cat')){self.closeSection($section)}});self._events={toggleAccordionSection:self.toggleAccordionSection.bind(self),keyboardToggleAccordionSection:self.keyboardToggleAccordionSection.bind(self),} 397if(self.isCatNavElm){self.$container.on('click','.cat-item:has(>.children) > a',self._events.toggleAccordionSection).on('keydown','.cat-item:has(>.children) > a',self._events.keyboardToggleAccordionSection)}else{self.$container.on('click','.menu-item-has-children > a',self._events.toggleAccordionSection).on('keydown','.menu-item-has-children > a',self._events.keyboardToggleAccordionSection)}} 398$.extend(usSimpleNav.prototype,{toggleAccordionSection:function(e){const self=this;const $target=$(e.target);var $clickedSection;if(self.isCatNavElm){$clickedSection=$target.closest('.cat-item:has(>.children)')}else{$clickedSection=$target.closest('.menu-item-has-children')} 399e.preventDefault();e.stopImmediatePropagation();if(!self.$container.hasClass('allow_multiple_open')){self.closeOtherSections($clickedSection)} 400if($clickedSection.hasClass('expanded')){self.closeSection($clickedSection)}else{self.openSection($clickedSection)} 401return!1},keyboardToggleAccordionSection:function(e){const self=this;const $target=$(e.target);
401if([$ush.ENTER_KEYCODE,$ush.SPACE_KEYCODE].includes(e.keyCode||e.which)&&($target.parent('.menu-item-has-children').length!==0||$target.parent('.cat-item:has(>.children)').length!==0)){e.preventDefault();self.toggleAccordionSection(e)}},openSection:function($section){const self=this;$section.addClass('expanded');$section.children('a').attr('aria-expanded','true');if(self.isCatNavElm){$section.children('.children').slideDownCSS(SLIDE_DURATION)}else{$section.children('.sub-menu').slideDownCSS(SLIDE_DURATION)}},closeSection:function($section){const self=this;$section.removeClass('expanded');$section.children('a').attr('aria-expanded','false');if(self.isCatNavElm){$section.children('.children').slideUpCSS(SLIDE_DURATION)}else{$section.children('.sub-menu').slideUpCSS(SLIDE_DURATION)}},closeOtherSections:function($selectedSection){const self=this;const $selectedSectionParents=$selectedSection.parentsUntil('.w-menu');self.$menuItemHasChildren.each((_,section)=>{const $section=$(section);if(section!=$selectedSection[0]&&$section.hasClass('expanded')&&!$selectedSectionParents.is($section)){self.closeSection($section)}})}});$.fn.usSimpleNav=function(){return this.each(function(){$(this).data('usSimpleNav',new usSimpleNav(this))})};$('.w-menu.type_accordion').usSimpleNav()}(jQuery);(function($,_undefined){"use strict";window.$us.YTPlayers=window.$us.YTPlayers||{};$us.wVideo=function(container){const self=this;self.$container=$(container);self.$videoH=$('.w-video-h',self.$container);self.cookieName=self.$container.data('cookie-name');self.isWithOverlay=self.$container.hasClass('with_overlay');if($ush.isSafari){(self.getVideoElement()||{load:$.noop}).load()} 402if(!self.cookieName&&!self.isWithOverlay){return} 403self.data={};if(self.$container.is('[onclick]')){self.data=self.$container[0].onclick()||{};if(!$us.usbPreview())self.$container.removeAttr('onclick');} 404self._events={hideOverlay:self._hideOverlay.bind(self),confirm:self._confirm.bind(self)};if(self.cookieName){self.$container.on('click','.action_confirm_load',self._events.confirm)} 405self.$container.one('click','> *',self._events.hideOverlay)};$.extend($us.wVideo.prototype,{getVideoElement:function(){return $('video',this.$videoH)[0]||null},_confirm:function(){const self=this;if($('input[name^='+self.cookieName+']:checked',self.$container).length){$ush.setCookie(self.cookieName,1,365)} 406if(self.isWithOverlay){self.insertPlayer()}else{self.$videoH.html($ush.base64Decode(''+$('script[type="text/template"]',self.$container).text())).removeAttr('data-cookie-name')}},_hideOverlay:function(e){const self=this;e.preventDefault();if(self.$container.is('.with_overlay')){self.$container.removeAttr('style').removeClass('with_overlay')} 407if(!self.cookieName){self.insertPlayer()}},insertPlayer:function(){const self=this;var data=$.extend({player_id:'',player_api:'',player_html:''},self.data||{});if(data.player_api&&!$('script[src="'+data.player_api+'"]',document.head).length){$('head').append('<script src="'+data.player_api+'"></script>')} 408self.$videoH.html(data.player_html);const videoElement=self.getVideoElement();if(!data.player_api&&$ush.isNode(videoElement)){if(self.isWithOverlay&&$ush.isSafari){videoElement.setAttribute('preload','metadata')} 409videoElement.play()}}});$.fn.wVideo=function(){return this.each(function(){$(this).data('wVideo',new $us.wVideo(this))})};$(()=>$('.w-video').wVideo());$us.$document.on('usPostList.itemsLoaded usGrid.itemsLoaded',(_,$items)=>{$('.w-video',$items).wVideo()})})(jQuery);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.