vendor: 26,291 bytes, line 1
1function escapeRegExp(t){return t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function isEmpty(t){return null==t||t.hasOwnProperty("length")&&0===t.length||t.constructor===Object&&0===Object.keys(t).length}!function(){for(var t,e=function(){},i=["assert","clear","count","debug","dir","dirxml","error","exception","group","groupCollapsed","groupEnd","info","log","markTimeline","profile","profileEnd","table","time","timeEnd","timeline","timelineEnd","timeStamp","trace","warn"],n=i.length,o=window.console=window.console||{};n--;)o[t=i[n]]||(o[t]=e)}(),function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e((t="undefined"!=typeof globalThis?globalThis:t||self).window=t.window||{})}(this,(function(t){"use strict";const e=(t,e=1e4)=>(t=parseFloat(t+"")||0,Math.round((t+Number.EPSILON)*e)/e),i=function(t){if(!(t&&t instanceof Element&&t.offsetParent))return!1;const e=t.scrollHeight>t.clientHeight,i=window.getComputedStyle(t).overflowY,n=-1!==i.indexOf("hidden"),o=-1!==i.indexOf("visible");return e&&!n&&!o},n=function(t,e=void 0){return!(!t||t===document.body||e&&t===e)&&(i(t)?t:n(t.parentElement,e))},o=function(t){var e=(new DOMParser).parseFromString(t,"text/html").body;if(e.childElementCount>1){for(var i=document.createElement("div");e.firstChild;)i.appendChild(e.firstChild);return i}return e.firstChild},s=t=>`${t||""}`.split(" ").filter((t=>!!t)),r=(t,e,i)=>{t&&s(e).forEach((e=>{t.classList.toggle(e,i||!1)}))};class a{constructor(t){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=t,this.pageX=t.pageX,this.pageY=t.pageY,this.clientX=t.clientX,this.clientY=t.clientY,this.id=self.Touch&&t instanceof Touch?t.identifier:-1,this.time=Date.now()}}const l={passive:!1};class c{constructor(t,{start:e=(()=>!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=t,this.startCallback=e,this.moveCallback=i,this.endCallback=n;for(const t of["onPointerStart","onTouchStart","onMove","onTouchEnd","onPointerEnd","onWindowBlur"])this[t]=this[t].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(t){if(!t.buttons||0!==t.button)return;const e=new a(t);this.currentPointers.some((t=>t.id===e.id))||this.triggerPointerStart(e,t)&&(window.addEventListener("mousemove",this.onMove),window.addEventListener("mouseup",this.onPointerEnd),window.addEventListener("blur",this.onWindowBlur))}onTouchStart(t){for(const e of Array.from(t.changedTouches||[]))this.triggerPointerStart(new a(e),t);window.addEventListener("blur",this.onWindowBlur)}onMove(t){const e=this.currentPointers.slice(),i="changedTouches"in t?Array.from(t.changedTouches||[]).map((t=>new a(t))):[new a(t)],n=[];for(const t of i){const e=this.currentPointers.findIndex((e=>e.id===t.id));e<0||(n.push(t),this.currentPointers[e]=t)}n.length&&this.moveCallback(t,this.currentPointers.slice(),e)}onPointerEnd(t){t.buttons>0&&0!==t.button||(this.triggerPointerEnd(t,new a(t)),window.removeEventListener("mousemove",this.onMove),window.removeEventListener("mouseup",this.onPointerEnd),window.removeEventListener("blur",this.onWindowBlur))}onTouchEnd(t){for(const e of Array.from(t.changedTouches||[]))this.triggerPointerEnd(t,new a(e))}triggerPointerStart(t,e){return!!this.startCallback(e,t,this.currentPointers.slice())&&(this.currentPointers.push(t),this.startPointers.push(t),!0)}triggerPointerEnd(t,e){const i=this.currentPointers.findIndex((t=>t.id===e.id));i<0||(this.currentPointers.splice(i,1),this.startPointers.splice(i,1),this.endCallback(t,e,this.currentPointers.slice()))}onWindowBlur(){this.clear()}clear(){for(;this.currentPointers.length;){const t=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:t.clientX,clientY:t.clientY}),t,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(t,e){return e?Math.sqrt(Math.pow(e.clientX-t.clientX,2)+Math.pow(e.clientY-t.clientY,2)):0}function u(t,e){return e?{clientX:(t.clientX+e.clientX)/2,clientY:(t.clientY+e.clientY)/2}:t}const h=t=>"object"==typeof t&&null!==t&&t.constructor===Object&&"[object Object]"===Object.prototype.toString.call(t),p=(t,...e)=>{const i=e.length;for(let n=0;n<i;n++){const i=e[n]||{};Object.entries(i).forEach((([e,i])=>{const n=Array.isArray(i)?[]:{};t[e]||Object.assign(t,{[e]:n}),h(i)?Object.assign(t[e],p(n,i)):Array.isArray(i)?Object.assign(t,{[e]:[...i]}):Object.assign(t,{[e]:i})}))}return t},f=function(t,e){return t.split(".").reduce(((t,e)=>"object"==typeof t?t[e]:void 0),e)};class g{constructor(t={}){Object.defineProperty(this,"options",{enumerable:!0,configurable:!0,writable:!0,value:t}),Object.defineProperty(this,"events",{enumerable:!0,configurable:!0,writable:!0,value:new Map}),this.setOptions(t);for(const t of Object.getOwnPropertyNames(Object.getPrototypeOf(this)))t.startsWith("on")&&"function"==typeof this[t]&&(this[t]=this[t].bind(this))}setOptions(t){this.options=t?p({},this.constructor.defaults,t):{};for(const[t,e]of Object.entries(this.option("on")||{}))this.on(t,e)}option(t,...e){let i=f(t,this.options);return i&&"function"==typeof i&&(i=i.call(this,this,...e)),i}optionFor(t,e,i,...n){let o=f(e,t);var s;"string"!=typeof(s=o)||isNaN(s)||isNaN(parseFloat(s))||(o=parseFloat(o)),"true"===o&&(o=!0),"false"===o&&(o=!1),o&&"function"==typeof o&&(o=o.call(this,this,t,...n));let r=f(e,this.options);return r&&"function"==typeof r?o=r.call(this,this,t,...n,o):void 0===o&&(o=r),void 0===o?i:o}cn(t){const e=this.options.classes;return e&&e[t]||""}localize(t,e=[]){t=String(t).replace(/\{\{(\w+).?(\w+)?\}\}/g,((t,e,i)=>{let n="";return i?n=this.option(`${e[0]+e.toLowerCase().substring(1)}.l10n.${i}`):e&&(n=this.option(`l10n.${e}`)),n||(n=t),n}));for(let i=0;i<e.length;i++)t=t.split(e[i][0]).join(e[i][1]);return t.replace(/\{\{(.*?)\}\}/g,((t,e)=>e))}on(t,e){let i=[];"string"==typeof t?i=t.split(" "):Array.isArray(t)&&(i=t),this.events||(this.events=new Map),i.forEach((t=>{let i=this.events.get(t);i||(this.events.set(t,[]),i=[]),i.includes(e)||i.push(e),this.events.set(t,i)}))}off(t,e){let i=[];"string"==typeof t?i=t.split(" "):Array.isArray(t)&&(i=t),i.forEach((t=>{const i=this.events.get(t);if(Array.isArray(i)){const t=i.indexOf(e);t>-1&&i.splice(t,1)}}))}emit(t,...e){[...this.events.get(t)||[]].forEach((t=>t(this,...e))),"*"!==t&&this.emit("*",t,...e)}}Object.defineProperty(g,"version",{enumerable:!0,configurable:!0,writable:!0,value:"5.0.36"}),Object.defineProperty(g,"defaults",{enumerable:!0,configurable:!0,writable:!0,value:{}});class m extends g{constructor(t={}){super(t),Object.defineProperty(this,"plugins",{enumerable:!0,configurable:!0,writable:!0,value:{}})}attachPlugins(t={}){const e=new Map;for(const[i,n]of Object.entries(t)){const t=this.option(i),o=this.plugins[i];o||!1===t?o&&!1===t&&(o.detach(),delete this.plugins[i]):e.set(i,new n(this,t||{}))}for(const[t,i]of e)this.plugins[t]=i,i.attach()}detachPlugins(t){t=t||Object.keys(this.plugins);for(const e of t){const t=this.plugins[e];t&&t.detach(),delete this.plugins[e]}return this.emit("detachPlugins"),this}}var v;!function(t){t[t.Init=0]="Init",t[t.Error=1]="Error",t[t.Ready=2]="Ready",t[t.Panning=3]="Panning",t[t.Mousemove=4]="Mousemove",t[t.Destroy=5]="Destroy"}(v||(v={}));const y=["a","b","c","d","e","f"],b={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:b},x='<circle cx="25" cy="25" r="20"></circle>',T='<div class="f-spinner"><svg viewBox="0 0 50 50">'+x+x+"</svg></div>",_=t=>t&&null!==t&&t instanceof Element&&"nodeType"in t,S=(t,e)=>{t&&s(e).forEach((e=>{t.classList.remove(e)}))},C=(t,e)=>{t&&s(e).forEach((e=>{t.classList.add(e)}))},k={a:1,b:0,c:0,d:1,e:0,f:0},E=1e4,P="mousemove",O="drag",M="content",A="auto";let z=null,L=null;class R extends m{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===z&&(z=/iPhone|iPad|iPod|Android/i.test(navigator.userAgent)),z}get panMode(){return this.options.panMode!==P||this.isTouchDevice?O:P}get panOnlyZoomed(){const t=this.options.panOnlyZoomed;return t===A?this.isTouchDevice:t}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:t,b:e}=this.current;return Math.sqrt(t*t+e*e)||1}get targetScale(){const{a:t,b:e}=this.target;return Math.sqrt(t*t+e*e)||1}get minScale(){return this.option("minScale")||1}get fullScale(){const{contentRect:t}=this;return t.fullWidth/t.fitWidth||1}get maxScale(){return this.fullScale*(this.option("maxScale")||1)||1}get coverScale(){const{containerRect:t,contentRect:e}=this,i=Math.max(t.height/e.fitHeight,t.width/e.fitWidth)||1;return Math.min(this.fullScale,i)}get isScaling(){return Math.abs(this.targetScale-this.scale)>1e-5&&!this.isResting}get isContentLoading(){const t=this.content;return!!(t&&t instanceof HTMLImageElement)&&!t.complete}get isResting(){if(this.isBouncingX||this.isBouncingY)return!1;for(const t of y){const e="e"==t||"f"===t?1e-4:1e-5;if(Math.abs(this.target[t]-this.current[t])>e)return!1}return!(!this.ignoreBounds&&!this.checkBounds().inBounds)}constructor(t,e={},i={}){var n;if(super(e),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({},k)}),Object.defineProperty(this,"target",{enumerable:!0,configurable:!0,writable:!0,value:Object.assign({},k)}),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}),!t)throw new Error("Container Element Not Found");this.container=t,this.initContent(),this.attachPlugins(Object.assign(Object.assign({},R.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")){t.classList.add(this.cn("isLoading"));const e=o(T);!t.contains(s)||s.parentElement instanceof HTMLPictureElement?this.spinner=t.appendChild(e):this.spinner=(null===(n=s.parentElement)||void 0===n?void 0:n.insertBefore(e,s))||null}this.emit("beforeLoad")}else queueMicrotask((()=>{this.enable()}))}initContent(){const{container:t}=this,e=this.cn(M);let i=this.option(M)||t.querySelector(`.${e}`);if(i||(i=t.querySelector("img,picture")||t.firstElementChild,i&&C(i,e)),i instanceof HTMLPictureElement&&(i=i.querySelector("img")),!i)throw new Error("No content found");this.content=i}onLoad(){const{spinner:t,container:e,state:i}=this;t&&(t.remove(),this.spinner=null),this.option("spinner")&&e.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"))}getNextScale(t){const{fullScale:e,targetScale:i,coverScale:n,maxScale:o,minScale:s}=this;let r=s;switch(t){case"toggleMax":r=i-s<.5*(o-s)?o:s;break;case"toggleCover":r=i-s<.5*(n-s)?n:s;break;case"toggleZoom":r=i-s<.5*(e-s)?e:s;break;case"iterateZoom":let t=[1,e,o].sort(((t,e)=>t-e)),a=t.findIndex((t=>t>i+1e-5));r=t[a]||1}return r}attachObserver(){var t;const e=()=>{const{container:t,containerRect:e}=this;return Math.abs(e.width-t.getBoundingClientRect().width)>.1||Math.abs(e.height-t.getBoundingClientRect().height)>.1};this.resizeObserver||void 0===window.ResizeObserver||(this.resizeObserver=new ResizeObserver((()=>{this.updateTimer||(e()?(this.onResize(),this.isMobile&&(this.updateTimer=setTimeout((()=>{e()&&this.onResize(),this.updateTimer=null}),500))):this.updateTimer&&(clearTimeout(this.updateTimer),this.updateTimer=null))}))),null===(t=this.resizeObserver)||void 0===t||t.observe(this.container)}detachObserver(){var t;null===(t=this.resizeObserver)||void 0===t||t.disconnect()}attachEvents(){const{container:t}=this;t.addEventListener("click",this.onClick,{passive:!1,capture:!1}),t.addEventListener("wheel",this.onWheel,{passive:!1}),this.pointerTracker=new c(t,{start:this.onPointerDown,move:this.onPointerMove,end:this.onPointerUp}),document.addEventListener(P,this.onMouseMove)}detachEvents(){var t;const{container:e}=this;e.removeEventListener("click",this.onClick,{passive:!1,capture:!1}),e.removeEventListener("wheel",this.onWheel,{passive:!1}),null===(t=this.pointerTracker)||void 0===t||t.stop(),this.pointerTracker=null,document.removeEventListener(P,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 t=this.friction,e=this.option("maxVelocity");for(const i of y)t?(this.velocity[i]*=1-t,e&&!this.isScaling&&(this.velocity[i]=Math.max(Math.min(this.velocity[i],e),-1*e)),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 t of y)"e"===t&&this.isBouncingX||"f"===t&&this.isBouncingY||(this.velocity[t]=(1/(1-this.friction)-1)*(this.target[t]-this.current[t]))}checkBounds(t=0,e=0){const{current:i}=this,n=i.e+t,o=i.f+e,s=this.getBounds(),{x:r,y:a}=s,l=r.min,c=r.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&&o<d?p=d-o:u!==1/0&&o>u&&(p=u-o),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:t}=this,{x:e,y:i}=this.getBounds();e.min!==1/0&&(t.e=Math.max(t.e,e.min)),e.max!==1/0&&(t.e=Math.min(t.e,e.max)),i.min!==1/0&&(t.f=Math.max(t.f,i.min)),i.max!==1/0&&(t.f=Math.min(t.f,i.max))}calculateContentDim(t=this.current){const{content:e,contentRect:i}=this,{fitWidth:n,fitHeight:o,fullWidth:s,fullHeight:r}=i;let a=s,l=r;if(this.option("zoom")||0!==this.angle){const i=!(e instanceof HTMLImageElement||"none"!==window.getComputedStyle(e).maxWidth&&"none"!==window.getComputedStyle(e).maxHeight),c=i?s:n,d=i?r:o,u=this.getMatrix(t),h=new DOMPoint(0,0).matrixTransform(u),p=new DOMPoint(0+c,0).matrixTransform(u),f=new DOMPoint(0+c,0+d).matrixTransform(u),g=new DOMPoint(0,0+d).matrixTransform(u),m=Math.abs(f.x-h.x),v=Math.abs(f.y-h.y),y=Math.abs(g.x-p.x),b=Math.abs(g.y-p.y);a=Math.max(m,y),l=Math.max(v,b)}return{contentWidth:a,contentHeight:l}}setEdgeForce(){if(this.ignoreBounds||this.isDragging||this.panMode===P||this.targetScale<this.scale)return this.isBouncingX=!1,void(this.isBouncingY=!1);const{target:t}=this,{x:e,y:i,xDiff:n,yDiff:o}=this.checkBounds(),s=this.option("maxVelocity");let r=this.velocity.e,a=this.velocity.f;0!==n?(this.isBouncingX=!0,n*r<=0?r+=.14*n:(r=.14*n,e.min!==1/0&&(this.target.e=Math.max(t.e,e.min)),e.max!==1/0&&(this.target.e=Math.min(t.e,e.max))),s&&(r=Math.max(Math.min(r,s),-1*s))):this.isBouncingX=!1,0!==o?(this.isBouncingY=!0,o*a<=0?a+=.14*o:(a=.14*o,i.min!==1/0&&(this.target.f=Math.max(t.f,i.min)),i.max!==1/0&&(this.target.f=Math.min(t.f,i.max))),s&&(a=Math.max(Math.min(a,s),-1*s))):this.isBouncingY=!1,this.isBouncingX&&(this.velocity.e=r),this.isBouncingY&&(this.velocity.f=a)}enable(){const{content:t}=this,e=new DOMMatrixReadOnly(window.getComputedStyle(t).transform);for(const t of y)this.current[t]=this.target[t]=e[t];this.updateMetrics(),this.attachObserver(),this.attachEvents(),this.state=v.Ready,this.emit("ready")}onClick(t){var e;"click"===t.type&&0===t.detail&&(this.dragOffset.x=0,this.dragOffset.y=0),this.isDragging&&(null===(e=this.pointerTracker)||void 0===e||e.clear(),this.trackingPoints=[],this.startDecelAnim());const i=t.target;if(!i||t.defaultPrevented)return;if(i.hasAttribute("disabled"))return t.preventDefault(),void t.stopPropagation();if((()=>{const t=window.getSelection();return t&&"Range"===t.type})()&&!i.closest("button"))return;const n=i.closest("[data-panzoom-action]"),o=i.closest("[data-panzoom-change]"),s=n||o,r=s&&_(s)?s.dataset:null;if(r){const e=r.panzoomChange,i=r.panzoomAction;if((e||i)&&t.preventDefault(),e){let i={};try{i=JSON.parse(e)}catch(t){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 t.preventDefault(),void t.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=e=>{this.option("zoom",t)&&e&&"string"==typeof e&&/(iterateZoom)|(toggle(Zoom|Full|Cover|Max)|(zoomTo(Fit|Cover|Max)))/.test(e)&&"function"==typeof this[e]&&(t.preventDefault(),this[e]({event:t}))},d=this.option("click",t),u=this.option("dblClick",t);u?(this.clicks++,1==this.clicks&&(this.clickTimer=setTimeout((()=>{1===this.clicks?(this.emit("click",t),!t.defaultPrevented&&d&&c(d)):(this.emit("dblClick",t),t.defaultPrevented||c(u)),this.clicks=0,this.clickTimer=null}),350))):(this.emit("click",t),!t.defaultPrevented&&d&&c(d))}addTrackingPoint(t){const e=this.trackingPoints.filter((t=>t.time>Date.now()-100));e.push(t),this.trackingPoints=e}onPointerDown(t,e,i){var n;if(!1===this.option("touch",t))return!1;this.pwt=0,this.dragOffset={x:0,y:0,time:0},this.trackingPoints=[];const o=this.content.getBoundingClientRect();if(this.dragStart={x:o.x,y:o.y,top:o.top,left:o.left,time:Date.now()},this.clickTimer)return!1;if(this.panMode===P&&this.targetScale>1)return t.preventDefault(),t.stopPropagation(),!1;const s=t.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"===t.type)["A","BUTTON"].includes(s.nodeName)||t.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(e),this.emit("touchStart",t)),!0}onPointerMove(t,i,o){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,r=u(o[0],o[1]),a=u(i[0],i[1]);let l=0,c=0;if(i.length>1){const t=s.getBoundingClientRect();l=r.clientX-t.left-.5*t.width,c=r.clientY-t.top-.5*t.height}const h=d(o[0],o[1]),p=d(i[0],i[1]);let f=h?p/h:1,g=a.clientX-r.clientX,m=a.clientY-r.clientY;this.dragOffset.x+=g,this.dragOffset.y+=m,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,g=0,m=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 y=this.checkBounds(g,m);this.option("rubberband")?("x"!==this.isInfinite&&(y.xDiff>0&&g<0||y.xDiff<0&&g>0)&&(g*=Math.max(0,.5-Math.abs(.75/this.contentRect.fitWidth*y.xDiff))),"y"!==this.isInfinite&&(y.yDiff>0&&m<0||y.yDiff<0&&m>0)&&(m*=Math.max(0,.5-Math.abs(.75/this.contentRect.fitHeight*y.yDiff)))):(y.xDiff&&(g=0),y.yDiff&&(m=0));const b=this.targetScale,w=this.minScale,x=this.maxScale;b<.5*w&&(f=Math.max(f,w)),b>1.5*x&&(f=Math.min(f,x)),"y"===this.lockedAxis&&e(b)===e(w)&&(g=0),"x"===this.lockedAxis&&e(b)===e(w)&&(m=0),this.applyChange({originX:l,originY:c,panX:g,panY:m,scale:f,friction:this.option("dragFriction"),ignoreBounds:!0})}onPointerUp(t,e,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(e),this.panOnlyZoomed&&this.contentRect.width-this.contentRect.fitWidth<1&&this.contentRect.height-this.contentRect.fitHeight<1&&(this.trackingPoints=[]),n(t.target,this.content)&&"y"===this.lockedAxis&&(this.trackingPoints=[]),this.emit
vendor: 12,914 bytes, lines 1-2
1("touchEnd",t),this.isDragging=!1,this.lockedAxis=!1,this.state!==v.Destroy&&(t.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 t of y)this.velocity[t]=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,o=n[0],s=n[n.length-1];let r=0,a=0,l=0;s&&o&&(r=s.clientX-o.clientX,a=s.clientY-o.clientY,l=s.time-o.time);const c=(null===(t=window.visualViewport)||void 0===t?void 0:t.scale)||1;1!==c&&(r*=c,a*=c);let d=0,u=0,h=0,p=0,f=this.option("decelFriction");const g=this.targetScale;if(l>0){h=Math.abs(r)>3?r/(l/30):0,p=Math.abs(a)>3?a/(l/30):0;const t=this.option("maxVelocity");t&&(h=Math.max(Math.min(h,t),-1*t),p=Math.max(Math.min(p,t),-1*t))}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(g)===this.minScale)&&(d=h=0),("x"===this.option("lockAxis")||"xy"===this.option("lockAxis")&&"x"===this.lockedAxis&&e(g)===this.minScale)&&(u=p=0);const m=this.dragOffset.x,v=this.dragOffset.y,b=this.option("dragMinThreshold")||0;Math.abs(m)<b&&Math.abs(v)<b&&(d=u=0,h=p=0),(this.option("zoom")&&(g<this.minScale-1e-5||g>this.maxScale+1e-5)||i&&!d&&!u)&&(f=.35),this.applyChange({panX:d,panY:u,friction:f}),this.emit("decel",h,p,m,v)}onWheel(t){var e=[-t.deltaX||0,-t.deltaY||0,-t.detail||0].reduce((function(t,e){return Math.abs(e)>Math.abs(t)?e:t}));const i=Math.max(-1,Math.min(1,e));if(this.emit("wheel",t,i),this.panMode===P)return;if(t.defaultPrevented)return;const n=this.option("wheel");"pan"===n?(t.preventDefault(),this.panOnlyZoomed&&!this.canZoomOut()||this.applyChange({panX:2*-t.deltaX,panY:2*-t.deltaY,bounce:!1})):"zoom"===n&&!1!==this.option("zoom")&&this.zoomWithWheel(t)}onMouseMove(t){this.panWithMouse(t)}onKeydown(t){"Escape"===t.key&&this.toggleFS()}onResize(){this.updateMetrics(),this.checkBounds().inBounds||this.requestTick()}setTransform(){this.emit("beforeTransform");const{current:t,target:i,content:n,contentRect:o}=this,s=Object.assign({},k);for(const n of y){const o="e"==n||"f"===n?E:1e5;s[n]=e(t[n],o),Math.abs(i[n]-t[n])<("e"==n||"f"===n?.51:.001)&&(t[n]=i[n])}let{a:r,b:a,c:l,d:c,e:d,f:u}=s,h=`matrix(${r}, ${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:g}=this.calculateContentDim();o.width=f,o.height=g,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:o,content:s}=this,r=s instanceof HTMLImageElement,a=o.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};const f=parseFloat(s.dataset.width||"")||(t=>{let e=0;return e=t instanceof HTMLImageElement?t.naturalWidth:t instanceof SVGElement?t.width.baseVal.value:Math.max(t.offsetWidth,t.scrollWidth),e||0})(s),g=parseFloat(s.dataset.height||"")||(t=>{let e=0;return e=t instanceof HTMLImageElement?t.naturalHeight:t instanceof SVGElement?t.height.baseVal.value:Math.max(t.offsetHeight,t.scrollHeight),e||0})(s);let m=this.option("width",f)||A,y=this.option("height",g)||A;const b=m===A,w=y===A;"number"!=typeof m&&(m=f),"number"!=typeof y&&(y=g),b&&(m=f*(y/g)),w&&(y=g/(f/m));let x=s.parentElement instanceof HTMLPictureElement?s.parentElement:s;this.option("transformParent")&&(x=x.parentElement||x);const T=x.getAttribute("style")||"";x.style.setProperty("transform","none","important"),r&&(x.style.width="",x.style.height=""),x.offsetHeight;const _=s.getBoundingClientRect();let S=_.width*n,C=_.height*n,k=S,E=C;S=Math.min(S,m),C=Math.min(C,y),r?({width:S,height:C}=((t,e,i,n)=>{const o=i/t,s=n/e,r=Math.min(o,s);return{width:t*=r,height:e*=r}})(m,y,S,C)):(S=Math.min(S,m),C=Math.min(C,y));let P=.5*(E-C),O=.5*(k-S);this.contentRect=Object.assign(Object.assign({},this.contentRect),{top:_.top-a.top+P,bottom:a.bottom-_.bottom+P,left:_.left-a.left+O,right:a.right-_.right+O,fitWidth:S,fitHeight:C,width:S,height:C,fullWidth:m,fullHeight:y}),x.style.cssText=T,r&&(x.style.width=`${S}px`,x.style.height=`${C}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:o}=this,{fitWidth:s,fitHeight:r}=this.contentRect;let a=0,l=0,c=0,d=0;const u=this.option("infinite");if(!0===u||o&&u===o)a=-1/0,c=1/0,l=-1/0,d=1/0;else{let{containerRect:o,contentRect:u}=this,h=e(s*n,E),p=e(r*n,E),{innerWidth:f,innerHeight:g}=o;if(o.width===h&&(f=o.width),o.width===p&&(g=o.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>g){d=.5*(i-g),l=-1*d;let t=.5*(u.bottom-u.top);l+=t,d+=t}r>g&&i<g&&(a-=.5*(r-g),c-=.5*(r-g))}return{x:{min:a,max:c},y:{min:l,max:d}}}getBounds(){const t=this.option("bounds");return t!==A?t:this.calculateBounds()}updateControls(){ 2const t=this,i=t.container,{panMode:n,contentRect:o,targetScale:s,minScale:a}=t;let l=a,c=t.option("click")||!1;c&&(l=t.getNextScale(c));let d=t.canZoomIn(),u=t.canZoomOut(),h=n===O&&!!this.option("touch"),p=u&&h;if(h&&(e(s)<e(a)&&!this.panOnlyZoomed&&(p=!0),(e(o.width,1)>e(o.fitWidth,1)||e(o.height,1)>e(o.fitHeight,1))&&(p=!0)),e(o.width*s,1)<e(o.fitWidth,1)&&(p=!1),n===P&&(p=!1),r(i,this.cn("isDraggable"),p),!this.option("zoom"))return;let f=d&&e(l)>e(s),g=!f&&!p&&u&&e(l)<e(s);r(i,this.cn("canZoomIn"),f),r(i,this.cn("canZoomOut"),g);for(const t of i.querySelectorAll("[data-panzoom-action]")){let e=!1,i=!1;switch(t.dataset.panzoomAction){case"zoomIn":d?e=!0:i=!0;break;case"zoomOut":u?e=!0:i=!0;break;case"toggleZoom":case"iterateZoom":d||u?e=!0:i=!0;const n=t.querySelector("g");n&&(n.style.display=d?"":"none")}e?(t.removeAttribute("disabled"),t.removeAttribute("tabindex")):i&&(t.setAttribute("disabled",""),t.setAttribute("tabindex","-1"))}}panTo({x:t=this.target.e,y:e=this.target.f,scale:i=this.targetScale,friction:n=this.option("friction"),angle:o=0,originX:s=0,originY:r=0,flipX:a=!1,flipY:l=!1,ignoreBounds:c=!1}){this.state!==v.Destroy&&this.applyChange({panX:t-this.target.e,panY:e-this.target.f,scale:i/this.targetScale,angle:o,originX:s,originY:r,friction:n,flipX:a,flipY:l,ignoreBounds:c})}applyChange({panX:t=0,panY:i=0,scale:n=1,angle:o=0,originX:s=-this.current.e,originY:r=-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,g=p.f,m=this.getMatrix(this.target);let b=(new DOMMatrix).translate(f,g).translate(s,r).translate(t,i);if(this.option("zoom")){if(!d){const t=this.targetScale,e=this.minScale,i=this.maxScale;t*n<e&&(n=e/t),t*n>i&&(n=i/t)}b=b.scale(n)}b=b.translate(-s,-r).translate(-f,-g).multiply(m),o&&(b=b.rotate(o)),l&&(b=b.scale(-1,1)),c&&(b=b.scale(1,-1));for(const t of y)"e"!==t&&"f"!==t&&(b[t]>this.minScale+1e-5||b[t]<this.minScale-1e-5)?this.target[t]=b[t]:this.target[t]=e(b[t],E);(this.targetScale<this.scale||Math.abs(n-1)>.1||this.panMode===P||!1===u)&&!d&&this.clampTargetBounds(),h===v.Init?this.animate():this.isResting||(this.state=v.Panning,this.requestTick())}stop(t=!1){if(this.state===v.Init||this.state===v.Destroy)return;const e=this.isTicking;this.rAF&&(cancelAnimationFrame(this.rAF),this.rAF=null),this.isBouncingX=!1,this.isBouncingY=!1;for(const e of y)this.velocity[e]=0,"current"===t?this.current[e]=this.target[e]:"target"===t&&(this.target[e]=this.current[e]);this.setTransform(),S(this.container,"is-scaling"),S(this.container,"is-animating"),this.isTicking=!1,this.state=v.Ready,e&&(this.emit("endAnimation"),this.updateControls())}requestTick(){this.isTicking||(this.emit("startAnimation"),this.updateControls(),C(this.container,"is-animating"),this.isScaling&&C(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!==P||!t)return;if(e(this.targetScale)<=e(this.minScale))return;this.emit("mouseMove",t);const{container:n,containerRect:o,contentRect:s}=this,r=o.width,a=o.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!==r&&(u*=p),h!==a&&(h*=p));let f=.5*(u-r)-c/r*100/100*(u-r);f+=.5*(s.right-s.left);let g=.5*(h-a)-d/a*100/100*(h-a);g+=.5*(s.bottom-s.top),this.applyChange({panX:f-this.target.e,panY:g-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(t,e){return Math.abs(e)>Math.abs(t)?e:t}));const o=Math.max(-1,Math.min(1,n)),{targetScale:s,maxScale:r,minScale:a}=this;let l=s*(100+45*o)/100;e(l)<e(a)&&e(s)<=e(a)?(this.cwd+=Math.abs(o),l=a):e(l)>e(r)&&e(s)>=e(r)?(this.cwd+=Math.abs(o),l=r):(this.cwd=0,l=Math.max(Math.min(l,r),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(t=1.25,e){this.zoomTo(this.targetScale*t,e)}zoomOut(t=.8,e){this.zoomTo(this.targetScale*t,e)}zoomToFit(t){this.zoomTo("fit",t)}zoomToCover(t){this.zoomTo("cover",t)}zoomToFull(t){this.zoomTo("full",t)}zoomToMax(t){this.zoomTo("max",t)}toggleZoom(t){this.zoomTo(this.getNextScale("toggleZoom"),t)}toggleMax(t){this.zoomTo(this.getNextScale("toggleMax"),t)}toggleCover(t){this.zoomTo(this.getNextScale("toggleCover"),t)}iterateZoom(t){this.zoomTo("next",t)}zoomTo(t=1,{friction:e=A,originX:i=A,originY:n=A,event:o}={}){if(this.isContentLoading||this.state===v.Destroy)return;const{targetScale:s,fullScale:r,maxScale:a,coverScale:l}=this;if(this.stop(),this.panMode===P&&(o=this.pmme||o),o||i===A||n===A){const t=this.content.getBoundingClientRect(),e=this.container.getBoundingClientRect(),s=o?o.clientX:e.left+.5*e.width,r=o?o.clientY:e.top+.5*e.height;i=s-t.left-.5*t.width,n=r-t.top-.5*t.height}let c=1;"number"==typeof t?c=t:"full"===t?c=r:"cover"===t?c=l:"max"===t?c=a:"fit"===t?c=1:"next"===t&&(c=this.getNextScale("iterateZoom")),c=c/s||1,e=e===A?c>1?.15:.25:e,this.applyChange({scale:c,originX:i,originY:n,friction:e}),o&&this.panMode===P&&this.panWithMouse(o,e)}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:t,contentRect:e,target:i}=this;this.applyChange({panX:.5*t.width-(e.left+.5*e.fitWidth)-i.e,panY:.5*t.height-(e.top+.5*e.fitHeight)-i.f,scale:t.width/e.fitWidth/this.targetScale,originX:0,originY:0,ignoreBounds:!0})}fitY(){this.stop("target");const{containerRect:t,contentRect:e,target:i}=this;this.applyChange({panX:.5*t.width-(e.left+.5*e.fitWidth)-i.e,panY:.5*t.innerHeight-(e.top+.5*e.fitHeight)-i.f,scale:t.height/e.fitHeight/this.targetScale,originX:0,originY:0,ignoreBounds:!0})}toggleFS(){const{container:t}=this,e=this.cn("inFullscreen"),i=this.cn("htmlHasFullscreen");t.classList.toggle(e);const n=t.classList.contains(e);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(t=this.current){const{a:e,b:i,c:n,d:o,e:s,f:r}=t;return new DOMMatrix([e,i,n,o,s,r])}reset(t){if(this.state!==v.Init&&this.state!==v.Destroy){this.stop("current");for(const t of y)this.target[t]=k[t];this.target.a=this.minScale,this.target.d=this.minScale,this.clampTargetBounds(),this.isResting||(this.friction=void 0===t?this.option("friction"):t,this.state=v.Panning,this.requestTick())}}
vendor: 6,023 bytes, line 2
2destroy(){this.stop(),this.state=v.Destroy,this.detachEvents(),this.detachObserver();const{container:t,content:e}=this,i=this.option("classes")||{};for(const e of Object.values(i))t.classList.remove(e+"");e&&(e.removeEventListener("load",this.onLoad),e.removeEventListener("error",this.onError)),this.detachPlugins()}}Object.defineProperty(R,"defaults",{enumerable:!0,configurable:!0,writable:!0,value:w}),Object.defineProperty(R,"Plugins",{enumerable:!0,configurable:!0,writable:!0,value:{}});const D=function(t,e){let i=!0;return(...n)=>{i&&(i=!1,t(...n),setTimeout((()=>{i=!0}),e))}},j=(t,e)=>{let i=[];return t.childNodes.forEach((t=>{t.nodeType!==Node.ELEMENT_NODE||e&&!t.matches(e)||i.push(t)})),i};var I;!function(t){t[t.Init=0]="Init",t[t.Ready=1]="Ready",t[t.Destroy=2]="Destroy"}(I||(I={}));const F=t=>{if("string"==typeof t||t instanceof HTMLElement)t={html:t};else{const e=t.thumb;void 0!==e&&("string"==typeof e&&(t.thumbSrc=e),e instanceof HTMLImageElement&&(t.thumbEl=e,t.thumbElSrc=e.src,t.thumbSrc=e.src),delete t.thumb)}return Object.assign({html:"",el:null,isDom:!1,class:"",customClass:"",index:-1,dim:0,gap:0,pos:0,transition:!1},t)},H=(t={})=>Object.assign({index:-1,slides:[],dim:0,pos:-1},t);class $ extends g{constructor(t,e){super(e),Object.defineProperty(this,"instance",{enumerable:!0,configurable:!0,writable:!0,value:t})}attach(){}detach(){}}class B extends ${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 t=this.list;if(!t){t=document.createElement("ul"),C(t,this.cn("list")),t.setAttribute("role","tablist");const e=this.instance.container;e.appendChild(t),C(e,this.cn("hasDots")),this.list=t}return t}refresh(){var t;const e=this.instance.pages.length,i=Math.min(2,this.option("minCount")),n=Math.max(2e3,this.option("maxCount")),o=this.option("dynamicFrom");if(e<i||e>n)return void this.cleanup();const s="number"==typeof o&&e>5&&e>=o,a=!this.list||this.isDynamic!==s||this.list.children.length!==e;a&&this.cleanup();const l=this.build();if(r(l,this.cn("isDynamic"),!!s),a)for(let t=0;t<e;t++)l.append(this.createItem(t));let c,d=0;for(const e of[...l.children]){const i=d===this.instance.page;i&&(c=e),r(e,this.cn("isCurrent"),i),null===(t=e.children[0])||void 0===t||t.setAttribute("aria-selected",i?"true":"false");for(const t of["isBeforePrev","isPrev","isNext","isAfterNext"])S(e,this.cn(t));d++}if(c=c||l.firstChild,s&&c){const t=c.previousElementSibling,e=t&&t.previousElementSibling;C(t,this.cn("isPrev")),C(e,this.cn("isBeforePrev"));const i=c.nextElementSibling,n=i&&i.nextElementSibling;C(i,this.cn("isNext")),C(n,this.cn("isAfterNext"))}this.isDynamic=s}createItem(t=0){var e;const i=document.createElement("li");i.setAttribute("role","presentation");const n=o(this.instance.localize(this.option("dotTpl"),[["%d",t+1]]).replace(/\%i/g,t+""));return i.appendChild(n),null===(e=i.children[0])||void 0===e||e.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(B,"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 N="disabled",q="next",Y="prev";class W extends ${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 t=this.instance,e=t.pages.length,i=t.page;if(e<2)return void this.cleanup();this.build();let n=this.prev,o=this.next;n&&o&&(n.removeAttribute(N),o.removeAttribute(N),t.isInfinite||(i<=0&&n.setAttribute(N,""),i>=e-1&&o.setAttribute(N,"")))}addBtn(t){var e;const i=this.instance,n=document.createElement("button");n.setAttribute("tabindex","0"),n.setAttribute("title",i.localize(`{{${t.toUpperCase()}}}`)),C(n,this.cn("button")+" "+this.cn(t===q?"isNext":"isPrev"));const o=i.isRTL?t===q?Y:q:t;var s;return n.innerHTML=i.localize(this.option(`${o}Tpl`)),n.dataset[`carousel${s=t,s?s.match("^[a-z]")?s.charAt(0).toUpperCase()+s.substring(1):s:""}`]="true",null===(e=this.container)||void 0===e||e.appendChild(n),n}build(){const t=this.instance.container,e=this.cn("container");let{container:i,prev:n,next:o}=this;i||(i=t.querySelector("."+e),this.isDom=!!i),i||(i=document.createElement("div"),C(i,e),t.appendChild(i)),this.container=i,o||(o=i.querySelector("[data-carousel-next]")),o||(o=this.addBtn(q)),this.next=o,n||(n=i.querySelector("[data-carousel-prev]")),n||(n=this.addBtn(Y)),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(W,"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>
2',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 ${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(t){this.target=this.instance,this.nav=t,this.attachEvents()}addAsNavFor(t){this.nav=this.instance,this.target=t,this.attachEvents()}attachEvents(){const{nav:t,target:e}=this;t&&e&&(t.options.initialSlide=e.options.initialPage,t.state===I.Ready?this.onNavReady(t):t.on("ready",this.onNavReady),e.state===I.Ready?this.onTargetReady(e):e.on("ready",this.onTargetReady))}onNavReady(t){t.on("createSlide",this.onNavCreateSlide),t.on("Panzoom.click",this.onNavClick),t.on("Panzoom.touchEnd",this.onNavTouch),this.onTargetChange()}onTargetReady(t){t.on("change",this.onTargetChange),t.on("Panzoom.refresh",this.onTargetChange),this.onTargetChange()}onNavClick(t,e,i){this.onNavTouch(t,t.panzoom,i)}onNavTouch(t,e,i){var n,o;if(Math.abs(e.dragOffset.x)>3||Math.abs(e.dragOffset.y)>3)return;const s=i.target,{nav:r,target:a}=this;if(!r||!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=r.getPageForSlide(c);r.slideTo(u),a.slideTo(d,{friction:(null===(o=null===(n=this.nav)||void 0===n?void 0:n.plugins)||void 0===o?void 0:o.Sync.option("friction"))||0}),this.markSelectedSlide(c)}onNavCreateSlide(t,e){e.index===this.selectedIndex&&this.markSelectedSlide(e.index)}onTargetChange(){var t,e;const{target:i,nav:n}=this;if(!i||!n)return;if(n.state!==I.Ready||i.state!==I.Ready)return;const o=null===(e=null===(t=i.pages[i.page])||void 0===t?void 0:t.slides[0])||void 0===e?void 0:e.index,s=n.getPageForSlide(o);this.markSelectedSlide(o),n.slideTo(s,null===n.prevPage&&null===i.prevPage?{friction:0}:void 0)}markSelectedSlide(t){const e=this.nav;e&&e.state===I.Ready&&(this.selectedIndex=t,[...e.slides].map((e=>{e.el&&e.el.classList[e.index===t?"add":"remove"]("is-nav-selected")})))}attach(){const t=this;let e=t.options.target,i=t.options.nav;e?t.addAsNavFor(e):i&&t.addAsTargetFor(i)}detach(){const t=this,e=t.nav,i=t.target;e&&(e.off("ready",t.onNavReady),e.off("createSlide",t.onNavCreateSlide),e.off("Panzoom.click",t.onNavClick),e.off("Panzoom.touchEnd",t.onNavTouch)),t.nav=null,i&&(i.off("ready",t.onTargetReady),i.off("refresh",t.onTargetChange),i.off("change",t.onTargetChange)),t.target=null}}Object.defineProperty(X,"defaults",{enumerable:!0,configurable:!0,writable:!0,value:{friction:.35}});const U={Navigation:W,Dots:B,Sync:X},V="animationend",Z="isSelected",G="slide";class K extends m{get axis(){return this.isHorizontal?"e":"f"}get isEnabled(){return this.state===I.Ready}get isInfinite(){let t=!1;const{contentDim:e,viewportDim:i,pages:n,slides:o}=this,s=o[0];return n.length>=2&&s&&e+s.dim>=i&&(t=this.option("infinite")),t}get isRTL(){return"rtl"===this.option("direction")}get isHorizontal(){return"x"===this.option("axis")}constructor(t,e={},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:I.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 t&&(t=document.querySelector(t)),!t||!_(t))throw new Error("No Element found");this.container=t,this.slideNext=D(this.slideNext.bind(this),150),this.slidePrev=D(this.slidePrev.bind(this),150),this.userOptions=e,this.userPlugins=i,queueMicrotask((()=>{this.processOptions()}))}processOptions(){var t,e;const i=p({},K.defaults,this.userOptions);let n="";const o=i.breakpoints;if(o&&h(o))for(const[t,e]of Object.entries(o))window.matchMedia(t).matches&&h(e)&&(n+=t,p(i,e));n===this.bp&&this.state!==I.Init||(this.bp=n,this.state===I.Ready&&(i.initialSlide=(null===(e=null===(t=this.pages[this.page])||void 0===t?void 0:t.slides[0])||void 0===e?void 0:e.index)||0),this.state!==I.Init&&this.destroy(),super.setOptions(i),!1===this.option("enabled")?this.attachEvents():setTimeout((()=>{this.init()}),0))}
vendor: 11,056 bytes, line 2
2init(){this.state=I.Init,this.emit("init"),this.attachPlugins(Object.assign(Object.assign({},K.Plugins),this.userPlugins)),this.emit("attachPlugins"),this.initLayout(),this.initSlides(),this.updateMetrics(),this.setInitialPosition(),this.initPanzoom(),this.attachEvents(),this.state=I.Ready,this.emit("ready")}initLayout(){const{container:t}=this,e=this.option("classes");C(t,this.cn("container")),r(t,e.isLTR,!this.isRTL),r(t,e.isRTL,this.isRTL),r(t,e.isVertical,!this.isHorizontal),r(t,e.isHorizontal,this.isHorizontal);let i=this.option("viewport")||t.querySelector(`.${e.viewport}`);i||(i=document.createElement("div"),C(i,e.viewport),i.append(...j(t,`.${e.slide}`)),t.prepend(i)),i.addEventListener("scroll",this.onScroll);let n=this.option("track")||t.querySelector(`.${e.track}`);n||(n=document.createElement("div"),C(n,e.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:t}=this;if(!t)return;const e=[...this.slides],i=[];[...j(t,`.${this.cn(G)}`)].forEach((t=>{if(_(t)){const e=F({el:t,isDom:!0,index:this.slides.length});i.push(e)}}));for(let t of[...this.option("slides",[])||[],...e])i.push(F(t));this.slides=i;for(let t=0;t<this.slides.length;t++)this.slides[t].index=t;for(const t of i)this.emit("beforeInitSlide",t,t.index),this.emit("initSlide",t,t.index);this.emit("initSlides")}setInitialPage(){const t=this.option("initialSlide");this.page="number"==typeof t?this.getPageForSlide(t):parseInt(this.option("initialPage",0)+"",10)||0}setInitialPosition(){const{track:t,pages:e,isHorizontal:i}=this;if(!t||!e.length)return;let n=this.page;e[n]||(this.page=n=0);const o=(e[n].pos||0)*(this.isRTL&&i?1:-1),s=i?`${o}px`:"0",r=i?"0":`${o}px`;t.style.transform=`translate3d(${s}, ${r}, 0) scale(1)`,this.option("adaptiveHeight")&&this.setViewportHeight()}initPanzoom(){this.panzoom&&(this.panzoom.destroy(),this.panzoom=null);const t=this.option("Panzoom")||{};this.panzoom=new R(this.viewport,p({},{content:this.track,zoom:!1,panOnlyZoomed:!1,lockAxis:this.isHorizontal?"x":"y",infinite:this.isInfinite,click:!1,dblClick:!1,touch:t=>!(this.pages.length<2&&!t.options.infinite),bounds:()=>this.getBounds(),maxVelocity:t=>Math.abs(t.target[this.axis]-t.current[this.axis])<2*this.viewportDim?100:0},t)),this.panzoom.on("*",((t,e,...i)=>{this.emit(`Panzoom.${e}`,t,...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 t=this.container;t&&(t.addEventListener("click",this.onClick,{passive:!1,capture:!1}),t.addEventListener("slideTo",this.onSlideTo)),window.addEventListener("resize",this.onResize)}createPages(){let t=[];const{contentDim:e,viewportDim:i}=this;let n=this.option("slidesPerPage");n=("auto"===n||e<=i)&&!1!==this.option("fill")?1/0:parseFloat(n+"");let o=0,s=0,r=0;for(const e of this.slides)(!t.length||s+e.dim-i>.05||r>=n)&&(t.push(H()),o=t.length-1,s=0,r=0),t[o].slides.push(e),s+=e.dim+e.gap,r++;return t}processPages(){const t=this.pages,{contentDim:i,viewportDim:n,isInfinite:o}=this,s=this.option("center"),r=this.option("fill"),a=r&&s&&i>n&&!o;if(t.forEach(((t,e)=>{var o;t.index=e,t.pos=(null===(o=t.slides[0])||void 0===o?void 0:o.pos)||0,t.dim=0;for(const[e,i]of t.slides.entries())t.dim+=i.dim,e<t.slides.length-1&&(t.dim+=i.gap);a&&t.pos+.5*t.dim<.5*n?t.pos=0:a&&t.pos+.5*t.dim>=i-.5*n?t.pos=i-n:s&&(t.pos+=-.5*(n-t.dim))})),t.forEach((t=>{r&&!o&&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)})),o)return t;const l=[];let c;return t.forEach((t=>{const e=Object.assign({},t);c&&e.pos===c.pos?(c.dim+=e.dim,c.slides=[...c.slides,...e.slides]):(e.index=l.length,c=e,l.push(e))})),l}getPageFromIndex(t=0){const e=this.pages.length;let i;return t=parseInt((t||0).toString())||0,i=this.isInfinite?(t%e+e)%e:Math.max(Math.min(t,e-1),0),i}getSlideMetrics(t){var i,n;const o=this.isHorizontal?"width":"height";let s=0,r=0,a=t.el;const l=!(!a||a.parentNode);if(a?s=parseFloat(a.dataset[o]||"")||0:(a=document.createElement("div"),a.style.visibility="hidden",(this.track||document.body).prepend(a)),C(a,this.cn(G)+" "+t.class+" "+t.customClass),s)a.style[o]=`${s}px`,a.style["width"===o?"height":"width"]="";else{l&&(this.track||document.body).prepend(a),s=a.getBoundingClientRect()[o]*Math.max(1,(null===(i=window.visualViewport)||void 0===i?void 0:i.scale)||1);let t=a[this.isHorizontal?"offsetWidth":"offsetHeight"];t-1>s&&(s=t)}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)),r=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(r,1e3)}}getBounds(){const{isInfinite:t,isRTL:e,isHorizontal:i,pages:n}=this;let o={min:0,max:0};if(t)o={min:-1/0,max:1/0};else if(n.length){const t=n[0].pos,s=n[n.length-1].pos;o=e&&i?{min:t,max:s}:{min:-1*s,max:-1*t}}return{x:i?o:{min:0,max:0},y:i?{min:0,max:0}:o}}repositionSlides(){let t,{isHorizontal:i,isRTL:n,isInfinite:o,viewport:s,viewportDim:r,contentDim:a,page:l,pages:c,slides:d,panzoom:u}=this,h=0,p=0,f=0,g=0;u?g=-1*u.current[this.axis]:c[l]&&(g=c[l].pos||0),t=i?n?"right":"left":"top",n&&i&&(g*=-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(o&&f&&s){let n=getComputedStyle(s),o="padding",l=i?"Right":"Bottom",c=parseFloat(n[o+(i?"Left":"Top")]);g-=c,r+=c,r+=parseFloat(n[o+l]);for(const i of d)i.el&&(e(i.pos)<e(r)&&e(i.pos+i.dim+i.gap)<e(g)&&e(g)>e(a-r)&&(i.el.style[t]=`${e(p+f,1e3)}px`),e(i.pos+i.gap)>=e(a-r)&&e(i.pos)>e(g+r)&&e(g)<e(r)&&(i.el.style[t]=`-${e(f,1e3)}px`))}let m,v,y=[...this.inTransition];if(y.length>1&&(m=c[y[0]],v=c[y[1]]),m&&v){let i=0;for(const n of d)n.el?this.inTransition.has(n.index)&&m.slides.indexOf(n)<0&&(n.el.style[t]=`${e(i+(m.pos-v.pos),1e3)}px`):i+=n.dim+n.gap}}createSlideEl(t){const{track:e,slides:i}=this;if(!e||!t)return;if(t.el&&t.el.parentNode)return;const n=t.el||document.createElement("div");C(n,this.cn(G)),C(n,t.class),C(n,t.customClass);const o=t.html;o&&(o instanceof HTMLElement?n.appendChild(o):n.innerHTML=t.html+"");const s=[];i.forEach(((t,e)=>{t.el&&s.push(e)}));const r=t.index;let a=null;s.length&&(a=i[s.reduce(((t,e)=>Math.abs(e-r)<Math.abs(t-r)?e:t))]);const l=a&&a.el&&a.el.parentNode?a.index<t.index?a.el.nextSibling:a.el:null;e.insertBefore(n,e.contains(l)?l:null),t.el=n,this.emit("createSlide",t)}removeSlideEl(t,e=!1){const i=null==t?void 0:t.el;if(!i||!i.parentNode)return;const n=this.cn(Z);if(i.classList.contains(n)&&(S(i,n),this.emit("unselectSlide",t)),t.isDom&&!e)return i.removeAttribute("aria-hidden"),i.removeAttribute("data-index"),void(i.style.left="");this.emit("removeSlide",t);const o=new CustomEvent(V);i.dispatchEvent(o),t.el&&(t.el.remove(),t.el=null)}transitionTo(t=0,e=this.option("transition")){var i,n,o,s;if(!e)return!1;const r=this.page,{pages:a,panzoom:l}=this;t=parseInt((t||0).toString())||0;const c=this.getPageFromIndex(t);if(!l||!a[c]||a.length<2||Math.abs(((null===(n=null===(i=a[r])||void 0===i?void 0:i.slides[0])||void 0===n?void 0:n.dim)||0)-this.viewportDim)>1)return!1;let d=t>r?1:-1;this.isInfinite&&(0===r&&t===a.length-1&&(d=-1),r===a.length-1&&0===t&&(d=1));const u=a[c].pos*(this.isRTL?1:-1);if(r===c&&Math.abs(u-l.target[this.axis])<1)return!1;this.clearTransitions();const h=l.isResting;C(this.container,this.cn("inTransition"));const p=(null===(o=a[r])||void 0===o?void 0:o.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 g=p.el,m=f.el;h||e===G||(e="fadeFast",g=null);const v=this.isRTL?"next":"prev",y=this.isRTL?"prev":"next";return g&&(this.inTransition.add(p.index),p.transition=e,g.addEventListener(V,this.onAnimationEnd),g.classList.add(`f-${e}Out`,`to-${d>0?y:v}`)),m&&(f.transition=e,m.addEventListener(V,this.onAnimationEnd),m.classList.add(`f-${e}In`,`from-${d>0?v:y}`)),l.current[this.axis]=u,l.target[this.axis]=u,l.requestTick(),this.onChange(c),!0}manageSlideVisiblity(){const t=new Set,e=new Set,i=this.getVisibleSlides(parseFloat(this.option("preload",0)+"")||0);for(const n of this.slides)i.has(n)?t.add(n):e.add(n);for(const e of this.inTransition)t.add(this.slides[e]);for(const e of t)this.createSlideEl(e),this.lazyLoadSlide(e);for(const i of e)t.has(i)||this.removeSlideEl(i);this.markSelectedSlides(),this.repositionSlides()}markSelectedSlides(){if(!this.pages[this.page]||!this.pages[this.page].slides)return;const t="aria-hidden";let e=this.cn(Z);if(e)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(t):n.setAttribute(t,"true"):this.pages[this.page].slides.includes(i)?(n.classList.contains(e)||(C(n,e),this.emit("selectSlide",i)),n.removeAttribute(t)):(n.classList.contains(e)&&(S(n,e),this.emit("unselectSlide",i)),n.setAttribute(t,"true")))}}flipInfiniteTrack(){const{axis:t,isHorizontal:e,isInfinite:i,isRTL:n,viewportDim:o,contentDim:s}=this,r=this.panzoom;if(!r||!i)return;let a=r.current[t],l=r.target[t]-a,c=0,d=.5*o;n&&e?(a<-d&&(c=-1,a+=s),a>s-d&&(c=1,a-=s)):(a>d&&(c=1,a-=s),a<-s+d&&(c=-1,a+=s)),c&&(r.current[t]=a,r.target[t]=a+l)}lazyLoadImg(t,e){const i=this,n="f-fadeIn",s="is-preloading";let r=!1,a=null;const l=()=>{r||(r=!0,a&&(a.remove(),a=null),S(e,s),e.complete&&(C(e,n),setTimeout((()=>{S(e,n)}),350)),this.option("adaptiveHeight")&&t.el&&this.pages[this.page].slides.indexOf(t)>-1&&(i.updateMetrics(),i.setViewportHeight()),this.emit("load",t))};C(e,s),e.src=e.dataset.lazySrcset||e.dataset.lazySrc||"",delete e.dataset.lazySrc,delete e.dataset.lazySrcset,e.addEventListener("error",(()=>{l()})),e.addEventListener("load",(()=>{l()})),setTimeout((()=>{const i=e.parentNode;i&&t.el&&(e.complete?l():r||(a=o(T),i.insertBefore(a,e)))}),300)}lazyLoadSlide(t){const e=t&&t.el;if(!e)return;const i=new Set;let n=Array.from(e.querySelectorAll("[data-lazy-src],[data-lazy-srcset]"));e.dataset.lazySrc&&n.push(e),n.map((t=>{t instanceof HTMLImageElement?i.add(t):t instanceof HTMLElement&&t.dataset.lazySrc&&(t.style.backgroundImage=`url('${t.dataset.lazySrc}')`,delete t.dataset.lazySrc)}));for(const e of i)this.lazyLoadImg(t,e)}onAnimationEnd(t){var e;const i=t.target,n=i?parseInt(i.dataset.index||"",10)||0:-1,o=this.slides[n],s=t.animationName;if(!i||!o||!s)return;const r=!!this.inTransition.has(n)&&o.transition;r&&s.substring(0,r.length+2)===`f-${r}`&&this.inTransition.delete(n),this.inTransition.size||this.clearTransitions(),n===this.page&&(null===(e=this.panzoom)||void 0===e?void 0:e.isResting)&&this.emit
vendor: 2,069 bytes, line 2
2("settle")}onDecel(t,e=0,i=0,n=0,o=0){if(this.option("dragFree"))return void this.setPageFromPosition();const{isRTL:s,isHorizontal:r,axis:a,pages:l}=this,c=l.length,d=Math.abs(Math.atan2(i,e)/(Math.PI/180));let u=0;if(u=d>45&&d<135?r?0:i:r?e:0,!c)return;let h=this.page,p=s&&r?1:-1;const f=t.current[a]*p;let{pageIndex:g}=this.getPageFromPosition(f);Math.abs(u)>5?(l[h].dim<document.documentElement["client"+(this.isHorizontal?"Width":"Height")]-1&&(h=g),h=s&&r?u<0?h-1:h+1:u<0?h+1:h-1):h=0===n&&0===o?h:g,this.slideTo(h,{transition:!1,friction:t.option("decelFriction")})}onClick(t){const e=t.target,i=e&&_(e)?e.dataset:null;let n,o;i&&(void 0!==i.carouselPage?(o="slideTo",n=i.carouselPage):void 0!==i.carouselNext?o="slideNext":void 0!==i.carouselPrev&&(o="slidePrev")),o?(t.preventDefault(),t.stopPropagation(),e&&!e.hasAttribute("disabled")&&this[o](n)):this.emit("click",t)}onSlideTo(t){const e=t.detail||0;this.slideTo(this.getPageForSlide(e),{friction:0})}onChange(t,e=0){const i=this.page;this.prevPage=i,this.page=t,this.option("adaptiveHeight")&&this.setViewportHeight(),t!==i&&(this.markSelectedSlides(),this.emit("change",t,i,e))}onRefresh(){let t=this.contentDim,e=this.viewportDim;this.updateMetrics(),this.contentDim===t&&this.viewportDim===e||this.slideTo(this.page,{friction:0,transition:!1})}onScroll(){var t;null===(t=this.viewport)||void 0===t||t.scroll(0,0)}onResize(){this.option("breakpoints")&&this.processOptions()}onBeforeTransform(t){this.lp!==t.current[this.axis]&&(this.flipInfiniteTrack(),this.manageSlideVisiblity()),this.lp=t.current.e}onEndAnimation(){this.inTransition.size||this.emit("settle")}reInit(t=null,e=null){this.destroy(),this.state=I.Init,this.prevPage=null,this.userOptions=t||this.userOptions,this.userPlugins=e||this.userPlugins,this.processOptions()}slideTo(t=0,{friction:e=this.option("friction"),transition:i=this.option("transition")}={}){if(this.state===I.Destroy)return;t=parseInt((t||0).toString())||0;const n=this.getPageFromIndex(t),{axis:o,isHorizontal:s,isRTL:r,pages:a,panzoom:l}=this,c=a.length,d=r&&s?1:-1;
vendor: 6,889 bytes, lines 2-3
2if(!l||!c)return;if(this.page!==n){const e=new Event("beforeChange",{ 3bubbles:!0,cancelable:!0});if(this.emit("beforeChange",e,t),e.defaultPrevented)return}if(this.transitionTo(t,i))return;let u=a[n].pos;if(this.isInfinite){const e=this.contentDim,i=l.target[o]*d;2===c?u+=e*Math.floor(parseFloat(t+"")/2):u=[u,u-e,u+e].reduce((function(t,e){return Math.abs(e-i)<Math.abs(t-i)?e:t}))}u*=d,Math.abs(l.target[o]-u)<1||(l.panTo({x:s?u:0,y:s?0:u,friction:e}),this.onChange(n))}slideToClosest(t){if(this.panzoom){const{pageIndex:e}=this.getPageFromPosition();this.slideTo(e,t)}}slideNext(){this.slideTo(this.page+1)}slidePrev(){this.slideTo(this.page-1)}clearTransitions(){this.inTransition.clear(),S(this.container,this.cn("inTransition"));const t=["to-prev","to-next","from-prev","from-next"];for(const e of this.slides){const i=e.el;if(i){i.removeEventListener(V,this.onAnimationEnd),i.classList.remove(...t);const n=e.transition;n&&i.classList.remove(`f-${n}Out`,`f-${n}In`)}}this.manageSlideVisiblity()}addSlide(t,e){var i,n,o,s;const r=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(e)?e:[e];const u=[];for(const t of d)u.push(F(t));this.slides.splice(t,0,...u);for(let t=0;t<this.slides.length;t++)this.slides[t].index=t;for(const t of u)this.emit("beforeInitSlide",t,t.index);if(this.page>=t&&(this.page+=u.length),this.updateMetrics(),r){const e=(null===(o=this.pages[this.page])||void 0===o?void 0:o.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-e:e-a;c&&1===n?(t<=this.page&&(r.current[this.axis]-=d,r.target[this.axis]-=d),r.panTo({[this.isHorizontal?"x":"y"]:-1*e})):u&&t<=this.page&&(r.target[this.axis]-=u,r.current[this.axis]-=u,r.requestTick())}for(const t of u)this.emit("initSlide",t,t.index)}prependSlide(t){this.addSlide(0,t)}appendSlide(t){this.addSlide(this.slides.length,t)}removeSlide(t){const e=this.slides.length;t=(t%e+e)%e;const i=this.slides[t];if(i){this.removeSlideEl(i,!0),this.slides.splice(t,1);for(let t=0;t<this.slides.length;t++)this.slides[t].index=t;this.updateMetrics(),this.slideTo(this.page,{friction:0,transition:!1}),this.emit("destroySlide",i)}}updateMetrics(){const{panzoom:t,viewport:i,track:n,slides:o,isHorizontal:s,isInfinite:r}=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),o="padding",r=s?"Right":"Bottom";t-=parseFloat(n[o+(s?"Left":"Top")])+parseFloat(n[o+r]),this.viewportDim=t}let c,d=0;for(const[t,i]of o.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,(r||t<o.length-1)&&(d+=s)}d=e(d,1e3),this.contentDim=d,t&&(t.contentRect[a]=d,t.contentRect[s?"fullWidth":"fullHeight"]=d),this.pages=this.createPages(),this.pages=this.processPages(),this.state===I.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 o=this,s=o.panzoom,r=o.contentDim,a=o.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+r)/(1*a.dim),1e3),u=e((l-a.pos-r)/(1*a.dim),1e3));let h=[c,d,u].reduce((function(t,e){return Math.abs(e)<Math.abs(t)?e:t}));return i?h:h>1?1:h<-1?-1:h}setViewportHeight(){const{page:t,pages:e,viewport:i,isHorizontal:n}=this;if(!i||!e[t])return;let o=0;n&&this.track&&(this.track.style.height="auto",e[t].slides.forEach((t=>{t.el&&(o=Math.max(o,t.el.offsetHeight))}))),i.style.height=o?`${o}px`:""}getPageForSlide(t){for(const e of this.pages)for(const i of e.slides)if(i.index===t)return e.index;return-1}getVisibleSlides(t=0){var e;const i=new Set;let{panzoom:n,contentDim:o,viewportDim:s,pages:r,page:a}=this;if(s){o=o+(null===(e=this.slides[this.slides.length-1])||void 0===e?void 0:e.gap)||0;let l=0;l=n&&n.state!==v.Init&&n.state!==v.Destroy?-1*n.current[this.axis]:r[a]&&r[a].pos||0,this.isInfinite&&(l-=Math.floor(l/o)*o),this.isRTL&&this.isHorizontal&&(l*=-1);const c=l-s*t,d=l+s*(t+1),u=this.isInfinite?[-1,0,1]:[0];for(const t of this.slides)for(const e of u){const n=t.pos+e*o,s=n+t.dim+t.gap;n<d&&s>c&&i.add(t)}}return i}getPageFromPosition(t){const{viewportDim:e,contentDim:i,slides:n,pages:o,panzoom:s}=this,r=o.length,a=n.length,l=n[0],c=n[a-1],d=this.option("center");let u=0,h=0,p=0,f=void 0===t?-1*((null==s?void 0:s.target[this.axis])||0):t;d&&(f+=.5*e),this.isInfinite?(f<l.pos-.5*c.gap&&(f-=i,p=-1),f>c.pos+c.dim+.5*c.gap&&(f-=i,p=1)):f=Math.max(l.pos||0,Math.min(f,c.pos));let g=c,m=n.find((t=>{const e=t.pos-.5*g.gap,i=t.pos+t.dim+.5*t.gap;return g=t,f>=e&&f<i}));return m||(m=c),h=this.getPageForSlide(m.index),u=h+p*r,{page:u,pageIndex:h}}setPageFromPosition(){const{pageIndex:t}=this.getPageFromPosition();this.onChange(t)}destroy(){if([I.Destroy].includes(this.state))return;this.state=I.Destroy;const{container:t,viewport:e,track:i,slides:n,panzoom:o}=this,s=this.option("classes");t.removeEventListener("click",this.onClick,{passive:!1,capture:!1}),t.removeEventListener("slideTo",this.onSlideTo),window.removeEventListener("resize",this.onResize),o&&(o.destroy(),this.panzoom=null),n&&n.forEach((t=>{this.removeSlideEl(t)})),this.detachPlugins(),e&&(e.removeEventListener("scroll",this.onScroll),e.offsetParent&&i&&i.offsetParent&&e.replaceWith(...i.childNodes));for(const[e,i]of Object.entries(s))"container"!==e&&i&&t.classList.remove(i);this.track=null,this.viewport=null,this.page=0,this.slides=[];const r=this.events.get("ready");this.events=new Map,r&&this.events.set("ready",r)}}Object.defineProperty(K,"Panzoom",{enumerable:!0,configurable:!0,writable:!0,value:R}),Object.defineProperty(K,"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(K,"Plugins",{enumerable:!0,configurable:!0,writable:!0,value:U});const Q=function(t){if(!_(t))return 0;const e=window.scrollY,i=window.innerHeight,n=e+i,o=t.getBoundingClientRect(),s=o.y+e,r=o.height,a=s+r;if(e>a||n<s)return 0;if(e<s&&n>a)return 100;if(s<e&&a>n)return 100;let l=r;
vendor: 5,595 bytes, line 3
3s<e&&(l-=e-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 tt;const et=["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(","),it=t=>{if(t&&J){void 0===tt&&document.createElement("div").focus({get preventScroll(){return tt=!0,!1}});try{if(tt)t.focus({preventScroll:!0});else{const e=window.scrollY||document.body.scrollTop,i=window.scrollX||document.body.scrollLeft;t.focus(),document.body.scrollTo({top:e,left:i,behavior:"auto"})}}catch(t){}}},nt=()=>{const t=document;let e,i="",n="",o="";return t.fullscreenEnabled?(i="requestFullscreen",n="exitFullscreen",o="fullscreenElement"):t.webkitFullscreenEnabled&&(i="webkitRequestFullscreen",n="webkitExitFullscreen",o="webkitFullscreenElement"),i&&(e={request:function(e=t.documentElement){return"webkitRequestFullscreen"===i?e[i](Element.ALLOW_KEYBOARD_INPUT):e[i]()},exit:function(){return t[o]&&t[n]()},isFullscreen:function(){return t[o]}}),e},ot={animated:!0,autoFocus:!0,backdropClick:"close",Carousel:{classes:{container:"fancybox__carousel",viewport:"fancybox__viewport",track:"fancybox__track",slide:"fancybox__slide"}},closeButton:"auto",closeExisting:!1,commonCaption:!1,compact:()=>window.matchMedia("(max-width: 578px), (max-height: 578px)").matches,contentClick:"toggleZoom",contentDblClick:!1,defaultType:"image",defaultDisplay:"flex",dragToClose:!0,Fullscreen:{autoStart:!1},groupAll:!1,groupAttr:"data-fancybox",hideClass:"f-fadeOut",hideScrollbar:!0,idle:3500,keyboard:{Escape:"close",Delete:"close",Backspace:"close",PageUp:"next",PageDown:"prev",ArrowUp:"prev",ArrowDown:"next",ArrowRight:"next",ArrowLeft:"prev"},l10n:Object.assign(Object.assign({},b),{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"}),parentEl:null,placeFocusBack:!0,showClass:"f-zoomInUp",startIndex:0,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>'},trapFocus:!0,wheel:"zoom"};var st,rt;!function(t){t[t.Init=0]="Init",t[t.Ready=1]="Ready",t[t.Closing=2]="Closing",t[t.CustomClosing=3]="CustomClosing",t[t.Destroy=4]="Destroy"}(st||(st={})),function(t){t[t.Loading=0]="Loading",t[t.Opening=1]="Opening",t[t.Ready=2]="Ready",t[t.Closing=3]="Closing"}(rt||(rt={}));let at="",lt=!1,ct=!1,dt=null;const ut=()=>{let t="",e="";const i=Se.getInstance();if(i){const n=i.carousel,o=i.getSlide();if(n&&o){let s=o.slug||void 0,r=o.triggerEl||void 0;e=s||i.option("slug")||"",!e&&r&&r.dataset&&(e=r.dataset.fancybox||""),e&&"true"!==e&&(t="#"+e+(!s&&n.slides.length>1?"-"+(o.index+1):""))}}return{hash:t,slug:e,index:1}},ht=()=>{const t=new URL(document.URL).hash,e=t.slice(1).split("-"),i=e[e.length-1],n=i&&/^\+?\d+$/.test(i)&&parseInt(e.pop()||"1",10)||1;return{hash:t,slug:e.join("-"),index:n}},pt=()=>{const{slug:t,index:e}=ht();if(!t)return;let i=document.querySelector(`[data-slug="${t}"]`);if(i&&i.dispatchEvent(new CustomEvent("click",{bubbles:!0,cancelable:!0})),Se.getInstance())return;const n=document.querySelectorAll(`[data-fancybox="${t}"]`);n.length&&(i=n[e-1],i&&i.dispatchEvent(new CustomEvent("click",{bubbles:!0,cancelable:!0})))},ft=()=>{if(!1===Se.defaults.Hash)return;const t=Se.getInstance();if(!1===(null==t?void 0:t.options.Hash))return;const{slug:e,index:i}=ht(),{slug:n}=ut();t&&(e===n?t.jumpTo(i-1):(lt=!0,t.close())),pt()},gt=()=>{dt&&clearTimeout(dt),queueMicrotask((()=>{ft()}))},mt=()=>{window.addEventListener("hashchange",gt,!1),setTimeout((()=>{ft()}),500)};J&&(/complete|interactive|loaded/.test(document.readyState)?mt():document.addEventListener("DOMContentLoaded",mt));const vt="is-zooming-in";class yt extends ${onCreateSlide(t,e,i){const n=this.instance.optionFor(i,"src")||"";i.el&&"image"===i.type&&"string"==typeof n&&this.setImage(i,n)}onRemoveSlide(t,e,i){i.panzoom&&i.panzoom.destroy(),i.panzoom=void 0,i.imageEl=void 0}onChange(t,e,i,n){S(this.instance.container,vt);for(const t of e.slides){const e=t.panzoom;e&&t.index!==i&&e.reset(.35)}}onClose(){var t;const e=this.instance,i=e.container,n=e.getSlide();if(!i||!i.parentElement||!n)return;const{el:o,contentEl:s,panzoom:r,thumbElSrc:a}=n;if(!o||!a||!s||!r||r.isContentLoading||r.state===v.Init||r.state===v.Destroy)return;r.updateMetrics();let l=this.getZoomInfo(n);if(!l)return;this.instance.state=st.CustomClosing,i.classList.remove(vt),i.classList.add("is-zooming-out"),s.style.backgroundImage=`url('${a}')`;const c=i.getBoundingClientRect();
vendor: 4,243 bytes, line 3
31===((null===(t=window.visualViewport)||void 0===t?void 0:t.scale)||1)&&Object.assign(i.style,{position:"absolute",top:`${i.offsetTop+window.scrollY}px`,left:`${i.offsetLeft+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 t=((t,e,i,n)=>{const o=e-t;return e=>1+((e-t)/o*-1||0)})(r.scale,h);r.on("afterTransform",(()=>{s.style.opacity=t(r.scale)+""}))}r.on("endAnimation",(()=>{e.destroy()})),r.target.a=h,r.target.b=0,r.target.c=0,r.target.d=h,r.panTo({x:d,y:u,scale:h,friction:p?.2:.33,ignoreBounds:!0}),r.isResting&&e.destroy()}setImage(t,e){const i=this.instance;t.src=e,this.process(t,e).then((e=>{const{contentEl:n,imageEl:o,thumbElSrc:s,el:r}=t;if(i.isClosing()||!n||!o)return;n.offsetHeight;const a=!!i.isOpeningSlide(t)&&this.getZoomInfo(t);if(this.option("protected")&&r){r.addEventListener("contextmenu",(t=>{t.preventDefault()}));const t=document.createElement("div");C(t,"fancybox-protected"),n.appendChild(t)}if(s&&a){const o=e.contentRect,r=Math.max(o.fullWidth,o.fullHeight);let c=null;!a.opacity&&r>1200&&(c=document.createElement("img"),C(c,"fancybox-ghost"),c.src=s,n.appendChild(c));const d=()=>{c&&(C(c,"f-fadeFastOut"),setTimeout((()=>{c&&(c.remove(),c=null)}),200))};(l=s,new Promise(((t,e)=>{const i=new Image;i.onload=t,i.onerror=e,i.src=l}))).then((()=>{i.hideLoading(t),t.state=rt.Opening,this.instance.emit("reveal",t),this.zoomIn(t).then((()=>{d(),this.instance.done(t)}),(()=>{})),c&&setTimeout((()=>{d()}),r>2500?800:200)}),(()=>{i.hideLoading(t),i.revealContent(t)}))}else{const n=this.optionFor(t,"initialSize"),o=this.optionFor(t,"zoom"),s={event:i.prevMouseMoveEvent||i.options.event,friction:o?.12:0};let r=i.optionFor(t,"showClass")||void 0,a=!0;i.isOpeningSlide(t)&&("full"===n?e.zoomToFull(s):"cover"===n?e.zoomToCover(s):"max"===n?e.zoomToMax(s):a=!1,e.stop("current")),a&&r&&(r=e.isDragging?"f-fadeIn":""),i.hideLoading(t),i.revealContent(t,r)}var l}),(()=>{i.setError(t,"{{IMAGE_ERROR}}")}))}process(t,e){return new Promise(((i,n)=>{var s;const r=this.instance,a=t.el;r.clearContent(t),r.showLoading(t);let l=this.optionFor(t,"content");if("string"==typeof l&&(l=o(l)),!l||!_(l)){if(l=document.createElement("img"),l instanceof HTMLImageElement){let i="",n=t.caption;i="string"==typeof n&&n?n.replace(/<[^>]+>/gi,"").substring(0,1e3):`Image ${t.index+1} of ${(null===(s=r.carousel)||void 0===s?void 0:s.pages.length)||1}`,l.src=e||"",l.alt=i,l.draggable=!1,t.srcset&&l.setAttribute("srcset",t.srcset),this.instance.isOpeningSlide(t)&&(l.fetchPriority="high")}t.sizes&&l.setAttribute("sizes",t.sizes)}C(l,"fancybox-image"),t.imageEl=l,r.setContent(t,l,!1),t.panzoom=new R(a,p({transformParent:!0},this.option("Panzoom")||{},{content:l,width:(e,i)=>r.optionFor(t,"width","auto",i)||"auto",height:(e,i)=>r.optionFor(t,"height","auto",i)||"auto",wheel:()=>{const t=r.option("wheel");return("zoom"===t||"pan"==t)&&t},click:(e,i)=>{var n,o;if(r.isCompact||r.isClosing())return!1;if(t.index!==(null===(n=r.getSlide())||void 0===n?void 0:n.index))return!1;if(i){const t=i.composedPath()[0];if(["A","BUTTON","TEXTAREA","OPTION","INPUT","SELECT","VIDEO"].includes(t.nodeName))return!1}let s=!i||i.target&&(null===(o=t.contentEl)||void 0===o?void 0:o.contains(i.target));return r.option(s?"contentClick":"backdropClick")||!1},dblClick:()=>r.isCompact?"toggleZoom":r.option("contentDblClick")||!1,spinner:!1,panOnlyZoomed:!0,wheelLimit:1/0,on:{ready:t=>{i(t)},error:()=>{n()},destroy:()=>{n()}}}))}))}zoomIn(t){return new Promise(((e,i)=>{const n=this.instance,o=n.container,{panzoom:s,contentEl:r,el:a}=t;s&&s.updateMetrics();const l=this.getZoomInfo(t);if(!(l&&a&&r&&s&&o))return void i();const{x:c,y:d,scale:u,opacity:h}=l,p=()=>{t.state!==rt.Closing&&(h&&(r.style.opacity=Math.max(Math.min(1,1-(1-s.scale)/(1-u)),0)+""),s.scale>=1&&s.scale>s.targetScale-.1&&e(s))},f=t=>{(t.scale<.99||t.scale>1.01)&&!t.isDragging||(S(o,vt),r.style.opacity="",t.off("endAnimation",f),t.off("touchStart",f),t.off("afterTransform",p),e(t))};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");
vendor: 15,054 bytes, line 3
3const g={event:"mousemove"===s.panMode?n.prevMouseMoveEvent||n.options.event:void 0},m=this.optionFor(t,"initialSize");C(o,vt),n.hideLoading(t),"full"===m?s.zoomToFull(g):"cover"===m?s.zoomToCover(g):"max"===m?s.zoomToMax(g):s.reset(.172)}))}getZoomInfo(t){const{el:e,imageEl:i,thumbEl:n,panzoom:o}=t,s=this.instance,r=s.container;if(!e||!i||!n||!o||Q(n)<3||!this.optionFor(t,"zoom")||!r||s.state===st.Destroy)return!1;if("0"===getComputedStyle(r).getPropertyValue("--f-images-zoom"))return!1;const a=window.visualViewport||null;if(1!==(a?a.scale:1))return!1;let{top:l,left:c,width:d,height:u}=n.getBoundingClientRect(),{top:h,left:p,fitWidth:f,fitHeight:g}=o.contentRect;if(!(d&&u&&f&&g))return!1;const m=o.container.getBoundingClientRect();p+=m.left,h+=m.top;const v=-1*(p+.5*f-(c+.5*d)),y=-1*(h+.5*g-(l+.5*u)),b=d/f;let w=this.option("zoomOpacity")||!1;return"auto"===w&&(w=Math.abs(d/u-f/g)>.1),{x:v,y:y,scale:b,opacity:w}}attach(){const t=this,e=t.instance;e.on("Carousel.change",t.onChange),e.on("Carousel.createSlide",t.onCreateSlide),e.on("Carousel.removeSlide",t.onRemoveSlide),e.on("close",t.onClose)}detach(){const t=this,e=t.instance;e.off("Carousel.change",t.onChange),e.off("Carousel.createSlide",t.onCreateSlide),e.off("Carousel.removeSlide",t.onRemoveSlide),e.off("close",t.onClose)}}Object.defineProperty(yt,"defaults",{enumerable:!0,configurable:!0,writable:!0,value:{initialSize:"fit",Panzoom:{maxScale:1},protected:!1,zoom:!0,zoomOpacity:"auto"}}),"function"==typeof SuppressedError&&SuppressedError;const bt="html",wt="image",xt="map",Tt="youtube",_t="vimeo",St="html5video",Ct=(t,e={})=>{const i=new URL(t),n=new URLSearchParams(i.search),o=new URLSearchParams;for(const[t,i]of[...n,...Object.entries(e)]){let e=i+"";if("t"===t){let t=e.match(/((\d*)m)?(\d*)s?/);t&&o.set("start",60*parseInt(t[2]||"0")+parseInt(t[3]||"0")+"")}else o.set(t,e)}let s=o+"",r=t.match(/#t=((.*)?\d+s)/);return r&&(s+=`#t=${r[1]}`),s},kt=["image","html","ajax","inline","clone","iframe","map","pdf","html5video","youtube","vimeo"];class Et extends ${onBeforeInitSlide(t,e,i){this.processType(i)}onCreateSlide(t,e,i){this.setContent(i)}onClearContent(t,e){e.xhr&&(e.xhr.abort(),e.xhr=null);const i=e.iframeEl;i&&(i.onload=i.onerror=null,i.src="//about:blank",e.iframeEl=null);const n=e.contentEl,o=e.placeholderEl;if("inline"===e.type&&n&&o)n.classList.remove("fancybox__content"),"none"!==getComputedStyle(n).getPropertyValue("display")&&(n.style.display="none"),setTimeout((()=>{o&&(n&&o.parentNode&&o.parentNode.insertBefore(n,o),o.remove())}),0),e.contentEl=void 0,e.placeholderEl=void 0;else for(;e.el&&e.el.firstChild;)e.el.removeChild(e.el.firstChild)}onSelectSlide(t,e,i){i.state===rt.Ready&&this.playVideo()}onUnselectSlide(t,e,i){var n,o;if(i.type===St){try{null===(o=null===(n=i.el)||void 0===n?void 0:n.querySelector("video"))||void 0===o||o.pause()}catch(t){}return}let s;i.type===_t?s={method:"pause",value:"true"}:i.type===Tt&&(s={event:"command",func:"pauseVideo"}),s&&i.iframeEl&&i.iframeEl.contentWindow&&i.iframeEl.contentWindow.postMessage(JSON.stringify(s),"*"),i.poller&&clearTimeout(i.poller)}onDone(t,e){t.isCurrentSlide(e)&&!t.isClosing()&&this.playVideo()}onRefresh(t,e){e.slides.forEach((t=>{t.el&&(this.resizeIframe(t),this.setAspectRatio(t))}))}onMessage(t){try{let e=JSON.parse(t.data);if("https://player.vimeo.com"===t.origin){if("ready"===e.event)for(let e of Array.from(document.getElementsByClassName("fancybox__iframe")))e instanceof HTMLIFrameElement&&e.contentWindow===t.source&&(e.dataset.ready="true")}else if(t.origin.match(/^https:\/\/(www.)?youtube(-nocookie)?.com$/)&&"onReady"===e.event){const t=document.getElementById(e.id);t&&(t.dataset.ready="true")}}catch(t){}}loadAjaxContent(t){const e=this.instance.optionFor(t,"src")||"";this.instance.showLoading(t);const i=this.instance,n=new XMLHttpRequest;i.showLoading(t),n.onreadystatechange=function(){n.readyState===XMLHttpRequest.DONE&&i.state===st.Ready&&(i.hideLoading(t),200===n.status?i.setContent(t,n.responseText):i.setError(t,404===n.status?"{{AJAX_NOT_FOUND}}":"{{AJAX_FORBIDDEN}}"))};const o=t.ajax||null;n.open(o?"POST":"GET",e+""),n.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),n.setRequestHeader("X-Requested-With","XMLHttpRequest"),n.send(o),t.xhr=n}setInlineContent(t){let e=null;if(_(t.src))e=t.src;else if("string"==typeof t.src){const i=t.src.split("#",2).pop();e=i?document.getElementById(i):null}if(e){if("clone"===t.type||e.closest(".fancybox__slide")){e=e.cloneNode(!0);const i=e.dataset.animationName;i&&(e.classList.remove(i),delete e.dataset.animationName);let n=e.getAttribute("id");n=n?`${n}--clone`:`clone-${this.instance.id}-${t.index}`,e.setAttribute("id",n)}else if(e.parentNode){const i=document.createElement("div");i.classList.add("fancybox-placeholder"),e.parentNode.insertBefore(i,e),t.placeholderEl=i}this.instance.setContent(t,e)}else this.instance.setError(t,"{{ELEMENT_NOT_FOUND}}")}setIframeContent(t){const{src:e,el:i}=t;if(!e||"string"!=typeof e||!i)return;i.classList.add("is-loading");const n=this.instance,o=document.createElement("iframe");o.className="fancybox__iframe",o.setAttribute("id",`fancybox__iframe_${n.id}_${t.index}`);for(const[e,i]of Object.entries(this.optionFor(t,"iframeAttr")||{}))o.setAttribute(e,i);o.onerror=()=>{n.setError(t,"{{IFRAME_ERROR}}")},t.iframeEl=o;const s=this.optionFor(t,"preload");if("iframe"!==t.type||!1===s)return o.setAttribute("src",t.src+""),n.setContent(t,o,!1),this.resizeIframe(t),void n.revealContent(t);n.showLoading(t),o.onload=()=>{if(!o.src.length)return;const e="true"!==o.dataset.ready;o.dataset.ready="true",this.resizeIframe(t),e?n.revealContent(t):n.hideLoading(t)},o.setAttribute("src",e),n.setContent(t,o,!1)}resizeIframe(t){const{type:e,iframeEl:i}=t;if(e===Tt||e===_t)return;const n=null==i?void 0:i.parentElement;if(!i||!n)return;let o=t.autoSize;void 0===o&&(o=this.optionFor(t,"autoSize"));let s=t.width||0,r=t.height||0;s&&r&&(o=!1);const a=n&&n.style;if(!1!==t.preload&&!1!==o&&a)try{const t=window.getComputedStyle(n),e=parseFloat(t.paddingLeft)+parseFloat(t.paddingRight),o=parseFloat(t.paddingTop)+parseFloat(t.paddingBottom),l=i.contentWindow;if(l){const t=l.document,i=t.getElementsByTagName(bt)[0],n=t.body;a.width="",n.style.overflow="hidden",s=s||i.scrollWidth+e,a.width=`${s}px`,n.style.overflow="",a.flex="0 0 auto",a.height=`${n.scrollHeight}px`,r=i.scrollHeight+o}}catch(t){}if(s||r){const t={flex:"0 1 auto",width:"",height:""};s&&"auto"!==s&&(t.width=`${s}px`),r&&"auto"!==r&&(t.height=`${r}px`),Object.assign(a,t)}}playVideo(){const t=this.instance.getSlide();if(!t)return;const{el:e}=t;if(!e||!e.offsetParent)return;if(!this.optionFor(t,"videoAutoplay"))return;if(t.type===St)try{const t=e.querySelector("video");if(t){const e=t.play();void 0!==e&&e.then((()=>{})).catch((e=>{t.muted=!0,t.play()}))}}catch(t){}if(t.type!==Tt&&t.type!==_t)return;const i=()=>{if(t.iframeEl&&t.iframeEl.contentWindow){let e;if("true"===t.iframeEl.dataset.ready)return e=t.type===Tt?{event:"command",func:"playVideo"}:{method:"play",value:"true"},e&&t.iframeEl.contentWindow.postMessage(JSON.stringify(e),"*"),void(t.poller=void 0);t.type===Tt&&(e={event:"listening",id:t.iframeEl.getAttribute("id")},t.iframeEl.contentWindow.postMessage(JSON.stringify(e),"*"))}t.poller=setTimeout(i,250)};i()}processType(t){if(t.html)return t.type=bt,t.src=t.html,void(t.html="");const e=this.instance.optionFor(t,"src","");if(!e||"string"!=typeof e)return;let i=t.type,n=null;if(n=e.match(/(youtube\.com|youtu\.be|youtube\-nocookie\.com)\/(?:watch\?(?:.*&)?v=|v\/|u\/|shorts\/|embed\/?)?(videoseries\?list=(?:.*)|[\w-]{11}|\?listType=(?:.*)&list=(?:.*))(?:.*)/i)){const o=this.optionFor(t,Tt),{nocookie:s}=o,r=function(t,e){var i={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(i[n]=t[n]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(t);o<n.length;o++)e.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(t,n[o])&&(i[n[o]]=t[n[o]])}return i}(o,["nocookie"]),a=`www.youtube${s?"-nocookie":""}.com`,l=Ct(e,r),c=encodeURIComponent(n[2]);t.videoId=c,t.src=`https://${a}/embed/${c}?${l}`,t.thumbSrc=t.thumbSrc||`https://i.ytimg.com/vi/${c}/mqdefault.jpg`,i=Tt}else if(n=e.match(/^.+vimeo.com\/(?:\/)?([\d]+)((\/|\?h=)([a-z0-9]+))?(.*)?/)){const o=Ct(e,this.optionFor(t,_t)),s=encodeURIComponent(n[1]),r=n[4]||"";t.videoId=s,t.src=`https://player.vimeo.com/video/${s}?${r?`h=${r}${o?"&":""}`:""}${o}`,i=_t}if(!i&&t.triggerEl){const e=t.triggerEl.dataset.type;kt.includes(e)&&(i=e)}i||"string"==typeof e&&("#"===e.charAt(0)?i="inline":(n=e.match(/\.(mp4|mov|ogv|webm)((\?|#).*)?$/i))?(i=St,t.videoFormat=t.videoFormat||"video/"+("ogv"===n[1]?"ogg":n[1])):e.match(/(^data:image\/[a-z0-9+\/=]*,)|(\.(jp(e|g|eg)|gif|png|bmp|webp|svg|ico)((\?|#).*)?$)/i)?i=wt:e.match(/\.(pdf)((\?|#).*)?$/i)&&(i="pdf")),(n=e.match(/(?:maps\.)?google\.([a-z]{2,3}(?:\.[a-z]{2})?)\/(?:(?:(?:maps\/(?:place\/(?:.*)\/)?\@(.*),(\d+.?\d+?)z))|(?:\?ll=))(.*)?/i))?(t.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=xt):(n=e.match(/(?:maps\.)?google\.([a-z]{2,3}(?:\.[a-z]{2})?)\/(?:maps\/search\/)(.*)/i))&&(t.src=`https://maps.google.${n[1]}/maps?q=${n[2].replace("query=","q=").replace("api=1","")}&output=embed`,i=xt),i=i||this.instance.option("defaultType"),t.type=i,i===wt&&(t.thumbSrc=t.thumbSrc||t.src)}setContent(t){const e=this.instance.optionFor(t,"src")||"";if(t&&t.type&&e){switch(t.type){case bt:this.instance.setContent(t,e);break;case St:const i=this.option("videoTpl");i&&this.instance.setContent(t,i.replace(/\{\{src\}\}/gi,e+"").replace(/\{\{format\}\}/gi,this.optionFor(t,"videoFormat")||"").replace(/\{\{poster\}\}/gi,t.poster||t.thumbSrc||""));break;case"inline":case"clone":this.setInlineContent(t);break;case"ajax":this.loadAjaxContent(t);break;case"pdf":case xt:case Tt:case _t:t.preload=!1;case"iframe":this.setIframeContent(t)}this.setAspectRatio(t)}}setAspectRatio(t){const e=t.contentEl;if(!(t.el&&e&&t.type&&[Tt,_t,St].includes(t.type)))return;let i,n=t.width||"auto",o=t.height||"auto";if("auto"===n||"auto"===o){i=this.optionFor(t,"videoRatio");const e=(i+"").match(/(\d+)\s*\/\s?(\d+)/);i=e&&e.length>2?parseFloat(e[1])/parseFloat(e[2]):parseFloat(i+"")}else n&&o&&(i=n/o);if(!i)return;e.style.aspectRatio="",e.style.width="",e.style.height="",e.offsetHeight;const s=e.getBoundingClientRect(),r=s.width||1,a=s.height||1;e.style.aspectRatio=i+"",i<r/a?(o="auto"===o?a:Math.min(a,o),e.style.width="auto",e.style.height=`${o}px`):(n="auto"===n?r:Math.min(r,n),e.style.width=`${n}px`,e.style.height="auto")}attach(){const t=this,e=t.instance;e.on("Carousel.beforeInitSlide",t.onBeforeInitSlide),e.on("Carousel.createSlide",t.onCreateSlide),e.on("Carousel.selectSlide",t.onSelectSlide),e.on("Carousel.unselectSlide",t.onUnselectSlide),e.on("Carousel.Panzoom.refresh",t.onRefresh),e.on("done",t.onDone),e.on("clearContent",t.onClearContent),window.addEventListener("message",t.onMessage)}detach(){const t=this,e=t.instance;e.off("Carousel.beforeInitSlide",t.onBeforeInitSlide),e.off("Carousel.createSlide",t.onCreateSlide),e.off("Carousel.selectSlide",t.onSelectSlide),e.off("Carousel.unselectSlide",t.onUnselectSlide),e.off("Carousel.Panzoom.refresh",t.onRefresh),e.off("done",t.onDone),e.off("clearContent",t.onClearContent),window.removeEventListener("message",t.onMessage)}}Object.defineProperty(Et,"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 Pt="play",Ot="pause",Mt="ready";class At extends ${constructor(){super(...arguments),Object.defineProperty(this,"state",{enumerable:!0,configurable:!0,writable:!0,value:Mt}),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!==Mt}onReady(t){this.option("autoStart")&&(t.isInfinite||t.page<t.pages.length-1)&&this.start()}onChange(){this.removeProgressBar(),this.pause()}onSettle(){this.resume()}onVisibilityChange(){"visible"===document.visibilityState?this.resume():this.pause()}onMouseEnter(){this.inHover=!0,this.pause()}onMouseLeave(){var t;this.inHover=!1,(null===(t=this.instance.panzoom)||void 0===t?void 0:t.isResting)&&this.resume()}onTimerEnd(){const t=this.instance;"play"===this.state&&(t.isInfinite||t.page!==t.pages.length-1?t.slideNext():t.slideTo(0))}removeProgressBar(){this.progressBar&&(this.progressBar.remove(),this.progressBar=null)}createProgressBar(){var t;if(!this.option("showProgress"))return null;this.removeProgressBar();const e=this.instance,i=(null===(t=e.pages[e.page])||void 0===t?void 0:t.slides)||[];let n=this.option("progressParentEl");if(n||(n=(1===i.length?i[0].el:null)||e.viewport),!n)return null;const o=document.createElement("div");return C(o,"f-progress"),n.prepend(o),this.progressBar=o,o.offsetHeight,o}set(){const t=this,e=t.instance;if(e.pages.length<2)return;if(t.timer)return;const i=t.option("timeout");t.state=Pt,C(e.container,"has-autoplay");let n=t.createProgressBar();n&&(n.style.transitionDuration=`${i}ms`,n.style.transform="scaleX(1)"),t.timer=setTimeout((()=>{t.timer=null,t.inHover||t.onTimerEnd()}),i),t.emit("set")}clear(){const t=this;t.timer&&(clearTimeout(t.timer),t.timer=null),t.removeProgressBar()}start(){const t=this;if(t.set(),t.state!==Mt){if(t.option("pauseOnHover")){const e=t.instance.container;e.addEventListener("mouseenter",t.onMouseEnter,!1),e.addEventListener("mouseleave",t.onMouseLeave,!1)}document.addEventListener("visibilitychange",t.onVisibilityChange,!1),t.emit("start")}}stop(){const t=this,e=t.state,i=t.instance.container;t.clear(),t.state=Mt,i.removeEventListener("mouseenter",t.onMouseEnter,!1),i.removeEventListener("mouseleave",t.onMouseLeave,!1),document.removeEventListener("visibilitychange",t.onVisibilityChange,!1),S(i,"has-autoplay"),e!==Mt&&t.emit("stop")}pause(){const t=this;t.state===Pt&&(t.state=Ot,t.clear(),t.emit(Ot))}resume(){const t=this,e=t.instance;if(e.isInfinite||e.page!==e.pages.length-1)if(t.state!==Pt){if(t.state===Ot&&!t.inHover){const e=new Event("resume",{bubbles:!0,cancelable:!0});t.emit("resume",e),e.defaultPrevented||t.set()}}else t.set();else t.stop()}toggle(){this.state===Pt||this.state===Ot?this.stop():this.start()}attach(){const t=this,e=t.instance;
vendor: 11,834 bytes, lines 3-4
3e.on("ready",t.onReady),e.on("Panzoom.startAnimation",t.onChange),e.on("Panzoom.endAnimation",t.onSettle),e.on("Panzoom.touchMove",t.onChange)}detach(){const t=this,e=t.instance;e.off("ready",t.onReady),e.off("Panzoom.startAnimation",t.onChange),e.off("Panzoom.endAnimation",t.onSettle), 4e.off("Panzoom.touchMove",t.onChange),t.stop()}}Object.defineProperty(At,"defaults",{enumerable:!0,configurable:!0,writable:!0,value:{autoStart:!0,pauseOnHover:!0,progressParentEl:null,showProgress:!0,timeout:3e3}});class $t extends ${constructor(){super(...arguments),Object.defineProperty(this,"ref",{enumerable:!0,configurable:!0,writable:!0,value:null})}onPrepare(t){const e=t.carousel;if(!e)return;const i=t.container;i&&(e.options.Autoplay=p({autoStart:!1},this.option("Autoplay")||{},{pauseOnHover:!1,timeout:this.option("timeout"),progressParentEl:()=>this.option("progressParentEl")||null,on:{start:()=>{t.emit("startSlideshow")},set:e=>{var n;i.classList.add("has-slideshow"),(null===(n=t.getSlide())||void 0===n?void 0:n.state)!==rt.Ready&&e.pause()},stop:()=>{i.classList.remove("has-slideshow"),t.isCompact||t.endIdle(),t.emit("endSlideshow")},resume:(e,i)=>{var n,o,s;!i||!i.cancelable||(null===(n=t.getSlide())||void 0===n?void 0:n.state)===rt.Ready&&(null===(s=null===(o=t.carousel)||void 0===o?void 0:o.panzoom)||void 0===s?void 0:s.isResting)||i.preventDefault()}}}),e.attachPlugins({Autoplay:At}),this.ref=e.plugins.Autoplay)}onReady(t){const e=t.carousel,i=this.ref;i&&e&&this.option("playOnStart")&&(e.isInfinite||e.page<e.pages.length-1)&&i.start()}onDone(t,e){const i=this.ref,n=t.carousel;if(!i||!n)return;const o=e.panzoom;o&&o.on("startAnimation",(()=>{t.isCurrentSlide(e)&&i.stop()})),t.isCurrentSlide(e)&&i.resume()}onKeydown(t,e){var i;const n=this.ref;n&&e===this.option("key")&&"BUTTON"!==(null===(i=document.activeElement)||void 0===i?void 0:i.nodeName)&&n.toggle()}attach(){const t=this,e=t.instance;e.on("Carousel.init",t.onPrepare),e.on("Carousel.ready",t.onReady),e.on("done",t.onDone),e.on("keydown",t.onKeydown)}detach(){const t=this,e=t.instance;e.off("Carousel.init",t.onPrepare),e.off("Carousel.ready",t.onReady),e.off("done",t.onDone),e.off("keydown",t.onKeydown)}}Object.defineProperty($t,"defaults",{enumerable:!0,configurable:!0,writable:!0,value:{key:" ",playOnStart:!1,progressParentEl:t=>{var e;return(null===(e=t.instance.container)||void 0===e?void 0:e.querySelector(".fancybox__toolbar [data-fancybox-toggle-slideshow]"))||t.instance.container},timeout:3e3}});const zt={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 Lt;!function(t){t[t.Init=0]="Init",t[t.Ready=1]="Ready",t[t.Hidden=2]="Hidden"}(Lt||(Lt={}));const Rt="isResting",Dt="thumbWidth",jt="thumbHeight",It="thumbClipWidth";let Ft=class extends ${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:Lt.Init})}get isModern(){return"modern"===this.type}onInitSlide(t,e){const i=e.el?e.el.dataset:void 0;i&&(e.thumbSrc=i.thumbSrc||e.thumbSrc||"",e[It]=parseFloat(i[It]||"")||e[It]||0,e[jt]=parseFloat(i.thumbHeight||"")||e[jt]||0),this.addSlide(e)}onInitSlides(){this.build()}onChange(){var t;if(!this.isModern)return;const e=this.container,i=this.instance,n=i.panzoom,o=this.carousel,s=o?o.panzoom:null,a=i.page;if(n&&o&&s){if(n.isDragging){S(e,this.cn(Rt));let n=(null===(t=o.pages[a])||void 0===t?void 0:t.pos)||0;n+=i.getProgress(a)*(this[It]+this.thumbGap);let r=s.getBounds();-1*n>r.x.min&&-1*n<r.x.max&&s.panTo({x:-1*n,friction:.12})}else r(e,this.cn(Rt),n.isResting);this.shiftModern()}}onRefresh(){this.updateProps();for(const t of this.instance.slides||[])this.resizeModernSlide(t);this.shiftModern()}isDisabled(){const t=this.option("minCount")||0;if(t){const e=this.instance;let i=0;for(const t of e.slides||[])t.thumbSrc&&i++;if(i<t)return!0}const e=this.option("type");return["modern","classic"].indexOf(e)<0}getThumb(t){const e=this.option("thumbTpl")||"";return{html:this.instance.localize(e,[["%i",t.index],["%d",t.index+1],["%s",t.thumbSrc||"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7"]])}}addSlide(t){const e=this.carousel;e&&e.addSlide(t.index,this.getThumb(t))}getSlides(){const t=[];for(const e of this.instance.slides||[])t.push(this.getThumb(e));return t}resizeModernSlide(t){this.isModern&&(t[Dt]=t[It]&&t[jt]?Math.round(this[jt]*(t[It]/t[jt])):this[Dt])}updateProps(){const t=this.container;if(!t)return;const e=e=>parseFloat(getComputedStyle(t).getPropertyValue("--f-thumb-"+e))||0;this.thumbGap=e("gap"),this.thumbExtraGap=e("extra-gap"),this[Dt]=e("width")||40,this[It]=e("clip-width")||40,this[jt]=e("height")||40}build(){const t=this;if(t.state!==Lt.Init)return;if(t.isDisabled())return void t.emit("disabled");const e=t.instance,i=e.container,n=t.getSlides(),o=t.option("type");t.type=o;const s=t.option("parentEl"),r=t.cn("container"),a=t.cn("track");let l=null==s?void 0:s.querySelector("."+r);l||(l=document.createElement("div"),C(l,r),s?s.appendChild(l):i.after(l)),C(l,`is-${o}`),C(i,t.cn("hasThumbs")),t.container=l,t.updateProps();let c=l.querySelector("."+a);c||(c=document.createElement("div"),C(c,t.cn("track")),l.appendChild(c)),t.track=c;const d=p({},{track:c,infinite:!1,center:!0,fill:"classic"===o,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"}},t.option("Carousel")||{},{Sync:{target:e},slides:n}),u=new e.constructor(l,d);u.on("createSlide",((e,i)=>{t.setProps(i.index),t.emit("createSlide",i,i.el)})),u.on("ready",(()=>{t.shiftModern(),t.emit("ready")})),u.on("refresh",(()=>{t.shiftModern()})),u.on("Panzoom.click",((e,i,n)=>{t.onClick(n)})),t.carousel=u,t.state=Lt.Ready}onClick(t){t.preventDefault(),t.stopPropagation();const e=this.instance,{pages:i,page:n}=e,o=t=>{if(t){const e=t.closest("[data-carousel-index]");if(e)return[parseInt(e.dataset.carouselIndex||"",10)||0,e]}return[-1,void 0]},s=(t,e)=>{const i=document.elementFromPoint(t,e);return i?o(i):[-1,void 0]};let[r,a]=o(t.target);if(r>-1)return;const l=this[It],c=t.clientX,d=t.clientY;let[u,h]=s(c-l,d),[p,f]=s(c+l,d);h&&f?(r=Math.abs(c-h.getBoundingClientRect().right)<Math.abs(c-f.getBoundingClientRect().left)?u:p,r===n&&(r=r===u?p:u)):h?r=u:f&&(r=p),r>-1&&i[r]&&e.slideTo(r)}getShift(t){var e;const i=this,{instance:n}=i,o=i.carousel;if(!n||!o)return 0;const s=i[Dt],r=i[It],a=i.thumbGap,l=i.thumbExtraGap;if(!(null===(e=o.slides[t])||void 0===e?void 0:e.el))return 0;const c=.5*(s-r),d=n.pages.length-1;let u=n.getProgress(0),h=n.getProgress(d),p=n.getProgress(t,!1,!0),f=0,g=c+l+a;const m=u<0&&u>-1,v=h>0&&h<1;return 0===t?(f=g*Math.abs(u),v&&1===u&&(f-=g*Math.abs(h))):t===d?(f=g*Math.abs(h)*-1,m&&-1===h&&(f+=g*Math.abs(u))):m||v?(f=-1*g,f+=g*Math.abs(u),f+=g*(1-Math.abs(h))):f=g*p,f}setProps(t){var i;const n=this;if(!n.isModern)return;const{instance:o}=n,s=n.carousel;if(o&&s){const r=null===(i=s.slides[t])||void 0===i?void 0:i.el;if(r&&r.childNodes.length){let i=e(1-Math.abs(o.getProgress(t))),s=e(n.getShift(t));r.style.setProperty("--progress",i?i+"":""),r.style.setProperty("--shift",s+"")}}}shiftModern(){const t=this;if(!t.isModern)return;const{instance:e,track:i}=t,n=e.panzoom,o=t.carousel;if(!(e&&i&&n&&o))return;if(n.state===v.Init||n.state===v.Destroy)return;for(const i of e.slides)t.setProps(i.index);let s=(t[It]+t.thumbGap)*(o.slides.length||0);i.style.setProperty("--width",s+"")}cleanup(){const t=this;t.carousel&&t.carousel.destroy(),t.carousel=null,t.container&&t.container.remove(),t.container=null,t.track&&t.track.remove(),t.track=null,t.state=Lt.Init,S(t.instance.container,t.cn("hasThumbs"))}attach(){const t=this,e=t.instance;e.on("initSlide",t.onInitSlide),e.state===I.Init?e.on("initSlides",t.onInitSlides):t.onInitSlides(),e.on(["change","Panzoom.afterTransform"],t.onChange),e.on("Panzoom.refresh",t.onRefresh)}detach(){const t=this,e=t.instance;e.off("initSlide",t.onInitSlide),e.off("initSlides",t.onInitSlides),e.off(["change","Panzoom.afterTransform"],t.onChange),e.off("Panzoom.refresh",t.onRefresh),t.cleanup()}};Object.defineProperty(Ft,"defaults",{enumerable:!0,configurable:!0,writable:!0,value:zt});const Ht=Object.assign(Object.assign({},zt),{key:"t",showOnStart:!0,parentEl:null}),Bt="is-masked",Nt="aria-hidden";class qt extends ${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 t=this.ref;return t&&!t.isDisabled()}get isHidden(){return this.hidden}onClick(t,e){e.stopPropagation()}onCreateSlide(t,e){var i,n,o;const s=(null===(o=null===(n=null===(i=this.instance)||void 0===i?void 0:i.carousel)||void 0===n?void 0:n.slides[e.index])||void 0===o?void 0:o.type)||"",r=e.el;if(r&&s){let t=`for-${s}`;["video","youtube","vimeo","html5video"].includes(s)&&(t+=" for-video"),C(r,t)}}onInit(){var t;const e=this,i=e.instance,n=i.carousel;if(e.ref||!n)return;const o=e.option("parentEl")||i.footer||i.container;if(!o)return;const s=p({},e.options,{parentEl:o,classes:{container:"f-thumbs fancybox__thumbs"},Carousel:{Sync:{friction:i.option("Carousel.friction")||0}},on:{ready:t=>{const i=t.container;i&&this.hidden&&(e.refresh(),i.style.transition="none",e.hide(),i.offsetHeight,queueMicrotask((()=>{i.style.transition="",e.show()})))}}});s.Carousel=s.Carousel||{},s.Carousel.on=p((null===(t=e.options.Carousel)||void 0===t?void 0:t.on)||{},{click:this.onClick,createSlide:this.onCreateSlide}),n.options.Thumbs=s,n.attachPlugins({Thumbs:Ft}),e.ref=n.plugins.Thumbs,e.option("showOnStart")||(e.ref.state=Lt.Hidden,e.hidden=!0)}onResize(){var t;const e=null===(t=this.ref)||void 0===t?void 0:t.container;e&&(e.style.maxHeight="")}onKeydown(t,e){const i=this.option("key");i&&i===e&&this.toggle()}toggle(){const t=this.ref;if(t&&!t.isDisabled())return t.state===Lt.Hidden?(t.state=Lt.Init,void t.build()):void(this.hidden?this.show():this.hide())}show(){const t=this.ref;if(!t||t.isDisabled())return;const e=t.container;e&&(this.refresh(),e.offsetHeight,e.removeAttribute(Nt),e.classList.remove(Bt),this.hidden=!1)}hide(){const t=this.ref,e=t&&t.container;e&&(this.refresh(),e.offsetHeight,e.classList.add(Bt),e.setAttribute(Nt,"true")),this.hidden=!0}refresh(){const t=this.ref;if(!t||!t.state)return;const e=t.container,i=(null==e?void 0:e.firstChild)||null;e&&i&&i.childNodes.length&&(e.style.maxHeight=`${i.getBoundingClientRect().height}px`)}
vendor: 4,390 bytes, line 4
4attach(){const t=this,e=t.instance;e.state===st.Init?e.on("Carousel.init",t.onInit):t.onInit(),e.on("resize",t.onResize),e.on("keydown",t.onKeydown)}detach(){var t;const e=this,i=e.instance;i.off("Carousel.init",e.onInit),i.off("resize",e.onResize),i.off("keydown",e.onKeydown),null===(t=i.carousel)||void 0===t||t.detachPlugins(["Thumbs"]),e.ref=null}}Object.defineProperty(qt,"defaults",{enumerable:!0,configurable:!0,writable:!0,value:Ht});const Yt={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 Wt;!function(t){t[t.Init=0]="Init",t[t.Ready=1]="Ready",t[t.Disabled=2]="Disabled"}(Wt||(Wt={}));const Xt={tabindex:"-1",width:"24",height:"24",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Ut="has-toolbar",Vt="fancybox__toolbar";class Zt extends ${constructor(){super(...arguments),Object.defineProperty(this,"state",{enumerable:!0,configurable:!0,writable:!0,value:Wt.Init}),Object.defineProperty(this,"container",{enumerable:!0,configurable:!0,writable:!0,value:null})}onReady(t){var e;if(!t.carousel)return;let i=this.option("display"),n=this.option("absolute"),o=this.option("enabled");if("auto"===o){const t=this.instance.carousel;let e=0;if(t)for(const i of t.slides)(i.panzoom||"image"===i.type)&&e++;e||(o=!1)}o||(i=void 0);let s=0;const r={left:[],middle:[],right:[]};if(i)for(const t of["left","middle","right"])for(const n of i[t]){const i=this.createEl(n);i&&(null===(e=r[t])||void 0===e||e.push(i),s++)}let a=null;if(s&&(a=this.createContainer()),a){for(const[t,e]of Object.entries(r)){const i=document.createElement("div");C(i,Vt+"__column is-"+t);for(const t of e)i.appendChild(t);"auto"!==n||"middle"!==t||e.length||(n=!0),a.appendChild(i)}!0===n&&C(a,"is-absolute"),this.state=Wt.Ready,this.onRefresh()}else this.state=Wt.Disabled}onClick(t){var e,i;const n=this.instance,o=n.getSlide(),s=null==o?void 0:o.panzoom,r=t.target,a=r&&_(r)?r.dataset:null;if(!a)return;if(void 0!==a.fancyboxToggleThumbs)return t.preventDefault(),t.stopPropagation(),void(null===(e=n.plugins.Thumbs
vendor: 4,826 bytes, line 4
4)||void 0===e||e.toggle());if(void 0!==a.fancyboxToggleFullscreen)return t.preventDefault(),t.stopPropagation(),void this.instance.toggleFullscreen();if(void 0!==a.fancyboxToggleSlideshow){t.preventDefault(),t.stopPropagation();const e=null===(i=n.carousel)||void 0===i?void 0:i.plugins.Autoplay;let o=e.isActive;return s&&"mousemove"===s.panMode&&!o&&s.reset(),void(o?e.stop():e.start())}const l=a.panzoomAction,c=a.panzoomChange;if((c||l)&&(t.preventDefault(),t.stopPropagation()),c){let e={};try{e=JSON.parse(c)}catch(t){}s&&s.applyChange(e)}else l&&s&&s[l]&&s[l]()}onChange(){this.onRefresh()}onRefresh(){if(this.instance.isClosing())return;const t=this.container;if(!t)return;const e=this.instance.getSlide();if(!e||e.state!==rt.Ready)return;const i=e&&!e.error&&e.panzoom;for(const e of t.querySelectorAll("[data-panzoom-action]"))i?(e.removeAttribute("disabled"),e.removeAttribute("tabindex")):(e.setAttribute("disabled",""),e.setAttribute("tabindex","-1"));let n=i&&i.canZoomIn(),o=i&&i.canZoomOut();for(const e of t.querySelectorAll('[data-panzoom-action="zoomIn"]'))n?(e.removeAttribute("disabled"),e.removeAttribute("tabindex")):(e.setAttribute("disabled",""),e.setAttribute("tabindex","-1"));for(const e of t.querySelectorAll('[data-panzoom-action="zoomOut"]'))o?(e.removeAttribute("disabled"),e.removeAttribute("tabindex")):(e.setAttribute("disabled",""),e.setAttribute("tabindex","-1"));for(const e of t.querySelectorAll('[data-panzoom-action="toggleZoom"],[data-panzoom-action="iterateZoom"]')){o||n?(e.removeAttribute("disabled"),e.removeAttribute("tabindex")):(e.setAttribute("disabled",""),e.setAttribute("tabindex","-1"));const t=e.querySelector("g");t&&(t.style.display=n?"":"none")}}onDone(t,e){var i;null===(i=e.panzoom)||void 0===i||i.on("afterTransform",(()=>{this.instance.isCurrentSlide(e)&&this.onRefresh()})),this.instance.isCurrentSlide(e)&&this.onRefresh()}createContainer(){const t=this.instance.container;if(!t)return null;const e=this.option("parentEl")||t;let i=e.querySelector("."+Vt);return i||(i=document.createElement("div"),C(i,Vt),e.prepend(i)),i.addEventListener("click",this.onClick,{passive:!1,capture:!0}),t&&C(t,Ut),this.container=i,i}createEl(t){const e=this.instance,i=e.carousel;if(!i)return null;if("toggleFS"===t)return null;if("fullscreen"===t&&!nt())return null;let n=null;const s=i.slides.length||0;let r=0,a=0;for(const t of i.slides)(t.panzoom||"image"===t.type)&&r++,("image"===t.type||t.downloadSrc)&&a++;if(s<2&&["infobar","prev","next"].includes(t))return n;if(void 0!==Yt[t]&&!r)return null;if("download"===t&&!a)return null;if("thumbs"===t){const t=e.plugins.Thumbs;if(!t||!t.isEnabled)return null}if("slideshow"===t&&(!i.plugins.Autoplay||s<2))return null;if(void 0!==Yt[t]){const e=Yt[t];n=document.createElement("button"),n.setAttribute("title",this.instance.localize(`{{${t.toUpperCase()}}}`)),C(n,"f-button"),e.action&&(n.dataset.panzoomAction=e.action),e.change&&(n.dataset.panzoomChange=JSON.stringify(e.change)),n.appendChild(o(this.instance.localize(e.icon)))}else{const e=(this.option("items")||[])[t];e&&(n=o(this.instance.localize(e.tpl)),"function"==typeof e.click&&n.addEventListener("click",(t=>{t.preventDefault(),t.stopPropagation(),"function"==typeof e.click&&e.click.call(this,this,t)})))}const l=null==n?void 0:n.querySelector("svg");if(l)for(const[t,e]of Object.entries(Xt))l.getAttribute(t)||l.setAttribute(t,String(e));return n}removeContainer(){const t=this.container;t&&t.remove(),this.container=null,this.state=Wt.Disabled;const e=this.instance.container;e&&S(e,Ut)}attach(){const t=this,e=t.instance;e.on("Carousel.initSlides",t.onReady),e.on("done",t.onDone),e.on(["reveal","Carousel.change"],t.onChange),t.onReady(t.instance)}detach(){const t=this,e=t.instance;e.off("Carousel.initSlides",t.onReady),e.off("done",t.onDone),e.off(["reveal","Carousel.change"],t.onChange),t.removeContainer()}}Object.defineProperty(Zt,"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>
4<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 Gt={Hash:class extends ${onReady(){lt=!1}onChange(t){dt&&clearTimeout(dt);const{hash:e}=ut(),{hash:i}=ht(),n=t.isOpeningSlide(t.getSlide());n&&(at=i===e?"":i),e&&e!==i&&(dt=setTimeout((()=>{try{if(t.state===st.Ready){let t="replaceState";n&&!ct&&(t="pushState",ct=!0),window.history[t]({},document.title,window.location.pathname+window.location.search+e)}}catch(t){}}),300))}onClose(t){if(dt&&clearTimeout(dt),!lt&&ct)return ct=!1,lt=!1,void window.history.back();if(!lt)try{window.history.replaceState({},document.title,window.location.pathname+window.location.search+(at||""))}catch(t){}}attach(){const t=this.instance;t.on("ready",this.onReady),t.on(["Carousel.ready","Carousel.change"],this.onChange),t.on("close",this.onClose)}detach(){const t=this.instance;t.off("ready",this.onReady),t.off(["Carousel.ready","Carousel.change"],this.onChange),t.off("close",this.onClose)}static parseURL(){return ht()}static startFromUrl(){pt()}static destroy(){window.removeEventListener("hashchange",gt,!1)}},Html:Et,Images:yt,Slideshow:$t,Thumbs:qt,Toolbar:Zt},Kt="with-fancybox",Qt="hide-scrollbar",Jt="--fancybox-scrollbar-compensate",te="--fancybox-body-margin",ee="aria-hidden",ie="is-using-tab",ne="is-animated",oe="is-compact",se="is-loading",re="is-opening",ae="has-caption",le="disabled",ce="tabindex",de="download",ue="href",he="src",pe=t=>"string"==typeof t,fe=function(){var t=window.getSelection();return!!t&&"Range"===t.type};let ge,me=null,ve=null,ye=0,be=0,we=0,xe=0;const Te=new Map;let _e=0;class Se extends m{get isIdle(){return this.idle}get isCompact(){return this.option("compact")}constructor(t=[],e={},i={}){super(e),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,"startedFs",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"state",{enumerable:!0,configurable:!0,writable:!0,value:st.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,"caption",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"footer",{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}),ge||(ge=nt()),this.id=e.id||++_e,Te.set(this.id,this),this.userSlides=t,this.userPlugins=i,queueMicrotask((()=>{this.init()}))}init(){if(this.state===st.Destroy)return;this.state=st.Init,this.attachPlugins(Object.assign(Object.assign({}
vendor: 8,971 bytes, lines 4-5
4,Se.Plugins),this.userPlugins)),this.emit("init"),this.emit("attachPlugins"),!0===this.option("hideScrollbar")&&(()=>{if(!J)return;const t=document,e=t.body,i=t.documentElement;if(e.classList.contains(Qt))return;let n=window.innerWidth-i.getBoundingClientRect().width;const o=parseFloat(window.getComputedStyle(e).marginRight);n<0&&(n=0),i.style.setProperty(Jt,`${n}px`),o&&e.style.setProperty(te,`${o}px`),e.classList.add(Qt)})(),this.initLayout(),this.scale();const t=()=>{this.initCarousel(this.userSlides),this.state=st.Ready,this.attachEvents(),this.emit("ready"),setTimeout((()=>{this.container&&this.container.setAttribute(ee,"false")}),16)};this.option("Fullscreen.autoStart")&&ge&&!ge.isFullscreen()?ge.request().then((()=>{this.startedFs=!0,t()})).catch((()=>t())):t()}initLayout(){var t,e;const i=this.option("parentEl")||document.body,n=o(this.localize(this.option("tpl.main")||""));if(n){if(n.setAttribute("id",`fancybox-${this.id}`),n.setAttribute("aria-label",this.localize("{{MODAL}}")),n.classList.toggle(oe,this.isCompact),C(n,this.option("mainClass")||""),C(n,re),this.container=n,this.footer=n.querySelector(".fancybox__footer"),i.appendChild(n),C(document.documentElement,Kt),me&&ve||(me=document.createElement("span"),C(me,"fancybox-focus-guard"),me.setAttribute(ce,"0"),me.setAttribute(ee,"true"),me.setAttribute("aria-label","Focus guard"),ve=me.cloneNode(),null===(t=n.parentElement)||void 0===t||t.insertBefore(me,n),null===(e=n.parentElement)||void 0===e||e.append(ve)),n.addEventListener("mousedown",(t=>{ye=t.pageX,be=t.pageY,S(n,ie)})),this.option("closeExisting"))for(const t of Te.values())t.id!==this.id&&t.close();else this.option("animated")&&(C(n,ne),setTimeout((()=>{this.isClosing()||S(n,ne)}),350));this.emit("initLayout")}}initCarousel(t){const e=this.container;if(!e)return;const n=e.querySelector(".fancybox__carousel");if(!n)return;const o=this.carousel=new K(n,p({},{slides:t,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")||{}));o.on("*",((t,e,...i)=>{this.emit(`Carousel.${e}`,t,...i)})),o.on(["ready","change"],(()=>{this.manageCaption()})),this.on("Carousel.removeSlide",((t,e,i)=>{this.clearContent(i),i.state=void 0})),o.on("Panzoom.touchStart",(()=>{var t,e;this.isCompact||this.endIdle(),(null===(t=document.activeElement)||void 0===t?void 0:t.closest(".f-thumbs"))&&(null===(e=this.container)||void 0===e||e.focus())})),o.on("settle",(()=>{this.idleTimer||this.isCompact||!this.option("idle")||this.setIdle(),this.option("autoFocus")&&!this.isClosing&&this.checkFocus()})),this.option("dragToClose")&&(o.on("Panzoom.afterTransform",((t,e)=>{const n=this.getSlide();if(n&&i(n.el))return;const o=this.container;if(o){const t=Math.abs(e.current.f),i=t<1?"":Math.max(.5,Math.min(1,1-t/e.contentRect.fitHeight*1.5));o.style.setProperty("--fancybox-ts",i?"0s":""),o.style.setProperty("--fancybox-opacity",i+"")}})),o.on("Panzoom.touchEnd",((t,e,n)=>{var o;const s=this.getSlide();if(s&&i(s.el))return;if(e.isMobile&&document.activeElement&&-1!==["TEXTAREA","INPUT"].indexOf(null===(o=document.activeElement)||void 0===o?void 0:o.nodeName))return;const r=Math.abs(e.dragOffset.y);"y"===e.lockedAxis&&(r>=200||r>=50&&e.dragOffset.time<300)&&(n&&n.cancelable&&n.preventDefault(),this.close(n,"f-throwOut"+(e.current.f<0?"Up":"Down")))}))),o.on("change",(t=>{var e;let i=null===(e=this.getSlide())||void 0===e?void 0:e.triggerEl;if(i){const e=new CustomEvent("slideTo",{bubbles:!0,cancelable:!0,detail:t.page});i.dispatchEvent(e)}})),o.on(["refresh","change"],(t=>{const e=this.container;if(!e)return;for(const i of e.querySelectorAll("[data-fancybox-current-index]"))i.innerHTML=t.page+1;for(const i of e.querySelectorAll("[data-fancybox-count]"))i.innerHTML=t.pages.length;if(!t.isInfinite){for(const i of e.querySelectorAll("[data-fancybox-next]"))t.page<t.pages.length-1?(i.removeAttribute(le),i.removeAttribute(ce)):(i.setAttribute(le,""),i.setAttribute(ce,"-1"));for(const i of e.querySelectorAll("[data-fancybox-prev]"))t.page>0?(i.removeAttribute(le),i.removeAttribute(ce)):(i.setAttribute(le,""),i.setAttribute(ce,"-1"))}const i=this.getSlide();if(!i)return;let n=i.downloadSrc||"";n||"image"!==i.type||i.error||!pe(i[he])||(n=i[he]);for(const t of e.querySelectorAll("[data-fancybox-download]")){const e=i.downloadFilename;n?(t.removeAttribute(le),t.removeAttribute(ce),t.setAttribute(ue,n),t.setAttribute(de,e||n),t.setAttribute("target","_blank")):(t.setAttribute(le,""),t.setAttribute(ce,"-1"),t.removeAttribute(ue),t.removeAttribute(de))}})),this.emit("initCarousel")}attachEvents(){const t=this,e=t.container;if(!e)return;e.addEventListener("click",t.onClick,{passive:!1,capture:!1}),e.addEventListener("wheel",t.onWheel,{passive:!1,capture:!1}),document.addEventListener("keydown",t.onKeydown,{passive:!1,capture:!0}),document.addEventListener("visibilitychange",t.onVisibilityChange,!1),document.addEventListener("mousemove",t.onMousemove),t.option("trapFocus")&&document.addEventListener("focus",t.onFocus,!0),window.addEventListener("resize",t.onResize);const i=window.visualViewport;i&&(i.addEventListener("scroll",t.onResize),i.addEventListener("resize",t.onResize))}detachEvents(){const t=this,e=t.container;if(!e)return;document.removeEventListener("keydown",t.onKeydown,{passive:!1,capture:!0}),e.removeEventListener("wheel",t.onWheel,{passive:!1,capture:!1}),e.removeEventListener("click",t.onClick,{passive:!1,capture:!1}),document.removeEventListener("mousemove",t.onMousemove),window.removeEventListener("resize",t.onResize);const i=window.visualViewport;i&&(i.removeEventListener("resize",t.onResize),i.removeEventListener("scroll",t.onResize)),document.removeEventListener("visibilitychange",t.onVisibilityChange,!1),document.removeEventListener("focus",t.onFocus,!0)}scale(){const t=this.container;if(!t)return;const e=window.visualViewport,i=Math.max(1,(null==e?void 0:e.scale)||1);let n="",o="",s="";if(e&&i>1){let t=`${e.offsetLeft}px`,r=`${e.offsetTop}px`;n=e.width*i+"px",o=e.height*i+"px",s=`translate3d(${t}, ${r}, 0) scale(${1/i})`}t.style.transform=s,t.style.width=n,t.style.height=o}onClick(t){var e;const{container:i,isCompact:n}=this;if(!i||this.isClosing())return;!n&&this.option("idle")&&this.resetIdle();const o=t.composedPath()[0];if(o.closest(".fancybox-spinner")||o.closest("[data-fancybox-close]"))return t.preventDefault(),void this.close(t);if(o.closest("[data-fancybox-prev]"))return t.preventDefault(),void this.prev();if(o.closest("[data-fancybox-next]"))return t.preventDefault(),void this.next();if("click"===t.type&&0===t.detail)return;if(Math.abs(t.pageX-ye)>30||Math.abs(t.pageY-be)>30)return;const s=document.activeElement 5;if(fe()&&s&&i.contains(s))return;if(n&&"image"===(null===(e=this.getSlide())||void 0===e?void 0:e.type))return void(this.clickTimer?(clearTimeout(this.clickTimer),this.clickTimer=null):this.clickTimer=setTimeout((()=>{this.toggleIdle(),this.clickTimer=null}),350));if(this.emit("click",t),t.defaultPrevented)return;let r=!1;if(o.closest(".fancybox__content")){if(s){if(s.closest("[contenteditable]"))return;o.matches(et)||s.blur()}if(fe())return;r=this.option("contentClick")}else o.closest(".fancybox__carousel")&&!o.matches(et)&&(r=this.option("backdropClick"));"close"===r?(t.preventDefault(),this.close(t)):"next"===r?(t.preventDefault(),this.next()):"prev"===r&&(t.preventDefault(),this.prev())}onWheel(t){const e=t.target;let i=this.option("wheel",t);e.closest(".fancybox__thumbs")&&(i="slide");const o="slide"===i,s=[-t.deltaX||0,-t.deltaY||0,-t.detail||0].reduce((function(t,e){return Math.abs(e)>Math.abs(t)?e:t})),r=Math.max(-1,Math.min(1,s)),a=Date.now();this.pwt&&a-this.pwt<300?o&&t.preventDefault():(this.pwt=a,this.emit("wheel",t,r),t.defaultPrevented||("close"===i?(t.preventDefault(),this.close(t)):"slide"===i&&(n(e)||(t.preventDefault(),this[r>0?"prev":"next"]()))))}onScroll(){window.scrollTo(we,xe)}onKeydown(t){if(!this.isTopmost())return;this.isCompact||!this.option("idle")||this.isClosing()||this.resetIdle();const e=t.key,i=this.option("keyboard");if(!i)return;const n=t.composedPath()[0],o=document.activeElement&&document.activeElement.classList,s=o&&o.contains("f-button")||n.dataset.carouselPage||n.dataset.carouselIndex;if("Escape"!==e&&!s&&_(n)&&(n.isContentEditable||-1!==["TEXTAREA","OPTION","INPUT","SELECT","VIDEO"].indexOf(n.nodeName)))return;if("Tab"===t.key?C(this.container,ie):S(this.container,ie),t.ctrlKey||t.altKey||t.shiftKey)return;this.emit("keydown",e,t);const r=i[e];r&&"function"==typeof this[r]&&(t.preventDefault(),this[r]())}onResize(){const t=this.container;if(!t)return;const e=this.isCompact;t.classList.toggle(oe,e),this.manageCaption(this.getSlide()),this.isCompact?this.clearIdle():this.endIdle(),this.scale(),this.emit
vendor: 4,430 bytes, line 5
5("resize")}onFocus(t){this.isTopmost()&&this.checkFocus(t)}onMousemove(t){this.prevMouseMoveEvent=t,!this.isCompact&&this.option("idle")&&this.resetIdle()}onVisibilityChange(){"visible"===document.visibilityState?this.checkFocus():this.endIdle()}manageCloseBtn(t){const e=this.optionFor(t,"closeButton")||!1;if("auto"===e){const t=this.plugins.Toolbar;if(t&&t.state===Wt.Ready)return}if(!e)return;if(!t.contentEl||t.closeBtnEl)return;const i=this.option("tpl.closeButton");if(i){const e=o(this.localize(i));t.closeBtnEl=t.contentEl.appendChild(e),t.el&&C(t.el,"has-close-btn")}}manageCaption(t=void 0){var e,i;const n="fancybox__caption",o=this.container;if(!o)return;S(o,ae);const s=this.isCompact||this.option("commonCaption"),r=!s;if(this.caption&&this.stop(this.caption),r&&this.caption&&(this.caption.remove(),this.caption=null),s&&!this.caption)for(const t of(null===(e=this.carousel)||void 0===e?void 0:e.slides)||[])t.captionEl&&(t.captionEl.remove(),t.captionEl=void 0,S(t.el,ae),null===(i=t.el)||void 0===i||i.removeAttribute("aria-labelledby"));if(t||(t=this.getSlide()),!t||s&&!this.isCurrentSlide(t))return;const a=t.el;let l=this.optionFor(t,"caption","");if(!l)return void(s&&this.caption&&this.animate(this.caption,"f-fadeOut",(()=>{this.caption&&(this.caption.innerHTML="")})));let c=null;if(r){if(c=t.captionEl||null,a&&!c){const e=n+`_${this.id}_${t.index}`;c=document.createElement("div"),C(c,n),c.setAttribute("id",e),t.captionEl=a.appendChild(c),C(a,ae),a.setAttribute("aria-labelledby",e)}}else c=this.caption,c||(c=o.querySelector("."+n)),c||(c=document.createElement("div"),c.dataset.fancyboxCaption="",C(c,n),(this.footer||o).prepend(c)),C(o,ae),this.caption=c;c&&(c.innerHTML="",pe(l)||"number"==typeof l?c.innerHTML=l+"":l instanceof HTMLElement&&c.appendChild(l))}checkFocus(t){this.focus(t)}focus(t){var e;if(this.ignoreFocusChange)return;const i=document.activeElement||null,n=(null==t?void 0:t.target)||null,o=this.container,s=null===(e=this.carousel)||void 0===e?void 0:e.viewport;if(!o||!s)return;if(!t&&i&&o.contains(i))return;const r=this.getSlide(),a=r&&r.state===rt.Ready?r.el:null;if(!a||a.contains(i)||o===i)return;t&&t.cancelable&&t.preventDefault(),this.ignoreFocusChange=!0;const l=Array.from(o.querySelectorAll(et));let c=[],d=null;for(let t of l){const e=!t.offsetParent||!!t.closest('[aria-hidden="true"]'),i=a&&a.contains(t),n=!s.contains(t);if(t===o||(i||n)&&!e){c.push(t);const e=t.dataset.origTabindex;void 0!==e&&e&&(t.tabIndex=parseFloat(e)),t.removeAttribute("data-orig-tabindex"),!t.hasAttribute("autoFocus")&&d||(d=t)}else{const e=void 0===t.dataset.origTabindex?t.getAttribute("tabindex")||"":t.dataset.origTabindex;e&&(t.dataset.origTabindex=e),t.tabIndex=-1}}let u=null;t?(!n||c.indexOf(n)<0)&&(u=d||o,c.length&&(i===ve?u=c[0]:this.lastFocus!==o&&i!==me||(u=c[c.length-1]))):u=r&&"image"===r.type?o:d||o,u&&it(u),this.lastFocus=document.activeElement,this.ignoreFocusChange=!1}next(){const t=this.carousel;t&&t.pages.length>1&&t.slideNext()}prev(){const t=this.carousel;t&&t.pages.length>1&&t.slidePrev()}jumpTo(...t){this.carousel&&this.carousel.slideTo(...t)}isTopmost(){var t;return(null===(t=Se.getInstance())||void 0===t?void 0:t.id)==this.id}animate(t=null,e="",i){if(!t||!e)return void(i&&i());this.stop(t);const n=o=>{o.target===t&&t.dataset.animationName&&(t.removeEventListener("animationend",n),delete t.dataset.animationName,i&&i(),S(t,e))};t.dataset.animationName=e,t.addEventListener("animationend",n),C(t,e)}stop(t){t&&t.dispatchEvent(new CustomEvent("animationend",{bubbles:!1,cancelable:!0,currentTarget:t}))}setContent(t,e="",i=!0){if(this.isClosing())return;const n=t.el;if(!n)return;let s=null;if(_(e)?s=e:(s=o(e+""),_(s)||(s=document.createElement("div"),s.innerHTML=e+"")),["img","picture","iframe","video","audio"].includes(s.nodeName.toLowerCase())){const t=document.createElement("div");t.appendChild(s),s=t}_(s)&&t.filter&&!t.error&&(s=s.querySelector(t.filter)),s&&_(s)?(C(s,"fancybox__content"),t.id&&s.setAttribute("id",t.id),n.classList.add(`has-${t.error?"error":t.type||"unknown"}`),n.prepend(s),"none"===s.style.display&&(s.style.display=""),"none"===getComputedStyle(s).getPropertyValue("display")&&(s.style.display=t.display||this.option("defaultDisplay")||"flex"),t.contentEl=s,i&&this.revealContent(t),this.manageCloseBtn(t),this.manageCaption(t)):this.setError(t,"{{ELEMENT_NOT_FOUND}}")}revealContent(t,e){const i=t.el,n=t.contentEl;
vendor: 6,202 bytes, line 5
5i&&n&&(this.emit("reveal",t),this.hideLoading(t),t.state=rt.Opening,(e=this.isOpeningSlide(t)?void 0===e?this.optionFor(t,"showClass"):e:"f-fadeIn")?this.animate(n,e,(()=>{this.done(t)})):this.done(t))}done(t){this.isClosing()||(t.state=rt.Ready,this.emit("done",t),C(t.el,"is-done"),this.isCurrentSlide(t)&&this.option("autoFocus")&&queueMicrotask((()=>{var e;null===(e=t.panzoom)||void 0===e||e.updateControls(),this.option("autoFocus")&&this.focus()})),this.isOpeningSlide(t)&&(S(this.container,re),!this.isCompact&&this.option("idle")&&this.setIdle()))}isCurrentSlide(t){const e=this.getSlide();return!(!t||!e)&&e.index===t.index}isOpeningSlide(t){var e,i;return null===(null===(e=this.carousel)||void 0===e?void 0:e.prevPage)&&t&&t.index===(null===(i=this.getSlide())||void 0===i?void 0:i.index)}showLoading(t){t.state=rt.Loading;const e=t.el;e&&(C(e,se),this.emit("loading",t),t.spinnerEl||setTimeout((()=>{if(!this.isClosing()&&!t.spinnerEl&&t.state===rt.Loading){let i=o(T);C(i,"fancybox-spinner"),t.spinnerEl=i,e.prepend(i),this.animate(i,"f-fadeIn")}}),250))}hideLoading(t){const e=t.el;if(!e)return;const i=t.spinnerEl;this.isClosing()?null==i||i.remove():(S(e,se),i&&this.animate(i,"f-fadeOut",(()=>{i.remove()})),t.state===rt.Loading&&(this.emit("loaded",t),t.state=rt.Ready))}setError(t,e){if(this.isClosing())return;const i=new Event("error",{bubbles:!0,cancelable:!0});if(this.emit("error",i,t),i.defaultPrevented)return;t.error=e,this.hideLoading(t),this.clearContent(t);const n=document.createElement("div");n.classList.add("fancybox-error"),n.innerHTML=this.localize(e||"<p>{{ERROR}}</p>"),this.setContent(t,n)}clearContent(t){if(void 0===t.state)return;this.emit("clearContent",t),t.contentEl&&(t.contentEl.remove(),t.contentEl=void 0);const e=t.el;e&&(S(e,"has-error"),S(e,"has-unknown"),S(e,`has-${t.type||"unknown"}`)),t.closeBtnEl&&t.closeBtnEl.remove(),t.closeBtnEl=void 0,t.captionEl&&t.captionEl.remove(),t.captionEl=void 0,t.spinnerEl&&t.spinnerEl.remove(),t.spinnerEl=void 0}getSlide(){var t;const e=this.carousel;return(null===(t=null==e?void 0:e.pages[null==e?void 0:e.page])||void 0===t?void 0:t.slides[0])||void 0}close(t,e){if(this.isClosing())return;const i=new Event("shouldClose",{bubbles:!0,cancelable:!0});if(this.emit("shouldClose",i,t),i.defaultPrevented)return;t&&t.cancelable&&(t.preventDefault(),t.stopPropagation());const n=()=>{this.proceedClose(t,e)};this.startedFs&&ge&&ge.isFullscreen()?Promise.resolve(ge.exit()).then((()=>n())):n()}clearIdle(){this.idleTimer&&clearTimeout(this.idleTimer),this.idleTimer=null}setIdle(t=!1){const e=()=>{this.clearIdle(),this.idle=!0,C(this.container,"is-idle"),this.emit("setIdle")};if(this.clearIdle(),!this.isClosing())if(t)e();else{const t=this.option("idle");t&&(this.idleTimer=setTimeout(e,t))}}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(){ge&&(ge.isFullscreen()?ge.exit():ge.request().then((()=>{this.startedFs=!0})))}isClosing(){return[st.Closing,st.CustomClosing,st.Destroy].includes(this.state)}proceedClose(t,e){var i,n;this.state=st.Closing,this.clearIdle(),this.detachEvents();const o=this.container,s=this.carousel,r=this.getSlide(),a=r&&this.option("placeFocusBack")?r.triggerEl||this.option("triggerEl"):null;if(a&&(Q(a)?it(a):a.focus()),o&&(S(o,re),C(o,"is-closing"),o.setAttribute(ee,"true"),this.option("animated")&&C(o,ne),o.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 t of s.slides){t.state=rt.Closing,this.hideLoading(t);const e=t.contentEl;e&&this.stop(e);const i=null==t?void 0:t.panzoom;i&&(i.stop(),i.detachEvents(),i.detachObserver()),this.isCurrentSlide(t)||s.emit("removeSlide",t)}}we=window.scrollX,xe=window.scrollY,window.addEventListener("scroll",this.onScroll),this.emit("close",t),this.state!==st.CustomClosing?(void 0===e&&r&&(e=this.optionFor(r,"hideClass")),e&&r?(this.animate(r.contentEl,e,(()=>{s&&s.emit("removeSlide",r)})),setTimeout((()=>{this.destroy()}),500)):this.destroy()):setTimeout((()=>{this.destroy()}),500)}destroy(){var t;if(this.state===st.Destroy)return;window.removeEventListener("scroll",this.onScroll),this.state=st.Destroy,null===(t=this.carousel)||void 0===t||t.destroy();const e=this.container;e&&e.remove(),Te.delete(this.id);const i=Se.getInstance();i?i.focus():(me&&(me.remove(),me=null),ve&&(ve.remove(),ve=null),S(document.documentElement,Kt),(()=>{if(!J)return;const t=document,e=t.body;e.classList.remove(Qt),e.style.setProperty(te,""),t.documentElement.style.setProperty(Jt,"")})(),this.emit("destroy"))}static bind(t,e,i){if(!J)return;let n,o="",s={};if(void 0===t?n=document.body:pe(t)?(n=document.body,o=t,"object"==typeof e&&(s=e||{})):(n=t,pe(e)&&(o=e),"object"==typeof i&&(s=i||{})),!n||!_(n))return;o=o||"[data-fancybox]";const r=Se.openers.get(n)||new Map;r.set(o,s),Se.openers.set(n,r),1===r.size&&n.addEventListener("click",Se.fromEvent)}static unbind(t,e){let i,n="";if(pe(t)?(i=document.body,n=t):(i=t,pe(e)&&(n=e)),!i)return;const o=Se.openers.get(i);o&&n&&o.delete(n),n&&o||(Se.openers.delete(i),i.removeEventListener("click",Se.fromEvent))}static destroy(){let t;for(;t=Se.getInstance();)t.destroy();for(const t of Se.openers.keys())t.removeEventListener("click",Se.fromEvent);Se.openers=new Map}static fromEvent(t){if(t.defaultPrevented)return;if(t.button&&0!==t.button)return;if(t.ctrlKey||t.metaKey||t.shiftKey)return;let e=t.composedPath()[0];const i=e.closest("[data-fancybox-trigger]");if(i){const t=i.dataset.fancyboxTrigger||"",n=document.querySelectorAll(`[data-fancybox="${t}"]`),o=parseInt(i.dataset.fancyboxIndex||"",10)||0;e=n[o]||e}if(!(e&&e instanceof Element))return;let n,o,s,r;if([...Se.openers].reverse().find((([t,i])=>!(!t.contains(e)||![...i].reverse().find((([i,a])=>{let l=e.closest(i);return!!l&&(n=t,o=i,s=l,r=a,!0)}))))),!n||!o||!s)return;r=r||{},t.preventDefault(),e=s;let a=[],l=p({},ot,r);l.event=t,l.triggerEl=e,l.delegate=i;const c=l.groupAll,d=l.groupAttr,u=d&&e?e.getAttribute(`${d}`):"";
5if((!e||u||c)&&(a=[].slice.call(n.querySelectorAll(o))),e&&!c&&(a=u?a.filter((t=>t.getAttribute(`${d}`)===u)):[e]),!a.length)return;const h=Se.getInstance();return h&&h.options.triggerEl&&a.indexOf(h.options.triggerEl)>-1?void 0:(e&&(l.startIndex=a.indexOf(e)),Se.fromNodes(a,l))}static fromSelector(t,e,i){let n=null,o="",s={};if(pe(t)?(n=document.body,o=t,"object"==typeof e&&(s=e||{})):t instanceof HTMLElement&&pe(e)&&(n=t,o=e,"object"==typeof i&&(s=i||{})),!n||!o)return!1;const r=Se.openers.get(n);return!!r&&(s=p({},r.get(o)||{},s),!!s&&Se.fromNodes(Array.from(n.querySelectorAll(o)),s))}static fromNodes(t,e){e=p({},ot,e||{});const i=[];for(const n of t){const t=n.dataset||{},o=t[he]||n.getAttribute(ue)||n.getAttribute("currentSrc")||n.getAttribute(he)||void 0;let s;const r=e.delegate;let a;r&&i.length===e.startIndex&&(s=r instanceof HTMLImageElement?r:r.querySelector("img:not([aria-hidden])")),s||(s=n instanceof HTMLImageElement?n:n.querySelector("img:not([aria-hidden])")),s&&(a=s.currentSrc||s[he]||void 0,!a&&s.dataset&&(a=s.dataset.lazySrc||s.dataset[he]||void 0));const l={src:o,triggerEl:n,thumbEl:s,thumbElSrc:a,thumbSrc:a};for(const e in t){let i=t[e]+"";i="false"!==i&&("true"===i||i),l[e]=i}i.push(l)}return new Se(i,e)}static getInstance(t){return t?Te.get(t):Array.from(Te.values()).reverse().find((t=>!t.isClosing()&&t))||null}static getSlide(){var t;return(null===(t=Se.getInstance())||void 0===t?void 0:t.getSlide())||null}static show(t=[],e={}){return new Se(t,e)}static next(){const t=Se.getInstance();t&&t.next()}static prev(){const t=Se.getInstance();t&&t.prev()}static close(t=!0,...e){if(t)for(const t of Te.values())t.close(...e);else{const t=Se.getInstance();t&&t.close(...e)}}}Object.defineProperty(Se,"version",{enumerable:!0,configurable:!0,writable:!0,value:"5.0.36"}),Object.defineProperty(Se,"defaults",{enumerable:!0,configurable:!0,writable:!0,value:ot}),Object.defineProperty(Se,"Plugins",{enumerable:!0,configurable:!0,writable:!0,value:Gt}),Object.defineProperty(Se,"openers",{enumerable:!0,configurable:!0,writable:!0,value:new Map}),t.Carousel=K,t.Fancybox=Se,t.Panzoom=R})),function(t){"use strict";"function"==typeof define&&define.amd?define(["jquery"],t):"object"==typeof module&&module.exports?module.exports=function(e,i){return void 0===i&&(i=typeof window<"u"?require("jquery"):require("jquery")(e)),t(i),i}:t(jQuery)}((function(t){"use strict";var e,i=window.Slick||{};e=0,(i=function(i,n){var o,s=this;s.defaults={accessibility:!0,adaptiveHeight:!1,appendArrows:t(i),appendDots:t(i),arrows:!0,asNavFor:null,prevArrow:'<button class="slick-prev" aria-label="Previous" type="button">Previous</button>',nextArrow:'<button class="slick-next" aria-label="Next" type="button">Next</button>',autoplay:!1,autoplaySpeed:3e3,centerMode:!1,centerPadding:"50px",cssEase:"ease",customPaging:function(e,i){return t('<button type="button"></button>').text(i+1)},dots:!1,dotsClass:"slick-dots",draggable:!0,easing:"linear",edgeFriction:.35,fade:!1,focusOnSelect:!1,focusOnChange:!1,infinite:!0,initialSlide:0,lazyLoad:"ondemand",mobileFirst:!1,pauseOnHover:!0,pauseOnFocus:!0,pauseOnDotsHover:!1,respondTo:"window",responsive:null,rows:1,rtl:!1,slide:"",slidesPerRow:1,slidesToShow:1,slidesToScroll:1,speed:500,swipe:!0,swipeToSlide:!1,touchMove:!0,touchThreshold:5,useCSS:!0,useTransform:!0,variableWidth:!1,vertical:!1,verticalSwiping:!1,waitForAnimate:!0,zIndex:1e3},s.initials={animating:!1,dragging:!1,autoPlayTimer:null,currentDirection:0,currentLeft:null,currentSlide:0,direction:1,$dots:null,listWidth:null,listHeight:null,loadIndex:0,$nextArrow:null,$prevArrow:null,scrolling:!1,slideCount:null,slideWidth:null,$slideTrack:null,$slides:null,sliding:!1,slideOffset:0,swipeLeft:null,swiping:!1,$list:null,touchObject:{},transformsEnabled:!1,unslicked:!1},t.extend(s,s.initials),s.activeBreakpoint=null,s.animType=null,s.animProp=null,s.breakpoints=[],s.breakpointSettings=[],s.cssTransitions=!1,s.focussed=!1,s.interrupted=!1,s.hidden="hidden",s.paused=!0,s.positionProp=null,s.respondTo=null,s.rowCount=1,s.shouldClick=!0,s.$slider=t(i),s.$slidesCache=null,s.transformType=null,s.transitionType=null,s.visibilityChange="visibilitychange",s.windowWidth=0,s.windowTimer=null,o=t(i).data("slick")||{},s.options=t.extend({},s.defaults,n,o),s.currentSlide=s.options.initialSlide,s.originalSettings=s.options,s.autoPlay=t.proxy(s.autoPlay,s),s.autoPlayClear=t.proxy(s.autoPlayClear,s),s.autoPlayIterator=t.proxy(s.autoPlayIterator,s),s.changeSlide=t.proxy(s.changeSlide,s),s.clickHandler=t.proxy(s.clickHandler,s),s.selectHandler=t.proxy(s.selectHandler,s),s.setPosition=t.proxy(s.setPosition,s),s.swipeHandler=t.proxy(s.swipeHandler,s),s.dragHandler=t.proxy(s.dragHandler,s),s.keyHandler=t.proxy(s.keyHandler,s),s.instanceUid=e++,s.htmlExpr=/^(?:\s*(<[\w\W]+>)[^>]*)$/,s.registerBreakpoints(),s.init(!0)}).prototype.activateADA=function(){this.$slideTrack.find(".slick-active").attr({"aria-hidden":"false",tabindex:"0"}).find("a, input, button, select").attr({tabindex:"0"})},i.prototype.addSlide=i.prototype.slickAdd=function(e,i,n){var o=this;if("boolean"==typeof i)n=i,i=null;else if(i<0||i>=o.slideCount)return!1;o.unload(),"number"==typeof i?0===i&&0===o.$slides.length?t(e).appendTo(o.$slideTrack):n?t(e).insertBefore(o.$slides.eq(i)):t(e).insertAfter(o.$slides.eq(i)):!0===n?t(e).prependTo(o.$slideTrack):t(e).appendTo(o.$slideTrack),o.$slides=o.$slideTrack.children(this.options.slide),o.$slideTrack.children(this.options.slide).detach(),o.$slideTrack.append(o.$slides),o.$slides.each((function(e,i){t(i).attr("data-slick-index",e)})),o.$slidesCache=o.$slides,o.reinit()},i.prototype.animateHeight=function(){var t=this;if(1===t.options.slidesToShow&&!0===t.options.adaptiveHeight&&!1===t.options.vertical){var e=t.$slides.eq(t.currentSlide).outerHeight(!0);t.$list.animate({height:e},t.options.speed)}},i.prototype.animateSlide=function(e,i){var n={},o=this;o.animateHeight(),!0===o.options.rtl&&!1===o.options.vertical&&(e=-e),!1===o.transformsEnabled?!1===o.options.vertical?o.$slideTrack.animate({left:e},o.options.speed,o.options.easing,i):o.$slideTrack.animate({top:e},o.options.speed,o.options.easing,i):!1===o.cssTransitions?(!0===o.options.rtl&&(o.currentLeft=-o.currentLeft),t({animStart:o.currentLeft}).animate({animStart:e},{duration:o.options.speed,easing:o.options.easing,step:function(t){t=Math.ceil(t),!1===o.options.vertical?(n[o.animType]="translate("+t+"px, 0)",o.$slideTrack.css(n)):(n[o.animType]="translate(0, "+t+"px)",o.$slideTrack.css(n))},complete:function(){i&&i.call()}})):(o.applyTransition(),e=Math.ceil(e),!1===o.options.vertical?n[o.animType]="translate3d("+e+"px, 0, 0)":n[o.animType]="translate3d(0, "+e+"px, 0)",o.$slideTrack.css(n),i&&setTimeout((function(){o.disableTransition(),i.call()}),o.options.speed))},i.prototype.getNavTarget=function(){var e=this.options.asNavFor;return e&&null!==e&&(e=t(e).not(this.$slider)),e},i.prototype.asNavFor=function(e){var i=this.getNavTarget();null!==i&&"object"==typeof i&&i.each((function(){var i=t(this).slick("getSlick");i.unslicked||i.slideHandler(e,!0)}))},i.prototype.applyTransition=function(t){var e=this,i={};!1===e.options.fade?i[e.transitionType]=e.transformType+" "+e.options.speed+"ms "+e.options.cssEase:i[e.transitionType]="opacity "+e.options.speed+"ms "+e.options.cssEase,!1===e.options.fade?e.$slideTrack.css(i):e.$slides.eq(t).css(i)},i.prototype.autoPlay=function(){var t=this;t.autoPlayClear(),t.slideCount>t.options.slidesToShow&&(t.autoPlayTimer=setInterval(t.autoPlayIterator,t.options.autoplaySpeed))},i.prototype.autoPlayClear=function(){this.autoPlayTimer&&clearInterval(this.autoPlayTimer)},i.prototype.autoPlayIterator=function(){var t=this,e=t.currentSlide+t.options.slidesToScroll;!t.paused&&!t.interrupted&&!t.focussed&&(!1===t.options.infinite&&(1===t.direction&&t.currentSlide+1===t.slideCount-1?t.direction=0:0===t.direction&&(e=t.currentSlide-t.options.slidesToScroll,t.currentSlide-1==0&&(t.direction=1))),t.slideHandler(e))},i.prototype.buildArrows=function(){var e=this;!0===e.options.arrows&&(e.$prevArrow=t(e.options.prevArrow).addClass("slick-arrow"),e.$nextArrow=t(e.options.nextArrow).addClass("slick-arrow"),e.slideCount>e.options.slidesToShow?(e.$prevArrow.removeClass("slick-hidden").removeAttr("aria-hidden tabindex"),e.$nextArrow.removeClass("slick-hidden").removeAttr("aria-hidden tabindex"),e.htmlExpr.test(e.options.prevArrow)&&e.$prevArrow.prependTo(e.options.appendArrows),e.htmlExpr.test(e.options.nextArrow)&&e.$nextArrow.appendTo(e.options.appendArrows),!0!==e.options.infinite&&e.$prevArrow.addClass("slick-disabled").attr("aria-disabled","true")):e.$prevArrow.add(e.$nextArrow).addClass("slick-hidden").attr({"aria-disabled":"true",tabindex:"-1"}))},i.prototype.buildDots=function(){var e,i,n=this;if(!0===n.options.dots&&n.slideCount>n.options.slidesToShow){for(n.$slider.addClass("slick-dotted"),i=t("<ul></ul>").addClass(n.options.dotsClass),e=0;e<=n.getDotCount();e+=1)i.append(t("<li></li>").append(n.options.customPaging.call(this,n,e)));n.$dots=i.appendTo(n.options.appendDots),n.$dots.find("li").first().addClass("slick-active")}},i.prototype.buildOut=function(){var e=this;e.$slides=e.$slider.children(e.options.slide+":not(.slick-cloned)").addClass("slick-slide"),e.slideCount=e.$slides.length,e.$slides.each((function(e,i){t(i).attr("data-slick-index",e).data("originalStyling",t(i).attr("style")||"")})),e.$slider.addClass("slick-slider"),e.$slideTrack=0===e.slideCount?t('<div class="slick-track"></div>').appendTo(e.$slider):e.$slides.wrapAll('<div class="slick-track"></div>').parent(),e.$list=e.$slideTrack.wrap('<div class="slick-list"></div>').parent(),e.$slideTrack.css("opacity",0),(!0===e.options.centerMode||!0===e.options.swipeToSlide)&&(e.options.slidesToScroll=1),t("img[data-lazy]",e.$slider).not("[src]").addClass("slick-loading"),e.setupInfinite(),e.buildArrows(),e.buildDots(),e.updateDots(),e.setSlideClasses("number"==typeof e.currentSlide?e.currentSlide:0),!0===e.options.draggable&&e.$list.addClass("draggable")},i.prototype.buildRows=function(){var t,e,i,n,o,s,r,a=this;if(n=document.createDocumentFragment(),s=a.$slider.children(),a.options.rows>0){for(r=a.options.slidesPerRow*a.options.rows,o=Math.ceil(s.length/r),t=0;t<o;t++){var l=document.createElement("div");for(e=0;e<a.options.rows;e++){var c=document.createElement("div");for(i=0;i<a.options.slidesPerRow;i++){var d=t*r+(e*a.options.slidesPerRow+i);s.get(d)&&c.appendChild(s.get(d))}l.appendChild(c)}n.appendChild(l)}a.$slider.empty().append(n),a.$slider.children().children().children().css({width:100/a.options.slidesPerRow+"%",display:"inline-block"})}},i.prototype.checkResponsive=function(e,i){var n,o,s,r=this,a=!1,l=r.$slider.width(),c=window.innerWidth||t(window).width();if("window"===r.respondTo?s=c:"slider"===r.respondTo?s=l:"min"===r.respondTo&&(s=Math.min(c,l)),r.options.responsive&&r.options.responsive.length&&null!==r.options.responsive){for(n in o=null,r.breakpoints)r.breakpoints.hasOwnProperty(n)&&(!1===r.originalSettings.mobileFirst?s<r.breakpoints[n]&&(o=r.breakpoints[n]):s>r.breakpoints[n]&&(o=r.breakpoints[n]));null!==o?null!==r.activeBreakpoint?(o!==r.activeBreakpoint||i)&&(r.activeBreakpoint=o,"unslick"===r.breakpointSettings[o]?r.unsl
5ick(o):(r.options=t.extend({},r.originalSettings,r.breakpointSettings[o]),!0===e&&(r.currentSlide=r.options.initialSlide),r.refresh(e)),a=o):(r.activeBreakpoint=o,"unslick"===r.breakpointSettings[o]?r.unslick(o):(r.options=t.extend({},r.originalSettings,r.breakpointSettings[o]),!0===e&&(r.currentSlide=r.options.initialSlide),r.refresh(e)),a=o):null!==r.activeBreakpoint&&(r.activeBreakpoint=null,r.options=r.originalSettings,!0===e&&(r.currentSlide=r.options.initialSlide),r.refresh(e),a=o),!e&&!1!==a&&r.$slider.trigger("breakpoint",[r,a])}},i.prototype.changeSlide=function(e,i){var n,o,s=this,r=t(e.currentTarget);switch(r.is("a")&&e.preventDefault(),r.is("li")||(r=r.closest("li")),n=s.slideCount%s.options.slidesToScroll!=0?0:(s.slideCount-s.currentSlide)%s.options.slidesToScroll,e.data.message){case"previous":o=0===n?s.options.slidesToScroll:s.options.slidesToShow-n,s.slideCount>s.options.slidesToShow&&s.slideHandler(s.currentSlide-o,!1,i);break;case"next":o=0===n?s.options.slidesToScroll:n,s.slideCount>s.options.slidesToShow&&s.slideHandler(s.currentSlide+o,!1,i);break;case"index":var a=0===e.data.index?0:e.data.index||r.index()*s.options.slidesToScroll;s.slideHandler(s.checkNavigable(a),!1,i),r.children().trigger("focus");break;default:return}},i.prototype.checkNavigable=function(t){var e,i;if(i=0,t>(e=this.getNavigableIndexes())[e.length-1])t=e[e.length-1];else for(var n in e){if(t<e[n]){t=i;break}i=e[n]}return t},i.prototype.cleanUpEvents=function(){var e=this;e.options.dots&&null!==e.$dots&&(t("li",e.$dots).off("click.slick",e.changeSlide).off("mouseenter.slick",t.proxy(e.interrupt,e,!0)).off("mouseleave.slick",t.proxy(e.interrupt,e,!1)),!0===e.options.accessibility&&e.$dots.off("keydown.slick",e.keyHandler)),e.$slider.off("focus.slick blur.slick"),!0===e.options.arrows&&e.slideCount>e.options.slidesToShow&&(e.$prevArrow&&e.$prevArrow.off("click.slick",e.changeSlide),e.$nextArrow&&e.$nextArrow.off("click.slick",e.changeSlide),!0===e.options.accessibility&&(e.$prevArrow&&e.$prevArrow.off("keydown.slick",e.keyHandler),e.$nextArrow&&e.$nextArrow.off("keydown.slick",e.keyHandler))),e.$list.off("touchstart.slick mousedown.slick",e.swipeHandler),e.$list.off("touchmove.slick mousemove.slick",e.swipeHandler),e.$list.off("touchend.slick mouseup.slick",e.swipeHandler),e.$list.off("touchcancel.slick mouseleave.
5slick",e.swipeHandler),e.$list.off("click.slick",e.clickHandler),t(document).off(e.visibilityChange,e.visibility),e.cleanUpSlideEvents(),!0===e.options.accessibility&&e.$list.off("keydown.slick",e.keyHandler),!0===e.options.focusOnSelect&&t(e.$slideTrack).children().off("click.slick",e.selectHandler),t(window).off("orientationchange.slick.slick-"+e.instanceUid,e.orientationChange),t(window).off("resize.slick.slick-"+e.instanceUid,e.resize),t("[draggable!=true]",e.$slideTrack).off("dragstart",e.preventDefault),t(window).off("load.slick.slick-"+e.instanceUid,e.setPosition)},i.prototype.cleanUpSlideEvents=function(){var e=this;e.$list.off("mouseenter.slick",t.proxy(e.interrupt,e,!0)),e.$list.off("mouseleave.slick",t.proxy(e.interrupt,e,!1))},i.prototype.cleanUpRows=function(){var t,e=this;e.options.rows>0&&((t=e.$slides.children().children()).removeAttr("style"),e.$slider.empty().append(t))},i.prototype.clickHandler=function(t){!1===this.shouldClick&&(t.stopImmediatePropagation(),t.stopPropagation(),t.preventDefault())},i.prototype.destroy=function(e){var i=this;i.autoPlayClear(),i.touchObject={},i.cleanUpEvents(),t(".slick-cloned",i.$slider).detach(),i.$dots&&i.$dots.remove(),i.$prevArrow&&i.$prevArrow.length&&(i.$prevArrow.removeClass("slick-disabled slick-arrow slick-hidden").removeAttr("aria-hidden aria-disabled tabindex").css("display",""),i.htmlExpr.test(i.options.prevArrow)&&i.$prevArrow.remove()),i.$nextArrow&&i.$nextArrow.length&&(i.$nextArrow.removeClass("slick-disabled slick-arrow slick-hidden").removeAttr("aria-hidden aria-disabled tabindex").css("display",""),i.htmlExpr.test(i.options.nextArrow)&&i.$nextArrow.remove()),i.$slides&&(i.$slides.removeClass("slick-slide slick-active slick-center slick-visible slick-current").removeAttr("aria-hidden").removeAttr("data-slick-index").each((function(){t(this).attr("style",t(this).data("originalStyling"))})),i.$slideTrack.children(this.options.slide).detach(),i.$slideTrack.detach(),i.$list.detach(),i.$slider.append(i.$slides)),i.cleanUpRows(),i.$slider.removeClass("slick-slider"),i.$slider.removeClass("slick-initialized"),i.$slider.removeClass("slick-dotted"),i.unslicked=!0,e||i.$slider.trigger("destroy",[i])},i.prototype.disableTransition=function(t){var e=this,i={};i[e.transitionType]="",!1===e.options.fade?e.$slideTrack.css(i):e.$slides.eq(t).css(i)},i.prototype.fadeSlide=function(t,e){var i=this;!1===i.cssTransitions?(i.$slides.eq(t).css({zIndex:i.options.zIndex}),i.$slides.eq(t).animate({opacity:1},i.options.speed,i.options.easing,e)):(i.applyTransition(t),i.$slides.eq(t).css({opacity:1,zIndex:i.options.zIndex}),e&&setTimeout((function(){i.disableTransition(t),e.call()}),i.options.speed))},i.prototype.fadeSlideOut=function(t){var e=this;!1===e.cssTransitions?e.$slides.eq(t).animate({opacity:0,zIndex:e.options.zIndex-2},e.options.speed,e.options.easing):(e.applyTransition(t),e.$slides.eq(t).css({opacity:0,zIndex:e.options.zIndex-2}))},i.prototype.filterSlides=i.prototype.slickFilter=function(t){var e=this;null!==t&&(e.$slidesCache=e.$slides,e.unload(),e.$slideTrack.children(this.options.slide).detach(),e.$slidesCache.filter(t).appendTo(e.$slideTrack),e.reinit())},i.prototype.focusHandler=function(){var e=this;e.$slider.off("focus.slick blur.slick").on("focus.slick","*",(function(i){var n=t(this);setTimeout((function(){e.options.pauseOnFocus&&n.is(":focus")&&(e.focussed=!0,e.autoPlay())}),0)})).on("blur.slick","*",(function(i){t(this);e.options.pauseOnFocus&&(e.focussed=!1,e.autoPlay())}))},i.prototype.getCurrent=i.prototype.slickCurrentSlide=function(){return this.currentSlide},i.prototype.getDotCount=function(){var t=this,e=0,i=0,n=0;if(!0===t.options.infinite)if(t.slideCount<=t.options.slidesToShow)++n;else for(;e<t.slideCount;)++n,e=i+t.options.slidesToScroll,i+=t.options.slidesToScroll<=t.options.slidesToShow?t.options.slidesToScroll:t.options.slidesToShow;else if(!0===t.options.centerMode)n=t.slideCount;else if(t.options.asNavFor)for(;e<t.slideCount;)++n,e=i+t.options.slidesToScroll,i+=t.options.slidesToScroll<=t.options.slidesToShow?t.options.slidesToScroll:t.options.slidesToShow;else n=1+Math.ceil((t.slideCount-t.options.slidesToShow)/t.options.slidesToScroll);return n-1},i.prototype.getLeft=function(t){var e,i,n,o,s=this,r=0;return s.slideOffset=0,i=s.$slides.first().outerHeight(!0),!0===s.options.infinite?(s.slideCount>s.options.slidesToShow&&(s.slideOffset=s.slideWidth*s.options.slidesToShow*-1,o=-1,!0===s.options.vertical&&!0===s.options.centerMode&&(2===s.options.slidesToShow?o=-1.5:1===s.options.slidesToShow&&(o=-2)),r=i*s.options.slidesToShow*o),s.slideCount%s.options.slidesToScroll!=0&&t+s.options.slidesToScroll>s.slideCount&&s.slideCount>s.options.slidesToShow&&(t>s.slideCount?(s.slideOffset=(s.options.slidesToShow-(t-s.slideCount))*s.slideWidth*-1,r=(s.options.slidesToShow-(t-s.slideCount))*i*-1):(s.slideOffset=s.slideCount%s.options.slidesToScroll*s.slideWidth*-1,r=s.slideCount%s.options.slidesToScroll*i*-1))):t+s.options.slidesToShow>s.slideCount&&(s.slideOffset=(t+s.options.slidesToShow-s.slideCount)*s.slideWidth,r=(t+s.options.slidesToShow-s.slideCount)*i),s.slideCount<=s.options.slidesToShow&&(s.slideOffset=0,r=0),!0===s.options.centerMode&&s.slideCount<=s.options.slidesToShow?s.slideOffset=s.slideWidth*Math.floor(s.options.slidesToShow)/2-s.slideWidth*s.slideCount/2:!0===s.options.centerMode&&!0===s.options.infinite?s.slideOffset+=s.slideWidth*Math.floor(s.options.slidesToShow/2)-s.slideWidth:!0===s.options.centerMode&&(s.slideOffset=0,s.slideOffset+=s.slideWidth*Math.floor(s.options.slidesToShow/2)),e=!1===s.options.vertical?t*s.slideWidth*-1+s.slideOffset:t*i*-1+r, 6!0===s.options.variableWidth&&(n=s.slideCount<=s.options.slidesToShow||!1===s.options.infinite?s.$slideTrack.children(".slick-slide").eq(t):s.$slideTrack.children(".slick-slide").eq(t+s.options.slidesToShow),e=!0===s.options.rtl?n[0]?-1*(s.$slideTrack.width()-n[0].offsetLeft-n.width()):0:n[0]?-1*n[0].offsetLeft:0,!0===s.options.centerMode&&(n=s.slideCount<=s.options.slidesToShow||!1===s.options.infinite?s.$slideTrack.children(".slick-slide").eq(t):s.$slideTrack.children(".slick-slide").eq(t+s.options.slidesToShow+1),e=!0===s.options.rtl?n[0]?-1*(s.$slideTrack.width()-n[0].offsetLeft-n.width()):0:n[0]?-1*n[0].offsetLeft:0,e+=(s.$list.width()-n.outerWidth())/2)),e},i.prototype.getOption=i.prototype.slickGetOption=function(t){return this.options[t]},i.prototype.getNavigableIndexes=function(){var t,e=this,i=0,n=0,o=[];for(!1===e.options.infinite?t=e.slideCount:(i=-1*e.options.slidesToScroll,n=-1*e.options.slidesToScroll,t=2*e.slideCount);i<t;)o.push(i),i=n+e.options.slidesToScroll,n+=e.options.slidesToScroll<=e.options.slidesToShow?e.options.slidesToScroll:e.options.slidesToShow;return o},i.prototype.getSlick=function(){return this},i.prototype.getSlideCount=function(){var e,i,n,o=this;return n=!0===o.options.centerMode?Math.floor(o.$list.width()/2):0,i=-1*o.swipeLeft+n,!0===o.options.swipeToSlide?(o.$slideTrack.find(".slick-slide").each((function(n,s){var r,a;if(r=t(s).outerWidth(),a=s.offsetLeft,!0!==o.options.centerMode&&(a+=r/2),i<a+r)return e=s,!1})),Math.abs(t(e).attr("data-slick-index")-o.currentSlide)||1):o.options.slidesToScroll},i.prototype.goTo=i.prototype.slickGoTo=function(t,e){this.changeSlide({data:{message:"index",index:
6parseInt(t)}},e)},i.prototype.init=function(e){var i=this;t(i.$slider).hasClass("slick-initialized")||(t(i.$slider).addClass("slick-initialized"),i.buildRows(),i.buildOut(),i.setProps(),i.startLoad(),i.loadSlider(),i.initializeEvents(),i.updateArrows(),i.updateDots(),i.checkResponsive(!0),i.focusHandler()),e&&i.$slider.trigger("init",[i]),!0===i.options.accessibility&&i.initADA(),i.options.autoplay&&(i.paused=!1,i.autoPlay())},i.prototype.initADA=function(){var e=this,i=Math.ceil(e.slideCount/e.options.slidesToScroll),n=e.getNavigableIndexes().filter((function(t){return t>=0&&t<e.slideCount}));e.$slides.add(e.$slideTrack.find(".slick-cloned")).attr({"aria-hidden":"true",tabindex:"-1"}).find("a, input, button, select").attr({tabindex:"-1"}),null!==e.$dots&&(e.$slides.not(e.$slideTrack.find(".slick-cloned")).each((function(i){var o=n.indexOf(i);if(t(this).attr({role:"tabpanel",id:"slick-slide"+e.instanceUid+i,tabindex:-1}),-1!==o){var s="slick-slide-control"+e.instanceUid+o;t("#"+s).length&&t(this).attr({"aria-describedby":s})}})),e.$dots.attr("role","tablist").find("li").each((function(o){var s=n[o];t(this).attr({role:"presentation"}),t(this).find("button").first().attr({role:"tab",id:"slick-slide-control"+e.instanceUid+o,"aria-controls":"slick-slide"+e.instanceUid+s,"aria-label":o+1+" / "+i,"aria-selected":null,tabindex:"-1"})})).eq(e.currentSlide).find("button").attr({"aria-selected":"true",tabindex:"0"}).end());for(var o=e.currentSlide,s=o+e.options.slidesToShow;o<s;o++)e.options.focusOnChange?e.$slides.eq(o).attr({tabindex:"0"}):e.$slides.eq(o).removeAttr("tabindex");e.activateADA()},i.prototype.initArrowEvents=function(){var t=this;!0===t.options.arrows&&t.slideCount>t.options.slidesToShow&&(t.$prevArrow.off("click.slick").on("click.slick",{message:"previous"},t.changeSlide),t.$nextArrow.off("click.slick").on("click.slick",{message:"next"},t.changeSlide),!0===t.options.accessibility&&(t.$prevArrow.on("keydown.slick",t.keyHandler),t.$nextArrow.on("keydown.slick",t.keyHandler)))},i.prototype.initDotEvents=function(){var e=this;!0===e.options.dots&&e.slideCount>e.options.slidesToShow&&(t("li",e.$dots).on("click.slick",{message:"index"},e.changeSlide),!0===e.options.accessibility&&e.$dots.on("keydown.slick",e.keyHandler)),!0===e.options.dots&&!0===e.options.pauseOnDotsHover&&e.slideCount>e.options.slidesToShow&&t("li",e.$dots).on("mouseenter.slick",t.proxy(e.interrupt,e,!0)).on("mouseleave.slick",t.proxy(e.interrupt,e,!1))},i.prototype.initSlideEvents=function(){var e=this;e.options.pauseOnHover&&(e.$list.on("mouseenter.slick",t.proxy(e.interrupt,e,!0)),e.$list.on("mouseleave.slick",t.proxy(e.interrupt,e,!1)))},i.prototype.initializeEvents=function(){var e=this;e.initArrowEvents(),e.initDotEvents(),e.initSlideEvents(),e.$list.on("touchstart.slick mousedown.slick",{action:"start"},e.swipeHandler),e.$list.on("touchmove.slick mousemove.slick",{action:"move"},e.swipeHandler),e.$list.on("touchend.slick mouseup.slick",{action:"end"}
6,e.swipeHandler),e.$list.on("touchcancel.slick mouseleave.slick",{action:"end"},e.swipeHandler),e.$list.on("click.slick",e.clickHandler),t(document).on(e.visibilityChange,t.proxy(e.visibility,e)),!0===e.options.accessibility&&e.$list.on("keydown.slick",e.keyHandler),!0===e.options.focusOnSelect&&t(e.$slideTrack).children().on("click.slick",e.selectHandler),t(window).on("orientationchange.slick.slick-"+e.instanceUid,t.proxy(e.orientationChange,e)),t(window).on("resize.slick.slick-"+e.instanceUid,t.proxy(e.resize,e)),t("[draggable!=true]",e.$slideTrack).on("dragstart",e.preventDefault),t(window).on("load.slick.slick-"+e.instanceUid,e.setPosition),t(e.setPosition)},i.prototype.initUI=function(){var t=this;!0===t.options.arrows&&t.slideCount>t.options.slidesToShow&&(t.$prevArrow.show(),t.$nextArrow.show()),!0===t.options.dots&&t.slideCount>t.options.slidesToShow&&t.$dots.show()},i.prototype.keyHandler=function(t){var e=this;t.target.tagName.match("TEXTAREA|INPUT|SELECT")||(37===t.keyCode&&!0===e.options.accessibility?e.changeSlide({data:{message:!0===e.options.rtl?"next":"previous"}}):39===t.keyCode&&!0===e.options.accessibility&&e.changeSlide({data:{message:!0===e.options.rtl?"previous":"next"}}))},i.prototype.lazyLoad=function(){var e,i,n,o=this;function s(e){t("img[data-lazy]",e).each((function(){var e=t(this),i=t(this).attr("data-lazy"),n=t(this).attr("data-srcset"),s=t(this).attr("data-sizes")||o.$slider.attr("data-sizes"),r=document.createElement("img");r.onload=function(){e.animate({opacity:0}
6,100,(function(){n&&(e.attr("srcset",n),s&&e.attr("sizes",s)),e.attr("src",i).animate({opacity:1},200,(function(){e.removeAttr("data-lazy data-srcset data-sizes").removeClass("slick-loading")})),o.$slider.trigger("lazyLoaded",[o,e,i])}))},r.onerror=function(){e.removeAttr("data-lazy").removeClass("slick-loading").addClass("slick-lazyload-error"),o.$slider.trigger("lazyLoadError",[o,e,i])},r.src=i}))}if(!0===o.options.centerMode?!0===o.options.infinite?n=(i=o.currentSlide+(o.options.slidesToShow/2+1))+o.options.slidesToShow+2:(i=Math.max(0,o.currentSlide-(o.options.slidesToShow/2+1)),n=o.options.slidesToShow/2+1+2+o.currentSlide):(i=o.options.infinite?o.options.slidesToShow+o.currentSlide:o.currentSlide,n=Math.ceil(i+o.options.slidesToShow),!0===o.options.fade&&(i>0&&i--,n<=o.slideCount&&n++)),e=o.$slider.find(".slick-slide").slice(i,n),"anticipated"===o.options.lazyLoad)for(var r=i-1,a=n,l=o.$slider.find(".slick-slide"),c=0;c<o.options.slidesToScroll;c++)r<0&&(r=o.slideCount-1),e=(e=e.add(l.eq(r))).add(l.eq(a)),r--,a++;s(e),o.slideCount<=o.options.slidesToShow?s(o.$slider.find(".slick-slide")):o.currentSlide>=o.slideCount-o.options.slidesToShow?s(o.$slider.find(".slick-cloned").slice(0,o.options.slidesToShow)):0===o.currentSlide&&s(o.$slider.find(".slick-cloned").slice(-1*o.options.slidesToShow))},i.prototype.loadSlider=function(){var t=this;t.setPosition(),t.$slideTrack.css({opacity:"1"}),t.$slider.removeClass("slick-loading"),t.initUI(),"progressive"===t.options.lazyLoad&&t.progressiveLazyLoad()},i.prototype.next=i.prototype.slickNext=function(){this.changeSlide({data:{message:"next"}})},i.prototype.orientationChange=function(){this.checkResponsive(),this.setPosition()},i.prototype.pause=i.prototype.slickPause=function(){this.autoPlayClear(),this.paused=!0},i.prototype.play=i.prototype.slickPlay=function(){var t=this;t.autoPlay(),t.options.autoplay=!0,t.paused=!1,t.focussed=!1,t.interrupted=!1},i.prototype.postSlide=function(e){var i=this;!i.unslicked&&(i.$slider.trigger("afterChange",[i,e]),i.animating=!1,i.slideCount>i.options.slidesToShow&&i.setPosition(),i.swipeLeft=null,i.options.autoplay&&i.autoPlay(),!0===i.options.accessibility&&(i.initADA(),i.options.focusOnChange))&&t(i.$slides.get(i.currentSlide)).attr("tabindex",0).trigger("focus")},i.prototype.prev=i.prototype.slickPrev=function(){this.changeSlide({data:{message:"previous"}})},i.prototype.preventDefault=function(t){t.preventDefault()},i.prototype.progressiveLazyLoad=function(e){e=e||1;var i,n,o,s,r,a=this,l=t("img[data-lazy]",a.$slider);l.length?(i=l.first(),n=i.attr("data-lazy"),o=i.attr("data-srcset"),s=i.attr("data-sizes")||a.$slider.attr("data-sizes"),(r=document.createElement("img")).onload=function(){o&&(i.attr("srcset",o),s&&i.attr("sizes",s)),i.attr("src",n).removeAttr("data-lazy data-srcset data-sizes").removeClass("slick-loading"),!0===a.options.adaptiveHeight&&a.setPosition(),a.$slider.trigger("lazyLoaded",[a,i,n]),a.progressiveLazyLoad()},r.onerror=function(){e<3?setTimeout((function(){a.progressiveLazyLoad(e+1)}),500):(i.removeAttr("data-lazy").removeClass("slick-loading").addClass("slick-lazyload-error"),a.$slider.trigger("lazyLoadError",[a,i,n]),a.progressiveLazyLoad())},r.src=n):a.$slider.trigger("allImagesLoaded",[a])},i.prototype.refresh=function(e){var i,n,o=this;n=o.slideCount-o.options.slidesToShow,!o.options.infinite&&o.currentSlide>n&&(o.currentSlide=n),o.slideCount<=o.options.slidesToShow&&(o.currentSlide=0),i=o.currentSlide,o.destroy(!0),t.extend(o,o.initials,{currentSlide:i}),o.init(),e||o.changeSlide({data:{message:"index",index:i}},!1)},i.prototype.registerBreakpoints=function(){var t,e,i,n=this,o=n.options.responsive||null;if(Array.isArray(o)&&o.length){for(t in n.respondTo=n.options.respondTo||"window",o)if(i=n.breakpoints.length-1,o.hasOwnProperty(t)){for(e=o[t].breakpoint;i>=0;)n.breakpoints[i]&&n.breakpoints[i]===e&&n.breakpoints.splice(i,1),i--;n.breakpoints.push(e),n.breakpointSettings[e]=o[t].settings}n.breakpoints.sort((function(t,e){return n.options.mobileFirst?t-e:e-t}))}},i.prototype.reinit=function(){var e=this;e.$slides=e.$slideTrack.children(e.options.slide).addClass("slick-slide"),e.slideCount=e.$slides.length,e.currentSlide>=e.slideCount&&0!==e.currentSlide&&(e.currentSlide=e.currentSlide-e.options.slidesToScroll),e.slideCount<=e.options.slidesToShow&&(e.currentSlide=0),e.registerBreakpoints(),e.setProps(),e.setupInfinite(),e.buildArrows(),e.updateArrows(),e.initArrowEvents(),e.buildDots(),e.updateDots(),e.initDotEvents(),e.cleanUpSlideEvents(),e.initSlideEvents(),e.checkResponsive(!1,!0),!0===e.options.focusOnSelect&&t(e.$slideTrack).children().on("click.slick",e.selectHandler),e.setSlideClasses("number"==typeof e.currentSlide?e.currentSlide:0),e.setPosition(),e.focusHandler(),e.paused=!e.options.autoplay,e.autoPlay(),e.$slider.trigger("reInit",[e])},i.prototype.resize=function(){var e=this;t(window).width()!==e.windowWidth&&(clearTimeout(e.windowDelay),e.windowDelay=window.setTimeout((function(){e.windowWidth=t(window).width(),e.checkResponsive(),e.unslicked||e.setPosition()}),50))}
6,i.prototype.removeSlide=i.prototype.slickRemove=function(t,e,i){var n=this;if("boolean"==typeof t?t=!0===(e=t)?0:n.slideCount-1:t=!0===e?--t:t,n.slideCount<1||t<0||t>n.slideCount-1)return!1;n.unload(),!0===i?n.$slideTrack.children().remove():n.$slideTrack.children(this.options.slide).eq(t).remove(),n.$slides=n.$slideTrack.children(this.options.slide),n.$slideTrack.children(this.options.slide).detach(),n.$slideTrack.append(n.$slides),n.$slidesCache=n.$slides,n.reinit()},i.prototype.setCSS=function(t){var e,i,n=this,o={};!0===n.options.rtl&&(t=-t),e="left"==n.positionProp?Math.ceil(t)+"px":"0",i="top"==n.positionProp?Math.ceil(t)+"px":"0",o[n.positionProp]=t,!1===n.transformsEnabled?n.$slideTrack.css(o):(o={},!1===n.cssTransitions?(o[n.animType]="translate("+e+", "+i+")",n.$slideTrack.css(o)):(o[n.animType]="translate3d("+e+", "+i+", 0)",n.$slideTrack.css(o)))},i.prototype.setDimensions=function(){var t=this;!1===t.options.vertical?!0===t.options.centerMode&&t.$list.css({padding:"0px "+t.options.centerPadding}):(t.$list.height(t.$slides.first().outerHeight(!0)*t.options.slidesToShow),!0===t.options.centerMode&&t.$list.css({padding:t.options.centerPadding+" 0px"})),t.listWidth=t.$list.width(),t.listHeight=t.$list.height(),!1===t.options.vertical&&!1===t.options.variableWidth?(t.slideWidth=Math.ceil(t.listWidth/t.options.slidesToShow),t.$slideTrack.width(Math.ceil(t.slideWidth*t.$slideTrack.children(".slick-slide").length))):!0===t.options.variableWidth?t.$slideTrack.width(5e3*t.slideCount):(t.slideWidth=Math.ceil(t.listWidth),t.$slideTrack.height(Math.ceil(t.$slides.first().outerHeight(!0)*t.$slideTrack.children(".slick-slide").length)));var e=t.$slides.first().outerWidth(!0)-t.$slides.first().width();!1===t.options.variableWidth&&t.$slideTrack.children(".slick-slide").width(t.slideWidth-e)},i.prototype.setFade=function(){var e,i=this;i.$slides.each((function(n,o){e=i.slideWidth*n*-1,!0===i.options.rtl?t(o).css({position:"relative",right:e,top:"0",zIndex:i.options.zIndex-2,opacity:"0"}):t(o).css({position:"relative",left:e,top:"0",zIndex:i.options.zIndex-2,opacity:"0"})})),i.$slides.eq(i.currentSlide).css({zIndex:i.options.zIndex-1,opacity:"1"})},i.prototype.setHeight=function(){var t=this;if(1===t.options.slidesToShow&&!0===t.options.adaptiveHeight&&!1===t.options.vertical){var e=t.$slides.eq(t.currentSlide).outerHeight(!0);t.$list.css("height",e+"px")}},i.prototype.setOption=i.prototype.slickSetOption=function(){var e,i,n,o,s,r=this,a=!1;if(t.isPlainObject(arguments[0])?(n=arguments[0],a=arguments[1],s="multiple"):"string"==typeof arguments[0]&&(n=arguments[0],o=arguments[1],a=arguments[2],"responsive"===arguments[0]&&Array.isArray(arguments[1])?s="responsive":typeof arguments[1]<"u"&&(s="single")),"single"===s)r.options[n]=o;else if("multiple"===s)t.each(n,(function(t,e){r.options[t]=e}));else if("responsive"===s)for(i in o)if(Array.isArray(r.options.responsive)){for(e=r.options.responsive.length-1;e>=0;)r.options.responsive[e].breakpoint===o[i].breakpoint&&r.options.responsive.splice(e,1),e--;r.options.responsive.push(o[i])}else r.options.responsive=[o[i]];a&&(r.unload(),r.reinit())},i.prototype.setPosition=function(){var t=this;t.setDimensions(),t.setHeight(),!1===t.options.fade?t.setCSS(t.getLeft(t.currentSlide)):t.setFade(),t.$slider.trigger("setPosition",[t])},i.prototype.setProps=function(){var t=this,e=document.body.style;t.positionProp=!0===t.options.vertical?"top":"left","top"===t.positionProp?t.$slider.addClass("slick-vertical"):t.$slider.removeClass("slick-vertical"),(void 0!==e.WebkitTransition||void 0!==e.MozTransition||void 0!==e.msTransition)&&!0===t.options.useCSS&&(t.cssTransitions=!0),t.options.fade&&("number"==typeof t.options.zIndex?t.options.zIndex<3&&(t.options.zIndex=3):t.options.zIndex=t.defaults.zIndex),void 0!==e.OTransform&&(t.animType="OTransform",t.transformType="-o-transform",t.transitionType="OTransition",void 0===e.perspectiveProperty&&void 0===e.webkitPerspective&&(t.animType=!1)),void 0!==e.MozTransform&&(t.animType="MozTransform",t.transformType="-moz-transform",t.transitionType="MozTransition",void 0===e.perspectiveProperty&&void 0===e.MozPerspective&&(t.animType=!1)),void 0!==e.webkitTransform&&(t.animType="webkitTransform",t.transformType="-webkit-transform",t.transitionType="webkitTransition",void 0===e.perspectiveProperty&&void 0===e.webkitPerspective&&(t.animType=!1)),void 0!==e.msTransform&&(t.animType="msTransform",t.transformType="-ms-transform",t.transitionType="msTransition",void 0===e.msTransform&&(t.animType=!1)),void 0!==e.transform&&!1!==t.animType&&(t.animType="transform",t.transformType="transform",t.transitionType="transition"),t.transformsEnabled=t.options.useTransform&&null!==t.animType&&!1!==t.animType},i.prototype.setSlideClasses=function(t){var e,i,n,o,s,r=this;(i=r.$slider.find(".slick-slide").removeClass("slick-active slick-center slick-current").attr("aria-hidden","true"),r.$slides.eq(t).addClass("slick-current"),!0===r.options.centerMode)?(r.options.slidesToShow>=r.$slides.length?(s=-1,e=r.options.slidesToShow=r.$slides.length):(s=r.options.slidesToShow%2==0?1:0,e=Math.floor(r.options.slidesToShow/2)),!0===r.options.infinite&&(t>=e&&t<=r.slideCount-1-e?r.$slides.slice(t-e+s,t+e+1).addClass("slick-active").attr("aria-hidden","false"):(n=r.options.slidesToShow+t,i.slice(n-e+1+s,n+e+2).addClass("slick-active").attr("aria-hidden","false")),0===t?i.eq(r.options.slidesToShow+r.slideCount+1).addClass("slick-center"):t===r.slideCount-1&&i.eq(r.options.slidesToShow).addClass("slick-center")),r.$slides.eq(t).addClass("slick-center")):t>=0&&t<=r.slideCount-r.options.slidesToShow?r.$slides.slice(t,t+r.options.slidesToShow).addClass("slick-active").attr("aria-hidden","false"):i.length<=r.options.slidesToShow?i.addClass("slick-active").attr("aria-hidden","false"):(o=r.slideCount%r.options.slidesToShow,n=!0===r.options.infinite?r.options.slidesToShow+t:t,r.options.slidesToShow==r.options.slidesToScroll&&r.slideCount-t<r.options.slidesToShow?i.slice(n-(r.options.slidesToShow-o),n+o).addClass("slick-active").attr("aria-hidden","false"):i.slice(n,n+r.options.slidesToShow).addClass("slick-active").attr("aria-hidden","false"));("ondemand"===r.options.lazyLoad||"anticipated"===r.options.lazyLoad)&&r.lazyLoad()},i.prototype.setupInfinite=function(){var e,i,n,o=this;if(!0===o.options.fade&&(o.options.centerMode=!1),!0===o.options.infinite&&!1===o.options.fade&&(i=null,o.slideCount>o.options.slidesToShow)){for(n=!0===o.options.centerMode?o.options.slidesToShow+1:o.options.slidesToShow,e=o.slideCount;e>o.slideCount-n;e-=1)i=e-1,t(o.$slides[i]).clone(!0).removeAttr("id").attr("data-slick-index",i-o.slideCount).prependTo(o.$slideTrack).addClass("slick-cloned");for(e=0;e<n+o.slideCount;e+=1)i=e,t(o.$slides[i]).clone(!0).removeAttr("id").attr("data-slick-index",i+o.slideCount).appendTo(o.$slideTrack).addClass("slick-cloned");o.$slideTrack.find(".slick-cloned").find("[id]").each((function(){t(this).removeAttr("id")}))}},i.prototype.interrupt=function(t){t||this.autoPlay(),this.interrupted=t},i.prototype.selectHandler=function(e){var i=this,n=t(e.target).is(".slick-slide")?t(e.target):t(e.target).parents(".slick-slide"),o=parseInt(n.attr("data-slick-index"));o||(o=0),i.slideCount<=i.options.slidesToShow?i.slideHandler(o,!1,!0):i.slideHandler(o)}
6,i.prototype.slideHandler=function(t,e,i){var n,o,s,r,a,l=null,c=this;if(e=e||!1,!(!0===c.animating&&!0===c.options.waitForAnimate||!0===c.options.fade&&c.currentSlide===t)){if(!1===e&&c.asNavFor(t),n=t,l=c.getLeft(n),r=c.getLeft(c.currentSlide),c.currentLeft=null===c.swipeLeft?r:c.swipeLeft,!1===c.options.infinite&&!1===c.options.centerMode&&(t<0||t>c.getDotCount()*c.options.slidesToScroll))return void(!1===c.options.fade&&(n=c.currentSlide,!0!==i&&c.slideCount>c.options.slidesToShow?c.animateSlide(r,(function(){c.postSlide(n)})):c.postSlide(n)));if(!1===c.options.infinite&&!0===c.options.centerMode&&(t<0||t>c.slideCount-c.options.slidesToScroll))return void(!1===c.options.fade&&(n=c.currentSlide,!0!==i&&c.slideCount>c.options.slidesToShow?c.animateSlide(r,(function(){c.postSlide(n)})):c.postSlide(n)));if(c.options.autoplay&&clearInterval(c.autoPlayTimer),o=n<0?c.slideCount%c.options.slidesToScroll!=0?c.slideCount-c.slideCount%c.options.slidesToScroll:c.slideCount+n:n>=c.slideCount?c.slideCount%c.options.slidesToScroll!=0?0:n-c.slideCount:n,c.animating=!0,c.$slider.trigger("beforeChange",[c,c.currentSlide,o]),s=c.currentSlide,c.currentSlide=o,c.setSlideClasses(c.currentSlide),c.options.asNavFor&&((a=(a=c.getNavTarget()).slick("getSlick")).slideCount<=a.options.slidesToShow&&a.setSlideClasses(c.currentSlide)),c.updateDots(),c.updateArrows(),!0===c.options.fade)return!0!==i?(c.fadeSlideOut(s),c.fadeSlide(o,(function(){c.postSlide(o)}))):c.postSlide(o),void c.animateHeight();!0!==i&&c.slideCount>c.options.slidesToShow?c.animateSlide(l,(function(){c.postSlide(o)})):c.postSlide(o)}},i.prototype.startLoad=function(){var t=this;!0===t.options.arrows&&t.slideCount>t.options.slidesToShow&&(t.$prevArrow.hide(),t.$nextArrow.hide()),!0===t.options.dots&&t.slideCount>t.options.slidesToShow&&t.$dots.hide(),t.$slider.addClass("slick-loading")},i.prototype.swipeDirection=function(){var t,e,i,n,o=this;return t=o.touchObject.startX-o.touchObject.curX,e=o.touchObject.startY-o.touchObject.curY,i=Math.atan2(e,t),(n=Math.round(180*i/Math.PI))<0&&(n=360-Math.abs(n)),n<=45&&n>=0||n<=360&&n>=315?!1===o.options.rtl?"left":"right":n>=135&&n<=225?!1===o.options.rtl?"right":"left":!0===o.options.verticalSwiping?n>=35&&n<=135?"down":"up":"vertical"},i.prototype.swipeEnd=function(t){var e,i,n=this;if(n.dragging=!1,n.swiping=!1,n.scrolling)return n.scrolling=!1,!1;if(n.interrupted=!1,n.shouldClick=!(n.touchObject.swipeLength>10),void 0===n.touchObject.curX)return!1;if(!0===n.touchObject.edgeHit&&n.$slider.trigger("edge",[n,n.swipeDirection()]),n.touchObject.swipeLength>=n.touchObject.minSwipe){switch(i=n.swipeDirection()){case"left":case"down":e=n.options.swipeToSlide?n.checkNavigable(n.currentSlide+n.getSlideCount()):n.currentSlide+n.getSlideCount(),n.currentDirection=0;break;case"right":case"up":e=n.options.swipeToSlide?n.checkNavigable(n.currentSlide-n.getSlideCount()):n.currentSlide-n.getSlideCount(),n.currentDirection=1}"vertical"!=i&&(n.slideHandler(e),n.touchObject={},n.$slider.trigger("swipe",[n,i]))}else n.touchObject.startX!==n.touchObject.curX&&(n.slideHandler(n.currentSlide),n.touchObject={})},i.prototype.swipeHandler=function(t){var e=this;if(!(!1===e.options.swipe||"ontouchend"in document&&!1===e.options.swipe||!1===e.options.draggable&&-1!==t.type.indexOf("mouse")))switch(e.touchObject.fingerCount=t.originalEvent&&void 0!==t.originalEvent.touches?t.originalEvent.touches.length:1,e.touchObject.minSwipe=e.listWidth/e.options.touchThreshold,!0===e.options.verticalSwiping&&(e.touchObject.minSwipe=e.listHeight/e.options.touchThreshold),t.data.action){case"start":e.swipeStart(t);break;case"move":e.swipeMove(t);break;case"end":e.swipeEnd(t)}},i.prototype.swipeMove=function(t){var e,i,n,o,s,r,a=this;return s=void 0!==t.originalEvent?t.originalEvent.touches:null,!(!a.dragging||a.scrolling||s&&1!==s.length)&&(e=a.getLeft(a.currentSlide),a.touchObject.curX=void 0!==s?s[0].pageX:t.clientX,a.touchObject.curY=void 0!==s?s[0].pageY:t.clientY,a.touchObject.swipeLength=Math.round(Math.sqrt(Math.pow(a.touchObject.curX-a.touchObject.startX,2))),r=Math.round(Math.sqrt(Math.pow(a.touchObject.curY-a.touchObject.startY,2))),!a.options.verticalSwiping&&!a.swiping&&r>4?(a.scrolling=!0,!1):(!0===a.options.verticalSwiping&&(a.touchObject.swipeLength=r),i=a.swipeDirection(),void 0!==t.originalEvent&&a.touchObject.swipeLength>4&&(a.swiping=!0,t.preventDefault()),o=(!1===a.options.rtl?1:-1)*(a.touchObject.curX>a.touchObject.startX?1:-1),!0===a.options.verticalSwiping&&(o=a.touchObject.curY>a.touchObject.startY?1:-1),n=a.touchObject.swipeLength,a.touchObject.edgeHit=!1,!1===a.options.infinite&&(0===a.currentSlide&&"right"===i||a.currentSlide>=a.getDotCount()&&"left"===i)&&(n=a.touchObject.swipeLength*a.options.edgeFriction,a.touchObject.edgeHit=!0),!1===a.options.vertical?a.swipeLeft=e+n*o:a.swipeLeft=e+n*(a.$list.height()/a.listWidth)*o,!0===a.options.verticalSwiping&&(a.swipeLeft=e+n*o),!0!==a.options.fade&&!1!==a.options.touchMove&&(!0===a.animating?(a.swipeLeft=null,!1):void a.setCSS(a.swipeLeft))))},i.prototype.swipeStart=function(t){var e,i=this;if(i.interrupted=!0,1!==i.touchObject.fingerCount||i.slideCount<=i.options.slidesToShow)return i.touchObject={},!1;void 0!==t.originalEvent&&void 0!==t.originalEvent.touches&&(e=t.originalEvent.touches[0]),i.touchObject.startX=i.touchObject.curX=void 0!==e?e.pageX:t.clientX,i.touchObject.startY=i.touchObject.curY=void 0!==e?e.pageY:t.clientY,i.dragging=!0},i.prototype.unfilterSlides=i.prototype.slickUnfilter=function(){var t=this;null!==t.$slidesCache&&(t.unload(),t.$slideTrack.children(this.options.slide).detach(),t.$slidesCache.appendTo(t.$slideTrack),t.reinit())},i.prototype.unload=function(){var e=this;t(".slick-cloned",e.$slider).remove(),e.$dots&&e.$dots.remove(),e.$prevArrow&&e.htmlExpr.test(e.options.prevArrow)&&e.$prevArrow.remove(),e.$nextArrow&&e.htmlExpr.test(e.options.nextArrow)&&e.$nextArrow.remove(),e.$slides.removeClass("slick-slide slick-active slick-visible slick-current").attr("aria-hidden","true").css("width","")}
6,i.prototype.unslick=function(t){var e=this;e.$slider.trigger("unslick",[e,t]),e.destroy()},i.prototype.updateArrows=function(){var t=this;Math.floor(t.options.slidesToShow/2),!0===t.options.arrows&&t.slideCount>t.options.slidesToShow&&!t.options.infinite&&(t.$prevArrow.removeClass("slick-disabled").attr("aria-disabled","false"),t.$nextArrow.removeClass("slick-disabled").attr("aria-disabled","false"),0===t.currentSlide?(t.$prevArrow.addClass("slick-disabled").attr("aria-disabled","true"),t.$nextArrow.removeClass("slick-disabled").attr("aria-disabled","false")):(t.currentSlide>=t.slideCount-t.options.slidesToShow&&!1===t.options.centerMode||t.currentSlide>=t.slideCount-1&&!0===t.options.centerMode)&&(t.$nextArrow.addClass("slick-disabled").attr("aria-disabled","true"),t.$prevArrow.removeClass("slick-disabled").attr("aria-disabled","false")))},i.prototype.updateDots=function(){var t=this;null!==t.$dots&&(t.$dots.find("li").removeClass("slick-active").end(),t.$dots.find("li").eq(Math.floor(t.currentSlide/t.options.slidesToScroll)).addClass("slick-active"))},i.prototype.visibility=function(){var t=this;t.options.autoplay&&(document[t.hidden]?t.interrupted=!0:t.interrupted=!1)},t.fn.slick=function(){var t,e,n=this,o=arguments[0],s=Array.prototype.slice.call(arguments,1),r=n.length;for(t=0;t<r;t++)if("object"==typeof o||typeof o>"u"?n[t].slick=new i(n[t],o):e=n[t].slick[o].apply(n[t].slick,s),typeof e<"u")return e;return n}})),function(){"use strict";function t(n){if(!n)throw new Error("No options passed to Waypoint constructor");if(!n.element)throw new Error("No element option passed to Waypoint constructor");if(!n.handler)throw new Error("No handler option passed to Waypoint constructor");this.key="waypoint-"+e,this.options=t.Adapter.extend({},t.defaults,n),this.element=this.options.element,this.adapter=new t.Adapter(this.element),this.callback=n.handler,this.axis=this.options.horizontal?"horizontal":"vertical",this.enabled=this.options.enabled,this.triggerPoint=null,this.group=t.Group.findOrCreate({name:this.options.group,axis:this.axis}),this.context=t.Context.findOrCreateByElement(this.options.context),t.offsetAliases[this.options.offset]&&(this.options.offset=t.offsetAliases[this.options.offset]),this.group.add(this),this.context.add(this),i[this.key]=this,e+=1}var e=0,i={};t.prototype.queueTrigger=function(t){this.group.queueTrigger(this,t)},t.prototype.trigger=function(t){this.enabled&&this.callback&&this.callback.apply(this,t)},t.prototype.destroy=function(){this.context.remove(this),this.group.remove(this),delete i[this.key]},t.prototype.disable=function(){return this.enabled=!1,this},t.prototype.enable=function(){return this.context.refresh(),this.enabled=!0,this},t.prototype.next=function(){return this.group.next(this)},t.prototype.previous=function(){return this.group.previous(this)},t.invokeAll=function(t){var e=[];for(var n in i)e.push(i[n]);for(var o=0,s=e.length;s>o;o++)e[o][t]()},t.destroyAll=function(){t.invokeAll("destroy")},t.disableAll=function(){t.invokeAll("disable")},t.enableAll=function(){for(var e in t.Context.refreshAll(),i)i[e].enabled=!0;return this},t.refreshAll=function(){t.Context.refreshAll()},t.viewportHeight=function(){return window.innerHeight||document.documentElement.clientHeight},t.viewportWidth=function(){return document.documentElement.clientWidth},t.adapters=[],t.defaults={context:window,continuous:!0,enabled:!0,group:"default",horizontal:!1,offset:0},t.offsetAliases={"bottom-in-view":function(){return this.context.innerHeight()-this.adapter.outerHeight()},"right-in-view":function(){return this.context.innerWidth()-this.adapter.outerWidth()}},window.Waypoint=t}(),function(){"use strict";function t(t){window.setTimeout(t,1e3/60)}function e(t){this.element=t,this.Adapter=o.Adapter,this.adapter=new this.Adapter(t),this.key="waypoint-context-"+i,this.didScroll=!1,this.didResize=!1,this.oldScroll={x:this.adapter.scrollLeft(),y:this.adapter.scrollTop()},this.waypoints={vertical:{},horizontal:{}},t.waypointContextKey=this.key,n[t.waypointContextKey]=this,i+=1,o.windowContext||(o.windowContext=!0,o.windowContext=new e(window)),this.createThrottledScrollHandler(),this.createThrottledResizeHandler()}var i=0,n={},o=window.Waypoint,s=window.onload;e.prototype.add=function(t){var e=t.options.horizontal?"horizontal":"vertical";this.waypoints[e][t.key]=t,this.refresh()},e.prototype.checkEmpty=function(){var t=this.Adapter.isEmptyObject(this.waypoints.horizontal),e=this.Adapter.isEmptyObject(this.waypoints.vertical),i=this.element==this.element.window;t&&e&&!i&&(this.adapter.off(".waypoints"),delete n[this.key])},e.prototype.createThrottledResizeHandler=function(){function t(){e.handleResize(),e.didResize=!1}var e=this;this.adapter.on("resize.waypoints",(function(){e.didResize||(e.didResize=!0,o.requestAnimationFrame(t))}))},e.prototype.createThrottledScrollHandler=function(){function t(){e.handleScroll(),e.didScroll=!1}var e=this;this.adapter.on("scroll.waypoints",(function(){(!e.didScroll||o.isTouch)&&(e.didScroll=!0,o.requestAnimationFrame(t))}))},e.prototype.handleResize=function(){o.Context.refreshAll()},e.prototype.handleScroll=function(){var t={},e={horizontal:{newScroll:this.adapter.scrollLeft(),oldScroll:this.oldScroll.x,forward:"right",backward:"left"},vertical:{newScroll:this.adapter.scrollTop(),oldScroll:this.oldScroll.y,forward:"down",backward:"up"}};for(var i in e){var n=e[i],o=n.newScroll>n.oldScroll?n.forward:n.backward;for(var s in this.waypoints[i]){var r=this.waypoints[i][s];if(null!==r.triggerPoint){var a=n.oldScroll<r.triggerPoint,l=n.newScroll>=r.triggerPoint;(a&&l||!a&&!l)&&(r.queueTrigger(o),t[r.group.id]=r.group)}}}for(var c in t)t[c].flushTriggers();this.oldScroll={x:e.horizontal.newScroll,y:e.vertical.newScroll}}
6,e.prototype.innerHeight=function(){return this.element==this.element.window?o.viewportHeight():this.adapter.innerHeight()},e.prototype.remove=function(t){delete this.waypoints[t.axis][t.key],this.checkEmpty()},e.prototype.innerWidth=function(){return this.element==this.element.window?o.viewportWidth():this.adapter.innerWidth()},e.prototype.destroy=function(){var t=[];for(var e in this.waypoints)for(var i in this.waypoints[e])t.push(this.waypoints[e][i]);for(var n=0,o=t.length;o>n;n++)t[n].destroy()},e.prototype.refresh=function(){var t,e=this.element==this.element.window,i=e?void 0:this.adapter.offset(),n={};for(var s in this.handleScroll(),t={horizontal:{contextOffset:e?0:i.left,contextScroll:e?0:this.oldScroll.x,contextDimension:this.innerWidth(),oldScroll:this.oldScroll.x,forward:"right",backward:"left",offsetProp:"left"},vertical:{contextOffset:e?0:i.top,contextScroll:e?0:this.oldScroll.y,contextDimension:this.innerHeight(),oldScroll:this.oldScroll.y,forward:"down",backward:"up",offsetProp:"top"}}){var r=t[s];for(var a in this.waypoints[s]){var l,c,d,u,h=this.waypoints[s][a],p=h.options.offset,f=h.triggerPoint,g=0,m=null==f;h.element!==h.element.window&&(g=h.adapter.offset()[r.offsetProp]),"function"==typeof p?p=p.apply(h):"string"==typeof p&&(p=parseFloat(p),h.options.offset.indexOf("%")>-1&&(p=Math.ceil(r.contextDimension*p/100))),l=r.contextScroll-r.contextOffset,h.triggerPoint=Math.floor(g+l-p),c=f<r.oldScroll,d=h.triggerPoint>=r.oldScroll,u=!c&&!d,!m&&(c&&d)?(h.queueTrigger(r.backward),n[h.group.id]=h.group):(!m&&u||m&&r.oldScroll>=h.triggerPoint)&&(h.queueTrigger(r.forward), 7n[h.group.id]=h.group)}}return o.requestAnimationFrame((function(){for(var t in n)n[t].flushTriggers()})),this},e.findOrCreateByElement=function(t){return e.findByElement(t)||new e(t)},e.refreshAll=function(){for(var t in n)n[t].refresh()},e.findByElement=function(t){return n[t.waypointContextKey]},window.onload=function(){s&&s(),e.refreshAll()},o.requestAnimationFrame=function(e){(window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||t).call(window,e)},o.Context=e}(),function(){"use strict";function t(t,e){return t.triggerPoint-e.triggerPoint}function e(t,e){return e.triggerPoint-t.triggerPoint}function i(t){this.name=t.name,this.axis=t.axis,this.id=this.name+"-"+this.axis,this.waypoints=[],this.clearTriggerQueues(),n[this.axis][this.name]=this}var n={vertical:{},horizontal:{}},o=window.Waypoint;i.prototype.add=function(t){this.waypoints.push(t)},i.prototype.clearTriggerQueues=function(){this.triggerQueues={up:[],down:[],left:[],right:[]}},i.prototype.flushTriggers=function(){for(var i in this.triggerQueues){var n=this.triggerQueues[i],o="up"===i||"left"===i;n.sort(o?e:t);for(var s=0,r=n.length;r>s;s+=1){var a=n[s];(a.options.continuous||s===n.length-1)&&a.trigger([i])}}this.clearTriggerQueues()},i.prototype.next=function(e){this.waypoints.sort(t);var i=o.Adapter.inArray(e,this.waypoints);return i===this.waypoints.length-1?null:this.waypoints[i+1]},i.prototype.previous=function(e){this.waypoints.sort(t);var i=o.Adapter.inArray(e,this.waypoints);return i?this.waypoints[i-1]:null},i.prototype.queueTrigger=function(t,e){this.triggerQueues[e].push(t)},i.prototype.remove=function(t){var e=o.Adapter.inArray(t,this.waypoints);e>-1&&this.waypoints.splice(e,1)},i.prototype.first=function(){return this.waypoints[0]},i.prototype.last=function(){return this.waypoints[this.waypoints.length-1]},i.findOrCreate=function(t){return n[t.axis][t.name]||new i(t)},o.Group=i}(),function(){"use strict";function t(t){this.$element=e(t)}var e=window.jQuery,i=window.Waypoint;e.each(["innerHeight","innerWidth","off","offset","on","outerHeight","outerWidth","scrollLeft","scrollTop"],(function(e,i){t.prototype[i]=function(){var t=Array.prototype.slice.call(arguments);return this.$element[i].apply(this.$element,t)}})),e.each(["extend","inArray","isEmptyObject"],(function(i,n){t[n]=e[n]})),i.adapters.push({name:"jquery",Adapter:t}),i.Adapter=t}(),function(){"use strict";function t(t){return function(){var i=[],n=arguments[0];return t.isFunction(arguments[0])&&((n=t.extend({},arguments[1])).handler=arguments[0]),this.each((function(){var o=t.extend({},n,{element:this});"string"==typeof o.context&&(o.context=t(this).closest(o.context)[0]),i.push(new e(o))})),i}}var e=window.Waypoint;window.jQuery&&(window.jQuery.fn.waypoint=t(window.jQuery)),window.Zepto&&(window.Zepto.fn.waypoint=t(window.Zepto))}(),function(t,e){"use strict";"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?module.exports=e():t.Headroom=e()}(this,(function(){"use strict";function t(t){this.callback=t,this.ticking=!1}function e(t){return t&&"undefined"!=typeof window&&(t===window||t.nodeType)}function i(t){if(arguments.length<=0)throw new Error("Missing arguments in extend function");var n,o,s=t||{};for(o=1;o<arguments.length;o++){var r=arguments[o]||{};for(n in r)"object"!=typeof s[n]||e(s[n])?s[n]=s[n]||r[n]:s[n]=i(s[n],r[n])}return s}function n(t,e){e=i(e,n.options),this.lastKnownScrollY=0,this.elem=t,this.tolerance=function(t){return t===Object(t)?t:{down:t,up:t}}(e.tolerance),this.classes=e.classes,this.offset=e.offset,this.scroller=e.scroller,this.initialised=!1,this.onPin=e.onPin,this.onUnpin=e.onUnpin,this.onTop=e.onTop,this.onNotTop=e.onNotTop,this.onBottom=e.onBottom,this.onNotBottom=e.onNotBottom}
7var o={bind:!!function(){}.bind,classList:"classList"in document.documentElement,rAF:!!(window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame)};return window.requestAnimationFrame=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame,t.prototype={constructor:t,update:function(){this.callback&&this.callback(),this.ticking=!1},requestTick:function(){this.ticking||(requestAnimationFrame(this.rafCallback||(this.rafCallback=this.update.bind(this))),this.ticking=!0)},handleEvent:function(){this.requestTick()}},n.prototype={constructor:n,init:function(){if(n.cutsTheMustard)return this.debouncer=new t(this.update.bind(this)),this.elem.classList.add(this.classes.initial),setTimeout(this.attachEvent.bind(this),100),this},destroy:function(){var t=this.classes;for(var e in this.initialised=!1,t)t.hasOwnProperty(e)&&this.elem.classList.remove(t[e]);this.scroller.removeEventListener("scroll",this.debouncer,!1)},attachEvent:function(){this.initialised||(this.lastKnownScrollY=this.getScrollY(),this.initialised=!0,this.scroller.addEventListener("scroll",this.debouncer,!1),this.debouncer.handleEvent())},unpin:function(){var t=this.elem.classList,e=this.classes;!t.contains(e.pinned)&&t.contains(e.unpinned)||(t.add(e.unpinned),t.remove(e.pinned),this.onUnpin&&this.onUnpin.call(this))},pin:function(){var t=this.elem.classList,e=this.classes;t.contains(e.unpinned)&&(t.remove(e.unpinned),t.add(e.pinned),this.onPin&&this.onPin.call(this))},top:function(){var t=this.elem.classList,e=this.classes;t.contains(e.top)||(t.add(e.top),t.remove(e.notTop),this.onTop&&this.onTop.call(this))},notTop:function(){var t=this.elem.classList,e=this.classes;t.contains(e.notTop)||(t.add(e.notTop),t.remove(e.top),this.onNotTop&&this.onNotTop.call(this))},bottom:function(){var t=this.elem.classList,e=this.classes;t.contains(e.bottom)||(t.add(e.bottom),t.remove(e.notBottom),this.onBottom&&this.onBottom.call(this))},notBottom:function(){var t=this.elem.classList,e=this.classes;t.contains(e.notBottom)||(t.add(e.notBottom),t.remove(e.bottom),this.onNotBottom&&this.onNotBottom.call(this))},getScrollY:function(){return void 0!==this.scroller.pageYOffset?this.scroller.pageYOffset:void 0!==this.scroller.scrollTop?this.scroller.scrollTop:(document.documentElement||document.body.parentNode||document.body).scrollTop},getViewportHeight:function(){return window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight},getElementPhysicalHeight:function(t){return Math.max(t.offsetHeight,t.clientHeight)},getScrollerPhysicalHeight:function(){return this.scroller===window||this.scroller===document.body?this.getViewportHeight():this.getElementPhysicalHeight(this.scroller)},getDocumentHeight:function(){var t=document.body,e=document.documentElement;return Math.max(t.scrollHeight,e.scrollHeight,t.offsetHeight,e.offsetHeight,t.clientHeight,e.clientHeight)},getElementHeight:function(t){return Math.max(t.scrollHeight,t.offsetHeight,t.clientHeight)},getScrollerHeight:function(){return this.scroller===window||this.scroller===document.body?this.getDocumentHeight():this.getElementHeight(this.scroller)},isOutOfBounds:function(t){var e=t<0,i=t+this.getScrollerPhysicalHeight()>this.getScrollerHeight();return e||i},toleranceExceeded:function(t,e){return Math.abs(t-this.lastKnownScrollY)>=this.tolerance[e]},shouldUnpin:function(t,e){var i=t>this.lastKnownScrollY,n=t>=this.offset;return i&&n&&e},shouldPin:function(t,e){var i=t<this.lastKnownScrollY,n=t<=this.offset;return i&&e||n},update:function(){var t=this.getScrollY(),e=t>this.lastKnownScrollY?"down":"up",i=this.toleranceExceeded(t,e);this.isOutOfBounds(t)||(t<=this.offset?this.top():this.notTop(),t+this.getViewportHeight()>=this.getScrollerHeight()?this.bottom():this.notBottom(),this.shouldUnpin(t,i)?this.unpin():this.shouldPin(t,i)&&this.pin(),this.lastKnownScrollY=t)}},n.options={tolerance:{up:0,down:0},offset:0,scroller:window,classes:{pinned:"headroom--pinned",unpinned:"headroom--unpinned",top:"headroom--top",notTop:"headroom--not-top",bottom:"headroom--bottom",notBottom:"headroom--not-bottom",initial:"headroom"}},n.cutsTheMustard=void 0!==o&&o.rAF&&o.bind&&o.classList,n})),function($){$&&($.fn.headroom=function(t){return this.each((function(){var e=$
vendor: 9,664 bytes, line 7
7(this),i=e.data("headroom"),n="object"==typeof t&&t;n=$.extend(!0,{},Headroom.options,n),i||((i=new Headroom(this,n)).init(),e.data("headroom",i)),"string"==typeof t&&(i[t](),"destroy"===t&&e.removeData("headroom"))}))},$("[data-headroom]").each((function(){var t=$(this);t.headroom(t.data())})))}(window.Zepto||window.jQuery),function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e((t=t||self).window=t.window||{})}(this,(function(t){"use strict";function e(t,e){t.prototype=Object.create(e.prototype),(t.prototype.constructor=t).__proto__=e}function i(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function n(t){return"string"==typeof t}function o(t){return"function"==typeof t}function s(t){return"number"==typeof t}function r(t){return void 0===t}function a(t){return"object"==typeof t}function l(t){return!1!==t}function c(){return"undefined"!=typeof window}function d(t){return o(t)||n(t)}function u(t){return(Et=Se(t,he))&&Hi}function h(t,e){return console.warn("Invalid property",t,"set to",e,"Missing plugin? gsap.registerPlugin()")}function p(t,e){return!e&&console.warn(t)}function f(t,e){return t&&(he[t]=e)&&Et&&(Et[t]=e)||he}function g(){return 0}function m(t){var e,i,n=t[0];if(a(n)||o(n)||(t=[t]),!(e=(n._gsap||{}).harness)){for(i=Te.length;i--&&!Te[i].targetTest(n););e=Te[i]}for(i=t.length;i--;)t[i]&&(t[i]._gsap||(t[i]._gsap=new Ze(t[i],e)))||t.splice(i,1);return t}function v(t){return t._gsap||m(Ae(t))[0]._gsap}function y(t,e,i){return(i=t[e])&&o(i)?t[e]():r(i)&&t.getAttribute&&t.getAttribute(e)||i}function b(t,e){return(t=t.split(",")).forEach(e)||t}function w(t){return Math.round(1e5*t)/1e5||0}function x(t){return Math.round(1e7*t)/1e7||0}function T(t,e){var i=e.charAt(0),n=parseFloat(e.substr(2));return t=parseFloat(t),"+"===i?t+n:"-"===i?t-n:"*"===i?t*n:t/n}function _(t,e){for(var i=e.length,n=0;t.indexOf(e[n])<0&&++n<i;);return n<i}function S(){var t,e,i=ve.length,n=ve.slice(0);for(ye={},t=ve.length=0;t<i;t++)(e=n[t])&&e._lazy&&(e.render(e._lazy[0],e._lazy[1],!0)._lazy=0)}function C(t){return!!(t._initted||t._startAt||t.add)}function k(t,e,i,n){ve.length&&!xt&&S(),t.render(e,i,n||!!(xt&&e<0&&C(t))),ve.length&&!xt&&S()}function E(t){var e=parseFloat(t);return(e||0===e)&&(t+"").match(de).length<2?e:n(t)?t.trim():t}function P(t){return t}function O(t,e){for(var i in e)i in t||(t[i]=e[i]);return t}function M(t,e){for(var i in e)"__proto__"!==i&&"constructor"!==i&&"prototype"!==i&&(t[i]=a(e[i])?M(t[i]||(t[i]={}),e[i]):e[i]);return t}function A(t,e){var i,n={};for(i in t)i in e||(n[i]=t[i]);return n}function z(t){var e=t.parent||_t,i=t.keyframes?function(t){return function(e,i){for(var n in i)n in e||"duration"===n&&t||"ease"===n||(e[n]=i[n])}}($(t.keyframes)):O;if(l(t.inherit))for(;e;)i(t,e.vars.defaults),e=e.parent||e._dp;return t}function L(t,e,i,n,o){void 0===i&&(i="_first"),void 0===n&&(n="_last");var s,r=t[n];if(o)for(s=e[o];r&&r[o]>s;)r=r._prev;return r?(e._next=r._next,r._next=e):(e._next=t[i],t[i]=e),e._next?e._next._prev=e:t[n]=e,e._prev=r,e.parent=e._dp=t,e}function R(t,e,i,n){void 0===i&&(i="_first"),void 0===n&&(n="_last");var o=e._prev,s=e._next;o?o._next=s:t[i]===e&&(t[i]=s),s?s._prev=o:t[n]===e&&(t[n]=o),e._next=e._prev=e.parent=null}function D(t,e){t.parent&&(!e||t.parent.autoRemoveChildren)&&t.parent.remove&&t.parent.remove(t),t._act=0}function j(t,e){if(t&&(!e||e._end>t._dur||e._start<0))for(var i=t;i;)i._dirty=1,i=i.parent;return t}function I(t,e,i,n){return t._startAt&&(xt?t._startAt.revert(fe):t.vars.immediateRender&&!t.vars.autoRevert||t._startAt.render(e,!0,n))}function F(t){return t._repeat?Ce(t._tTime,t=t.duration()+t._rDelay)*t:0}function H(t,e){return(t-e._start)*e._ts+(0<=e._ts?0:e._dirty?e.totalDuration():e._tDur)}function B(t){return t._end=x(t._start+(t._tDur/Math.abs(t._ts||t._rts||Kt)||0))}function N(t,e){var i=t._dp;return i&&i.smoothChildTiming&&t._ts&&(t._start=x(i._time-(0<t._ts?e/t._ts:((t._dirty?t.totalDuration():t._tDur)-e)/-t._ts)),B(t),i._dirty||j(i,t)),t}function q(t,e){var i;if((e._time||!e._dur&&e._initted||e._start<t._time&&(e._dur||!e.add))&&(i=H(t.rawTime(),e),(!e._dur||Oe(0,e.totalDuration(),i)-e._tTime>Kt)&&e.render(i,!0)),j(t,e)._dp&&t._initted&&t._time>=t._dur&&t._ts){if(t._dur<t.duration())for(i=t;i._dp;)0<=i.rawTime()&&i.totalTime(i._tTime),i=i._dp;t._zTime=-Kt}}function Y(t,e,i,n){return e.parent&&D(e),e._start=x((s(i)?i:i||t!==_t?Pe(t,i,e):t._time)+e._delay),e._end=x(e._start+(e.totalDuration()/Math.abs(e.timeScale())||0)),L(t,e,"_first","_last",t._sort?"_start":0),ke(e)||(t._recent=e),n||q(t,e),t._ts<0&&N(t,t._tTime),t}function W(t,e){return(he.ScrollTrigger||h("scrollTrigger",e))&&he.ScrollTrigger.create(e,t)}function X(t,e,i,n,o){return oi(t,e,o),t._initted?!i&&t._pt&&!xt&&(t._dur&&!1!==t.vars.lazy||!t._dur&&t.vars.lazy)&&Ot!==Fe.frame?(ve.push(t),t._lazy=[o,n],1):void 0:1}function U(t,e,i,n){var o=t._repeat,s=x(e)||0,r=t._tTime/t._tDur;return r&&!n&&(t._time*=s/t._dur),t._dur=s,t._tDur=o?o<0?1e10:x(s*(o+1)+t._rDelay*o):s,0<r&&!n&&N(t,t._tTime=t._tDur*r),t.parent&&B(t),i||j(t.parent,t),t}function V(t){return t instanceof Qe?j(t):U(t,t._dur)}function Z(t,e,i){var n,o,r=s(e[1]),a=(r?2:1)+(t<2?0:1),c=e[a];if(r&&(c.duration=e[1]),c.parent=i,t){for(n=c,o=i;o&&!("immediateRender"in n);)n=o.vars.defaults||{},o=l(o.vars.inherit)&&o.parent;c.immediateRender=l(n.immediateRender),t<2?c.runBackwards=1:c.startAt=e[a-1]}return new li(e[0],c,e[1+a])}function G(t,e){return t||0===t?e(t):e}function K(t,e){return n(t)&&(e=ue.exec(t))?e[1]:""}function Q(t,e){return t&&a(t)&&"length"in t&&(!e&&!t.length||t.length-1 in t&&a(t[0]))&&!t.nodeType&&t!==St}function J(t){return t=Ae(t)[0]||p("Invalid scope")||{},function(e){var i=t.current||t.nativeElement||t;return Ae(e,i.querySelectorAll?i:i===t?p("Invalid scope")||kt.createElement("div"):t)}}function tt(t){return t.sort((function(){return.5-Math.random()}))}function et(t){if(o(t))return t;var e=a(t)?t:{each:t},i=We(e.ease),s=e.from||0,r=parseFloat(e.base)||0,l={},c=0<s&&s<1,d=isNaN(s)||c,u=e.axis,h=s,p=s;return n(s)?h=p={center:.5,edges:.5,end:1}[s]||0:!c&&d&&(h=s[0],p=s[1]),function(t,n,o){var a,c,f,g,m,v,y,b,w,T=(o||e).length,_=l[T];if(!_){if(!(w="auto"===e.grid?0:(e.grid||[1,Gt])[1])){for(y=-Gt;y<(y=o[w++].getBoundingClientRect().left)&&w<T;);w<T&&w--}for(_=l[T]=[],a=d?Math.min(w,T)*h-.5:s%w,c=w===Gt?0:d?T*p/w-.5:s/w|0,b=Gt,v=y=0;v<T;v++)f=v%w-a,g=c-(v/w|0),_[v]=m=u?Math.abs("y"===u?g:f):ee(f*f+g*g),y<m&&(y=m),m<b&&(b=m);"random"===s&&tt(_),_.max=y-b,_.min=b,_.v=T=(parseFloat(e.amount)||parseFloat(e.each)*(T<w?T-1:u?"y"===u?T/w:w:Math.max(w,T/w))||0)*("edges"===s?-1:1),_.b=T<0?r-T:r,_.u=K(e.amount||e.each)||0,i=i&&T<0?Ye(i):i}return T=(_[t]-_.min)/_.max||0,x(_.b+(i?i(T):T)*_.v)+_.u}}function it(t){var e=Math.pow(10,((t+"").split(".")[1]||"").length);return function(i){var n=x(Math.round(parseFloat(i)/t)*t*e);return(n-n%1)/e+(s(i)?0:K(i))}}function nt(t,e){var i,n,r=$(t);return!r&&a(t)&&(i=r=t.radius||Gt,t.values?(t=Ae(t.values),(n=!s(t[0]))&&(i*=i)):t=it(t.increment)),G(e,r?o(t)?function(e){return n=t(e),Math.abs(n-e)<=i?n:e}:function(e){for(var o,r,a=parseFloat(n?e.x:e),l=parseFloat(n?e.y:0),c=Gt,d=0,u=t.length;u--;)(o=n?(o=t[u].x-a)*o+(r=t[u].y-l)*r:Math.abs(t[u]-a))<c&&(c=o,d=u);return d=!i||c<=i?t[d]:e,n||d===e||s(e)?d:d+K(e)}:it(t))}function ot(t,e,i,n){return G($(t)?!e:!0===i?!!(i=0):!n,(function(){return $(t)?t[~~(Math.random()*t.length)]:(i=i||1e-5)&&(n=i<1?Math.pow(10,(i+"").length-2):1)&&Math.floor(Math.round((t-i/2+Math.random()*(e-t+.99*i))/i)*i*n)/n}))}function st(t,e,i){return G(i,(function(i){return t[~~e(i)]}))}function rt(t){for(var e,i,n,o,s=0,r="";~(e=t.indexOf("random(",s));)n=t.indexOf(")",e),o="["===t.charAt(e+7),i=t.substr(e+7,n-e-7).match(o?de:se),r+=t.substr(s,e-s)+ot(o?i:+i[0],o?0:+i[1],+i[2]||1e-5),s=n+1;return r+t.substr(s,t.length-s)}function at(t,e,i){var n,o,s,r=t.labels,a=Gt;for(n in r)(o=r[n]-e)<0==!!i&&o&&a>(o=Math.abs(o))&&(s=n,a=o);return s}function lt(t){return D(t),t.scrollTrigger&&t.scrollTrigger.kill(!!xt),t.progress()<1&&ze(t,"onInterrupt"),t}function ct(t){if(t)if(t=!t.name&&t.default||t,c()||t.headless){var e=t.name,i=o(t),n=e&&!i&&t.init?function(){this._props=[]}:t,s={init:g,render:yi,add:ni,kill:wi,modifier:bi,rawVars:0},r={targetTest:0,get:0,getSetter:fi,aliases:{},register:0};if(He(),t!==n){if(be[e])return;O(n,O(A(t,s),r)),Se(n.prototype,Se(s,A(t,r))),be[n.prop=e]=n,t.targetTest&&(Te.push(n),me[e]=1),e=("css"===e?"CSS":e.charAt(0).toUpperCase()+e.substr(1))+"Plugin"}f(e,n),t.register&&t.register(Hi,n,Ti)}else Le.push(t)}function dt(t,e,i){return(6*(t+=t<0?1:1<t?-1:0)<1?e+(i-e)*t*6:t<.5?i:3*t<2?e+(i-e)*(2/3-t)*6:e)*Re+.5|0}function ut(t,e,i){var n,o,r,a,l,c,d,u,h,p,f=t?s(t)?[t>>16,t>>8&Re,t&Re]:0:De.black;if(!f){if(","===t.substr(-1)&&(t=t.substr(0,t.length-1)),De[t])f=De[t];else if("#"===t.charAt(0)){if(t.length<6&&(t="#"+(n=t.charAt(1))+n+(o=t.charAt(2))+o+(r=t.charAt(3))+r+(5===t.length?t.charAt(4)+t.charAt(4):"")),9===t.length)return[(f=parseInt(t.substr(1,6),16))>>16,f>>8&Re,f&Re,parseInt(t.substr(7),16)/255];f=[(t=parseInt(t.substr(1),16))>>16,t>>8&Re,t&Re]}else if("hsl"===t.substr(0,3))if(f=p=t.match(se),e){if(~t.indexOf("="))return f=t.match(re),i&&f.length<4&&(f[3]=1),f}else a=+f[0]%360/360,l=f[1]/100,n=2*(c=f[2]/100)-(o=c<=.5?c*(l+1):c+l-c*l),3<f.length&&(f[3]*=1),f[0]=dt(a+1/3,n,o),f[1]=dt(a,n,o),f[2]=dt(a-1/3,n,o);else f=t.match(se)||De.transparent;f=f.map(Number)}return e&&!p&&(n=f[0]/Re,o=f[1]/Re,r=f[2]/Re,c=((d=Math.max(n,o,r))+(u=Math.min(n,o,r)))/2,d===u?a=l=0:(h=d-u,l=.5<c?h/(2-d-u):
7h/(d+u),a=d===n?(o-r)/h+(o<r?6:0):d===o?(r-n)/h+2:(n-o)/h+4,a*=60),f[0]=~~(a+.5),f[1]=~~(100*l+.5),f[2]=~~(100*c+.5)),i&&f.length<4&&(f[3]=1),f}function ht(t){var e=[],i=[],n=-1;return t.split(je).forEach((function(t){var o=t.match(ae)||[];e.push.apply(e,o),i.push(n+=o.length+1)})),e.c=i,e}function pt(t,e,i){var n,o,s,r,a="",l=(t+a).match(je),c=e?"hsla(":"rgba(",d=0;if(!l)return t;if(l=l.map((function(t){return(t=ut(t,e,1))&&c+(e?t[0]+","+t[1]+"%,"+t[2]+"%,"+t[3]:t.join(","))+")"})),i&&(s=ht(t),(n=i.c).join(a)!==s.c.join(a)))for(r=(o=t.replace(je,"1").split(ae)).length-1;d<r;d++)a+=o[d]+(~n.indexOf(d)?l.shift()||c+"0,0,0,0)":(s.length?s:l.length?l:i).shift());if(!o)for(r=(o=t.split(je)).length-1;d<r;d++)a+=o[d]+l[d];return a+o[r]}function ft(t){var e,i=t.join(" ");if(je.lastIndex=0,je.test(i))return e=Ie.test(i),t[1]=pt(t[1],e),t[0]=pt(t[0],e,ht(t[1])),!0}function gt(t,e){for(var i,n=t._first;n;)n instanceof Qe?gt(n,e):!n.vars.yoyoEase||n._yoyo&&n._repeat||n._yoyo===e||(n.timeline?gt(n.timeline,e):(i=n._ease,n._ease=n._yEase,n._yEase=i,n._yoyo=e)),n=n._next}function mt(t,e,i,n){void 0===i&&(i=function(t){return 1-e(1-t)}),void 0===n&&(n=function(t){return t<.5?e(2*t)/2:1-e(2*(1-t))/2});var o,s={easeIn:e,easeOut:i,easeInOut:n};return b(t,(function(t){for(var e in Be[t]=he[t]=s,Be[o=t.toLowerCase()]=i,s)Be[o+("easeIn"===e?".in":"easeOut"===e?".out":".inOut")]=Be[t+"."+e]=s[e]})),s}function vt(t){return function(e){return e<.5?(1-t(1-2*e))/2:.5+t(2*(e-.5))/2}}function yt(t,e,i){function n(t){return 1===t?1:o*Math.pow(2,-10*t)*ne((t-r)*s)+1}var o=1<=e?e:1,s=(i||(t?.3:.45))/(e<1?e:1),r=s/Qt*(Math.asin(1/o)||0),a="out"===t?n:"in"===t?function(t){return 1-n(1-t)}:vt(n);return s=Qt/s,a.config=function(e,i){return yt(t,e,i)},a}function bt(t,e){function i(t){return t?--t*t*((e+1)*t+e)+1:0}void 0===e&&(e=1.70158);var n="out"===t?i:"in"===t?function(t){return 1-i(1-t)}:vt(i);return n.config=function(e){return bt(t,e)},n}var wt,xt,Tt,_t,St,Ct,kt,Et,Pt,Ot,Mt,At,$t,zt,Lt,Rt,Dt,jt,It,Ft,Ht,Bt,Nt,qt,Yt,Wt,Xt,Ut,Vt={autoSleep:120,force3D:"auto",nullTargetWarn:1,units:{lineHeight:""}},Zt={duration:.5,overwrite:!1,delay:0},Gt=1e8,Kt=1/Gt,Qt=2*Math.PI,Jt=Qt/4,te=0,ee=Math.sqrt,ie=Math.cos,ne=Math.sin,oe="function"==typeof ArrayBuffer&&ArrayBuffer.isView||function(){},$=Array.isArray,se=/(?:-?\.?\d|\.)+/gi,re=/[-+=.]*\d+[.e\-+]*\d*[e\-+]*\d*/g,ae=/[-+=.]*\d+[.e-]*\d*[a-z%]*/g,le=/[-+=.]*\d+\.?\d*(?:e-|e\+)?\d*/gi,ce=/[+-]=-?[.\d]+/,de=/[^,'"\[\]\s]+/gi,ue=/^[+\-=e\s\d]*\d+[.\d]*([a-z]*|%)\s*$/i,he={},pe={suppressEvents:!0,isStart:!0,kill:!1},fe={suppressEvents:!0,kill:!1},ge={suppressEvents:!0},me={},ve=[],ye={},be={},we={},xe=30,Te=[],_e="",Se=function(t,e){for(var i in e)t[i]=e[i];return t},Ce=function(t,e){var i=Math.floor(t=x(t/e));return t&&i===t?i-1:i},ke=function(t){var e=t.data;return"isFromStart"===e||"isStart"===e},Ee={_start:0,endTime:g,totalDuration:g},Pe=function t(e,i,o){var s,r,a,l=e.labels,c=e._recent||Ee,d=e.duration()>=Gt?c.endTime(!1):e._dur;return n(i)&&(isNaN(i)||i in l)?(r=i.charAt(0),a="%"===i.substr(-1),s=i.indexOf("="),"<"===r||">"===r?(0<=s&&(i=i.replace(/=/,"")),("<"===r?c._start:c.endTime(0<=c._repeat))+(parseFloat(i.substr(1))||0)*(a?(s<0?c:o).totalDuration()/100:1)):s<0?(i in l||(l[i]=d),l[i]):(r=parseFloat(i.charAt(s-1)+i.substr(s+1)),a&&o&&(r=r/100*($(o)?o[0]:o).totalDuration()),1<s?t(e,i.substr(0,s-1),o)+r:d+r)):null==i?d:+i},Oe=function(t,e,i){return i<t?t:e<i?e:i},Me=[].slice,Ae=function(t,e,i){return Tt&&!e&&Tt.selector?Tt.selector(t):!n(t)||i||!Ct&&He()?$(t)?function(t,e,i){return void 0===i&&(i=[]),t.forEach((function(t){return n(t)&&!e||Q(t,1)?i.push.apply(i,Ae(t)):i.push(t)}))||i}(t,i):Q(t)?Me.call(t,0):t?[t]:[]:Me.call((e||kt).querySelectorAll(t),0)},$e=function(t,e,i,n,o){var s=e-t,r=n-i;return G(o,(function(e){return i+((e-t)/s*r||0)}))},ze=function(t,e,i){var n,o,s,r=t.vars,a=r[e],l=Tt,c=t._ctx;if(a)return n=r[e+"Params"],o=r.callbackScope||t,i&&ve.length&&S(),c&&(Tt=c),s=n?a.apply(o,n):a.call(o),Tt=l,s},Le=[],Re=255,De={aqua:[0,Re,Re],lime:[0,Re,0],silver:[192,192,192],black:[0,0,0],maroon:[128,0,0],teal:[0,128,128],blue:[0,0,Re],navy:[0,0,128],white:[Re,Re,Re],olive:[128,128,0],yellow:[Re,Re,0],orange:[Re,165,0],gray:[128,128,128],purple:[128,0,128],green:[0,128,0],red:[Re,0,0],pink:[Re,192,203],cyan:[0,Re,Re],transparent:[Re,Re,Re,0]},je=function(){var t,e="(?:\\b(?:(?:rgb|rgba|hsl|hsla)\\(.+?\\))|\\B#(?:[0-9a-f]{3,4}){1,2}\\b";for(t in De)e+="|"+t+"\\b";return new RegExp(e+")","gi")}(),Ie=/hsl[a]?\(/,Fe=(It=Date.now,Ft=500,Ht=33,Bt=It(),Nt=Bt,Yt=qt=1e3/240,Rt={time:0,frame:0,tick:function(){Xe(!0)},deltaRatio:function(t){return Dt/(1e3/(t||60))},wake:function(){Pt&&(!Ct&&c()&&(St=Ct=window,kt=St.document||{},he.gsap=Hi,(St.gsapVersions||(St.gsapVersions=[])).push(Hi.version),u(Et||St.GreenSockGlobals||!St.gsap&&St||{}),Le.forEach(ct)),Lt="undefined"!=typeof requestAnimationFrame&&requestAnimationFrame,$t&&Rt.sleep(),zt=Lt||function(t){return setTimeout(t,Yt-1e3*Rt.time+1|0)},At=1,Xe(2))}
7,sleep:function(){(Lt?cancelAnimationFrame:clearTimeout)($t),At=0,zt=g},lagSmoothing:function(t,e){Ft=t||1/0,Ht=Math.min(e||33,Ft)},fps:function(t){qt=1e3/(t||240),Yt=1e3*Rt.time+qt},add:function(t,e,i){var n=e?function(e,i,o,s){t(e,i,o,s),Rt.remove(n)}:t;return Rt.remove(t),Wt[i?"unshift":"push"](n),He(),n},remove:function(t,e){~(e=Wt.indexOf(t))&&Wt.splice(e,1)&&e<=jt&&jt--},_listeners:Wt=[]}),He=function(){return!At&&Fe.wake()},Be={},Ne=/^[\d.\-M][\d.\-,\s]/,qe=/["']/g,Ye=function(t){return function(e){return 1-t(1-e)}},We=function(t,e){return t&&(o(t)?t:Be[t]||function(t){var e=(t+"").split("("),i=Be[e[0]];return i&&1<e.length&&i.config?i.config.apply(null,~t.indexOf("{")?[function(t){for(var e,i,n,o={},s=t.substr(1,t.length-3).split(":"),r=s[0],a=1,l=s.length;a<l;a++)i=s[a],e=a!==l-1?i.lastIndexOf(","):i.length,n=i.substr(0,e),o[r]=isNaN(n)?n.replace(qe,"").trim():+n,r=i.substr(e+1).trim();return o}(e[1])]:function(t){var e=t.indexOf("(")+1,i=t.indexOf(")"),n=t.indexOf("(",e);return t.substring(e,~n&&n<i?t.indexOf(")",i+1):i)}(t).split(",").map(E)):Be._CE&&Ne.test(t)?Be._CE("",t):i}(t))||e};function Xe(t){var e,i,n,o,s=It()-Nt,r=!0===t;if((Ft<s||s<0)&&(Bt+=s-Ht),(0<(e=(n=(Nt+=s)-Bt)-Yt)||r)&&(o=++Rt.frame,Dt=n-1e3*Rt.time,Rt.time=n/=1e3,Yt+=e+(qt<=e?4:qt-e),i=1),r||($t=zt(Xe)),i)for(jt=0;jt<Wt.length;jt++)Wt[jt](n,Dt,o,t)}function Ue(t){return t<Ut?Xt*t*t:t<.7272727272727273?Xt*Math.pow(t-1.5/2.75,2)+.75:t<.9090909090909092?Xt*(t-=2.25/2.75)*t+.9375:Xt*Math.pow(t-2.625/2.75,2)+.984375}b("Linear,Quad,Cubic,Quart,Quint,Strong",(function(t,e){var i=e<5?e+1:e;mt(t+",Power"+(i-1),e?function(t){return Math.pow(t,i)}:function(t){return t},(function(t){return 1-Math.pow(1-t,i)}),(function(t){return t<.5?Math.pow(2*t,i)/2:1-Math.pow(2*(1-t),i)/2}))})),Be.Linear.easeNone=Be.none=Be.Linear.easeIn,mt("Elastic",yt("in"),yt("out"),yt()),Xt=7.5625,Ut=1/2.75,mt("Bounce",(function(t){return 1-Ue(1-t)}),Ue),mt("Expo",(function(t){return Math.pow(2,10*(t-1))*t+t*t*t*t*t*t*(1-t)})),mt("Circ",(function(t){return-(ee(1-t*t)-1)})),mt("Sine",(function(t){return 1===t?1:1-ie(t*Jt)})),mt("Back",bt("in"),bt("out"),bt()),Be.SteppedEase=Be.steps=he.SteppedEase={config:function(t,e){void 0===t&&(t=1);var i=1/t,n=t+(e?0:1),o=e?1:0;return function(t){return((n*Oe(0,.99999999,t)|0)+o)*i}}},Zt.ease=Be["quad.out"],b("onComplete,onUpdate,onStart,onRepeat,onReverseComplete,onInterrupt",(function(t){return _e+=t+","+t+"Params,"}));var Ve,Ze=function(t,e){this.id=te++,(t._gsap=this).target=t,this.harness=e,this.get=e?e.get:y,this.set=e?e.getSetter:fi},Ge=((Ve=Ke.prototype).delay=function(t){return t||0===t?(this.parent&&this.parent.smoothChildTiming&&this.startTime(this._start+t-this._delay),this._delay=t,this):this._delay},Ve.duration=function(t){return arguments.length?this.totalDuration(0<this._repeat?t+(t+this._rDelay)*this._repeat:t):this.totalDuration()&&this._dur},Ve.totalDuration=function(t){return arguments.length?(this._dirty=0,U(this,this._repeat<0?t:(t-this._repeat*this._rDelay)/(this._repeat+1))):this._tDur},Ve.totalTime=function(t,e){if(He(),!arguments.length)return this._tTime;var i=this._dp;if(i&&i.smoothChildTiming&&this._ts){for(N(this,t),!i._dp||i.parent||q(i,this);i&&i.parent;)i.parent._time!==i._start+(0<=i._ts?i._tTime/i._ts:(i.totalDuration()-i._tTime)/-i._ts)&&i.totalTime(i._tTime,!0),i=i.parent;!this.parent&&this._dp.autoRemoveChildren&&(0<this._ts&&t<this._tDur||this._ts<0&&0<t||!this._tDur&&!t)&&Y(this._dp,this,this._start-this._delay)}return(this._tTime!==t||!this._dur&&!e||this._initted&&Math.abs(this._zTime)===Kt||!t&&!this._initted&&(this.add||this._ptLookup))&&(this._ts||(this._pTime=t),k(this,t,e)),this},Ve.time=function(t,e){return arguments.length?this.totalTime(Math.min(this.totalDuration(),t+F(this))%(this._dur+this._rDelay)||(t?this._dur:0),e):this._time},Ve.totalProgress=function(t,e){return arguments.length?this.totalTime(this.totalDuration()*t,e):this.totalDuration()?Math.min(1,this._tTime/this._tDur):0<=this.rawTime()&&this._initted?1:0},Ve.progress=function(t,e){return arguments.length?this.totalTime(this.duration()*(!this._yoyo||1&this.iteration()?t:1-t)+F(this),e):this.duration()?Math.min(1,this._time/this._dur):0<this.rawTime()?1:0},Ve.iteration=function(t,e){var i=this.duration()+this._rDelay;return arguments.length?this.totalTime(this._time+(t-1)*i,e):this._repeat?Ce(this._tTime,i)+1:1},Ve.timeScale=function(t,e){if(!arguments.length)return this._rts===-Kt?0:this._rts;if(this._rts===t)return this;var i=this.parent&&this._ts?H(this.parent._time,this):this._tTime;return this._rts=+t||0,this._ts=this._ps||t===-Kt?0:this._rts,this.totalTime(Oe(-Math.abs(this._delay),this.totalDuration(),i),!1!==e),B(this),function(t){for(var e=t.parent;e&&e.parent;)e._dirty=1,e.totalDuration(),e=e.parent;return t}(this)},Ve.paused=function(t){return arguments.length?(this._ps!==t&&((this._ps=t)?(this._pTime=this._tTime||Math.max(-this._delay,this.rawTime()),this._ts=this._act=0):(He(),this._ts=this._rts,this.totalTime(this.parent&&!this.parent.smoothChildTiming?this.rawTime():this._tTime||this._pTime,1===this.progress()&&Math.abs(this._zTime)!==Kt&&(this._tTime-=Kt)))),this):this._ps},Ve.startTime=function(t){if(arguments.length){this._start=t;var e=this.parent||this._dp;return!e||!e._sort&&this.parent||Y(e,this,t-this._delay),this}return this._start},Ve.endTime=function(t){return this._start+(l(t)?this.totalDuration():this.duration())/Math.abs(this._ts||1)},Ve.rawTime=function(t){var e=this.parent||this._dp;return e?t&&(!this._ts||this._repeat&&this._time&&this.totalProgress()<1)?this._tTime%(this._dur+this._rDelay):this._ts?H(e.rawTime(t),this):this._tTime:this._tTime},Ve.revert=function(t){void 0===t&&(t=ge);var e=xt;return xt=t,C(this)&&(this.timeline&&this.timeline.revert(t),this.totalTime(-.01,t.suppressEvents)),"nested"!==this.data&&!1!==t.kill&&this.kill(),xt=e,this},Ve.globalTime=function(t){for(var e=this,i=arguments.length?t:e.rawTime();e;)i=e._start+i/(Math.abs(e._ts)||1),e=e._dp;return!this.parent&&this._sat?this._sat.globalTime(t):i},Ve.repeat=function(t){return arguments.length?(this._repeat=t===1/0?-2:t,V(this)):-2===this._repeat?1/0:this._repeat},Ve.repeatDelay=function(t){if(arguments.length){var e=this._time;return this._rDelay=t,V(this),e?this.time(e):this}return this._rDelay},Ve.yoyo=function(t){return arguments.length?(this._yoyo=t,this):this._yoyo},Ve.seek=function(t,e){return this.totalTime(Pe(this,t),l(e))},Ve.restart=function(t,e){return this.play().totalTime(t?-this._delay:0,l(e)),this._dur||(this._zTime=-Kt),this},Ve.play=function(t,e){return null!=t&&this.seek(t,e),this.reversed(!1).paused(!1)},Ve.reverse=function(t,e){return null!=t&&this.seek(t||this.totalDuration(),e),this.reversed(!0).paused(!1)},Ve.pause=function(t,e){return null!=t&&this.seek(t,e),this.paused(!0)},Ve.resume=function(){return this.paused(!1)},Ve.reversed=function(t){return arguments.length?(!!t!==this.reversed()&&this.timeScale(-this._rts||(t?-Kt:0)),this):this._rts<0},Ve.invalidate=function(){return this._initted=this._act=0,this._zTime=-Kt,this},Ve.isActive=function(){var t,e=this.parent||this._dp,i=this._start;return!(e&&!(this._ts&&this._initted&&e.isActive()&&(t=e.rawTime(!0))>=i&&t<this.endTime(!0)-Kt))}
vendor: 4,607 bytes, lines 7-8
7,Ve.eventCallback=function(t,e,i){var n=this.vars;return 1<arguments.length?(e?(n[t]=e,i&&(n[t+"Params"]=i),"onUpdate"===t&&(this._onUpdate=e)):delete n[t],this):n[t]},Ve.then=function(t){var e=this;return new Promise((function(i){function n(){var t=e.then;e.then=null,o(s)&&(s=s(e))&&(s.then||s===e)&&(e.then=t),i(s),e.then=t}var s=o(t)?t:P;e._initted&&1===e.totalProgress()&&0<=e._ts||!e._tTime&&e._ts<0?n():e._prom=n}))},Ve.kill=function(){lt(this)},Ke);function Ke(t){this.vars=t,this._delay=+t.delay||0,(this._repeat=t.repeat===1/0?-2:t.repeat||0)&&(this._rDelay=t.repeatDelay||0,this._yoyo=!!t.yoyo||!!t.yoyoEase),this._ts=1,U(this,+t.duration,1,1),this.data=t.data,Tt&&(this._ctx=Tt).data.push(this),At||Fe.wake()}O(Ge.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:-Kt,_prom:0,_ps:!1,_rts:1});var Qe=function(t){function r(e,n){var o;return void 0===e&&(e={}),(o=t.call(this,e)||this).labels={},o.smoothChildTiming=!!e.smoothChildTiming,o.autoRemoveChildren=!!e.autoRemoveChildren,o._sort=l(e.sortChildren),_t&&Y(e.parent||_t,i(o),n),e.reversed&&o.reverse(),e.paused&&o.paused(!0),e.scrollTrigger&&W(i(o),e.scrollTrigger),o}e(r,t);var a=r.prototype;return a.to=function(t,e,i){return Z(0,arguments,this),this},a.from=function(t,e,i){return Z(1,arguments,this),this},a.fromTo=function(t,e,i,n){return Z(2,arguments,this),this},a.set=function(t,e,i){return e.duration=0,e.parent=this,z(e).repeatDelay||(e.repeat=0),e.immediateRender=!!e.immediateRender,new li(t,e,Pe(this,i),1),this},a.call=function(t,e,i){return Y(this,li.delayedCall(0,t,e),i)},a.staggerTo=function(t,e,i,n,o,s,r){return i.duration=e,i.stagger=i.stagger||n,i.onComplete=s,i.onCompleteParams=r,i.parent=this,new li(t,i,Pe(this,o)),this},a.staggerFrom=function(t,e,i,n,o,s,r){return i.runBackwards=1,z(i).immediateRender=l(i.immediateRender),this.staggerTo(t,e,i,n,o,s,r)},a.staggerFromTo=function(t,e,i,n,o,s,r,a){ 8return n.startAt=i,z(n).immediateRender=l(n.immediateRender),this.staggerTo(t,e,n,o,s,r,a)},a.render=function(t,e,i){var n,o,s,r,a,l,c,d,u,h,p,f,g=this._time,m=this._dirty?this.totalDuration():this._tDur,v=this._dur,y=t<=0?0:x(t),b=this._zTime<0!=t<0&&(this._initted||!v);if(this!==_t&&m<y&&0<=t&&(y=m),y!==this._tTime||i||b){if(g!==this._time&&v&&(y+=this._time-g,t+=this._time-g),n=y,u=this._start,l=!(d=this._ts),b&&(v||(g=this._zTime),!t&&e||(this._zTime=t)),this._repeat){if(p=this._yoyo,a=v+this._rDelay,this._repeat<-1&&t<0)return this.totalTime(100*a+t,e,i);if(n=x(y%a),y===m?(r=this._repeat,n=v):((r=~~(h=x(y/a)))&&r===h&&(n=v,r--),v<n&&(n=v)),h=Ce(this._tTime,a),!g&&this._tTime&&h!==r&&this._tTime-h*a-this._dur<=0&&(h=r),p&&1&r&&(n=v-n,f=1),r!==h&&!this._lock){var w=p&&1&h,T=w===(p&&1&r);if(r<h&&(w=!w),g=w?0:y%v?v:y,this._lock=1,this.render(g||(f?0:x(r*a)),e,!v)._lock=0,this._tTime=y,!e&&this.parent&&ze(this,"onRepeat"),this.vars.repeatRefresh&&!f&&(this.invalidate()._lock=1),g&&g!==this._time||l!=!this._ts||this.vars.onRepeat&&!this.parent&&!this._act)return this;if(v=this._dur,m=this._tDur,T&&(this._lock=2,g=w?v:-1e-4,this.render(g,!0),this.vars.repeatRefresh&&!f&&this.invalidate()),this._lock=0,!this._ts&&!l)return this;gt(this,f)}}if(this._hasPause&&!this._forcing&&this._lock<2&&(c=function(t,e,i){var n;if(e<i)for(n=t._first;n&&n._start<=i;){if("isPause"===n.data&&n._start>e)return n;n=n._next}else for(n=t._last;n&&n._start>=i;){if("isPause"===n.data&&n._start<e)return n;n=n._prev}}(this,x(g),x(n)))&&(y-=n-(n=c._start)),this._tTime=y,this._time=n,this._act=!d,this._initted||(this._onUpdate=this.vars.onUpdate,this._initted=1,this._zTime=t,g=0),!g&&y&&!e&&!h&&(ze(this,"onStart"),this._tTime!==y))return this;if(g<=n&&0<=t)for(o=this._first;o;){if(s=o._next,(o._act||n>=o._start)&&o._ts&&c!==o){if(o.parent!==this)return this.render(t,e,i);if(o.render(0<o._ts?(n-o._start)*o._ts:(o._dirty?o.totalDuration():o._tDur)+(n-o._start)*o._ts,e,i),n!==this._time||!this._ts&&!l){c=0,s&&(y+=this._zTime=-Kt);break}}o=s}else{o=this._last;for(var _=t<0?t:n;o;){if(s=o._prev,(o._act||_<=o._end)&&o._ts&&c!==o){if(o.parent!==this)return this.render(t,e,i);if(o.render(0<o._ts?(_-o._start)*o._ts:(o._dirty?o.totalDuration():o._tDur)+(_-o._start)*o._ts,e,i||xt&&C(o)),n!==this._time||!this._ts&&!l){c=0,s&&(y+=this._zTime=_?-Kt:Kt);break}}o=s}}if(c&&!e&&(this.pause(),c.render(g<=n?0:-Kt)._zTime=g<=n?1:-1,this._ts))return this._start=u,B(this),this.render(t,e,i);this._onUpdate&&!e&&ze(this,"onUpdate",!0),(y===m&&this._tTime>=this.totalDuration()||!y&&g)&&(u!==this._start&&Math.abs(d)===Math.abs(this._ts
vendor: 8,488 bytes, line 8
8)||this._lock||(!t&&v||!(y===m&&0<this._ts||!y&&this._ts<0)||D(this,1),e||t<0&&!g||!y&&!g&&m||(ze(this,y===m&&0<=t?"onComplete":"onReverseComplete",!0),!this._prom||y<m&&0<this.timeScale()||this._prom())))}return this},a.add=function(t,e){var i=this;if(s(e)||(e=Pe(this,e,t)),!(t instanceof Ge)){if($(t))return t.forEach((function(t){return i.add(t,e)})),this;if(n(t))return this.addLabel(t,e);if(!o(t))return this;t=li.delayedCall(0,t)}return this!==t?Y(this,t,e):this},a.getChildren=function(t,e,i,n){void 0===t&&(t=!0),void 0===e&&(e=!0),void 0===i&&(i=!0),void 0===n&&(n=-Gt);for(var o=[],s=this._first;s;)s._start>=n&&(s instanceof li?e&&o.push(s):(i&&o.push(s),t&&o.push.apply(o,s.getChildren(!0,e,i)))),s=s._next;return o},a.getById=function(t){for(var e=this.getChildren(1,1,1),i=e.length;i--;)if(e[i].vars.id===t)return e[i]},a.remove=function(t){return n(t)?this.removeLabel(t):o(t)?this.killTweensOf(t):(t.parent===this&&R(this,t),t===this._recent&&(this._recent=this._last),j(this))},a.totalTime=function(e,i){return arguments.length?(this._forcing=1,!this._dp&&this._ts&&(this._start=x(Fe.time-(0<this._ts?e/this._ts:(this.totalDuration()-e)/-this._ts))),t.prototype.totalTime.call(this,e,i),this._forcing=0,this):this._tTime},a.addLabel=function(t,e){return this.labels[t]=Pe(this,e),this},a.removeLabel=function(t){return delete this.labels[t],this},a.addPause=function(t,e,i){var n=li.delayedCall(0,e||g,i);return n.data="isPause",this._hasPause=1,Y(this,n,Pe(this,t))},a.removePause=function(t){var e=this._first;for(t=Pe(this,t);e;)e._start===t&&"isPause"===e.data&&D(e),e=e._next},a.killTweensOf=function(t,e,i){for(var n=this.getTweensOf(t,i),o=n.length;o--;)ei!==n[o]&&n[o].kill(t,e);return this},a.getTweensOf=function(t,e){for(var i,n=[],o=Ae(t),r=this._first,a=s(e);r;)r instanceof li?_(r._targets,o)&&(a?(!ei||r._initted&&r._ts)&&r.globalTime(0)<=e&&r.globalTime(r.totalDuration())>e:!e||r.isActive())&&n.push(r):(i=r.getTweensOf(o,e)).length&&n.push.apply(n,i),r=r._next;return n},a.tweenTo=function(t,e){e=e||{};var i,n=this,o=Pe(n,t),s=e.startAt,r=e.onStart,a=e.onStartParams,l=e.immediateRender,c=li.to(n,O({ease:e.ease||"none",lazy:!1,immediateRender:!1,time:o,overwrite:"auto",duration:e.duration||Math.abs((o-(s&&"time"in s?s.time:n._time))/n.timeScale())||Kt,onStart:function(){if(n.pause(),!i){var t=e.duration||Math.abs((o-(s&&"time"in s?s.time:n._time))/n.timeScale());c._dur!==t&&U(c,t,0,1).render(c._time,!0,!0),i=1}r&&r.apply(c,a||[])}},e));return l?c.render(0):c},a.tweenFromTo=function(t,e,i){return this.tweenTo(e,O({startAt:{time:Pe(this,t)}},i))},a.recent=function(){return this._recent},a.nextLabel=function(t){return void 0===t&&(t=this._time),at(this,Pe(this,t))},a.previousLabel=function(t){return void 0===t&&(t=this._time),at(this,Pe(this,t),1)},a.currentLabel=function(t){return arguments.length?this.seek(t,!0):this.previousLabel(this._time+Kt)},a.shiftChildren=function(t,e,i){void 0===i&&(i=0);for(var n,o=this._first,s=this.labels;o;)o._start>=i&&(o._start+=t,o._end+=t),o=o._next;if(e)for(n in s)s[n]>=i&&(s[n]+=t);return j(this)},a.invalidate=function(e){var i=this._first;for(this._lock=0;i;)i.invalidate(e),i=i._next;return t.prototype.invalidate.call(this,e)},a.clear=function(t){void 0===t&&(t=!0);for(var e,i=this._first;i;)e=i._next,this.remove(i),i=e;return this._dp&&(this._time=this._tTime=this._pTime=0),t&&(this.labels={}),j(this)},a.totalDuration=function(t){var e,i,n,o=0,s=this,r=s._last,a=Gt;if(arguments.length)return s.timeScale((s._repeat<0?s.duration():s.totalDuration())/(s.reversed()?-t:t));if(s._dirty){for(n=s.parent;r;)e=r._prev,r._dirty&&r.totalDuration(),a<(i=r._start)&&s._sort&&r._ts&&!s._lock?(s._lock=1,Y(s,r,i-r._delay,1)._lock=0):a=i,i<0&&r._ts&&(o-=i,(!n&&!s._dp||n&&n.smoothChildTiming)&&(s._start+=i/s._ts,s._time-=i,s._tTime-=i),s.shiftChildren(-i,!1,-1/0),a=0),r._end>o&&r._ts&&(o=r._end),r=e;U(s,s===_t&&s._time>o?s._time:o,1,1),s._dirty=0}return s._tDur},r.updateRoot=function(t){if(_t._ts&&(k(_t,H(t,_t)),Ot=Fe.frame),Fe.frame>=xe){xe+=Vt.autoSleep||120;var e=_t._first;if((!e||!e._ts)&&Vt.autoSleep&&Fe._listeners.length<2){for(;e&&!e._ts;)e=e._next;e||Fe.sleep()}}},r}(Ge);function Je(t,e,i,s,r,l){var c,d,u,h;if(be[t]&&!1!==(c=new be[t]).init(r,c.rawVars?e[t]:function(t,e,i,s,r){if(o(t)&&(t=si(t,r,e,i,s)),!a(t)||t.style&&t.nodeType||$(t)||oe(t))return n(t)?si(t,r,e,i,s):t;var l,c={};for(l in t)c[l]=si(t[l],r,e,i,s);return c}(e[t],s,r,l,i),i,s,l)&&(i._pt=d=new Ti(i._pt,r,t,0,1,c.render,c,0,c.priority),i!==Mt))for(u=i._ptLookup[i._targets.indexOf(r)],h=c._props.length;h--;)u[c._props[h]]=d;return c}function ti(t,e,i,n){var o,s,r=e.ease||n||"power1.inOut";if($(e))s=i[t]||(i[t]=[]),e.forEach((function(t,i){return s.push({t:i/(e.length-1)*100,v:t,e:r})}));else for(o in e)s=i[o]||(i[o]=[]),"ease"===o||s.push({t:parseFloat(t),v:e[o],e:r})}O(Qe.prototype,{_lock:0,_hasPause:0,_forcing:0});var ei,ii,ni=function(t,e,i,s,r,a,l,c,d,u){o(s)&&(s=s(r||0,t,a));var p,f=t[e],g="get"!==i?i:o(f)?d?t[e.indexOf("set")||!o(t["get"+e.substr(3)])?e:"get"+e.substr(3)](d):t[e]():f,m=o(f)?d?pi:hi:ui;if(n(s)&&(~s.indexOf("random(")&&(s=rt(s)),"="===s.charAt(1)&&(!(p=T(g,s)+(K(g)||0))&&0!==p||(s=p))),!u||g!==s||ii)return isNaN(g*s)||""===s?(f||e in t||h(e,s),function(t,e,i,n,o,s,r){var a,l,c,d,u,h,p,f,g=new Ti(this._pt,t,e,0,1,vi,null,o),m=0,v=0;for(g.b=i,g.e=n,i+="",(p=~(n+="").indexOf("random("))&&(n=rt(n)),s&&(s(f=[i,n],t,e),i=f[0],n=f[1]),l=i.match(le)||[];a=le.exec(n);)d=a[0],u=n.substring(m,a.index),c?c=(c+1)%5:"rgba("===u.substr(-5)&&(c=1),d!==l[v++]&&(h=parseFloat(l[v-1])||0,g._pt={_next:g._pt,p:u||1===v?u:",",s:h,c:"="===d.charAt(1)?T(h,d)-h:parseFloat(d)-h,m:c&&c<4?Math.round:0},m=le.lastIndex);return g.c=m<n.length?n.substring(m,n.length):"",g.fp=r,(ce.test(n)||p)&&(g.e=0),this._pt=g}.call(this,t,e,g,s,m,c||Vt.stringFilter,d)):(p=new Ti(this._pt,t,e,+g||0,s-(g||0),"boolean"==typeof f?mi:gi,0,m),d&&(p.fp=d),l&&p.modifier(l,this,t),this._pt=p)},oi=function t(e,i,n){var o,s,r,a,c,d,u,h,p,f,g,y,b,w=e.vars,x=w.ease,T=w.startAt,_=w.immediateRender,C=w.lazy,k=w.onUpdate,E=w.runBackwards,P=w.yoyoEase,M=w.keyframes,z=w.autoRevert,L=e._dur,R=e._startAt,j=e._targets,I=e.parent,F=I&&"nested"===I.data?I.vars.targets:j,H="auto"===e._overwrite&&!wt,B=e.timeline;if(!B||M&&x||(x="none"),e._ease=We(x,Zt.ease),e._yEase=P?Ye(We(!0===P?x:P,Zt.ease)):0,P&&e._yoyo&&!e._repeat&&(P=e._yEase,e._yEase=e._ease,e._ease=P),e._from=!B&&!!w.runBackwards,!B||M&&!w.stagger){if(y=(h=j[0]?v(j[0]).harness:0)&&w[h.prop],o=A(w,me),R&&(R._zTime<0&&R.progress(1),i<0&&E&&_&&!z?R.render(-1,!0):R.revert(E&&L?fe:pe),R._lazy=0),T){if(D(e._startAt=li.set(j,O({data:"isStart",overwrite:!1,parent:I,immediateRender:!0,lazy:!R&&l(C),startAt:null,delay:0,onUpdate:k&&function(){return ze(e,"onUpdate")},stagger:0},T))),e._startAt._dp=0,e._startAt._sat=e,i<0&&(xt||!_&&!z)&&e._startAt.revert(fe),_&&L&&i<=0&&n<=0)return void(i&&(e._zTime=i))}else if(E&&L&&!R)if(i&&(_=!1),r=O({overwrite:!1,data:"isFromStart",lazy:_&&!R&&l(C),immediateRender:_,stagger:0,parent:I},o),y&&(r[h.prop]=y),D(e._startAt=li.set(j,r)),e._startAt._dp=0,e._startAt._sat=e,i<0&&(xt?e._startAt.revert(fe):e._startAt.render(-1,!0)),e._zTime=i,_){if(!i)return}else t(e._startAt,Kt,Kt);for(e._pt=e._ptCache=0,C=L&&l(C)||C&&!L,s=0;s<j.length;s++){if(u=(c=j[s])._gsap||m(j)[s]._gsap,e._ptLookup[s]=f={},ye[u.id]&&ve.length&&S(),g=F===j?s:F.indexOf(c),h&&!1!==(p=new h).init(c,y||o,e,g,F)&&(e._pt=a=new Ti(e._pt,c,p.name,0,1,p.render,p,0,p.priority),p._props.forEach((function(t){f[t]=a})),p.priority&&(d=1)),!h||y)for(r in o)be[r]&&(p=Je(r,o,e,g,c,F))?p.priority&&(d=1):f[r]=a=ni.call(e,c,r,"get",o[r],g,F,0,w.stringFilter);e._op&&e._op[s]&&e.kill(c,e._op[s]),H&&e._pt&&(ei=e,_t.killTweensOf(c,f,e.globalTime(i)),b=!e.parent,ei=0),e._pt&&C&&(ye[u.id]=1)}d&&xi(e),e._onInit&&e._onInit(e)}e._onUpdate=k,e._initted=(!e._op||e._pt)&&!b,M&&i<=0&&B.render(Gt,!0,!0)},si=function(t,e,i,s,r){return o(t)?t.call(e,i,s,r):n(t)&&~t.indexOf("random(")?rt(t):t},ri=_e+"repeat,repeatDelay,yoyo,repeatRefresh,yoyoEase,autoRevert",ai={};b(ri+",id,stagger,delay,duration,paused,scrollTrigger",(function(t){return ai[t]=1}));var li=function(t){function o(e,n,o,r){var c;"number"==typeof n&&(o.duration=n,n=o,o=null);var u,h,f,g,v,y,b,w,T=(c=t.call(this,r?n:z(n))||this).vars,_=T.duration,S=T.delay,C=T.immediateRender,k=T.stagger,E=T.overwrite,P=T.keyframes,M=T.defaults,L=T.scrollTrigger,R=T.yoyoEase,D=n.parent||_t,j=($(e)||oe(e)?s(e[0]):"length"in n)?[e]:Ae(e);
vendor: 4,224 bytes, line 8
8if(c._targets=j.length?m(j):p("GSAP target "+e+" not found. https://gsap.com",!Vt.nullTargetWarn)||[],c._ptLookup=[],c._overwrite=E,P||k||d(_)||d(S)){if(n=c.vars,(u=c.timeline=new Qe({data:"nested",defaults:M||{},targets:D&&"nested"===D.data?D.vars.targets:j})).kill(),u.parent=u._dp=i(c),u._start=0,k||d(_)||d(S)){if(g=j.length,b=k&&et(k),a(k))for(v in k)~ri.indexOf(v)&&((w=w||{})[v]=k[v]);for(h=0;h<g;h++)(f=A(n,ai)).stagger=0,R&&(f.yoyoEase=R),w&&Se(f,w),y=j[h],f.duration=+si(_,i(c),h,y,j),f.delay=(+si(S,i(c),h,y,j)||0)-c._delay,!k&&1===g&&f.delay&&(c._delay=S=f.delay,c._start+=S,f.delay=0),u.to(y,f,b?b(h,y,j):0),u._ease=Be.none;u.duration()?_=S=0:c.timeline=0}else if(P){z(O(u.vars.defaults,{ease:"none"})),u._ease=We(P.ease||n.ease||"none");var I,F,H,B=0;if($(P))P.forEach((function(t){return u.to(j,t,">")})),u.duration();else{for(v in f={},P)"ease"===v||"easeEach"===v||ti(v,P[v],f,P.easeEach);for(v in f)for(I=f[v].sort((function(t,e){return t.t-e.t})),h=B=0;h<I.length;h++)(H={ease:(F=I[h]).e,duration:(F.t-(h?I[h-1].t:0))/100*_})[v]=F.v,u.to(j,H,B),B+=H.duration;u.duration()<_&&u.to({},{duration:_-u.duration()})}}_||c.duration(_=u.duration())}else c.timeline=0;return!0!==E||wt||(ei=i(c),_t.killTweensOf(j),ei=0),Y(D,i(c),o),n.reversed&&c.reverse(),n.paused&&c.paused(!0),(C||!_&&!P&&c._start===x(D._time)&&l(C)&&function t(e){return!e||e._ts&&t(e.parent)}(i(c))&&"nested"!==D.data)&&(c._tTime=-Kt,c.render(Math.max(0,-S)||0)),L&&W(i(c),L),c}e(o,t);var r=o.prototype;return r.render=function(t,e,i){var n,o,s,r,a,l,c,d,u,h=this._time,p=this._tDur,f=this._dur,g=t<0,m=p-Kt<t&&!g?p:t<Kt?0:t;if(f){if(m!==this._tTime||!t||i||!this._initted&&this._tTime||this._startAt&&this._zTime<0!=g||this._lazy){if(n=m,d=this.timeline,this._repeat){if(r=f+this._rDelay,this._repeat<-1&&g)return this.totalTime(100*r+t,e,i);if(n=x(m%r),m===p?(s=this._repeat,n=f):(s=~~(a=x(m/r)))&&s===a?(n=f,s--):f<n&&(n=f),(l=this._yoyo&&1&s)&&(u=this._yEase,n=f-n),a=Ce(this._tTime,r),n===h&&!i&&this._initted&&s===a)return this._tTime=m,this;s!==a&&(d&&this._yEase&>(d,l),this.vars.repeatRefresh&&!l&&!this._lock&&n!==r&&this._initted&&(this._lock=i=1,this.render(x(r*s),!0).invalidate()._lock=0))}if(!this._initted){if(X(this,g?t:n,i,e,m))return this._tTime=0,this;if(!(h===this._time||i&&this.vars.repeatRefresh&&s!==a))return this;if(f!==this._dur)return this.render(t,e,i)}if(this._tTime=m,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),!h&&m&&!e&&!a&&(ze(this,"onStart"),this._tTime!==m))return this;for(o=this._pt;o;)o.r(c,o.d),o=o._next;d&&d.render(t<0?t:d._dur*d._ease(n/this._dur),e,i)||this._startAt&&(this._zTime=t),this._onUpdate&&!e&&(g&&I(this,t,0,i),ze(this,"onUpdate")),this._repeat&&s!==a&&this.vars.onRepeat&&!e&&this.parent&&ze(this,"onRepeat"),m!==this._tDur&&m||this._tTime!==m||(g&&!this._onUpdate&&I(this,t,0,!0),!t&&f||!(m===this._tDur&&0<this._ts||!m&&this._ts<0)||D(this,1),e||g&&!h||!(m||h||l)||(ze(this,m===p?"onComplete":"onReverseComplete",!0),!this._prom||m<p&&0<this.timeScale()||this._prom()))}}else!function(t,e,i,n){var o,s,r,a=t.ratio,l=e<0||!e&&(!t._start&&function t(e){var i=e.parent;return i&&i._ts&&i._initted&&!i._lock&&(i.rawTime()<0||t(i))}(t)&&(t._initted||!ke(t))||(t._ts<0||t._dp._ts<0)&&!ke(t))?0:1,c=t._rDelay,d=0;if(c&&t._repeat&&(d=Oe(0,t._tDur,e),s=Ce(d,c),t._yoyo&&1&s&&(l=1-l),s!==Ce(t._tTime,c)&&(a=1-l,t.vars.repeatRefresh&&t._initted&&t.invalidate())),l!==a||xt||n||t._zTime===Kt||!e&&t._zTime){if(!t._initted&&X(t,e,n,i,d))return;for(r=t._zTime,t._zTime=e||(i?Kt:0),i=i||e&&!r,t.ratio=l,t._from&&(l=1-l),t._time=0,t._tTime=d,o=t._pt;o;)o.r(l,o.d),o=o._next;e<0&&I(t,e,0,!0),t._onUpdate&&!i&&ze(t,"onUpdate"),d&&t._repeat&&!i&&t.parent&&ze(t,"onRepeat"),(e>=t._tDur||e<0)&&t.ratio===l&&(l&&D(t,1),i||xt||(ze(t,l?"onComplete":"onReverseComplete",!0),t._prom&&t._prom()))}else t._zTime||(t._zTime=e)}(this,t,e,i);return this},r.targets=function(){return this._targets},r.invalidate=function(e){return e&&this.vars.runBackwards||(this._startAt=0),this._pt=this._op=this._onUpdate=this._lazy=this.ratio=0,this._ptLookup=[],this.timeline&&this.timeline.invalidate(e),t.prototype.invalidate.call(this,e)}
vendor: 4,347 bytes, line 8
8,r.resetTo=function(t,e,i,n,o){At||Fe.wake(),this._ts||this.play();var s=Math.min(this._dur,(this._dp._time-this._start)*this._ts);return this._initted||oi(this,s),function(t,e,i,n,o,s,r,a){var l,c,d,u,h=(t._pt&&t._ptCache||(t._ptCache={}))[e];if(!h)for(h=t._ptCache[e]=[],d=t._ptLookup,u=t._targets.length;u--;){if((l=d[u][e])&&l.d&&l.d._pt)for(l=l.d._pt;l&&l.p!==e&&l.fp!==e;)l=l._next;if(!l)return ii=1,t.vars[e]="+=0",oi(t,r),ii=0,a?p(e+" not eligible for reset"):1;h.push(l)}for(u=h.length;u--;)(l=(c=h[u])._pt||c).s=!n&&0!==n||o?l.s+(n||0)+s*l.c:n,l.c=i-l.s,c.e&&(c.e=w(i)+K(c.e)),c.b&&(c.b=l.s+K(c.b))}(this,t,e,i,n,this._ease(s/this._dur),s,o)?this.resetTo(t,e,i,n,1):(N(this,0),this.parent||L(this._dp,this,"_first","_last",this._dp._sort?"_start":0),this.render(0))},r.kill=function(t,e){if(void 0===e&&(e="all"),!(t||e&&"all"!==e))return this._lazy=this._pt=0,this.parent?lt(this):this.scrollTrigger&&this.scrollTrigger.kill(!!xt),this;if(this.timeline){var i=this.timeline.totalDuration();return this.timeline.killTweensOf(t,e,ei&&!0!==ei.vars.overwrite)._first||lt(this),this.parent&&i!==this.timeline.totalDuration()&&U(this,this._dur*this.timeline._tDur/i,0,1),this}var o,s,r,a,l,c,d,u=this._targets,h=t?Ae(t):u,p=this._ptLookup,f=this._pt;if((!e||"all"===e)&&function(t,e){for(var i=t.length,n=i===e.length;n&&i--&&t[i]===e[i];);return i<0}(u,h))return"all"===e&&(this._pt=0),lt(this);for(o=this._op=this._op||[],"all"!==e&&(n(e)&&(l={},b(e,(function(t){return l[t]=1})),e=l),e=function(t,e){var i,n,o,s,r=t[0]?v(t[0]).harness:0,a=r&&r.aliases;if(!a)return e;for(n in i=Se({},e),a)if(n in i)for(o=(s=a[n].split(",")).length;o--;)i[s[o]]=i[n];return i}(u,e)),d=u.length;d--;)if(~h.indexOf(u[d]))for(l in s=p[d],"all"===e?(o[d]=e,a=s,r={}):(r=o[d]=o[d]||{},a=e),a)(c=s&&s[l])&&("kill"in c.d&&!0!==c.d.kill(l)||R(this,c,"_pt"),delete s[l]),"all"!==r&&(r[l]=1);return this._initted&&!this._pt&&f&<(this),this},o.to=function(t,e,i){return new o(t,e,i)},o.from=function(t,e){return Z(1,arguments)},o.delayedCall=function(t,e,i,n){return new o(e,0,{immediateRender:!1,lazy:!1,overwrite:!1,delay:t,onComplete:e,onReverseComplete:e,onCompleteParams:i,onReverseCompleteParams:i,callbackScope:n})},o.fromTo=function(t,e,i){return Z(2,arguments)},o.set=function(t,e){return e.duration=0,e.repeatDelay||(e.repeat=0),new o(t,e)},o.killTweensOf=function(t,e,i){return _t.killTweensOf(t,e,i)},o}(Ge);function ci(t,e,i){return t.setAttribute(e,i)}function di(t,e,i,n){n.mSet(t,e,n.m.call(n.tween,i,n.mt),n)}O(li.prototype,{_targets:[],_lazy:0,_startAt:0,_op:0,_onInit:0}),b("staggerTo,staggerFrom,staggerFromTo",(function(t){li[t]=function(){var e=new Qe,i=Me.call(arguments,0);return i.splice("staggerFromTo"===t?5:4,0,0),e[t].apply(e,i)}}));var ui=function(t,e,i){return t[e]=i},hi=function(t,e,i){return t[e](i)},pi=function(t,e,i,n){return t[e](n.fp,i)},fi=function(t,e){return o(t[e])?hi:r(t[e])&&t.setAttribute?ci:ui},gi=function(t,e){return e.set(e.t,e.p,Math.round(1e6*(e.s+e.c*t))/1e6,e)},mi=function(t,e){return e.set(e.t,e.p,!!(e.s+e.c*t),e)},vi=function(t,e){var i=e._pt,n="";if(!t&&e.b)n=e.b;else if(1===t&&e.e)n=e.e;else{for(;i;)n=i.p+(i.m?i.m(i.s+i.c*t):Math.round(1e4*(i.s+i.c*t))/1e4)+n,i=i._next;n+=e.c}e.set(e.t,e.p,n,e)},yi=function(t,e){for(var i=e._pt;i;)i.r(t,i.d),i=i._next},bi=function(t,e,i,n){for(var o,s=this._pt;s;)o=s._next,s.p===n&&s.modifier(t,e,i),s=o},wi=function(t){for(var e,i,n=this._pt;n;)i=n._next,n.p===t&&!n.op||n.op===t?R(this,n,"_pt"):n.dep||(e=1),n=i;return!e},xi=function(t){for(var e,i,n,o,s=t._pt;s;){for(e=s._next,i=n;i&&i.pr>s.pr;)i=i._next;(s._prev=i?i._prev:o)?s._prev._next=s:n=s,(s._next=i)?i._prev=s:o=s,s=e}t._pt=n},Ti=(_i.prototype.modifier=function(t,e,i){this.mSet=this.mSet||this.set,this.set=di,this.m=t,this.mt=i,this.tween=e},_i);function _i(t,e,i,n,o,s,r,a,l){this.t=e,this.s=n,this.c=o,this.p=i,this.r=s||gi,this.d=r||this,this.set=a||ui,this.pr=l||0,(this._next=t)&&(t._prev=this)}function Si(t){return(Pi[t]||Oi).map((function(t){return t()}))}function Ci(){var t=Date.now(),e=[];2<t-Mi&&(Si("matchMediaInit"),Ei.forEach((function(t){var i,n,o,s,r=t.queries,a=t.conditions;for(n in r)(i=St.matchMedia(r[n]).matches)&&(o=1),i!==a[n]&&(a[n]=i,s=1);s&&(t.revert(),o&&e.push(t))})),Si("matchMediaRevert"),e.forEach((function(t){return t.onMatch(t,(function(e){return t.add(null,e)}))}
8)),Mi=t,Si("matchMedia"))}b(_e+"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(t){return me[t]=1})),he.TweenMax=he.TweenLite=li,he.TimelineLite=he.TimelineMax=Qe,_t=new Qe({sortChildren:!1,defaults:Zt,autoRemoveChildren:!0,id:"root",smoothChildTiming:!0}),Vt.stringFilter=ft;var ki,Ei=[],Pi={},Oi=[],Mi=0,Ai=0,$i=((ki=zi.prototype).add=function(t,e,i){function n(){var t,n=Tt,r=s.selector;return n&&n!==s&&n.data.push(s),i&&(s.selector=J(i)),Tt=s,o(t=e.apply(s,arguments))&&s._r.push(t),Tt=n,s.selector=r,s.isReverted=!1,t}o(t)&&(i=e,e=t,t=o);var s=this;return s.last=n,t===o?n(s,(function(t){return s.add(null,t)})):t?s[t]=n:n},ki.ignore=function(t){var e=Tt;Tt=null,t(this),Tt=e},ki.getTweens=function(){var t=[];return this.data.forEach((function(e){return e instanceof zi?t.push.apply(t,e.getTweens()):e instanceof li&&!(e.parent&&"nested"===e.parent.data)&&t.push(e)})),t},ki.clear=function(){this._r.length=this.data.length=0},ki.kill=function(t,e){var i=this;if(t?function(){for(var e,n=i.getTweens(),o=i.data.length;o--;)"isFlip"===(e=i.data[o]).data&&(e.revert(),e.getChildren(!0,!0,!1).forEach((function(t){return n.splice(n.indexOf(t),1)})));for(n.map((function(t){return{g:t._dur||t._delay||t._sat&&!t._sat.vars.immediateRender?t.globalTime(0):-1/0,t:t}})).sort((function(t,e){return e.g-t.g||-1/0})).forEach((function(e){return e.t.revert(t)})),o=i.data.length;o--;)(e=i.data[o])instanceof Qe?"nested"!==e.data&&(e.scrollTrigger&&e.scrollTrigger.revert(),e.kill()):e instanceof li||!e.revert||e.revert(t);i._r.forEach((function(e){return e(t,i)})),i.isReverted=!0}():this.data.forEach((function(t){return t.kill&&t.kill()})),this.clear(),e)for(var n=Ei.length;n--;)Ei[n].id===this.id&&Ei.splice(n,1)},ki.revert=function(t){this.kill(t||{})},zi);function zi(t,e){this.selector=e&&J(e),this.data=[],this._r=[],this.isReverted=!1,this.id=Ai++,t&&this.add(t)}var Li,Ri=((Li=Di.prototype).add=function(t,e,i){a(t)||(t={matches:t});var n,o,s,r=new $i(0,i||this.scope),l=r.conditions={};for(o in Tt&&!r.selector&&(r.selector=Tt.selector),this.contexts.push(r),e=r.add("onMatch",e),r.queries=t)"all"===o?s=1:(n=St.matchMedia(t[o]))&&(Ei.indexOf(r)<0&&Ei.push(r),(l[o]=n.matches)&&(s=1),n.addListener?n.addListener(Ci):n.addEventListener("change",Ci));return s&&e(r,(function(t){return r.add(null,t)})),this},Li.revert=function(t){this.kill(t||{})}
vendor: 4,556 bytes, line 8
8,Li.kill=function(t){this.contexts.forEach((function(e){return e.kill(t,!0)}))},Di);function Di(t){this.contexts=[],this.scope=t,Tt&&Tt.data.push(this)}var ji={registerPlugin:function(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];e.forEach((function(t){return ct(t)}))},timeline:function(t){return new Qe(t)},getTweensOf:function(t,e){return _t.getTweensOf(t,e)},getProperty:function(t,e,i,o){n(t)&&(t=Ae(t)[0]);var s=v(t||{}).get,r=i?P:E;return"native"===i&&(i=""),t?e?r((be[e]&&be[e].get||s)(t,e,i,o)):function(e,i,n){return r((be[e]&&be[e].get||s)(t,e,i,n))}:t},quickSetter:function(t,e,i){if(1<(t=Ae(t)).length){var n=t.map((function(t){return Hi.quickSetter(t,e,i)})),o=n.length;return function(t){for(var e=o;e--;)n[e](t)}}t=t[0]||{};var s=be[e],r=v(t),a=r.harness&&(r.harness.aliases||{})[e]||e,l=s?function(e){var n=new s;Mt._pt=0,n.init(t,i?e+i:e,Mt,0,[t]),n.render(1,n),Mt._pt&&yi(1,Mt)}:r.set(t,a);return s?l:function(e){return l(t,a,i?e+i:e,r,1)}},quickTo:function(t,e,i){function n(t,i,n){return s.resetTo(e,t,i,n)}var o,s=Hi.to(t,O(((o={})[e]="+=0.1",o.paused=!0,o.stagger=0,o),i||{}));return n.tween=s,n},isTweening:function(t){return 0<_t.getTweensOf(t,!0).length},defaults:function(t){return t&&t.ease&&(t.ease=We(t.ease,Zt.ease)),M(Zt,t||{})},config:function(t){return M(Vt,t||{})},registerEffect:function(t){var e=t.name,i=t.effect,n=t.plugins,o=t.defaults,s=t.extendTimeline;(n||"").split(",").forEach((function(t){return t&&!be[t]&&!he[t]&&p(e+" effect requires "+t+" plugin.")})),we[e]=function(t,e,n){return i(Ae(t),O(e||{},o),n)},s&&(Qe.prototype[e]=function(t,i,n){return this.add(we[e](t,a(i)?i:(n=i)&&{},this),n)})},registerEase:function(t,e){Be[t]=We(e)},parseEase:function(t,e){return arguments.length?We(t,e):Be},getById:function(t){return _t.getById(t)},exportRoot:function(t,e){void 0===t&&(t={});var i,n,o=new Qe(t);for(o.smoothChildTiming=l(t.smoothChildTiming),_t.remove(o),o._dp=0,o._time=o._tTime=_t._time,i=_t._first;i;)n=i._next,!e&&!i._dur&&i instanceof li&&i.vars.onComplete===i._targets[0]||Y(o,i,i._start-i._delay),i=n;return Y(_t,o,0),o},context:function(t,e){return t?new $i(t,e):Tt},matchMedia:function(t){return new Ri(t)},matchMediaRefresh:function(){return Ei.forEach((function(t){var e,i,n=t.conditions;for(i in n)n[i]&&(n[i]=!1,e=1);e&&t.revert()}))||Ci()},addEventListener:function(t,e){var i=Pi[t]||(Pi[t]=[]);~i.indexOf(e)||i.push(e)},removeEventListener:function(t,e){var i=Pi[t],n=i&&i.indexOf(e);0<=n&&i.splice(n,1)},utils:{wrap:function t(e,i,n){var o=i-e;return $(e)?st(e,t(0,e.length),i):G(n,(function(t){return(o+(t-e)%o)%o+e}))},wrapYoyo:function t(e,i,n){var o=i-e,s=2*o;return $(e)?st(e,t(0,e.length-1),i):G(n,(function(t){return e+(o<(t=(s+(t-e)%s)%s||0)?s-t:t)}))},distribute:et,random:ot,snap:nt,normalize:function(t,e,i){return $e(t,e,0,1,i)},getUnit:K,clamp:function(t,e,i){return G(i,(function(i){return Oe(t,e,i)}))},splitColor:ut,toArray:Ae,selector:J,mapRange:$e,pipe:function(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];return function(t){return e.reduce((function(t,e){return e(t)}),t)}},unitize:function(t,e){return function(i){return t(parseFloat(i))+(e||K(i))}},interpolate:function t(e,i,o,s){var r=isNaN(e+i)?0:function(t){return(1-t)*e+t*i};if(!r){var a,l,c,d,u,h=n(e),p={};if(!0===o&&(s=1)&&(o=null),h)e={p:e},i={p:i};else if($(e)&&!$(i)){for(c=[],d=e.length,u=d-2,l=1;l<d;l++)c.push(t(e[l-1],e[l]));d--,r=function(t){t*=d;var e=Math.min(u,~~t);return c[e](t-e)},o=i}else s||(e=Se($(e)?[]:{},e));if(!c){for(a in i)ni.call(p,e,a,"get",i[a]);r=function(t){return yi(t,p)||(h?e.p:e)}}}return G(o,r)},shuffle:tt},install:u,effects:we,ticker:Fe,updateRoot:Qe.updateRoot,plugins:be,globalTimeline:_t,core:{PropTween:Ti,globals:f,Tween:li,Timeline:Qe,Animation:Ge,getCache:v,_removeLinkedListItem:R,reverting:function(){return xt},context:function(t){return t&&Tt&&(Tt.data.push(t),t._ctx=Tt),Tt},suppressOverwrites:function(t){return wt=t}}};function Ii(t,e){for(var i=t._pt;i&&i.p!==e&&i.op!==e&&i.fp!==e;)i=i._next;return i}function Fi(t,e){return{name:t,headless:1,rawVars:1,init:function(t,i,o){o._onInit=function(t){var o,s;if(n(i)&&(o={},b(i,(function(t){return o[t]=1})),i=o),e){for(s in o={},i)o[s]=e(i[s]);i=o}!function(t,e){var i,n,o,s=t._targets;for(i in e)for(n=s.length;n--;)(o=(o=t._ptLookup[n][i])&&o.d)&&(o._pt&&(o=Ii(o,i)),o&&o.modifier&&o.modifier(e[i],t,s[n],i))}(t,i)}}}}b("to,from,fromTo,delayedCall,set,killTweensOf",(function(t){return ji[t]=li[t]})),Fe.add(Qe.updateRoot),Mt=ji.to({},{duration:0});
vendor: 14,390 bytes, lines 8-9
8var Hi=ji.registerPlugin({name:"attr",init:function(t,e,i,n,o){var s,r,a;for(s in this.tween=i,e)a=t.getAttribute(s)||"",(r=this.add(t,"setAttribute",(a||0)+"",e[s],n,o,0,0,s)).op=s,r.b=a,this._props.push(s)},render:function(t,e){for(var i=e._pt;i;)xt?i.set(i.t,i.p,i.b,i):i.r(t,i.d),i=i._next}},{name:"endArray",headless:1,init:function(t,e){for(var i=e.length;i--;)this.add(t,i,t[i]||0,e[i],0,0,0,0,0,1)}},Fi("roundProps",it),Fi("modifiers"),Fi("snap",nt))||ji;function Bi(t,e){return e.set(e.t,e.p,Math.round(1e4*(e.s+e.c*t))/1e4+e.u,e)}function Ni(t,e){return e.set(e.t,e.p,1===t?e.e:Math.round(1e4*(e.s+e.c*t))/1e4+e.u,e)}function qi(t,e){return e.set(e.t,e.p,t?Math.round(1e4*(e.s+e.c*t))/1e4+e.u:e.b,e)}function Yi(t,e){var i=e.s+e.c*t;e.set(e.t,e.p,~~(i+(i<0?-.5:.5))+e.u,e)}function Wi(t,e){return e.set(e.t,e.p,t?e.e:e.b,e)}function Xi(t,e){return e.set(e.t,e.p,1!==t?e.b:e.e,e)}function Ui(t,e,i){return t.style[e]=i}function Vi(t,e,i){return t.style.setProperty(e,i)}function Zi(t,e,i){return t._gsap[e]=i}function Gi(t,e,i){return t._gsap.scaleX=t._gsap.scaleY=i}function Ki(t,e,i,n,o){var s=t._gsap;s.scaleX=s.scaleY=i,s.renderTransform(o,s)}function Qi(t,e,i,n,o){var s=t._gsap;s[e]=i,s.renderTransform(o,s)}function Ji(t,e){var i=this,n=this.target,o=n.style,s=n._gsap;if(t in Kn&&o){if(this.tfm=this.tfm||{},"transform"===t)return oo.transform.split(",").forEach((function(t){return Ji.call(i,t,e)}));if(~(t=oo[t]||t).indexOf(",")?t.split(",").forEach((function(t){return i.tfm[t]=ho(n,t)})):this.tfm[t]=s.x?s[t]:ho(n,t),t===ro&&(this.tfm.zOrigin=s.zOrigin),0<=this.props.indexOf(so))return;s.svg&&(this.svgo=n.getAttribute("data-svg-origin"),this.props.push(ro,e,"")),t=so}(o||e)&&this.props.push(t,e,o[t])}function tn(t){t.translate&&(t.removeProperty("translate"),t.removeProperty("scale"),t.removeProperty("rotate"))}function en(){var t,e,i=this.props,n=this.target,o=n.style,s=n._gsap;for(t=0;t<i.length;t+=3)i[t+1]?2===i[t+1]?n[i[t]](i[t+2]):n[i[t]]=i[t+2]:i[t+2]?o[i[t]]=i[t+2]:o.removeProperty("--"===i[t].substr(0,2)?i[t]:i[t].replace(eo,"-$1").toLowerCase());if(this.tfm){for(e in this.tfm)s[e]=this.tfm[e];s.svg&&(s.renderTransform(),n.setAttribute("data-svg-origin",this.svgo||"")),(t=An())&&t.isStart||o[so]||(tn(o),s.zOrigin&&o[ro]&&(o[ro]+=" "+s.zOrigin+"px",s.zOrigin=0,s.renderTransform()),s.uncache=1)}}function nn(t,e){var i={target:t,props:[],revert:en,save:Ji};return t._gsap||Hi.core.getCache(t),e&&t.style&&t.nodeType&&e.split(",").forEach((function(t){return i.save(t)})),i}function on(t,e){var i=kn.createElementNS?kn.createElementNS((e||"http://www.w3.org/1999/xhtml").replace(/^https/,"http"),t):kn.createElement(t);return i&&i.style?i:kn.createElement(t)}function sn(t,e,i){var n=getComputedStyle(t);return n[e]||n.getPropertyValue(e.replace(eo,"-$1").toLowerCase())||n.getPropertyValue(e)||!i&&sn(t,lo(e)||e,1)||""}function rn(){"undefined"!=typeof window&&window.document&&(Cn=window,kn=Cn.document,En=kn.documentElement,On=on("div")||{style:{}},on("div"),so=lo(so),ro=so+"Origin",On.style.cssText="border-width:0;line-height:0;position:absolute;padding:0",$n=!!lo("perspective"),An=Hi.core.reverting,Pn=1)}function an(t){var e,i=t.ownerSVGElement,n=on("svg",i&&i.getAttribute("xmlns")||"http://www.w3.org/2000/svg"),o=t.cloneNode(!0);o.style.display="block",n.appendChild(o),En.appendChild(n);try{e=o.getBBox()}catch(t){}return n.removeChild(o),En.removeChild(n),e}function ln(t,e){for(var i=e.length;i--;)if(t.hasAttribute(e[i]))return t.getAttribute(e[i])}function cn(t){var e,i;try{e=t.getBBox()}catch(n){e=an(t),i=1}return e&&(e.width||e.height)||i||(e=an(t)),!e||e.width||e.x||e.y?e:{x:+ln(t,["x","cx","x1"])||0,y:+ln(t,["y","cy","y1"])||0,width:0,height:0}}function dn(t){return!(!t.getCTM||t.parentNode&&!t.ownerSVGElement||!cn(t))}function un(t,e){if(e){var i,n=t.style;e in Kn&&e!==ro&&(e=so),n.removeProperty?("ms"!==(i=e.substr(0,2))&&"webkit"!==e.substr(0,6)||(e="-"+e),n.removeProperty("--"===i?e:e.replace(eo,"-$1").toLowerCase())):n.removeAttribute(e)}}function hn(t,e,i,n,o,s){var r=new Ti(t._pt,e,i,0,1,s?Xi:Wi);return(t._pt=r).b=n,r.e=o,t._props.push(i),r}function pn(t,e,i,n){var o,s,r,a,l=parseFloat(i)||0,c=(i+"").trim().substr((l+"").length)||"px",d=On.style,u=io.test(e),h="svg"===t.tagName.toLowerCase(),p=(h?"client":"offset")+(u?"Width":"Height"),f="px"===n,g="%"===n;if(n===c||!l||co[n]||co[c])return l;if("px"===c||f||(l=pn(t,e,i,"px")),a=t.getCTM&&dn(t),(g||"%"===c)&&(Kn[e]||~e.indexOf("adius")))return o=a?t.getBBox()[u?"width":"height"]:t[p],w(g?l/o*100:l/100*o);if(d[u?"width":"height"]=100+(f?c:n),s="rem"!==n&&~e.indexOf("adius")||"em"===n&&t.appendChild&&!h?t:t.parentNode,a&&(s=(t.ownerSVGElement||{}).parentNode),s&&s!==kn&&s.appendChild||(s=kn.body),(r=s._gsap)&&g&&r.width&&u&&r.time===Fe.time&&!r.uncache)return w(l/r.width*100);if(!g||"height"!==e&&"width"!==e)!g&&"%"!==c||uo[sn(s,"display")]||(d.position=sn(t,"position")),s===t&&(d.position="static"),s.appendChild(On),o=On[p],s.removeChild(On),d.position="absolute";else{var m=t.style[e];t.style[e]=100+n,o=t[p],m?t.style[e]=m:un(t,e)}return u&&g&&((r=v(s)).time=Fe.time,r.width=s[p]),w(f?o*l/100:o&&l?100/o*l:0)}function fn(t,e,i,n){if(!i||"none"===i){ 9var o=lo(e,t,1),s=o&&sn(t,o,1);s&&s!==i?(e=o,i=s):"borderColor"===e&&(i=sn(t,"borderTopColor"))}var r,a,l,c,d,u,h,p,f,g,m,v=new Ti(this._pt,t.style,e,0,1,vi),y=0,b=0;if(v.b=i,v.e=n,i+="","var(--"===(n+="").substring(0,6)&&(n=sn(t,n.substring(4,n.indexOf(")")))),"auto"===n&&(u=t.style[e],t.style[e]=n,n=sn(t,e)||n,u?t.style[e]=u:un(t,e)),ft(r=[i,n]),n=r[1],l=(i=r[0]).match(ae)||[],(n.match(ae)||[]).length){for(;a=ae.exec(n);)h=a[0],f=n.substring(y,a.index),d?d=(d+1)%5:"rgba("!==f.substr(-5)&&"hsla("!==f.substr(-5)||(d=1),h!==(u=l[b++]||"")&&(c=parseFloat(u)||0,m=u.substr((c+"").length),"="===h.charAt(1)&&(h=T(c,h)+m),p=parseFloat(h),g=h.substr((p+"").length),y=ae.lastIndex-g.length,g||(g=g||Vt.units[e]||m,y===n.length&&(n+=g,v.e+=g)),m!==g&&(c=pn(t,e,u,g)||0),v._pt={_next:v._pt,p:f||1===b?f:",",s:c,c:p-c,m:d&&d<4||"zIndex"===e?Math.round:0});v.c=y<n.length?n.substring(y,n.length):""}else v.r="display"===e&&"none"===n?Xi:Wi;return ce.test(n)&&(v.e=0),this._pt=v}function gn(t){var e=t.split(" "),i=e[0],n=e[1]||"50%";return"top"!==i&&"bottom"!==i&&"left"!==n&&"right"!==n||(t=i,i=n,n=t),e[0]=po[i]||i,e[1]=po[n]||n,e.join(" ")}function mn(t,e){if(e.tween&&e.tween._time===e.tween._dur){var i,n,o,s=e.t,r=s.style,a=e.u,l=s._gsap;if("all"===a||!0===a)r.cssText="",n=1;else for(o=(a=a.split(",")).length;-1<--o;)i=a[o],Kn[i]&&(n=1,i="transformOrigin"===i?ro:so),un(s,i);n&&(un(s,so),l&&(l.svg&&s.removeAttribute("transform"),r.scale=r.rotate=r.translate="none",vo(s,1),l.uncache=1,tn(r)))}}function vn(t){return"matrix(1, 0, 0, 1, 0, 0)"===t||"none"===t||!t}function yn(t){var e=sn(t,so);return vn(e)?go:e.substr(7).match(re).map(w)}function bn(t,e){var i,n,o,s,r=t._gsap||v(t),a=t.style,l=yn(t);return r.svg&&t.getAttribute("transform")?"1,0,0,1,0,0"===(l=[(o=t.transform.baseVal.consolidate().matrix).a,o.b,o.c,o.d,o.e,o.f]).join(",")?go:l:(l!==go||t.offsetParent||t===En||r.svg||(o=a.display,a.display="block",(i=t.parentNode)&&(t.offsetParent||t.getBoundingClientRect().width)||(s=1,n=t.nextElementSibling,En.appendChild(t)),l=yn(t),o?a.display=o:un(t,"display"),s&&(n?i.insertBefore(t,n):i?i.appendChild(t):En.removeChild(t))),e&&6<l.length?[l[0],l[1],l[4],l[5],l[12],l[13]]:l)}function wn(t,e,i,n,o,s){var r,a,l,c=t._gsap,d=o||bn(t,!0),u=c.xOrigin||0,h=c.yOrigin||0,p=c.xOffset||0,f=c.yOffset||0,g=d[0],m=d[1],v=d[2],y=d[3],b=d[4],w=d[5],x=e.split(" "),T=parseFloat(x[0])||0,_=parseFloat(x[1])||0;i?d!==go&&(a=g*y-m*v)&&(l=T*(-m/a)+_*(g/a)-(g*w-m*b)/a,T=T*(y/a)+_*(-v/a)+(v*w-y*b)/a,_=l):(T=(r=cn(t)).x+(~x[0].indexOf("%")?T/100*r.width:T),_=r.y+(~(x[1]||x[0]).indexOf("%")?_/100*r.height:_)),n||!1!==n&&c.smooth?(b=T-u,w=_-h,c.xOffset=p+(b*g+w*v)-b,c.yOffset=f+(b*m+w*y)-w):c.xOffset=c.yOffset=0,c.xOrigin=T,c.yOrigin=_,c.smooth=!!n,c.origin=e,c.originIsAbsolute=!!i,t.style[ro]="0px 0px",s&&(hn(s,c,"xOrigin",u,T),hn(s,c,"yOrigin",h,_),hn(s,c,"xOffset",p,c.xOffset),hn(s,c,"yOffset",f,c.yOffset)),t.setAttribute("data-svg-origin",T+" "+_)}function xn(t,e,i){var n=K(e);return w(parseFloat(e)+parseFloat(pn(t,"x",i+"px",n)))+n}function Tn(t,e,i,o,s){var r,a,l=360,c=n(s),d=parseFloat(s)*(c&&~s.indexOf("rad")?Qn:1)-o,u=o+d+"deg";return c&&("short"===(r=s.split("_")[1])&&(d%=l)!=d%180&&(d+=d<0?l:-l),"cw"===r&&d<0?d=(d+36e9)%l-~~(d/l)*l:"ccw"===r&&0<d&&(d=(d-36e9)%l-~~(d/l)*l)),t._pt=a=new Ti(t._pt,e,i,o,d,Ni),a.e=u,a.u="deg",t._props.push(i),a}function _n(t,e){for(var i in e)t[i]=e[i];return t}function Sn(t,e,i){var n,o,s,r,a,l,c,d=_n({},i._gsap),u=i.style;for(o in d.svg?(s=i.getAttribute("transform"),i.setAttribute("transform",""),u[so]=e,n=vo(i,1),un(i,so),i.setAttribute("transform",s)):(s=getComputedStyle(i)[so],u[so]=e,n=vo(i,1),u[so]=s),Kn)(s=d[o])!==(r=n[o])&&"perspective,force3D,transformOrigin,svgOrigin".indexOf(o)<0&&(a=K(s)!==(c=K(r))?pn(i,o,s,c):parseFloat(s),l=parseFloat(r),t._pt=new Ti(t._pt,n,o,a,l-a,Bi),t._pt.u=c||0,t._props.push(o));_n(n,d)}li.version=Qe.version=Hi.version="3.13.0",Pt=1,c()&&He();var Cn,kn,En,Pn,On,Mn,An,$n,zn=Be.Power0,Ln=Be.Power1,Rn=Be.Power2,Dn=Be.Power3,jn=Be.Power4,In=Be.Linear,Fn=Be.Quad,Hn=Be.Cubic,Bn=Be.Quart,Nn=Be.Quint,qn=Be.Strong,Yn=Be.Elastic,Wn=Be.Back,Xn=Be.SteppedEase,Un=Be.Bounce,Vn=Be.Sine,Zn=Be.Expo,Gn=Be.Circ,Kn={},Qn=180/Math.PI,Jn=Math.PI/180,to=Math.atan2,eo=/([A-Z])/g,io=/(left|right|width|margin|padding|x)/i,no=/[\s,\(]\S/,oo={autoAlpha:"opacity,visibility",scale:"scaleX,scaleY",alpha:"opacity"},so="transform",ro=so+"Origin",ao="O,Moz,ms,Ms,Webkit".split(","),lo=function(t,e,i){var n=(e||On).style,o=5;if(t in n&&!i)return t;for(t=t.charAt(0).toUpperCase()+t.substr(1);o--&&!(ao[o]+t in n););return o<0?null:(3===o?"ms":0<=o?ao[o]:"")+t},co={deg:1,rad:1,turn:1},uo={grid:1,flex:1},ho=function(t,e,i,n){var o;return Pn||rn(),e in oo&&"transform"!==e&&~(e=oo[e]).indexOf(",")&&(e=e.split(",")[0]),Kn[e]&&"transform"!==e?(o=vo(t,n),o="transformOrigin"!==e?o[e]:o.svg?o.origin:yo(sn(t,ro))+" "+o.zOrigin+"px"):(o=t.style[e])&&"auto"!==o&&!n&&!~(o+"").indexOf("calc(")||(o=fo[e]&&fo[e](t,e,i)||sn(t,e)||y(t,e)||("opacity"===e?1:0)),i&&!~(o+"").trim().indexOf(" ")?pn(t,e,o,i)+i:o},po={top:"0%",bottom:"100%",left:"0%",right:"100%",center:"50%"},fo={clearProps:function(t,e,i,n,o){if("isFromStart"!==o.data){var s=t._pt=new Ti(t._pt,e,i,0,0,mn);return s.u=n,s.pr=-10,s.tween=o,t._props.push(i),1}}},go=[1,0,0,1,0,0],mo={},vo=function(t,e){var i=t._gsap||new Ze(t);if("x"in i&&!e&&!i.uncache)return i;var n,o,s,r,a,l,c,d,u,h,p,f,g,m,v,y,b,x,T,_,S,C,k,E,P,O,M,A,z,L,R,D,j=t.style,I=i.scaleX<0,F="deg",H=getComputedStyle(t),B=sn(t,ro)||"0";return n=o=s=l=c=d=u=h=p=0,r=a=1,i.svg=!(!t.getCTM||!dn(t)),H.translate&&("none"===H.translate&&"none"===H.scale&&"none"===H.rotate||(j[so]=("none"!==H.translate?"translate3d("+(H.translate+" 0 0").split(" ").slice(0,3).join(", ")+") ":"")+("none"!==H.rotate?"rotate("+H.rotate+") ":"")+("none"!==H.scale?"scale("+H.scale.split(" ").join(",")+") ":"")+("none"!==H[so]?H[so]:"")),j.scale=j.rotate=j.translate="none"),m=bn(t,i.svg),i.svg&&(E=i.uncache?(P=t.getBBox(),B=i.xOrigin-P.x+"px "+(i.yOrigin-P.y)+"px",""):!e&&t.getAttribute("data-svg-origin"),wn(t,E||B,!!E||i.originIsAbsolute,!1!==i.smooth,m)),f=i.xOrigin||0,g=i.yOrigin||0,m!==go&&(x=m[0],T=m[1],_=m[2],S=m[3],n=C=m[4],o=k=m[5],6===m.length?(r=Math.sqrt(x*x+T*T),a=Math.sqrt(S*S+_*_),l=x||T?to(T,x)*Qn:0,(u=_||S?to(_,S)*Qn+l:0)&&(a*=Math.abs(Math.cos(u*Jn))),i.svg&&(n-=f-(f*x+g*_),o-=g-(f*T+g*S))):(D=m[6],L=m[7],M=m[8],A=m[9],z=m[10],R=m[11],n=m[12],o=m[13],s=m[14],c=(v=to(D,z))*Qn,v&&(E=C*(y=Math.cos(-v))+M*(b=Math.sin(-v)),P=k*y+A*b,O=D*y+z*b,M=C*-b+M*y,A=k*-b+A*y,z=D*-b+z*y,R=L*-b+R*y,C=E,k=P,D=O),d=(v=to(-_,z))*Qn,v&&(y=Math.cos(-v),R=S*(b=Math.sin(-v))+R*y,x=E=x*y-M*b,T=P=T*y-A*b,_=O=_*y-z*b),l=(v=to(T,x))*Qn,v&&(E=x*(y=Math.cos(v))+T*(b=Math.sin(v)),P=C*y+k*b,T=T*y-x*b,k=k*y-C*b,x=E,C=P),c&&359.9<Math.abs(c)+Math.abs(l)&&(c=l=0,d=180-d),r=w(Math.sqrt(x*x+T*T+_*_)),a=w(Math.sqrt(k*k+D*D)),v=to(C,k),u=2e-4<Math.abs(v)?v*Qn:0,p=R?1/(R<0?-R:R):0),i.svg&&(E=t.getAttribute("transform"),i.forceCSS=t.setAttribute("transform","")||!vn(sn(t,so)),E&&t.setAttribute("transform",E))),90<Math.abs(u)&&Math.abs(u)<270&&(I?(r*=-1,u+=l<=0?180:-180,l+=l<=0?180:-180):(a*=-1,u+=u<=0?180:-180)),e=e||i.uncache,i.x=n-((i.xPercent=n&&(!e&&i.xPercent||(Math.round(t.offsetWidth/2)===Math.round(-n)?-50:0)))?t.offsetWidth*i.xPercent/100:0)+"px",i.y=o-((i.yPercent=o&&(!e&&i.yPercent||(Math.round(t.offsetHeight/2)===Math.round(-o)?-50:0)))?t.offsetHeight*i.yPercent/100:0)+"px",i.z=s+"px",i.scaleX=w(r),i.scaleY=w(a),i.rotation=w(l)+F,i.rotationX=w(c)+F,i.rotationY=w(d)+F,i.skewX=u+F,i.skewY=h+F,i.transformPerspective=p+"px",(i.zOrigin=parseFloat(B.split(" ")[2])||!e&&i.zOrigin||0)&&(j[ro]=yo(B)),i.xOffset=i.yOffset=0,i.force3D=Vt.force3D,i.renderTransform=i.svg?So:$n?_o:bo,i.uncache=0,i},yo=function(t){return(t=t.split(" "))[0]+" "+t[1]},bo=function(t,e){e.z="0px",e.rotationY=e.rotationX="0deg",e.force3D=0,_o(t,e)},wo="0deg",xo="0px",To=") ",_o=function(t,e){var i=e||this,n=i.xPercent,o=i.yPercent,s=i.x,r=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,g=i.transformPerspective,m=i.force3D,v=i.target,y=i.zOrigin,b="",w="auto"===m&&t&&1!==t||!0===m;if(y&&(d!==wo||c!==wo)){var x,T=parseFloat(c)*Jn,_=Math.sin(T),S=Math.cos(T);T=parseFloat(d)*Jn,s=xn(v,s,_*(x=Math.cos(T))*-y),r=xn(v,r,-Math.sin(T)*-y),a=xn(v,a,S*x*-y+y)}g!==xo&&(b+="perspective("+g+To),(n||o)&&(b+="translate("+n+"%, "+o+"%) "),!w&&s===xo&&r===xo&&a===xo||(b+=a!==xo||w?"translate3d("+s+", "+r+", "+a+") ":"translate("+s+", "+r+To),l!==wo&&(b+="rotate("+l+To),c!==wo&&(b+="rotateY("+c+To),d!==wo&&(b+="rotateX("+d+To),u===wo&&h===wo||(b+="skew("+u+", "+h+To),1===p&&1===f||(b+="scale("+p+", "+f+To),v.style[so]=b||"translate(0, 0)"},So=function(t,e){var i,n,o,s,r,a=e||this,l=a.xPercent,c=a.yPercent,d=a.x,u=a.y,h=a.rotation,p=a.skewX,f=a.skewY,g=a.scaleX,m=a.scaleY,v=a.target,y=a.xOrigin,b=a.yOrigin,x=a.xOffset,T=a.yOffset,_=a.forceCSS,S=parseFloat(d),C=parseFloat(u);h=parseFloat(h),p=parseFloat(p),(f=parseFloat(f))&&(p+=f=parseFloat(f),h+=f),h||p?(h*=Jn,p*=Jn,i=Math.cos(h)*g,n=Math.sin(h)*g,o=Math.sin(h-p)*-m,s=Math.cos(h-p)*m,p&&(f*=Jn,r=Math.tan(p-f),o*=r=Math.sqrt(1+r*r),s
vendor: 5,100 bytes, line 9
9*=r,f&&(r=Math.tan(f),i*=r=Math.sqrt(1+r*r),n*=r)),i=w(i),n=w(n),o=w(o),s=w(s)):(i=g,s=m,n=o=0),(S&&!~(d+"").indexOf("px")||C&&!~(u+"").indexOf("px"))&&(S=pn(v,"x",d,"px"),C=pn(v,"y",u,"px")),(y||b||x||T)&&(S=w(S+y-(y*i+b*o)+x),C=w(C+b-(y*n+b*s)+T)),(l||c)&&(S=w(S+l/100*(r=v.getBBox()).width),C=w(C+c/100*r.height)),r="matrix("+i+","+n+","+o+","+s+","+S+","+C+")",v.setAttribute("transform",r),_&&(v.style[so]=r)};b("padding,margin,Width,Radius",(function(t,e){var i="Right",n="Bottom",o="Left",s=(e<3?["Top",i,n,o]:["Top"+o,"Top"+i,n+i,n+o]).map((function(i){return e<2?t+i:"border"+i+t}));fo[1<e?"border"+t:t]=function(t,e,i,n,o){var r,a;if(arguments.length<4)return r=s.map((function(e){return ho(t,e,i)})),5===(a=r.join(" ")).split(r[0]).length?r[0]:a;r=(n+"").split(" "),a={},s.forEach((function(t,e){return a[t]=r[e]=r[e]||r[(e-1)/2|0]})),t.init(e,a,o)}}));var Co,ko,Eo={name:"css",register:rn,targetTest:function(t){return t.style&&t.nodeType},init:function(t,e,i,o,s){var r,a,l,c,d,u,p,f,g,m,v,y,b,w,x,_,S=this._props,C=t.style,k=i.vars.startAt;for(p in Pn||rn(),this.styles=this.styles||nn(t),_=this.styles.props,this.tween=i,e)if("autoRound"!==p&&(a=e[p],!be[p]||!Je(p,e,i,o,t,s)))if(d=typeof a,u=fo[p],"function"===d&&(d=typeof(a=a.call(i,o,t,s))),"string"===d&&~a.indexOf("random(")&&(a=rt(a)),u)u(this,t,p,a,i)&&(x=1);else if("--"===p.substr(0,2))r=(getComputedStyle(t).getPropertyValue(p)+"").trim(),a+="",je.lastIndex=0,je.test(r)||(f=K(r),g=K(a)),g?f!==g&&(r=pn(t,p,r,g)+g):f&&(a+=f),this.add(C,"setProperty",r,a,o,s,0,0,p),S.push(p),_.push(p,0,C[p]);else if("undefined"!==d){if(k&&p in k?(n(r="function"==typeof k[p]?k[p].call(i,o,t,s):k[p])&&~r.indexOf("random(")&&(r=rt(r)),K(r+"")||"auto"===r||(r+=Vt.units[p]||K(ho(t,p))||""),"="===(r+"").charAt(1)&&(r=ho(t,p))):r=ho(t,p),c=parseFloat(r),(m="string"===d&&"="===a.charAt(1)&&a.substr(0,2))&&(a=a.substr(2)),l=parseFloat(a),p in oo&&("autoAlpha"===p&&(1===c&&"hidden"===ho(t,"visibility")&&l&&(c=0),_.push("visibility",0,C.visibility),hn(this,C,"visibility",c?"inherit":"hidden",l?"inherit":"hidden",!l)),"scale"!==p&&"transform"!==p&&~(p=oo[p]).indexOf(",")&&(p=p.split(",")[0])),v=p in Kn)if(this.styles.save(p),"string"===d&&"var(--"===a.substring(0,6)&&(a=sn(t,a.substring(4,a.indexOf(")"))),l=parseFloat(a)),y||((b=t._gsap).renderTransform&&!e.parseTransform||vo(t,e.parseTransform),w=!1!==e.smoothOrigin&&b.smooth,(y=this._pt=new Ti(this._pt,C,so,0,1,b.renderTransform,b,0,-1)).dep=1),"scale"===p)this._pt=new Ti(this._pt,b,"scaleY",b.scaleY,(m?T(b.scaleY,m+l):l)-b.scaleY||0,Bi),this._pt.u=0,S.push("scaleY",p),p+="X";else{if("transformOrigin"===p){_.push(ro,0,C[ro]),a=gn(a),b.svg?wn(t,a,0,w,0,this):((g=parseFloat(a.split(" ")[2])||0)!==b.zOrigin&&hn(this,b,"zOrigin",b.zOrigin,g),hn(this,C,p,yo(r),yo(a)));continue}if("svgOrigin"===p){wn(t,a,1,w,0,this);continue}if(p in mo){Tn(this,b,p,c,m?T(c,m+a):a);continue}if("smoothOrigin"===p){hn(this,b,"smooth",b.smooth,a);continue}if("force3D"===p){b[p]=a;continue}if("transform"===p){Sn(this,a,t);continue}}else p in C||(p=lo(p)||p);if(v||(l||0===l)&&(c||0===c)&&!no.test(a)&&p in C)l=l||0,(f=(r+"").substr((c+"").length))!==(g=K(a)||(p in Vt.units?Vt.units[p]:f))&&(c=pn(t,p,r,g)),this._pt=new Ti(this._pt,v?b:C,p,c,(m?T(c,m+l):l)-c,v||"px"!==g&&"zIndex"!==p||!1===e.autoRound?Bi:Yi),this._pt.u=g||0,f!==g&&"%"!==g&&(this._pt.b=r,this._pt.r=qi);else if(p in C)fn.call(this,t,p,r,m?m+a:a);else if(p in t)this.add(t,p,r||t[p],m?m+a:a,o,s);else if("parseTransform"!==p){h(p,a);continue}v||(p in C?_.push(p,0,C[p]):"function"==typeof t[p]?_.push(p,2,t[p]()):_.push(p,1,r||t[p])),S.push(p)}x&&xi(this)},render:function(t,e){if(e.tween._time||!An())for(var i=e._pt;i;)i.r(t,i.d),i=i._next;else e.styles.revert()},get:ho,aliases:oo,getSetter:function(t,e,i){var n=oo[e];return n&&n.indexOf(",")<0&&(e=n),e in Kn&&e!==ro&&(t._gsap.x||ho(t,"x"))?i&&Mn===i?"scale"===e?Gi:Zi:(Mn=i||{})&&("scale"===e?Ki:Qi):t.style&&!r(t.style[e])?Ui:~e.indexOf("-")?Vi:fi(t,e)},core:{_removeProperty:un,_getMatrix:bn}};Hi.utils.checkPrefix=lo,Hi.core.getStyleSaver=nn,ko=b("x,y,z,scale,scaleX,scaleY,xPercent,yPercent"+","+(Co="rotation,rotationX,rotationY,skewX,skewY")+",transform,transformOrigin,svgOrigin,force3D,smoothOrigin,transformPerspective",(function(t){Kn[t]=1})),b(Co,(function(t){Vt.units[t]="deg",mo[t]=1})),oo[ko[13]]="x,y,z,scale,scaleX,scaleY,xPercent,yPercent,"+Co,b("0:translateX,1:translateY,2:translateZ,8:rotate,8:rotationZ,8:rotateZ,9:rotateX,10:rotateY",(function(t){var e=t.split(":");oo[e[1]]=ko[e[0]]})),b("x,y,z,top,right,bottom,left,width,height,fontSize,padding,margin,perspective",(function(t){Vt.units[t]="px"})),Hi.registerPlugin(Eo);var Po=Hi.registerPlugin(Eo)||Hi,Oo=Po.core.Tween;t.Back=Wn,t.Bounce=Un,t.CSSPlugin=Eo,t.Circ=Gn,t.Cubic=Hn,t.Elastic=Yn,t.Expo=Zn,t.Linear=In,t.Power0=zn,t.Power1=Ln,t.Power2=Rn,t.Power3=Dn,t.Power4=jn,t.Quad=Fn,t.Quart=Bn,t.Quint=Nn,t.Sine=Vn,t.SteppedEase=Xn,t.Strong=qn,t.TimelineLite=Qe,t.TimelineMax=Qe,t.TweenLite=li,t.TweenMax=Oo,t.default=Po,t.gsap=Po,"undefined"==typeof window||window!==t?Object.defineProperty(t,"__esMo
9dule",{value:!0}):delete t.default})),function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e((t=t||self).window=t.window||{})}(this,(function(t){"use strict";function e(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function i(){return m||"undefined"!=typeof window&&(m=window.gsap)&&m.registerPlugin&&m}function n(t,e){return~z.indexOf(t)&&z[z.indexOf(t)+1][e]}function o(t){return!!~C.indexOf(t)}function s(t,e,i,n,o){return t.addEventListener(e,i,{passive:!1!==n,capture:!!o})}function r(t,e,i,n){return t.removeEventListener(e,i,!!n)}function a(){return k&&k.isPressed||A.cache++}function l(t,e){function i(n){if(n||0===n){O&&(y.history.scrollRestoration="manual");var o=k&&k.isPressed;n=i.v=Math.round(n)||(k&&k.iOS?1:0),t(n),i.cacheID=A.cache,o&&R("ss",n)}else(e||A.cache!==i.cacheID||R("ref"))&&(i.cacheID=A.cache,i.v=t());return i.v+i.offset}return i.offset=0,t&&i}function c(t,e){return(e&&e._ctx&&e._ctx.selector||m.utils.toArray)(t)[0]||("string"==typeof t&&!1!==m.config().nullTargetWarn?console.warn("Element not found:",t):null)}function d(t,e){var i=e.s,r=e.sc;o(t)&&(t=b.scrollingElement||w);var c=A.indexOf(t),d=r===F.sc?1:2;~c||(c=A.push(t)-1),A[c+d]||s(t,"scroll",a);var u=A[c+d],h=u||(A[c+d]=l(n(t,i),!0)||(o(t)?r:l((function(e){return arguments.length?t[i]=e:t[i]}))));return h.target=t,u||(h.smooth="smooth"===m.getProperty(t,"scrollBehavior")),h}function u(t,e,i){function n(t,e){var n=L();e||l<n-r?(s=o,o=t,a=r,r=n):i?o+=t:o=s+(t-s)/(n-a)*(r-a)}var o=t,s=t,r=L(),a=r,l=e||50,c=Math.max(500,3*l);return{update:n,reset:function(){s=o=i?0:o,a=r=0},getVelocity:function(t){var e=a,l=s,d=L();return!t&&0!==t||t===o||n(t),r===a||c<d-a?0:(o+(i?l:-l))/((i?d:r)-e)*1e3}}}function h(t,e){return e&&!t._gsapAllow&&t.preventDefault(),t.changedTouches?t.changedTouches[0]:t}function p(t){var e=Math.max.apply(Math,t),i=Math.min.apply(Math,t);return Math.abs(e)>=Math.abs(i)?e:i}function f(){(S=m.core.globals().ScrollTrigger)&&S.core&&function(){var t=S.core,e=t.bridge||{},i=t._scrollers,n=t._proxies;i.push.apply(i,A),n.push.apply(n,z),A=i,z=n,R=function(t,i){return e[t](i)}}()}function g(t){return m=t||i(),!v&&m&&"undefined"!=typeof document&&document.body&&(y=window,w=(b=document).documentElement,x=b.body,C=[y,b,w,x],m.utils.clamp,P=m.core.context||function(){},_="onpointerenter"in x?"pointer":"mouse",T=H.isTouch=y.matchMedia&&y.matchMedia("(hover: none), (pointer: coarse)").matches?1:"ontouchstart"in y||0<navigator.maxTouchPoints||0<navigator.msMaxTouchPoints?2:0,E=H.eventTypes=("ontouchstart"in w?"touchstart,touchmove,touchcancel,touchend":"onpointerdown"in w?"pointerdown,pointermove,pointercancel,pointerup":"mousedown,mousemove,mouseup,mouseup").split(","),setTimeout((function(){return O=0}),500),f(),v=1),v}var m,v,y,b,w,x,T,_,S,C,k,E,P,O=1,M=[],A=[],z=[],L=Date.now,R=function(t,e){return e},D="scrollLeft",j="scrollTop",I={s:D,p:"left",p2:"Left",os:"right",os2:"Right",d:"width",d2:"Width",a:"x",sc:l((function(t){return arguments.length?y.scrollTo(t,F.sc()):y.pageXOffset||b[D]||w[D]||x[D]||0}))},F={s:j,p:"top",p2:"Top",os:"bottom",os2:"Bottom",d:"height",d2:"Height",a:"y",op:I,sc:l((function(t){return arguments.length?y.scrollTo(I.sc(),t):y.pageYOffset||b[j]||w[j]||x[j]||0}))};I.op=F,A.cache=0;var H=(B.prototype.init=function(t){v||g(m)||console.warn("Please gsap.registerPlugin(Observer)"),S||f();var e=t.tolerance,i=t.dragMinimum,n=t.type,l=t.target,C=t.lineHeight,O=t.debounce,A=t.preventDefault,z=t.onStop,R=t.onStopDelay,D=t.ignore,j=t.wheelSpeed,H=t.event,B=t.onDragStart,N=t.onDragEnd,q=t.onDrag,Y=t.onPress,W=t.onRelease,X=t.onRight,U=t.onLeft,V=t.onUp,Z=t.onDown,G=t.onChangeX,K=t.onChangeY,Q=t.onChange,J=t.onToggleX,tt=t.onToggleY,et=t.onHover,it=t.onHoverEnd,nt=t.onMove,ot=t.ignoreCheck,st=t.isNormalizer,rt=t.onGestureStart,at=t.onGestureEnd,lt=t.onWheel,ct=t.onEnable,dt=t.onDisable,ut=t.onClick,ht=t.scrollSpeed,pt=t.capture,ft=t.allowClicks,gt=t.lockAxis,$=t.onLockAxis;function mt(){return Gt=L()}function vt(t,e){return(jt.event=t)&&D&&function(t,e){for(var i=e.length;i--;)if(e[i]===t||e[i].contains(t))return!0;return!1}(t.target,D)||e&&Wt&&"touch"!==t.pointerType||ot&&ot(t,e)}function yt(){var t=jt.deltaX=p(Vt),i=jt.deltaY=p(Zt),n=Math.abs(t)>=e,o=Math.abs(i)>=e;Q&&(n||o)&&Q(jt,t,i,Vt,Zt),n&&(X&&0<jt.deltaX&&X(jt),U&&jt.deltaX<0&&U(jt),G&&G(jt),J&&jt.deltaX<0!=It<0&&J(jt),It=jt.deltaX,Vt[0]=Vt[1]=Vt[2]=0),o&&(Z&&0<jt.deltaY&&Z(jt),V&&jt.deltaY<0&&V(jt),K&&K(jt),tt&&jt.deltaY<0!=Ft<0&&tt(jt),Ft=jt.deltaY,Zt[0]=Zt[1]=Zt[2]=0),(zt||$t)&&(nt&&nt(jt),$t&&(B&&1===$t&&B(jt),q&&q(jt),$t=0),zt=!1),Rt&&!(Rt=!1)&&$&&$(jt),Lt&&(lt(jt),Lt=!1),Mt=0}function bt(t,e,i){Vt[i]+=t,Zt[i]+=e,jt._vx.update(t),jt._vy.update(e),O?Mt=Mt||requestAnimationFrame(yt):yt()}function wt(t,e){gt&&!Dt&&(jt.axis=Dt=Math.abs(t)>
vendor: 9,721 bytes, line 9
9Math.abs(e)?"x":"y",Rt=!0),"y"!==Dt&&(Vt[2]+=t,jt._vx.update(t,!0)),"x"!==Dt&&(Zt[2]+=e,jt._vy.update(e,!0)),O?Mt=Mt||requestAnimationFrame(yt):yt()}function xt(t){if(!vt(t,1)){var e=(t=h(t,A)).clientX,n=t.clientY,o=e-jt.x,s=n-jt.y,r=jt.isDragging;jt.x=e,jt.y=n,(r||(o||s)&&(Math.abs(jt.startX-e)>=i||Math.abs(jt.startY-n)>=i))&&($t=r?2:1,r||(jt.isDragging=!0),wt(o,s))}}function Tt(t){return t.touches&&1<t.touches.length&&(jt.isGesturing=!0)&&rt(t,jt.isDragging)}function _t(){return(jt.isGesturing=!1)||at(jt)}function St(t){if(!vt(t)){var e=Bt(),i=Nt();bt((e-qt)*ht,(i-Yt)*ht,1),qt=e,Yt=i,z&&At.restart(!0)}}function Ct(t){if(!vt(t)){t=h(t,A),lt&&(Lt=!0);var e=(1===t.deltaMode?C:2===t.deltaMode?y.innerHeight:1)*j;bt(t.deltaX*e,t.deltaY*e,0),z&&!st&&At.restart(!0)}}function kt(t){if(!vt(t)){var e=t.clientX,i=t.clientY,n=e-jt.x,o=i-jt.y;jt.x=e,jt.y=i,zt=!0,z&&At.restart(!0),(n||o)&&wt(n,o)}}function Et(t){jt.event=t,et(jt)}function Pt(t){jt.event=t,it(jt)}function Ot(t){return vt(t)||h(t,A)&&ut(jt)}this.target=l=c(l)||w,this.vars=t,D=D&&m.utils.toArray(D),e=e||1e-9,i=i||0,j=j||1,ht=ht||1,n=n||"wheel,touch,pointer",O=!1!==O,C=C||parseFloat(y.getComputedStyle(x).lineHeight)||22;var Mt,At,$t,zt,Lt,Rt,Dt,jt=this,It=0,Ft=0,Ht=t.passive||!A&&!1!==t.passive,Bt=d(l,I),Nt=d(l,F),qt=Bt(),Yt=Nt(),Wt=~n.indexOf("touch")&&!~n.indexOf("pointer")&&"pointerdown"===E[0],Xt=o(l),Ut=l.ownerDocument||b,Vt=[0,0,0],Zt=[0,0,0],Gt=0,Kt=jt.onPress=function(t){vt(t,1)||t&&t.button||(jt.axis=Dt=null,At.pause(),jt.isPressed=!0,t=h(t),It=Ft=0,jt.startX=jt.x=t.clientX,jt.startY=jt.y=t.clientY,jt._vx.reset(),jt._vy.reset(),s(st?l:Ut,E[1],xt,Ht,!0),jt.deltaX=jt.deltaY=0,Y&&Y(jt))},Qt=jt.onRelease=function(t){if(!vt(t,1)){r(st?l:Ut,E[1],xt,!0);var e=!isNaN(jt.y-jt.startY),i=jt.isDragging,n=i&&(3<Math.abs(jt.x-jt.startX)||3<Math.abs(jt.y-jt.startY)),o=h(t);!n&&e&&(jt._vx.reset(),jt._vy.reset(),A&&ft&&m.delayedCall(.08,(function(){if(300<L()-Gt&&!t.defaultPrevented)if(t.target.click)t.target.click();else if(Ut.createEvent){var e=Ut.createEvent("MouseEvents");e.initMouseEvent("click",!0,!0,y,1,o.screenX,o.screenY,o.clientX,o.clientY,!1,!1,!1,!1,0,null),t.target.dispatchEvent(e)}}))),jt.isDragging=jt.isGesturing=jt.isPressed=!1,z&&i&&!st&&At.restart(!0),$t&&yt(),N&&i&&N(jt),W&&W(jt,n)}};At=jt._dc=m.delayedCall(R||.25,(function(){jt._vx.reset(),jt._vy.reset(),At.pause(),z&&z(jt)})).pause(),jt.deltaX=jt.deltaY=0,jt._vx=u(0,50,!0),jt._vy=u(0,50,!0),jt.scrollX=Bt,jt.scrollY=Nt,jt.isDragging=jt.isGesturing=jt.isPressed=!1,P(this),jt.enable=function(t){return jt.isEnabled||(s(Xt?Ut:l,"scroll",a),0<=n.indexOf("scroll")&&s(Xt?Ut:l,"scroll",St,Ht,pt),0<=n.indexOf("wheel")&&s(l,"wheel",Ct,Ht,pt),(0<=n.indexOf("touch")&&T||0<=n.indexOf("pointer"))&&(s(l,E[0],Kt,Ht,pt),s(Ut,E[2],Qt),s(Ut,E[3],Qt),ft&&s(l,"click",mt,!0,!0),ut&&s(l,"click",Ot),rt&&s(Ut,"gesturestart",Tt),at&&s(Ut,"gestureend",_t),et&&s(l,_+"enter",Et),it&&s(l,_+"leave",Pt),nt&&s(l,_+"move",kt)),jt.isEnabled=!0,jt.isDragging=jt.isGesturing=jt.isPressed=zt=$t=!1,jt._vx.reset(),jt._vy.reset(),qt=Bt(),Yt=Nt(),t&&t.type&&Kt(t),ct&&ct(jt)),jt},jt.disable=function(){jt.isEnabled&&(M.filter((function(t){return t!==jt&&o(t.target)})).length||r(Xt?Ut:l,"scroll",a),jt.isPressed&&(jt._vx.reset(),jt._vy.reset(),r(st?l:Ut,E[1],xt,!0)),r(Xt?Ut:l,"scroll",St,pt),r(l,"wheel",Ct,pt),r(l,E[0],Kt,pt),r(Ut,E[2],Qt),r(Ut,E[3],Qt),r(l,"click",mt,!0),r(l,"click",Ot),r(Ut,"gesturestart",Tt),r(Ut,"gestureend",_t),r(l,_+"enter",Et),r(l,_+"leave",Pt),r(l,_+"move",kt),jt.isEnabled=jt.isPressed=jt.isDragging=!1,dt&&dt(jt))},jt.kill=jt.revert=function(){jt.disable();var t=M.indexOf(jt);0<=t&&M.splice(t,1),k===jt&&(k=0)},M.push(jt),st&&o(l)&&(k=jt),jt.enable(H)},function(t,i,n){i&&e(t.prototype,i),n&&e(t,n)}(B,[{key:"velocityX",get:function(){return this._vx.getVelocity()}},{key:"velocityY",get:function(){return this._vy.getVelocity()}}]),B);function B(t){this.init(t)}function N(t,e,i){var n=_e(t)&&("clamp("===t.substr(0,6)||-1<t.indexOf("max"));return(i["_"+e+"Clamp"]=n)?t.substr(6,t.length-7):t}function q(t,e){return!e||_e(t)&&"clamp("===t.substr(0,6)?t:"clamp("+t+")"}function Y(){return Ut=1}function W(){return Ut=0}function X(t){return t}function U(t){return Math.round(1e5*t)/1e5||0}function V(){return"undefined"!=typeof window}function Z(){return Lt||V()&&(Lt=window.gsap)&&Lt.registerPlugin&&Lt}function G(t){return!!~Ht.indexOf(t)}function K(t){return("Height"===t?de:Dt["inner"+t])||It["client"+t]||Ft["client"+t]}function Q(t){return n(t,"getBoundingClientRect")||(G(t)?function(){return ii.width=Dt.innerWidth,ii.height=de,ii}:function(){return je(t)})}function J(t,e){var i=e.s,o=e.d2,s=e.d,r=e.a;return Math.max(0,(i="scroll"+o)&&(r=n(t,i))?r()-Q(t)()[s]:G(t)?(It[i]||Ft[i])-K(o):t[i]-t["offset"+o])}function tt(t,e){for(var i=0;i<Qt.length;i+=3)e&&!~e.indexOf(Qt[i+1])||t(Qt[i],Qt[i+1],Qt[i+2])}function et(t){return"function"==typeof t}function it(t){return"number"==typeof t}function nt(t){return"object"==typeof t}function ot(t,e,i){return t&&t.progress(e?0:1)&&i&&t.pause()}function st(t,e){if(t.enabled){var i=t._ctx?t._ctx.add((function(){return e(t)})):e(t);i&&i.totalTime&&(t.callbackAnimation=i)}}function rt(t){return Dt.getComputedStyle(t)}function at(t,e){for(var i in e)i in t||(t[i]=e[i]);return t}function lt(t,e){var i=e.d2;return t["offset"+i]||t["client"+i]||0}function ct(t){var e,i=[],n=t.labels,o=t.duration();for(e in n)i.push(n[e]/o);return i}function dt(t){var e=Lt.utils.snap(t),i=Array.isArray(t)&&t.slice(0).sort((function(t,e){return t-e}));return i?function(t,n,o){var s;if(void 0===o&&(o=.001),!n)return e(t);if(0<n){for(t-=o,s=0;s<i.length;s++)if(i[s]>=t)return i[s];return i[s-1]}for(s=i.length,t+=o;s--;)if(i[s]<=t)return i[s];return i[0]}:function(i,n,o){void 0===o&&(o=.001);var s=e(i);return!n||Math.abs(s-i)<o||s-i<0==n<0?s:e(n<0?i-t:i+t)}}function ut(t,e,i,n){return i.split(",").forEach((function(i){return t(e,i,n)}))}function ht(t,e,i,n,o){return t.addEventListener(e,i,{passive:!n,capture:!!o})}function pt(t,e,i,n){return t.removeEventListener(e,i,!!n)}function ft(t,e,i){(i=i&&i.wheelHandler)&&(t(e,"wheel",i),t(e,"touchmove",i))}function gt(t,e){if(_e(t)){var i=t.indexOf("="),n=~i?(t.charAt(i-1)+1)*parseFloat(t.substr(i+1)):0;~i&&(t.indexOf("%")>i&&(n*=e/100),t=t.substr(0,i-1)),t=n+(t in He?He[t]*e:~t.indexOf("%")?parseFloat(t)*e/100:parseFloat(t)||0)}return t}function mt(t,e,i,o,s,r,a,l){var c=s.startColor,d=s.endColor,u=s.fontSize,h=s.indent,p=s.fontWeight,f=jt.createElement("div"),g=G(i)||"fixed"===n(i,"pinType"),m=-1!==t.indexOf("scroller"),v=g?Ft:i,y=-1!==t.indexOf("start"),b=y?c:d,w="border-color:"+b+";font-size:"+u+";color:"+b+";font-weight:"+p+";pointer-events:none;white-space:nowrap;font-family:sans-serif,Arial;z-index:1000;padding:4px 8px;border-width:0;border-style:solid;";return w+="position:"+((m||l)&&g?"fixed;":"absolute;"),!m&&!l&&g||(w+=(o===F?Ce:ke)+":"+(r+parseFloat(h))+"px;"),a&&(w+="box-sizing:border-box;text-align:left;width:"+a.offsetWidth+"px;"),f._isStart=y,f.setAttribute("class","gsap-marker-"+t+(e?" marker-"+e:"")),f.style.cssText=w,f.innerText=e||0===e?t+"-"+e:t,v.children[0]?v.insertBefore(f,v.children[0]):v.appendChild(f),f._offset=f["offset"+o.op.d2],Be(f,0,o,y),f}function vt(){return 34<be()-xe&&(fe=fe||requestAnimationFrame(Qe))}function yt(){ie&&ie.isPressed&&!(ie.startX>Ft.clientWidth)||(A.cache++,ie?fe=fe||requestAnimationFrame(Qe):Qe(),xe||Xe("scrollStart"),xe=be())}function bt(){se=Dt.innerWidth,oe=Dt.innerHeight}function wt(t){A.cache++,!0!==t&&(Xt||ee||jt.fullscreenElement||jt.webkitFullscreenElement||ne&&se===Dt.innerWidth&&!(Math.abs(Dt.innerHeight-oe)>.25*Dt.innerHeight))||Bt.restart(!0)}function xt(){return pt(oi,"scrollEnd",xt)||Ze(!0)}function Tt(t){for(var e=0;e<Ue.length;e+=5)(!t||Ue[e+4]&&Ue[e+4].query===t)&&(Ue[e].style.cssText=Ue[e+1],Ue[e].getBBox&&Ue[e].setAttribute("transform",Ue[e+2]||""),Ue[e+3].uncache=1)}function _t(t,e){var i;for(Zt=0;Zt<Ne.length;Zt++)!(i=Ne[Zt])||e&&i._ctx!==e||(t?i.kill(1):i.revert(!0,!0));ue=!0,e&&Tt(e),e||Xe("revert")}function St(t,e){A.cache++,!e&&ge||A.forEach((function(t){return et(t)&&t.cacheID++&&(t.rec=0)})),_e(t)&&(Dt.history.scrollRestoration=le=t)}function Ct(){Ft.appendChild(ce),de=!ie&&ce.offsetHeight||Dt.innerHeight,Ft.removeChild(ce)}function kt(t){return Nt(".gsap-marker-start, .gsap-marker-end, .gsap-marker-scroller-start, .gsap-marker-scroller-end").forEach((function(e){return e.style.display=t?"none":"block"}))}function Et(t,e,i,n){if(!t._gsap.swappedIn){for(var o,s=$.length,r=e.style,a=t.style;s--;)r[o=$[s]]=i[o];r.position="absolute"===i.position?"absolute":"relative","inline"===i.display&&(r.display="inline-block"),a[ke]=a[Ce]="auto",r.flexBasis=i.flexBasis||"auto",r.overflow="visible",r.boxSizing="border-box",r[Ee]=lt(t,I)+De,r[Pe]=lt(t,F)+De,r[ze]=a[Le]=a.top=a.left="0",ei(n),a[Ee]=a.maxWidth=i[Ee],a[Pe]=a.maxHeight=i[Pe],a[ze]=i[ze],t.parentNode!==e&&(t.parentNode.insertBefore(e,t),e.appendChild(t)),t._gsap.swappedIn=!0}}function Pt(t){for(var e=Je.length,i=t.style,n=[],o=0;o<e;o++)n.push(Je[o],i[Je[o]]);return n.t=t,n}function Ot(t,e,i,n,o,s,r,a,l,d,u,h,p,f){et(t)&&(t=t(a)),_e(t)&&"max"===t.substr(0,3)&&(t=h+("="===t.charAt(4)?gt("0"+t.substr(3),i):0));var g,m,v,y=p?p.time():0;if(p&&p.seek(0),isNaN(t)||(t=+t),it(t))p&&(t=Lt.utils.mapRange(p.scrollTrigger.start,p.scrollTrigger.end,0,h,t)),r&&Be(r,i,n,!0);else{et(e)&&(e=e(a));var b,w,x,T,_=(t||"0").split(" ");v=c(e,a)||Ft,(b=je(v)||{})&&(b.left||b.top)||"none"!==rt(v).display||(T=v.style.display,v.style.display="block",b=je(v),T?v.style.display=T:v.style.removeProperty("display")),w=gt(_[0],b[n.d]),x=gt(_[1]||"0",i),t=b[n.p]-l[n.p]-d+w+o-x,r&&Be(r,x,n,i-x<20||r._isStart&&20<x),i-=i-x}
9if(f&&(a[f]=t||-.001,t<0&&(t=0)),s){var S=t+i,C=s._isStart;g="scroll"+n.d2,Be(s,S,n,C&&20<S||!C&&(u?Math.max(Ft[g],It[g]):s.parentNode[g])<=S+1),u&&(l=je(r),u&&(s.style[n.op.p]=l[n.op.p]-n.op.m-s._offset+De))}return p&&v&&(g=je(v),p.seek(h),m=je(v),p._caScrollDist=g[n.p]-m[n.p],t=t/p._caScrollDist*h),p&&p.seek(y),p?t:Math.round(t)}function Mt(t,e,i,n){if(t.parentNode!==e){var o,s,r=t.style;if(e===Ft){for(o in t._stOrig=r.cssText,s=rt(t))+o||ni.test(o)||!s[o]||"string"!=typeof r[o]||"0"===o||(r[o]=s[o]);r.top=i,r.left=n}else r.cssText=t._stOrig;Lt.core.getCache(t).uncache=1,e.appendChild(t)}}function At(t,e,i){var n=e,o=n;return function(e){var s=Math.round(t());return s!==n&&s!==o&&3<Math.abs(s-n)&&3<Math.abs(s-o)&&(e=s,i&&i()),o=n,n=Math.round(e)}}function $t(t,e,i){var n={};n[e.p]="+="+i,Lt.set(t,n)}function zt(t,e){function i(e,s,r,a,l){var c=i.tween,d=s.onComplete;r=r||n();var u=At(n,r,(function(){c.kill(),i.tween=0}));return l=a&&l||0,a=a||e-r,c&&c.kill(),s[o]=e,s.inherit=!1,(s.modifiers={})[o]=function(){return u(r+a*c.ratio+l*c.ratio*c.ratio)},s.onUpdate=function(){A.cache++,i.tween&&Qe()},s.onComplete=function(){i.tween=0,d&&d.call(c)},c=i.tween=Lt.to(t,s)}var n=d(t,e),o="_scroll"+e.p2;return(t[o]=n).wheelHandler=function(){return i.tween&&i.tween.kill()&&(i.tween=0)},ht(t,"wheel",n.wheelHandler),oi.isTouch&&ht(t,"touchmove",n.wheelHandler),i}H.version="3.13.0",H.create=function(t){return new H(t)},H.register=g,H.getAll=function(){return M.slice()},H.getById=function(t){return M.filter((function(e){return e.vars.id===t}))[0]},i()&&m.registerPlugin(H);var Lt,Rt,Dt,jt,It,Ft,Ht,Bt,Nt,qt,Yt,Wt,Xt,Ut,Vt,Zt,Gt,Kt,Qt,Jt,te,ee,ie,ne,oe,se,re,ae,le,ce,de,ue,he,pe,fe,ge,me,ve,ye=1,be=Date.now,we=be(),xe=0,Te=0,_e=function(t){return"string"==typeof t},Se=Math.abs,Ce="right",ke="bottom",Ee="width",Pe="height",Oe="Right",Me="Left",Ae="Top",$e="Bottom",ze="padding",Le="margin",Re="Width",De="px",je=function(t,e){var i=e&&"matrix(1, 0, 0, 1, 0, 0)"!==rt(t)[Vt]&&Lt.to(t,{x:0,y:0,xPercent:0,yPercent:0,rotation:0,rotationX:0,rotationY:0,scale:1,skewX:0,skewY:0}).progress(1),n=t.getBoundingClientRect();return i&&i.progress(0).kill(),n},Ie={startColor:"green",endColor:"red",indent:0,fontSize:"16px",fontWeight:"normal"},Fe={toggleActions:"play",anticipatePin:0},He={top:0,left:0,center:.5,bottom:1,right:1},Be=function(t,e,i,n){var o={display:"block"},s=i[n?"os2":"p2"],r=i[n?"p2":"os2"];t._isFlipped=n,o[i.a+"Percent"]=n?-100:0,o[i.a]=n?"1px":0,o["border"+s+Re]=1,o["border"+r+Re]=0,o[i.p]=e+"px",Lt.set(t,o)},Ne=[],qe={},Ye={},We=[],Xe=function(t){return Ye[t]&&Ye[t].map((function(t){return t()}))||We},Ue=[],Ve=0,Ze=function(t,e){if(It=jt.documentElement,Ft=jt.body,Ht=[Dt,jt,It,Ft],!xe||t||ue){Ct(),ge=oi.isRefreshing=!0,A.forEach((function(t){return et(t)&&++t.cacheID&&(t.rec=t())}));var i=Xe("refreshInit");Jt&&oi.sort(),e||_t(),A.forEach((function(t){et(t)&&(t.smooth&&(t.target.style.scrollBehavior="auto"),t(0))})),Ne.slice(0).forEach((function(t){return t.refresh()})),ue=!1, 10Ne.forEach((function(t){if(t._subPinOffset&&t.pin){var e=t.vars.horizontal?"offsetWidth":"offsetHeight",i=t.pin[e];t.revert(!0,1),t.adjustPinSpacing(t.pin[e]-i),t.refresh()}})),he=1,kt(!0),Ne.forEach((function(t){var e=J(t.scroller,t._dir),i="max"===t.vars.end||t._endClamp&&t.end>e,n=t._startClamp&&t.start>=e;(i||n)&&t.setPositions(n?e-1:t.start,i?Math.max(n?e:t.start+1,e):t.end,!0)})),kt(!1),he=0,i.forEach((function(t){return t&&t.render&&t.render(-1)})),A.forEach((function(t){et(t)&&(t.smooth&&requestAnimationFrame((function(){return t.target.style.scrollBehavior="smooth"})),t.rec&&t(t.rec))})),St(le,1),Bt.pause(),Ve++,Qe(ge=2),Ne.forEach((function(t){return et(t.vars.onRefresh)&&t.vars.onRefresh(t)})),ge=oi.isRefreshing=!1,Xe("refresh")}else ht(oi,"scrollEnd",xt)},Ge=0,Ke=1,Qe=function(t){if(2===t||!ge&&!ue){oi.isUpdating=!0,ve&&ve.update(0);var e=Ne.length,i=be(),n=50<=i-we,o=e&&Ne[0].scroll();if(Ke=o<Ge?-1:1,ge||(Ge=o),n&&(xe&&!Ut&&200<i-xe&&(xe=0,Xe("scrollEnd")),Yt=we,we=i),Ke<0){for(Zt=e;0<Zt--;)Ne[Zt]&&Ne[Zt].update(0,n);Ke=1}else for(Zt=0;Zt<e;Zt++)Ne[Zt]&&Ne[Zt].update(0,n);oi.isUpdating=!1}fe=0},$=["left","top",ke,Ce,Le+$e,Le+Oe,Le+Ae,Le+Me,"display","flexShrink","float","zIndex","gridColumnStart","gridColumnEnd","gridRowStart","gridRowEnd","gridArea","justifySelf","alignSelf","placeSelf","order"],Je=$.concat([Ee,Pe,"boxSizing","max"+Re,"maxHeight","position",Le,ze,ze+Ae,ze+Oe,ze+$e,ze+Me]),ti=/([A-Z])/g,ei=function(t){if(t){var e,i,n=t.t.style,o=t.length,s=0;for((t.t._gsap||Lt.core.getCache(t.t)).uncache=1;s<o;s+=2)i=t[s+1],e=t[s],i?n[e]=i:n[e]&&n.removeProperty(e.replace(ti,"-$1").toLowerCase())}},ii={left:0,top:0},ni=/(webkit|moz|length|cssText|inset)/i,oi=(si.prototype.init=function(t,e){if(this.progress=this.start=0,this.vars&&this.kill(!0,!0),Te){var i,o,s,r,a,l,u,h,p,f,g,m,v,y,b,w,x,T,_,S,C,k,E,P,O,M,$,L,R,D,j,H,B,Y,W,V,Z,tt,ut,ft=(t=at(_e(t)||it(t)||t.nodeType?{trigger:t}:t,Fe)).onUpdate,vt=t.toggleClass,bt=t.id,Tt=t.onToggle,_t=t.onRefresh,St=t.scrub,Ct=t.trigger,kt=t.pin,At=t.pinSpacing,Rt=t.invali
vendor: 3,673 bytes, line 10
10dateOnRefresh,Ht=t.anticipatePin,Bt=t.onScrubComplete,Wt=t.onSnapComplete,Vt=t.once,Gt=t.snap,Kt=t.pinReparent,Qt=t.pinSpacer,ee=t.containerAnimation,ie=t.fastScrollEnd,ne=t.preventOverlaps,oe=t.horizontal||t.containerAnimation&&!1!==t.horizontal?I:F,se=!St&&0!==St,re=c(t.scroller||Dt),ae=Lt.core.getCache(re),le=G(re),ce="fixed"===("pinType"in t?t.pinType:n(re,"pinType")||le&&"fixed"),de=[t.onEnter,t.onLeave,t.onEnterBack,t.onLeaveBack],ue=se&&t.toggleActions.split(" "),fe="markers"in t?t.markers:Fe.markers,we=le?0:parseFloat(rt(re)["border"+oe.p2+Re])||0,Ce=this,ke=t.onRefreshInit&&function(){return t.onRefreshInit(Ce)},He=function(t,e,i){var o=i.d,s=i.d2,r=i.a;return(r=n(t,"getBoundingClientRect"))?function(){return r()[o]}:function(){return(e?K(s):t["client"+s])||0}}(re,le,oe),Be=function(t,e){return!e||~z.indexOf(t)?Q(t):function(){return ii}}(re,le),Ye=0,We=0,Xe=0,Ue=d(re,oe);if(Ce._startClamp=Ce._endClamp=!1,Ce._dir=oe,Ht*=45,Ce.scroller=re,Ce.scroll=ee?ee.time.bind(ee):Ue,r=Ue(),Ce.vars=t,e=e||t.animation,"refreshPriority"in t&&(Jt=1,-9999===t.refreshPriority&&(ve=Ce)),ae.tweenScroll=ae.tweenScroll||{top:zt(re,F),left:zt(re,I)},Ce.tweenTo=i=ae.tweenScroll[oe.p],Ce.scrubDuration=function(t){(B=it(t)&&t)?H?H.duration(t):H=Lt.to(e,{ease:"expo",totalProgress:"+=0",inherit:!1,duration:B,paused:!0,onComplete:function(){return Bt&&Bt(Ce)}}):(H&&H.progress(1).kill(),H=0)},e&&(e.vars.lazy=!1,e._initted&&!Ce.isReverted||!1!==e.vars.immediateRender&&!1!==t.immediateRender&&e.duration()&&e.render(0,!0,!0),Ce.animation=e.pause(),(e.scrollTrigger=Ce).scrubDuration(St),D=0,bt=bt||e.vars.id),Gt&&(nt(Gt)&&!Gt.push||(Gt={snapTo:Gt}),"scrollBehavior"in Ft.style&&Lt.set(le?[Ft,It]:re,{scrollBehavior:"auto"}),A.forEach((function(t){return et(t)&&t.target===(le?jt.scrollingElement||It:re)&&(t.smooth=!1)})),s=et(Gt.snapTo)?Gt.snapTo:"labels"===Gt.snapTo?function(t){return function(e){return Lt.utils.snap(ct(t),e)}}(e):"labelsDirectional"===Gt.snapTo?function(t){return function(e,i){return dt(ct(t))(e,i.direction)}}(e):!1!==Gt.directional?function(t,e){return dt(Gt.snapTo)(t,be()-We<500?0:e.direction)}:Lt.utils.snap(Gt.snapTo),Y=nt(Y=Gt.duration||{min:.1,max:2})?qt(Y.min,Y.max):qt(Y,Y),W=Lt.delayedCall(Gt.delay||B/2||.1,(function(){var t=Ue(),n=be()-We<500,o=i.tween;if(!(n||Math.abs(Ce.getVelocity())<10)||o||Ut||Ye===t)Ce.isActive&&Ye!==t&&W.restart(!0);else{var r,a,c=(t-l)/y,d=e&&!se?e.totalProgress():c,h=n?0:(d-j)/(be()-Yt)*1e3||0,p=Lt.utils.clamp(-c,1-c,Se(h/2)*h/.185),f=c+(!1===Gt.inertia?0:p),g=Gt.onStart,m=Gt.onInterrupt,v=Gt.onComplete;if(it(r=s(f,Ce))||(r=f),a=Math.max(0,Math.round(l+r*y)),t<=u&&l<=t&&a!==t){if(o&&!o._initted&&o.data<=Se(a-t))return;!1===Gt.inertia&&(p=r-c),i(a,{duration:Y(Se(.185*Math.max(Se(f-d),Se(r-d))/h/.05||0)),ease:Gt.ease||"power3",data:Se(a-t),onInterrupt:function(){return W.restart(!0)&&m&&m(Ce)},onComplete:function(){Ce.update(),Ye=Ue(),e&&!se&&(H?H.resetTo("totalProgress",r,e._tTime/e._tDur):e.progress(r)),D=j=e&&!se?e.totalProgress():Ce.progress,Wt&&Wt(Ce),v&&v(Ce)}},t,p*y,a-t-p*y),g&&g(Ce,i.tween)}}})).pause()),bt&&(qe[bt]=Ce),ut=(ut=(Ct=Ce.trigger=c(Ct||!0!==kt&&kt))&&Ct._gsap&&Ct._gsap.stRevert)&&ut(Ce),kt=!0===kt?Ct:c(kt),_e(vt)&&(vt={targets:Ct,className:vt}),kt&&(!1===At||At===Le||(At=!(!At&&kt.parentNode&&kt.parentNode.style&&"flex"===rt(kt.parentNode).display)&&ze),Ce.pin=kt,(o=Lt.core.getCache(kt)).spacer?b=o.pinState:(Qt&&((Qt=c(Qt))&&!Qt.nodeType&&(Qt=Qt.current||Qt.nativeElement),o.spacerIsNative=!!Qt,Qt&&(o.spacerState=Pt(Qt))),o.spacer=T=Qt||jt.createElement("div"),T.classList.add("pin-spacer"),bt&&T.classList.add("pin-spacer-"+bt),o.pinState=b=Pt(kt)),!1!==t.force3D&&Lt.
vendor: 9,307 bytes, line 10
10set(kt,{force3D:!0}),Ce.spacer=T=o.spacer,R=rt(kt),P=R[At+oe.os2],S=Lt.getProperty(kt),C=Lt.quickSetter(kt,oe.a,De),Et(kt,T,R),x=Pt(kt)),fe){m=nt(fe)?at(fe,Ie):Ie,f=mt("scroller-start",bt,re,oe,m,0),g=mt("scroller-end",bt,re,oe,m,0,f),_=f["offset"+oe.op.d2];var Ge=c(n(re,"content")||re);h=this.markerStart=mt("start",bt,Ge,oe,m,_,0,ee),p=this.markerEnd=mt("end",bt,Ge,oe,m,_,0,ee),ee&&(tt=Lt.quickSetter([h,p],oe.a,De)),ce||z.length&&!0===n(re,"fixedMarkers")||(function(t){var e=rt(t).position;t.style.position="absolute"===e||"fixed"===e?e:"relative"}(le?Ft:re),Lt.set([f,g],{force3D:!0}),M=Lt.quickSetter(f,oe.a,De),L=Lt.quickSetter(g,oe.a,De))}if(ee){var Qe=ee.vars.onUpdate,Je=ee.vars.onUpdateParams;ee.eventCallback("onUpdate",(function(){Ce.update(0,0,1),Qe&&Qe.apply(ee,Je||[])}))}if(Ce.previous=function(){return Ne[Ne.indexOf(Ce)-1]},Ce.next=function(){return Ne[Ne.indexOf(Ce)+1]},Ce.revert=function(t,i){if(!i)return Ce.kill(!0);var n=!1!==t||!Ce.enabled,o=Xt;n!==Ce.isReverted&&(n&&(V=Math.max(Ue(),Ce.scroll.rec||0),Xe=Ce.progress,Z=e&&e.progress()),h&&[h,p,f,g].forEach((function(t){return t.style.display=n?"none":"block"})),n&&(Xt=Ce).update(n),!kt||Kt&&Ce.isActive||(n?function(t,e,i){ei(i);var n=t._gsap;if(n.spacerIsNative)ei(n.spacerState);else if(t._gsap.swappedIn){var o=e.parentNode;o&&(o.insertBefore(t,e),o.removeChild(e))}t._gsap.swappedIn=!1}(kt,T,b):Et(kt,T,rt(kt),O)),n||Ce.update(n),Xt=o,Ce.isReverted=n)},Ce.refresh=function(n,o,s,m){if(!Xt&&Ce.enabled||o)if(kt&&n&&xe)ht(si,"scrollEnd",xt);else{!ge&&ke&&ke(Ce),Xt=Ce,i.tween&&!s&&(i.tween.kill(),i.tween=0),H&&H.pause(),Rt&&e&&(e.revert({kill:!1}).invalidate(),e.getChildren&&e.getChildren(!0,!0,!1).forEach((function(t){return t.vars.immediateRender&&t.render(0,!0,!0)}))),Ce.isReverted||Ce.revert(!0,!0),Ce._subPinOffset=!1;var _,C,P,M,A,z,L,R,D,j,B,q,Y,X=He(),U=Be(),G=ee?ee.duration():J(re,oe),K=y<=.01||!y,Q=0,tt=m||0,it=nt(s)?s.end:t.end,ot=t.endTrigger||Ct,st=nt(s)?s.start:t.start||(0!==t.start&&Ct?kt?"0 0":"0 100%":0),at=Ce.pinnedContainer=t.pinnedContainer&&c(t.pinnedContainer,Ce),ct=Ct&&Math.max(0,Ne.indexOf(Ce))||0,dt=ct;for(fe&&nt(s)&&(q=Lt.getProperty(f,oe.p),Y=Lt.getProperty(g,oe.p));0<dt--;)(z=Ne[dt]).end||z.refresh(0,1)||(Xt=Ce),!(L=z.pin)||L!==Ct&&L!==kt&&L!==at||z.isReverted||((j=j||[]).unshift(z),z.revert(!0,!0)),z!==Ne[dt]&&(ct--,dt--);for(et(st)&&(st=st(Ce)),st=N(st,"start",Ce),l=Ot(st,Ct,X,oe,Ue(),h,f,Ce,U,we,ce,G,ee,Ce._startClamp&&"_startClamp")||(kt?-.001:0),et(it)&&(it=it(Ce)),_e(it)&&!it.indexOf("+=")&&(~it.indexOf(" ")?it=(_e(st)?st.split(" ")[0]:"")+it:(Q=gt(it.substr(2),X),it=_e(st)?st:(ee?Lt.utils.mapRange(0,ee.duration(),ee.scrollTrigger.start,ee.scrollTrigger.end,l):l)+Q,ot=Ct)),it=N(it,"end",Ce),u=Math.max(l,Ot(it||(ot?"100% 0":G),ot,X,oe,Ue()+Q,p,g,Ce,U,we,ce,G,ee,Ce._endClamp&&"_endClamp"))||-.001,Q=0,dt=ct;dt--;)(L=(z=Ne[dt]).pin)&&z.start-z._pinPush<=l&&!ee&&0<z.end&&(_=z.end-(Ce._startClamp?Math.max(0,z.start):z.start),(L===Ct&&z.start-z._pinPush<l||L===at)&&isNaN(st)&&(Q+=_*(1-z.progress)),L===kt&&(tt+=_));if(l+=Q,u+=Q,Ce._startClamp&&(Ce._startClamp+=Q),Ce._endClamp&&!ge&&(Ce._endClamp=u||-.001,u=Math.min(u,J(re,oe))),y=u-l||(l-=.01)&&.001,K&&(Xe=Lt.utils.clamp(0,1,Lt.utils.normalize(l,u,V))),Ce._pinPush=tt,h&&Q&&((_={})[oe.a]="+="+Q,at&&(_[oe.p]="-="+Ue()),Lt.set([h,p],_)),!kt||he&&Ce.end>=J(re,oe)){if(Ct&&Ue()&&!ee)for(C=Ct.parentNode;C&&C!==Ft;)C._pinOffset&&(l-=C._pinOffset,u-=C._pinOffset),C=C.parentNode}else _=rt(kt),M=oe===F,P=Ue(),k=parseFloat(S(oe.a))+tt,!G&&1<u&&(B={style:B=(le?jt.scrollingElement||It:re).style,value:B["overflow"+oe.a.toUpperCase()]},le&&"scroll"!==rt(Ft)["overflow"+oe.a.toUpperCase()]&&(B.style["overflow"+oe.a.toUpperCase()]="scroll")),Et(kt,T,_),x=Pt(kt),C=je(kt,!0),R=ce&&d(re,M?I:F)(),At?((O=[At+oe.os2,y+tt+De]).t=T,(dt=At===ze?lt(kt,oe)+y+tt:0)&&(O.push(oe.d,dt+De),"auto"!==T.style.flexBasis&&(T.style.flexBasis=dt+De)),ei(O),at&&Ne.forEach((function(t){t.pin===at&&!1!==t.vars.pinSpacing&&(t._subPinOffset=!0)})),ce&&Ue(V)):(dt=lt(kt,oe))&&"auto"!==T.style.flexBasis&&(T.style.flexBasis=dt+De),ce&&((A={top:C.top+(M?P-l:R)+De,left:C.left+(M?R:P-l)+De,boxSizing:"border-box",position:"fixed"})[Ee]=A.maxWidth=Math.ceil(C.width)+De,A[Pe]=A.maxHeight=Math.ceil(C.height)+De,A[Le]=A[Le+Ae]=A[Le+Oe]=A[Le+$e]=A[Le+Me]="0",A[ze]=_[ze],A[ze+Ae]=_[ze+Ae],A[ze+Oe]=_[ze+Oe],A[ze+$e]=_[ze+$e],A[ze+Me]=_[ze+Me],w=function(t,e,i){for(var n,o=[],s=t.length,r=i?8:0;r<s;r+=2)n=t[r],o.push(n,n in e?e[n]:t[r+1]);return o.t=t.t,o}(b,A,Kt),ge&&Ue(0)),e?(D=e._initted,te(1),e.render(e.duration(),!0,!0),E=S(oe.a)-k+y+tt,$=1<Math.abs(y-E),ce&&$&&w.splice(w.length-2,2),e.render(0,!0,!0),D||e.invalidate(!0),e.parent||e.totalTime(e.totalTime()),te(0)):E=y,B&&(B.value?B.style["overflow"+oe.a.toUpperCase()]=B.value:B.style.removeProperty("overflow-"+oe.a));j&&j.forEach((function(t){return t.revert(!1,!0)})),Ce.start=l,Ce.end=u,r=a=ge?V:Ue(),ee||ge||(r<V&&Ue(V),Ce.scroll.rec=0),Ce.revert(!1,!0),We=be(),W&&(Ye=-1,W.restart(!0)),Xt=0,e&&se&&(e._initted||Z)&&e.progress()!==Z&&e.progress(Z||0,!0).render(e.time(),!0,!0),(K||Xe!==Ce.progress||ee||Rt||e&&!e._initted)&&(e&&!se&&(e._initted||Xe||!1!==e.vars.immediateRender)&&e.totalProgress(ee&&l<-.001&&!Xe?Lt.utils.normalize(l,u,0):Xe,!0),Ce.progress=K||(r-l)/y===Xe?0:Xe),kt&&At&&(T._pinOffset=Math.round(Ce.progress*E)),H&&H.invalidate(),isNaN(q)||(q-=Lt.getProperty(f,oe.p),Y-=Lt.getProperty(g,oe.p),$t(f,oe,q),$t(h,oe,q-(m||0)),$t(g,oe,Y),$t(p,oe,Y-(m||0))),K&&!ge&&Ce.update(),!_t||ge||v||(v=!0,_t(Ce),v=!1)}},Ce.getVelocity=function(){return(Ue()-a)/(be()-Yt)*1e3||0},Ce.endAnimation=function(){ot(Ce.callbackAnimation),e&&(H?H.progress(1):e.paused()?se||ot(e,Ce.direction<0,1):ot(e,e.reversed()))},Ce.labelToScroll=function(t){return e&&e.labels&&(l||Ce.refresh()||l)+e.labels[t]/e.duration()*y||0},Ce.getTrailing=function(t){var e=Ne.indexOf(Ce),i=0<Ce.direction?Ne.slice(0,e).reverse():Ne.slice(e+1);return(_e(t)?i.filter((function(e){return e.vars.preventOverlaps===t})):i).filter((function(t){return 0<Ce.direction?t.end<=l:t.start>=u}))},Ce.update=function(t,n,o){if(!ee||o||t){var s,c,d,h,p,g,m,v=!0===ge?V:Ce.scroll(),b=t?0:(v-l)/y,_=b<0?0:1<b?1:b||0,S=Ce.progress;if(n&&(a=r,r=ee?Ue():v,Gt&&(j=D,D=e&&!se?e.totalProgress():_)),Ht&&kt&&!Xt&&!ye&&xe&&(!_&&l<v+(v-a)/(be()-Yt)*Ht?_=1e-4:1===_&&u>v+(v-a)/(be()-Yt)*Ht&&(_=.9999)),_!==S&&Ce.enabled){if(h=(p=(s=Ce.isActive=!!_&&_<1)!=(!!S&&S<1))||!!_!=!!S,Ce.direction=S<_?1:-1,Ce.progress=_,h&&!Xt&&(c=_&&!S?0:1===_?1:1===S?2:3,se&&(d=!p&&"none"!==ue[c+1]&&ue[c+1]||ue[c],m=e&&("complete"===d||"reset"===d||d in e))),ne&&(p||m)&&(m||St||!e)&&(et(ne)?ne(Ce):Ce.getTrailing(ne).forEach((function(t){return t.endAnimation()}))),se||(!H||Xt||ye?e&&e.totalProgress(_,!(!Xt||!We&&!t)):(H._dp._time-H._start!==H._time&&H.render(H._dp._time-H._start),H.resetTo?H.resetTo("totalProgress",_,e._tTime/e._tDur):(H.vars.totalProgress=_,H.invalidate().restart()))),kt)if(t&&At&&(T.style[At+oe.os2]=P),ce){if(h){if(g=!t&&S<_&&v<u+1&&v+1>=J(re,oe),Kt)if(t||!s&&!g)Mt(kt,T);else{var O=je(kt,!0),A=v-l;Mt(kt,Ft,O.top+(oe===F?A:0)+De,O.left+(oe===F?0:A)+De)}ei(s||g?w:x),$&&_<1&&s||C(k+(1!==_||g?0:E))}}else C(U(k+E*_));!Gt||i.tween||Xt||ye||W.restart(!0),vt&&(p||Vt&&_&&(_<1||!pe))&&Nt(vt.targets).forEach((function(t){return t.classList[s||Vt?"add":"remove"](vt.className)})),!ft||se||t||ft(Ce),h&&!Xt?(se&&(m&&("complete"===d?e.pause().totalProgress(1):"reset"===d?e.restart(!0).pause():"restart"===d?e.restart(!0):e[d]()),ft&&ft(Ce)),!p&&pe||(Tt&&p&&st(Ce,Tt),de[c]&&st(Ce,de[c]),Vt&&(1===_?Ce.kill(!1,1):de[c]=0),p||de[c=1===_?1:3]&&st(Ce,de[c])),ie&&!s&&Math.abs(Ce.getVelocity())>(it(ie)?ie:2500)&&(ot(Ce.callbackAnimation),H?H.progress(1):ot(e,"reverse"===d?1:!_,1))):se&&ft&&!Xt&&ft(Ce)}if(L){var z=ee?v/ee.duration()*(ee._caScrollDist||0):v;M(z+(f._isFlipped?1:0)),L(z)}tt&&tt(-v/ee.duration()*(ee._caScrollDist||0))}},Ce.enable=function(t,e){Ce.enabled||(Ce.enabled=!0,ht(re,"resize",wt),le||ht(re,"scroll",yt),ke&&ht(si,"refreshInit",ke),!1!==t&&(Ce.progress=Xe=0,r=a=Ye=Ue()),!1!==e&&Ce.refresh())},Ce.getTween=function(t){return t&&i?i.tween:H},Ce.setPositions=function(t,e,i,n){if(ee){var o=ee.scrollTrigger,s=ee.duration(),r=o.end-o.start;t=o.start+r*t/s,e=o.start+r*e/s}Ce.refresh(!1,!1,{start:q(t,i&&!!Ce._startClamp),end:q(e,i&&!!Ce._endClamp)},n),Ce.update()},Ce.adjustPinSpacing=function(t){if(O&&t){var e=O.indexOf(oe.d)+1;O[e]=parseFloat(O[e])+t+De,O[1]=parseFloat(O[1])+t+De,ei(O)}},Ce.disable=function(t,e){if(Ce.enabled&&(!1!==t&&Ce.revert(!0,!0),Ce.enabled=Ce.isActive=!1,e||H&&H.pause(),V=0,o&&(o.uncache=1),ke&&pt(si,"refreshInit",ke),W&&(W.pause(),i.tween&&i.tween.kill()&&(i.tween=0)),!le)){for(var n=Ne.length;n--;)if(Ne[n].scroller===re&&Ne[n]!==Ce)return;pt(re,"resize",wt),le||pt(re,"scroll",yt)}},Ce.kill=function(i,n){Ce.disable(i,n),H&&!n&&H.kill(),bt&&delete qe[bt];var s=Ne.indexOf(Ce);0<=s&&Ne.splice(s,1),s===Zt&&0<Ke&&Zt--,s=0,Ne.forEach((function(t){return t.scroller===Ce.scroller&&(s=1)})),s||ge||(Ce.scroll.rec=0),e&&(e.scrollTrigger=null,i&&e.revert({kill:!1}),n||e.kill()),h&&[h,p,f,g].forEach((function(t){return t.parentNode&&t.parentNode.removeChild(t)})),ve===Ce&&(ve=0),kt&&(o&&(o.uncache=1),s=0,Ne.forEach((function(t){return t.pin===kt&&s++})),s||(o.spacer=0)),t.onKill&&t.onKill(Ce)}
vendor: 7,338 bytes, line 10
10,Ne.push(Ce),Ce.enable(!1,!1),ut&&ut(Ce),e&&e.add&&!y){var ti=Ce.update;Ce.update=function(){Ce.update=ti,A.cache++,l||u||Ce.refresh()},Lt.delayedCall(.01,Ce.update),y=.01,l=u=0}else Ce.refresh();kt&&function(){if(me!==Ve){var t=me=Ve;requestAnimationFrame((function(){return t===Ve&&Ze(!0)}))}}()}else this.update=this.refresh=this.kill=X},si.register=function(t){return Rt||(Lt=t||Z(),V()&&window.document&&si.enable(),Rt=Te),Rt},si.defaults=function(t){if(t)for(var e in t)Fe[e]=t[e];return Fe},si.disable=function(t,e){Te=0,Ne.forEach((function(i){return i[e?"kill":"disable"](t)})),pt(Dt,"wheel",yt),pt(jt,"scroll",yt),clearInterval(Wt),pt(jt,"touchcancel",X),pt(Ft,"touchstart",X),ut(pt,jt,"pointerdown,touchstart,mousedown",Y),ut(pt,jt,"pointerup,touchend,mouseup",W),Bt.kill(),tt(pt);for(var i=0;i<A.length;i+=3)ft(pt,A[i],A[i+1]),ft(pt,A[i],A[i+2])},si.enable=function(){if(Dt=window,jt=document,It=jt.documentElement,Ft=jt.body,Lt&&(Nt=Lt.utils.toArray,qt=Lt.utils.clamp,ae=Lt.core.context||X,te=Lt.core.suppressOverwrites||X,le=Dt.history.scrollRestoration||"auto",Ge=Dt.pageYOffset||0,Lt.core.globals("ScrollTrigger",si),Ft)){Te=1,(ce=document.createElement("div")).style.height="100vh",ce.style.position="absolute",Ct(),function t(){return Te&&requestAnimationFrame(t)}(),H.register(Lt),si.isTouch=H.isTouch,re=H.isTouch&&/(iPad|iPhone|iPod|Mac)/g.test(navigator.userAgent),ne=1===H.isTouch,ht(Dt,"wheel",yt),Ht=[Dt,jt,It,Ft],Lt.matchMedia?(si.matchMedia=function(t){var e,i=Lt.matchMedia();for(e in t)i.add(e,t[e]);return i},Lt.addEventListener("matchMediaInit",(function(){return _t()})),Lt.addEventListener("matchMediaRevert",(function(){return Tt()})),Lt.addEventListener("matchMedia",(function(){Ze(0,1),Xe("matchMedia")})),Lt.matchMedia().add("(orientation: portrait)",(function(){return bt(),bt}))):console.warn("Requires GSAP 3.11.0 or later"),bt(),ht(jt,"scroll",yt);var t,e,i=Ft.hasAttribute("style"),n=Ft.style,o=n.borderTopStyle,s=Lt.core.Animation.prototype;for(s.revert||Object.defineProperty(s,"revert",{value:function(){return this.time(-.01,!0)}}),n.borderTopStyle="solid",t=je(Ft),F.m=Math.round(t.top+F.sc())||0,I.m=Math.round(t.left+I.sc())||0,o?n.borderTopStyle=o:n.removeProperty("border-top-style"),i||(Ft.setAttribute("style",""),Ft.removeAttribute("style")),Wt=setInterval(vt,250),Lt.delayedCall(.5,(function(){return ye=0})),ht(jt,"touchcancel",X),ht(Ft,"touchstart",X),ut(ht,jt,"pointerdown,touchstart,mousedown",Y),ut(ht,jt,"pointerup,touchend,mouseup",W),Vt=Lt.utils.checkPrefix("transform"),Je.push(Vt),Rt=be(),Bt=Lt.delayedCall(.2,Ze).pause(),Qt=[jt,"visibilitychange",function(){var t=Dt.innerWidth,e=Dt.innerHeight;jt.hidden?(Gt=t,Kt=e):Gt===t&&Kt===e||wt()},jt,"DOMContentLoaded",Ze,Dt,"load",Ze,Dt,"resize",wt],tt(ht),Ne.forEach((function(t){return t.enable(0,1)})),e=0;e<A.length;e+=3)ft(pt,A[e],A[e+1]),ft(pt,A[e],A[e+2])}},si.config=function(t){"limitCallbacks"in t&&(pe=!!t.limitCallbacks);var e=t.syncInterval;e&&clearInterval(Wt)||(Wt=e)&&setInterval(vt,e),"ignoreMobileResize"in t&&(ne=1===si.isTouch&&t.ignoreMobileResize),"autoRefreshEvents"in t&&(tt(pt)||tt(ht,t.autoRefreshEvents||"none"),ee=-1===(t.autoRefreshEvents+"").indexOf("resize"))},si.scrollerProxy=function(t,e){var i=c(t),n=A.indexOf(i),o=G(i);~n&&A.splice(n,o?6:2),e&&(o?z.unshift(Dt,e,Ft,e,It,e):z.unshift(i,e))},si.clearMatchMedia=function(t){Ne.forEach((function(e){return e._ctx&&e._ctx.query===t&&e._ctx.kill(!0,!0)}))},si.isInViewport=function(t,e,i){var n=(_e(t)?c(t):t).getBoundingClientRect(),o=n[i?Ee:Pe]*e||0;return i?0<n.right-o&&n.left+o<Dt.innerWidth:0<n.bottom-o&&n.top+o<Dt.innerHeight},si.positionInViewport=function(t,e,i){_e(t)&&(t=c(t));var n=t.getBoundingClientRect(),o=n[i?Ee:Pe],s=null==e?o/2:e in He?He[e]*o:~e.indexOf("%")?parseFloat(e)*o/100:parseFloat(e)||0;return i?(n.left+s)/Dt.innerWidth:(n.top+s)/Dt.innerHeight},si.killAll=function(t){if(Ne.slice(0).forEach((function(t){return"ScrollSmoother"!==t.vars.id&&t.kill()})),!0!==t){var e=Ye.killAll||[];Ye={},e.forEach((function(t){return t()}))}},si);function si(t,e){Rt||si.register(Lt)||console.warn("Please gsap.registerPlugin(ScrollTrigger)"),ae(this),this.init(t,e)}function ri(t,e,i,n){return n<e?t(n):e<0&&t(0),n<i?(n-e)/(i-e):i<0?e/(e-i):1}function ai(t,e){!0===e?t.style.removeProperty("touch-action"):t.style.touchAction=!0===e?"auto":e?"pan-"+e+(H.isTouch?" pinch-zoom":""):"none",t===It&&ai(Ft,e)}function li(t){var e,i=t.event,n=t.target,o=t.axis,s=(i.changedTouches?i.changedTouches[0]:i).target,r=s._gsap||Lt.core.getCache(s),a=be();if(!r._isScrollT||2e3<a-r._isScrollT){for(;s&&s!==Ft&&(s.scrollHeight<=s.clientHeight&&s.scrollWidth<=s.clientWidth||!ui[(e=rt(s)).overflowY]&&!ui[e.overflowX]);)s=s.parentNode;r._isScroll=s&&s!==n&&!G(s)&&(ui[(e=rt(s)).overflowY]||ui[e.overflowX]),r._isScrollT=a}!r._isScroll&&"x"!==o||(i.stopPropagation(),i._gsapAllow=!0)}function ci(t,e,i,n){return H.create({target:t,capture:!0,debounce:!1,lockAxis:!0,type:e,onWheel:n=n&&li,onPress:n,onDrag:n,onScroll:n,onEnable:function(){return i&&ht(jt,H.eventTypes[0],pi,!1,!0)},onDisable:function(){return pt(jt,H.eventTypes[0],pi,!0)}})}oi.version="3.13.0",oi.saveStyles=function(t){return t?Nt(t).forEach((function(t){if(t&&t.style){var e=Ue.indexOf(t);0<=e&&Ue.splice(e,5),Ue.push(t,t.style.cssText,t.getBBox&&t.getAttribute("transform"),Lt.core.getCache(t),ae())}})):Ue},oi.revert=function(t,e){return _t(!t,e)},oi.create=function(t,e){return new oi(t,e)},oi.refresh=function(t){return t?wt(!0):(Rt||oi.register())&&Ze(!0)},oi.update=function(t){return++A.cache&&Qe(!0===t?2:0)},oi.clearScrollMemory=St,oi.maxScroll=function(t,e){return J(t,e?I:F)},oi.getScrollFunc=function(t,e){return d(c(t),e?I:F)},oi.getById=function(t){return qe[t]},oi.getAll=function(){return Ne.filter((function(t){return"ScrollSmoother"!==t.vars.id}))},oi.isScrolling=function(){return!!xe},oi.snapDirectional=dt,oi.addEventListener=function(t,e){var i=Ye[t]||(Ye[t]=[]);~i.indexOf(e)||i.push(e)},oi.removeEventListener=function(t,e){var i=Ye[t],n=i&&i.indexOf(e);0<=n&&i.splice(n,1)},oi.batch=function(t,e){function i(t,e){var i=[],n=[],o=Lt.delayedCall(r,(function(){e(i,n),i=[],n=[]})).pause();return function(t){i.length||o.restart(!0),i.push(t.trigger),n.push(t),a<=i.length&&o.progress(1)}}var n,o=[],s={},r=e.interval||.016,a=e.batchMax||1e9;for(n in e)s[n]="on"===n.substr(0,2)&&et(e[n])&&"onRefreshInit"!==n?i(0,e[n]):e[n];return et(a)&&(a=a(),ht(oi,"refresh",(function(){return a=e.batchMax()}))),Nt(t).forEach((function(t){var e={};for(n in s)e[n]=s[n];e.trigger=t,o.push(oi.create(e))})),o};var di,ui={auto:1,scroll:1},hi=/(input|label|select|textarea)/i,pi=function(t){var e=hi.test(t.target.tagName);(e||di)&&(t._gsapAllow=!0,di=e)};oi.sort=function(t){if(et(t))return Ne.sort(t);var e=Dt.pageYOffset||0;return oi.getAll().forEach((function(t){return t._sortY=t.trigger?e+t.trigger.getBoundingClientRect().top:t.start+Dt.innerHeight})),Ne.sort(t||function(t,e){return-1e6*(t.vars.refreshPriority||0)+(t.vars.containerAnimation?1e6:t._sortY)-((e.vars.containerAnimation?1e6:e._sortY)+-1e6*(e.vars.refreshPriority||0))})},oi.observe=function(t){return new H(t)},oi.normalizeScroll=function(t){if(void 0===t)return ie;if(!0===t&&ie)return ie.enable();if(!1===t)return ie&&ie.kill(),void(ie=t);var e=t instanceof H?t:function(t){function e(){return l=!1}
10function i(){r=J(b,F),z=qt(re?1:0,r),g&&(M=qt(0,J(b,I))),a=Ve}function n(){T._gsap.y=U(parseFloat(T._gsap.y)+_.offset)+"px",T.style.transform="matrix3d(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, "+parseFloat(T._gsap.y)+", 0, 1)",_.offset=_.cacheID=0}function o(){i(),u.isActive()&&u.vars.scrollY>r&&(_()>r?u.progress(1)&&_(r):u.resetTo("scrollY",r))}nt(t)||(t={}),t.preventDefault=t.isNormalizer=t.allowClicks=!0,t.type||(t.type="wheel,touch"),t.debounce=!!t.debounce,t.id=t.id||"normalizer";var s,r,a,l,u,h,p,f,g=t.normalizeScrollX,m=t.momentum,v=t.allowNestedScroll,y=t.onRelease,b=c(t.target)||It,w=Lt.core.globals().ScrollSmoother,x=w&&w.get(),T=re&&(t.content&&c(t.content)||x&&!1!==t.content&&!x.smooth()&&x.content()),_=d(b,F),S=d(b,I),C=1,k=(H.isTouch&&Dt.visualViewport?Dt.visualViewport.scale*Dt.visualViewport.width:Dt.outerWidth)/Dt.innerWidth,E=0,P=et(m)?function(){return m(s)}:function(){return m||2.8},O=ci(b,t.type,!0,v),M=X,z=X;return T&&Lt.set(T,{y:"+=0"}),t.ignoreCheck=function(t){return re&&"touchmove"===t.type&&function(){if(l){requestAnimationFrame(e);var t=U(s.deltaY/2),i=z(_.v-t);if(T&&i!==_.v+_.offset){_.offset=i-_.v;var o=U((parseFloat(T&&T._gsap.y)||0)-_.offset);T.style.transform="matrix3d(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, "+o+", 0, 1)",T._gsap.y=o+"px",_.cacheID=A.cache,Qe()}return!0}_.offset&&n(),l=!0}()||1.05<C&&"touchstart"!==t.type||s.isGesturing||t.touches&&1<t.touches.length},t.onPress=function(){l=!1;var t=C;C=U((Dt.visualViewport&&Dt.visualViewport.scale||1)/k),u.pause(),t!==C&&ai(b,1.01<C||!g&&"x"),h=S(),p=_(),i(),a=Ve},t.onRelease=t.onGestureStart=function(t,e){if(_.offset&&n(),e){A.cache++;var i,s,a=P();g&&(s=(i=S())+.05*a*-t.velocityX/.227,a*=ri(S,i,s,J(b,I)),u.vars.scrollX=M(s)),s=(i=_())+.05*a*-t.velocityY/.227,a*=ri(_,i,s,J(b,F)),u.vars.scrollY=z(s),u.invalidate().duration(a).play(.01),(re&&u.vars.scrollY>=r||r-1<=i)&&Lt.to({},{onUpdate:o,duration:a})}else f.restart(!0);y&&y(t)},t.onWheel=function(){u._ts&&u.pause(),1e3<be()-E&&(a=0,E=be())},t.onChange=function(t,e,o,s,r){if(Ve!==a&&i(),e&&g&&S(M(s[2]===e?h+(t.startX-t.x):S()+e-s[1])),o){_.offset&&n();var l=r[2]===o,c=l?p+t.startY-t.y:_()+o-r[1],d=z(c);l&&c!==d&&(p+=d-c),_(d)}(o||e)&&Qe()},t.onEnable=function(){ai(b,!g&&"x"),oi.addEventListener("refresh",o),ht(Dt,"resize",o),_.smooth&&(_.target.style.scrollBehavior="auto",_.smooth=S.smooth=!1),O.enable()},t.onDisable=function(){ai(b,!0),pt(Dt,"resize",o),oi.removeEventListener("refresh",o),O.kill()},t.lockAxis=!1!==t.lockAxis,((s=new H(t)).iOS=re)&&!_()&&_(1),re&&Lt.ticker.add(X),f=s._dc,u=Lt.to(s,{ease:"power4",paused:!0,inherit:!1,scrollX:g?"+=0.1":"+=0",scrollY:"+=0.1",modifiers:{scrollY:At(_,_(),(function(){return u.pause()}))},onUpdate:Qe,onComplete:f.vars.onComplete}),s}(t);return ie&&ie.target===e.target&&ie.kill(),G(e.target)&&(ie=e),e},oi.core={_getVelocityProp:u,_inputObserver:ci,_scrollers:A,_proxies:z,bridge:{ss:function(){xe||Xe("scrollStart"),xe=be()},ref:function(){return Xt}}},Z()&&Lt.registerPlugin(oi),t.ScrollTrigger=oi,t.default=oi,"undefined"==typeof window||window!==t?Object.defineProperty(t,"__esModule",{value:!0}):delete t.default})),function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e((t=t||self).window=t.window||{})}(this,(function(t){"use strict";function e(){return"undefined"!=typeof window}function i(){return d||e()&&(d=window.gsap)&&d.registerPlugin&&d}function n(t){return"string"==typeof t}function o(t){return"function"==typeof t}function s(t,e){var i="x"===e?"Width":"Height",n="scroll"+i,o="client"+i;return t===h||t===p||t===f?Math.max(p[n],f[n])-(h["inner"+i]||p[o]||f[o]):t[n]-t["offset"+i]}function r(t,e){var i="scroll"+("x"===e?"Left":"Top");return t===h&&(null!=t.pageXOffset?i="page"+e.toUpperCase()+"Offset":t=null!=p[i]?p:f),function(){return t[i]}}function a(t,e){if(!(t=g(t)[0])||!t.getBoundingClientRect)return console.warn("scrollTo target doesn't exist. Using 0")||{x:0,y:0};var i=t.getBoundingClientRect(),n=!e||e===h||e===f,o=n?{top:p.clientTop-(h.pageYOffset||p.scrollTop||f.scrollTop||0),left
10:p.clientLeft-(h.pageXOffset||p.scrollLeft||f.scrollLeft||0)}:e.getBoundingClientRect(),s={x:i.left-o.left,y:i.top-o.top};return!n&&e&&(s.x+=r(e,"x")(),s.y+=r(e,"y")()),s}function l(t,e,i,o,r){return isNaN(t)||"object"==typeof t?n(t)&&"="===t.charAt(1)?parseFloat(t.substr(2))*("-"===t.charAt(0)?-1:1)+o-r:"max"===t?s(e,i)-r:Math.min(s(e,i),a(t,e)[i]-r):parseFloat(t)-r}function c(){d=i(),e()&&d&&"undefined"!=typeof document&&document.body&&(h=window,f=document.body,p=document.documentElement,g=d.utils.toArray,d.config({autoKillThreshold:7}),m=d.config(),u=1)}var d,u,h,p,f,g,m,v,y={version:"3.13.0",name:"scrollTo",rawVars:1,register:function(t){d=t,c()},init:function(t,e,i,s,a){u||c();var p=this,f=d.getProperty(t,"scrollSnapType");p.isWin=t===h,p.target=t,p.tween=i,e=function(t,e,i,s){if(o(t)&&(t=t(e,i,s)),"object"!=typeof t)return n(t)&&"max"!==t&&"="!==t.charAt(1)?{x:t,y:t}:{y:t};if(t.nodeType)return{y:t,x:t};var r,a={};for(r in t)a[r]="onAutoKill"!==r&&o(t[r])?t[r](e,i,s):t[r];return a}(e,s,t,a),p.vars=e,p.autoKill=!!("autoKill"in e?e:m).autoKill,p.getX=r(t,"x"),p.getY=r(t,"y"),p.x=p.xPrev=p.getX(),p.y=p.yPrev=p.getY(),v=v||d.core.globals().ScrollTrigger,"smooth"===d.getProperty(t,"scrollBehavior")&&d.set(t,{scrollBehavior:"auto"}),f&&"none"!==f&&(p.snap=1,p.snapInline=t.style.scrollSnapType,t.style.scrollSnapType="none"),null!=e.x?(p.add(p,"x",p.x,l(e.x,t,"x",p.x,e.offsetX||0),s,a),p._props.push("scrollTo_x")):p.skipX=1,null!=e.y?(p.add(p,"y",p.y,l(e.y,t,"y",p.y,e.offsetY||0),s,a),p._props.push("scrollTo_y")):p.skipY=1},render:function(t,e){for(var i,n,o,r,a,l=e._pt,c=e.target,d=e.tween,u=e.autoKill,p=e.xPrev,f=e.yPrev,g=e.isWin,y=e.snap,b=e.snapInline;l;)l.r(t,l.d),l=l._next;i=g||!e.skipX?e.getX():p,o=(n=g||!e.skipY?e.getY():f)-f,r=i-p,a=m.autoKillThreshold,e.x<0&&(e.x=0),e.y<0&&(e.y=0),u&&(!e.skipX&&(a<r||r<-a)&&i<s(c,"x")&&(e.skipX=1),!e.skipY&&(a<o||o<-a)&&n<s(c,"y")&&(e.skipY=1),e.skipX&&e.skipY&&(d.kill(),e.vars.onAutoKill&&e.vars.onAutoKill.apply(d,e.vars.onAutoKillParams||[]))),g?h.scrollTo(e.skipX?i:e.x,e.skipY?n:e.y):(e.skipY||(c.scrollTop=e.y),e.skipX||(c.scrollLeft=e.x)),!y||1!==t&&0!==t||(n=c.scrollTop,i=c.scrollLeft,b?c.style.scrollSnapType=b:c.style.removeProperty("scroll-snap-type"),c.scrollTop=n+1,c.scrollLeft=i+1,c.scrollTop=n,c.scrollLeft=i),e.xPrev=e.x,e.yPrev=e.y,v&&v.update()},kill:function(t){var e="scrollTo"===t,i=this._props.indexOf(t);return!e&&"scrollTo_x"!==t||(this.skipX=1),!e&&"scrollTo_y"!==t||(this.skipY=1),-1<i&&this._props.splice(i,1),!this._props.length}};y.max=s,y.getOffset=a,y.buildGetter=r,y.config=function(t){for(var e in m||c()||(m=d.config()),t)m[e]=t[e]},i()&&d.registerPlugin(y),t.ScrollToPlugin=y,t.default=y,"undefined"==typeof window||window!==t?Object.defineProperty(t,"__esModule",{value:!0}):delete t.default})),Array.isArray||(Array.isArray=function(t){return"[object Array]"===Object.prototype.toString.call(t)});var delaySubmit=function(){var t=0;return function(e,i){clearTimeout(t),t=setTimeout(e,i)}}();function addParentLinkToSecondary(){$("#main-menu > ul").each((function(){$(this).find("li.children").each((function(){var t=$(this).children("a").first(),e=$(this).children("ul.secondary-navigation").first();if(t.length&&e.length){var i=t.text().trim();e.children(".back-btn").remove();const n=$('<li class="back-btn"></li>').text(i);e.prepend(n)}}))}))}function adjustLayoutForNoticeBanner(){const t=$("#notice--warning"),e=$("#header.header--homepage"),i=$("main"),n=window.matchMedia("(max-width: 749px)");if(e.css("margin-top",""),i.css("margin-top",""),n.matches&&t.length&&t.is(":visible")){const n=t.outerHeight(!0);e.css("margin-top",n+"px"),i.css("margin-top",n+"px")}}function hideNoticeOnScroll(){const t=$("#notice--warning");if(!t.length)return;let e=0,i=!1;$(window).on("scroll",(function(){const n=$(this).scrollTop(),o=$(window).width()<=750;n>e?(!i&&n>=200&&(i=!0),i&&(o?(t.stop(!0,!0).slideUp(200),$("#header, main").css("margin-top","")):t.stop(!0,!0).animate({bottom:-t.outerHeight()},200))):n<=0&&(i=!1,o?t.stop(!0,!0).slideDown(200,adjustLayoutForNoticeBanner):t.stop(!0,!0).animate({bottom:0},200)),e=n}))}function manageNoticeBannerFade(){var t=$("#notice--warning");if(t.length){var e=t.find(".notice__content"),i=t.find(".notice__body"),n=e.find(".notice__fade");if(e.length&&i.length){var o=10*(parseFloat(getComputedStyle(document.documentElement).fontSize)||10);s(),$(window).on("resize",s),i.on("scroll",s)}}function s(){var t=i[0].scrollHeight,s=i.innerHeight(),r=i.scrollTop(),a=e.innerHe
10ight(),l=(i.position()?i.position().top:0)+i.outerHeight(),c=Math.max(a-l,0),d=t>o,u=r+s>=t-1;e.css("--notice-fade-bottom",c+"px"),n.toggleClass("is-visible",d&&!u)}}function manageNoticePopupFade(){var t=$("#notice--emergency");if(t.length){var e=t.find(".notice__content"),i=t.find(".notice__body"),n=e.find(".notice__fade");if(e.length&&i.length){var o=10*(parseFloat(getComputedStyle(document.documentElement).fontSize)||10);s(),$(window).on("resize",s),i.on("scroll",s)}}function s(){var t=i[0].scrollHeight,s=i.innerHeight(),r=i.scrollTop(),a=e.innerHeight(),l=(i.position()?i.position().top:0)+i.outerHeight(),c=Math.max(a-l,0),d=t>o,u=r+s>=t-1;e.css("--notice-fade-bottom",c-2+"px"),n.toggleClass("is-visible",d&&!u)}}function placeBioUnderRow(t,e,i){if(!t.length||!e.length||!i.length)return;const n=getComputedStyle(t[0]).getPropertyValue("grid-template-columns"),o=n?n.trim().split(/\s+/).length:1,s=t.children(".staff").index(e),r=Math.floor(s/o)+2;i.css({ 11gridColumn:"1 / -1",gridRow:r}).addClass("open")}$(window).on("scroll resize load",(function(){const t=$(window).scrollTop();document.documentElement.style.setProperty("--top-offset",`${t}px`)})),$(window).on("scroll resize load",(function(){var t=$(".page-content");if(t.length){var e=t[0].getBoundingClientRect();document.documentElement.style.setProperty("--left-offset",e.left+"px")}})),$(window).on("resize load",(function(){adjustLayoutForNoticeBanner()})),$("#notice--warning").on("transitioned",adjustLayoutForNoticeBanner),$(document).ready((function(){Fancybox.bind("[data-fancybox]",{}),manageNoticeBannerFade(),manageNoticePopupFade(),hideNoticeOnScroll(),$("select.goto").change((function(){var t=$(this).val();return t.length>0&&(window.location=t),!1})),$(document).on("click",".accordion__toggle",(function(){$(this).parent(".article.accordion-article").toggleClass("expanded"),$(this).siblings(".expandable-content").slideToggle()}));var t=$(".js-site-navigation").find("li.children"),e=$(".js-sidebar").find("li.children");$.each(t,(function(){$('<button class="toggle js-toggle-btn" aria-label="Toggle next menu level"><span></span></button>').insertAfter($(this).children("a"))})),$.each(e,(function(){$(this).prepend('<button class="toggle" aria-label="Open Menu Item"><span></span></button>')}));const i=$("#menu-toggle"),n=$(".js-site-navigation"),o=$(".js-menu-overlay"),s=$("#main-menu"),r=$("#header"),a=$("#notice--warning"),l=$(".gtranslate__container"),c=$(".js-menu-second"),d=$(".js-menu-third"),u=c.children(".js-nav-holder"),h=d.children(".js-nav-holder"),p=$("html, body");function f(){return c.is(":visible")}function g(t){p.css({overflow:t?"hidden":"auto"})}function m(){c.removeClass("open pre-open"),d.removeClass("open pre-open"),u.empty(),h.empty(),$(".js-site-navigation .open-state").removeClass("open-state")}function v(){f()?$("#main-menu ul.secondary-navigation .back-btn").remove():addParentLinkToSecondary()}function y(){m(),i.addClass("open"),n.addClass("open"),o.stop(!0,!0).fadeIn(200),g(!0),f()?(r.removeClass("open"),s.removeClass("open"),a.removeClass("open"),l.removeClass("open"),c.addClass("pre-open").removeClass("open")):(r.addClass("open"),s.addClass("open"),a.addClass("open"),l.addClass("open"))}function b(){m(),i.removeClass("open"),n.removeClass("open"),o.stop(!0,!0).fadeOut(200),g(!1),s.removeClass("open"),r.removeClass("open"),a.removeClass("open"),l.removeClass("open")}i.on("click",(function(){i.hasClass("open")?b():y()})),$(".js-close-nav, .js-menu-overlay").on("click",b),$("#main-menu > ul > li > .js-toggle-btn").on("click",(function(){f()?function(t){n.hasClass("open")||y();var e=t.parent();if(e.hasClass("children")){var i=e.children("ul.secondary-navigation").html();c.hasClass("open")?($(".site-navigation .open-state").removeClass("open-state"),e.addClass("open-state"),u.stop(!0,!0).fadeOut(250,(function(){$(this).html(i).fadeIn(250)})),h.stop(!0,!0).fadeOut(250,(function(){$(this).empty()})),d.removeClass("open").addClass("pre-open")):($(".site-navigation .open-state").removeClass("open-state"),e.addClass("open-state"),u.html(i),c.addClass("open"),d.addClass("pre-open").removeClass("open"))}else m()}($(this)):$(this).siblings("ul.secondary-navigation").addClass("open")})),$(".site-navigation .js-menu-second").on("click",".js-toggle-btn",(function(){var t,e;
11f()&&(t=$(this),(e=t.parent().children("ul").html())&&($(".js-menu-second .open-state").removeClass("open-state"),t.parent().addClass("open-state"),d.hasClass("open")?h.stop(!0,!0).fadeOut(250,(function(){$(this).html(e).fadeIn(250)})):(h.html(e),d.addClass("open"))))})),$("ul.secondary-navigation > li > .js-toggle-btn").on("click",(function(){f()||($(this).toggleClass("open"),$(this).siblings("ul").toggleClass("open"),$(this).parent("li").toggleClass("open"))})),$(document).on("click","#main-menu .back-btn",(function(){f()||$(this).closest("ul.secondary-navigation").removeClass("open")})),$(window).on("resize",(function(){i.hasClass("open")&&b(),v()})),v(),$("#header").headroom({offset:80,tolerance:{up:5,down:10},classes:{initial:"headroom",pinned:"headroom--pinned",unpinned:"headroom--unpinned",top:"headroom--top",notTop:"headroom--not-top",bottom:"headroom--bottom",notBottom:"headroom--not-bottom"}});var w=$("#header.header--homepage");let x,T=!1;function _(){T||(w.stop(!0,!0).fadeTo(150,0,(function(){$(this).css("background","#FAFBFC")})).fadeTo(300,1),T=!0)}function S(t){var e=t||$(document),i=$("[data-arrow-cursor]"),n=e.find(".js-arrow-link"),o=e.find(".js-arrow-link-container");i.length&&o.length&&(e.off(".arrowCursor"),o.on("mousemove.arrowCursor",(function(t){i.css({top:t.clientY-i.height()/2,left:t.clientX-i.width()/2})})),n.on("mouseenter.arrowCursor",(function(){i.addClass("show")})).on("mouseleave.arrowCursor",(function(){i.removeClass("show")})))}var C,k;function E(t,e){var i={},n=$('.js-search-form[data-search-request="'+t+'"]');return searchFilterFormFields=!0===e?n.find('input:not([type="hidden"], [type="submit"]), select'):n.find("input, select"),searchFilterFormFields.each((function(){var t=$(this).prop("name");switch($(this).prop("type")){case"checkbox":void 0!==i[t]&&"string"!=typeof i[t]||(i[t]=[]),$(this).is(":checked")&&i[t].push($(this).val());break;case"radio":$(this).is(":checked")&&(i[t]=$(this).val());break;default:i[t]=$(this).val()}})),i}function P(t,e){void 0===e&&(e={}),C&&C.abort();var i=$('.js-search-form[data-search-request="'+t+'"]'),n=$('.js-search-view[data-search-request="'+t+'"]'),o=(i.data(),n.data(),M(!0)),s=$.extend({},o);$.extend(s,E(t)),$.extend(s,e);var r=i.prop("action");void 0!==s.page&&(r+="?page="+s.page),C=$.ajax({type:"POST",dataType:"json",url:r,data:{filters:s,request_type:t},beforeSend:function(){n.addClass("loading")},success:function(t){"object"!=typeof t&&(t=[{html:t}]),t.forEach((function(t){if(void 0!==t.view)var e=$('.js-search-view[data-view="'+t.view+'"]');else e=n;void 0!==t.html&&(e.html(t.html),S())}))},error:function(t){console.error(t)},complete:function(t,e){n.removeClass("loading")}});var a=$.extend({},o);return $.extend(a,E(t,!0)),$.extend(a,e),O(a,t),C}function O(t,e){void 0===t&&(t={});var i=window.location.hash;Object.keys(t).forEach((function(e){isEmpty(t[e])&&delete t[e]})),void 0!==e&&(isEmpty(t)||(t=$.extend({search_request:e},t)));var n=window.location.protocol+"//"+window.location.host+window.location.pathname,o=$.param(t);""!==o&&(n=n+"?"+o),window.history.pushState({path:n},"",n),"#"!==i&&(window.location.hash=i)}function M(t){var e={};window.location.search&&(window.location.search.substring(1).split("&").forEach((function(t){if(void 0!==(t=t.split("="))[1]){var i=decodeURIComponent(t[0]).replace("[]",""),n=(n=decodeURIComponent(t[1]))?n.replace(/\++/g," ").trim():"";if(0===i.length)return;void 0===e[i]?e[i]=n:("function"!=typeof e[i].push&&(e[i]=[e[i]]),e[i].push(n))}})),void 0!==t&&!0===t&&delete e.search_request);return e}function A(t){P("calendar_item",t).then((function(){$(".js-event-modal").show()}))}if(setTimeout(_,5e3),w.on("mouseenter",_),$("#site-search-toggle").on("click",(function(){$("#site-search").addClass("open")})),$("#site-search #close-btn").on("click",(function(){$("#site-search").removeClass("open")})),$(".accordion__toggle").on("click",(function(){$(this).toggleClass("open"),$(this).parents(".accordion__header").siblings(".accordion__content").slideToggle(),$(this).parents(".accordion__header").closest(".article.type--accordion-article").toggleClass("open")})),$(".js-sidebar li.active, .js-sidebar li.current").each((function(){const t=$(this).children("ul.secondary-navigation"),e=$(this).children("button.toggle");t.addClass("open"),e.addClass("open")})),$("#sidenav-toggle").on("click",(function(){$(this).toggleClass("open"),$(".sidebar-container").toggleClass("open")})),$(".js-sidebar button.toggle").on("click",(function(){const t=$(this).hasClass("open");$("button.toggle").removeClass("open"),$("ul.secondary-navigation").removeClass("open"),t||($(this).addClass("open"),$(this).siblings("ul.secondary-navigation").addClass("open"))})),$("#toggle-sticky-links").on("click",(function(){$(this).toggleClass("open"),$("#home-sticky-links").toggleClass("open")})),S(),$(".comment-toggle__btn").on("click",(function(){$(this).toggleClass("open"),$("#comments-form").toggleClass("open")})),$(window).width()<550?$(".location-tab").first().addClass("is-active"):$(".location-tab").last().addClass("is-active"),$(".location-tab").on("click",(function(){var t=$(this);t.addClass("is-active"),t.siblings().hasClass("is-active")&&t.siblings().removeClass("is-active")})),$(".js-sort").on("click",(function(){$(this).hasClass("asc")?($(this).removeClass("asc"),$(this).addClass("desc")):$(this).hasClass("desc")&&($(this).removeClass("desc"),$(this).addClass("asc")),$(this).hasClass("active")||($(this).siblings(".js-sort").removeClass("active asc desc"),$(this).addClass("active desc"))})),$(".js-sm-button").on("click",(function(){if(!$(this).hasClass()){$(".js-sm-button.active").removeClass("active"),$(".js-sm-post.active").removeClass("active");var t=$(this).attr("data-target");$(this).addClass("active"),$('.js-sm-post[data-platform="'+t+'"]').addClass("active")}})),$(document).on("click",".js-show-bio-toggle",(function(){const t=$(this).closest(".prominence-members"),e=$(this).closest(".staff"),i=e.next(".bio"),n=$(this).siblings(".js-hide-bio-toggle");t.find(".bio").removeClass("open").css({gridRow:"",gridColumn:""}),t.find(".staff").removeClass("open"),t.find(".js-hide-bio-toggle").removeClass("open"),t.find(".js-show-bio-toggle").show(),$(this).hide(),n.addClass("open"),e.addClass("open"),placeBioUnderRow(t,e,i);const o=$("#header").outerHeight(!0),s=Math.max(i.offset().top-o-365,0);$("html, body").stop(!0).animate({scrollTop:s},400)})),$(document).on("click",".js-hide-bio-toggle",(function(){const t=$(this).closest(".staff"),e=t.next(".bio"),i=t.find(".js-show-bio-toggle");$(this).removeClass("open"),t.removeClass("open"),e.removeClass("open").css({gridRow:"",gridColumn:""}),i.show()})),$(window).on("resize",(function(){clearTimeout(x),x=setTimeout((()=>{$(".prominence-members").each((function(){const t=$(this),e=t.children(".bio.open");if(!e.length)return;placeBioUnderRow(t,e.prev(".staff"),e)}))}),150)})),$(".js-subscribe-toggle").on("click",(function(){$(this).siblings(".js-subscribe-togglee").slideToggle()})),$(".js-search-form").on("change",'input[type="radio"], input[type="checkbox"], select',(function(){var t=$($(this).prop("form"));t.find(".js-clear").show(),!0!==t.data("manual-submit")&&P(t.data("search-request"),{page:"1"})})),$(".js-search-form").on("keyup keypress",'input[type="text"]',(function(t){13!=t.keyCode&&13!=t.which||t.preventDefault(),delaySubmit(function(){var t=$($(this).prop("form"));t.find(".js-clear").show(),!0!==t.data("manual-submit")&&P(t.data("search-request"),{page:"1"})}.bind($(this)),500)})),$(".js-search-form").on("click",'button[type="submit"], input[type="submit"]',(function(t){t.preventDefault(),P($($(this).prop("form")).data("search-request"),{page:"1"})})),$(".js-search-form").on("click",".js-clear",(function(){$(this).hide();var t=$($(this).prop("form"));!function(t){$('.js-search-form[data-search-request="'+t+'"]').trigger("reset"),$('.js-sort[data-search-request="'+t+'"]').removeClass("active"),$('.js-sort[data-search-request="'+t+'"]').data("sort
11-dir","asc"),O()}(t.data("search-request")),P(t.data("search-request"))})),$(document).on("click",".js-sort",(function(){var t=$(this).data("search-request"),e=$(this).data("sort-by"),i=$(this).data("sort-dir");$('.js-sort[data-search-request="'+t+'"]').removeClass("active"),$('.js-search-form[data-search-request="'+t+'"]').find(".js-clear").show(),$(this).addClass("active"),"asc"===i?$(this).data("sort-dir","desc"):"desc"===i&&$(this).data("sort-dir","asc"),P(t,{sort_by:e,sort_dir:i=$(this).data("sort-dir")})})),$(document).on("click",".js-view-toggle button",(function(){var t=$(this).data("view-type");$('.js-view-toggle button[data-view-type="'+t+'"]').addClass("active"),$('.js-view-toggle button[data-view-type]:not([data-view-type="'+t+'"])').removeClass("active"),$('[data-view="'+t+'"]').show(),$('[data-view]:not([data-view="'+t+'"])').hide(),window.location.hash=t})),$(window).width()<450&&($('.js-view-toggle button[data-view-type="list"]').addClass("active"),$('.js-view-toggle button[data-view-type]:not([data-view-type="list"])').removeClass("active"),$('[data-view="list"]').show(),$('[data-view]:not([data-view="list"])').hide()),$('.js-search-view[data-view="grid"]').on("click",".calendar_nav a",(function(t){t.preventDefault();var e=$(this).attr("href").replace("#","").split("/"),i=e[0];P("events",{month:e[1],year:i})}
11)),$('.js-search-view[data-view="grid"]').on("click","a.item_link",(function(t){t.preventDefault(),A({event_id:$(this).attr("data-id"),year:$(this).attr("data-year"),month:$(this).attr("data-month"),day:$(this).attr("data-day")})})),$(document).on("click",".js-event-modal .js-event-modal-close",(function(){$(".js-event-modal").hide()})),$(document).on("click",".js-event-modal",(function(t){t.target===this&&$(".js-event-modal").hide()})),$(document).on("click",".pagination a",(function(){let t=$(this).attr("href"),e=new URLSearchParams(t).get("page");return P($(this).data("type"),{page:e}),!1})),k=M(),searchRequest=k.search_request,Object.keys(k).length&&(Object.keys(k).forEach((function(t){var e=$('[name="'+t+'"]');"checkbox"===e.prop("type")?Array.isArray(k[t])?e.each((function(){-1!==k[t].indexOf($(this).val())&&$(this).prop("checked",!0)})):$('[name="'+t+'"][value="'+k[t]+'"]').prop("checked",!0):e.val(k[t])})),"calendar_item"==searchRequest?A(k):P(searchRequest)),window.location.hash){var z=window.location.hash.replace("#","");$('.js-view-toggle button[data-view-type="'+z+'"]').click()}else $(".js-view-toggle button.active").click()})),$(document).ready((function(){$(".slider-photos__container").slick({infinite:!1,slidesToShow:1,slidesToScroll:1,adaptiveHeight:!1,asNavFor:".slider-thumbnails__container"}),$(".slider-thumbnails__container").slick({infinite:!1,slidesToShow:6,variableWidth:!0,slidesToScroll:1,centerMode:!0,asNavFor:".slider-photos__container",focusOnSelect:!0,arrows:!1})})),$(document).ready((function(){$(document).on("click",".js-contact-staff",(function(){var t=$(this).data("staff-id"),e=$(".js-staff-contact-form");e.find(".js-staff-contact-title").html("Contact "+$(this).data("staff-name")),e.find("form").trigger("reset"),e.find("#message").html(""),e.find("label.error").removeClass("error"),e.find('[name="staff_id"]').val(t),e.addClass("open")})),$(document).on("click",".js-staff-contact-form .js-close-modal",(function(){$(this).closest(".js-staff-contact-form").removeClass("open")})),$(document).on("submit",".js-staff-contact-form form",(function(t){var e=$(".js-staff-contact-form"),i=e.find("form"),n=e.find("#message"),o=grecaptcha?.enterprise||grecaptcha,s=o.getResponse();$(e).find('button[type="submit"]').prop("disabled",!0),n.removeClass("success"),n.removeClass("error"),t.preventDefault(),$.ajax({type:"POST",dataType:"json",url:$(this).attr("action"),data:{method:"ajax",request_type:"staff_contact",staff_id:$(this).find('[name="staff_id"]').val(),name:$(this).find('[name="name"]').val(),email:$(this).find('[name="email"]').val(),message:$(this).find('[name="message"]').val(),captcha:s,"g-recaptcha-response":$(this).find('[name="g-recaptcha-response"]').val()},beforeSend:function(){i.addClass("loading")},success:function(t){if($(e).find('button[type="submit"]').prop("disabled",!1),i.removeClass("loading"),e.find("input, textarea, select").each((function(){$(this).siblings("label").removeClass("error")})),o.reset(),void 0!==t.success)n.addClass("success"),n.html(t.success),i.trigger("reset");else if(void 0!==t.error)if(n.addClass("error"),"string"==typeof t.error)n.html(t.success);else{var s="There were errors with your submission as indicated below.<br />";for(var r in t.error)t.error.hasOwnProperty(r)&&($('[name="'+r+'"]').siblings("label").addClass("error"),s+="<p>"+t.error[r]+"<p>");n.html(s)}}})}))})),$(document).ready((function(){$(document).on("click",".js-meeting-category-toggler",(function(){$(this).toggleClass("open"),$(this).parents(".category__title").siblings(".js-meeting-category-togglee").slideToggle()})),$(document).on("click",".js-meeting-toggler",(function(){$(this).toggleClass("open"),$(this).parents(".meeting__title").siblings(".js-meeting-togglee").slideToggle()})),$(document).on("click",".js-meetings-openall",(function(){$(this).parents(".js-meeting-category-togglee").find(".js-meeting-toggler").addClass("open"),$(this).parents(".js-meeting-category-togglee").find(".js-meeting-togglee").slideDown()})),$(document).on("click",".js-meetings-closeall",(function(){$(this).parents(".js-meeting-category-togglee").find(".js-meeting-toggler").removeClass("open"),$(this).parents(".js-meeting-category-togglee").find(".js-meeting-togglee").slideUp()}))})),$((function(){if("undefined"!=typeof gsap&&document.querySelector(".main--homepage")){var t="undefined"!=typeof ScrollTrigger,e="undefined"!=typeof ScrollToPlugin,i=window.matchMedia("(prefers-reduced-motion: reduce)").matches,n=document.body;!function(){var i=[];t&&(i.push(ScrollTrigger),ScrollTrigger.config({ignoreMobileResize:!0}));e&&i.push(ScrollToPlugin);i.length&&gsap.registerPlugin.apply(gsap,i)}();var o,s={dark:((o=getComputedStyle(document.documentElement)).getPropertyValue("--dark-blue")||"#013D6B").trim(),light:(o.getPropertyValue("--off-white")||"#FAFBFC").trim()};n.style.backgroundColor=s.dark,function(){if(!document.querySelector("#home-banner .container"))return;gsap.from("#home-banner .container > *",{autoAlpha:0,y:40,duration:1,ease:"power2.out",stagger:.15,delay:.2})}(),function(){if(!t||i)return;var e=document.getElementById("home-news"),n=document.querySelector(".home-dark-bg");if(!e||!n)return;var o=n.querySelector(".home-dark-bg__blend"),s=e.querySelector(".home-news")||e;
11o&&gsap.set(o,{autoAlpha:0});function r(t){n.classList.toggle("is-light",t)}var a=!1,l=gsap.timeline({defaults:{ease:"power2.out"}});function c(t){!a&&t>=.45?(r(!0),a=!0):a&&t<=.25&&(r(!1),a=!1)}ScrollTrigger.create({trigger:s,start:"top bottom",end:"bottom center",scrub:1.2,animation:l,onEnter:function(t){c(t.progress)},onEnterBack:function(t){c(t.progress)},onUpdate:function(t){var e=t.progress;c(e),function(t){if(o){var e=t>.3?Math.max(0,1-(t+.4)):0;gsap.to(o,{autoAlpha:e,duration:.2,overwrite:!0})}}(e)},onLeave:function(){c(1)},onLeaveBack:function(){c(0)}})}(),function(){if(!t||i)return;var e=new Set;[".main--homepage > section",".home-dark-bg > section","#home-sm-feed","#home-land-acknowledgement","#home-secondary-enticer"].forEach((function(t){gsap.utils.toArray(t).forEach((function(t){t&&"home-main-enticers"!==t.id&&!e.has(t)&&(e.add(t),gsap.from(t,{autoAlpha:0,y:80,duration:1,ease:"power2.out",scrollTrigger:{trigger:t,start:"top 90%",toggleActions:"play none none reverse"}}))}))}))}(),function(){if(!t||i)return;gsap.utils.toArray(".home-events__content, .home-events__image").forEach((function(t){gsap.from(t,{autoAlpha:0,y:50,duration:.9,ease:"power2.out",scrollTrigger:{trigger:t,start:"top 85%"}})}))}(),function(){if(!t||i)return;gsap.utils.toArray("#home-news .home-news__listing > *").forEach((function(t){gsap.from(t,{autoAlpha:0,y:60,duration:.7,ease:"power2.out",scrollTrigger:{trigger:t,start:"top 90%"}})}))}(),function(){if(!t||i)return;gsap.utils.toArray("#home-locations .location-tab").forEach((function(t){gsap.from(t,{autoAlpha:0,y:40,duration:.6,ease:"power2.out",scrollTrigger:{trigger:t,start:"top 90%"}})}))}()}}));
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.