PageSourceSearch

https://www.meteopt.com/wp-content/uploads/us-assets/www.meteopt.com.js?ver=f131d9bf

js meteopt.com collected 2026-10-02 13:15:17 UTC 97,939 bytes, 288 lines download raw bytes

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,'&quot;')};$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";const _window=window;_window.$ush=_window.$ush||{};_window.$us.canvas=_window.$us.canvas||{};function toBoolean(value){if(typeof value=='boolean'){return value}
184if(typeof value=='string'){value=value.trim();return value.toLocaleLowerCase()=='true'||value=='1'}
185return!!parseInt(value)}
186function 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}
187self.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]}
188self._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')}
189self.$container.on('transitionend webkitTransitionEnd oTransitionEnd MSTransitionEnd',$ush.debounce(()=>{self.trigger.call(self,'transitionEnd')},1))}
190$.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}
191const beforeContent=getComputedStyle(self.$container[0],':before').content;var height=0;
191if(beforeContent&&['none','auto'].includes(beforeContent)===!1){height=beforeContent.replace(/[^+\d]/g,'')}
192if(!height){height=self.$container.outerHeight()}
193return $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}
194if(!self.isStickyAutoHidden()){height+=self.getHeight()}
195return 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},setView:function(newState){const self=this;if(newState==self.state){return}
196var 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'}
197self._setPos(pos);self._setBg(bg);self._setShadow(shadow);self.orientation=orientation
198self.state=newState
199$us.$document.trigger('usHeader.update_view');if(self.stickyAutoHideEnabled()){self.$container.removeClass('down')}},_setPos:function(pos){const self=this;if(pos===self.pos){return}
200self.$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}
201if((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)}
202if((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'})}
203self.$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}
204e.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}
205$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'}
206self.prevScrollTop=scrollTop;if(self.isScrollAtTopPosition()){self._states.scroll_direction='up'}
207if(self.stickyAutoHideEnabled()&&self.isPinned()&&!self._isWithinScrollBoundaries(scrollTop)&&!headerAbovePosition){self._states.sticky_auto_hide=(self.getScrollDirection()==='down');
207self.$container.toggleClass('down',self._states.sticky_auto_hide)}
208if(!self.isFixed()){return}
209var 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)}}
210if(self.isPinned()&&!_window.scrollY){self.changeSticky(!1)}}
211if(self.isHorizontal()&&headerAttachedFirstSection&&!headerAbovePosition&&(self.currentStateIs('default')||self.currentStateIs('laptops'))){var top=($us.canvas.getHeightFirstSection()+self.adminBarHeight);if(self.getHeaderInitialPos()=='bottom'){top-=self.getInitHeight()}
212if(self.stickyEnabled()){var isSticky=_window.scrollY>=top;if(isSticky!=self.isPinned()){self.changeSticky(isSticky)}}
213if(!self.isPinned()&&top!=self.getOffsetTop()){self.$container.css('--heading-below-first-section-top',`${top}px`)}}
214if(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]}
215if(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,}}
216if(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)}
217self._isVerticalScrollable();self.scroll()}});_window.USHeader=USHeader;$us.header=new USHeader($us.headerSettings||{})}(jQuery);!function($){"use strict";const REGEXP_SPACE=/\p{Zs}/ug;function usItext(container){const self=this;self.$container=$(container);self.$parts=$('.w-itext-part',self.$container);if(!self.$parts.length){return}
218self.opts=self.$container[0].onclick()||{};if(!$us.usbPreview()){self.$container.removeAttr('onclick')}
219self.partsData=[];self._destroyed=!1;self.type=self.$container.usMod('type')||'fadeIn';self.isCharsAnimate=self.type.includes('Chars');self.isDisablePartAnimation=self.$container.hasClass('disable_part_animation');self.spaceChar=' ';self.isWidthManaged=!self.isTypingChars();self.$parts.each((_,node)=>{const $part=$(node);const $states=$('.w-itext-state',$part);const statesText=[];$states.each((_,node)=>{statesText.push($(node).text())});const part={$part,$states,statesText,widths:[],minWidth:0,maxWidth:0,index:0,stabilized:!1};self.partsData.push(part);self.refreshWidths(part);if(self.isCharsAnimate){$part.html(statesText[0].replace(REGEXP_SPACE,self.spaceChar))}
220if(self.isWidthManaged){self.applySizing(part)}});self.partsData.forEach((part)=>{if(self.isCharsAnimate){self.startCharsAnimate(part)}else{part.loopTimer=$ush.timeout(()=>self.startSimpleAnimate(part),self.opts.delay+self.opts.duration)}});if(self.isWidthManaged){self._onResize=$ush.debounce(()=>self.remeasure(),100);$us.$window.on('resize',self._onResize)}};$.extend(usItext.prototype,{isTypingChars:function(){return this.type==='typingChars'},measureWidths:function(part){const self=this;if(self.isCharsAnimate){return part.statesText.map((text)=>{const $m=$('<span class="measure"></span>').text(text.replace(REGEXP_SPACE,self.spaceChar)).appendTo(part.$part);const w=$m[0].offsetWidth;$m.remove();return w})}
221part.$states.css('width','');if(self.isDisablePartAnimation){const $active=part.$states.filter('.is-active');const widths=$.map(part.$states,(node)=>{part.$states.removeClass('is-active');
221node.classList.add('is-active');return node.offsetWidth});part.$states.removeClass('is-active');($active.length?$active:part.$states.eq(0)).addClass('is-active');return widths}
222return $.map(part.$states,(node)=>node.offsetWidth)},refreshWidths:function(part){part.widths=this.measureWidths(part);part.minWidth=part.widths.length?Math.min(...part.widths):0;part.maxWidth=part.widths.length?Math.max(...part.widths):0},needsStabilization:function(part){const self=this,$part=part.$part,el=self.$container[0],saved=$part.attr('style');$part.addClass('notransition');$part.css({'min-width':'','width':part.minWidth+'px'});const hMin=el.offsetHeight;$part.css('width',part.maxWidth+'px');const hMax=el.offsetHeight;$part.removeClass('notransition');if(saved==null){$part.removeAttr('style')}else{$part.attr('style',saved)}
223return hMin!==hMax},applySizing:function(part){const self=this;part.stabilized=self.isDisablePartAnimation||self.needsStabilization(part);if(part.stabilized){part.$part.css({'width':'','min-width':part.maxWidth+'px'});if(!self.isCharsAnimate){part.$states.css('width','100%')}}else{part.$part.css({'min-width':'','width':part.widths[part.index]+'px'});if(!self.isCharsAnimate){part.$states.css('width','')}}},remeasure:function(){const self=this;self.partsData.forEach((part)=>{part.$part.css({'width':'','min-width':''});self.refreshWidths(part);self.applySizing(part)})},startSimpleAnimate:function(part){const self=this;if(self._destroyed){return}
224if(!self.$container.hasClass('animation_started')){self.$container.addClass('animation_started')}
225const nextIndex=(part.index+1)%part.$states.length;const $currentEl=part.$states.eq(part.index);const $nextEl=part.$states.eq(nextIndex);$currentEl.removeClass('is-active');$nextEl.addClass('is-active');if(self.isWidthManaged&&!part.stabilized){part.$part.css('width',part.widths[nextIndex]+'px')}
226part.index=nextIndex;$ush.clearTimeout(part.loopTimer);part.loopTimer=$ush.timeout(()=>self.startSimpleAnimate(part),self.opts.delay+self.opts.duration)},startCharsAnimate:function(part){$ush.timeout(()=>this.charsNext(part),this.opts.delay)},charsNext:function(part){if(this._destroyed){return}
227part.index=(part.index+1)%part.statesText.length;this.renderChars(part)},renderChars:function(part){const self=this;if(self._destroyed){return}
228const nextValue=part.statesText[part.index];const $node=part.$part;const duration=$ush.parseInt(self.opts.duration)||1000;var curDuration=duration;var startDelay=0;const $curSpan=$node.wrapInner('<span></span>').children('span');const $nextSpan=$('<span class="measure"></span>').text(nextValue.replace(REGEXP_SPACE,self.spaceChar)).appendTo($node);const nextWidth=$nextSpan.width();if(self.isTypingChars()){const oldValue=$curSpan.text().trim()+' ';const removeDuration=Math.floor(curDuration/3);startDelay=removeDuration*oldValue.length;for(var i=0;i<oldValue.length;i ++){$ush.timeout(()=>{const t=$curSpan.text();$curSpan.text(t.substring(0,t.length-1))},removeDuration*i)}}
229$ush.timeout(()=>{$node.addClass('notransition');if(self.isWidthManaged&&!part.stabilized){$node.css('width',$node.width())}
230$ush.timeout(()=>{$node.removeClass('notransition');if(self.isWidthManaged&&!part.stabilized){$node.css('width',nextWidth)}},25);if(!self.isTypingChars()){$curSpan.addClass('hidden-state').css('width',nextWidth)}
231$nextSpan.removeClass('measure').prependTo($node).empty();const stagger=60;for(var i=0;i<nextValue.length;i++){const char=nextValue[i];if(!self.isTypingChars()){const $char=$('<span class="w-itext-char"></span>').text(char).css('animation-delay',(i*stagger)+'ms').appendTo($nextSpan);$char.addClass('is-active');$char[0].onanimationend=()=>{$char.css('display','inline')}}else{$ush.timeout(()=>{$nextSpan[0].appendChild(document.createTextNode(char))},curDuration*i)}}
232if(self.isTypingChars()){curDuration*=(nextValue.length+1)}else{curDuration=duration+(nextValue.length*stagger)}
233$ush.timeout(()=>{self.clearChars(part,nextValue)},curDuration+Math.floor(self.opts.delay/3))},startDelay)},clearChars:function(part,text){const self=this;if(self._destroyed){return}
234part.$part.html(text.replace(REGEXP_SPACE,self.spaceChar));$ush.timeout(()=>self.charsNext(part),self.opts.delay)},destroy:function(){const self=this;self._destroyed=!0;if(self._onResize){$us.$window.off('resize',self._onResize)}
234(self.partsData||[]).forEach((part)=>{$ush.clearTimeout(part.loopTimer)})}});$.fn.usItext=function(){return this.each(function(){const prevInstance=$(this).data('usItext');if(prevInstance){prevInstance.destroy()}
235$(this).data('usItext',new usItext(this))})};$(()=>$('.w-itext').usItext())}(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}
236self.$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),}
237const $opts=$('.w-nav-options:first',self.$container);if($opts.is('[onclick]')){self.opts=$opts[0].onclick()||{};$opts.remove()}
238self.$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)}
239$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')})}
240self.$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)}})}
241self.$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')}
242const $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}
243e.preventDefault();const $target=$(e.currentTarget);const $menuItem=$target.parent();if($menuItem.hasClass('opened')){return location.assign($target.attr('href'))}
244self.setOpened($menuItem,!0);const onOutsideClick=(e)=>{if($.contains($menuItem[0],e.target)){return}
245self.setOpened($menuItem,!1);$us.$body.off('touchstart',onOutsideClick)};$us.$body.on('touchstart.noPreventDefault',onOutsideClick)})}
246$us.$document.on('keydown',(e)=>{if($ush.isSafari){self.$mobileMenu.removeAttr('style')}
247if(e.keyCode===$ush.ESC_KEYCODE&&self.type==='mobile'&&self.mobileNavOpened){self.closeMobileMenu()}
248if(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'))}
249$us.$html.addClass('w-nav-open');self.$mobileMenu.attr('aria-expanded','true');$us.mobileNavOpened++;$us.$document.on('focusin',self._events.closeMobileMenuOnFocusIn)}else{self.closeMobileMenu()}
250$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}
251const $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}
252self.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)}
253$us.mobileNavOpened--;self.$mobileMenu[0].focus();$us.$canvas.trigger('contentChange');$us.$document.off('focusin',self._events.closeMobileMenuOnFocusIn).off('mouseup touchend.noPreventDefault',self._events.closeOnClickOutside);self.setOpened(self.$items,!1)},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}
254if(dropByLabel||(self.opts.mobileBehavior&&$menuItem.hasClass('menu-item-has-children')&&!dropByArrow)){return}
255self.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}
256self.$itemsHasChildren.off('mouseover',self._events.closeOnMouseOver).one('mouseover',self._events.closeOnMouseOver);if($menuItem.hasClass('opened')){self.setOpened($menuItem,!1);return}
257self.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}
258e.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}
259const $menuItem=$(e.currentTarget).closest('.menu-item');const isOpened=$menuItem.hasClass('opened');if(!self.keyboardNavEvent){e.preventDefault();e.stopPropagation()}else{return}
260self.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}
261const $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}
262e.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}
263const 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}
264const $itemHasChildren=$(e.currentTarget).closest('.menu-item-has-children');const dropdown=$itemHasChildren.children('.w-nav-list')[0];if(!dropdown){return}
265if($itemHasChildren.closest('.menu-item.has_cols, .menu-item.has_side_panel, .menu-item.dropdown_full_width').length){return}
266const 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.
266stopPropagation();self.toggleMobileMenu(e)}
267if(keyCode===$ush.TAB_KEYCODE){if(e.shiftKey&&self.$anchors.index($target)===0){self.closeMobileMenu()}}}
268if(self.type==='desktop'){if(keyCode===$ush.ESC_KEYCODE){if($menuItemLevel1.hasClass('opened')){$menuItemLevel1.children('.w-nav-item-toggle').focus()}
269self.setOpened(self.$items,!1)}
270if([$ush.UP_KEYCODE,$ush.DOWN_KEYCODE].includes(keyCode)){self.switchSidePanelTab(e)}
271self.keyboardNavEvent=!0;$ush.timeout(()=>{self.keyboardNavEvent=!1},1)}},resize:function(){const self=this;if(self.$container.length===0){return}
272const 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')}
273self.setOpened(self.$items,!1);self.headerOrientation=$us.header.orientation;self.type=newType;self.$container.usMod('type',newType)}
274self.$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($){"use strict";$.fn.usMessage=function(){return this.each(function(){var $this=$(this),$closer=$this.find('.w-message-close');$closer.click(function(){$this.wrap('<div></div>');var $wrapper=$this.parent();$wrapper.css({overflow:'hidden',height:$this.outerHeight(!0)});$wrapper.performCSSTransition({height:0},300,function(){$wrapper.remove();$us.$canvas.trigger('contentChange')},'cubic-bezier(.4,0,.2,1)')})})};$(function(){$('.w-message').usMessage()})})(jQuery);!function($){"use strict";function UsSearch(container){this.$container=$(container);this.$form=this.$container.find('.w-search-form');this.$btnOpen=this.$container.find('.w-search-open');this.$btnClose=this.$container.find('.w-search-close');this.$input=this.$form.find('[name="s"]');this.$overlay=this.$container.find('.w-search-background');this.$window=$(window);this.searchOverlayInitRadius=25;this.isFullScreen=this.$container.hasClass('layout_fullscreen');this.isWithRipple=this.$container.hasClass('with_ripple');this._bindEvents()}
275$.extend(UsSearch.prototype,{_bindEvents:function(){this.$btnOpen.on('click.usSearch',(e)=>{this.searchShow(e)});this.$btnClose.on('touchstart.noPreventDefault click',(e)=>{this.searchHide(e)});this.$form.on('keydown',(e)=>{if(e.keyCode===$ush.ESC_KEYCODE&&this.$container.hasClass('active')){this.searchHide(e)}});this.$btnOpen.on('keydown',(e)=>{if(e.keyCode===$ush.SPACE_KEYCODE){e.preventDefault();this.searchShow(e)}})},searchHide:function(e){e.stopPropagation();if(e.type==='touchstart'){e.preventDefault()}
276if(this.isFullScreen){$ush.timeout(()=>{this.$btnOpen.one('click.usSearch',(evt)=>{this.searchShow(evt)})},100)}
277this.$btnOpen.removeAttr('tabindex').attr('aria-expanded','false');this.$container.removeClass('active');this.$input.blur();if(this.isWithRipple&&this.isFullScreen){this.$form.css({transition:'opacity 0.4s'});$ush.timeout(()=>{this.$overlay.removeClass('overlay-on').addClass('overlay-out').css({'transform':'scale(0.1)'});this.$form.css('opacity',0);$ush.debounce(()=>{this.$form.css('display','none');this.$overlay.css('display','none')},600)},25)}
278if(e.type!=='touchstart'){this.$btnOpen.trigger('focus')}
279$us.$document.off('focusin.usSearch')},calculateOverlayScale:function(){const searchPos=this.$btnOpen.offset();const searchWidth=this.$btnOpen.width();const searchHeight=this.$btnOpen.height();searchPos.top-=this.$window.scrollTop();searchPos.left-=this.$window.scrollLeft();const overlayX=searchPos.left+searchWidth/2;const overlayY=searchPos.top+searchHeight/2;const winWidth=$us.canvas.winWidth;const winHeight=$us.canvas.winHeight;const dx=Math.pow(Math.max(winWidth-overlayX,overlayX),2);const dy=Math.pow(Math.max(winHeight-overlayY,overlayY),2);const overlayRadius=Math.sqrt(dx+dy);return[(overlayRadius+15)/this.searchOverlayInitRadius,overlayX,overlayY]},searchShow:function(e){e.preventDefault();$us.$document.on('focusin.usSearch',this.closeFormOnTabOutside.bind(this));if(this.isFullScreen){this.$btnOpen.off('click.usSearch')}
280this.$container.addClass('active');this.$btnOpen.attr({'tabindex':'-1','aria-expanded':'true'});if(this.isWithRipple&&this.isFullScreen){const calculateOverlayScale=this.calculateOverlayScale();const overlayScale=calculateOverlayScale[0];const overlayX=calculateOverlayScale[1];const overlayY=calculateOverlayScale[2];this.$overlay.css({width:this.searchOverlayInitRadius*2,height:this.searchOverlayInitRadius*2,left:overlayX,top:overlayY,"margin-left":-this.searchOverlayInitRadius,"margin-top":-this.searchOverlayInitRadius});this.$overlay.removeClass('overlay-out').show();this.$form.css({opacity:0,display:'block',transition:'opacity 0.4s 0.3s'});$ush.timeout(()=>{this.$overlay.addClass('overlay-on').css({"transform":"scale("+overlayScale+")"});this.$form.css('opacity',1)},25)}
281$ush.timeout(()=>{this.$input.trigger('focus')},25)},closeFormOnTabOutside:function(e){if(!$.contains(this.$form[0],$us.$document[0].activeElement)){this.searchHide(e)}},});$.fn.wSearch=function(){return this.each(function(){$(this).data('wSearch',new UsSearch(this))})};$(function(){jQuery('.l-header .w-search').wSearch()})}(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}
282self.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)}
283self.$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),}
284if(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)}}
285$.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')}
286e.preventDefault();e.stopImmediatePropagation();if(!self.$container.hasClass('allow_multiple_open')){self.closeOtherSections($clickedSection)}
287if($clickedSection.hasClass('expanded')){self.closeSection($clickedSection)}else{self.openSection($clickedSection)}
288return!1},keyboardToggleAccordionSection:function(e){const self=this;const $target=$(e.target);
288if([$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);

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.