/*! For license information please see script.js.LICENSE.txt */
!function(){var e={662:function(){window.initMap=function(){const e=new google.maps.Map(document.getElementById("map"),{mapId:"dd59284da1db90a7",center:latLng,zoom:mapZoom,streetViewControl:!1,zoomControl:!1,disableDefaultUI:!0,scrollwheel:!1});window.map=e;const t=new google.maps.marker.AdvancedMarkerView({map:e,position:latLng,content:mapMarker});google.maps.event.addListener(t,"click",(function(){window.open(mapMarker.href,mapMarker.target)}))},window.initMap=initMap}},t={};function i(n){var r=t[n];if(void 0!==r)return r.exports;var s=t[n]={exports:{}};return e[n](s,s.exports,i),s.exports}!function(){"use strict";const e=(e,t=1e4)=>(e=parseFloat(e+"")||0,Math.round((e+Number.EPSILON)*t)/t),t=function(e){if(!(e&&e instanceof Element&&e.offsetParent))return!1;const t=e.scrollHeight>e.clientHeight,i=window.getComputedStyle(e).overflowY,n=-1!==i.indexOf("hidden"),r=-1!==i.indexOf("visible");return t&&!n&&!r},n=function(e,i=void 0){return!(!e||e===document.body||i&&e===i)&&(t(e)?e:n(e.parentElement,i))},r=function(e){var t=(new DOMParser).parseFromString(e,"text/html").body;if(t.childElementCount>1){for(var i=document.createElement("div");t.firstChild;)i.appendChild(t.firstChild);return i}return t.firstChild},s=e=>`${e||""}`.split(" ").filter((e=>!!e)),o=(e,t,i)=>{e&&s(t).forEach((t=>{e.classList.toggle(t,i||!1)}))};class a{constructor(e){Object.defineProperty(this,"pageX",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"pageY",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"clientX",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"clientY",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"id",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"time",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"nativePointer",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.nativePointer=e,this.pageX=e.pageX,this.pageY=e.pageY,this.clientX=e.clientX,this.clientY=e.clientY,this.id=self.Touch&&e instanceof Touch?e.identifier:-1,this.time=Date.now()}}const l={passive:!1};class c{constructor(e,{start:t=(()=>!0),move:i=(()=>{}),end:n=(()=>{})}){Object.defineProperty(this,"element",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"startCallback",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"moveCallback",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"endCallback",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"currentPointers",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(this,"startPointers",{enumerable:!0,configurable:!0,writable:!0,value:[]}),this.element=e,this.startCallback=t,this.moveCallback=i,this.endCallback=n;for(const e of["onPointerStart","onTouchStart","onMove","onTouchEnd","onPointerEnd","onWindowBlur"])this[e]=this[e].bind(this);this.element.addEventListener("mousedown",this.onPointerStart,l),this.element.addEventListener("touchstart",this.onTouchStart,l),this.element.addEventListener("touchmove",this.onMove,l),this.element.addEventListener("touchend",this.onTouchEnd),this.element.addEventListener("touchcancel",this.onTouchEnd)}onPointerStart(e){if(!e.buttons||0!==e.button)return;const t=new a(e);this.currentPointers.some((e=>e.id===t.id))||this.triggerPointerStart(t,e)&&(window.addEventListener("mousemove",this.onMove),window.addEventListener("mouseup",this.onPointerEnd),window.addEventListener("blur",this.onWindowBlur))}onTouchStart(e){for(const t of Array.from(e.changedTouches||[]))this.triggerPointerStart(new a(t),e);window.addEventListener("blur",this.onWindowBlur)}onMove(e){const t=this.currentPointers.slice(),i="changedTouches"in e?Array.from(e.changedTouches||[]).map((e=>new a(e))):[new a(e)],n=[];for(const e of i){const t=this.currentPointers.findIndex((t=>t.id===e.id));t<0||(n.push(e),this.currentPointers[t]=e)}n.length&&this.moveCallback(e,this.currentPointers.slice(),t)}onPointerEnd(e){e.buttons>0&&0!==e.button||(this.triggerPointerEnd(e,new a(e)),window.removeEventListener("mousemove",this.onMove),window.removeEventListener("mouseup",this.onPointerEnd),window.removeEventListener("blur",this.onWindowBlur))}onTouchEnd(e){for(const t of Array.from(e.changedTouches||[]))this.triggerPointerEnd(e,new a(t))}triggerPointerStart(e,t){return!!this.startCallback(t,e,this.currentPointers.slice())&&(this.currentPointers.push(e),this.startPointers.push(e),!0)}triggerPointerEnd(e,t){const i=this.currentPointers.findIndex((e=>e.id===t.id));i<0||(this.currentPointers.splice(i,1),this.startPointers.splice(i,1),this.endCallback(e,t,this.currentPointers.slice()))}onWindowBlur(){this.clear()}clear(){for(;this.currentPointers.length;){const e=this.currentPointers[this.currentPointers.length-1];this.currentPointers.splice(this.currentPointers.length-1,1),this.startPointers.splice(this.currentPointers.length-1,1),this.endCallback(new Event("touchend",{bubbles:!0,cancelable:!0,clientX:e.clientX,clientY:e.clientY}),e,this.currentPointers.slice())}}stop(){this.element.removeEventListener("mousedown",this.onPointerStart,l),this.element.removeEventListener("touchstart",this.onTouchStart,l),this.element.removeEventListener("touchmove",this.onMove,l),this.element.removeEventListener("touchend",this.onTouchEnd),this.element.removeEventListener("touchcancel",this.onTouchEnd),window.removeEventListener("mousemove",this.onMove),window.removeEventListener("mouseup",this.onPointerEnd),window.removeEventListener("blur",this.onWindowBlur)}}function d(e,t){return t?Math.sqrt(Math.pow(t.clientX-e.clientX,2)+Math.pow(t.clientY-e.clientY,2)):0}function u(e,t){return t?{clientX:(e.clientX+t.clientX)/2,clientY:(e.clientY+t.clientY)/2}:e}const h=e=>"object"==typeof e&&null!==e&&e.constructor===Object&&"[object Object]"===Object.prototype.toString.call(e),p=(e,...t)=>{const i=t.length;for(let n=0;n<i;n++){const i=t[n]||{};Object.entries(i).forEach((([t,i])=>{const n=Array.isArray(i)?[]:{};e[t]||Object.assign(e,{[t]:n}),h(i)?Object.assign(e[t],p(n,i)):Array.isArray(i)?Object.assign(e,{[t]:[...i]}):Object.assign(e,{[t]:i})}))}return e},f=function(e,t){return e.split(".").reduce(((e,t)=>"object"==typeof e?e[t]:void 0),t)};class m{constructor(e={}){Object.defineProperty(this,"options",{enumerable:!0,configurable:!0,writable:!0,value:e}),Object.defineProperty(this,"events",{enumerable:!0,configurable:!0,writable:!0,value:new Map}),this.setOptions(e);for(const e of Object.getOwnPropertyNames(Object.getPrototypeOf(this)))e.startsWith("on")&&"function"==typeof this[e]&&(this[e]=this[e].bind(this))}setOptions(e){this.options=e?p({},this.constructor.defaults,e):{};for(const[e,t]of Object.entries(this.option("on")||{}))this.on(e,t)}option(e,...t){let i=f(e,this.options);return i&&"function"==typeof i&&(i=i.call(this,this,...t)),i}optionFor(e,t,i,...n){let r=f(t,e);var s;"string"!=typeof(s=r)||isNaN(s)||isNaN(parseFloat(s))||(r=parseFloat(r)),"true"===r&&(r=!0),"false"===r&&(r=!1),r&&"function"==typeof r&&(r=r.call(this,this,e,...n));let o=f(t,this.options);return o&&"function"==typeof o?r=o.call(this,this,e,...n,r):void 0===r&&(r=o),void 0===r?i:r}cn(e){const t=this.options.classes;return t&&t[e]||""}localize(e,t=[]){e=String(e).replace(/\{\{(\w+).?(\w+)?\}\}/g,((e,t,i)=>{let n="";return i?n=this.option(`${t[0]+t.toLowerCase().substring(1)}.l10n.${i}`):t&&(n=this.option(`l10n.${t}`)),n||(n=e),n}));for(let i=0;i<t.length;i++)e=e.split(t[i][0]).join(t[i][1]);return e.replace(/\{\{(.*?)\}\}/g,((e,t)=>t))}on(e,t){let i=[];"string"==typeof e?i=e.split(" "):Array.isArray(e)&&(i=e),this.events||(this.events=new Map),i.forEach((e=>{let i=this.events.get(e);i||(this.events.set(e,[]),i=[]),i.includes(t)||i.push(t),this.events.set(e,i)}))}off(e,t){let i=[];"string"==typeof e?i=e.split(" "):Array.isArray(e)&&(i=e),i.forEach((e=>{const i=this.events.get(e);if(Array.isArray(i)){const e=i.indexOf(t);e>-1&&i.splice(e,1)}}))}emit(e,...t){[...this.events.get(e)||[]].forEach((e=>e(this,...t))),"*"!==e&&this.emit("*",e,...t)}}Object.defineProperty(m,"version",{enumerable:!0,configurable:!0,writable:!0,value:"5.0.28"}),Object.defineProperty(m,"defaults",{enumerable:!0,configurable:!0,writable:!0,value:{}});class g extends m{constructor(e={}){super(e),Object.defineProperty(this,"plugins",{enumerable:!0,configurable:!0,writable:!0,value:{}})}attachPlugins(e={}){const t=new Map;for(const[i,n]of Object.entries(e)){const e=this.option(i),r=this.plugins[i];r||!1===e?r&&!1===e&&(r.detach(),delete this.plugins[i]):t.set(i,new n(this,e||{}))}for(const[e,i]of t)this.plugins[e]=i,i.attach()}detachPlugins(e){e=e||Object.keys(this.plugins);for(const t of e){const e=this.plugins[t];e&&e.detach(),delete this.plugins[t]}return this.emit("detachPlugins"),this}}var v;!function(e){e[e.Init=0]="Init",e[e.Error=1]="Error",e[e.Ready=2]="Ready",e[e.Panning=3]="Panning",e[e.Mousemove=4]="Mousemove",e[e.Destroy=5]="Destroy"}(v||(v={}));const b=["a","b","c","d","e","f"],y={PANUP:"Move up",PANDOWN:"Move down",PANLEFT:"Move left",PANRIGHT:"Move right",ZOOMIN:"Zoom in",ZOOMOUT:"Zoom out",TOGGLEZOOM:"Toggle zoom level",TOGGLE1TO1:"Toggle zoom level",ITERATEZOOM:"Toggle zoom level",ROTATECCW:"Rotate counterclockwise",ROTATECW:"Rotate clockwise",FLIPX:"Flip horizontally",FLIPY:"Flip vertically",FITX:"Fit horizontally",FITY:"Fit vertically",RESET:"Reset",TOGGLEFS:"Toggle fullscreen"},w={content:null,width:"auto",height:"auto",panMode:"drag",touch:!0,dragMinThreshold:3,lockAxis:!1,mouseMoveFactor:1,mouseMoveFriction:.12,zoom:!0,pinchToZoom:!0,panOnlyZoomed:"auto",minScale:1,maxScale:2,friction:.25,dragFriction:.35,decelFriction:.05,click:"toggleZoom",dblClick:!1,wheel:"zoom",wheelLimit:7,spinner:!0,bounds:"auto",infinite:!1,rubberband:!0,bounce:!0,maxVelocity:75,transformParent:!1,classes:{content:"f-panzoom__content",isLoading:"is-loading",canZoomIn:"can-zoom_in",canZoomOut:"can-zoom_out",isDraggable:"is-draggable",isDragging:"is-dragging",inFullscreen:"in-fullscreen",htmlHasFullscreen:"with-panzoom-in-fullscreen"},l10n:y},x='<div class="f-spinner"><svg viewBox="0 0 50 50"><circle cx="25" cy="25" r="20"></circle><circle cx="25" cy="25" r="20"></circle></svg></div>',T=e=>e&&null!==e&&e instanceof Element&&"nodeType"in e,S=(e,t)=>{e&&s(t).forEach((t=>{e.classList.remove(t)}))},_=(e,t)=>{e&&s(t).forEach((t=>{e.classList.add(t)}))},E={a:1,b:0,c:0,d:1,e:0,f:0},C=1e4,M="mousemove",P="drag",O="content";let k=null,L=null;class z extends g{get fits(){return this.contentRect.width-this.contentRect.fitWidth<1&&this.contentRect.height-this.contentRect.fitHeight<1}get isTouchDevice(){return null===L&&(L=window.matchMedia("(hover: none)").matches),L}get isMobile(){return null===k&&(k=/iPhone|iPad|iPod|Android/i.test(navigator.userAgent)),k}get panMode(){return this.options.panMode!==M||this.isTouchDevice?P:M}get panOnlyZoomed(){const e=this.options.panOnlyZoomed;return"auto"===e?this.isTouchDevice:e}get isInfinite(){return this.option("infinite")}get angle(){return 180*Math.atan2(this.current.b,this.current.a)/Math.PI||0}get targetAngle(){return 180*Math.atan2(this.target.b,this.target.a)/Math.PI||0}get scale(){const{a:e,b:t}=this.current;return Math.sqrt(e*e+t*t)||1}get targetScale(){const{a:e,b:t}=this.target;return Math.sqrt(e*e+t*t)||1}get minScale(){return this.option("minScale")||1}get fullScale(){const{contentRect:e}=this;return e.fullWidth/e.fitWidth||1}get maxScale(){return this.fullScale*(this.option("maxScale")||1)||1}get coverScale(){const{containerRect:e,contentRect:t}=this,i=Math.max(e.height/t.fitHeight,e.width/t.fitWidth)||1;return Math.min(this.fullScale,i)}get isScaling(){return Math.abs(this.targetScale-this.scale)>1e-5&&!this.isResting}get isContentLoading(){const e=this.content;return!!(e&&e instanceof HTMLImageElement)&&!e.complete}get isResting(){if(this.isBouncingX||this.isBouncingY)return!1;for(const e of b){const t="e"==e||"f"===e?1e-4:1e-5;if(Math.abs(this.target[e]-this.current[e])>t)return!1}return!(!this.ignoreBounds&&!this.checkBounds().inBounds)}constructor(e,t={},i={}){var n;if(super(t),Object.defineProperty(this,"pointerTracker",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"resizeObserver",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"updateTimer",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"clickTimer",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"rAF",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"isTicking",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"ignoreBounds",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"isBouncingX",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"isBouncingY",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"clicks",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"trackingPoints",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(this,"pwt",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"cwd",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"pmme",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"friction",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"state",{enumerable:!0,configurable:!0,writable:!0,value:v.Init}),Object.defineProperty(this,"isDragging",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"container",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"content",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"spinner",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"containerRect",{enumerable:!0,configurable:!0,writable:!0,value:{width:0,height:0,innerWidth:0,innerHeight:0}}),Object.defineProperty(this,"contentRect",{enumerable:!0,configurable:!0,writable:!0,value:{top:0,right:0,bottom:0,left:0,fullWidth:0,fullHeight:0,fitWidth:0,fitHeight:0,width:0,height:0}}),Object.defineProperty(this,"dragStart",{enumerable:!0,configurable:!0,writable:!0,value:{x:0,y:0,top:0,left:0,time:0}}),Object.defineProperty(this,"dragOffset",{enumerable:!0,configurable:!0,writable:!0,value:{x:0,y:0,time:0}}),Object.defineProperty(this,"current",{enumerable:!0,configurable:!0,writable:!0,value:Object.assign({},E)}),Object.defineProperty(this,"target",{enumerable:!0,configurable:!0,writable:!0,value:Object.assign({},E)}),Object.defineProperty(this,"velocity",{enumerable:!0,configurable:!0,writable:!0,value:{a:0,b:0,c:0,d:0,e:0,f:0}}),Object.defineProperty(this,"lockedAxis",{enumerable:!0,configurable:!0,writable:!0,value:!1}),!e)throw new Error("Container Element Not Found");this.container=e,this.initContent(),this.attachPlugins(Object.assign(Object.assign({},z.Plugins),i)),this.emit("attachPlugins"),this.emit("init");const s=this.content;if(s.addEventListener("load",this.onLoad),s.addEventListener("error",this.onError),this.isContentLoading){if(this.option("spinner")){e.classList.add(this.cn("isLoading"));const t=r(x);!e.contains(s)||s.parentElement instanceof HTMLPictureElement?this.spinner=e.appendChild(t):this.spinner=(null===(n=s.parentElement)||void 0===n?void 0:n.insertBefore(t,s))||null}this.emit("beforeLoad")}else queueMicrotask((()=>{this.enable()}))}initContent(){const{container:e}=this,t=this.cn(O);let i=this.option(O)||e.querySelector(`.${t}`);if(i||(i=e.querySelector("img,picture")||e.firstElementChild,i&&_(i,t)),i instanceof HTMLPictureElement&&(i=i.querySelector("img")),!i)throw new Error("No content found");this.content=i}onLoad(){const{spinner:e,container:t,state:i}=this;e&&(e.remove(),this.spinner=null),this.option("spinner")&&t.classList.remove(this.cn("isLoading")),this.emit("afterLoad"),i===v.Init?this.enable():this.updateMetrics()}onError(){this.state!==v.Destroy&&(this.spinner&&(this.spinner.remove(),this.spinner=null),this.stop(),this.detachEvents(),this.state=v.Error,this.emit("error"))}attachObserver(){var e;const t=()=>{const{container:e,containerRect:t}=this;return Math.abs(t.width-e.getBoundingClientRect().width)>.1||Math.abs(t.height-e.getBoundingClientRect().height)>.1};this.resizeObserver||void 0===window.ResizeObserver||(this.resizeObserver=new ResizeObserver((()=>{this.updateTimer||(t()?(this.onResize(),this.isMobile&&(this.updateTimer=setTimeout((()=>{t()&&this.onResize(),this.updateTimer=null}),500))):this.updateTimer&&(clearTimeout(this.updateTimer),this.updateTimer=null))}))),null===(e=this.resizeObserver)||void 0===e||e.observe(this.container)}detachObserver(){var e;null===(e=this.resizeObserver)||void 0===e||e.disconnect()}attachEvents(){const{container:e}=this;e.addEventListener("click",this.onClick,{passive:!1,capture:!1}),e.addEventListener("wheel",this.onWheel,{passive:!1}),this.pointerTracker=new c(e,{start:this.onPointerDown,move:this.onPointerMove,end:this.onPointerUp}),document.addEventListener(M,this.onMouseMove)}detachEvents(){var e;const{container:t}=this;t.removeEventListener("click",this.onClick,{passive:!1,capture:!1}),t.removeEventListener("wheel",this.onWheel,{passive:!1}),null===(e=this.pointerTracker)||void 0===e||e.stop(),this.pointerTracker=null,document.removeEventListener(M,this.onMouseMove),document.removeEventListener("keydown",this.onKeydown,!0),this.clickTimer&&(clearTimeout(this.clickTimer),this.clickTimer=null),this.updateTimer&&(clearTimeout(this.updateTimer),this.updateTimer=null)}animate(){this.setTargetForce();const e=this.friction,t=this.option("maxVelocity");for(const i of b)e?(this.velocity[i]*=1-e,t&&!this.isScaling&&(this.velocity[i]=Math.max(Math.min(this.velocity[i],t),-1*t)),this.current[i]+=this.velocity[i]):this.current[i]=this.target[i];this.setTransform(),this.setEdgeForce(),!this.isResting||this.isDragging?this.rAF=requestAnimationFrame((()=>this.animate())):this.stop("current")}setTargetForce(){for(const e of b)"e"===e&&this.isBouncingX||"f"===e&&this.isBouncingY||(this.velocity[e]=(1/(1-this.friction)-1)*(this.target[e]-this.current[e]))}checkBounds(e=0,t=0){const{current:i}=this,n=i.e+e,r=i.f+t,s=this.getBounds(),{x:o,y:a}=s,l=o.min,c=o.max,d=a.min,u=a.max;let h=0,p=0;return l!==1/0&&n<l?h=l-n:c!==1/0&&n>c&&(h=c-n),d!==1/0&&r<d?p=d-r:u!==1/0&&r>u&&(p=u-r),Math.abs(h)<1e-4&&(h=0),Math.abs(p)<1e-4&&(p=0),Object.assign(Object.assign({},s),{xDiff:h,yDiff:p,inBounds:!h&&!p})}clampTargetBounds(){const{target:e}=this,{x:t,y:i}=this.getBounds();t.min!==1/0&&(e.e=Math.max(e.e,t.min)),t.max!==1/0&&(e.e=Math.min(e.e,t.max)),i.min!==1/0&&(e.f=Math.max(e.f,i.min)),i.max!==1/0&&(e.f=Math.min(e.f,i.max))}calculateContentDim(e=this.current){const{content:t,contentRect:i}=this,{fitWidth:n,fitHeight:r,fullWidth:s,fullHeight:o}=i;let a=s,l=o;if(this.option("zoom")||0!==this.angle){const i=!(t instanceof HTMLImageElement||"none"!==window.getComputedStyle(t).maxWidth&&"none"!==window.getComputedStyle(t).maxHeight),c=i?s:n,d=i?o:r,u=this.getMatrix(e),h=new DOMPoint(0,0).matrixTransform(u),p=new DOMPoint(0+c,0).matrixTransform(u),f=new DOMPoint(0+c,0+d).matrixTransform(u),m=new DOMPoint(0,0+d).matrixTransform(u),g=Math.abs(f.x-h.x),v=Math.abs(f.y-h.y),b=Math.abs(m.x-p.x),y=Math.abs(m.y-p.y);a=Math.max(g,b),l=Math.max(v,y)}return{contentWidth:a,contentHeight:l}}setEdgeForce(){if(this.ignoreBounds||this.isDragging||this.panMode===M||this.targetScale<this.scale)return this.isBouncingX=!1,void(this.isBouncingY=!1);const{target:e}=this,{x:t,y:i,xDiff:n,yDiff:r}=this.checkBounds(),s=this.option("maxVelocity");let o=this.velocity.e,a=this.velocity.f;0!==n?(this.isBouncingX=!0,n*o<=0?o+=.14*n:(o=.14*n,t.min!==1/0&&(this.target.e=Math.max(e.e,t.min)),t.max!==1/0&&(this.target.e=Math.min(e.e,t.max))),s&&(o=Math.max(Math.min(o,s),-1*s))):this.isBouncingX=!1,0!==r?(this.isBouncingY=!0,r*a<=0?a+=.14*r:(a=.14*r,i.min!==1/0&&(this.target.f=Math.max(e.f,i.min)),i.max!==1/0&&(this.target.f=Math.min(e.f,i.max))),s&&(a=Math.max(Math.min(a,s),-1*s))):this.isBouncingY=!1,this.isBouncingX&&(this.velocity.e=o),this.isBouncingY&&(this.velocity.f=a)}enable(){const{content:e}=this,t=new DOMMatrixReadOnly(window.getComputedStyle(e).transform);for(const e of b)this.current[e]=this.target[e]=t[e];this.updateMetrics(),this.attachObserver(),this.attachEvents(),this.state=v.Ready,this.emit("ready")}onClick(e){var t;"click"===e.type&&0===e.detail&&(this.dragOffset.x=0,this.dragOffset.y=0),this.isDragging&&(null===(t=this.pointerTracker)||void 0===t||t.clear(),this.trackingPoints=[],this.startDecelAnim());const i=e.target;if(!i||e.defaultPrevented)return;if(i.hasAttribute("disabled"))return e.preventDefault(),void e.stopPropagation();if((()=>{const e=window.getSelection();return e&&"Range"===e.type})()&&!i.closest("button"))return;const n=i.closest("[data-panzoom-action]"),r=i.closest("[data-panzoom-change]"),s=n||r,o=s&&T(s)?s.dataset:null;if(o){const t=o.panzoomChange,i=o.panzoomAction;if((t||i)&&e.preventDefault(),t){let i={};try{i=JSON.parse(t)}catch(e){console&&console.warn("The given data was not valid JSON")}return void this.applyChange(i)}if(i)return void(this[i]&&this[i]())}if(Math.abs(this.dragOffset.x)>3||Math.abs(this.dragOffset.y)>3)return e.preventDefault(),void e.stopPropagation();if(i.closest("[data-fancybox]"))return;const a=this.content.getBoundingClientRect(),l=this.dragStart;if(l.time&&!this.canZoomOut()&&(Math.abs(a.x-l.x)>2||Math.abs(a.y-l.y)>2))return;this.dragStart.time=0;const c=t=>{this.option("zoom",e)&&t&&"string"==typeof t&&/(iterateZoom)|(toggle(Zoom|Full|Cover|Max)|(zoomTo(Fit|Cover|Max)))/.test(t)&&"function"==typeof this[t]&&(e.preventDefault(),this[t]({event:e}))},d=this.option("click",e),u=this.option("dblClick",e);u?(this.clicks++,1==this.clicks&&(this.clickTimer=setTimeout((()=>{1===this.clicks?(this.emit("click",e),!e.defaultPrevented&&d&&c(d)):(this.emit("dblClick",e),e.defaultPrevented||c(u)),this.clicks=0,this.clickTimer=null}),350))):(this.emit("click",e),!e.defaultPrevented&&d&&c(d))}addTrackingPoint(e){const t=this.trackingPoints.filter((e=>e.time>Date.now()-100));t.push(e),this.trackingPoints=t}onPointerDown(e,t,i){var n;if(!1===this.option("touch",e))return!1;this.pwt=0,this.dragOffset={x:0,y:0,time:0},this.trackingPoints=[];const r=this.content.getBoundingClientRect();if(this.dragStart={x:r.x,y:r.y,top:r.top,left:r.left,time:Date.now()},this.clickTimer)return!1;if(this.panMode===M&&this.targetScale>1)return e.preventDefault(),e.stopPropagation(),!1;const s=e.composedPath()[0];if(!i.length){if(["TEXTAREA","OPTION","INPUT","SELECT","VIDEO","IFRAME"].includes(s.nodeName)||s.closest("[contenteditable],[data-selectable],[data-draggable],[data-clickable],[data-panzoom-change],[data-panzoom-action]"))return!1;null===(n=window.getSelection())||void 0===n||n.removeAllRanges()}if("mousedown"===e.type)["A","BUTTON"].includes(s.nodeName)||e.preventDefault();else if(Math.abs(this.velocity.a)>.3)return!1;return this.target.e=this.current.e,this.target.f=this.current.f,this.stop(),this.isDragging||(this.isDragging=!0,this.addTrackingPoint(t),this.emit("touchStart",e)),!0}onPointerMove(t,i,r){if(!1===this.option("touch",t))return;if(!this.isDragging)return;if(i.length<2&&this.panOnlyZoomed&&e(this.targetScale)<=e(this.minScale))return;if(this.emit("touchMove",t),t.defaultPrevented)return;this.addTrackingPoint(i[0]);const{content:s}=this,o=u(r[0],r[1]),a=u(i[0],i[1]);let l=0,c=0;if(i.length>1){const e=s.getBoundingClientRect();l=o.clientX-e.left-.5*e.width,c=o.clientY-e.top-.5*e.height}const h=d(r[0],r[1]),p=d(i[0],i[1]);let f=h?p/h:1,m=a.clientX-o.clientX,g=a.clientY-o.clientY;this.dragOffset.x+=m,this.dragOffset.y+=g,this.dragOffset.time=Date.now()-this.dragStart.time;let v=e(this.targetScale)===e(this.minScale)&&this.option("lockAxis");if(v&&!this.lockedAxis)if("xy"===v||"y"===v||"touchmove"===t.type){if(Math.abs(this.dragOffset.x)<6&&Math.abs(this.dragOffset.y)<6)return void t.preventDefault();const e=Math.abs(180*Math.atan2(this.dragOffset.y,this.dragOffset.x)/Math.PI);this.lockedAxis=e>45&&e<135?"y":"x",this.dragOffset.x=0,this.dragOffset.y=0,m=0,g=0}else this.lockedAxis=v;if(n(t.target,this.content)&&(v="x",this.dragOffset.y=0),v&&"xy"!==v&&this.lockedAxis!==v&&e(this.targetScale)===e(this.minScale))return;t.cancelable&&t.preventDefault(),this.container.classList.add(this.cn("isDragging"));const b=this.checkBounds(m,g);this.option("rubberband")?("x"!==this.isInfinite&&(b.xDiff>0&&m<0||b.xDiff<0&&m>0)&&(m*=Math.max(0,.5-Math.abs(.75/this.contentRect.fitWidth*b.xDiff))),"y"!==this.isInfinite&&(b.yDiff>0&&g<0||b.yDiff<0&&g>0)&&(g*=Math.max(0,.5-Math.abs(.75/this.contentRect.fitHeight*b.yDiff)))):(b.xDiff&&(m=0),b.yDiff&&(g=0));const y=this.targetScale,w=this.minScale,x=this.maxScale;y<.5*w&&(f=Math.max(f,w)),y>1.5*x&&(f=Math.min(f,x)),"y"===this.lockedAxis&&e(y)===e(w)&&(m=0),"x"===this.lockedAxis&&e(y)===e(w)&&(g=0),this.applyChange({originX:l,originY:c,panX:m,panY:g,scale:f,friction:this.option("dragFriction"),ignoreBounds:!0})}onPointerUp(e,t,i){if(i.length)return this.dragOffset.x=0,this.dragOffset.y=0,void(this.trackingPoints=[]);this.container.classList.remove(this.cn("isDragging")),this.isDragging&&(this.addTrackingPoint(t),this.panOnlyZoomed&&this.contentRect.width-this.contentRect.fitWidth<1&&this.contentRect.height-this.contentRect.fitHeight<1&&(this.trackingPoints=[]),n(e.target,this.content)&&"y"===this.lockedAxis&&(this.trackingPoints=[]),this.emit("touchEnd",e),this.isDragging=!1,this.lockedAxis=!1,this.state!==v.Destroy&&(e.defaultPrevented||this.startDecelAnim()))}startDecelAnim(){var t;const i=this.isScaling;this.rAF&&(cancelAnimationFrame(this.rAF),this.rAF=null),this.isBouncingX=!1,this.isBouncingY=!1;for(const e of b)this.velocity[e]=0;this.target.e=this.current.e,this.target.f=this.current.f,S(this.container,"is-scaling"),S(this.container,"is-animating"),this.isTicking=!1;const{trackingPoints:n}=this,r=n[0],s=n[n.length-1];let o=0,a=0,l=0;s&&r&&(o=s.clientX-r.clientX,a=s.clientY-r.clientY,l=s.time-r.time);const c=(null===(t=window.visualViewport)||void 0===t?void 0:t.scale)||1;1!==c&&(o*=c,a*=c);let d=0,u=0,h=0,p=0,f=this.option("decelFriction");const m=this.targetScale;if(l>0){h=Math.abs(o)>3?o/(l/30):0,p=Math.abs(a)>3?a/(l/30):0;const e=this.option("maxVelocity");e&&(h=Math.max(Math.min(h,e),-1*e),p=Math.max(Math.min(p,e),-1*e))}h&&(d=h/(1/(1-f)-1)),p&&(u=p/(1/(1-f)-1)),("y"===this.option("lockAxis")||"xy"===this.option("lockAxis")&&"y"===this.lockedAxis&&e(m)===this.minScale)&&(d=h=0),("x"===this.option("lockAxis")||"xy"===this.option("lockAxis")&&"x"===this.lockedAxis&&e(m)===this.minScale)&&(u=p=0);const g=this.dragOffset.x,v=this.dragOffset.y,y=this.option("dragMinThreshold")||0;Math.abs(g)<y&&Math.abs(v)<y&&(d=u=0,h=p=0),(this.option("zoom")&&(m<this.minScale-1e-5||m>this.maxScale+1e-5)||i&&!d&&!u)&&(f=.35),this.applyChange({panX:d,panY:u,friction:f}),this.emit("decel",h,p,g,v)}onWheel(e){var t=[-e.deltaX||0,-e.deltaY||0,-e.detail||0].reduce((function(e,t){return Math.abs(t)>Math.abs(e)?t:e}));const i=Math.max(-1,Math.min(1,t));if(this.emit("wheel",e,i),this.panMode===M)return;if(e.defaultPrevented)return;const n=this.option("wheel");"pan"===n?(e.preventDefault(),this.panOnlyZoomed&&!this.canZoomOut()||this.applyChange({panX:2*-e.deltaX,panY:2*-e.deltaY,bounce:!1})):"zoom"===n&&!1!==this.option("zoom")&&this.zoomWithWheel(e)}onMouseMove(e){this.panWithMouse(e)}onKeydown(e){"Escape"===e.key&&this.toggleFS()}onResize(){this.updateMetrics(),this.checkBounds().inBounds||this.requestTick()}setTransform(){this.emit("beforeTransform");const{current:t,target:i,content:n,contentRect:r}=this,s=Object.assign({},E);for(const n of b){const r="e"==n||"f"===n?C:1e5;s[n]=e(t[n],r),Math.abs(i[n]-t[n])<("e"==n||"f"===n?.51:.001)&&(t[n]=i[n])}let{a:o,b:a,c:l,d:c,e:d,f:u}=s,h=`matrix(${o}, ${a}, ${l}, ${c}, ${d}, ${u})`,p=n.parentElement instanceof HTMLPictureElement?n.parentElement:n;if(this.option("transformParent")&&(p=p.parentElement||p),p.style.transform===h)return;p.style.transform=h;const{contentWidth:f,contentHeight:m}=this.calculateContentDim();r.width=f,r.height=m,this.emit("afterTransform")}updateMetrics(t=!1){var i;if(!this||this.state===v.Destroy)return;if(this.isContentLoading)return;const n=Math.max(1,(null===(i=window.visualViewport)||void 0===i?void 0:i.scale)||1),{container:r,content:s}=this,o=s instanceof HTMLImageElement,a=r.getBoundingClientRect(),l=getComputedStyle(this.container);let c=a.width*n,d=a.height*n;const u=parseFloat(l.paddingTop)+parseFloat(l.paddingBottom),h=c-(parseFloat(l.paddingLeft)+parseFloat(l.paddingRight)),p=d-u;this.containerRect={width:c,height:d,innerWidth:h,innerHeight:p};let f=this.option("width")||"auto",m=this.option("height")||"auto";"auto"===f&&(f=parseFloat(s.dataset.width||"")||(e=>{let t=0;return t=e instanceof HTMLImageElement?e.naturalWidth:e instanceof SVGElement?e.width.baseVal.value:Math.max(e.offsetWidth,e.scrollWidth),t||0})(s)),"auto"===m&&(m=parseFloat(s.dataset.height||"")||(e=>{let t=0;return t=e instanceof HTMLImageElement?e.naturalHeight:e instanceof SVGElement?e.height.baseVal.value:Math.max(e.offsetHeight,e.scrollHeight),t||0})(s));let g=s.parentElement instanceof HTMLPictureElement?s.parentElement:s;this.option("transformParent")&&(g=g.parentElement||g);const b=g.getAttribute("style")||"";g.style.setProperty("transform","none","important"),o&&(g.style.width="",g.style.height=""),g.offsetHeight;const y=s.getBoundingClientRect();let w=y.width*n,x=y.height*n,T=0,S=0;o&&(Math.abs(f-w)>1||Math.abs(m-x)>1)&&({width:w,height:x,top:T,left:S}=((e,t,i,n)=>{const r=i/n;return r>e/t?(i=e,n=e/r):(i=t*r,n=t),{width:i,height:n,top:.5*(t-n),left:.5*(e-i)}})(w,x,f,m)),this.contentRect=Object.assign(Object.assign({},this.contentRect),{top:y.top-a.top+T,bottom:a.bottom-y.bottom+T,left:y.left-a.left+S,right:a.right-y.right+S,fitWidth:w,fitHeight:x,width:w,height:x,fullWidth:f,fullHeight:m}),g.style.cssText=b,o&&(g.style.width=`${w}px`,g.style.height=`${x}px`),this.setTransform(),!0!==t&&this.emit("refresh"),this.ignoreBounds||(e(this.targetScale)<e(this.minScale)?this.zoomTo(this.minScale,{friction:0}):this.targetScale>this.maxScale?this.zoomTo(this.maxScale,{friction:0}):this.state===v.Init||this.checkBounds().inBounds||this.requestTick()),this.updateControls()}calculateBounds(){const{contentWidth:t,contentHeight:i}=this.calculateContentDim(this.target),{targetScale:n,lockedAxis:r}=this,{fitWidth:s,fitHeight:o}=this.contentRect;let a=0,l=0,c=0,d=0;const u=this.option("infinite");if(!0===u||r&&u===r)a=-1/0,c=1/0,l=-1/0,d=1/0;else{let{containerRect:r,contentRect:u}=this,h=e(s*n,C),p=e(o*n,C),{innerWidth:f,innerHeight:m}=r;if(r.width===h&&(f=r.width),r.width===p&&(m=r.height),t>f){c=.5*(t-f),a=-1*c;let e=.5*(u.right-u.left);a+=e,c+=e}if(s>f&&t<f&&(a-=.5*(s-f),c-=.5*(s-f)),i>m){d=.5*(i-m),l=-1*d;let e=.5*(u.bottom-u.top);l+=e,d+=e}o>m&&i<m&&(a-=.5*(o-m),c-=.5*(o-m))}return{x:{min:a,max:c},y:{min:l,max:d}}}getBounds(){const e=this.option("bounds");return"auto"!==e?e:this.calculateBounds()}updateControls(){const t=this,i=t.container,{panMode:n,contentRect:r,fullScale:s,targetScale:a,coverScale:l,maxScale:c,minScale:d}=t;let u={toggleMax:a-d<.5*(c-d)?c:d,toggleCover:a-d<.5*(l-d)?l:d,toggleZoom:a-d<.5*(s-d)?s:d}[t.option("click")||""]||d,h=t.canZoomIn(),p=t.canZoomOut(),f=n===P&&!!this.option("touch"),m=p&&f;if(f&&(e(a)<e(d)&&!this.panOnlyZoomed&&(m=!0),(e(r.width,1)>e(r.fitWidth,1)||e(r.height,1)>e(r.fitHeight,1))&&(m=!0)),e(r.width*a,1)<e(r.fitWidth,1)&&(m=!1),n===M&&(m=!1),o(i,this.cn("isDraggable"),m),!this.option("zoom"))return;let g=h&&e(u)>e(a),v=!g&&!m&&p&&e(u)<e(a);o(i,this.cn("canZoomIn"),g),o(i,this.cn("canZoomOut"),v);for(const e of i.querySelectorAll('[data-panzoom-action="zoomIn"]'))h?(e.removeAttribute("disabled"),e.removeAttribute("tabindex")):(e.setAttribute("disabled",""),e.setAttribute("tabindex","-1"));for(const e of i.querySelectorAll('[data-panzoom-action="zoomOut"]'))p?(e.removeAttribute("disabled"),e.removeAttribute("tabindex")):(e.setAttribute("disabled",""),e.setAttribute("tabindex","-1"));for(const e of i.querySelectorAll('[data-panzoom-action="toggleZoom"],[data-panzoom-action="iterateZoom"]')){h||p?(e.removeAttribute("disabled"),e.removeAttribute("tabindex")):(e.setAttribute("disabled",""),e.setAttribute("tabindex","-1"));const t=e.querySelector("g");t&&(t.style.display=h?"":"none")}}panTo({x:e=this.target.e,y:t=this.target.f,scale:i=this.targetScale,friction:n=this.option("friction"),angle:r=0,originX:s=0,originY:o=0,flipX:a=!1,flipY:l=!1,ignoreBounds:c=!1}){this.state!==v.Destroy&&this.applyChange({panX:e-this.target.e,panY:t-this.target.f,scale:i/this.targetScale,angle:r,originX:s,originY:o,friction:n,flipX:a,flipY:l,ignoreBounds:c})}applyChange({panX:t=0,panY:i=0,scale:n=1,angle:r=0,originX:s=-this.current.e,originY:o=-this.current.f,friction:a=this.option("friction"),flipX:l=!1,flipY:c=!1,ignoreBounds:d=!1,bounce:u=this.option("bounce")}){const h=this.state;if(h===v.Destroy)return;this.rAF&&(cancelAnimationFrame(this.rAF),this.rAF=null),this.friction=a||0,this.ignoreBounds=d;const{current:p}=this,f=p.e,m=p.f,g=this.getMatrix(this.target);let y=(new DOMMatrix).translate(f,m).translate(s,o).translate(t,i);if(this.option("zoom")){if(!d){const e=this.targetScale,t=this.minScale,i=this.maxScale;e*n<t&&(n=t/e),e*n>i&&(n=i/e)}y=y.scale(n)}y=y.translate(-s,-o).translate(-f,-m).multiply(g),r&&(y=y.rotate(r)),l&&(y=y.scale(-1,1)),c&&(y=y.scale(1,-1));for(const t of b)"e"!==t&&"f"!==t&&(y[t]>this.minScale+1e-5||y[t]<this.minScale-1e-5)?this.target[t]=y[t]:this.target[t]=e(y[t],C);(this.targetScale<this.scale||Math.abs(n-1)>.1||this.panMode===M||!1===u)&&!d&&this.clampTargetBounds(),h===v.Init?this.animate():this.isResting||(this.state=v.Panning,this.requestTick())}stop(e=!1){if(this.state===v.Init||this.state===v.Destroy)return;const t=this.isTicking;this.rAF&&(cancelAnimationFrame(this.rAF),this.rAF=null),this.isBouncingX=!1,this.isBouncingY=!1;for(const t of b)this.velocity[t]=0,"current"===e?this.current[t]=this.target[t]:"target"===e&&(this.target[t]=this.current[t]);this.setTransform(),S(this.container,"is-scaling"),S(this.container,"is-animating"),this.isTicking=!1,this.state=v.Ready,t&&(this.emit("endAnimation"),this.updateControls())}requestTick(){this.isTicking||(this.emit("startAnimation"),this.updateControls(),_(this.container,"is-animating"),this.isScaling&&_(this.container,"is-scaling")),this.isTicking=!0,this.rAF||(this.rAF=requestAnimationFrame((()=>this.animate())))}panWithMouse(t,i=this.option("mouseMoveFriction")){if(this.pmme=t,this.panMode!==M||!t)return;if(e(this.targetScale)<=e(this.minScale))return;this.emit("mouseMove",t);const{container:n,containerRect:r,contentRect:s}=this,o=r.width,a=r.height,l=n.getBoundingClientRect(),c=(t.clientX||0)-l.left,d=(t.clientY||0)-l.top;let{contentWidth:u,contentHeight:h}=this.calculateContentDim(this.target);const p=this.option("mouseMoveFactor");p>1&&(u!==o&&(u*=p),h!==a&&(h*=p));let f=.5*(u-o)-c/o*100/100*(u-o);f+=.5*(s.right-s.left);let m=.5*(h-a)-d/a*100/100*(h-a);m+=.5*(s.bottom-s.top),this.applyChange({panX:f-this.target.e,panY:m-this.target.f,friction:i})}zoomWithWheel(t){if(this.state===v.Destroy||this.state===v.Init)return;const i=Date.now();if(i-this.pwt<45)return void t.preventDefault();this.pwt=i;var n=[-t.deltaX||0,-t.deltaY||0,-t.detail||0].reduce((function(e,t){return Math.abs(t)>Math.abs(e)?t:e}));const r=Math.max(-1,Math.min(1,n)),{targetScale:s,maxScale:o,minScale:a}=this;let l=s*(100+45*r)/100;e(l)<e(a)&&e(s)<=e(a)?(this.cwd+=Math.abs(r),l=a):e(l)>e(o)&&e(s)>=e(o)?(this.cwd+=Math.abs(r),l=o):(this.cwd=0,l=Math.max(Math.min(l,o),a)),this.cwd>this.option("wheelLimit")||(t.preventDefault(),e(l)!==e(s)&&this.zoomTo(l,{event:t}))}canZoomIn(){return this.option("zoom")&&(e(this.contentRect.width,1)<e(this.contentRect.fitWidth,1)||e(this.targetScale)<e(this.maxScale))}canZoomOut(){return this.option("zoom")&&e(this.targetScale)>e(this.minScale)}zoomIn(e=1.25,t){this.zoomTo(this.targetScale*e,t)}zoomOut(e=.8,t){this.zoomTo(this.targetScale*e,t)}zoomToFit(e){this.zoomTo("fit",e)}zoomToCover(e){this.zoomTo("cover",e)}zoomToFull(e){this.zoomTo("full",e)}zoomToMax(e){this.zoomTo("max",e)}toggleZoom(e){this.zoomTo(this.targetScale-this.minScale<.5*(this.fullScale-this.minScale)?"full":"fit",e)}toggleMax(e){this.zoomTo(this.targetScale-this.minScale<.5*(this.maxScale-this.minScale)?"max":"fit",e)}toggleCover(e){this.zoomTo(this.targetScale-this.minScale<.5*(this.coverScale-this.minScale)?"cover":"fit",e)}iterateZoom(e){this.zoomTo("next",e)}zoomTo(e=1,{friction:t="auto",originX:i="auto",originY:n="auto",event:r}={}){if(this.isContentLoading||this.state===v.Destroy)return;const{targetScale:s}=this;this.stop();let o=1;if(this.panMode===M&&(r=this.pmme||r),r||"auto"===i||"auto"===n){const e=this.content.getBoundingClientRect(),t=this.container.getBoundingClientRect(),s=r?r.clientX:t.left+.5*t.width,o=r?r.clientY:t.top+.5*t.height;i=s-e.left-.5*e.width,n=o-e.top-.5*e.height}const a=this.fullScale,l=this.maxScale,c=this.coverScale;if("number"==typeof e)o=e/s||1;else if("full"===e)o=a/s||1;else if("cover"===e)o=c/s||1;else if("max"===e)o=l/s||1;else if("fit"===e)o=1/s||1;else if("next"===e){let e=[1,a,l].sort(((e,t)=>e-t)),t=e.findIndex((e=>e>s+1e-5));o=e[t]/s||1/s}t="auto"===t?o>1?.15:.25:t,this.applyChange({scale:o,originX:i,originY:n,friction:t}),r&&this.panMode===M&&this.panWithMouse(r,t)}rotateCCW(){this.applyChange({angle:-90})}rotateCW(){this.applyChange({angle:90})}flipX(){this.applyChange({flipX:!0})}flipY(){this.applyChange({flipY:!0})}fitX(){this.stop("target");const{containerRect:e,contentRect:t,target:i}=this;this.applyChange({panX:.5*e.width-(t.left+.5*t.fitWidth)-i.e,panY:.5*e.height-(t.top+.5*t.fitHeight)-i.f,scale:e.width/t.fitWidth/this.targetScale,originX:0,originY:0,ignoreBounds:!0})}fitY(){this.stop("target");const{containerRect:e,contentRect:t,target:i}=this;this.applyChange({panX:.5*e.width-(t.left+.5*t.fitWidth)-i.e,panY:.5*e.innerHeight-(t.top+.5*t.fitHeight)-i.f,scale:e.height/t.fitHeight/this.targetScale,originX:0,originY:0,ignoreBounds:!0})}toggleFS(){const{container:e}=this,t=this.cn("inFullscreen"),i=this.cn("htmlHasFullscreen");e.classList.toggle(t);const n=e.classList.contains(t);n?(document.documentElement.classList.add(i),document.addEventListener("keydown",this.onKeydown,!0)):(document.documentElement.classList.remove(i),document.removeEventListener("keydown",this.onKeydown,!0)),this.updateMetrics(),this.emit(n?"enterFS":"exitFS")}getMatrix(e=this.current){const{a:t,b:i,c:n,d:r,e:s,f:o}=e;return new DOMMatrix([t,i,n,r,s,o])}reset(e){if(this.state!==v.Init&&this.state!==v.Destroy){this.stop("current");for(const e of b)this.target[e]=E[e];this.target.a=this.minScale,this.target.d=this.minScale,this.clampTargetBounds(),this.isResting||(this.friction=void 0===e?this.option("friction"):e,this.state=v.Panning,this.requestTick())}}destroy(){this.stop(),this.state=v.Destroy,this.detachEvents(),this.detachObserver();const{container:e,content:t}=this,i=this.option("classes")||{};for(const t of Object.values(i))e.classList.remove(t+"");t&&(t.removeEventListener("load",this.onLoad),t.removeEventListener("error",this.onError)),this.detachPlugins()}}Object.defineProperty(z,"defaults",{enumerable:!0,configurable:!0,writable:!0,value:w}),Object.defineProperty(z,"Plugins",{enumerable:!0,configurable:!0,writable:!0,value:{}});const I=function(e,t){let i=!0;return(...n)=>{i&&(i=!1,e(...n),setTimeout((()=>{i=!0}),t))}},R=(e,t)=>{let i=[];return e.childNodes.forEach((e=>{e.nodeType!==Node.ELEMENT_NODE||t&&!e.matches(t)||i.push(e)})),i};var D;!function(e){e[e.Init=0]="Init",e[e.Ready=1]="Ready",e[e.Destroy=2]="Destroy"}(D||(D={}));const F=e=>{if("string"==typeof e||e instanceof HTMLElement)e={html:e};else{const t=e.thumb;void 0!==t&&("string"==typeof t&&(e.thumbSrc=t),t instanceof HTMLImageElement&&(e.thumbEl=t,e.thumbElSrc=t.src,e.thumbSrc=t.src),delete e.thumb)}return Object.assign({html:"",el:null,isDom:!1,class:"",customClass:"",index:-1,dim:0,gap:0,pos:0,transition:!1},e)},B=(e={})=>Object.assign({index:-1,slides:[],dim:0,pos:-1},e);class j extends m{constructor(e,t){super(t),Object.defineProperty(this,"instance",{enumerable:!0,configurable:!0,writable:!0,value:e})}attach(){}detach(){}}class N extends j{constructor(){super(...arguments),Object.defineProperty(this,"isDynamic",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"list",{enumerable:!0,configurable:!0,writable:!0,value:null})}onRefresh(){this.refresh()}build(){let e=this.list;if(!e){e=document.createElement("ul"),_(e,this.cn("list")),e.setAttribute("role","tablist");const t=this.instance.container;t.appendChild(e),_(t,this.cn("hasDots")),this.list=e}return e}refresh(){var e;const t=this.instance.pages.length,i=Math.min(2,this.option("minCount")),n=Math.max(2e3,this.option("maxCount")),r=this.option("dynamicFrom");if(t<i||t>n)return void this.cleanup();const s="number"==typeof r&&t>5&&t>=r,a=!this.list||this.isDynamic!==s||this.list.children.length!==t;a&&this.cleanup();const l=this.build();if(o(l,this.cn("isDynamic"),!!s),a)for(let e=0;e<t;e++)l.append(this.createItem(e));let c,d=0;for(const t of[...l.children]){const i=d===this.instance.page;i&&(c=t),o(t,this.cn("isCurrent"),i),null===(e=t.children[0])||void 0===e||e.setAttribute("aria-selected",i?"true":"false");for(const e of["isBeforePrev","isPrev","isNext","isAfterNext"])S(t,this.cn(e));d++}if(c=c||l.firstChild,s&&c){const e=c.previousElementSibling,t=e&&e.previousElementSibling;_(e,this.cn("isPrev")),_(t,this.cn("isBeforePrev"));const i=c.nextElementSibling,n=i&&i.nextElementSibling;_(i,this.cn("isNext")),_(n,this.cn("isAfterNext"))}this.isDynamic=s}createItem(e=0){var t;const i=document.createElement("li");i.setAttribute("role","presentation");const n=r(this.instance.localize(this.option("dotTpl"),[["%d",e+1]]).replace(/\%i/g,e+""));return i.appendChild(n),null===(t=i.children[0])||void 0===t||t.setAttribute("role","tab"),i}cleanup(){this.list&&(this.list.remove(),this.list=null),this.isDynamic=!1,S(this.instance.container,this.cn("hasDots"))}attach(){this.instance.on(["refresh","change"],this.onRefresh)}detach(){this.instance.off(["refresh","change"],this.onRefresh),this.cleanup()}}Object.defineProperty(N,"defaults",{enumerable:!0,configurable:!0,writable:!0,value:{classes:{list:"f-carousel__dots",isDynamic:"is-dynamic",hasDots:"has-dots",dot:"f-carousel__dot",isBeforePrev:"is-before-prev",isPrev:"is-prev",isCurrent:"is-current",isNext:"is-next",isAfterNext:"is-after-next"},dotTpl:'<button type="button" data-carousel-page="%i" aria-label="{{GOTO}}"><span class="f-carousel__dot" aria-hidden="true"></span></button>',dynamicFrom:11,maxCount:1/0,minCount:2}});const H="disabled",$="next",q="prev";class Y extends j{constructor(){super(...arguments),Object.defineProperty(this,"container",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"prev",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"next",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"isDom",{enumerable:!0,configurable:!0,writable:!0,value:!1})}onRefresh(){const e=this.instance,t=e.pages.length,i=e.page;if(t<2)return void this.cleanup();this.build();let n=this.prev,r=this.next;n&&r&&(n.removeAttribute(H),r.removeAttribute(H),e.isInfinite||(i<=0&&n.setAttribute(H,""),i>=t-1&&r.setAttribute(H,"")))}addBtn(e){var t;const i=this.instance,n=document.createElement("button");n.setAttribute("tabindex","0"),n.setAttribute("title",i.localize(`{{${e.toUpperCase()}}}`)),_(n,this.cn("button")+" "+this.cn(e===$?"isNext":"isPrev"));const r=i.isRTL?e===$?q:$:e;var s;return n.innerHTML=i.localize(this.option(`${r}Tpl`)),n.dataset[`carousel${s=e,s?s.match("^[a-z]")?s.charAt(0).toUpperCase()+s.substring(1):s:""}`]="true",null===(t=this.container)||void 0===t||t.appendChild(n),n}build(){const e=this.instance.container,t=this.cn("container");let{container:i,prev:n,next:r}=this;i||(i=e.querySelector("."+t),this.isDom=!!i),i||(i=document.createElement("div"),_(i,t),e.appendChild(i)),this.container=i,r||(r=i.querySelector("[data-carousel-next]")),r||(r=this.addBtn($)),this.next=r,n||(n=i.querySelector("[data-carousel-prev]")),n||(n=this.addBtn(q)),this.prev=n}cleanup(){this.isDom||(this.prev&&this.prev.remove(),this.next&&this.next.remove(),this.container&&this.container.remove()),this.prev=null,this.next=null,this.container=null,this.isDom=!1}attach(){this.instance.on(["refresh","change"],this.onRefresh)}detach(){this.instance.off(["refresh","change"],this.onRefresh),this.cleanup()}}Object.defineProperty(Y,"defaults",{enumerable:!0,configurable:!0,writable:!0,value:{classes:{container:"f-carousel__nav",button:"f-button",isNext:"is-next",isPrev:"is-prev"},nextTpl:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" tabindex="-1"><path d="M9 3l9 9-9 9"/></svg>',prevTpl:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" tabindex="-1"><path d="M15 3l-9 9 9 9"/></svg>'}});class X extends j{constructor(){super(...arguments),Object.defineProperty(this,"selectedIndex",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"target",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"nav",{enumerable:!0,configurable:!0,writable:!0,value:null})}addAsTargetFor(e){this.target=this.instance,this.nav=e,this.attachEvents()}addAsNavFor(e){this.nav=this.instance,this.target=e,this.attachEvents()}attachEvents(){const{nav:e,target:t}=this;e&&t&&(e.options.initialSlide=t.options.initialPage,e.state===D.Ready?this.onNavReady(e):e.on("ready",this.onNavReady),t.state===D.Ready?this.onTargetReady(t):t.on("ready",this.onTargetReady))}onNavReady(e){e.on("createSlide",this.onNavCreateSlide),e.on("Panzoom.click",this.onNavClick),e.on("Panzoom.touchEnd",this.onNavTouch),this.onTargetChange()}onTargetReady(e){e.on("change",this.onTargetChange),e.on("Panzoom.refresh",this.onTargetChange),this.onTargetChange()}onNavClick(e,t,i){this.onNavTouch(e,e.panzoom,i)}onNavTouch(e,t,i){var n,r;if(Math.abs(t.dragOffset.x)>3||Math.abs(t.dragOffset.y)>3)return;const s=i.target,{nav:o,target:a}=this;if(!o||!a||!s)return;const l=s.closest("[data-index]");if(i.stopPropagation(),i.preventDefault(),!l)return;const c=parseInt(l.dataset.index||"",10)||0,d=a.getPageForSlide(c),u=o.getPageForSlide(c);o.slideTo(u),a.slideTo(d,{friction:(null===(r=null===(n=this.nav)||void 0===n?void 0:n.plugins)||void 0===r?void 0:r.Sync.option("friction"))||0}),this.markSelectedSlide(c)}onNavCreateSlide(e,t){t.index===this.selectedIndex&&this.markSelectedSlide(t.index)}onTargetChange(){var e,t;const{target:i,nav:n}=this;if(!i||!n)return;if(n.state!==D.Ready||i.state!==D.Ready)return;const r=null===(t=null===(e=i.pages[i.page])||void 0===e?void 0:e.slides[0])||void 0===t?void 0:t.index,s=n.getPageForSlide(r);this.markSelectedSlide(r),n.slideTo(s,null===n.prevPage&&null===i.prevPage?{friction:0}:void 0)}markSelectedSlide(e){const t=this.nav;t&&t.state===D.Ready&&(this.selectedIndex=e,[...t.slides].map((t=>{t.el&&t.el.classList[t.index===e?"add":"remove"]("is-nav-selected")})))}attach(){const e=this;let t=e.options.target,i=e.options.nav;t?e.addAsNavFor(t):i&&e.addAsTargetFor(i)}detach(){const e=this,t=e.nav,i=e.target;t&&(t.off("ready",e.onNavReady),t.off("createSlide",e.onNavCreateSlide),t.off("Panzoom.click",e.onNavClick),t.off("Panzoom.touchEnd",e.onNavTouch)),e.nav=null,i&&(i.off("ready",e.onTargetReady),i.off("refresh",e.onTargetChange),i.off("change",e.onTargetChange)),e.target=null}}Object.defineProperty(X,"defaults",{enumerable:!0,configurable:!0,writable:!0,value:{friction:.35}});const V={Navigation:Y,Dots:N,Sync:X},G="animationend",W="isSelected",U="slide";class Z extends g{get axis(){return this.isHorizontal?"e":"f"}get isEnabled(){return this.state===D.Ready}get isInfinite(){let e=!1;const{contentDim:t,viewportDim:i,pages:n,slides:r}=this,s=r[0];return n.length>=2&&s&&t+s.dim>=i&&(e=this.option("infinite")),e}get isRTL(){return"rtl"===this.option("direction")}get isHorizontal(){return"x"===this.option("axis")}constructor(e,t={},i={}){if(super(),Object.defineProperty(this,"bp",{enumerable:!0,configurable:!0,writable:!0,value:""}),Object.defineProperty(this,"lp",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"userOptions",{enumerable:!0,configurable:!0,writable:!0,value:{}}),Object.defineProperty(this,"userPlugins",{enumerable:!0,configurable:!0,writable:!0,value:{}}),Object.defineProperty(this,"state",{enumerable:!0,configurable:!0,writable:!0,value:D.Init}),Object.defineProperty(this,"page",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"prevPage",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"container",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"viewport",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"track",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"slides",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(this,"pages",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(this,"panzoom",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"inTransition",{enumerable:!0,configurable:!0,writable:!0,value:new Set}),Object.defineProperty(this,"contentDim",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"viewportDim",{enumerable:!0,configurable:!0,writable:!0,value:0}),"string"==typeof e&&(e=document.querySelector(e)),!e||!T(e))throw new Error("No Element found");this.container=e,this.slideNext=I(this.slideNext.bind(this),150),this.slidePrev=I(this.slidePrev.bind(this),150),this.userOptions=t,this.userPlugins=i,queueMicrotask((()=>{this.processOptions()}))}processOptions(){var e,t;const i=p({},Z.defaults,this.userOptions);let n="";const r=i.breakpoints;if(r&&h(r))for(const[e,t]of Object.entries(r))window.matchMedia(e).matches&&h(t)&&(n+=e,p(i,t));n===this.bp&&this.state!==D.Init||(this.bp=n,this.state===D.Ready&&(i.initialSlide=(null===(t=null===(e=this.pages[this.page])||void 0===e?void 0:e.slides[0])||void 0===t?void 0:t.index)||0),this.state!==D.Init&&this.destroy(),super.setOptions(i),!1===this.option("enabled")?this.attachEvents():setTimeout((()=>{this.init()}),0))}init(){this.state=D.Init,this.emit("init"),this.attachPlugins(Object.assign(Object.assign({},Z.Plugins),this.userPlugins)),this.emit("attachPlugins"),this.initLayout(),this.initSlides(),this.updateMetrics(),this.setInitialPosition(),this.initPanzoom(),this.attachEvents(),this.state=D.Ready,this.emit("ready")}initLayout(){const{container:e}=this,t=this.option("classes");_(e,this.cn("container")),o(e,t.isLTR,!this.isRTL),o(e,t.isRTL,this.isRTL),o(e,t.isVertical,!this.isHorizontal),o(e,t.isHorizontal,this.isHorizontal);let i=this.option("viewport")||e.querySelector(`.${t.viewport}`);i||(i=document.createElement("div"),_(i,t.viewport),i.append(...R(e,`.${t.slide}`)),e.prepend(i)),i.addEventListener("scroll",this.onScroll);let n=this.option("track")||e.querySelector(`.${t.track}`);n||(n=document.createElement("div"),_(n,t.track),n.append(...Array.from(i.childNodes))),n.setAttribute("aria-live","polite"),i.contains(n)||i.prepend(n),this.viewport=i,this.track=n,this.emit("initLayout")}initSlides(){const{track:e}=this;if(!e)return;const t=[...this.slides],i=[];[...R(e,`.${this.cn(U)}`)].forEach((e=>{if(T(e)){const t=F({el:e,isDom:!0,index:this.slides.length});i.push(t)}}));for(let e of[...this.option("slides",[])||[],...t]){const t=F(e);i.push(t)}this.slides=i;for(let e=0;e<this.slides.length;e++)this.slides[e].index=e;for(const e of i)this.emit("beforeInitSlide",e,e.index),this.emit("initSlide",e,e.index);this.emit("initSlides")}setInitialPage(){const e=this.option("initialSlide");this.page="number"==typeof e?this.getPageForSlide(e):parseInt(this.option("initialPage",0)+"",10)||0}setInitialPosition(){const{track:e,pages:t,isHorizontal:i}=this;if(!e||!t.length)return;let n=this.page;t[n]||(this.page=n=0);const r=(t[n].pos||0)*(this.isRTL&&i?1:-1),s=i?`${r}px`:"0",o=i?"0":`${r}px`;e.style.transform=`translate3d(${s}, ${o}, 0) scale(1)`,this.option("adaptiveHeight")&&this.setViewportHeight()}initPanzoom(){this.panzoom&&(this.panzoom.destroy(),this.panzoom=null);const e=this.option("Panzoom")||{};this.panzoom=new z(this.viewport,p({},{content:this.track,zoom:!1,panOnlyZoomed:!1,lockAxis:this.isHorizontal?"x":"y",infinite:this.isInfinite,click:!1,dblClick:!1,touch:e=>!(this.pages.length<2&&!e.options.infinite),bounds:()=>this.getBounds(),maxVelocity:e=>Math.abs(e.target[this.axis]-e.current[this.axis])<2*this.viewportDim?100:0},e)),this.panzoom.on("*",((e,t,...i)=>{this.emit(`Panzoom.${t}`,e,...i)})),this.panzoom.on("decel",this.onDecel),this.panzoom.on("refresh",this.onRefresh),this.panzoom.on("beforeTransform",this.onBeforeTransform),this.panzoom.on("endAnimation",this.onEndAnimation)}attachEvents(){const e=this.container;e&&(e.addEventListener("click",this.onClick,{passive:!1,capture:!1}),e.addEventListener("slideTo",this.onSlideTo)),window.addEventListener("resize",this.onResize)}createPages(){let e=[];const{contentDim:t,viewportDim:i}=this;let n=this.option("slidesPerPage");n=("auto"===n||t<=i)&&!1!==this.option("fill")?1/0:parseFloat(n+"");let r=0,s=0,o=0;for(const t of this.slides)(!e.length||s+t.dim-i>.05||o>=n)&&(e.push(B()),r=e.length-1,s=0,o=0),e[r].slides.push(t),s+=t.dim+t.gap,o++;return e}processPages(){const t=this.pages,{contentDim:i,viewportDim:n,isInfinite:r}=this,s=this.option("center"),o=this.option("fill"),a=o&&s&&i>n&&!r;if(t.forEach(((e,t)=>{var r;e.index=t,e.pos=(null===(r=e.slides[0])||void 0===r?void 0:r.pos)||0,e.dim=0;for(const[t,i]of e.slides.entries())e.dim+=i.dim,t<e.slides.length-1&&(e.dim+=i.gap);a&&e.pos+.5*e.dim<.5*n?e.pos=0:a&&e.pos+.5*e.dim>=i-.5*n?e.pos=i-n:s&&(e.pos+=-.5*(n-e.dim))})),t.forEach(((t,s)=>{o&&!r&&i>n&&(t.pos=Math.max(t.pos,0),t.pos=Math.min(t.pos,i-n)),t.pos=e(t.pos,1e3),t.dim=e(t.dim,1e3),Math.abs(t.pos)<=.1&&(t.pos=0)})),r)return t;const l=[];let c;return t.forEach((e=>{const t=Object.assign({},e);c&&t.pos===c.pos?(c.dim+=t.dim,c.slides=[...c.slides,...t.slides]):(t.index=l.length,c=t,l.push(t))})),l}getPageFromIndex(e=0){const t=this.pages.length;let i;return e=parseInt((e||0).toString())||0,i=this.isInfinite?(e%t+t)%t:Math.max(Math.min(e,t-1),0),i}getSlideMetrics(t){var i,n;const r=this.isHorizontal?"width":"height";let s=0,o=0,a=t.el;const l=a&&!a.parentNode;if(a?s=parseFloat(a.dataset[r]||"")||0:(a=document.createElement("div"),a.style.visibility="hidden",(this.track||document.body).prepend(a)),_(a,this.cn(U)+" "+t.class+" "+t.customClass),s)a.style[r]=`${s}px`,a.style["width"===r?"height":"width"]="";else{l&&(this.track||document.body).prepend(a);const e=Math.max(1,(null===(i=window.visualViewport)||void 0===i?void 0:i.scale)||1);s=a.getBoundingClientRect()[r]*e}const c=getComputedStyle(a);return"content-box"===c.boxSizing&&(this.isHorizontal?(s+=parseFloat(c.paddingLeft)||0,s+=parseFloat(c.paddingRight)||0):(s+=parseFloat(c.paddingTop)||0,s+=parseFloat(c.paddingBottom)||0)),o=parseFloat(c[this.isHorizontal?"marginRight":"marginBottom"])||0,l?null===(n=a.parentElement)||void 0===n||n.removeChild(a):t.el||a.remove(),{dim:e(s,1e3),gap:e(o,1e3)}}getBounds(){const{isInfinite:e,isRTL:t,isHorizontal:i,pages:n}=this;let r={min:0,max:0};if(e)r={min:-1/0,max:1/0};else if(n.length){const e=n[0].pos,s=n[n.length-1].pos;r=t&&i?{min:e,max:s}:{min:-1*s,max:-1*e}}return{x:i?r:{min:0,max:0},y:i?{min:0,max:0}:r}}repositionSlides(){let t,{isHorizontal:i,isRTL:n,isInfinite:r,viewport:s,viewportDim:o,contentDim:a,page:l,pages:c,slides:d,panzoom:u}=this,h=0,p=0,f=0,m=0;u?m=-1*u.current[this.axis]:c[l]&&(m=c[l].pos||0),t=i?n?"right":"left":"top",n&&i&&(m*=-1);for(const i of d){const n=i.el;n?("top"===t?(n.style.right="",n.style.left=""):n.style.top="",i.index!==h?n.style[t]=0===p?"":`${e(p,1e3)}px`:n.style[t]="",f+=i.dim+i.gap,h++):p+=i.dim+i.gap}if(r&&f&&s){let n=getComputedStyle(s),r="padding",l=i?"Right":"Bottom",c=parseFloat(n[r+(i?"Left":"Top")]);m-=c,o+=c,o+=parseFloat(n[r+l]);for(const i of d)i.el&&(e(i.pos)<e(o)&&e(i.pos+i.dim+i.gap)<e(m)&&e(m)>e(a-o)&&(i.el.style[t]=`${e(p+f,1e3)}px`),e(i.pos+i.gap)>=e(a-o)&&e(i.pos)>e(m+o)&&e(m)<e(o)&&(i.el.style[t]=`-${e(f,1e3)}px`))}let g,v,b=[...this.inTransition];if(b.length>1&&(g=c[b[0]],v=c[b[1]]),g&&v){let i=0;for(const n of d)n.el?this.inTransition.has(n.index)&&g.slides.indexOf(n)<0&&(n.el.style[t]=`${e(i+(g.pos-v.pos),1e3)}px`):i+=n.dim+n.gap}}createSlideEl(e){const{track:t,slides:i}=this;if(!t||!e)return;if(e.el&&e.el.parentNode)return;const n=e.el||document.createElement("div");_(n,this.cn(U)),_(n,e.class),_(n,e.customClass);const r=e.html;r&&(r instanceof HTMLElement?n.appendChild(r):n.innerHTML=e.html+"");const s=[];i.forEach(((e,t)=>{e.el&&s.push(t)}));const o=e.index;let a=null;s.length&&(a=i[s.reduce(((e,t)=>Math.abs(t-o)<Math.abs(e-o)?t:e))]);const l=a&&a.el&&a.el.parentNode?a.index<e.index?a.el.nextSibling:a.el:null;t.insertBefore(n,t.contains(l)?l:null),e.el=n,this.emit("createSlide",e)}removeSlideEl(e,t=!1){const i=e.el;if(!i||!i.parentNode)return;const n=this.cn(W);if(i.classList.contains(n)&&(S(i,n),this.emit("unselectSlide",e)),e.isDom&&!t)return i.removeAttribute("aria-hidden"),i.removeAttribute("data-index"),void(i.style.left="");this.emit("removeSlide",e);const r=new CustomEvent(G);i.dispatchEvent(r),e.el&&(e.el.remove(),e.el=null)}transitionTo(e=0,t=this.option("transition")){var i,n,r,s;if(!t)return!1;const o=this.page,{pages:a,panzoom:l}=this;e=parseInt((e||0).toString())||0;const c=this.getPageFromIndex(e);if(!l||!a[c]||a.length<2||Math.abs(((null===(n=null===(i=a[o])||void 0===i?void 0:i.slides[0])||void 0===n?void 0:n.dim)||0)-this.viewportDim)>1)return!1;const d=e>o?1:-1,u=a[c].pos*(this.isRTL?1:-1);if(o===c&&Math.abs(u-l.target[this.axis])<1)return!1;this.clearTransitions();const h=l.isResting;_(this.container,this.cn("inTransition"));const p=(null===(r=a[o])||void 0===r?void 0:r.slides[0])||null,f=(null===(s=a[c])||void 0===s?void 0:s.slides[0])||null;this.inTransition.add(f.index),this.createSlideEl(f);let m=p.el,g=f.el;h||t===U||(t="fadeFast",m=null);const v=this.isRTL?"next":"prev",b=this.isRTL?"prev":"next";return m&&(this.inTransition.add(p.index),p.transition=t,m.addEventListener(G,this.onAnimationEnd),m.classList.add(`f-${t}Out`,`to-${d>0?b:v}`)),g&&(f.transition=t,g.addEventListener(G,this.onAnimationEnd),g.classList.add(`f-${t}In`,`from-${d>0?v:b}`)),l.current[this.axis]=u,l.target[this.axis]=u,l.requestTick(),this.onChange(c),!0}manageSlideVisiblity(){const e=new Set,t=new Set,i=this.getVisibleSlides(parseFloat(this.option("preload",0)+"")||0);for(const n of this.slides)i.has(n)?e.add(n):t.add(n);for(const t of this.inTransition)e.add(this.slides[t]);for(const t of e)this.createSlideEl(t),this.lazyLoadSlide(t);for(const i of t)e.has(i)||this.removeSlideEl(i);this.markSelectedSlides(),this.repositionSlides()}markSelectedSlides(){if(!this.pages[this.page]||!this.pages[this.page].slides)return;const e="aria-hidden";let t=this.cn(W);if(t)for(const i of this.slides){const n=i.el;n&&(n.dataset.index=`${i.index}`,n.classList.contains("f-thumbs__slide")?this.getVisibleSlides(0).has(i)?n.removeAttribute(e):n.setAttribute(e,"true"):this.pages[this.page].slides.includes(i)?(n.classList.contains(t)||(_(n,t),this.emit("selectSlide",i)),n.removeAttribute(e)):(n.classList.contains(t)&&(S(n,t),this.emit("unselectSlide",i)),n.setAttribute(e,"true")))}}flipInfiniteTrack(){const e=this.panzoom;if(!e||!this.isInfinite)return;const t="x"===this.option("axis")?"e":"f",{viewportDim:i,contentDim:n}=this;let r=e.current[t],s=e.target[t]-r,o=0,a=.5*i,l=n;this.isRTL&&this.isHorizontal?(r<-a&&(o=-1,r+=l),r>l-a&&(o=1,r-=l)):(r>a&&(o=1,r-=l),r<-l+a&&(o=-1,r+=l)),o&&(e.current[t]=r,e.target[t]=r+s)}lazyLoadSlide(e){const t=this,i=e&&e.el;if(!i)return;const n=new Set,s="f-fadeIn";i.querySelectorAll("[data-lazy-srcset]").forEach((e=>{e instanceof HTMLImageElement&&n.add(e)}));let o=Array.from(i.querySelectorAll("[data-lazy-src]"));i.dataset.lazySrc&&o.push(i),o.map((e=>{e instanceof HTMLImageElement?n.add(e):T(e)&&(e.style.backgroundImage=`url('${e.dataset.lazySrc||""}')`,delete e.dataset.lazySrc)}));const a=(e,i,n)=>{n&&(n.remove(),n=null),i.complete&&(i.classList.add(s),setTimeout((()=>{i.classList.remove(s)}),350),i.style.visibility=""),this.option("adaptiveHeight")&&e.el&&this.pages[this.page].slides.indexOf(e)>-1&&(t.updateMetrics(),t.setViewportHeight()),this.emit("load",e)};for(const t of n){let i=null;t.src=t.dataset.lazySrcset||t.dataset.lazySrc||"",delete t.dataset.lazySrc,delete t.dataset.lazySrcset,t.style.visibility="hidden",t.addEventListener("error",(()=>{a(e,t,i)})),t.addEventListener("load",(()=>{a(e,t,i)})),setTimeout((()=>{t.parentNode&&e.el&&(t.complete?a(e,t,i):(i=r(x),t.parentNode.insertBefore(i,t)))}),300)}}onAnimationEnd(e){var t;const i=e.target,n=i?parseInt(i.dataset.index||"",10)||0:-1,r=this.slides[n],s=e.animationName;if(!i||!r||!s)return;const o=!!this.inTransition.has(n)&&r.transition;o&&s.substring(0,o.length+2)===`f-${o}`&&this.inTransition.delete(n),this.inTransition.size||this.clearTransitions(),n===this.page&&(null===(t=this.panzoom)||void 0===t?void 0:t.isResting)&&this.emit("settle")}onDecel(e,t=0,i=0,n=0,r=0){const{isRTL:s,isHorizontal:o,axis:a,pages:l}=this,c=l.length,d=Math.abs(Math.atan2(i,t)/(Math.PI/180));let u=0;if(u=d>45&&d<135?o?0:i:o?t:0,!c)return;const h=this.option("dragFree");let p=this.page,f=s&&o?1:-1;const m=e.target[a]*f,g=e.current[a]*f;let{pageIndex:v}=this.getPageFromPosition(m),{pageIndex:b}=this.getPageFromPosition(g);h?this.onChange(v):(Math.abs(u)>5?(l[p].dim<document.documentElement["client"+(this.isHorizontal?"Width":"Height")]-1&&(p=b),p=s&&o?u<0?p-1:p+1:u<0?p+1:p-1):p=0===n&&0===r?p:b,this.slideTo(p,{transition:!1,friction:e.option("decelFriction")}))}onClick(e){const t=e.target,i=t&&T(t)?t.dataset:null;let n,r;i&&(void 0!==i.carouselPage?(r="slideTo",n=i.carouselPage):void 0!==i.carouselNext?r="slideNext":void 0!==i.carouselPrev&&(r="slidePrev")),r?(e.preventDefault(),e.stopPropagation(),t&&!t.hasAttribute("disabled")&&this[r](n)):this.emit("click",e)}onSlideTo(e){const t=e.detail||0;this.slideTo(this.getPageForSlide(t),{friction:0})}onChange(e,t=0){const i=this.page;this.prevPage=i,this.page=e,this.option("adaptiveHeight")&&this.setViewportHeight(),e!==i&&(this.markSelectedSlides(),this.emit("change",e,i,t))}onRefresh(){let e=this.contentDim,t=this.viewportDim;this.updateMetrics(),this.contentDim===e&&this.viewportDim===t||this.slideTo(this.page,{friction:0,transition:!1})}onScroll(){var e;null===(e=this.viewport)||void 0===e||e.scroll(0,0)}onResize(){this.option("breakpoints")&&this.processOptions()}onBeforeTransform(e){this.lp!==e.current[this.axis]&&(this.flipInfiniteTrack(),this.manageSlideVisiblity()),this.lp=e.current.e}onEndAnimation(){this.inTransition.size||this.emit("settle")}reInit(e=null,t=null){this.destroy(),this.state=D.Init,this.userOptions=e||this.userOptions,this.userPlugins=t||this.userPlugins,this.processOptions()}slideTo(e=0,{friction:t=this.option("friction"),transition:i=this.option("transition")}={}){if(this.state===D.Destroy)return;e=parseInt((e||0).toString())||0;const n=this.getPageFromIndex(e),{axis:r,isHorizontal:s,isRTL:o,pages:a,panzoom:l}=this,c=a.length,d=o&&s?1:-1;if(!l||!c)return;if(this.page!==n){const t=new Event("beforeChange",{bubbles:!0,cancelable:!0});if(this.emit("beforeChange",t,e),t.defaultPrevented)return}if(this.transitionTo(e,i))return;let u=a[n].pos;if(this.isInfinite){const t=this.contentDim,i=l.target[r]*d;2===c?u+=t*Math.floor(parseFloat(e+"")/2):u=[u,u-t,u+t].reduce((function(e,t){return Math.abs(t-i)<Math.abs(e-i)?t:e}))}u*=d,Math.abs(l.target[r]-u)<1||(l.panTo({x:s?u:0,y:s?0:u,friction:t}),this.onChange(n))}slideToClosest(e){if(this.panzoom){const{pageIndex:t}=this.getPageFromPosition(this.panzoom.current[this.isHorizontal?"e":"f"]);this.slideTo(t,e)}}slideNext(){this.slideTo(this.page+1)}slidePrev(){this.slideTo(this.page-1)}clearTransitions(){this.inTransition.clear(),S(this.container,this.cn("inTransition"));const e=["to-prev","to-next","from-prev","from-next"];for(const t of this.slides){const i=t.el;if(i){i.removeEventListener(G,this.onAnimationEnd),i.classList.remove(...e);const n=t.transition;n&&i.classList.remove(`f-${n}Out`,`f-${n}In`)}}this.manageSlideVisiblity()}addSlide(e,t){var i,n,r,s;const o=this.panzoom,a=(null===(i=this.pages[this.page])||void 0===i?void 0:i.pos)||0,l=(null===(n=this.pages[this.page])||void 0===n?void 0:n.dim)||0,c=this.contentDim<this.viewportDim;let d=Array.isArray(t)?t:[t];const u=[];for(const e of d)u.push(F(e));this.slides.splice(e,0,...u);for(let e=0;e<this.slides.length;e++)this.slides[e].index=e;for(const e of u)this.emit("beforeInitSlide",e,e.index);if(this.page>=e&&(this.page+=u.length),this.updateMetrics(),o){const t=(null===(r=this.pages[this.page])||void 0===r?void 0:r.pos)||0,i=(null===(s=this.pages[this.page])||void 0===s?void 0:s.dim)||0,n=this.pages.length||1,d=this.isRTL?l-i:i-l,u=this.isRTL?a-t:t-a;c&&1===n?(e<=this.page&&(o.current[this.axis]-=d,o.target[this.axis]-=d),o.panTo({[this.isHorizontal?"x":"y"]:-1*t})):u&&e<=this.page&&(o.target[this.axis]-=u,o.current[this.axis]-=u,o.requestTick())}for(const e of u)this.emit("initSlide",e,e.index)}prependSlide(e){this.addSlide(0,e)}appendSlide(e){this.addSlide(this.slides.length,e)}removeSlide(e){const t=this.slides.length;e=(e%t+t)%t,this.removeSlideEl(this.slides[e],!0),this.slides.splice(e,1);for(let e=0;e<this.slides.length;e++)this.slides[e].index=e;this.updateMetrics(),this.slideTo(this.page,{friction:0,transition:!1})}updateMetrics(){const{panzoom:t,viewport:i,track:n,slides:r,isHorizontal:s,isInfinite:o}=this;if(!n)return;const a=s?"width":"height",l=s?"offsetWidth":"offsetHeight";if(i){let t=Math.max(i[l],e(i.getBoundingClientRect()[a],1e3)),n=getComputedStyle(i),r="padding",o=s?"Right":"Bottom";t-=parseFloat(n[r+(s?"Left":"Top")])+parseFloat(n[r+o]),this.viewportDim=t}let c,d=0;for(const[t,i]of r.entries()){let n=0,s=0;!i.el&&c?(n=c.dim,s=c.gap):(({dim:n,gap:s}=this.getSlideMetrics(i)),c=i),n=e(n,1e3),s=e(s,1e3),i.dim=n,i.gap=s,i.pos=d,d+=n,(o||t<r.length-1)&&(d+=s)}d=e(d,1e3),this.contentDim=d,t&&(t.contentRect[a]=d,t.contentRect["e"===this.axis?"fullWidth":"fullHeight"]=d),this.pages=this.createPages(),this.pages=this.processPages(),this.state===D.Init&&this.setInitialPage(),this.page=Math.max(0,Math.min(this.page,this.pages.length-1)),this.manageSlideVisiblity(),this.emit("refresh")}getProgress(t,i=!1,n=!1){void 0===t&&(t=this.page);const r=this,s=r.panzoom,o=r.contentDim,a=r.pages[t]||0;if(!a||!s)return t>this.page?-1:1;let l=-1*s.current.e,c=e((l-a.pos)/(1*a.dim),1e3),d=c,u=c;this.isInfinite&&!0!==n&&(d=e((l-a.pos+o)/(1*a.dim),1e3),u=e((l-a.pos-o)/(1*a.dim),1e3));let h=[c,d,u].reduce((function(e,t){return Math.abs(t)<Math.abs(e)?t:e}));return i?h:h>1?1:h<-1?-1:h}setViewportHeight(){const{page:e,pages:t,viewport:i,isHorizontal:n}=this;if(!i||!t[e])return;let r=0;n&&this.track&&(this.track.style.height="auto",t[e].slides.forEach((e=>{e.el&&(r=Math.max(r,e.el.offsetHeight))}))),i.style.height=r?`${r}px`:""}getPageForSlide(e){for(const t of this.pages)for(const i of t.slides)if(i.index===e)return t.index;return-1}getVisibleSlides(e=0){var t;const i=new Set;let{contentDim:n,viewportDim:r,pages:s,page:o}=this;n=n+(null===(t=this.slides[this.slides.length-1])||void 0===t?void 0:t.gap)||0;let a=0;a=this.panzoom&&this.panzoom.state!==v.Init&&this.panzoom.state!==v.Destroy?-1*this.panzoom.current[this.axis]:s[o]&&s[o].pos||0,this.isInfinite&&(a-=Math.floor(a/n)*n),this.isRTL&&this.isHorizontal&&(a*=-1);const l=a-r*e,c=a+r*(e+1),d=this.isInfinite?[-1,0,1]:[0];for(const e of this.slides)for(const t of d){const r=e.pos+t*n,s=r+e.dim+e.gap;r<c&&s>l&&i.add(e)}return i}getPageFromPosition(e){var t;const{viewportDim:i,contentDim:n}=this,r=this.pages.length,s=this.slides.length,o=this.slides[s-1];let a=0,l=0,c=0;const d=this.option("center");d&&(e+=.5*i),this.isInfinite||(e=Math.max((null===(t=this.slides[0])||void 0===t?void 0:t.pos)||0,Math.min(e,o.pos)));const u=n+o.gap;c=Math.floor(e/u)||0,e-=c*u;let h=o,p=this.slides.find((t=>{const i=e+(h&&!d?.5*h.dim:0);return h=t,t.pos<=i&&t.pos+t.dim+t.gap>i}));return p||(p=o),l=this.getPageForSlide(p.index),a=l+c*r,{page:a,pageIndex:l}}destroy(){if([D.Destroy].includes(this.state))return;this.state=D.Destroy;const{container:e,viewport:t,track:i,slides:n,panzoom:r}=this,s=this.option("classes");e.removeEventListener("click",this.onClick,{passive:!1,capture:!1}),e.removeEventListener("slideTo",this.onSlideTo),window.removeEventListener("resize",this.onResize),r&&(r.destroy(),this.panzoom=null),n&&n.forEach((e=>{this.removeSlideEl(e)})),this.detachPlugins(),t&&(t.removeEventListener("scroll",this.onScroll),t.offsetParent&&i&&i.offsetParent&&t.replaceWith(...i.childNodes));for(const[t,i]of Object.entries(s))"container"!==t&&i&&e.classList.remove(i);this.track=null,this.viewport=null,this.page=0,this.slides=[];const o=this.events.get("ready");this.events=new Map,o&&this.events.set("ready",o)}}Object.defineProperty(Z,"Panzoom",{enumerable:!0,configurable:!0,writable:!0,value:z}),Object.defineProperty(Z,"defaults",{enumerable:!0,configurable:!0,writable:!0,value:{viewport:null,track:null,enabled:!0,slides:[],axis:"x",transition:"fade",preload:1,slidesPerPage:"auto",initialPage:0,friction:.12,Panzoom:{decelFriction:.12},center:!0,infinite:!0,fill:!0,dragFree:!1,adaptiveHeight:!1,direction:"ltr",classes:{container:"f-carousel",viewport:"f-carousel__viewport",track:"f-carousel__track",slide:"f-carousel__slide",isLTR:"is-ltr",isRTL:"is-rtl",isHorizontal:"is-horizontal",isVertical:"is-vertical",inTransition:"in-transition",isSelected:"is-selected"},l10n:{NEXT:"Next slide",PREV:"Previous slide",GOTO:"Go to slide #%d"}}}),Object.defineProperty(Z,"Plugins",{enumerable:!0,configurable:!0,writable:!0,value:V});const K=function(e){if(!T(e))return 0;const t=window.scrollY,i=window.innerHeight,n=t+i,r=e.getBoundingClientRect(),s=r.y+t,o=r.height,a=s+o;if(t>a||n<s)return 0;if(t<s&&n>a)return 100;if(s<t&&a>n)return 100;let l=o;s<t&&(l-=t-s),a>n&&(l-=a-n);const c=l/i*100;return Math.round(c)},J=!("undefined"==typeof window||!window.document||!window.document.createElement);let Q;const ee=["a[href]","area[href]",'input:not([disabled]):not([type="hidden"]):not([aria-hidden])',"select:not([disabled]):not([aria-hidden])","textarea:not([disabled]):not([aria-hidden])","button:not([disabled]):not([aria-hidden]):not(.fancybox-focus-guard)","iframe","object","embed","video","audio","[contenteditable]",'[tabindex]:not([tabindex^="-"]):not([disabled]):not([aria-hidden])'].join(","),te=e=>{if(e&&J){void 0===Q&&document.createElement("div").focus({get preventScroll(){return Q=!0,!1}});try{if(Q)e.focus({preventScroll:!0});else{const t=window.scrollY||document.body.scrollTop,i=window.scrollX||document.body.scrollLeft;e.focus(),document.body.scrollTo({top:t,left:i,behavior:"auto"})}}catch(e){}}},ie={dragToClose:!0,hideScrollbar:!0,Carousel:{classes:{container:"fancybox__carousel",viewport:"fancybox__viewport",track:"fancybox__track",slide:"fancybox__slide"}},contentClick:"toggleZoom",contentDblClick:!1,backdropClick:"close",animated:!0,idle:3500,showClass:"f-zoomInUp",hideClass:"f-fadeOut",commonCaption:!1,parentEl:null,startIndex:0,l10n:Object.assign(Object.assign({},y),{CLOSE:"Close",NEXT:"Next",PREV:"Previous",MODAL:"You can close this modal content with the ESC key",ERROR:"Something Went Wrong, Please Try Again Later",IMAGE_ERROR:"Image Not Found",ELEMENT_NOT_FOUND:"HTML Element Not Found",AJAX_NOT_FOUND:"Error Loading AJAX : Not Found",AJAX_FORBIDDEN:"Error Loading AJAX : Forbidden",IFRAME_ERROR:"Error Loading Page",TOGGLE_ZOOM:"Toggle zoom level",TOGGLE_THUMBS:"Toggle thumbnails",TOGGLE_SLIDESHOW:"Toggle slideshow",TOGGLE_FULLSCREEN:"Toggle full-screen mode",DOWNLOAD:"Download"}),tpl:{closeButton:'<button data-fancybox-close class="f-button is-close-btn" title="{{CLOSE}}"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" tabindex="-1"><path d="M20 20L4 4m16 0L4 20"/></svg></button>',main:'<div class="fancybox__container" role="dialog" aria-modal="true" aria-label="{{MODAL}}" tabindex="-1">\n    <div class="fancybox__backdrop"></div>\n    <div class="fancybox__carousel"></div>\n    <div class="fancybox__footer"></div>\n  </div>'},groupAll:!1,groupAttr:"data-fancybox",defaultType:"image",defaultDisplay:"block",autoFocus:!0,trapFocus:!0,placeFocusBack:!0,closeButton:"auto",keyboard:{Escape:"close",Delete:"close",Backspace:"close",PageUp:"next",PageDown:"prev",ArrowUp:"prev",ArrowDown:"next",ArrowRight:"next",ArrowLeft:"prev"},Fullscreen:{autoStart:!1},compact:()=>window.matchMedia("(max-width: 578px), (max-height: 578px)").matches,wheel:"zoom"};var ne,re;!function(e){e[e.Init=0]="Init",e[e.Ready=1]="Ready",e[e.Closing=2]="Closing",e[e.CustomClosing=3]="CustomClosing",e[e.Destroy=4]="Destroy"}(ne||(ne={})),function(e){e[e.Loading=0]="Loading",e[e.Opening=1]="Opening",e[e.Ready=2]="Ready",e[e.Closing=3]="Closing"}(re||(re={}));const se=()=>{queueMicrotask((()=>{(()=>{const{slug:e,index:t}=oe.parseURL(),i=ot.getInstance();if(i&&!1!==i.option("Hash")){const n=i.carousel;if(e&&n){for(let t of n.slides)if(t.slug&&t.slug===e)return n.slideTo(t.index);if(e===i.option("slug"))return n.slideTo(t-1);const r=i.getSlide(),s=r&&r.triggerEl&&r.triggerEl.dataset;if(s&&s.fancybox===e)return n.slideTo(t-1)}oe.hasSilentClose=!0,i.close()}oe.startFromUrl()})()}))};class oe extends j{constructor(){super(...arguments),Object.defineProperty(this,"origHash",{enumerable:!0,configurable:!0,writable:!0,value:""}),Object.defineProperty(this,"timer",{enumerable:!0,configurable:!0,writable:!0,value:null})}onChange(){const e=this.instance,t=e.carousel;this.timer&&clearTimeout(this.timer);const i=e.getSlide();if(!t||!i)return;const n=e.isOpeningSlide(i),r=new URL(document.URL).hash;let s,o=i.slug||void 0,a=i.triggerEl||void 0;s=o||this.instance.option("slug"),!s&&a&&a.dataset&&(s=a.dataset.fancybox);let l="";s&&"true"!==s&&(l="#"+s+(!o&&t.slides.length>1?"-"+(i.index+1):"")),n&&(this.origHash=r!==l?r:""),l&&r!==l&&(this.timer=setTimeout((()=>{try{e.state===ne.Ready&&window.history[n?"pushState":"replaceState"]({},document.title,window.location.pathname+window.location.search+l)}catch(e){}}),300))}onClose(){if(this.timer&&clearTimeout(this.timer),!0!==oe.hasSilentClose)try{window.history.replaceState({},document.title,window.location.pathname+window.location.search+(this.origHash||""))}catch(e){}}attach(){const e=this.instance;e.on(["Carousel.ready","Carousel.change"],this.onChange),e.on("close",this.onClose)}detach(){const e=this.instance;e.off(["Carousel.ready","Carousel.change"],this.onChange),e.off("close",this.onClose)}static parseURL(){const e=window.location.hash.slice(1),t=e.split("-"),i=t[t.length-1],n=i&&/^\+?\d+$/.test(i)&&parseInt(t.pop()||"1",10)||1;return{hash:e,slug:t.join("-"),index:n}}static startFromUrl(){if(oe.hasSilentClose=!1,ot.getInstance()||!1===ot.defaults.Hash)return;const{hash:e,slug:t,index:i}=oe.parseURL();if(!t)return;let n=document.querySelector(`[data-slug="${e}"]`);if(n&&n.dispatchEvent(new CustomEvent("click",{bubbles:!0,cancelable:!0})),ot.getInstance())return;const r=document.querySelectorAll(`[data-fancybox="${t}"]`);r.length&&(n=r[i-1],n&&n.dispatchEvent(new CustomEvent("click",{bubbles:!0,cancelable:!0})))}static destroy(){window.removeEventListener("hashchange",se,!1)}}function ae(){window.addEventListener("hashchange",se,!1),setTimeout((()=>{oe.startFromUrl()}),500)}Object.defineProperty(oe,"defaults",{enumerable:!0,configurable:!0,writable:!0,value:{}}),Object.defineProperty(oe,"hasSilentClose",{enumerable:!0,configurable:!0,writable:!0,value:!1}),J&&(/complete|interactive|loaded/.test(document.readyState)?ae():document.addEventListener("DOMContentLoaded",ae));const le="is-zooming-in";class ce extends j{onCreateSlide(e,t,i){const n=this.instance.optionFor(i,"src")||"";i.el&&"image"===i.type&&"string"==typeof n&&this.setImage(i,n)}onRemoveSlide(e,t,i){i.panzoom&&i.panzoom.destroy(),i.panzoom=void 0,i.imageEl=void 0}onChange(e,t,i,n){S(this.instance.container,le);for(const e of t.slides){const t=e.panzoom;t&&e.index!==i&&t.reset(.35)}}onClose(){var e;const t=this.instance,i=t.container,n=t.getSlide();if(!i||!i.parentElement||!n)return;const{el:r,contentEl:s,panzoom:o,thumbElSrc:a}=n;if(!r||!a||!s||!o||o.isContentLoading||o.state===v.Init||o.state===v.Destroy)return;o.updateMetrics();let l=this.getZoomInfo(n);if(!l)return;this.instance.state=ne.CustomClosing,i.classList.remove(le),i.classList.add("is-zooming-out"),s.style.backgroundImage=`url('${a}')`;const c=i.getBoundingClientRect();1===((null===(e=window.visualViewport)||void 0===e?void 0:e.scale)||1)&&Object.assign(i.style,{position:"absolute",top:`${window.scrollY}px`,left:`${window.scrollX}px`,bottom:"auto",right:"auto",width:`${c.width}px`,height:`${c.height}px`,overflow:"hidden"});const{x:d,y:u,scale:h,opacity:p}=l;if(p){const e=((e,t,i,n)=>{const r=t-e;return t=>1+((t-e)/r*-1||0)})(o.scale,h);o.on("afterTransform",(()=>{s.style.opacity=e(o.scale)+""}))}o.on("endAnimation",(()=>{t.destroy()})),o.target.a=h,o.target.b=0,o.target.c=0,o.target.d=h,o.panTo({x:d,y:u,scale:h,friction:p?.2:.33,ignoreBounds:!0}),o.isResting&&t.destroy()}setImage(e,t){const i=this.instance;e.src=t,this.process(e,t).then((t=>{const{contentEl:n,imageEl:r,thumbElSrc:s,el:o}=e;if(i.isClosing()||!n||!r)return;n.offsetHeight;const a=!!i.isOpeningSlide(e)&&this.getZoomInfo(e);if(this.option("protected")&&o){o.addEventListener("contextmenu",(e=>{e.preventDefault()}));const e=document.createElement("div");_(e,"fancybox-protected"),n.appendChild(e)}if(s&&a){const r=t.contentRect,o=Math.max(r.fullWidth,r.fullHeight);let c=null;!a.opacity&&o>1200&&(c=document.createElement("img"),_(c,"fancybox-ghost"),c.src=s,n.appendChild(c));const d=()=>{c&&(_(c,"f-fadeFastOut"),setTimeout((()=>{c&&(c.remove(),c=null)}),200))};(l=s,new Promise(((e,t)=>{const i=new Image;i.onload=e,i.onerror=t,i.src=l}))).then((()=>{i.hideLoading(e),e.state=re.Opening,this.instance.emit("reveal",e),this.zoomIn(e).then((()=>{d(),this.instance.done(e)}),(()=>{})),c&&setTimeout((()=>{d()}),o>2500?800:200)}),(()=>{i.hideLoading(e),i.revealContent(e)}))}else{const n=this.optionFor(e,"initialSize"),r=this.optionFor(e,"zoom"),s={event:i.prevMouseMoveEvent||i.options.event,friction:r?.12:0};let o=i.optionFor(e,"showClass")||void 0,a=!0;i.isOpeningSlide(e)&&("full"===n?t.zoomToFull(s):"cover"===n?t.zoomToCover(s):"max"===n?t.zoomToMax(s):a=!1,t.stop("current")),a&&o&&(o=t.isDragging?"f-fadeIn":""),i.hideLoading(e),i.revealContent(e,o)}var l}),(()=>{i.setError(e,"{{IMAGE_ERROR}}")}))}process(e,t){return new Promise(((i,n)=>{var s;const o=this.instance,a=e.el;o.clearContent(e),o.showLoading(e);let l=this.optionFor(e,"content");if("string"==typeof l&&(l=r(l)),!l||!T(l)){if(l=document.createElement("img"),l instanceof HTMLImageElement){let i="",n=e.caption;i="string"==typeof n&&n?n.replace(/<[^>]+>/gi,"").substring(0,1e3):`Image ${e.index+1} of ${null===(s=o.carousel)||void 0===s?void 0:s.pages.length}`,l.src=t||"",l.alt=i,l.draggable=!1,e.srcset&&l.setAttribute("srcset",e.srcset),this.instance.isOpeningSlide(e)&&(l.fetchPriority="high")}e.sizes&&l.setAttribute("sizes",e.sizes)}_(l,"fancybox-image"),e.imageEl=l,o.setContent(e,l,!1),e.panzoom=new z(a,p({transformParent:!0},this.option("Panzoom")||{},{content:l,width:o.optionFor(e,"width","auto"),height:o.optionFor(e,"height","auto"),wheel:()=>{const e=o.option("wheel");return("zoom"===e||"pan"==e)&&e},click:(t,i)=>{var n,r;if(o.isCompact||o.isClosing())return!1;if(e.index!==(null===(n=o.getSlide())||void 0===n?void 0:n.index))return!1;if(i){const e=i.composedPath()[0];if(["A","BUTTON","TEXTAREA","OPTION","INPUT","SELECT","VIDEO"].includes(e.nodeName))return!1}let s=!i||i.target&&(null===(r=e.contentEl)||void 0===r?void 0:r.contains(i.target));return o.option(s?"contentClick":"backdropClick")||!1},dblClick:()=>o.isCompact?"toggleZoom":o.option("contentDblClick")||!1,spinner:!1,panOnlyZoomed:!0,wheelLimit:1/0,on:{ready:e=>{i(e)},error:()=>{n()},destroy:()=>{n()}}}))}))}zoomIn(e){return new Promise(((t,i)=>{const n=this.instance,r=n.container,{panzoom:s,contentEl:o,el:a}=e;s&&s.updateMetrics();const l=this.getZoomInfo(e);if(!(l&&a&&o&&s&&r))return void i();const{x:c,y:d,scale:u,opacity:h}=l,p=()=>{e.state!==re.Closing&&(h&&(o.style.opacity=Math.max(Math.min(1,1-(1-s.scale)/(1-u)),0)+""),s.scale>=1&&s.scale>s.targetScale-.1&&t(s))},f=e=>{(e.scale<.99||e.scale>1.01)&&!e.isDragging||(S(r,le),o.style.opacity="",e.off("endAnimation",f),e.off("touchStart",f),e.off("afterTransform",p),t(e))};s.on("endAnimation",f),s.on("touchStart",f),s.on("afterTransform",p),s.on(["error","destroy"],(()=>{i()})),s.panTo({x:c,y:d,scale:u,friction:0,ignoreBounds:!0}),s.stop("current");const m={event:"mousemove"===s.panMode?n.prevMouseMoveEvent||n.options.event:void 0},g=this.optionFor(e,"initialSize");_(r,le),n.hideLoading(e),"full"===g?s.zoomToFull(m):"cover"===g?s.zoomToCover(m):"max"===g?s.zoomToMax(m):s.reset(.172)}))}getZoomInfo(e){var t;const{el:i,imageEl:n,thumbEl:r,panzoom:s}=e;if(!i||!n||!r||!s||K(r)<3||!this.optionFor(e,"zoom")||this.instance.state===ne.Destroy)return!1;if(1!==((null===(t=window.visualViewport)||void 0===t?void 0:t.scale)||1))return!1;let{top:o,left:a,width:l,height:c}=r.getBoundingClientRect(),{top:d,left:u,fitWidth:h,fitHeight:p}=s.contentRect;if(!(l&&c&&h&&p))return!1;const f=s.container.getBoundingClientRect();u+=f.left,d+=f.top;const m=-1*(u+.5*h-(a+.5*l)),g=-1*(d+.5*p-(o+.5*c)),v=l/h;let b=this.option("zoomOpacity")||!1;return"auto"===b&&(b=Math.abs(l/c-h/p)>.1),{x:m,y:g,scale:v,opacity:b}}attach(){const e=this,t=e.instance;t.on("Carousel.change",e.onChange),t.on("Carousel.createSlide",e.onCreateSlide),t.on("Carousel.removeSlide",e.onRemoveSlide),t.on("close",e.onClose)}detach(){const e=this,t=e.instance;t.off("Carousel.change",e.onChange),t.off("Carousel.createSlide",e.onCreateSlide),t.off("Carousel.removeSlide",e.onRemoveSlide),t.off("close",e.onClose)}}Object.defineProperty(ce,"defaults",{enumerable:!0,configurable:!0,writable:!0,value:{initialSize:"fit",Panzoom:{maxScale:1},protected:!1,zoom:!0,zoomOpacity:"auto"}}),"function"==typeof SuppressedError&&SuppressedError;const de="html",ue="image",he="map",pe="youtube",fe="vimeo",me="html5video",ge=(e,t={})=>{const i=new URL(e),n=new URLSearchParams(i.search),r=new URLSearchParams;for(const[e,i]of[...n,...Object.entries(t)]){let t=i.toString();"t"===e?r.set("start",parseInt(t).toString()):r.set(e,t)}let s=r.toString(),o=e.match(/#t=((.*)?\d+s)/);return o&&(s+=`#t=${o[1]}`),s},ve=["image","html","ajax","inline","clone","iframe","map","pdf","html5video","youtube","vimeo"];class be extends j{onBeforeInitSlide(e,t,i){this.processType(i)}onCreateSlide(e,t,i){this.setContent(i)}onClearContent(e,t){t.xhr&&(t.xhr.abort(),t.xhr=null);const i=t.iframeEl;i&&(i.onload=i.onerror=null,i.src="//about:blank",t.iframeEl=null);const n=t.contentEl,r=t.placeholderEl;if("inline"===t.type&&n&&r)n.classList.remove("fancybox__content"),"none"!==n.style.display&&(n.style.display="none"),r.parentNode&&r.parentNode.insertBefore(n,r),r.remove(),t.contentEl=void 0,t.placeholderEl=void 0;else for(;t.el&&t.el.firstChild;)t.el.removeChild(t.el.firstChild)}onSelectSlide(e,t,i){i.state===re.Ready&&this.playVideo()}onUnselectSlide(e,t,i){var n,r;if(i.type===me){try{null===(r=null===(n=i.el)||void 0===n?void 0:n.querySelector("video"))||void 0===r||r.pause()}catch(e){}return}let s;i.type===fe?s={method:"pause",value:"true"}:i.type===pe&&(s={event:"command",func:"pauseVideo"}),s&&i.iframeEl&&i.iframeEl.contentWindow&&i.iframeEl.contentWindow.postMessage(JSON.stringify(s),"*"),i.poller&&clearTimeout(i.poller)}onDone(e,t){e.isCurrentSlide(t)&&!e.isClosing()&&this.playVideo()}onRefresh(e,t){t.slides.forEach((e=>{e.el&&(this.resizeIframe(e),this.setAspectRatio(e))}))}onMessage(e){try{let t=JSON.parse(e.data);if("https://player.vimeo.com"===e.origin){if("ready"===t.event)for(let t of Array.from(document.getElementsByClassName("fancybox__iframe")))t instanceof HTMLIFrameElement&&t.contentWindow===e.source&&(t.dataset.ready="true")}else if(e.origin.match(/^https:\/\/(www.)?youtube(-nocookie)?.com$/)&&"onReady"===t.event){const e=document.getElementById(t.id);e&&(e.dataset.ready="true")}}catch(e){}}loadAjaxContent(e){const t=this.instance.optionFor(e,"src")||"";this.instance.showLoading(e);const i=this.instance,n=new XMLHttpRequest;i.showLoading(e),n.onreadystatechange=function(){n.readyState===XMLHttpRequest.DONE&&i.state===ne.Ready&&(i.hideLoading(e),200===n.status?i.setContent(e,n.responseText):i.setError(e,404===n.status?"{{AJAX_NOT_FOUND}}":"{{AJAX_FORBIDDEN}}"))};const r=e.ajax||null;n.open(r?"POST":"GET",t+""),n.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),n.setRequestHeader("X-Requested-With","XMLHttpRequest"),n.send(r),e.xhr=n}setInlineContent(e){let t=null;if(T(e.src))t=e.src;else if("string"==typeof e.src){const i=e.src.split("#",2).pop();t=i?document.getElementById(i):null}if(t){if("clone"===e.type||t.closest(".fancybox__slide")){t=t.cloneNode(!0);const i=t.dataset.animationName;i&&(t.classList.remove(i),delete t.dataset.animationName);let n=t.getAttribute("id");n=n?`${n}--clone`:`clone-${this.instance.id}-${e.index}`,t.setAttribute("id",n)}else if(t.parentNode){const i=document.createElement("div");i.classList.add("fancybox-placeholder"),t.parentNode.insertBefore(i,t),e.placeholderEl=i}this.instance.setContent(e,t)}else this.instance.setError(e,"{{ELEMENT_NOT_FOUND}}")}setIframeContent(e){const{src:t,el:i}=e;if(!t||"string"!=typeof t||!i)return;i.classList.add("is-loading");const n=this.instance,r=document.createElement("iframe");r.className="fancybox__iframe",r.setAttribute("id",`fancybox__iframe_${n.id}_${e.index}`);for(const[t,i]of Object.entries(this.optionFor(e,"iframeAttr")||{}))r.setAttribute(t,i);r.onerror=()=>{n.setError(e,"{{IFRAME_ERROR}}")},e.iframeEl=r;const s=this.optionFor(e,"preload");if("iframe"!==e.type||!1===s)return r.setAttribute("src",e.src+""),n.setContent(e,r,!1),this.resizeIframe(e),void n.revealContent(e);n.showLoading(e),r.onload=()=>{if(!r.src.length)return;const t="true"!==r.dataset.ready;r.dataset.ready="true",this.resizeIframe(e),t?n.revealContent(e):n.hideLoading(e)},r.setAttribute("src",t),n.setContent(e,r,!1)}resizeIframe(e){const{type:t,iframeEl:i}=e;if(t===pe||t===fe)return;const n=null==i?void 0:i.parentElement;if(!i||!n)return;let r=e.autoSize;void 0===r&&(r=this.optionFor(e,"autoSize"));let s=e.width||0,o=e.height||0;s&&o&&(r=!1);const a=n&&n.style;if(!1!==e.preload&&!1!==r&&a)try{const e=window.getComputedStyle(n),t=parseFloat(e.paddingLeft)+parseFloat(e.paddingRight),r=parseFloat(e.paddingTop)+parseFloat(e.paddingBottom),l=i.contentWindow;if(l){const e=l.document,i=e.getElementsByTagName(de)[0],n=e.body;a.width="",n.style.overflow="hidden",s=s||i.scrollWidth+t,a.width=`${s}px`,n.style.overflow="",a.flex="0 0 auto",a.height=`${n.scrollHeight}px`,o=i.scrollHeight+r}}catch(e){}if(s||o){const e={flex:"0 1 auto",width:"",height:""};s&&"auto"!==s&&(e.width=`${s}px`),o&&"auto"!==o&&(e.height=`${o}px`),Object.assign(a,e)}}playVideo(){const e=this.instance.getSlide();if(!e)return;const{el:t}=e;if(!t||!t.offsetParent)return;if(!this.optionFor(e,"videoAutoplay"))return;if(e.type===me)try{const e=t.querySelector("video");if(e){const t=e.play();void 0!==t&&t.then((()=>{})).catch((t=>{e.muted=!0,e.play()}))}}catch(e){}if(e.type!==pe&&e.type!==fe)return;const i=()=>{if(e.iframeEl&&e.iframeEl.contentWindow){let t;if("true"===e.iframeEl.dataset.ready)return t=e.type===pe?{event:"command",func:"playVideo"}:{method:"play",value:"true"},t&&e.iframeEl.contentWindow.postMessage(JSON.stringify(t),"*"),void(e.poller=void 0);e.type===pe&&(t={event:"listening",id:e.iframeEl.getAttribute("id")},e.iframeEl.contentWindow.postMessage(JSON.stringify(t),"*"))}e.poller=setTimeout(i,250)};i()}processType(e){if(e.html)return e.type=de,e.src=e.html,void(e.html="");const t=this.instance.optionFor(e,"src","");if(!t||"string"!=typeof t)return;let i=e.type,n=null;if(n=t.match(/(youtube\.com|youtu\.be|youtube\-nocookie\.com)\/(?:watch\?(?:.*&)?v=|v\/|u\/|shorts\/|embed\/?)?(videoseries\?list=(?:.*)|[\w-]{11}|\?listType=(?:.*)&list=(?:.*))(?:.*)/i)){const r=this.optionFor(e,pe),{nocookie:s}=r,o=function(e,t){var i={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(i[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(n=Object.getOwnPropertySymbols(e);r<n.length;r++)t.indexOf(n[r])<0&&Object.prototype.propertyIsEnumerable.call(e,n[r])&&(i[n[r]]=e[n[r]])}return i}(r,["nocookie"]),a=`www.youtube${s?"-nocookie":""}.com`,l=ge(t,o),c=encodeURIComponent(n[2]);e.videoId=c,e.src=`https://${a}/embed/${c}?${l}`,e.thumbSrc=e.thumbSrc||`https://i.ytimg.com/vi/${c}/mqdefault.jpg`,i=pe}else if(n=t.match(/^.+vimeo.com\/(?:\/)?([\d]+)((\/|\?h=)([a-z0-9]+))?(.*)?/)){const r=ge(t,this.optionFor(e,fe)),s=encodeURIComponent(n[1]),o=n[4]||"";e.videoId=s,e.src=`https://player.vimeo.com/video/${s}?${o?`h=${o}${r?"&":""}`:""}${r}`,i=fe}if(!i&&e.triggerEl){const t=e.triggerEl.dataset.type;ve.includes(t)&&(i=t)}i||"string"==typeof t&&("#"===t.charAt(0)?i="inline":(n=t.match(/\.(mp4|mov|ogv|webm)((\?|#).*)?$/i))?(i=me,e.videoFormat=e.videoFormat||"video/"+("ogv"===n[1]?"ogg":n[1])):t.match(/(^data:image\/[a-z0-9+\/=]*,)|(\.(jp(e|g|eg)|gif|png|bmp|webp|svg|ico)((\?|#).*)?$)/i)?i=ue:t.match(/\.(pdf)((\?|#).*)?$/i)&&(i="pdf")),(n=t.match(/(?:maps\.)?google\.([a-z]{2,3}(?:\.[a-z]{2})?)\/(?:(?:(?:maps\/(?:place\/(?:.*)\/)?\@(.*),(\d+.?\d+?)z))|(?:\?ll=))(.*)?/i))?(e.src=`https://maps.google.${n[1]}/?ll=${(n[2]?n[2]+"&z="+Math.floor(parseFloat(n[3]))+(n[4]?n[4].replace(/^\//,"&"):""):n[4]+"").replace(/\?/,"&")}&output=${n[4]&&n[4].indexOf("layer=c")>0?"svembed":"embed"}`,i=he):(n=t.match(/(?:maps\.)?google\.([a-z]{2,3}(?:\.[a-z]{2})?)\/(?:maps\/search\/)(.*)/i))&&(e.src=`https://maps.google.${n[1]}/maps?q=${n[2].replace("query=","q=").replace("api=1","")}&output=embed`,i=he),i=i||this.instance.option("defaultType"),e.type=i,i===ue&&(e.thumbSrc=e.thumbSrc||e.src)}setContent(e){const t=this.instance.optionFor(e,"src")||"";if(e&&e.type&&t){switch(e.type){case de:this.instance.setContent(e,t);break;case me:const i=this.option("videoTpl");i&&this.instance.setContent(e,i.replace(/\{\{src\}\}/gi,t+"").replace(/\{\{format\}\}/gi,this.optionFor(e,"videoFormat")||"").replace(/\{\{poster\}\}/gi,e.poster||e.thumbSrc||""));break;case"inline":case"clone":this.setInlineContent(e);break;case"ajax":this.loadAjaxContent(e);break;case"pdf":case he:case pe:case fe:e.preload=!1;case"iframe":this.setIframeContent(e)}this.setAspectRatio(e)}}setAspectRatio(e){const t=e.contentEl;if(!(e.el&&t&&e.type&&[pe,fe,me].includes(e.type)))return;let i,n=e.width||"auto",r=e.height||"auto";if("auto"===n||"auto"===r){i=this.optionFor(e,"videoRatio");const t=(i+"").match(/(\d+)\s*\/\s?(\d+)/);i=t&&t.length>2?parseFloat(t[1])/parseFloat(t[2]):parseFloat(i+"")}else n&&r&&(i=n/r);if(!i)return;t.style.aspectRatio="",t.style.width="",t.style.height="",t.offsetHeight;const s=t.getBoundingClientRect(),o=s.width||1,a=s.height||1;t.style.aspectRatio=i+"",i<o/a?(r="auto"===r?a:Math.min(a,r),t.style.width="auto",t.style.height=`${r}px`):(n="auto"===n?o:Math.min(o,n),t.style.width=`${n}px`,t.style.height="auto")}attach(){const e=this,t=e.instance;t.on("Carousel.beforeInitSlide",e.onBeforeInitSlide),t.on("Carousel.createSlide",e.onCreateSlide),t.on("Carousel.selectSlide",e.onSelectSlide),t.on("Carousel.unselectSlide",e.onUnselectSlide),t.on("Carousel.Panzoom.refresh",e.onRefresh),t.on("done",e.onDone),t.on("clearContent",e.onClearContent),window.addEventListener("message",e.onMessage)}detach(){const e=this,t=e.instance;t.off("Carousel.beforeInitSlide",e.onBeforeInitSlide),t.off("Carousel.createSlide",e.onCreateSlide),t.off("Carousel.selectSlide",e.onSelectSlide),t.off("Carousel.unselectSlide",e.onUnselectSlide),t.off("Carousel.Panzoom.refresh",e.onRefresh),t.off("done",e.onDone),t.off("clearContent",e.onClearContent),window.removeEventListener("message",e.onMessage)}}Object.defineProperty(be,"defaults",{enumerable:!0,configurable:!0,writable:!0,value:{ajax:null,autoSize:!0,iframeAttr:{allow:"autoplay; fullscreen",scrolling:"auto"},preload:!0,videoAutoplay:!0,videoRatio:16/9,videoTpl:'<video class="fancybox__html5video" playsinline controls controlsList="nodownload" poster="{{poster}}">\n  <source src="{{src}}" type="{{format}}" />Sorry, your browser doesn\'t support embedded videos.</video>',videoFormat:"",vimeo:{byline:1,color:"00adef",controls:1,dnt:1,muted:0},youtube:{controls:1,enablejsapi:1,nocookie:1,rel:0,fs:1}}});const ye="play",we="pause",xe="ready";class Te extends j{constructor(){super(...arguments),Object.defineProperty(this,"state",{enumerable:!0,configurable:!0,writable:!0,value:xe}),Object.defineProperty(this,"inHover",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"timer",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"progressBar",{enumerable:!0,configurable:!0,writable:!0,value:null})}get isActive(){return this.state!==xe}onReady(e){this.option("autoStart")&&(e.isInfinite||e.page<e.pages.length-1)&&this.start()}onChange(){var e;(null===(e=this.instance.panzoom)||void 0===e?void 0:e.isResting)||(this.removeProgressBar(),this.pause())}onSettle(){this.resume()}onVisibilityChange(){"visible"===document.visibilityState?this.resume():this.pause()}onMouseEnter(){this.inHover=!0,this.pause()}onMouseLeave(){var e;this.inHover=!1,(null===(e=this.instance.panzoom)||void 0===e?void 0:e.isResting)&&this.resume()}onTimerEnd(){const e=this.instance;"play"===this.state&&(e.isInfinite||e.page!==e.pages.length-1?e.slideNext():e.slideTo(0))}removeProgressBar(){this.progressBar&&(this.progressBar.remove(),this.progressBar=null)}createProgressBar(){var e;if(!this.option("showProgress"))return null;this.removeProgressBar();const t=this.instance,i=(null===(e=t.pages[t.page])||void 0===e?void 0:e.slides)||[];let n=this.option("progressParentEl");if(n||(n=(1===i.length?i[0].el:null)||t.viewport),!n)return null;const r=document.createElement("div");return _(r,"f-progress"),n.prepend(r),this.progressBar=r,r.offsetHeight,r}set(){const e=this,t=e.instance;if(t.pages.length<2)return;if(e.timer)return;const i=e.option("timeout");e.state=ye,_(t.container,"has-autoplay");let n=e.createProgressBar();n&&(n.style.transitionDuration=`${i}ms`,n.style.transform="scaleX(1)"),e.timer=setTimeout((()=>{e.timer=null,e.inHover||e.onTimerEnd()}),i),e.emit("set")}clear(){const e=this;e.timer&&(clearTimeout(e.timer),e.timer=null),e.removeProgressBar()}start(){const e=this;if(e.set(),e.state!==xe){if(e.option("pauseOnHover")){const t=e.instance.container;t.addEventListener("mouseenter",e.onMouseEnter,!1),t.addEventListener("mouseleave",e.onMouseLeave,!1)}document.addEventListener("visibilitychange",e.onVisibilityChange,!1),e.emit("start")}}stop(){const e=this,t=e.state,i=e.instance.container;e.clear(),e.state=xe,i.removeEventListener("mouseenter",e.onMouseEnter,!1),i.removeEventListener("mouseleave",e.onMouseLeave,!1),document.removeEventListener("visibilitychange",e.onVisibilityChange,!1),S(i,"has-autoplay"),t!==xe&&e.emit("stop")}pause(){const e=this;e.state===ye&&(e.state=we,e.clear(),e.emit(we))}resume(){const e=this,t=e.instance;if(t.isInfinite||t.page!==t.pages.length-1)if(e.state!==ye){if(e.state===we&&!e.inHover){const t=new Event("resume",{bubbles:!0,cancelable:!0});e.emit("resume",t),t.defaultPrevented||e.set()}}else e.set();else e.stop()}toggle(){this.state===ye||this.state===we?this.stop():this.start()}attach(){const e=this,t=e.instance;t.on("ready",e.onReady),t.on("Panzoom.startAnimation",e.onChange),t.on("Panzoom.endAnimation",e.onSettle),t.on("Panzoom.touchMove",e.onChange)}detach(){const e=this,t=e.instance;t.off("ready",e.onReady),t.off("Panzoom.startAnimation",e.onChange),t.off("Panzoom.endAnimation",e.onSettle),t.off("Panzoom.touchMove",e.onChange),e.stop()}}Object.defineProperty(Te,"defaults",{enumerable:!0,configurable:!0,writable:!0,value:{autoStart:!0,pauseOnHover:!0,progressParentEl:null,showProgress:!0,timeout:3e3}});class Se extends j{constructor(){super(...arguments),Object.defineProperty(this,"ref",{enumerable:!0,configurable:!0,writable:!0,value:null})}onPrepare(e){const t=e.carousel;if(!t)return;const i=e.container;i&&(t.options.Autoplay=p({autoStart:!1},this.option("Autoplay")||{},{pauseOnHover:!1,timeout:this.option("timeout"),progressParentEl:()=>this.option("progressParentEl")||null,on:{start:()=>{e.emit("startSlideshow")},set:t=>{var n;i.classList.add("has-slideshow"),(null===(n=e.getSlide())||void 0===n?void 0:n.state)!==re.Ready&&t.pause()},stop:()=>{i.classList.remove("has-slideshow"),e.isCompact||e.endIdle(),e.emit("endSlideshow")},resume:(t,i)=>{var n,r,s;!i||!i.cancelable||(null===(n=e.getSlide())||void 0===n?void 0:n.state)===re.Ready&&(null===(s=null===(r=e.carousel)||void 0===r?void 0:r.panzoom)||void 0===s?void 0:s.isResting)||i.preventDefault()}}}),t.attachPlugins({Autoplay:Te}),this.ref=t.plugins.Autoplay)}onReady(e){const t=e.carousel,i=this.ref;i&&t&&this.option("playOnStart")&&(t.isInfinite||t.page<t.pages.length-1)&&i.start()}onDone(e,t){const i=this.ref,n=e.carousel;if(!i||!n)return;const r=t.panzoom;r&&r.on("startAnimation",(()=>{e.isCurrentSlide(t)&&i.stop()})),e.isCurrentSlide(t)&&i.resume()}onKeydown(e,t){var i;const n=this.ref;n&&t===this.option("key")&&"BUTTON"!==(null===(i=document.activeElement)||void 0===i?void 0:i.nodeName)&&n.toggle()}attach(){const e=this,t=e.instance;t.on("Carousel.init",e.onPrepare),t.on("Carousel.ready",e.onReady),t.on("done",e.onDone),t.on("keydown",e.onKeydown)}detach(){const e=this,t=e.instance;t.off("Carousel.init",e.onPrepare),t.off("Carousel.ready",e.onReady),t.off("done",e.onDone),t.off("keydown",e.onKeydown)}}Object.defineProperty(Se,"defaults",{enumerable:!0,configurable:!0,writable:!0,value:{key:" ",playOnStart:!1,progressParentEl:e=>{var t;return(null===(t=e.instance.container)||void 0===t?void 0:t.querySelector(".fancybox__toolbar [data-fancybox-toggle-slideshow]"))||e.instance.container},timeout:3e3}});const _e={classes:{container:"f-thumbs f-carousel__thumbs",viewport:"f-thumbs__viewport",track:"f-thumbs__track",slide:"f-thumbs__slide",isResting:"is-resting",isSelected:"is-selected",isLoading:"is-loading",hasThumbs:"has-thumbs"},minCount:2,parentEl:null,thumbTpl:'<button class="f-thumbs__slide__button" tabindex="0" type="button" aria-label="{{GOTO}}" data-carousel-index="%i"><img class="f-thumbs__slide__img" data-lazy-src="{{%s}}" alt="" /></button>',type:"modern"};var Ee;!function(e){e[e.Init=0]="Init",e[e.Ready=1]="Ready",e[e.Hidden=2]="Hidden"}(Ee||(Ee={}));const Ce="isResting",Me="thumbWidth",Pe="thumbHeight",Oe="thumbClipWidth";let ke=class extends j{constructor(){super(...arguments),Object.defineProperty(this,"type",{enumerable:!0,configurable:!0,writable:!0,value:"modern"}),Object.defineProperty(this,"container",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"track",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"carousel",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"thumbWidth",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"thumbClipWidth",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"thumbHeight",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"thumbGap",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"thumbExtraGap",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"state",{enumerable:!0,configurable:!0,writable:!0,value:Ee.Init})}get isModern(){return"modern"===this.type}onInitSlide(e,t){const i=t.el?t.el.dataset:void 0;i&&(t.thumbSrc=i.thumbSrc||t.thumbSrc||"",t[Oe]=parseFloat(i[Oe]||"")||t[Oe]||0,t[Pe]=parseFloat(i.thumbHeight||"")||t[Pe]||0),this.addSlide(t)}onInitSlides(){this.build()}onChange(){var e;if(!this.isModern)return;const t=this.container,i=this.instance,n=i.panzoom,r=this.carousel,s=r?r.panzoom:null,a=i.page;if(n&&r&&s){if(n.isDragging){S(t,this.cn(Ce));let n=(null===(e=r.pages[a])||void 0===e?void 0:e.pos)||0;n+=i.getProgress(a)*(this[Oe]+this.thumbGap);let o=s.getBounds();-1*n>o.x.min&&-1*n<o.x.max&&s.panTo({x:-1*n,friction:.12})}else o(t,this.cn(Ce),n.isResting);this.shiftModern()}}onRefresh(){this.updateProps();for(const e of this.instance.slides||[])this.resizeModernSlide(e);this.shiftModern()}isDisabled(){const e=this.option("minCount")||0;if(e){const t=this.instance;let i=0;for(const e of t.slides||[])e.thumbSrc&&i++;if(i<e)return!0}const t=this.option("type");return["modern","classic"].indexOf(t)<0}getThumb(e){const t=this.option("thumbTpl")||"";return{html:this.instance.localize(t,[["%i",e.index],["%d",e.index+1],["%s",e.thumbSrc||"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7"]])}}addSlide(e){const t=this.carousel;t&&t.addSlide(e.index,this.getThumb(e))}getSlides(){const e=[];for(const t of this.instance.slides||[])e.push(this.getThumb(t));return e}resizeModernSlide(e){this.isModern&&(e[Me]=e[Oe]&&e[Pe]?Math.round(this[Pe]*(e[Oe]/e[Pe])):this[Me])}updateProps(){const e=this.container;if(!e)return;const t=t=>parseFloat(getComputedStyle(e).getPropertyValue("--f-thumb-"+t))||0;this.thumbGap=t("gap"),this.thumbExtraGap=t("extra-gap"),this[Me]=t("width")||40,this[Oe]=t("clip-width")||40,this[Pe]=t("height")||40}build(){const e=this;if(e.state!==Ee.Init)return;if(e.isDisabled())return;const t=e.instance,i=t.container,n=e.getSlides(),r=e.option("type");e.type=r;const s=document.createElement("div");_(s,e.cn("container")),_(s,`is-${r}`);const o=e.option("parentEl");o?o.appendChild(s):i.after(s),_(i,e.cn("hasThumbs")),e.container=s,e.updateProps();const a=document.createElement("div");_(a,e.cn("track")),s.appendChild(a),e.track=a;const l=p({},{track:a,infinite:!1,center:!0,fill:"classic"===r,dragFree:!0,slidesPerPage:1,transition:!1,preload:.25,friction:.12,Panzoom:{maxVelocity:0},Dots:!1,Navigation:!1,classes:{container:"f-thumbs",viewport:"f-thumbs__viewport",track:"f-thumbs__track",slide:"f-thumbs__slide"}},e.option("Carousel")||{},{Sync:{target:t},slides:n}),c=new t.constructor(s,l);c.on("createSlide",((t,i)=>{e.setProps(i.index),e.emit("createSlide",i,i.el)})),c.on("ready",(()=>{e.shiftModern(),e.emit("ready")})),c.on("refresh",(()=>{e.shiftModern()})),c.on("Panzoom.click",((t,i,n)=>{e.onClick(n)})),e.carousel=c,e.state=Ee.Ready}onClick(e){e.preventDefault(),e.stopPropagation();const t=this.instance,{pages:i,page:n}=t,r=e=>{if(e){const t=e.closest("[data-carousel-index]");if(t)return[parseInt(t.dataset.carouselIndex||"",10)||0,t]}return[-1,void 0]},s=(e,t)=>{const i=document.elementFromPoint(e,t);return i?r(i):[-1,void 0]};let[o,a]=r(e.target);if(o>-1)return;const l=this[Oe],c=e.clientX,d=e.clientY;let[u,h]=s(c-l,d),[p,f]=s(c+l,d);h&&f?(o=Math.abs(c-h.getBoundingClientRect().right)<Math.abs(c-f.getBoundingClientRect().left)?u:p,o===n&&(o=o===u?p:u)):h?o=u:f&&(o=p),o>-1&&i[o]&&t.slideTo(o)}getShift(e){var t;const i=this,{instance:n}=i,r=i.carousel;if(!n||!r)return 0;const s=i[Me],o=i[Oe],a=i.thumbGap,l=i.thumbExtraGap;if(!(null===(t=r.slides[e])||void 0===t?void 0:t.el))return 0;const c=.5*(s-o),d=n.pages.length-1;let u=n.getProgress(0),h=n.getProgress(d),p=n.getProgress(e,!1,!0),f=0,m=c+l+a;const g=u<0&&u>-1,v=h>0&&h<1;return 0===e?(f=m*Math.abs(u),v&&1===u&&(f-=m*Math.abs(h))):e===d?(f=m*Math.abs(h)*-1,g&&-1===h&&(f+=m*Math.abs(u))):g||v?(f=-1*m,f+=m*Math.abs(u),f+=m*(1-Math.abs(h))):f=m*p,f}setProps(t){const i=this;if(!i.isModern)return;const{instance:n}=i,r=i.carousel;if(n&&r){const s=r.slides[t].el;if(s&&s.childNodes.length){let r=e(1-Math.abs(n.getProgress(t))),o=e(i.getShift(t));s.style.setProperty("--progress",r?r+"":""),s.style.setProperty("--shift",o+"")}}}shiftModern(){const e=this;if(!e.isModern)return;const{instance:t,track:i}=e,n=t.panzoom,r=e.carousel;if(!(t&&i&&n&&r))return;if(n.state===v.Init||n.state===v.Destroy)return;for(const i of t.slides)e.setProps(i.index);let s=(e[Oe]+e.thumbGap)*(r.slides.length||0);i.style.setProperty("--width",s+"")}cleanup(){const e=this;e.carousel&&e.carousel.destroy(),e.carousel=null,e.container&&e.container.remove(),e.container=null,e.track&&e.track.remove(),e.track=null,e.state=Ee.Init,S(e.instance.container,e.cn("hasThumbs"))}attach(){const e=this,t=e.instance;t.on("initSlide",e.onInitSlide),t.state===D.Init?t.on("initSlides",e.onInitSlides):e.onInitSlides(),t.on(["change","Panzoom.afterTransform"],e.onChange),t.on("Panzoom.refresh",e.onRefresh)}detach(){const e=this,t=e.instance;t.off("initSlide",e.onInitSlide),t.off("initSlides",e.onInitSlides),t.off(["change","Panzoom.afterTransform"],e.onChange),t.off("Panzoom.refresh",e.onRefresh),e.cleanup()}};Object.defineProperty(ke,"defaults",{enumerable:!0,configurable:!0,writable:!0,value:_e});const Ae=Object.assign(Object.assign({},_e),{key:"t",showOnStart:!0,parentEl:null}),Le="is-masked",ze="aria-hidden";class Ie extends j{constructor(){super(...arguments),Object.defineProperty(this,"ref",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"hidden",{enumerable:!0,configurable:!0,writable:!0,value:!1})}get isEnabled(){const e=this.ref;return e&&!e.isDisabled()}get isHidden(){return this.hidden}onClick(e,t){t.stopPropagation()}onCreateSlide(e,t){var i,n,r;const s=(null===(r=null===(n=null===(i=this.instance)||void 0===i?void 0:i.carousel)||void 0===n?void 0:n.slides[t.index])||void 0===r?void 0:r.type)||"",o=t.el;if(o&&s){let e=`for-${s}`;["video","youtube","vimeo","html5video"].includes(s)&&(e+=" for-video"),_(o,e)}}onInit(){var e;const t=this,i=t.instance,n=i.carousel;if(t.ref||!n)return;const r=t.option("parentEl")||i.footer||i.container;if(!r)return;const s=p({},t.options,{parentEl:r,classes:{container:"f-thumbs fancybox__thumbs"},Carousel:{Sync:{friction:i.option("Carousel.friction")||0}},on:{ready:e=>{const i=e.container;i&&this.hidden&&(t.refresh(),i.style.transition="none",t.hide(),i.offsetHeight,queueMicrotask((()=>{i.style.transition="",t.show()})))}}});s.Carousel=s.Carousel||{},s.Carousel.on=p((null===(e=t.options.Carousel)||void 0===e?void 0:e.on)||{},{click:this.onClick,createSlide:this.onCreateSlide}),n.options.Thumbs=s,n.attachPlugins({Thumbs:ke}),t.ref=n.plugins.Thumbs,t.option("showOnStart")||(t.ref.state=Ee.Hidden,t.hidden=!0)}onResize(){var e;const t=null===(e=this.ref)||void 0===e?void 0:e.container;t&&(t.style.maxHeight="")}onKeydown(e,t){const i=this.option("key");i&&i===t&&this.toggle()}toggle(){const e=this.ref;if(e&&!e.isDisabled())return e.state===Ee.Hidden?(e.state=Ee.Init,void e.build()):void(this.hidden?this.show():this.hide())}show(){const e=this.ref;if(!e||e.isDisabled())return;const t=e.container;t&&(this.refresh(),t.offsetHeight,t.removeAttribute(ze),t.classList.remove(Le),this.hidden=!1)}hide(){const e=this.ref,t=e&&e.container;t&&(this.refresh(),t.offsetHeight,t.classList.add(Le),t.setAttribute(ze,"true")),this.hidden=!0}refresh(){const e=this.ref;if(!e||!e.state)return;const t=e.container,i=(null==t?void 0:t.firstChild)||null;t&&i&&i.childNodes.length&&(t.style.maxHeight=`${i.getBoundingClientRect().height}px`)}attach(){const e=this,t=e.instance;t.state===ne.Init?t.on("Carousel.init",e.onInit):e.onInit(),t.on("resize",e.onResize),t.on("keydown",e.onKeydown)}detach(){var e;const t=this,i=t.instance;i.off("Carousel.init",t.onInit),i.off("resize",t.onResize),i.off("keydown",t.onKeydown),null===(e=i.carousel)||void 0===e||e.detachPlugins(["Thumbs"]),t.ref=null}}Object.defineProperty(Ie,"defaults",{enumerable:!0,configurable:!0,writable:!0,value:Ae});const Re={panLeft:{icon:'<svg><path d="M5 12h14M5 12l6 6M5 12l6-6"/></svg>',change:{panX:-100}},panRight:{icon:'<svg><path d="M5 12h14M13 18l6-6M13 6l6 6"/></svg>',change:{panX:100}},panUp:{icon:'<svg><path d="M12 5v14M18 11l-6-6M6 11l6-6"/></svg>',change:{panY:-100}},panDown:{icon:'<svg><path d="M12 5v14M18 13l-6 6M6 13l6 6"/></svg>',change:{panY:100}},zoomIn:{icon:'<svg><circle cx="11" cy="11" r="7.5"/><path d="m21 21-4.35-4.35M11 8v6M8 11h6"/></svg>',action:"zoomIn"},zoomOut:{icon:'<svg><circle cx="11" cy="11" r="7.5"/><path d="m21 21-4.35-4.35M8 11h6"/></svg>',action:"zoomOut"},toggle1to1:{icon:'<svg><path d="M3.51 3.07c5.74.02 11.48-.02 17.22.02 1.37.1 2.34 1.64 2.18 3.13 0 4.08.02 8.16 0 12.23-.1 1.54-1.47 2.64-2.79 2.46-5.61-.01-11.24.02-16.86-.01-1.36-.12-2.33-1.65-2.17-3.14 0-4.07-.02-8.16 0-12.23.1-1.36 1.22-2.48 2.42-2.46Z"/><path d="M5.65 8.54h1.49v6.92m8.94-6.92h1.49v6.92M11.5 9.4v.02m0 5.18v0"/></svg>',action:"toggleZoom"},toggleZoom:{icon:'<svg><g><line x1="11" y1="8" x2="11" y2="14"></line></g><circle cx="11" cy="11" r="7.5"/><path d="m21 21-4.35-4.35M8 11h6"/></svg>',action:"toggleZoom"},iterateZoom:{icon:'<svg><g><line x1="11" y1="8" x2="11" y2="14"></line></g><circle cx="11" cy="11" r="7.5"/><path d="m21 21-4.35-4.35M8 11h6"/></svg>',action:"iterateZoom"},rotateCCW:{icon:'<svg><path d="M15 4.55a8 8 0 0 0-6 14.9M9 15v5H4M18.37 7.16v.01M13 19.94v.01M16.84 18.37v.01M19.37 15.1v.01M19.94 11v.01"/></svg>',action:"rotateCCW"},rotateCW:{icon:'<svg><path d="M9 4.55a8 8 0 0 1 6 14.9M15 15v5h5M5.63 7.16v.01M4.06 11v.01M4.63 15.1v.01M7.16 18.37v.01M11 19.94v.01"/></svg>',action:"rotateCW"},flipX:{icon:'<svg style="stroke-width: 1.3"><path d="M12 3v18M16 7v10h5L16 7M8 7v10H3L8 7"/></svg>',action:"flipX"},flipY:{icon:'<svg style="stroke-width: 1.3"><path d="M3 12h18M7 16h10L7 21v-5M7 8h10L7 3v5"/></svg>',action:"flipY"},fitX:{icon:'<svg><path d="M4 12V6a2 2 0 0 1 2-2h12a2 2 0 0 1 2 2v6M10 18H3M21 18h-7M6 15l-3 3 3 3M18 15l3 3-3 3"/></svg>',action:"fitX"},fitY:{icon:'<svg><path d="M12 20H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h6M18 14v7M18 3v7M15 18l3 3 3-3M15 6l3-3 3 3"/></svg>',action:"fitY"},reset:{icon:'<svg><path d="M20 11A8.1 8.1 0 0 0 4.5 9M4 5v4h4M4 13a8.1 8.1 0 0 0 15.5 2m.5 4v-4h-4"/></svg>',action:"reset"},toggleFS:{icon:'<svg><g><path d="M14.5 9.5 21 3m0 0h-6m6 0v6M3 21l6.5-6.5M3 21v-6m0 6h6"/></g><g><path d="m14 10 7-7m-7 7h6m-6 0V4M3 21l7-7m0 0v6m0-6H4"/></g></svg>',action:"toggleFS"}};var De;!function(e){e[e.Init=0]="Init",e[e.Ready=1]="Ready",e[e.Disabled=2]="Disabled"}(De||(De={}));const Fe={tabindex:"-1",width:"24",height:"24",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"};class Be extends j{constructor(){super(...arguments),Object.defineProperty(this,"state",{enumerable:!0,configurable:!0,writable:!0,value:De.Init}),Object.defineProperty(this,"container",{enumerable:!0,configurable:!0,writable:!0,value:null})}onReady(e){var t;if(!e.carousel)return;let i=this.option("display"),n=this.option("absolute"),r=this.option("enabled");if("auto"===r){const e=this.instance.carousel;let t=0;if(e)for(const i of e.slides)(i.panzoom||"image"===i.type)&&t++;t||(r=!1)}r||(i=void 0);let s=0;const o={left:[],middle:[],right:[]};if(i)for(const e of["left","middle","right"])for(const n of i[e]){const i=this.createEl(n);i&&(null===(t=o[e])||void 0===t||t.push(i),s++)}let a=null;if(s&&(a=this.createContainer()),a){for(const[e,t]of Object.entries(o)){const i=document.createElement("div");_(i,"fancybox__toolbar__column is-"+e);for(const e of t)i.appendChild(e);"auto"!==n||"middle"!==e||t.length||(n=!0),a.appendChild(i)}!0===n&&_(a,"is-absolute"),this.state=De.Ready,this.onRefresh()}else this.state=De.Disabled}onClick(e){var t,i;const n=this.instance,r=n.getSlide(),s=null==r?void 0:r.panzoom,o=e.target,a=o&&T(o)?o.dataset:null;if(!a)return;if(void 0!==a.fancyboxToggleThumbs)return e.preventDefault(),e.stopPropagation(),void(null===(t=n.plugins.Thumbs)||void 0===t||t.toggle());if(void 0!==a.fancyboxToggleFullscreen)return e.preventDefault(),e.stopPropagation(),void this.instance.toggleFullscreen();if(void 0!==a.fancyboxToggleSlideshow){e.preventDefault(),e.stopPropagation();const t=null===(i=n.carousel)||void 0===i?void 0:i.plugins.Autoplay;let r=t.isActive;return s&&"mousemove"===s.panMode&&!r&&s.reset(),void(r?t.stop():t.start())}const l=a.panzoomAction,c=a.panzoomChange;if((c||l)&&(e.preventDefault(),e.stopPropagation()),c){let t={};try{t=JSON.parse(c)}catch(e){}s&&s.applyChange(t)}else l&&s&&s[l]&&s[l]()}onChange(){this.onRefresh()}onRefresh(){if(this.instance.isClosing())return;const e=this.container;if(!e)return;const t=this.instance.getSlide();if(!t||t.state!==re.Ready)return;const i=t&&!t.error&&t.panzoom;for(const t of e.querySelectorAll("[data-panzoom-action]"))i?(t.removeAttribute("disabled"),t.removeAttribute("tabindex")):(t.setAttribute("disabled",""),t.setAttribute("tabindex","-1"));let n=i&&i.canZoomIn(),r=i&&i.canZoomOut();for(const t of e.querySelectorAll('[data-panzoom-action="zoomIn"]'))n?(t.removeAttribute("disabled"),t.removeAttribute("tabindex")):(t.setAttribute("disabled",""),t.setAttribute("tabindex","-1"));for(const t of e.querySelectorAll('[data-panzoom-action="zoomOut"]'))r?(t.removeAttribute("disabled"),t.removeAttribute("tabindex")):(t.setAttribute("disabled",""),t.setAttribute("tabindex","-1"));for(const t of e.querySelectorAll('[data-panzoom-action="toggleZoom"],[data-panzoom-action="iterateZoom"]')){r||n?(t.removeAttribute("disabled"),t.removeAttribute("tabindex")):(t.setAttribute("disabled",""),t.setAttribute("tabindex","-1"));const e=t.querySelector("g");e&&(e.style.display=n?"":"none")}}onDone(e,t){var i;null===(i=t.panzoom)||void 0===i||i.on("afterTransform",(()=>{this.instance.isCurrentSlide(t)&&this.onRefresh()})),this.instance.isCurrentSlide(t)&&this.onRefresh()}createContainer(){const e=this.instance.container;if(!e)return null;const t=this.option("parentEl")||e,i=document.createElement("div");return _(i,"fancybox__toolbar"),t.prepend(i),i.addEventListener("click",this.onClick,{passive:!1,capture:!0}),e&&_(e,"has-toolbar"),this.container=i,i}createEl(e){const t=this.instance,i=t.carousel;if(!i)return null;if("toggleFS"===e)return null;if("fullscreen"===e&&!t.fsAPI)return null;let n=null;const s=i.slides.length||0;let o=0,a=0;for(const e of i.slides)(e.panzoom||"image"===e.type)&&o++,("image"===e.type||e.downloadSrc)&&a++;if(s<2&&["infobar","prev","next"].includes(e))return n;if(void 0!==Re[e]&&!o)return null;if("download"===e&&!a)return null;if("thumbs"===e){const e=t.plugins.Thumbs;if(!e||!e.isEnabled)return null}if("slideshow"===e&&(!i.plugins.Autoplay||s<2))return null;if(void 0!==Re[e]){const t=Re[e];n=document.createElement("button"),n.setAttribute("title",this.instance.localize(`{{${e.toUpperCase()}}}`)),_(n,"f-button"),t.action&&(n.dataset.panzoomAction=t.action),t.change&&(n.dataset.panzoomChange=JSON.stringify(t.change)),n.appendChild(r(this.instance.localize(t.icon)))}else{const t=(this.option("items")||[])[e];t&&(n=r(this.instance.localize(t.tpl)),"function"==typeof t.click&&n.addEventListener("click",(e=>{e.preventDefault(),e.stopPropagation(),"function"==typeof t.click&&t.click.call(this,this,e)})))}const l=null==n?void 0:n.querySelector("svg");if(l)for(const[e,t]of Object.entries(Fe))l.getAttribute(e)||l.setAttribute(e,String(t));return n}removeContainer(){const e=this.container;e&&e.remove(),this.container=null,this.state=De.Disabled;const t=this.instance.container;t&&S(t,"has-toolbar")}attach(){const e=this,t=e.instance;t.on("Carousel.initSlides",e.onReady),t.on("done",e.onDone),t.on(["reveal","Carousel.change"],e.onChange),e.onReady(e.instance)}detach(){const e=this,t=e.instance;t.off("Carousel.initSlides",e.onReady),t.off("done",e.onDone),t.off(["reveal","Carousel.change"],e.onChange),e.removeContainer()}}Object.defineProperty(Be,"defaults",{enumerable:!0,configurable:!0,writable:!0,value:{absolute:"auto",display:{left:["infobar"],middle:[],right:["iterateZoom","slideshow","fullscreen","thumbs","close"]},enabled:"auto",items:{infobar:{tpl:'<div class="fancybox__infobar" tabindex="-1"><span data-fancybox-current-index></span>/<span data-fancybox-count></span></div>'},download:{tpl:'<a class="f-button" title="{{DOWNLOAD}}" data-fancybox-download href="javasript:;"><svg><path d="M4 17v2a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-2M7 11l5 5 5-5M12 4v12"/></svg></a>'},prev:{tpl:'<button class="f-button" title="{{PREV}}" data-fancybox-prev><svg><path d="m15 6-6 6 6 6"/></svg></button>'},next:{tpl:'<button class="f-button" title="{{NEXT}}" data-fancybox-next><svg><path d="m9 6 6 6-6 6"/></svg></button>'},slideshow:{tpl:'<button class="f-button" title="{{TOGGLE_SLIDESHOW}}" data-fancybox-toggle-slideshow><svg><g><path d="M8 4v16l13 -8z"></path></g><g><path d="M8 4v15M17 4v15"/></g></svg></button>'},fullscreen:{tpl:'<button class="f-button" title="{{TOGGLE_FULLSCREEN}}" data-fancybox-toggle-fullscreen><svg><g><path d="M4 8V6a2 2 0 0 1 2-2h2M4 16v2a2 2 0 0 0 2 2h2M16 4h2a2 2 0 0 1 2 2v2M16 20h2a2 2 0 0 0 2-2v-2"/></g><g><path d="M15 19v-2a2 2 0 0 1 2-2h2M15 5v2a2 2 0 0 0 2 2h2M5 15h2a2 2 0 0 1 2 2v2M5 9h2a2 2 0 0 0 2-2V5"/></g></svg></button>'},thumbs:{tpl:'<button class="f-button" title="{{TOGGLE_THUMBS}}" data-fancybox-toggle-thumbs><svg><circle cx="5.5" cy="5.5" r="1"/><circle cx="12" cy="5.5" r="1"/><circle cx="18.5" cy="5.5" r="1"/><circle cx="5.5" cy="12" r="1"/><circle cx="12" cy="12" r="1"/><circle cx="18.5" cy="12" r="1"/><circle cx="5.5" cy="18.5" r="1"/><circle cx="12" cy="18.5" r="1"/><circle cx="18.5" cy="18.5" r="1"/></svg></button>'},close:{tpl:'<button class="f-button" title="{{CLOSE}}" data-fancybox-close><svg><path d="m19.5 4.5-15 15M4.5 4.5l15 15"/></svg></button>'}},parentEl:null}});const je={Hash:oe,Html:be,Images:ce,Slideshow:Se,Thumbs:Ie,Toolbar:Be},Ne="with-fancybox",He="hide-scrollbar",$e="--fancybox-scrollbar-compensate",qe="--fancybox-body-margin",Ye="is-using-tab",Xe="is-animated",Ve="is-compact",Ge="is-loading",We="has-caption",Ue="disabled",Ze="tabindex",Ke="download",Je="href",Qe="src",et=e=>"string"==typeof e,tt=function(){var e=window.getSelection();return e&&"Range"===e.type};let it=null,nt=null;const rt=new Map;let st=0;class ot extends g{get isIdle(){return this.idle}get isCompact(){return this.option("compact")}constructor(e=[],t={},i={}){super(t),Object.defineProperty(this,"userSlides",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(this,"userPlugins",{enumerable:!0,configurable:!0,writable:!0,value:{}}),Object.defineProperty(this,"idle",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"idleTimer",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"clickTimer",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"pwt",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"ignoreFocusChange",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"state",{enumerable:!0,configurable:!0,writable:!0,value:ne.Init}),Object.defineProperty(this,"id",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"container",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"footer",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"caption",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"carousel",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"lastFocus",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"prevMouseMoveEvent",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"fsAPI",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.fsAPI=(()=>{let e,t="",i="",n="";return document.fullscreenEnabled?(t="requestFullscreen",i="exitFullscreen",n="fullscreenElement"):document.webkitFullscreenEnabled&&(t="webkitRequestFullscreen",i="webkitExitFullscreen",n="webkitFullscreenElement"),t&&(e={request:function(e){return"webkitRequestFullscreen"===t?e[t](Element.ALLOW_KEYBOARD_INPUT):e[t]()},exit:function(){return document[n]&&document[i]()},isFullscreen:function(){return document[n]}}),e})(),this.id=t.id||++st,rt.set(this.id,this),this.userSlides=e,this.userPlugins=i,queueMicrotask((()=>{this.init()}))}init(){if(this.state===ne.Destroy)return;this.state=ne.Init,this.attachPlugins(Object.assign(Object.assign({},ot.Plugins),this.userPlugins)),this.emit("init"),this.emit("attachPlugins"),!0===this.option("hideScrollbar")&&(()=>{if(!J)return;const e=document,t=e.body,i=e.documentElement;if(t.classList.contains(He))return;let n=window.innerWidth-i.getBoundingClientRect().width;const r=parseFloat(window.getComputedStyle(t).marginRight);n<0&&(n=0),i.style.setProperty($e,`${n}px`),r&&t.style.setProperty(qe,`${r}px`),t.classList.add(He)})(),this.initLayout(),this.scale();const e=()=>{this.initCarousel(this.userSlides),this.state=ne.Ready,this.attachEvents(),this.emit("ready"),setTimeout((()=>{this.container&&this.container.setAttribute("aria-hidden","false")}),16)},t=this.fsAPI;this.option("Fullscreen.autoStart")&&t&&!t.isFullscreen()?t.request(this.container).then((()=>e())).catch((()=>e())):e()}initLayout(){var e,t;const i=this.option("parentEl")||document.body,n=r(this.localize(this.option("tpl.main")||""));n&&(n.setAttribute("id",`fancybox-${this.id}`),n.setAttribute("aria-label",this.localize("{{MODAL}}")),n.classList.toggle(Ve,this.isCompact),_(n,this.option("mainClass")||""),this.container=n,this.footer=n.querySelector(".fancybox__footer"),i.appendChild(n),_(document.documentElement,Ne),it&&nt||(it=document.createElement("span"),_(it,"fancybox-focus-guard"),it.setAttribute(Ze,"0"),it.setAttribute("aria-hidden","true"),it.setAttribute("aria-label","Focus guard"),nt=it.cloneNode(),null===(e=n.parentElement)||void 0===e||e.insertBefore(it,n),null===(t=n.parentElement)||void 0===t||t.append(nt)),n.addEventListener("mousedown",(()=>{S(n,Ye)})),this.option("animated")&&(_(n,Xe),setTimeout((()=>{this.isClosing()||S(n,Xe)}),350)),this.emit("initLayout"))}initCarousel(e){const i=this.container;if(!i)return;const n=i.querySelector(".fancybox__carousel");if(!n)return;const r=this.carousel=new Z(n,p({},{slides:e,transition:"fade",Panzoom:{lockAxis:this.option("dragToClose")?"xy":"x",infinite:!!this.option("dragToClose")&&"y"},Dots:!1,Navigation:{classes:{container:"fancybox__nav",button:"f-button",isNext:"is-next",isPrev:"is-prev"}},initialPage:this.option("startIndex"),l10n:this.option("l10n")},this.option("Carousel")||{}));r.on("*",((e,t,...i)=>{this.emit(`Carousel.${t}`,e,...i)})),r.on(["ready","change"],(()=>{this.manageCaption()})),this.on("Carousel.removeSlide",((e,t,i)=>{this.clearContent(i),i.state=void 0})),r.on("Panzoom.touchStart",(()=>{var e,t;this.isCompact||this.endIdle(),(null===(e=document.activeElement)||void 0===e?void 0:e.closest(".f-thumbs"))&&(null===(t=this.container)||void 0===t||t.focus())})),r.on("settle",(()=>{this.idleTimer||this.isCompact||!this.option("idle")||this.setIdle(),this.option("autoFocus")&&!this.isClosing&&this.checkFocus()})),this.option("dragToClose")&&(r.on("Panzoom.afterTransform",((e,i)=>{const n=this.getSlide();if(n&&t(n.el))return;const r=this.container;if(r){const e=Math.abs(i.current.f),t=e<1?"":Math.max(.5,Math.min(1,1-e/i.contentRect.fitHeight*1.5));r.style.setProperty("--fancybox-ts",t?"0s":""),r.style.setProperty("--fancybox-opacity",t+"")}})),r.on("Panzoom.touchEnd",((e,i,n)=>{var r;const s=this.getSlide();if(s&&t(s.el))return;if(i.isMobile&&document.activeElement&&-1!==["TEXTAREA","INPUT"].indexOf(null===(r=document.activeElement)||void 0===r?void 0:r.nodeName))return;const o=Math.abs(i.dragOffset.y);"y"===i.lockedAxis&&(o>=200||o>=50&&i.dragOffset.time<300)&&(n&&n.cancelable&&n.preventDefault(),this.close(n,"f-throwOut"+(i.current.f<0?"Up":"Down")))}))),r.on("change",(e=>{var t;let i=null===(t=this.getSlide())||void 0===t?void 0:t.triggerEl;if(i){const t=new CustomEvent("slideTo",{bubbles:!0,cancelable:!0,detail:e.page});i.dispatchEvent(t)}})),r.on(["refresh","change"],(e=>{const t=this.container;if(!t)return;for(const i of t.querySelectorAll("[data-fancybox-current-index]"))i.innerHTML=e.page+1;for(const i of t.querySelectorAll("[data-fancybox-count]"))i.innerHTML=e.pages.length;if(!e.isInfinite){for(const i of t.querySelectorAll("[data-fancybox-next]"))e.page<e.pages.length-1?(i.removeAttribute(Ue),i.removeAttribute(Ze)):(i.setAttribute(Ue,""),i.setAttribute(Ze,"-1"));for(const i of t.querySelectorAll("[data-fancybox-prev]"))e.page>0?(i.removeAttribute(Ue),i.removeAttribute(Ze)):(i.setAttribute(Ue,""),i.setAttribute(Ze,"-1"))}const i=this.getSlide();if(!i)return;let n=i.downloadSrc||"";n||"image"!==i.type||i.error||!et(i[Qe])||(n=i[Qe]);for(const e of t.querySelectorAll("[data-fancybox-download]")){const t=i.downloadFilename;n?(e.removeAttribute(Ue),e.removeAttribute(Ze),e.setAttribute(Je,n),e.setAttribute(Ke,t||n),e.setAttribute("target","_blank")):(e.setAttribute(Ue,""),e.setAttribute(Ze,"-1"),e.removeAttribute(Je),e.removeAttribute(Ke))}})),this.emit("initCarousel")}attachEvents(){const e=this,t=e.container;if(!t)return;t.addEventListener("click",e.onClick,{passive:!1,capture:!1}),t.addEventListener("wheel",e.onWheel,{passive:!1,capture:!1}),document.addEventListener("keydown",e.onKeydown,{passive:!1,capture:!0}),document.addEventListener("visibilitychange",e.onVisibilityChange,!1),document.addEventListener("mousemove",e.onMousemove),e.option("trapFocus")&&document.addEventListener("focus",e.onFocus,!0),window.addEventListener("resize",e.onResize);const i=window.visualViewport;i&&(i.addEventListener("scroll",e.onResize),i.addEventListener("resize",e.onResize))}detachEvents(){const e=this,t=e.container;if(!t)return;document.removeEventListener("keydown",e.onKeydown,{passive:!1,capture:!0}),t.removeEventListener("wheel",e.onWheel,{passive:!1,capture:!1}),t.removeEventListener("click",e.onClick,{passive:!1,capture:!1}),document.removeEventListener("mousemove",e.onMousemove),window.removeEventListener("resize",e.onResize);const i=window.visualViewport;i&&(i.removeEventListener("resize",e.onResize),i.removeEventListener("scroll",e.onResize)),document.removeEventListener("visibilitychange",e.onVisibilityChange,!1),document.removeEventListener("focus",e.onFocus,!0)}scale(){const e=this.container;if(!e)return;const t=window.visualViewport,i=Math.max(1,(null==t?void 0:t.scale)||1);let n="",r="",s="";if(t&&i>1){let e=`${t.offsetLeft}px`,o=`${t.offsetTop}px`;n=t.width*i+"px",r=t.height*i+"px",s=`translate3d(${e}, ${o}, 0) scale(${1/i})`}e.style.transform=s,e.style.width=n,e.style.height=r}onClick(e){var t,i;const{container:n,isCompact:r}=this;if(!n||this.isClosing())return;!r&&this.option("idle")&&this.resetIdle();const s=e.composedPath()[0];if(s.closest(".f-spinner")||s.closest("[data-fancybox-close]"))return e.preventDefault(),void this.close(e);if(s.closest("[data-fancybox-prev]"))return e.preventDefault(),void this.prev();if(s.closest("[data-fancybox-next]"))return e.preventDefault(),void this.next();const o=document.activeElement;if(tt()&&o&&n.contains(o))return;if(s===(null===(t=this.carousel)||void 0===t?void 0:t.container))return;if(r&&"image"===(null===(i=this.getSlide())||void 0===i?void 0:i.type))return void(this.clickTimer?(clearTimeout(this.clickTimer),this.clickTimer=null):this.clickTimer=setTimeout((()=>{this.toggleIdle(),this.clickTimer=null}),350));if(this.emit("click",e),e.defaultPrevented)return;let a=!1;if(s.closest(".fancybox__content")){if(o){if(o.closest("[contenteditable]"))return;s.matches(ee)||o.blur()}if(tt())return;a=this.option("contentClick")}else s.closest(".fancybox__carousel")&&!s.matches(ee)&&(a=this.option("backdropClick"));"close"===a?(e.preventDefault(),this.close(e)):"next"===a?(e.preventDefault(),this.next()):"prev"===a&&(e.preventDefault(),this.prev())}onWheel(e){const t=e.target;let i=this.option("wheel",e);t.closest(".fancybox__thumbs")&&(i="slide");const r="slide"===i,s=[-e.deltaX||0,-e.deltaY||0,-e.detail||0].reduce((function(e,t){return Math.abs(t)>Math.abs(e)?t:e})),o=Math.max(-1,Math.min(1,s)),a=Date.now();this.pwt&&a-this.pwt<300?r&&e.preventDefault():(this.pwt=a,this.emit("wheel",e,o),e.defaultPrevented||("close"===i?(e.preventDefault(),this.close(e)):"slide"===i&&(n(t)||(e.preventDefault(),this[o>0?"prev":"next"]()))))}onKeydown(e){if(!this.isTopmost())return;this.isCompact||!this.option("idle")||this.isClosing()||this.resetIdle();const t=e.key,i=this.option("keyboard");if(!i)return;const n=e.composedPath()[0],r=document.activeElement&&document.activeElement.classList,s=r&&r.contains("f-button")||n.dataset.carouselPage||n.dataset.carouselIndex;if("Escape"!==t&&!s&&T(n)&&(n.isContentEditable||-1!==["TEXTAREA","OPTION","INPUT","SELECT","VIDEO"].indexOf(n.nodeName)))return;if("Tab"===e.key?_(this.container,Ye):S(this.container,Ye),e.ctrlKey||e.altKey||e.shiftKey)return;this.emit("keydown",t,e);const o=i[t];o&&"function"==typeof this[o]&&(e.preventDefault(),this[o]())}onResize(){const e=this.container;if(!e)return;const t=this.isCompact;e.classList.toggle(Ve,t),this.manageCaption(this.getSlide()),this.isCompact?this.clearIdle():this.endIdle(),this.scale(),this.emit("resize")}onFocus(e){this.isTopmost()&&this.checkFocus(e)}onMousemove(e){this.prevMouseMoveEvent=e,!this.isCompact&&this.option("idle")&&this.resetIdle()}onVisibilityChange(){"visible"===document.visibilityState?this.checkFocus():this.endIdle()}manageCloseBtn(e){const t=this.optionFor(e,"closeButton")||!1;if("auto"===t){const e=this.plugins.Toolbar;if(e&&e.state===De.Ready)return}if(!t)return;if(!e.contentEl||e.closeBtnEl)return;const i=this.option("tpl.closeButton");if(i){const t=r(this.localize(i));e.closeBtnEl=e.contentEl.appendChild(t),e.el&&_(e.el,"has-close-btn")}}manageCaption(e=void 0){var t,i;const n="fancybox__caption",r=this.container;if(!r)return;S(r,We);const s=this.isCompact||this.option("commonCaption"),o=!s;if(this.caption&&this.stop(this.caption),o&&this.caption&&(this.caption.remove(),this.caption=null),s&&!this.caption)for(const e of(null===(t=this.carousel)||void 0===t?void 0:t.slides)||[])e.captionEl&&(e.captionEl.remove(),e.captionEl=void 0,S(e.el,We),null===(i=e.el)||void 0===i||i.removeAttribute("aria-labelledby"));if(e||(e=this.getSlide()),!e||s&&!this.isCurrentSlide(e))return;const a=e.el;let l=this.optionFor(e,"caption","");if(!l)return void(s&&this.caption&&this.animate(this.caption,"f-fadeOut",(()=>{this.caption&&(this.caption.innerHTML="")})));let c=null;if(o){if(c=e.captionEl||null,a&&!c){const t=n+`_${this.id}_${e.index}`;c=document.createElement("div"),_(c,n),c.setAttribute("id",t),e.captionEl=a.appendChild(c),_(a,We),a.setAttribute("aria-labelledby",t)}}else c=this.caption,c||(c=r.querySelector("."+n)),c||(c=document.createElement("div"),c.dataset.fancyboxCaption="",_(c,n),(this.footer||r).prepend(c)),_(r,We),this.caption=c;c&&(c.innerHTML="",et(l)||"number"==typeof l?c.innerHTML=l+"":l instanceof HTMLElement&&c.appendChild(l))}checkFocus(e){this.focus(e)}focus(e){var t;if(this.ignoreFocusChange)return;const i=document.activeElement||null,n=(null==e?void 0:e.target)||null,r=this.container,s=this.getSlide();if(!r||!(null===(t=this.carousel)||void 0===t?void 0:t.viewport))return;if(!e&&i&&r.contains(i))return;const o=s&&s.state===re.Ready?s.el:null;if(!o||o.contains(i)||r===i)return;e&&e.cancelable&&e.preventDefault(),this.ignoreFocusChange=!0;const a=Array.from(r.querySelectorAll(ee));let l=[],c=null;for(let e of a){const t=!e.offsetParent||!!e.closest('[aria-hidden="true"]'),i=o&&o.contains(e),n=!this.carousel.viewport.contains(e);if(e===r||(i||n)&&!t){l.push(e);const t=e.dataset.origTabindex;void 0!==t&&t&&(e.tabIndex=parseFloat(t)),e.removeAttribute("data-orig-tabindex"),!e.hasAttribute("autoFocus")&&c||(c=e)}else{const t=void 0===e.dataset.origTabindex?e.getAttribute("tabindex")||"":e.dataset.origTabindex;t&&(e.dataset.origTabindex=t),e.tabIndex=-1}}let d=null;e?(!n||l.indexOf(n)<0)&&(d=c||r,l.length&&(i===nt?d=l[0]:this.lastFocus!==r&&i!==it||(d=l[l.length-1]))):d=s&&"image"===s.type?r:c||r,d&&te(d),this.lastFocus=document.activeElement,this.ignoreFocusChange=!1}next(){const e=this.carousel;e&&e.pages.length>1&&e.slideNext()}prev(){const e=this.carousel;e&&e.pages.length>1&&e.slidePrev()}jumpTo(...e){this.carousel&&this.carousel.slideTo(...e)}isTopmost(){var e;return(null===(e=ot.getInstance())||void 0===e?void 0:e.id)==this.id}animate(e=null,t="",i){if(!e||!t)return void(i&&i());this.stop(e);const n=r=>{r.target===e&&e.dataset.animationName&&(e.removeEventListener("animationend",n),delete e.dataset.animationName,i&&i(),S(e,t))};e.dataset.animationName=t,e.addEventListener("animationend",n),_(e,t)}stop(e){e&&e.dispatchEvent(new CustomEvent("animationend",{bubbles:!1,cancelable:!0,currentTarget:e}))}setContent(e,t="",i=!0){if(this.isClosing())return;const n=e.el;if(!n)return;let s=null;if(T(t)?s=t:(s=r(t+""),T(s)||(s=document.createElement("div"),s.innerHTML=t+"")),["img","picture","iframe","video","audio"].includes(s.nodeName.toLowerCase())){const e=document.createElement("div");e.appendChild(s),s=e}T(s)&&e.filter&&!e.error&&(s=s.querySelector(e.filter)),s&&T(s)?(_(s,"fancybox__content"),e.id&&s.setAttribute("id",e.id),"none"!==s.style.display&&"none"!==getComputedStyle(s).getPropertyValue("display")||(s.style.display=e.display||this.option("defaultDisplay")||"flex"),n.classList.add(`has-${e.error?"error":e.type||"unknown"}`),n.prepend(s),e.contentEl=s,i&&this.revealContent(e),this.manageCloseBtn(e),this.manageCaption(e)):this.setError(e,"{{ELEMENT_NOT_FOUND}}")}revealContent(e,t){const i=e.el,n=e.contentEl;i&&n&&(this.emit("reveal",e),this.hideLoading(e),e.state=re.Opening,(t=this.isOpeningSlide(e)?void 0===t?this.optionFor(e,"showClass"):t:"f-fadeIn")?this.animate(n,t,(()=>{this.done(e)})):this.done(e))}done(e){this.isClosing()||(e.state=re.Ready,this.emit("done",e),_(e.el,"is-done"),this.isCurrentSlide(e)&&this.option("autoFocus")&&queueMicrotask((()=>{var t;null===(t=e.panzoom)||void 0===t||t.updateControls(),this.option("autoFocus")&&(this.option("autoFocus")?this.focus():this.checkFocus())})),this.isOpeningSlide(e)&&!this.isCompact&&this.option("idle")&&this.setIdle())}isCurrentSlide(e){const t=this.getSlide();return!(!e||!t)&&t.index===e.index}isOpeningSlide(e){var t,i;return null===(null===(t=this.carousel)||void 0===t?void 0:t.prevPage)&&e.index===(null===(i=this.getSlide())||void 0===i?void 0:i.index)}showLoading(e){e.state=re.Loading;const t=e.el;t&&(_(t,Ge),this.emit("loading",e),e.spinnerEl||setTimeout((()=>{if(!this.isClosing()&&!e.spinnerEl&&e.state===re.Loading){let i=r(x);e.spinnerEl=i,t.prepend(i),this.animate(i,"f-fadeIn")}}),250))}hideLoading(e){const t=e.el;if(!t)return;const i=e.spinnerEl;this.isClosing()?null==i||i.remove():(S(t,Ge),i&&this.animate(i,"f-fadeOut",(()=>{i.remove()})),e.state===re.Loading&&(this.emit("loaded",e),e.state=re.Ready))}setError(e,t){if(this.isClosing())return;const i=new Event("error",{bubbles:!0,cancelable:!0});if(this.emit("error",i,e),i.defaultPrevented)return;e.error=t,this.hideLoading(e),this.clearContent(e);const n=document.createElement("div");n.classList.add("fancybox-error"),n.innerHTML=this.localize(t||"<p>{{ERROR}}</p>"),this.setContent(e,n)}clearContent(e){if(void 0===e.state)return;this.emit("clearContent",e),e.contentEl&&(e.contentEl.remove(),e.contentEl=void 0);const t=e.el;t&&(S(t,"has-error"),S(t,"has-unknown"),S(t,`has-${e.type||"unknown"}`)),e.closeBtnEl&&e.closeBtnEl.remove(),e.closeBtnEl=void 0,e.captionEl&&e.captionEl.remove(),e.captionEl=void 0,e.spinnerEl&&e.spinnerEl.remove(),e.spinnerEl=void 0}getSlide(){var e;const t=this.carousel;return(null===(e=null==t?void 0:t.pages[null==t?void 0:t.page])||void 0===e?void 0:e.slides[0])||void 0}close(e,t){if(this.isClosing())return;const i=new Event("shouldClose",{bubbles:!0,cancelable:!0});if(this.emit("shouldClose",i,e),i.defaultPrevented)return;e&&e.cancelable&&(e.preventDefault(),e.stopPropagation());const n=this.fsAPI,r=()=>{this.proceedClose(e,t)};n&&n.isFullscreen()===this.container?Promise.resolve(n.exit()).then((()=>r())):r()}clearIdle(){this.idleTimer&&clearTimeout(this.idleTimer),this.idleTimer=null}setIdle(e=!1){const t=()=>{this.clearIdle(),this.idle=!0,_(this.container,"is-idle"),this.emit("setIdle")};if(this.clearIdle(),!this.isClosing())if(e)t();else{const e=this.option("idle");e&&(this.idleTimer=setTimeout(t,e))}}endIdle(){this.clearIdle(),this.idle&&!this.isClosing()&&(this.idle=!1,S(this.container,"is-idle"),this.emit("endIdle"))}resetIdle(){this.endIdle(),this.setIdle()}toggleIdle(){this.idle?this.endIdle():this.setIdle(!0)}toggleFullscreen(){const e=this.fsAPI;e&&(e.isFullscreen()?e.exit():this.container&&e.request(this.container))}isClosing(){return[ne.Closing,ne.CustomClosing,ne.Destroy].includes(this.state)}proceedClose(e,t){var i,n;this.state=ne.Closing,this.clearIdle(),this.detachEvents();const r=this.container,s=this.carousel,o=this.getSlide(),a=o&&this.option("placeFocusBack")?o.triggerEl||this.option("triggerEl"):null;if(a&&(K(a)?te(a):a.focus()),r&&(_(r,"is-closing"),r.setAttribute("aria-hidden","true"),this.option("animated")&&_(r,Xe),r.style.pointerEvents="none"),s){s.clearTransitions(),null===(i=s.panzoom)||void 0===i||i.destroy(),null===(n=s.plugins.Navigation)||void 0===n||n.detach();for(const e of s.slides){e.state=re.Closing,this.hideLoading(e);const t=e.contentEl;t&&this.stop(t);const i=null==e?void 0:e.panzoom;i&&(i.stop(),i.detachEvents(),i.detachObserver()),this.isCurrentSlide(e)||s.emit("removeSlide",e)}}this.emit("close",e),this.state!==ne.CustomClosing?(void 0===t&&o&&(t=this.optionFor(o,"hideClass")),t&&o?(this.animate(o.contentEl,t,(()=>{s&&s.emit("removeSlide",o)})),setTimeout((()=>{this.destroy()}),500)):this.destroy()):setTimeout((()=>{this.destroy()}),500)}destroy(){var e;if(this.state===ne.Destroy)return;this.state=ne.Destroy,null===(e=this.carousel)||void 0===e||e.destroy();const t=this.container;t&&t.remove(),rt.delete(this.id);const i=ot.getInstance();i?i.focus():(it&&(it.remove(),it=null),nt&&(nt.remove(),nt=null),S(document.documentElement,Ne),(()=>{if(!J)return;const e=document,t=e.body;t.classList.remove(He),t.style.setProperty(qe,""),e.documentElement.style.setProperty($e,"")})(),this.emit("destroy"))}static bind(e,t,i){if(!J)return;let n,r="",s={};if(void 0===e?n=document.body:et(e)?(n=document.body,r=e,"object"==typeof t&&(s=t||{})):(n=e,et(t)&&(r=t),"object"==typeof i&&(s=i||{})),!n||!T(n))return;r=r||"[data-fancybox]";const o=ot.openers.get(n)||new Map;o.set(r,s),ot.openers.set(n,o),1===o.size&&n.addEventListener("click",ot.fromEvent)}static unbind(e,t){let i,n="";if(et(e)?(i=document.body,n=e):(i=e,et(t)&&(n=t)),!i)return;const r=ot.openers.get(i);r&&n&&r.delete(n),n&&r||(ot.openers.delete(i),i.removeEventListener("click",ot.fromEvent))}static destroy(){let e;for(;e=ot.getInstance();)e.destroy();for(const e of ot.openers.keys())e.removeEventListener("click",ot.fromEvent);ot.openers=new Map}static fromEvent(e){if(e.defaultPrevented)return;if(e.button&&0!==e.button)return;if(e.ctrlKey||e.metaKey||e.shiftKey)return;let t=e.composedPath()[0];const i=t.closest("[data-fancybox-trigger]");if(i){const e=i.dataset.fancyboxTrigger||"",n=document.querySelectorAll(`[data-fancybox="${e}"]`),r=parseInt(i.dataset.fancyboxIndex||"",10)||0;t=n[r]||t}if(!(t&&t instanceof Element))return;let n,r,s,o;if([...ot.openers].reverse().find((([e,i])=>!(!e.contains(t)||![...i].reverse().find((([i,a])=>{let l=t.closest(i);return!!l&&(n=e,r=i,s=l,o=a,!0)}))))),!n||!r||!s)return;o=o||{},e.preventDefault(),t=s;let a=[],l=p({},ie,o);l.event=e,l.triggerEl=t,l.delegate=i;const c=l.groupAll,d=l.groupAttr,u=d&&t?t.getAttribute(`${d}`):"";if((!t||u||c)&&(a=[].slice.call(n.querySelectorAll(r))),t&&!c&&(a=u?a.filter((e=>e.getAttribute(`${d}`)===u)):[t]),!a.length)return;const h=ot.getInstance();return h&&h.options.triggerEl&&a.indexOf(h.options.triggerEl)>-1?void 0:(t&&(l.startIndex=a.indexOf(t)),ot.fromNodes(a,l))}static fromSelector(e,t,i){let n=null,r="",s={};if(et(e)?(n=document.body,r=e,"object"==typeof t&&(s=t||{})):e instanceof HTMLElement&&et(t)&&(n=e,r=t,"object"==typeof i&&(s=i||{})),!n||!r)return!1;const o=ot.openers.get(n);return!!o&&(s=p({},o.get(r)||{},s),!!s&&ot.fromNodes(Array.from(n.querySelectorAll(r)),s))}static fromNodes(e,t){t=p({},ie,t||{});const i=[];for(const n of e){const e=n.dataset||{},r=e[Qe]||n.getAttribute(Je)||n.getAttribute("currentSrc")||n.getAttribute(Qe)||void 0;let s;const o=t.delegate;let a;o&&i.length===t.startIndex&&(s=o instanceof HTMLImageElement?o:o.querySelector("img:not([aria-hidden])")),s||(s=n instanceof HTMLImageElement?n:n.querySelector("img:not([aria-hidden])")),s&&(a=s.currentSrc||s[Qe]||void 0,!a&&s.dataset&&(a=s.dataset.lazySrc||s.dataset[Qe]||void 0));const l={src:r,triggerEl:n,thumbEl:s,thumbElSrc:a,thumbSrc:a};for(const t in e){let i=e[t]+"";i="false"!==i&&("true"===i||i),l[t]=i}i.push(l)}return new ot(i,t)}static getInstance(e){return e?rt.get(e):Array.from(rt.values()).reverse().find((e=>!e.isClosing()&&e))||null}static getSlide(){var e;return(null===(e=ot.getInstance())||void 0===e?void 0:e.getSlide())||null}static show(e=[],t={}){return new ot(e,t)}static next(){const e=ot.getInstance();e&&e.next()}static prev(){const e=ot.getInstance();e&&e.prev()}static close(e=!0,...t){if(e)for(const e of rt.values())e.close(...t);else{const e=ot.getInstance();e&&e.close(...t)}}}function at(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var n in i)e[n]=i[n]}return e}Object.defineProperty(ot,"version",{enumerable:!0,configurable:!0,writable:!0,value:"5.0.28"}),Object.defineProperty(ot,"defaults",{enumerable:!0,configurable:!0,writable:!0,value:ie}),Object.defineProperty(ot,"Plugins",{enumerable:!0,configurable:!0,writable:!0,value:je}),Object.defineProperty(ot,"openers",{enumerable:!0,configurable:!0,writable:!0,value:new Map});var lt=function e(t,i){function n(e,n,r){if("undefined"!=typeof document){"number"==typeof(r=at({},i,r)).expires&&(r.expires=new Date(Date.now()+864e5*r.expires)),r.expires&&(r.expires=r.expires.toUTCString()),e=encodeURIComponent(e).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var s="";for(var o in r)r[o]&&(s+="; "+o,!0!==r[o]&&(s+="="+r[o].split(";")[0]));return document.cookie=e+"="+t.write(n,e)+s}}return Object.create({set:n,get:function(e){if("undefined"!=typeof document&&(!arguments.length||e)){for(var i=document.cookie?document.cookie.split("; "):[],n={},r=0;r<i.length;r++){var s=i[r].split("="),o=s.slice(1).join("=");try{var a=decodeURIComponent(s[0]);if(n[a]=t.read(o,a),e===a)break}catch(e){}}return e?n[e]:n}},remove:function(e,t){n(e,"",at({},t,{expires:-1}))},withAttributes:function(t){return e(this.converter,at({},this.attributes,t))},withConverter:function(t){return e(at({},this.converter,t),this.attributes)}},{attributes:{value:Object.freeze(i)},converter:{value:Object.freeze(t)}})}({read:function(e){return'"'===e[0]&&(e=e.slice(1,-1)),e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(e){return encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}},{path:"/"});function ct(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function dt(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}window.body=document.querySelector("body"),window.bodyOverlay=document.querySelector(".body-overlay"),window.mobileLimit=1024,window.Fancybox=ot,window.Cookies=lt,i(662);var ut,ht,pt,ft,mt,gt,vt,bt,yt,wt,xt,Tt={autoSleep:120,force3D:"auto",nullTargetWarn:1,units:{lineHeight:""}},St={duration:.5,overwrite:!1,delay:0},_t=1e8,Et=1e-8,Ct=2*Math.PI,Mt=Ct/4,Pt=0,Ot=Math.sqrt,kt=Math.cos,At=Math.sin,Lt=function(e){return"string"==typeof e},zt=function(e){return"function"==typeof e},It=function(e){return"number"==typeof e},Rt=function(e){return void 0===e},Dt=function(e){return"object"==typeof e},Ft=function(e){return!1!==e},Bt=function(){return"undefined"!=typeof window},jt=function(e){return zt(e)||Lt(e)},Nt="function"==typeof ArrayBuffer&&ArrayBuffer.isView||function(){},Ht=Array.isArray,$t=/(?:-?\.?\d|\.)+/gi,qt=/[-+=.]*\d+[.e\-+]*\d*[e\-+]*\d*/g,Yt=/[-+=.]*\d+[.e-]*\d*[a-z%]*/g,Xt=/[-+=.]*\d+\.?\d*(?:e-|e\+)?\d*/gi,Vt=/[+-]=-?[.\d]+/,Gt=/[^,'"\[\]\s]+/gi,Wt=/^[+\-=e\s\d]*\d+[.\d]*([a-z]*|%)\s*$/i,Ut={},Zt={},Kt=function(e){return(Zt=Ci(e,Ut))&&Mr},Jt=function(e,t){return console.warn("Invalid property",e,"set to",t,"Missing plugin? gsap.registerPlugin()")},Qt=function(e,t){return!t&&console.warn(e)},ei=function(e,t){return e&&(Ut[e]=t)&&Zt&&(Zt[e]=t)||Ut},ti=function(){return 0},ii={suppressEvents:!0,isStart:!0,kill:!1},ni={suppressEvents:!0,kill:!1},ri={suppressEvents:!0},si={},oi=[],ai={},li={},ci={},di=30,ui=[],hi="",pi=function(e){var t,i,n=e[0];if(Dt(n)||zt(n)||(e=[e]),!(t=(n._gsap||{}).harness)){for(i=ui.length;i--&&!ui[i].targetTest(n););t=ui[i]}for(i=e.length;i--;)e[i]&&(e[i]._gsap||(e[i]._gsap=new Hn(e[i],t)))||e.splice(i,1);return e},fi=function(e){return e._gsap||pi(rn(e))[0]._gsap},mi=function(e,t,i){return(i=e[t])&&zt(i)?e[t]():Rt(i)&&e.getAttribute&&e.getAttribute(t)||i},gi=function(e,t){return(e=e.split(",")).forEach(t)||e},vi=function(e){return Math.round(1e5*e)/1e5||0},bi=function(e){return Math.round(1e7*e)/1e7||0},yi=function(e,t){var i=t.charAt(0),n=parseFloat(t.substr(2));return e=parseFloat(e),"+"===i?e+n:"-"===i?e-n:"*"===i?e*n:e/n},wi=function(e,t){for(var i=t.length,n=0;e.indexOf(t[n])<0&&++n<i;);return n<i},xi=function(){var e,t,i=oi.length,n=oi.slice(0);for(ai={},oi.length=0,e=0;e<i;e++)(t=n[e])&&t._lazy&&(t.render(t._lazy[0],t._lazy[1],!0)._lazy=0)},Ti=function(e,t,i,n){oi.length&&!ht&&xi(),e.render(t,i,n||ht&&t<0&&(e._initted||e._startAt)),oi.length&&!ht&&xi()},Si=function(e){var t=parseFloat(e);return(t||0===t)&&(e+"").match(Gt).length<2?t:Lt(e)?e.trim():e},_i=function(e){return e},Ei=function(e,t){for(var i in t)i in e||(e[i]=t[i]);return e},Ci=function(e,t){for(var i in t)e[i]=t[i];return e},Mi=function e(t,i){for(var n in i)"__proto__"!==n&&"constructor"!==n&&"prototype"!==n&&(t[n]=Dt(i[n])?e(t[n]||(t[n]={}),i[n]):i[n]);return t},Pi=function(e,t){var i,n={};for(i in e)i in t||(n[i]=e[i]);return n},Oi=function(e){var t,i=e.parent||ft,n=e.keyframes?(t=Ht(e.keyframes),function(e,i){for(var n in i)n in e||"duration"===n&&t||"ease"===n||(e[n]=i[n])}):Ei;if(Ft(e.inherit))for(;i;)n(e,i.vars.defaults),i=i.parent||i._dp;return e},ki=function(e,t,i,n,r){void 0===i&&(i="_first"),void 0===n&&(n="_last");var s,o=e[n];if(r)for(s=t[r];o&&o[r]>s;)o=o._prev;return o?(t._next=o._next,o._next=t):(t._next=e[i],e[i]=t),t._next?t._next._prev=t:e[n]=t,t._prev=o,t.parent=t._dp=e,t},Ai=function(e,t,i,n){void 0===i&&(i="_first"),void 0===n&&(n="_last");var r=t._prev,s=t._next;r?r._next=s:e[i]===t&&(e[i]=s),s?s._prev=r:e[n]===t&&(e[n]=r),t._next=t._prev=t.parent=null},Li=function(e,t){e.parent&&(!t||e.parent.autoRemoveChildren)&&e.parent.remove&&e.parent.remove(e),e._act=0},zi=function(e,t){if(e&&(!t||t._end>e._dur||t._start<0))for(var i=e;i;)i._dirty=1,i=i.parent;return e},Ii=function(e,t,i,n){return e._startAt&&(ht?e._startAt.revert(ni):e.vars.immediateRender&&!e.vars.autoRevert||e._startAt.render(t,!0,n))},Ri=function e(t){return!t||t._ts&&e(t.parent)},Di=function(e){return e._repeat?Fi(e._tTime,e=e.duration()+e._rDelay)*e:0},Fi=function(e,t){var i=Math.floor(e/=t);return e&&i===e?i-1:i},Bi=function(e,t){return(e-t._start)*t._ts+(t._ts>=0?0:t._dirty?t.totalDuration():t._tDur)},ji=function(e){return e._end=bi(e._start+(e._tDur/Math.abs(e._ts||e._rts||Et)||0))},Ni=function(e,t){var i=e._dp;return i&&i.smoothChildTiming&&e._ts&&(e._start=bi(i._time-(e._ts>0?t/e._ts:((e._dirty?e.totalDuration():e._tDur)-t)/-e._ts)),ji(e),i._dirty||zi(i,e)),e},Hi=function(e,t){var i;if((t._time||!t._dur&&t._initted||t._start<e._time&&(t._dur||!t.add))&&(i=Bi(e.rawTime(),t),(!t._dur||Qi(0,t.totalDuration(),i)-t._tTime>Et)&&t.render(i,!0)),zi(e,t)._dp&&e._initted&&e._time>=e._dur&&e._ts){if(e._dur<e.duration())for(i=e;i._dp;)i.rawTime()>=0&&i.totalTime(i._tTime),i=i._dp;e._zTime=-1e-8}},$i=function(e,t,i,n){return t.parent&&Li(t),t._start=bi((It(i)?i:i||e!==ft?Zi(e,i,t):e._time)+t._delay),t._end=bi(t._start+(t.totalDuration()/Math.abs(t.timeScale())||0)),ki(e,t,"_first","_last",e._sort?"_start":0),Vi(t)||(e._recent=t),n||Hi(e,t),e._ts<0&&Ni(e,e._tTime),e},qi=function(e,t){return(Ut.ScrollTrigger||Jt("scrollTrigger",t))&&Ut.ScrollTrigger.create(t,e)},Yi=function(e,t,i,n,r){return Un(e,t,r),e._initted?!i&&e._pt&&!ht&&(e._dur&&!1!==e.vars.lazy||!e._dur&&e.vars.lazy)&&yt!==Pn.frame?(oi.push(e),e._lazy=[r,n],1):void 0:1},Xi=function e(t){var i=t.parent;return i&&i._ts&&i._initted&&!i._lock&&(i.rawTime()<0||e(i))},Vi=function(e){var t=e.data;return"isFromStart"===t||"isStart"===t},Gi=function(e,t,i,n){var r=e._repeat,s=bi(t)||0,o=e._tTime/e._tDur;return o&&!n&&(e._time*=s/e._dur),e._dur=s,e._tDur=r?r<0?1e10:bi(s*(r+1)+e._rDelay*r):s,o>0&&!n&&Ni(e,e._tTime=e._tDur*o),e.parent&&ji(e),i||zi(e.parent,e),e},Wi=function(e){return e instanceof qn?zi(e):Gi(e,e._dur)},Ui={_start:0,endTime:ti,totalDuration:ti},Zi=function e(t,i,n){var r,s,o,a=t.labels,l=t._recent||Ui,c=t.duration()>=_t?l.endTime(!1):t._dur;return Lt(i)&&(isNaN(i)||i in a)?(s=i.charAt(0),o="%"===i.substr(-1),r=i.indexOf("="),"<"===s||">"===s?(r>=0&&(i=i.replace(/=/,"")),("<"===s?l._start:l.endTime(l._repeat>=0))+(parseFloat(i.substr(1))||0)*(o?(r<0?l:n).totalDuration()/100:1)):r<0?(i in a||(a[i]=c),a[i]):(s=parseFloat(i.charAt(r-1)+i.substr(r+1)),o&&n&&(s=s/100*(Ht(n)?n[0]:n).totalDuration()),r>1?e(t,i.substr(0,r-1),n)+s:c+s)):null==i?c:+i},Ki=function(e,t,i){var n,r,s=It(t[1]),o=(s?2:1)+(e<2?0:1),a=t[o];if(s&&(a.duration=t[1]),a.parent=i,e){for(n=a,r=i;r&&!("immediateRender"in n);)n=r.vars.defaults||{},r=Ft(r.vars.inherit)&&r.parent;a.immediateRender=Ft(n.immediateRender),e<2?a.runBackwards=1:a.startAt=t[o-1]}return new er(t[0],a,t[o+1])},Ji=function(e,t){return e||0===e?t(e):t},Qi=function(e,t,i){return i<e?e:i>t?t:i},en=function(e,t){return Lt(e)&&(t=Wt.exec(e))?t[1]:""},tn=[].slice,nn=function(e,t){return e&&Dt(e)&&"length"in e&&(!t&&!e.length||e.length-1 in e&&Dt(e[0]))&&!e.nodeType&&e!==mt},rn=function(e,t,i){return pt&&!t&&pt.selector?pt.selector(e):!Lt(e)||i||!gt&&On()?Ht(e)?function(e,t,i){return void 0===i&&(i=[]),e.forEach((function(e){var n;return Lt(e)&&!t||nn(e,1)?(n=i).push.apply(n,rn(e)):i.push(e)}))||i}(e,i):nn(e)?tn.call(e,0):e?[e]:[]:tn.call((t||vt).querySelectorAll(e),0)},sn=function(e){return e=rn(e)[0]||Qt("Invalid scope")||{},function(t){var i=e.current||e.nativeElement||e;return rn(t,i.querySelectorAll?i:i===e?Qt("Invalid scope")||vt.createElement("div"):e)}},on=function(e){return e.sort((function(){return.5-Math.random()}))},an=function(e){if(zt(e))return e;var t=Dt(e)?e:{each:e},i=Dn(t.ease),n=t.from||0,r=parseFloat(t.base)||0,s={},o=n>0&&n<1,a=isNaN(n)||o,l=t.axis,c=n,d=n;return Lt(n)?c=d={center:.5,edges:.5,end:1}[n]||0:!o&&a&&(c=n[0],d=n[1]),function(e,o,u){var h,p,f,m,g,v,b,y,w,x=(u||t).length,T=s[x];if(!T){if(!(w="auto"===t.grid?0:(t.grid||[1,_t])[1])){for(b=-_t;b<(b=u[w++].getBoundingClientRect().left)&&w<x;);w--}for(T=s[x]=[],h=a?Math.min(w,x)*c-.5:n%w,p=w===_t?0:a?x*d/w-.5:n/w|0,b=0,y=_t,v=0;v<x;v++)f=v%w-h,m=p-(v/w|0),T[v]=g=l?Math.abs("y"===l?m:f):Ot(f*f+m*m),g>b&&(b=g),g<y&&(y=g);"random"===n&&on(T),T.max=b-y,T.min=y,T.v=x=(parseFloat(t.amount)||parseFloat(t.each)*(w>x?x-1:l?"y"===l?x/w:w:Math.max(w,x/w))||0)*("edges"===n?-1:1),T.b=x<0?r-x:r,T.u=en(t.amount||t.each)||0,i=i&&x<0?In(i):i}return x=(T[e]-T.min)/T.max||0,bi(T.b+(i?i(x):x)*T.v)+T.u}},ln=function(e){var t=Math.pow(10,((e+"").split(".")[1]||"").length);return function(i){var n=bi(Math.round(parseFloat(i)/e)*e*t);return(n-n%1)/t+(It(i)?0:en(i))}},cn=function(e,t){var i,n,r=Ht(e);return!r&&Dt(e)&&(i=r=e.radius||_t,e.values?(e=rn(e.values),(n=!It(e[0]))&&(i*=i)):e=ln(e.increment)),Ji(t,r?zt(e)?function(t){return n=e(t),Math.abs(n-t)<=i?n:t}:function(t){for(var r,s,o=parseFloat(n?t.x:t),a=parseFloat(n?t.y:0),l=_t,c=0,d=e.length;d--;)(r=n?(r=e[d].x-o)*r+(s=e[d].y-a)*s:Math.abs(e[d]-o))<l&&(l=r,c=d);return c=!i||l<=i?e[c]:t,n||c===t||It(t)?c:c+en(t)}:ln(e))},dn=function(e,t,i,n){return Ji(Ht(e)?!t:!0===i?!!(i=0):!n,(function(){return Ht(e)?e[~~(Math.random()*e.length)]:(i=i||1e-5)&&(n=i<1?Math.pow(10,(i+"").length-2):1)&&Math.floor(Math.round((e-i/2+Math.random()*(t-e+.99*i))/i)*i*n)/n}))},un=function(e,t,i){return Ji(i,(function(i){return e[~~t(i)]}))},hn=function(e){for(var t,i,n,r,s=0,o="";~(t=e.indexOf("random(",s));)n=e.indexOf(")",t),r="["===e.charAt(t+7),i=e.substr(t+7,n-t-7).match(r?Gt:$t),o+=e.substr(s,t-s)+dn(r?i:+i[0],r?0:+i[1],+i[2]||1e-5),s=n+1;return o+e.substr(s,e.length-s)},pn=function(e,t,i,n,r){var s=t-e,o=n-i;return Ji(r,(function(t){return i+((t-e)/s*o||0)}))},fn=function(e,t,i){var n,r,s,o=e.labels,a=_t;for(n in o)(r=o[n]-t)<0==!!i&&r&&a>(r=Math.abs(r))&&(s=n,a=r);return s},mn=function(e,t,i){var n,r,s,o=e.vars,a=o[t],l=pt,c=e._ctx;if(a)return n=o[t+"Params"],r=o.callbackScope||e,i&&oi.length&&xi(),c&&(pt=c),s=n?a.apply(r,n):a.call(r),pt=l,s},gn=function(e){return Li(e),e.scrollTrigger&&e.scrollTrigger.kill(!!ht),e.progress()<1&&mn(e,"onInterrupt"),e},vn=[],bn=function(e){if(Bt()&&e){var t=(e=!e.name&&e.default||e).name,i=zt(e),n=t&&!i&&e.init?function(){this._props=[]}:e,r={init:ti,render:cr,add:Gn,kill:ur,modifier:dr,rawVars:0},s={targetTest:0,get:0,getSetter:sr,aliases:{},register:0};if(On(),e!==n){if(li[t])return;Ei(n,Ei(Pi(e,r),s)),Ci(n.prototype,Ci(r,Pi(e,s))),li[n.prop=t]=n,e.targetTest&&(ui.push(n),si[t]=1),t=("css"===t?"CSS":t.charAt(0).toUpperCase()+t.substr(1))+"Plugin"}ei(t,n),e.register&&e.register(Mr,n,fr)}else e&&vn.push(e)},yn=255,wn={aqua:[0,yn,yn],lime:[0,yn,0],silver:[192,192,192],black:[0,0,0],maroon:[128,0,0],teal:[0,128,128],blue:[0,0,yn],navy:[0,0,128],white:[yn,yn,yn],olive:[128,128,0],yellow:[yn,yn,0],orange:[yn,165,0],gray:[128,128,128],purple:[128,0,128],green:[0,128,0],red:[yn,0,0],pink:[yn,192,203],cyan:[0,yn,yn],transparent:[yn,yn,yn,0]},xn=function(e,t,i){return(6*(e+=e<0?1:e>1?-1:0)<1?t+(i-t)*e*6:e<.5?i:3*e<2?t+(i-t)*(2/3-e)*6:t)*yn+.5|0},Tn=function(e,t,i){var n,r,s,o,a,l,c,d,u,h,p=e?It(e)?[e>>16,e>>8&yn,e&yn]:0:wn.black;if(!p){if(","===e.substr(-1)&&(e=e.substr(0,e.length-1)),wn[e])p=wn[e];else if("#"===e.charAt(0)){if(e.length<6&&(n=e.charAt(1),r=e.charAt(2),s=e.charAt(3),e="#"+n+n+r+r+s+s+(5===e.length?e.charAt(4)+e.charAt(4):"")),9===e.length)return[(p=parseInt(e.substr(1,6),16))>>16,p>>8&yn,p&yn,parseInt(e.substr(7),16)/255];p=[(e=parseInt(e.substr(1),16))>>16,e>>8&yn,e&yn]}else if("hsl"===e.substr(0,3))if(p=h=e.match($t),t){if(~e.indexOf("="))return p=e.match(qt),i&&p.length<4&&(p[3]=1),p}else o=+p[0]%360/360,a=+p[1]/100,n=2*(l=+p[2]/100)-(r=l<=.5?l*(a+1):l+a-l*a),p.length>3&&(p[3]*=1),p[0]=xn(o+1/3,n,r),p[1]=xn(o,n,r),p[2]=xn(o-1/3,n,r);else p=e.match($t)||wn.transparent;p=p.map(Number)}return t&&!h&&(n=p[0]/yn,r=p[1]/yn,s=p[2]/yn,l=((c=Math.max(n,r,s))+(d=Math.min(n,r,s)))/2,c===d?o=a=0:(u=c-d,a=l>.5?u/(2-c-d):u/(c+d),o=c===n?(r-s)/u+(r<s?6:0):c===r?(s-n)/u+2:(n-r)/u+4,o*=60),p[0]=~~(o+.5),p[1]=~~(100*a+.5),p[2]=~~(100*l+.5)),i&&p.length<4&&(p[3]=1),p},Sn=function(e){var t=[],i=[],n=-1;return e.split(En).forEach((function(e){var r=e.match(Yt)||[];t.push.apply(t,r),i.push(n+=r.length+1)})),t.c=i,t},_n=function(e,t,i){var n,r,s,o,a="",l=(e+a).match(En),c=t?"hsla(":"rgba(",d=0;if(!l)return e;if(l=l.map((function(e){return(e=Tn(e,t,1))&&c+(t?e[0]+","+e[1]+"%,"+e[2]+"%,"+e[3]:e.join(","))+")"})),i&&(s=Sn(e),(n=i.c).join(a)!==s.c.join(a)))for(o=(r=e.replace(En,"1").split(Yt)).length-1;d<o;d++)a+=r[d]+(~n.indexOf(d)?l.shift()||c+"0,0,0,0)":(s.length?s:l.length?l:i).shift());if(!r)for(o=(r=e.split(En)).length-1;d<o;d++)a+=r[d]+l[d];return a+r[o]},En=function(){var e,t="(?:\\b(?:(?:rgb|rgba|hsl|hsla)\\(.+?\\))|\\B#(?:[0-9a-f]{3,4}){1,2}\\b";for(e in wn)t+="|"+e+"\\b";return new RegExp(t+")","gi")}(),Cn=/hsl[a]?\(/,Mn=function(e){var t,i=e.join(" ");if(En.lastIndex=0,En.test(i))return t=Cn.test(i),e[1]=_n(e[1],t),e[0]=_n(e[0],t,Sn(e[1])),!0},Pn=function(){var e,t,i,n,r,s,o=Date.now,a=500,l=33,c=o(),d=c,u=1e3/240,h=u,p=[],f=function i(f){var m,g,v,b,y=o()-d,w=!0===f;if(y>a&&(c+=y-l),((m=(v=(d+=y)-c)-h)>0||w)&&(b=++n.frame,r=v-1e3*n.time,n.time=v/=1e3,h+=m+(m>=u?4:u-m),g=1),w||(e=t(i)),g)for(s=0;s<p.length;s++)p[s](v,r,b,f)};return n={time:0,frame:0,tick:function(){f(!0)},deltaRatio:function(e){return r/(1e3/(e||60))},wake:function(){bt&&(!gt&&Bt()&&(mt=gt=window,vt=mt.document||{},Ut.gsap=Mr,(mt.gsapVersions||(mt.gsapVersions=[])).push(Mr.version),Kt(Zt||mt.GreenSockGlobals||!mt.gsap&&mt||{}),i=mt.requestAnimationFrame,vn.forEach(bn)),e&&n.sleep(),t=i||function(e){return setTimeout(e,h-1e3*n.time+1|0)},xt=1,f(2))},sleep:function(){(i?mt.cancelAnimationFrame:clearTimeout)(e),xt=0,t=ti},lagSmoothing:function(e,t){a=e||1/0,l=Math.min(t||33,a)},fps:function(e){u=1e3/(e||240),h=1e3*n.time+u},add:function(e,t,i){var r=t?function(t,i,s,o){e(t,i,s,o),n.remove(r)}:e;return n.remove(e),p[i?"unshift":"push"](r),On(),r},remove:function(e,t){~(t=p.indexOf(e))&&p.splice(t,1)&&s>=t&&s--},_listeners:p},n}(),On=function(){return!xt&&Pn.wake()},kn={},An=/^[\d.\-M][\d.\-,\s]/,Ln=/["']/g,zn=function(e){for(var t,i,n,r={},s=e.substr(1,e.length-3).split(":"),o=s[0],a=1,l=s.length;a<l;a++)i=s[a],t=a!==l-1?i.lastIndexOf(","):i.length,n=i.substr(0,t),r[o]=isNaN(n)?n.replace(Ln,"").trim():+n,o=i.substr(t+1).trim();return r},In=function(e){return function(t){return 1-e(1-t)}},Rn=function e(t,i){for(var n,r=t._first;r;)r instanceof qn?e(r,i):!r.vars.yoyoEase||r._yoyo&&r._repeat||r._yoyo===i||(r.timeline?e(r.timeline,i):(n=r._ease,r._ease=r._yEase,r._yEase=n,r._yoyo=i)),r=r._next},Dn=function(e,t){return e&&(zt(e)?e:kn[e]||function(e){var t,i,n,r,s=(e+"").split("("),o=kn[s[0]];return o&&s.length>1&&o.config?o.config.apply(null,~e.indexOf("{")?[zn(s[1])]:(t=e,i=t.indexOf("(")+1,n=t.indexOf(")"),r=t.indexOf("(",i),t.substring(i,~r&&r<n?t.indexOf(")",n+1):n)).split(",").map(Si)):kn._CE&&An.test(e)?kn._CE("",e):o}(e))||t},Fn=function(e,t,i,n){void 0===i&&(i=function(e){return 1-t(1-e)}),void 0===n&&(n=function(e){return e<.5?t(2*e)/2:1-t(2*(1-e))/2});var r,s={easeIn:t,easeOut:i,easeInOut:n};return gi(e,(function(e){for(var t in kn[e]=Ut[e]=s,kn[r=e.toLowerCase()]=i,s)kn[r+("easeIn"===t?".in":"easeOut"===t?".out":".inOut")]=kn[e+"."+t]=s[t]})),s},Bn=function(e){return function(t){return t<.5?(1-e(1-2*t))/2:.5+e(2*(t-.5))/2}},jn=function e(t,i,n){var r=i>=1?i:1,s=(n||(t?.3:.45))/(i<1?i:1),o=s/Ct*(Math.asin(1/r)||0),a=function(e){return 1===e?1:r*Math.pow(2,-10*e)*At((e-o)*s)+1},l="out"===t?a:"in"===t?function(e){return 1-a(1-e)}:Bn(a);return s=Ct/s,l.config=function(i,n){return e(t,i,n)},l},Nn=function e(t,i){void 0===i&&(i=1.70158);var n=function(e){return e?--e*e*((i+1)*e+i)+1:0},r="out"===t?n:"in"===t?function(e){return 1-n(1-e)}:Bn(n);return r.config=function(i){return e(t,i)},r};gi("Linear,Quad,Cubic,Quart,Quint,Strong",(function(e,t){var i=t<5?t+1:t;Fn(e+",Power"+(i-1),t?function(e){return Math.pow(e,i)}:function(e){return e},(function(e){return 1-Math.pow(1-e,i)}),(function(e){return e<.5?Math.pow(2*e,i)/2:1-Math.pow(2*(1-e),i)/2}))})),kn.Linear.easeNone=kn.none=kn.Linear.easeIn,Fn("Elastic",jn("in"),jn("out"),jn()),function(e,t){var i=function(i){return i<.36363636363636365?e*i*i:i<.7272727272727273?e*Math.pow(i-1.5/t,2)+.75:i<.9090909090909092?e*(i-=2.25/t)*i+.9375:e*Math.pow(i-2.625/t,2)+.984375};Fn("Bounce",(function(e){return 1-i(1-e)}),i)}(7.5625,2.75),Fn("Expo",(function(e){return e?Math.pow(2,10*(e-1)):0})),Fn("Circ",(function(e){return-(Ot(1-e*e)-1)})),Fn("Sine",(function(e){return 1===e?1:1-kt(e*Mt)})),Fn("Back",Nn("in"),Nn("out"),Nn()),kn.SteppedEase=kn.steps=Ut.SteppedEase={config:function(e,t){void 0===e&&(e=1);var i=1/e,n=e+(t?0:1),r=t?1:0;return function(e){return((n*Qi(0,.99999999,e)|0)+r)*i}}},St.ease=kn["quad.out"],gi("onComplete,onUpdate,onStart,onRepeat,onReverseComplete,onInterrupt",(function(e){return hi+=e+","+e+"Params,"}));var Hn=function(e,t){this.id=Pt++,e._gsap=this,this.target=e,this.harness=t,this.get=t?t.get:mi,this.set=t?t.getSetter:sr},$n=function(){function e(e){this.vars=e,this._delay=+e.delay||0,(this._repeat=e.repeat===1/0?-2:e.repeat||0)&&(this._rDelay=e.repeatDelay||0,this._yoyo=!!e.yoyo||!!e.yoyoEase),this._ts=1,Gi(this,+e.duration,1,1),this.data=e.data,pt&&(this._ctx=pt,pt.data.push(this)),xt||Pn.wake()}var t=e.prototype;return t.delay=function(e){return e||0===e?(this.parent&&this.parent.smoothChildTiming&&this.startTime(this._start+e-this._delay),this._delay=e,this):this._delay},t.duration=function(e){return arguments.length?this.totalDuration(this._repeat>0?e+(e+this._rDelay)*this._repeat:e):this.totalDuration()&&this._dur},t.totalDuration=function(e){return arguments.length?(this._dirty=0,Gi(this,this._repeat<0?e:(e-this._repeat*this._rDelay)/(this._repeat+1))):this._tDur},t.totalTime=function(e,t){if(On(),!arguments.length)return this._tTime;var i=this._dp;if(i&&i.smoothChildTiming&&this._ts){for(Ni(this,e),!i._dp||i.parent||Hi(i,this);i&&i.parent;)i.parent._time!==i._start+(i._ts>=0?i._tTime/i._ts:(i.totalDuration()-i._tTime)/-i._ts)&&i.totalTime(i._tTime,!0),i=i.parent;!this.parent&&this._dp.autoRemoveChildren&&(this._ts>0&&e<this._tDur||this._ts<0&&e>0||!this._tDur&&!e)&&$i(this._dp,this,this._start-this._delay)}return(this._tTime!==e||!this._dur&&!t||this._initted&&Math.abs(this._zTime)===Et||!e&&!this._initted&&(this.add||this._ptLookup))&&(this._ts||(this._pTime=e),Ti(this,e,t)),this},t.time=function(e,t){return arguments.length?this.totalTime(Math.min(this.totalDuration(),e+Di(this))%(this._dur+this._rDelay)||(e?this._dur:0),t):this._time},t.totalProgress=function(e,t){return arguments.length?this.totalTime(this.totalDuration()*e,t):this.totalDuration()?Math.min(1,this._tTime/this._tDur):this.ratio},t.progress=function(e,t){return arguments.length?this.totalTime(this.duration()*(!this._yoyo||1&this.iteration()?e:1-e)+Di(this),t):this.duration()?Math.min(1,this._time/this._dur):this.ratio},t.iteration=function(e,t){var i=this.duration()+this._rDelay;return arguments.length?this.totalTime(this._time+(e-1)*i,t):this._repeat?Fi(this._tTime,i)+1:1},t.timeScale=function(e){if(!arguments.length)return-1e-8===this._rts?0:this._rts;if(this._rts===e)return this;var t=this.parent&&this._ts?Bi(this.parent._time,this):this._tTime;return this._rts=+e||0,this._ts=this._ps||-1e-8===e?0:this._rts,this.totalTime(Qi(-Math.abs(this._delay),this._tDur,t),!0),ji(this),function(e){for(var t=e.parent;t&&t.parent;)t._dirty=1,t.totalDuration(),t=t.parent;return e}(this)},t.paused=function(e){return arguments.length?(this._ps!==e&&(this._ps=e,e?(this._pTime=this._tTime||Math.max(-this._delay,this.rawTime()),this._ts=this._act=0):(On(),this._ts=this._rts,this.totalTime(this.parent&&!this.parent.smoothChildTiming?this.rawTime():this._tTime||this._pTime,1===this.progress()&&Math.abs(this._zTime)!==Et&&(this._tTime-=Et)))),this):this._ps},t.startTime=function(e){if(arguments.length){this._start=e;var t=this.parent||this._dp;return t&&(t._sort||!this.parent)&&$i(t,this,e-this._delay),this}return this._start},t.endTime=function(e){return this._start+(Ft(e)?this.totalDuration():this.duration())/Math.abs(this._ts||1)},t.rawTime=function(e){var t=this.parent||this._dp;return t?e&&(!this._ts||this._repeat&&this._time&&this.totalProgress()<1)?this._tTime%(this._dur+this._rDelay):this._ts?Bi(t.rawTime(e),this):this._tTime:this._tTime},t.revert=function(e){void 0===e&&(e=ri);var t=ht;return ht=e,(this._initted||this._startAt)&&(this.timeline&&this.timeline.revert(e),this.totalTime(-.01,e.suppressEvents)),"nested"!==this.data&&!1!==e.kill&&this.kill(),ht=t,this},t.globalTime=function(e){for(var t=this,i=arguments.length?e:t.rawTime();t;)i=t._start+i/(t._ts||1),t=t._dp;return!this.parent&&this._sat?this._sat.vars.immediateRender?-1/0:this._sat.globalTime(e):i},t.repeat=function(e){return arguments.length?(this._repeat=e===1/0?-2:e,Wi(this)):-2===this._repeat?1/0:this._repeat},t.repeatDelay=function(e){if(arguments.length){var t=this._time;return this._rDelay=e,Wi(this),t?this.time(t):this}return this._rDelay},t.yoyo=function(e){return arguments.length?(this._yoyo=e,this):this._yoyo},t.seek=function(e,t){return this.totalTime(Zi(this,e),Ft(t))},t.restart=function(e,t){return this.play().totalTime(e?-this._delay:0,Ft(t))},t.play=function(e,t){return null!=e&&this.seek(e,t),this.reversed(!1).paused(!1)},t.reverse=function(e,t){return null!=e&&this.seek(e||this.totalDuration(),t),this.reversed(!0).paused(!1)},t.pause=function(e,t){return null!=e&&this.seek(e,t),this.paused(!0)},t.resume=function(){return this.paused(!1)},t.reversed=function(e){return arguments.length?(!!e!==this.reversed()&&this.timeScale(-this._rts||(e?-1e-8:0)),this):this._rts<0},t.invalidate=function(){return this._initted=this._act=0,this._zTime=-1e-8,this},t.isActive=function(){var e,t=this.parent||this._dp,i=this._start;return!(t&&!(this._ts&&this._initted&&t.isActive()&&(e=t.rawTime(!0))>=i&&e<this.endTime(!0)-Et))},t.eventCallback=function(e,t,i){var n=this.vars;return arguments.length>1?(t?(n[e]=t,i&&(n[e+"Params"]=i),"onUpdate"===e&&(this._onUpdate=t)):delete n[e],this):n[e]},t.then=function(e){var t=this;return new Promise((function(i){var n=zt(e)?e:_i,r=function(){var e=t.then;t.then=null,zt(n)&&(n=n(t))&&(n.then||n===t)&&(t.then=e),i(n),t.then=e};t._initted&&1===t.totalProgress()&&t._ts>=0||!t._tTime&&t._ts<0?r():t._prom=r}))},t.kill=function(){gn(this)},e}();Ei($n.prototype,{_time:0,_start:0,_end:0,_tTime:0,_tDur:0,_dirty:0,_repeat:0,_yoyo:!1,parent:null,_initted:!1,_rDelay:0,_ts:1,_dp:0,ratio:0,_zTime:-1e-8,_prom:0,_ps:!1,_rts:1});var qn=function(e){function t(t,i){var n;return void 0===t&&(t={}),(n=e.call(this,t)||this).labels={},n.smoothChildTiming=!!t.smoothChildTiming,n.autoRemoveChildren=!!t.autoRemoveChildren,n._sort=Ft(t.sortChildren),ft&&$i(t.parent||ft,ct(n),i),t.reversed&&n.reverse(),t.paused&&n.paused(!0),t.scrollTrigger&&qi(ct(n),t.scrollTrigger),n}dt(t,e);var i=t.prototype;return i.to=function(e,t,i){return Ki(0,arguments,this),this},i.from=function(e,t,i){return Ki(1,arguments,this),this},i.fromTo=function(e,t,i,n){return Ki(2,arguments,this),this},i.set=function(e,t,i){return t.duration=0,t.parent=this,Oi(t).repeatDelay||(t.repeat=0),t.immediateRender=!!t.immediateRender,new er(e,t,Zi(this,i),1),this},i.call=function(e,t,i){return $i(this,er.delayedCall(0,e,t),i)},i.staggerTo=function(e,t,i,n,r,s,o){return i.duration=t,i.stagger=i.stagger||n,i.onComplete=s,i.onCompleteParams=o,i.parent=this,new er(e,i,Zi(this,r)),this},i.staggerFrom=function(e,t,i,n,r,s,o){return i.runBackwards=1,Oi(i).immediateRender=Ft(i.immediateRender),this.staggerTo(e,t,i,n,r,s,o)},i.staggerFromTo=function(e,t,i,n,r,s,o,a){return n.startAt=i,Oi(n).immediateRender=Ft(n.immediateRender),this.staggerTo(e,t,n,r,s,o,a)},i.render=function(e,t,i){var n,r,s,o,a,l,c,d,u,h,p,f,m=this._time,g=this._dirty?this.totalDuration():this._tDur,v=this._dur,b=e<=0?0:bi(e),y=this._zTime<0!=e<0&&(this._initted||!v);if(this!==ft&&b>g&&e>=0&&(b=g),b!==this._tTime||i||y){if(m!==this._time&&v&&(b+=this._time-m,e+=this._time-m),n=b,u=this._start,l=!(d=this._ts),y&&(v||(m=this._zTime),(e||!t)&&(this._zTime=e)),this._repeat){if(p=this._yoyo,a=v+this._rDelay,this._repeat<-1&&e<0)return this.totalTime(100*a+e,t,i);if(n=bi(b%a),b===g?(o=this._repeat,n=v):((o=~~(b/a))&&o===b/a&&(n=v,o--),n>v&&(n=v)),h=Fi(this._tTime,a),!m&&this._tTime&&h!==o&&this._tTime-h*a-this._dur<=0&&(h=o),p&&1&o&&(n=v-n,f=1),o!==h&&!this._lock){var w=p&&1&h,x=w===(p&&1&o);if(o<h&&(w=!w),m=w?0:b%v?v:b,this._lock=1,this.render(m||(f?0:bi(o*a)),t,!v)._lock=0,this._tTime=b,!t&&this.parent&&mn(this,"onRepeat"),this.vars.repeatRefresh&&!f&&(this.invalidate()._lock=1),m&&m!==this._time||l!==!this._ts||this.vars.onRepeat&&!this.parent&&!this._act)return this;if(v=this._dur,g=this._tDur,x&&(this._lock=2,m=w?v:-1e-4,this.render(m,!0),this.vars.repeatRefresh&&!f&&this.invalidate()),this._lock=0,!this._ts&&!l)return this;Rn(this,f)}}if(this._hasPause&&!this._forcing&&this._lock<2&&(c=function(e,t,i){var n;if(i>t)for(n=e._first;n&&n._start<=i;){if("isPause"===n.data&&n._start>t)return n;n=n._next}else for(n=e._last;n&&n._start>=i;){if("isPause"===n.data&&n._start<t)return n;n=n._prev}}(this,bi(m),bi(n)),c&&(b-=n-(n=c._start))),this._tTime=b,this._time=n,this._act=!d,this._initted||(this._onUpdate=this.vars.onUpdate,this._initted=1,this._zTime=e,m=0),!m&&n&&!t&&!o&&(mn(this,"onStart"),this._tTime!==b))return this;if(n>=m&&e>=0)for(r=this._first;r;){if(s=r._next,(r._act||n>=r._start)&&r._ts&&c!==r){if(r.parent!==this)return this.render(e,t,i);if(r.render(r._ts>0?(n-r._start)*r._ts:(r._dirty?r.totalDuration():r._tDur)+(n-r._start)*r._ts,t,i),n!==this._time||!this._ts&&!l){c=0,s&&(b+=this._zTime=-1e-8);break}}r=s}else{r=this._last;for(var T=e<0?e:n;r;){if(s=r._prev,(r._act||T<=r._end)&&r._ts&&c!==r){if(r.parent!==this)return this.render(e,t,i);if(r.render(r._ts>0?(T-r._start)*r._ts:(r._dirty?r.totalDuration():r._tDur)+(T-r._start)*r._ts,t,i||ht&&(r._initted||r._startAt)),n!==this._time||!this._ts&&!l){c=0,s&&(b+=this._zTime=T?-1e-8:Et);break}}r=s}}if(c&&!t&&(this.pause(),c.render(n>=m?0:-1e-8)._zTime=n>=m?1:-1,this._ts))return this._start=u,ji(this),this.render(e,t,i);this._onUpdate&&!t&&mn(this,"onUpdate",!0),(b===g&&this._tTime>=this.totalDuration()||!b&&m)&&(u!==this._start&&Math.abs(d)===Math.abs(this._ts)||this._lock||((e||!v)&&(b===g&&this._ts>0||!b&&this._ts<0)&&Li(this,1),t||e<0&&!m||!b&&!m&&g||(mn(this,b===g&&e>=0?"onComplete":"onReverseComplete",!0),this._prom&&!(b<g&&this.timeScale()>0)&&this._prom())))}return this},i.add=function(e,t){var i=this;if(It(t)||(t=Zi(this,t,e)),!(e instanceof $n)){if(Ht(e))return e.forEach((function(e){return i.add(e,t)})),this;if(Lt(e))return this.addLabel(e,t);if(!zt(e))return this;e=er.delayedCall(0,e)}return this!==e?$i(this,e,t):this},i.getChildren=function(e,t,i,n){void 0===e&&(e=!0),void 0===t&&(t=!0),void 0===i&&(i=!0),void 0===n&&(n=-_t);for(var r=[],s=this._first;s;)s._start>=n&&(s instanceof er?t&&r.push(s):(i&&r.push(s),e&&r.push.apply(r,s.getChildren(!0,t,i)))),s=s._next;return r},i.getById=function(e){for(var t=this.getChildren(1,1,1),i=t.length;i--;)if(t[i].vars.id===e)return t[i]},i.remove=function(e){return Lt(e)?this.removeLabel(e):zt(e)?this.killTweensOf(e):(Ai(this,e),e===this._recent&&(this._recent=this._last),zi(this))},i.totalTime=function(t,i){return arguments.length?(this._forcing=1,!this._dp&&this._ts&&(this._start=bi(Pn.time-(this._ts>0?t/this._ts:(this.totalDuration()-t)/-this._ts))),e.prototype.totalTime.call(this,t,i),this._forcing=0,this):this._tTime},i.addLabel=function(e,t){return this.labels[e]=Zi(this,t),this},i.removeLabel=function(e){return delete this.labels[e],this},i.addPause=function(e,t,i){var n=er.delayedCall(0,t||ti,i);return n.data="isPause",this._hasPause=1,$i(this,n,Zi(this,e))},i.removePause=function(e){var t=this._first;for(e=Zi(this,e);t;)t._start===e&&"isPause"===t.data&&Li(t),t=t._next},i.killTweensOf=function(e,t,i){for(var n=this.getTweensOf(e,i),r=n.length;r--;)Yn!==n[r]&&n[r].kill(e,t);return this},i.getTweensOf=function(e,t){for(var i,n=[],r=rn(e),s=this._first,o=It(t);s;)s instanceof er?wi(s._targets,r)&&(o?(!Yn||s._initted&&s._ts)&&s.globalTime(0)<=t&&s.globalTime(s.totalDuration())>t:!t||s.isActive())&&n.push(s):(i=s.getTweensOf(r,t)).length&&n.push.apply(n,i),s=s._next;return n},i.tweenTo=function(e,t){t=t||{};var i,n=this,r=Zi(n,e),s=t,o=s.startAt,a=s.onStart,l=s.onStartParams,c=s.immediateRender,d=er.to(n,Ei({ease:t.ease||"none",lazy:!1,immediateRender:!1,time:r,overwrite:"auto",duration:t.duration||Math.abs((r-(o&&"time"in o?o.time:n._time))/n.timeScale())||Et,onStart:function(){if(n.pause(),!i){var e=t.duration||Math.abs((r-(o&&"time"in o?o.time:n._time))/n.timeScale());d._dur!==e&&Gi(d,e,0,1).render(d._time,!0,!0),i=1}a&&a.apply(d,l||[])}},t));return c?d.render(0):d},i.tweenFromTo=function(e,t,i){return this.tweenTo(t,Ei({startAt:{time:Zi(this,e)}},i))},i.recent=function(){return this._recent},i.nextLabel=function(e){return void 0===e&&(e=this._time),fn(this,Zi(this,e))},i.previousLabel=function(e){return void 0===e&&(e=this._time),fn(this,Zi(this,e),1)},i.currentLabel=function(e){return arguments.length?this.seek(e,!0):this.previousLabel(this._time+Et)},i.shiftChildren=function(e,t,i){void 0===i&&(i=0);for(var n,r=this._first,s=this.labels;r;)r._start>=i&&(r._start+=e,r._end+=e),r=r._next;if(t)for(n in s)s[n]>=i&&(s[n]+=e);return zi(this)},i.invalidate=function(t){var i=this._first;for(this._lock=0;i;)i.invalidate(t),i=i._next;return e.prototype.invalidate.call(this,t)},i.clear=function(e){void 0===e&&(e=!0);for(var t,i=this._first;i;)t=i._next,this.remove(i),i=t;return this._dp&&(this._time=this._tTime=this._pTime=0),e&&(this.labels={}),zi(this)},i.totalDuration=function(e){var t,i,n,r=0,s=this,o=s._last,a=_t;if(arguments.length)return s.timeScale((s._repeat<0?s.duration():s.totalDuration())/(s.reversed()?-e:e));if(s._dirty){for(n=s.parent;o;)t=o._prev,o._dirty&&o.totalDuration(),(i=o._start)>a&&s._sort&&o._ts&&!s._lock?(s._lock=1,$i(s,o,i-o._delay,1)._lock=0):a=i,i<0&&o._ts&&(r-=i,(!n&&!s._dp||n&&n.smoothChildTiming)&&(s._start+=i/s._ts,s._time-=i,s._tTime-=i),s.shiftChildren(-i,!1,-Infinity),a=0),o._end>r&&o._ts&&(r=o._end),o=t;Gi(s,s===ft&&s._time>r?s._time:r,1,1),s._dirty=0}return s._tDur},t.updateRoot=function(e){if(ft._ts&&(Ti(ft,Bi(e,ft)),yt=Pn.frame),Pn.frame>=di){di+=Tt.autoSleep||120;var t=ft._first;if((!t||!t._ts)&&Tt.autoSleep&&Pn._listeners.length<2){for(;t&&!t._ts;)t=t._next;t||Pn.sleep()}}},t}($n);Ei(qn.prototype,{_lock:0,_hasPause:0,_forcing:0});var Yn,Xn,Vn=function(e,t,i,n,r,s,o){var a,l,c,d,u,h,p,f,m=new fr(this._pt,e,t,0,1,lr,null,r),g=0,v=0;for(m.b=i,m.e=n,i+="",(p=~(n+="").indexOf("random("))&&(n=hn(n)),s&&(s(f=[i,n],e,t),i=f[0],n=f[1]),l=i.match(Xt)||[];a=Xt.exec(n);)d=a[0],u=n.substring(g,a.index),c?c=(c+1)%5:"rgba("===u.substr(-5)&&(c=1),d!==l[v++]&&(h=parseFloat(l[v-1])||0,m._pt={_next:m._pt,p:u||1===v?u:",",s:h,c:"="===d.charAt(1)?yi(h,d)-h:parseFloat(d)-h,m:c&&c<4?Math.round:0},g=Xt.lastIndex);return m.c=g<n.length?n.substring(g,n.length):"",m.fp=o,(Vt.test(n)||p)&&(m.e=0),this._pt=m,m},Gn=function(e,t,i,n,r,s,o,a,l,c){zt(n)&&(n=n(r||0,e,s));var d,u=e[t],h="get"!==i?i:zt(u)?l?e[t.indexOf("set")||!zt(e["get"+t.substr(3)])?t:"get"+t.substr(3)](l):e[t]():u,p=zt(u)?l?nr:ir:tr;if(Lt(n)&&(~n.indexOf("random(")&&(n=hn(n)),"="===n.charAt(1)&&((d=yi(h,n)+(en(h)||0))||0===d)&&(n=d)),!c||h!==n||Xn)return isNaN(h*n)||""===n?(!u&&!(t in e)&&Jt(t,n),Vn.call(this,e,t,h,n,p,a||Tt.stringFilter,l)):(d=new fr(this._pt,e,t,+h||0,n-(h||0),"boolean"==typeof u?ar:or,0,p),l&&(d.fp=l),o&&d.modifier(o,this,e),this._pt=d)},Wn=function(e,t,i,n,r,s){var o,a,l,c;if(li[e]&&!1!==(o=new li[e]).init(r,o.rawVars?t[e]:function(e,t,i,n,r){if(zt(e)&&(e=Kn(e,r,t,i,n)),!Dt(e)||e.style&&e.nodeType||Ht(e)||Nt(e))return Lt(e)?Kn(e,r,t,i,n):e;var s,o={};for(s in e)o[s]=Kn(e[s],r,t,i,n);return o}(t[e],n,r,s,i),i,n,s)&&(i._pt=a=new fr(i._pt,r,e,0,1,o.render,o,0,o.priority),i!==wt))for(l=i._ptLookup[i._targets.indexOf(r)],c=o._props.length;c--;)l[o._props[c]]=a;return o},Un=function e(t,i,n){var r,s,o,a,l,c,d,u,h,p,f,m,g,v=t.vars,b=v.ease,y=v.startAt,w=v.immediateRender,x=v.lazy,T=v.onUpdate,S=v.onUpdateParams,_=v.callbackScope,E=v.runBackwards,C=v.yoyoEase,M=v.keyframes,P=v.autoRevert,O=t._dur,k=t._startAt,A=t._targets,L=t.parent,z=L&&"nested"===L.data?L.vars.targets:A,I="auto"===t._overwrite&&!ut,R=t.timeline;if(R&&(!M||!b)&&(b="none"),t._ease=Dn(b,St.ease),t._yEase=C?In(Dn(!0===C?b:C,St.ease)):0,C&&t._yoyo&&!t._repeat&&(C=t._yEase,t._yEase=t._ease,t._ease=C),t._from=!R&&!!v.runBackwards,!R||M&&!v.stagger){if(m=(u=A[0]?fi(A[0]).harness:0)&&v[u.prop],r=Pi(v,si),k&&(k._zTime<0&&k.progress(1),i<0&&E&&w&&!P?k.render(-1,!0):k.revert(E&&O?ni:ii),k._lazy=0),y){if(Li(t._startAt=er.set(A,Ei({data:"isStart",overwrite:!1,parent:L,immediateRender:!0,lazy:!k&&Ft(x),startAt:null,delay:0,onUpdate:T,onUpdateParams:S,callbackScope:_,stagger:0},y))),t._startAt._dp=0,t._startAt._sat=t,i<0&&(ht||!w&&!P)&&t._startAt.revert(ni),w&&O&&i<=0&&n<=0)return void(i&&(t._zTime=i))}else if(E&&O&&!k)if(i&&(w=!1),o=Ei({overwrite:!1,data:"isFromStart",lazy:w&&!k&&Ft(x),immediateRender:w,stagger:0,parent:L},r),m&&(o[u.prop]=m),Li(t._startAt=er.set(A,o)),t._startAt._dp=0,t._startAt._sat=t,i<0&&(ht?t._startAt.revert(ni):t._startAt.render(-1,!0)),t._zTime=i,w){if(!i)return}else e(t._startAt,Et,Et);for(t._pt=t._ptCache=0,x=O&&Ft(x)||x&&!O,s=0;s<A.length;s++){if(d=(l=A[s])._gsap||pi(A)[s]._gsap,t._ptLookup[s]=p={},ai[d.id]&&oi.length&&xi(),f=z===A?s:z.indexOf(l),u&&!1!==(h=new u).init(l,m||r,t,f,z)&&(t._pt=a=new fr(t._pt,l,h.name,0,1,h.render,h,0,h.priority),h._props.forEach((function(e){p[e]=a})),h.priority&&(c=1)),!u||m)for(o in r)li[o]&&(h=Wn(o,r,t,f,l,z))?h.priority&&(c=1):p[o]=a=Gn.call(t,l,o,"get",r[o],f,z,0,v.stringFilter);t._op&&t._op[s]&&t.kill(l,t._op[s]),I&&t._pt&&(Yn=t,ft.killTweensOf(l,p,t.globalTime(i)),g=!t.parent,Yn=0),t._pt&&x&&(ai[d.id]=1)}c&&pr(t),t._onInit&&t._onInit(t)}t._onUpdate=T,t._initted=(!t._op||t._pt)&&!g,M&&i<=0&&R.render(_t,!0,!0)},Zn=function(e,t,i,n){var r,s,o=t.ease||n||"power1.inOut";if(Ht(t))s=i[e]||(i[e]=[]),t.forEach((function(e,i){return s.push({t:i/(t.length-1)*100,v:e,e:o})}));else for(r in t)s=i[r]||(i[r]=[]),"ease"===r||s.push({t:parseFloat(e),v:t[r],e:o})},Kn=function(e,t,i,n,r){return zt(e)?e.call(t,i,n,r):Lt(e)&&~e.indexOf("random(")?hn(e):e},Jn=hi+"repeat,repeatDelay,yoyo,repeatRefresh,yoyoEase,autoRevert",Qn={};gi(Jn+",id,stagger,delay,duration,paused,scrollTrigger",(function(e){return Qn[e]=1}));var er=function(e){function t(t,i,n,r){var s;"number"==typeof i&&(n.duration=i,i=n,n=null);var o,a,l,c,d,u,h,p,f=(s=e.call(this,r?i:Oi(i))||this).vars,m=f.duration,g=f.delay,v=f.immediateRender,b=f.stagger,y=f.overwrite,w=f.keyframes,x=f.defaults,T=f.scrollTrigger,S=f.yoyoEase,_=i.parent||ft,E=(Ht(t)||Nt(t)?It(t[0]):"length"in i)?[t]:rn(t);if(s._targets=E.length?pi(E):Qt("GSAP target "+t+" not found. https://greensock.com",!Tt.nullTargetWarn)||[],s._ptLookup=[],s._overwrite=y,w||b||jt(m)||jt(g)){if(i=s.vars,(o=s.timeline=new qn({data:"nested",defaults:x||{},targets:_&&"nested"===_.data?_.vars.targets:E})).kill(),o.parent=o._dp=ct(s),o._start=0,b||jt(m)||jt(g)){if(c=E.length,h=b&&an(b),Dt(b))for(d in b)~Jn.indexOf(d)&&(p||(p={}),p[d]=b[d]);for(a=0;a<c;a++)(l=Pi(i,Qn)).stagger=0,S&&(l.yoyoEase=S),p&&Ci(l,p),u=E[a],l.duration=+Kn(m,ct(s),a,u,E),l.delay=(+Kn(g,ct(s),a,u,E)||0)-s._delay,!b&&1===c&&l.delay&&(s._delay=g=l.delay,s._start+=g,l.delay=0),o.to(u,l,h?h(a,u,E):0),o._ease=kn.none;o.duration()?m=g=0:s.timeline=0}else if(w){Oi(Ei(o.vars.defaults,{ease:"none"})),o._ease=Dn(w.ease||i.ease||"none");var C,M,P,O=0;if(Ht(w))w.forEach((function(e){return o.to(E,e,">")})),o.duration();else{for(d in l={},w)"ease"===d||"easeEach"===d||Zn(d,w[d],l,w.easeEach);for(d in l)for(C=l[d].sort((function(e,t){return e.t-t.t})),O=0,a=0;a<C.length;a++)(P={ease:(M=C[a]).e,duration:(M.t-(a?C[a-1].t:0))/100*m})[d]=M.v,o.to(E,P,O),O+=P.duration;o.duration()<m&&o.to({},{duration:m-o.duration()})}}m||s.duration(m=o.duration())}else s.timeline=0;return!0!==y||ut||(Yn=ct(s),ft.killTweensOf(E),Yn=0),$i(_,ct(s),n),i.reversed&&s.reverse(),i.paused&&s.paused(!0),(v||!m&&!w&&s._start===bi(_._time)&&Ft(v)&&Ri(ct(s))&&"nested"!==_.data)&&(s._tTime=-1e-8,s.render(Math.max(0,-g)||0)),T&&qi(ct(s),T),s}dt(t,e);var i=t.prototype;return i.render=function(e,t,i){var n,r,s,o,a,l,c,d,u,h=this._time,p=this._tDur,f=this._dur,m=e<0,g=e>p-Et&&!m?p:e<Et?0:e;if(f){if(g!==this._tTime||!e||i||!this._initted&&this._tTime||this._startAt&&this._zTime<0!==m){if(n=g,d=this.timeline,this._repeat){if(o=f+this._rDelay,this._repeat<-1&&m)return this.totalTime(100*o+e,t,i);if(n=bi(g%o),g===p?(s=this._repeat,n=f):((s=~~(g/o))&&s===g/o&&(n=f,s--),n>f&&(n=f)),(l=this._yoyo&&1&s)&&(u=this._yEase,n=f-n),a=Fi(this._tTime,o),n===h&&!i&&this._initted)return this._tTime=g,this;s!==a&&(d&&this._yEase&&Rn(d,l),!this.vars.repeatRefresh||l||this._lock||(this._lock=i=1,this.render(bi(o*s),!0).invalidate()._lock=0))}if(!this._initted){if(Yi(this,m?e:n,i,t,g))return this._tTime=0,this;if(h!==this._time)return this;if(f!==this._dur)return this.render(e,t,i)}if(this._tTime=g,this._time=n,!this._act&&this._ts&&(this._act=1,this._lazy=0),this.ratio=c=(u||this._ease)(n/f),this._from&&(this.ratio=c=1-c),n&&!h&&!t&&!s&&(mn(this,"onStart"),this._tTime!==g))return this;for(r=this._pt;r;)r.r(c,r.d),r=r._next;d&&d.render(e<0?e:!n&&l?-1e-8:d._dur*d._ease(n/this._dur),t,i)||this._startAt&&(this._zTime=e),this._onUpdate&&!t&&(m&&Ii(this,e,0,i),mn(this,"onUpdate")),this._repeat&&s!==a&&this.vars.onRepeat&&!t&&this.parent&&mn(this,"onRepeat"),g!==this._tDur&&g||this._tTime!==g||(m&&!this._onUpdate&&Ii(this,e,0,!0),(e||!f)&&(g===this._tDur&&this._ts>0||!g&&this._ts<0)&&Li(this,1),t||m&&!h||!(g||h||l)||(mn(this,g===p?"onComplete":"onReverseComplete",!0),this._prom&&!(g<p&&this.timeScale()>0)&&this._prom()))}}else!function(e,t,i,n){var r,s,o,a=e.ratio,l=t<0||!t&&(!e._start&&Xi(e)&&(e._initted||!Vi(e))||(e._ts<0||e._dp._ts<0)&&!Vi(e))?0:1,c=e._rDelay,d=0;if(c&&e._repeat&&(d=Qi(0,e._tDur,t),s=Fi(d,c),e._yoyo&&1&s&&(l=1-l),s!==Fi(e._tTime,c)&&(a=1-l,e.vars.repeatRefresh&&e._initted&&e.invalidate())),l!==a||ht||n||e._zTime===Et||!t&&e._zTime){if(!e._initted&&Yi(e,t,n,i,d))return;for(o=e._zTime,e._zTime=t||(i?Et:0),i||(i=t&&!o),e.ratio=l,e._from&&(l=1-l),e._time=0,e._tTime=d,r=e._pt;r;)r.r(l,r.d),r=r._next;t<0&&Ii(e,t,0,!0),e._onUpdate&&!i&&mn(e,"onUpdate"),d&&e._repeat&&!i&&e.parent&&mn(e,"onRepeat"),(t>=e._tDur||t<0)&&e.ratio===l&&(l&&Li(e,1),i||ht||(mn(e,l?"onComplete":"onReverseComplete",!0),e._prom&&e._prom()))}else e._zTime||(e._zTime=t)}(this,e,t,i);return this},i.targets=function(){return this._targets},i.invalidate=function(t){return(!t||!this.vars.runBackwards)&&(this._startAt=0),this._pt=this._op=this._onUpdate=this._lazy=this.ratio=0,this._ptLookup=[],this.timeline&&this.timeline.invalidate(t),e.prototype.invalidate.call(this,t)},i.resetTo=function(e,t,i,n){xt||Pn.wake(),this._ts||this.play();var r=Math.min(this._dur,(this._dp._time-this._start)*this._ts);return this._initted||Un(this,r),function(e,t,i,n,r,s,o){var a,l,c,d,u=(e._pt&&e._ptCache||(e._ptCache={}))[t];if(!u)for(u=e._ptCache[t]=[],c=e._ptLookup,d=e._targets.length;d--;){if((a=c[d][t])&&a.d&&a.d._pt)for(a=a.d._pt;a&&a.p!==t&&a.fp!==t;)a=a._next;if(!a)return Xn=1,e.vars[t]="+=0",Un(e,o),Xn=0,1;u.push(a)}for(d=u.length;d--;)(a=(l=u[d])._pt||l).s=!n&&0!==n||r?a.s+(n||0)+s*a.c:n,a.c=i-a.s,l.e&&(l.e=vi(i)+en(l.e)),l.b&&(l.b=a.s+en(l.b))}(this,e,t,i,n,this._ease(r/this._dur),r)?this.resetTo(e,t,i,n):(Ni(this,0),this.parent||ki(this._dp,this,"_first","_last",this._dp._sort?"_start":0),this.render(0))},i.kill=function(e,t){if(void 0===t&&(t="all"),!(e||t&&"all"!==t))return this._lazy=this._pt=0,this.parent?gn(this):this;if(this.timeline){var i=this.timeline.totalDuration();return this.timeline.killTweensOf(e,t,Yn&&!0!==Yn.vars.overwrite)._first||gn(this),this.parent&&i!==this.timeline.totalDuration()&&Gi(this,this._dur*this.timeline._tDur/i,0,1),this}var n,r,s,o,a,l,c,d=this._targets,u=e?rn(e):d,h=this._ptLookup,p=this._pt;if((!t||"all"===t)&&function(e,t){for(var i=e.length,n=i===t.length;n&&i--&&e[i]===t[i];);return i<0}(d,u))return"all"===t&&(this._pt=0),gn(this);for(n=this._op=this._op||[],"all"!==t&&(Lt(t)&&(a={},gi(t,(function(e){return a[e]=1})),t=a),t=function(e,t){var i,n,r,s,o=e[0]?fi(e[0]).harness:0,a=o&&o.aliases;if(!a)return t;for(n in i=Ci({},t),a)if(n in i)for(r=(s=a[n].split(",")).length;r--;)i[s[r]]=i[n];return i}(d,t)),c=d.length;c--;)if(~u.indexOf(d[c]))for(a in r=h[c],"all"===t?(n[c]=t,o=r,s={}):(s=n[c]=n[c]||{},o=t),o)(l=r&&r[a])&&("kill"in l.d&&!0!==l.d.kill(a)||Ai(this,l,"_pt"),delete r[a]),"all"!==s&&(s[a]=1);return this._initted&&!this._pt&&p&&gn(this),this},t.to=function(e,i){return new t(e,i,arguments[2])},t.from=function(e,t){return Ki(1,arguments)},t.delayedCall=function(e,i,n,r){return new t(i,0,{immediateRender:!1,lazy:!1,overwrite:!1,delay:e,onComplete:i,onReverseComplete:i,onCompleteParams:n,onReverseCompleteParams:n,callbackScope:r})},t.fromTo=function(e,t,i){return Ki(2,arguments)},t.set=function(e,i){return i.duration=0,i.repeatDelay||(i.repeat=0),new t(e,i)},t.killTweensOf=function(e,t,i){return ft.killTweensOf(e,t,i)},t}($n);Ei(er.prototype,{_targets:[],_lazy:0,_startAt:0,_op:0,_onInit:0}),gi("staggerTo,staggerFrom,staggerFromTo",(function(e){er[e]=function(){var t=new qn,i=tn.call(arguments,0);return i.splice("staggerFromTo"===e?5:4,0,0),t[e].apply(t,i)}}));var tr=function(e,t,i){return e[t]=i},ir=function(e,t,i){return e[t](i)},nr=function(e,t,i,n){return e[t](n.fp,i)},rr=function(e,t,i){return e.setAttribute(t,i)},sr=function(e,t){return zt(e[t])?ir:Rt(e[t])&&e.setAttribute?rr:tr},or=function(e,t){return t.set(t.t,t.p,Math.round(1e6*(t.s+t.c*e))/1e6,t)},ar=function(e,t){return t.set(t.t,t.p,!!(t.s+t.c*e),t)},lr=function(e,t){var i=t._pt,n="";if(!e&&t.b)n=t.b;else if(1===e&&t.e)n=t.e;else{for(;i;)n=i.p+(i.m?i.m(i.s+i.c*e):Math.round(1e4*(i.s+i.c*e))/1e4)+n,i=i._next;n+=t.c}t.set(t.t,t.p,n,t)},cr=function(e,t){for(var i=t._pt;i;)i.r(e,i.d),i=i._next},dr=function(e,t,i,n){for(var r,s=this._pt;s;)r=s._next,s.p===n&&s.modifier(e,t,i),s=r},ur=function(e){for(var t,i,n=this._pt;n;)i=n._next,n.p===e&&!n.op||n.op===e?Ai(this,n,"_pt"):n.dep||(t=1),n=i;return!t},hr=function(e,t,i,n){n.mSet(e,t,n.m.call(n.tween,i,n.mt),n)},pr=function(e){for(var t,i,n,r,s=e._pt;s;){for(t=s._next,i=n;i&&i.pr>s.pr;)i=i._next;(s._prev=i?i._prev:r)?s._prev._next=s:n=s,(s._next=i)?i._prev=s:r=s,s=t}e._pt=n},fr=function(){function e(e,t,i,n,r,s,o,a,l){this.t=t,this.s=n,this.c=r,this.p=i,this.r=s||or,this.d=o||this,this.set=a||tr,this.pr=l||0,this._next=e,e&&(e._prev=this)}return e.prototype.modifier=function(e,t,i){this.mSet=this.mSet||this.set,this.set=hr,this.m=e,this.mt=i,this.tween=t},e}();gi(hi+"parent,duration,ease,delay,overwrite,runBackwards,startAt,yoyo,immediateRender,repeat,repeatDelay,data,paused,reversed,lazy,callbackScope,stringFilter,id,yoyoEase,stagger,inherit,repeatRefresh,keyframes,autoRevert,scrollTrigger",(function(e){return si[e]=1})),Ut.TweenMax=Ut.TweenLite=er,Ut.TimelineLite=Ut.TimelineMax=qn,ft=new qn({sortChildren:!1,defaults:St,autoRemoveChildren:!0,id:"root",smoothChildTiming:!0}),Tt.stringFilter=Mn;var mr=[],gr={},vr=[],br=0,yr=0,wr=function(e){return(gr[e]||vr).map((function(e){return e()}))},xr=function(){var e=Date.now(),t=[];e-br>2&&(wr("matchMediaInit"),mr.forEach((function(e){var i,n,r,s,o=e.queries,a=e.conditions;for(n in o)(i=mt.matchMedia(o[n]).matches)&&(r=1),i!==a[n]&&(a[n]=i,s=1);s&&(e.revert(),r&&t.push(e))})),wr("matchMediaRevert"),t.forEach((function(e){return e.onMatch(e)})),br=e,wr("matchMedia"))},Tr=function(){function e(e,t){this.selector=t&&sn(t),this.data=[],this._r=[],this.isReverted=!1,this.id=yr++,e&&this.add(e)}var t=e.prototype;return t.add=function(e,t,i){zt(e)&&(i=t,t=e,e=zt);var n=this,r=function(){var e,r=pt,s=n.selector;return r&&r!==n&&r.data.push(n),i&&(n.selector=sn(i)),pt=n,e=t.apply(n,arguments),zt(e)&&n._r.push(e),pt=r,n.selector=s,n.isReverted=!1,e};return n.last=r,e===zt?r(n):e?n[e]=r:r},t.ignore=function(e){var t=pt;pt=null,e(this),pt=t},t.getTweens=function(){var t=[];return this.data.forEach((function(i){return i instanceof e?t.push.apply(t,i.getTweens()):i instanceof er&&!(i.parent&&"nested"===i.parent.data)&&t.push(i)})),t},t.clear=function(){this._r.length=this.data.length=0},t.kill=function(e,t){var i=this;if(e){var n=this.getTweens();this.data.forEach((function(e){"isFlip"===e.data&&(e.revert(),e.getChildren(!0,!0,!1).forEach((function(e){return n.splice(n.indexOf(e),1)})))})),n.map((function(e){return{g:e.globalTime(0),t:e}})).sort((function(e,t){return t.g-e.g||-1/0})).forEach((function(t){return t.t.revert(e)})),this.data.forEach((function(t){return!(t instanceof er)&&t.revert&&t.revert(e)})),this._r.forEach((function(t){return t(e,i)})),this.isReverted=!0}else this.data.forEach((function(e){return e.kill&&e.kill()}));if(this.clear(),t)for(var r=mr.length;r--;)mr[r].id===this.id&&mr.splice(r,1)},t.revert=function(e){this.kill(e||{})},e}(),Sr=function(){function e(e){this.contexts=[],this.scope=e}var t=e.prototype;return t.add=function(e,t,i){Dt(e)||(e={matches:e});var n,r,s,o=new Tr(0,i||this.scope),a=o.conditions={};for(r in pt&&!o.selector&&(o.selector=pt.selector),this.contexts.push(o),t=o.add("onMatch",t),o.queries=e,e)"all"===r?s=1:(n=mt.matchMedia(e[r]))&&(mr.indexOf(o)<0&&mr.push(o),(a[r]=n.matches)&&(s=1),n.addListener?n.addListener(xr):n.addEventListener("change",xr));return s&&t(o),this},t.revert=function(e){this.kill(e||{})},t.kill=function(e){this.contexts.forEach((function(t){return t.kill(e,!0)}))},e}(),_r={registerPlugin:function(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];t.forEach((function(e){return bn(e)}))},timeline:function(e){return new qn(e)},getTweensOf:function(e,t){return ft.getTweensOf(e,t)},getProperty:function(e,t,i,n){Lt(e)&&(e=rn(e)[0]);var r=fi(e||{}).get,s=i?_i:Si;return"native"===i&&(i=""),e?t?s((li[t]&&li[t].get||r)(e,t,i,n)):function(t,i,n){return s((li[t]&&li[t].get||r)(e,t,i,n))}:e},quickSetter:function(e,t,i){if((e=rn(e)).length>1){var n=e.map((function(e){return Mr.quickSetter(e,t,i)})),r=n.length;return function(e){for(var t=r;t--;)n[t](e)}}e=e[0]||{};var s=li[t],o=fi(e),a=o.harness&&(o.harness.aliases||{})[t]||t,l=s?function(t){var n=new s;wt._pt=0,n.init(e,i?t+i:t,wt,0,[e]),n.render(1,n),wt._pt&&cr(1,wt)}:o.set(e,a);return s?l:function(t){return l(e,a,i?t+i:t,o,1)}},quickTo:function(e,t,i){var n,r=Mr.to(e,Ci(((n={})[t]="+=0.1",n.paused=!0,n),i||{})),s=function(e,i,n){return r.resetTo(t,e,i,n)};return s.tween=r,s},isTweening:function(e){return ft.getTweensOf(e,!0).length>0},defaults:function(e){return e&&e.ease&&(e.ease=Dn(e.ease,St.ease)),Mi(St,e||{})},config:function(e){return Mi(Tt,e||{})},registerEffect:function(e){var t=e.name,i=e.effect,n=e.plugins,r=e.defaults,s=e.extendTimeline;(n||"").split(",").forEach((function(e){return e&&!li[e]&&!Ut[e]&&Qt(t+" effect requires "+e+" plugin.")})),ci[t]=function(e,t,n){return i(rn(e),Ei(t||{},r),n)},s&&(qn.prototype[t]=function(e,i,n){return this.add(ci[t](e,Dt(i)?i:(n=i)&&{},this),n)})},registerEase:function(e,t){kn[e]=Dn(t)},parseEase:function(e,t){return arguments.length?Dn(e,t):kn},getById:function(e){return ft.getById(e)},exportRoot:function(e,t){void 0===e&&(e={});var i,n,r=new qn(e);for(r.smoothChildTiming=Ft(e.smoothChildTiming),ft.remove(r),r._dp=0,r._time=r._tTime=ft._time,i=ft._first;i;)n=i._next,!t&&!i._dur&&i instanceof er&&i.vars.onComplete===i._targets[0]||$i(r,i,i._start-i._delay),i=n;return $i(ft,r,0),r},context:function(e,t){return e?new Tr(e,t):pt},matchMedia:function(e){return new Sr(e)},matchMediaRefresh:function(){return mr.forEach((function(e){var t,i,n=e.conditions;for(i in n)n[i]&&(n[i]=!1,t=1);t&&e.revert()}))||xr()},addEventListener:function(e,t){var i=gr[e]||(gr[e]=[]);~i.indexOf(t)||i.push(t)},removeEventListener:function(e,t){var i=gr[e],n=i&&i.indexOf(t);n>=0&&i.splice(n,1)},utils:{wrap:function e(t,i,n){var r=i-t;return Ht(t)?un(t,e(0,t.length),i):Ji(n,(function(e){return(r+(e-t)%r)%r+t}))},wrapYoyo:function e(t,i,n){var r=i-t,s=2*r;return Ht(t)?un(t,e(0,t.length-1),i):Ji(n,(function(e){return t+((e=(s+(e-t)%s)%s||0)>r?s-e:e)}))},distribute:an,random:dn,snap:cn,normalize:function(e,t,i){return pn(e,t,0,1,i)},getUnit:en,clamp:function(e,t,i){return Ji(i,(function(i){return Qi(e,t,i)}))},splitColor:Tn,toArray:rn,selector:sn,mapRange:pn,pipe:function(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];return function(e){return t.reduce((function(e,t){return t(e)}),e)}},unitize:function(e,t){return function(i){return e(parseFloat(i))+(t||en(i))}},interpolate:function e(t,i,n,r){var s=isNaN(t+i)?0:function(e){return(1-e)*t+e*i};if(!s){var o,a,l,c,d,u=Lt(t),h={};if(!0===n&&(r=1)&&(n=null),u)t={p:t},i={p:i};else if(Ht(t)&&!Ht(i)){for(l=[],c=t.length,d=c-2,a=1;a<c;a++)l.push(e(t[a-1],t[a]));c--,s=function(e){e*=c;var t=Math.min(d,~~e);return l[t](e-t)},n=i}else r||(t=Ci(Ht(t)?[]:{},t));if(!l){for(o in i)Gn.call(h,t,o,"get",i[o]);s=function(e){return cr(e,h)||(u?t.p:t)}}}return Ji(n,s)},shuffle:on},install:Kt,effects:ci,ticker:Pn,updateRoot:qn.updateRoot,plugins:li,globalTimeline:ft,core:{PropTween:fr,globals:ei,Tween:er,Timeline:qn,Animation:$n,getCache:fi,_removeLinkedListItem:Ai,reverting:function(){return ht},context:function(e){return e&&pt&&(pt.data.push(e),e._ctx=pt),pt},suppressOverwrites:function(e){return ut=e}}};gi("to,from,fromTo,delayedCall,set,killTweensOf",(function(e){return _r[e]=er[e]})),Pn.add(qn.updateRoot),wt=_r.to({},{duration:0});var Er=function(e,t){for(var i=e._pt;i&&i.p!==t&&i.op!==t&&i.fp!==t;)i=i._next;return i},Cr=function(e,t){return{name:e,rawVars:1,init:function(e,i,n){n._onInit=function(e){var n,r;if(Lt(i)&&(n={},gi(i,(function(e){return n[e]=1})),i=n),t){for(r in n={},i)n[r]=t(i[r]);i=n}!function(e,t){var i,n,r,s=e._targets;for(i in t)for(n=s.length;n--;)(r=e._ptLookup[n][i])&&(r=r.d)&&(r._pt&&(r=Er(r,i)),r&&r.modifier&&r.modifier(t[i],e,s[n],i))}(e,i)}}}},Mr=_r.registerPlugin({name:"attr",init:function(e,t,i,n,r){var s,o,a;for(s in this.tween=i,t)a=e.getAttribute(s)||"",(o=this.add(e,"setAttribute",(a||0)+"",t[s],n,r,0,0,s)).op=s,o.b=a,this._props.push(s)},render:function(e,t){for(var i=t._pt;i;)ht?i.set(i.t,i.p,i.b,i):i.r(e,i.d),i=i._next}},{name:"endArray",init:function(e,t){for(var i=t.length;i--;)this.add(e,i,e[i]||0,t[i],0,0,0,0,0,1)}},Cr("roundProps",ln),Cr("modifiers"),Cr("snap",cn))||_r;er.version=qn.version=Mr.version="3.12.2",bt=1,Bt()&&On(),kn.Power0,kn.Power1,kn.Power2,kn.Power3,kn.Power4,kn.Linear,kn.Quad,kn.Cubic,kn.Quart,kn.Quint,kn.Strong,kn.Elastic,kn.Back,kn.SteppedEase,kn.Bounce,kn.Sine,kn.Expo,kn.Circ;var Pr,Or,kr,Ar,Lr,zr,Ir,Rr,Dr={},Fr=180/Math.PI,Br=Math.PI/180,jr=Math.atan2,Nr=/([A-Z])/g,Hr=/(left|right|width|margin|padding|x)/i,$r=/[\s,\(]\S/,qr={autoAlpha:"opacity,visibility",scale:"scaleX,scaleY",alpha:"opacity"},Yr=function(e,t){return t.set(t.t,t.p,Math.round(1e4*(t.s+t.c*e))/1e4+t.u,t)},Xr=function(e,t){return t.set(t.t,t.p,1===e?t.e:Math.round(1e4*(t.s+t.c*e))/1e4+t.u,t)},Vr=function(e,t){return t.set(t.t,t.p,e?Math.round(1e4*(t.s+t.c*e))/1e4+t.u:t.b,t)},Gr=function(e,t){var i=t.s+t.c*e;t.set(t.t,t.p,~~(i+(i<0?-.5:.5))+t.u,t)},Wr=function(e,t){return t.set(t.t,t.p,e?t.e:t.b,t)},Ur=function(e,t){return t.set(t.t,t.p,1!==e?t.b:t.e,t)},Zr=function(e,t,i){return e.style[t]=i},Kr=function(e,t,i){return e.style.setProperty(t,i)},Jr=function(e,t,i){return e._gsap[t]=i},Qr=function(e,t,i){return e._gsap.scaleX=e._gsap.scaleY=i},es=function(e,t,i,n,r){var s=e._gsap;s.scaleX=s.scaleY=i,s.renderTransform(r,s)},ts=function(e,t,i,n,r){var s=e._gsap;s[t]=i,s.renderTransform(r,s)},is="transform",ns=is+"Origin",rs=function e(t,i){var n=this,r=this.target,s=r.style;if(t in Dr&&s){if(this.tfm=this.tfm||{},"transform"===t)return qr.transform.split(",").forEach((function(t){return e.call(n,t,i)}));if(~(t=qr[t]||t).indexOf(",")?t.split(",").forEach((function(e){return n.tfm[e]=Ts(r,e)})):this.tfm[t]=r._gsap.x?r._gsap[t]:Ts(r,t),this.props.indexOf(is)>=0)return;r._gsap.svg&&(this.svgo=r.getAttribute("data-svg-origin"),this.props.push(ns,i,"")),t=is}(s||i)&&this.props.push(t,i,s[t])},ss=function(e){e.translate&&(e.removeProperty("translate"),e.removeProperty("scale"),e.removeProperty("rotate"))},os=function(){var e,t,i=this.props,n=this.target,r=n.style,s=n._gsap;for(e=0;e<i.length;e+=3)i[e+1]?n[i[e]]=i[e+2]:i[e+2]?r[i[e]]=i[e+2]:r.removeProperty("--"===i[e].substr(0,2)?i[e]:i[e].replace(Nr,"-$1").toLowerCase());if(this.tfm){for(t in this.tfm)s[t]=this.tfm[t];s.svg&&(s.renderTransform(),n.setAttribute("data-svg-origin",this.svgo||"")),(e=Ir())&&e.isStart||r[is]||(ss(r),s.uncache=1)}},as=function(e,t){var i={target:e,props:[],revert:os,save:rs};return e._gsap||Mr.core.getCache(e),t&&t.split(",").forEach((function(e){return i.save(e)})),i},ls=function(e,t){var i=Or.createElementNS?Or.createElementNS((t||"http://www.w3.org/1999/xhtml").replace(/^https/,"http"),e):Or.createElement(e);return i.style?i:Or.createElement(e)},cs=function e(t,i,n){var r=getComputedStyle(t);return r[i]||r.getPropertyValue(i.replace(Nr,"-$1").toLowerCase())||r.getPropertyValue(i)||!n&&e(t,us(i)||i,1)||""},ds="O,Moz,ms,Ms,Webkit".split(","),us=function(e,t,i){var n=(t||Lr).style,r=5;if(e in n&&!i)return e;for(e=e.charAt(0).toUpperCase()+e.substr(1);r--&&!(ds[r]+e in n););return r<0?null:(3===r?"ms":r>=0?ds[r]:"")+e},hs=function(){"undefined"!=typeof window&&window.document&&(Pr=window,Or=Pr.document,kr=Or.documentElement,Lr=ls("div")||{style:{}},ls("div"),is=us(is),ns=is+"Origin",Lr.style.cssText="border-width:0;line-height:0;position:absolute;padding:0",Rr=!!us("perspective"),Ir=Mr.core.reverting,Ar=1)},ps=function e(t){var i,n=ls("svg",this.ownerSVGElement&&this.ownerSVGElement.getAttribute("xmlns")||"http://www.w3.org/2000/svg"),r=this.parentNode,s=this.nextSibling,o=this.style.cssText;if(kr.appendChild(n),n.appendChild(this),this.style.display="block",t)try{i=this.getBBox(),this._gsapBBox=this.getBBox,this.getBBox=e}catch(e){}else this._gsapBBox&&(i=this._gsapBBox());return r&&(s?r.insertBefore(this,s):r.appendChild(this)),kr.removeChild(n),this.style.cssText=o,i},fs=function(e,t){for(var i=t.length;i--;)if(e.hasAttribute(t[i]))return e.getAttribute(t[i])},ms=function(e){var t;try{t=e.getBBox()}catch(i){t=ps.call(e,!0)}return t&&(t.width||t.height)||e.getBBox===ps||(t=ps.call(e,!0)),!t||t.width||t.x||t.y?t:{x:+fs(e,["x","cx","x1"])||0,y:+fs(e,["y","cy","y1"])||0,width:0,height:0}},gs=function(e){return!(!e.getCTM||e.parentNode&&!e.ownerSVGElement||!ms(e))},vs=function(e,t){if(t){var i=e.style;t in Dr&&t!==ns&&(t=is),i.removeProperty?("ms"!==t.substr(0,2)&&"webkit"!==t.substr(0,6)||(t="-"+t),i.removeProperty(t.replace(Nr,"-$1").toLowerCase())):i.removeAttribute(t)}},bs=function(e,t,i,n,r,s){var o=new fr(e._pt,t,i,0,1,s?Ur:Wr);return e._pt=o,o.b=n,o.e=r,e._props.push(i),o},ys={deg:1,rad:1,turn:1},ws={grid:1,flex:1},xs=function e(t,i,n,r){var s,o,a,l,c=parseFloat(n)||0,d=(n+"").trim().substr((c+"").length)||"px",u=Lr.style,h=Hr.test(i),p="svg"===t.tagName.toLowerCase(),f=(p?"client":"offset")+(h?"Width":"Height"),m=100,g="px"===r,v="%"===r;return r===d||!c||ys[r]||ys[d]?c:("px"!==d&&!g&&(c=e(t,i,n,"px")),l=t.getCTM&&gs(t),!v&&"%"!==d||!Dr[i]&&!~i.indexOf("adius")?(u[h?"width":"height"]=m+(g?d:r),o=~i.indexOf("adius")||"em"===r&&t.appendChild&&!p?t:t.parentNode,l&&(o=(t.ownerSVGElement||{}).parentNode),o&&o!==Or&&o.appendChild||(o=Or.body),(a=o._gsap)&&v&&a.width&&h&&a.time===Pn.time&&!a.uncache?vi(c/a.width*m):((v||"%"===d)&&!ws[cs(o,"display")]&&(u.position=cs(t,"position")),o===t&&(u.position="static"),o.appendChild(Lr),s=Lr[f],o.removeChild(Lr),u.position="absolute",h&&v&&((a=fi(o)).time=Pn.time,a.width=o[f]),vi(g?s*c/m:s&&c?m/s*c:0))):(s=l?t.getBBox()[h?"width":"height"]:t[f],vi(v?c/s*m:c/100*s)))},Ts=function(e,t,i,n){var r;return Ar||hs(),t in qr&&"transform"!==t&&~(t=qr[t]).indexOf(",")&&(t=t.split(",")[0]),Dr[t]&&"transform"!==t?(r=Is(e,n),r="transformOrigin"!==t?r[t]:r.svg?r.origin:Rs(cs(e,ns))+" "+r.zOrigin+"px"):(!(r=e.style[t])||"auto"===r||n||~(r+"").indexOf("calc("))&&(r=Ms[t]&&Ms[t](e,t,i)||cs(e,t)||mi(e,t)||("opacity"===t?1:0)),i&&!~(r+"").trim().indexOf(" ")?xs(e,t,r,i)+i:r},Ss=function(e,t,i,n){if(!i||"none"===i){var r=us(t,e,1),s=r&&cs(e,r,1);s&&s!==i?(t=r,i=s):"borderColor"===t&&(i=cs(e,"borderTopColor"))}var o,a,l,c,d,u,h,p,f,m,g,v=new fr(this._pt,e.style,t,0,1,lr),b=0,y=0;if(v.b=i,v.e=n,i+="","auto"==(n+="")&&(e.style[t]=n,n=cs(e,t)||n,e.style[t]=i),Mn(o=[i,n]),n=o[1],l=(i=o[0]).match(Yt)||[],(n.match(Yt)||[]).length){for(;a=Yt.exec(n);)h=a[0],f=n.substring(b,a.index),d?d=(d+1)%5:"rgba("!==f.substr(-5)&&"hsla("!==f.substr(-5)||(d=1),h!==(u=l[y++]||"")&&(c=parseFloat(u)||0,g=u.substr((c+"").length),"="===h.charAt(1)&&(h=yi(c,h)+g),p=parseFloat(h),m=h.substr((p+"").length),b=Yt.lastIndex-m.length,m||(m=m||Tt.units[t]||g,b===n.length&&(n+=m,v.e+=m)),g!==m&&(c=xs(e,t,u,m)||0),v._pt={_next:v._pt,p:f||1===y?f:",",s:c,c:p-c,m:d&&d<4||"zIndex"===t?Math.round:0});v.c=b<n.length?n.substring(b,n.length):""}else v.r="display"===t&&"none"===n?Ur:Wr;return Vt.test(n)&&(v.e=0),this._pt=v,v},_s={top:"0%",bottom:"100%",left:"0%",right:"100%",center:"50%"},Es=function(e){var t=e.split(" "),i=t[0],n=t[1]||"50%";return"top"!==i&&"bottom"!==i&&"left"!==n&&"right"!==n||(e=i,i=n,n=e),t[0]=_s[i]||i,t[1]=_s[n]||n,t.join(" ")},Cs=function(e,t){if(t.tween&&t.tween._time===t.tween._dur){var i,n,r,s=t.t,o=s.style,a=t.u,l=s._gsap;if("all"===a||!0===a)o.cssText="",n=1;else for(r=(a=a.split(",")).length;--r>-1;)i=a[r],Dr[i]&&(n=1,i="transformOrigin"===i?ns:is),vs(s,i);n&&(vs(s,is),l&&(l.svg&&s.removeAttribute("transform"),Is(s,1),l.uncache=1,ss(o)))}},Ms={clearProps:function(e,t,i,n,r){if("isFromStart"!==r.data){var s=e._pt=new fr(e._pt,t,i,0,0,Cs);return s.u=n,s.pr=-10,s.tween=r,e._props.push(i),1}}},Ps=[1,0,0,1,0,0],Os={},ks=function(e){return"matrix(1, 0, 0, 1, 0, 0)"===e||"none"===e||!e},As=function(e){var t=cs(e,is);return ks(t)?Ps:t.substr(7).match(qt).map(vi)},Ls=function(e,t){var i,n,r,s,o=e._gsap||fi(e),a=e.style,l=As(e);return o.svg&&e.getAttribute("transform")?"1,0,0,1,0,0"===(l=[(r=e.transform.baseVal.consolidate().matrix).a,r.b,r.c,r.d,r.e,r.f]).join(",")?Ps:l:(l!==Ps||e.offsetParent||e===kr||o.svg||(r=a.display,a.display="block",(i=e.parentNode)&&e.offsetParent||(s=1,n=e.nextElementSibling,kr.appendChild(e)),l=As(e),r?a.display=r:vs(e,"display"),s&&(n?i.insertBefore(e,n):i?i.appendChild(e):kr.removeChild(e))),t&&l.length>6?[l[0],l[1],l[4],l[5],l[12],l[13]]:l)},zs=function(e,t,i,n,r,s){var o,a,l,c=e._gsap,d=r||Ls(e,!0),u=c.xOrigin||0,h=c.yOrigin||0,p=c.xOffset||0,f=c.yOffset||0,m=d[0],g=d[1],v=d[2],b=d[3],y=d[4],w=d[5],x=t.split(" "),T=parseFloat(x[0])||0,S=parseFloat(x[1])||0;i?d!==Ps&&(a=m*b-g*v)&&(l=T*(-g/a)+S*(m/a)-(m*w-g*y)/a,T=T*(b/a)+S*(-v/a)+(v*w-b*y)/a,S=l):(T=(o=ms(e)).x+(~x[0].indexOf("%")?T/100*o.width:T),S=o.y+(~(x[1]||x[0]).indexOf("%")?S/100*o.height:S)),n||!1!==n&&c.smooth?(y=T-u,w=S-h,c.xOffset=p+(y*m+w*v)-y,c.yOffset=f+(y*g+w*b)-w):c.xOffset=c.yOffset=0,c.xOrigin=T,c.yOrigin=S,c.smooth=!!n,c.origin=t,c.originIsAbsolute=!!i,e.style[ns]="0px 0px",s&&(bs(s,c,"xOrigin",u,T),bs(s,c,"yOrigin",h,S),bs(s,c,"xOffset",p,c.xOffset),bs(s,c,"yOffset",f,c.yOffset)),e.setAttribute("data-svg-origin",T+" "+S)},Is=function(e,t){var i=e._gsap||new Hn(e);if("x"in i&&!t&&!i.uncache)return i;var n,r,s,o,a,l,c,d,u,h,p,f,m,g,v,b,y,w,x,T,S,_,E,C,M,P,O,k,A,L,z,I,R=e.style,D=i.scaleX<0,F="px",B="deg",j=getComputedStyle(e),N=cs(e,ns)||"0";return n=r=s=l=c=d=u=h=p=0,o=a=1,i.svg=!(!e.getCTM||!gs(e)),j.translate&&("none"===j.translate&&"none"===j.scale&&"none"===j.rotate||(R[is]=("none"!==j.translate?"translate3d("+(j.translate+" 0 0").split(" ").slice(0,3).join(", ")+") ":"")+("none"!==j.rotate?"rotate("+j.rotate+") ":"")+("none"!==j.scale?"scale("+j.scale.split(" ").join(",")+") ":"")+("none"!==j[is]?j[is]:"")),R.scale=R.rotate=R.translate="none"),g=Ls(e,i.svg),i.svg&&(i.uncache?(M=e.getBBox(),N=i.xOrigin-M.x+"px "+(i.yOrigin-M.y)+"px",C=""):C=!t&&e.getAttribute("data-svg-origin"),zs(e,C||N,!!C||i.originIsAbsolute,!1!==i.smooth,g)),f=i.xOrigin||0,m=i.yOrigin||0,g!==Ps&&(w=g[0],x=g[1],T=g[2],S=g[3],n=_=g[4],r=E=g[5],6===g.length?(o=Math.sqrt(w*w+x*x),a=Math.sqrt(S*S+T*T),l=w||x?jr(x,w)*Fr:0,(u=T||S?jr(T,S)*Fr+l:0)&&(a*=Math.abs(Math.cos(u*Br))),i.svg&&(n-=f-(f*w+m*T),r-=m-(f*x+m*S))):(I=g[6],L=g[7],O=g[8],k=g[9],A=g[10],z=g[11],n=g[12],r=g[13],s=g[14],c=(v=jr(I,A))*Fr,v&&(C=_*(b=Math.cos(-v))+O*(y=Math.sin(-v)),M=E*b+k*y,P=I*b+A*y,O=_*-y+O*b,k=E*-y+k*b,A=I*-y+A*b,z=L*-y+z*b,_=C,E=M,I=P),d=(v=jr(-T,A))*Fr,v&&(b=Math.cos(-v),z=S*(y=Math.sin(-v))+z*b,w=C=w*b-O*y,x=M=x*b-k*y,T=P=T*b-A*y),l=(v=jr(x,w))*Fr,v&&(C=w*(b=Math.cos(v))+x*(y=Math.sin(v)),M=_*b+E*y,x=x*b-w*y,E=E*b-_*y,w=C,_=M),c&&Math.abs(c)+Math.abs(l)>359.9&&(c=l=0,d=180-d),o=vi(Math.sqrt(w*w+x*x+T*T)),a=vi(Math.sqrt(E*E+I*I)),v=jr(_,E),u=Math.abs(v)>2e-4?v*Fr:0,p=z?1/(z<0?-z:z):0),i.svg&&(C=e.getAttribute("transform"),i.forceCSS=e.setAttribute("transform","")||!ks(cs(e,is)),C&&e.setAttribute("transform",C))),Math.abs(u)>90&&Math.abs(u)<270&&(D?(o*=-1,u+=l<=0?180:-180,l+=l<=0?180:-180):(a*=-1,u+=u<=0?180:-180)),t=t||i.uncache,i.x=n-((i.xPercent=n&&(!t&&i.xPercent||(Math.round(e.offsetWidth/2)===Math.round(-n)?-50:0)))?e.offsetWidth*i.xPercent/100:0)+F,i.y=r-((i.yPercent=r&&(!t&&i.yPercent||(Math.round(e.offsetHeight/2)===Math.round(-r)?-50:0)))?e.offsetHeight*i.yPercent/100:0)+F,i.z=s+F,i.scaleX=vi(o),i.scaleY=vi(a),i.rotation=vi(l)+B,i.rotationX=vi(c)+B,i.rotationY=vi(d)+B,i.skewX=u+B,i.skewY=h+B,i.transformPerspective=p+F,(i.zOrigin=parseFloat(N.split(" ")[2])||0)&&(R[ns]=Rs(N)),i.xOffset=i.yOffset=0,i.force3D=Tt.force3D,i.renderTransform=i.svg?$s:Rr?Hs:Fs,i.uncache=0,i},Rs=function(e){return(e=e.split(" "))[0]+" "+e[1]},Ds=function(e,t,i){var n=en(t);return vi(parseFloat(t)+parseFloat(xs(e,"x",i+"px",n)))+n},Fs=function(e,t){t.z="0px",t.rotationY=t.rotationX="0deg",t.force3D=0,Hs(e,t)},Bs="0deg",js="0px",Ns=") ",Hs=function(e,t){var i=t||this,n=i.xPercent,r=i.yPercent,s=i.x,o=i.y,a=i.z,l=i.rotation,c=i.rotationY,d=i.rotationX,u=i.skewX,h=i.skewY,p=i.scaleX,f=i.scaleY,m=i.transformPerspective,g=i.force3D,v=i.target,b=i.zOrigin,y="",w="auto"===g&&e&&1!==e||!0===g;if(b&&(d!==Bs||c!==Bs)){var x,T=parseFloat(c)*Br,S=Math.sin(T),_=Math.cos(T);T=parseFloat(d)*Br,x=Math.cos(T),s=Ds(v,s,S*x*-b),o=Ds(v,o,-Math.sin(T)*-b),a=Ds(v,a,_*x*-b+b)}m!==js&&(y+="perspective("+m+Ns),(n||r)&&(y+="translate("+n+"%, "+r+"%) "),(w||s!==js||o!==js||a!==js)&&(y+=a!==js||w?"translate3d("+s+", "+o+", "+a+") ":"translate("+s+", "+o+Ns),l!==Bs&&(y+="rotate("+l+Ns),c!==Bs&&(y+="rotateY("+c+Ns),d!==Bs&&(y+="rotateX("+d+Ns),u===Bs&&h===Bs||(y+="skew("+u+", "+h+Ns),1===p&&1===f||(y+="scale("+p+", "+f+Ns),v.style[is]=y||"translate(0, 0)"},$s=function(e,t){var i,n,r,s,o,a=t||this,l=a.xPercent,c=a.yPercent,d=a.x,u=a.y,h=a.rotation,p=a.skewX,f=a.skewY,m=a.scaleX,g=a.scaleY,v=a.target,b=a.xOrigin,y=a.yOrigin,w=a.xOffset,x=a.yOffset,T=a.forceCSS,S=parseFloat(d),_=parseFloat(u);h=parseFloat(h),p=parseFloat(p),(f=parseFloat(f))&&(p+=f=parseFloat(f),h+=f),h||p?(h*=Br,p*=Br,i=Math.cos(h)*m,n=Math.sin(h)*m,r=Math.sin(h-p)*-g,s=Math.cos(h-p)*g,p&&(f*=Br,o=Math.tan(p-f),r*=o=Math.sqrt(1+o*o),s*=o,f&&(o=Math.tan(f),i*=o=Math.sqrt(1+o*o),n*=o)),i=vi(i),n=vi(n),r=vi(r),s=vi(s)):(i=m,s=g,n=r=0),(S&&!~(d+"").indexOf("px")||_&&!~(u+"").indexOf("px"))&&(S=xs(v,"x",d,"px"),_=xs(v,"y",u,"px")),(b||y||w||x)&&(S=vi(S+b-(b*i+y*r)+w),_=vi(_+y-(b*n+y*s)+x)),(l||c)&&(o=v.getBBox(),S=vi(S+l/100*o.width),_=vi(_+c/100*o.height)),o="matrix("+i+","+n+","+r+","+s+","+S+","+_+")",v.setAttribute("transform",o),T&&(v.style[is]=o)},qs=function(e,t,i,n,r){var s,o,a=360,l=Lt(r),c=parseFloat(r)*(l&&~r.indexOf("rad")?Fr:1)-n,d=n+c+"deg";return l&&("short"===(s=r.split("_")[1])&&(c%=a)!=c%180&&(c+=c<0?a:-360),"cw"===s&&c<0?c=(c+36e9)%a-~~(c/a)*a:"ccw"===s&&c>0&&(c=(c-36e9)%a-~~(c/a)*a)),e._pt=o=new fr(e._pt,t,i,n,c,Xr),o.e=d,o.u="deg",e._props.push(i),o},Ys=function(e,t){for(var i in t)e[i]=t[i];return e},Xs=function(e,t,i){var n,r,s,o,a,l,c,d=Ys({},i._gsap),u=i.style;for(r in d.svg?(s=i.getAttribute("transform"),i.setAttribute("transform",""),u[is]=t,n=Is(i,1),vs(i,is),i.setAttribute("transform",s)):(s=getComputedStyle(i)[is],u[is]=t,n=Is(i,1),u[is]=s),Dr)(s=d[r])!==(o=n[r])&&"perspective,force3D,transformOrigin,svgOrigin".indexOf(r)<0&&(a=en(s)!==(c=en(o))?xs(i,r,s,c):parseFloat(s),l=parseFloat(o),e._pt=new fr(e._pt,n,r,a,l-a,Yr),e._pt.u=c||0,e._props.push(r));Ys(n,d)};gi("padding,margin,Width,Radius",(function(e,t){var i="Top",n="Right",r="Bottom",s="Left",o=(t<3?[i,n,r,s]:[i+s,i+n,r+n,r+s]).map((function(i){return t<2?e+i:"border"+i+e}));Ms[t>1?"border"+e:e]=function(e,t,i,n,r){var s,a;if(arguments.length<4)return s=o.map((function(t){return Ts(e,t,i)})),5===(a=s.join(" ")).split(s[0]).length?s[0]:a;s=(n+"").split(" "),a={},o.forEach((function(e,t){return a[e]=s[t]=s[t]||s[(t-1)/2|0]})),e.init(t,a,r)}}));var Vs,Gs,Ws={name:"css",register:hs,targetTest:function(e){return e.style&&e.nodeType},init:function(e,t,i,n,r){var s,o,a,l,c,d,u,h,p,f,m,g,v,b,y,w,x=this._props,T=e.style,S=i.vars.startAt;for(u in Ar||hs(),this.styles=this.styles||as(e),w=this.styles.props,this.tween=i,t)if("autoRound"!==u&&(o=t[u],!li[u]||!Wn(u,t,i,n,e,r)))if(c=typeof o,d=Ms[u],"function"===c&&(c=typeof(o=o.call(i,n,e,r))),"string"===c&&~o.indexOf("random(")&&(o=hn(o)),d)d(this,e,u,o,i)&&(y=1);else if("--"===u.substr(0,2))s=(getComputedStyle(e).getPropertyValue(u)+"").trim(),o+="",En.lastIndex=0,En.test(s)||(h=en(s),p=en(o)),p?h!==p&&(s=xs(e,u,s,p)+p):h&&(o+=h),this.add(T,"setProperty",s,o,n,r,0,0,u),x.push(u),w.push(u,0,T[u]);else if("undefined"!==c){if(S&&u in S?(s="function"==typeof S[u]?S[u].call(i,n,e,r):S[u],Lt(s)&&~s.indexOf("random(")&&(s=hn(s)),en(s+"")||(s+=Tt.units[u]||en(Ts(e,u))||""),"="===(s+"").charAt(1)&&(s=Ts(e,u))):s=Ts(e,u),l=parseFloat(s),(f="string"===c&&"="===o.charAt(1)&&o.substr(0,2))&&(o=o.substr(2)),a=parseFloat(o),u in qr&&("autoAlpha"===u&&(1===l&&"hidden"===Ts(e,"visibility")&&a&&(l=0),w.push("visibility",0,T.visibility),bs(this,T,"visibility",l?"inherit":"hidden",a?"inherit":"hidden",!a)),"scale"!==u&&"transform"!==u&&~(u=qr[u]).indexOf(",")&&(u=u.split(",")[0])),m=u in Dr)if(this.styles.save(u),g||((v=e._gsap).renderTransform&&!t.parseTransform||Is(e,t.parseTransform),b=!1!==t.smoothOrigin&&v.smooth,(g=this._pt=new fr(this._pt,T,is,0,1,v.renderTransform,v,0,-1)).dep=1),"scale"===u)this._pt=new fr(this._pt,v,"scaleY",v.scaleY,(f?yi(v.scaleY,f+a):a)-v.scaleY||0,Yr),this._pt.u=0,x.push("scaleY",u),u+="X";else{if("transformOrigin"===u){w.push(ns,0,T[ns]),o=Es(o),v.svg?zs(e,o,0,b,0,this):((p=parseFloat(o.split(" ")[2])||0)!==v.zOrigin&&bs(this,v,"zOrigin",v.zOrigin,p),bs(this,T,u,Rs(s),Rs(o)));continue}if("svgOrigin"===u){zs(e,o,1,b,0,this);continue}if(u in Os){qs(this,v,u,l,f?yi(l,f+o):o);continue}if("smoothOrigin"===u){bs(this,v,"smooth",v.smooth,o);continue}if("force3D"===u){v[u]=o;continue}if("transform"===u){Xs(this,o,e);continue}}else u in T||(u=us(u)||u);if(m||(a||0===a)&&(l||0===l)&&!$r.test(o)&&u in T)a||(a=0),(h=(s+"").substr((l+"").length))!==(p=en(o)||(u in Tt.units?Tt.units[u]:h))&&(l=xs(e,u,s,p)),this._pt=new fr(this._pt,m?v:T,u,l,(f?yi(l,f+a):a)-l,m||"px"!==p&&"zIndex"!==u||!1===t.autoRound?Yr:Gr),this._pt.u=p||0,h!==p&&"%"!==p&&(this._pt.b=s,this._pt.r=Vr);else if(u in T)Ss.call(this,e,u,s,f?f+o:o);else if(u in e)this.add(e,u,s||e[u],f?f+o:o,n,r);else if("parseTransform"!==u){Jt(u,o);continue}m||(u in T?w.push(u,0,T[u]):w.push(u,1,s||e[u])),x.push(u)}y&&pr(this)},render:function(e,t){if(t.tween._time||!Ir())for(var i=t._pt;i;)i.r(e,i.d),i=i._next;else t.styles.revert()},get:Ts,aliases:qr,getSetter:function(e,t,i){var n=qr[t];return n&&n.indexOf(",")<0&&(t=n),t in Dr&&t!==ns&&(e._gsap.x||Ts(e,"x"))?i&&zr===i?"scale"===t?Qr:Jr:(zr=i||{})&&("scale"===t?es:ts):e.style&&!Rt(e.style[t])?Zr:~t.indexOf("-")?Kr:sr(e,t)},core:{_removeProperty:vs,_getMatrix:Ls}};Mr.utils.checkPrefix=us,Mr.core.getStyleSaver=as,Gs=gi("x,y,z,scale,scaleX,scaleY,xPercent,yPercent"+","+(Vs="rotation,rotationX,rotationY,skewX,skewY")+",transform,transformOrigin,svgOrigin,force3D,smoothOrigin,transformPerspective",(function(e){Dr[e]=1})),gi(Vs,(function(e){Tt.units[e]="deg",Os[e]=1})),qr[Gs[13]]="x,y,z,scale,scaleX,scaleY,xPercent,yPercent,"+Vs,gi("0:translateX,1:translateY,2:translateZ,8:rotate,8:rotationZ,8:rotateZ,9:rotateX,10:rotateY",(function(e){var t=e.split(":");qr[t[1]]=Gs[t[0]]})),gi("x,y,z,top,right,bottom,left,width,height,fontSize,padding,margin,perspective",(function(e){Tt.units[e]="px"})),Mr.registerPlugin(Ws);var Us=Mr.registerPlugin(Ws)||Mr;function Zs(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}Us.core.Tween;var Ks,Js,Qs,eo,to,io,no,ro,so,oo,ao,lo,co,uo=function(){return Ks||"undefined"!=typeof window&&(Ks=window.gsap)&&Ks.registerPlugin&&Ks},ho=1,po=[],fo=[],mo=[],go=Date.now,vo=function(e,t){return t},bo=function(e,t){return~mo.indexOf(e)&&mo[mo.indexOf(e)+1][t]},yo=function(e){return!!~oo.indexOf(e)},wo=function(e,t,i,n,r){return e.addEventListener(t,i,{passive:!n,capture:!!r})},xo=function(e,t,i,n){return e.removeEventListener(t,i,!!n)},To="scrollLeft",So="scrollTop",_o=function(){return ao&&ao.isPressed||fo.cache++},Eo=function(e,t){var i=function i(n){if(n||0===n){ho&&(Qs.history.scrollRestoration="manual");var r=ao&&ao.isPressed;n=i.v=Math.round(n)||(ao&&ao.iOS?1:0),e(n),i.cacheID=fo.cache,r&&vo("ss",n)}else(t||fo.cache!==i.cacheID||vo("ref"))&&(i.cacheID=fo.cache,i.v=e());return i.v+i.offset};return i.offset=0,e&&i},Co={s:To,p:"left",p2:"Left",os:"right",os2:"Right",d:"width",d2:"Width",a:"x",sc:Eo((function(e){return arguments.length?Qs.scrollTo(e,Mo.sc()):Qs.pageXOffset||eo[To]||to[To]||io[To]||0}))},Mo={s:So,p:"top",p2:"Top",os:"bottom",os2:"Bottom",d:"height",d2:"Height",a:"y",op:Co,sc:Eo((function(e){return arguments.length?Qs.scrollTo(Co.sc(),e):Qs.pageYOffset||eo[So]||to[So]||io[So]||0}))},Po=function(e,t){return(t&&t._ctx&&t._ctx.selector||Ks.utils.toArray)(e)[0]||("string"==typeof e&&!1!==Ks.config().nullTargetWarn?console.warn("Element not found:",e):null)},Oo=function(e,t){var i=t.s,n=t.sc;yo(e)&&(e=eo.scrollingElement||to);var r=fo.indexOf(e),s=n===Mo.sc?1:2;!~r&&(r=fo.push(e)-1),fo[r+s]||wo(e,"scroll",_o);var o=fo[r+s],a=o||(fo[r+s]=Eo(bo(e,i),!0)||(yo(e)?n:Eo((function(t){return arguments.length?e[i]=t:e[i]}))));return a.target=e,o||(a.smooth="smooth"===Ks.getProperty(e,"scrollBehavior")),a},ko=function(e,t,i){var n=e,r=e,s=go(),o=s,a=t||50,l=Math.max(500,3*a),c=function(e,t){var l=go();t||l-s>a?(r=n,n=e,o=s,s=l):i?n+=e:n=r+(e-r)/(l-o)*(s-o)};return{update:c,reset:function(){r=n=i?0:n,o=s=0},getVelocity:function(e){var t=o,a=r,d=go();return(e||0===e)&&e!==n&&c(e),s===o||d-o>l?0:(n+(i?a:-a))/((i?d:s)-t)*1e3}}},Ao=function(e,t){return t&&!e._gsapAllow&&e.preventDefault(),e.changedTouches?e.changedTouches[0]:e},Lo=function(e){var t=Math.max.apply(Math,e),i=Math.min.apply(Math,e);return Math.abs(t)>=Math.abs(i)?t:i},zo=function(){var e,t,i,n;(so=Ks.core.globals().ScrollTrigger)&&so.core&&(e=so.core,t=e.bridge||{},i=e._scrollers,n=e._proxies,i.push.apply(i,fo),n.push.apply(n,mo),fo=i,mo=n,vo=function(e,i){return t[e](i)})},Io=function(e){return(Ks=e||uo())&&"undefined"!=typeof document&&document.body&&(Qs=window,eo=document,to=eo.documentElement,io=eo.body,oo=[Qs,eo,to,io],Ks.utils.clamp,co=Ks.core.context||function(){},ro="onpointerenter"in io?"pointer":"mouse",no=Ro.isTouch=Qs.matchMedia&&Qs.matchMedia("(hover: none), (pointer: coarse)").matches?1:"ontouchstart"in Qs||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0?2:0,lo=Ro.eventTypes=("ontouchstart"in to?"touchstart,touchmove,touchcancel,touchend":"onpointerdown"in to?"pointerdown,pointermove,pointercancel,pointerup":"mousedown,mousemove,mouseup,mouseup").split(","),setTimeout((function(){return ho=0}),500),zo(),Js=1),Js};Co.op=Mo,fo.cache=0;var Ro=function(){function e(e){this.init(e)}var t,i;return e.prototype.init=function(e){Js||Io(Ks)||console.warn("Please gsap.registerPlugin(Observer)"),so||zo();var t=e.tolerance,i=e.dragMinimum,n=e.type,r=e.target,s=e.lineHeight,o=e.debounce,a=e.preventDefault,l=e.onStop,c=e.onStopDelay,d=e.ignore,u=e.wheelSpeed,h=e.event,p=e.onDragStart,f=e.onDragEnd,m=e.onDrag,g=e.onPress,v=e.onRelease,b=e.onRight,y=e.onLeft,w=e.onUp,x=e.onDown,T=e.onChangeX,S=e.onChangeY,_=e.onChange,E=e.onToggleX,C=e.onToggleY,M=e.onHover,P=e.onHoverEnd,O=e.onMove,k=e.ignoreCheck,A=e.isNormalizer,L=e.onGestureStart,z=e.onGestureEnd,I=e.onWheel,R=e.onEnable,D=e.onDisable,F=e.onClick,B=e.scrollSpeed,j=e.capture,N=e.allowClicks,H=e.lockAxis,$=e.onLockAxis;this.target=r=Po(r)||to,this.vars=e,d&&(d=Ks.utils.toArray(d)),t=t||1e-9,i=i||0,u=u||1,B=B||1,n=n||"wheel,touch,pointer",o=!1!==o,s||(s=parseFloat(Qs.getComputedStyle(io).lineHeight)||22);var q,Y,X,V,G,W,U,Z=this,K=0,J=0,Q=Oo(r,Co),ee=Oo(r,Mo),te=Q(),ie=ee(),ne=~n.indexOf("touch")&&!~n.indexOf("pointer")&&"pointerdown"===lo[0],re=yo(r),se=r.ownerDocument||eo,oe=[0,0,0],ae=[0,0,0],le=0,ce=function(){return le=go()},de=function(e,t){return(Z.event=e)&&d&&~d.indexOf(e.target)||t&&ne&&"touch"!==e.pointerType||k&&k(e,t)},ue=function(){var e=Z.deltaX=Lo(oe),i=Z.deltaY=Lo(ae),n=Math.abs(e)>=t,r=Math.abs(i)>=t;_&&(n||r)&&_(Z,e,i,oe,ae),n&&(b&&Z.deltaX>0&&b(Z),y&&Z.deltaX<0&&y(Z),T&&T(Z),E&&Z.deltaX<0!=K<0&&E(Z),K=Z.deltaX,oe[0]=oe[1]=oe[2]=0),r&&(x&&Z.deltaY>0&&x(Z),w&&Z.deltaY<0&&w(Z),S&&S(Z),C&&Z.deltaY<0!=J<0&&C(Z),J=Z.deltaY,ae[0]=ae[1]=ae[2]=0),(V||X)&&(O&&O(Z),X&&(m(Z),X=!1),V=!1),W&&!(W=!1)&&$&&$(Z),G&&(I(Z),G=!1),q=0},he=function(e,t,i){oe[i]+=e,ae[i]+=t,Z._vx.update(e),Z._vy.update(t),o?q||(q=requestAnimationFrame(ue)):ue()},pe=function(e,t){H&&!U&&(Z.axis=U=Math.abs(e)>Math.abs(t)?"x":"y",W=!0),"y"!==U&&(oe[2]+=e,Z._vx.update(e,!0)),"x"!==U&&(ae[2]+=t,Z._vy.update(t,!0)),o?q||(q=requestAnimationFrame(ue)):ue()},fe=function(e){if(!de(e,1)){var t=(e=Ao(e,a)).clientX,n=e.clientY,r=t-Z.x,s=n-Z.y,o=Z.isDragging;Z.x=t,Z.y=n,(o||Math.abs(Z.startX-t)>=i||Math.abs(Z.startY-n)>=i)&&(m&&(X=!0),o||(Z.isDragging=!0),pe(r,s),o||p&&p(Z))}},me=Z.onPress=function(e){de(e,1)||e&&e.button||(Z.axis=U=null,Y.pause(),Z.isPressed=!0,e=Ao(e),K=J=0,Z.startX=Z.x=e.clientX,Z.startY=Z.y=e.clientY,Z._vx.reset(),Z._vy.reset(),wo(A?r:se,lo[1],fe,a,!0),Z.deltaX=Z.deltaY=0,g&&g(Z))},ge=Z.onRelease=function(e){if(!de(e,1)){xo(A?r:se,lo[1],fe,!0);var t=!isNaN(Z.y-Z.startY),i=Z.isDragging&&(Math.abs(Z.x-Z.startX)>3||Math.abs(Z.y-Z.startY)>3),n=Ao(e);!i&&t&&(Z._vx.reset(),Z._vy.reset(),a&&N&&Ks.delayedCall(.08,(function(){if(go()-le>300&&!e.defaultPrevented)if(e.target.click)e.target.click();else if(se.createEvent){var t=se.createEvent("MouseEvents");t.initMouseEvent("click",!0,!0,Qs,1,n.screenX,n.screenY,n.clientX,n.clientY,!1,!1,!1,!1,0,null),e.target.dispatchEvent(t)}}))),Z.isDragging=Z.isGesturing=Z.isPressed=!1,l&&!A&&Y.restart(!0),f&&i&&f(Z),v&&v(Z,i)}},ve=function(e){return e.touches&&e.touches.length>1&&(Z.isGesturing=!0)&&L(e,Z.isDragging)},be=function(){return(Z.isGesturing=!1)||z(Z)},ye=function(e){if(!de(e)){var t=Q(),i=ee();he((t-te)*B,(i-ie)*B,1),te=t,ie=i,l&&Y.restart(!0)}},we=function(e){if(!de(e)){e=Ao(e,a),I&&(G=!0);var t=(1===e.deltaMode?s:2===e.deltaMode?Qs.innerHeight:1)*u;he(e.deltaX*t,e.deltaY*t,0),l&&!A&&Y.restart(!0)}},xe=function(e){if(!de(e)){var t=e.clientX,i=e.clientY,n=t-Z.x,r=i-Z.y;Z.x=t,Z.y=i,V=!0,(n||r)&&pe(n,r)}},Te=function(e){Z.event=e,M(Z)},Se=function(e){Z.event=e,P(Z)},_e=function(e){return de(e)||Ao(e,a)&&F(Z)};Y=Z._dc=Ks.delayedCall(c||.25,(function(){Z._vx.reset(),Z._vy.reset(),Y.pause(),l&&l(Z)})).pause(),Z.deltaX=Z.deltaY=0,Z._vx=ko(0,50,!0),Z._vy=ko(0,50,!0),Z.scrollX=Q,Z.scrollY=ee,Z.isDragging=Z.isGesturing=Z.isPressed=!1,co(this),Z.enable=function(e){return Z.isEnabled||(wo(re?se:r,"scroll",_o),n.indexOf("scroll")>=0&&wo(re?se:r,"scroll",ye,a,j),n.indexOf("wheel")>=0&&wo(r,"wheel",we,a,j),(n.indexOf("touch")>=0&&no||n.indexOf("pointer")>=0)&&(wo(r,lo[0],me,a,j),wo(se,lo[2],ge),wo(se,lo[3],ge),N&&wo(r,"click",ce,!1,!0),F&&wo(r,"click",_e),L&&wo(se,"gesturestart",ve),z&&wo(se,"gestureend",be),M&&wo(r,ro+"enter",Te),P&&wo(r,ro+"leave",Se),O&&wo(r,ro+"move",xe)),Z.isEnabled=!0,e&&e.type&&me(e),R&&R(Z)),Z},Z.disable=function(){Z.isEnabled&&(po.filter((function(e){return e!==Z&&yo(e.target)})).length||xo(re?se:r,"scroll",_o),Z.isPressed&&(Z._vx.reset(),Z._vy.reset(),xo(A?r:se,lo[1],fe,!0)),xo(re?se:r,"scroll",ye,j),xo(r,"wheel",we,j),xo(r,lo[0],me,j),xo(se,lo[2],ge),xo(se,lo[3],ge),xo(r,"click",ce,!0),xo(r,"click",_e),xo(se,"gesturestart",ve),xo(se,"gestureend",be),xo(r,ro+"enter",Te),xo(r,ro+"leave",Se),xo(r,ro+"move",xe),Z.isEnabled=Z.isPressed=Z.isDragging=!1,D&&D(Z))},Z.kill=Z.revert=function(){Z.disable();var e=po.indexOf(Z);e>=0&&po.splice(e,1),ao===Z&&(ao=0)},po.push(Z),A&&yo(r)&&(ao=Z),Z.enable(h)},t=e,(i=[{key:"velocityX",get:function(){return this._vx.getVelocity()}},{key:"velocityY",get:function(){return this._vy.getVelocity()}}])&&Zs(t.prototype,i),e}();Ro.version="3.12.2",Ro.create=function(e){return new Ro(e)},Ro.register=Io,Ro.getAll=function(){return po.slice()},Ro.getById=function(e){return po.filter((function(t){return t.vars.id===e}))[0]},uo()&&Ks.registerPlugin(Ro);var Do,Fo,Bo,jo,No,Ho,$o,qo,Yo,Xo,Vo,Go,Wo,Uo,Zo,Ko,Jo,Qo,ea,ta,ia,na,ra,sa,oa,aa,la,ca,da,ua,ha,pa,fa,ma,ga,va,ba=1,ya=Date.now,wa=ya(),xa=0,Ta=0,Sa=function(e,t,i){var n=Fa(e)&&("clamp("===e.substr(0,6)||e.indexOf("max")>-1);return i["_"+t+"Clamp"]=n,n?e.substr(6,e.length-7):e},_a=function(e,t){return!t||Fa(e)&&"clamp("===e.substr(0,6)?e:"clamp("+e+")"},Ea=function e(){return Ta&&requestAnimationFrame(e)},Ca=function(){return Uo=1},Ma=function(){return Uo=0},Pa=function(e){return e},Oa=function(e){return Math.round(1e5*e)/1e5||0},ka=function(){return"undefined"!=typeof window},Aa=function(){return Do||ka()&&(Do=window.gsap)&&Do.registerPlugin&&Do},La=function(e){return!!~$o.indexOf(e)},za=function(e){return("Height"===e?ha:Bo["inner"+e])||No["client"+e]||Ho["client"+e]},Ia=function(e){return bo(e,"getBoundingClientRect")||(La(e)?function(){return Vl.width=Bo.innerWidth,Vl.height=ha,Vl}:function(){return ol(e)})},Ra=function(e,t){var i=t.s,n=t.d2,r=t.d,s=t.a;return Math.max(0,(i="scroll"+n)&&(s=bo(e,i))?s()-Ia(e)()[r]:La(e)?(No[i]||Ho[i])-za(n):e[i]-e["offset"+n])},Da=function(e,t){for(var i=0;i<ea.length;i+=3)(!t||~t.indexOf(ea[i+1]))&&e(ea[i],ea[i+1],ea[i+2])},Fa=function(e){return"string"==typeof e},Ba=function(e){return"function"==typeof e},ja=function(e){return"number"==typeof e},Na=function(e){return"object"==typeof e},Ha=function(e,t,i){return e&&e.progress(t?0:1)&&i&&e.pause()},$a=function(e,t){if(e.enabled){var i=t(e);i&&i.totalTime&&(e.callbackAnimation=i)}},qa=Math.abs,Ya="left",Xa="right",Va="bottom",Ga="width",Wa="height",Ua="Right",Za="Left",Ka="Top",Ja="Bottom",Qa="padding",el="margin",tl="Width",il="Height",nl="px",rl=function(e){return Bo.getComputedStyle(e)},sl=function(e,t){for(var i in t)i in e||(e[i]=t[i]);return e},ol=function(e,t){var i=t&&"matrix(1, 0, 0, 1, 0, 0)"!==rl(e)[Zo]&&Do.to(e,{x:0,y:0,xPercent:0,yPercent:0,rotation:0,rotationX:0,rotationY:0,scale:1,skewX:0,skewY:0}).progress(1),n=e.getBoundingClientRect();return i&&i.progress(0).kill(),n},al=function(e,t){var i=t.d2;return e["offset"+i]||e["client"+i]||0},ll=function(e){var t,i=[],n=e.labels,r=e.duration();for(t in n)i.push(n[t]/r);return i},cl=function(e){var t=Do.utils.snap(e),i=Array.isArray(e)&&e.slice(0).sort((function(e,t){return e-t}));return i?function(e,n,r){var s;if(void 0===r&&(r=.001),!n)return t(e);if(n>0){for(e-=r,s=0;s<i.length;s++)if(i[s]>=e)return i[s];return i[s-1]}for(s=i.length,e+=r;s--;)if(i[s]<=e)return i[s];return i[0]}:function(i,n,r){void 0===r&&(r=.001);var s=t(i);return!n||Math.abs(s-i)<r||s-i<0==n<0?s:t(n<0?i-e:i+e)}},dl=function(e,t,i,n){return i.split(",").forEach((function(i){return e(t,i,n)}))},ul=function(e,t,i,n,r){return e.addEventListener(t,i,{passive:!n,capture:!!r})},hl=function(e,t,i,n){return e.removeEventListener(t,i,!!n)},pl=function(e,t,i){(i=i&&i.wheelHandler)&&(e(t,"wheel",i),e(t,"touchmove",i))},fl={startColor:"green",endColor:"red",indent:0,fontSize:"16px",fontWeight:"normal"},ml={toggleActions:"play",anticipatePin:0},gl={top:0,left:0,center:.5,bottom:1,right:1},vl=function(e,t){if(Fa(e)){var i=e.indexOf("="),n=~i?+(e.charAt(i-1)+1)*parseFloat(e.substr(i+1)):0;~i&&(e.indexOf("%")>i&&(n*=t/100),e=e.substr(0,i-1)),e=n+(e in gl?gl[e]*t:~e.indexOf("%")?parseFloat(e)*t/100:parseFloat(e)||0)}return e},bl=function(e,t,i,n,r,s,o,a){var l=r.startColor,c=r.endColor,d=r.fontSize,u=r.indent,h=r.fontWeight,p=jo.createElement("div"),f=La(i)||"fixed"===bo(i,"pinType"),m=-1!==e.indexOf("scroller"),g=f?Ho:i,v=-1!==e.indexOf("start"),b=v?l:c,y="border-color:"+b+";font-size:"+d+";color:"+b+";font-weight:"+h+";pointer-events:none;white-space:nowrap;font-family:sans-serif,Arial;z-index:1000;padding:4px 8px;border-width:0;border-style:solid;";return y+="position:"+((m||a)&&f?"fixed;":"absolute;"),(m||a||!f)&&(y+=(n===Mo?Xa:Va)+":"+(s+parseFloat(u))+"px;"),o&&(y+="box-sizing:border-box;text-align:left;width:"+o.offsetWidth+"px;"),p._isStart=v,p.setAttribute("class","gsap-marker-"+e+(t?" marker-"+t:"")),p.style.cssText=y,p.innerText=t||0===t?e+"-"+t:e,g.children[0]?g.insertBefore(p,g.children[0]):g.appendChild(p),p._offset=p["offset"+n.op.d2],yl(p,0,n,v),p},yl=function(e,t,i,n){var r={display:"block"},s=i[n?"os2":"p2"],o=i[n?"p2":"os2"];e._isFlipped=n,r[i.a+"Percent"]=n?-100:0,r[i.a]=n?"1px":0,r["border"+s+tl]=1,r["border"+o+tl]=0,r[i.p]=t+"px",Do.set(e,r)},wl=[],xl={},Tl=function(){return ya()-xa>34&&(fa||(fa=requestAnimationFrame(jl)))},Sl=function(){(!ra||!ra.isPressed||ra.startX>Ho.clientWidth)&&(fo.cache++,ra?fa||(fa=requestAnimationFrame(jl)):jl(),xa||Ol("scrollStart"),xa=ya())},_l=function(){aa=Bo.innerWidth,oa=Bo.innerHeight},El=function(){fo.cache++,!Wo&&!na&&!jo.fullscreenElement&&!jo.webkitFullscreenElement&&(!sa||aa!==Bo.innerWidth||Math.abs(Bo.innerHeight-oa)>.25*Bo.innerHeight)&&qo.restart(!0)},Cl={},Ml=[],Pl=function e(){return hl(Ql,"scrollEnd",e)||Dl(!0)},Ol=function(e){return Cl[e]&&Cl[e].map((function(e){return e()}))||Ml},kl=[],Al=function(e){for(var t=0;t<kl.length;t+=5)(!e||kl[t+4]&&kl[t+4].query===e)&&(kl[t].style.cssText=kl[t+1],kl[t].getBBox&&kl[t].setAttribute("transform",kl[t+2]||""),kl[t+3].uncache=1)},Ll=function(e,t){var i;for(Ko=0;Ko<wl.length;Ko++)!(i=wl[Ko])||t&&i._ctx!==t||(e?i.kill(1):i.revert(!0,!0));t&&Al(t),t||Ol("revert")},zl=function(e,t){fo.cache++,(t||!ma)&&fo.forEach((function(e){return Ba(e)&&e.cacheID++&&(e.rec=0)})),Fa(e)&&(Bo.history.scrollRestoration=da=e)},Il=0,Rl=function(){Ho.appendChild(ua),ha=ua.offsetHeight||Bo.innerHeight,Ho.removeChild(ua)},Dl=function(e,t){if(!xa||e){Rl(),ma=Ql.isRefreshing=!0,fo.forEach((function(e){return Ba(e)&&++e.cacheID&&(e.rec=e())}));var i=Ol("refreshInit");ta&&Ql.sort(),t||Ll(),fo.forEach((function(e){Ba(e)&&(e.smooth&&(e.target.style.scrollBehavior="auto"),e(0))})),wl.slice(0).forEach((function(e){return e.refresh()})),wl.forEach((function(e,t){if(e._subPinOffset&&e.pin){var i=e.vars.horizontal?"offsetWidth":"offsetHeight",n=e.pin[i];e.revert(!0,1),e.adjustPinSpacing(e.pin[i]-n),e.refresh()}})),wl.forEach((function(e){var t=Ra(e.scroller,e._dir);("max"===e.vars.end||e._endClamp&&e.end>t)&&e.setPositions(e.start,Math.max(e.start+1,t),!0)})),i.forEach((function(e){return e&&e.render&&e.render(-1)})),fo.forEach((function(e){Ba(e)&&(e.smooth&&requestAnimationFrame((function(){return e.target.style.scrollBehavior="smooth"})),e.rec&&e(e.rec))})),zl(da,1),qo.pause(),Il++,ma=2,jl(2),wl.forEach((function(e){return Ba(e.vars.onRefresh)&&e.vars.onRefresh(e)})),ma=Ql.isRefreshing=!1,Ol("refresh")}else ul(Ql,"scrollEnd",Pl)},Fl=0,Bl=1,jl=function(e){if(!ma||2===e){Ql.isUpdating=!0,va&&va.update(0);var t=wl.length,i=ya(),n=i-wa>=50,r=t&&wl[0].scroll();if(Bl=Fl>r?-1:1,ma||(Fl=r),n&&(xa&&!Uo&&i-xa>200&&(xa=0,Ol("scrollEnd")),Vo=wa,wa=i),Bl<0){for(Ko=t;Ko-- >0;)wl[Ko]&&wl[Ko].update(0,n);Bl=1}else for(Ko=0;Ko<t;Ko++)wl[Ko]&&wl[Ko].update(0,n);Ql.isUpdating=!1}fa=0},Nl=[Ya,"top",Va,Xa,el+Ja,el+Ua,el+Ka,el+Za,"display","flexShrink","float","zIndex","gridColumnStart","gridColumnEnd","gridRowStart","gridRowEnd","gridArea","justifySelf","alignSelf","placeSelf","order"],Hl=Nl.concat([Ga,Wa,"boxSizing","max"+tl,"max"+il,"position",el,Qa,Qa+Ka,Qa+Ua,Qa+Ja,Qa+Za]),$l=function(e,t,i,n){if(!e._gsap.swappedIn){for(var r,s=Nl.length,o=t.style,a=e.style;s--;)o[r=Nl[s]]=i[r];o.position="absolute"===i.position?"absolute":"relative","inline"===i.display&&(o.display="inline-block"),a[Va]=a[Xa]="auto",o.flexBasis=i.flexBasis||"auto",o.overflow="visible",o.boxSizing="border-box",o[Ga]=al(e,Co)+nl,o[Wa]=al(e,Mo)+nl,o[Qa]=a[el]=a.top=a[Ya]="0",Yl(n),a[Ga]=a["max"+tl]=i[Ga],a[Wa]=a["max"+il]=i[Wa],a[Qa]=i[Qa],e.parentNode!==t&&(e.parentNode.insertBefore(t,e),t.appendChild(e)),e._gsap.swappedIn=!0}},ql=/([A-Z])/g,Yl=function(e){if(e){var t,i,n=e.t.style,r=e.length,s=0;for((e.t._gsap||Do.core.getCache(e.t)).uncache=1;s<r;s+=2)i=e[s+1],t=e[s],i?n[t]=i:n[t]&&n.removeProperty(t.replace(ql,"-$1").toLowerCase())}},Xl=function(e){for(var t=Hl.length,i=e.style,n=[],r=0;r<t;r++)n.push(Hl[r],i[Hl[r]]);return n.t=e,n},Vl={left:0,top:0},Gl=function(e,t,i,n,r,s,o,a,l,c,d,u,h,p){Ba(e)&&(e=e(a)),Fa(e)&&"max"===e.substr(0,3)&&(e=u+("="===e.charAt(4)?vl("0"+e.substr(3),i):0));var f,m,g,v=h?h.time():0;if(h&&h.seek(0),isNaN(e)||(e=+e),ja(e))h&&(e=Do.utils.mapRange(h.scrollTrigger.start,h.scrollTrigger.end,0,u,e)),o&&yl(o,i,n,!0);else{Ba(t)&&(t=t(a));var b,y,w,x,T=(e||"0").split(" ");g=Po(t,a)||Ho,(b=ol(g)||{})&&(b.left||b.top)||"none"!==rl(g).display||(x=g.style.display,g.style.display="block",b=ol(g),x?g.style.display=x:g.style.removeProperty("display")),y=vl(T[0],b[n.d]),w=vl(T[1]||"0",i),e=b[n.p]-l[n.p]-c+y+r-w,o&&yl(o,w,n,i-w<20||o._isStart&&w>20),i-=i-w}if(p&&(a[p]=e||-.001,e<0&&(e=0)),s){var S=e+i,_=s._isStart;f="scroll"+n.d2,yl(s,S,n,_&&S>20||!_&&(d?Math.max(Ho[f],No[f]):s.parentNode[f])<=S+1),d&&(l=ol(o),d&&(s.style[n.op.p]=l[n.op.p]-n.op.m-s._offset+nl))}return h&&g&&(f=ol(g),h.seek(u),m=ol(g),h._caScrollDist=f[n.p]-m[n.p],e=e/h._caScrollDist*u),h&&h.seek(v),h?e:Math.round(e)},Wl=/(webkit|moz|length|cssText|inset)/i,Ul=function(e,t,i,n){if(e.parentNode!==t){var r,s,o=e.style;if(t===Ho){for(r in e._stOrig=o.cssText,s=rl(e))+r||Wl.test(r)||!s[r]||"string"!=typeof o[r]||"0"===r||(o[r]=s[r]);o.top=i,o.left=n}else o.cssText=e._stOrig;Do.core.getCache(e).uncache=1,t.appendChild(e)}},Zl=function(e,t,i){var n=t,r=n;return function(t){var s=Math.round(e());return s!==n&&s!==r&&Math.abs(s-n)>3&&Math.abs(s-r)>3&&(t=s,i&&i()),r=n,n=t,t}},Kl=function(e,t,i){var n={};n[t.p]="+="+i,Do.set(e,n)},Jl=function(e,t){var i=Oo(e,t),n="_scroll"+t.p2,r=function t(r,s,o,a,l){var c=t.tween,d=s.onComplete,u={};o=o||i();var h=Zl(i,o,(function(){c.kill(),t.tween=0}));return l=a&&l||0,a=a||r-o,c&&c.kill(),s[n]=r,s.modifiers=u,u[n]=function(){return h(o+a*c.ratio+l*c.ratio*c.ratio)},s.onUpdate=function(){fo.cache++,jl()},s.onComplete=function(){t.tween=0,d&&d.call(c)},c=t.tween=Do.to(e,s)};return e[n]=i,i.wheelHandler=function(){return r.tween&&r.tween.kill()&&(r.tween=0)},ul(e,"wheel",i.wheelHandler),Ql.isTouch&&ul(e,"touchmove",i.wheelHandler),r},Ql=function(){function e(t,i){Fo||e.register(Do)||console.warn("Please gsap.registerPlugin(ScrollTrigger)"),ca(this),this.init(t,i)}return e.prototype.init=function(t,i){if(this.progress=this.start=0,this.vars&&this.kill(!0,!0),Ta){var n,r,s,o,a,l,c,d,u,h,p,f,m,g,v,b,y,w,x,T,S,_,E,C,M,P,O,k,A,L,z,I,R,D,F,B,j,N,H,$,q,Y,X=t=sl(Fa(t)||ja(t)||t.nodeType?{trigger:t}:t,ml),V=X.onUpdate,G=X.toggleClass,W=X.id,U=X.onToggle,Z=X.onRefresh,K=X.scrub,J=X.trigger,Q=X.pin,ee=X.pinSpacing,te=X.invalidateOnRefresh,ie=X.anticipatePin,ne=X.onScrubComplete,re=X.onSnapComplete,se=X.once,oe=X.snap,ae=X.pinReparent,le=X.pinSpacer,ce=X.containerAnimation,de=X.fastScrollEnd,ue=X.preventOverlaps,he=t.horizontal||t.containerAnimation&&!1!==t.horizontal?Co:Mo,pe=!K&&0!==K,fe=Po(t.scroller||Bo),me=Do.core.getCache(fe),ge=La(fe),ve="fixed"===("pinType"in t?t.pinType:bo(fe,"pinType")||ge&&"fixed"),be=[t.onEnter,t.onLeave,t.onEnterBack,t.onLeaveBack],ye=pe&&t.toggleActions.split(" "),we="markers"in t?t.markers:ml.markers,xe=ge?0:parseFloat(rl(fe)["border"+he.p2+tl])||0,Te=this,Se=t.onRefreshInit&&function(){return t.onRefreshInit(Te)},_e=function(e,t,i){var n=i.d,r=i.d2,s=i.a;return(s=bo(e,"getBoundingClientRect"))?function(){return s()[n]}:function(){return(t?za(r):e["client"+r])||0}}(fe,ge,he),Ee=function(e,t){return!t||~mo.indexOf(e)?Ia(e):function(){return Vl}}(fe,ge),Ce=0,Me=0,Pe=0,Oe=Oo(fe,he);if(Te._startClamp=Te._endClamp=!1,Te._dir=he,ie*=45,Te.scroller=fe,Te.scroll=ce?ce.time.bind(ce):Oe,o=Oe(),Te.vars=t,i=i||t.animation,"refreshPriority"in t&&(ta=1,-9999===t.refreshPriority&&(va=Te)),me.tweenScroll=me.tweenScroll||{top:Jl(fe,Mo),left:Jl(fe,Co)},Te.tweenTo=n=me.tweenScroll[he.p],Te.scrubDuration=function(e){(R=ja(e)&&e)?I?I.duration(e):I=Do.to(i,{ease:"expo",totalProgress:"+=0",duration:R,paused:!0,onComplete:function(){return ne&&ne(Te)}}):(I&&I.progress(1).kill(),I=0)},i&&(i.vars.lazy=!1,i._initted&&!Te.isReverted||!1!==i.vars.immediateRender&&!1!==t.immediateRender&&i.duration()&&i.render(0,!0,!0),Te.animation=i.pause(),i.scrollTrigger=Te,Te.scrubDuration(K),L=0,W||(W=i.vars.id)),oe&&(Na(oe)&&!oe.push||(oe={snapTo:oe}),"scrollBehavior"in Ho.style&&Do.set(ge?[Ho,No]:fe,{scrollBehavior:"auto"}),fo.forEach((function(e){return Ba(e)&&e.target===(ge?jo.scrollingElement||No:fe)&&(e.smooth=!1)})),s=Ba(oe.snapTo)?oe.snapTo:"labels"===oe.snapTo?function(e){return function(t){return Do.utils.snap(ll(e),t)}}(i):"labelsDirectional"===oe.snapTo?($=i,function(e,t){return cl(ll($))(e,t.direction)}):!1!==oe.directional?function(e,t){return cl(oe.snapTo)(e,ya()-Me<500?0:t.direction)}:Do.utils.snap(oe.snapTo),D=oe.duration||{min:.1,max:2},D=Na(D)?Xo(D.min,D.max):Xo(D,D),F=Do.delayedCall(oe.delay||R/2||.1,(function(){var e=Oe(),t=ya()-Me<500,r=n.tween;if(!(t||Math.abs(Te.getVelocity())<10)||r||Uo||Ce===e)Te.isActive&&Ce!==e&&F.restart(!0);else{var o=(e-l)/g,a=i&&!pe?i.totalProgress():o,d=t?0:(a-z)/(ya()-Vo)*1e3||0,u=Do.utils.clamp(-o,1-o,qa(d/2)*d/.185),h=o+(!1===oe.inertia?0:u),p=Xo(0,1,s(h,Te)),f=Math.round(l+p*g),m=oe,v=m.onStart,b=m.onInterrupt,y=m.onComplete;if(e<=c&&e>=l&&f!==e){if(r&&!r._initted&&r.data<=qa(f-e))return;!1===oe.inertia&&(u=p-o),n(f,{duration:D(qa(.185*Math.max(qa(h-a),qa(p-a))/d/.05||0)),ease:oe.ease||"power3",data:qa(f-e),onInterrupt:function(){return F.restart(!0)&&b&&b(Te)},onComplete:function(){Te.update(),Ce=Oe(),L=z=i&&!pe?i.totalProgress():Te.progress,re&&re(Te),y&&y(Te)}},e,u*g,f-e-u*g),v&&v(Te,n.tween)}}})).pause()),W&&(xl[W]=Te),(H=(J=Te.trigger=Po(J||!0!==Q&&Q))&&J._gsap&&J._gsap.stRevert)&&(H=H(Te)),Q=!0===Q?J:Po(Q),Fa(G)&&(G={targets:J,className:G}),Q&&(!1===ee||ee===el||(ee=!(!ee&&Q.parentNode&&Q.parentNode.style&&"flex"===rl(Q.parentNode).display)&&Qa),Te.pin=Q,(r=Do.core.getCache(Q)).spacer?v=r.pinState:(le&&((le=Po(le))&&!le.nodeType&&(le=le.current||le.nativeElement),r.spacerIsNative=!!le,le&&(r.spacerState=Xl(le))),r.spacer=w=le||jo.createElement("div"),w.classList.add("pin-spacer"),W&&w.classList.add("pin-spacer-"+W),r.pinState=v=Xl(Q)),!1!==t.force3D&&Do.set(Q,{force3D:!0}),Te.spacer=w=r.spacer,A=rl(Q),C=A[ee+he.os2],T=Do.getProperty(Q),S=Do.quickSetter(Q,he.a,nl),$l(Q,w,A),y=Xl(Q)),we){f=Na(we)?sl(we,fl):fl,h=bl("scroller-start",W,fe,he,f,0),p=bl("scroller-end",W,fe,he,f,0,h),x=h["offset"+he.op.d2];var ke=Po(bo(fe,"content")||fe);d=this.markerStart=bl("start",W,ke,he,f,x,0,ce),u=this.markerEnd=bl("end",W,ke,he,f,x,0,ce),ce&&(N=Do.quickSetter([d,u],he.a,nl)),ve||mo.length&&!0===bo(fe,"fixedMarkers")||(Y=rl(q=ge?Ho:fe).position,q.style.position="absolute"===Y||"fixed"===Y?Y:"relative",Do.set([h,p],{force3D:!0}),P=Do.quickSetter(h,he.a,nl),k=Do.quickSetter(p,he.a,nl))}if(ce){var Ae=ce.vars.onUpdate,Le=ce.vars.onUpdateParams;ce.eventCallback("onUpdate",(function(){Te.update(0,0,1),Ae&&Ae.apply(ce,Le||[])}))}if(Te.previous=function(){return wl[wl.indexOf(Te)-1]},Te.next=function(){return wl[wl.indexOf(Te)+1]},Te.revert=function(e,t){if(!t)return Te.kill(!0);var n=!1!==e||!Te.enabled,r=Wo;n!==Te.isReverted&&(n&&(B=Math.max(Oe(),Te.scroll.rec||0),Pe=Te.progress,j=i&&i.progress()),d&&[d,u,h,p].forEach((function(e){return e.style.display=n?"none":"block"})),n&&(Wo=Te,Te.update(n)),!Q||ae&&Te.isActive||(n?function(e,t,i){Yl(i);var n=e._gsap;if(n.spacerIsNative)Yl(n.spacerState);else if(e._gsap.swappedIn){var r=t.parentNode;r&&(r.insertBefore(e,t),r.removeChild(t))}e._gsap.swappedIn=!1}(Q,w,v):$l(Q,w,rl(Q),M)),n||Te.update(n),Wo=r,Te.isReverted=n)},Te.refresh=function(r,s,f,x){if(!Wo&&Te.enabled||s)if(Q&&r&&xa)ul(e,"scrollEnd",Pl);else{!ma&&Se&&Se(Te),Wo=Te,n.tween&&!f&&(n.tween.kill(),n.tween=0),I&&I.pause(),te&&i&&i.revert({kill:!1}).invalidate(),Te.isReverted||Te.revert(!0,!0),Te._subPinOffset=!1;var S,C,P,k,A,L,z,R,D,N,H,$,q,Y=_e(),X=Ee(),V=ce?ce.duration():Ra(fe,he),G=g<=.01,W=0,U=x||0,K=Na(f)?f.end:t.end,ie=t.endTrigger||J,ne=Na(f)?f.start:t.start||(0!==t.start&&J?Q?"0 0":"0 100%":0),re=Te.pinnedContainer=t.pinnedContainer&&Po(t.pinnedContainer,Te),se=J&&Math.max(0,wl.indexOf(Te))||0,oe=se;for(we&&Na(f)&&($=Do.getProperty(h,he.p),q=Do.getProperty(p,he.p));oe--;)(L=wl[oe]).end||L.refresh(0,1)||(Wo=Te),!(z=L.pin)||z!==J&&z!==Q&&z!==re||L.isReverted||(N||(N=[]),N.unshift(L),L.revert(!0,!0)),L!==wl[oe]&&(se--,oe--);for(Ba(ne)&&(ne=ne(Te)),ne=Sa(ne,"start",Te),l=Gl(ne,J,Y,he,Oe(),d,h,Te,X,xe,ve,V,ce,Te._startClamp&&"_startClamp")||(Q?-.001:0),Ba(K)&&(K=K(Te)),Fa(K)&&!K.indexOf("+=")&&(~K.indexOf(" ")?K=(Fa(ne)?ne.split(" ")[0]:"")+K:(W=vl(K.substr(2),Y),K=Fa(ne)?ne:(ce?Do.utils.mapRange(0,ce.duration(),ce.scrollTrigger.start,ce.scrollTrigger.end,l):l)+W,ie=J)),K=Sa(K,"end",Te),c=Math.max(l,Gl(K||(ie?"100% 0":V),ie,Y,he,Oe()+W,u,p,Te,X,xe,ve,V,ce,Te._endClamp&&"_endClamp"))||-.001,W=0,oe=se;oe--;)(z=(L=wl[oe]).pin)&&L.start-L._pinPush<=l&&!ce&&L.end>0&&(S=L.end-(Te._startClamp?Math.max(0,L.start):L.start),(z===J&&L.start-L._pinPush<l||z===re)&&isNaN(ne)&&(W+=S*(1-L.progress)),z===Q&&(U+=S));if(l+=W,c+=W,Te._startClamp&&(Te._startClamp+=W),Te._endClamp&&!ma&&(Te._endClamp=c||-.001,c=Math.min(c,Ra(fe,he))),g=c-l||(l-=.01)&&.001,G&&(Pe=Do.utils.clamp(0,1,Do.utils.normalize(l,c,B))),Te._pinPush=U,d&&W&&((S={})[he.a]="+="+W,re&&(S[he.p]="-="+Oe()),Do.set([d,u],S)),Q)S=rl(Q),k=he===Mo,P=Oe(),_=parseFloat(T(he.a))+U,!V&&c>1&&(H={style:H=(ge?jo.scrollingElement||No:fe).style,value:H["overflow"+he.a.toUpperCase()]},ge&&"scroll"!==rl(Ho)["overflow"+he.a.toUpperCase()]&&(H.style["overflow"+he.a.toUpperCase()]="scroll")),$l(Q,w,S),y=Xl(Q),C=ol(Q,!0),R=ve&&Oo(fe,k?Co:Mo)(),ee&&((M=[ee+he.os2,g+U+nl]).t=w,(oe=ee===Qa?al(Q,he)+g+U:0)&&M.push(he.d,oe+nl),Yl(M),re&&wl.forEach((function(e){e.pin===re&&!1!==e.vars.pinSpacing&&(e._subPinOffset=!0)})),ve&&Oe(B)),ve&&((A={top:C.top+(k?P-l:R)+nl,left:C.left+(k?R:P-l)+nl,boxSizing:"border-box",position:"fixed"})[Ga]=A["max"+tl]=Math.ceil(C.width)+nl,A[Wa]=A["max"+il]=Math.ceil(C.height)+nl,A[el]=A[el+Ka]=A[el+Ua]=A[el+Ja]=A[el+Za]="0",A[Qa]=S[Qa],A[Qa+Ka]=S[Qa+Ka],A[Qa+Ua]=S[Qa+Ua],A[Qa+Ja]=S[Qa+Ja],A[Qa+Za]=S[Qa+Za],b=function(e,t,i){for(var n,r=[],s=e.length,o=i?8:0;o<s;o+=2)n=e[o],r.push(n,n in t?t[n]:e[o+1]);return r.t=e.t,r}(v,A,ae),ma&&Oe(0)),i?(D=i._initted,ia(1),i.render(i.duration(),!0,!0),E=T(he.a)-_+g+U,O=Math.abs(g-E)>1,ve&&O&&b.splice(b.length-2,2),i.render(0,!0,!0),D||i.invalidate(!0),i.parent||i.totalTime(i.totalTime()),ia(0)):E=g,H&&(H.value?H.style["overflow"+he.a.toUpperCase()]=H.value:H.style.removeProperty("overflow-"+he.a));else if(J&&Oe()&&!ce)for(C=J.parentNode;C&&C!==Ho;)C._pinOffset&&(l-=C._pinOffset,c-=C._pinOffset),C=C.parentNode;N&&N.forEach((function(e){return e.revert(!1,!0)})),Te.start=l,Te.end=c,o=a=ma?B:Oe(),ce||ma||(o<B&&Oe(B),Te.scroll.rec=0),Te.revert(!1,!0),Me=ya(),F&&(Ce=-1,F.restart(!0)),Wo=0,i&&pe&&(i._initted||j)&&i.progress()!==j&&i.progress(j||0,!0).render(i.time(),!0,!0),(G||Pe!==Te.progress||ce)&&(i&&!pe&&i.totalProgress(ce&&l<-.001&&!Pe?Do.utils.normalize(l,c,0):Pe,!0),Te.progress=G||(o-l)/g===Pe?0:Pe),Q&&ee&&(w._pinOffset=Math.round(Te.progress*E)),I&&I.invalidate(),isNaN($)||($-=Do.getProperty(h,he.p),q-=Do.getProperty(p,he.p),Kl(h,he,$),Kl(d,he,$-(x||0)),Kl(p,he,q),Kl(u,he,q-(x||0))),G&&!ma&&Te.update(),!Z||ma||m||(m=!0,Z(Te),m=!1)}},Te.getVelocity=function(){return(Oe()-a)/(ya()-Vo)*1e3||0},Te.endAnimation=function(){Ha(Te.callbackAnimation),i&&(I?I.progress(1):i.paused()?pe||Ha(i,Te.direction<0,1):Ha(i,i.reversed()))},Te.labelToScroll=function(e){return i&&i.labels&&(l||Te.refresh()||l)+i.labels[e]/i.duration()*g||0},Te.getTrailing=function(e){var t=wl.indexOf(Te),i=Te.direction>0?wl.slice(0,t).reverse():wl.slice(t+1);return(Fa(e)?i.filter((function(t){return t.vars.preventOverlaps===e})):i).filter((function(e){return Te.direction>0?e.end<=l:e.start>=c}))},Te.update=function(e,t,r){if(!ce||r||e){var s,d,u,p,f,m,v,x=!0===ma?B:Te.scroll(),T=e?0:(x-l)/g,M=T<0?0:T>1?1:T||0,A=Te.progress;if(t&&(a=o,o=ce?Oe():x,oe&&(z=L,L=i&&!pe?i.totalProgress():M)),ie&&!M&&Q&&!Wo&&!ba&&xa&&l<x+(x-a)/(ya()-Vo)*ie&&(M=1e-4),M!==A&&Te.enabled){if(p=(f=(s=Te.isActive=!!M&&M<1)!=(!!A&&A<1))||!!M!=!!A,Te.direction=M>A?1:-1,Te.progress=M,p&&!Wo&&(d=M&&!A?0:1===M?1:1===A?2:3,pe&&(u=!f&&"none"!==ye[d+1]&&ye[d+1]||ye[d],v=i&&("complete"===u||"reset"===u||u in i))),ue&&(f||v)&&(v||K||!i)&&(Ba(ue)?ue(Te):Te.getTrailing(ue).forEach((function(e){return e.endAnimation()}))),pe||(!I||Wo||ba?i&&i.totalProgress(M,!(!Wo||!Me&&!e)):(I._dp._time-I._start!==I._time&&I.render(I._dp._time-I._start),I.resetTo?I.resetTo("totalProgress",M,i._tTime/i._tDur):(I.vars.totalProgress=M,I.invalidate().restart()))),Q)if(e&&ee&&(w.style[ee+he.os2]=C),ve){if(p){if(m=!e&&M>A&&c+1>x&&x+1>=Ra(fe,he),ae)if(e||!s&&!m)Ul(Q,w);else{var R=ol(Q,!0),D=x-l;Ul(Q,Ho,R.top+(he===Mo?D:0)+nl,R.left+(he===Mo?0:D)+nl)}Yl(s||m?b:y),O&&M<1&&s||S(_+(1!==M||m?0:E))}}else S(Oa(_+E*M));oe&&!n.tween&&!Wo&&!ba&&F.restart(!0),G&&(f||se&&M&&(M<1||!pa))&&Yo(G.targets).forEach((function(e){return e.classList[s||se?"add":"remove"](G.className)})),V&&!pe&&!e&&V(Te),p&&!Wo?(pe&&(v&&("complete"===u?i.pause().totalProgress(1):"reset"===u?i.restart(!0).pause():"restart"===u?i.restart(!0):i[u]()),V&&V(Te)),!f&&pa||(U&&f&&$a(Te,U),be[d]&&$a(Te,be[d]),se&&(1===M?Te.kill(!1,1):be[d]=0),f||be[d=1===M?1:3]&&$a(Te,be[d])),de&&!s&&Math.abs(Te.getVelocity())>(ja(de)?de:2500)&&(Ha(Te.callbackAnimation),I?I.progress(1):Ha(i,"reverse"===u?1:!M,1))):pe&&V&&!Wo&&V(Te)}if(k){var j=ce?x/ce.duration()*(ce._caScrollDist||0):x;P(j+(h._isFlipped?1:0)),k(j)}N&&N(-x/ce.duration()*(ce._caScrollDist||0))}},Te.enable=function(t,i){Te.enabled||(Te.enabled=!0,ul(fe,"resize",El),ge||ul(fe,"scroll",Sl),Se&&ul(e,"refreshInit",Se),!1!==t&&(Te.progress=Pe=0,o=a=Ce=Oe()),!1!==i&&Te.refresh())},Te.getTween=function(e){return e&&n?n.tween:I},Te.setPositions=function(e,t,i,n){if(ce){var r=ce.scrollTrigger,s=ce.duration(),o=r.end-r.start;e=r.start+o*e/s,t=r.start+o*t/s}Te.refresh(!1,!1,{start:_a(e,i&&!!Te._startClamp),end:_a(t,i&&!!Te._endClamp)},n),Te.update()},Te.adjustPinSpacing=function(e){if(M&&e){var t=M.indexOf(he.d)+1;M[t]=parseFloat(M[t])+e+nl,M[1]=parseFloat(M[1])+e+nl,Yl(M)}},Te.disable=function(t,i){if(Te.enabled&&(!1!==t&&Te.revert(!0,!0),Te.enabled=Te.isActive=!1,i||I&&I.pause(),B=0,r&&(r.uncache=1),Se&&hl(e,"refreshInit",Se),F&&(F.pause(),n.tween&&n.tween.kill()&&(n.tween=0)),!ge)){for(var s=wl.length;s--;)if(wl[s].scroller===fe&&wl[s]!==Te)return;hl(fe,"resize",El),ge||hl(fe,"scroll",Sl)}},Te.kill=function(e,n){Te.disable(e,n),I&&!n&&I.kill(),W&&delete xl[W];var s=wl.indexOf(Te);s>=0&&wl.splice(s,1),s===Ko&&Bl>0&&Ko--,s=0,wl.forEach((function(e){return e.scroller===Te.scroller&&(s=1)})),s||ma||(Te.scroll.rec=0),i&&(i.scrollTrigger=null,e&&i.revert({kill:!1}),n||i.kill()),d&&[d,u,h,p].forEach((function(e){return e.parentNode&&e.parentNode.removeChild(e)})),va===Te&&(va=0),Q&&(r&&(r.uncache=1),s=0,wl.forEach((function(e){return e.pin===Q&&s++})),s||(r.spacer=0)),t.onKill&&t.onKill(Te)},wl.push(Te),Te.enable(!1,!1),H&&H(Te),i&&i.add&&!g){var ze=Te.update;Te.update=function(){Te.update=ze,l||c||Te.refresh()},Do.delayedCall(.01,Te.update),g=.01,l=c=0}else Te.refresh();Q&&function(){if(ga!==Il){var e=ga=Il;requestAnimationFrame((function(){return e===Il&&Dl(!0)}))}}()}else this.update=this.refresh=this.kill=Pa},e.register=function(t){return Fo||(Do=t||Aa(),ka()&&window.document&&e.enable(),Fo=Ta),Fo},e.defaults=function(e){if(e)for(var t in e)ml[t]=e[t];return ml},e.disable=function(e,t){Ta=0,wl.forEach((function(i){return i[t?"kill":"disable"](e)})),hl(Bo,"wheel",Sl),hl(jo,"scroll",Sl),clearInterval(Go),hl(jo,"touchcancel",Pa),hl(Ho,"touchstart",Pa),dl(hl,jo,"pointerdown,touchstart,mousedown",Ca),dl(hl,jo,"pointerup,touchend,mouseup",Ma),qo.kill(),Da(hl);for(var i=0;i<fo.length;i+=3)pl(hl,fo[i],fo[i+1]),pl(hl,fo[i],fo[i+2])},e.enable=function(){if(Bo=window,jo=document,No=jo.documentElement,Ho=jo.body,Do&&(Yo=Do.utils.toArray,Xo=Do.utils.clamp,ca=Do.core.context||Pa,ia=Do.core.suppressOverwrites||Pa,da=Bo.history.scrollRestoration||"auto",Fl=Bo.pageYOffset,Do.core.globals("ScrollTrigger",e),Ho)){Ta=1,(ua=document.createElement("div")).style.height="100vh",ua.style.position="absolute",Rl(),Ea(),Ro.register(Do),e.isTouch=Ro.isTouch,la=Ro.isTouch&&/(iPad|iPhone|iPod|Mac)/g.test(navigator.userAgent),ul(Bo,"wheel",Sl),$o=[Bo,jo,No,Ho],Do.matchMedia?(e.matchMedia=function(e){var t,i=Do.matchMedia();for(t in e)i.add(t,e[t]);return i},Do.addEventListener("matchMediaInit",(function(){return Ll()})),Do.addEventListener("matchMediaRevert",(function(){return Al()})),Do.addEventListener("matchMedia",(function(){Dl(0,1),Ol("matchMedia")})),Do.matchMedia("(orientation: portrait)",(function(){return _l(),_l}))):console.warn("Requires GSAP 3.11.0 or later"),_l(),ul(jo,"scroll",Sl);var t,i,n=Ho.style,r=n.borderTopStyle,s=Do.core.Animation.prototype;for(s.revert||Object.defineProperty(s,"revert",{value:function(){return this.time(-.01,!0)}}),n.borderTopStyle="solid",t=ol(Ho),Mo.m=Math.round(t.top+Mo.sc())||0,Co.m=Math.round(t.left+Co.sc())||0,r?n.borderTopStyle=r:n.removeProperty("border-top-style"),Go=setInterval(Tl,250),Do.delayedCall(.5,(function(){return ba=0})),ul(jo,"touchcancel",Pa),ul(Ho,"touchstart",Pa),dl(ul,jo,"pointerdown,touchstart,mousedown",Ca),dl(ul,jo,"pointerup,touchend,mouseup",Ma),Zo=Do.utils.checkPrefix("transform"),Hl.push(Zo),Fo=ya(),qo=Do.delayedCall(.2,Dl).pause(),ea=[jo,"visibilitychange",function(){var e=Bo.innerWidth,t=Bo.innerHeight;jo.hidden?(Jo=e,Qo=t):Jo===e&&Qo===t||El()},jo,"DOMContentLoaded",Dl,Bo,"load",Dl,Bo,"resize",El],Da(ul),wl.forEach((function(e){return e.enable(0,1)})),i=0;i<fo.length;i+=3)pl(hl,fo[i],fo[i+1]),pl(hl,fo[i],fo[i+2])}},e.config=function(t){"limitCallbacks"in t&&(pa=!!t.limitCallbacks);var i=t.syncInterval;i&&clearInterval(Go)||(Go=i)&&setInterval(Tl,i),"ignoreMobileResize"in t&&(sa=1===e.isTouch&&t.ignoreMobileResize),"autoRefreshEvents"in t&&(Da(hl)||Da(ul,t.autoRefreshEvents||"none"),na=-1===(t.autoRefreshEvents+"").indexOf("resize"))},e.scrollerProxy=function(e,t){var i=Po(e),n=fo.indexOf(i),r=La(i);~n&&fo.splice(n,r?6:2),t&&(r?mo.unshift(Bo,t,Ho,t,No,t):mo.unshift(i,t))},e.clearMatchMedia=function(e){wl.forEach((function(t){return t._ctx&&t._ctx.query===e&&t._ctx.kill(!0,!0)}))},e.isInViewport=function(e,t,i){var n=(Fa(e)?Po(e):e).getBoundingClientRect(),r=n[i?Ga:Wa]*t||0;return i?n.right-r>0&&n.left+r<Bo.innerWidth:n.bottom-r>0&&n.top+r<Bo.innerHeight},e.positionInViewport=function(e,t,i){Fa(e)&&(e=Po(e));var n=e.getBoundingClientRect(),r=n[i?Ga:Wa],s=null==t?r/2:t in gl?gl[t]*r:~t.indexOf("%")?parseFloat(t)*r/100:parseFloat(t)||0;return i?(n.left+s)/Bo.innerWidth:(n.top+s)/Bo.innerHeight},e.killAll=function(e){if(wl.slice(0).forEach((function(e){return"ScrollSmoother"!==e.vars.id&&e.kill()})),!0!==e){var t=Cl.killAll||[];Cl={},t.forEach((function(e){return e()}))}},e}();Ql.version="3.12.2",Ql.saveStyles=function(e){return e?Yo(e).forEach((function(e){if(e&&e.style){var t=kl.indexOf(e);t>=0&&kl.splice(t,5),kl.push(e,e.style.cssText,e.getBBox&&e.getAttribute("transform"),Do.core.getCache(e),ca())}})):kl},Ql.revert=function(e,t){return Ll(!e,t)},Ql.create=function(e,t){return new Ql(e,t)},Ql.refresh=function(e){return e?El():(Fo||Ql.register())&&Dl(!0)},Ql.update=function(e){return++fo.cache&&jl(!0===e?2:0)},Ql.clearScrollMemory=zl,Ql.maxScroll=function(e,t){return Ra(e,t?Co:Mo)},Ql.getScrollFunc=function(e,t){return Oo(Po(e),t?Co:Mo)},Ql.getById=function(e){return xl[e]},Ql.getAll=function(){return wl.filter((function(e){return"ScrollSmoother"!==e.vars.id}))},Ql.isScrolling=function(){return!!xa},Ql.snapDirectional=cl,Ql.addEventListener=function(e,t){var i=Cl[e]||(Cl[e]=[]);~i.indexOf(t)||i.push(t)},Ql.removeEventListener=function(e,t){var i=Cl[e],n=i&&i.indexOf(t);n>=0&&i.splice(n,1)},Ql.batch=function(e,t){var i,n=[],r={},s=t.interval||.016,o=t.batchMax||1e9,a=function(e,t){var i=[],n=[],r=Do.delayedCall(s,(function(){t(i,n),i=[],n=[]})).pause();return function(e){i.length||r.restart(!0),i.push(e.trigger),n.push(e),o<=i.length&&r.progress(1)}};for(i in t)r[i]="on"===i.substr(0,2)&&Ba(t[i])&&"onRefreshInit"!==i?a(0,t[i]):t[i];return Ba(o)&&(o=o(),ul(Ql,"refresh",(function(){return o=t.batchMax()}))),Yo(e).forEach((function(e){var t={};for(i in r)t[i]=r[i];t.trigger=e,n.push(Ql.create(t))})),n};var ec,tc=function(e,t,i,n){return t>n?e(n):t<0&&e(0),i>n?(n-t)/(i-t):i<0?t/(t-i):1},ic=function e(t,i){!0===i?t.style.removeProperty("touch-action"):t.style.touchAction=!0===i?"auto":i?"pan-"+i+(Ro.isTouch?" pinch-zoom":""):"none",t===No&&e(Ho,i)},nc={auto:1,scroll:1},rc=function(e){var t,i=e.event,n=e.target,r=e.axis,s=(i.changedTouches?i.changedTouches[0]:i).target,o=s._gsap||Do.core.getCache(s),a=ya();if(!o._isScrollT||a-o._isScrollT>2e3){for(;s&&s!==Ho&&(s.scrollHeight<=s.clientHeight&&s.scrollWidth<=s.clientWidth||!nc[(t=rl(s)).overflowY]&&!nc[t.overflowX]);)s=s.parentNode;o._isScroll=s&&s!==n&&!La(s)&&(nc[(t=rl(s)).overflowY]||nc[t.overflowX]),o._isScrollT=a}(o._isScroll||"x"===r)&&(i.stopPropagation(),i._gsapAllow=!0)},sc=function(e,t,i,n){return Ro.create({target:e,capture:!0,debounce:!1,lockAxis:!0,type:t,onWheel:n=n&&rc,onPress:n,onDrag:n,onScroll:n,onEnable:function(){return i&&ul(jo,Ro.eventTypes[0],ac,!1,!0)},onDisable:function(){return hl(jo,Ro.eventTypes[0],ac,!0)}})},oc=/(input|label|select|textarea)/i,ac=function(e){var t=oc.test(e.target.tagName);(t||ec)&&(e._gsapAllow=!0,ec=t)};Ql.sort=function(e){return wl.sort(e||function(e,t){return-1e6*(e.vars.refreshPriority||0)+e.start-(t.start+-1e6*(t.vars.refreshPriority||0))})},Ql.observe=function(e){return new Ro(e)},Ql.normalizeScroll=function(e){if(void 0===e)return ra;if(!0===e&&ra)return ra.enable();if(!1===e)return ra&&ra.kill();var t=e instanceof Ro?e:function(e){Na(e)||(e={}),e.preventDefault=e.isNormalizer=e.allowClicks=!0,e.type||(e.type="wheel,touch"),e.debounce=!!e.debounce,e.id=e.id||"normalizer";var t,i,n,r,s,o,a,l,c=e,d=c.normalizeScrollX,u=c.momentum,h=c.allowNestedScroll,p=c.onRelease,f=Po(e.target)||No,m=Do.core.globals().ScrollSmoother,g=m&&m.get(),v=la&&(e.content&&Po(e.content)||g&&!1!==e.content&&!g.smooth()&&g.content()),b=Oo(f,Mo),y=Oo(f,Co),w=1,x=(Ro.isTouch&&Bo.visualViewport?Bo.visualViewport.scale*Bo.visualViewport.width:Bo.outerWidth)/Bo.innerWidth,T=0,S=Ba(u)?function(){return u(t)}:function(){return u||2.8},_=sc(f,e.type,!0,h),E=function(){return r=!1},C=Pa,M=Pa,P=function(){i=Ra(f,Mo),M=Xo(la?1:0,i),d&&(C=Xo(0,Ra(f,Co))),n=Il},O=function(){v._gsap.y=Oa(parseFloat(v._gsap.y)+b.offset)+"px",v.style.transform="matrix3d(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, "+parseFloat(v._gsap.y)+", 0, 1)",b.offset=b.cacheID=0},k=function(){P(),s.isActive()&&s.vars.scrollY>i&&(b()>i?s.progress(1)&&b(i):s.resetTo("scrollY",i))};return v&&Do.set(v,{y:"+=0"}),e.ignoreCheck=function(e){return la&&"touchmove"===e.type&&function(){if(r){requestAnimationFrame(E);var e=Oa(t.deltaY/2),i=M(b.v-e);if(v&&i!==b.v+b.offset){b.offset=i-b.v;var n=Oa((parseFloat(v&&v._gsap.y)||0)-b.offset);v.style.transform="matrix3d(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, "+n+", 0, 1)",v._gsap.y=n+"px",b.cacheID=fo.cache,jl()}return!0}b.offset&&O(),r=!0}()||w>1.05&&"touchstart"!==e.type||t.isGesturing||e.touches&&e.touches.length>1},e.onPress=function(){r=!1;var e=w;w=Oa((Bo.visualViewport&&Bo.visualViewport.scale||1)/x),s.pause(),e!==w&&ic(f,w>1.01||!d&&"x"),o=y(),a=b(),P(),n=Il},e.onRelease=e.onGestureStart=function(e,t){if(b.offset&&O(),t){fo.cache++;var n,r,o=S();d&&(r=(n=y())+.05*o*-e.velocityX/.227,o*=tc(y,n,r,Ra(f,Co)),s.vars.scrollX=C(r)),r=(n=b())+.05*o*-e.velocityY/.227,o*=tc(b,n,r,Ra(f,Mo)),s.vars.scrollY=M(r),s.invalidate().duration(o).play(.01),(la&&s.vars.scrollY>=i||n>=i-1)&&Do.to({},{onUpdate:k,duration:o})}else l.restart(!0);p&&p(e)},e.onWheel=function(){s._ts&&s.pause(),ya()-T>1e3&&(n=0,T=ya())},e.onChange=function(e,t,i,r,s){if(Il!==n&&P(),t&&d&&y(C(r[2]===t?o+(e.startX-e.x):y()+t-r[1])),i){b.offset&&O();var l=s[2]===i,c=l?a+e.startY-e.y:b()+i-s[1],u=M(c);l&&c!==u&&(a+=u-c),b(u)}(i||t)&&jl()},e.onEnable=function(){ic(f,!d&&"x"),Ql.addEventListener("refresh",k),ul(Bo,"resize",k),b.smooth&&(b.target.style.scrollBehavior="auto",b.smooth=y.smooth=!1),_.enable()},e.onDisable=function(){ic(f,!0),hl(Bo,"resize",k),Ql.removeEventListener("refresh",k),_.kill()},e.lockAxis=!1!==e.lockAxis,(t=new Ro(e)).iOS=la,la&&!b()&&b(1),la&&Do.ticker.add(Pa),l=t._dc,s=Do.to(t,{ease:"power4",paused:!0,scrollX:d?"+=0.1":"+=0",scrollY:"+=0.1",modifiers:{scrollY:Zl(b,b(),(function(){return s.pause()}))},onUpdate:jl,onComplete:l.vars.onComplete}),t}(e);return ra&&ra.target===t.target&&ra.kill(),La(t.target)&&(ra=t),t},Ql.core={_getVelocityProp:ko,_inputObserver:sc,_scrollers:fo,_proxies:mo,bridge:{ss:function(){xa||Ol("scrollStart"),xa=ya()},ref:function(){return Wo}}},Aa()&&Do.registerPlugin(Ql);var lc,cc,dc,uc,hc,pc,fc,mc,gc=function(){return"undefined"!=typeof window},vc=function(){return lc||gc()&&(lc=window.gsap)&&lc.registerPlugin&&lc},bc=function(e){return"string"==typeof e},yc=function(e){return"function"==typeof e},wc=function(e,t){var i="x"===t?"Width":"Height",n="scroll"+i,r="client"+i;return e===dc||e===uc||e===hc?Math.max(uc[n],hc[n])-(dc["inner"+i]||uc[r]||hc[r]):e[n]-e["offset"+i]},xc=function(e,t){var i="scroll"+("x"===t?"Left":"Top");return e===dc&&(null!=e.pageXOffset?i="page"+t.toUpperCase()+"Offset":e=null!=uc[i]?uc:hc),function(){return e[i]}},Tc=function(e,t){if(!(e=pc(e)[0])||!e.getBoundingClientRect)return console.warn("scrollTo target doesn't exist. Using 0")||{x:0,y:0};var i=e.getBoundingClientRect(),n=!t||t===dc||t===hc,r=n?{top:uc.clientTop-(dc.pageYOffset||uc.scrollTop||hc.scrollTop||0),left:uc.clientLeft-(dc.pageXOffset||uc.scrollLeft||hc.scrollLeft||0)}:t.getBoundingClientRect(),s={x:i.left-r.left,y:i.top-r.top};return!n&&t&&(s.x+=xc(t,"x")(),s.y+=xc(t,"y")()),s},Sc=function(e,t,i,n,r){return isNaN(e)||"object"==typeof e?bc(e)&&"="===e.charAt(1)?parseFloat(e.substr(2))*("-"===e.charAt(0)?-1:1)+n-r:"max"===e?wc(t,i)-r:Math.min(wc(t,i),Tc(e,t)[i]-r):parseFloat(e)-r},_c=function(){lc=vc(),gc()&&lc&&"undefined"!=typeof document&&document.body&&(dc=window,hc=document.body,uc=document.documentElement,pc=lc.utils.toArray,lc.config({autoKillThreshold:7}),fc=lc.config(),cc=1)},Ec={version:"3.12.2",name:"scrollTo",rawVars:1,register:function(e){lc=e,_c()},init:function(e,t,i,n,r){cc||_c();var s=this,o=lc.getProperty(e,"scrollSnapType");s.isWin=e===dc,s.target=e,s.tween=i,t=function(e,t,i,n){if(yc(e)&&(e=e(t,i,n)),"object"!=typeof e)return bc(e)&&"max"!==e&&"="!==e.charAt(1)?{x:e,y:e}:{y:e};if(e.nodeType)return{y:e,x:e};var r,s={};for(r in e)s[r]="onAutoKill"!==r&&yc(e[r])?e[r](t,i,n):e[r];return s}(t,n,e,r),s.vars=t,s.autoKill=!!t.autoKill,s.getX=xc(e,"x"),s.getY=xc(e,"y"),s.x=s.xPrev=s.getX(),s.y=s.yPrev=s.getY(),mc||(mc=lc.core.globals().ScrollTrigger),"smooth"===lc.getProperty(e,"scrollBehavior")&&lc.set(e,{scrollBehavior:"auto"}),o&&"none"!==o&&(s.snap=1,s.snapInline=e.style.scrollSnapType,e.style.scrollSnapType="none"),null!=t.x?(s.add(s,"x",s.x,Sc(t.x,e,"x",s.x,t.offsetX||0),n,r),s._props.push("scrollTo_x")):s.skipX=1,null!=t.y?(s.add(s,"y",s.y,Sc(t.y,e,"y",s.y,t.offsetY||0),n,r),s._props.push("scrollTo_y")):s.skipY=1},render:function(e,t){for(var i,n,r,s,o,a=t._pt,l=t.target,c=t.tween,d=t.autoKill,u=t.xPrev,h=t.yPrev,p=t.isWin,f=t.snap,m=t.snapInline;a;)a.r(e,a.d),a=a._next;i=p||!t.skipX?t.getX():u,r=(n=p||!t.skipY?t.getY():h)-h,s=i-u,o=fc.autoKillThreshold,t.x<0&&(t.x=0),t.y<0&&(t.y=0),d&&(!t.skipX&&(s>o||s<-o)&&i<wc(l,"x")&&(t.skipX=1),!t.skipY&&(r>o||r<-o)&&n<wc(l,"y")&&(t.skipY=1),t.skipX&&t.skipY&&(c.kill(),t.vars.onAutoKill&&t.vars.onAutoKill.apply(c,t.vars.onAutoKillParams||[]))),p?dc.scrollTo(t.skipX?i:t.x,t.skipY?n:t.y):(t.skipY||(l.scrollTop=t.y),t.skipX||(l.scrollLeft=t.x)),!f||1!==e&&0!==e||(n=l.scrollTop,i=l.scrollLeft,m?l.style.scrollSnapType=m:l.style.removeProperty("scroll-snap-type"),l.scrollTop=n+1,l.scrollLeft=i+1,l.scrollTop=n,l.scrollLeft=i),t.xPrev=t.x,t.yPrev=t.y,mc&&mc.update()},kill:function(e){var t="scrollTo"===e;(t||"scrollTo_x"===e)&&(this.skipX=1),(t||"scrollTo_y"===e)&&(this.skipY=1)}};function Cc(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}Ec.max=wc,Ec.getOffset=Tc,Ec.buildGetter=xc,vc()&&lc.registerPlugin(Ec);var Mc,Pc,Oc,kc,Ac,Lc,zc,Ic,Rc,Dc,Fc,Bc,jc,Nc,Hc,$c=function(){return"undefined"!=typeof window},qc=function(){return Mc||$c()&&(Mc=window.gsap)&&Mc.registerPlugin&&Mc},Yc=function(e){return Rc.maxScroll(e||Oc)},Xc=function(){function e(t){var i=this;Pc||e.register(Mc)||console.warn("Please gsap.registerPlugin(ScrollSmoother)"),t=this.vars=t||{},Dc&&Dc.kill(),Dc=this,Nc(this);var n,r,s,o,a,l,c,d,u,h,p,f,m,g,v,b=t,y=b.smoothTouch,w=b.onUpdate,x=b.onStop,T=b.smooth,S=b.onFocusIn,_=b.normalizeScroll,E=b.wholePixels,C=this,M=t.effectsPrefix||"",P=Rc.getScrollFunc(Oc),O=1===Rc.isTouch?!0===y?.8:parseFloat(y)||0:0===T||!1===T?0:parseFloat(T)||.8,k=O&&+t.speed||1,A=0,L=0,z=1,I=Bc(0),R=function(){return I.update(-A)},D={y:0},F=function(){return n.style.overflow="visible"},B=function(e){e.update();var t=e.getTween();t&&(t.pause(),t._time=t._dur,t._tTime=t._tDur),g=!1,e.animation.progress(e.progress,!0)},j=function(t,i){(t!==A&&!h||i)&&(E&&(t=Math.round(t)),O&&(n.style.transform="matrix3d(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, "+t+", 0, 1)",n._gsap.y=t+"px"),L=t-A,A=t,Rc.isUpdating||e.isRefreshing||Rc.update())},N=function(e){return arguments.length?(e<0&&(e=0),D.y=-e,g=!0,h?A=-e:j(-e),Rc.isRefreshing?o.update():P(e/k),this):-A},H="undefined"!=typeof ResizeObserver&&!1!==t.autoResize&&new ResizeObserver((function(){if(!Rc.isRefreshing){var e=Yc(r)*k;e<-A&&N(e),Hc.restart(!0)}})),$=function(e){r.scrollTop=0,e.target.contains&&e.target.contains(r)||S&&!1===S(i,e)||(Rc.isInViewport(e.target)||e.target===v||i.scrollTo(e.target,!1,"center center"),v=e.target)},q=function(e,t){if(e<t.start)return e;var i=isNaN(t.ratio)?1:t.ratio,n=t.end-t.start,r=e-t.start,s=t.offset||0,o=t.pins||[],a=o.offset||0,l=t._startClamp&&t.start<=0||t.pins&&t.pins.offset?0:t._endClamp&&t.end===Yc()?1:.5;return o.forEach((function(t){n-=t.distance,t.nativeStart<=e&&(r-=t.distance)})),a&&(r*=(n-a/i)/n),e+(r-s*l)/i-r},Y=function e(t,i,n){n||(t.pins.length=t.pins.offset=0);var r,s,o,a,l,c,d,u,h=t.pins,p=t.markers;for(d=0;d<i.length;d++)if(u=i[d],t.trigger&&u.trigger&&t!==u&&(u.trigger===t.trigger||u.pinnedContainer===t.trigger||t.trigger.contains(u.trigger))&&(l=u._startNative||u._startClamp||u.start,c=u._endNative||u._endClamp||u.end,o=q(l,t),a=u.pin&&c>0?o+(c-l):q(c,t),u.setPositions(o,a,!0,(u._startClamp?Math.max(0,o):o)-l),u.markerStart&&p.push(Mc.quickSetter([u.markerStart,u.markerEnd],"y","px")),u.pin&&u.end>0&&!n)){if(r=u.end-u.start,s=t._startClamp&&u.start<0){if(t.start>0)return t.setPositions(0,t.end+(t._startNative-t.start),!0),void e(t,i);r+=u.start,h.offset=-u.start}h.push({start:u.start,nativeStart:l,end:u.end,distance:r,trig:u}),t.setPositions(t.start,t.end+(s?-u.start:r),!0)}},X=function(e,t){a.forEach((function(i){return Y(i,e,t)}))},V=function(){F(),requestAnimationFrame(F),a&&(Rc.getAll().forEach((function(e){e._startNative=e.start,e._endNative=e.end})),a.forEach((function(e){var t=e._startClamp||e.start,i=e.autoSpeed?Math.min(Yc(),e.end):t+Math.abs((e.end-t)/e.ratio),n=i-e.end;if((t-=n/2)>(i-=n/2)){var r=t;t=i,i=r}e._startClamp&&t<0?(n=(i=e.ratio<0?Yc():e.end/e.ratio)-e.end,t=0):(e.ratio<0||e._endClamp&&i>=Yc())&&(n=((i=Yc())-(t=e.ratio<0||e.ratio>1?0:i-(i-e.start)/e.ratio))*e.ratio-(e.end-e.start)),e.offset=n||1e-4,e.pins.length=e.pins.offset=0,e.setPositions(t,i,!0)})),X(Rc.sort())),I.reset()},G=function(){return Rc.addEventListener("refresh",V)},W=function(){return a&&a.forEach((function(e){return e.vars.onRefresh(e)}))},U=function(){return a&&a.forEach((function(e){return e.vars.onRefreshInit(e)})),W},Z=function(e,t,i,n){return function(){var r="function"==typeof t?t(i,n):t;r||0===r||(r=n.getAttribute("data-"+M+e)||("speed"===e?1:0)),n.setAttribute("data-"+M+e,r);var s="clamp("===(r+"").substr(0,6);return{clamp:s,value:s?r.substr(6,r.length-7):r}}},K=function(e,t,i,n,s){s=("function"==typeof s?s(n,e):s)||0;var o,l,c,d,u,h,p=Z("speed",t,n,e),f=Z("lag",i,n,e),m=Mc.getProperty(e,"y"),g=e._gsap,v=[],b=function(){t=p(),i=parseFloat(f().value),o=parseFloat(t.value)||1,c="auto"===t.value,u=c||l&&l._startClamp&&l.start<=0||v.offset?0:l&&l._endClamp&&l.end===Yc()?1:.5,d&&d.kill(),d=i&&Mc.to(e,{ease:Fc,overwrite:!1,y:"+=0",duration:i}),l&&(l.ratio=o,l.autoSpeed=c)},y=function(){g.y=m+"px",g.renderTransform(1),b()},w=[],x=0,T=function(t){if(c){y();var i=function(e,t){var i,n,r=e.parentNode||Ac,s=e.getBoundingClientRect(),o=r.getBoundingClientRect(),a=o.top-s.top,l=o.bottom-s.bottom,c=(Math.abs(a)>Math.abs(l)?a:l)/(1-t),d=-c*t;return c>0&&(n=.5==(i=o.height/(Oc.innerHeight+o.height))?2*o.height:2*Math.min(o.height,Math.abs(-c*i/(2*i-1)))*(t||1),d+=t?-n*t:-n/2,c+=n),{change:c,offset:d}}(e,Ic(0,1,-t.start/(t.end-t.start)));x=i.change,h=i.offset}else h=v.offset||0,x=(t.end-t.start-h)*(1-o);v.forEach((function(e){return x-=e.distance*(1-o)})),t.offset=x||.001,t.vars.onUpdate(t),d&&d.progress(1)};return b(),(1!==o||c||d)&&(l=Rc.create({trigger:c?e.parentNode:e,start:function(){return t.clamp?"clamp(top bottom+="+s+")":"top bottom+="+s},end:function(){return t.value<0?"max":t.clamp?"clamp(bottom top-="+s+")":"bottom top-="+s},scroller:r,scrub:!0,refreshPriority:-999,onRefreshInit:y,onRefresh:T,onKill:function(e){var t=a.indexOf(e);t>=0&&a.splice(t,1),y()},onUpdate:function(e){var t,i,n,r,s=m+x*(e.progress-u),o=v.length,a=0;if(e.offset){if(o){for(i=-A,n=e.end;o--;){if((t=v[o]).trig.isActive||i>=t.start&&i<=t.end)return void(d&&(t.trig.progress+=t.trig.direction<0?.001:-.001,t.trig.update(0,0,1),d.resetTo("y",parseFloat(g.y),-L,!0),z&&d.progress(1)));i>t.end&&(a+=t.distance),n-=t.distance}s=m+a+x*((Mc.utils.clamp(e.start,e.end,i)-e.start-a)/(n-e.start)-u)}w.length&&!c&&w.forEach((function(e){return e(s-a)})),r=s+h,s=Math.round(1e5*r)/1e5||0,d?(d.resetTo("y",s,-L,!0),z&&d.progress(1)):(g.y=s+"px",g.renderTransform(1))}}}),T(l),Mc.core.getCache(l.trigger).stRevert=U,l.startY=m,l.pins=v,l.markers=w,l.ratio=o,l.autoSpeed=c,e.style.willChange="transform"),l};function J(){return s=n.clientHeight,n.style.overflow="visible",Lc.style.height=Oc.innerHeight+(s-Oc.innerHeight)/k+"px",s-Oc.innerHeight}G(),Rc.addEventListener("killAll",G),Mc.delayedCall(.5,(function(){return z=0})),this.scrollTop=N,this.scrollTo=function(e,t,n){var r=Mc.utils.clamp(0,Yc(),isNaN(e)?i.offset(e,n):+e);t?h?Mc.to(i,{duration:O,scrollTop:r,overwrite:"auto",ease:Fc}):P(r):N(r)},this.offset=function(e,t){var i,n=(e=zc(e)[0]).style.cssText,r=Rc.create({trigger:e,start:t||"top top"});return a&&(z?Rc.refresh():X([r],!0)),i=r.start/k,r.kill(!1),e.style.cssText=n,Mc.core.getCache(e).uncache=1,i},this.content=function(e){if(arguments.length){var t=zc(e||"#smooth-content")[0]||console.warn("ScrollSmoother needs a valid content element.")||Lc.children[0];return t!==n&&(u=(n=t).getAttribute("style")||"",H&&H.observe(n),Mc.set(n,{overflow:"visible",width:"100%",boxSizing:"border-box",y:"+=0"}),O||Mc.set(n,{clearProps:"transform"})),this}return n},this.wrapper=function(e){return arguments.length?(r=zc(e||"#smooth-wrapper")[0]||function(e){var t=kc.querySelector(".ScrollSmoother-wrapper");return t||((t=kc.createElement("div")).classList.add("ScrollSmoother-wrapper"),e.parentNode.insertBefore(t,e),t.appendChild(e)),t}(n),d=r.getAttribute("style")||"",J(),Mc.set(r,O?{overflow:"hidden",position:"fixed",height:"100%",width:"100%",top:0,left:0,right:0,bottom:0}:{overflow:"visible",position:"relative",width:"100%",height:"auto",top:"auto",bottom:"auto",left:"auto",right:"auto"}),this):r},this.effects=function(e,t){var i;if(a||(a=[]),!e)return a.slice(0);(e=zc(e)).forEach((function(e){for(var t=a.length;t--;)a[t].trigger===e&&a[t].kill()}));var n,r,s=t=t||{},o=s.speed,l=s.lag,c=s.effectsPadding,d=[];for(n=0;n<e.length;n++)(r=K(e[n],o,l,n,c))&&d.push(r);return(i=a).push.apply(i,d),d},this.sections=function(e,t){var i;if(l||(l=[]),!e)return l.slice(0);var n=zc(e).map((function(e){return Rc.create({trigger:e,start:"top 120%",end:"bottom -20%",onToggle:function(t){e.style.opacity=t.isActive?"1":"0",e.style.pointerEvents=t.isActive?"all":"none"}})}));return t&&t.add?(i=l).push.apply(i,n):l=n.slice(0),n},this.content(t.content),this.wrapper(t.wrapper),this.render=function(e){return j(e||0===e?e:A)},this.getVelocity=function(){return I.getVelocity(-A)},Rc.scrollerProxy(r,{scrollTop:N,scrollHeight:function(){return J()&&Lc.scrollHeight},fixedMarkers:!1!==t.fixedMarkers&&!!O,content:n,getBoundingClientRect:function(){return{top:0,left:0,width:Oc.innerWidth,height:Oc.innerHeight}}}),Rc.defaults({scroller:r});var Q=Rc.getAll().filter((function(e){return e.scroller===Oc||e.scroller===r}));Q.forEach((function(e){return e.revert(!0,!0)})),o=Rc.create({animation:Mc.fromTo(D,{y:0},{y:function(){return-J()},immediateRender:!1,ease:"none",data:"ScrollSmoother",duration:100,onUpdate:function(){if(this._dur){var e=g;e&&(B(o),D.y=A),j(D.y,e),R(),w&&!h&&w(C)}}}),onRefreshInit:function(t){if(!e.isRefreshing){if(e.isRefreshing=!0,a){var i=Rc.getAll().filter((function(e){return!!e.pin}));a.forEach((function(e){e.vars.pinnedContainer||i.forEach((function(t){if(t.pin.contains(e.trigger)){var i=e.vars;i.pinnedContainer=t.pin,e.vars=null,e.init(i,e.animation)}}))}))}var n=t.getTween();m=n&&n._end>n._dp._time,f=A,D.y=0,O&&(1===Rc.isTouch&&(r.style.position="absolute"),r.scrollTop=0,1===Rc.isTouch&&(r.style.position="fixed"))}},onRefresh:function(t){t.animation.invalidate(),t.setPositions(t.start,J()/k),m||B(t),D.y=-P()*k,j(D.y),z||t.animation.progress(Mc.utils.clamp(0,1,f/k/-t.end)),m&&(t.progress-=.001,t.update()),e.isRefreshing=!1},id:"ScrollSmoother",scroller:Oc,invalidateOnRefresh:!0,start:0,refreshPriority:-9999,end:function(){return J()/k},onScrubComplete:function(){I.reset(),x&&x(i)},scrub:O||!0}),this.smooth=function(e){return arguments.length&&(k=(O=e||0)&&+t.speed||1,o.scrubDuration(e)),o.getTween()?o.getTween().duration():0},o.getTween()&&(o.getTween().vars.ease=t.ease||Fc),this.scrollTrigger=o,t.effects&&this.effects(!0===t.effects?"[data-"+M+"speed], [data-"+M+"lag]":t.effects,{effectsPadding:t.effectsPadding}),t.sections&&this.sections(!0===t.sections?"[data-section]":t.sections),Q.forEach((function(e){e.vars.scroller=r,e.revert(!1,!0),e.init(e.vars,e.animation)})),this.paused=function(e,t){return arguments.length?(!!h!==e&&(e?(o.getTween()&&o.getTween().pause(),P(-A/k),I.reset(),(p=Rc.normalizeScroll())&&p.disable(),(h=Rc.observe({preventDefault:!0,type:"wheel,touch,scroll",debounce:!1,allowClicks:!0,onChangeY:function(){return N(-A)}})).nested=jc(Ac,"wheel,touch,scroll",!0,!1!==t)):(h.nested.kill(),h.kill(),h=0,p&&p.enable(),o.progress=(-A/k-o.start)/(o.end-o.start),B(o))),this):!!h},this.kill=this.revert=function(){i.paused(!1),B(o),o.kill();for(var e=(a||[]).concat(l||[]),t=e.length;t--;)e[t].kill();Rc.scrollerProxy(r),Rc.removeEventListener("killAll",G),Rc.removeEventListener("refresh",V),r.style.cssText=d,n.style.cssText=u;var s=Rc.defaults({});s&&s.scroller===r&&Rc.defaults({scroller:Oc}),i.normalizer&&Rc.normalizeScroll(!1),clearInterval(c),Dc=null,H&&H.disconnect(),Lc.style.removeProperty("height"),Oc.removeEventListener("focusin",$)},this.refresh=function(e,t){return o.refresh(e,t)},_&&(this.normalizer=Rc.normalizeScroll(!0===_?{debounce:!0,content:!O&&n}:_)),Rc.config(t),"overscrollBehavior"in Oc.getComputedStyle(Lc)&&Mc.set([Lc,Ac],{overscrollBehavior:"none"}),"scrollBehavior"in Oc.getComputedStyle(Lc)&&Mc.set([Lc,Ac],{scrollBehavior:"auto"}),Oc.addEventListener("focusin",$),c=setInterval(R,250),"loading"===kc.readyState||requestAnimationFrame((function(){return Rc.refresh()}))}var t,i;return e.register=function(t){return Pc||(Mc=t||qc(),$c()&&window.document&&(Oc=window,kc=document,Ac=kc.documentElement,Lc=kc.body),Mc&&(zc=Mc.utils.toArray,Ic=Mc.utils.clamp,Fc=Mc.parseEase("expo"),Nc=Mc.core.context||function(){},Rc=Mc.core.globals().ScrollTrigger,Mc.core.globals("ScrollSmoother",e),Lc&&Rc&&(Hc=Mc.delayedCall(.2,(function(){return Rc.isRefreshing||Dc&&Dc.refresh()})).pause(),Bc=Rc.core._getVelocityProp,jc=Rc.core._inputObserver,e.refresh=Rc.refresh,Pc=1))),Pc},t=e,(i=[{key:"progress",get:function(){return this.scrollTrigger?this.scrollTrigger.animation._time/100:0}}])&&Cc(t.prototype,i),e}();Xc.version="3.12.2",Xc.create=function(e){return Dc&&e&&Dc.content()===zc(e.content)[0]?Dc:new Xc(e)},Xc.get=function(){return Dc},qc()&&Mc.registerPlugin(Xc),Us.registerPlugin(Ql,Ec,Xc),window.gsap=Us,window.ScrollTrigger=Ql,document.fonts.ready.then((()=>{Us.utils.toArray(".fx-text-counter").forEach((e=>{let t=e.querySelector(".fx-child"),i=t.textContent.split(""),n=t.offsetHeight,r='<div class="digit" style="height: '+n+'px;"></div>';for(let e=0;e<=9;e++)r+='<div class="digit w-fit leading-none" style="height: '+n+'px;">'+e+"</div>";t.innerHTML="",t.style.height=n+"px",i.forEach((e=>{t.innerHTML+="."==e||","==e?'<div class="point inline-flex flex-col leading-none [will-change:transform,width] backface-hidden translate-y-[-15%]">'+e+"</div>":'<div data-number="'+(parseInt(e)+1)+'" class="number inline-flex flex-col [will-change:transform,width] backface-hidden">'+r+"</div>"})),t.querySelectorAll(".number").forEach(((t,i)=>{t.querySelectorAll(".digit").forEach((e=>{e.textContent==t.dataset.number-1&&e.classList.add("active")})),Us.to(t,{scrollTrigger:{trigger:e,start:"top-="+window.innerHeight/3+" center"},duration:2,y:-t.dataset.number*n,width:t.querySelector(".digit.active").offsetWidth,ease:"expo.out",delay:.1*i})}))}))}));let Vc=document.querySelector(".scroll-top");Vc&&Vc.addEventListener("click",(()=>{Us.to(window,{duration:1,scrollTo:0})}));let Gc=document.querySelector(".scroll-to-trigger"),Wc=document.querySelector(".scroll-to-target");function Uc(e){return null!==e&&"object"==typeof e&&"constructor"in e&&e.constructor===Object}function Zc(e,t){void 0===e&&(e={}),void 0===t&&(t={}),Object.keys(t).forEach((i=>{void 0===e[i]?e[i]=t[i]:Uc(t[i])&&Uc(e[i])&&Object.keys(t[i]).length>0&&Zc(e[i],t[i])}))}Gc&&Wc&&Gc.addEventListener("click",(()=>{Us.to(window,{duration:1,scrollTo:Wc})}));const Kc={body:{},addEventListener(){},removeEventListener(){},activeElement:{blur(){},nodeName:""},querySelector(){return null},querySelectorAll(){return[]},getElementById(){return null},createEvent(){return{initEvent(){}}},createElement(){return{children:[],childNodes:[],style:{},setAttribute(){},getElementsByTagName(){return[]}}},createElementNS(){return{}},importNode(){return null},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""}};function Jc(){const e="undefined"!=typeof document?document:{};return Zc(e,Kc),e}const Qc={document:Kc,navigator:{userAgent:""},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""},history:{replaceState(){},pushState(){},go(){},back(){}},CustomEvent:function(){return this},addEventListener(){},removeEventListener(){},getComputedStyle(){return{getPropertyValue(){return""}}},Image(){},Date(){},screen:{},setTimeout(){},clearTimeout(){},matchMedia(){return{}},requestAnimationFrame(e){return"undefined"==typeof setTimeout?(e(),null):setTimeout(e,0)},cancelAnimationFrame(e){"undefined"!=typeof setTimeout&&clearTimeout(e)}};function ed(){const e="undefined"!=typeof window?window:{};return Zc(e,Qc),e}function td(e,t){return void 0===t&&(t=0),setTimeout(e,t)}function id(){return Date.now()}function nd(e){return"object"==typeof e&&null!==e&&e.constructor&&"Object"===Object.prototype.toString.call(e).slice(8,-1)}function rd(){const e=Object(arguments.length<=0?void 0:arguments[0]),t=["__proto__","constructor","prototype"];for(let n=1;n<arguments.length;n+=1){const r=n<0||arguments.length<=n?void 0:arguments[n];if(null!=r&&(i=r,!("undefined"!=typeof window&&void 0!==window.HTMLElement?i instanceof HTMLElement:i&&(1===i.nodeType||11===i.nodeType)))){const i=Object.keys(Object(r)).filter((e=>t.indexOf(e)<0));for(let t=0,n=i.length;t<n;t+=1){const n=i[t],s=Object.getOwnPropertyDescriptor(r,n);void 0!==s&&s.enumerable&&(nd(e[n])&&nd(r[n])?r[n].__swiper__?e[n]=r[n]:rd(e[n],r[n]):!nd(e[n])&&nd(r[n])?(e[n]={},r[n].__swiper__?e[n]=r[n]:rd(e[n],r[n])):e[n]=r[n])}}}var i;return e}function sd(e,t,i){e.style.setProperty(t,i)}function od(e){let{swiper:t,targetPosition:i,side:n}=e;const r=ed(),s=-t.translate;let o,a=null;const l=t.params.speed;t.wrapperEl.style.scrollSnapType="none",r.cancelAnimationFrame(t.cssModeFrameID);const c=i>s?"next":"prev",d=(e,t)=>"next"===c&&e>=t||"prev"===c&&e<=t,u=()=>{o=(new Date).getTime(),null===a&&(a=o);const e=Math.max(Math.min((o-a)/l,1),0),c=.5-Math.cos(e*Math.PI)/2;let h=s+c*(i-s);if(d(h,i)&&(h=i),t.wrapperEl.scrollTo({[n]:h}),d(h,i))return t.wrapperEl.style.overflow="hidden",t.wrapperEl.style.scrollSnapType="",setTimeout((()=>{t.wrapperEl.style.overflow="",t.wrapperEl.scrollTo({[n]:h})})),void r.cancelAnimationFrame(t.cssModeFrameID);t.cssModeFrameID=r.requestAnimationFrame(u)};u()}function ad(e){return e.querySelector(".swiper-slide-transform")||e.shadowRoot&&e.shadowRoot.querySelector(".swiper-slide-transform")||e}function ld(e,t){return void 0===t&&(t=""),[...e.children].filter((e=>e.matches(t)))}function cd(e){try{return void console.warn(e)}catch(e){}}function dd(e,t){void 0===t&&(t=[]);const i=document.createElement(e);return i.classList.add(...Array.isArray(t)?t:function(e){return void 0===e&&(e=""),e.trim().split(" ").filter((e=>!!e.trim()))}(t)),i}function ud(e,t){return ed().getComputedStyle(e,null).getPropertyValue(t)}function hd(e){let t,i=e;if(i){for(t=0;null!==(i=i.previousSibling);)1===i.nodeType&&(t+=1);return t}}function pd(e,t){const i=[];let n=e.parentElement;for(;n;)t?n.matches(t)&&i.push(n):i.push(n),n=n.parentElement;return i}function fd(e,t,i){const n=ed();return i?e["width"===t?"offsetWidth":"offsetHeight"]+parseFloat(n.getComputedStyle(e,null).getPropertyValue("width"===t?"margin-right":"margin-top"))+parseFloat(n.getComputedStyle(e,null).getPropertyValue("width"===t?"margin-left":"margin-bottom")):e.offsetWidth}let md,gd,vd;function bd(){return md||(md=function(){const e=ed(),t=Jc();return{smoothScroll:t.documentElement&&t.documentElement.style&&"scrollBehavior"in t.documentElement.style,touch:!!("ontouchstart"in e||e.DocumentTouch&&t instanceof e.DocumentTouch)}}()),md}var yd={on(e,t,i){const n=this;if(!n.eventsListeners||n.destroyed)return n;if("function"!=typeof t)return n;const r=i?"unshift":"push";return e.split(" ").forEach((e=>{n.eventsListeners[e]||(n.eventsListeners[e]=[]),n.eventsListeners[e][r](t)})),n},once(e,t,i){const n=this;if(!n.eventsListeners||n.destroyed)return n;if("function"!=typeof t)return n;function r(){n.off(e,r),r.__emitterProxy&&delete r.__emitterProxy;for(var i=arguments.length,s=new Array(i),o=0;o<i;o++)s[o]=arguments[o];t.apply(n,s)}return r.__emitterProxy=t,n.on(e,r,i)},onAny(e,t){const i=this;if(!i.eventsListeners||i.destroyed)return i;if("function"!=typeof e)return i;const n=t?"unshift":"push";return i.eventsAnyListeners.indexOf(e)<0&&i.eventsAnyListeners[n](e),i},offAny(e){const t=this;if(!t.eventsListeners||t.destroyed)return t;if(!t.eventsAnyListeners)return t;const i=t.eventsAnyListeners.indexOf(e);return i>=0&&t.eventsAnyListeners.splice(i,1),t},off(e,t){const i=this;return!i.eventsListeners||i.destroyed?i:i.eventsListeners?(e.split(" ").forEach((e=>{void 0===t?i.eventsListeners[e]=[]:i.eventsListeners[e]&&i.eventsListeners[e].forEach(((n,r)=>{(n===t||n.__emitterProxy&&n.__emitterProxy===t)&&i.eventsListeners[e].splice(r,1)}))})),i):i},emit(){const e=this;if(!e.eventsListeners||e.destroyed)return e;if(!e.eventsListeners)return e;let t,i,n;for(var r=arguments.length,s=new Array(r),o=0;o<r;o++)s[o]=arguments[o];return"string"==typeof s[0]||Array.isArray(s[0])?(t=s[0],i=s.slice(1,s.length),n=e):(t=s[0].events,i=s[0].data,n=s[0].context||e),i.unshift(n),(Array.isArray(t)?t:t.split(" ")).forEach((t=>{e.eventsAnyListeners&&e.eventsAnyListeners.length&&e.eventsAnyListeners.forEach((e=>{e.apply(n,[t,...i])})),e.eventsListeners&&e.eventsListeners[t]&&e.eventsListeners[t].forEach((e=>{e.apply(n,i)}))})),e}};const wd=(e,t)=>{if(!e||e.destroyed||!e.params)return;const i=t.closest(e.isElement?"swiper-slide":`.${e.params.slideClass}`);if(i){let t=i.querySelector(`.${e.params.lazyPreloaderClass}`);!t&&e.isElement&&(i.shadowRoot?t=i.shadowRoot.querySelector(`.${e.params.lazyPreloaderClass}`):requestAnimationFrame((()=>{i.shadowRoot&&(t=i.shadowRoot.querySelector(`.${e.params.lazyPreloaderClass}`),t&&t.remove())}))),t&&t.remove()}},xd=(e,t)=>{if(!e.slides[t])return;const i=e.slides[t].querySelector('[loading="lazy"]');i&&i.removeAttribute("loading")},Td=e=>{if(!e||e.destroyed||!e.params)return;let t=e.params.lazyPreloadPrevNext;const i=e.slides.length;if(!i||!t||t<0)return;t=Math.min(t,i);const n="auto"===e.params.slidesPerView?e.slidesPerViewDynamic():Math.ceil(e.params.slidesPerView),r=e.activeIndex;if(e.params.grid&&e.params.grid.rows>1){const i=r,s=[i-t];return s.push(...Array.from({length:t}).map(((e,t)=>i+n+t))),void e.slides.forEach(((t,i)=>{s.includes(t.column)&&xd(e,i)}))}const s=r+n-1;if(e.params.rewind||e.params.loop)for(let n=r-t;n<=s+t;n+=1){const t=(n%i+i)%i;(t<r||t>s)&&xd(e,t)}else for(let n=Math.max(r-t,0);n<=Math.min(s+t,i-1);n+=1)n!==r&&(n>s||n<r)&&xd(e,n)};var Sd={updateSize:function(){const e=this;let t,i;const n=e.el;t=void 0!==e.params.width&&null!==e.params.width?e.params.width:n.clientWidth,i=void 0!==e.params.height&&null!==e.params.height?e.params.height:n.clientHeight,0===t&&e.isHorizontal()||0===i&&e.isVertical()||(t=t-parseInt(ud(n,"padding-left")||0,10)-parseInt(ud(n,"padding-right")||0,10),i=i-parseInt(ud(n,"padding-top")||0,10)-parseInt(ud(n,"padding-bottom")||0,10),Number.isNaN(t)&&(t=0),Number.isNaN(i)&&(i=0),Object.assign(e,{width:t,height:i,size:e.isHorizontal()?t:i}))},updateSlides:function(){const e=this;function t(t,i){return parseFloat(t.getPropertyValue(e.getDirectionLabel(i))||0)}const i=e.params,{wrapperEl:n,slidesEl:r,size:s,rtlTranslate:o,wrongRTL:a}=e,l=e.virtual&&i.virtual.enabled,c=l?e.virtual.slides.length:e.slides.length,d=ld(r,`.${e.params.slideClass}, swiper-slide`),u=l?e.virtual.slides.length:d.length;let h=[];const p=[],f=[];let m=i.slidesOffsetBefore;"function"==typeof m&&(m=i.slidesOffsetBefore.call(e));let g=i.slidesOffsetAfter;"function"==typeof g&&(g=i.slidesOffsetAfter.call(e));const v=e.snapGrid.length,b=e.slidesGrid.length;let y=i.spaceBetween,w=-m,x=0,T=0;if(void 0===s)return;"string"==typeof y&&y.indexOf("%")>=0?y=parseFloat(y.replace("%",""))/100*s:"string"==typeof y&&(y=parseFloat(y)),e.virtualSize=-y,d.forEach((e=>{o?e.style.marginLeft="":e.style.marginRight="",e.style.marginBottom="",e.style.marginTop=""})),i.centeredSlides&&i.cssMode&&(sd(n,"--swiper-centered-offset-before",""),sd(n,"--swiper-centered-offset-after",""));const S=i.grid&&i.grid.rows>1&&e.grid;let _;S?e.grid.initSlides(d):e.grid&&e.grid.unsetSlides();const E="auto"===i.slidesPerView&&i.breakpoints&&Object.keys(i.breakpoints).filter((e=>void 0!==i.breakpoints[e].slidesPerView)).length>0;for(let n=0;n<u;n+=1){let r;if(_=0,d[n]&&(r=d[n]),S&&e.grid.updateSlide(n,r,d),!d[n]||"none"!==ud(r,"display")){if("auto"===i.slidesPerView){E&&(d[n].style[e.getDirectionLabel("width")]="");const s=getComputedStyle(r),o=r.style.transform,a=r.style.webkitTransform;if(o&&(r.style.transform="none"),a&&(r.style.webkitTransform="none"),i.roundLengths)_=e.isHorizontal()?fd(r,"width",!0):fd(r,"height",!0);else{const e=t(s,"width"),i=t(s,"padding-left"),n=t(s,"padding-right"),o=t(s,"margin-left"),a=t(s,"margin-right"),l=s.getPropertyValue("box-sizing");if(l&&"border-box"===l)_=e+o+a;else{const{clientWidth:t,offsetWidth:s}=r;_=e+i+n+o+a+(s-t)}}o&&(r.style.transform=o),a&&(r.style.webkitTransform=a),i.roundLengths&&(_=Math.floor(_))}else _=(s-(i.slidesPerView-1)*y)/i.slidesPerView,i.roundLengths&&(_=Math.floor(_)),d[n]&&(d[n].style[e.getDirectionLabel("width")]=`${_}px`);d[n]&&(d[n].swiperSlideSize=_),f.push(_),i.centeredSlides?(w=w+_/2+x/2+y,0===x&&0!==n&&(w=w-s/2-y),0===n&&(w=w-s/2-y),Math.abs(w)<.001&&(w=0),i.roundLengths&&(w=Math.floor(w)),T%i.slidesPerGroup==0&&h.push(w),p.push(w)):(i.roundLengths&&(w=Math.floor(w)),(T-Math.min(e.params.slidesPerGroupSkip,T))%e.params.slidesPerGroup==0&&h.push(w),p.push(w),w=w+_+y),e.virtualSize+=_+y,x=_,T+=1}}if(e.virtualSize=Math.max(e.virtualSize,s)+g,o&&a&&("slide"===i.effect||"coverflow"===i.effect)&&(n.style.width=`${e.virtualSize+y}px`),i.setWrapperSize&&(n.style[e.getDirectionLabel("width")]=`${e.virtualSize+y}px`),S&&e.grid.updateWrapperSize(_,h),!i.centeredSlides){const t=[];for(let n=0;n<h.length;n+=1){let r=h[n];i.roundLengths&&(r=Math.floor(r)),h[n]<=e.virtualSize-s&&t.push(r)}h=t,Math.floor(e.virtualSize-s)-Math.floor(h[h.length-1])>1&&h.push(e.virtualSize-s)}if(l&&i.loop){const t=f[0]+y;if(i.slidesPerGroup>1){const n=Math.ceil((e.virtual.slidesBefore+e.virtual.slidesAfter)/i.slidesPerGroup),r=t*i.slidesPerGroup;for(let e=0;e<n;e+=1)h.push(h[h.length-1]+r)}for(let n=0;n<e.virtual.slidesBefore+e.virtual.slidesAfter;n+=1)1===i.slidesPerGroup&&h.push(h[h.length-1]+t),p.push(p[p.length-1]+t),e.virtualSize+=t}if(0===h.length&&(h=[0]),0!==y){const t=e.isHorizontal()&&o?"marginLeft":e.getDirectionLabel("marginRight");d.filter(((e,t)=>!(i.cssMode&&!i.loop)||t!==d.length-1)).forEach((e=>{e.style[t]=`${y}px`}))}if(i.centeredSlides&&i.centeredSlidesBounds){let e=0;f.forEach((t=>{e+=t+(y||0)})),e-=y;const t=e-s;h=h.map((e=>e<=0?-m:e>t?t+g:e))}if(i.centerInsufficientSlides){let e=0;if(f.forEach((t=>{e+=t+(y||0)})),e-=y,e<s){const t=(s-e)/2;h.forEach(((e,i)=>{h[i]=e-t})),p.forEach(((e,i)=>{p[i]=e+t}))}}if(Object.assign(e,{slides:d,snapGrid:h,slidesGrid:p,slidesSizesGrid:f}),i.centeredSlides&&i.cssMode&&!i.centeredSlidesBounds){sd(n,"--swiper-centered-offset-before",-h[0]+"px"),sd(n,"--swiper-centered-offset-after",e.size/2-f[f.length-1]/2+"px");const t=-e.snapGrid[0],i=-e.slidesGrid[0];e.snapGrid=e.snapGrid.map((e=>e+t)),e.slidesGrid=e.slidesGrid.map((e=>e+i))}if(u!==c&&e.emit("slidesLengthChange"),h.length!==v&&(e.params.watchOverflow&&e.checkOverflow(),e.emit("snapGridLengthChange")),p.length!==b&&e.emit("slidesGridLengthChange"),i.watchSlidesProgress&&e.updateSlidesOffset(),e.emit("slidesUpdated"),!(l||i.cssMode||"slide"!==i.effect&&"fade"!==i.effect)){const t=`${i.containerModifierClass}backface-hidden`,n=e.el.classList.contains(t);u<=i.maxBackfaceHiddenSlides?n||e.el.classList.add(t):n&&e.el.classList.remove(t)}},updateAutoHeight:function(e){const t=this,i=[],n=t.virtual&&t.params.virtual.enabled;let r,s=0;"number"==typeof e?t.setTransition(e):!0===e&&t.setTransition(t.params.speed);const o=e=>n?t.slides[t.getSlideIndexByData(e)]:t.slides[e];if("auto"!==t.params.slidesPerView&&t.params.slidesPerView>1)if(t.params.centeredSlides)(t.visibleSlides||[]).forEach((e=>{i.push(e)}));else for(r=0;r<Math.ceil(t.params.slidesPerView);r+=1){const e=t.activeIndex+r;if(e>t.slides.length&&!n)break;i.push(o(e))}else i.push(o(t.activeIndex));for(r=0;r<i.length;r+=1)if(void 0!==i[r]){const e=i[r].offsetHeight;s=e>s?e:s}(s||0===s)&&(t.wrapperEl.style.height=`${s}px`)},updateSlidesOffset:function(){const e=this,t=e.slides,i=e.isElement?e.isHorizontal()?e.wrapperEl.offsetLeft:e.wrapperEl.offsetTop:0;for(let n=0;n<t.length;n+=1)t[n].swiperSlideOffset=(e.isHorizontal()?t[n].offsetLeft:t[n].offsetTop)-i-e.cssOverflowAdjustment()},updateSlidesProgress:function(e){void 0===e&&(e=this&&this.translate||0);const t=this,i=t.params,{slides:n,rtlTranslate:r,snapGrid:s}=t;if(0===n.length)return;void 0===n[0].swiperSlideOffset&&t.updateSlidesOffset();let o=-e;r&&(o=e),n.forEach((e=>{e.classList.remove(i.slideVisibleClass,i.slideFullyVisibleClass)})),t.visibleSlidesIndexes=[],t.visibleSlides=[];let a=i.spaceBetween;"string"==typeof a&&a.indexOf("%")>=0?a=parseFloat(a.replace("%",""))/100*t.size:"string"==typeof a&&(a=parseFloat(a));for(let e=0;e<n.length;e+=1){const l=n[e];let c=l.swiperSlideOffset;i.cssMode&&i.centeredSlides&&(c-=n[0].swiperSlideOffset);const d=(o+(i.centeredSlides?t.minTranslate():0)-c)/(l.swiperSlideSize+a),u=(o-s[0]+(i.centeredSlides?t.minTranslate():0)-c)/(l.swiperSlideSize+a),h=-(o-c),p=h+t.slidesSizesGrid[e],f=h>=0&&h<=t.size-t.slidesSizesGrid[e];(h>=0&&h<t.size-1||p>1&&p<=t.size||h<=0&&p>=t.size)&&(t.visibleSlides.push(l),t.visibleSlidesIndexes.push(e),n[e].classList.add(i.slideVisibleClass)),f&&n[e].classList.add(i.slideFullyVisibleClass),l.progress=r?-d:d,l.originalProgress=r?-u:u}},updateProgress:function(e){const t=this;if(void 0===e){const i=t.rtlTranslate?-1:1;e=t&&t.translate&&t.translate*i||0}const i=t.params,n=t.maxTranslate()-t.minTranslate();let{progress:r,isBeginning:s,isEnd:o,progressLoop:a}=t;const l=s,c=o;if(0===n)r=0,s=!0,o=!0;else{r=(e-t.minTranslate())/n;const i=Math.abs(e-t.minTranslate())<1,a=Math.abs(e-t.maxTranslate())<1;s=i||r<=0,o=a||r>=1,i&&(r=0),a&&(r=1)}if(i.loop){const i=t.getSlideIndexByData(0),n=t.getSlideIndexByData(t.slides.length-1),r=t.slidesGrid[i],s=t.slidesGrid[n],o=t.slidesGrid[t.slidesGrid.length-1],l=Math.abs(e);a=l>=r?(l-r)/o:(l+o-s)/o,a>1&&(a-=1)}Object.assign(t,{progress:r,progressLoop:a,isBeginning:s,isEnd:o}),(i.watchSlidesProgress||i.centeredSlides&&i.autoHeight)&&t.updateSlidesProgress(e),s&&!l&&t.emit("reachBeginning toEdge"),o&&!c&&t.emit("reachEnd toEdge"),(l&&!s||c&&!o)&&t.emit("fromEdge"),t.emit("progress",r)},updateSlidesClasses:function(){const e=this,{slides:t,params:i,slidesEl:n,activeIndex:r}=e,s=e.virtual&&i.virtual.enabled,o=e.grid&&i.grid&&i.grid.rows>1,a=e=>ld(n,`.${i.slideClass}${e}, swiper-slide${e}`)[0];let l,c,d;if(t.forEach((e=>{e.classList.remove(i.slideActiveClass,i.slideNextClass,i.slidePrevClass)})),s)if(i.loop){let t=r-e.virtual.slidesBefore;t<0&&(t=e.virtual.slides.length+t),t>=e.virtual.slides.length&&(t-=e.virtual.slides.length),l=a(`[data-swiper-slide-index="${t}"]`)}else l=a(`[data-swiper-slide-index="${r}"]`);else o?(l=t.filter((e=>e.column===r))[0],d=t.filter((e=>e.column===r+1))[0],c=t.filter((e=>e.column===r-1))[0]):l=t[r];l&&(l.classList.add(i.slideActiveClass),o?(d&&d.classList.add(i.slideNextClass),c&&c.classList.add(i.slidePrevClass)):(d=function(e,t){const i=[];for(;e.nextElementSibling;){const n=e.nextElementSibling;t?n.matches(t)&&i.push(n):i.push(n),e=n}return i}(l,`.${i.slideClass}, swiper-slide`)[0],i.loop&&!d&&(d=t[0]),d&&d.classList.add(i.slideNextClass),c=function(e,t){const i=[];for(;e.previousElementSibling;){const n=e.previousElementSibling;t?n.matches(t)&&i.push(n):i.push(n),e=n}return i}(l,`.${i.slideClass}, swiper-slide`)[0],i.loop&&0===!c&&(c=t[t.length-1]),c&&c.classList.add(i.slidePrevClass))),e.emitSlidesClasses()},updateActiveIndex:function(e){const t=this,i=t.rtlTranslate?t.translate:-t.translate,{snapGrid:n,params:r,activeIndex:s,realIndex:o,snapIndex:a}=t;let l,c=e;const d=e=>{let i=e-t.virtual.slidesBefore;return i<0&&(i=t.virtual.slides.length+i),i>=t.virtual.slides.length&&(i-=t.virtual.slides.length),i};if(void 0===c&&(c=function(e){const{slidesGrid:t,params:i}=e,n=e.rtlTranslate?e.translate:-e.translate;let r;for(let e=0;e<t.length;e+=1)void 0!==t[e+1]?n>=t[e]&&n<t[e+1]-(t[e+1]-t[e])/2?r=e:n>=t[e]&&n<t[e+1]&&(r=e+1):n>=t[e]&&(r=e);return i.normalizeSlideIndex&&(r<0||void 0===r)&&(r=0),r}(t)),n.indexOf(i)>=0)l=n.indexOf(i);else{const e=Math.min(r.slidesPerGroupSkip,c);l=e+Math.floor((c-e)/r.slidesPerGroup)}if(l>=n.length&&(l=n.length-1),c===s&&!t.params.loop)return void(l!==a&&(t.snapIndex=l,t.emit("snapIndexChange")));if(c===s&&t.params.loop&&t.virtual&&t.params.virtual.enabled)return void(t.realIndex=d(c));const u=t.grid&&r.grid&&r.grid.rows>1;let h;if(t.virtual&&r.virtual.enabled&&r.loop)h=d(c);else if(u){const e=t.slides.filter((e=>e.column===c))[0];let i=parseInt(e.getAttribute("data-swiper-slide-index"),10);Number.isNaN(i)&&(i=Math.max(t.slides.indexOf(e),0)),h=Math.floor(i/r.grid.rows)}else if(t.slides[c]){const e=t.slides[c].getAttribute("data-swiper-slide-index");h=e?parseInt(e,10):c}else h=c;Object.assign(t,{previousSnapIndex:a,snapIndex:l,previousRealIndex:o,realIndex:h,previousIndex:s,activeIndex:c}),t.initialized&&Td(t),t.emit("activeIndexChange"),t.emit("snapIndexChange"),(t.initialized||t.params.runCallbacksOnInit)&&(o!==h&&t.emit("realIndexChange"),t.emit("slideChange"))},updateClickedSlide:function(e,t){const i=this,n=i.params;let r=e.closest(`.${n.slideClass}, swiper-slide`);!r&&i.isElement&&t&&t.length>1&&t.includes(e)&&[...t.slice(t.indexOf(e)+1,t.length)].forEach((e=>{!r&&e.matches&&e.matches(`.${n.slideClass}, swiper-slide`)&&(r=e)}));let s,o=!1;if(r)for(let e=0;e<i.slides.length;e+=1)if(i.slides[e]===r){o=!0,s=e;break}if(!r||!o)return i.clickedSlide=void 0,void(i.clickedIndex=void 0);i.clickedSlide=r,i.virtual&&i.params.virtual.enabled?i.clickedIndex=parseInt(r.getAttribute("data-swiper-slide-index"),10):i.clickedIndex=s,n.slideToClickedSlide&&void 0!==i.clickedIndex&&i.clickedIndex!==i.activeIndex&&i.slideToClickedSlide()}},_d={getTranslate:function(e){void 0===e&&(e=this.isHorizontal()?"x":"y");const{params:t,rtlTranslate:i,translate:n,wrapperEl:r}=this;if(t.virtualTranslate)return i?-n:n;if(t.cssMode)return n;let s=function(e,t){void 0===t&&(t="x");const i=ed();let n,r,s;const o=function(e){const t=ed();let i;return t.getComputedStyle&&(i=t.getComputedStyle(e,null)),!i&&e.currentStyle&&(i=e.currentStyle),i||(i=e.style),i}(e);return i.WebKitCSSMatrix?(r=o.transform||o.webkitTransform,r.split(",").length>6&&(r=r.split(", ").map((e=>e.replace(",","."))).join(", ")),s=new i.WebKitCSSMatrix("none"===r?"":r)):(s=o.MozTransform||o.OTransform||o.MsTransform||o.msTransform||o.transform||o.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,"),n=s.toString().split(",")),"x"===t&&(r=i.WebKitCSSMatrix?s.m41:16===n.length?parseFloat(n[12]):parseFloat(n[4])),"y"===t&&(r=i.WebKitCSSMatrix?s.m42:16===n.length?parseFloat(n[13]):parseFloat(n[5])),r||0}(r,e);return s+=this.cssOverflowAdjustment(),i&&(s=-s),s||0},setTranslate:function(e,t){const i=this,{rtlTranslate:n,params:r,wrapperEl:s,progress:o}=i;let a,l=0,c=0;i.isHorizontal()?l=n?-e:e:c=e,r.roundLengths&&(l=Math.floor(l),c=Math.floor(c)),i.previousTranslate=i.translate,i.translate=i.isHorizontal()?l:c,r.cssMode?s[i.isHorizontal()?"scrollLeft":"scrollTop"]=i.isHorizontal()?-l:-c:r.virtualTranslate||(i.isHorizontal()?l-=i.cssOverflowAdjustment():c-=i.cssOverflowAdjustment(),s.style.transform=`translate3d(${l}px, ${c}px, 0px)`);const d=i.maxTranslate()-i.minTranslate();a=0===d?0:(e-i.minTranslate())/d,a!==o&&i.updateProgress(e),i.emit("setTranslate",i.translate,t)},minTranslate:function(){return-this.snapGrid[0]},maxTranslate:function(){return-this.snapGrid[this.snapGrid.length-1]},translateTo:function(e,t,i,n,r){void 0===e&&(e=0),void 0===t&&(t=this.params.speed),void 0===i&&(i=!0),void 0===n&&(n=!0);const s=this,{params:o,wrapperEl:a}=s;if(s.animating&&o.preventInteractionOnTransition)return!1;const l=s.minTranslate(),c=s.maxTranslate();let d;if(d=n&&e>l?l:n&&e<c?c:e,s.updateProgress(d),o.cssMode){const e=s.isHorizontal();if(0===t)a[e?"scrollLeft":"scrollTop"]=-d;else{if(!s.support.smoothScroll)return od({swiper:s,targetPosition:-d,side:e?"left":"top"}),!0;a.scrollTo({[e?"left":"top"]:-d,behavior:"smooth"})}return!0}return 0===t?(s.setTransition(0),s.setTranslate(d),i&&(s.emit("beforeTransitionStart",t,r),s.emit("transitionEnd"))):(s.setTransition(t),s.setTranslate(d),i&&(s.emit("beforeTransitionStart",t,r),s.emit("transitionStart")),s.animating||(s.animating=!0,s.onTranslateToWrapperTransitionEnd||(s.onTranslateToWrapperTransitionEnd=function(e){s&&!s.destroyed&&e.target===this&&(s.wrapperEl.removeEventListener("transitionend",s.onTranslateToWrapperTransitionEnd),s.onTranslateToWrapperTransitionEnd=null,delete s.onTranslateToWrapperTransitionEnd,i&&s.emit("transitionEnd"))}),s.wrapperEl.addEventListener("transitionend",s.onTranslateToWrapperTransitionEnd))),!0}};function Ed(e){let{swiper:t,runCallbacks:i,direction:n,step:r}=e;const{activeIndex:s,previousIndex:o}=t;let a=n;if(a||(a=s>o?"next":s<o?"prev":"reset"),t.emit(`transition${r}`),i&&s!==o){if("reset"===a)return void t.emit(`slideResetTransition${r}`);t.emit(`slideChangeTransition${r}`),"next"===a?t.emit(`slideNextTransition${r}`):t.emit(`slidePrevTransition${r}`)}}var Cd={slideTo:function(e,t,i,n,r){void 0===e&&(e=0),void 0===t&&(t=this.params.speed),void 0===i&&(i=!0),"string"==typeof e&&(e=parseInt(e,10));const s=this;let o=e;o<0&&(o=0);const{params:a,snapGrid:l,slidesGrid:c,previousIndex:d,activeIndex:u,rtlTranslate:h,wrapperEl:p,enabled:f}=s;if(s.animating&&a.preventInteractionOnTransition||!f&&!n&&!r)return!1;const m=Math.min(s.params.slidesPerGroupSkip,o);let g=m+Math.floor((o-m)/s.params.slidesPerGroup);g>=l.length&&(g=l.length-1);const v=-l[g];if(a.normalizeSlideIndex)for(let e=0;e<c.length;e+=1){const t=-Math.floor(100*v),i=Math.floor(100*c[e]),n=Math.floor(100*c[e+1]);void 0!==c[e+1]?t>=i&&t<n-(n-i)/2?o=e:t>=i&&t<n&&(o=e+1):t>=i&&(o=e)}if(s.initialized&&o!==u){if(!s.allowSlideNext&&(h?v>s.translate&&v>s.minTranslate():v<s.translate&&v<s.minTranslate()))return!1;if(!s.allowSlidePrev&&v>s.translate&&v>s.maxTranslate()&&(u||0)!==o)return!1}let b;if(o!==(d||0)&&i&&s.emit("beforeSlideChangeStart"),s.updateProgress(v),b=o>u?"next":o<u?"prev":"reset",h&&-v===s.translate||!h&&v===s.translate)return s.updateActiveIndex(o),a.autoHeight&&s.updateAutoHeight(),s.updateSlidesClasses(),"slide"!==a.effect&&s.setTranslate(v),"reset"!==b&&(s.transitionStart(i,b),s.transitionEnd(i,b)),!1;if(a.cssMode){const e=s.isHorizontal(),i=h?v:-v;if(0===t){const t=s.virtual&&s.params.virtual.enabled;t&&(s.wrapperEl.style.scrollSnapType="none",s._immediateVirtual=!0),t&&!s._cssModeVirtualInitialSet&&s.params.initialSlide>0?(s._cssModeVirtualInitialSet=!0,requestAnimationFrame((()=>{p[e?"scrollLeft":"scrollTop"]=i}))):p[e?"scrollLeft":"scrollTop"]=i,t&&requestAnimationFrame((()=>{s.wrapperEl.style.scrollSnapType="",s._immediateVirtual=!1}))}else{if(!s.support.smoothScroll)return od({swiper:s,targetPosition:i,side:e?"left":"top"}),!0;p.scrollTo({[e?"left":"top"]:i,behavior:"smooth"})}return!0}return s.setTransition(t),s.setTranslate(v),s.updateActiveIndex(o),s.updateSlidesClasses(),s.emit("beforeTransitionStart",t,n),s.transitionStart(i,b),0===t?s.transitionEnd(i,b):s.animating||(s.animating=!0,s.onSlideToWrapperTransitionEnd||(s.onSlideToWrapperTransitionEnd=function(e){s&&!s.destroyed&&e.target===this&&(s.wrapperEl.removeEventListener("transitionend",s.onSlideToWrapperTransitionEnd),s.onSlideToWrapperTransitionEnd=null,delete s.onSlideToWrapperTransitionEnd,s.transitionEnd(i,b))}),s.wrapperEl.addEventListener("transitionend",s.onSlideToWrapperTransitionEnd)),!0},slideToLoop:function(e,t,i,n){void 0===e&&(e=0),void 0===t&&(t=this.params.speed),void 0===i&&(i=!0),"string"==typeof e&&(e=parseInt(e,10));const r=this,s=r.grid&&r.params.grid&&r.params.grid.rows>1;let o=e;if(r.params.loop)if(r.virtual&&r.params.virtual.enabled)o+=r.virtual.slidesBefore;else{let e;if(s){const t=o*r.params.grid.rows;e=r.slides.filter((e=>1*e.getAttribute("data-swiper-slide-index")===t))[0].column}else e=r.getSlideIndexByData(o);const t=s?Math.ceil(r.slides.length/r.params.grid.rows):r.slides.length,{centeredSlides:i}=r.params;let n=r.params.slidesPerView;"auto"===n?n=r.slidesPerViewDynamic():(n=Math.ceil(parseFloat(r.params.slidesPerView,10)),i&&n%2==0&&(n+=1));let a=t-e<n;if(i&&(a=a||e<Math.ceil(n/2)),a){const n=i?e<r.activeIndex?"prev":"next":e-r.activeIndex-1<r.params.slidesPerView?"next":"prev";r.loopFix({direction:n,slideTo:!0,activeSlideIndex:"next"===n?e+1:e-t+1,slideRealIndex:"next"===n?r.realIndex:void 0})}if(s){const e=o*r.params.grid.rows;o=r.slides.filter((t=>1*t.getAttribute("data-swiper-slide-index")===e))[0].column}else o=r.getSlideIndexByData(o)}return requestAnimationFrame((()=>{r.slideTo(o,t,i,n)})),r},slideNext:function(e,t,i){void 0===e&&(e=this.params.speed),void 0===t&&(t=!0);const n=this,{enabled:r,params:s,animating:o}=n;if(!r)return n;let a=s.slidesPerGroup;"auto"===s.slidesPerView&&1===s.slidesPerGroup&&s.slidesPerGroupAuto&&(a=Math.max(n.slidesPerViewDynamic("current",!0),1));const l=n.activeIndex<s.slidesPerGroupSkip?1:a,c=n.virtual&&s.virtual.enabled;if(s.loop){if(o&&!c&&s.loopPreventsSliding)return!1;if(n.loopFix({direction:"next"}),n._clientLeft=n.wrapperEl.clientLeft,n.activeIndex===n.slides.length-1&&s.cssMode)return requestAnimationFrame((()=>{n.slideTo(n.activeIndex+l,e,t,i)})),!0}return s.rewind&&n.isEnd?n.slideTo(0,e,t,i):n.slideTo(n.activeIndex+l,e,t,i)},slidePrev:function(e,t,i){void 0===e&&(e=this.params.speed),void 0===t&&(t=!0);const n=this,{params:r,snapGrid:s,slidesGrid:o,rtlTranslate:a,enabled:l,animating:c}=n;if(!l)return n;const d=n.virtual&&r.virtual.enabled;if(r.loop){if(c&&!d&&r.loopPreventsSliding)return!1;n.loopFix({direction:"prev"}),n._clientLeft=n.wrapperEl.clientLeft}function u(e){return e<0?-Math.floor(Math.abs(e)):Math.floor(e)}const h=u(a?n.translate:-n.translate),p=s.map((e=>u(e)));let f=s[p.indexOf(h)-1];if(void 0===f&&r.cssMode){let e;s.forEach(((t,i)=>{h>=t&&(e=i)})),void 0!==e&&(f=s[e>0?e-1:e])}let m=0;if(void 0!==f&&(m=o.indexOf(f),m<0&&(m=n.activeIndex-1),"auto"===r.slidesPerView&&1===r.slidesPerGroup&&r.slidesPerGroupAuto&&(m=m-n.slidesPerViewDynamic("previous",!0)+1,m=Math.max(m,0))),r.rewind&&n.isBeginning){const r=n.params.virtual&&n.params.virtual.enabled&&n.virtual?n.virtual.slides.length-1:n.slides.length-1;return n.slideTo(r,e,t,i)}return r.loop&&0===n.activeIndex&&r.cssMode?(requestAnimationFrame((()=>{n.slideTo(m,e,t,i)})),!0):n.slideTo(m,e,t,i)},slideReset:function(e,t,i){return void 0===e&&(e=this.params.speed),void 0===t&&(t=!0),this.slideTo(this.activeIndex,e,t,i)},slideToClosest:function(e,t,i,n){void 0===e&&(e=this.params.speed),void 0===t&&(t=!0),void 0===n&&(n=.5);const r=this;let s=r.activeIndex;const o=Math.min(r.params.slidesPerGroupSkip,s),a=o+Math.floor((s-o)/r.params.slidesPerGroup),l=r.rtlTranslate?r.translate:-r.translate;if(l>=r.snapGrid[a]){const e=r.snapGrid[a];l-e>(r.snapGrid[a+1]-e)*n&&(s+=r.params.slidesPerGroup)}else{const e=r.snapGrid[a-1];l-e<=(r.snapGrid[a]-e)*n&&(s-=r.params.slidesPerGroup)}return s=Math.max(s,0),s=Math.min(s,r.slidesGrid.length-1),r.slideTo(s,e,t,i)},slideToClickedSlide:function(){const e=this,{params:t,slidesEl:i}=e,n="auto"===t.slidesPerView?e.slidesPerViewDynamic():t.slidesPerView;let r,s=e.clickedIndex;const o=e.isElement?"swiper-slide":`.${t.slideClass}`;if(t.loop){if(e.animating)return;r=parseInt(e.clickedSlide.getAttribute("data-swiper-slide-index"),10),t.centeredSlides?s<e.loopedSlides-n/2||s>e.slides.length-e.loopedSlides+n/2?(e.loopFix(),s=e.getSlideIndex(ld(i,`${o}[data-swiper-slide-index="${r}"]`)[0]),td((()=>{e.slideTo(s)}))):e.slideTo(s):s>e.slides.length-n?(e.loopFix(),s=e.getSlideIndex(ld(i,`${o}[data-swiper-slide-index="${r}"]`)[0]),td((()=>{e.slideTo(s)}))):e.slideTo(s)}else e.slideTo(s)}},Md={loopCreate:function(e){const t=this,{params:i,slidesEl:n}=t;if(!i.loop||t.virtual&&t.params.virtual.enabled)return;const r=()=>{ld(n,`.${i.slideClass}, swiper-slide`).forEach(((e,t)=>{e.setAttribute("data-swiper-slide-index",t)}))},s=t.grid&&i.grid&&i.grid.rows>1,o=i.slidesPerGroup*(s?i.grid.rows:1),a=t.slides.length%o!=0,l=s&&t.slides.length%i.grid.rows!=0,c=e=>{for(let n=0;n<e;n+=1){const e=t.isElement?dd("swiper-slide",[i.slideBlankClass]):dd("div",[i.slideClass,i.slideBlankClass]);t.slidesEl.append(e)}};a?(i.loopAddBlankSlides?(c(o-t.slides.length%o),t.recalcSlides(),t.updateSlides()):cd("Swiper Loop Warning: The number of slides is not even to slidesPerGroup, loop mode may not function properly. You need to add more slides (or make duplicates, or empty slides)"),r()):l?(i.loopAddBlankSlides?(c(i.grid.rows-t.slides.length%i.grid.rows),t.recalcSlides(),t.updateSlides()):cd("Swiper Loop Warning: The number of slides is not even to grid.rows, loop mode may not function properly. You need to add more slides (or make duplicates, or empty slides)"),r()):r(),t.loopFix({slideRealIndex:e,direction:i.centeredSlides?void 0:"next"})},loopFix:function(e){let{slideRealIndex:t,slideTo:i=!0,direction:n,setTranslate:r,activeSlideIndex:s,byController:o,byMousewheel:a}=void 0===e?{}:e;const l=this;if(!l.params.loop)return;l.emit("beforeLoopFix");const{slides:c,allowSlidePrev:d,allowSlideNext:u,slidesEl:h,params:p}=l,{centeredSlides:f}=p;if(l.allowSlidePrev=!0,l.allowSlideNext=!0,l.virtual&&p.virtual.enabled)return i&&(p.centeredSlides||0!==l.snapIndex?p.centeredSlides&&l.snapIndex<p.slidesPerView?l.slideTo(l.virtual.slides.length+l.snapIndex,0,!1,!0):l.snapIndex===l.snapGrid.length-1&&l.slideTo(l.virtual.slidesBefore,0,!1,!0):l.slideTo(l.virtual.slides.length,0,!1,!0)),l.allowSlidePrev=d,l.allowSlideNext=u,void l.emit("loopFix");let m=p.slidesPerView;"auto"===m?m=l.slidesPerViewDynamic():(m=Math.ceil(parseFloat(p.slidesPerView,10)),f&&m%2==0&&(m+=1));const g=p.slidesPerGroupAuto?m:p.slidesPerGroup;let v=g;v%g!=0&&(v+=g-v%g),v+=p.loopAdditionalSlides,l.loopedSlides=v;const b=l.grid&&p.grid&&p.grid.rows>1;c.length<m+v?cd("Swiper Loop Warning: The number of slides is not enough for loop mode, it will be disabled and not function properly. You need to add more slides (or make duplicates) or lower the values of slidesPerView and slidesPerGroup parameters"):b&&"row"===p.grid.fill&&cd("Swiper Loop Warning: Loop mode is not compatible with grid.fill = `row`");const y=[],w=[];let x=l.activeIndex;void 0===s?s=l.getSlideIndex(c.filter((e=>e.classList.contains(p.slideActiveClass)))[0]):x=s;const T="next"===n||!n,S="prev"===n||!n;let _=0,E=0;const C=b?Math.ceil(c.length/p.grid.rows):c.length,M=(b?c[s].column:s)+(f&&void 0===r?-m/2+.5:0);if(M<v){_=Math.max(v-M,g);for(let e=0;e<v-M;e+=1){const t=e-Math.floor(e/C)*C;if(b){const e=C-t-1;for(let t=c.length-1;t>=0;t-=1)c[t].column===e&&y.push(t)}else y.push(C-t-1)}}else if(M+m>C-v){E=Math.max(M-(C-2*v),g);for(let e=0;e<E;e+=1){const t=e-Math.floor(e/C)*C;b?c.forEach(((e,i)=>{e.column===t&&w.push(i)})):w.push(t)}}if(l.__preventObserver__=!0,requestAnimationFrame((()=>{l.__preventObserver__=!1})),S&&y.forEach((e=>{c[e].swiperLoopMoveDOM=!0,h.prepend(c[e]),c[e].swiperLoopMoveDOM=!1})),T&&w.forEach((e=>{c[e].swiperLoopMoveDOM=!0,h.append(c[e]),c[e].swiperLoopMoveDOM=!1})),l.recalcSlides(),"auto"===p.slidesPerView?l.updateSlides():b&&(y.length>0&&S||w.length>0&&T)&&l.slides.forEach(((e,t)=>{l.grid.updateSlide(t,e,l.slides)})),p.watchSlidesProgress&&l.updateSlidesOffset(),i)if(y.length>0&&S){if(void 0===t){const e=l.slidesGrid[x],t=l.slidesGrid[x+_]-e;a?l.setTranslate(l.translate-t):(l.slideTo(x+_,0,!1,!0),r&&(l.touchEventsData.startTranslate=l.touchEventsData.startTranslate-t,l.touchEventsData.currentTranslate=l.touchEventsData.currentTranslate-t))}else if(r){const e=b?y.length/p.grid.rows:y.length;l.slideTo(l.activeIndex+e,0,!1,!0),l.touchEventsData.currentTranslate=l.translate}}else if(w.length>0&&T)if(void 0===t){const e=l.slidesGrid[x],t=l.slidesGrid[x-E]-e;a?l.setTranslate(l.translate-t):(l.slideTo(x-E,0,!1,!0),r&&(l.touchEventsData.startTranslate=l.touchEventsData.startTranslate-t,l.touchEventsData.currentTranslate=l.touchEventsData.currentTranslate-t))}else{const e=b?w.length/p.grid.rows:w.length;l.slideTo(l.activeIndex-e,0,!1,!0)}if(l.allowSlidePrev=d,l.allowSlideNext=u,l.controller&&l.controller.control&&!o){const e={slideRealIndex:t,direction:n,setTranslate:r,activeSlideIndex:s,byController:!0};Array.isArray(l.controller.control)?l.controller.control.forEach((t=>{!t.destroyed&&t.params.loop&&t.loopFix({...e,slideTo:t.params.slidesPerView===p.slidesPerView&&i})})):l.controller.control instanceof l.constructor&&l.controller.control.params.loop&&l.controller.control.loopFix({...e,slideTo:l.controller.control.params.slidesPerView===p.slidesPerView&&i})}l.emit("loopFix")},loopDestroy:function(){const e=this,{params:t,slidesEl:i}=e;if(!t.loop||e.virtual&&e.params.virtual.enabled)return;e.recalcSlides();const n=[];e.slides.forEach((e=>{const t=void 0===e.swiperSlideIndex?1*e.getAttribute("data-swiper-slide-index"):e.swiperSlideIndex;n[t]=e})),e.slides.forEach((e=>{e.removeAttribute("data-swiper-slide-index")})),n.forEach((e=>{i.append(e)})),e.recalcSlides(),e.slideTo(e.realIndex,0)}};function Pd(e,t,i){const n=ed(),{params:r}=e,s=r.edgeSwipeDetection,o=r.edgeSwipeThreshold;return!s||!(i<=o||i>=n.innerWidth-o)||"prevent"===s&&(t.preventDefault(),!0)}function Od(e){const t=this,i=Jc();let n=e;n.originalEvent&&(n=n.originalEvent);const r=t.touchEventsData;if("pointerdown"===n.type){if(null!==r.pointerId&&r.pointerId!==n.pointerId)return;r.pointerId=n.pointerId}else"touchstart"===n.type&&1===n.targetTouches.length&&(r.touchId=n.targetTouches[0].identifier);if("touchstart"===n.type)return void Pd(t,n,n.targetTouches[0].pageX);const{params:s,touches:o,enabled:a}=t;if(!a)return;if(!s.simulateTouch&&"mouse"===n.pointerType)return;if(t.animating&&s.preventInteractionOnTransition)return;!t.animating&&s.cssMode&&s.loop&&t.loopFix();let l=n.target;if("wrapper"===s.touchEventsTarget&&!t.wrapperEl.contains(l))return;if("which"in n&&3===n.which)return;if("button"in n&&n.button>0)return;if(r.isTouched&&r.isMoved)return;const c=!!s.noSwipingClass&&""!==s.noSwipingClass,d=n.composedPath?n.composedPath():n.path;c&&n.target&&n.target.shadowRoot&&d&&(l=d[0]);const u=s.noSwipingSelector?s.noSwipingSelector:`.${s.noSwipingClass}`,h=!(!n.target||!n.target.shadowRoot);if(s.noSwiping&&(h?function(e,t){return void 0===t&&(t=this),function t(i){if(!i||i===Jc()||i===ed())return null;i.assignedSlot&&(i=i.assignedSlot);const n=i.closest(e);return n||i.getRootNode?n||t(i.getRootNode().host):null}(t)}(u,l):l.closest(u)))return void(t.allowClick=!0);if(s.swipeHandler&&!l.closest(s.swipeHandler))return;o.currentX=n.pageX,o.currentY=n.pageY;const p=o.currentX,f=o.currentY;if(!Pd(t,n,p))return;Object.assign(r,{isTouched:!0,isMoved:!1,allowTouchCallbacks:!0,isScrolling:void 0,startMoving:void 0}),o.startX=p,o.startY=f,r.touchStartTime=id(),t.allowClick=!0,t.updateSize(),t.swipeDirection=void 0,s.threshold>0&&(r.allowThresholdMove=!1);let m=!0;l.matches(r.focusableElements)&&(m=!1,"SELECT"===l.nodeName&&(r.isTouched=!1)),i.activeElement&&i.activeElement.matches(r.focusableElements)&&i.activeElement!==l&&i.activeElement.blur();const g=m&&t.allowTouchMove&&s.touchStartPreventDefault;!s.touchStartForcePreventDefault&&!g||l.isContentEditable||n.preventDefault(),s.freeMode&&s.freeMode.enabled&&t.freeMode&&t.animating&&!s.cssMode&&t.freeMode.onTouchStart(),t.emit("touchStart",n)}function kd(e){const t=Jc(),i=this,n=i.touchEventsData,{params:r,touches:s,rtlTranslate:o,enabled:a}=i;if(!a)return;if(!r.simulateTouch&&"mouse"===e.pointerType)return;let l,c=e;if(c.originalEvent&&(c=c.originalEvent),"pointermove"===c.type){if(null!==n.touchId)return;if(c.pointerId!==n.pointerId)return}if("touchmove"===c.type){if(l=[...c.changedTouches].filter((e=>e.identifier===n.touchId))[0],!l||l.identifier!==n.touchId)return}else l=c;if(!n.isTouched)return void(n.startMoving&&n.isScrolling&&i.emit("touchMoveOpposite",c));const d=l.pageX,u=l.pageY;if(c.preventedByNestedSwiper)return s.startX=d,void(s.startY=u);if(!i.allowTouchMove)return c.target.matches(n.focusableElements)||(i.allowClick=!1),void(n.isTouched&&(Object.assign(s,{startX:d,startY:u,currentX:d,currentY:u}),n.touchStartTime=id()));if(r.touchReleaseOnEdges&&!r.loop)if(i.isVertical()){if(u<s.startY&&i.translate<=i.maxTranslate()||u>s.startY&&i.translate>=i.minTranslate())return n.isTouched=!1,void(n.isMoved=!1)}else if(d<s.startX&&i.translate<=i.maxTranslate()||d>s.startX&&i.translate>=i.minTranslate())return;if(t.activeElement&&c.target===t.activeElement&&c.target.matches(n.focusableElements))return n.isMoved=!0,void(i.allowClick=!1);n.allowTouchCallbacks&&i.emit("touchMove",c),s.previousX=s.currentX,s.previousY=s.currentY,s.currentX=d,s.currentY=u;const h=s.currentX-s.startX,p=s.currentY-s.startY;if(i.params.threshold&&Math.sqrt(h**2+p**2)<i.params.threshold)return;if(void 0===n.isScrolling){let e;i.isHorizontal()&&s.currentY===s.startY||i.isVertical()&&s.currentX===s.startX?n.isScrolling=!1:h*h+p*p>=25&&(e=180*Math.atan2(Math.abs(p),Math.abs(h))/Math.PI,n.isScrolling=i.isHorizontal()?e>r.touchAngle:90-e>r.touchAngle)}if(n.isScrolling&&i.emit("touchMoveOpposite",c),void 0===n.startMoving&&(s.currentX===s.startX&&s.currentY===s.startY||(n.startMoving=!0)),n.isScrolling)return void(n.isTouched=!1);if(!n.startMoving)return;i.allowClick=!1,!r.cssMode&&c.cancelable&&c.preventDefault(),r.touchMoveStopPropagation&&!r.nested&&c.stopPropagation();let f=i.isHorizontal()?h:p,m=i.isHorizontal()?s.currentX-s.previousX:s.currentY-s.previousY;r.oneWayMovement&&(f=Math.abs(f)*(o?1:-1),m=Math.abs(m)*(o?1:-1)),s.diff=f,f*=r.touchRatio,o&&(f=-f,m=-m);const g=i.touchesDirection;i.swipeDirection=f>0?"prev":"next",i.touchesDirection=m>0?"prev":"next";const v=i.params.loop&&!r.cssMode,b="next"===i.touchesDirection&&i.allowSlideNext||"prev"===i.touchesDirection&&i.allowSlidePrev;if(!n.isMoved){if(v&&b&&i.loopFix({direction:i.swipeDirection}),n.startTranslate=i.getTranslate(),i.setTransition(0),i.animating){const e=new window.CustomEvent("transitionend",{bubbles:!0,cancelable:!0});i.wrapperEl.dispatchEvent(e)}n.allowMomentumBounce=!1,!r.grabCursor||!0!==i.allowSlideNext&&!0!==i.allowSlidePrev||i.setGrabCursor(!0),i.emit("sliderFirstMove",c)}if((new Date).getTime(),n.isMoved&&n.allowThresholdMove&&g!==i.touchesDirection&&v&&b&&Math.abs(f)>=1)return Object.assign(s,{startX:d,startY:u,currentX:d,currentY:u,startTranslate:n.currentTranslate}),n.loopSwapReset=!0,void(n.startTranslate=n.currentTranslate);i.emit("sliderMove",c),n.isMoved=!0,n.currentTranslate=f+n.startTranslate;let y=!0,w=r.resistanceRatio;if(r.touchReleaseOnEdges&&(w=0),f>0?(v&&b&&n.allowThresholdMove&&n.currentTranslate>(r.centeredSlides?i.minTranslate()-i.slidesSizesGrid[i.activeIndex+1]:i.minTranslate())&&i.loopFix({direction:"prev",setTranslate:!0,activeSlideIndex:0}),n.currentTranslate>i.minTranslate()&&(y=!1,r.resistance&&(n.currentTranslate=i.minTranslate()-1+(-i.minTranslate()+n.startTranslate+f)**w))):f<0&&(v&&b&&n.allowThresholdMove&&n.currentTranslate<(r.centeredSlides?i.maxTranslate()+i.slidesSizesGrid[i.slidesSizesGrid.length-1]:i.maxTranslate())&&i.loopFix({direction:"next",setTranslate:!0,activeSlideIndex:i.slides.length-("auto"===r.slidesPerView?i.slidesPerViewDynamic():Math.ceil(parseFloat(r.slidesPerView,10)))}),n.currentTranslate<i.maxTranslate()&&(y=!1,r.resistance&&(n.currentTranslate=i.maxTranslate()+1-(i.maxTranslate()-n.startTranslate-f)**w))),y&&(c.preventedByNestedSwiper=!0),!i.allowSlideNext&&"next"===i.swipeDirection&&n.currentTranslate<n.startTranslate&&(n.currentTranslate=n.startTranslate),!i.allowSlidePrev&&"prev"===i.swipeDirection&&n.currentTranslate>n.startTranslate&&(n.currentTranslate=n.startTranslate),i.allowSlidePrev||i.allowSlideNext||(n.currentTranslate=n.startTranslate),r.threshold>0){if(!(Math.abs(f)>r.threshold||n.allowThresholdMove))return void(n.currentTranslate=n.startTranslate);if(!n.allowThresholdMove)return n.allowThresholdMove=!0,s.startX=s.currentX,s.startY=s.currentY,n.currentTranslate=n.startTranslate,void(s.diff=i.isHorizontal()?s.currentX-s.startX:s.currentY-s.startY)}r.followFinger&&!r.cssMode&&((r.freeMode&&r.freeMode.enabled&&i.freeMode||r.watchSlidesProgress)&&(i.updateActiveIndex(),i.updateSlidesClasses()),r.freeMode&&r.freeMode.enabled&&i.freeMode&&i.freeMode.onTouchMove(),i.updateProgress(n.currentTranslate),i.setTranslate(n.currentTranslate))}function Ad(e){const t=this,i=t.touchEventsData;let n,r=e;if(r.originalEvent&&(r=r.originalEvent),"touchend"===r.type||"touchcancel"===r.type){if(n=[...r.changedTouches].filter((e=>e.identifier===i.touchId))[0],!n||n.identifier!==i.touchId)return}else{if(null!==i.touchId)return;if(r.pointerId!==i.pointerId)return;n=r}if(["pointercancel","pointerout","pointerleave","contextmenu"].includes(r.type)&&(!["pointercancel","contextmenu"].includes(r.type)||!t.browser.isSafari&&!t.browser.isWebView))return;i.pointerId=null,i.touchId=null;const{params:s,touches:o,rtlTranslate:a,slidesGrid:l,enabled:c}=t;if(!c)return;if(!s.simulateTouch&&"mouse"===r.pointerType)return;if(i.allowTouchCallbacks&&t.emit("touchEnd",r),i.allowTouchCallbacks=!1,!i.isTouched)return i.isMoved&&s.grabCursor&&t.setGrabCursor(!1),i.isMoved=!1,void(i.startMoving=!1);s.grabCursor&&i.isMoved&&i.isTouched&&(!0===t.allowSlideNext||!0===t.allowSlidePrev)&&t.setGrabCursor(!1);const d=id(),u=d-i.touchStartTime;if(t.allowClick){const e=r.path||r.composedPath&&r.composedPath();t.updateClickedSlide(e&&e[0]||r.target,e),t.emit("tap click",r),u<300&&d-i.lastClickTime<300&&t.emit("doubleTap doubleClick",r)}if(i.lastClickTime=id(),td((()=>{t.destroyed||(t.allowClick=!0)})),!i.isTouched||!i.isMoved||!t.swipeDirection||0===o.diff&&!i.loopSwapReset||i.currentTranslate===i.startTranslate&&!i.loopSwapReset)return i.isTouched=!1,i.isMoved=!1,void(i.startMoving=!1);let h;if(i.isTouched=!1,i.isMoved=!1,i.startMoving=!1,h=s.followFinger?a?t.translate:-t.translate:-i.currentTranslate,s.cssMode)return;if(s.freeMode&&s.freeMode.enabled)return void t.freeMode.onTouchEnd({currentPos:h});const p=h>=-t.maxTranslate()&&!t.params.loop;let f=0,m=t.slidesSizesGrid[0];for(let e=0;e<l.length;e+=e<s.slidesPerGroupSkip?1:s.slidesPerGroup){const t=e<s.slidesPerGroupSkip-1?1:s.slidesPerGroup;void 0!==l[e+t]?(p||h>=l[e]&&h<l[e+t])&&(f=e,m=l[e+t]-l[e]):(p||h>=l[e])&&(f=e,m=l[l.length-1]-l[l.length-2])}let g=null,v=null;s.rewind&&(t.isBeginning?v=s.virtual&&s.virtual.enabled&&t.virtual?t.virtual.slides.length-1:t.slides.length-1:t.isEnd&&(g=0));const b=(h-l[f])/m,y=f<s.slidesPerGroupSkip-1?1:s.slidesPerGroup;if(u>s.longSwipesMs){if(!s.longSwipes)return void t.slideTo(t.activeIndex);"next"===t.swipeDirection&&(b>=s.longSwipesRatio?t.slideTo(s.rewind&&t.isEnd?g:f+y):t.slideTo(f)),"prev"===t.swipeDirection&&(b>1-s.longSwipesRatio?t.slideTo(f+y):null!==v&&b<0&&Math.abs(b)>s.longSwipesRatio?t.slideTo(v):t.slideTo(f))}else{if(!s.shortSwipes)return void t.slideTo(t.activeIndex);!t.navigation||r.target!==t.navigation.nextEl&&r.target!==t.navigation.prevEl?("next"===t.swipeDirection&&t.slideTo(null!==g?g:f+y),"prev"===t.swipeDirection&&t.slideTo(null!==v?v:f)):r.target===t.navigation.nextEl?t.slideTo(f+y):t.slideTo(f)}}function Ld(){const e=this,{params:t,el:i}=e;if(i&&0===i.offsetWidth)return;t.breakpoints&&e.setBreakpoint();const{allowSlideNext:n,allowSlidePrev:r,snapGrid:s}=e,o=e.virtual&&e.params.virtual.enabled;e.allowSlideNext=!0,e.allowSlidePrev=!0,e.updateSize(),e.updateSlides(),e.updateSlidesClasses();const a=o&&t.loop;!("auto"===t.slidesPerView||t.slidesPerView>1)||!e.isEnd||e.isBeginning||e.params.centeredSlides||a?e.params.loop&&!o?e.slideToLoop(e.realIndex,0,!1,!0):e.slideTo(e.activeIndex,0,!1,!0):e.slideTo(e.slides.length-1,0,!1,!0),e.autoplay&&e.autoplay.running&&e.autoplay.paused&&(clearTimeout(e.autoplay.resizeTimeout),e.autoplay.resizeTimeout=setTimeout((()=>{e.autoplay&&e.autoplay.running&&e.autoplay.paused&&e.autoplay.resume()}),500)),e.allowSlidePrev=r,e.allowSlideNext=n,e.params.watchOverflow&&s!==e.snapGrid&&e.checkOverflow()}function zd(e){const t=this;t.enabled&&(t.allowClick||(t.params.preventClicks&&e.preventDefault(),t.params.preventClicksPropagation&&t.animating&&(e.stopPropagation(),e.stopImmediatePropagation())))}function Id(){const e=this,{wrapperEl:t,rtlTranslate:i,enabled:n}=e;if(!n)return;let r;e.previousTranslate=e.translate,e.isHorizontal()?e.translate=-t.scrollLeft:e.translate=-t.scrollTop,0===e.translate&&(e.translate=0),e.updateActiveIndex(),e.updateSlidesClasses();const s=e.maxTranslate()-e.minTranslate();r=0===s?0:(e.translate-e.minTranslate())/s,r!==e.progress&&e.updateProgress(i?-e.translate:e.translate),e.emit("setTranslate",e.translate,!1)}function Rd(e){const t=this;wd(t,e.target),t.params.cssMode||"auto"!==t.params.slidesPerView&&!t.params.autoHeight||t.update()}function Dd(){const e=this;e.documentTouchHandlerProceeded||(e.documentTouchHandlerProceeded=!0,e.params.touchReleaseOnEdges&&(e.el.style.touchAction="auto"))}const Fd=(e,t)=>{const i=Jc(),{params:n,el:r,wrapperEl:s,device:o}=e,a=!!n.nested,l="on"===t?"addEventListener":"removeEventListener",c=t;i[l]("touchstart",e.onDocumentTouchStart,{passive:!1,capture:a}),r[l]("touchstart",e.onTouchStart,{passive:!1}),r[l]("pointerdown",e.onTouchStart,{passive:!1}),i[l]("touchmove",e.onTouchMove,{passive:!1,capture:a}),i[l]("pointermove",e.onTouchMove,{passive:!1,capture:a}),i[l]("touchend",e.onTouchEnd,{passive:!0}),i[l]("pointerup",e.onTouchEnd,{passive:!0}),i[l]("pointercancel",e.onTouchEnd,{passive:!0}),i[l]("touchcancel",e.onTouchEnd,{passive:!0}),i[l]("pointerout",e.onTouchEnd,{passive:!0}),i[l]("pointerleave",e.onTouchEnd,{passive:!0}),i[l]("contextmenu",e.onTouchEnd,{passive:!0}),(n.preventClicks||n.preventClicksPropagation)&&r[l]("click",e.onClick,!0),n.cssMode&&s[l]("scroll",e.onScroll),n.updateOnWindowResize?e[c](o.ios||o.android?"resize orientationchange observerUpdate":"resize observerUpdate",Ld,!0):e[c]("observerUpdate",Ld,!0),r[l]("load",e.onLoad,{capture:!0})},Bd=(e,t)=>e.grid&&t.grid&&t.grid.rows>1;var jd={setBreakpoint:function(){const e=this,{realIndex:t,initialized:i,params:n,el:r}=e,s=n.breakpoints;if(!s||s&&0===Object.keys(s).length)return;const o=e.getBreakpoint(s,e.params.breakpointsBase,e.el);if(!o||e.currentBreakpoint===o)return;const a=(o in s?s[o]:void 0)||e.originalParams,l=Bd(e,n),c=Bd(e,a),d=n.enabled;l&&!c?(r.classList.remove(`${n.containerModifierClass}grid`,`${n.containerModifierClass}grid-column`),e.emitContainerClasses()):!l&&c&&(r.classList.add(`${n.containerModifierClass}grid`),(a.grid.fill&&"column"===a.grid.fill||!a.grid.fill&&"column"===n.grid.fill)&&r.classList.add(`${n.containerModifierClass}grid-column`),e.emitContainerClasses()),["navigation","pagination","scrollbar"].forEach((t=>{if(void 0===a[t])return;const i=n[t]&&n[t].enabled,r=a[t]&&a[t].enabled;i&&!r&&e[t].disable(),!i&&r&&e[t].enable()}));const u=a.direction&&a.direction!==n.direction,h=n.loop&&(a.slidesPerView!==n.slidesPerView||u),p=n.loop;u&&i&&e.changeDirection(),rd(e.params,a);const f=e.params.enabled,m=e.params.loop;Object.assign(e,{allowTouchMove:e.params.allowTouchMove,allowSlideNext:e.params.allowSlideNext,allowSlidePrev:e.params.allowSlidePrev}),d&&!f?e.disable():!d&&f&&e.enable(),e.currentBreakpoint=o,e.emit("_beforeBreakpoint",a),i&&(h?(e.loopDestroy(),e.loopCreate(t),e.updateSlides()):!p&&m?(e.loopCreate(t),e.updateSlides()):p&&!m&&e.loopDestroy()),e.emit("breakpoint",a)},getBreakpoint:function(e,t,i){if(void 0===t&&(t="window"),!e||"container"===t&&!i)return;let n=!1;const r=ed(),s="window"===t?r.innerHeight:i.clientHeight,o=Object.keys(e).map((e=>{if("string"==typeof e&&0===e.indexOf("@")){const t=parseFloat(e.substr(1));return{value:s*t,point:e}}return{value:e,point:e}}));o.sort(((e,t)=>parseInt(e.value,10)-parseInt(t.value,10)));for(let e=0;e<o.length;e+=1){const{point:s,value:a}=o[e];"window"===t?r.matchMedia(`(min-width: ${a}px)`).matches&&(n=s):a<=i.clientWidth&&(n=s)}return n||"max"}},Nd={init:!0,direction:"horizontal",oneWayMovement:!1,touchEventsTarget:"wrapper",initialSlide:0,speed:300,cssMode:!1,updateOnWindowResize:!0,resizeObserver:!0,nested:!1,createElements:!1,eventsPrefix:"swiper",enabled:!0,focusableElements:"input, select, option, textarea, button, video, label",width:null,height:null,preventInteractionOnTransition:!1,userAgent:null,url:null,edgeSwipeDetection:!1,edgeSwipeThreshold:20,autoHeight:!1,setWrapperSize:!1,virtualTranslate:!1,effect:"slide",breakpoints:void 0,breakpointsBase:"window",spaceBetween:0,slidesPerView:1,slidesPerGroup:1,slidesPerGroupSkip:0,slidesPerGroupAuto:!1,centeredSlides:!1,centeredSlidesBounds:!1,slidesOffsetBefore:0,slidesOffsetAfter:0,normalizeSlideIndex:!0,centerInsufficientSlides:!1,watchOverflow:!0,roundLengths:!1,touchRatio:1,touchAngle:45,simulateTouch:!0,shortSwipes:!0,longSwipes:!0,longSwipesRatio:.5,longSwipesMs:300,followFinger:!0,allowTouchMove:!0,threshold:5,touchMoveStopPropagation:!1,touchStartPreventDefault:!0,touchStartForcePreventDefault:!1,touchReleaseOnEdges:!1,uniqueNavElements:!0,resistance:!0,resistanceRatio:.85,watchSlidesProgress:!1,grabCursor:!1,preventClicks:!0,preventClicksPropagation:!0,slideToClickedSlide:!1,loop:!1,loopAddBlankSlides:!0,loopAdditionalSlides:0,loopPreventsSliding:!0,rewind:!1,allowSlidePrev:!0,allowSlideNext:!0,swipeHandler:null,noSwiping:!0,noSwipingClass:"swiper-no-swiping",noSwipingSelector:null,passiveListeners:!0,maxBackfaceHiddenSlides:10,containerModifierClass:"swiper-",slideClass:"swiper-slide",slideBlankClass:"swiper-slide-blank",slideActiveClass:"swiper-slide-active",slideVisibleClass:"swiper-slide-visible",slideFullyVisibleClass:"swiper-slide-fully-visible",slideNextClass:"swiper-slide-next",slidePrevClass:"swiper-slide-prev",wrapperClass:"swiper-wrapper",lazyPreloaderClass:"swiper-lazy-preloader",lazyPreloadPrevNext:0,runCallbacksOnInit:!0,_emitClasses:!1};function Hd(e,t){return function(i){void 0===i&&(i={});const n=Object.keys(i)[0],r=i[n];"object"==typeof r&&null!==r?(!0===e[n]&&(e[n]={enabled:!0}),"navigation"===n&&e[n]&&e[n].enabled&&!e[n].prevEl&&!e[n].nextEl&&(e[n].auto=!0),["pagination","scrollbar"].indexOf(n)>=0&&e[n]&&e[n].enabled&&!e[n].el&&(e[n].auto=!0),n in e&&"enabled"in r?("object"!=typeof e[n]||"enabled"in e[n]||(e[n].enabled=!0),e[n]||(e[n]={enabled:!1}),rd(t,i)):rd(t,i)):rd(t,i)}}const $d={eventsEmitter:yd,update:Sd,translate:_d,transition:{setTransition:function(e,t){const i=this;i.params.cssMode||(i.wrapperEl.style.transitionDuration=`${e}ms`,i.wrapperEl.style.transitionDelay=0===e?"0ms":""),i.emit("setTransition",e,t)},transitionStart:function(e,t){void 0===e&&(e=!0);const i=this,{params:n}=i;n.cssMode||(n.autoHeight&&i.updateAutoHeight(),Ed({swiper:i,runCallbacks:e,direction:t,step:"Start"}))},transitionEnd:function(e,t){void 0===e&&(e=!0);const i=this,{params:n}=i;i.animating=!1,n.cssMode||(i.setTransition(0),Ed({swiper:i,runCallbacks:e,direction:t,step:"End"}))}},slide:Cd,loop:Md,grabCursor:{setGrabCursor:function(e){const t=this;if(!t.params.simulateTouch||t.params.watchOverflow&&t.isLocked||t.params.cssMode)return;const i="container"===t.params.touchEventsTarget?t.el:t.wrapperEl;t.isElement&&(t.__preventObserver__=!0),i.style.cursor="move",i.style.cursor=e?"grabbing":"grab",t.isElement&&requestAnimationFrame((()=>{t.__preventObserver__=!1}))},unsetGrabCursor:function(){const e=this;e.params.watchOverflow&&e.isLocked||e.params.cssMode||(e.isElement&&(e.__preventObserver__=!0),e["container"===e.params.touchEventsTarget?"el":"wrapperEl"].style.cursor="",e.isElement&&requestAnimationFrame((()=>{e.__preventObserver__=!1})))}},events:{attachEvents:function(){const e=this,{params:t}=e;e.onTouchStart=Od.bind(e),e.onTouchMove=kd.bind(e),e.onTouchEnd=Ad.bind(e),e.onDocumentTouchStart=Dd.bind(e),t.cssMode&&(e.onScroll=Id.bind(e)),e.onClick=zd.bind(e),e.onLoad=Rd.bind(e),Fd(e,"on")},detachEvents:function(){Fd(this,"off")}},breakpoints:jd,checkOverflow:{checkOverflow:function(){const e=this,{isLocked:t,params:i}=e,{slidesOffsetBefore:n}=i;if(n){const t=e.slides.length-1,i=e.slidesGrid[t]+e.slidesSizesGrid[t]+2*n;e.isLocked=e.size>i}else e.isLocked=1===e.snapGrid.length;!0===i.allowSlideNext&&(e.allowSlideNext=!e.isLocked),!0===i.allowSlidePrev&&(e.allowSlidePrev=!e.isLocked),t&&t!==e.isLocked&&(e.isEnd=!1),t!==e.isLocked&&e.emit(e.isLocked?"lock":"unlock")}},classes:{addClasses:function(){const e=this,{classNames:t,params:i,rtl:n,el:r,device:s}=e,o=function(e,t){const i=[];return e.forEach((e=>{"object"==typeof e?Object.keys(e).forEach((n=>{e[n]&&i.push(t+n)})):"string"==typeof e&&i.push(t+e)})),i}(["initialized",i.direction,{"free-mode":e.params.freeMode&&i.freeMode.enabled},{autoheight:i.autoHeight},{rtl:n},{grid:i.grid&&i.grid.rows>1},{"grid-column":i.grid&&i.grid.rows>1&&"column"===i.grid.fill},{android:s.android},{ios:s.ios},{"css-mode":i.cssMode},{centered:i.cssMode&&i.centeredSlides},{"watch-progress":i.watchSlidesProgress}],i.containerModifierClass);t.push(...o),r.classList.add(...t),e.emitContainerClasses()},removeClasses:function(){const{el:e,classNames:t}=this;e.classList.remove(...t),this.emitContainerClasses()}}},qd={};class Yd{constructor(){let e,t;for(var i=arguments.length,n=new Array(i),r=0;r<i;r++)n[r]=arguments[r];1===n.length&&n[0].constructor&&"Object"===Object.prototype.toString.call(n[0]).slice(8,-1)?t=n[0]:[e,t]=n,t||(t={}),t=rd({},t),e&&!t.el&&(t.el=e);const s=Jc();if(t.el&&"string"==typeof t.el&&s.querySelectorAll(t.el).length>1){const e=[];return s.querySelectorAll(t.el).forEach((i=>{const n=rd({},t,{el:i});e.push(new Yd(n))})),e}const o=this;var a;o.__swiper__=!0,o.support=bd(),o.device=(void 0===(a={userAgent:t.userAgent})&&(a={}),gd||(gd=function(e){let{userAgent:t}=void 0===e?{}:e;const i=bd(),n=ed(),r=n.navigator.platform,s=t||n.navigator.userAgent,o={ios:!1,android:!1},a=n.screen.width,l=n.screen.height,c=s.match(/(Android);?[\s\/]+([\d.]+)?/);let d=s.match(/(iPad).*OS\s([\d_]+)/);const u=s.match(/(iPod)(.*OS\s([\d_]+))?/),h=!d&&s.match(/(iPhone\sOS|iOS)\s([\d_]+)/),p="Win32"===r;let f="MacIntel"===r;return!d&&f&&i.touch&&["1024x1366","1366x1024","834x1194","1194x834","834x1112","1112x834","768x1024","1024x768","820x1180","1180x820","810x1080","1080x810"].indexOf(`${a}x${l}`)>=0&&(d=s.match(/(Version)\/([\d.]+)/),d||(d=[0,1,"13_0_0"]),f=!1),c&&!p&&(o.os="android",o.android=!0),(d||h||u)&&(o.os="ios",o.ios=!0),o}(a)),gd),o.browser=(vd||(vd=function(){const e=ed();let t=!1;function i(){const t=e.navigator.userAgent.toLowerCase();return t.indexOf("safari")>=0&&t.indexOf("chrome")<0&&t.indexOf("android")<0}if(i()){const i=String(e.navigator.userAgent);if(i.includes("Version/")){const[e,n]=i.split("Version/")[1].split(" ")[0].split(".").map((e=>Number(e)));t=e<16||16===e&&n<2}}return{isSafari:t||i(),needPerspectiveFix:t,isWebView:/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(e.navigator.userAgent)}}()),vd),o.eventsListeners={},o.eventsAnyListeners=[],o.modules=[...o.__modules__],t.modules&&Array.isArray(t.modules)&&o.modules.push(...t.modules);const l={};o.modules.forEach((e=>{e({params:t,swiper:o,extendParams:Hd(t,l),on:o.on.bind(o),once:o.once.bind(o),off:o.off.bind(o),emit:o.emit.bind(o)})}));const c=rd({},Nd,l);return o.params=rd({},c,qd,t),o.originalParams=rd({},o.params),o.passedParams=rd({},t),o.params&&o.params.on&&Object.keys(o.params.on).forEach((e=>{o.on(e,o.params.on[e])})),o.params&&o.params.onAny&&o.onAny(o.params.onAny),Object.assign(o,{enabled:o.params.enabled,el:e,classNames:[],slides:[],slidesGrid:[],snapGrid:[],slidesSizesGrid:[],isHorizontal(){return"horizontal"===o.params.direction},isVertical(){return"vertical"===o.params.direction},activeIndex:0,realIndex:0,isBeginning:!0,isEnd:!1,translate:0,previousTranslate:0,progress:0,velocity:0,animating:!1,cssOverflowAdjustment(){return Math.trunc(this.translate/2**23)*2**23},allowSlideNext:o.params.allowSlideNext,allowSlidePrev:o.params.allowSlidePrev,touchEventsData:{isTouched:void 0,isMoved:void 0,allowTouchCallbacks:void 0,touchStartTime:void 0,isScrolling:void 0,currentTranslate:void 0,startTranslate:void 0,allowThresholdMove:void 0,focusableElements:o.params.focusableElements,lastClickTime:0,clickTimeout:void 0,velocities:[],allowMomentumBounce:void 0,startMoving:void 0,pointerId:null,touchId:null},allowClick:!0,allowTouchMove:o.params.allowTouchMove,touches:{startX:0,startY:0,currentX:0,currentY:0,diff:0},imagesToLoad:[],imagesLoaded:0}),o.emit("_swiper"),o.params.init&&o.init(),o}getDirectionLabel(e){return this.isHorizontal()?e:{width:"height","margin-top":"margin-left","margin-bottom ":"margin-right","margin-left":"margin-top","margin-right":"margin-bottom","padding-left":"padding-top","padding-right":"padding-bottom",marginRight:"marginBottom"}[e]}getSlideIndex(e){const{slidesEl:t,params:i}=this,n=hd(ld(t,`.${i.slideClass}, swiper-slide`)[0]);return hd(e)-n}getSlideIndexByData(e){return this.getSlideIndex(this.slides.filter((t=>1*t.getAttribute("data-swiper-slide-index")===e))[0])}recalcSlides(){const{slidesEl:e,params:t}=this;this.slides=ld(e,`.${t.slideClass}, swiper-slide`)}enable(){const e=this;e.enabled||(e.enabled=!0,e.params.grabCursor&&e.setGrabCursor(),e.emit("enable"))}disable(){const e=this;e.enabled&&(e.enabled=!1,e.params.grabCursor&&e.unsetGrabCursor(),e.emit("disable"))}setProgress(e,t){const i=this;e=Math.min(Math.max(e,0),1);const n=i.minTranslate(),r=(i.maxTranslate()-n)*e+n;i.translateTo(r,void 0===t?0:t),i.updateActiveIndex(),i.updateSlidesClasses()}emitContainerClasses(){const e=this;if(!e.params._emitClasses||!e.el)return;const t=e.el.className.split(" ").filter((t=>0===t.indexOf("swiper")||0===t.indexOf(e.params.containerModifierClass)));e.emit("_containerClasses",t.join(" "))}getSlideClasses(e){const t=this;return t.destroyed?"":e.className.split(" ").filter((e=>0===e.indexOf("swiper-slide")||0===e.indexOf(t.params.slideClass))).join(" ")}emitSlidesClasses(){const e=this;if(!e.params._emitClasses||!e.el)return;const t=[];e.slides.forEach((i=>{const n=e.getSlideClasses(i);t.push({slideEl:i,classNames:n}),e.emit("_slideClass",i,n)})),e.emit("_slideClasses",t)}slidesPerViewDynamic(e,t){void 0===e&&(e="current"),void 0===t&&(t=!1);const{params:i,slides:n,slidesGrid:r,slidesSizesGrid:s,size:o,activeIndex:a}=this;let l=1;if("number"==typeof i.slidesPerView)return i.slidesPerView;if(i.centeredSlides){let e,t=n[a]?n[a].swiperSlideSize:0;for(let i=a+1;i<n.length;i+=1)n[i]&&!e&&(t+=n[i].swiperSlideSize,l+=1,t>o&&(e=!0));for(let i=a-1;i>=0;i-=1)n[i]&&!e&&(t+=n[i].swiperSlideSize,l+=1,t>o&&(e=!0))}else if("current"===e)for(let e=a+1;e<n.length;e+=1)(t?r[e]+s[e]-r[a]<o:r[e]-r[a]<o)&&(l+=1);else for(let e=a-1;e>=0;e-=1)r[a]-r[e]<o&&(l+=1);return l}update(){const e=this;if(!e||e.destroyed)return;const{snapGrid:t,params:i}=e;function n(){const t=e.rtlTranslate?-1*e.translate:e.translate,i=Math.min(Math.max(t,e.maxTranslate()),e.minTranslate());e.setTranslate(i),e.updateActiveIndex(),e.updateSlidesClasses()}let r;if(i.breakpoints&&e.setBreakpoint(),[...e.el.querySelectorAll('[loading="lazy"]')].forEach((t=>{t.complete&&wd(e,t)})),e.updateSize(),e.updateSlides(),e.updateProgress(),e.updateSlidesClasses(),i.freeMode&&i.freeMode.enabled&&!i.cssMode)n(),i.autoHeight&&e.updateAutoHeight();else{if(("auto"===i.slidesPerView||i.slidesPerView>1)&&e.isEnd&&!i.centeredSlides){const t=e.virtual&&i.virtual.enabled?e.virtual.slides:e.slides;r=e.slideTo(t.length-1,0,!1,!0)}else r=e.slideTo(e.activeIndex,0,!1,!0);r||n()}i.watchOverflow&&t!==e.snapGrid&&e.checkOverflow(),e.emit("update")}changeDirection(e,t){void 0===t&&(t=!0);const i=this,n=i.params.direction;return e||(e="horizontal"===n?"vertical":"horizontal"),e===n||"horizontal"!==e&&"vertical"!==e||(i.el.classList.remove(`${i.params.containerModifierClass}${n}`),i.el.classList.add(`${i.params.containerModifierClass}${e}`),i.emitContainerClasses(),i.params.direction=e,i.slides.forEach((t=>{"vertical"===e?t.style.width="":t.style.height=""})),i.emit("changeDirection"),t&&i.update()),i}changeLanguageDirection(e){const t=this;t.rtl&&"rtl"===e||!t.rtl&&"ltr"===e||(t.rtl="rtl"===e,t.rtlTranslate="horizontal"===t.params.direction&&t.rtl,t.rtl?(t.el.classList.add(`${t.params.containerModifierClass}rtl`),t.el.dir="rtl"):(t.el.classList.remove(`${t.params.containerModifierClass}rtl`),t.el.dir="ltr"),t.update())}mount(e){const t=this;if(t.mounted)return!0;let i=e||t.params.el;if("string"==typeof i&&(i=document.querySelector(i)),!i)return!1;i.swiper=t,i.parentNode&&i.parentNode.host&&"SWIPER-CONTAINER"===i.parentNode.host.nodeName&&(t.isElement=!0);const n=()=>`.${(t.params.wrapperClass||"").trim().split(" ").join(".")}`;let r=i&&i.shadowRoot&&i.shadowRoot.querySelector?i.shadowRoot.querySelector(n()):ld(i,n())[0];return!r&&t.params.createElements&&(r=dd("div",t.params.wrapperClass),i.append(r),ld(i,`.${t.params.slideClass}`).forEach((e=>{r.append(e)}))),Object.assign(t,{el:i,wrapperEl:r,slidesEl:t.isElement&&!i.parentNode.host.slideSlots?i.parentNode.host:r,hostEl:t.isElement?i.parentNode.host:i,mounted:!0,rtl:"rtl"===i.dir.toLowerCase()||"rtl"===ud(i,"direction"),rtlTranslate:"horizontal"===t.params.direction&&("rtl"===i.dir.toLowerCase()||"rtl"===ud(i,"direction")),wrongRTL:"-webkit-box"===ud(r,"display")}),!0}init(e){const t=this;if(t.initialized)return t;if(!1===t.mount(e))return t;t.emit("beforeInit"),t.params.breakpoints&&t.setBreakpoint(),t.addClasses(),t.updateSize(),t.updateSlides(),t.params.watchOverflow&&t.checkOverflow(),t.params.grabCursor&&t.enabled&&t.setGrabCursor(),t.params.loop&&t.virtual&&t.params.virtual.enabled?t.slideTo(t.params.initialSlide+t.virtual.slidesBefore,0,t.params.runCallbacksOnInit,!1,!0):t.slideTo(t.params.initialSlide,0,t.params.runCallbacksOnInit,!1,!0),t.params.loop&&t.loopCreate(),t.attachEvents();const i=[...t.el.querySelectorAll('[loading="lazy"]')];return t.isElement&&i.push(...t.hostEl.querySelectorAll('[loading="lazy"]')),i.forEach((e=>{e.complete?wd(t,e):e.addEventListener("load",(e=>{wd(t,e.target)}))})),Td(t),t.initialized=!0,Td(t),t.emit("init"),t.emit("afterInit"),t}destroy(e,t){void 0===e&&(e=!0),void 0===t&&(t=!0);const i=this,{params:n,el:r,wrapperEl:s,slides:o}=i;return void 0===i.params||i.destroyed||(i.emit("beforeDestroy"),i.initialized=!1,i.detachEvents(),n.loop&&i.loopDestroy(),t&&(i.removeClasses(),r.removeAttribute("style"),s.removeAttribute("style"),o&&o.length&&o.forEach((e=>{e.classList.remove(n.slideVisibleClass,n.slideFullyVisibleClass,n.slideActiveClass,n.slideNextClass,n.slidePrevClass),e.removeAttribute("style"),e.removeAttribute("data-swiper-slide-index")}))),i.emit("destroy"),Object.keys(i.eventsListeners).forEach((e=>{i.off(e)})),!1!==e&&(i.el.swiper=null,function(e){const t=e;Object.keys(t).forEach((e=>{try{t[e]=null}catch(e){}try{delete t[e]}catch(e){}}))}(i)),i.destroyed=!0),null}static extendDefaults(e){rd(qd,e)}static get extendedDefaults(){return qd}static get defaults(){return Nd}static installModule(e){Yd.prototype.__modules__||(Yd.prototype.__modules__=[]);const t=Yd.prototype.__modules__;"function"==typeof e&&t.indexOf(e)<0&&t.push(e)}static use(e){return Array.isArray(e)?(e.forEach((e=>Yd.installModule(e))),Yd):(Yd.installModule(e),Yd)}}function Xd(e,t,i,n){return e.params.createElements&&Object.keys(n).forEach((r=>{if(!i[r]&&!0===i.auto){let s=ld(e.el,`.${n[r]}`)[0];s||(s=dd("div",n[r]),s.className=n[r],e.el.append(s)),i[r]=s,t[r]=s}})),i}function Vd(e){return void 0===e&&(e=""),`.${e.trim().replace(/([\.:!+\/])/g,"\\$1").replace(/ /g,".")}`}function Gd(e){const{effect:t,swiper:i,on:n,setTranslate:r,setTransition:s,overwriteParams:o,perspective:a,recreateShadows:l,getEffectParams:c}=e;let d;n("beforeInit",(()=>{if(i.params.effect!==t)return;i.classNames.push(`${i.params.containerModifierClass}${t}`),a&&a()&&i.classNames.push(`${i.params.containerModifierClass}3d`);const e=o?o():{};Object.assign(i.params,e),Object.assign(i.originalParams,e)})),n("setTranslate",(()=>{i.params.effect===t&&r()})),n("setTransition",((e,n)=>{i.params.effect===t&&s(n)})),n("transitionEnd",(()=>{if(i.params.effect===t&&l){if(!c||!c().slideShadows)return;i.slides.forEach((e=>{e.querySelectorAll(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").forEach((e=>e.remove()))})),l()}})),n("virtualUpdate",(()=>{i.params.effect===t&&(i.slides.length||(d=!0),requestAnimationFrame((()=>{d&&i.slides&&i.slides.length&&(r(),d=!1)})))}))}function Wd(e,t){const i=ad(t);return i!==t&&(i.style.backfaceVisibility="hidden",i.style["-webkit-backface-visibility"]="hidden"),i}function Ud(e){let{swiper:t,duration:i,transformElements:n,allSlides:r}=e;const{activeIndex:s}=t;if(t.params.virtualTranslate&&0!==i){let e,i=!1;e=r?n:n.filter((e=>{const i=e.classList.contains("swiper-slide-transform")?(e=>e.parentElement?e.parentElement:t.slides.filter((t=>t.shadowRoot&&t.shadowRoot===e.parentNode))[0])(e):e;return t.getSlideIndex(i)===s})),e.forEach((e=>{!function(e,t){t&&e.addEventListener("transitionend",(function i(n){n.target===e&&(t.call(e,n),e.removeEventListener("transitionend",i))}))}(e,(()=>{if(i)return;if(!t||t.destroyed)return;i=!0,t.animating=!1;const e=new window.CustomEvent("transitionend",{bubbles:!0,cancelable:!0});t.wrapperEl.dispatchEvent(e)}))}))}}function Zd(e,t,i){const n=`swiper-slide-shadow${i?`-${i}`:""}${e?` swiper-slide-shadow-${e}`:""}`,r=ad(t);let s=r.querySelector(`.${n.split(" ").join(".")}`);return s||(s=dd("div",n.split(" ")),r.append(s)),s}Object.keys($d).forEach((e=>{Object.keys($d[e]).forEach((t=>{Yd.prototype[t]=$d[e][t]}))})),Yd.use([function(e){let{swiper:t,on:i,emit:n}=e;const r=ed();let s=null,o=null;const a=()=>{t&&!t.destroyed&&t.initialized&&(n("beforeResize"),n("resize"))},l=()=>{t&&!t.destroyed&&t.initialized&&n("orientationchange")};i("init",(()=>{t.params.resizeObserver&&void 0!==r.ResizeObserver?t&&!t.destroyed&&t.initialized&&(s=new ResizeObserver((e=>{o=r.requestAnimationFrame((()=>{const{width:i,height:n}=t;let r=i,s=n;e.forEach((e=>{let{contentBoxSize:i,contentRect:n,target:o}=e;o&&o!==t.el||(r=n?n.width:(i[0]||i).inlineSize,s=n?n.height:(i[0]||i).blockSize)})),r===i&&s===n||a()}))})),s.observe(t.el)):(r.addEventListener("resize",a),r.addEventListener("orientationchange",l))})),i("destroy",(()=>{o&&r.cancelAnimationFrame(o),s&&s.unobserve&&t.el&&(s.unobserve(t.el),s=null),r.removeEventListener("resize",a),r.removeEventListener("orientationchange",l)}))},function(e){let{swiper:t,extendParams:i,on:n,emit:r}=e;const s=[],o=ed(),a=function(e,i){void 0===i&&(i={});const n=new(o.MutationObserver||o.WebkitMutationObserver)((e=>{if(t.__preventObserver__)return;if(1===e.length)return void r("observerUpdate",e[0]);const i=function(){r("observerUpdate",e[0])};o.requestAnimationFrame?o.requestAnimationFrame(i):o.setTimeout(i,0)}));n.observe(e,{attributes:void 0===i.attributes||i.attributes,childList:void 0===i.childList||i.childList,characterData:void 0===i.characterData||i.characterData}),s.push(n)};i({observer:!1,observeParents:!1,observeSlideChildren:!1}),n("init",(()=>{if(t.params.observer){if(t.params.observeParents){const e=pd(t.hostEl);for(let t=0;t<e.length;t+=1)a(e[t])}a(t.hostEl,{childList:t.params.observeSlideChildren}),a(t.wrapperEl,{attributes:!1})}})),n("destroy",(()=>{s.forEach((e=>{e.disconnect()})),s.splice(0,s.length)}))}]),window.Swiper=Yd,window.N=function(e){let{swiper:t,extendParams:i,on:n,emit:r}=e;i({navigation:{nextEl:null,prevEl:null,hideOnClick:!1,disabledClass:"swiper-button-disabled",hiddenClass:"swiper-button-hidden",lockClass:"swiper-button-lock",navigationDisabledClass:"swiper-navigation-disabled"}}),t.navigation={nextEl:null,prevEl:null};const s=e=>(Array.isArray(e)?e:[e]).filter((e=>!!e));function o(e){let i;return e&&"string"==typeof e&&t.isElement&&(i=t.el.querySelector(e),i)?i:(e&&("string"==typeof e&&(i=[...document.querySelectorAll(e)]),t.params.uniqueNavElements&&"string"==typeof e&&i.length>1&&1===t.el.querySelectorAll(e).length&&(i=t.el.querySelector(e))),e&&!i?e:i)}function a(e,i){const n=t.params.navigation;(e=s(e)).forEach((e=>{e&&(e.classList[i?"add":"remove"](...n.disabledClass.split(" ")),"BUTTON"===e.tagName&&(e.disabled=i),t.params.watchOverflow&&t.enabled&&e.classList[t.isLocked?"add":"remove"](n.lockClass))}))}function l(){const{nextEl:e,prevEl:i}=t.navigation;if(t.params.loop)return a(i,!1),void a(e,!1);a(i,t.isBeginning&&!t.params.rewind),a(e,t.isEnd&&!t.params.rewind)}function c(e){e.preventDefault(),(!t.isBeginning||t.params.loop||t.params.rewind)&&(t.slidePrev(),r("navigationPrev"))}function d(e){e.preventDefault(),(!t.isEnd||t.params.loop||t.params.rewind)&&(t.slideNext(),r("navigationNext"))}function u(){const e=t.params.navigation;if(t.params.navigation=Xd(t,t.originalParams.navigation,t.params.navigation,{nextEl:"swiper-button-next",prevEl:"swiper-button-prev"}),!e.nextEl&&!e.prevEl)return;let i=o(e.nextEl),n=o(e.prevEl);Object.assign(t.navigation,{nextEl:i,prevEl:n}),i=s(i),n=s(n);const r=(i,n)=>{i&&i.addEventListener("click","next"===n?d:c),!t.enabled&&i&&i.classList.add(...e.lockClass.split(" "))};i.forEach((e=>r(e,"next"))),n.forEach((e=>r(e,"prev")))}function h(){let{nextEl:e,prevEl:i}=t.navigation;e=s(e),i=s(i);const n=(e,i)=>{e.removeEventListener("click","next"===i?d:c),e.classList.remove(...t.params.navigation.disabledClass.split(" "))};e.forEach((e=>n(e,"next"))),i.forEach((e=>n(e,"prev")))}n("init",(()=>{!1===t.params.navigation.enabled?p():(u(),l())})),n("toEdge fromEdge lock unlock",(()=>{l()})),n("destroy",(()=>{h()})),n("enable disable",(()=>{let{nextEl:e,prevEl:i}=t.navigation;e=s(e),i=s(i),t.enabled?l():[...e,...i].filter((e=>!!e)).forEach((e=>e.classList.add(t.params.navigation.lockClass)))})),n("click",((e,i)=>{let{nextEl:n,prevEl:o}=t.navigation;n=s(n),o=s(o);const a=i.target;if(t.params.navigation.hideOnClick&&!o.includes(a)&&!n.includes(a)){if(t.pagination&&t.params.pagination&&t.params.pagination.clickable&&(t.pagination.el===a||t.pagination.el.contains(a)))return;let e;n.length?e=n[0].classList.contains(t.params.navigation.hiddenClass):o.length&&(e=o[0].classList.contains(t.params.navigation.hiddenClass)),r(!0===e?"navigationShow":"navigationHide"),[...n,...o].filter((e=>!!e)).forEach((e=>e.classList.toggle(t.params.navigation.hiddenClass)))}}));const p=()=>{t.el.classList.add(...t.params.navigation.navigationDisabledClass.split(" ")),h()};Object.assign(t.navigation,{enable:()=>{t.el.classList.remove(...t.params.navigation.navigationDisabledClass.split(" ")),u(),l()},disable:p,update:l,init:u,destroy:h})},window.P=function(e){let{swiper:t,extendParams:i,on:n,emit:r}=e;const s="swiper-pagination";let o;i({pagination:{el:null,bulletElement:"span",clickable:!1,hideOnClick:!1,renderBullet:null,renderProgressbar:null,renderFraction:null,renderCustom:null,progressbarOpposite:!1,type:"bullets",dynamicBullets:!1,dynamicMainBullets:1,formatFractionCurrent:e=>e,formatFractionTotal:e=>e,bulletClass:`${s}-bullet`,bulletActiveClass:`${s}-bullet-active`,modifierClass:`${s}-`,currentClass:`${s}-current`,totalClass:`${s}-total`,hiddenClass:`${s}-hidden`,progressbarFillClass:`${s}-progressbar-fill`,progressbarOppositeClass:`${s}-progressbar-opposite`,clickableClass:`${s}-clickable`,lockClass:`${s}-lock`,horizontalClass:`${s}-horizontal`,verticalClass:`${s}-vertical`,paginationDisabledClass:`${s}-disabled`}}),t.pagination={el:null,bullets:[]};let a=0;const l=e=>(Array.isArray(e)?e:[e]).filter((e=>!!e));function c(){return!t.params.pagination.el||!t.pagination.el||Array.isArray(t.pagination.el)&&0===t.pagination.el.length}function d(e,i){const{bulletActiveClass:n}=t.params.pagination;e&&(e=e[("prev"===i?"previous":"next")+"ElementSibling"])&&(e.classList.add(`${n}-${i}`),(e=e[("prev"===i?"previous":"next")+"ElementSibling"])&&e.classList.add(`${n}-${i}-${i}`))}function u(e){const i=e.target.closest(Vd(t.params.pagination.bulletClass));if(!i)return;e.preventDefault();const n=hd(i)*t.params.slidesPerGroup;if(t.params.loop){if(t.realIndex===n)return;t.slideToLoop(n)}else t.slideTo(n)}function h(){const e=t.rtl,i=t.params.pagination;if(c())return;let n,s,u=t.pagination.el;u=l(u);const h=t.virtual&&t.params.virtual.enabled?t.virtual.slides.length:t.slides.length,p=t.params.loop?Math.ceil(h/t.params.slidesPerGroup):t.snapGrid.length;if(t.params.loop?(s=t.previousRealIndex||0,n=t.params.slidesPerGroup>1?Math.floor(t.realIndex/t.params.slidesPerGroup):t.realIndex):void 0!==t.snapIndex?(n=t.snapIndex,s=t.previousSnapIndex):(s=t.previousIndex||0,n=t.activeIndex||0),"bullets"===i.type&&t.pagination.bullets&&t.pagination.bullets.length>0){const r=t.pagination.bullets;let l,c,h;if(i.dynamicBullets&&(o=fd(r[0],t.isHorizontal()?"width":"height",!0),u.forEach((e=>{e.style[t.isHorizontal()?"width":"height"]=o*(i.dynamicMainBullets+4)+"px"})),i.dynamicMainBullets>1&&void 0!==s&&(a+=n-(s||0),a>i.dynamicMainBullets-1?a=i.dynamicMainBullets-1:a<0&&(a=0)),l=Math.max(n-a,0),c=l+(Math.min(r.length,i.dynamicMainBullets)-1),h=(c+l)/2),r.forEach((e=>{const t=[...["","-next","-next-next","-prev","-prev-prev","-main"].map((e=>`${i.bulletActiveClass}${e}`))].map((e=>"string"==typeof e&&e.includes(" ")?e.split(" "):e)).flat();e.classList.remove(...t)})),u.length>1)r.forEach((e=>{const r=hd(e);r===n?e.classList.add(...i.bulletActiveClass.split(" ")):t.isElement&&e.setAttribute("part","bullet"),i.dynamicBullets&&(r>=l&&r<=c&&e.classList.add(...`${i.bulletActiveClass}-main`.split(" ")),r===l&&d(e,"prev"),r===c&&d(e,"next"))}));else{const e=r[n];if(e&&e.classList.add(...i.bulletActiveClass.split(" ")),t.isElement&&r.forEach(((e,t)=>{e.setAttribute("part",t===n?"bullet-active":"bullet")})),i.dynamicBullets){const e=r[l],t=r[c];for(let e=l;e<=c;e+=1)r[e]&&r[e].classList.add(...`${i.bulletActiveClass}-main`.split(" "));d(e,"prev"),d(t,"next")}}if(i.dynamicBullets){const n=Math.min(r.length,i.dynamicMainBullets+4),s=(o*n-o)/2-h*o,a=e?"right":"left";r.forEach((e=>{e.style[t.isHorizontal()?a:"top"]=`${s}px`}))}}u.forEach(((e,s)=>{if("fraction"===i.type&&(e.querySelectorAll(Vd(i.currentClass)).forEach((e=>{e.textContent=i.formatFractionCurrent(n+1)})),e.querySelectorAll(Vd(i.totalClass)).forEach((e=>{e.textContent=i.formatFractionTotal(p)}))),"progressbar"===i.type){let r;r=i.progressbarOpposite?t.isHorizontal()?"vertical":"horizontal":t.isHorizontal()?"horizontal":"vertical";const s=(n+1)/p;let o=1,a=1;"horizontal"===r?o=s:a=s,e.querySelectorAll(Vd(i.progressbarFillClass)).forEach((e=>{e.style.transform=`translate3d(0,0,0) scaleX(${o}) scaleY(${a})`,e.style.transitionDuration=`${t.params.speed}ms`}))}"custom"===i.type&&i.renderCustom?(e.innerHTML=i.renderCustom(t,n+1,p),0===s&&r("paginationRender",e)):(0===s&&r("paginationRender",e),r("paginationUpdate",e)),t.params.watchOverflow&&t.enabled&&e.classList[t.isLocked?"add":"remove"](i.lockClass)}))}function p(){const e=t.params.pagination;if(c())return;const i=t.virtual&&t.params.virtual.enabled?t.virtual.slides.length:t.grid&&t.params.grid.rows>1?t.slides.length/Math.ceil(t.params.grid.rows):t.slides.length;let n=t.pagination.el;n=l(n);let s="";if("bullets"===e.type){let n=t.params.loop?Math.ceil(i/t.params.slidesPerGroup):t.snapGrid.length;t.params.freeMode&&t.params.freeMode.enabled&&n>i&&(n=i);for(let i=0;i<n;i+=1)e.renderBullet?s+=e.renderBullet.call(t,i,e.bulletClass):s+=`<${e.bulletElement} ${t.isElement?'part="bullet"':""} class="${e.bulletClass}"></${e.bulletElement}>`}"fraction"===e.type&&(s=e.renderFraction?e.renderFraction.call(t,e.currentClass,e.totalClass):`<span class="${e.currentClass}"></span> / <span class="${e.totalClass}"></span>`),"progressbar"===e.type&&(s=e.renderProgressbar?e.renderProgressbar.call(t,e.progressbarFillClass):`<span class="${e.progressbarFillClass}"></span>`),t.pagination.bullets=[],n.forEach((i=>{"custom"!==e.type&&(i.innerHTML=s||""),"bullets"===e.type&&t.pagination.bullets.push(...i.querySelectorAll(Vd(e.bulletClass)))})),"custom"!==e.type&&r("paginationRender",n[0])}function f(){t.params.pagination=Xd(t,t.originalParams.pagination,t.params.pagination,{el:"swiper-pagination"});const e=t.params.pagination;if(!e.el)return;let i;"string"==typeof e.el&&t.isElement&&(i=t.el.querySelector(e.el)),i||"string"!=typeof e.el||(i=[...document.querySelectorAll(e.el)]),i||(i=e.el),i&&0!==i.length&&(t.params.uniqueNavElements&&"string"==typeof e.el&&Array.isArray(i)&&i.length>1&&(i=[...t.el.querySelectorAll(e.el)],i.length>1&&(i=i.filter((e=>pd(e,".swiper")[0]===t.el))[0])),Array.isArray(i)&&1===i.length&&(i=i[0]),Object.assign(t.pagination,{el:i}),i=l(i),i.forEach((i=>{"bullets"===e.type&&e.clickable&&i.classList.add(...(e.clickableClass||"").split(" ")),i.classList.add(e.modifierClass+e.type),i.classList.add(t.isHorizontal()?e.horizontalClass:e.verticalClass),"bullets"===e.type&&e.dynamicBullets&&(i.classList.add(`${e.modifierClass}${e.type}-dynamic`),a=0,e.dynamicMainBullets<1&&(e.dynamicMainBullets=1)),"progressbar"===e.type&&e.progressbarOpposite&&i.classList.add(e.progressbarOppositeClass),e.clickable&&i.addEventListener("click",u),t.enabled||i.classList.add(e.lockClass)})))}function m(){const e=t.params.pagination;if(c())return;let i=t.pagination.el;i&&(i=l(i),i.forEach((i=>{i.classList.remove(e.hiddenClass),i.classList.remove(e.modifierClass+e.type),i.classList.remove(t.isHorizontal()?e.horizontalClass:e.verticalClass),e.clickable&&(i.classList.remove(...(e.clickableClass||"").split(" ")),i.removeEventListener("click",u))}))),t.pagination.bullets&&t.pagination.bullets.forEach((t=>t.classList.remove(...e.bulletActiveClass.split(" "))))}n("changeDirection",(()=>{if(!t.pagination||!t.pagination.el)return;const e=t.params.pagination;let{el:i}=t.pagination;i=l(i),i.forEach((i=>{i.classList.remove(e.horizontalClass,e.verticalClass),i.classList.add(t.isHorizontal()?e.horizontalClass:e.verticalClass)}))})),n("init",(()=>{!1===t.params.pagination.enabled?g():(f(),p(),h())})),n("activeIndexChange",(()=>{void 0===t.snapIndex&&h()})),n("snapIndexChange",(()=>{h()})),n("snapGridLengthChange",(()=>{p(),h()})),n("destroy",(()=>{m()})),n("enable disable",(()=>{let{el:e}=t.pagination;e&&(e=l(e),e.forEach((e=>e.classList[t.enabled?"remove":"add"](t.params.pagination.lockClass))))})),n("lock unlock",(()=>{h()})),n("click",((e,i)=>{const n=i.target,s=l(t.pagination.el);if(t.params.pagination.el&&t.params.pagination.hideOnClick&&s&&s.length>0&&!n.classList.contains(t.params.pagination.bulletClass)){if(t.navigation&&(t.navigation.nextEl&&n===t.navigation.nextEl||t.navigation.prevEl&&n===t.navigation.prevEl))return;const e=s[0].classList.contains(t.params.pagination.hiddenClass);r(!0===e?"paginationShow":"paginationHide"),s.forEach((e=>e.classList.toggle(t.params.pagination.hiddenClass)))}}));const g=()=>{t.el.classList.add(t.params.pagination.paginationDisabledClass);let{el:e}=t.pagination;e&&(e=l(e),e.forEach((e=>e.classList.add(t.params.pagination.paginationDisabledClass)))),m()};Object.assign(t.pagination,{enable:()=>{t.el.classList.remove(t.params.pagination.paginationDisabledClass);let{el:e}=t.pagination;e&&(e=l(e),e.forEach((e=>e.classList.remove(t.params.pagination.paginationDisabledClass)))),f(),p(),h()},disable:g,render:p,update:h,init:f,destroy:m})},window.EC=function(e){let{swiper:t,extendParams:i,on:n}=e;i({creativeEffect:{limitProgress:1,shadowPerProgress:!1,progressMultiplier:1,perspective:!0,prev:{translate:[0,0,0],rotate:[0,0,0],opacity:1,scale:1},next:{translate:[0,0,0],rotate:[0,0,0],opacity:1,scale:1}}});const r=e=>"string"==typeof e?e:`${e}px`;Gd({effect:"creative",swiper:t,on:n,setTranslate:()=>{const{slides:e,wrapperEl:i,slidesSizesGrid:n}=t,s=t.params.creativeEffect,{progressMultiplier:o}=s,a=t.params.centeredSlides;if(a){const e=n[0]/2-t.params.slidesOffsetBefore||0;i.style.transform=`translateX(calc(50% - ${e}px))`}for(let i=0;i<e.length;i+=1){const n=e[i],l=n.progress,c=Math.min(Math.max(n.progress,-s.limitProgress),s.limitProgress);let d=c;a||(d=Math.min(Math.max(n.originalProgress,-s.limitProgress),s.limitProgress));const u=n.swiperSlideOffset,h=[t.params.cssMode?-u-t.translate:-u,0,0],p=[0,0,0];let f=!1;t.isHorizontal()||(h[1]=h[0],h[0]=0);let m={translate:[0,0,0],rotate:[0,0,0],scale:1,opacity:1};c<0?(m=s.next,f=!0):c>0&&(m=s.prev,f=!0),h.forEach(((e,t)=>{h[t]=`calc(${e}px + (${r(m.translate[t])} * ${Math.abs(c*o)}))`})),p.forEach(((e,i)=>{let n=m.rotate[i]*Math.abs(c*o);t.browser&&t.browser.isSafari&&Math.abs(n)/90%2==1&&(n+=.001),p[i]=n})),n.style.zIndex=-Math.abs(Math.round(l))+e.length;const g=h.join(", "),v=`rotateX(${p[0]}deg) rotateY(${p[1]}deg) rotateZ(${p[2]}deg)`,b=d<0?`scale(${1+(1-m.scale)*d*o})`:`scale(${1-(1-m.scale)*d*o})`,y=d<0?1+(1-m.opacity)*d*o:1-(1-m.opacity)*d*o,w=`translate3d(${g}) ${v} ${b}`;if(f&&m.shadow||!f){let e=n.querySelector(".swiper-slide-shadow");if(!e&&m.shadow&&(e=Zd("creative",n)),e){const t=s.shadowPerProgress?c*(1/s.limitProgress):c;e.style.opacity=Math.min(Math.max(Math.abs(t),0),1)}}const x=Wd(0,n);x.style.transform=w,x.style.opacity=y,m.origin&&(x.style.transformOrigin=m.origin)}},setTransition:e=>{const i=t.slides.map((e=>ad(e)));i.forEach((t=>{t.style.transitionDuration=`${e}ms`,t.querySelectorAll(".swiper-slide-shadow").forEach((t=>{t.style.transitionDuration=`${e}ms`}))})),Ud({swiper:t,duration:e,transformElements:i,allSlides:!0})},perspective:()=>t.params.creativeEffect.perspective,overwriteParams:()=>({watchSlidesProgress:!0,virtualTranslate:!t.params.cssMode})})},window.EF=function(e){let{swiper:t,extendParams:i,on:n}=e;i({fadeEffect:{crossFade:!1}}),Gd({effect:"fade",swiper:t,on:n,setTranslate:()=>{const{slides:e}=t;t.params.fadeEffect;for(let i=0;i<e.length;i+=1){const e=t.slides[i];let n=-e.swiperSlideOffset;t.params.virtualTranslate||(n-=t.translate);let r=0;t.isHorizontal()||(r=n,n=0);const s=t.params.fadeEffect.crossFade?Math.max(1-Math.abs(e.progress),0):1+Math.min(Math.max(e.progress,-1),0),o=Wd(0,e);o.style.opacity=s,o.style.transform=`translate3d(${n}px, ${r}px, 0px)`}},setTransition:e=>{const i=t.slides.map((e=>ad(e)));i.forEach((t=>{t.style.transitionDuration=`${e}ms`})),Ud({swiper:t,duration:e,transformElements:i,allSlides:!0})},overwriteParams:()=>({slidesPerView:1,slidesPerGroup:1,watchSlidesProgress:!0,spaceBetween:0,virtualTranslate:!t.params.cssMode})})},window.Px=function(e){let{swiper:t,extendParams:i,on:n}=e;i({parallax:{enabled:!1}});const r="[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y], [data-swiper-parallax-opacity], [data-swiper-parallax-scale]",s=(e,i)=>{const{rtl:n}=t,r=n?-1:1,s=e.getAttribute("data-swiper-parallax")||"0";let o=e.getAttribute("data-swiper-parallax-x"),a=e.getAttribute("data-swiper-parallax-y");const l=e.getAttribute("data-swiper-parallax-scale"),c=e.getAttribute("data-swiper-parallax-opacity"),d=e.getAttribute("data-swiper-parallax-rotate");if(o||a?(o=o||"0",a=a||"0"):t.isHorizontal()?(o=s,a="0"):(a=s,o="0"),o=o.indexOf("%")>=0?parseInt(o,10)*i*r+"%":o*i*r+"px",a=a.indexOf("%")>=0?parseInt(a,10)*i+"%":a*i+"px",null!=c){const t=c-(c-1)*(1-Math.abs(i));e.style.opacity=t}let u=`translate3d(${o}, ${a}, 0px)`;null!=l&&(u+=` scale(${l-(l-1)*(1-Math.abs(i))})`),d&&null!=d&&(u+=` rotate(${d*i*-1}deg)`),e.style.transform=u},o=()=>{const{el:e,slides:i,progress:n,snapGrid:o,isElement:a}=t,l=ld(e,r);t.isElement&&l.push(...ld(t.hostEl,r)),l.forEach((e=>{s(e,n)})),i.forEach(((e,i)=>{let a=e.progress;t.params.slidesPerGroup>1&&"auto"!==t.params.slidesPerView&&(a+=Math.ceil(i/2)-n*(o.length-1)),a=Math.min(Math.max(a,-1),1),e.querySelectorAll(`${r}, [data-swiper-parallax-rotate]`).forEach((e=>{s(e,a)}))}))};n("beforeInit",(()=>{t.params.parallax.enabled&&(t.params.watchSlidesProgress=!0,t.originalParams.watchSlidesProgress=!0)})),n("init",(()=>{t.params.parallax.enabled&&o()})),n("setTranslate",(()=>{t.params.parallax.enabled&&o()})),n("setTransition",((e,i)=>{t.params.parallax.enabled&&function(e){void 0===e&&(e=t.params.speed);const{el:i,hostEl:n}=t,s=[...i.querySelectorAll(r)];t.isElement&&s.push(...n.querySelectorAll(r)),s.forEach((t=>{let i=parseInt(t.getAttribute("data-swiper-parallax-duration"),10)||e;0===e&&(i=0),t.style.transitionDuration=`${i}ms`}))}(i)}))},window.A=function(e){let t,i,{swiper:n,extendParams:r,on:s,emit:o,params:a}=e;n.autoplay={running:!1,paused:!1,timeLeft:0},r({autoplay:{enabled:!1,delay:3e3,waitForTransition:!0,disableOnInteraction:!1,stopOnLastSlide:!1,reverseDirection:!1,pauseOnMouseEnter:!1}});let l,c,d,u,h,p,f,m,g=a&&a.autoplay?a.autoplay.delay:3e3,v=a&&a.autoplay?a.autoplay.delay:3e3,b=(new Date).getTime();function y(e){n&&!n.destroyed&&n.wrapperEl&&e.target===n.wrapperEl&&(n.wrapperEl.removeEventListener("transitionend",y),m||E())}const w=()=>{if(n.destroyed||!n.autoplay.running)return;n.autoplay.paused?c=!0:c&&(v=l,c=!1);const e=n.autoplay.paused?l:b+v-(new Date).getTime();n.autoplay.timeLeft=e,o("autoplayTimeLeft",e,e/g),i=requestAnimationFrame((()=>{w()}))},x=e=>{if(n.destroyed||!n.autoplay.running)return;cancelAnimationFrame(i),w();let r=void 0===e?n.params.autoplay.delay:e;g=n.params.autoplay.delay,v=n.params.autoplay.delay;const s=(()=>{let e;if(e=n.virtual&&n.params.virtual.enabled?n.slides.filter((e=>e.classList.contains("swiper-slide-active")))[0]:n.slides[n.activeIndex],e)return parseInt(e.getAttribute("data-swiper-autoplay"),10)})();!Number.isNaN(s)&&s>0&&void 0===e&&(r=s,g=s,v=s),l=r;const a=n.params.speed,c=()=>{n&&!n.destroyed&&(n.params.autoplay.reverseDirection?!n.isBeginning||n.params.loop||n.params.rewind?(n.slidePrev(a,!0,!0),o("autoplay")):n.params.autoplay.stopOnLastSlide||(n.slideTo(n.slides.length-1,a,!0,!0),o("autoplay")):!n.isEnd||n.params.loop||n.params.rewind?(n.slideNext(a,!0,!0),o("autoplay")):n.params.autoplay.stopOnLastSlide||(n.slideTo(0,a,!0,!0),o("autoplay")),n.params.cssMode&&(b=(new Date).getTime(),requestAnimationFrame((()=>{x()}))))};return r>0?(clearTimeout(t),t=setTimeout((()=>{c()}),r)):requestAnimationFrame((()=>{c()})),r},T=()=>{b=(new Date).getTime(),n.autoplay.running=!0,x(),o("autoplayStart")},S=()=>{n.autoplay.running=!1,clearTimeout(t),cancelAnimationFrame(i),o("autoplayStop")},_=(e,i)=>{if(n.destroyed||!n.autoplay.running)return;clearTimeout(t),e||(f=!0);const r=()=>{o("autoplayPause"),n.params.autoplay.waitForTransition?n.wrapperEl.addEventListener("transitionend",y):E()};if(n.autoplay.paused=!0,i)return p&&(l=n.params.autoplay.delay),p=!1,void r();const s=l||n.params.autoplay.delay;l=s-((new Date).getTime()-b),n.isEnd&&l<0&&!n.params.loop||(l<0&&(l=0),r())},E=()=>{n.isEnd&&l<0&&!n.params.loop||n.destroyed||!n.autoplay.running||(b=(new Date).getTime(),f?(f=!1,x(l)):x(),n.autoplay.paused=!1,o("autoplayResume"))},C=()=>{if(n.destroyed||!n.autoplay.running)return;const e=Jc();"hidden"===e.visibilityState&&(f=!0,_(!0)),"visible"===e.visibilityState&&E()},M=e=>{"mouse"===e.pointerType&&(f=!0,m=!0,n.animating||n.autoplay.paused||_(!0))},P=e=>{"mouse"===e.pointerType&&(m=!1,n.autoplay.paused&&E())};s("init",(()=>{n.params.autoplay.enabled&&(n.params.autoplay.pauseOnMouseEnter&&(n.el.addEventListener("pointerenter",M),n.el.addEventListener("pointerleave",P)),Jc().addEventListener("visibilitychange",C),T())})),s("destroy",(()=>{n.el.removeEventListener("pointerenter",M),n.el.removeEventListener("pointerleave",P),Jc().removeEventListener("visibilitychange",C),n.autoplay.running&&S()})),s("_freeModeStaticRelease",(()=>{(u||f)&&E()})),s("_freeModeNoMomentumRelease",(()=>{n.params.autoplay.disableOnInteraction?S():_(!0,!0)})),s("beforeTransitionStart",((e,t,i)=>{!n.destroyed&&n.autoplay.running&&(i||!n.params.autoplay.disableOnInteraction?_(!0,!0):S())})),s("sliderFirstMove",(()=>{!n.destroyed&&n.autoplay.running&&(n.params.autoplay.disableOnInteraction?S():(d=!0,u=!1,f=!1,h=setTimeout((()=>{f=!0,u=!0,_(!0)}),200)))})),s("touchEnd",(()=>{if(!n.destroyed&&n.autoplay.running&&d){if(clearTimeout(h),clearTimeout(t),n.params.autoplay.disableOnInteraction)return u=!1,void(d=!1);u&&n.params.cssMode&&E(),u=!1,d=!1}})),s("slideChange",(()=>{!n.destroyed&&n.autoplay.running&&(p=!0)})),Object.assign(n.autoplay,{start:T,stop:S,pause:_,resume:E})},window.G=function(e){let t,i,n,r,{swiper:s,extendParams:o,on:a}=e;o({grid:{rows:1,fill:"column"}});const l=()=>{let e=s.params.spaceBetween;return"string"==typeof e&&e.indexOf("%")>=0?e=parseFloat(e.replace("%",""))/100*s.size:"string"==typeof e&&(e=parseFloat(e)),e};a("init",(()=>{r=s.params.grid&&s.params.grid.rows>1})),a("update",(()=>{const{params:e,el:t}=s,i=e.grid&&e.grid.rows>1;r&&!i?(t.classList.remove(`${e.containerModifierClass}grid`,`${e.containerModifierClass}grid-column`),n=1,s.emitContainerClasses()):!r&&i&&(t.classList.add(`${e.containerModifierClass}grid`),"column"===e.grid.fill&&t.classList.add(`${e.containerModifierClass}grid-column`),s.emitContainerClasses()),r=i})),s.grid={initSlides:e=>{const{slidesPerView:r}=s.params,{rows:o,fill:a}=s.params.grid,l=s.virtual&&s.params.virtual.enabled?s.virtual.slides.length:e.length;n=Math.floor(l/o),t=Math.floor(l/o)===l/o?l:Math.ceil(l/o)*o,"auto"!==r&&"row"===a&&(t=Math.max(t,r*o)),i=t/o},unsetSlides:()=>{s.slides&&s.slides.forEach((e=>{e.swiperSlideGridSet&&(e.style.height="",e.style[s.getDirectionLabel("margin-top")]="")}))},updateSlide:(e,r,o)=>{const{slidesPerGroup:a}=s.params,c=l(),{rows:d,fill:u}=s.params.grid,h=s.virtual&&s.params.virtual.enabled?s.virtual.slides.length:o.length;let p,f,m;if("row"===u&&a>1){const i=Math.floor(e/(a*d)),n=e-d*a*i,s=0===i?a:Math.min(Math.ceil((h-i*d*a)/d),a);m=Math.floor(n/s),f=n-m*s+i*a,p=f+m*t/d,r.style.order=p}else"column"===u?(f=Math.floor(e/d),m=e-f*d,(f>n||f===n&&m===d-1)&&(m+=1,m>=d&&(m=0,f+=1))):(m=Math.floor(e/i),f=e-m*i);r.row=m,r.column=f,r.style.height=`calc((100% - ${(d-1)*c}px) / ${d})`,r.style[s.getDirectionLabel("margin-top")]=0!==m?c&&`${c}px`:"",r.swiperSlideGridSet=!0},updateWrapperSize:(e,i)=>{const{centeredSlides:n,roundLengths:r}=s.params,o=l(),{rows:a}=s.params.grid;if(s.virtualSize=(e+o)*t,s.virtualSize=Math.ceil(s.virtualSize/a)-o,s.params.cssMode||(s.wrapperEl.style[s.getDirectionLabel("width")]=`${s.virtualSize+o}px`),n){const e=[];for(let t=0;t<i.length;t+=1){let n=i[t];r&&(n=Math.floor(n)),i[t]<s.virtualSize+i[0]&&e.push(n)}i.splice(0,i.length),i.push(...e)}}}},document.querySelector(".logo-carousel")&&new Yd(".logo-carousel",{modules:[A],slidesPerView:6,speed:5e3,spaceBetween:60,resistance:!0,resistanceRatio:0,loop:!0,allowTouchMove:!1,autoplay:{delay:0,disableOnInteraction:!1,pauseOnMouseEnter:!1},breakpoints:{0:{slidesPerView:3,spaceBetween:20},769:{slidesPerView:4,spaceBetween:30},1025:{slidesPerView:5,spaceBetween:40},1441:{slidesPerView:6,spaceBetween:60}}}),document.querySelector(".menu-image-carousel")&&new Yd(".menu-image-carousel",{modules:[Px,EF],slidesPerView:1,speed:500,resistance:!0,resistanceRatio:0,allowTouchMove:!1,parallax:!0,effect:"fade",fadeEffect:{crossFade:!0}});var Kd=function(e){return"object"==typeof window.Node?e instanceof window.Node:null!==e&&"object"==typeof e&&"number"==typeof e.nodeType&&"string"==typeof e.nodeName},Jd=function(e,t){if(void 0===t&&(t=document),e instanceof Array)return e.filter(Kd);if(Kd(e))return[e];if(function(e){var t=Object.prototype.toString.call(e);return"object"==typeof window.NodeList?e instanceof window.NodeList:null!==e&&"object"==typeof e&&"number"==typeof e.length&&/^\[object (HTMLCollection|NodeList|Object)\]$/.test(t)&&(0===e.length||Kd(e[0]))}(e))return Array.prototype.slice.call(e);if("string"==typeof e)try{var i=t.querySelectorAll(e);return Array.prototype.slice.call(i)}catch(e){return[]}return[]};function Qd(e){if(e.constructor!==Array)throw new TypeError("Expected array.");if(16===e.length)return e;if(6===e.length){var t=eu();return t[0]=e[0],t[1]=e[1],t[4]=e[2],t[5]=e[3],t[12]=e[4],t[13]=e[5],t}throw new RangeError("Expected array with either 6 or 16 values.")}function eu(){for(var e=[],t=0;t<16;t++)t%5==0?e.push(1):e.push(0);return e}function tu(e,t){for(var i=Qd(e),n=Qd(t),r=[],s=0;s<4;s++)for(var o=[i[s],i[s+4],i[s+8],i[s+12]],a=0;a<4;a++){var l=4*a,c=[n[l],n[l+1],n[l+2],n[l+3]],d=o[0]*c[0]+o[1]*c[1]+o[2]*c[2]+o[3]*c[3];r[s+l]=d}return r}function iu(e){if("string"==typeof e){var t=e.match(/matrix(3d)?\(([^)]+)\)/);if(t)return Qd(t[2].split(", ").map(parseFloat))}return eu()}function nu(e,t){var i=eu();return i[0]=e,i[5]="number"==typeof t?t:e,i}var ru,su=(ru=Date.now(),function(e){var t=Date.now();t-ru>16?(ru=t,e(t)):setTimeout((function(){return su(e)}),0)}),ou=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||su,au={delay:0,distance:"0",duration:600,easing:"cubic-bezier(0.5, 0, 0, 1)",interval:0,opacity:0,origin:"bottom",rotate:{x:0,y:0,z:0},scale:1,cleanup:!1,container:document.documentElement,desktop:!0,mobile:!0,reset:!1,useDelay:"always",viewFactor:0,viewOffset:{top:0,right:0,bottom:0,left:0},afterReset:function(){},afterReveal:function(){},beforeReset:function(){},beforeReveal:function(){}},lu=function(){document.documentElement.classList.add("sr"),document.body?document.body.style.height="100%":document.addEventListener("DOMContentLoaded",(function(){document.body.style.height="100%"}))},cu=function(){return document.documentElement.classList.remove("sr"),{clean:function(){},destroy:function(){},reveal:function(){},sync:function(){},get noop(){return!0}}};function du(e){return null!==e&&e instanceof Object&&(e.constructor===Object||"[object Object]"===Object.prototype.toString.call(e))}function uu(e,t){if(du(e))return Object.keys(e).forEach((function(i){return t(e[i],i,e)}));if(e instanceof Array)return e.forEach((function(i,n){return t(i,n,e)}));throw new TypeError("Expected either an array or object literal.")}function hu(e){for(var t=[],i=arguments.length-1;i-- >0;)t[i]=arguments[i+1];if(this.constructor.debug&&console){var n="%cScrollReveal: "+e;t.forEach((function(e){return n+="\n â€” "+e})),console.log(n,"color: #ea654b;")}}function pu(){var e=this,t={active:[],stale:[]},i={active:[],stale:[]},n={active:[],stale:[]};try{uu(Jd("[data-sr-id]"),(function(e){var i=parseInt(e.getAttribute("data-sr-id"));t.active.push(i)}))}catch(e){throw e}uu(this.store.elements,(function(e){-1===t.active.indexOf(e.id)&&t.stale.push(e.id)})),uu(t.stale,(function(t){return delete e.store.elements[t]})),uu(this.store.elements,(function(e){-1===n.active.indexOf(e.containerId)&&n.active.push(e.containerId),e.hasOwnProperty("sequence")&&-1===i.active.indexOf(e.sequence.id)&&i.active.push(e.sequence.id)})),uu(this.store.containers,(function(e){-1===n.active.indexOf(e.id)&&n.stale.push(e.id)})),uu(n.stale,(function(t){var i=e.store.containers[t].node;i.removeEventListener("scroll",e.delegate),i.removeEventListener("resize",e.delegate),delete e.store.containers[t]})),uu(this.store.sequences,(function(e){-1===i.active.indexOf(e.id)&&i.stale.push(e.id)})),uu(i.stale,(function(t){return delete e.store.sequences[t]}))}var fu=function(){var e={},t=document.documentElement.style;function i(i,n){if(void 0===n&&(n=t),i&&"string"==typeof i){if(e[i])return e[i];if("string"==typeof n[i])return e[i]=i;if("string"==typeof n["-webkit-"+i])return e[i]="-webkit-"+i;throw new RangeError('Unable to find "'+i+'" style property.')}throw new TypeError("Expected a string.")}return i.clearCache=function(){return e={}},i}();function mu(e){var t=window.getComputedStyle(e.node),i=t.position,n=e.config,r={},s=(e.node.getAttribute("style")||"").match(/[\w-]+\s*:\s*[^;]+\s*/gi)||[];r.computed=s?s.map((function(e){return e.trim()})).join("; ")+";":"",r.generated=s.some((function(e){return e.match(/visibility\s?:\s?visible/i)}))?r.computed:s.concat(["visibility: visible"]).map((function(e){return e.trim()})).join("; ")+";";var o,a,l,c=parseFloat(t.opacity),d=isNaN(parseFloat(n.opacity))?parseFloat(t.opacity):parseFloat(n.opacity),u={computed:c!==d?"opacity: "+c+";":"",generated:c!==d?"opacity: "+d+";":""},h=[];if(parseFloat(n.distance)){var p="top"===n.origin||"bottom"===n.origin?"Y":"X",f=n.distance;"top"!==n.origin&&"left"!==n.origin||(f=/^-/.test(f)?f.substr(1):"-"+f);var m=f.match(/(^-?\d+\.?\d?)|(em$|px$|%$)/g),g=m[0];switch(m[1]){case"em":f=parseInt(t.fontSize)*g;break;case"px":f=g;break;case"%":f="Y"===p?e.node.getBoundingClientRect().height*g/100:e.node.getBoundingClientRect().width*g/100;break;default:throw new RangeError("Unrecognized or missing distance unit.")}"Y"===p?h.push(function(e){var t=eu();return t[13]=e,t}(f)):h.push(function(e){var t=eu();return t[12]=e,t}(f))}n.rotate.x&&h.push((o=n.rotate.x,a=Math.PI/180*o,(l=eu())[5]=l[10]=Math.cos(a),l[6]=l[9]=Math.sin(a),l[9]*=-1,l)),n.rotate.y&&h.push(function(e){var t=Math.PI/180*e,i=eu();return i[0]=i[10]=Math.cos(t),i[2]=i[8]=Math.sin(t),i[2]*=-1,i}(n.rotate.y)),n.rotate.z&&h.push(function(e){var t=Math.PI/180*e,i=eu();return i[0]=i[5]=Math.cos(t),i[1]=i[4]=Math.sin(t),i[4]*=-1,i}(n.rotate.z)),1!==n.scale&&(0===n.scale?h.push(nu(2e-4)):h.push(nu(n.scale)));var v={};if(h.length){v.property=fu("transform"),v.computed={raw:t[v.property],matrix:iu(t[v.property])},h.unshift(v.computed.matrix);var b=h.reduce(tu);v.generated={initial:v.property+": matrix3d("+b.join(", ")+");",final:v.property+": matrix3d("+v.computed.matrix.join(", ")+");"}}else v.generated={initial:"",final:""};var y={};if(u.generated||v.generated.initial){y.property=fu("transition"),y.computed=t[y.property],y.fragments=[];var w=n.delay,x=n.duration,T=n.easing;u.generated&&y.fragments.push({delayed:"opacity "+x/1e3+"s "+T+" "+w/1e3+"s",instant:"opacity "+x/1e3+"s "+T+" 0s"}),v.generated.initial&&y.fragments.push({delayed:v.property+" "+x/1e3+"s "+T+" "+w/1e3+"s",instant:v.property+" "+x/1e3+"s "+T+" 0s"}),y.computed&&!y.computed.match(/all 0s|none 0s/)&&y.fragments.unshift({delayed:y.computed,instant:y.computed});var S=y.fragments.reduce((function(e,t,i){return e.delayed+=0===i?t.delayed:", "+t.delayed,e.instant+=0===i?t.instant:", "+t.instant,e}),{delayed:"",instant:""});y.generated={delayed:y.property+": "+S.delayed+";",instant:y.property+": "+S.instant+";"}}else y.generated={delayed:"",instant:""};return{inline:r,opacity:u,position:i,transform:v,transition:y}}function gu(e,t){t.split(";").forEach((function(t){var i=t.split(":"),n=i[0],r=i.slice(1);n&&r&&(e.style[n.trim()]=r.join(":"))}))}function vu(e){var t,i=this;try{uu(Jd(e),(function(e){var n=e.getAttribute("data-sr-id");if(null!==n){t=!0;var r=i.store.elements[n];r.callbackTimer&&window.clearTimeout(r.callbackTimer.clock),gu(r.node,r.styles.inline.generated),e.removeAttribute("data-sr-id"),delete i.store.elements[n]}}))}catch(e){return hu.call(this,"Clean failed.",e.message)}if(t)try{pu.call(this)}catch(e){return hu.call(this,"Clean failed.",e.message)}}function bu(){var e=this;uu(this.store.elements,(function(e){gu(e.node,e.styles.inline.generated),e.node.removeAttribute("data-sr-id")})),uu(this.store.containers,(function(t){var i=t.node===document.documentElement?window:t.node;i.removeEventListener("scroll",e.delegate),i.removeEventListener("resize",e.delegate)})),this.store={containers:{},elements:{},history:[],sequences:{}}}function yu(e){for(var t=[],i=arguments.length-1;i-- >0;)t[i]=arguments[i+1];if(du(e))return uu(t,(function(t){uu(t,(function(t,i){du(t)?(e[i]&&du(e[i])||(e[i]={}),yu(e[i],t)):e[i]=t}))})),e;throw new TypeError("Target must be an object literal.")}function wu(e){return void 0===e&&(e=navigator.userAgent),/Android|iPhone|iPad|iPod/i.test(e)}var xu,Tu=(xu=0,function(){return xu++});function Su(){var e=this;pu.call(this),uu(this.store.elements,(function(e){var t=[e.styles.inline.generated];e.visible?(t.push(e.styles.opacity.computed),t.push(e.styles.transform.generated.final),e.revealed=!0):(t.push(e.styles.opacity.generated),t.push(e.styles.transform.generated.initial),e.revealed=!1),gu(e.node,t.filter((function(e){return""!==e})).join(" "))})),uu(this.store.containers,(function(t){var i=t.node===document.documentElement?window:t.node;i.addEventListener("scroll",e.delegate),i.addEventListener("resize",e.delegate)})),this.delegate(),this.initTimeout=null}function _u(e,t){void 0===t&&(t={});var i=t.pristine||this.pristine,n="always"===e.config.useDelay||"onload"===e.config.useDelay&&i||"once"===e.config.useDelay&&!e.seen,r=e.visible&&!e.revealed,s=!e.visible&&e.revealed&&e.config.reset;return t.reveal||r?Eu.call(this,e,n):t.reset||s?Cu.call(this,e):void 0}function Eu(e,t){var i=[e.styles.inline.generated,e.styles.opacity.computed,e.styles.transform.generated.final];t?i.push(e.styles.transition.generated.delayed):i.push(e.styles.transition.generated.instant),e.revealed=e.seen=!0,gu(e.node,i.filter((function(e){return""!==e})).join(" ")),Mu.call(this,e,t)}function Cu(e){var t=[e.styles.inline.generated,e.styles.opacity.generated,e.styles.transform.generated.initial,e.styles.transition.generated.instant];e.revealed=!1,gu(e.node,t.filter((function(e){return""!==e})).join(" ")),Mu.call(this,e)}function Mu(e,t){var i=this,n=t?e.config.duration+e.config.delay:e.config.duration,r=e.revealed?e.config.beforeReveal:e.config.beforeReset,s=e.revealed?e.config.afterReveal:e.config.afterReset,o=0;e.callbackTimer&&(o=Date.now()-e.callbackTimer.start,window.clearTimeout(e.callbackTimer.clock)),r(e.node),e.callbackTimer={start:Date.now(),clock:window.setTimeout((function(){s(e.node),e.callbackTimer=null,e.revealed&&!e.config.reset&&e.config.cleanup&&vu.call(i,e.node)}),n-o)}}function Pu(e,t){if(void 0===t&&(t=this.pristine),!e.visible&&e.revealed&&e.config.reset)return _u.call(this,e,{reset:!0});var i=this.store.sequences[e.sequence.id],n=e.sequence.index;if(i){var r=new ku(i,"visible",this.store),s=new ku(i,"revealed",this.store);if(i.models={visible:r,revealed:s},!s.body.length){var o=i.members[r.body[0]],a=this.store.elements[o];if(a)return Au.call(this,i,r.body[0],-1,t),Au.call(this,i,r.body[0],1,t),_u.call(this,a,{reveal:!0,pristine:t})}if(!i.blocked.head&&n===[].concat(s.head).pop()&&n>=[].concat(r.body).shift())return Au.call(this,i,n,-1,t),_u.call(this,e,{reveal:!0,pristine:t});if(!i.blocked.foot&&n===[].concat(s.foot).shift()&&n<=[].concat(r.body).pop())return Au.call(this,i,n,1,t),_u.call(this,e,{reveal:!0,pristine:t})}}function Ou(e){var t=Math.abs(e);if(isNaN(t))throw new RangeError("Invalid sequence interval.");this.id=Tu(),this.interval=Math.max(t,16),this.members=[],this.models={},this.blocked={head:!1,foot:!1}}function ku(e,t,i){var n=this;this.head=[],this.body=[],this.foot=[],uu(e.members,(function(e,r){var s=i.elements[e];s&&s[t]&&n.body.push(r)})),this.body.length&&uu(e.members,(function(e,r){var s=i.elements[e];s&&!s[t]&&(r<n.body[0]?n.head.push(r):n.foot.push(r))}))}function Au(e,t,i,n){var r=this,s=["head",null,"foot"][1+i],o=e.members[t+i],a=this.store.elements[o];e.blocked[s]=!0,setTimeout((function(){e.blocked[s]=!1,a&&Pu.call(r,a,n)}),e.interval)}function Lu(e,t,i){var n=this;void 0===t&&(t={}),void 0===i&&(i=!1);var r,s=[],o=t.interval||au.interval;try{o&&(r=new Ou(o));var a=Jd(e);if(!a.length)throw new Error("Invalid reveal target.");var l=a.reduce((function(e,i){var o={},a=i.getAttribute("data-sr-id");a?(yu(o,n.store.elements[a]),gu(o.node,o.styles.inline.computed)):(o.id=Tu(),o.node=i,o.seen=!1,o.revealed=!1,o.visible=!1);var l=yu({},o.config||n.defaults,t);if(!l.mobile&&wu()||!l.desktop&&!wu())return a&&vu.call(n,o),e;var c,d=Jd(l.container)[0];if(!d)throw new Error("Invalid container.");return d.contains(i)?(c=function(e){for(var t=[],i=arguments.length-1;i-- >0;)t[i]=arguments[i+1];var n=null;return uu(t,(function(t){uu(t,(function(t){null===n&&t.node===e&&(n=t.id)}))})),n}(d,s,n.store.containers),null===c&&(c=Tu(),s.push({id:c,node:d})),o.config=l,o.containerId=c,o.styles=mu(o),r&&(o.sequence={id:r.id,index:r.members.length},r.members.push(o.id)),e.push(o),e):e}),[]);uu(l,(function(e){n.store.elements[e.id]=e,e.node.setAttribute("data-sr-id",e.id)}))}catch(e){return hu.call(this,"Reveal failed.",e.message)}uu(s,(function(e){n.store.containers[e.id]={id:e.id,node:e.node}})),r&&(this.store.sequences[r.id]=r),!0!==i&&(this.store.history.push({target:e,options:t}),this.initTimeout&&window.clearTimeout(this.initTimeout),this.initTimeout=window.setTimeout(Su.bind(this),0))}function zu(){var e=this;uu(this.store.history,(function(t){Lu.call(e,t.target,t.options,!0)})),Su.call(this)}var Iu,Ru,Du,Fu,Bu,ju,Nu,Hu,$u=Math.sign||function(e){return(e>0)-(e<0)||+e};function qu(e,t){var i=t?e.node.clientHeight:e.node.offsetHeight,n=t?e.node.clientWidth:e.node.offsetWidth,r=0,s=0,o=e.node;do{isNaN(o.offsetTop)||(r+=o.offsetTop),isNaN(o.offsetLeft)||(s+=o.offsetLeft),o=o.offsetParent}while(o);return{bounds:{top:r,right:s+n,bottom:r+i,left:s},height:i,width:n}}function Yu(e){var t,i;return e.node===document.documentElement?(t=window.pageYOffset,i=window.pageXOffset):(t=e.node.scrollTop,i=e.node.scrollLeft),{top:t,left:i}}function Xu(e){void 0===e&&(e={});var t=this.store.containers[e.containerId];if(t){var i=Math.max(0,Math.min(1,e.config.viewFactor)),n=e.config.viewOffset,r=e.geometry.bounds.top+e.geometry.height*i,s=e.geometry.bounds.right-e.geometry.width*i,o=e.geometry.bounds.bottom-e.geometry.height*i,a=e.geometry.bounds.left+e.geometry.width*i,l=t.geometry.bounds.top+t.scroll.top+n.top,c=t.geometry.bounds.right+t.scroll.left-n.right,d=t.geometry.bounds.bottom+t.scroll.top-n.bottom,u=t.geometry.bounds.left+t.scroll.left+n.left;return r<d&&s>u&&o>l&&a<c||"fixed"===e.styles.position}}function Vu(e,t){var i=this;void 0===e&&(e={type:"init"}),void 0===t&&(t=this.store.elements),ou((function(){var n="init"===e.type||"resize"===e.type;uu(i.store.containers,(function(e){n&&(e.geometry=qu.call(i,e,!0));var t=Yu.call(i,e);e.scroll&&(e.direction={x:$u(t.left-e.scroll.left),y:$u(t.top-e.scroll.top)}),e.scroll=t})),uu(t,(function(e){(n||void 0===e.geometry)&&(e.geometry=qu.call(i,e)),e.visible=Xu.call(i,e)})),uu(t,(function(e){e.sequence?Pu.call(i,e):_u.call(i,e)})),i.pristine=!1}))}function Gu(e){var t;if(void 0===e&&(e={}),void 0===this||Object.getPrototypeOf(this)!==Gu.prototype)return new Gu(e);if(!Gu.isSupported())return hu.call(this,"Instantiation failed.","This browser is not supported."),cu();try{t=yu({},ju||au,e)}catch(e){return hu.call(this,"Invalid configuration.",e.message),cu()}try{if(!Jd(t.container)[0])throw new Error("Invalid container.")}catch(e){return hu.call(this,e.message),cu()}return!(ju=t).mobile&&wu()||!ju.desktop&&!wu()?(hu.call(this,"This device is disabled.","desktop: "+ju.desktop,"mobile: "+ju.mobile),cu()):(lu(),this.store={containers:{},elements:{},history:[],sequences:{}},this.pristine=!0,Iu=Iu||Vu.bind(this),Ru=Ru||bu.bind(this),Du=Du||Lu.bind(this),Fu=Fu||vu.bind(this),Bu=Bu||zu.bind(this),Object.defineProperty(this,"delegate",{get:function(){return Iu}}),Object.defineProperty(this,"destroy",{get:function(){return Ru}}),Object.defineProperty(this,"reveal",{get:function(){return Du}}),Object.defineProperty(this,"clean",{get:function(){return Fu}}),Object.defineProperty(this,"sync",{get:function(){return Bu}}),Object.defineProperty(this,"defaults",{get:function(){return ju}}),Object.defineProperty(this,"version",{get:function(){return"4.0.9"}}),Object.defineProperty(this,"noop",{get:function(){return!1}}),Hu||(Hu=this))}Gu.isSupported=function(){return function(){var e=document.documentElement.style;return"transform"in e||"WebkitTransform"in e}()&&function(){var e=document.documentElement.style;return"transition"in e||"WebkitTransition"in e}()},Object.defineProperty(Gu,"debug",{get:function(){return Nu||!1},set:function(e){return Nu="boolean"==typeof e?e:Nu}}),Gu();var Wu=Gu;Fancybox.defaults.placeFocusBack=0,Fancybox.defaults.autoFocus=!1,Fancybox.defaults.trapFocus=!1,Fancybox.defaults.dragToClose=!1,Fancybox.bind("[data-fancybox]",{}),window.ScrollReveal=Wu,Wu({afterReveal:function(e){e.removeAttribute("style"),e.removeAttribute("data-sr-id")}}),Wu().reveal(".srb",{interval:75,distance:"60px",duration:1e3,viewFactor:.5,origin:"bottom",mobile:!1}),Wu().reveal(".srb1",{interval:75,distance:"60px",duration:1e3,viewFactor:.5,origin:"bottom",mobile:!1}),Wu().reveal(".srb2",{interval:75,distance:"60px",duration:1e3,viewFactor:.5,origin:"bottom",mobile:!1}),Wu().reveal(".srb3",{interval:75,distance:"60px",duration:1e3,viewFactor:.5,origin:"bottom",mobile:!1}),Wu().reveal(".srb4",{interval:75,distance:"60px",duration:1e3,viewFactor:.5,origin:"bottom",mobile:!1}),Wu().reveal(".srb5",{interval:75,distance:"60px",duration:1e3,viewFactor:.5,origin:"bottom",mobile:!1}),Wu().reveal(".srb6",{interval:75,distance:"60px",duration:1e3,viewFactor:.5,origin:"bottom",mobile:!1}),Wu().reveal(".srb7",{interval:75,distance:"60px",duration:1e3,viewFactor:.5,origin:"bottom",mobile:!1}),Wu().reveal(".srb8",{interval:75,distance:"60px",duration:1e3,viewFactor:.5,origin:"bottom",mobile:!1}),Wu().reveal(".srb9",{interval:75,distance:"60px",duration:1e3,viewFactor:.5,origin:"bottom",mobile:!1}),Wu().reveal(".srt",{interval:75,distance:"60px",duration:1e3,viewFactor:.5,origin:"top",mobile:!1}),Wu().reveal(".srt1",{interval:75,distance:"60px",duration:1e3,viewFactor:.5,origin:"top",mobile:!1}),Wu().reveal(".srt2",{interval:75,distance:"60px",duration:1e3,viewFactor:.5,origin:"top",mobile:!1}),Wu().reveal(".srt3",{interval:75,distance:"60px",duration:1e3,viewFactor:.5,origin:"top",mobile:!1}),Wu().reveal(".srt4",{interval:75,distance:"60px",duration:1e3,viewFactor:.5,origin:"top",mobile:!1}),Wu().reveal(".srt5",{interval:75,distance:"60px",duration:1e3,viewFactor:.5,origin:"top",mobile:!1}),Wu().reveal(".srt6",{interval:75,distance:"60px",duration:1e3,viewFactor:.5,origin:"top",mobile:!1}),Wu().reveal(".srt7",{interval:75,distance:"60px",duration:1e3,viewFactor:.5,origin:"top",mobile:!1}),Wu().reveal(".srt8",{interval:75,distance:"60px",duration:1e3,viewFactor:.5,origin:"top",mobile:!1}),Wu().reveal(".srt9",{interval:75,distance:"60px",duration:1e3,viewFactor:.5,origin:"top",mobile:!1}),Wu().reveal(".srl",{interval:75,distance:"30px",duration:1e3,viewFactor:.25,origin:"left",mobile:!1}),Wu().reveal(".srl1",{interval:75,distance:"30px",duration:1e3,viewFactor:.25,origin:"left",mobile:!1}),Wu().reveal(".srl2",{interval:75,distance:"30px",duration:1e3,viewFactor:.25,origin:"left",mobile:!1}),Wu().reveal(".srl3",{interval:75,distance:"30px",duration:1e3,viewFactor:.25,origin:"left",mobile:!1}),Wu().reveal(".srl4",{interval:75,distance:"30px",duration:1e3,viewFactor:.25,origin:"left",mobile:!1}),Wu().reveal(".srl5",{interval:75,distance:"30px",duration:1e3,viewFactor:.25,origin:"left",mobile:!1}),Wu().reveal(".srl6",{interval:75,distance:"30px",duration:1e3,viewFactor:.25,origin:"left",mobile:!1}),Wu().reveal(".srl7",{interval:75,distance:"30px",duration:1e3,viewFactor:.25,origin:"left",mobile:!1}),Wu().reveal(".srl8",{interval:75,distance:"30px",duration:1e3,viewFactor:.25,origin:"left",mobile:!1}),Wu().reveal(".srl9",{interval:75,distance:"30px",duration:1e3,viewFactor:.25,origin:"left",mobile:!1}),Wu().reveal(".srr",{interval:75,distance:"30px",duration:1e3,viewFactor:.25,origin:"right",mobile:!1}),Wu().reveal(".srr1",{interval:75,distance:"30px",duration:1e3,viewFactor:.25,origin:"right",mobile:!1}),Wu().reveal(".srr2",{interval:75,distance:"30px",duration:1e3,viewFactor:.25,origin:"right",mobile:!1}),Wu().reveal(".srr3",{interval:75,distance:"30px",duration:1e3,viewFactor:.25,origin:"right",mobile:!1}),Wu().reveal(".srr4",{interval:75,distance:"30px",duration:1e3,viewFactor:.25,origin:"right",mobile:!1}),Wu().reveal(".srr5",{interval:75,distance:"30px",duration:1e3,viewFactor:.25,origin:"right",mobile:!1}),Wu().reveal(".srr6",{interval:75,distance:"30px",duration:1e3,viewFactor:.25,origin:"right",mobile:!1}),Wu().reveal(".srr7",{interval:75,distance:"30px",duration:1e3,viewFactor:.25,origin:"right",mobile:!1}),Wu().reveal(".srr8",{interval:75,distance:"30px",duration:1e3,viewFactor:.25,origin:"right",mobile:!1}),Wu().reveal(".srr9",{interval:75,distance:"30px",duration:1e3,viewFactor:.25,origin:"right",mobile:!1});class Uu extends HTMLElement{constructor(){super()}}customElements.define("pantone-creative",Uu);let Zu=document.querySelectorAll(".widen-child");Zu.length&&Zu.forEach((e=>{let t=e.closest(".wrapper"),i=e.closest(".widen-wrapper"),n=(document.body.clientWidth-(t.offsetWidth-parseFloat(window.getComputedStyle(t).paddingLeft)-parseFloat(window.getComputedStyle(t).paddingRight)))/2+i.offsetWidth;e.style.width=`${n}px`}));let Ku=document.querySelector(".header-field"),Ju=document.querySelector(".header-field").offsetHeight;(window.pageYOffset||document.documentElement.scrollTop)>=Ju/5?(Ku.classList.add("is-hidden"),Ku.classList.add("is-fixed")):(Ku.classList.remove("is-hidden"),Ku.classList.remove("is-fixed"));let Qu=0,eh=document.querySelectorAll(".sticky-el");window.addEventListener("scroll",(function(){let e=window.pageYOffset||document.documentElement.scrollTop;e>Qu&&e>Ju/5?(eh.forEach((e=>{e.style.top="45px"})),Ku.classList.add("is-hidden"),Ku.classList.add("is-fixed"),document.querySelector(".header-field").classList.contains("is-white")&&document.querySelector(".header-field").classList.add("is-colored")):(eh.forEach((e=>{e.style.top=`${document.querySelector(".header-field").offsetHeight+45}px`})),e>Ju/5?(Ku.classList.remove("is-hidden"),Ku.classList.add("is-fixed")):(Ku.classList.remove("is-hidden"),Ku.classList.remove("is-fixed"),document.querySelector(".header-field").classList.contains("is-white")&&document.querySelector(".header-field").classList.remove("is-colored"))),Qu=e}),!1);let th=document.querySelector(".header-field .menu-background"),ih=document.querySelector(".body-overlay"),nh=document.querySelectorAll(".menu-field .menu > li.has-child");nh.length&&window.innerWidth>1280&&nh.forEach((e=>{e.addEventListener("mouseenter",(()=>{document.querySelector("body").classList.add("overflow-hidden"),ih.classList.add("is-active"),th.style.height=`${e.querySelector(".sub-menu").offsetHeight+document.querySelector(".header-field").offsetHeight}px`,document.querySelector(".header-field").classList.contains("is-white")&&!document.querySelector(".header-field").classList.contains("is-fixed")&&document.querySelector(".header-field").classList.add("is-colored")}),!1),e.addEventListener("mouseleave",(()=>{document.querySelector("body").classList.remove("overflow-hidden"),ih.classList.remove("is-active"),th.style.height="0px",document.querySelector(".header-field").classList.contains("is-white")&&!document.querySelector(".header-field").classList.contains("is-fixed")&&document.querySelector(".header-field").classList.remove("is-colored")}),!1)})),document.querySelectorAll(".header-field .menu-field .sub-trigger").forEach((e=>{e.addEventListener("click",(()=>{var t;e.classList.toggle("is-active"),e.classList.contains("is-active")?(t=e.nextElementSibling,document.fonts.ready.then((()=>{t.style.height=`${t.scrollHeight+30}px`}))):(e=>{e.style.height="0px"})(e.nextElementSibling)}),!1)}));let rh=document.querySelector(".header-field .mobile-trigger");rh.addEventListener("click",(()=>{rh.classList.toggle("is-active"),document.querySelector(".header-field .menu-field").classList.toggle("lg:hidden"),document.querySelector("body").classList.toggle("overflow-hidden")}),!1);let sh=document.querySelectorAll(".header-field li[data-image]");sh.length&&sh.forEach((e=>{e.addEventListener("mouseenter",(()=>{let t=[e.getAttribute("data-image")],i=e.closest(".sub-menu").querySelector(".menu-image-carousel"),n=i.querySelector('.swiper-wrapper .swiper-slide[data-image="'+t+'"]'),r=i.swiper.slides.indexOf(n);i.swiper.slideTo(r)}))}));let oh=document.querySelector(".cookie-box"),ah=document.querySelectorAll(".close-cookie"),lh=document.querySelectorAll(".accept-cookie");ah.forEach((e=>{e.addEventListener("click",(()=>{oh.classList.add("!translate-y-[125%]")}))})),(!Cookies.get("cookie")||"accepted"!=Cookies.get("cookie"))&&oh.classList.remove("translate-y-[125%]"),lh.forEach((e=>{e.addEventListener("click",(()=>{oh.classList.add("!translate-y-[125%]"),Cookies.set("cookie","accepted",{expires:7})}))}))}()}();




if (document.querySelector('.product-carousel')) {
    const productCarousel = new Swiper(".product-carousel", {
        modules: [A, N],
        slidesPerView: 3.8,
        speed: 1000,
        spaceBetween: 30,
        resistance: true,
        resistanceRatio: 0,
        watchSlidesProgress: true,
        loop: true,
        autoplay: false,
        navigation: {
            nextEl: ".product-carousel-next",
            prevEl: ".product-carousel-prev"
        },
        breakpoints: {
            0: { slidesPerView: 1.8, },
            481: { slidesPerView: 2.4, },
            769: { slidesPerView: 2.4, },
            1025: { slidesPerView: 2.8, },
            1281: { slidesPerView: 3.2, },
            1441: { slidesPerView: 3.4, },
            1681: { slidesPerView: 3.8, },
        },
    });

    // Create intersection observer
    const observer = new IntersectionObserver((entries) => {
        entries.forEach(entry => {
            if (entry.isIntersecting) {
                productCarousel.autoplay.start();
                productCarousel.params.autoplay = {
                    delay: 3500,
                    disableOnInteraction: false,
                    pauseOnMouseEnter: true
                };
            } else {
                productCarousel.autoplay.stop();
            }
        });
    });

    // Observe the carousel element
    observer.observe(document.querySelector('.product-carousel'));
}

// Slogan Scroll FX
document.fonts.ready.then(() => {
    let sloganWrapper = document.querySelector('.products-field .slogan-wrapper');
    if (!sloganWrapper) return;
    if (sloganWrapper) {
        let sloganElement = sloganWrapper.querySelector('.slogan');
        let imageElement = sloganWrapper.querySelector('img');
        let totalWidth = sloganElement.scrollWidth + imageElement.scrollWidth + parseInt(window.getComputedStyle(sloganWrapper).gap);

        // Orijinal içeriği 3 kez klonla
        for (let i = 0; i < 3; i++) {
            let clone = sloganWrapper.children[0].cloneNode(true);
            sloganWrapper.appendChild(clone);
        }

        // Animasyon timeline'ı oluştur
        let tl = gsap.timeline({
            repeat: -1,
            defaults: {
                ease: "none"
            }
        });

        // Yumuşak geçişli sonsuz döngü animasyonu
        tl.to(sloganWrapper, {
            x: -totalWidth,
            duration: 10,
            onComplete: () => {
                gsap.set(sloganWrapper, {x: 0});
            }
        });
    }
});

if (document.querySelector('.faq-image-carousel'))
  new Swiper(".faq-image-carousel", {
      slidesPerView: 1,
      speed: 1000,
      resistance: true,
      resistanceRatio: 0,
      parallax: true,
      allowTouchMove: false,
      effect: "fade",
      fadeEffect: { crossFade: true },
  })

if (document.querySelector('.faq-text-carousel'))
  new Swiper(".faq-text-carousel", {
      slidesPerView: 1,
      speed: 1000,
      resistance: true,
      resistanceRatio: 0,
      watchSlidesProgress: true,
      autoplay: {
          delay: 5000,
          disableOnInteraction: false,
          pauseOnMouseEnter: true,
      },
      navigation: {
          nextEl: ".faq-next",
          prevEl: ".faq-prev"
      },
      on: {
          slideChange: function () {
              document.querySelector('.faq-image-carousel').swiper.slideTo(this.realIndex);
          },
      }
  })

if (document.querySelector('.news-carousel'))
  new Swiper(".news-carousel", {
      slidesPerView: 3,
      speed: 1000,
      spaceBetween: 80,
      resistance: true,
      resistanceRatio: 0,
      watchSlidesProgress: true,
      autoplay: {
          delay: 2500,
          disableOnInteraction: false,
          pauseOnMouseEnter: true,
      },
      navigation: {
          nextEl: ".news-next",
          prevEl: ".news-prev"
      },
      breakpoints: {
          0: { slidesPerView: 1, spaceBetween: 30, },
          769: { slidesPerView: 2, spaceBetween: 30, },
          1025: { slidesPerView: 3, spaceBetween: 35, },
          1281: { slidesPerView: 3, spaceBetween: 40, },
          1441: { slidesPerView: 3, spaceBetween: 60, },
          1681: { slidesPerView: 3, spaceBetween: 80, },
      },
  })

  if (document.querySelector('.hero-carousel'))
    new Swiper(".hero-carousel", {
        modules: [A, Px],
        slidesPerView: 1,
        speed: 1000,
        resistance: true,
        resistanceRatio: 0,
        loop:true,
        parallax: true,
        autoplay: {
            delay:3500,
            disableOnInteraction: false,
            pauseOnMouseEnter: true,
        },
    })
if (document.querySelector('.hero-products-carousel'))
  new Swiper(".hero-products-carousel", {
    modules: [A],
      slidesPerView: 2,
      speed: 1000,
      resistanceRatio: 0,
      watchSlidesProgress: true,
      autoplay: {
          delay: 3000,
          disableOnInteraction: false,
          pauseOnMouseEnter: true,
      },
      breakpoints: {
          0: { slidesPerView: 1, },
          481: { slidesPerView: 2, },
          769: { slidesPerView: 3, },
          1025: { slidesPerView: 3, },
          1281: { slidesPerView: 4, },
          1441: { slidesPerView: 5, },
          1681: { slidesPerView: 6, },
      }
  })

if (document.querySelector('.hero-news-carousel'))
  new Swiper(".hero-news-carousel", {
      
      slidesPerView: 1,
      speed: 1000,
      spaceBetween: 30,
      resistance: true,
      resistanceRatio: 0,
      watchSlidesProgress: true,
      autoHeight: true,
      allowTouchMove: false,
      autoplay: {
          delay: 20000,
          disableOnInteraction: false,
          pauseOnMouseEnter: true,
      },
      on: {
          transitionEnd: function () {
              document.querySelector('.hero-news-wrapper').classList.remove('is-hidden')
          },
          autoplayTimeLeft: function (swiper, timeLeft, percentage) {
              let percent = (percentage * 100).toFixed(0);
              if (percent < 50) document.querySelector('.hero-news-wrapper').classList.add('is-hidden')
          },
      },
  })