PageSourceSearch

https://www.butterflygp.com/dist/templates/js/tp2.js?1771323161000

js butterflygp.com collected 2026-10-04 02:14:47 UTC 229,635 bytes, 1 lines download raw bytes

vendor: 25,737 bytes, line 1
1!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).window=e.window||{})}(this,(function(e){"use strict";const t=(e,t=1e4)=>(e=parseFloat(e+"")||0,Math.round((e+Number.EPSILON)*t)/t),i=function(e){if(!(e&&e instanceof Element&&e.offsetParent))return!1;const t=e.scrollHeight>e.clientHeight,i=window.getComputedStyle(e).overflowY,o=-1!==i.indexOf("hidden"),n=-1!==i.indexOf("visible");return t&&!o&&!n},o=function(e,t){return!(!e||e===document.body||t&&e===t)&&(i(e)?e:o(e.parentElement,t))},n=function(e){var t=(new DOMParser).parseFromString(e,"text/html").body;if(t.childElementCount>1){for(var i=document.createElement("div");t.firstChild;)i.appendChild(t.firstChild);return i}return t.firstChild},s=e=>`${e||""}`.split(" ").filter((e=>!!e)),r=(e,t,i)=>{e&&s(t).forEach((t=>{e.classList.toggle(t,i||!1)}))};class a{constructor(e){Object.defineProperty(this,"pageX",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"pageY",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"clientX",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"clientY",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"id",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"time",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"nativePointer",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.nativePointer=e,this.pageX=e.pageX,this.pageY=e.pageY,this.clientX=e.clientX,this.clientY=e.clientY,this.id=self.Touch&&e instanceof Touch?e.identifier:-1,this.time=Date.now()}}const l={passive:!1};class c{constructor(e,{start:t=(()=>!0),move:i=(()=>{}),end:o=(()=>{})}){Object.defineProperty(this,"element",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"startCallback",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"moveCallback",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"endCallback",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"currentPointers",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(this,"startPointers",{enumerable:!0,configurable:!0,writable:!0,value:[]}),this.element=e,this.startCallback=t,this.moveCallback=i,this.endCallback=o;for(const e of["onPointerStart","onTouchStart","onMove","onTouchEnd","onPointerEnd","onWindowBlur"])this[e]=this[e].bind(this);this.element.addEventListener("mousedown",this.onPointerStart,l),this.element.addEventListener("touchstart",this.onTouchStart,l),this.element.addEventListener("touchmove",this.onMove,l),this.element.addEventListener("touchend",this.onTouchEnd),this.element.addEventListener("touchcancel",this.onTouchEnd)}onPointerStart(e){if(!e.buttons||0!==e.button)return;const t=new a(e);this.currentPointers.some((e=>e.id===t.id))||this.triggerPointerStart(t,e)&&(window.addEventListener("mousemove",this.onMove),window.addEventListener("mouseup",this.onPointerEnd),window.addEventListener("blur",this.onWindowBlur))}onTouchStart(e){for(const t of Array.from(e.changedTouches||[]))this.triggerPointerStart(new a(t),e);window.addEventListener("blur",this.onWindowBlur)}onMove(e){const t=this.currentPointers.slice(),i="changedTouches"in e?Array.from(e.changedTouches||[]).map((e=>new a(e))):[new a(e)],o=[];for(const e of i){const t=this.currentPointers.findIndex((t=>t.id===e.id));t<0||(o.push(e),this.currentPointers[t]=e)}o.length&&this.moveCallback(e,this.currentPointers.slice(),t)}onPointerEnd(e){e.buttons>0&&0!==e.button||(this.triggerPointerEnd(e,new a(e)),window.removeEventListener("mousemove",this.onMove),window.removeEventListener("mouseup",this.onPointerEnd),window.removeEventListener("blur",this.onWindowBlur))}onTouchEnd(e){for(const t of Array.from(e.changedTouches||[]))this.triggerPointerEnd(e,new a(t))}triggerPointerStart(e,t){return!!this.startCallback(t,e,this.currentPointers.slice())&&(this.currentPointers.push(e),this.startPointers.push(e),!0)}triggerPointerEnd(e,t){const i=this.currentPointers.findIndex((e=>e.id===t.id));i<0||(this.currentPointers.splice(i,1),this.startPointers.splice(i,1),this.endCallback(e,t,this.currentPointers.slice()))}onWindowBlur(){this.clear()}clear(){for(;this.currentPointers.length;){const e=this.currentPointers[this.currentPointers.length-1];this.currentPointers.splice(this.currentPointers.length-1,1),this.startPointers.splice(this.currentPointers.length-1,1),this.endCallback(new Event("touchend",{bubbles:!0,cancelable:!0,clientX:e.clientX,clientY:e.clientY}),e,this.currentPointers.slice())}}stop(){this.element.removeEventListener("mousedown",this.onPointerStart,l),this.element.removeEventListener("touchstart",this.onTouchStart,l),this.element.removeEventListener("touchmove",this.onMove,l),this.element.removeEventListener("touchend",this.onTouchEnd),this.element.removeEventListener("touchcancel",this.onTouchEnd),window.removeEventListener("mousemove",this.onMove),window.removeEventListener("mouseup",this.onPointerEnd),window.removeEventListener("blur",this.onWindowBlur)}}function d(e,t){return t?Math.sqrt(Math.pow(t.clientX-e.clientX,2)+Math.pow(t.clientY-e.clientY,2)):0}function u(e,t){return t?{clientX:(e.clientX+t.clientX)/2,clientY:(e.clientY+t.clientY)/2}:e}const h=e=>"object"==typeof e&&null!==e&&e.constructor===Object&&"[object Object]"===Object.prototype.toString.call(e),p=(e,...t)=>{const i=t.length;for(let o=0;o<i;o++){const i=t[o]||{};Object.entries(i).forEach((([t,i])=>{const o=Array.isArray(i)?[]:{};e[t]||Object.assign(e,{[t]:o}),h(i)?Object.assign(e[t],p(o,i)):Array.isArray(i)?Object.assign(e,{[t]:[...i]}):Object.assign(e,{[t]:i})}))}return e},f=function(e,t){return e.split(".").reduce(((e,t)=>"object"==typeof e?e[t]:void 0),t)};class m{constructor(e={}){Object.defineProperty(this,"options",{enumerable:!0,configurable:!0,writable:!0,value:e}),Object.defineProperty(this,"events",{enumerable:!0,configurable:!0,writable:!0,value:new Map}),this.setOptions(e);for(const e of Object.getOwnPropertyNames(Object.getPrototypeOf(this)))e.startsWith("on")&&"function"==typeof this[e]&&(this[e]=this[e].bind(this))}setOptions(e){this.options=e?p({},this.constructor.defaults,e):{};for(const[e,t]of Object.entries(this.option("on")||{}))this.on(e,t)}option(e,...t){let i=f(e,this.options);return i&&"function"==typeof i&&(i=i.call(this,this,...t)),i}optionFor(e,t,i,...o){let n=f(t,e);var s;"string"!=typeof(s=n)||isNaN(s)||isNaN(parseFloat(s))||(n=parseFloat(n)),"true"===n&&(n=!0),"false"===n&&(n=!1),n&&"function"==typeof n&&(n=n.call(this,this,e,...o));let r=f(t,this.options);return r&&"function"==typeof r?n=r.call(this,this,e,...o,n):void 0===n&&(n=r),void 0===n?i:n}cn(e){const t=this.options.classes;return t&&t[e]||""}localize(e,t=[]){e=String(e).replace(/\{\{(\w+).?(\w+)?\}\}/g,((e,t,i)=>{let o="";return i?o=this.option(`${t[0]+t.toLowerCase().substring(1)}.l10n.${i}`):t&&(o=this.option(`l10n.${t}`)),o||(o=e),o}));for(let i=0;i<t.length;i++)e=e.split(t[i][0]).join(t[i][1]);return e.replace(/\{\{(.*?)\}\}/g,((e,t)=>t))}on(e,t){let i=[];"string"==typeof e?i=e.split(" "):Array.isArray(e)&&(i=e),this.events||(this.events=new Map),i.forEach((e=>{let i=this.events.get(e);i||(this.events.set(e,[]),i=[]),i.includes(t)||i.push(t),this.events.set(e,i)}))}off(e,t){let i=[];"string"==typeof e?i=e.split(" "):Array.isArray(e)&&(i=e),i.forEach((e=>{const i=this.events.get(e);if(Array.isArray(i)){const e=i.indexOf(t);e>-1&&i.splice(e,1)}}))}emit(e,...t){[...this.events.get(e)||[]].forEach((e=>e(this,...t))),"*"!==e&&this.emit("*",e,...t)}}Object.defineProperty(m,"version",{enumerable:!0,configurable:!0,writable:!0,value:"5.0.36"}),Object.defineProperty(m,"defaults",{enumerable:!0,configurable:!0,writable:!0,value:{}});class g extends m{constructor(e={}){super(e),Object.defineProperty(this,"plugins",{enumerable:!0,configurable:!0,writable:!0,value:{}})}attachPlugins(e={}){const t=new Map;for(const[i,o]of Object.entries(e)){const e=this.option(i),n=this.plugins[i];n||!1===e?n&&!1===e&&(n.detach(),delete this.plugins[i]):t.set(i,new o(this,e||{}))}for(const[e,i]of t)this.plugins[e]=i,i.attach()}detachPlugins(e){e=e||Object.keys(this.plugins);for(const t of e){const e=this.plugins[t];e&&e.detach(),delete this.plugins[t]}return this.emit("detachPlugins"),this}}var b;!function(e){e[e.Init=0]="Init",e[e.Error=1]="Error",e[e.Ready=2]="Ready",e[e.Panning=3]="Panning",e[e.Mousemove=4]="Mousemove",e[e.Destroy=5]="Destroy"}(b||(b={}));const v=["a","b","c","d","e","f"],y={PANUP:"Move up",PANDOWN:"Move down",PANLEFT:"Move left",PANRIGHT:"Move right",ZOOMIN:"Zoom in",ZOOMOUT:"Zoom out",TOGGLEZOOM:"Toggle zoom level",TOGGLE1TO1:"Toggle zoom level",ITERATEZOOM:"Toggle zoom level",ROTATECCW:"Rotate counterclockwise",ROTATECW:"Rotate clockwise",FLIPX:"Flip horizontally",FLIPY:"Flip vertically",FITX:"Fit horizontally",FITY:"Fit vertically",RESET:"Reset",TOGGLEFS:"Toggle fullscreen"},w={content:null,width:"auto",height:"auto",panMode:"drag",touch:!0,dragMinThreshold:3,lockAxis:!1,mouseMoveFactor:1,mouseMoveFriction:.12,zoom:!0,pinchToZoom:!0,panOnlyZoomed:"auto",minScale:1,maxScale:2,friction:.25,dragFriction:.35,decelFriction:.05,click:"toggleZoom",dblClick:!1,wheel:"zoom",wheelLimit:7,spinner:!0,bounds:"auto",infinite:!1,rubberband:!0,bounce:!0,maxVelocity:75,transformParent:!1,classes:{content:"f-panzoom__content",isLoading:"is-loading",canZoomIn:"can-zoom_in",canZoomOut:"can-zoom_out",isDraggable:"is-draggable",isDragging:"is-dragging",inFullscreen:"in-fullscreen",htmlHasFullscreen:"with-panzoom-in-fullscreen"},l10n:y},S='<circle cx="25" cy="25" r="20"></circle>',x='<div class="f-spinner"><svg viewBox="0 0 50 50">'+S+S+"</svg></div>",T=e=>e&&null!==e&&e instanceof Element&&"nodeType"in e,C=(e,t)=>{e&&s(t).forEach((t=>{e.classList.remove(t)}))},k=(e,t)=>{e&&s(t).forEach((t=>{e.classList.add(t)}))},E={a:1,b:0,c:0,d:1,e:0,f:0},P=1e4,O="mousemove",M="drag",A="content",L="auto";let R=null,z=null;class I extends g{get fits(){return this.contentRect.width-this.contentRect.fitWidth<1&&this.contentRect.height-this.contentRect.fitHeight<1}get isTouchDevice(){return null===z&&(z=window.matchMedia("(hover: none)").matches),z}get isMobile(){return null===R&&(R=/iPhone|iPad|iPod|Android/i.test(navigator.userAgent)),R}get panMode(){return this.options.panMode!==O||this.isTouchDevice?M:O}get panOnlyZoomed(){const e=this.options.panOnlyZoomed;return e===L?this.isTouchDevice:e}get isInfinite(){return this.option("infinite")}get angle(){return 180*Math.atan2(this.current.b,this.current.a)/Math.PI||0}get targetAngle(){return 180*Math.atan2(this.target.b,this.target.a)/Math.PI||0}get scale(){const{a:e,b:t}=this.current;return Math.sqrt(e*e+t*t)||1}get targetScale(){const{a:e,b:t}=this.target;return Math.sqrt(e*e+t*t)||1}get minScale(){return this.option("minScale")||1}get fullScale(){const{contentRect:e}=this;return e.fullWidth/e.fitWidth||1}get maxScale(){return this.fullScale*(this.option("maxScale")||1)||1}get coverScale(){const{containerRect:e,contentRect:t}=this,i=Math.max(e.height/t.fitHeight,e.width/t.fitWidth)||1;return Math.min(this.fullScale,i)}get isScaling(){return Math.abs(this.targetScale-this.scale)>1e-5&&!this.isResting}get isContentLoading(){const e=this.content;return!!(e&&e instanceof HTMLImageElement)&&!e.complete}get isResting(){if(this.isBouncingX||this.isBouncingY)return!1;for(const e of v){const t="e"==e||"f"===e?1e-4:1e-5;if(Math.abs(this.target[e]-this.current[e])>t)return!1}return!(!this.ignoreBounds&&!this.checkBounds().inBounds)}constructor(e,t={},i={}){var o;if(super(t),Object.defineProperty(this,"pointerTracker",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"resizeObserver",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"updateTimer",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"clickTimer",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"rAF",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"isTicking",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"ignoreBounds",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"isBouncingX",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"isBouncingY",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"clicks",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"trackingPoints",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(this,"pwt",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"cwd",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"pmme",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"friction",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"state",{enumerable:!0,configurable:!0,writable:!0,value:b.Init}),Object.defineProperty(this,"isDragging",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"container",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"content",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"spinner",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"containerRect",{enumerable:!0,configurable:!0,writable:!0,value:{width:0,height:0,innerWidth:0,innerHeight:0}}),Object.defineProperty(this,"contentRect",{enumerable:!0,configurable:!0,writable:!0,value:{top:0,right:0,bottom:0,left:0,fullWidth:0,fullHeight:0,fitWidth:0,fitHeight:0,width:0,height:0}}),Object.defineProperty(this,"dragStart",{enumerable:!0,configurable:!0,writable:!0,value:{x:0,y:0,top:0,left:0,time:0}}),Object.defineProperty(this,"dragOffset",{enumerable:!0,configurable:!0,writable:!0,value:{x:0,y:0,time:0}}),Object.defineProperty(this,"current",{enumerable:!0,configurable:!0,writable:!0,value:Object.assign({},E)}),Object.defineProperty(this,"target",{enumerable:!0,configurable:!0,writable:!0,value:Object.assign({},E)}),Object.defineProperty(this,"velocity",{enumerable:!0,configurable:!0,writable:!0,value:{a:0,b:0,c:0,d:0,e:0,f:0}}),Object.defineProperty(this,"lockedAxis",{enumerable:!0,configurable:!0,writable:!0,value:!1}),!e)throw new Error("Container Element Not Found");this.container=e,this.initContent(),this.attachPlugins(Object.assign(Object.assign({},I.Plugins),i)),this.emit("attachPlugins"),this.emit("init");const s=this.content;if(s.addEventListener("load",this.onLoad),s.addEventListener("error",this.onError),this.isContentLoading){if(this.option("spinner")){e.classList.add(this.cn("isLoading"));const t=n(x);!e.contains(s)||s.parentElement instanceof HTMLPictureElement?this.spinner=e.appendChild(t):this.spinner=(null===(o=s.parentElement)||void 0===o?void 0:o.insertBefore(t,s))||null}this.emit("beforeLoad")}else queueMicrotask((()=>{this.enable()}))}initContent(){const{container:e}=this,t=this.cn(A);let i=this.option(A)||e.querySelector(`.${t}`);if(i||(i=e.querySelector("img,picture")||e.firstElementChild,i&&k(i,t)),i instanceof HTMLPictureElement&&(i=i.querySelector("img")),!i)throw new Error("No content found");this.content=i}onLoad(){const{spinner:e,container:t,state:i}=this;e&&(e.remove(),this.spinner=null),this.option("spinner")&&t.classList.remove(this.cn("isLoading")),this.emit("afterLoad"),i===b.Init?this.enable():this.updateMetrics()}onError(){this.state!==b.Destroy&&(this.spinner&&(this.spinner.remove(),this.spinner=null),this.stop(),this.detachEvents(),this.state=b.Error,this.emit("error"))}getNextScale(e){const{fullScale:t,targetScale:i,coverScale:o,maxScale:n,minScale:s}=this;let r=s;switch(e){case"toggleMax":r=i-s<.5*(n-s)?n:s;break;case"toggleCover":r=i-s<.5*(o-s)?o:s;break;case"toggleZoom":r=i-s<.5*(t-s)?t:s;break;case"iterateZoom":let e=[1,t,n].sort(((e,t)=>e-t)),a=e.findIndex((e=>e>i+1e-5));r=e[a]||1}return r}attachObserver(){var e;const t=()=>{const{container:e,containerRect:t}=this;return Math.abs(t.width-e.getBoundingClientRect().width)>.1||Math.abs(t.height-e.getBoundingClientRect().height)>.1};this.resizeObserver||void 0===window.ResizeObserver||(this.resizeObserver=new ResizeObserver((()=>{this.updateTimer||(t()?(this.onResize(),this.isMobile&&(this.updateTimer=setTimeout((()=>{t()&&this.onResize(),this.updateTimer=null}),500))):this.updateTimer&&(clearTimeout(this.updateTimer),this.updateTimer=null))}))),null===(e=this.resizeObserver)||void 0===e||e.observe(this.container)}detachObserver(){var e;null===(e=this.resizeObserver)||void 0===e||e.disconnect()}attachEvents(){const{container:e}=this;e.addEventListener("click",this.onClick,{passive:!1,capture:!1}),e.addEventListener("wheel",this.onWheel,{passive:!1}),this.pointerTracker=new c(e,{start:this.onPointerDown,move:this.onPointerMove,end:this.onPointerUp}),document.addEventListener(O,this.onMouseMove)}detachEvents(){var e;const{container:t}=this;t.removeEventListener("click",this.onClick,{passive:!1,capture:!1}),t.removeEventListener("wheel",this.onWheel,{passive:!1}),null===(e=this.pointerTracker)||void 0===e||e.stop(),this.pointerTracker=null,document.removeEventListener(O,this.onMouseMove),document.removeEventListener("keydown",this.onKeydown,!0),this.clickTimer&&(clearTimeout(this.clickTimer),this.clickTimer=null),this.updateTimer&&(clearTimeout(this.updateTimer),this.updateTimer=null)}animate(){this.setTargetForce();const e=this.friction,t=this.option("maxVelocity");for(const i of v)e?(this.velocity[i]*=1-e,t&&!this.isScaling&&(this.velocity[i]=Math.max(Math.min(this.velocity[i],t),-1*t)),this.current[i]+=this.velocity[i]):this.current[i]=this.target[i];this.setTransform(),this.setEdgeForce(),!this.isResting||this.isDragging?this.rAF=requestAnimationFrame((()=>this.animate())):this.stop("current")}setTargetForce(){for(const e of v)"e"===e&&this.isBouncingX||"f"===e&&this.isBouncingY||(this.velocity[e]=(1/(1-this.friction)-1)*(this.target[e]-this.current[e]))}checkBounds(e=0,t=0){const{current:i}=this,o=i.e+e,n=i.f+t,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&&o<l?h=l-o:c!==1/0&&o>c&&(h=c-o),d!==1/0&&n<d?p=d-n:u!==1/0&&n>u&&(p=u-n),Math.abs(h)<1e-4&&(h=0),Math.abs(p)<1e-4&&(p=0),Object.assign(Object.assign({},s),{xDiff:h,yDiff:p,inBounds:!h&&!p})}clampTargetBounds(){const{target:e}=this,{x:t,y:i}=this.getBounds();t.min!==1/0&&(e.e=Math.max(e.e,t.min)),t.max!==1/0&&(e.e=Math.min(e.e,t.max)),i.min!==1/0&&(e.f=Math.max(e.f,i.min)),i.max!==1/0&&(e.f=Math.min(e.f,i.max))}calculateContentDim(e=this.current){const{content:t,contentRect:i}=this,{fitWidth:o,fitHeight:n,fullWidth:s,fullHeight:r}=i;let a=s,l=r;if(this.option("zoom")||0!==this.angle){const i=!(t instanceof HTMLImageElement||"none"!==window.getComputedStyle(t).maxWidth&&"none"!==window.getComputedStyle(t).maxHeight),c=i?s:o,d=i?r:n,u=this.getMatrix(e),h=new DOMPoint(0,0).matrixTransform(u),p=new DOMPoint(0+c,0).matrixTransform(u),f=new DOMPoint(0+c,0+d).matrixTransform(u),m=new DOMPoint(0,0+d).matrixTransform(u),g=Math.abs(f.x-h.x),b=Math.abs(f.y-h.y),v=Math.abs(m.x-p.x),y=Math.abs(m.y-p.y);a=Math.max(g,v),l=Math.max(b,y)}return{contentWidth:a,contentHeight:l}}setEdgeForce(){if(this.ignoreBounds||this.isDragging||this.panMode===O||this.targetScale<this.scale)return this.isBouncingX=!1,void(this.isBouncingY=!1);const{target:e}=this,{x:t,y:i,xDiff:o,yDiff:n}=this.checkBounds(),s=this.option("maxVelocity");let r=this.velocity.e,a=this.velocity.f;0!==o?(this.isBouncingX=!0,o*r<=0?r+=.14*o:(r=.14*o,t.min!==1/0&&(this.target.e=Math.max(e.e,t.min)),t.max!==1/0&&(this.target.e=Math.min(e.e,t.max))),s&&(r=Math.max(Math.min(r,s),-1*s))):this.isBouncingX=!1,0!==n?(this.isBouncingY=!0,n*a<=0?a+=.14*n:(a=.14*n,i.min!==1/0&&(this.target.f=Math.max(e.f,i.min)),i.max!==1/0&&(this.target.f=Math.min(e.f,i.max))),s&&(a=Math.max(Math.min(a,s),-1*s))):this.isBouncingY=!1,this.isBouncingX&&(this.velocity.e=r),this.isBouncingY&&(this.velocity.f=a)}enable(){const{content:e}=this,t=new DOMMatrixReadOnly(window.getComputedStyle(e).transform);for(const e of v)this.current[e]=this.target[e]=t[e];this.updateMetrics(),this.attachObserver(),this.attachEvents(),this.state=b.Ready,this.emit("ready")}onClick(e){var t;"click"===e.type&&0===e.detail&&(this.dragOffset.x=0,this.dragOffset.y=0),this.isDragging&&(null===(t=this.pointerTracker)||void 0===t||t.clear(),this.trackingPoints=[],this.startDecelAnim());const i=e.target;if(!i||e.defaultPrevented)return;if(i.hasAttribute("disabled"))return e.preventDefault(),void e.stopPropagation();if((()=>{const e=window.getSelection();return e&&"Range"===e.type})()&&!i.closest("button"))return;const o=i.closest("[data-panzoom-action]"),n=i.closest("[data-panzoom-change]"),s=o||n,r=s&&T(s)?s.dataset:null;if(r){const t=r.panzoomChange,i=r.panzoomAction;if((t||i)&&e.preventDefault(),t){let i={};try{i=JSON.parse(t)}catch(e){console&&console.warn("The given data was not valid JSON")}return void this.applyChange(i)}if(i)return void(this[i]&&this[i]())}if(Math.abs(this.dragOffset.x)>3||Math.abs(this.dragOffset.y)>3)return e.preventDefault(),void e.stopPropagation();if(i.closest("[data-fancybox]"))return;const a=this.content.getBoundingClientRect(),l=this.dragStart;if(l.time&&!this.canZoomOut()&&(Math.abs(a.x-l.x)>2||Math.abs(a.y-l.y)>2))return;this.dragStart.time=0;const c=t=>{this.option("zoom",e)&&t&&"string"==typeof t&&/(iterateZoom)|(toggle(Zoom|Full|Cover|Max)|(zoomTo(Fit|Cover|Max)))/.test(t)&&"function"==typeof this[t]&&(e.preventDefault(),this[t]({event:e}))},d=this.option("click",e),u=this.option("dblClick",e);u?(this.clicks++,1==this.clicks&&(this.clickTimer=setTimeout((()=>{1===this.clicks?(this.emit("click",e),!e.defaultPrevented&&d&&c(d)):(this.emit("dblClick",e),e.defaultPrevented||c(u)),this.clicks=0,this.clickTimer=null}),350))):(this.emit("click",e),!e.defaultPrevented&&d&&c(d))}addTrackingPoint(e){const t=this.trackingPoints.filter((e=>e.time>Date.now()-100));t.push(e),this.trackingPoints=t}onPointerDown(e,t,i){var o;if(!1===this.option("touch",e))return!1;this.pwt=0,this.dragOffset={x:0,y:0,time:0},this.trackingPoints=[];const n=this.content.getBoundingClientRect();if(this.dragStart={x:n.x,y:n.y,top:n.top,left:n.left,time:Date.now()},this.clickTimer)return!1;if(this.panMode===O&&this.targetScale>1)return e.preventDefault(),e.stopPropagation(),!1;const s=e.composedPath()[0];if(!i.length){if(["TEXTAREA","OPTION","INPUT","SELECT","VIDEO","IFRAME"].includes(s.nodeName)||s.closest("[contenteditable],[data-selectable],[data-draggable],[data-clickable],[data-panzoom-change],[data-panzoom-action]"))return!1;null===(o=window.getSelection())||void 0===o||o.removeAllRanges()}if("mousedown"===e.type)["A","BUTTON"].includes(s.nodeName)||e.preventDefault();else if(Math.abs(this.velocity.a)>.3)return!1;return this.target.e=this.current.e,this.target.f=this.current.f,this.stop(),this.isDragging||(this.isDragging=!0,this.addTrackingPoint(t),this.emit("touchStart",e)),!0}onPointerMove(e,i,n){if(!1===this.option("touch",e))return;if(!this.isDragging)return;if(i.length<2&&this.panOnlyZoomed&&t(this.targetScale)<=t(this.minScale))return;if(this.emit("touchMove",e),e.defaultPrevented)return;this.addTrackingPoint(i[0]);const{content:s}=this,r=u(n[0],n[1]),a=u(i[0],i[1]);let l=0,c=0;if(i.length>1){const e=s.getBoundingClientRect();l=r.clientX-e.left-.5*e.width,c=r.clientY-e.top-.5*e.height}const h=d(n[0],n[1]),p=d(i[0],i[1]);let f=h?p/h:1,m=a.clientX-r.clientX,g=a.clientY-r.clientY;this.dragOffset.x+=m,this.dragOffset.y+=g,this.dragOffset.time=Date.now()-this.dragStart.time;let b=t(this.targetScale)===t(this.minScale)&&this.option("lockAxis");if(b&&!this.lockedAxis)if("xy"===b||"y"===b||"touchmove"===e.type){if(Math.abs(this.dragOffset.x)<6&&Math.abs(this.dragOffset.y)<6)return void e.preventDefault();const t=Math.abs(180*Math.atan2(this.dragOffset.y,this.dragOffset.x)/Math.PI);this.lockedAxis=t>45&&t<135?"y":"x",this.dragOffset.x=0,this.dragOffset.y=0,m=0,g=0}else this.lockedAxis=b;if(o(e.target,this.content)&&(b="x",this.dragOffset.y=0),b&&"xy"!==b&&this.lockedAxis!==b&&t(this.targetScale)===t(this.minScale))return;e.cancelable&&e.preventDefault(),this.container.classList.add(this.cn("isDragging"));const v=this.checkBounds(m,g);this.option("rubberband")?("x"!==this.isInfinite&&(v.xDiff>0&&m<0||v.xDiff<0&&m>0)&&(m*=Math.max(0,.5-Math.abs(.75/this.contentRect.fitWidth*v.xDiff))),"y"!==this.isInfinite&&(v.yDiff>0&&g<0||v.yDiff<0&&g>0)&&(g*=Math.max(0,.5-Math.abs(.75/this.contentRect.fitHeight*v.yDiff)))):(v.xDiff&&(m=0),v.yDiff&&(g=0));const y=this.targetScale,w=this.minScale,S=this.maxScale;y<.5*w&&(f=Math.max(f,w)),y>1.5*S&&(f=Math.min(f,S)),"y"===this.lockedAxis&&t(y)===t(w)&&(m=0),"x"===this.lockedAxis&&t(y)===t(w)&&(g=0),this.applyChange({originX:l,originY:c,panX:m,panY:g,scale:f,friction:this.option("dragFriction"),ignoreBounds:!0})}onPointerUp(e,t,i){if(i.length)return this.dragOffset.x=0,this.dragOffset.y=0,void(this.trackingPoints=[]);this.container.classList.remove(this.cn("isDragging")),this.isDragging&&(this.addTrackingPoint(t),this.panOnlyZoomed&&this.contentRect.width-this.contentRect.fitWidth<1&&this.contentRect.height-this.contentRect.fitHeight<1&&(this.trackingPoints=[]),o(e.target,this.content)&&"y"===this.lockedAxis&&(this.trackingPoints=[]),this.emit
vendor: 4,629 bytes, line 1
1("touchEnd",e),this.isDragging=!1,this.lockedAxis=!1,this.state!==b.Destroy&&(e.defaultPrevented||this.startDecelAnim()))}startDecelAnim(){var e;const i=this.isScaling;this.rAF&&(cancelAnimationFrame(this.rAF),this.rAF=null),this.isBouncingX=!1,this.isBouncingY=!1;for(const e of v)this.velocity[e]=0;this.target.e=this.current.e,this.target.f=this.current.f,C(this.container,"is-scaling"),C(this.container,"is-animating"),this.isTicking=!1;const{trackingPoints:o}=this,n=o[0],s=o[o.length-1];let r=0,a=0,l=0;s&&n&&(r=s.clientX-n.clientX,a=s.clientY-n.clientY,l=s.time-n.time);const c=(null===(e=window.visualViewport)||void 0===e?void 0:e.scale)||1;1!==c&&(r*=c,a*=c);let d=0,u=0,h=0,p=0,f=this.option("decelFriction");const m=this.targetScale;if(l>0){h=Math.abs(r)>3?r/(l/30):0,p=Math.abs(a)>3?a/(l/30):0;const e=this.option("maxVelocity");e&&(h=Math.max(Math.min(h,e),-1*e),p=Math.max(Math.min(p,e),-1*e))}h&&(d=h/(1/(1-f)-1)),p&&(u=p/(1/(1-f)-1)),("y"===this.option("lockAxis")||"xy"===this.option("lockAxis")&&"y"===this.lockedAxis&&t(m)===this.minScale)&&(d=h=0),("x"===this.option("lockAxis")||"xy"===this.option("lockAxis")&&"x"===this.lockedAxis&&t(m)===this.minScale)&&(u=p=0);const g=this.dragOffset.x,b=this.dragOffset.y,y=this.option("dragMinThreshold")||0;Math.abs(g)<y&&Math.abs(b)<y&&(d=u=0,h=p=0),(this.option("zoom")&&(m<this.minScale-1e-5||m>this.maxScale+1e-5)||i&&!d&&!u)&&(f=.35),this.applyChange({panX:d,panY:u,friction:f}),this.emit("decel",h,p,g,b)}onWheel(e){var t=[-e.deltaX||0,-e.deltaY||0,-e.detail||0].reduce((function(e,t){return Math.abs(t)>Math.abs(e)?t:e}));const i=Math.max(-1,Math.min(1,t));if(this.emit("wheel",e,i),this.panMode===O)return;if(e.defaultPrevented)return;const o=this.option("wheel");"pan"===o?(e.preventDefault(),this.panOnlyZoomed&&!this.canZoomOut()||this.applyChange({panX:2*-e.deltaX,panY:2*-e.deltaY,bounce:!1})):"zoom"===o&&!1!==this.option("zoom")&&this.zoomWithWheel(e)}onMouseMove(e){this.panWithMouse(e)}onKeydown(e){"Escape"===e.key&&this.toggleFS()}onResize(){this.updateMetrics(),this.checkBounds().inBounds||this.requestTick()}setTransform(){this.emit("beforeTransform");const{current:e,target:i,content:o,contentRect:n}=this,s=Object.assign({},E);for(const o of v){const n="e"==o||"f"===o?P:1e5;s[o]=t(e[o],n),Math.abs(i[o]-e[o])<("e"==o||"f"===o?.51:.001)&&(e[o]=i[o])}let{a:r,b:a,c:l,d:c,e:d,f:u}=s,h=`matrix(${r}, ${a}, ${l}, ${c}, ${d}, ${u})`,p=o.parentElement instanceof HTMLPictureElement?o.parentElement:o;if(this.option("transformParent")&&(p=p.parentElement||p),p.style.transform===h)return;p.style.transform=h;const{contentWidth:f,contentHeight:m}=this.calculateContentDim();n.width=f,n.height=m,this.emit("afterTransform")}updateMetrics(e=!1){var i;if(!this||this.state===b.Destroy)return;if(this.isContentLoading)return;const o=Math.max(1,(null===(i=window.visualViewport)||void 0===i?void 0:i.scale)||1),{container:n,content:s}=this,r=s instanceof HTMLImageElement,a=n.getBoundingClientRect(),l=getComputedStyle(this.container);let c=a.width*o,d=a.height*o;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||"")||(e=>{let t=0;return t=e instanceof HTMLImageElement?e.naturalWidth:e instanceof SVGElement?e.width.baseVal.value:Math.max(e.offsetWidth,e.scrollWidth),t||0})(s),m=parseFloat(s.dataset.height||"")||(e=>{let t=0;return t=e instanceof HTMLImageElement?e.naturalHeight:e instanceof SVGElement?e.height.baseVal.value:Math.max(e.offsetHeight,e.scrollHeight),t||0})(s);let g=this.option("width",f)||L,v=this.option("height",m)||L;const y=g===L,w=v===L;"number"!=typeof g&&(g=f),"number"!=typeof v&&(v=m),y&&(g=f*(v/m)),w&&(v=m/(f/g));let S=s.parentElement instanceof HTMLPictureElement?s.parentElement:s;this.option("transformParent")&&(S=S.parentElement||S);const x=S.getAttribute("style")||"";S.style.setProperty("transform","none","important"),r&&(S.style.width="",S.style.height=""),S.offsetHeight;const T=s.getBoundingClientRect();let C=T.width*o,k=T.height*o,E=C,P=k;C=Math.min(C,g),k=Math.min(k,v),r?({width:C,height:k}=((e,t,i,o)=>{const n=i/e,s=o/t,r=Math.min(n,s);return{width:e*=r,height:t*=r}})(g,v,C,k)):(C=Math.min(C,g),k=Math.min(k,v));let O=.5*(P-k),M=.5*(E-C);this.contentRect=Object.assign(Object.assign({},this.contentRect),{top:T.top-a.top+O,bottom:a.bottom-T.bottom+O,left:T.left-a.left+M,right:a.right-T.right+M,fitWidth:C,fitHeight:k,width:C,height:k,fullWidth:g,fullHeight:v}),S.style.cssText=x,r&&(S.style.width=`${C}px`,S.style.height=`${k}
1px`),this.setTransform(),!0!==e&&this.emit("refresh"),this.ignoreBounds||(t(this.targetScale)<t(this.minScale)?this.zoomTo(this.minScale,{friction:0}):this.targetScale>this.maxScale?this.zoomTo(this.maxScale,{friction:0}):this.state===b.Init||this.checkBounds().inBounds||this.requestTick()),this.updateControls()}calculateBounds(){const{contentWidth:e,contentHeight:i}=this.calculateContentDim(this.target),{targetScale:o,lockedAxis:n}=this,{fitWidth:s,fitHeight:r}=this.contentRect;let a=0,l=0,c=0,d=0;const u=this.option("infinite");if(!0===u||n&&u===n)a=-1/0,c=1/0,l=-1/0,d=1/0;else{let{containerRect:n,contentRect:u}=this,h=t(s*o,P),p=t(r*o,P),{innerWidth:f,innerHeight:m}=n;if(n.width===h&&(f=n.width),n.width===p&&(m=n.height),e>f){c=.5*(e-f),a=-1*c;let t=.5*(u.right-u.left);a+=t,c+=t}if(s>f&&e<f&&(a-=.5*(s-f),c-=.5*(s-f)),i>m){d=.5*(i-m),l=-1*d;let e=.5*(u.bottom-u.top);l+=e,d+=e}r>m&&i<m&&(a-=.5*(r-m),c-=.5*(r-m))}return{x:{min:a,max:c},y:{min:l,max:d}}}getBounds(){const e=this.option("bounds");return e!==L?e:this.calculateBounds()}updateControls(){const e=this,i=e.container,{panMode:o,contentRect:n,targetScale:s,minScale:a}=e;let l=a,c=e.option("click")||!1;c&&(l=e.getNextScale(c));let d=e.canZoomIn(),u=e.canZoomOut(),h=o===M&&!!this.option("touch"),p=u&&h;if(h&&(t(s)<t(a)&&!this.panOnlyZoomed&&(p=!0),(t(n.width,1)>t(n.fitWidth,1)||t(n.height,1)>t(n.fitHeight,1))&&(p=!0)),t(n.width*s,1)<t(n.fitWidth,1)&&(p=!1),o===O&&(p=!1),r(i,this.cn("isDraggable"),p),!this.option("zoom"))return;let f=d&&t(l)>t(s),m=!f&&!p&&u&&t(l)<t(s);r(i,this.cn("canZoomIn"),f),r(i,this.cn("canZoomOut"),m);for(const e of i.querySelectorAll("[data-panzoom-action]")){let t=!1,i=!1;switch(e.dataset.panzoomAction){case"zoomIn":d?t=!0:i=!0;break;case"zoomOut":u?t=!0:i=!0;break;case"toggleZoom":case"iterateZoom":d||u?t=!0:i=!0;const o=e.querySelector("g");o&&(o.style.display=d?"":"none")}t?(e.removeAttribute("disabled"),e.removeAttribute("tabindex")):i&&(e.setAttribute("disabled",""),e.setAttribute("tabindex","-1"))}}panTo({x:e=this.target.e,y:t=this.target.f,scale:i=this.targetScale,friction:o=this.option("friction"),angle:n=0,originX:s=0,originY:r=0,flipX:a=!1,flipY:l=!1,ignoreBounds:c=!1}){this.state!==b.Destroy&&this.applyChange({panX:e-this.target.e,panY:t-this.target.f,scale:i/this.targetScale,angle:n,originX:s,originY:r,friction:o,flipX:a,flipY:l,ignoreBounds:c})}applyChange({panX:e=0,panY:i=0,scale:o=1,angle:n=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===b.Destroy)return;this.rAF&&(cancelAnimationFrame(this.rAF),this.rAF=null),this.friction=a||0,this.ignoreBounds=d;const{current:p}=this,f=p.e,m=p.f,g=this.getMatrix(this.target);let y=(new DOMMatrix).translate(f,m).translate(s,r).translate(e,i);if(this.option("zoom")){if(!d){const e=this.targetScale,t=this.minScale,i=this.maxScale;e*o<t&&(o=t/e),e*o>i&&(o=i/e)}y=y.scale(o)}y=y.translate(-s,-r).translate(-f,-m).multiply(g),n&&(y=y.rotate(n)),l&&(y=y.scale(-1,1)),c&&(y=y.scale(1,-1));for(const e of v)"e"!==e&&"f"!==e&&(y[e]>this.minScale+1e-5||y[e]<this.minScale-1e-5)?this.target[e]=y[e]:this.target[e]=t(y[e],P);(this.targetScale<this.scale||Math.abs(o-1)>.1||this.panMode===O||!1===u)&&!d&&this.clampTargetBounds(),h===b.Init?this.animate():this.isResting||(this.state=b.Panning,this.requestTick())}stop(e=!1){if(this.state===b.Init||this.state===b.Destroy)return;const t=this.isTicking;this.rAF&&(cancelAnimationFrame(this.rAF),this.rAF=null),this.isBouncingX=!1,this.isBouncingY=!1;for(const t of v)this.velocity[t]=0,"current"===e?this.current[t]=this.target[t]:"target"===e&&(this.target[t]=this.current[t]);this.setTransform(),C(this.container,"is-scaling"),C(this.container,"is-animating"),this.isTicking=!1,this.state=b.Ready,t&&(this.emit
vendor: 4,956 bytes, line 1
1("endAnimation"),this.updateControls())}requestTick(){this.isTicking||(this.emit("startAnimation"),this.updateControls(),k(this.container,"is-animating"),this.isScaling&&k(this.container,"is-scaling")),this.isTicking=!0,this.rAF||(this.rAF=requestAnimationFrame((()=>this.animate())))}panWithMouse(e,i=this.option("mouseMoveFriction")){if(this.pmme=e,this.panMode!==O||!e)return;if(t(this.targetScale)<=t(this.minScale))return;this.emit("mouseMove",e);const{container:o,containerRect:n,contentRect:s}=this,r=n.width,a=n.height,l=o.getBoundingClientRect(),c=(e.clientX||0)-l.left,d=(e.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 m=.5*(h-a)-d/a*100/100*(h-a);m+=.5*(s.bottom-s.top),this.applyChange({panX:f-this.target.e,panY:m-this.target.f,friction:i})}zoomWithWheel(e){if(this.state===b.Destroy||this.state===b.Init)return;const i=Date.now();if(i-this.pwt<45)return void e.preventDefault();this.pwt=i;var o=[-e.deltaX||0,-e.deltaY||0,-e.detail||0].reduce((function(e,t){return Math.abs(t)>Math.abs(e)?t:e}));const n=Math.max(-1,Math.min(1,o)),{targetScale:s,maxScale:r,minScale:a}=this;let l=s*(100+45*n)/100;t(l)<t(a)&&t(s)<=t(a)?(this.cwd+=Math.abs(n),l=a):t(l)>t(r)&&t(s)>=t(r)?(this.cwd+=Math.abs(n),l=r):(this.cwd=0,l=Math.max(Math.min(l,r),a)),this.cwd>this.option("wheelLimit")||(e.preventDefault(),t(l)!==t(s)&&this.zoomTo(l,{event:e}))}canZoomIn(){return this.option("zoom")&&(t(this.contentRect.width,1)<t(this.contentRect.fitWidth,1)||t(this.targetScale)<t(this.maxScale))}canZoomOut(){return this.option("zoom")&&t(this.targetScale)>t(this.minScale)}zoomIn(e=1.25,t){this.zoomTo(this.targetScale*e,t)}zoomOut(e=.8,t){this.zoomTo(this.targetScale*e,t)}zoomToFit(e){this.zoomTo("fit",e)}zoomToCover(e){this.zoomTo("cover",e)}zoomToFull(e){this.zoomTo("full",e)}zoomToMax(e){this.zoomTo("max",e)}toggleZoom(e){this.zoomTo(this.getNextScale("toggleZoom"),e)}toggleMax(e){this.zoomTo(this.getNextScale("toggleMax"),e)}toggleCover(e){this.zoomTo(this.getNextScale("toggleCover"),e)}iterateZoom(e){this.zoomTo("next",e)}zoomTo(e=1,{friction:t=L,originX:i=L,originY:o=L,event:n}={}){if(this.isContentLoading||this.state===b.Destroy)return;const{targetScale:s,fullScale:r,maxScale:a,coverScale:l}=this;if(this.stop(),this.panMode===O&&(n=this.pmme||n),n||i===L||o===L){const e=this.content.getBoundingClientRect(),t=this.container.getBoundingClientRect(),s=n?n.clientX:t.left+.5*t.width,r=n?n.clientY:t.top+.5*t.height;i=s-e.left-.5*e.width,o=r-e.top-.5*e.height}let c=1;"number"==typeof e?c=e:"full"===e?c=r:"cover"===e?c=l:"max"===e?c=a:"fit"===e?c=1:"next"===e&&(c=this.getNextScale("iterateZoom")),c=c/s||1,t=t===L?c>1?.15:.25:t,this.applyChange({scale:c,originX:i,originY:o,friction:t}),n&&this.panMode===O&&this.panWithMouse(n,t)}rotateCCW(){this.applyChange({angle:-90})}rotateCW(){this.applyChange({angle:90})}flipX(){this.applyChange({flipX:!0})}flipY(){this.applyChange({flipY:!0})}fitX(){this.stop("target");const{containerRect:e,contentRect:t,target:i}=this;this.applyChange({panX:.5*e.width-(t.left+.5*t.fitWidth)-i.e,panY:.5*e.height-(t.top+.5*t.fitHeight)-i.f,scale:e.width/t.fitWidth/this.targetScale,originX:0,originY:0,ignoreBounds:!0})}fitY(){this.stop("target");const{containerRect:e,contentRect:t,target:i}=this;this.applyChange({panX:.5*e.width-(t.left+.5*t.fitWidth)-i.e,panY:.5*e.innerHeight-(t.top+.5*t.fitHeight)-i.f,scale:e.height/t.fitHeight/this.targetScale,originX:0,originY:0,ignoreBounds:!0})}toggleFS(){const{container:e}=this,t=this.cn("inFullscreen"),i=this.cn("htmlHasFullscreen");e.classList.toggle(t);const o=e.classList.contains(t);o?(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(o?"enterFS":"exitFS")}getMatrix(e=this.current){const{a:t,b:i,c:o,d:n,e:s,f:r}=e;return new DOMMatrix([t,i,o,n,s,r])}reset(e){if(this.state!==b.Init&&this.state!==b.Destroy){this.stop("current");for(const e of v)this.target[e]=E[e];this.target.a=this.minScale,this.target.d=this.minScale,this.clampTargetBounds(),this.isResting||(this.friction=void 0===e?this.option("friction"):e,this.state=b.Panning,this.requestTick())}}destroy(){this.stop(),this.state=b.Destroy,this.detachEvents(),this.detachObserver();const{container:e,content:t}=this,i=this.option("classes")||{};for(const t of Object.values(i))e.classList.remove(t+"");t&&(t.removeEventListener("load",this.onLoad),t.removeEventListener("error",this.onError)),this.detachPlugins()}}Object.defineProperty(I,"defaults",{enumerable:!0,configurable:!0,writable:!0,value:w}),Object.defineProperty(I,"Plugins",{enumerable:!0,configurable:!0,writable:!0,value:{}});const N=function(e,t){let i=!0;return(...o)=>
vendor: 5,484 bytes, line 1
1{i&&(i=!1,e(...o),setTimeout((()=>{i=!0}),t))}},$=(e,t)=>{let i=[];return e.childNodes.forEach((e=>{e.nodeType!==Node.ELEMENT_NODE||t&&!e.matches(t)||i.push(e)})),i};var D;!function(e){e[e.Init=0]="Init",e[e.Ready=1]="Ready",e[e.Destroy=2]="Destroy"}(D||(D={}));const F=e=>{if("string"==typeof e||e instanceof HTMLElement)e={html:e};else{const t=e.thumb;void 0!==t&&("string"==typeof t&&(e.thumbSrc=t),t instanceof HTMLImageElement&&(e.thumbEl=t,e.thumbElSrc=t.src,e.thumbSrc=t.src),delete e.thumb)}return Object.assign({html:"",el:null,isDom:!1,class:"",customClass:"",index:-1,dim:0,gap:0,pos:0,transition:!1},e)},j=(e={})=>Object.assign({index:-1,slides:[],dim:0,pos:-1},e);class H extends m{constructor(e,t){super(t),Object.defineProperty(this,"instance",{enumerable:!0,configurable:!0,writable:!0,value:e})}attach(){}detach(){}}class _ extends H{constructor(){super(...arguments),Object.defineProperty(this,"isDynamic",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"list",{enumerable:!0,configurable:!0,writable:!0,value:null})}onRefresh(){this.refresh()}build(){let e=this.list;if(!e){e=document.createElement("ul"),k(e,this.cn("list")),e.setAttribute("role","tablist");const t=this.instance.container;t.appendChild(e),k(t,this.cn("hasDots")),this.list=e}return e}refresh(){var e;const t=this.instance.pages.length,i=Math.min(2,this.option("minCount")),o=Math.max(2e3,this.option("maxCount")),n=this.option("dynamicFrom");if(t<i||t>o)return void this.cleanup();const s="number"==typeof n&&t>5&&t>=n,a=!this.list||this.isDynamic!==s||this.list.children.length!==t;a&&this.cleanup();const l=this.build();if(r(l,this.cn("isDynamic"),!!s),a)for(let e=0;e<t;e++)l.append(this.createItem(e));let c,d=0;for(const t of[...l.children]){const i=d===this.instance.page;i&&(c=t),r(t,this.cn("isCurrent"),i),null===(e=t.children[0])||void 0===e||e.setAttribute("aria-selected",i?"true":"false");for(const e of["isBeforePrev","isPrev","isNext","isAfterNext"])C(t,this.cn(e));d++}if(c=c||l.firstChild,s&&c){const e=c.previousElementSibling,t=e&&e.previousElementSibling;k(e,this.cn("isPrev")),k(t,this.cn("isBeforePrev"));const i=c.nextElementSibling,o=i&&i.nextElementSibling;k(i,this.cn("isNext")),k(o,this.cn("isAfterNext"))}this.isDynamic=s}createItem(e=0){var t;const i=document.createElement("li");i.setAttribute("role","presentation");const o=n(this.instance.localize(this.option("dotTpl"),[["%d",e+1]]).replace(/\%i/g,e+""));return i.appendChild(o),null===(t=i.children[0])||void 0===t||t.setAttribute("role","tab"),i}cleanup(){this.list&&(this.list.remove(),this.list=null),this.isDynamic=!1,C(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(_,"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 B="disabled",W="next",q="prev";class U extends H{constructor(){super(...arguments),Object.defineProperty(this,"container",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"prev",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"next",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"isDom",{enumerable:!0,configurable:!0,writable:!0,value:!1})}onRefresh(){const e=this.instance,t=e.pages.length,i=e.page;if(t<2)return void this.cleanup();this.build();let o=this.prev,n=this.next;o&&n&&(o.removeAttribute(B),n.removeAttribute(B),e.isInfinite||(i<=0&&o.setAttribute(B,""),i>=t-1&&n.setAttribute(B,"")))}addBtn(e){var t;const i=this.instance,o=document.createElement("button");o.setAttribute("tabindex","0"),o.setAttribute("title",i.localize(`{{${e.toUpperCase()}}}`)),k(o,this.cn("button")+" "+this.cn(e===W?"isNext":"isPrev"));const n=i.isRTL?e===W?q:W:e;var s;return o.innerHTML=i.localize(this.option(`${n}Tpl`)),o.dataset[`carousel${s=e,s?s.match("^[a-z]")?s.charAt(0).toUpperCase()+s.substring(1):s:""}`]="true",null===(t=this.container)||void 0===t||t.appendChild(o),o}build(){const e=this.instance.container,t=this.cn("container");let{container:i,prev:o,next:n}=this;i||(i=e.querySelector("."+t),this.isDom=!!i),i||(i=document.createElement("div"),k(i,t),e.appendChild(i)),this.container=i,n||(n=i.querySelector("[data-carousel-next]")),n||(n=this.addBtn(W)),this.next=n,o||(o=i.querySelector("[data-carousel-prev]")),o||(o=this.addBtn(q)),this.prev=o}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(U,"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>
1',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 Y extends H{constructor(){super(...arguments),Object.defineProperty(this,"selectedIndex",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"target",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"nav",{enumerable:!0,configurable:!0,writable:!0,value:null})}addAsTargetFor(e){this.target=this.instance,this.nav=e,this.attachEvents()}addAsNavFor(e){this.nav=this.instance,this.target=e,this.attachEvents()}attachEvents(){const{nav:e,target:t}=this;e&&t&&(e.options.initialSlide=t.options.initialPage,e.state===D.Ready?this.onNavReady(e):e.on("ready",this.onNavReady),t.state===D.Ready?this.onTargetReady(t):t.on("ready",this.onTargetReady))}onNavReady(e){e.on("createSlide",this.onNavCreateSlide),e.on("Panzoom.click",this.onNavClick),e.on("Panzoom.touchEnd",this.onNavTouch),this.onTargetChange()}onTargetReady(e){e.on("change",this.onTargetChange),e.on("Panzoom.refresh",this.onTargetChange),this.onTargetChange()}onNavClick(e,t,i){this.onNavTouch(e,e.panzoom,i)}onNavTouch(e,t,i){var o,n;if(Math.abs(t.dragOffset.x)>3||Math.abs(t.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===(n=null===(o=this.nav)||void 0===o?void 0:o.plugins)||void 0===n?void 0:n.Sync.option("friction"))||0}),this.markSelectedSlide(c)}onNavCreateSlide(e,t){t.index===this.selectedIndex&&this.markSelectedSlide(t.index)}onTargetChange(){var e,t;const{target:i,nav:o}=this;if(!i||!o)return;if(o.state!==D.Ready||i.state!==D.Ready)return;const n=null===(t=null===(e=i.pages[i.page])||void 0===e?void 0:e.slides[0])||void 0===t?void 0:t.index,s=o.getPageForSlide(n);this.markSelectedSlide(n),o.slideTo(s,null===o.prevPage&&null===i.prevPage?{friction:0}:void 0)}markSelectedSlide(e){const t=this.nav;t&&t.state===D.Ready&&(this.selectedIndex=e,[...t.slides].map((t=>{t.el&&t.el.classList[t.index===e?"add":"remove"]("is-nav-selected")})))}attach(){const e=this;let t=e.options.target,i=e.options.nav;t?e.addAsNavFor(t):i&&e.addAsTargetFor(i)}detach(){const e=this,t=e.nav,i=e.target;t&&(t.off("ready",e.onNavReady),t.off("createSlide",e.onNavCreateSlide),t.off("Panzoom.click",e.onNavClick),t.off("Panzoom.touchEnd",e.onNavTouch)),e.nav=null,i&&(i.off("ready",e.onTargetReady),i.off("refresh",e.onTargetChange),i.off("change",e.onTargetChange)),e.target=null}}Object.defineProperty(Y,"defaults",{enumerable:!0,configurable:!0,writable:!0,value:{friction:.35}});const X={Navigation:U,Dots:_,Sync:Y},V="animationend",G="isSelected",Z="slide";class K extends g{get axis(){return this.isHorizontal?"e":"f"}get isEnabled(){return this.state===D.Ready}get isInfinite(){let e=!1;const{contentDim:t,viewportDim:i,pages:o,slides:n}=this,s=n[0];return o.length>=2&&s&&t+s.dim>=i&&(e=this.option("infinite")),e}get isRTL(){return"rtl"===this.option("direction")}get isHorizontal(){return"x"===this.option("axis")}constructor(e,t={},i={}){if(super(),Object.defineProperty(this,"bp",{enumerable:!0,configurable:!0,writable:!0,value:""}),Object.defineProperty(this,"lp",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"userOptions",{enumerable:!0,configurable:!0,writable:!0,value:{}}),Object.defineProperty(this,"userPlugins",{enumerable:!0,configurable:!0,writable:!0,value:{}}),Object.defineProperty(this,"state",{enumerable:!0,configurable:!0,writable:!0,value:D.Init}),Object.defineProperty(this,"page",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"prevPage",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"container",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"viewport",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"track",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"slides",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(this,"pages",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(this,"panzoom",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"inTransition",{enumerable:!0,configurable:!0,writable:!0,value:new Set}),Object.defineProperty(this,"contentDim",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"viewportDim",{enumerable:!0,configurable:!0,writable:!0,value:0}),"string"==typeof e&&(e=document.querySelector(e)),!e||!T(e))throw new Error("No Element found");this.container=e,this.slideNext=N(this.slideNext.bind(this),150),this.slidePrev=N(this.slidePrev.bind(this),150),this.userOptions=t,this.userPlugins=i,queueMicrotask((()=>{this.processOptions()}))}processOptions(){var e,t;const i=p({},K.defaults,this.userOptions);let o="";const n=i.breakpoints;if(n&&h(n))for(const[e,t]of Object.entries(n))window.matchMedia(e).matches&&h(t)&&(o+=e,p(i,t));o===this.bp&&this.state!==D.Init||(this.bp=o,this.state===D.Ready&&(i.initialSlide=(null===(t=null===(e=this.pages[this.page])||void 0===e?void 0:e.slides[0])||void 0===t?void 0:t.index)||0),this.state!==D.Init&&this.destroy(),super.setOptions(i),!1===this.option("enabled")?this.attachEvents():setTimeout((()=>{this.init()}),0))}
vendor: 11,056 bytes, line 1
1init(){this.state=D.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=D.Ready,this.emit("ready")}initLayout(){const{container:e}=this,t=this.option("classes");k(e,this.cn("container")),r(e,t.isLTR,!this.isRTL),r(e,t.isRTL,this.isRTL),r(e,t.isVertical,!this.isHorizontal),r(e,t.isHorizontal,this.isHorizontal);let i=this.option("viewport")||e.querySelector(`.${t.viewport}`);i||(i=document.createElement("div"),k(i,t.viewport),i.append(...$(e,`.${t.slide}`)),e.prepend(i)),i.addEventListener("scroll",this.onScroll);let o=this.option("track")||e.querySelector(`.${t.track}`);o||(o=document.createElement("div"),k(o,t.track),o.append(...Array.from(i.childNodes))),o.setAttribute("aria-live","polite"),i.contains(o)||i.prepend(o),this.viewport=i,this.track=o,this.emit("initLayout")}initSlides(){const{track:e}=this;if(!e)return;const t=[...this.slides],i=[];[...$(e,`.${this.cn(Z)}`)].forEach((e=>{if(T(e)){const t=F({el:e,isDom:!0,index:this.slides.length});i.push(t)}}));for(let e of[...this.option("slides",[])||[],...t])i.push(F(e));this.slides=i;for(let e=0;e<this.slides.length;e++)this.slides[e].index=e;for(const e of i)this.emit("beforeInitSlide",e,e.index),this.emit("initSlide",e,e.index);this.emit("initSlides")}setInitialPage(){const e=this.option("initialSlide");this.page="number"==typeof e?this.getPageForSlide(e):parseInt(this.option("initialPage",0)+"",10)||0}setInitialPosition(){const{track:e,pages:t,isHorizontal:i}=this;if(!e||!t.length)return;let o=this.page;t[o]||(this.page=o=0);const n=(t[o].pos||0)*(this.isRTL&&i?1:-1),s=i?`${n}px`:"0",r=i?"0":`${n}px`;e.style.transform=`translate3d(${s}, ${r}, 0) scale(1)`,this.option("adaptiveHeight")&&this.setViewportHeight()}initPanzoom(){this.panzoom&&(this.panzoom.destroy(),this.panzoom=null);const e=this.option("Panzoom")||{};this.panzoom=new I(this.viewport,p({},{content:this.track,zoom:!1,panOnlyZoomed:!1,lockAxis:this.isHorizontal?"x":"y",infinite:this.isInfinite,click:!1,dblClick:!1,touch:e=>!(this.pages.length<2&&!e.options.infinite),bounds:()=>this.getBounds(),maxVelocity:e=>Math.abs(e.target[this.axis]-e.current[this.axis])<2*this.viewportDim?100:0},e)),this.panzoom.on("*",((e,t,...i)=>{this.emit(`Panzoom.${t}`,e,...i)})),this.panzoom.on("decel",this.onDecel),this.panzoom.on("refresh",this.onRefresh),this.panzoom.on("beforeTransform",this.onBeforeTransform),this.panzoom.on("endAnimation",this.onEndAnimation)}attachEvents(){const e=this.container;e&&(e.addEventListener("click",this.onClick,{passive:!1,capture:!1}),e.addEventListener("slideTo",this.onSlideTo)),window.addEventListener("resize",this.onResize)}createPages(){let e=[];const{contentDim:t,viewportDim:i}=this;let o=this.option("slidesPerPage");o=("auto"===o||t<=i)&&!1!==this.option("fill")?1/0:parseFloat(o+"");let n=0,s=0,r=0;for(const t of this.slides)(!e.length||s+t.dim-i>.05||r>=o)&&(e.push(j()),n=e.length-1,s=0,r=0),e[n].slides.push(t),s+=t.dim+t.gap,r++;return e}processPages(){const e=this.pages,{contentDim:i,viewportDim:o,isInfinite:n}=this,s=this.option("center"),r=this.option("fill"),a=r&&s&&i>o&&!n;if(e.forEach(((e,t)=>{var n;e.index=t,e.pos=(null===(n=e.slides[0])||void 0===n?void 0:n.pos)||0,e.dim=0;for(const[t,i]of e.slides.entries())e.dim+=i.dim,t<e.slides.length-1&&(e.dim+=i.gap);a&&e.pos+.5*e.dim<.5*o?e.pos=0:a&&e.pos+.5*e.dim>=i-.5*o?e.pos=i-o:s&&(e.pos+=-.5*(o-e.dim))})),e.forEach((e=>{r&&!n&&i>o&&(e.pos=Math.max(e.pos,0),e.pos=Math.min(e.pos,i-o)),e.pos=t(e.pos,1e3),e.dim=t(e.dim,1e3),Math.abs(e.pos)<=.1&&(e.pos=0)})),n)return e;const l=[];let c;return e.forEach((e=>{const t=Object.assign({},e);c&&t.pos===c.pos?(c.dim+=t.dim,c.slides=[...c.slides,...t.slides]):(t.index=l.length,c=t,l.push(t))})),l}getPageFromIndex(e=0){const t=this.pages.length;let i;return e=parseInt((e||0).toString())||0,i=this.isInfinite?(e%t+t)%t:Math.max(Math.min(e,t-1),0),i}getSlideMetrics(e){var i,o;const n=this.isHorizontal?"width":"height";let s=0,r=0,a=e.el;const l=!(!a||a.parentNode);if(a?s=parseFloat(a.dataset[n]||"")||0:(a=document.createElement("div"),a.style.visibility="hidden",(this.track||document.body).prepend(a)),k(a,this.cn(Z)+" "+e.class+" "+e.customClass),s)a.style[n]=`${s}px`,a.style["width"===n?"height":"width"]="";else{l&&(this.track||document.body).prepend(a),s=a.getBoundingClientRect()[n]*Math.max(1,(null===(i=window.visualViewport)||void 0===i?void 0:i.scale)||1);let e=a[this.isHorizontal?"offsetWidth":"offsetHeight"];e-1>s&&(s=e)}const c=getComputedStyle(a);return"content-box"===c.boxSizing&&(this.isHorizontal?(s+=parseFloat(c.paddingLeft)||0,s+=parseFloat(c.paddingRight)||0):(s+=parseFloat(c.paddingTop)||0,s+=parseFloat(c.paddingBottom)||0)),r=parseFloat(c[this.isHorizontal?"marginRight":"marginBottom"])||0,l?null===(o=a.parentElement)||void 0===o||o.removeChild(a):e.el||a.remove(),{dim:t(s,1e3),gap:t(r,1e3)}}getBounds(){const{isInfinite:e,isRTL:t,isHorizontal:i,pages:o}=this;let n={min:0,max:0};if(e)n={min:-1/0,max:1/0};else if(o.length){const e=o[0].pos,s=o[o.length-1].pos;n=t&&i?{min:e,max:s}:{min:-1*s,max:-1*e}}return{x:i?n:{min:0,max:0},y:i?{min:0,max:0}:n}}repositionSlides(){let e,{isHorizontal:i,isRTL:o,isInfinite:n,viewport:s,viewportDim:r,contentDim:a,page:l,pages:c,slides:d,panzoom:u}=this,h=0,p=0,f=0,m=0;u?m=-1*u.current[this.axis]:c[l]&&(m=c[l].pos||0),e=i?o?"right":"left":"top",o&&i&&(m*=-1);for(const i of d){const o=i.el;o?("top"===e?(o.style.right="",o.style.left=""):o.style.top="",i.index!==h?o.style[e]=0===p?"":`${t(p,1e3)}px`:o.style[e]="",f+=i.dim+i.gap,h++):p+=i.dim+i.gap}if(n&&f&&s){let o=getComputedStyle(s),n="padding",l=i?"Right":"Bottom",c=parseFloat(o[n+(i?"Left":"Top")]);m-=c,r+=c,r+=parseFloat(o[n+l]);for(const i of d)i.el&&(t(i.pos)<t(r)&&t(i.pos+i.dim+i.gap)<t(m)&&t(m)>t(a-r)&&(i.el.style[e]=`${t(p+f,1e3)}px`),t(i.pos+i.gap)>=t(a-r)&&t(i.pos)>t(m+r)&&t(m)<t(r)&&(i.el.style[e]=`-${t(f,1e3)}px`))}let g,b,v=[...this.inTransition];if(v.length>1&&(g=c[v[0]],b=c[v[1]]),g&&b){let i=0;for(const o of d)o.el?this.inTransition.has(o.index)&&g.slides.indexOf(o)<0&&(o.el.style[e]=`${t(i+(g.pos-b.pos),1e3)}px`):i+=o.dim+o.gap}}createSlideEl(e){const{track:t,slides:i}=this;if(!t||!e)return;if(e.el&&e.el.parentNode)return;const o=e.el||document.createElement("div");k(o,this.cn(Z)),k(o,e.class),k(o,e.customClass);const n=e.html;n&&(n instanceof HTMLElement?o.appendChild(n):o.innerHTML=e.html+"");const s=[];i.forEach(((e,t)=>{e.el&&s.push(t)}));const r=e.index;let a=null;s.length&&(a=i[s.reduce(((e,t)=>Math.abs(t-r)<Math.abs(e-r)?t:e))]);const l=a&&a.el&&a.el.parentNode?a.index<e.index?a.el.nextSibling:a.el:null;t.insertBefore(o,t.contains(l)?l:null),e.el=o,this.emit("createSlide",e)}removeSlideEl(e,t=!1){const i=null==e?void 0:e.el;if(!i||!i.parentNode)return;const o=this.cn(G);if(i.classList.contains(o)&&(C(i,o),this.emit("unselectSlide",e)),e.isDom&&!t)return i.removeAttribute("aria-hidden"),i.removeAttribute("data-index"),void(i.style.left="");this.emit("removeSlide",e);const n=new CustomEvent(V);i.dispatchEvent(n),e.el&&(e.el.remove(),e.el=null)}transitionTo(e=0,t=this.option("transition")){var i,o,n,s;if(!t)return!1;const r=this.page,{pages:a,panzoom:l}=this;e=parseInt((e||0).toString())||0;const c=this.getPageFromIndex(e);if(!l||!a[c]||a.length<2||Math.abs(((null===(o=null===(i=a[r])||void 0===i?void 0:i.slides[0])||void 0===o?void 0:o.dim)||0)-this.viewportDim)>1)return!1;let d=e>r?1:-1;this.isInfinite&&(0===r&&e===a.length-1&&(d=-1),r===a.length-1&&0===e&&(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;k(this.container,this.cn("inTransition"));const p=(null===(n=a[r])||void 0===n?void 0:n.slides[0])||null,f=(null===(s=a[c])||void 0===s?void 0:s.slides[0])||null;this.inTransition.add(f.index),this.createSlideEl(f);let m=p.el,g=f.el;h||t===Z||(t="fadeFast",m=null);const b=this.isRTL?"next":"prev",v=this.isRTL?"prev":"next";return m&&(this.inTransition.add(p.index),p.transition=t,m.addEventListener(V,this.onAnimationEnd),m.classList.add(`f-${t}Out`,`to-${d>0?v:b}`)),g&&(f.transition=t,g.addEventListener(V,this.onAnimationEnd),g.classList.add(`f-${t}In`,`from-${d>0?b:v}`)),l.current[this.axis]=u,l.target[this.axis]=u,l.requestTick(),this.onChange(c),!0}manageSlideVisiblity(){const e=new Set,t=new Set,i=this.getVisibleSlides(parseFloat(this.option("preload",0)+"")||0);for(const o of this.slides)i.has(o)?e.add(o):t.add(o);for(const t of this.inTransition)e.add(this.slides[t]);for(const t of e)this.createSlideEl(t),this.lazyLoadSlide(t);for(const i of t)e.has(i)||this.removeSlideEl(i);this.markSelectedSlides(),this.repositionSlides()}markSelectedSlides(){if(!this.pages[this.page]||!this.pages[this.page].slides)return;const e="aria-hidden";let t=this.cn(G);if(t)for(const i of this.slides){const o=i.el;o&&(o.dataset.index=`${i.index}`,o.classList.contains("f-thumbs__slide")?this.getVisibleSlides(0).has(i)?o.removeAttribute(e):o.setAttribute(e,"true"):this.pages[this.page].slides.includes(i)?(o.classList.contains(t)||(k(o,t),this.emit("selectSlide",i)),o.removeAttribute(e)):(o.classList.contains(t)&&(C(o,t),this.emit("unselectSlide",i)),o.setAttribute(e,"true")))}}flipInfiniteTrack(){const{axis:e,isHorizontal:t,isInfinite:i,isRTL:o,viewportDim:n,contentDim:s}=this,r=this.panzoom;if(!r||!i)return;let a=r.current[e],l=r.target[e]-a,c=0,d=.5*n;o&&t?(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[e]=a,r.target[e]=a+l)}lazyLoadImg(e,t){const i=this,o="f-fadeIn",s="is-preloading";let r=!1,a=null;const l=()=>{r||(r=!0,a&&(a.remove(),a=null),C(t,s),t.complete&&(k(t,o),setTimeout((()=>{C(t,o)}),350)),this.option("adaptiveHeight")&&e.el&&this.pages[this.page].slides.indexOf(e)>-1&&(i.updateMetrics(),i.setViewportHeight()),this.emit("load",e))};k(t,s),t.src=t.dataset.lazySrcset||t.dataset.lazySrc||"",delete t.dataset.lazySrc,delete t.dataset.lazySrcset,t.addEventListener("error",(()=>{l()})),t.addEventListener("load",(()=>{l()})),setTimeout((()=>{const i=t.parentNode;i&&e.el&&(t.complete?l():r||(a=n(x),i.insertBefore(a,t)))}),300)}lazyLoadSlide(e){const t=e&&e.el;if(!t)return;const i=new Set;let o=Array.from(t.querySelectorAll("[data-lazy-src],[data-lazy-srcset]"));t.dataset.lazySrc&&o.push(t),o.map((e=>{e instanceof HTMLImageElement?i.add(e):e instanceof HTMLElement&&e.dataset.lazySrc&&(e.style.backgroundImage=`url('${e.dataset.lazySrc}')`,delete e.dataset.lazySrc)}));for(const t of i)this.lazyLoadImg(e,t)}onAnimationEnd(e){var t;const i=e.target,o=i?parseInt(i.dataset.index||"",10)||0:-1,n=this.slides[o],s=e.animationName;if(!i||!n||!s)return;const r=!!this.inTransition.has(o)&&n.transition;r&&s.substring(0,r.length+2)===`f-${r}`&&this.inTransition.delete(o),this.inTransition.size||this.clearTransitions(),o===this.page&&(null===(t=this.panzoom)||void 0===t?void 0:t.isResting)&&this.emit
vendor: 2,069 bytes, line 1
1("settle")}onDecel(e,t=0,i=0,o=0,n=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,t)/(Math.PI/180));let u=0;if(u=d>45&&d<135?r?0:i:r?t:0,!c)return;let h=this.page,p=s&&r?1:-1;const f=e.current[a]*p;let{pageIndex:m}=this.getPageFromPosition(f);Math.abs(u)>5?(l[h].dim<document.documentElement["client"+(this.isHorizontal?"Width":"Height")]-1&&(h=m),h=s&&r?u<0?h-1:h+1:u<0?h+1:h-1):h=0===o&&0===n?h:m,this.slideTo(h,{transition:!1,friction:e.option("decelFriction")})}onClick(e){const t=e.target,i=t&&T(t)?t.dataset:null;let o,n;i&&(void 0!==i.carouselPage?(n="slideTo",o=i.carouselPage):void 0!==i.carouselNext?n="slideNext":void 0!==i.carouselPrev&&(n="slidePrev")),n?(e.preventDefault(),e.stopPropagation(),t&&!t.hasAttribute("disabled")&&this[n](o)):this.emit("click",e)}onSlideTo(e){const t=e.detail||0;this.slideTo(this.getPageForSlide(t),{friction:0})}onChange(e,t=0){const i=this.page;this.prevPage=i,this.page=e,this.option("adaptiveHeight")&&this.setViewportHeight(),e!==i&&(this.markSelectedSlides(),this.emit("change",e,i,t))}onRefresh(){let e=this.contentDim,t=this.viewportDim;this.updateMetrics(),this.contentDim===e&&this.viewportDim===t||this.slideTo(this.page,{friction:0,transition:!1})}onScroll(){var e;null===(e=this.viewport)||void 0===e||e.scroll(0,0)}onResize(){this.option("breakpoints")&&this.processOptions()}onBeforeTransform(e){this.lp!==e.current[this.axis]&&(this.flipInfiniteTrack(),this.manageSlideVisiblity()),this.lp=e.current.e}onEndAnimation(){this.inTransition.size||this.emit("settle")}reInit(e=null,t=null){this.destroy(),this.state=D.Init,this.prevPage=null,this.userOptions=e||this.userOptions,this.userPlugins=t||this.userPlugins,this.processOptions()}slideTo(e=0,{friction:t=this.option("friction"),transition:i=this.option("transition")}={}){if(this.state===D.Destroy)return;e=parseInt((e||0).toString())||0;const o=this.getPageFromIndex(e),{axis:n,isHorizontal:s,isRTL:r,pages:a,panzoom:l}=this,c=a.length,d=r&&s?1:-1;
vendor: 4,694 bytes, line 1
1if(!l||!c)return;if(this.page!==o){const t=new Event("beforeChange",{bubbles:!0,cancelable:!0});if(this.emit("beforeChange",t,e),t.defaultPrevented)return}if(this.transitionTo(e,i))return;let u=a[o].pos;if(this.isInfinite){const t=this.contentDim,i=l.target[n]*d;2===c?u+=t*Math.floor(parseFloat(e+"")/2):u=[u,u-t,u+t].reduce((function(e,t){return Math.abs(t-i)<Math.abs(e-i)?t:e}))}u*=d,Math.abs(l.target[n]-u)<1||(l.panTo({x:s?u:0,y:s?0:u,friction:t}),this.onChange(o))}slideToClosest(e){if(this.panzoom){const{pageIndex:t}=this.getPageFromPosition();this.slideTo(t,e)}}slideNext(){this.slideTo(this.page+1)}slidePrev(){this.slideTo(this.page-1)}clearTransitions(){this.inTransition.clear(),C(this.container,this.cn("inTransition"));const e=["to-prev","to-next","from-prev","from-next"];for(const t of this.slides){const i=t.el;if(i){i.removeEventListener(V,this.onAnimationEnd),i.classList.remove(...e);const o=t.transition;o&&i.classList.remove(`f-${o}Out`,`f-${o}In`)}}this.manageSlideVisiblity()}addSlide(e,t){var i,o,n,s;const r=this.panzoom,a=(null===(i=this.pages[this.page])||void 0===i?void 0:i.pos)||0,l=(null===(o=this.pages[this.page])||void 0===o?void 0:o.dim)||0,c=this.contentDim<this.viewportDim;let d=Array.isArray(t)?t:[t];const u=[];for(const e of d)u.push(F(e));this.slides.splice(e,0,...u);for(let e=0;e<this.slides.length;e++)this.slides[e].index=e;for(const e of u)this.emit("beforeInitSlide",e,e.index);if(this.page>=e&&(this.page+=u.length),this.updateMetrics(),r){const t=(null===(n=this.pages[this.page])||void 0===n?void 0:n.pos)||0,i=(null===(s=this.pages[this.page])||void 0===s?void 0:s.dim)||0,o=this.pages.length||1,d=this.isRTL?l-i:i-l,u=this.isRTL?a-t:t-a;c&&1===o?(e<=this.page&&(r.current[this.axis]-=d,r.target[this.axis]-=d),r.panTo({[this.isHorizontal?"x":"y"]:-1*t})):u&&e<=this.page&&(r.target[this.axis]-=u,r.current[this.axis]-=u,r.requestTick())}for(const e of u)this.emit("initSlide",e,e.index)}prependSlide(e){this.addSlide(0,e)}appendSlide(e){this.addSlide(this.slides.length,e)}removeSlide(e){const t=this.slides.length;e=(e%t+t)%t;const i=this.slides[e];if(i){this.removeSlideEl(i,!0),this.slides.splice(e,1);for(let e=0;e<this.slides.length;e++)this.slides[e].index=e;this.updateMetrics(),this.slideTo(this.page,{friction:0,transition:!1}),this.emit("destroySlide",i)}}updateMetrics(){const{panzoom:e,viewport:i,track:o,slides:n,isHorizontal:s,isInfinite:r}=this;if(!o)return;const a=s?"width":"height",l=s?"offsetWidth":"offsetHeight";if(i){let e=Math.max(i[l],t(i.getBoundingClientRect()[a],1e3)),o=getComputedStyle(i),n="padding",r=s?"Right":"Bottom";e-=parseFloat(o[n+(s?"Left":"Top")])+parseFloat(o[n+r]),this.viewportDim=e}let c,d=0;for(const[e,i]of n.entries()){let o=0,s=0;!i.el&&c?(o=c.dim,s=c.gap):(({dim:o,gap:s}=this.getSlideMetrics(i)),c=i),o=t(o,1e3),s=t(s,1e3),i.dim=o,i.gap=s,i.pos=d,d+=o,(r||e<n.length-1)&&(d+=s)}d=t(d,1e3),this.contentDim=d,e&&(e.contentRect[a]=d,e.contentRect[s?"fullWidth":"fullHeight"]=d),this.pages=this.createPages(),this.pages=this.processPages(),this.state===D.Init&&this.setInitialPage(),this.page=Math.max(0,Math.min(this.page,this.pages.length-1)),this.manageSlideVisiblity(),this.emit("refresh")}getProgress(e,i=!1,o=!1){void 0===e&&(e=this.page);const n=this,s=n.panzoom,r=n.contentDim,a=n.pages[e]||0;if(!a||!s)return e>this.page?-1:1;let l=-1*s.current.e,c=t((l-a.pos)/(1*a.dim),1e3),d=c,u=c;this.isInfinite&&!0!==o&&(d=t((l-a.pos+r)/(1*a.dim),1e3),u=t((l-a.pos-r)/(1*a.dim),1e3));let h=[c,d,u].reduce((function(e,t){return Math.abs(t)<Math.abs(e)?t:e}));return i?h:h>1?1:h<-1?-1:h}setViewportHeight(){const{page:e,pages:t,viewport:i,isHorizontal:o}=this;if(!i||!t[e])return;let n=0;o&&this.track&&(this.track.style.height="auto",t[e].slides.forEach((e=>{e.el&&(n=Math.max(n,e.el.offsetHeight))}))),i.style.height=n?`${n}px`:""}getPageForSlide(e){for(const t of this.pages)for(const i of t.slides)if(i.index===e)return t.index;return-1}getVisibleSlides(e=0){var t;const i=new Set;let{panzoom:o,contentDim:n,viewportDim:s,pages:r,page:a}=this;if(s){n=n+(null===(t=this.slides[this.slides.length-1])||void 0===t?void 0:t.gap)||0;let l=0;l=o&&o.state!==b.Init&&o.state!==b.Destroy?-1*o.current[this.axis]:r[a]&&r[a].pos||0,this.isInfinite&&(l-=Math.floor(l/n)*n),this.isRTL&&this.isHorizontal&&(l*=-1);const c=l-s*e,d=l+s*(e+1),u=this.isInfinite?[-1,0,1]:[0];for(const e of this.slides)for(const t of u){const o=e.pos+t*n,s=o+e.dim+e.gap;o<d&&s>c&&i.add(e)}}return i}getPageFromPosition(e){const{viewportDim:t,contentDim:i,slides:o,pages:n,panzoom:s}=this,r=n.length,a=o.length,l=o[0],c=o[a-1],d=this.option("center");let u=0,h=0,p=0,f=void 0===e?-1*((null==s?void 0:s.target[this.axis])||0):e;
vendor: 5,004 bytes, line 1
1d&&(f+=.5*t),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 m=c,g=o.find((e=>{const t=e.pos-.5*m.gap,i=e.pos+e.dim+.5*e.gap;return m=e,f>=t&&f<i}));return g||(g=c),h=this.getPageForSlide(g.index),u=h+p*r,{page:u,pageIndex:h}}setPageFromPosition(){const{pageIndex:e}=this.getPageFromPosition();this.onChange(e)}destroy(){if([D.Destroy].includes(this.state))return;this.state=D.Destroy;const{container:e,viewport:t,track:i,slides:o,panzoom:n}=this,s=this.option("classes");e.removeEventListener("click",this.onClick,{passive:!1,capture:!1}),e.removeEventListener("slideTo",this.onSlideTo),window.removeEventListener("resize",this.onResize),n&&(n.destroy(),this.panzoom=null),o&&o.forEach((e=>{this.removeSlideEl(e)})),this.detachPlugins(),t&&(t.removeEventListener("scroll",this.onScroll),t.offsetParent&&i&&i.offsetParent&&t.replaceWith(...i.childNodes));for(const[t,i]of Object.entries(s))"container"!==t&&i&&e.classList.remove(i);this.track=null,this.viewport=null,this.page=0,this.slides=[];const 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:I}),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:X});const J=function(e){if(!T(e))return 0;const t=window.scrollY,i=window.innerHeight,o=t+i,n=e.getBoundingClientRect(),s=n.y+t,r=n.height,a=s+r;if(t>a||o<s)return 0;if(t<s&&o>a)return 100;if(s<t&&a>o)return 100;let l=r;s<t&&(l-=t-s),a>o&&(l-=a-o);const c=l/i*100;return Math.round(c)},Q=!("undefined"==typeof window||!window.document||!window.document.createElement);let ee;const te=["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(","),ie=e=>{if(e&&Q){void 0===ee&&document.createElement("div").focus({get preventScroll(){return ee=!0,!1}});try{if(ee)e.focus({preventScroll:!0});else{const t=window.scrollY||document.body.scrollTop,i=window.scrollX||document.body.scrollLeft;e.focus(),document.body.scrollTo({top:t,left:i,behavior:"auto"})}}catch(e){}}},oe=()=>{const e=document;let t,i="",o="",n="";return e.fullscreenEnabled?(i="requestFullscreen",o="exitFullscreen",n="fullscreenElement"):e.webkitFullscreenEnabled&&(i="webkitRequestFullscreen",o="webkitExitFullscreen",n="webkitFullscreenElement"),i&&(t={request:function(t=e.documentElement){return"webkitRequestFullscreen"===i?t[i](Element.ALLOW_KEYBOARD_INPUT):t[i]()},exit:function(){return e[n]&&e[o]()},isFullscreen:function(){return e[n]}}),t},ne={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({},y),{CLOSE:"Close",NEXT:"Next",PREV:"Previous",MODAL:"You can close this modal content with the ESC key",ERROR:"Something Went Wrong, Please Try Again Later",IMAGE_ERROR:"Image Not Found",ELEMENT_NOT_FOUND:"HTML Element Not Found",AJAX_NOT_FOUND:"Error Loading AJAX : Not Found",AJAX_FORBIDDEN:"Error Loading AJAX : Forbidden",IFRAME_ERROR:"Error Loading Page",TOGGLE_ZOOM:"Toggle zoom level",TOGGLE_THUMBS:"Toggle thumbnails",TOGGLE_SLIDESHOW:"Toggle slideshow",TOGGLE_FULLSCREEN:"Toggle full-screen mode",DOWNLOAD:"Download"}),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">
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 se,re;!function(e){e[e.Init=0]="Init",e[e.Ready=1]="Ready",e[e.Closing=2]="Closing",e[e.CustomClosing=3]="CustomClosing",e[e.Destroy=4]="Destroy"}(se||(se={})),function(e){e[e.Loading=0]="Loading",e[e.Opening=1]="Opening",e[e.Ready=2]="Ready",e[e.Closing=3]="Closing"}(re||(re={}));let ae="",le=!1,ce=!1,de=null;const ue=()=>{let e="",t="";const i=Ct.getInstance();if(i){const o=i.carousel,n=i.getSlide();if(o&&n){let s=n.slug||void 0,r=n.triggerEl||void 0;t=s||i.option("slug")||"",!t&&r&&r.dataset&&(t=r.dataset.fancybox||""),t&&"true"!==t&&(e="#"+t+(!s&&o.slides.length>1?"-"+(n.index+1):""))}}return{hash:e,slug:t,index:1}},he=()=>{const e=new URL(document.URL).hash,t=e.slice(1).split("-"),i=t[t.length-1],o=i&&/^\+?\d+$/.test(i)&&parseInt(t.pop()||"1",10)||1;return{hash:e,slug:t.join("-"),index:o}},pe=()=>{const{slug:e,index:t}=he();if(!e)return;let i=document.querySelector(`[data-slug="${e}"]`);if(i&&i.dispatchEvent(new CustomEvent("click",{bubbles:!0,cancelable:!0})),Ct.getInstance())return;const o=document.querySelectorAll(`[data-fancybox="${e}"]`);o.length&&(i=o[t-1],i&&i.dispatchEvent(new CustomEvent("click",{bubbles:!0,cancelable:!0})))},fe=()=>{if(!1===Ct.defaults.Hash)return;const e=Ct.getInstance();if(!1===(null==e?void 0:e.options.Hash))return;const{slug:t,index:i}=he(),{slug:o}=ue();e&&(t===o?e.jumpTo(i-1):(le=!0,e.close())),pe()},me=()=>{de&&clearTimeout(de),queueMicrotask((()=>{fe()}))},ge=()=>{window.addEventListener("hashchange",me,!1),setTimeout((()=>{fe()}),500)};Q&&(/complete|interactive|loaded/.test(document.readyState)?ge():document.addEventListener("DOMContentLoaded",ge));const be="is-zooming-in";class ve extends H{onCreateSlide(e,t,i){const o=this.instance.optionFor(i,"src")||"";i.el&&"image"===i.type&&"string"==typeof o&&this.setImage(i,o)}onRemoveSlide(e,t,i){i.panzoom&&i.panzoom.destroy(),i.panzoom=void 0,i.imageEl=void 0}onChange(e,t,i,o){C(this.instance.container,be);for(const e of t.slides){const t=e.panzoom;t&&e.index!==i&&t.reset(.35)}}onClose(){var e;const t=this.instance,i=t.container,o=t.getSlide();if(!i||!i.parentElement||!o)return;const{el:n,contentEl:s,panzoom:r,thumbElSrc:a}=o;if(!n||!a||!s||!r||r.isContentLoading||r.state===b.Init||r.state===b.Destroy)return;r.updateMetrics();let l=this.getZoomInfo(o);if(!l)return;this.instance.state=se.CustomClosing,i.classList.remove(be),i.classList.add("is-zooming-out"),s.style.backgroundImage=`url('${a}')`;const c=i.getBoundingClientRect();1===((null===(e=window.visualViewport)||void 0===e?void 0:e.scale)||1)&&Object.assign(i.style,{position:"absolute",top:`${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 e=((e,t,i,o)=>{const n=t-e;return t=>1+((t-e)/n*-1||0)})(r.scale,h);r.on("afterTransform",(()=>{s.style.opacity=e(r.scale)+""}))}r.on("endAnimation",(()=>{t.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&&t.destroy()}setImage(e,t){const i=this.instance;e.src=t,this.process(e,t).then((t=>{const{contentEl:o,imageEl:n,thumbElSrc:s,el:r}=e;if(i.isClosing()||!o||!n)return;o.offsetHeight;const a=!!i.isOpeningSlide(e)&&this.getZoomInfo(e);if(this.option("protected")&&r){r.addEventListener("contextmenu",(e=>{e.preventDefault()}));const e=document.createElement("div");k(e,"fancybox-protected"),o.appendChild(e)}if(s&&a){const n=t.contentRect,r=Math.max(n.fullWidth,n.fullHeight);let c=null;!a.opacity&&r>1200&&(c=document.createElement("img"),k(c,"fancybox-ghost"),c.src=s,o.appendChild(c));const d=()=>{c&&(k(c,"f-fadeFastOut"),setTimeout((()=>{c&&(c.remove(),c=null)}),200))};(l=s,new Promise(((e,t)=>{const i=new Image;i.onload=e,i.onerror=t,i.src=l}))).then((()=>{i.hideLoading(e),e.state=re.Opening,this.instance.emit("reveal",e),this.zoomIn(e).then((()=>{d(),this.instance.done(e)}),(()=>{})),c&&setTimeout((()=>{d()}),r>2500?800:200)}),(()=>{i.hideLoading(e),i.revealContent(e)}))}else{const o=this.optionFor(e,"initialSize"),n=this.optionFor(e,"zoom"),s={event:i.prevMouseMoveEvent||i.options.event,friction:n?.12:0};let r=i.optionFor(e,"showClass")||void 0,a=!0;i.isOpeningSlide(e)&&("full"===o?t.zoomToFull(s):"cover"===o?t.zoomToCover(s):"max"===o?t.zoomToMax(s):a=!1,t.stop("current")),a&&r&&(r=t.isDragging?"f-fadeIn":""),i.hideLoading(e),i.revealContent(e,r)}var l}),(()=>{i.setError(e,"{{IMAGE_ERROR}}")}))}process(e,t){return new Promise(((i,o)=>{var s;const r=this.instance,a=e.el;r.clearContent(e),r.showLoading(e);let l=this.optionFor(e,"content");
vendor: 5,237 bytes, line 1
1if("string"==typeof l&&(l=n(l)),!l||!T(l)){if(l=document.createElement("img"),l instanceof HTMLImageElement){let i="",o=e.caption;i="string"==typeof o&&o?o.replace(/<[^>]+>/gi,"").substring(0,1e3):`Image ${e.index+1} of ${(null===(s=r.carousel)||void 0===s?void 0:s.pages.length)||1}`,l.src=t||"",l.alt=i,l.draggable=!1,e.srcset&&l.setAttribute("srcset",e.srcset),this.instance.isOpeningSlide(e)&&(l.fetchPriority="high")}e.sizes&&l.setAttribute("sizes",e.sizes)}k(l,"fancybox-image"),e.imageEl=l,r.setContent(e,l,!1),e.panzoom=new I(a,p({transformParent:!0},this.option("Panzoom")||{},{content:l,width:(t,i)=>r.optionFor(e,"width","auto",i)||"auto",height:(t,i)=>r.optionFor(e,"height","auto",i)||"auto",wheel:()=>{const e=r.option("wheel");return("zoom"===e||"pan"==e)&&e},click:(t,i)=>{var o,n;if(r.isCompact||r.isClosing())return!1;if(e.index!==(null===(o=r.getSlide())||void 0===o?void 0:o.index))return!1;if(i){const e=i.composedPath()[0];if(["A","BUTTON","TEXTAREA","OPTION","INPUT","SELECT","VIDEO"].includes(e.nodeName))return!1}let s=!i||i.target&&(null===(n=e.contentEl)||void 0===n?void 0:n.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:e=>{i(e)},error:()=>{o()},destroy:()=>{o()}}}))}))}zoomIn(e){return new Promise(((t,i)=>{const o=this.instance,n=o.container,{panzoom:s,contentEl:r,el:a}=e;s&&s.updateMetrics();const l=this.getZoomInfo(e);if(!(l&&a&&r&&s&&n))return void i();const{x:c,y:d,scale:u,opacity:h}=l,p=()=>{e.state!==re.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&&t(s))},f=e=>{(e.scale<.99||e.scale>1.01)&&!e.isDragging||(C(n,be),r.style.opacity="",e.off("endAnimation",f),e.off("touchStart",f),e.off("afterTransform",p),t(e))};s.on("endAnimation",f),s.on("touchStart",f),s.on("afterTransform",p),s.on(["error","destroy"],(()=>{i()})),s.panTo({x:c,y:d,scale:u,friction:0,ignoreBounds:!0}),s.stop("current");const m={event:"mousemove"===s.panMode?o.prevMouseMoveEvent||o.options.event:void 0},g=this.optionFor(e,"initialSize");k(n,be),o.hideLoading(e),"full"===g?s.zoomToFull(m):"cover"===g?s.zoomToCover(m):"max"===g?s.zoomToMax(m):s.reset(.172)}))}getZoomInfo(e){const{el:t,imageEl:i,thumbEl:o,panzoom:n}=e,s=this.instance,r=s.container;if(!t||!i||!o||!n||J(o)<3||!this.optionFor(e,"zoom")||!r||s.state===se.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}=o.getBoundingClientRect(),{top:h,left:p,fitWidth:f,fitHeight:m}=n.contentRect;if(!(d&&u&&f&&m))return!1;const g=n.container.getBoundingClientRect();p+=g.left,h+=g.top;const b=-1*(p+.5*f-(c+.5*d)),v=-1*(h+.5*m-(l+.5*u)),y=d/f;let w=this.option("zoomOpacity")||!1;return"auto"===w&&(w=Math.abs(d/u-f/m)>.1),{x:b,y:v,scale:y,opacity:w}}attach(){const e=this,t=e.instance;t.on("Carousel.change",e.onChange),t.on("Carousel.createSlide",e.onCreateSlide),t.on("Carousel.removeSlide",e.onRemoveSlide),t.on("close",e.onClose)}detach(){const e=this,t=e.instance;t.off("Carousel.change",e.onChange),t.off("Carousel.createSlide",e.onCreateSlide),t.off("Carousel.removeSlide",e.onRemoveSlide),t.off("close",e.onClose)}}Object.defineProperty(ve,"defaults",{enumerable:!0,configurable:!0,writable:!0,value:{initialSize:"fit",Panzoom:{maxScale:1},protected:!1,zoom:!0,zoomOpacity:"auto"}}),"function"==typeof SuppressedError&&SuppressedError;const ye="html",we="image",Se="map",xe="youtube",Te="vimeo",Ce="html5video",ke=(e,t={})=>{const i=new URL(e),o=new URLSearchParams(i.search),n=new URLSearchParams;for(const[e,i]of[...o,...Object.entries(t)]){let t=i+"";if("t"===e){let e=t.match(/((\d*)m)?(\d*)s?/);e&&n.set("start",60*parseInt(e[2]||"0")+parseInt(e[3]||"0")+"")}else n.set(e,t)}let s=n+"",r=e.match(/#t=((.*)?\d+s)/);return r&&(s+=`#t=${r[1]}`),s},Ee=["image","html","ajax","inline","clone","iframe","map","pdf","html5video","youtube","vimeo"];class Pe extends H{onBeforeInitSlide(e,t,i){this.processType(i)}onCreateSlide(e,t,i){this.setContent(i)}onClearContent(e,t){t.xhr&&(t.xhr.abort(),t.xhr=null);const i=t.iframeEl;i&&(i.onload=i.onerror=null,i.src="//about:blank",t.iframeEl=null);const o=t.contentEl,n=t.placeholderEl;if("inline"===t.type&&o&&n)o.classList.remove("fancybox__content"),"none"!==getComputedStyle(o).getPropertyValue("display")&&(o.style.display="none"),setTimeout((()=>{n&&(o&&n.parentNode&&n.parentNode.insertBefore(o,n),n.remove())}),0),t.contentEl=void 0,t.placeholderEl=void 0;else for(;t.el&&t.el.firstChild;)t.el.removeChild(t.el.firstChild)}onSelectSlide(e,t,i){i.state===re.Ready&&this.playVideo()}onUnselectSlide(e,t,i){var o,n;if(i.type===Ce){try{null===(n=null===(o=i.el)||void 0===o?void 0:o.querySelector("video"))||void 0===n||n.pause()}catch(e){}return}let s;i.type===Te?s={method:"pause",value:"true"}:i.type===xe&&(s={event:"command",func:"pauseVideo"}),s&&i.iframeEl&&i.iframeEl.contentWindow&&i.iframeEl.contentWindow.postMessage(JSON.stringify(s),"*"),i.poller&&clearTimeout(i.poller)}onDone(e,t){e.isCurrentSlide(t)&&!e.isClosing()&&this.playVideo()}
vendor: 5,223 bytes, line 1
1onRefresh(e,t){t.slides.forEach((e=>{e.el&&(this.resizeIframe(e),this.setAspectRatio(e))}))}onMessage(e){try{let t=JSON.parse(e.data);if("https://player.vimeo.com"===e.origin){if("ready"===t.event)for(let t of Array.from(document.getElementsByClassName("fancybox__iframe")))t instanceof HTMLIFrameElement&&t.contentWindow===e.source&&(t.dataset.ready="true")}else if(e.origin.match(/^https:\/\/(www.)?youtube(-nocookie)?.com$/)&&"onReady"===t.event){const e=document.getElementById(t.id);e&&(e.dataset.ready="true")}}catch(e){}}loadAjaxContent(e){const t=this.instance.optionFor(e,"src")||"";this.instance.showLoading(e);const i=this.instance,o=new XMLHttpRequest;i.showLoading(e),o.onreadystatechange=function(){o.readyState===XMLHttpRequest.DONE&&i.state===se.Ready&&(i.hideLoading(e),200===o.status?i.setContent(e,o.responseText):i.setError(e,404===o.status?"{{AJAX_NOT_FOUND}}":"{{AJAX_FORBIDDEN}}"))};const n=e.ajax||null;o.open(n?"POST":"GET",t+""),o.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),o.setRequestHeader("X-Requested-With","XMLHttpRequest"),o.send(n),e.xhr=o}setInlineContent(e){let t=null;if(T(e.src))t=e.src;else if("string"==typeof e.src){const i=e.src.split("#",2).pop();t=i?document.getElementById(i):null}if(t){if("clone"===e.type||t.closest(".fancybox__slide")){t=t.cloneNode(!0);const i=t.dataset.animationName;i&&(t.classList.remove(i),delete t.dataset.animationName);let o=t.getAttribute("id");o=o?`${o}--clone`:`clone-${this.instance.id}-${e.index}`,t.setAttribute("id",o)}else if(t.parentNode){const i=document.createElement("div");i.classList.add("fancybox-placeholder"),t.parentNode.insertBefore(i,t),e.placeholderEl=i}this.instance.setContent(e,t)}else this.instance.setError(e,"{{ELEMENT_NOT_FOUND}}")}setIframeContent(e){const{src:t,el:i}=e;if(!t||"string"!=typeof t||!i)return;i.classList.add("is-loading");const o=this.instance,n=document.createElement("iframe");n.className="fancybox__iframe",n.setAttribute("id",`fancybox__iframe_${o.id}_${e.index}`);for(const[t,i]of Object.entries(this.optionFor(e,"iframeAttr")||{}))n.setAttribute(t,i);n.onerror=()=>{o.setError(e,"{{IFRAME_ERROR}}")},e.iframeEl=n;const s=this.optionFor(e,"preload");if("iframe"!==e.type||!1===s)return n.setAttribute("src",e.src+""),o.setContent(e,n,!1),this.resizeIframe(e),void o.revealContent(e);o.showLoading(e),n.onload=()=>{if(!n.src.length)return;const t="true"!==n.dataset.ready;n.dataset.ready="true",this.resizeIframe(e),t?o.revealContent(e):o.hideLoading(e)},n.setAttribute("src",t),o.setContent(e,n,!1)}resizeIframe(e){const{type:t,iframeEl:i}=e;if(t===xe||t===Te)return;const o=null==i?void 0:i.parentElement;if(!i||!o)return;let n=e.autoSize;void 0===n&&(n=this.optionFor(e,"autoSize"));let s=e.width||0,r=e.height||0;s&&r&&(n=!1);const a=o&&o.style;if(!1!==e.preload&&!1!==n&&a)try{const e=window.getComputedStyle(o),t=parseFloat(e.paddingLeft)+parseFloat(e.paddingRight),n=parseFloat(e.paddingTop)+parseFloat(e.paddingBottom),l=i.contentWindow;if(l){const e=l.document,i=e.getElementsByTagName(ye)[0],o=e.body;a.width="",o.style.overflow="hidden",s=s||i.scrollWidth+t,a.width=`${s}px`,o.style.overflow="",a.flex="0 0 auto",a.height=`${o.scrollHeight}px`,r=i.scrollHeight+n}}catch(e){}if(s||r){const e={flex:"0 1 auto",width:"",height:""};s&&"auto"!==s&&(e.width=`${s}px`),r&&"auto"!==r&&(e.height=`${r}px`),Object.assign(a,e)}}playVideo(){const e=this.instance.getSlide();if(!e)return;const{el:t}=e;if(!t||!t.offsetParent)return;if(!this.optionFor(e,"videoAutoplay"))return;if(e.type===Ce)try{const e=t.querySelector("video");if(e){const t=e.play();void 0!==t&&t.then((()=>{})).catch((t=>{e.muted=!0,e.play()}))}}catch(e){}if(e.type!==xe&&e.type!==Te)return;const i=()=>{if(e.iframeEl&&e.iframeEl.contentWindow){let t;if("true"===e.iframeEl.dataset.ready)return t=e.type===xe?{event:"command",func:"playVideo"}:{method:"play",value:"true"},t&&e.iframeEl.contentWindow.postMessage(JSON.stringify(t),"*"),void(e.poller=void 0);e.type===xe&&(t={event:"listening",id:e.iframeEl.getAttribute("id")},e.iframeEl.contentWindow.postMessage(JSON.stringify(t),"*"))}e.poller=setTimeout(i,250)};i()}processType(e){if(e.html)return e.type=ye,e.src=e.html,void(e.html="");const t=this.instance.optionFor(e,"src","");if(!t||"string"!=typeof t)return;let i=e.type,o=null;if(o=t.match(/(youtube\.com|youtu\.be|youtube\-nocookie\.com)\/(?:watch\?(?:.*&)?v=|v\/|u\/|shorts\/|embed\/?)?(videoseries\?list=(?:.*)|[\w-]{11}|\?listType=(?:.*)&list=(?:.*))(?:.*)/i)){const n=this.optionFor(e,xe),{nocookie:s}=n,r=function(e,t){var i={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(i[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(o=Object.getOwnPropertySymbols(e);n<o.length;n++)t.indexOf(o[n])<0&&Object.prototype.propertyIsEnumerable.call(e,o[n])&&(i[o[n]]=e[o[n]])}return i}(n,["nocookie"]),a=`www.youtube${s?"-nocookie":""}.com`,l=ke(t,r),c=encodeURIComponent(o[2]);e.videoId=c,e.src=`https://${a}/embed/${c}?${l}`,e.thumbSrc=e.thumbSrc||`https://i.ytimg.com/vi/${c}/mqdefault.jpg`,i=xe}else if(o=t.match(/^.+vimeo.com\/(?:\/)?([\d]+)((\/|\?h=)([a-z0-9]+))?(.*)?/)){const n=ke(t,this.optionFor(e,Te)),s=encodeURIComponent(o[1]),r
vendor: 4,708 bytes, line 1
1=o[4]||"";e.videoId=s,e.src=`https://player.vimeo.com/video/${s}?${r?`h=${r}${n?"&":""}`:""}${n}`,i=Te}if(!i&&e.triggerEl){const t=e.triggerEl.dataset.type;Ee.includes(t)&&(i=t)}i||"string"==typeof t&&("#"===t.charAt(0)?i="inline":(o=t.match(/\.(mp4|mov|ogv|webm)((\?|#).*)?$/i))?(i=Ce,e.videoFormat=e.videoFormat||"video/"+("ogv"===o[1]?"ogg":o[1])):t.match(/(^data:image\/[a-z0-9+\/=]*,)|(\.(jp(e|g|eg)|gif|png|bmp|webp|svg|ico)((\?|#).*)?$)/i)?i=we:t.match(/\.(pdf)((\?|#).*)?$/i)&&(i="pdf")),(o=t.match(/(?:maps\.)?google\.([a-z]{2,3}(?:\.[a-z]{2})?)\/(?:(?:(?:maps\/(?:place\/(?:.*)\/)?\@(.*),(\d+.?\d+?)z))|(?:\?ll=))(.*)?/i))?(e.src=`https://maps.google.${o[1]}/?ll=${(o[2]?o[2]+"&z="+Math.floor(parseFloat(o[3]))+(o[4]?o[4].replace(/^\//,"&"):""):o[4]+"").replace(/\?/,"&")}&output=${o[4]&&o[4].indexOf("layer=c")>0?"svembed":"embed"}`,i=Se):(o=t.match(/(?:maps\.)?google\.([a-z]{2,3}(?:\.[a-z]{2})?)\/(?:maps\/search\/)(.*)/i))&&(e.src=`https://maps.google.${o[1]}/maps?q=${o[2].replace("query=","q=").replace("api=1","")}&output=embed`,i=Se),i=i||this.instance.option("defaultType"),e.type=i,i===we&&(e.thumbSrc=e.thumbSrc||e.src)}setContent(e){const t=this.instance.optionFor(e,"src")||"";if(e&&e.type&&t){switch(e.type){case ye:this.instance.setContent(e,t);break;case Ce:const i=this.option("videoTpl");i&&this.instance.setContent(e,i.replace(/\{\{src\}\}/gi,t+"").replace(/\{\{format\}\}/gi,this.optionFor(e,"videoFormat")||"").replace(/\{\{poster\}\}/gi,e.poster||e.thumbSrc||""));break;case"inline":case"clone":this.setInlineContent(e);break;case"ajax":this.loadAjaxContent(e);break;case"pdf":case Se:case xe:case Te:e.preload=!1;case"iframe":this.setIframeContent(e)}this.setAspectRatio(e)}}setAspectRatio(e){const t=e.contentEl;if(!(e.el&&t&&e.type&&[xe,Te,Ce].includes(e.type)))return;let i,o=e.width||"auto",n=e.height||"auto";if("auto"===o||"auto"===n){i=this.optionFor(e,"videoRatio");const t=(i+"").match(/(\d+)\s*\/\s?(\d+)/);i=t&&t.length>2?parseFloat(t[1])/parseFloat(t[2]):parseFloat(i+"")}else o&&n&&(i=o/n);if(!i)return;t.style.aspectRatio="",t.style.width="",t.style.height="",t.offsetHeight;const s=t.getBoundingClientRect(),r=s.width||1,a=s.height||1;t.style.aspectRatio=i+"",i<r/a?(n="auto"===n?a:Math.min(a,n),t.style.width="auto",t.style.height=`${n}px`):(o="auto"===o?r:Math.min(r,o),t.style.width=`${o}px`,t.style.height="auto")}attach(){const e=this,t=e.instance;t.on("Carousel.beforeInitSlide",e.onBeforeInitSlide),t.on("Carousel.createSlide",e.onCreateSlide),t.on("Carousel.selectSlide",e.onSelectSlide),t.on("Carousel.unselectSlide",e.onUnselectSlide),t.on("Carousel.Panzoom.refresh",e.onRefresh),t.on("done",e.onDone),t.on("clearContent",e.onClearContent),window.addEventListener("message",e.onMessage)}detach(){const e=this,t=e.instance;t.off("Carousel.beforeInitSlide",e.onBeforeInitSlide),t.off("Carousel.createSlide",e.onCreateSlide),t.off("Carousel.selectSlide",e.onSelectSlide),t.off("Carousel.unselectSlide",e.onUnselectSlide),t.off("Carousel.Panzoom.refresh",e.onRefresh),t.off("done",e.onDone),t.off("clearContent",e.onClearContent),window.removeEventListener("message",e.onMessage)}}Object.defineProperty(Pe,"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 Oe="play",Me="pause",Ae="ready";class Le extends H{constructor(){super(...arguments),Object.defineProperty(this,"state",{enumerable:!0,configurable:!0,writable:!0,value:Ae}),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!==Ae}onReady(e){this.option("autoStart")&&(e.isInfinite||e.page<e.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 e;this.inHover=!1,(null===(e=this.instance.panzoom)||void 0===e?void 0:e.isResting)&&this.resume()}onTimerEnd(){const e=this.instance;"play"===this.state&&(e.isInfinite||e.page!==e.pages.length-1?e.
vendor: 5,010 bytes, line 1
1slideNext():e.slideTo(0))}removeProgressBar(){this.progressBar&&(this.progressBar.remove(),this.progressBar=null)}createProgressBar(){var e;if(!this.option("showProgress"))return null;this.removeProgressBar();const t=this.instance,i=(null===(e=t.pages[t.page])||void 0===e?void 0:e.slides)||[];let o=this.option("progressParentEl");if(o||(o=(1===i.length?i[0].el:null)||t.viewport),!o)return null;const n=document.createElement("div");return k(n,"f-progress"),o.prepend(n),this.progressBar=n,n.offsetHeight,n}set(){const e=this,t=e.instance;if(t.pages.length<2)return;if(e.timer)return;const i=e.option("timeout");e.state=Oe,k(t.container,"has-autoplay");let o=e.createProgressBar();o&&(o.style.transitionDuration=`${i}ms`,o.style.transform="scaleX(1)"),e.timer=setTimeout((()=>{e.timer=null,e.inHover||e.onTimerEnd()}),i),e.emit("set")}clear(){const e=this;e.timer&&(clearTimeout(e.timer),e.timer=null),e.removeProgressBar()}start(){const e=this;if(e.set(),e.state!==Ae){if(e.option("pauseOnHover")){const t=e.instance.container;t.addEventListener("mouseenter",e.onMouseEnter,!1),t.addEventListener("mouseleave",e.onMouseLeave,!1)}document.addEventListener("visibilitychange",e.onVisibilityChange,!1),e.emit("start")}}stop(){const e=this,t=e.state,i=e.instance.container;e.clear(),e.state=Ae,i.removeEventListener("mouseenter",e.onMouseEnter,!1),i.removeEventListener("mouseleave",e.onMouseLeave,!1),document.removeEventListener("visibilitychange",e.onVisibilityChange,!1),C(i,"has-autoplay"),t!==Ae&&e.emit("stop")}pause(){const e=this;e.state===Oe&&(e.state=Me,e.clear(),e.emit(Me))}resume(){const e=this,t=e.instance;if(t.isInfinite||t.page!==t.pages.length-1)if(e.state!==Oe){if(e.state===Me&&!e.inHover){const t=new Event("resume",{bubbles:!0,cancelable:!0});e.emit("resume",t),t.defaultPrevented||e.set()}}else e.set();else e.stop()}toggle(){this.state===Oe||this.state===Me?this.stop():this.start()}attach(){const e=this,t=e.instance;t.on("ready",e.onReady),t.on("Panzoom.startAnimation",e.onChange),t.on("Panzoom.endAnimation",e.onSettle),t.on("Panzoom.touchMove",e.onChange)}detach(){const e=this,t=e.instance;t.off("ready",e.onReady),t.off("Panzoom.startAnimation",e.onChange),t.off("Panzoom.endAnimation",e.onSettle),t.off("Panzoom.touchMove",e.onChange),e.stop()}}Object.defineProperty(Le,"defaults",{enumerable:!0,configurable:!0,writable:!0,value:{autoStart:!0,pauseOnHover:!0,progressParentEl:null,showProgress:!0,timeout:3e3}});class Re extends H{constructor(){super(...arguments),Object.defineProperty(this,"ref",{enumerable:!0,configurable:!0,writable:!0,value:null})}onPrepare(e){const t=e.carousel;if(!t)return;const i=e.container;i&&(t.options.Autoplay=p({autoStart:!1},this.option("Autoplay")||{},{pauseOnHover:!1,timeout:this.option("timeout"),progressParentEl:()=>this.option("progressParentEl")||null,on:{start:()=>{e.emit("startSlideshow")},set:t=>{var o;i.classList.add("has-slideshow"),(null===(o=e.getSlide())||void 0===o?void 0:o.state)!==re.Ready&&t.pause()},stop:()=>{i.classList.remove("has-slideshow"),e.isCompact||e.endIdle(),e.emit("endSlideshow")},resume:(t,i)=>{var o,n,s;!i||!i.cancelable||(null===(o=e.getSlide())||void 0===o?void 0:o.state)===re.Ready&&(null===(s=null===(n=e.carousel)||void 0===n?void 0:n.panzoom)||void 0===s?void 0:s.isResting)||i.preventDefault()}}}),t.attachPlugins({Autoplay:Le}),this.ref=t.plugins.Autoplay)}onReady(e){const t=e.carousel,i=this.ref;i&&t&&this.option("playOnStart")&&(t.isInfinite||t.page<t.pages.length-1)&&i.start()}onDone(e,t){const i=this.ref,o=e.carousel;if(!i||!o)return;const n=t.panzoom;n&&n.on("startAnimation",(()=>{e.isCurrentSlide(t)&&i.stop()})),e.isCurrentSlide(t)&&i.resume()}onKeydown(e,t){var i;const o=this.ref;o&&t===this.option("key")&&"BUTTON"!==(null===(i=document.activeElement)||void 0===i?void 0:i.nodeName)&&o.toggle()}attach(){const e=this,t=e.instance;t.on("Carousel.init",e.onPrepare),t.on("Carousel.ready",e.onReady),t.on("done",e.onDone),t.on("keydown",e.onKeydown)}detach(){const e=this,t=e.instance;t.off("Carousel.init",e.onPrepare),t.off("Carousel.ready",e.onReady),t.off("done",e.onDone),t.off("keydown",e.onKeydown)}}Object.defineProperty(Re,"defaults",{enumerable:!0,configurable:!0,writable:!0,value:{key:" ",playOnStart:!1,progressParentEl:e=>{var t;return(null===(t=e.instance.container)||void 0===t?void 0:t.querySelector(".fancybox__toolbar [data-fancybox-toggle-slideshow]"))||e.instance.container},timeout:3e3}});const ze={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 Ie;!function(e){e[e.Init=0]="Init",e[e.Ready=1]="Ready",e[e.Hidden=2]="Hidden"}(Ie||(Ie={}));
vendor: 2,399 bytes, line 1
1const Ne="isResting",$e="thumbWidth",De="thumbHeight",Fe="thumbClipWidth";let je=class extends H{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:Ie.Init})}get isModern(){return"modern"===this.type}onInitSlide(e,t){const i=t.el?t.el.dataset:void 0;i&&(t.thumbSrc=i.thumbSrc||t.thumbSrc||"",t[Fe]=parseFloat(i[Fe]||"")||t[Fe]||0,t[De]=parseFloat(i.thumbHeight||"")||t[De]||0),this.addSlide(t)}onInitSlides(){this.build()}onChange(){var e;if(!this.isModern)return;const t=this.container,i=this.instance,o=i.panzoom,n=this.carousel,s=n?n.panzoom:null,a=i.page;if(o&&n&&s){if(o.isDragging){C(t,this.cn(Ne));let o=(null===(e=n.pages[a])||void 0===e?void 0:e.pos)||0;o+=i.getProgress(a)*(this[Fe]+this.thumbGap);let r=s.getBounds();-1*o>r.x.min&&-1*o<r.x.max&&s.panTo({x:-1*o,friction:.12})}else r(t,this.cn(Ne),o.isResting);this.shiftModern()}}onRefresh(){this.updateProps();for(const e of this.instance.slides||[])this.resizeModernSlide(e);this.shiftModern()}isDisabled(){const e=this.option("minCount")||0;if(e){const t=this.instance;let i=0;for(const e of t.slides||[])e.thumbSrc&&i++;if(i<e)return!0}const t=this.option("type");return["modern","classic"].indexOf(t)<0}getThumb(e){const t=this.option("thumbTpl")||"";return{html:this.instance.localize(t,[["%i",e.index],["%d",e.index+1],["%s",e.thumbSrc||"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7"]])}}addSlide(e){const t=this.carousel;t&&t.addSlide(e.index,this.getThumb(e))}getSlides(){const e=[];
vendor: 15,582 bytes, line 1
1for(const t of this.instance.slides||[])e.push(this.getThumb(t));return e}resizeModernSlide(e){this.isModern&&(e[$e]=e[Fe]&&e[De]?Math.round(this[De]*(e[Fe]/e[De])):this[$e])}updateProps(){const e=this.container;if(!e)return;const t=t=>parseFloat(getComputedStyle(e).getPropertyValue("--f-thumb-"+t))||0;this.thumbGap=t("gap"),this.thumbExtraGap=t("extra-gap"),this[$e]=t("width")||40,this[Fe]=t("clip-width")||40,this[De]=t("height")||40}build(){const e=this;if(e.state!==Ie.Init)return;if(e.isDisabled())return void e.emit("disabled");const t=e.instance,i=t.container,o=e.getSlides(),n=e.option("type");e.type=n;const s=e.option("parentEl"),r=e.cn("container"),a=e.cn("track");let l=null==s?void 0:s.querySelector("."+r);l||(l=document.createElement("div"),k(l,r),s?s.appendChild(l):i.after(l)),k(l,`is-${n}`),k(i,e.cn("hasThumbs")),e.container=l,e.updateProps();let c=l.querySelector("."+a);c||(c=document.createElement("div"),k(c,e.cn("track")),l.appendChild(c)),e.track=c;const d=p({},{track:c,infinite:!1,center:!0,fill:"classic"===n,dragFree:!0,slidesPerPage:1,transition:!1,preload:.25,friction:.12,Panzoom:{maxVelocity:0},Dots:!1,Navigation:!1,classes:{container:"f-thumbs",viewport:"f-thumbs__viewport",track:"f-thumbs__track",slide:"f-thumbs__slide"}},e.option("Carousel")||{},{Sync:{target:t},slides:o}),u=new t.constructor(l,d);u.on("createSlide",((t,i)=>{e.setProps(i.index),e.emit("createSlide",i,i.el)})),u.on("ready",(()=>{e.shiftModern(),e.emit("ready")})),u.on("refresh",(()=>{e.shiftModern()})),u.on("Panzoom.click",((t,i,o)=>{e.onClick(o)})),e.carousel=u,e.state=Ie.Ready}onClick(e){e.preventDefault(),e.stopPropagation();const t=this.instance,{pages:i,page:o}=t,n=e=>{if(e){const t=e.closest("[data-carousel-index]");if(t)return[parseInt(t.dataset.carouselIndex||"",10)||0,t]}return[-1,void 0]},s=(e,t)=>{const i=document.elementFromPoint(e,t);return i?n(i):[-1,void 0]};let[r,a]=n(e.target);if(r>-1)return;const l=this[Fe],c=e.clientX,d=e.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===o&&(r=r===u?p:u)):h?r=u:f&&(r=p),r>-1&&i[r]&&t.slideTo(r)}getShift(e){var t;const i=this,{instance:o}=i,n=i.carousel;if(!o||!n)return 0;const s=i[$e],r=i[Fe],a=i.thumbGap,l=i.thumbExtraGap;if(!(null===(t=n.slides[e])||void 0===t?void 0:t.el))return 0;const c=.5*(s-r),d=o.pages.length-1;let u=o.getProgress(0),h=o.getProgress(d),p=o.getProgress(e,!1,!0),f=0,m=c+l+a;const g=u<0&&u>-1,b=h>0&&h<1;return 0===e?(f=m*Math.abs(u),b&&1===u&&(f-=m*Math.abs(h))):e===d?(f=m*Math.abs(h)*-1,g&&-1===h&&(f+=m*Math.abs(u))):g||b?(f=-1*m,f+=m*Math.abs(u),f+=m*(1-Math.abs(h))):f=m*p,f}setProps(e){var i;const o=this;if(!o.isModern)return;const{instance:n}=o,s=o.carousel;if(n&&s){const r=null===(i=s.slides[e])||void 0===i?void 0:i.el;if(r&&r.childNodes.length){let i=t(1-Math.abs(n.getProgress(e))),s=t(o.getShift(e));r.style.setProperty("--progress",i?i+"":""),r.style.setProperty("--shift",s+"")}}}shiftModern(){const e=this;if(!e.isModern)return;const{instance:t,track:i}=e,o=t.panzoom,n=e.carousel;if(!(t&&i&&o&&n))return;if(o.state===b.Init||o.state===b.Destroy)return;for(const i of t.slides)e.setProps(i.index);let s=(e[Fe]+e.thumbGap)*(n.slides.length||0);i.style.setProperty("--width",s+"")}cleanup(){const e=this;e.carousel&&e.carousel.destroy(),e.carousel=null,e.container&&e.container.remove(),e.container=null,e.track&&e.track.remove(),e.track=null,e.state=Ie.Init,C(e.instance.container,e.cn("hasThumbs"))}attach(){const e=this,t=e.instance;t.on("initSlide",e.onInitSlide),t.state===D.Init?t.on("initSlides",e.onInitSlides):e.onInitSlides(),t.on(["change","Panzoom.afterTransform"],e.onChange),t.on("Panzoom.refresh",e.onRefresh)}detach(){const e=this,t=e.instance;t.off("initSlide",e.onInitSlide),t.off("initSlides",e.onInitSlides),t.off(["change","Panzoom.afterTransform"],e.onChange),t.off("Panzoom.refresh",e.onRefresh),e.cleanup()}};Object.defineProperty(je,"defaults",{enumerable:!0,configurable:!0,writable:!0,value:ze});const He=Object.assign(Object.assign({},ze),{key:"t",showOnStart:!0,parentEl:null}),_e="is-masked",Be="aria-hidden";class We extends H{constructor(){super(...arguments),Object.defineProperty(this,"ref",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"hidden",{enumerable:!0,configurable:!0,writable:!0,value:!1})}get isEnabled(){const e=this.ref;return e&&!e.isDisabled()}get isHidden(){return this.hidden}onClick(e,t){t.stopPropagation()}onCreateSlide(e,t){var i,o,n;const s=(null===(n=null===(o=null===(i=this.instance)||void 0===i?void 0:i.carousel)||void 0===o?void 0:o.slides[t.index])||void 0===n?void 0:n.type)||"",r=t.el;if(r&&s){let e=`for-${s}`;["video","youtube","vimeo","html5video"].includes(s)&&(e+=" for-video"),k(r,e)}}onInit(){var e;const t=this,i=t.instance,o=i.carousel;if(t.ref||!o)return;const n=t.option("parentEl")||i.footer||i.container;if(!n)return;const s=p({},t.options,{parentEl:n,classes:{container:"f-thumbs fancybox__thumbs"},Carousel:{Sync:{friction:i.option("Carousel.friction")||0}},on:{ready:e=>{const i=e.container;i&&this.hidden&&(t.refresh(),i.style.transition="none",t.hide(),i.offsetHeight,queueMicrotask((()=>{i.style.transition="",t.show()})))}}});s.Carousel=s.Carousel||{},s.Carousel.on=p((null===(e=t.options.Carousel)||void 0===e?void 0:e.on)||{},{click:this.onClick,createSlide:this.onCreateSlide}),o.options.Thumbs=s,o.attachPlugins({Thumbs:je}),t.ref=o.plugins.Thumbs,t.option("showOnStart")||(t.ref.state=Ie.Hidden,t.hidden=!0)}onResize(){var e;const t=null===(e=this.ref)||void 0===e?void 0:e.container;t&&(t.style.maxHeight="")}onKeydown(e,t){const i=this.option("key");i&&i===t&&this.toggle()}toggle(){const e=this.ref;if(e&&!e.isDisabled())return e.state===Ie.Hidden?(e.state=Ie.Init,void e.build()):void(this.hidden?this.show():this.hide())}show(){const e=this.ref;if(!e||e.isDisabled())return;const t=e.container;t&&(this.refresh(),t.offsetHeight,t.removeAttribute(Be),t.classList.remove(_e),this.hidden=!1)}hide(){const e=this.ref,t=e&&e.container;t&&(this.refresh(),t.offsetHeight,t.classList.add(_e),t.setAttribute(Be,"true")),this.hidden=!0}refresh(){const e=this.ref;if(!e||!e.state)return;const t=e.container,i=(null==t?void 0:t.firstChild)||null;t&&i&&i.childNodes.length&&(t.style.maxHeight=`${i.getBoundingClientRect().height}px`)}attach(){const e=this,t=e.instance;t.state===se.Init?t.on("Carousel.init",e.onInit):e.onInit(),t.on("resize",e.onResize),t.on("keydown",e.onKeydown)}detach(){var e;const t=this,i=t.instance;i.off("Carousel.init",t.onInit),i.off("resize",t.onResize),i.off("keydown",t.onKeydown),null===(e=i.carousel)||void 0===e||e.detachPlugins(["Thumbs"]),t.ref=null}}Object.defineProperty(We,"defaults",{enumerable:!0,configurable:!0,writable:!0,value:He});const qe={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 Ue;!function(e){e[e.Init=0]="Init",e[e.Ready=1]="Ready",e[e.Disabled=2]="Disabled"}(Ue||(Ue={}));const Ye={tabindex:"-1",width:"24",height:"24",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Xe="has-toolbar",Ve="fancybox__toolbar";class Ge extends H{constructor(){super(...arguments),Object.defineProperty(this,"state",{enumerable:!0,configurable:!0,writable:!0,value:Ue.Init}),Object.defineProperty(this,"container",{enumerable:!0,configurable:!0,writable:!0,value:null})}onReady(e){var t;if(!e.carousel)return;let i=this.option("display"),o=this.option("absolute"),n=this.option("enabled");if("auto"===n){const e=this.instance.carousel;let t=0;if(e)for(const i of e.slides)(i.panzoom||"image"===i.type)&&t++;t||(n=!1)}n||(i=void 0);let s=0;const r={left:[],middle:[],right:[]};if(i)for(const e of["left","middle","right"])for(const o of i[e]){const i=this.createEl(o);i&&(null===(t=r[e])||void 0===t||t.push(i),s++)}let a=null;if(s&&(a=this.createContainer()),a){for(const[e,t]of Object.entries(r)){const i=document.createElement("div");k(i,Ve+"__column is-"+e);for(const e of t)i.appendChild(e);"auto"!==o||"middle"!==e||t.length||(o=!0),a.appendChild(i)}!0===o&&k(a,"is-absolute"),this.state=Ue.Ready,this.onRefresh()}else this.state=Ue.Disabled}onClick(e){var t,i;const o=this.instance,n=o.getSlide(),s=null==n?void 0:n.panzoom,r=e.target,a=r&&T(r)?r.dataset:null;if(!a)return;if(void 0!==a.fancyboxToggleThumbs)return e.preventDefault(),e.stopPropagation(),void(null===(t=o.plugins.Thumbs)||void 0===t||t.toggle());if(void 0!==a.fancyboxToggleFullscreen)return e.preventDefault(),e.stopPropagation(),void this.instance.toggleFullscreen();if(void 0!==a.fancyboxToggleSlideshow){e.preventDefault(),e.stopPropagation();const t=null===(i=o.carousel)||void 0===i?void 0:i.plugins.Autoplay;let n=t.isActive;return s&&"mousemove"===s.panMode&&!n&&s.reset(),void(n?t.stop():t.start())}const l=a.panzoomAction,c=a.panzoomChange;if((c||l)&&(e.preventDefault(),e.stopPropagation()),c){let t={};try{t=JSON.parse(c)}catch(e){}s&&s.applyChange(t)}else l&&s&&s[l]&&s[l]()}onChange(){this.onRefresh()}onRefresh(){if(this.instance.isClosing())return;const e=this.container;if(!e)return;const t=this.instance.getSlide();if(!t||t.state!==re.Ready)return;const i=t&&!t.error&&t.panzoom;for(const t of e.querySelectorAll("[data-panzoom-action]"))i?(t.removeAttribute("disabled"),t.removeAttribute("tabindex")):(t.setAttribute("disabled",""),t.setAttribute("tabindex","-1"));let o=i&&i.canZoomIn(),n=i&&i.canZoomOut();for(const t of e.querySelectorAll('[data-panzoom-action="zoomIn"]'))o?(t.removeAttribute("disabled"),t.removeAttribute("tabindex")):(t.setAttribute("disabled",""),t.setAttribute("tabindex","-1"));for(const t of e.querySelectorAll('[data-panzoom-action="zoomOut"]'))n?(t.removeAttribute("disabled"),t.removeAttribute("tabindex")):(t.setAttribute("disabled",""),t.setAttribute("tabindex","-1"));for(const t of e.querySelectorAll('[data-panzoom-action="toggleZoom"],[data-panzoom-action="iterateZoom"]')){n||o?(t.removeAttribute("disabled"),t.removeAttribute("tabindex")):(t.setAttribute("disabled",""),t.setAttribute("tabindex","-1"));const e=t.querySelector("g");e&&(e.style.display=o?"":"none")}}onDone(e,t){var i;null===(i=t.panzoom)||void 0===i||i.on("afterTransform",(()=>{this.instance.isCurrentSlide(t)&&this.onRefresh()})),this.instance.isCurrentSlide(t)&&this.onRefresh()}createContainer(){const e=this.instance.container;if(!e)return null;const t=this.option("parentEl")||e;let i=t.querySelector("."+Ve);return i||(i=document.createElement("div"),k(i,Ve),t.prepend(i)),i.addEventListener("click",this.onClick,{passive:!1,capture:!0}),e&&k(e,Xe),this.container=i,i}createEl(e){const t=this.instance,i=t.carousel;if(!i)return null;if("toggleFS"===e)return null;if("fullscreen"===e&&!oe())return null;let o=null;const s=i.slides.length||0;let r=0,a=0;for(const e of i.slides)(e.panzoom||"image"===e.type)&&r++,("image"===e.type||e.downloadSrc)&&a++;if(s<2&&["infobar","prev","next"].includes(e))return o;if(void 0!==qe[e]&&!r)return null;if("download"===e&&!a)return null;if("thumbs"===e){const e=t.plugins.Thumbs;if(!e||!e.isEnabled)return null}if("slideshow"===e&&(!i.plugins.Autoplay||s<2))return null;if(void 0!==qe[e]){const t=qe[e];o=document.createElement("button"),o.setAttribute("title",this.instance.localize(`{{${e.toUpperCase()}}}`)),k(o,"f-button"),t.action&&(o.dataset.panzoomAction=t.action),t.change&&(o.dataset.panzoomChange=JSON.stringify(t.change)),o.appendChild(n(this.instance.localize(t.icon)))}else{const t=(this.option("items")||[])[e];t&&(o=n(this.instance.localize(t.tpl)),"function"==typeof t.click&&o.addEventListener("click",(e=>{e.preventDefault(),e.stopPropagation(),"function"==typeof t.click&&t.click.call(this,this,e)})))}const l=null==o?void 0:o.querySelector("svg");if(l)for(const[e,t]of Object.entries(Ye))l.getAttribute(e)||l.setAttribute(e,String(t));return o}removeContainer(){const e=this.container;e&&e.remove(),this.container=null,this.state=Ue.Disabled;const t=this.instance.container;t&&C(t,Xe)}attach(){const e=this,t=e.instance;t.on("Carousel.initSlides",e.onReady),t.on("done",e.onDone),t.on(["reveal","Carousel.change"],e.onChange),e.onReady(e.instance)}detach(){const e=this,t=e.instance;t.off("Carousel.initSlides",e.onReady),t.off("done",e.onDone),t.off(["reveal","Carousel.change"],e.onChange),e.removeContainer()}}Object.defineProperty(Ge,"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>
1<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 Ze={Hash:class extends H{onReady(){le=!1}onChange(e){de&&clearTimeout(de);const{hash:t}=ue(),{hash:i}=he(),o=e.isOpeningSlide(e.getSlide());o&&(ae=i===t?"":i),t&&t!==i&&(de=setTimeout((()=>{try{if(e.state===se.Ready){let e="replaceState";o&&!ce&&(e="pushState",ce=!0),window.history[e]({},document.title,window.location.pathname+window.location.search+t)}}catch(e){}}),300))}onClose(e){if(de&&clearTimeout(de),!le&&ce)return ce=!1,le=!1,void window.history.back();if(!le)try{window.history.replaceState({},document.title,window.location.pathname+window.location.search+(ae||""))}catch(e){}}attach(){const e=this.instance;e.on("ready",this.onReady),e.on(["Carousel.ready","Carousel.change"],this.onChange),e.on("close",this.onClose)}detach(){const e=this.instance;e.off("ready",this.onReady),e.off(["Carousel.ready","Carousel.change"],this.onChange),e.off("close",this.onClose)}static parseURL(){return he()}static startFromUrl(){pe()}static destroy(){window.removeEventListener("hashchange",me,!1)}},Html:Pe,Images:ve,Slideshow:Re,Thumbs:We,Toolbar:Ge},Ke="with-fancybox",Je="hide-scrollbar",Qe="--fancybox-scrollbar-compensate",et="--fancybox-body-margin",tt="aria-hidden",it="is-using-tab",ot="is-animated",nt="is-compact",st="is-loading",rt="is-opening",at="has-caption",lt="disabled",ct="tabindex",dt="download",ut="href",ht="src",pt=e=>"string"==typeof e,ft=function(){var e=window.getSelection();return!!e&&"Range"===e.type};let mt,gt=null,bt=null,vt=0,yt=0,wt=0,St=0;const xt=new Map;let Tt=0;class Ct extends g{get isIdle(){return this.idle}get isCompact(){return this.option("compact")}constructor(e=[],t={},i={}){super(t),Object.defineProperty(this,"userSlides",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(this,"userPlugins",{enumerable:!0,configurable:!0,writable:!0,value:{}}),Object.defineProperty(this,"idle",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"idleTimer",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"clickTimer",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"pwt",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"ignoreFocusChange",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"startedFs",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"state",{enumerable:!0,configurable:!0,writable:!0,value:se.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}),mt||(mt=oe()),this.id=t.id||++Tt,xt.set(this.id,this),this.userSlides=e,this.userPlugins=i,queueMicrotask((()=>{this.init()}))}init(){if(this.state===se.Destroy)return;this.state=se.Init,this.attachPlugins(Object.assign(Object.assign({}
vendor: 8,970 bytes, line 1
1,Ct.Plugins),this.userPlugins)),this.emit("init"),this.emit("attachPlugins"),!0===this.option("hideScrollbar")&&(()=>{if(!Q)return;const e=document,t=e.body,i=e.documentElement;if(t.classList.contains(Je))return;let o=window.innerWidth-i.getBoundingClientRect().width;const n=parseFloat(window.getComputedStyle(t).marginRight);o<0&&(o=0),i.style.setProperty(Qe,`${o}px`),n&&t.style.setProperty(et,`${n}px`),t.classList.add(Je)})(),this.initLayout(),this.scale();const e=()=>{this.initCarousel(this.userSlides),this.state=se.Ready,this.attachEvents(),this.emit("ready"),setTimeout((()=>{this.container&&this.container.setAttribute(tt,"false")}),16)};this.option("Fullscreen.autoStart")&&mt&&!mt.isFullscreen()?mt.request().then((()=>{this.startedFs=!0,e()})).catch((()=>e())):e()}initLayout(){var e,t;const i=this.option("parentEl")||document.body,o=n(this.localize(this.option("tpl.main")||""));if(o){if(o.setAttribute("id",`fancybox-${this.id}`),o.setAttribute("aria-label",this.localize("{{MODAL}}")),o.classList.toggle(nt,this.isCompact),k(o,this.option("mainClass")||""),k(o,rt),this.container=o,this.footer=o.querySelector(".fancybox__footer"),i.appendChild(o),k(document.documentElement,Ke),gt&&bt||(gt=document.createElement("span"),k(gt,"fancybox-focus-guard"),gt.setAttribute(ct,"0"),gt.setAttribute(tt,"true"),gt.setAttribute("aria-label","Focus guard"),bt=gt.cloneNode(),null===(e=o.parentElement)||void 0===e||e.insertBefore(gt,o),null===(t=o.parentElement)||void 0===t||t.append(bt)),o.addEventListener("mousedown",(e=>{vt=e.pageX,yt=e.pageY,C(o,it)})),this.option("closeExisting"))for(const e of xt.values())e.id!==this.id&&e.close();else this.option("animated")&&(k(o,ot),setTimeout((()=>{this.isClosing()||C(o,ot)}),350));this.emit("initLayout")}}initCarousel(e){const t=this.container;if(!t)return;const o=t.querySelector(".fancybox__carousel");if(!o)return;const n=this.carousel=new K(o,p({},{slides:e,transition:"fade",Panzoom:{lockAxis:this.option("dragToClose")?"xy":"x",infinite:!!this.option("dragToClose")&&"y"},Dots:!1,Navigation:{classes:{container:"fancybox__nav",button:"f-button",isNext:"is-next",isPrev:"is-prev"}},initialPage:this.option("startIndex"),l10n:this.option("l10n")},this.option("Carousel")||{}));n.on("*",((e,t,...i)=>{this.emit(`Carousel.${t}`,e,...i)})),n.on(["ready","change"],(()=>{this.manageCaption()})),this.on("Carousel.removeSlide",((e,t,i)=>{this.clearContent(i),i.state=void 0})),n.on("Panzoom.touchStart",(()=>{var e,t;this.isCompact||this.endIdle(),(null===(e=document.activeElement)||void 0===e?void 0:e.closest(".f-thumbs"))&&(null===(t=this.container)||void 0===t||t.focus())})),n.on("settle",(()=>{this.idleTimer||this.isCompact||!this.option("idle")||this.setIdle(),this.option("autoFocus")&&!this.isClosing&&this.checkFocus()})),this.option("dragToClose")&&(n.on("Panzoom.afterTransform",((e,t)=>{const o=this.getSlide();if(o&&i(o.el))return;const n=this.container;if(n){const e=Math.abs(t.current.f),i=e<1?"":Math.max(.5,Math.min(1,1-e/t.contentRect.fitHeight*1.5));n.style.setProperty("--fancybox-ts",i?"0s":""),n.style.setProperty("--fancybox-opacity",i+"")}})),n.on("Panzoom.touchEnd",((e,t,o)=>{var n;const s=this.getSlide();if(s&&i(s.el))return;if(t.isMobile&&document.activeElement&&-1!==["TEXTAREA","INPUT"].indexOf(null===(n=document.activeElement)||void 0===n?void 0:n.nodeName))return;const r=Math.abs(t.dragOffset.y);"y"===t.lockedAxis&&(r>=200||r>=50&&t.dragOffset.time<300)&&(o&&o.cancelable&&o.preventDefault(),this.close(o,"f-throwOut"+(t.current.f<0?"Up":"Down")))}))),n.on("change",(e=>{var t;let i=null===(t=this.getSlide())||void 0===t?void 0:t.triggerEl;if(i){const t=new CustomEvent("slideTo",{bubbles:!0,cancelable:!0,detail:e.page});i.dispatchEvent(t)}})),n.on(["refresh","change"],(e=>{const t=this.container;if(!t)return;for(const i of t.querySelectorAll("[data-fancybox-current-index]"))i.innerHTML=e.page+1;for(const i of t.querySelectorAll("[data-fancybox-count]"))i.innerHTML=e.pages.length;if(!e.isInfinite){for(const i of t.querySelectorAll("[data-fancybox-next]"))e.page<e.pages.length-1?(i.removeAttribute(lt),i.removeAttribute(ct)):(i.setAttribute(lt,""),i.setAttribute(ct,"-1"));for(const i of t.querySelectorAll("[data-fancybox-prev]"))e.page>0?(i.removeAttribute(lt),i.removeAttribute(ct)):(i.setAttribute(lt,""),i.setAttribute(ct,"-1"))}const i=this.getSlide();if(!i)return;let o=i.downloadSrc||"";o||"image"!==i.type||i.error||!pt(i.src)||(o=i.src);for(const e of t.querySelectorAll("[data-fancybox-download]")){const t=i.downloadFilename;o?(e.removeAttribute(lt),e.removeAttribute(ct),e.setAttribute(ut,o),e.setAttribute(dt,t||o),e.setAttribute("target","_blank")):(e.setAttribute(lt,""),e.setAttribute(ct,"-1"),e.removeAttribute(ut),e.removeAttribute(dt))}})),this.emit("initCarousel")}attachEvents(){const e=this,t=e.container;if(!t)return;t.addEventListener("click",e.onClick,{passive:!1,capture:!1}),t.addEventListener("wheel",e.onWheel,{passive:!1,capture:!1}),document.addEventListener("keydown",e.onKeydown,{passive:!1,capture:!0}),document.addEventListener("visibilitychange",e.onVisibilityChange,!1),document.addEventListener("mousemove",e.onMousemove),e.option("trapFocus")&&document.addEventListener("focus",e.onFocus,!0),window.addEventListener("resize",e.onResize);const i=window.visualViewport;i&&(i.addEventListener("scroll",e.onResize),i.addEventListener("resize",e.onResize))}detachEvents(){const e=this,t=e.container;if(!t)return;document.removeEventListener("keydown",e.onKeydown,{passive:!1,capture:!0}),t.removeEventListener("wheel",e.onWheel,{passive:!1,capture:!1}),t.removeEventListener("click",e.onClick,{passive:!1,capture:!1}),document.removeEventListener("mousemove",e.onMousemove),window.removeEventListener("resize",e.onResize);const i=window.visualViewport;i&&(i.removeEventListener("resize",e.onResize),i.removeEventListener("scroll",e.onResize)),document.removeEventListener("visibilitychange",e.onVisibilityChange,!1),document.removeEventListener("focus",e.onFocus,!0)}scale(){const e=this.container;if(!e)return;const t=window.visualViewport,i=Math.max(1,(null==t?void 0:t.scale)||1);let o="",n="",s="";if(t&&i>1){let e=`${t.offsetLeft}px`,r=`${t.offsetTop}px`;o=t.width*i+"px",n=t.height*i+"px",s=`translate3d(${e}, ${r}, 0) scale(${1/i})`}e.style.transform=s,e.style.width=o,e.style.height=n}onClick(e){var t;const{container:i,isCompact:o}=this;if(!i||this.isClosing())return;!o&&this.option("idle")&&this.resetIdle();const n=e.composedPath()[0];if(n.closest(".fancybox-spinner")||n.closest("[data-fancybox-close]"))return e.preventDefault(),void this.close(e);if(n.closest("[data-fancybox-prev]"))return e.preventDefault(),void this.prev();if(n.closest("[data-fancybox-next]"))return e.preventDefault(),void this.next();if("click"===e.type&&0===e.detail)return;if(Math.abs(e.pageX-vt)>30||Math.abs(e.pageY-yt)>30)return;const s=document.activeElement;if(ft()&&s&&i.contains(s))return;if(o&&"image"===(null===(t=this.getSlide())||void 0===t?void 0:t.type))return void(this.clickTimer?(clearTimeout(this.clickTimer),this.clickTimer=null):this.clickTimer=setTimeout((()=>{this.toggleIdle(),this.clickTimer=null}),350));if(this.emit("click",e),e.defaultPrevented)return;let r=!1;if(n.closest(".fancybox__content")){if(s){if(s.closest("[contenteditable]"))return;n.matches(te)||s.blur()}if(ft())return;r=this.option("contentClick")}else n.closest(".fancybox__carousel")&&!n.matches(te)&&(r=this.option("backdropClick"));"close"===r?(e.preventDefault(),this.close(e)):"next"===r?(e.preventDefault(),this.next()):"prev"===r&&(e.preventDefault(),this.prev())}onWheel(e){const t=e.target;let i=this.option("wheel",e);t.closest(".fancybox__thumbs")&&(i="slide");const n="slide"===i,s=[-e.deltaX||0,-e.deltaY||0,-e.detail||0].reduce((function(e,t){return Math.abs(t)>Math.abs(e)?t:e})),r=Math.max(-1,Math.min(1,s)),a=Date.now();this.pwt&&a-this.pwt<300?n&&e.preventDefault():(this.pwt=a,this.emit("wheel",e,r),e.defaultPrevented||("close"===i?(e.preventDefault(),this.close(e)):"slide"===i&&(o(t)||(e.preventDefault(),this[r>0?"prev":"next"]()))))}onScroll(){window.scrollTo(wt,St)}onKeydown(e){if(!this.isTopmost())return;this.isCompact||!this.option("idle")||this.isClosing()||this.resetIdle();const t=e.key,i=this.option("keyboard");if(!i)return;const o=e.composedPath()[0],n=document.activeElement&&document.activeElement.classList,s=n&&n.contains("f-button")||o.dataset.carouselPage||o.dataset.carouselIndex;if("Escape"!==t&&!s&&T(o)&&(o.isContentEditable||-1!==["TEXTAREA","OPTION","INPUT","SELECT","VIDEO"].indexOf(o.nodeName)))return;if("Tab"===e.key?k(this.container,it):C(this.container,it),e.ctrlKey||e.altKey||e.shiftKey)return;this.emit("keydown",t,e);const r=i[t];r&&"function"==typeof this[r]&&(e.preventDefault(),this[r]())}onResize(){const e=this.container;if(!e)return;const t=this.isCompact;e.classList.toggle(nt,t),this.manageCaption(this.getSlide()),this.isCompact?this.clearIdle():this.endIdle(),this.scale(),this.emit
vendor: 4,438 bytes, line 1
1("resize")}onFocus(e){this.isTopmost()&&this.checkFocus(e)}onMousemove(e){this.prevMouseMoveEvent=e,!this.isCompact&&this.option("idle")&&this.resetIdle()}onVisibilityChange(){"visible"===document.visibilityState?this.checkFocus():this.endIdle()}manageCloseBtn(e){const t=this.optionFor(e,"closeButton")||!1;if("auto"===t){const e=this.plugins.Toolbar;if(e&&e.state===Ue.Ready)return}if(!t)return;if(!e.contentEl||e.closeBtnEl)return;const i=this.option("tpl.closeButton");if(i){const t=n(this.localize(i));e.closeBtnEl=e.contentEl.appendChild(t),e.el&&k(e.el,"has-close-btn")}}manageCaption(e){var t,i;const o="fancybox__caption",n=this.container;if(!n)return;C(n,at);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 e of(null===(t=this.carousel)||void 0===t?void 0:t.slides)||[])e.captionEl&&(e.captionEl.remove(),e.captionEl=void 0,C(e.el,at),null===(i=e.el)||void 0===i||i.removeAttribute("aria-labelledby"));if(e||(e=this.getSlide()),!e||s&&!this.isCurrentSlide(e))return;const a=e.el;let l=this.optionFor(e,"caption","");if(!l)return void(s&&this.caption&&this.animate(this.caption,"f-fadeOut",(()=>{this.caption&&(this.caption.innerHTML="")})));let c=null;if(r){if(c=e.captionEl||null,a&&!c){const t=`fancybox__caption_${this.id}_${e.index}`;c=document.createElement("div"),k(c,o),c.setAttribute("id",t),e.captionEl=a.appendChild(c),k(a,at),a.setAttribute("aria-labelledby",t)}}else c=this.caption,c||(c=n.querySelector("."+o)),c||(c=document.createElement("div"),c.dataset.fancyboxCaption="",k(c,o),(this.footer||n).prepend(c)),k(n,at),this.caption=c;c&&(c.innerHTML="",pt(l)||"number"==typeof l?c.innerHTML=l+"":l instanceof HTMLElement&&c.appendChild(l))}checkFocus(e){this.focus(e)}focus(e){var t;if(this.ignoreFocusChange)return;const i=document.activeElement||null,o=(null==e?void 0:e.target)||null,n=this.container,s=null===(t=this.carousel)||void 0===t?void 0:t.viewport;if(!n||!s)return;if(!e&&i&&n.contains(i))return;const r=this.getSlide(),a=r&&r.state===re.Ready?r.el:null;if(!a||a.contains(i)||n===i)return;e&&e.cancelable&&e.preventDefault(),this.ignoreFocusChange=!0;const l=Array.from(n.querySelectorAll(te));let c=[],d=null;for(let e of l){const t=!e.offsetParent||!!e.closest('[aria-hidden="true"]'),i=a&&a.contains(e),o=!s.contains(e);if(e===n||(i||o)&&!t){c.push(e);const t=e.dataset.origTabindex;void 0!==t&&t&&(e.tabIndex=parseFloat(t)),e.removeAttribute("data-orig-tabindex"),!e.hasAttribute("autoFocus")&&d||(d=e)}else{const t=void 0===e.dataset.origTabindex?e.getAttribute("tabindex")||"":e.dataset.origTabindex;t&&(e.dataset.origTabindex=t),e.tabIndex=-1}}let u=null;e?(!o||c.indexOf(o)<0)&&(u=d||n,c.length&&(i===bt?u=c[0]:this.lastFocus!==n&&i!==gt||(u=c[c.length-1]))):u=r&&"image"===r.type?n:d||n,u&&ie(u),this.lastFocus=document.activeElement,this.ignoreFocusChange=!1}next(){const e=this.carousel;e&&e.pages.length>1&&e.slideNext()}prev(){const e=this.carousel;e&&e.pages.length>1&&e.slidePrev()}jumpTo(...e){this.carousel&&this.carousel.slideTo(...e)}isTopmost(){var e;return(null===(e=Ct.getInstance())||void 0===e?void 0:e.id)==this.id}animate(e=null,t="",i){if(!e||!t)return void(i&&i());this.stop(e);const o=n=>{n.target===e&&e.dataset.animationName&&(e.removeEventListener("animationend",o),delete e.dataset.animationName,i&&i(),C(e,t))};e.dataset.animationName=t,e.addEventListener("animationend",o),k(e,t)}stop(e){e&&e.dispatchEvent(new CustomEvent("animationend",{bubbles:!1,cancelable:!0,currentTarget:e}))}setContent(e,t="",i=!0){if(this.isClosing())return;const o=e.el;if(!o)return;let s=null;if(T(t)?s=t:(s=n(t+""),T(s)||(s=document.createElement("div"),s.innerHTML=t+"")),["img","picture","iframe","video","audio"].includes(s.nodeName.toLowerCase())){const e=document.createElement("div");e.appendChild(s),s=e}T(s)&&e.filter&&!e.error&&(s=s.querySelector(e.filter)),s&&T(s)?(k(s,"fancybox__content"),e.id&&s.setAttribute("id",e.id),o.classList.add(`has-${e.error?"error":e.type||"unknown"}`),o.prepend(s),"none"===s.style.display&&(s.style.display=""),"none"===getComputedStyle(s).getPropertyValue("display")&&(s.style.display=e.display||this.option("defaultDisplay")||"flex"),e.contentEl=s,i&&this.revealContent(e),this.manageCloseBtn(e),this.manageCaption(e)):this.setError(e,"{{ELEMENT_NOT_FOUND}}")}revealContent(e,t){const i=e.el,o=e.contentEl;
vendor: 5,990 bytes, line 1
1i&&o&&(this.emit("reveal",e),this.hideLoading(e),e.state=re.Opening,(t=this.isOpeningSlide(e)?void 0===t?this.optionFor(e,"showClass"):t:"f-fadeIn")?this.animate(o,t,(()=>{this.done(e)})):this.done(e))}done(e){this.isClosing()||(e.state=re.Ready,this.emit("done",e),k(e.el,"is-done"),this.isCurrentSlide(e)&&this.option("autoFocus")&&queueMicrotask((()=>{var t;null===(t=e.panzoom)||void 0===t||t.updateControls(),this.option("autoFocus")&&this.focus()})),this.isOpeningSlide(e)&&(C(this.container,rt),!this.isCompact&&this.option("idle")&&this.setIdle()))}isCurrentSlide(e){const t=this.getSlide();return!(!e||!t)&&t.index===e.index}isOpeningSlide(e){var t,i;return null===(null===(t=this.carousel)||void 0===t?void 0:t.prevPage)&&e&&e.index===(null===(i=this.getSlide())||void 0===i?void 0:i.index)}showLoading(e){e.state=re.Loading;const t=e.el;t&&(k(t,st),this.emit("loading",e),e.spinnerEl||setTimeout((()=>{if(!this.isClosing()&&!e.spinnerEl&&e.state===re.Loading){let i=n(x);k(i,"fancybox-spinner"),e.spinnerEl=i,t.prepend(i),this.animate(i,"f-fadeIn")}}),250))}hideLoading(e){const t=e.el;if(!t)return;const i=e.spinnerEl;this.isClosing()?null==i||i.remove():(C(t,st),i&&this.animate(i,"f-fadeOut",(()=>{i.remove()})),e.state===re.Loading&&(this.emit("loaded",e),e.state=re.Ready))}setError(e,t){if(this.isClosing())return;const i=new Event("error",{bubbles:!0,cancelable:!0});if(this.emit("error",i,e),i.defaultPrevented)return;e.error=t,this.hideLoading(e),this.clearContent(e);const o=document.createElement("div");o.classList.add("fancybox-error"),o.innerHTML=this.localize(t||"<p>{{ERROR}}</p>"),this.setContent(e,o)}clearContent(e){if(void 0===e.state)return;this.emit("clearContent",e),e.contentEl&&(e.contentEl.remove(),e.contentEl=void 0);const t=e.el;t&&(C(t,"has-error"),C(t,"has-unknown"),C(t,`has-${e.type||"unknown"}`)),e.closeBtnEl&&e.closeBtnEl.remove(),e.closeBtnEl=void 0,e.captionEl&&e.captionEl.remove(),e.captionEl=void 0,e.spinnerEl&&e.spinnerEl.remove(),e.spinnerEl=void 0}getSlide(){var e;const t=this.carousel;return(null===(e=null==t?void 0:t.pages[null==t?void 0:t.page])||void 0===e?void 0:e.slides[0])||void 0}close(e,t){if(this.isClosing())return;const i=new Event("shouldClose",{bubbles:!0,cancelable:!0});if(this.emit("shouldClose",i,e),i.defaultPrevented)return;e&&e.cancelable&&(e.preventDefault(),e.stopPropagation());const o=()=>{this.proceedClose(e,t)};this.startedFs&&mt&&mt.isFullscreen()?Promise.resolve(mt.exit()).then((()=>o())):o()}clearIdle(){this.idleTimer&&clearTimeout(this.idleTimer),this.idleTimer=null}setIdle(e=!1){const t=()=>{this.clearIdle(),this.idle=!0,k(this.container,"is-idle"),this.emit("setIdle")};if(this.clearIdle(),!this.isClosing())if(e)t();else{const e=this.option("idle");e&&(this.idleTimer=setTimeout(t,e))}}endIdle(){this.clearIdle(),this.idle&&!this.isClosing()&&(this.idle=!1,C(this.container,"is-idle"),this.emit("endIdle"))}resetIdle(){this.endIdle(),this.setIdle()}toggleIdle(){this.idle?this.endIdle():this.setIdle(!0)}toggleFullscreen(){mt&&(mt.isFullscreen()?mt.exit():mt.request().then((()=>{this.startedFs=!0})))}isClosing(){return[se.Closing,se.CustomClosing,se.Destroy].includes(this.state)}proceedClose(e,t){var i,o;this.state=se.Closing,this.clearIdle(),this.detachEvents();const n=this.container,s=this.carousel,r=this.getSlide(),a=r&&this.option("placeFocusBack")?r.triggerEl||this.option("triggerEl"):null;if(a&&(J(a)?ie(a):a.focus()),n&&(C(n,rt),k(n,"is-closing"),n.setAttribute(tt,"true"),this.option("animated")&&k(n,ot),n.style.pointerEvents="none"),s){s.clearTransitions(),null===(i=s.panzoom)||void 0===i||i.destroy(),null===(o=s.plugins.Navigation)||void 0===o||o.detach();for(const e of s.slides){e.state=re.Closing,this.hideLoading(e);const t=e.contentEl;t&&this.stop(t);const i=null==e?void 0:e.panzoom;i&&(i.stop(),i.detachEvents(),i.detachObserver()),this.isCurrentSlide(e)||s.emit("removeSlide",e)}}wt=window.scrollX,St=window.scrollY,window.addEventListener("scroll",this.onScroll),this.emit("close",e),this.state!==se.CustomClosing?(void 0===t&&r&&(t=this.optionFor(r,"hideClass")),t&&r?(this.animate(r.contentEl,t,(()=>{s&&s.emit("removeSlide",r)})),setTimeout((()=>{this.destroy()}),500)):this.destroy()):setTimeout((()=>{this.destroy()}),500)}destroy(){var e;if(this.state===se.Destroy)return;window.removeEventListener("scroll",this.onScroll),this.state=se.Destroy,null===(e=this.carousel)||void 0===e||e.destroy();const t=this.container;t&&t.remove(),xt.delete(this.id);const i=Ct.getInstance();i?i.focus():(gt&&(gt.remove(),gt=null),bt&&(bt.remove(),bt=null),C(document.documentElement,Ke),(()=>{if(!Q)return;const e=document,t=e.body;t.classList.remove(Je),t.style.setProperty(et,""),e.documentElement.style.setProperty(Qe,"")})(),this.emit("destroy"))}static bind(e,t,i){if(!Q)return;let o,n="",s={};if(void 0===e?o=document.body:pt(e)?(o=document.body,n=e,"object"==typeof t&&(s=t||{})):(o=e,pt(t)&&(n=t),"object"==typeof i&&(s=i||{})),!o||!T(o))return;n=n||"[data-fancybox]";const r=Ct.openers.get(o)||new Map;r.set(n,s),Ct.openers.set(o,r),1===r.size&&o.addEventListener("click",Ct.fromEvent)}static unbind(e,t){let i,o="";if(pt(e)?(i=document.body,o=e):(i=e,pt(t)&&(o=t)),!i)return;const n=Ct.openers.get(i);n&&o&&n.delete(o),o&&n||(Ct.openers.delete(i),i.removeEventListener("click",Ct.fromEvent))}static destroy(){let e;for(;e=Ct.getInstance();)e.destroy();for(const e of Ct.openers.keys())e.removeEventListener("click",Ct.fromEvent);Ct.openers=new Map}static fromEvent(e){if(e.defaultPrevented)return;if(e.button&&0!==e.button)return;if(e.ctrlKey||e.metaKey||e.shiftKey)return;let t=e.composedPath()[0];const i=t.closest("[data-fancybox-trigger]");if(i){const e=i.dataset.fancyboxTrigger||"",o=document.querySelectorAll(`[data-fancybox="${e}"]`),n=parseInt(i.dataset.fancyboxIndex||"",10)||0;t=o[n]||t}if(!(t&&t instanceof Element))return;let o,n,s,r;if([...Ct.openers].reverse().find((([e,i])=>!(!e.contains(t)||![...i].reverse().find((([i,a])=>{let l=t.closest(i);
1return!!l&&(o=e,n=i,s=l,r=a,!0)}))))),!o||!n||!s)return;r=r||{},e.preventDefault(),t=s;let a=[],l=p({},ne,r);l.event=e,l.triggerEl=t,l.delegate=i;const c=l.groupAll,d=l.groupAttr,u=d&&t?t.getAttribute(`${d}`):"";if((!t||u||c)&&(a=[].slice.call(o.querySelectorAll(n))),t&&!c&&(a=u?a.filter((e=>e.getAttribute(`${d}`)===u)):[t]),!a.length)return;const h=Ct.getInstance();return h&&h.options.triggerEl&&a.indexOf(h.options.triggerEl)>-1?void 0:(t&&(l.startIndex=a.indexOf(t)),Ct.fromNodes(a,l))}static fromSelector(e,t,i){let o=null,n="",s={};if(pt(e)?(o=document.body,n=e,"object"==typeof t&&(s=t||{})):e instanceof HTMLElement&&pt(t)&&(o=e,n=t,"object"==typeof i&&(s=i||{})),!o||!n)return!1;const r=Ct.openers.get(o);return!!r&&(s=p({},r.get(n)||{},s),!!s&&Ct.fromNodes(Array.from(o.querySelectorAll(n)),s))}static fromNodes(e,t){t=p({},ne,t||{});const i=[];for(const o of e){const e=o.dataset||{},n=e.src||o.getAttribute(ut)||o.getAttribute("currentSrc")||o.getAttribute(ht)||void 0;let s;const r=t.delegate;let a;r&&i.length===t.startIndex&&(s=r instanceof HTMLImageElement?r:r.querySelector("img:not([aria-hidden])")),s||(s=o instanceof HTMLImageElement?o:o.querySelector("img:not([aria-hidden])")),s&&(a=s.currentSrc||s.src||void 0,!a&&s.dataset&&(a=s.dataset.lazySrc||s.dataset.src||void 0));const l={src:n,triggerEl:o,thumbEl:s,thumbElSrc:a,thumbSrc:a};for(const t in e){let i=e[t]+"";i="false"!==i&&("true"===i||i),l[t]=i}i.push(l)}return new Ct(i,t)}static getInstance(e){return e?xt.get(e):Array.from(xt.values()).reverse().find((e=>!e.isClosing()&&e))||null}static getSlide(){var e;return(null===(e=Ct.getInstance())||void 0===e?void 0:e.getSlide())||null}static show(e=[],t={}){return new Ct(e,t)}static next(){const e=Ct.getInstance();e&&e.next()}static prev(){const e=Ct.getInstance();e&&e.prev()}static close(e=!0,...t){if(e)for(const e of xt.values())e.close(...t);else{const e=Ct.getInstance();e&&e.close(...t)}}}Object.defineProperty(Ct,"version",{enumerable:!0,configurable:!0,writable:!0,value:"5.0.36"}),Object.defineProperty(Ct,"defaults",{enumerable:!0,configurable:!0,writable:!0,value:ne}),Object.defineProperty(Ct,"Plugins",{enumerable:!0,configurable:!0,writable:!0,value:Ze}),Object.defineProperty(Ct,"openers",{enumerable:!0,configurable:!0,writable:!0,value:new Map}),e.Carousel=K,e.Fancybox=Ct,e.Panzoom=I})),function(e){var t;if("function"==typeof define&&define.amd)define(["jquery"],e);else if("object"==typeof exports){try{t=require("jquery")}catch(e){}module.exports=e(t)}else{var i=window.Cookies,o=window.Cookies=e(window.jQuery);o.noConflict=function(){return window.Cookies=i,o}}}((function(e){var t=/\+/g;function i(e){return l.raw?e:encodeURIComponent(e)}function o(e){return l.raw?e:decodeURIComponent(e)}function n(e){return i(l.json?JSON.stringify(e):String(e))}function s(e,i){var o=l.raw?e:function(e){0===e.indexOf('"')&&(e=e.slice(1,-1).replace(/\\"/g,'"').replace(/\\\\/g,"\\"));try{return e=decodeURIComponent(e.replace(t," ")),l.json?JSON.parse(e):e}catch(e){}}(e);return a(i)?i(o):o}function r(){for(var e,t,i=0,o={};i<arguments.length;i++)for(e in t=arguments[i])o[e]=t[e];return o}function a(e){return"[object Function]"===Object.prototype.toString.call(e)}var l=function(e,t,c){if(arguments.length>1&&!a(t)){if("number"==typeof(c=r(l.defaults,c)).expires){var d=c.expires,u=c.expires=new Date;u.setMilliseconds(u.getMilliseconds()+864e5*d)}return document.cookie=[i(e),"=",n(t),c.expires?"; expires="+c.expires.toUTCString():"",c.path?"; path="+c.path:"",c.domain?"; domain="+c.domain:"",c.secure?"; secure":""].join("")}for(var h=e?void 0:{},p=document.cookie?document.cookie.split("; "):[],f=0,m=p.length;f<m;f++){var g=p[f].split("="),b=o(g.shift()),v=g.join("=");if(e===b){h=s(v,t);break}e||void 0===(v=s(v))||(h[b]=v)}return h};return l.get=l.set=l,l.defaults={},l.remove=function(e,t){return l(e,"",r(t,{expires:-1})),!l(e)},e&&(e.cookie=l,e.removeCookie=l.remove),l})),Number.formatFunctions={count:0},Number.prototype.NaNstring="NaN",Number.prototype.posInfinity="Infinity",Number.prototype.negInfinity="-Infinity",Number.prototype.conditionRE=/\[(>
1=|<=|=|>|<)([0-9\.]+)\]/,Number.prototype.numberFormat=function(e,t){return isNaN(this)?Number.prototype.NaNstring:this==1/0?Number.prototype.posInfinity:this==-1/0?Number.prototype.negInfinity:(null==Number.formatFunctions[e]&&Number.createNewFormat(e),this[Number.formatFunctions[e]](t))},Number.createNewFormat=function(format){var funcName="format"+Number.formatFunctions.count++;Number.formatFunctions[format]=funcName;var code="Number.prototype."+funcName+" = function(context){\n",formats=format.split(";"),equalConditionsCode="",otherConditionsCode="",rulesWithoutConditionsCount=0,defaultRuleFormat="###.##";if(formats.length<2&&null==format.match(Number.prototype.conditionRE))code+=Number.createTerminalFormat(format);else{for(var i=0,format;format=formats[i];i++)if(null!==(result=format.match(Number.prototype.conditionRE))){var newFormat=format.replace(result[0],"");"="==result[1]?equalConditionsCode+=Number.createConditionCode(result[1],result[2],newFormat):otherConditionsCode+=Number.createConditionCode(result[1],result[2],newFormat)}else{switch(rulesWithoutConditionsCount){case 0:defaultRuleFormat=format,otherConditionsCode+=Number.createConditionCode(">=",0,format);break;case 1:otherConditionsCode+=Number.createConditionCode("<",0,format);break;case 2:equalConditionsCode+=Number.createConditionCode("=",0,format);break;default:equalConditionsCode="throw 'Too many semicolons in format string';"+equalConditionsCode}rulesWithoutConditionsCount++}1==rulesWithoutConditionsCount?otherConditionsCode+=Number.createConditionCode("<",0,defaultRuleFormat):0==rulesWithoutConditionsCount&&(otherConditionsCode+=Number.createConditionCode("all",0,defaultRuleFormat)),code+=equalConditionsCode+otherConditionsCode}code+="}",eval(code)},Number.createConditionCode=function(e,t,i){var o="";if("all"==e)return"\nreturn this.numberFormat('"+String.escape(i)+"', 1);";switch(e){case"=":o="==";break;case">":o="> ";break;case"<":o="< ";break;case">=":o=">=";break;case"<=":o="<=";break;default:throw"Error! Unrecognized condition format!"}return"\nif (this "+o+" "+parseFloat(t,10)+") {return this.numberFormat('"+String.escape(i)+"', 1);}"},Number.createTerminalFormat=function(e){if(e.length>0&&-1==e.search(/[0#?]/))return"return '"+String.escape(e)+"';\n";var t="var val = (context == null) ? new Number(this) : Math.abs(this);\n",i=!1,o=e,n="",s=0,r=0,a=0,l=!1,c="";(d=e.match(/\..*(e)([+-]?)(0+)/i))&&(c=d[1],l="+"==d[2],a=d[3].length,e=e.replace(/(e)([+-]?)(0+)/i,""));var d=e.match(/^([^.]*)\.(.*)$/);return d&&(o=d[1].replace(/\./g,""),n=d[2].replace(/\./g,"")),e.indexOf("%")>=0&&(t+="val *= 100;\n"),(d=o.match(/(,+)(?:$|[^0#?,])/))&&(t+="val /= "+Math.pow(1e3,d[1].length)+"\n;"),o.search(/[0#?],[0#?]/)>=0&&(i=!0),(d||i)&&(o=o.replace(/,/g,"")),(d=o.match(/0[0#?]*/))&&(s=d[0].length),(d=n.match(/[0#?]*/))&&(r=d[0].length),a>0?t+="var sci = Number.toScientific(val,"+s+", "+r+", "+a+", "+l+");\nvar arr = [sci.l, sci.r];\n":(e.indexOf(".")<0&&(t+="var sign = (this < 0 && context == null) ? -1 : 1;\n",t+="val = Math.round(val*sign)*sign;\n"),t+="var arr = val.round("+r+").toFixed("+r+").split('.');\n",t+="arr[0] = (val < 0 ? '-' : '') + String.leftPad((val < 0 ? arr[0].substring(1) : arr[0]), "+s+", '0');\n"),i&&(t+="arr[0] = Number.addSeparators(arr[0]);\n"),t+="arr[0] = Number.injectIntoFormat(arr[0].reverse(), '"+String.escape(o.reverse())+"', true).reverse();\n",r>0&&(t+="arr[1] = Number.injectIntoFormat(arr[1], '"+String.escape(n)+"', false);\n"),a>0&&(t+="arr[1] = arr[1].replace(/(\\d{"+r+"})/, '$1"+c+"' + sci.s);\n"),t+"return arr.join('.');\n"},Number.toScientific=function(e,t,i,o,n){var s={l:"",r:"",s:""},r="",a=Math.abs(e).toFixed(t+i+1).trim("0"),l=Math.round(new Number(a.replace(".","").replace(new RegExp("(\\d{"+(t+i)+"})(.*)"),"$1.$2"))).toFixed(0);return l.length>=t?l=l.substring(0,t)+"."+l.substring(t):l+=".",s.s=a.indexOf(".")-a.search(/[1-9]/)-l.indexOf("."),s.s<0&&s.s++,s.l=(e<0?"-":"")+String.leftPad(l.substring(0,l.indexOf(".")),t,"0"),s.r=l.substring(l.indexOf(".")+1),s.s<0?r="-":n&&(r="+"),s.s=r+String.leftPad(Math.abs(s.s).toFixed(0),o,"0"),s},Number.prototype.round=function(e){if(e>0){decimalPrecision=Math.min(e+10,20);var t=this.toFixed(decimalPrecision).match(new RegExp("(-?\\d*).(\\d{"+e+"})(\\d)\\d*$"));if(t&&t.length){var i="-"==t[1].charAt(0)?-1:1,o=String.leftPad(Math.round(t[2]+"."+t[3]),e,"0");return o.length>e?new Number(t[1])+i:new Number(t[1]+"."+o)}}return this},Number.injectIntoFormat=function(e,t,i){var o=0,n=0,s="",r="-"==e.charAt(e.length-1);for(r&&(e=e.substring(0,e.length-1));o<t.length&&n<e.length&&t.substring(o).search(/[0#?]/)>=0;)t.charAt(o).match(/[0#?]/)?("-"!=e.charAt(n)?s+=e.charAt(n):s+="0",n++):s+=t.charAt(o),++o;return r&&n==e.length&&(s+="-"),n<e.length&&(i&&(s+=e.substring(n)),r&&(s+="-")),o<t.length&&(s+=t.substring(o)),s.replace(/#/g,"").replace(/\?/g," ")},Number.addSeparators=function(e){return e.reverse().replace(/(\d{3})/g,"$1,").reverse().replace(/^(-)?,/,"$1")},String.prototype.reverse=function(){for(var e="",t=this.length;t>0;--t)e+=this.charAt(t-1);return e},String.prototype.trim=function(e){return e||(e=" "),this.replace(new RegExp("^"+e+"+|"+e+"+$","g"),"")},String.leftPad=function(e,t,i){var o=new String(e);for(null==i&&(i=" ");o.length<t;)o=i+o;return o},String.escape=function(e){return e.replace(/(')/g,"\\$1").replace(/[\r\n]/g,"")},function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e="undefined"!=typeof globalThis?globalThis:e||self).DOMPurify=t()}(this,(function(){"use strict";const{entries:e,setPrototypeOf:t,isFrozen:i,getPrototypeOf:o,getOwnPropertyDescriptor:n}=Object;let{freeze:s,seal:r,create:a}=Object,{apply:l,construct:c}="undefined"!=typeof Reflect&&Reflect;s||(s=function(e){return e}),r||(r=function(e){return e}),l||(l=function(e,t,i){return e.apply(t,i)}),c||(c=function(e,t){return new e(...t)});const d=T(Array.prototype.forEach),u=T(Array.prototype.pop),h=T(Array.prototype.push),p=T(String.prototype.toLowerCase),f=T(String.prototype.toString),m=T(String.prototype.match),g=T(String.prototype.replace),b=T(String.prototype.indexOf),v=T(String.prototype.trim),y=T(Object.prototype.hasOwnProperty),w=T(RegExp.prototype.test),S=(x=TypeError,function(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];return c(x,t)});var x;function T(e){return function(t){for(var i=arguments.length,o=new Array(i>1?i-1:0),n=1;n<i;n++)o[n-1]=arguments[n];return l(e,t,o)}}function C(e,o){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:p;t&&t(e,null);let s=o.length;for(;s--;){let t=o[s];if("string"==typeof t){const e=n(t);e!==t&&(i(o)||(o[s]=e),t=e)}e[t]=!0}return e}function k(e){for(let t=0;t<e.length;t++)y(e,t)||(e[t]=null);return e}function E(t){const i=a(null);for(const[o,n]of e(t))y(t,o)&&(Array.isArray(n)?i[o]=k(n):n&&"object"==typeof n&&n.constructor===Object?i[o]=E(n):i[o]=n);return i}function P(e,t){for(;null!==e;){const i=n(e,t);if(i){if(i.get)return T(i.get);if("function"==typeof i.value)return T(i.value)}e=o(e)}return function(){return null}}const O=s(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),M=s(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),A=s(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),L=s(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),R=s(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),z=s(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),I=s(["#text"]),N=s(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","
1spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),$=s(["accent-height","accumulate","additive","alignment-baseline","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),D=s(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),F=s(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),j=r(/\{\{[\w\W]*|[\w\W]*\}\}/gm),H=r(/<%[\w\W]*|[\w\W]*%>/gm),_=r(/\${[\w\W]*}/gm),B=r(/^data-[\-\w.\u00B7-\uFFFF]/),W=r(/^aria-[\-\w]+$/),q=r(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),U=r(/^(?:\w+script|data):/i),Y=r(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),X=r(/^html$/i),V=r(/^[a-z][.\w]*(-[.\w]+)+$/i);var G=Object.freeze({__proto__:null,MUSTACHE_EXPR:j,ERB_EXPR:H,TMPLIT_EXPR:_,DATA_ATTR:B,ARIA_ATTR:W,IS_ALLOWED_URI:q,IS_SCRIPT_OR_DATA:U,ATTR_WHITESPACE:Y,DOCTYPE_NAME:X,CUSTOM_ELEMENT:V});const Z=function(){return"undefined"==typeof window?null:window};var K=function t(){let i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Z();const o=e=>t(e);if(o.version="3.1.5",o.removed=[],!i||!i.document||9!==i.document.nodeType)return o.isSupported=!1,o;let{document:n}=i;const r=n,l=r.currentScript,{DocumentFragment:c,HTMLTemplateElement:x,Node:T,Element:k,NodeFilter:j,NamedNodeMap:H=i.NamedNodeMap||i.MozNamedAttrMap,HTMLFormElement:_,DOMParser:B,trustedTypes:W}=i,U=k.prototype,Y=P(U,"cloneNode"),V=P(U,"nextSibling"),K=P(U,"childNodes"),J=P(U,"parentNode");if("function"==typeof x){const e=n.createElement("template");e.content&&e.content.ownerDocument&&(n=e.content.ownerDocument)}let Q,ee="";const{implementation:te,createNodeIterator:ie,createDocumentFragment:oe,getElementsByTagName:ne}=n,{importNode:se}=r;let re={};o.isSupported="function"==typeof e&&"function"==typeof J&&te&&void 0!==te.createHTMLDocument;const{MUSTACHE_EXPR:ae,ERB_EXPR:le,TMPLIT_EXPR:ce,DATA_ATTR:de,ARIA_ATTR:ue,IS_SCRIPT_OR_DATA:he,ATTR_WHITESPACE:pe,CUSTOM_ELEMENT:fe}=G;let{IS_ALLOWED_URI:me}=G,ge=null;const be=C({},[...O,...M,...A,...R,...I]);let ve=null;const ye=C({},[...N,...$,...D,...F]);let we=Object.seal(a(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),Se=null,xe=null,Te=!0,Ce=!0,ke=!1,Ee=!0,Pe=!1,Oe=!0,Me=!1,Ae=!1,Le=!1,Re=!1,ze=!1,Ie=!1,Ne=!0,$e=!1,De=!0,Fe=!1,je={},He=null;const _e=C({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let Be=null;const We=C({},["audio","video","img","source","image","track"]);let qe=null;const Ue=C({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Ye="http://www.w3.org/1998/Math/MathML",Xe="http://www.w3.org/2000/svg",Ve="http://www.w3.org/1999/xhtml";let Ge=Ve,Ze=!1,Ke=null;const Je=C({},[Ye,Xe,Ve],f);let Qe=null;const et=["application/xhtml+xml","text/html"];let tt=null,it=null;const ot=n.createElement("form"),nt=function(e){return e instanceof RegExp||e instanceof Function},st=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!it||it!==e){if(e&&"object"==typeof e||(e={}
vendor: 10,638 bytes, line 1
1),e=E(e),Qe=-1===et.indexOf(e.PARSER_MEDIA_TYPE)?"text/html":e.PARSER_MEDIA_TYPE,tt="application/xhtml+xml"===Qe?f:p,ge=y(e,"ALLOWED_TAGS")?C({},e.ALLOWED_TAGS,tt):be,ve=y(e,"ALLOWED_ATTR")?C({},e.ALLOWED_ATTR,tt):ye,Ke=y(e,"ALLOWED_NAMESPACES")?C({},e.ALLOWED_NAMESPACES,f):Je,qe=y(e,"ADD_URI_SAFE_ATTR")?C(E(Ue),e.ADD_URI_SAFE_ATTR,tt):Ue,Be=y(e,"ADD_DATA_URI_TAGS")?C(E(We),e.ADD_DATA_URI_TAGS,tt):We,He=y(e,"FORBID_CONTENTS")?C({},e.FORBID_CONTENTS,tt):_e,Se=y(e,"FORBID_TAGS")?C({},e.FORBID_TAGS,tt):{},xe=y(e,"FORBID_ATTR")?C({},e.FORBID_ATTR,tt):{},je=!!y(e,"USE_PROFILES")&&e.USE_PROFILES,Te=!1!==e.ALLOW_ARIA_ATTR,Ce=!1!==e.ALLOW_DATA_ATTR,ke=e.ALLOW_UNKNOWN_PROTOCOLS||!1,Ee=!1!==e.ALLOW_SELF_CLOSE_IN_ATTR,Pe=e.SAFE_FOR_TEMPLATES||!1,Oe=!1!==e.SAFE_FOR_XML,Me=e.WHOLE_DOCUMENT||!1,Re=e.RETURN_DOM||!1,ze=e.RETURN_DOM_FRAGMENT||!1,Ie=e.RETURN_TRUSTED_TYPE||!1,Le=e.FORCE_BODY||!1,Ne=!1!==e.SANITIZE_DOM,$e=e.SANITIZE_NAMED_PROPS||!1,De=!1!==e.KEEP_CONTENT,Fe=e.IN_PLACE||!1,me=e.ALLOWED_URI_REGEXP||q,Ge=e.NAMESPACE||Ve,we=e.CUSTOM_ELEMENT_HANDLING||{},e.CUSTOM_ELEMENT_HANDLING&&nt(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(we.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck),e.CUSTOM_ELEMENT_HANDLING&&nt(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(we.attributeNameCheck=e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),e.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(we.allowCustomizedBuiltInElements=e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Pe&&(Ce=!1),ze&&(Re=!0),je&&(ge=C({},I),ve=[],!0===je.html&&(C(ge,O),C(ve,N)),!0===je.svg&&(C(ge,M),C(ve,$),C(ve,F)),!0===je.svgFilters&&(C(ge,A),C(ve,$),C(ve,F)),!0===je.mathMl&&(C(ge,R),C(ve,D),C(ve,F))),e.ADD_TAGS&&(ge===be&&(ge=E(ge)),C(ge,e.ADD_TAGS,tt)),e.ADD_ATTR&&(ve===ye&&(ve=E(ve)),C(ve,e.ADD_ATTR,tt)),e.ADD_URI_SAFE_ATTR&&C(qe,e.ADD_URI_SAFE_ATTR,tt),e.FORBID_CONTENTS&&(He===_e&&(He=E(He)),C(He,e.FORBID_CONTENTS,tt)),De&&(ge["#text"]=!0),Me&&C(ge,["html","head","body"]),ge.table&&(C(ge,["tbody"]),delete Se.tbody),e.TRUSTED_TYPES_POLICY){if("function"!=typeof e.TRUSTED_TYPES_POLICY.createHTML)throw S('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!=typeof e.TRUSTED_TYPES_POLICY.createScriptURL)throw S('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');Q=e.TRUSTED_TYPES_POLICY,ee=Q.createHTML("")}else void 0===Q&&(Q=function(e,t){if("object"!=typeof e||"function"!=typeof e.createPolicy)return null;let i=null;const o="data-tt-policy-suffix";t&&t.hasAttribute(o)&&(i=t.getAttribute(o));const n="dompurify"+(i?"#"+i:"");try{return e.createPolicy(n,{createHTML:e=>e,createScriptURL:e=>e})}catch(e){return console.warn("TrustedTypes policy "+n+" could not be created."),null}}(W,l)),null!==Q&&"string"==typeof ee&&(ee=Q.createHTML(""));s&&s(e),it=e}},rt=C({},["mi","mo","mn","ms","mtext"]),at=C({},["foreignobject","annotation-xml"]),lt=C({},["title","style","font","a","script"]),ct=C({},[...M,...A,...L]),dt=C({},[...R,...z]),ut=function(e){h(o.removed,{element:e});try{e.parentNode.removeChild(e)}catch(t){e.remove()}},ht=function(e,t){try{h(o.removed,{attribute:t.getAttributeNode(e),from:t})}catch(e){h(o.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e&&!ve[e])if(Re||ze)try{ut(t)}catch(e){}else try{t.setAttribute(e,"")}catch(e){}},pt=function(e){let t=null,i=null;if(Le)e="<remove></remove>"+e;else{const t=m(e,/^[\r\n\t ]+/);i=t&&t[0]}"application/xhtml+xml"===Qe&&Ge===Ve&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");const o=Q?Q.createHTML(e):e;if(Ge===Ve)try{t=(new B).parseFromString(o,Qe)}catch(e){}if(!t||!t.documentElement){t=te.createDocument(Ge,"template",null);try{t.documentElement.innerHTML=Ze?ee:o}catch(e){}}const s=t.body||t.documentElement;return e&&i&&s.insertBefore(n.createTextNode(i),s.childNodes[0]||null),Ge===Ve?ne.call(t,Me?"html":"body")[0]:Me?t.documentElement:s},ft=function(e){return ie.call(e.ownerDocument||e,e,j.SHOW_ELEMENT|j.SHOW_COMMENT|j.SHOW_TEXT|j.SHOW_PROCESSING_INSTRUCTION|j.SHOW_CDATA_SECTION,null)},mt=function(e){return e instanceof _&&("string"!=typeof e.nodeName||"string"!=typeof e.textContent||"function"!=typeof e.removeChild||!(e.attributes instanceof H)||"function"!=typeof e.removeAttribute||"function"!=typeof e.setAttribute||"string"!=typeof e.namespaceURI||"function"!=typeof e.insertBefore||"function"!=typeof e.hasChildNodes)},gt=function(e){return"function"==typeof T&&e instanceof T},bt=function(e,t,i){re[e]&&d(re[e],(e=>{e.call(o,t,i,it)}))},vt=function(e){let t=null;if(bt("beforeSanitizeElements",e,null),mt(e))return ut(e),!0;const i=tt(e.nodeName);if(bt("uponSanitizeElement",e,{tagName:i,allowedTags:ge}),e.hasChildNodes()&&!gt(e.firstElementChild)&&w(/<[/\w]/g,e.innerHTML)&&w(/<[/\w]/g,e.textContent))return ut(e),!0;if(7===e.nodeType)return ut(e),!0;if(Oe&&8===e.nodeType&&w(/<[/\w]/g,e.data))return ut(e),!0;if(!ge[i]||Se[i]){if(!Se[i]&&wt(i)){if(we.tagNameCheck instanceof RegExp&&w(we.tagNameCheck,i))return!1;if(we.tagNameCheck instanceof Function&&we.tagNameCheck(i))return!1}if(De&&!He[i]){const t=J(e)||e.parentNode,i=K(e)||e.childNodes;if(i&&t)for(let o=i.length-1;o>=0;--o){const n=Y(i[o],!0);n.__removalCount=(e.__removalCount||0)+1,t.insertBefore(n,V(e))}}return ut(e),!0}return e instanceof k&&!function(e){let t=J(e);t&&t.tagName||(t={namespaceURI:Ge,tagName:"template"});const i=p(e.tagName),o=p(t.tagName);return!!Ke[e.namespaceURI]&&(e.namespaceURI===Xe?t.namespaceURI===Ve?"svg"===i:t.namespaceURI===Ye?"svg"===i&&("annotation-xml"===o||rt[o]):Boolean(ct[i]):e.namespaceURI===Ye?t.namespaceURI===Ve?"math"===i:t.namespaceURI===Xe?"math"===i&&at[o]:Boolean(dt[i]):e.namespaceURI===Ve?!(t.namespaceURI===Xe&&!at[o])&&!(t.namespaceURI===Ye&&!rt[o])&&!dt[i]&&(lt[i]||!ct[i]):!("application/xhtml+xml"!==Qe||!Ke[e.namespaceURI]))}(e)?(ut(e),!0):"noscript"!==i&&"noembed"!==i&&"noframes"!==i||!w(/<\/no(script|embed|frames)/i,e.innerHTML)?(Pe&&3===e.nodeType&&(t=e.textContent,d([ae,le,ce],(e=>{t=g(t,e," ")})),e.textContent!==t&&(h(o.removed,{element:e.cloneNode()}),e.textContent=t)),bt("afterSanitizeElements",e,null),!1):(ut(e),!0)},yt=function(e,t,i){if(Ne&&("id"===t||"name"===t)&&(i in n||i in ot))return!1;if(Ce&&!xe[t]&&w(de,t));else if(Te&&w(ue,t));else if(!ve[t]||xe[t]){if(!(wt(e)&&(we.tagNameCheck instanceof RegExp&&w(we.tagNameCheck,e)||we.tagNameCheck instanceof Function&&we.tagNameCheck(e))&&(we.attributeNameCheck instanceof RegExp&&w(we.attributeNameCheck,t)||we.attributeNameCheck instanceof Function&&we.attributeNameCheck(t))||"is"===t&&we.allowCustomizedBuiltInElements&&(we.tagNameCheck instanceof RegExp&&w(we.tagNameCheck,i)||we.tagNameCheck instanceof Function&&we.tagNameCheck(i))))return!1}else if(qe[t]);else if(w(me,g(i,pe,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==b(i,"data:")||!Be[e])if(ke&&!w(he,g(i,pe,"")));else if(i)return!1;return!0},wt=function(e){return"annotation-xml"!==e&&m(e,fe)},St=function(e){bt("beforeSanitizeAttributes",e,null);const{attributes:t}=e;if(!t)return;const i={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:ve};let n=t.length;for(;n--;){const s=t[n],{name:r,namespaceURI:a,value:l}=s,c=tt(r);let h="value"===r?l:v(l);if(i.attrName=c,i.attrValue=h,i.keepAttr=!0,i.forceKeepAttr=void 0,bt("uponSanitizeAttribute",e,i),h=i.attrValue,Oe&&w(/((--!?|])>)|<\/(style|title)/i,h)){ht(r,e);continue}if(i.forceKeepAttr)continue;if(ht(r,e),!i.keepAttr)continue;if(!Ee&&w(/\/>/i,h)){ht(r,e);continue}Pe&&d([ae,le,ce],(e=>{h=g(h,e," ")}));const p=tt(e.nodeName);if(yt(p,c,h)){if(!$e||"id"!==c&&"name"!==c||(ht(r,e),h="user-content-"+h),Q&&"object"==typeof W&&"function"==typeof W.getAttributeType)if(a);else switch(W.getAttributeType(p,c)){case"TrustedHTML":h=Q.createHTML(h);break;case"TrustedScriptURL":h=Q.createScriptURL(h)}try{a?e.setAttributeNS(a,r,h):e.setAttribute(r,h),mt(e)?ut(e):u(o.removed)}catch(e){}}}bt("afterSanitizeAttributes",e,null)},xt=function e(t){let i=null;const o=ft(t);for(bt("beforeSanitizeShadowDOM",t,null);i=o.nextNode();)bt("uponSanitizeShadowNode",i,null),vt(i)||(i.content instanceof c&&e(i.content),St(i));bt("afterSanitizeShadowDOM",t,null)};return o.sanitize=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=null,n=null,s=null,a=null;if(Ze=!e,Ze&&(e="\x3c!--\x3e"),"string"!=typeof e&&!gt(e)){if("function"!=typeof e.toString)throw S("toString is not a function");if("string"!=typeof(e=e.toString()))throw S("dirty is not a string, aborting")}if(!o.isSupported)return e;if(Ae||st(t),o.removed=[],"string"==typeof e&&(Fe=!1),Fe){if(e.nodeName){const t=tt(e.nodeName);if(!ge[t]||Se[t])throw S("root node is forbidden and cannot be sanitized in-place")}}else if(e instanceof T)i=pt("\x3c!----\x3e"),n=i.ownerDocument.importNode(e,!0),1===n.nodeType&&"BODY"===n.nodeName||"HTML"===n.nodeName?i=n:i.appendChild(n);else{if(!Re&&!Pe&&!Me&&-1===e.indexOf("<"))return Q&&Ie?Q.createHTML(e):e;if(i=pt(e),!i)return Re?null:Ie?ee:""}i&&Le&&ut(i.firstChild);const l=ft(Fe?e:i);for(;s=l.nextNode();)vt(s)||(s.content instanceof c&&xt(s.content),St(s));if(Fe)return e;if(Re){if(ze)for(a=oe.call(i.ownerDocument);i.firstChild;)a.appendChild(i.firstChild);else a=i;return(ve.shadowroot||ve.shadowrootmode)&&(a=se.call(r,a,!0)),a}let u=Me?i.outerHTML:i.innerHTML;return Me&&ge["!doctype"]&&i.ownerDocument&&i.ownerDocument.doctype&&i.ownerDocument.doctype.name&&w(X,i.ownerDocument.doctype.name)&&(u="<!DOCTYPE "+i.ownerDocument.doctype.name+">\n"+u),Pe&&d([ae,le,ce],(e=>{u=g(u,e," ")})),Q&&Ie?Q.createHTML(u):u},o.setConfig=function(){st(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),Ae=!0},o.clearConfig=function(){it=null,Ae=!1},o.isValidAttribute=function(e,t,i){it||st({});const o=tt(e),n=tt(t);return yt(o,n,i)},o.addHook=function(e,t){"function"==typeof t&&(re[e]=re[e]||[],h(re[e],t))},o.removeHook=function(e){if(re[e])return u(re[e])},o.removeHooks=function(e){re[e]&&(re[e]=[])},o.removeAllHooks=function(){re={}},o}();return K})),function(e,t){"use strict";"function"==typeof define&&define.amd?define(["jquery"],t):"object"==typeof exports?module.exports=t(require("jquery")):e.bootbox=t(e.jQuery)}(this,(function e(t,i){"use strict";let o={};o.VERSION="6.0.4";let n={en:{OK:"OK",CANCEL:"Cancel",CONFIRM:"OK"}},s={dialog:'<div class="bootbox modal" tabindex="-1" role="dialog" aria-hidden="true"><div class="modal-dialog"><div class="modal-content"><div class="modal-body"><div class="bootbox-body"></div></div></div></div></div>',header:'<div class="modal-header"><h5 class="modal-title"></h5></div>
1',footer:'<div class="modal-footer"></div>',closeButton:'<button type="button" class="bootbox-close-button close btn-close" aria-hidden="true" aria-label="Close"></button>',form:'<form class="bootbox-form"></form>',button:'<button type="button" class="btn"></button>',option:'<option value=""></option>',promptMessage:'<div class="bootbox-prompt-message"></div>',inputs:{text:'<input class="bootbox-input bootbox-input-text form-control" autocomplete="off" type="text" />',textarea:'<textarea class="bootbox-input bootbox-input-textarea form-control"></textarea>',email:'<input class="bootbox-input bootbox-input-email form-control" autocomplete="off" type="email" />',select:'<select class="bootbox-input bootbox-input-select form-select"></select>',checkbox:'<div class="form-check checkbox"><label class="form-check-label"><input class="form-check-input bootbox-input bootbox-input-checkbox" type="checkbox" /></label></div>',radio:'<div class="form-check radio"><label class="form-check-label"><input class="form-check-input bootbox-input bootbox-input-radio" type="radio" name="bootbox-radio" /></label></div>',date:'<input class="bootbox-input bootbox-input-date form-control" autocomplete="off" type="date" />',time:'<input class="bootbox-input bootbox-input-time form-control" autocomplete="off" type="time" />',number:'<input class="bootbox-input bootbox-input-number form-control" autocomplete="off" type="number" />',password:'<input class="bootbox-input bootbox-input-password form-control" autocomplete="off" type="password" />',range:'<input class="bootbox-input bootbox-input-range form-control-range" autocomplete="off" type="range" />'}},r={locale:"en",backdrop:"static",animate:!0,className:null,closeButton:!0,show:!0,container:"body",value:"",inputType:"text",errorMessage:null,swapButtonOrder:!1,centerVertical:!1,multiple:!1,scrollable:!1,reusable:!1,relatedTarget:null,size:null,id:null};function a(e,i,o){return t.extend(!0,{},e,function(e,t){let i=e.length,o={};if(i<1||i>2)throw new Error("Invalid argument length");return 2===i||"string"==typeof e[0]?(o[t[0]]=e[0],o[t[1]]=e[1]):o=e[0],o}(i,o))}function l(e,t,o,n){let s;if(n&&n[0]){s=n[0].locale||r.locale,(n[0].swapButtonOrder||r.swapButtonOrder)&&(t=t.reverse())}return function(e,t){let o={};return h(t,(function(e,t){o[t]=!0})),h(e.buttons,(function(e){if(o[e]===i)throw new Error('button key "'+e+'" is not allowed (options are '+t.join(" ")+")")})),e}(a({className:"bootbox-"+e,buttons:c(t,s)},n,o),t)}function c(e,t){let i={};for(let o=0,n=e.length;o<n;o++){let n=e[o],s=n.toLowerCase(),r=n.toUpperCase();i[s]={label:d(r,t)}}return i}function d(e,t){let i=n[t];return i?i[e]:n.en[e]}function u(e){return Object.keys(e).length}function h(e,i){let o=0;t.each(e,(function(e,t){i(e,t,o++)}))}function p(e){e.data.dialog.find(".bootbox-accept").first().trigger("focus")}function f(e){e.target===e.data.dialog[0]&&e.data.dialog.remove()}function m(e){e.target===e.data.dialog[0]&&(e.data.dialog.off("escape.close.bb"),e.data.dialog.off("click"))}function g(e,t,i){e.stopPropagation(),e.preventDefault(),"function"==typeof i&&!1===i.call(t,e)||t.modal("hide")}function b(e,t,o){let n=!1,s=!0,r=!0;if("date"===e)t===i||(s=y(t))?o===i||(r=y(o))||console.warn('Browsers which natively support the "date" input type expect date values to be of the form "YYYY-MM-DD" (see ISO-8601 https://www.iso.org/iso-8601-date-and-time-format.html). Bootbox does not enforce this rule, but your max value may not be enforced by this browser.'):console.warn('Browsers which natively support the "date" input type expect date values to be of the form "YYYY-MM-DD" (see ISO-8601 https://www.iso.org/iso-8601-date-and-time-format.html). Bootbox does not enforce this rule, but your min value may not be enforced by this browser.');else if("time"===e){if(t!==i&&!(s=v(t)))throw new Error('"min" is not a valid time. See https://www.w3.org/TR/2012/WD-html-markup-20120315/datatypes.html#form.data.time for more information.');if(o!==i&&!(r=v(o)))throw new Error('"max" is not a valid time. See https://www.w3.org/TR/2012/WD-html-markup-20120315/datatypes.html#form.data.time for more information.')}else{if(t!==i&&isNaN(t))throw s=!1,new Error('"min" must be a valid number. See https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#attr-min for more information.');if(o!==i&&isNaN(o))throw r=!1,new Error('"max" must be a valid number. See https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#attr-max for more information.')}if(s&&r){if(o<t)throw new Error('"max" must be greater than or equal to "min". See https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#attr-max for more information.');n=!0}return n}function v(e){return/([01][0-9]|2[0-3]):[0-5][0-9]?:[0-5][0-9]/.test(e)}function y(e){return/(\d{4})-(\d{2})-(\d{2})/.test(e)}return o.locales=function(e){return e?n[e]:n}
1,o.addLocale=function(e,i){return t.each(["OK","CANCEL","CONFIRM"],(function(e,t){if(!i[t])throw new Error('Please supply a translation for "'+t+'"')})),n[e]={OK:i.OK,CANCEL:i.CANCEL,CONFIRM:i.CONFIRM},o},o.removeLocale=function(e){if("en"===e)throw new Error('"en" is used as the default and fallback locale and cannot be removed.');return delete n[e],o},o.setLocale=function(e){return o.setDefaults("locale",e)},o.setDefaults=function(){let e={};return 2===arguments.length?e[arguments[0]]=arguments[1]:e=arguments[0],t.extend(r,e),o},o.hideAll=function(){return t(".bootbox").modal("hide"),o},o.init=function(i){return e(i||t)},o.dialog=function(e){if(t.fn.modal===i)throw new Error('"$.fn.modal" is not defined; please double check you have included the Bootstrap JavaScript library. See https://getbootstrap.com/docs/5.3/getting-started/introduction/ for more details.');if(e=function(e){let i,o;if("object"!=typeof e)throw new Error("Please supply an object of options");if(!e.message)throw new Error('"message" option must not be null or an empty string.');(e=t.extend({},r,e)).backdrop?e.backdrop="string"!=typeof e.backdrop||"static"!==e.backdrop.toLowerCase()||"static":e.backdrop=!1!==e.backdrop&&0!==e.backdrop&&"static";e.buttons||(e.buttons={});return i=e.buttons,o=u(i),h(i,(function(t,n,s){if("function"==typeof n&&(n=i[t]={callback:n}),"object"!=typeof n)throw new Error('button with key "'+t+'" must be an object');if(n.label||(n.label=t),!n.className){let t=!1;t=e.swapButtonOrder?0===s:s===o-1,n.className=o<=2&&t?"btn-primary":"btn-secondary btn-default"}})),e}(e),t.fn.modal.Constructor.VERSION){e.fullBootstrapVersion=t.fn.modal.Constructor.VERSION;let i=e.fullBootstrapVersion.indexOf(".");e.bootstrap=e.fullBootstrapVersion.substring(0,i)}else e.bootstrap="2",e.fullBootstrapVersion="2.3.2",console.warn("Bootbox will *mostly* work with Bootstrap 2, but we do not officially support it. Please upgrade, if possible.");let o=t(s.dialog),n=o.find(".modal-dialog"),a=o.find(".modal-body"),l=t(s.header),c=t(s.footer),d=e.buttons,b={onEscape:e.onEscape};if(a.find(".bootbox-body").html(e.message),u(e.buttons)>0&&(h(d,(function(e,i){let o=t(s.button);switch(o.data("bb-handler",e),o.addClass(i.className),e){case"ok":case"confirm":o.addClass("bootbox-accept");break;case"cancel":o.addClass("bootbox-cancel")}o.html(i.label),i.id&&o.attr({id:i.id}),!0===i.disabled&&o.prop({disabled:!0}),c.append(o),b[e]=i.callback})),a.after(c)),!0===e.animate&&o.addClass("fade"),e.className&&o.addClass(e.className),e.id&&o.attr({id:e.id}),e.size)switch(e.fullBootstrapVersion.substring(0,3)<"3.1"&&console.warn('"size" requires Bootstrap 3.1.0 or higher. You appear to be using '+e.fullBootstrapVersion+". Please upgrade to use this option."),e.size){case"small":case"sm":n.addClass("modal-sm");break;case"large":case"lg":n.addClass("modal-lg");break;case"extra-large":case"xl":n.addClass("modal-xl"),e.fullBootstrapVersion.substring(0,3)<"4.2"&&console.warn('Using size "xl"/"extra-large" requires Bootstrap 4.2.0 or higher. You appear to be using '+e.fullBootstrapVersion+". Please upgrade to use this option.")}if(e.scrollable&&(n.addClass("modal-dialog-scrollable"),e.fullBootstrapVersion.substring(0,3)<"4.3"&&console.warn('Using "scrollable" requires Bootstrap 4.3.0 or higher. You appear to be using '+e.fullBootstrapVersion+". Please upgrade to use this option.")),e.title||e.closeButton){if(e.title?l.find(".modal-title").html(e.title):l.addClass("border-0"),e.closeButton){let i=t(s.closeButton);e.bootstrap<5&&i.html("&times;"),e.bootstrap<4?l.prepend(i):"bootbox-confirm"==e.className||"bootbox-alert"==e.className?a.prepend(i):l.append(i)}"bootbox-confirm"!=e.className&&"bootbox-alert"!=e.className&&a.before(l)}if(e.centerVertical&&(n.addClass("modal-dialog-centered"),e.fullBootstrapVersion<"4.0.0"&&console.warn('"centerVertical" requires Bootstrap 4.0.0-beta.3 or higher. You appear to be using '+e.fullBootstrapVersion+". Please upgrade to use this option.")),e.reusable||(o.one("hide.bs.modal",{dialog:o},m),o.one("hidden.bs.modal",{dialog:o},f)),e.onHide){if("function"!=typeof e.onHide)throw new Error('Argument supplied to "onHide" must be a function');o.on("hide.bs.modal",e.onHide)}
1if(e.onHidden){if("function"!=typeof e.onHidden)throw new Error('Argument supplied to "onHidden" must be a function');o.on("hidden.bs.modal",e.onHidden)}if(e.onShow){if("function"!=typeof e.onShow)throw new Error('Argument supplied to "onShow" must be a function');o.on("show.bs.modal",e.onShow)}if(o.one("shown.bs.modal",{dialog:o},p),e.onShown){if("function"!=typeof e.onShown)throw new Error('Argument supplied to "onShown" must be a function');o.on("shown.bs.modal",e.onShown)}if(!0===e.backdrop){let e=!1;o.on("mousedown",".modal-content",(function(t){t.stopPropagation(),e=!0})),o.on("click.dismiss.bs.modal",(function(t){e||t.target!==t.currentTarget||o.trigger("escape.close.bb")}))}return o.on("escape.close.bb",(function(e){b.onEscape&&g(e,o,b.onEscape)})),o.on("click",".modal-footer button:not(.disabled)",(function(e){let n=t(this).data("bb-handler");n!==i&&g(e,o,b[n])})),o.on("click",".bootbox-close-button",(function(e){g(e,o,b.onEscape)})),o.on("keyup",(function(e){27===e.which&&o.trigger("escape.close.bb")})),t(e.container).append(o),o.modal({backdrop:e.backdrop,keyboard:!1,show:!1}),e.show&&o.modal("show",e.relatedTarget),o},o.alert=function(){let e;if(e=l("alert",["ok"],["message","callback"],arguments),e.callback&&"function"!=typeof e.callback)throw new Error('alert requires the "callback" property to be a function when provided');return e.buttons.ok.callback=e.onEscape=function(){return"function"!=typeof e.callback||e.callback.call(this)},o.dialog(e)},o.confirm=function(){let e;if(e=l("confirm",["cancel","confirm"],["message","callback"],arguments),"function"!=typeof e.callback)throw new Error("confirm requires a callback");return e.buttons.cancel.callback=e.onEscape=function(){return e.callback.call(this,!1)},e.buttons.confirm.callback=function(){return e.callback.call(this,!0)},o.dialog(e)}
1,o.prompt=function(){let e,n,a,c,d,u;if(a=t(s.form),e=l("prompt",["cancel","confirm"],["title","callback"],arguments),e.value||(e.value=r.value),e.inputType||(e.inputType=r.inputType),d=e.show===i?r.show:e.show,e.show=!1,e.buttons.cancel.callback=e.onEscape=function(){return e.callback.call(this,null)},e.buttons.confirm.callback=function(){let i;if("checkbox"===e.inputType){if(i=c.find("input:checked").map((function(){return t(this).val()})).get(),0===i.length&&!0===e.required)return!1}else if("radio"===e.inputType)i=c.find("input:checked").val();else{let o=c[0];if(o.checkValidity&&!o.checkValidity())return e.errorMessage&&o.setCustomValidity(e.errorMessage),o.reportValidity&&o.reportValidity(),!1;i="select"===e.inputType&&!0===e.multiple?c.find("option:selected").map((function(){return t(this).val()})).get():c.val()}return e.callback.call(this,i)},!e.title)throw new Error("prompt requires a title");if("function"!=typeof e.callback)throw new Error("prompt requires a callback");if(!s.inputs[e.inputType])throw new Error("Invalid prompt type");switch(c=t(s.inputs[e.inputType]),e.inputType){case"text":case"textarea":case"email":case"password":c.val(e.value),e.placeholder&&c.attr("placeholder",e.placeholder),e.pattern&&c.attr("pattern",e.pattern),e.maxlength&&c.attr("maxlength",e.maxlength),e.required&&c.prop({required:!0}),e.rows&&!isNaN(parseInt(e.rows))&&"textarea"===e.inputType&&c.attr({rows:e.rows});break;case"date":case"time":case"number":case"range":if(c.val(e.value),e.placeholder&&c.attr("placeholder",e.placeholder),e.pattern?c.attr("pattern",e.pattern):"date"===e.inputType?c.attr("pattern","d{4}-d{2}-d{2}"):"time"===e.inputType&&c.attr("pattern","d{2}:d{2}"),e.required&&c.prop({required:!0}),e.step){if(!("any"===e.step||!isNaN(e.step)&&parseFloat(e.step)>0))throw new Error('"step" must be a valid positive number or the value "any". See https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#attr-step for more information.');c.attr("step",e.step)}b(e.inputType,e.min,e.max)&&(e.min!==i&&c.attr("min",e.min),e.max!==i&&c.attr("max",e.max));break;case"select":let o={};if(u=e.inputOptions||[],!Array.isArray(u))throw new Error("Please pass an array of input options");if(!u.length)throw new Error('prompt with "inputType" set to "select" requires at least one option');e.required&&c.prop({required:!0}),e.multiple&&c.prop({multiple:!0}),h(u,(function(e,n){let r=c;if(n.value===i||n.text===i)throw new Error('each option needs a "value" property and a "text" property');n.group&&(o[n.group]||(o[n.group]=t("<optgroup />").attr("label",n.group)),r=o[n.group]);let a=t(s.option);a.attr("value",n.value).text(n.text),r.append(a)})),h(o,(function(e,t){c.append(t)})),c.val(e.value),e.bootstrap<5&&c.removeClass("form-select").addClass("form-control");break;case"checkbox":let n=Array.isArray(e.value)?e.value:[e.value];if(u=e.inputOptions||[],!u.length)throw new Error('prompt with "inputType" set to "checkbox" requires at least one option');c=t('<div class="bootbox-checkbox-list"></div>'),h(u,(function(o,r){if(r.value===i||r.text===i)throw new Error('each option needs a "value" property and a "text" property');let a=t(s.inputs[e.inputType]);a.find("input").attr("value",r.value),a.find("label").append("\n"+r.text),h(n,(function(e,t){t===r.value&&a.find("input").prop("checked",!0)})),c.append(a)}));break;case"radio":if(e.value!==i&&Array.isArray(e.value))throw new Error('prompt with "inputType" set to "radio" requires a single, non-array value for "value"');if(u=e.inputOptions||[],!u.length)throw new Error('prompt with "inputType" set to "radio" requires at least one option');c=t('<div class="bootbox-radiobutton-list"></div>');let r=!0;h(u,(function(o,n){if(n.value===i||n.text===i)throw new Error('each option needs a "value" property and a "text" property');let a=t(s.inputs[e.inputType]);a.find("input").attr("value",n.value),a.find("label").append("\n"+n.text),e.value!==i&&n.value===e.value&&(a.find("input").prop("checked",!0),r=!1),c.append(a)})),r&&c.find('input[type="radio"]').first().prop("checked",!0)}if(a.append(c),a.on("submit",(function(e){e.preventDefault(),e.stopPropagation(),n.find(".bootbox-accept").trigger("click")})),e.message&&""!==e.message.trim()){let i=t(s.promptMessage).html(e.message);a.prepend(i),e.message=a}else e.message=a;return n=o.dialog(e),n.off("shown.bs.modal",p),n.on("shown.bs.modal",(function(){c.focus()})),!0===d&&n.modal("show"),n},o})),function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery"],e):"undefined"!=typeof exports?module.exports=e(require("jquery")):e(jQuery)}((function(e){"use strict";var t,i=window.Slick||{};t=0,(i=function(i,o){var n,s=this;s.defaults={accessibility:!0,adaptiveHeight:!1,appendArrows:e(i),appendDots:e(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(t,i){return e('<button type="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,
vendor: 7,686 bytes, line 1
1sliding:!1,slideOffset:0,swipeLeft:null,swiping:!1,$list:null,touchObject:{},transformsEnabled:!1,unslicked:!1},e.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=e(i),s.$slidesCache=null,s.transformType=null,s.transitionType=null,s.visibilityChange="visibilitychange",s.windowWidth=0,s.windowTimer=null,n=e(i).data("slick")||{},s.options=e.extend({},s.defaults,o,n),s.currentSlide=s.options.initialSlide,s.originalSettings=s.options,void 0!==document.mozHidden?(s.hidden="mozHidden",s.visibilityChange="mozvisibilitychange"):void 0!==document.webkitHidden&&(s.hidden="webkitHidden",s.visibilityChange="webkitvisibilitychange"),s.autoPlay=e.proxy(s.autoPlay,s),s.autoPlayClear=e.proxy(s.autoPlayClear,s),s.autoPlayIterator=e.proxy(s.autoPlayIterator,s),s.changeSlide=e.proxy(s.changeSlide,s),s.clickHandler=e.proxy(s.clickHandler,s),s.selectHandler=e.proxy(s.selectHandler,s),s.setPosition=e.proxy(s.setPosition,s),s.swipeHandler=e.proxy(s.swipeHandler,s),s.dragHandler=e.proxy(s.dragHandler,s),s.keyHandler=e.proxy(s.keyHandler,s),s.instanceUid=t++,s.htmlExpr=/^(?:\s*(<[\w\W]+>)[^>]*)$/,s.registerBreakpoints(),s.init(!0)}).prototype.activateADA=function(){this.$slideTrack.find(".slick-active").attr({"aria-hidden":"false"}).find("a, input, button, select").attr({tabindex:"0"})},i.prototype.addSlide=i.prototype.slickAdd=function(t,i,o){var n=this;if("boolean"==typeof i)o=i,i=null;else if(i<0||i>=n.slideCount)return!1;n.unload(),"number"==typeof i?0===i&&0===n.$slides.length?e(t).appendTo(n.$slideTrack):o?e(t).insertBefore(n.$slides.eq(i)):e(t).insertAfter(n.$slides.eq(i)):!0===o?e(t).prependTo(n.$slideTrack):e(t).appendTo(n.$slideTrack),n.$slides=n.$slideTrack.children(this.options.slide),n.$slideTrack.children(this.options.slide).detach(),n.$slideTrack.append(n.$slides),n.$slides.each((function(t,i){e(i).attr("data-slick-index",t)})),n.$slidesCache=n.$slides,n.reinit()},i.prototype.animateHeight=function(){var e=this;if(1===e.options.slidesToShow&&!0===e.options.adaptiveHeight&&!1===e.options.vertical){var t=e.$slides.eq(e.currentSlide).outerHeight(!0);e.$list.animate({height:t},e.options.speed)}},i.prototype.animateSlide=function(t,i){var o={},n=this;n.animateHeight(),!0===n.options.rtl&&!1===n.options.vertical&&(t=-t),!1===n.transformsEnabled?!1===n.options.vertical?n.$slideTrack.animate({left:t},n.options.speed,n.options.easing,i):n.$slideTrack.animate({top:t},n.options.speed,n.options.easing,i):!1===n.cssTransitions?(!0===n.options.rtl&&(n.currentLeft=-n.currentLeft),e({animStart:n.currentLeft}).animate({animStart:t},{duration:n.options.speed,easing:n.options.easing,step:function(e){e=Math.ceil(e),!1===n.options.vertical?(o[n.animType]="translate("+e+"px, 0px)",n.$slideTrack.css(o)):(o[n.animType]="translate(0px,"+e+"px)",n.$slideTrack.css(o))},complete:function(){i&&i.call()}})):(n.applyTransition(),t=Math.ceil(t),!1===n.options.vertical?o[n.animType]="translate3d("+t+"px, 0px, 0px)":o[n.animType]="translate3d(0px,"+t+"px, 0px)",n.$slideTrack.css(o),i&&setTimeout((function(){n.disableTransition(),i.call()}),n.options.speed))},i.prototype.getNavTarget=function(){var t=this.options.asNavFor;return t&&null!==t&&(t=e(t).not(this.$slider)),t},i.prototype.asNavFor=function(t){var i=this.getNavTarget();null!==i&&"object"==typeof i&&i.each((function(){var i=e(this).slick("getSlick");i.unslicked||i.slideHandler(t,!0)}))},i.prototype.applyTransition=function(e){var t=this,i={};!1===t.options.fade?i[t.transitionType]=t.transformType+" "+t.options.speed+"ms "+t.options.cssEase:i[t.transitionType]="opacity "+t.options.speed+"ms "+t.options.cssEase,!1===t.options.fade?t.$slideTrack.css(i):t.$slides.eq(e).css(i)},i.prototype.autoPlay=function(){var e=this;e.autoPlayClear(),e.slideCount>e.options.slidesToShow&&(e.autoPlayTimer=setInterval(e.autoPlayIterator,e.options.autoplaySpeed))},i.prototype.autoPlayClear=function(){this.autoPlayTimer&&clearInterval(this.autoPlayTimer)},i.prototype.autoPlayIterator=function(){var e=this,t=e.currentSlide+e.options.slidesToScroll;e.paused||e.interrupted||e.focussed||(!1===e.options.infinite&&(1===e.direction&&e.currentSlide+1===e.slideCount-1?e.direction=0:0===e.direction&&(t=e.currentSlide-e.options.slidesToScroll,e.currentSlide-1==0&&(e.direction=1))),e.slideHandler(t))},i.prototype.buildArrows=function(){var t=this;!0===t.options.arrows&&(t.$prevArrow=e(t.options.prevArrow).addClass("slick-arrow"),t.$nextArrow=e(t.options.nextArrow).addClass("slick-arrow"),t.slideCount>t.options.slidesToShow?(t.$prevArrow.removeClass("slick-hidden").removeAttr("aria-hidden tabindex"),t.$nextArrow.removeClass("slick-hidden").removeAttr("aria-hidden tabindex"),t.htmlExpr.test(t.options.prevArrow)&&t.$prevArrow.prependTo(t.options.appendArrows),t.htmlExpr.test(t.options.nextArrow)&&t.$nextArrow.appendTo(t.options.appendArrows),!0!==t.options.infinite&&t.$prevArrow.addClass("slick-disabled").attr("aria-disabled","true")):t.$prevArrow.add(t.$nextArrow).addClass("slick-hidden").attr({"aria-disabled":"true",tabindex:"-1"}))},i.prototype.buildDots=function(){var t,i,o=this;if(!0===o.options.dots&&o.slideCount>o.options.slidesToShow){for(o.$slider.addClass("slick-dotted"),i=e("<ul />").addClass(o.options.dotsClass),t=0;t<=o.getDotCount();t+=1)i.append(e("<li />").append(o.options.customPaging.call(this,o,t)));o.$dots=i.appendTo(o.options.appendDots),o.$dots.find("li").first().addClass("slick-active")}},i.prototype.buildOut=function(){var t=this;t.$slides=t.$slider.children(t.options.slide+":not(.slick-cloned)").addClass("slick-slide"),t.slideCount=t.$slides.length,t.$slides.each((function(t,i){e(i).attr("data-slick-index",t).data("originalStyling",e(i).attr("style")||"")})),t.$slider.addClass("slick-slider"),t.$slideTrack=0===t.slideCount?e('<div class="slick-track"/>').appendTo(t.$slider):t.$slides.wrapAll('<div class="slick-track"/>').parent(),t.$list=t.$slideTrack.wrap('<div class="slick-list"/>').parent(),t.$slideTrack.css("opacity",0),!0!==t.options.centerMode&&!0!==t.options.swipeToSlide||(t.options.slidesToScroll=1),e("img[data-lazy]",t.$slider).not("[src]").addClass("slick-loading"),t.setupInfinite(),t.buildArrows(),t.buildDots(),t.updateDots(),t.setSlideClasses("number"==typeof t.currentSlide?t.currentSlide:0),!0===t.options.draggable&&t.$list.addClass("draggable")},i.prototype.buildRows=function(){var e,t,i,o,n,s,r,a=this;if(o=document.createDocumentFragment(),s=a.$slider.children(),a.options.rows>0){for(r=a.options.slidesPerRow*a.options.rows,n=Math.ceil(s.length/r),e=0;e<n;e++){var l=document.createElement("div");for(t=0;t<a.options.rows;t++){var c=document.createElement("div");for(i=0;i<a.options.slidesPerRow;i++){var d=e*r+(t*a.options.slidesPerRow+i);s.get(d)&&c.appendChild(s.get(d))}l.appendChild(c)}o.appendChild(l)}a.$slider.empty().append(o),a.$slider.children().children().children().css({width:100/a.options.slidesPerRow+"%",display:"inline-block"})}},i.prototype.checkResponsive=function(t,i){var o,n,s,r=this,a=!1,l=r.$slider.width(),c=window.innerWidth||e(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(o in n=null,r.breakpoints)r.breakpoints.hasOwnProperty(o)&&(!1===r.originalSettings.mobileFirst?s<r.breakpoints[o]&&(n=r.breakpoints[o]):s>r.breakpoints[o]&&(n=r.breakpoints[o]));null!==n?null!==r.activeBreakpoint?(n!==r.activeBreakpoint||i)&&(r.activeBreakpoint=n,"unsl
1ick"===r.breakpointSettings[n]?r.unslick(n):(r.options=e.extend({},r.originalSettings,r.breakpointSettings[n]),!0===t&&(r.currentSlide=r.options.initialSlide),r.refresh(t)),a=n):(r.activeBreakpoint=n,"unslick"===r.breakpointSettings[n]?r.unslick(n):(r.options=e.extend({},r.originalSettings,r.breakpointSettings[n]),!0===t&&(r.currentSlide=r.options.initialSlide),r.refresh(t)),a=n):null!==r.activeBreakpoint&&(r.activeBreakpoint=null,r.options=r.originalSettings,!0===t&&(r.currentSlide=r.options.initialSlide),r.refresh(t),a=n),t||!1===a||r.$slider.trigger("breakpoint",[r,a])}},i.prototype.changeSlide=function(t,i){var o,n,s=this,r=e(t.currentTarget);switch(r.is("a")&&t.preventDefault(),r.is("li")||(r=r.closest("li")),o=s.slideCount%s.options.slidesToScroll!=0?0:(s.slideCount-s.currentSlide)%s.options.slidesToScroll,t.data.message){case"previous":n=0===o?s.options.slidesToScroll:s.options.slidesToShow-o,s.slideCount>s.options.slidesToShow&&s.slideHandler(s.currentSlide-n,!1,i);break;case"next":n=0===o?s.options.slidesToScroll:o,s.slideCount>s.options.slidesToShow&&s.slideHandler(s.currentSlide+n,!1,i);break;case"index":var a=0===t.data.index?0:t.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(e){var t,i;if(i=0,e>(t=this.getNavigableIndexes())[t.length-1])e=t[t.length-1];else for(var o in t){if(e<t[o]){e=i;break}i=t[o]}return e},i.prototype.cleanUpEvents=function(){var t=this;t.options.dots&&null!==t.$dots&&(e("li",t.$dots).off("click.slick",t.changeSlide).off("mouseenter.slick",e.proxy(t.interrupt,t,!0)).off("mouseleave.slick",e.proxy(t.interrupt,t,!1)),!0===t.options.accessibility&&t.$dots.off("keydown.slick",t.keyHandler)),t.$slider.off("focus.slick blur.slick"),!0===t.options.arrows&&t.slideCount>t.options.slidesToShow&&(t.$prevArrow&&t.$prevArrow.off("click.slick",t.changeSlide),t.$nextArrow&&t.$nextArrow.off("click.slick",t.changeSlide),!0===t.options.accessibility&&(t.$prevArrow&&t.$prevArrow.off("keydown.slick",t.keyHandler),t.$nextArrow&&t.$nextArrow.off("keydown.slick",t.keyHandler))),t.$list.off("touchstart.slick mousedown.slick",t.swipeHandler),t.$list.off("touchmove.slick mousemove.slick",t.swipeHandler),t.$list.off("touchend.slick mouseup.slick",t.swipeHandler),t.$list.off("touchcancel.slick mouseleave.
1slick",t.swipeHandler),t.$list.off("click.slick",t.clickHandler),e(document).off(t.visibilityChange,t.visibility),t.cleanUpSlideEvents(),!0===t.options.accessibility&&t.$list.off("keydown.slick",t.keyHandler),!0===t.options.focusOnSelect&&e(t.$slideTrack).children().off("click.slick",t.selectHandler),e(window).off("orientationchange.slick.slick-"+t.instanceUid,t.orientationChange),e(window).off("resize.slick.slick-"+t.instanceUid,t.resize),e("[draggable!=true]",t.$slideTrack).off("dragstart",t.preventDefault),e(window).off("load.slick.slick-"+t.instanceUid,t.setPosition)},i.prototype.cleanUpSlideEvents=function(){var t=this;t.$list.off("mouseenter.slick",e.proxy(t.interrupt,t,!0)),t.$list.off("mouseleave.slick",e.proxy(t.interrupt,t,!1))},i.prototype.cleanUpRows=function(){var e,t=this;t.options.rows>0&&((e=t.$slides.children().children()).removeAttr("style"),t.$slider.empty().append(e))},i.prototype.clickHandler=function(e){!1===this.shouldClick&&(e.stopImmediatePropagation(),e.stopPropagation(),e.preventDefault())},i.prototype.destroy=function(t){var i=this;i.autoPlayClear(),i.touchObject={},i.cleanUpEvents(),e(".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(){e(this).attr("style",e(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,t||i.$slider.trigger("destroy",[i])},i.prototype.disableTransition=function(e){var t=this,i={};i[t.transitionType]="",!1===t.options.fade?t.$slideTrack.css(i):t.$slides.eq(e).css(i)},i.prototype.fadeSlide=function(e,t){var i=this;!1===i.cssTransitions?(i.$slides.eq(e).css({zIndex:i.options.zIndex}),i.$slides.eq(e).animate({opacity:1},i.options.speed,i.options.easing,t)):(i.applyTransition(e),i.$slides.eq(e).css({opacity:1,zIndex:i.options.zIndex}),t&&setTimeout((function(){i.disableTransition(e),t.call()}),i.options.speed))},i.prototype.fadeSlideOut=function(e){var t=this;!1===t.cssTransitions?t.$slides.eq(e).animate({opacity:0,zIndex:t.options.zIndex-2},t.options.speed,t.options.easing):(t.applyTransition(e),t.$slides.eq(e).css({opacity:0,zIndex:t.options.zIndex-2}))},i.prototype.filterSlides=i.prototype.slickFilter=function(e){var t=this;null!==e&&(t.$slidesCache=t.$slides,t.unload(),t.$slideTrack.children(this.options.slide).detach(),t.$slidesCache.filter(e).appendTo(t.$slideTrack),t.reinit())},i.prototype.focusHandler=function(){var t=this;t.$slider.off("focus.slick blur.slick").on("focus.slick","*",(function(i){var o=e(this);setTimeout((function(){t.options.pauseOnFocus&&o.is(":focus")&&(t.focussed=!0,t.autoPlay())}),0)})).on("blur.slick","*",(function(i){e(this);t.options.pauseOnFocus&&(t.focussed=!1,t.autoPlay())}))},i.prototype.getCurrent=i.prototype.slickCurrentSlide=function(){return this.currentSlide},i.prototype.getDotCount=function(){var e=this,t=0,i=0,o=0;if(!0===e.options.infinite)if(e.slideCount<=e.options.slidesToShow)++o;else for(;t<e.slideCount;)++o,t=i+e.options.slidesToScroll,i+=e.options.slidesToScroll<=e.options.slidesToShow?e.options.slidesToScroll:e.options.slidesToShow;else if(!0===e.options.centerMode)o=e.slideCount;else if(e.options.asNavFor)for(;t<e.slideCount;)++o,t=i+e.options.slidesToScroll,i+=e.options.slidesToScroll<=e.options.slidesToShow?e.options.slidesToScroll:e.options.slidesToShow;else o=1+Math.ceil((e.slideCount-e.options.slidesToShow)/e.options.slidesToScroll);return o-1},i.prototype.getLeft=function(e){var t,i,o,n,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,n=-1,!0===s.options.vertical&&!0===s.options.centerMode&&(2===s.options.slidesToShow?n=-1.5:1===s.options.slidesToShow&&(n=-2)),r=i*s.options.slidesToShow*n),s.slideCount%s.options.slidesToScroll!=0&&e+s.options.slidesToScroll>s.slideCount&&s.slideCount>s.options.slidesToShow&&(e>s.slideCount?(s.slideOffset=(s.options.slidesToShow-(e-s.slideCount))*s.slideWidth*-1,r=(s.options.slidesToShow-(e-s.slideCount))*i*-1):(s.slideOffset=s.slideCount%s.options.slidesToScroll*s.slideWidth*-1,r=s.slideCount%s.options.slidesToScroll*i*-1))):e+s.options.slidesToShow>s.slideCount&&(s.slideOffset=(e+s.options.slidesToShow-s.slideCount)*s.slideWidth,r=(e+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)),t=!1===s.options.vertical?e*s.slideWidth*-1+s.slideOffset:e*i*-1+r,!0===s.options.variableWidth&&(o=s.slideCount<=s.options.slidesToShow||!1===s.options.infinite?s.$slideTrack.children(".slick-slide").eq(e):s.$slideTrack.children(".slick-slide").eq(e+s.options.slidesToShow),t=!0===s.options.rtl?o[0]?-1*(s.$slideTrack.width()-o[0].offsetLeft-o.width()):0:o[0]?-1*o[0].offsetLeft:0,!0===s.options.centerMode&&(o=s.slideCount<=s.options.slidesToShow||!1===s.options.infinite?s.$slideTrack.children(".slick-slide").eq(e):s.$slideTrack.children(".slick-slide").eq(e+s.options.slidesToShow+1),t=!0===s.options.rtl?o[0]?-1*(s.$slideTrack.width()-o[0].offsetLeft-o.width()):0:o[0]?-1*o[0].offsetLeft:0,t+=(s.$list.width()-o.outerWidth())/2)),t},i.prototype.getOption=i.prototype.slickGetOption=function(e){return this.options[e]},i.prototype.getNavigableIndexes=function(){var e,t=this,i=0,o=0,n=[];for(!1===t.options.infinite?e=t.slideCount:(i=-1*t.options.slidesToScroll,o=-1*t.options.slidesToScroll,e=2*t.slideCount);i<e;)n.push(i),i=o+t.options.slidesToScroll,o+=t.options.slidesToScroll<=t.options.slidesToShow?t.options.slidesToScroll:t.options.slidesToShow;return n},i.prototype.getSlick=function(){return this},i.prototype.getSlideCount=function(){var t,i,o,n=this;return o=!0===n.options.centerMode?Math.floor(n.$list.width()/2):0,i=-1*n.swipeLeft+o,!0===n.options.swipeToSlide?(n.$slideTrack.find(".slick-slide").each((function(o,s){var r,a;if(r=e(s).outerWidth(),a=s.offsetLeft,!0!==n.options.centerMode&&(a+=r/2),i<a+r)return t=s,!1})),Math.abs(e(t).attr("data-slick-index")-n.currentSlide)||1):n.options.slidesToScroll},i.prototype.goTo=i.prototype.slickGoTo=function(e,t){this.changeSlide({data:{message:"index",index:
1parseInt(e)}},t)},i.prototype.init=function(t){var i=this;e(i.$slider).hasClass("slick-initialized")||(e(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()),t&&i.$slider.trigger("init",[i]),!0===i.options.accessibility&&i.initADA(),i.options.autoplay&&(i.paused=!1,i.autoPlay())},i.prototype.initADA=function(){var t=this,i=Math.ceil(t.slideCount/t.options.slidesToShow),o=t.getNavigableIndexes().filter((function(e){return e>=0&&e<t.slideCount}));t.$slides.add(t.$slideTrack.find(".slick-cloned")).attr({"aria-hidden":"true",tabindex:"-1"}).find("a, input, button, select").attr({tabindex:"-1"}),null!==t.$dots&&(t.$slides.not(t.$slideTrack.find(".slick-cloned")).each((function(i){var n=o.indexOf(i);if(e(this).attr({role:"tabpanel",id:"slick-slide"+t.instanceUid+i,tabindex:-1}),-1!==n){var s="slick-slide-control"+t.instanceUid+n;e("#"+s).length&&e(this).attr({"aria-describedby":s})}})),t.$dots.attr("role","tablist").find("li").each((function(n){var s=o[n];e(this).attr({role:"presentation"}),e(this).find("button").first().attr({role:"tab",id:"slick-slide-control"+t.instanceUid+n,"aria-controls":"slick-slide"+t.instanceUid+s,"aria-label":n+1+" of "+i,"aria-selected":null,tabindex:"-1"})})).eq(t.currentSlide).find("button").attr({"aria-selected":"true",tabindex:"0"}).end());for(var n=t.currentSlide,s=n+t.options.slidesToShow;n<s;n++)t.options.focusOnChange?t.$slides.eq(n).attr({tabindex:"0"}):t.$slides.eq(n).removeAttr("tabindex");t.activateADA()},i.prototype.initArrowEvents=function(){var e=this;!0===e.options.arrows&&e.slideCount>e.options.slidesToShow&&(e.$prevArrow.off("click.slick").on("click.slick",{message:"previous"},e.changeSlide),e.$nextArrow.off("click.slick").on("click.slick",{message:"next"},e.changeSlide),!0===e.options.accessibility&&(e.$prevArrow.on("keydown.slick",e.keyHandler),e.$nextArrow.on("keydown.slick",e.keyHandler)))},i.prototype.initDotEvents=function(){var t=this;!0===t.options.dots&&t.slideCount>t.options.slidesToShow&&(e("li",t.$dots).on("click.slick",{message:"index"},t.changeSlide),!0===t.options.accessibility&&t.$dots.on("keydown.slick",t.keyHandler)),!0===t.options.dots&&!0===t.options.pauseOnDotsHover&&t.slideCount>t.options.slidesToShow&&e("li",t.$dots).on("mouseenter.slick",e.proxy(t.interrupt,t,!0)).on("mouseleave.slick",e.proxy(t.interrupt,t,!1))},i.prototype.initSlideEvents=function(){var t=this;t.options.pauseOnHover&&(t.$list.on("mouseenter.slick",e.proxy(t.interrupt,t,!0)),t.$list.on("mouseleave.slick",e.proxy(t.interrupt,t,!1)))},i.prototype.initializeEvents=function(){var t=this;t.initArrowEvents(),t.initDotEvents(),t.initSlideEvents(),t.$list.on("touchstart.slick mousedown.slick",{action:"start"},t.swipeHandler),t.$list.on("touchmove.slick mousemove.slick",{action:"move"},t.swipeHandler),t.$list.on("touchend.slick mouseup.slick",{action:"end"}
1,t.swipeHandler),t.$list.on("touchcancel.slick mouseleave.slick",{action:"end"},t.swipeHandler),t.$list.on("click.slick",t.clickHandler),e(document).on(t.visibilityChange,e.proxy(t.visibility,t)),!0===t.options.accessibility&&t.$list.on("keydown.slick",t.keyHandler),!0===t.options.focusOnSelect&&e(t.$slideTrack).children().on("click.slick",t.selectHandler),e(window).on("orientationchange.slick.slick-"+t.instanceUid,e.proxy(t.orientationChange,t)),e(window).on("resize.slick.slick-"+t.instanceUid,e.proxy(t.resize,t)),e("[draggable!=true]",t.$slideTrack).on("dragstart",t.preventDefault),e(window).on("load.slick.slick-"+t.instanceUid,t.setPosition),e(t.setPosition)},i.prototype.initUI=function(){var e=this;!0===e.options.arrows&&e.slideCount>e.options.slidesToShow&&(e.$prevArrow.show(),e.$nextArrow.show()),!0===e.options.dots&&e.slideCount>e.options.slidesToShow&&e.$dots.show()},i.prototype.keyHandler=function(e){var t=this;e.target.tagName.match("TEXTAREA|INPUT|SELECT")||(37===e.keyCode&&!0===t.options.accessibility?t.changeSlide({data:{message:!0===t.options.rtl?"next":"previous"}}):39===e.keyCode&&!0===t.options.accessibility&&t.changeSlide({data:{message:!0===t.options.rtl?"previous":"next"}}))},i.prototype.lazyLoad=function(){var t,i,o,n=this;function s(t){e("img[data-lazy]",t).each((function(){var t=e(this),i=e(this).attr("data-lazy"),o=e(this).attr("data-srcset"),s=e(this).attr("data-sizes")||n.$slider.attr("data-sizes"),r=document.createElement("img");r.onload=function(){t.animate({opacity:0}
vendor: 7,097 bytes, line 1
1,100,(function(){o&&(t.attr("srcset",o),s&&t.attr("sizes",s)),t.attr("src",i).animate({opacity:1},200,(function(){t.removeAttr("data-lazy data-srcset data-sizes").removeClass("slick-loading")})),n.$slider.trigger("lazyLoaded",[n,t,i])}))},r.onerror=function(){t.removeAttr("data-lazy").removeClass("slick-loading").addClass("slick-lazyload-error"),n.$slider.trigger("lazyLoadError",[n,t,i])},r.src=i}))}if(!0===n.options.centerMode?!0===n.options.infinite?o=(i=n.currentSlide+(n.options.slidesToShow/2+1))+n.options.slidesToShow+2:(i=Math.max(0,n.currentSlide-(n.options.slidesToShow/2+1)),o=n.options.slidesToShow/2+1+2+n.currentSlide):(i=n.options.infinite?n.options.slidesToShow+n.currentSlide:n.currentSlide,o=Math.ceil(i+n.options.slidesToShow),!0===n.options.fade&&(i>0&&i--,o<=n.slideCount&&o++)),t=n.$slider.find(".slick-slide").slice(i,o),"anticipated"===n.options.lazyLoad)for(var r=i-1,a=o,l=n.$slider.find(".slick-slide"),c=0;c<n.options.slidesToScroll;c++)r<0&&(r=n.slideCount-1),t=(t=t.add(l.eq(r))).add(l.eq(a)),r--,a++;s(t),n.slideCount<=n.options.slidesToShow?s(n.$slider.find(".slick-slide")):n.currentSlide>=n.slideCount-n.options.slidesToShow?s(n.$slider.find(".slick-cloned").slice(0,n.options.slidesToShow)):0===n.currentSlide&&s(n.$slider.find(".slick-cloned").slice(-1*n.options.slidesToShow))},i.prototype.loadSlider=function(){var e=this;e.setPosition(),e.$slideTrack.css({opacity:1}),e.$slider.removeClass("slick-loading"),e.initUI(),"progressive"===e.options.lazyLoad&&e.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 e=this;e.autoPlay(),e.options.autoplay=!0,e.paused=!1,e.focussed=!1,e.interrupted=!1},i.prototype.postSlide=function(t){var i=this;i.unslicked||(i.$slider.trigger("afterChange",[i,t]),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&&e(i.$slides.get(i.currentSlide)).attr("tabindex",0).focus()))},i.prototype.prev=i.prototype.slickPrev=function(){this.changeSlide({data:{message:"previous"}})},i.prototype.preventDefault=function(e){e.preventDefault()},i.prototype.progressiveLazyLoad=function(t){t=t||1;var i,o,n,s,r,a=this,l=e("img[data-lazy]",a.$slider);l.length?(i=l.first(),o=i.attr("data-lazy"),n=i.attr("data-srcset"),s=i.attr("data-sizes")||a.$slider.attr("data-sizes"),(r=document.createElement("img")).onload=function(){n&&(i.attr("srcset",n),s&&i.attr("sizes",s)),i.attr("src",o).removeAttr("data-lazy data-srcset data-sizes").removeClass("slick-loading"),!0===a.options.adaptiveHeight&&a.setPosition(),a.$slider.trigger("lazyLoaded",[a,i,o]),a.progressiveLazyLoad()},r.onerror=function(){t<3?setTimeout((function(){a.progressiveLazyLoad(t+1)}),500):(i.removeAttr("data-lazy").removeClass("slick-loading").addClass("slick-lazyload-error"),a.$slider.trigger("lazyLoadError",[a,i,o]),a.progressiveLazyLoad())},r.src=o):a.$slider.trigger("allImagesLoaded",[a])},i.prototype.refresh=function(t){var i,o,n=this;o=n.slideCount-n.options.slidesToShow,!n.options.infinite&&n.currentSlide>o&&(n.currentSlide=o),n.slideCount<=n.options.slidesToShow&&(n.currentSlide=0),i=n.currentSlide,n.destroy(!0),e.extend(n,n.initials,{currentSlide:i}),n.init(),t||n.changeSlide({data:{message:"index",index:i}},!1)},i.prototype.registerBreakpoints=function(){var t,i,o,n=this,s=n.options.responsive||null;if("array"===e.type(s)&&s.length){for(t in n.respondTo=n.options.respondTo||"window",s)if(o=n.breakpoints.length-1,s.hasOwnProperty(t)){for(i=s[t].breakpoint;o>=0;)n.breakpoints[o]&&n.breakpoints[o]===i&&n.breakpoints.splice(o,1),o--;n.breakpoints.push(i),n.breakpointSettings[i]=s[t].settings}n.breakpoints.sort((function(e,t){return n.options.mobileFirst?e-t:t-e}))}},i.prototype.reinit=function(){var t=this;t.$slides=t.$slideTrack.children(t.options.slide).addClass("slick-slide"),t.slideCount=t.$slides.length,t.currentSlide>=t.slideCount&&0!==t.currentSlide&&(t.currentSlide=t.currentSlide-t.options.slidesToScroll),t.slideCount<=t.options.slidesToShow&&(t.currentSlide=0),t.registerBreakpoints(),t.setProps(),t.setupInfinite(),t.buildArrows(),t.updateArrows(),t.initArrowEvents(),t.buildDots(),t.updateDots(),t.initDotEvents(),t.cleanUpSlideEvents(),t.initSlideEvents(),t.checkResponsive(!1,!0),!0===t.options.focusOnSelect&&e(t.$slideTrack).children().on("click.slick",t.selectHandler),t.setSlideClasses("number"==typeof t.currentSlide?t.currentSlide:0),t.setPosition(),t.focusHandler(),t.paused=!t.options.autoplay,t.autoPlay(),t.$slider.trigger("reInit",[t])},i.prototype.resize=function(){var t=this;e(window).width()!==t.windowWidth&&(clearTimeout(t.windowDelay),t.windowDelay=window.setTimeout((function(){t.windowWidth=e(window).width(),t.checkResponsive(),t.unslicked||t.setPosition()}),50))},i.prototype.removeSlide=i.prototype.slickRemove=function(e,t,i){var o=this;if(e="boolean"==typeof e?!0===(t=e)?0:o.slideCount-1:!0===t?--e:e,o.slideCount<1||e<0||e>o.slideCount-1)return!1;o.unload(),!0===i?o.$slideTrack.children().remove():o.$slideTrack.children(this.options.slide).eq(e).remove(),o.$slides=o.$slideTrack.children(this.options.slide),o.$slideTrack.children(this.options.slide).detach(),o.$slideTrack.append(o.$slides),o.$slidesCache=o.$slides,o.reinit()},i.prototype.setCSS=function(e){var t,i,o=this,n={};!0===o.options.rtl&&(e=-e),t="left"==o.positionProp?Math.ceil(e)+"px":"0px",i="top"==o.positionProp?Math.ceil(e)+"px":"0px",n[o.positionProp]=e,!1===o.transformsEnabled?o.$slideTrack.css(n):(n={},!1===o.cssTransitions?(n[o.animType]="translate("+t+", "+i+")",o.$slideTrack.css(n)):(n[o.animType]="translate3d("+t+", "+i+", 0px)",o.$slideTrack.css(n)))},i.prototype.setDimensions=function(){var e=this;!1===e.options.vertical?!0===e.options.centerMode&&e.$list.css({padding:"0px "+e.options.centerPadding}):(e.$list.height(e.$slides.first().outerHeight(!0)*e.options.slidesToShow),!0===e.options.centerMode&&e.$list.css({padding:e.options.centerPadding+" 0px"})),e.listWidth=e.$list.width(),e.listHeight=e.$list.height(),!1===e.options.vertical&&!1===e.options.variableWidth?(e.slideWidth=Math.ceil(e.listWidth/e.options.slidesToShow),e.$slideTrack.width(Math.ceil(e.slideWidth*e.$slideTrack.children(".slick-slide").length))):!0===e.options.variableWidth?e.$slideTrack.width(5e3*e.slideCount):(e.slideWidth=Math.ceil(e.listWidth),e.$slideTrack.height(Math.ceil(e.$slides.first().outerHeight(!0)*e.$slideTrack.children(".slick-slide").length)));var t=e.$slides.first().outerWidth(!0)-e.$slides.first().width();!1===e.options.variableWidth&&e.$slideTrack.children(".slick-slide").width(e.slideWidth-t)},i.prototype.setFade=function(){var t,i=this;i.$slides.each((function(o,n){t=i.slideWidth*o*-1,!0===i.options.rtl?e(n).css({position:"relative",right:t,top:0,zIndex:i.options.zIndex-2,opacity:0}
1):e(n).css({position:"relative",left:t,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 e=this;if(1===e.options.slidesToShow&&!0===e.options.adaptiveHeight&&!1===e.options.vertical){var t=e.$slides.eq(e.currentSlide).outerHeight(!0);e.$list.css("height",t)}},i.prototype.setOption=i.prototype.slickSetOption=function(){var t,i,o,n,s,r=this,a=!1;if("object"===e.type(arguments[0])?(o=arguments[0],a=arguments[1],s="multiple"):"string"===e.type(arguments[0])&&(o=arguments[0],n=arguments[1],a=arguments[2],"responsive"===arguments[0]&&"array"===e.type(arguments[1])?s="responsive":void 0!==arguments[1]&&(s="single")),"single"===s)r.options[o]=n;else if("multiple"===s)e.each(o,(function(e,t){r.options[e]=t}));else if("responsive"===s)for(i in n)if("array"!==e.type(r.options.responsive))r.options.responsive=[n[i]];else{for(t=r.options.responsive.length-1;t>=0;)r.options.responsive[t].breakpoint===n[i].breakpoint&&r.options.responsive.splice(t,1),t--;r.options.responsive.push(n[i])}a&&(r.unload(),r.reinit())},i.prototype.setPosition=function(){var e=this;e.setDimensions(),e.setHeight(),!1===e.options.fade?e.setCSS(e.getLeft(e.currentSlide)):e.setFade(),e.$slider.trigger("setPosition",[e])},i.prototype.setProps=function(){var e=this,t=document.body.style;e.positionProp=!0===e.options.vertical?"top":"left","top"===e.positionProp?e.$slider.addClass("slick-vertical"):e.$slider.removeClass("slick-vertical"),void 0===t.WebkitTransition&&void 0===t.MozTransition&&void 0===t.msTransition||!0===e.options.useCSS&&(e.cssTransitions=!0),e.options.fade&&("number"==typeof e.options.zIndex?e.options.zIndex<3&&(e.options.zIndex=3):e.options.zIndex=e.defaults.zIndex),void 0!==t.OTransform&&(e.animType="OTransform",e.transformType="-o-transform",e.transitionType="OTransition",void 0===t.perspectiveProperty&&void 0===t.webkitPerspective&&(e.animType=!1)),void 0!==t.MozTransform&&(e.animType="MozTransform",e.transformType="-moz-transform",e.transitionType="MozTransition",void 0===t.perspectiveProperty&&void 0===t.MozPerspective&&(e.animType=!1)),void 0!==t.webkitTransform&&(e.animType="webkitTransform",e.transformType="-webkit-transform",e.transitionType="webkitTransition",void 0===t.perspectiveProperty&&void 0===t.webkitPerspective&&(e.animType=!1)),void 0!==t.msTransform&&(e.animType="msTransform",e.transformType="-ms-transform",e.transitionType="msTransition",void 0===t.msTransform&&(e.animType=!1)),void 0!==t.transform&&!1!==e.animType&&(e.animType="transform",e.transformType="transform",e.transitionType="transition"),e.transformsEnabled=e.options.useTransform&&null!==e.animType&&!1!==e.animType},i.prototype.setSlideClasses=function(e){var t,i,o,n,s=this;if(i=s.$slider.find(".slick-slide").removeClass("slick-active slick-center slick-current").attr("aria-hidden","true"),s.$slides.eq(e).addClass("slick-current"),!0===s.options.centerMode){var r=s.options.slidesToShow%2==0?1:0;t=Math.floor(s.options.slidesToShow/2),!0===s.options.infinite&&(e>=t&&e<=s.slideCount-1-t?s.$slides.slice(e-t+r,e+t+1).addClass("slick-active").attr("aria-hidden","false"):(o=s.options.slidesToShow+e,i.slice(o-t+1+r,o+t+2).addClass("slick-active").attr("aria-hidden","false")),0===e?i.eq(s.options.slidesToShow+s.slideCount+1).addClass("slick-center"):e===s.slideCount-1&&i.eq(s.options.slidesToShow).addClass("slick-center")),s.$slides.eq(e).addClass("slick-center")}else e>=0&&e<=s.slideCount-s.options.slidesToShow?s.$slides.slice(e,e+s.options.slidesToShow).addClass("slick-active").attr("aria-hidden","false"):i.length<=s.options.slidesToShow?i.addClass("slick-active").attr("aria-hidden","false"):(n=s.slideCount%s.options.slidesToShow,o=!0===s.options.infinite?s.options.slidesToShow+e:e,s.options.slidesToShow==s.options.slidesToScroll&&s.slideCount-e<s.options.slidesToShow?i.slice(o-(s.options.slidesToShow-n),o+n).addClass("slick-active").attr("aria-hidden","false"):i.slice(o,o+s.options.slidesToShow).addClass("slick-active").attr("aria-hidden","false"));"ondemand"!==s.options.lazyLoad&&"anticipated"!==s.options.lazyLoad||s.lazyLoad()},i.prototype.setupInfinite=function(){var t,i,o,n=this;if(!0===n.options.fade&&(n.options.centerMode=!1),!0===n.options.infinite&&!1===n.options.fade&&(i=null,n.slideCount>n.options.slidesToShow)){for(o=!0===n.options.centerMode?n.options.slidesToShow+1:n.options.slidesToShow,t=n.slideCount;t>n.slideCount-o;t-=1)i=t-1,e(n.$slides[i]).clone(!0).attr("id","").attr("data-slick-index",i-n.slideCount).prependTo(n.$slideTrack).addClass("slick-cloned");for(t=0;t<o+n.slideCount;t+=1)i=t,e(n.$slides[i]).clone(!0).attr("id","").attr("data-slick-index",i+n.slideCount).appendTo(n.$slideTrack).addClass("slick-cloned");n.$slideTrack.find(".slick-cloned").find("[id]").each((function(){e(this).attr("id","")}))}},i.prototype.interrupt=function(e){e||this.autoPlay(),this.interrupted=e},i.prototype.selectHandler=function(t){var i=this,o=e(t.target).is(".slick-slide")?e(t.target):e(t.target).parents(".slick-slide"),n=parseInt(o.attr("data-slick-index"));
1n||(n=0),i.slideCount<=i.options.slidesToShow?i.slideHandler(n,!1,!0):i.slideHandler(n)},i.prototype.slideHandler=function(e,t,i){var o,n,s,r,a,l,c=this;if(t=t||!1,!(!0===c.animating&&!0===c.options.waitForAnimate||!0===c.options.fade&&c.currentSlide===e))if(!1===t&&c.asNavFor(e),o=e,a=c.getLeft(o),r=c.getLeft(c.currentSlide),c.currentLeft=null===c.swipeLeft?r:c.swipeLeft,!1===c.options.infinite&&!1===c.options.centerMode&&(e<0||e>c.getDotCount()*c.options.slidesToScroll))!1===c.options.fade&&(o=c.currentSlide,!0!==i&&c.slideCount>c.options.slidesToShow?c.animateSlide(r,(function(){c.postSlide(o)})):c.postSlide(o));else if(!1===c.options.infinite&&!0===c.options.centerMode&&(e<0||e>c.slideCount-c.options.slidesToScroll))!1===c.options.fade&&(o=c.currentSlide,!0!==i&&c.slideCount>c.options.slidesToShow?c.animateSlide(r,(function(){c.postSlide(o)})):c.postSlide(o));else{if(c.options.autoplay&&clearInterval(c.autoPlayTimer),n=o<0?c.slideCount%c.options.slidesToScroll!=0?c.slideCount-c.slideCount%c.options.slidesToScroll:c.slideCount+o:o>=c.slideCount?c.slideCount%c.options.slidesToScroll!=0?0:o-c.slideCount:o,c.animating=!0,c.$slider.trigger("beforeChange",[c,c.currentSlide,n]),s=c.currentSlide,c.currentSlide=n,c.setSlideClasses(c.currentSlide),c.options.asNavFor&&(l=(l=c.getNavTarget()).slick("getSlick")).slideCount<=l.options.slidesToShow&&l.setSlideClasses(c.currentSlide),c.updateDots(),c.updateArrows(),!0===c.options.fade)return!0!==i?(c.fadeSlideOut(s),c.fadeSlide(n,(function(){c.postSlide(n)}))):c.postSlide(n),void c.animateHeight();!0!==i&&c.slideCount>c.options.slidesToShow?c.animateSlide(a,(function(){c.postSlide(n)})):c.postSlide(n)}},i.prototype.startLoad=function(){var e=this;!0===e.options.arrows&&e.slideCount>e.options.slidesToShow&&(e.$prevArrow.hide(),e.$nextArrow.hide()),!0===e.options.dots&&e.slideCount>e.options.slidesToShow&&e.$dots.hide(),e.$slider.addClass("slick-loading")},i.prototype.swipeDirection=function(){var e,t,i,o,n=this;return e=n.touchObject.startX-n.touchObject.curX,t=n.touchObject.startY-n.touchObject.curY,i=Math.atan2(t,e),(o=Math.round(180*i/Math.PI))<0&&(o=360-Math.abs(o)),o<=45&&o>=0||o<=360&&o>=315?!1===n.options.rtl?"left":"right":o>=135&&o<=225?!1===n.options.rtl?"right":"left":!0===n.options.verticalSwiping?o>=35&&o<=135?"down":"up":"vertical"},i.prototype.swipeEnd=function(e){var t,i,o=this;if(o.dragging=!1,o.swiping=!1,o.scrolling)return o.scrolling=!1,!1;if(o.interrupted=!1,o.shouldClick=!(o.touchObject.swipeLength>10),void 0===o.touchObject.curX)return!1;if(!0===o.touchObject.edgeHit&&o.$slider.trigger("edge",[o,o.swipeDirection()]),o.touchObject.swipeLength>=o.touchObject.minSwipe){switch(i=o.swipeDirection()){case"left":case"down":t=o.options.swipeToSlide?o.checkNavigable(o.currentSlide+o.getSlideCount()):o.currentSlide+o.getSlideCount(),o.currentDirection=0;break;case"right":case"up":t=o.options.swipeToSlide?o.checkNavigable(o.currentSlide-o.getSlideCount()):o.currentSlide-o.getSlideCount(),o.currentDirection=1}"vertical"!=i&&(o.slideHandler(t),o.touchObject={},o.$slider.trigger("swipe",[o,i]))}else o.touchObject.startX!==o.touchObject.curX&&(o.slideHandler(o.currentSlide),o.touchObject={})},i.prototype.swipeHandler=function(e){var t=this;if(!(!1===t.options.swipe||"ontouchend"in document&&!1===t.options.swipe||!1===t.options.draggable&&-1!==e.type.indexOf("mouse")))switch(t.touchObject.fingerCount=e.originalEvent&&void 0!==e.originalEvent.touches?e.originalEvent.touches.length:1,t.touchObject.minSwipe=t.listWidth/t.options.touchThreshold,!0===t.options.verticalSwiping&&(t.touchObject.minSwipe=t.listHeight/t.options.touchThreshold),e.data.action){case"start":t.swipeStart(e);break;case"move":t.swipeMove(e);break;case"end":t.swipeEnd(e)}},i.prototype.swipeMove=function(e){var t,i,o,n,s,r,a=this;return s=void 0!==e.originalEvent?e.originalEvent.touches:null,!(!a.dragging||a.scrolling||s&&1!==s.length)&&(t=a.getLeft(a.currentSlide),a.touchObject.curX=void 0!==s?s[0].pageX:e.clientX,a.touchObject.curY=void 0!==s?s[0].pageY:e.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!==e.originalEvent&&a.touchObject.swipeLength>4&&(a.swiping=!0,e.preventDefault()),n=(!1===a.options.rtl?1:-1)*(a.touchObject.curX>a.touchObject.startX?1:-1),!0===a.options.verticalSwiping&&(n=a.touchObject.curY>a.touchObject.startY?1:-1),o=a.touchObject.swipeLength,a.touchObject.edgeHit=!1,!1===a.options.infinite&&(0===a.currentSlide&&"right"===i||a.currentSlide>=a.getDotCount()&&"left"===i)&&(o=a.touchObject.swipeLength*a.options.edgeFriction,a.touchObject.edgeHit=!0),!1===a.options.vertical?a.swipeLeft=t+o*n:a.swipeLeft=t+o*(a.$list.height()/a.listWidth)*n,!0===a.options.verticalSwiping&&(a.swipeLeft=t+o*n),!0!==a.options.fade&&!1!==a.options.touchMove&&(!0===a.animating?(a.swipeLeft=null,!1):void a.setCSS(a.swipeLeft))))},i.prototype.swipeStart=function(e){var t,i=this;if(i.interrupted=!0,1!==i.touchObject.fingerCount||i.slideCount<=i.options.slidesToShow)return i.touchObject={},!1;void 0!==e.originalEvent&&void 0!==e.originalEvent.touches&&(t=e.originalEvent.touches[0]),i.touchObject.startX=i.touchObject.curX=void 0!==t?t.pageX:e.clientX,i.touchObject.startY=i.touchObject.curY=void 0!==t?t.pageY:e.clientY,i.dragging=!0},i.prototype.unfilterSlides=i.prototype.slickUnfilter=function(){var e=this;null!==e.$slidesCache&&(e.unload(),e.$slideTrack.children(this.options.slide).detach(),e.$slidesCache.appendTo(e.$slideTrack),e.reinit())},i.prototype.unload=function(){var t=this;e(".slick-cloned",t.$slider).remove(),t.$dots&&t.$dots.remove(),t.$prevArrow&&t.htmlExpr.test(t.options.prevArrow)&&t.$prevArrow.remove(),t.$nextArrow&&t.htmlExpr.test(t.options.nextArrow)&&t.$nextArrow.remove(),t.$slides.removeClass("slick-slide slick-active slick-visible slick-current").attr("aria-hidden","true").css("width","")}
1,i.prototype.unslick=function(e){var t=this;t.$slider.trigger("unslick",[t,e]),t.destroy()},i.prototype.updateArrows=function(){var e=this;Math.floor(e.options.slidesToShow/2),!0===e.options.arrows&&e.slideCount>e.options.slidesToShow&&!e.options.infinite&&(e.$prevArrow.removeClass("slick-disabled").attr("aria-disabled","false"),e.$nextArrow.removeClass("slick-disabled").attr("aria-disabled","false"),0===e.currentSlide?(e.$prevArrow.addClass("slick-disabled").attr("aria-disabled","true"),e.$nextArrow.removeClass("slick-disabled").attr("aria-disabled","false")):(e.currentSlide>=e.slideCount-e.options.slidesToShow&&!1===e.options.centerMode||e.currentSlide>=e.slideCount-1&&!0===e.options.centerMode)&&(e.$nextArrow.addClass("slick-disabled").attr("aria-disabled","true"),e.$prevArrow.removeClass("slick-disabled").attr("aria-disabled","false")))},i.prototype.updateDots=function(){var e=this;null!==e.$dots&&(e.$dots.find("li").removeClass("slick-active").end(),e.$dots.find("li").eq(Math.floor(e.currentSlide/e.options.slidesToScroll)).addClass("slick-active"))},i.prototype.visibility=function(){var e=this;e.options.autoplay&&(document[e.hidden]?e.interrupted=!0:e.interrupted=!1)},e.fn.slick=function(){var e,t,o=this,n=arguments[0],s=Array.prototype.slice.call(arguments,1),r=o.length;for(e=0;e<r;e++)if("object"==typeof n||void 0===n?o[e].slick=new i(o[e],n):t=o[e].slick[n].apply(o[e].slick,s),void 0!==t)return t;return o}}));

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.