PageSourceSearch

https://www.rapidmail.fr/dist/libraries.js?id=709f7ff5f958e9f055af

js rapidmail.fr collected 2026-10-08 02:05:29 UTC 317,295 bytes, 1 lines download raw bytes

1!function(e){var t={};function i(s){if(t[s])return t[s].exports;var n=t[s]={i:s,l:!1,exports:{}};return e[s].call(n.exports,n,n.exports,i),n.l=!0,n.exports}i.m=e,i.c=t,i.d=function(e,t,s){i.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:s})},i.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.t=function(e,t){if(1&t&&(e=i(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var s=Object.create(null);if(i.r(s),Object.defineProperty(s,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var n in e)i.d(s,n,function(t){return e[t]}.bind(null,n));return s},i.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(t,"a",t),t},i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},i.p="/",i(i.s=1)}({1:function(e,t,i){e.exports=i("bcMo")},"9tPo":function(e,t){e.exports=function(e){var t="undefined"!=typeof window&&window.location;if(!t)throw new Error("fixUrls requires window.location");if(!e||"string"!=typeof e)return e;var i=t.protocol+"//"+t.host,s=i+t.pathname.replace(/\/[^\/]*$/,"/");return e.replace(/url\s*\(((?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)\)/gi,(function(e,t){var n,a=t.trim().replace(/^"(.*)"$/,(function(e,t){return t})).replace(/^'(.*)'$/,(function(e,t){return t}));return/^(#|data:|http:\/\/|https:\/\/|file:\/\/\/|\s*$)/i.test(a)?e:(n=0===a.indexOf("//")?a:0===a.indexOf("/")?i+a:s+a.replace(/^\.\//,""),"url("+JSON.stringify(n)+")")}))}},"H/uN":function(e,t,i){var s=i("P5l1");"string"==typeof s&&(s=[[e.i,s,""]]);var n={hmr:!0,transform:void 0,insertInto:void 0};i("aET+")(s,n);s.locals&&(e.exports=s.locals)},I1BE:function(e,t){e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var i=function(e,t){var i=e[1]||"",s=e[3];if(!s)return i;if(t&&"function"==typeof btoa){var n=(o=s,"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(o))))+" */"),a=s.sources.map((function(e){return"/*# sourceURL="+s.sourceRoot+e+" */"}));return[i].concat(a).concat([n]).join("\n")}var o;return[i].join("\n")}(t,e);return t[2]?"@media "+t[2]+"{"+i+"}":i})).join("")},t.i=function(e,i){"string"==typeof e&&(e=[[null,e,""]]);for(var s={},n=0;n<this.length;n++){var a=this[n][0];"number"==typeof a&&(s[a]=!0)}for(n=0;n<e.length;n++){var o=e[n];"number"==typeof o[0]&&s[o[0]]||(i&&!o[2]?o[2]=i:i&&(o[2]="("+o[2]+") and ("+i+")"),t.push(o))}},t}},P5l1:function(e,t,i){(t=e.exports=i("I1BE")(!1)).push([e.i,'.tippy-tooltip.dialog-theme{background-color:var(--color--neutral);border-radius:.5rem;box-shadow:0 .75rem 3rem var(--color--shadow-opacity-20),0 .5rem 1.5rem var(--color--shadow-opacity-10),0 .125rem .25rem var(--color--shadow-opacity-07);color:var(--color--text);font-size:1rem;line-height:1.5;padding:0;text-align:left}.tippy-tooltip.dialog-theme .tippy-content{padding:1.5rem;max-height:40rem;max-height:90vh;overflow:auto}.tippy-tooltip.dialog-theme .tippy-arrow{-webkit-transform:scale(1);transform:scale(1)}.tippy-tooltip.dialog-theme[x-placement^=top] .tippy-arrow{border-top:8px solid var(--color--neutral);border-right:8px solid transparent;border-left:8px solid transparent}.tippy-tooltip.dialog-theme[x-placement^=bottom] .tippy-arrow{border-bottom:8px solid var(--color--neutral);border-right:8px solid transparent;border-left:8px solid transparent}.tippy-tooltip.dialog-theme[x-placement^=left] .tippy-arrow{border-left:8px solid var(--color--neutral);border-top:8px solid transparent;border-bottom:8px solid transparent}.tippy-tooltip.dialog-theme[x-placement^=right] .tippy-arrow{border-right:8px solid var(--color--neutral);border-top:8px solid transparent;border-bottom:8px solid transparent}.tippy-tooltip.dialog-theme .tippy-backdrop{background-color:var(--color--neutral)}.tippy-tooltip.dialog-theme .tippy-roundarrow{fill:var(--color--neutral)}.tippy-tooltip.dialog-theme[data-animatefill]{background-color:initial}.dialog__header{display:-webkit-flex;display:flex;margin:-.25rem 0 1rem}.dialog__header .header__icon{color:var(--color--text-lighter);margin:.25rem .75rem 0 0}.dialog__header .header__heading{margin:0}.dialog__close{background:var(--color--neutral);border-radius:100%;color:var(--color--text-light);cursor:pointer;padding:.5rem;position:absolute;right:1rem;top:.5rem;z-index:100}.dialog__close:hover{color:var(--color--text-dark)}.tippy-tooltip.dropdown-theme{background:var(--color--neutral);border-radius:.333rem;border:1px solid var(--color--neutral-50);
1box-shadow:0 .25rem 1rem var(--color--shadow-opacity-10);color:var(--color--text);padding:0;text-align:left}.tippy-tooltip.dropdown-theme .tippy-arrow{-webkit-transform:scale(1);transform:scale(1)}.tippy-tooltip.dropdown-theme[x-placement^=top] .tippy-arrow{border-top:5px solid var(--color--neutral-50);border-right:5px solid transparent;border-left:5px solid transparent;bottom:-5px}.tippy-tooltip.dropdown-theme[x-placement^=bottom] .tippy-arrow{border-bottom:5px solid var(--color--neutral-50);border-right:5px solid transparent;border-left:5px solid transparent;top:-5px}.tippy-tooltip.dropdown-theme[x-placement^=left] .tippy-arrow{border-left:5px solid var(--color--neutral-50);border-top:5px solid transparent;border-bottom:5px solid transparent;right:-5px}.tippy-tooltip.dropdown-theme[x-placement^=right] .tippy-arrow{border-right:5px solid var(--color--neutral-50);border-top:5px solid transparent;border-bottom:5px solid transparent;left:-5px}.tippy-tooltip.guidance-info-theme{background:var(--color--neutral);border-radius:.333rem;border:1px solid var(--color--info-midlight);box-shadow:0 0 0 3px var(--color--info-lighter) inset,0 1px 2px var(--color--shadow-opacity-10);box-sizing:border-box;color:var(--color--neutral-70);font-size:var(--font--size-s);font-weight:var(--font--weight-normal);line-height:1.5;max-width:30rem;padding:1rem;text-align:left}.tippy-tooltip.guidance-info-theme .tippy-arrow{border:.5rem solid transparent;-webkit-transform:scale(1);transform:scale(1)}.tippy-tooltip.guidance-info-theme .tippy-arrow:before{border:.5rem solid transparent;box-sizing:border-box;content:"";display:block;height:0;pointer-events:none;position:absolute;top:-.5rem;left:-.5rem;width:0}.tippy-popper[x-placement^=top] .tippy-tooltip.guidance-info-theme .tippy-arrow{border-top-color:var(--color--info-midlight);bottom:-1rem}.tippy-popper[x-placement^=top] .tippy-tooltip.guidance-info-theme .tippy-arrow:before{border-top-color:var(--color--info-lighter);margin-top:-1px}.tippy-popper[x-placement^=right] .tippy-tooltip.guidance-info-theme .tippy-arrow{border-right-color:var(--color--info-midlight);left:-1rem}.tippy-popper[x-placement^=right] .tippy-tooltip.guidance-info-theme .tippy-arrow:before{border-right-color:var(--color--info-lighter);margin-left:1px}.tippy-popper[x-placement^=bottom] .tippy-tooltip.guidance-info-theme .tippy-arrow{border-bottom-color:var(--color--info-midlight);top:-1rem}.tippy-popper[x-placement^=bottom] .tippy-tooltip.guidance-info-theme .tippy-arrow:before{border-bottom-color:var(--color--info-lighter);margin-top:1px}.tippy-popper[x-placement^=left] .tippy-tooltip.guidance-info-theme .tippy-arrow{border-left-color:var(--color--info-midlight);right:-1rem}.tippy-popper[x-placement^=left] .tippy-tooltip.guidance-info-theme .tippy-arrow:before{border-left-color:var(--color--info-lighter);margin-left:-1px}[data-sal]{transition-duration:.2s;transition-delay:0s;transition-duration:var(--sal-duration,.2s);transition-delay:var(--sal-delay,0s);transition-timing-function:var(--sal-easing,ease)}[data-sal][data-sal-duration="200"]{transition-duration:.2s}[data-sal][data-sal-duration="250"]{transition-duration:.25s}[data-sal][data-sal-duration="300"]{transition-duration:.3s}[data-sal][data-sal-duration="350"]{transition-duration:.35s}[data-sal][data-sal-duration="400"]{transition-duration:.4s}[data-sal][data-sal-duration="450"]{transition-duration:.45s}[data-sal][data-sal-duration="500"]{transition-duration:.5s}[data-sal][data-sal-duration="550"]{transition-duration:.55s}[data-sal][data-sal-duration="600"]{transition-duration:.6s}[data-sal][data-sal-duration="650"]{transition-duration:.65s}[data-sal][data-sal-duration="700"]{transition-duration:.7s}[data-sal][data-sal-duration="750"]{transition-duration:.75s}[data-sal][data-sal-duration="800"]{transition-duration:.8s}[data-sal][data-sal-duration="850"]{transition-duration:.85s}[data-sal][data-sal-duration="900"]{transition-duration:.9s}[data-sal][data-sal-duration="950"]{transition-duration:.95s}[data-sal][data-sal-duration="1000"]{transition-duration:1s}
1[data-sal][data-sal-duration="1050"]{transition-duration:1.05s}[data-sal][data-sal-duration="1100"]{transition-duration:1.1s}[data-sal][data-sal-duration="1150"]{transition-duration:1.15s}[data-sal][data-sal-duration="1200"]{transition-duration:1.2s}[data-sal][data-sal-duration="1250"]{transition-duration:1.25s}[data-sal][data-sal-duration="1300"]{transition-duration:1.3s}[data-sal][data-sal-duration="1350"]{transition-duration:1.35s}[data-sal][data-sal-duration="1400"]{transition-duration:1.4s}[data-sal][data-sal-duration="1450"]{transition-duration:1.45s}[data-sal][data-sal-duration="1500"]{transition-duration:1.5s}[data-sal][data-sal-duration="1550"]{transition-duration:1.55s}[data-sal][data-sal-duration="1600"]{transition-duration:1.6s}[data-sal][data-sal-duration="1650"]{transition-duration:1.65s}[data-sal][data-sal-duration="1700"]{transition-duration:1.7s}[data-sal][data-sal-duration="1750"]{transition-duration:1.75s}[data-sal][data-sal-duration="1800"]{transition-duration:1.8s}[data-sal][data-sal-duration="1850"]{transition-duration:1.85s}[data-sal][data-sal-duration="1900"]{transition-duration:1.9s}[data-sal][data-sal-duration="1950"]{transition-duration:1.95s}[data-sal][data-sal-duration="2000"]{transition-duration:2s}
1[data-sal][data-sal-delay="50"]{transition-delay:.05s}[data-sal][data-sal-delay="100"]{transition-delay:.1s}[data-sal][data-sal-delay="150"]{transition-delay:.15s}[data-sal][data-sal-delay="200"]{transition-delay:.2s}[data-sal][data-sal-delay="250"]{transition-delay:.25s}[data-sal][data-sal-delay="300"]{transition-delay:.3s}[data-sal][data-sal-delay="350"]{transition-delay:.35s}[data-sal][data-sal-delay="400"]{transition-delay:.4s}[data-sal][data-sal-delay="450"]{transition-delay:.45s}[data-sal][data-sal-delay="500"]{transition-delay:.5s}[data-sal][data-sal-delay="550"]{transition-delay:.55s}[data-sal][data-sal-delay="600"]{transition-delay:.6s}[data-sal][data-sal-delay="650"]{transition-delay:.65s}[data-sal][data-sal-delay="700"]{transition-delay:.7s}[data-sal][data-sal-delay="750"]{transition-delay:.75s}[data-sal][data-sal-delay="800"]{transition-delay:.8s}[data-sal][data-sal-delay="850"]{transition-delay:.85s}[data-sal][data-sal-delay="900"]{transition-delay:.9s}[data-sal][data-sal-delay="950"]{transition-delay:.95s}[data-sal][data-sal-delay="1000"]{transition-delay:1s}[data-sal][data-sal-easing=linear]{transition-timing-function:linear}[data-sal][data-sal-easing=ease]{transition-timing-function:ease}[data-sal][data-sal-easing=ease-in]{transition-timing-function:ease-in}[data-sal][data-sal-easing=ease-out]{transition-timing-function:ease-out}[data-sal][data-sal-easing=ease-in-out]{transition-timing-function:ease-in-out}[data-sal][data-sal-easing=ease-in-cubic]{transition-timing-function:cubic-bezier(.55,.055,.675,.19)}[data-sal][data-sal-easing=ease-out-cubic]{transition-timing-function:cubic-bezier(.215,.61,.355,1)}[data-sal][data-sal-easing=ease-in-out-cubic]{transition-timing-function:cubic-bezier(.645,.045,.355,1)}[data-sal][data-sal-easing=ease-in-circ]{transition-timing-function:cubic-bezier(.6,.04,.98,.335)}[data-sal][data-sal-easing=ease-out-circ]{transition-timing-function:cubic-bezier(.075,.82,.165,1)}[data-sal][data-sal-easing=ease-in-out-circ]{transition-timing-function:cubic-bezier(.785,.135,.15,.86)}[data-sal][data-sal-easing=ease-in-expo]{transition-timing-function:cubic-bezier(.95,.05,.795,.035)}[data-sal][data-sal-easing=ease-out-expo]{transition-timing-function:cubic-bezier(.19,1,.22,1)}[data-sal][data-sal-easing=ease-in-out-expo]{transition-timing-function:cubic-bezier(1,0,0,1)}[data-sal][data-sal-easing=ease-in-quad]{transition-timing-function:cubic-bezier(.55,.085,.68,.53)}[data-sal][data-sal-easing=ease-out-quad]{transition-timing-function:cubic-bezier(.25,.46,.45,.94)}[data-sal][data-sal-easing=ease-in-out-quad]{transition-timing-function:cubic-bezier(.455,.03,.515,.955)}[data-sal][data-sal-easing=ease-in-quart]{transition-timing-function:cubic-bezier(.895,.03,.685,.22)}[data-sal][data-sal-easing=ease-out-quart]{transition-timing-function:cubic-bezier(.165,.84,.44,1)}[data-sal][data-sal-easing=ease-in-out-quart]{transition-timing-function:cubic-bezier(.77,0,.175,1)}[data-sal][data-sal-easing=ease-in-quint]{transition-timing-function:cubic-bezier(.755,.05,.855,.06)}[data-sal][data-sal-easing=ease-out-quint]{transition-timing-function:cubic-bezier(.23,1,.32,1)}[data-sal][data-sal-easing=ease-in-out-quint]{transition-timing-function:cubic-bezier(.86,0,.07,1)}[data-sal][data-sal-easing=ease-in-sine]{transition-timing-function:cubic-bezier(.47,0,.745,.715)}[data-sal][data-sal-easing=ease-out-sine]{transition-timing-function:cubic-bezier(.39,.575,.565,1)}[data-sal][data-sal-easing=ease-in-out-sine]{transition-timing-function:cubic-bezier(.445,.05,.55,.95)}[data-sal][data-sal-easing=ease-in-back]{transition-timing-function:cubic-bezier(.6,-.28,.735,.045)}[data-sal][data-sal-easing=ease-out-back]{transition-timing-function:cubic-bezier(.175,.885,.32,1.275)}[data-sal][data-sal-easing=ease-in-out-back]{transition-timing-function:cubic-bezier(.68,-.55,.265,1.55)}[data-sal|=fade]{opacity:0;transition-property:opacity}[data-sal|=fade].sal-animate,body.sal-disabled [data-sal|=fade]{opacity:1}[data-sal|=slide]{opacity:0;transition-property:opacity,-webkit-transform;transition-property:opacity,transform;transition-property:opacity,transform,-webkit-transform}[data-sal=slide-up]{-webkit-transform:translateY(20%);transform:translateY(20%)}[data-sal=slide-down]{-webkit-transform:translateY(-20%);transform:translateY(-20%)}[data-sal=slide-left]{-webkit-transform:translateX(20%);transform:translateX(20%)}[data-sal=slide-right]{-webkit-transform:translateX(-20%);transform:translateX(-20%)}
1[data-sal|=slide].sal-animate,body.sal-disabled [data-sal|=slide]{opacity:1;-webkit-transform:none;transform:none}[data-sal|=zoom]{opacity:0;transition-property:opacity,-webkit-transform;transition-property:opacity,transform;transition-property:opacity,transform,-webkit-transform}[data-sal=zoom-in]{-webkit-transform:scale(.5);transform:scale(.5)}[data-sal=zoom-out]{-webkit-transform:scale(1.1);transform:scale(1.1)}[data-sal|=zoom].sal-animate,body.sal-disabled [data-sal|=zoom]{opacity:1;-webkit-transform:none;transform:none}[data-sal|=flip]{-webkit-backface-visibility:hidden;backface-visibility:hidden;transition-property:-webkit-transform;transition-property:transform;transition-property:transform,-webkit-transform}[data-sal=flip-left]{-webkit-transform:perspective(2000px) rotateY(-91deg);transform:perspective(2000px) rotateY(-91deg)}[data-sal=flip-right]{-webkit-transform:perspective(2000px) rotateY(91deg);transform:perspective(2000px) rotateY(91deg)}[data-sal=flip-up]{-webkit-transform:perspective(2000px) rotateX(-91deg);transform:perspective(2000px) rotateX(-91deg)}[data-sal=flip-down]{-webkit-transform:perspective(2000px) rotateX(91deg);transform:perspective(2000px) rotateX(91deg)}[data-sal|=flip].sal-animate,body.sal-disabled [data-sal|=flip]{-webkit-transform:none;transform:none}',""]),t.locals={screenSmMin:"768px",screenMdMin:"1200px",screenLgMin:"1620px"}},"aET+":function(e,t,i){var s,n,a={},o=(s=function(){return window&&document&&document.all&&!window.atob},function(){return void 0===n&&(n=s.apply(this,arguments)),n}),r=function(e,t){return t?t.querySelector(e):document.querySelector(e)},l=function(e){var t={};return function(e,i){if("function"==typeof e)return e();if(void 0===t[e]){var s=r.call(this,e,i);if(window.HTMLIFrameElement&&s instanceof window.HTMLIFrameElement)try{s=s.contentDocument.head}catch(e){s=null}t[e]=s}return t[e]}}(),c=null,d=0,h=[],u=i("9tPo");function p(e,t){for(var i=0;i<e.length;i++){var s=e[i],n=a[s.id];if(n){n.refs++;for(var o=0;o<n.parts.length;o++)n.parts[o](s.parts[o]);for(;o<s.parts.length;o++)n.parts.push(y(s.parts[o],t))}else{var r=[];for(o=0;o<s.parts.length;o++)r.push(y(s.parts[o],t));a[s.id]={id:s.id,refs:1,parts:r}}}}function f(e,t){for(var i=[],s={},n=0;n<e.length;n++){var a=e[n],o=t.base?a[0]+t.base:a[0],r={css:a[1],media:a[2],sourceMap:a[3]};s[o]?s[o].parts.push(r):i.push(s[o]={id:o,parts:[r]})}return i}function m(e,t){var i=l(e.insertInto);if(!i)throw new Error("Couldn't find a style target. This probably means that the value for the 'insertInto' parameter is invalid.");var s=h[h.length-1];if("top"===e.insertAt)s?s.nextSibling?i.insertBefore(t,s.nextSibling):i.appendChild(t):i.insertBefore(t,i.firstChild),h.push(t);else if("bottom"===e.insertAt)i.appendChild(t);else{if("object"!=typeof e.insertAt||!e.insertAt.before)throw new Error("[Style Loader]\n\n Invalid value for parameter 'insertAt' ('options.insertAt') found.\n Must be 'top', 'bottom', or Object.\n (https://github.com/webpack-contrib/style-loader#insertat)\n");var n=l(e.insertAt.before,i);i.insertBefore(t,n)}}function g(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e);var t=h.indexOf(e);t>=0&&h.splice(t,1)}function v(e){var t=document.createElement("style");if(void 0===e.attrs.type&&(e.attrs.type="text/css"),void 0===e.attrs.nonce){var s=function(){0;return i.nc}();s&&(e.attrs.nonce=s)}return b(t,e.attrs),m(e,t),t}function b(e,t){Object.keys(t).forEach((function(i){e.setAttribute(i,t[i])}))}function y(e,t){var i,s,n,a;if(t.transform&&e.css){if(!(a="function"==typeof t.transform?t.transform(e.css):t.transform.default(e.css)))return function(){};e.css=a}if(t.singleton){var o=d++;i=c||(c=v(t)),s=E.bind(null,i,o,!1),n=E.bind(null,i,o,!0)}else e.sourceMap&&"function"==typeof URL&&"function"==typeof URL.createObjectURL&&"function"==typeof URL.revokeObjectURL&&"function"==typeof Blob&&"function"==typeof btoa?(i=function(e){var t=document.createElement("link");return void 0===e.attrs.type&&(e.attrs.type="text/css"),e.attrs.rel="stylesheet",b(t,e.attrs),m(e,t),t}(t),s=C.bind(null,i,t),n=function(){g(i),i.href&&URL.revokeObjectURL(i.href)}):(i=v(t),s=S.bind(null,i),n=function(){g(i)});return s(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;s(e=t)}else n()}}e.exports=function(e,t){if("undefined"!=typeof DEBUG&&DEBUG&&"object"!=typeof document)throw new Error("The style-loader cannot be used in a non-browser environment");(t=t||{}).attrs="object"==typeof t.attrs?t.attrs:{},t.singleton||"boolean"==typeof t.singleton||(t.singleton=o()),t.insertInto||(t.insertInto="head"),t.insertAt||(t.insertAt="bottom");var i=f(e,t);return p(i,t),function(e){for(var s=[],n=0;n<i.length;n++){var o=i[n];(r=a[o.id]).refs--,s.push(r)}e&&p(f(e,t),t);for(n=0;n<s.length;n++){var r;if(0===(r=s[n]).refs){for(var l=0;l<r.parts.length;l++)r.parts[l]();delete a[r.id]}}}};
1var w,x=(w=[],function(e,t){return w[e]=t,w.filter(Boolean).join("\n")});function E(e,t,i,s){var n=i?"":s.css;if(e.styleSheet)e.styleSheet.cssText=x(t,n);else{var a=document.createTextNode(n),o=e.childNodes;o[t]&&e.removeChild(o[t]),o.length?e.insertBefore(a,o[t]):e.appendChild(a)}}function S(e,t){var i=t.css,s=t.media;if(s&&e.setAttribute("media",s),e.styleSheet)e.styleSheet.cssText=i;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(i))}}function C(e,t,i){var s=i.css,n=i.sourceMap,a=void 0===t.convertToAbsoluteUrls&&n;(t.convertToAbsoluteUrls||a)&&(s=u(s)),n&&(s+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(n))))+" */");var o=new Blob([s],{type:"text/css"}),r=e.href;e.href=URL.createObjectURL(o),r&&URL.revokeObjectURL(r)}},bcMo:function(e,t,i){"use strict";function s(e){return null!==e&&"object"==typeof e&&"constructor"in e&&e.constructor===Object}function n(e={},t={}){Object.keys(t).forEach(i=>{void 0===e[i]?e[i]=t[i]:s(t[i])&&s(e[i])&&Object.keys(t[i]).length>0&&n(e[i],t[i])})}i.r(t);const a={body:{},addEventListener(){},removeEventListener(){},activeElement:{blur(){},nodeName:""},querySelector:()=>null,querySelectorAll:()=>[],getElementById:()=>null,createEvent:()=>({initEvent(){}}),createElement:()=>({children:[],childNodes:[],style:{},setAttribute(){},getElementsByTagName:()=>[]}),createElementNS:()=>({}),importNode:()=>null,location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""}};function o(){const e="undefined"!=typeof document?document:{};return n(e,a),e}const r={document:a,navigator:{userAgent:""},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""},history:{replaceState(){},pushState(){},go(){},back(){}},CustomEvent:function(){return this},addEventListener(){},removeEventListener(){},getComputedStyle:()=>({getPropertyValue:()=>""}),Image(){},Date(){},screen:{},setTimeout(){},clearTimeout(){},matchMedia:()=>({}),requestAnimationFrame:e=>"undefined"==typeof setTimeout?(e(),null):setTimeout(e,0),cancelAnimationFrame(e){"undefined"!=typeof setTimeout&&clearTimeout(e)}};function l(){const e="undefined"!=typeof window?window:{};return n(e,r),e}class c extends Array{constructor(e){"number"==typeof e?super(e):(super(...e||[]),function(e){const t=e.__proto__;Object.defineProperty(e,"__proto__",{get:()=>t,set(e){t.__proto__=e}})}(this))}}function d(e=[]){const t=[];return e.forEach(e=>{Array.isArray(e)?t.push(...d(e)):t.push(e)}),t}function h(e,t){return Array.prototype.filter.call(e,t)}function u(e,t){const i=l(),s=o();let n=[];if(!t&&e instanceof c)return e;if(!e)return new c(n);if("string"==typeof e){const i=e.trim();if(i.indexOf("<")>=0&&i.indexOf(">")>=0){let e="div";0===i.indexOf("<li")&&(e="ul"),0===i.indexOf("<tr")&&(e="tbody"),0!==i.indexOf("<td")&&0!==i.indexOf("<th")||(e="tr"),0===i.indexOf("<tbody")&&(e="table"),0===i.indexOf("<option")&&(e="select");const t=s.createElement(e);t.innerHTML=i;for(let e=0;e<t.childNodes.length;e+=1)n.push(t.childNodes[e])}else n=function(e,t){if("string"!=typeof e)return[e];const i=[],s=t.querySelectorAll(e);for(let e=0;e<s.length;e+=1)i.push(s[e]);return i}(e.trim(),t||s)}else if(e.nodeType||e===i||e===s)n.push(e);else if(Array.isArray(e)){if(e instanceof c)return e;n=e}return new c(function(e){const t=[];for(let i=0;i<e.length;i+=1)-1===t.indexOf(e[i])&&t.push(e[i]);return t}(n))}u.fn=c.prototype;const p="resize scroll".split(" ");function f(e){return function(...t){if(void 0===t[0]){for(let t=0;t<this.length;t+=1)p.indexOf(e)<0&&(e in this[t]?this[t][e]():u(this[t]).trigger(e));return this}return this.on(e,...t)}}f("click"),f("blur"),f("focus"),f("focusin"),f("focusout"),f("keyup"),f("keydown"),f("keypress"),f("submit"),f("change"),f("mousedown"),f("mousemove"),f("mouseup"),f("mouseenter"),f("mouseleave"),f("mouseout"),f("mouseover"),f("touchstart"),f("touchend"),f("touchmove"),f("resize"),f("scroll");const m={addClass:function(...e){const t=d(e.map(e=>e.split(" ")));return this.forEach(e=>{e.classList.add(...t)}),this},removeClass:function(...e){const t=d(e.map(e=>e.split(" ")));
vendor: 11,278 bytes, line 1
1return this.forEach(e=>{e.classList.remove(...t)}),this},hasClass:function(...e){const t=d(e.map(e=>e.split(" ")));return h(this,e=>t.filter(t=>e.classList.contains(t)).length>0).length>0},toggleClass:function(...e){const t=d(e.map(e=>e.split(" ")));this.forEach(e=>{t.forEach(t=>{e.classList.toggle(t)})})},attr:function(e,t){if(1===arguments.length&&"string"==typeof e)return this[0]?this[0].getAttribute(e):void 0;for(let i=0;i<this.length;i+=1)if(2===arguments.length)this[i].setAttribute(e,t);else for(const t in e)this[i][t]=e[t],this[i].setAttribute(t,e[t]);return this},removeAttr:function(e){for(let t=0;t<this.length;t+=1)this[t].removeAttribute(e);return this},transform:function(e){for(let t=0;t<this.length;t+=1)this[t].style.transform=e;return this},transition:function(e){for(let t=0;t<this.length;t+=1)this[t].style.transitionDuration="string"!=typeof e?e+"ms":e;return this},on:function(...e){let[t,i,s,n]=e;function a(e){const t=e.target;if(!t)return;const n=e.target.dom7EventData||[];if(n.indexOf(e)<0&&n.unshift(e),u(t).is(i))s.apply(t,n);else{const e=u(t).parents();for(let t=0;t<e.length;t+=1)u(e[t]).is(i)&&s.apply(e[t],n)}}function o(e){const t=e&&e.target&&e.target.dom7EventData||[];t.indexOf(e)<0&&t.unshift(e),s.apply(this,t)}"function"==typeof e[1]&&([t,s,n]=e,i=void 0),n||(n=!1);const r=t.split(" ");let l;for(let e=0;e<this.length;e+=1){const t=this[e];if(i)for(l=0;l<r.length;l+=1){const e=r[l];t.dom7LiveListeners||(t.dom7LiveListeners={}),t.dom7LiveListeners[e]||(t.dom7LiveListeners[e]=[]),t.dom7LiveListeners[e].push({listener:s,proxyListener:a}),t.addEventListener(e,a,n)}else for(l=0;l<r.length;l+=1){const e=r[l];t.dom7Listeners||(t.dom7Listeners={}),t.dom7Listeners[e]||(t.dom7Listeners[e]=[]),t.dom7Listeners[e].push({listener:s,proxyListener:o}),t.addEventListener(e,o,n)}}return this},off:function(...e){let[t,i,s,n]=e;"function"==typeof e[1]&&([t,s,n]=e,i=void 0),n||(n=!1);const a=t.split(" ");for(let e=0;e<a.length;e+=1){const t=a[e];for(let e=0;e<this.length;e+=1){const a=this[e];let o;if(!i&&a.dom7Listeners?o=a.dom7Listeners[t]:i&&a.dom7LiveListeners&&(o=a.dom7LiveListeners[t]),o&&o.length)for(let e=o.length-1;e>=0;e-=1){const i=o[e];s&&i.listener===s||s&&i.listener&&i.listener.dom7proxy&&i.listener.dom7proxy===s?(a.removeEventListener(t,i.proxyListener,n),o.splice(e,1)):s||(a.removeEventListener(t,i.proxyListener,n),o.splice(e,1))}}}return this},trigger:function(...e){const t=l(),i=e[0].split(" "),s=e[1];for(let n=0;n<i.length;n+=1){const a=i[n];for(let i=0;i<this.length;i+=1){const n=this[i];if(t.CustomEvent){const i=new t.CustomEvent(a,{detail:s,bubbles:!0,cancelable:!0});n.dom7EventData=e.filter((e,t)=>t>0),n.dispatchEvent(i),n.dom7EventData=[],delete n.dom7EventData}}}return this},transitionEnd:function(e){const t=this;return e&&t.on("transitionend",(function i(s){s.target===this&&(e.call(this,s),t.off("transitionend",i))})),this},outerWidth:function(e){if(this.length>0){if(e){const e=this.styles();return this[0].offsetWidth+parseFloat(e.getPropertyValue("margin-right"))+parseFloat(e.getPropertyValue("margin-left"))}return this[0].offsetWidth}return null},outerHeight:function(e){if(this.length>0){if(e){const e=this.styles();return this[0].offsetHeight+parseFloat(e.getPropertyValue("margin-top"))+parseFloat(e.getPropertyValue("margin-bottom"))}return this[0].offsetHeight}return null},styles:function(){const e=l();return this[0]?e.getComputedStyle(this[0],null):{}},offset:function(){if(this.length>0){const e=l(),t=o(),i=this[0],s=i.getBoundingClientRect(),n=t.body,a=i.clientTop||n.clientTop||0,r=i.clientLeft||n.clientLeft||0,c=i===e?e.scrollY:i.scrollTop,d=i===e?e.scrollX:i.scrollLeft;return{top:s.top+c-a,left:s.left+d-r}}return null},css:function(e,t){const i=l();let s;if(1===arguments.length){if("string"!=typeof e){for(s=0;s<this.length;s+=1)for(const t in e)this[s].style[t]=e[t];return this}if(this[0])return i.getComputedStyle(this[0],null).getPropertyValue(e)}if(2===arguments.length&&"string"==typeof e){for(s=0;s<this.length;s+=1)this[s].style[e]=t;return this}return this},each:function(e){return e?(this.forEach((t,i)=>{e.apply(t,[t,i])}),this):this},html:function(e){if(void 0===e)return this[0]?this[0].innerHTML:null;for(let t=0;t<this.length;t+=1)this[t].innerHTML=e;return this},text:function(e){if(void 0===e)return this[0]?this[0].textContent.trim():null;for(let t=0;t<this.length;t+=1)this[t].textContent=e;return this},is:function(e){const t=l(),i=o(),s=this[0];let n,a;if(!s||void 0===e)return!1;if("string"==typeof e){if(s.matches)return s.matches(e);if(s.webkitMatchesSelector)return s.webkitMatchesSelector(e);if(s.msMatchesSelector)return s.msMatchesSelector(e);for(n=u(e),a=0;a<n.length;a+=1)if(n[a]===s)return!0;return!1}if(e===i)return s===i;if(e===t)return s===t;if(e.nodeType||e instanceof c){for(n=e.nodeType?[e]:e,a=0;a<n.length;a+=1)if(n[a]===s)return!0;return!1}return!1},index:function(){let e,t=this[0];if(t){for(e=0;null!==(t=t.previousSibling);)1===t.nodeType&&(e+=1);return e}},eq:function(e){if(void 0===e)return this;const t=this.length;if(e>t-1)return u([]);if(e<0){const i=t+e;return u(i<0?[]:[this[i]])}return u([this[e]])},append:function(...e){let t;const i=o();for(let s=0;s<e.length;s+=1){t=e[s];for(let e=0;e<this.length;e+=1)if("string"==typeof t){const s=i.createElement("div");for(s.innerHTML=t;s.firstChild;)this[e].appendChild(s.firstChild)}else if(t instanceof c)for(let i=0;i<t.length;i+=1)this[e].appendChild(t[i]);else this[e].appendChild(t)}return this},prepend:function(e){const t=o();let i,s;for(i=0;i<this.length;i+=1)if("string"==typeof e){const n=t.createElement("div");for(n.innerHTML=e,s=n.childNodes.length-1;s>=0;s-=1)this[i].insertBefore(n.childNodes[s],this[i].childNodes[0])}else if(e instanceof c)for(s=0;s<e.length;s+=1)this[i].insertBefore(e[s],this[i].childNodes[0]);else this[i].insertBefore(e,this[i].childNodes[0]);return this},next:function(e){return this.length>0?e?this[0].nextElementSibling&&u(this[0].nextElementSibling).is(e)?u([this[0].nextElementSibling]):u([]):this[0].nextElementSibling?u([this[0].nextElementSibling]):u([]):u([])},nextAll:function(e){const t=[];let i=this[0];if(!i)return u([]);for(;i.nextElementSibling;){const s=i.nextElementSibling;e?u(s).is(e)&&t.push(s):t.push(s),i=s}return u(t)},prev:function(e){if(this.length>0){const t=this[0];return e?t.previousElementSibling&&u(t.previousElementSibling).is(e)?u([t.previousElementSibling]):u([]):t.previousElementSibling?u([t.previousElementSibling]):u([])}return u([])},prevAll:function(e){const t=[];let i=this[0];if(!i)return u([]);for(;i.previousElementSibling;){const s=i.previousElementSibling;e?u(s).is(e)&&t.push(s):t.push(s),i=s}return u(t)},parent:function(e){const t=[];for(let i=0;i<this.length;i+=1)null!==this[i].parentNode&&(e?u(this[i].parentNode).is(e)&&t.push(this[i].parentNode):t.push(this[i].parentNode));return u(t)},parents:function(e){const t=[];for(let i=0;i<this.length;i+=1){let s=this[i].parentNode;for(;s;)e?u(s).is(e)&&t.push(s):t.push(s),s=s.parentNode}return u(t)},closest:function(e){let t=this;return void 0===e?u([]):(t.is(e)||(t=t.parents(e).eq(0)),t)},find:function(e){const t=[];for(let i=0;i<this.length;i+=1){const s=this[i].querySelectorAll(e);for(let e=0;e<s.length;e+=1)t.push(s[e])}return u(t)},children:function(e){const t=[];for(let i=0;i<this.length;i+=1){const s=this[i].children;for(let i=0;i<s.length;i+=1)e&&!u(s[i]).is(e)||t.push(s[i])}return u(t)},filter:function(e){return u(h(this,e))},remove:function(){for(let e=0;e<this.length;e+=1)this[e].parentNode&&this[e].parentNode.removeChild(this[e]);return this}};Object.keys(m).forEach(e=>{Object.defineProperty(u.fn,e,{value:m[e],writable:!0})});var g=u;function v(e,t=0){return setTimeout(e,t)}function b(){return Date.now()}function y(e,t="x"){const i=l();let s,n,a;const o=function(e){const t=l();let i;return t.getComputedStyle&&(i=t.getComputedStyle(e,null)),!i&&e.currentStyle&&(i=e.currentStyle),i||(i=e.style),i}(e);return i.WebKitCSSMatrix?(n=o.transform||o.webkitTransform,n.split(",").length>6&&(n=n.split(", ").map(e=>e.replace(",",".")).join(", ")),a=new i.WebKitCSSMatrix("none"===n?"":n)):(a=o.MozTransform||o.OTransform||o.MsTransform||o.msTransform||o.transform||o.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,"),s=a.toString().split(",")),"x"===t&&(n=i.WebKitCSSMatrix?a.m41:16===s.length?parseFloat(s[12]):parseFloat(s[4])),"y"===t&&(n=i.WebKitCSSMatrix?a.m42:16===s.length?parseFloat(s[13]):parseFloat(s[5])),n||0}function w(e){return"object"==typeof e&&null!==e&&e.constructor&&"Object"===Object.prototype.toString.call(e).slice(8,-1)}function x(...e){const t=Object(e[0]),i=["__proto__","constructor","prototype"];for(let n=1;n<e.length;n+=1){const a=e[n];if(null!=a&&(s=a,!("undefined"!=typeof window&&void 0!==window.HTMLElement?s instanceof HTMLElement:s&&(1===s.nodeType||11===s.nodeType)))){const e=Object.keys(Object(a)).filter(e=>i.indexOf(e)<0);for(let i=0,s=e.length;i<s;i+=1){const s=e[i],n=Object.getOwnPropertyDescriptor(a,s);void 0!==n&&n.enumerable&&(w(t[s])&&w(a[s])?a[s].__swiper__?t[s]=a[s]:x(t[s],a[s]):!w(t[s])&&w(a[s])?(t[s]={},a[s].__swiper__?t[s]=a[s]:x(t[s],a[s])):t[s]=a[s])}}}var s;return t}function E(e,t,i){e.style.setProperty(t,i)}function S({swiper:e,targetPosition:t,side:i}){const s=l(),n=-e.translate;let a,o=null;const r=e.params.speed;e.wrapperEl.style.scrollSnapType="none",s.cancelAnimationFrame(e.cssModeFrameID);const c=t>n?"next":"prev",d=(e,t)=>"next"===c&&e>=t||"prev"===c&&e<=t,h=()=>{a=(new Date).getTime(),null===o&&(o=a);const l=Math.max(Math.min((a-o)/r,1),0),c=.5-Math.cos(l*Math.PI)/2;let u=n+c*(t-n);if(d(u,t)&&(u=t),e.wrapperEl.scrollTo({[i]:u}),d(u,t))return e.wrapperEl.style.overflow="hidden",e.wrapperEl.style.scrollSnapType="",setTimeout(()=>{e.wrapperEl.style.overflow="",e.wrapperEl.scrollTo({[i]:u})}),void s.cancelAnimationFrame(e.cssModeFrameID);e.cssModeFrameID=s.requestAnimationFrame(h)};h()}let C,T,M;function P(){return C||(C=function(){const e=l(),t=o();return{smoothScroll:t.documentElement&&"scrollBehavior"in t.documentElement.style,touch:!!("ontouchstart"in e||e.DocumentTouch&&t instanceof e.DocumentTouch),passiveListener:function(){let t=!1;try{const i=Object.defineProperty({},"passive",{get(){t=!0}});e.addEventListener("testPassiveListener",null,i)}catch(e){}return t}(),gestures:"ongesturestart"in e}}()),C}function O(e={}){return T||(T=function({userAgent:e}={}){const t=P(),i=l(),s=i.navigator.platform,n=e||i.navigator.userAgent,a={ios:!1,android:!1},o=i.screen.width,r=i.screen.height,c=n.match(/(Android);?[\s\/]+([\d.]+)?/);let d=n.match(/(iPad).*OS\s([\d_]+)/);const h=n.match(/(iPod)(.*OS\s([\d_]+))?/),u=!d&&n.match(/(iPhone\sOS|iOS)\s([\d_]+)/),p="Win32"===s;let f="MacIntel"===s;return!d&&f&&t.touch&&["1024x1366","1366x1024","834x1194","1194x834","834x1112","1112x834","768x1024","1024x768","820x1180","1180x820","810x1080","1080x810"].indexOf(`${o}x${r}`)>=0&&(d=n.match(/(Version)\/([\d.]+)/),d||(d=[0,1,"13_0_0"]),f=!1),c&&!p&&(a.os="android",a.android=!0),(d||u||h)&&(a.os="ios",a.ios=!0),a}(e)),T}function k(){return M||(M=function(){const e=l();return{isSafari:function(){const t=e.navigator.userAgent.toLowerCase();return t.indexOf("safari")>=0&&t.indexOf("chrome")<0&&t.indexOf("android")<0}
vendor: 4,761 bytes, line 1
1(),isWebView:/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(e.navigator.userAgent)}}()),M}function z({swiper:e,runCallbacks:t,direction:i,step:s}){const{activeIndex:n,previousIndex:a}=e;let o=i;if(o||(o=n>a?"next":n<a?"prev":"reset"),e.emit("transition"+s),t&&n!==a){if("reset"===o)return void e.emit("slideResetTransition"+s);e.emit("slideChangeTransition"+s),"next"===o?e.emit("slideNextTransition"+s):e.emit("slidePrevTransition"+s)}}function L(e){const t=this,i=o(),s=l(),n=t.touchEventsData,{params:a,touches:r,enabled:c}=t;if(!c)return;if(t.animating&&a.preventInteractionOnTransition)return;!t.animating&&a.cssMode&&a.loop&&t.loopFix();let d=e;d.originalEvent&&(d=d.originalEvent);let h=g(d.target);if("wrapper"===a.touchEventsTarget&&!h.closest(t.wrapperEl).length)return;if(n.isTouchEvent="touchstart"===d.type,!n.isTouchEvent&&"which"in d&&3===d.which)return;if(!n.isTouchEvent&&"button"in d&&d.button>0)return;if(n.isTouched&&n.isMoved)return;const u=!!a.noSwipingClass&&""!==a.noSwipingClass,p=e.composedPath?e.composedPath():e.path;u&&d.target&&d.target.shadowRoot&&p&&(h=g(p[0]));const f=a.noSwipingSelector?a.noSwipingSelector:"."+a.noSwipingClass,m=!(!d.target||!d.target.shadowRoot);if(a.noSwiping&&(m?function(e,t=this){return function t(i){if(!i||i===o()||i===l())return null;i.assignedSlot&&(i=i.assignedSlot);const s=i.closest(e);return s||i.getRootNode?s||t(i.getRootNode().host):null}(t)}(f,h[0]):h.closest(f)[0]))return void(t.allowClick=!0);if(a.swipeHandler&&!h.closest(a.swipeHandler)[0])return;r.currentX="touchstart"===d.type?d.targetTouches[0].pageX:d.pageX,r.currentY="touchstart"===d.type?d.targetTouches[0].pageY:d.pageY;const v=r.currentX,y=r.currentY,w=a.edgeSwipeDetection||a.iOSEdgeSwipeDetection,x=a.edgeSwipeThreshold||a.iOSEdgeSwipeThreshold;if(w&&(v<=x||v>=s.innerWidth-x)){if("prevent"!==w)return;e.preventDefault()}if(Object.assign(n,{isTouched:!0,isMoved:!1,allowTouchCallbacks:!0,isScrolling:void 0,startMoving:void 0}),r.startX=v,r.startY=y,n.touchStartTime=b(),t.allowClick=!0,t.updateSize(),t.swipeDirection=void 0,a.threshold>0&&(n.allowThresholdMove=!1),"touchstart"!==d.type){let e=!0;h.is(n.focusableElements)&&(e=!1,"SELECT"===h[0].nodeName&&(n.isTouched=!1)),i.activeElement&&g(i.activeElement).is(n.focusableElements)&&i.activeElement!==h[0]&&i.activeElement.blur();const s=e&&t.allowTouchMove&&a.touchStartPreventDefault;!a.touchStartForcePreventDefault&&!s||h[0].isContentEditable||d.preventDefault()}t.params.freeMode&&t.params.freeMode.enabled&&t.freeMode&&t.animating&&!a.cssMode&&t.freeMode.onTouchStart(),t.emit("touchStart",d)}function A(e){const t=o(),i=this,s=i.touchEventsData,{params:n,touches:a,rtlTranslate:r,enabled:l}=i;if(!l)return;let c=e;if(c.originalEvent&&(c=c.originalEvent),!s.isTouched)return void(s.startMoving&&s.isScrolling&&i.emit("touchMoveOpposite",c));if(s.isTouchEvent&&"touchmove"!==c.type)return;const d="touchmove"===c.type&&c.targetTouches&&(c.targetTouches[0]||c.changedTouches[0]),h="touchmove"===c.type?d.pageX:c.pageX,u="touchmove"===c.type?d.pageY:c.pageY;if(c.preventedByNestedSwiper)return a.startX=h,void(a.startY=u);if(!i.allowTouchMove)return g(c.target).is(s.focusableElements)||(i.allowClick=!1),void(s.isTouched&&(Object.assign(a,{startX:h,startY:u,currentX:h,currentY:u}),s.touchStartTime=b()));if(s.isTouchEvent&&n.touchReleaseOnEdges&&!n.loop)if(i.isVertical()){if(u<a.startY&&i.translate<=i.maxTranslate()||u>a.startY&&i.translate>=i.minTranslate())return s.isTouched=!1,void(s.isMoved=!1)}else if(h<a.startX&&i.translate<=i.maxTranslate()||h>a.startX&&i.translate>=i.minTranslate())return;if(s.isTouchEvent&&t.activeElement&&c.target===t.activeElement&&g(c.target).is(s.focusableElements))return s.isMoved=!0,void(i.allowClick=!1);if(s.allowTouchCallbacks&&i.emit("touchMove",c),c.targetTouches&&c.targetTouches.length>1)return;a.currentX=h,a.currentY=u;const p=a.currentX-a.startX,f=a.currentY-a.startY;if(i.params.threshold&&Math.sqrt(p**2+f**2)<i.params.threshold)return;if(void 0===s.isScrolling){let e;i.isHorizontal()&&a.currentY===a.startY||i.isVertical()&&a.currentX===a.startX?s.isScrolling=!1:p*p+f*f>=25&&(e=180*Math.atan2(Math.abs(f),Math.abs(p))/Math.PI,s.isScrolling=i.isHorizontal()?e>n.touchAngle:90-e>n.touchAngle)}if(s.isScrolling&&i.emit("touchMoveOpposite",c),void 0===s.startMoving&&(a.currentX===a.startX&&a.currentY===a.startY||(s.startMoving=!0)),s.isScrolling)return void(s.isTouched=!1);if(!s.startMoving)return;i.allowClick=!1,!n.cssMode&&c.cancelable&&c.preventDefault(),n.touchMoveStopPropagation&&!n.nested&&c.stopPropagation(),s.isMoved||(n.loop&&!n.cssMode&&i.loopFix(),s.startTranslate=i.getTranslate(),i.setTransition(0),i.animating&&i.$wrapperEl.trigger("webkitTransitionEnd transitionend"),s.allowMomentumBounce
vendor: 1,100 bytes, line 1
1=!1,!n.grabCursor||!0!==i.allowSlideNext&&!0!==i.allowSlidePrev||i.setGrabCursor(!0),i.emit("sliderFirstMove",c)),i.emit("sliderMove",c),s.isMoved=!0;let m=i.isHorizontal()?p:f;a.diff=m,m*=n.touchRatio,r&&(m=-m),i.swipeDirection=m>0?"prev":"next",s.currentTranslate=m+s.startTranslate;let v=!0,y=n.resistanceRatio;if(n.touchReleaseOnEdges&&(y=0),m>0&&s.currentTranslate>i.minTranslate()?(v=!1,n.resistance&&(s.currentTranslate=i.minTranslate()-1+(-i.minTranslate()+s.startTranslate+m)**y)):m<0&&s.currentTranslate<i.maxTranslate()&&(v=!1,n.resistance&&(s.currentTranslate=i.maxTranslate()+1-(i.maxTranslate()-s.startTranslate-m)**y)),v&&(c.preventedByNestedSwiper=!0),!i.allowSlideNext&&"next"===i.swipeDirection&&s.currentTranslate<s.startTranslate&&(s.currentTranslate=s.startTranslate),!i.allowSlidePrev&&"prev"===i.swipeDirection&&s.currentTranslate>s.startTranslate&&(s.currentTranslate=s.startTranslate),i.allowSlidePrev||i.allowSlideNext||(s.currentTranslate=s.startTranslate),n.threshold>0){if(!(Math.abs(m)>n.threshold||s.allowThresholdMove))return void(s.currentTranslate=s.startTranslate);
vendor: 43,179 bytes, line 1
1if(!s.allowThresholdMove)return s.allowThresholdMove=!0,a.startX=a.currentX,a.startY=a.currentY,s.currentTranslate=s.startTranslate,void(a.diff=i.isHorizontal()?a.currentX-a.startX:a.currentY-a.startY)}n.followFinger&&!n.cssMode&&((n.freeMode&&n.freeMode.enabled&&i.freeMode||n.watchSlidesProgress)&&(i.updateActiveIndex(),i.updateSlidesClasses()),i.params.freeMode&&n.freeMode.enabled&&i.freeMode&&i.freeMode.onTouchMove(),i.updateProgress(s.currentTranslate),i.setTranslate(s.currentTranslate))}function $(e){const t=this,i=t.touchEventsData,{params:s,touches:n,rtlTranslate:a,slidesGrid:o,enabled:r}=t;if(!r)return;let l=e;if(l.originalEvent&&(l=l.originalEvent),i.allowTouchCallbacks&&t.emit("touchEnd",l),i.allowTouchCallbacks=!1,!i.isTouched)return i.isMoved&&s.grabCursor&&t.setGrabCursor(!1),i.isMoved=!1,void(i.startMoving=!1);s.grabCursor&&i.isMoved&&i.isTouched&&(!0===t.allowSlideNext||!0===t.allowSlidePrev)&&t.setGrabCursor(!1);const c=b(),d=c-i.touchStartTime;if(t.allowClick){const e=l.path||l.composedPath&&l.composedPath();t.updateClickedSlide(e&&e[0]||l.target),t.emit("tap click",l),d<300&&c-i.lastClickTime<300&&t.emit("doubleTap doubleClick",l)}if(i.lastClickTime=b(),v(()=>{t.destroyed||(t.allowClick=!0)}),!i.isTouched||!i.isMoved||!t.swipeDirection||0===n.diff||i.currentTranslate===i.startTranslate)return i.isTouched=!1,i.isMoved=!1,void(i.startMoving=!1);let h;if(i.isTouched=!1,i.isMoved=!1,i.startMoving=!1,h=s.followFinger?a?t.translate:-t.translate:-i.currentTranslate,s.cssMode)return;if(t.params.freeMode&&s.freeMode.enabled)return void t.freeMode.onTouchEnd({currentPos:h});let u=0,p=t.slidesSizesGrid[0];for(let e=0;e<o.length;e+=e<s.slidesPerGroupSkip?1:s.slidesPerGroup){const t=e<s.slidesPerGroupSkip-1?1:s.slidesPerGroup;void 0!==o[e+t]?h>=o[e]&&h<o[e+t]&&(u=e,p=o[e+t]-o[e]):h>=o[e]&&(u=e,p=o[o.length-1]-o[o.length-2])}let f=null,m=null;s.rewind&&(t.isBeginning?m=t.params.virtual&&t.params.virtual.enabled&&t.virtual?t.virtual.slides.length-1:t.slides.length-1:t.isEnd&&(f=0));const g=(h-o[u])/p,y=u<s.slidesPerGroupSkip-1?1:s.slidesPerGroup;if(d>s.longSwipesMs){if(!s.longSwipes)return void t.slideTo(t.activeIndex);"next"===t.swipeDirection&&(g>=s.longSwipesRatio?t.slideTo(s.rewind&&t.isEnd?f:u+y):t.slideTo(u)),"prev"===t.swipeDirection&&(g>1-s.longSwipesRatio?t.slideTo(u+y):null!==m&&g<0&&Math.abs(g)>s.longSwipesRatio?t.slideTo(m):t.slideTo(u))}else{if(!s.shortSwipes)return void t.slideTo(t.activeIndex);t.navigation&&(l.target===t.navigation.nextEl||l.target===t.navigation.prevEl)?l.target===t.navigation.nextEl?t.slideTo(u+y):t.slideTo(u):("next"===t.swipeDirection&&t.slideTo(null!==f?f:u+y),"prev"===t.swipeDirection&&t.slideTo(null!==m?m:u))}}function I(){const e=this,{params:t,el:i}=e;if(i&&0===i.offsetWidth)return;t.breakpoints&&e.setBreakpoint();const{allowSlideNext:s,allowSlidePrev:n,snapGrid:a}=e;e.allowSlideNext=!0,e.allowSlidePrev=!0,e.updateSize(),e.updateSlides(),e.updateSlidesClasses(),("auto"===t.slidesPerView||t.slidesPerView>1)&&e.isEnd&&!e.isBeginning&&!e.params.centeredSlides?e.slideTo(e.slides.length-1,0,!1,!0):e.slideTo(e.activeIndex,0,!1,!0),e.autoplay&&e.autoplay.running&&e.autoplay.paused&&e.autoplay.run(),e.allowSlidePrev=n,e.allowSlideNext=s,e.params.watchOverflow&&a!==e.snapGrid&&e.checkOverflow()}function R(e){const t=this;t.enabled&&(t.allowClick||(t.params.preventClicks&&e.preventDefault(),t.params.preventClicksPropagation&&t.animating&&(e.stopPropagation(),e.stopImmediatePropagation())))}function D(){const e=this,{wrapperEl:t,rtlTranslate:i,enabled:s}=e;if(!s)return;let n;e.previousTranslate=e.translate,e.isHorizontal()?e.translate=-t.scrollLeft:e.translate=-t.scrollTop,0===e.translate&&(e.translate=0),e.updateActiveIndex(),e.updateSlidesClasses();const a=e.maxTranslate()-e.minTranslate();n=0===a?0:(e.translate-e.minTranslate())/a,n!==e.progress&&e.updateProgress(i?-e.translate:e.translate),e.emit("setTranslate",e.translate,!1)}let j=!1;function F(){}const N=(e,t)=>{const i=o(),{params:s,touchEvents:n,el:a,wrapperEl:r,device:l,support:c}=e,d=!!s.nested,h="on"===t?"addEventListener":"removeEventListener",u=t;if(c.touch){const t=!("touchstart"!==n.start||!c.passiveListener||!s.passiveListeners)&&{passive:!0,capture:!1};a[h](n.start,e.onTouchStart,t),a[h](n.move,e.onTouchMove,c.passiveListener?{passive:!1,capture:d}:d),a[h](n.end,e.onTouchEnd,t),n.cancel&&a[h](n.cancel,e.onTouchEnd,t)}else a[h](n.start,e.onTouchStart,!1),i[h](n.move,e.onTouchMove,d),i[h](n.end,e.onTouchEnd,!1);(s.preventClicks||s.preventClicksPropagation)&&a[h]("click",e.onClick,!0),s.cssMode&&r[h]("scroll",e.onScroll),s.updateOnWindowResize?e[u](l.ios||l.android?"resize orientationchange observerUpdate":"resize observerUpdate",I,!0):e[u]("observerUpdate",I,!0)};const H=(e,t)=>e.grid&&t.grid&&t.grid.rows>1;var B={init:!0,direction:"horizontal",touchEventsTarget:"wrapper",initialSlide:0,speed:300,cssMode:!1,updateOnWindowResize:!0,resizeObserver:!0,nested:!1,createElements:!1,enabled:!0,focusableElements:"input, select, option, textarea, button, video, label",width:null,height:null,preventInteractionOnTransition:!1,userAgent:null,url:null,edgeSwipeDetection:!1,edgeSwipeThreshold:20,autoHeight:!1,setWrapperSize:!1,virtualTranslate:!1,effect:"slide",breakpoints:void 0,breakpointsBase:"window",spaceBetween:0,slidesPerView:1,slidesPerGroup:1,slidesPerGroupSkip:0,slidesPerGroupAuto:!1,centeredSlides:!1,centeredSlidesBounds:!1,slidesOffsetBefore:0,slidesOffsetAfter:0,normalizeSlideIndex:!0,centerInsufficientSlides:!1,watchOverflow:!0,roundLengths:!1,touchRatio:1,touchAngle:45,simulateTouch:!0,shortSwipes:!0,longSwipes:!0,longSwipesRatio:.5,longSwipesMs:300,followFinger:!0,allowTouchMove:!0,threshold:0,touchMoveStopPropagation:!1,touchStartPreventDefault:!0,touchStartForcePreventDefault:!1,touchReleaseOnEdges:!1,uniqueNavElements:!0,resistance:!0,resistanceRatio:.85,watchSlidesProgress:!1,grabCursor:!1,preventClicks:!0,preventClicksPropagation:!0,slideToClickedSlide:!1,preloadImages:!0,updateOnImagesReady:!0,loop:!1,loopAdditionalSlides:0,loopedSlides:null,loopedSlidesLimit:!0,loopFillGroupWithBlank:!1,loopPreventsSlide:!0,rewind:!1,allowSlidePrev:!0,allowSlideNext:!0,swipeHandler:null,noSwiping:!0,noSwipingClass:"swiper-no-swiping",noSwipingSelector:null,passiveListeners:!0,maxBackfaceHiddenSlides:10,containerModifierClass:"swiper-",slideClass:"swiper-slide",slideBlankClass:"swiper-slide-invisible-blank",slideActiveClass:"swiper-slide-active",slideDuplicateActiveClass:"swiper-slide-duplicate-active",slideVisibleClass:"swiper-slide-visible",slideDuplicateClass:"swiper-slide-duplicate",slideNextClass:"swiper-slide-next",slideDuplicateNextClass:"swiper-slide-duplicate-next",slidePrevClass:"swiper-slide-prev",slideDuplicatePrevClass:"swiper-slide-duplicate-prev",wrapperClass:"swiper-wrapper",runCallbacksOnInit:!0,_emitClasses:!1};function _(e,t){return function(i={}){const s=Object.keys(i)[0],n=i[s];"object"==typeof n&&null!==n?(["navigation","pagination","scrollbar"].indexOf(s)>=0&&!0===e[s]&&(e[s]={auto:!0}),s in e&&"enabled"in n?(!0===e[s]&&(e[s]={enabled:!0}),"object"!=typeof e[s]||"enabled"in e[s]||(e[s].enabled=!0),e[s]||(e[s]={enabled:!1}),x(t,i)):x(t,i)):x(t,i)}}const W={eventsEmitter:{on(e,t,i){const s=this;if(!s.eventsListeners||s.destroyed)return s;if("function"!=typeof t)return s;const n=i?"unshift":"push";return e.split(" ").forEach(e=>{s.eventsListeners[e]||(s.eventsListeners[e]=[]),s.eventsListeners[e][n](t)}),s},once(e,t,i){const s=this;if(!s.eventsListeners||s.destroyed)return s;if("function"!=typeof t)return s;function n(...i){s.off(e,n),n.__emitterProxy&&delete n.__emitterProxy,t.apply(s,i)}return n.__emitterProxy=t,s.on(e,n,i)},onAny(e,t){const i=this;if(!i.eventsListeners||i.destroyed)return i;if("function"!=typeof e)return i;const s=t?"unshift":"push";return i.eventsAnyListeners.indexOf(e)<0&&i.eventsAnyListeners[s](e),i},offAny(e){const t=this;if(!t.eventsListeners||t.destroyed)return t;if(!t.eventsAnyListeners)return t;const i=t.eventsAnyListeners.indexOf(e);return i>=0&&t.eventsAnyListeners.splice(i,1),t},off(e,t){const i=this;return!i.eventsListeners||i.destroyed?i:i.eventsListeners?(e.split(" ").forEach(e=>{void 0===t?i.eventsListeners[e]=[]:i.eventsListeners[e]&&i.eventsListeners[e].forEach((s,n)=>{(s===t||s.__emitterProxy&&s.__emitterProxy===t)&&i.eventsListeners[e].splice(n,1)})}),i):i},emit(...e){const t=this;if(!t.eventsListeners||t.destroyed)return t;if(!t.eventsListeners)return t;let i,s,n;"string"==typeof e[0]||Array.isArray(e[0])?(i=e[0],s=e.slice(1,e.length),n=t):(i=e[0].events,s=e[0].data,n=e[0].context||t),s.unshift(n);return(Array.isArray(i)?i:i.split(" ")).forEach(e=>{t.eventsAnyListeners&&t.eventsAnyListeners.length&&t.eventsAnyListeners.forEach(t=>{t.apply(n,[e,...s])}),t.eventsListeners&&t.eventsListeners[e]&&t.eventsListeners[e].forEach(e=>{e.apply(n,s)})}),t}},update:{updateSize:function(){const e=this;let t,i;const s=e.$el;t=void 0!==e.params.width&&null!==e.params.width?e.params.width:s[0].clientWidth,i=void 0!==e.params.height&&null!==e.params.height?e.params.height:s[0].clientHeight,0===t&&e.isHorizontal()||0===i&&e.isVertical()||(t=t-parseInt(s.css("padding-left")||0,10)-parseInt(s.css("padding-right")||0,10),i=i-parseInt(s.css("padding-top")||0,10)-parseInt(s.css("padding-bottom")||0,10),Number.isNaN(t)&&(t=0),Number.isNaN(i)&&(i=0),Object.assign(e,{width:t,height:i,size:e.isHorizontal()?t:i}))},updateSlides:function(){const e=this;function t(t){return e.isHorizontal()?t:{width:"height","margin-top":"margin-left","margin-bottom ":"margin-right","margin-left":"margin-top","margin-right":"margin-bottom","padding-left":"padding-top","padding-right":"padding-bottom",marginRight:"marginBottom"}[t]}function i(e,i){return parseFloat(e.getPropertyValue(t(i))||0)}const s=e.params,{$wrapperEl:n,size:a,rtlTranslate:o,wrongRTL:r}=e,l=e.virtual&&s.virtual.enabled,c=l?e.virtual.slides.length:e.slides.length,d=n.children("."+e.params.slideClass),h=l?e.virtual.slides.length:d.length;let u=[];const p=[],f=[];let m=s.slidesOffsetBefore;"function"==typeof m&&(m=s.slidesOffsetBefore.call(e));let g=s.slidesOffsetAfter;"function"==typeof g&&(g=s.slidesOffsetAfter.call(e));const v=e.snapGrid.length,b=e.slidesGrid.length;let y=s.spaceBetween,w=-m,x=0,S=0;if(void 0===a)return;"string"==typeof y&&y.indexOf("%")>=0&&(y=parseFloat(y.replace("%",""))/100*a),e.virtualSize=-y,o?d.css({marginLeft:"",marginBottom:"",marginTop:""}):d.css({marginRight:"",marginBottom:"",marginTop:""}),s.centeredSlides&&s.cssMode&&(E(e.wrapperEl,"--swiper-centered-offset-before",""),E(e.wrapperEl,"--swiper-centered-offset-after",""));const C=s.grid&&s.grid.rows>1&&e.grid;let T;C&&e.grid.initSlides(h);const M="auto"===s.slidesPerView&&s.breakpoints&&Object.keys(s.breakpoints).filter(e=>void 0!==s.breakpoints[e].slidesPerView).length>0;for(let n=0;n<h;n+=1){T=0;const o=d.eq(n);if(C&&e.grid.updateSlide(n,o,h,t),"none"!==o.css("display")){if("auto"===s.slidesPerView){M&&(d[n].style[t("width")]="");const a=getComputedStyle(o[0]),r=o[0].style.transform,l=o[0].style.webkitTransform;if(r&&(o[0].style.transform="none"),l&&(o[0].style.webkitTransform="none"),s.roundLengths)T=e.isHorizontal()?o.outerWidth(!0):o.outerHeight(!0);else{const e=i(a,"width"),t=i(a,"padding-left"),s=i(a,"padding-right"),n=i(a,"margin-left"),r=i(a,"margin-right"),l=a.getPropertyValue("box-sizing");if(l&&"border-box"===l)T=e+n+r;else{const{clientWidth:i,offsetWidth:a}=o[0];T=e+t+s+n+r+(a-i)}}r&&(o[0].style.transform=r),l&&(o[0].style.webkitTransform=l),s.roundLengths&&(T=Math.floor(T))}else T=(a-(s.slidesPerView-1)*y)/s.slidesPerView,s.roundLengths&&(T=Math.floor(T)),d[n]&&(d[n].style[t("width")]=T+"px");d[n]&&(d[n].swiperSlideSize=T),f.push(T),s.centeredSlides?(w=w+T/2+x/2+y,0===x&&0!==n&&(w=w-a/2-y),0===n&&(w=w-a/2-y),Math.abs(w)<.001&&(w=0),s.roundLengths&&(w=Math.floor(w)),S%s.slidesPerGroup==0&&u.push(w),p.push(w)):(s.roundLengths&&(w=Math.floor(w)),(S-Math.min(e.params.slidesPerGroupSkip,S))%e.params.slidesPerGroup==0&&u.push(w),p.push(w),w=w+T+y),e.virtualSize+=T+y,x=T,S+=1}}if(e.virtualSize=Math.max(e.virtualSize,a)+g,o&&r&&("slide"===s.effect||"coverflow"===s.effect)&&n.css({width:e.virtualSize+s.spaceBetween+"px"}),s.setWrapperSize&&n.css({[t("width")]:e.virtualSize+s.spaceBetween+"px"}),C&&e.grid.updateWrapperSize(T,u,t),!s.centeredSlides){const t=[];for(let i=0;i<u.length;i+=1){let n=u[i];s.roundLengths&&(n=Math.floor(n)),u[i]<=e.virtualSize-a&&t.push(n)}u=t,Math.floor(e.virtualSize-a)-Math.floor(u[u.length-1])>1&&u.push(e.virtualSize-a)}if(0===u.length&&(u=[0]),0!==s.spaceBetween){const i=e.isHorizontal()&&o?"marginLeft":t("marginRight");d.filter((e,t)=>!s.cssMode||t!==d.length-1).css({[i]:y+"px"})}if(s.centeredSlides&&s.centeredSlidesBounds){let e=0;f.forEach(t=>{e+=t+(s.spaceBetween?s.spaceBetween:0)}),e-=s.spaceBetween;const t=e-a;u=u.map(e=>e<0?-m:e>t?t+g:e)}if(s.centerInsufficientSlides){let e=0;if(f.forEach(t=>{e+=t+(s.spaceBetween?s.spaceBetween:0)}),e-=s.spaceBetween,e<a){const t=(a-e)/2;u.forEach((e,i)=>{u[i]=e-t}),p.forEach((e,i)=>{p[i]=e+t})}}if(Object.assign(e,{slides:d,snapGrid:u,slidesGrid:p,slidesSizesGrid:f}),s.centeredSlides&&s.cssMode&&!s.centeredSlidesBounds){E(e.wrapperEl,"--swiper-centered-offset-before",-u[0]+"px"),E(e.wrapperEl,"--swiper-centered-offset-after",e.size/2-f[f.length-1]/2+"px");const t=-e.snapGrid[0],i=-e.slidesGrid[0];e.snapGrid=e.snapGrid.map(e=>e+t),e.slidesGrid=e.slidesGrid.map(e=>e+i)}if(h!==c&&e.emit("slidesLengthChange"),u.length!==v&&(e.params.watchOverflow&&e.checkOverflow(),e.emit("snapGridLengthChange")),p.length!==b&&e.emit("slidesGridLengthChange"),s.watchSlidesProgress&&e.updateSlidesOffset(),!(l||s.cssMode||"slide"!==s.effect&&"fade"!==s.effect)){const t=s.containerModifierClass+"backface-hidden",i=e.$el.hasClass(t);h<=s.maxBackfaceHiddenSlides?i||e.$el.addClass(t):i&&e.$el.removeClass(t)}},updateAutoHeight:function(e){const t=this,i=[],s=t.virtual&&t.params.virtual.enabled;let n,a=0;"number"==typeof e?t.setTransition(e):!0===e&&t.setTransition(t.params.speed);const o=e=>s?t.slides.filter(t=>parseInt(t.getAttribute("data-swiper-slide-index"),10)===e)[0]:t.slides.eq(e)[0];if("auto"!==t.params.slidesPerView&&t.params.slidesPerView>1)if(t.params.centeredSlides)(t.visibleSlides||g([])).each(e=>{i.push(e)});else for(n=0;n<Math.ceil(t.params.slidesPerView);n+=1){const e=t.activeIndex+n;if(e>t.slides.length&&!s)break;i.push(o(e))}else i.push(o(t.activeIndex));for(n=0;n<i.length;n+=1)if(void 0!==i[n]){const e=i[n].offsetHeight;a=e>a?e:a}(a||0===a)&&t.$wrapperEl.css("height",a+"px")},updateSlidesOffset:function(){const e=this,t=e.slides;for(let i=0;i<t.length;i+=1)t[i].swiperSlideOffset=e.isHorizontal()?t[i].offsetLeft:t[i].offsetTop},updateSlidesProgress:function(e=this&&this.translate||0){const t=this,i=t.params,{slides:s,rtlTranslate:n,snapGrid:a}=t;if(0===s.length)return;void 0===s[0].swiperSlideOffset&&t.updateSlidesOffset();let o=-e;n&&(o=e),s.removeClass(i.slideVisibleClass),t.visibleSlidesIndexes=[],t.visibleSlides=[];for(let e=0;e<s.length;e+=1){const r=s[e];let l=r.swiperSlideOffset;i.cssMode&&i.centeredSlides&&(l-=s[0].swiperSlideOffset);const c=(o+(i.centeredSlides?t.minTranslate():0)-l)/(r.swiperSlideSize+i.spaceBetween),d=(o-a[0]+(i.centeredSlides?t.minTranslate():0)-l)/(r.swiperSlideSize+i.spaceBetween),h=-(o-l),u=h+t.slidesSizesGrid[e];(h>=0&&h<t.size-1||u>1&&u<=t.size||h<=0&&u>=t.size)&&(t.visibleSlides.push(r),t.visibleSlidesIndexes.push(e),s.eq(e).addClass(i.slideVisibleClass)),r.progress=n?-c:c,r.originalProgress=n?-d:d}t.visibleSlides=g(t.visibleSlides)},updateProgress:function(e){const t=this;if(void 0===e){const i=t.rtlTranslate?-1:1;e=t&&t.translate&&t.translate*i||0}const i=t.params,s=t.maxTranslate()-t.minTranslate();let{progress:n,isBeginning:a,isEnd:o}=t;const r=a,l=o;0===s?(n=0,a=!0,o=!0):(n=(e-t.minTranslate())/s,a=n<=0,o=n>=1),Object.assign(t,{progress:n,isBeginning:a,isEnd:o}),(i.watchSlidesProgress||i.centeredSlides&&i.autoHeight)&&t.updateSlidesProgress(e),a&&!r&&t.emit("reachBeginning toEdge"),o&&!l&&t.emit("reachEnd toEdge"),(r&&!a||l&&!o)&&t.emit("fromEdge"),t.emit("progress",n)},updateSlidesClasses:function(){const e=this,{slides:t,params:i,$wrapperEl:s,activeIndex:n,realIndex:a}=e,o=e.virtual&&i.virtual.enabled;let r;t.removeClass(`${i.slideActiveClass} ${i.slideNextClass} ${i.slidePrevClass} ${i.slideDuplicateActiveClass} ${i.slideDuplicateNextClass} ${i.slideDuplicatePrevClass}`),r=o?e.$wrapperEl.find(`.${i.slideClass}[data-swiper-slide-index="${n}"]`):t.eq(n),r.addClass(i.slideActiveClass),i.loop&&(r.hasClass(i.slideDuplicateClass)?s.children(`.${i.slideClass}:not(.${i.slideDuplicateClass})[data-swiper-slide-index="${a}"]`).addClass(i.slideDuplicateActiveClass):s.children(`.${i.slideClass}.${i.slideDuplicateClass}[data-swiper-slide-index="${a}"]`).addClass(i.slideDuplicateActiveClass));let l=r.nextAll("."+i.slideClass).eq(0).addClass(i.slideNextClass);i.loop&&0===l.length&&(l=t.eq(0),l.addClass(i.slideNextClass));let c=r.prevAll("."+i.slideClass).eq(0).addClass(i.slidePrevClass);i.loop&&0===c.length&&(c=t.eq(-1),c.addClass(i.slidePrevClass)),i.loop&&(l.hasClass(i.slideDuplicateClass)?s.children(`.${i.slideClass}:not(.${i.slideDuplicateClass})[data-swiper-slide-index="${l.attr("data-swiper-slide-index")}"]`).addClass(i.slideDuplicateNextClass):s.children(`.${i.slideClass}.${i.slideDuplicateClass}[data-swiper-slide-index="${l.attr("data-swiper-slide-index")}"]`).addClass(i.slideDuplicateNextClass),c.hasClass(i.slideDuplicateClass)?s.children(`.${i.slideClass}:not(.${i.slideDuplicateClass})[data-swiper-slide-index="${c.attr("data-swiper-slide-index")}"]`).addClass(i.slideDuplicatePrevClass):s.children(`.${i.slideClass}.${i.slideDuplicateClass}[data-swiper-slide-index="${c.attr("data-swiper-slide-index")}"]`).addClass(i.slideDuplicatePrevClass)),e.emitSlidesClasses()},updateActiveIndex:function(e){const t=this,i=t.rtlTranslate?t.translate:-t.translate,{slidesGrid:s,snapGrid:n,params:a,activeIndex:o,realIndex:r,snapIndex:l}=t;let c,d=e;if(void 0===d){for(let e=0;e<s.length;e+=1)void 0!==s[e+1]?i>=s[e]&&i<s[e+1]-(s[e+1]-s[e])/2?d=e:i>=s[e]&&i<s[e+1]&&(d=e+1):i>=s[e]&&(d=e);a.normalizeSlideIndex&&(d<0||void 0===d)&&(d=0)}if(n.indexOf(i)>=0)c=n.indexOf(i);else{const e=Math.min(a.slidesPerGroupSkip,d);c=e+Math.floor((d-e)/a.slidesPerGroup)}if(c>=n.length&&(c=n.length-1),d===o)return void(c!==l&&(t.snapIndex=c,t.emit("snapIndexChange")));const h=parseInt(t.slides.eq(d).attr("data-swiper-slide-index")||d,10);Object.assign(t,{snapIndex:c,realIndex:h,previousIndex:o,activeIndex:d}),t.emit("activeIndexChange"),t.emit("snapIndexChange"),r!==h&&t.emit("realIndexChange"),(t.initialized||t.params.runCallbacksOnInit)&&t.emit("slideChange")},updateClickedSlide:function(e){const t=this,i=t.params,s=g(e).closest("."+i.slideClass)[0];let n,a=!1;if(s)for(let e=0;e<t.slides.length;e+=1)if(t.slides[e]===s){a=!0,n=e;break}if(!s||!a)return t.clickedSlide=void 0,void(t.clickedIndex=void 0);t.clickedSlide=s,t.virtual&&t.params.virtual.enabled?t.clickedIndex=parseInt(g(s).attr("data-swiper-slide-index"),10):t.clickedIndex=n,i.slideToClickedSlide&&void 0!==t.clickedIndex&&t.clickedIndex!==t.activeIndex&&t.slideToClickedSlide()}},translate:{getTranslate:function(e=(this.isHorizontal()?"x":"y")){const{params:t,rtlTranslate:i,translate:s,$wrapperEl:n}=this;if(t.virtualTranslate)return i?-s:s;if(t.cssMode)return s;let a=y(n[0],e);return i&&(a=-a),a||0},setTranslate:function(e,t){const i=this,{rtlTranslate:s,params:n,$wrapperEl:a,wrapperEl:o,progress:r}=i;let l,c=0,d=0;i.isHorizontal()?c=s?-e:e:d=e,n.roundLengths&&(c=Math.floor(c),d=Math.floor(d)),n.cssMode?o[i.isHorizontal()?"scrollLeft":"scrollTop"]=i.isHorizontal()?-c:-d:n.virtualTranslate||a.transform(`translate3d(${c}px, ${d}px, 0px)`),i.previousTranslate=i.translate,i.translate=i.isHorizontal()?c:d;const h=i.maxTranslate()-i.minTranslate();l=0===h?0:(e-i.minTranslate())/h,l!==r&&i.updateProgress(e),i.emit("setTranslate",i.translate,t)},minTranslate:function(){return-this.snapGrid[0]},maxTranslate:function(){return-this.snapGrid[this.snapGrid.length-1]},translateTo:function(e=0,t=this.params.speed,i=!0,s=!0,n){const a=this,{params:o,wrapperEl:r}=a;if(a.animating&&o.preventInteractionOnTransition)return!1;const l=a.minTranslate(),c=a.maxTranslate();let d;if(d=s&&e>l?l:s&&e<c?c:e,a.updateProgress(d),o.cssMode){const e=a.isHorizontal();if(0===t)r[e?"scrollLeft":"scrollTop"]=-d;else{if(!a.support.smoothScroll)return S({swiper:a,targetPosition:-d,side:e?"left":"top"}),!0;r.scrollTo({[e?"left":"top"]:-d,behavior:"smooth"})}return!0}return 0===t?(a.setTransition(0),a.setTranslate(d),i&&(a.emit("beforeTransitionStart",t,n),a.emit("transitionEnd"))):(a.setTransition(t),a.setTranslate(d),i&&(a.emit("beforeTransitionStart",t,n),a.emit("transitionStart")),a.animating||(a.animating=!0,a.onTranslateToWrapperTransitionEnd||(a.onTranslateToWrapperTransitionEnd=function(e){a&&!a.destroyed&&e.target===this&&(a.$wrapperEl[0].removeEventListener("transitionend",a.onTranslateToWrapperTransitionEnd),a.$wrapperEl[0].removeEventListener("webkitTransitionEnd",a.onTranslateToWrapperTransitionEnd),a.onTranslateToWrapperTransitionEnd=null,delete a.onTranslateToWrapperTransitionEnd,i&&a.emit("transitionEnd"))}),a.$wrapperEl[0].addEventListener("transitionend",a.onTranslateToWrapperTransitionEnd),a.$wrapperEl[0].addEventListener("webkitTransitionEnd",a.onTranslateToWrapperTransitionEnd))),!0}},transition:{setTransition:function(e,t){const i=this;i.params.cssMode||i.$wrapperEl.transition(e),i.emit("setTransition",e,t)},transitionStart:function(e=!0,t){const i=this,{params:s}=i;s.cssMode||(s.autoHeight&&i.updateAutoHeight(),z({swiper:i,runCallbacks:e,direction:t,step:"Start"}))},transitionEnd:function(e=!0,t){const{params:i}=this;this.animating=!1,i.cssMode||(this.setTransition(0),z({swiper:this,runCallbacks:e,direction:t,step:"End"}))}},slide:{slideTo:function(e=0,t=this.params.speed,i=!0,s,n){if("number"!=typeof e&&"string"!=typeof e)throw new Error(`The 'index' argument cannot have type other than 'number' or 'string'. [${typeof e}] given.`);if("string"==typeof e){const t=parseInt(e,10);if(!isFinite(t))throw new Error(`The passed-in 'index' (string) couldn't be converted to 'number'. [${e}] given.`);e=t}const a=this;let o=e;o<0&&(o=0);const{params:r,snapGrid:l,slidesGrid:c,previousIndex:d,activeIndex:h,rtlTranslate:u,wrapperEl:p,enabled:f}=a;if(a.animating&&r.preventInteractionOnTransition||!f&&!s&&!n)return!1;const m=Math.min(a.params.slidesPerGroupSkip,o);let g=m+Math.floor((o-m)/a.params.slidesPerGroup);g>=l.length&&(g=l.length-1);const v=-l[g];if(r.normalizeSlideIndex)for(let e=0;e<c.length;e+=1){const t=-Math.floor(100*v),i=Math.floor(100*c[e]),s=Math.floor(100*c[e+1]);void 0!==c[e+1]?t>=i&&t<s-(s-i)/2?o=e:t>=i&&t<s&&(o=e+1):t>=i&&(o=e)}if(a.initialized&&o!==h){if(!a.allowSlideNext&&v<a.translate&&v<a.minTranslate())return!1;if(!a.allowSlidePrev&&v>a.translate&&v>a.maxTranslate()&&(h||0)!==o)return!1}let b;if(o!==(d||0)&&i&&a.emit("beforeSlideChangeStart"),a.updateProgress(v),b=o>h?"next":o<h?"prev":"reset",u&&-v===a.translate||!u&&v===a.translate)return a.updateActiveIndex(o),r.autoHeight&&a.updateAutoHeight(),a.updateSlidesClasses(),"slide"!==r.effect&&a.setTranslate(v),"reset"!==b&&(a.transitionStart(i,b),a.transitionEnd(i,b)),!1;if(r.cssMode){const e=a.isHorizontal(),i=u?v:-v;if(0===t){const t=a.virtual&&a.params.virtual.enabled;t&&(a.wrapperEl.style.scrollSnapType="none",a._immediateVirtual=!0),p[e?"scrollLeft":"scrollTop"]=i,t&&requestAnimationFrame(()=>{a.wrapperEl.style.scrollSnapType="",a._swiperImmediateVirtual=!1})}else{if(!a.support.smoothScroll)return S({swiper:a,targetPosition:i,side:e?"left":"top"}),!0;p.scrollTo({[e?"left":"top"]:i,behavior:"smooth"})}return!0}return a.setTransition(t),a.setTranslate(v),a.updateActiveIndex(o),a.updateSlidesClasses(),a.emit("beforeTransitionStart",t,s),a.transitionStart(i,b),0===t?a.transitionEnd(i,b):a.animating||(a.animating=!0,a.onSlideToWrapperTransitionEnd||(a.onSlideToWrapperTransitionEnd=function(e){a&&!a.destroyed&&e.target===this&&(a.$wrapperEl[0].removeEventListener("transitionend",a.onSlideToWrapperTransitionEnd),a.$wrapperEl[0].removeEventListener("webkitTransitionEnd",a.onSlideToWrapperTransitionEnd),a.onSlideToWrapperTransitionEnd=null,delete a.onSlideToWrapperTransitionEnd,a.transitionEnd(i,b))}),a.$wrapperEl[0].addEventListener("transitionend",a.onSlideToWrapperTransitionEnd),a.$wrapperEl[0].addEventListener("webkitTransitionEnd",a.onSlideToWrapperTransitionEnd)),!0},slideToLoop:function(e=0,t=this.params.speed,i=!0,s){if("string"==typeof e){const t=parseInt(e,10);if(!isFinite(t))throw new Error(`The passed-in 'index' (string) couldn't be converted to 'number'. [${e}] given.`);e=t}const n=this;let a=e;return n.params.loop&&(a+=n.loopedSlides),n.slideTo(a,t,i,s)},slideNext:function(e=this.params.speed,t=!0,i){const s=this,{animating:n,enabled:a,params:o}=s;if(!a)return s;let r=o.slidesPerGroup;"auto"===o.slidesPerView&&1===o.slidesPerGroup&&o.slidesPerGroupAuto&&(r=Math.max(s.slidesPerViewDynamic("current",!0),1));const l=s.activeIndex<o.slidesPerGroupSkip?1:r;if(o.loop){if(n&&o.loopPreventsSlide)return!1;s.loopFix(),s._clientLeft=s.$wrapperEl[0].clientLeft}return o.rewind&&s.isEnd?s.slideTo(0,e,t,i):s.slideTo(s.activeIndex+l,e,t,i)},slidePrev:function(e=this.params.speed,t=!0,i){const s=this,{params:n,animating:a,snapGrid:o,slidesGrid:r,rtlTranslate:l,enabled:c}=s;if(!c)return s;if(n.loop){if(a&&n.loopPreventsSlide)return!1;s.loopFix(),s._clientLeft=s.$wrapperEl[0].clientLeft}function d(e){return e<0?-Math.floor(Math.abs(e)):Math.floor(e)}const h=d(l?s.translate:-s.translate),u=o.map(e=>d(e));let p=o[u.indexOf(h)-1];if(void 0===p&&n.cssMode){let e;o.forEach((t,i)=>{h>=t&&(e=i)}),void 0!==e&&(p=o[e>0?e-1:e])}let f=0;if(void 0!==p&&(f=r.indexOf(p),f<0&&(f=s.activeIndex-1),"auto"===n.slidesPerView&&1===n.slidesPerGroup&&n.slidesPerGroupAuto&&(f=f-s.slidesPerViewDynamic("previous",!0)+1,f=Math.max(f,0))),n.rewind&&s.isBeginning){const n=s.params.virtual&&s.params.virtual.enabled&&s.virtual?s.virtual.slides.length-1:s.slides.length-1;return s.slideTo(n,e,t,i)}return s.slideTo(f,e,t,i)},slideReset:function(e=this.params.speed,t=!0,i){return this.slideTo(this.activeIndex,e,t,i)},slideToClosest:function(e=this.params.speed,t=!0,i,s=.5){const n=this;let a=n.activeIndex;const o=Math.min(n.params.slidesPerGroupSkip,a),r=o+Math.floor((a-o)/n.params.slidesPerGroup),l=n.rtlTranslate?n.translate:-n.translate;if(l>=n.snapGrid[r]){const e=n.snapGrid[r];l-e>(n.snapGrid[r+1]-e)*s&&(a+=n.params.slidesPerGroup)}else{const e=n.snapGrid[r-1];l-e<=(n.snapGrid[r]-e)*s&&(a-=n.params.slidesPerGroup)}return a=Math.max(a,0),a=Math.min(a,n.slidesGrid.length-1),n.slideTo(a,e,t,i)},slideToClickedSlide:function(){const e=this,{params:t,$wrapperEl:i}=e,s="auto"===t.slidesPerView?e.slidesPerViewDynamic():t.slidesPerView;let n,a=e.clickedIndex;if(t.loop){if(e.animating)return;n=parseInt(g(e.clickedSlide).attr("data-swiper-slide-index"),10),t.centeredSlides?a<e.loopedSlides-s/2||a>e.slides.length-e.loopedSlides+s/2?(e.loopFix(),a=i.children(`.${t.slideClass}[data-swiper-slide-index="${n}"]:not(.${t.slideDuplicateClass})`).eq(0).index(),v(()=>{e.slideTo(a)})):e.slideTo(a):a>e.slides.length-s?(e.loopFix(),a=i.children(`.${t.slideClass}[data-swiper-slide-index="${n}"]:not(.${t.slideDuplicateClass})`).eq(0).index(),v(()=>{e.slideTo(a)})):e.slideTo(a)}else e.slideTo(a)}},loop:{loopCreate:function(){const e=this,t=o(),{params:i,$wrapperEl:s}=e,n=s.children().length>0?g(s.children()[0].parentNode):s;n.children(`.${i.slideClass}.${i.slideDuplicateClass}`).remove();let a=n.children("."+i.slideClass);if(i.loopFillGroupWithBlank){const e=i.slidesPerGroup-a.length%i.slidesPerGroup;if(e!==i.slidesPerGroup){for(let s=0;s<e;s+=1){const e=g(t.createElement("div")).addClass(`${i.slideClass} ${i.slideBlankClass}`);n.append(e)}a=n.children("."+i.slideClass)}}"auto"!==i.slidesPerView||i.loopedSlides||(i.loopedSlides=a.length),e.loopedSlides=Math.ceil(parseFloat(i.loopedSlides||i.slidesPerView,10)),e.loopedSlides+=i.loopAdditionalSlides,e.loopedSlides>a.length&&e.params.loopedSlidesLimit&&(e.loopedSlides=a.length);const r=[],l=[];a.each((e,t)=>{g(e).attr("data-swiper-slide-index",t)});for(let t=0;t<e.loopedSlides;t+=1){const e=t-Math.floor(t/a.length)*a.length;l.push(a.eq(e)[0]),r.unshift(a.eq(a.length-e-1)[0])}for(let e=0;e<l.length;e+=1)n.append(g(l[e].cloneNode(!0)).addClass(i.slideDuplicateClass));for(let e=r.length-1;e>=0;e-=1)n.prepend(g(r[e].cloneNode(!0)).addClass(i.slideDuplicateClass))},loopFix:function(){const e=this;e.emit("beforeLoopFix");const{activeIndex:t,slides:i,loopedSlides:s,allowSlidePrev:n,allowSlideNext:a,snapGrid:o,rtlTranslate:r}=e;let l;e.allowSlidePrev=!0,e.allowSlideNext=!0;const c=-o[t]-e.getTranslate();if(t<s){l=i.length-3*s+t,l+=s;e.slideTo(l,0,!1,!0)&&0!==c&&e.setTranslate((r?-e.translate:e.translate)-c)}else if(t>=i.length-s){l=-i.length+t+s,l+=s;e.slideTo(l,0,!1,!0)&&0!==c&&e.setTranslate((r?-e.translate:e.translate)-c)}e.allowSlidePrev=n,e.allowSlideNext=a,e.emit("loopFix")},loopDestroy:function(){const{$wrapperEl:e,params:t,slides:i}=this;e.children(`.${t.slideClass}.${t.slideDuplicateClass},.${t.slideClass}.${t.slideBlankClass}`).remove(),i.removeAttr("data-swiper-slide-index")}},grabCursor:{setGrabCursor:function(e){if(this.support.touch||!this.params.simulateTouch||this.params.watchOverflow&&this.isLocked||this.params.cssMode)return;const t="container"===this.params.touchEventsTarget?this.el:this.wrapperEl;t.style.cursor="move",t.style.cursor=e?"grabbing":"grab"},unsetGrabCursor:function(){this.support.touch||this.params.watchOverflow&&this.isLocked||this.params.cssMode||(this["container"===this.params.touchEventsTarget?"el":"wrapperEl"].style.cursor="")}},events:{attachEvents:function(){const e=this,t=o(),{params:i,support:s}=e;e.onTouchStart=L.bind(e),e.onTouchMove=A.bind(e),e.onTouchEnd=$.bind(e),i.cssMode&&(e.onScroll=D.bind(e)),e.onClick=R.bind(e),s.touch&&!j&&(t.addEventListener("touchstart",F),j=!0),N(e,"on")},detachEvents:function(){N(this,"off")}},breakpoints:{setBreakpoint:function(){const e=this,{activeIndex:t,initialized:i,loopedSlides:s=0,params:n,$el:a}=e,o=n.breakpoints;if(!o||o&&0===Object.keys(o).length)return;const r=e.getBreakpoint(o,e.params.breakpointsBase,e.el);if(!r||e.currentBreakpoint===r)return;const l=(r in o?o[r]:void 0)||e.originalParams,c=H(e,n),d=H(e,l),h=n.enabled;c&&!d?(a.removeClass(`${n.containerModifierClass}grid ${n.containerModifierClass}grid-column`),e.emitContainerClasses()):!c&&d&&(a.addClass(n.containerModifierClass+"grid"),(l.grid.fill&&"column"===l.grid.fill||!l.grid.fill&&"column"===n.grid.fill)&&a.addClass(n.containerModifierClass+"grid-column"),e.emitContainerClasses()),["navigation","pagination","scrollbar"].forEach(t=>{const i=n[t]&&n[t].enabled,s=l[t]&&l[t].enabled;i&&!s&&e[t].disable(),!i&&s&&e[t].enable()});const u=l.direction&&l.direction!==n.direction,p=n.loop&&(l.slidesPerView!==n.slidesPerView||u);u&&i&&e.changeDirection(),x(e.params,l);const f=e.params.enabled;Object.assign(e,{allowTouchMove:e.params.allowTouchMove,allowSlideNext:e.params.allowSlideNext,allowSlidePrev:e.params.allowSlidePrev}),h&&!f?e.disable():!h&&f&&e.enable(),e.currentBreakpoint=r,e.emit("_beforeBreakpoint",l),p&&i&&(e.loopDestroy(),e.loopCreate(),e.updateSlides(),e.slideTo(t-s+e.loopedSlides,0,!1)),e.emit("breakpoint",l)},getBreakpoint:function(e,t="window",i){if(!e||"container"===t&&!i)return;let s=!1;const n=l(),a="window"===t?n.innerHeight:i.clientHeight,o=Object.keys(e).map(e=>{if("string"==typeof e&&0===e.indexOf("@")){const t=parseFloat(e.substr(1));return{value:a*t,point:e}}return{value:e,point:e}});o.sort((e,t)=>parseInt(e.value,10)-parseInt(t.value,10));for(let e=0;e<o.length;e+=1){const{point:a,value:r}=o[e];"window"===t?n.matchMedia(`(min-width: ${r}px)`).matches&&(s=a):r<=i.clientWidth&&(s=a)}return s||"max"}},checkOverflow:{checkOverflow:function(){const e=this,{isLocked:t,params:i}=e,{slidesOffsetBefore:s}=i;if(s){const t=e.slides.length-1,i=e.slidesGrid[t]+e.slidesSizesGrid[t]+2*s;e.isLocked=e.size>i}else e.isLocked=1===e.snapGrid.length;!0===i.allowSlideNext&&(e.allowSlideNext=!e.isLocked),!0===i.allowSlidePrev&&(e.allowSlidePrev=!e.isLocked),t&&t!==e.isLocked&&(e.isEnd=!1),t!==e.isLocked&&e.emit(e.isLocked?"lock":"unlock")}},classes:{addClasses:function(){const{classNames:e,params:t,rtl:i,$el:s,device:n,support:a}=this,o=function(e,t){const i=[];return e.forEach(e=>{"object"==typeof e?Object.keys(e).forEach(s=>{e[s]&&i.push(t+s)}):"string"==typeof e&&i.push(t+e)}),i}(["initialized",t.direction,{"pointer-events":!a.touch},{"free-mode":this.params.freeMode&&t.freeMode.enabled},{autoheight:t.autoHeight},{rtl:i},{grid:t.grid&&t.grid.rows>1},{"grid-column":t.grid&&t.grid.rows>1&&"column"===t.grid.fill},{android:n.android},{ios:n.ios},{"css-mode":t.cssMode},{centered:t.cssMode&&t.centeredSlides},{"watch-progress":t.watchSlidesProgress}],t.containerModifierClass);e.push(...o),s.addClass([...e].join(" ")),this.emitContainerClasses()},removeClasses:function(){const{$el:e,classNames:t}=this;e.removeClass(t.join(" ")),this.emitContainerClasses()}},images:{loadImage:function(e,t,i,s,n,a){const o=l();let r;function c(){a&&a()}g(e).parent("picture")[0]||e.complete&&n?c():t?(r=new o.Image,r.onload=c,r.onerror=c,s&&(r.sizes=s),i&&(r.srcset=i),t&&(r.src=t)):c()},preloadImages:function(){const e=this;function t(){null!=e&&e&&!e.destroyed&&(void 0!==e.imagesLoaded&&(e.imagesLoaded+=1),e.imagesLoaded===e.imagesToLoad.length&&(e.params.updateOnImagesReady&&e.update(),e.emit("imagesReady")))}e.imagesToLoad=e.$el.find("img");for(let i=0;i<e.imagesToLoad.length;i+=1){const s=e.imagesToLoad[i];e.loadImage(s,s.currentSrc||s.getAttribute("src"),s.srcset||s.getAttribute("srcset"),s.sizes||s.getAttribute("sizes"),!0,t)}}}},X={};class Y{constructor(...e){let t,i;if(1===e.length&&e[0].constructor&&"Object"===Object.prototype.toString.call(e[0]).slice(8,-1)?i=e[0]:[t,i]=e,i||(i={}),i=x({},i),t&&!i.el&&(i.el=t),i.el&&g(i.el).length>1){const e=[];return g(i.el).each(t=>{const s=x({},i,{el:t});e.push(new Y(s))}),e}const s=this;s.__swiper__=!0,s.support=P(),s.device=O({userAgent:i.userAgent}),s.browser=k(),s.eventsListeners={},s.eventsAnyListeners=[],s.modules=[...s.__modules__],i.modules&&Array.isArray(i.modules)&&s.modules.push(...i.modules);const n={};s.modules.forEach(e=>{e({swiper:s,extendParams:_(i,n),on:s.on.bind(s),once:s.once.bind(s),off:s.off.bind(s),emit:s.emit.bind(s)})});const a=x({},B,n);return s.params=x({},a,X,i),s.originalParams=x({},s.params),s.passedParams=x({},i),s.params&&s.params.on&&Object.keys(s.params.on).forEach(e=>{s.on(e,s.params.on[e])}),s.params&&s.params.onAny&&s.onAny(s.params.onAny),s.$=g,Object.assign(s,{enabled:s.params.enabled,el:t,classNames:[],slides:g(),slidesGrid:[],snapGrid:[],slidesSizesGrid:[],isHorizontal:()=>"horizontal"===s.params.direction,isVertical:()=>"vertical"===s.params.direction,activeIndex:0,realIndex:0,isBeginning:!0,isEnd:!1,translate:0,previousTranslate:0,progress:0,velocity:0,animating:!1,allowSlideNext:s.params.allowSlideNext,allowSlidePrev:s.params.allowSlidePrev,touchEvents:function(){const e=["touchstart","touchmove","touchend","touchcancel"],t=["pointerdown","pointermove","pointerup"];return s.touchEventsTouch={start:e[0],move:e[1],end:e[2],cancel:e[3]},s.touchEventsDesktop={start:t[0],move:t[1],end:t[2]},s.support.touch||!s.params.simulateTouch?s.touchEventsTouch:s.touchEventsDesktop}(),touchEventsData:{isTouched:void 0,isMoved:void 0,allowTouchCallbacks:void 0,touchStartTime:void 0,isScrolling:void 0,currentTranslate:void 0,startTranslate:void 0,allowThresholdMove:void 0,focusableElements:s.params.focusableElements,lastClickTime:b(),clickTimeout:void 0,velocities:[],allowMomentumBounce:void 0,isTouchEvent:void 0,startMoving:void 0},allowClick:!0,allowTouchMove:s.params.allowTouchMove,touches:{startX:0,startY:0,currentX:0,currentY:0,diff:0},imagesToLoad:[],imagesLoaded:0}),s.emit("_swiper"),s.params.init&&s.init(),s}enable(){const e=this;e.enabled||(e.enabled=!0,e.params.grabCursor&&e.setGrabCursor(),e.emit("enable"))}disable(){const e=this;e.enabled&&(e.enabled=!1,e.params.grabCursor&&e.unsetGrabCursor(),e.emit("disable"))}setProgress(e,t){e=Math.min(Math.max(e,0),1);const i=this.minTranslate(),s=(this.maxTranslate()-i)*e+i;this.translateTo(s,void 0===t?0:t),this.updateActiveIndex(),this.updateSlidesClasses()}emitContainerClasses(){const e=this;if(!e.params._emitClasses||!e.el)return;const t=e.el.className.split(" ").filter(t=>0===t.indexOf("swiper")||0===t.indexOf(e.params.containerModifierClass));e.emit("_containerClasses",t.join(" "))}getSlideClasses(e){const t=this;return t.destroyed?"":e.className.split(" ").filter(e=>0===e.indexOf("swiper-slide")||0===e.indexOf(t.params.slideClass)).join(" ")}emitSlidesClasses(){const e=this;if(!e.params._emitClasses||!e.el)return;const t=[];e.slides.each(i=>{const s=e.getSlideClasses(i);t.push({slideEl:i,classNames:s}),e.emit("_slideClass",i,s)}),e.emit("_slideClasses",t)}slidesPerViewDynamic(e="current",t=!1){const{params:i,slides:s,slidesGrid:n,slidesSizesGrid:a,size:o,activeIndex:r}=this;let l=1;if(i.centeredSlides){let e,t=s[r].swiperSlideSize;for(let i=r+1;i<s.length;i+=1)s[i]&&!e&&(t+=s[i].swiperSlideSize,l+=1,t>o&&(e=!0));for(let i=r-1;i>=0;i-=1)s[i]&&!e&&(t+=s[i].swiperSlideSize,l+=1,t>o&&(e=!0))}else if("current"===e)for(let e=r+1;e<s.length;e+=1){(t?n[e]+a[e]-n[r]<o:n[e]-n[r]<o)&&(l+=1)}else for(let e=r-1;e>=0;e-=1){n[r]-n[e]<o&&(l+=1)}return l}update(){const e=this;if(!e||e.destroyed)return;const{snapGrid:t,params:i}=e;function s(){const t=e.rtlTranslate?-1*e.translate:e.translate,i=Math.min(Math.max(t,e.maxTranslate()),e.minTranslate());e.setTranslate(i),e.updateActiveIndex(),e.updateSlidesClasses()}let n;i.breakpoints&&e.setBreakpoint(),e.updateSize(),e.updateSlides(),e.updateProgress(),e.updateSlidesClasses(),e.params.freeMode&&e.params.freeMode.enabled?(s(),e.params.autoHeight&&e.updateAutoHeight()):(n=("auto"===e.params.slidesPerView||e.params.slidesPerView>1)&&e.isEnd&&!e.params.centeredSlides?e.slideTo(e.slides.length-1,0,!1,!0):e.slideTo(e.activeIndex,0,!1,!0),n||s()),i.watchOverflow&&t!==e.snapGrid&&e.checkOverflow(),e.emit("update")}changeDirection(e,t=!0){const i=this,s=i.params.direction;return e||(e="horizontal"===s?"vertical":"horizontal"),e===s||"horizontal"!==e&&"vertical"!==e||(i.$el.removeClass(`${i.params.containerModifierClass}${s}`).addClass(`${i.params.containerModifierClass}${e}`),i.emitContainerClasses(),i.params.direction=e,i.slides.each(t=>{"vertical"===e?t.style.width="":t.style.height=""}),i.emit("changeDirection"),t&&i.update()),i}changeLanguageDirection(e){const t=this;t.rtl&&"rtl"===e||!t.rtl&&"ltr"===e||(t.rtl="rtl"===e,t.rtlTranslate="horizontal"===t.params.direction&&t.rtl,t.rtl?(t.$el.addClass(t.params.containerModifierClass+"rtl"),t.el.dir="rtl"):(t.$el.removeClass(t.params.containerModifierClass+"rtl"),t.el.dir="ltr"),t.update())}mount(e){const t=this;if(t.mounted)return!0;const i=g(e||t.params.el);if(!(e=i[0]))return!1;e.swiper=t;const s=()=>"."+(t.params.wrapperClass||"").trim().split(" ").join(".");let n=(()=>{if(e&&e.shadowRoot&&e.shadowRoot.querySelector){const t=g(e.shadowRoot.querySelector(s()));return t.children=e=>i.children(e),t}return i.children?i.children(s()):g(i).children(s())})();if(0===n.length&&t.params.createElements){const e=o().createElement("div");n=g(e),e.className=t.params.wrapperClass,i.append(e),i.children("."+t.params.slideClass).each(e=>{n.append(e)})}return Object.assign(t,{$el:i,el:e,$wrapperEl:n,wrapperEl:n[0],mounted:!0,rtl:"rtl"===e.dir.toLowerCase()||"rtl"===i.css("direction"),rtlTranslate:"horizontal"===t.params.direction&&("rtl"===e.dir.toLowerCase()||"rtl"===i.css("direction")),wrongRTL:"-webkit-box"===n.css("display")}),!0}init(e){const t=this;if(t.initialized)return t;return!1===t.mount(e)||(t.emit("beforeInit"),t.params.breakpoints&&t.setBreakpoint(),t.addClasses(),t.params.loop&&t.loopCreate(),t.updateSize(),t.updateSlides(),t.params.watchOverflow&&t.checkOverflow(),t.params.grabCursor&&t.enabled&&t.setGrabCursor(),t.params.preloadImages&&t.preloadImages(),t.params.loop?t.slideTo(t.params.initialSlide+t.loopedSlides,0,t.params.runCallbacksOnInit,!1,!0):t.slideTo(t.params.initialSlide,0,t.params.runCallbacksOnInit,!1,!0),t.attachEvents(),t.initialized=!0,t.emit("init"),t.emit("afterInit")),t}destroy(e=!0,t=!0){const i=this,{params:s,$el:n,$wrapperEl:a,slides:o}=i;return void 0===i.params||i.destroyed||(i.emit("beforeDestroy"),i.initialized=!1,i.detachEvents(),s.loop&&i.loopDestroy(),t&&(i.removeClasses(),n.removeAttr("style"),a.removeAttr("style"),o&&o.length&&o.removeClass([s.slideVisibleClass,s.slideActiveClass,s.slideNextClass,s.slidePrevClass].join(" ")).removeAttr("style").removeAttr("data-swiper-slide-index")),i.emit("destroy"),Object.keys(i.eventsListeners).forEach(e=>{i.off(e)}),!1!==e&&(i.$el[0].swiper=null,function(e){const t=e;Object.keys(t).forEach(e=>{try{t[e]=null}catch(e){}try{delete t[e]}catch(e){}})}(i)),i.destroyed=!0),null}static extendDefaults(e){x(X,e)}static get extendedDefaults(){return X}static get defaults(){return B}static installModule(e){Y.prototype.__modules__||(Y.prototype.__modules__=[]);const t=Y.prototype.__modules__;"function"==typeof e&&t.indexOf(e)<0&&t.push(e)}static use(e){return Array.isArray(e)?(e.forEach(e=>Y.installModule(e)),Y):(Y.installModule(e),Y)}}Object.keys(W).forEach(e=>{Object.keys(W[e]).forEach(t=>{Y.prototype[t]=W[e][t]})}),Y.use([function({swiper:e,on:t,emit:i}){const s=l();let n=null,a=null;const o=()=>{e&&!e.destroyed&&e.initialized&&(i("beforeResize"),i("resize"))},r=()=>{e&&!e.destroyed&&e.initialized&&i("orientationchange")};t("init",()=>{e.params.resizeObserver&&void 0!==s.ResizeObserver?e&&!e.destroyed&&e.initialized&&(n=new ResizeObserver(t=>{a=s.requestAnimationFrame(()=>{const{width:i,height:s}=e;let n=i,a=s;t.forEach(({contentBoxSize:t,contentRect:i,target:s})=>{s&&s!==e.el||(n=i?i.width:(t[0]||t).inlineSize,a=i?i.height:(t[0]||t).blockSize)}),n===i&&a===s||o()})}),n.observe(e.el)):(s.addEventListener("resize",o),s.addEventListener("orientationchange",r))}),t("destroy",()=>{a&&s.cancelAnimationFrame(a),n&&n.unobserve&&e.el&&(n.unobserve(e.el),n=null),s.removeEventListener("resize",o),s.removeEventListener("orientationchange",r)})},function({swiper:e,extendParams:t,on:i,emit:s}){const n=[],a=l(),o=(e,t={})=>{const i=new(a.MutationObserver||a.WebkitMutationObserver)(e=>{if(1===e.length)return void s("observerUpdate",e[0]);const t=function(){s("observerUpdate",e[0])};a.requestAnimationFrame?a.requestAnimationFrame(t):a.setTimeout(t,0)});i.observe(e,{attributes:void 0===t.attributes||t.attributes,childList:void 0===t.childList||t.childList,characterData:void 0===t.characterData||t.characterData}),n.push(i)};t({observer:!1,observeParents:!1,observeSlideChildren:!1}),i("init",()=>{if(e.params.observer){if(e.params.observeParents){const t=e.$el.parents();for(let e=0;e<t.length;e+=1)o(t[e])}o(e.$el[0],{childList:e.params.observeSlideChildren}),o(e.$wrapperEl[0],{attributes:!1})}}),i("destroy",()=>
1{n.forEach(e=>{e.disconnect()}),n.splice(0,n.length)})}]);var q=Y;function G(e,t,i,s){const n=o();return e.params.createElements&&Object.keys(s).forEach(a=>{if(!i[a]&&!0===i.auto){let o=e.$el.children("."+s[a])[0];o||(o=n.createElement("div"),o.className=s[a],e.$el.append(o)),i[a]=o,t[a]=o}}),i}function V(e=""){return"."+e.trim().replace(/([\.:!\/])/g,"\\$1").replace(/ /g,".")}function U(e){const t=this,{$wrapperEl:i,params:s}=t;if(s.loop&&t.loopDestroy(),"object"==typeof e&&"length"in e)for(let t=0;t<e.length;t+=1)e[t]&&i.append(e[t]);else i.append(e);s.loop&&t.loopCreate(),s.observer||t.update()}function Z(e){const t=this,{params:i,$wrapperEl:s,activeIndex:n}=t;i.loop&&t.loopDestroy();let a=n+1;if("object"==typeof e&&"length"in e){for(let t=0;t<e.length;t+=1)e[t]&&s.prepend(e[t]);a=n+e.length}else s.prepend(e);i.loop&&t.loopCreate(),i.observer||t.update(),t.slideTo(a,0,!1)}function K(e,t){const i=this,{$wrapperEl:s,params:n,activeIndex:a}=i;let o=a;n.loop&&(o-=i.loopedSlides,i.loopDestroy(),i.slides=s.children("."+n.slideClass));const r=i.slides.length;if(e<=0)return void i.prependSlide(t);if(e>=r)return void i.appendSlide(t);let l=o>e?o+1:o;const c=[];for(let t=r-1;t>=e;t-=1){const e=i.slides.eq(t);e.remove(),c.unshift(e)}if("object"==typeof t&&"length"in t){for(let e=0;e<t.length;e+=1)t[e]&&s.append(t[e]);l=o>e?o+t.length:o}else s.append(t);for(let e=0;e<c.length;e+=1)s.append(c[e]);n.loop&&i.loopCreate(),n.observer||i.update(),n.loop?i.slideTo(l+i.loopedSlides,0,!1):i.slideTo(l,0,!1)}function J(e){const t=this,{params:i,$wrapperEl:s,activeIndex:n}=t;let a=n;i.loop&&(a-=t.loopedSlides,t.loopDestroy(),t.slides=s.children("."+i.slideClass));let o,r=a;if("object"==typeof e&&"length"in e){for(let i=0;i<e.length;i+=1)o=e[i],t.slides[o]&&t.slides.eq(o).remove(),o<r&&(r-=1);r=Math.max(r,0)}else o=e,t.slides[o]&&t.slides.eq(o).remove(),o<r&&(r-=1),r=Math.max(r,0);i.loop&&t.loopCreate(),i.observer||t.update(),i.loop?t.slideTo(r+t.loopedSlides,0,!1):t.slideTo(r,0,!1)}function Q(){const e=this,t=[];for(let i=0;i<e.slides.length;i+=1)t.push(i);e.removeSlide(t)}function ee(e){const{effect:t,swiper:i,on:s,setTranslate:n,setTransition:a,overwriteParams:o,perspective:r,recreateShadows:l,getEffectParams:c}=e;let d;s("beforeInit",()=>{if(i.params.effect!==t)return;i.classNames.push(`${i.params.containerModifierClass}${t}`),r&&r()&&i.classNames.push(i.params.containerModifierClass+"3d");const e=o?o():{};Object.assign(i.params,e),Object.assign(i.originalParams,e)}),s("setTranslate",()=>{i.params.effect===t&&n()}),s("setTransition",(e,s)=>{i.params.effect===t&&a(s)}),s("transitionEnd",()=>{if(i.params.effect===t&&l){if(!c||!c().slideShadows)return;i.slides.each(e=>{i.$(e).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").remove()}),l()}}),s("virtualUpdate",()=>{i.params.effect===t&&(i.slides.length||(d=!0),requestAnimationFrame(()=>{d&&i.slides&&i.slides.length&&(n(),d=!1)}))})}function te(e,t){return e.transformEl?t.find(e.transformEl).css({"backface-visibility":"hidden","-webkit-backface-visibility":"hidden"}):t}function ie({swiper:e,duration:t,transformEl:i,allSlides:s}){const{slides:n,activeIndex:a,$wrapperEl:o}=e;if(e.params.virtualTranslate&&0!==t){let t,r=!1;t=s?i?n.find(i):n:i?n.eq(a).find(i):n.eq(a),t.transitionEnd(()=>{if(r)return;if(!e||e.destroyed)return;r=!0,e.animating=!1;const t=["webkitTransitionEnd","transitionend"];for(let e=0;e<t.length;e+=1)o.trigger(t[e])})}}function se(e,t,i){const s="swiper-slide-shadow"+(i?"-"+i:""),n=e.transformEl?t.find(e.transformEl):t;let a=n.children("."+s);return a.length||(a=g(`<div class="swiper-slide-shadow${i?"-"+i:""}"></div>`),n.append(a)),a}const ne=[function({swiper:e,extendParams:t,on:i,emit:s}){let n;function a(t,i){const s=e.params.virtual;if(s.cache&&e.virtual.cache[i])return e.virtual.cache[i];const n=s.renderSlide?g(s.renderSlide.call(e,t,i)):g(`<div class="${e.params.slideClass}" data-swiper-slide-index="${i}">${t}</div>`);return n.attr("data-swiper-slide-index")||n.attr("data-swiper-slide-index",i),s.cache&&(e.virtual.cache[i]=n),n}function o(t){const{slidesPerView:i,slidesPerGroup:n,centeredSlides:o}=e.params,{addSlidesBefore:r,addSlidesAfter:l}=e.params.virtual,{from:c,to:d,slides:h,slidesGrid:u,offset:p}=e.virtual;e.params.cssMode||e.updateActiveIndex();const f=e.activeIndex||0;let m,g,v;m=e.rtlTranslate?"right":e.isHorizontal()?"left":"top",o?(g=Math.floor(i/2)+n+l,v=Math.floor(i/2)+n+r):(g=i+(n-1)+l,v=n+r);const b=Math.max((f||0)-v,0),y=Math.min((f||0)+g,h.length-1),w=(e.slidesGrid[b]||0)-(e.slidesGrid[0]||0);function x(){e.updateSlides(),e.updateProgress(),e.updateSlidesClasses(),e.lazy&&e.params.lazy.enabled&&e.lazy.load(),s("virtualUpdate")}if(Object.assign(e.virtual,{from:b,to:y,offset:w,slidesGrid:e.slidesGrid}),c===b&&d===y&&!t)return e.slidesGrid!==u&&w!==p&&e.slides.css(m,w+"px"),e.updateProgress(),void s("virtualUpdate");if(e.params.virtual.renderExternal)return e.params.virtual.renderExternal.call(e,{offset:w,from:b,to:y,slides:function(){const e=[];for(let t=b;t<=y;t+=1)e.push(h[t]);return e}()}),void(e.params.virtual.renderExternalUpdate?x():s("virtualUpdate"));const E=[],S=[];if(t)e.$wrapperEl.find("."+e.params.slideClass).remove();else for(let t=c;t<=d;t+=1)(t<b||t>y)&&e.$wrapperEl.find(`.${e.params.slideClass}[data-swiper-slide-index="${t}"]`).remove();for(let e=0;e<h.length;e+=1)e>=b&&e<=y&&(void 0===d||t?S.push(e):(e>d&&S.push(e),e<c&&E.push(e)));
vendor: 9,682 bytes, line 1
1S.forEach(t=>{e.$wrapperEl.append(a(h[t],t))}),E.sort((e,t)=>t-e).forEach(t=>{e.$wrapperEl.prepend(a(h[t],t))}),e.$wrapperEl.children(".swiper-slide").css(m,w+"px"),x()}t({virtual:{enabled:!1,slides:[],cache:!0,renderSlide:null,renderExternal:null,renderExternalUpdate:!0,addSlidesBefore:0,addSlidesAfter:0}}),e.virtual={cache:{},from:void 0,to:void 0,slides:[],offset:0,slidesGrid:[]},i("beforeInit",()=>{e.params.virtual.enabled&&(e.virtual.slides=e.params.virtual.slides,e.classNames.push(e.params.containerModifierClass+"virtual"),e.params.watchSlidesProgress=!0,e.originalParams.watchSlidesProgress=!0,e.params.initialSlide||o())}),i("setTranslate",()=>{e.params.virtual.enabled&&(e.params.cssMode&&!e._immediateVirtual?(clearTimeout(n),n=setTimeout(()=>{o()},100)):o())}),i("init update resize",()=>{e.params.virtual.enabled&&e.params.cssMode&&E(e.wrapperEl,"--swiper-virtual-size",e.virtualSize+"px")}),Object.assign(e.virtual,{appendSlide:function(t){if("object"==typeof t&&"length"in t)for(let i=0;i<t.length;i+=1)t[i]&&e.virtual.slides.push(t[i]);else e.virtual.slides.push(t);o(!0)},prependSlide:function(t){const i=e.activeIndex;let s=i+1,n=1;if(Array.isArray(t)){for(let i=0;i<t.length;i+=1)t[i]&&e.virtual.slides.unshift(t[i]);s=i+t.length,n=t.length}else e.virtual.slides.unshift(t);if(e.params.virtual.cache){const t=e.virtual.cache,i={};Object.keys(t).forEach(e=>{const s=t[e],a=s.attr("data-swiper-slide-index");a&&s.attr("data-swiper-slide-index",parseInt(a,10)+n),i[parseInt(e,10)+n]=s}),e.virtual.cache=i}o(!0),e.slideTo(s,0)},removeSlide:function(t){if(null==t)return;let i=e.activeIndex;if(Array.isArray(t))for(let s=t.length-1;s>=0;s-=1)e.virtual.slides.splice(t[s],1),e.params.virtual.cache&&delete e.virtual.cache[t[s]],t[s]<i&&(i-=1),i=Math.max(i,0);else e.virtual.slides.splice(t,1),e.params.virtual.cache&&delete e.virtual.cache[t],t<i&&(i-=1),i=Math.max(i,0);o(!0),e.slideTo(i,0)},removeAllSlides:function(){e.virtual.slides=[],e.params.virtual.cache&&(e.virtual.cache={}),o(!0),e.slideTo(0,0)},update:o})},function({swiper:e,extendParams:t,on:i,emit:s}){const n=o(),a=l();function r(t){if(!e.enabled)return;const{rtlTranslate:i}=e;let o=t;o.originalEvent&&(o=o.originalEvent);const r=o.keyCode||o.charCode,l=e.params.keyboard.pageUpDown,c=l&&33===r,d=l&&34===r,h=37===r,u=39===r,p=38===r,f=40===r;if(!e.allowSlideNext&&(e.isHorizontal()&&u||e.isVertical()&&f||d))return!1;if(!e.allowSlidePrev&&(e.isHorizontal()&&h||e.isVertical()&&p||c))return!1;if(!(o.shiftKey||o.altKey||o.ctrlKey||o.metaKey||n.activeElement&&n.activeElement.nodeName&&("input"===n.activeElement.nodeName.toLowerCase()||"textarea"===n.activeElement.nodeName.toLowerCase()))){if(e.params.keyboard.onlyInViewport&&(c||d||h||u||p||f)){let t=!1;if(e.$el.parents("."+e.params.slideClass).length>0&&0===e.$el.parents("."+e.params.slideActiveClass).length)return;const s=e.$el,n=s[0].clientWidth,o=s[0].clientHeight,r=a.innerWidth,l=a.innerHeight,c=e.$el.offset();i&&(c.left-=e.$el[0].scrollLeft);const d=[[c.left,c.top],[c.left+n,c.top],[c.left,c.top+o],[c.left+n,c.top+o]];for(let e=0;e<d.length;e+=1){const i=d[e];if(i[0]>=0&&i[0]<=r&&i[1]>=0&&i[1]<=l){if(0===i[0]&&0===i[1])continue;t=!0}}if(!t)return}e.isHorizontal()?((c||d||h||u)&&(o.preventDefault?o.preventDefault():o.returnValue=!1),((d||u)&&!i||(c||h)&&i)&&e.slideNext(),((c||h)&&!i||(d||u)&&i)&&e.slidePrev()):((c||d||p||f)&&(o.preventDefault?o.preventDefault():o.returnValue=!1),(d||f)&&e.slideNext(),(c||p)&&e.slidePrev()),s("keyPress",r)}}function c(){e.keyboard.enabled||(g(n).on("keydown",r),e.keyboard.enabled=!0)}function d(){e.keyboard.enabled&&(g(n).off("keydown",r),e.keyboard.enabled=!1)}e.keyboard={enabled:!1},t({keyboard:{enabled:!1,onlyInViewport:!0,pageUpDown:!0}}),i("init",()=>{e.params.keyboard.enabled&&c()}),i("destroy",()=>{e.keyboard.enabled&&d()}),Object.assign(e.keyboard,{enable:c,disable:d})},function({swiper:e,extendParams:t,on:i,emit:s}){const n=l();let a;t({mousewheel:{enabled:!1,releaseOnEdges:!1,invert:!1,forceToAxis:!1,sensitivity:1,eventsTarget:"container",thresholdDelta:null,thresholdTime:null}}),e.mousewheel={enabled:!1};let o,r=b();const c=[];function d(){e.enabled&&(e.mouseEntered=!0)}function h(){e.enabled&&(e.mouseEntered=!1)}function u(t){return!(e.params.mousewheel.thresholdDelta&&t.delta<e.params.mousewheel.thresholdDelta)&&(!(e.params.mousewheel.thresholdTime&&b()-r<e.params.mousewheel.thresholdTime)&&(t.delta>=6&&b()-r<60||(t.direction<0?e.isEnd&&!e.params.loop||e.animating||(e.slideNext(),s("scroll",t.raw)):e.isBeginning&&!e.params.loop||e.animating||(e.slidePrev(),s("scroll",t.raw)),r=(new n.Date).getTime(),!1)))}function p(t){let i=t,n=!0;if(!e.enabled)return;const r=e.params.mousewheel;e.params.cssMode&&i.preventDefault();let l=e.$el;if("container"!==e.params.mousewheel.eventsTarget&&(l=g(e.params.mousewheel.eventsTarget)),!e.mouseEntered&&!l[0].contains(i.target)&&!r.releaseOnEdges)return!0;i.originalEvent&&(i=i.originalEvent);let d=0;const h=e.rtlTranslate?-1:1,p=function(e){let t=0,i=0,s=0,n=0;return"detail"in e&&(i=e.detail),"wheelDelta"in e&&(i=-e.wheelDelta/120),"wheelDeltaY"in e&&(i=-e.wheelDeltaY/120),"wheelDeltaX"in e&&(t=-e.wheelDeltaX/120),"axis"in e&&e.axis===e.HORIZONTAL_AXIS&&(t=i,i=0),s=10*t,n=10*i,"deltaY"in e&&(n=e.deltaY),"deltaX"in e&&(s=e.deltaX),e.shiftKey&&!s&&(s=n,n=0),(s||n)&&e.deltaMode&&(1===e.deltaMode?(s*=40,n*=40):(s*=800,n*=800)),s&&!t&&(t=s<1?-1:1),n&&!i&&(i=n<1?-1:1),{spinX:t,spinY:i,pixelX:s,pixelY:n}}(i);if(r.forceToAxis)if(e.isHorizontal()){if(!(Math.abs(p.pixelX)>Math.abs(p.pixelY)))return!0;d=-p.pixelX*h}else{if(!(Math.abs(p.pixelY)>Math.abs(p.pixelX)))return!0;d=-p.pixelY}else d=Math.abs(p.pixelX)>Math.abs(p.pixelY)?-p.pixelX*h:-p.pixelY;if(0===d)return!0;r.invert&&(d=-d);let f=e.getTranslate()+d*r.sensitivity;if(f>=e.minTranslate()&&(f=e.minTranslate()),f<=e.maxTranslate()&&(f=e.maxTranslate()),n=!!e.params.loop||!(f===e.minTranslate()||f===e.maxTranslate()),n&&e.params.nested&&i.stopPropagation(),e.params.freeMode&&e.params.freeMode.enabled){const t={time:b(),delta:Math.abs(d),direction:Math.sign(d)},n=o&&t.time<o.time+500&&t.delta<=o.delta&&t.direction===o.direction;if(!n){o=void 0,e.params.loop&&e.loopFix();let l=e.getTranslate()+d*r.sensitivity;const h=e.isBeginning,u=e.isEnd;if(l>=e.minTranslate()&&(l=e.minTranslate()),l<=e.maxTranslate()&&(l=e.maxTranslate()),e.setTransition(0),e.setTranslate(l),e.updateProgress(),e.updateActiveIndex(),e.updateSlidesClasses(),(!h&&e.isBeginning||!u&&e.isEnd)&&e.updateSlidesClasses(),e.params.freeMode.sticky){clearTimeout(a),a=void 0,c.length>=15&&c.shift();const i=c.length?c[c.length-1]:void 0,s=c[0];if(c.push(t),i&&(t.delta>i.delta||t.direction!==i.direction))c.splice(0);else if(c.length>=15&&t.time-s.time<500&&s.delta-t.delta>=1&&t.delta<=6){const i=d>0?.8:.2;o=t,c.splice(0),a=v(()=>{e.slideToClosest(e.params.speed,!0,void 0,i)},0)}a||(a=v(()=>{o=t,c.splice(0),e.slideToClosest(e.params.speed,!0,void 0,.5)},500))}if(n||s("scroll",i),e.params.autoplay&&e.params.autoplayDisableOnInteraction&&e.autoplay.stop(),l===e.minTranslate()||l===e.maxTranslate())return!0}}else{const i={time:b(),delta:Math.abs(d),direction:Math.sign(d),raw:t};c.length>=2&&c.shift();const s=c.length?c[c.length-1]:void 0;if(c.push(i),s?(i.direction!==s.direction||i.delta>s.delta||i.time>s.time+150)&&u(i):u(i),function(t){const i=e.params.mousewheel;if(t.direction<0){if(e.isEnd&&!e.params.loop&&i.releaseOnEdges)return!0}else if(e.isBeginning&&!e.params.loop&&i.releaseOnEdges)return!0;return!1}(i))return!0}return i.preventDefault?i.preventDefault():i.returnValue=!1,!1}function f(t){let i=e.$el;"container"!==e.params.mousewheel.eventsTarget&&(i=g(e.params.mousewheel.eventsTarget)),i[t]("mouseenter",d),i[t]("mouseleave",h),i[t]("wheel",p)}function m(){return e.params.cssMode?(e.wrapperEl.removeEventListener("wheel",p),!0):!e.mousewheel.enabled&&(f("on"),e.mousewheel.enabled=!0,!0)}function y(){return e.params.cssMode?(e.wrapperEl.addEventListener(event,p),!0):!!e.mousewheel.enabled&&(f("off"),e.mousewheel.enabled=!1,!0)}i("init",()=>{!e.params.mousewheel.enabled&&e.params.cssMode&&y(),e.params.mousewheel.enabled&&m()}),i("destroy",()=>{e.params.cssMode&&m(),e.mousewheel.enabled&&y()}),Object.assign(e.mousewheel,{enable:m,disable:y})},function({swiper:e,extendParams:t,on:i,emit:s}){function n(t){let i;return t&&(i=g(t),e.params.uniqueNavElements&&"string"==typeof t&&i.length>1&&1===e.$el.find(t).length&&(i=e.$el.find(t))),i}function a(t,i){const s=e.params.navigation;t&&t.length>0&&(t[i?"addClass":"removeClass"](s.disabledClass),t[0]&&"BUTTON"===t[0].tagName&&(t[0].disabled=i),e.params.watchOverflow&&e.enabled&&t[e.isLocked?"addClass":"removeClass"](s.lockClass))}function o(){if(e.params.loop)return;const{$nextEl:t,$prevEl:i}=e.navigation;a(i,e.isBeginning&&!e.params.rewind),a(t,e.isEnd&&!e.params.rewind)}function r(t){t.preventDefault(),(!e.isBeginning||e.params.loop||e.params.rewind)&&(e.slidePrev(),s("navigationPrev"))}function l(t){t.preventDefault(),(!e.isEnd||e.params.loop||e.params.rewind)&&(e.slideNext(),s("navigationNext"))}function c(){const t=e.params.navigation;if(e.params.navigation=G(e,e.originalParams.navigation,e.params.navigation,{nextEl:"swiper-button-next",prevEl:"swiper-button-prev"}),!t.nextEl&&!t.prevEl)return;const i=n(t.nextEl),s=n(t.prevEl);i&&i.length>0&&i.on("click",l),s&&s.length>0&&s.on("click",r),Object.assign(e.navigation,{$nextEl:i,nextEl:i&&i[0],$prevEl:s,prevEl:s&&s[0]}),e.enabled||(i&&i.addClass(t.lockClass),s&&s.addClass(t.lockClass))}function d(){const{$nextEl:t,$prevEl:i}=e.navigation;t&&t.length&&(t.off("click",l),t.removeClass(e.params.navigation.disabledClass)),i&&i.length&&(i.off("
1click",r),i.removeClass(e.params.navigation.disabledClass))}t({navigation:{nextEl:null,prevEl:null,hideOnClick:!1,disabledClass:"swiper-button-disabled",hiddenClass:"swiper-button-hidden",lockClass:"swiper-button-lock",navigationDisabledClass:"swiper-navigation-disabled"}}),e.navigation={nextEl:null,$nextEl:null,prevEl:null,$prevEl:null},i("init",()=>{!1===e.params.navigation.enabled?h():(c(),o())}),i("toEdge fromEdge lock unlock",()=>{o()}),i("destroy",()=>{d()}),i("enable disable",()=>{const{$nextEl:t,$prevEl:i}=e.navigation;t&&t[e.enabled?"removeClass":"addClass"](e.params.navigation.lockClass),i&&i[e.enabled?"removeClass":"addClass"](e.params.navigation.lockClass)}),i("click",(t,i)=>{const{$nextEl:n,$prevEl:a}=e.navigation,o=i.target;if(e.params.navigation.hideOnClick&&!g(o).is(a)&&!g(o).is(n)){if(e.pagination&&e.params.pagination&&e.params.pagination.clickable&&(e.pagination.el===o||e.pagination.el.contains(o)))return;let t;n?t=n.hasClass(e.params.navigation.hiddenClass):a&&(t=a.hasClass(e.params.navigation.hiddenClass)),s(!0===t?"navigationShow":"navigationHide"),n&&n.toggleClass(e.params.navigation.hiddenClass),a&&a.toggleClass(e.params.navigation.hiddenClass)}});const h=()=>{e.$el.addClass(e.params.navigation.navigationDisabledClass),d()};Object.assign(e.navigation,{enable:()=>{e.$el.removeClass(e.params.navigation.navigationDisabledClass),c(),o()},disable:h,update:o,init:c,destroy:d})},function({swiper:e,extendParams:t,on:i,emit:s}){const n="swiper-pagination";let a;t({pagination:{el:null,bulletElement:"span",clickable:!1,hideOnClick:!1,renderBullet:null,renderProgressbar:null,renderFraction:null,renderCustom:null,progressbarOpposite:!1,type:"bullets",dynamicBullets:!1,dynamicMainBullets:1,formatFractionCurrent:e=>e,formatFractionTotal:e=>e,bulletClass:n+"-bullet",bulletActiveClass:n+"-bullet-active",modifierClass:n+"-",currentClass:n+"-current",totalClass:n+"-total",hiddenClass:n+"-hidden",progressbarFillClass:n+"-progressbar-fill",progressbarOppositeClass:n+"-progressbar-opposite",clickableClass:n+"-clickable",lockClass:n+"-lock",horizontalClass:n+"-horizontal",verticalClass:n+"-vertical",paginationDisabledClass:n+"-disabled"}}),e.pagination={el:null,$el:null,bullets:[]};let o=0;function r(){return!e.params.pagination.el||!e.pagination.el||!e.pagination.$el||0===e.pagination.$el.length}function l(t,i){const{bulletActiveClass:s}=e.params.pagination;t[i]().addClass(`${s}-${i}`)[i]().addClass(`${s}-${i}-${i}`)}function c(){const t=e.rtl,i=e.params.pagination;if(r())return;const n=e.virtual&&e.params.virtual.enabled?e.virtual.slides.length:e.slides.length,c=e.pagination.$el;let d;const h=e.params.loop?Math.ceil((n-2*e.loopedSlides)/e.params.slidesPerGroup):e.snapGrid.length;if(e.params.loop?(d=Math.ceil((e.activeIndex-e.loopedSlides)/e.params.slidesPerGroup),d>n-1-2*e.loopedSlides&&(d-=n-2*e.loopedSlides),d>h-1&&(d-=h),d<0&&"bullets"!==e.params.paginationType&&(d=h+d)):d=void 0!==e.snapIndex?e.snapIndex:e.activeIndex||0,"bullets"===i.type&&e.pagination.bullets&&e.pagination.bullets.length>0){const s=e.pagination.bullets;let n,r,h;if(i.dynamicBullets&&(a=s.eq(0)[e.isHorizontal()?"outerWidth":"outerHeight"](!0),c.css(e.isHorizontal()?"width":"height",a*(i.dynamicMainBullets+4)+"px"),i.dynamicMainBullets>1&&void 0!==e.previousIndex&&(o+=d-(e.previousIndex-e.loopedSlides||0),o>i.dynamicMainBullets-1?o=i.dynamicMainBullets-1:o<0&&(o=0)),n=Math.max(d-o,0),r=n+(Math.min(s.length,i.dynamicMainBullets)-1),h=(r+n)/2),s.removeClass(["","-next","-next-next","-prev","-prev-prev","-main"].map(e=>`${i.bulletActiveClass}${e}`).join(" ")),c.length>1)s.each(e=>{const t=g(e),s=t.index();s===d&&t.addClass(i.bulletActiveClass),i.dynamicBullets&&(s>=n&&s<=r&&t.addClass(i.bulletActiveClass+"-main"),s===n&&l(t,"prev"),s===r&&l(t,"next"))});else{const t=s.eq(d),a=t.index();if(t.addClass(i.bulletActiveClass),i.dynamicBullets){const t=s.eq(n),o=s.eq(r);for(let e=n;e<=r;e+=1)s.eq(e).addClass(i.bulletActiveClass+"-main");if(e.params.loop)if(a>=s.length){for(let e=i.dynamicMainBullets;e>=0;e-=1)s.eq(s.length-e).addClass(i.bulletActiveClass+"-main");s.eq(s.length-i.dynamicMainBullets-1).addClass(i.bulletActiveClass+"-prev")}else l(t,"prev"),l(o,"next");else l(t,"prev"),l(o,"next")}}if(i.dynamicBullets){const n=Math.min(s.length,i.dynamicMainBullets+4),o=(a*n-a)/2-h*a,r=t?"right":"left";s.css(e.isHorizontal()?r:"top",o+"px")}}
1if("fraction"===i.type&&(c.find(V(i.currentClass)).text(i.formatFractionCurrent(d+1)),c.find(V(i.totalClass)).text(i.formatFractionTotal(h))),"progressbar"===i.type){let t;t=i.progressbarOpposite?e.isHorizontal()?"vertical":"horizontal":e.isHorizontal()?"horizontal":"vertical";const s=(d+1)/h;let n=1,a=1;"horizontal"===t?n=s:a=s,c.find(V(i.progressbarFillClass)).transform(`translate3d(0,0,0) scaleX(${n}) scaleY(${a})`).transition(e.params.speed)}"custom"===i.type&&i.renderCustom?(c.html(i.renderCustom(e,d+1,h)),s("paginationRender",c[0])):s("paginationUpdate",c[0]),e.params.watchOverflow&&e.enabled&&c[e.isLocked?"addClass":"removeClass"](i.lockClass)}function d(){const t=e.params.pagination;if(r())return;const i=e.virtual&&e.params.virtual.enabled?e.virtual.slides.length:e.slides.length,n=e.pagination.$el;let a="";if("bullets"===t.type){let s=e.params.loop?Math.ceil((i-2*e.loopedSlides)/e.params.slidesPerGroup):e.snapGrid.length;e.params.freeMode&&e.params.freeMode.enabled&&!e.params.loop&&s>i&&(s=i);for(let i=0;i<s;i+=1)t.renderBullet?a+=t.renderBullet.call(e,i,t.bulletClass):a+=`<${t.bulletElement} class="${t.bulletClass}"></${t.bulletElement}>`;n.html(a),e.pagination.bullets=n.find(V(t.bulletClass))}"fraction"===t.type&&(a=t.renderFraction?t.renderFraction.call(e,t.currentClass,t.totalClass):`<span class="${t.currentClass}"></span> / <span class="${t.totalClass}"></span>`,n.html(a)),"progressbar"===t.type&&(a=t.renderProgressbar?t.renderProgressbar.call(e,t.progressbarFillClass):`<span class="${t.progressbarFillClass}"></span>`,n.html(a)),"custom"!==t.type&&s("paginationRender",e.pagination.$el[0])}function h(){e.params.pagination=G(e,e.originalParams.pagination,e.params.pagination,{el:"swiper-pagination"});const t=e.params.pagination;if(!t.el)return;let i=g(t.el);0!==i.length&&(e.params.uniqueNavElements&&"string"==typeof t.el&&i.length>1&&(i=e.$el.find(t.el),i.length>1&&(i=i.filter(t=>g(t).parents(".swiper")[0]===e.el))),"bullets"===t.type&&t.clickable&&i.addClass(t.clickableClass),i.addClass(t.modifierClass+t.type),i.addClass(e.isHorizontal()?t.horizontalClass:t.verticalClass),"bullets"===t.type&&t.dynamicBullets&&(i.addClass(`${t.modifierClass}${t.type}-dynamic`),o=0,t.dynamicMainBullets<1&&(t.dynamicMainBullets=1)),"progressbar"===t.type&&t.progressbarOpposite&&i.addClass(t.progressbarOppositeClass),t.clickable&&i.on("click",V(t.bulletClass),(function(t){t.preventDefault();let i=g(this).index()*e.params.slidesPerGroup;e.params.loop&&(i+=e.loopedSlides),e.slideTo(i)})),Object.assign(e.pagination,{$el:i,el:i[0]}),e.enabled||i.addClass(t.lockClass))}function u(){const t=e.params.pagination;if(r())return;const i=e.pagination.$el;i.removeClass(t.hiddenClass),i.removeClass(t.modifierClass+t.type),i.removeClass(e.isHorizontal()?t.horizontalClass:t.verticalClass),e.pagination.bullets&&e.pagination.bullets.removeClass&&e.pagination.bullets.removeClass(t.bulletActiveClass),t.clickable&&i.off("click",V(t.bulletClass))}i("init",()=>{!1===e.params.pagination.enabled?p():(h(),d(),c())}),i("activeIndexChange",()=>{(e.params.loop||void 0===e.snapIndex)&&c()}),i("snapIndexChange",()=>{e.params.loop||c()}),i("slidesLengthChange",()=>{e.params.loop&&(d(),c())}),i("snapGridLengthChange",()=>{e.params.loop||(d(),c())}),i("destroy",()=>{u()}),i("enable disable",()=>{const{$el:t}=e.pagination;t&&t[e.enabled?"removeClass":"addClass"](e.params.pagination.lockClass)}),i("lock unlock",()=>{c()}),i("click",(t,i)=>{const n=i.target,{$el:a}=e.pagination;if(e.params.pagination.el&&e.params.pagination.hideOnClick&&a&&a.length>0&&!g(n).hasClass(e.params.pagination.bulletClass)){if(e.navigation&&(e.navigation.nextEl&&n===e.navigation.nextEl||e.navigation.prevEl&&n===e.navigation.prevEl))return;const t=a.hasClass(e.params.pagination.hiddenClass);s(!0===t?"paginationShow":"paginationHide"),a.toggleClass(e.params.pagination.hiddenClass)}});const p=()=>{e.$el.addClass(e.params.pagination.paginationDisabledClass),e.pagination.$el&&e.pagination.$el.addClass(e.params.pagination.paginationDisabledClass),u()};Object.assign(e.pagination,{enable:()=>{e.$el.removeClass(e.params.pagination.paginationDisabledClass),e.pagination.$el&&e.pagination.$el.removeClass(e.params.pagination.paginationDisabledClass),h(),d(),c()},disable:p,render:d,update:c,init:h,destroy:u})},function({swiper:e,extendParams:t,on:i,emit:s}){const n=o();let a,r,l,c,d=!1,h=null,u=null;function p(){if(!e.params.scrollbar.el||!e.scrollbar.el)return;const{scrollbar:t,rtlTranslate:i,progress:s}=e,{$dragEl:n,$el:a}=t,o=e.params.scrollbar;let c=r,d=(l-r)*s;i?(d=-d,d>0?(c=r-d,d=0):-d+r>l&&(c=l+d)):d<0?(c=r+d,d=0):d+r>
vendor: 8,623 bytes, line 1
1l&&(c=l-d),e.isHorizontal()?(n.transform(`translate3d(${d}px, 0, 0)`),n[0].style.width=c+"px"):(n.transform(`translate3d(0px, ${d}px, 0)`),n[0].style.height=c+"px"),o.hide&&(clearTimeout(h),a[0].style.opacity=1,h=setTimeout(()=>{a[0].style.opacity=0,a.transition(400)},1e3))}function f(){if(!e.params.scrollbar.el||!e.scrollbar.el)return;const{scrollbar:t}=e,{$dragEl:i,$el:s}=t;i[0].style.width="",i[0].style.height="",l=e.isHorizontal()?s[0].offsetWidth:s[0].offsetHeight,c=e.size/(e.virtualSize+e.params.slidesOffsetBefore-(e.params.centeredSlides?e.snapGrid[0]:0)),r="auto"===e.params.scrollbar.dragSize?l*c:parseInt(e.params.scrollbar.dragSize,10),e.isHorizontal()?i[0].style.width=r+"px":i[0].style.height=r+"px",s[0].style.display=c>=1?"none":"",e.params.scrollbar.hide&&(s[0].style.opacity=0),e.params.watchOverflow&&e.enabled&&t.$el[e.isLocked?"addClass":"removeClass"](e.params.scrollbar.lockClass)}function m(t){return e.isHorizontal()?"touchstart"===t.type||"touchmove"===t.type?t.targetTouches[0].clientX:t.clientX:"touchstart"===t.type||"touchmove"===t.type?t.targetTouches[0].clientY:t.clientY}function b(t){const{scrollbar:i,rtlTranslate:s}=e,{$el:n}=i;let o;o=(m(t)-n.offset()[e.isHorizontal()?"left":"top"]-(null!==a?a:r/2))/(l-r),o=Math.max(Math.min(o,1),0),s&&(o=1-o);const c=e.minTranslate()+(e.maxTranslate()-e.minTranslate())*o;e.updateProgress(c),e.setTranslate(c),e.updateActiveIndex(),e.updateSlidesClasses()}function y(t){const i=e.params.scrollbar,{scrollbar:n,$wrapperEl:o}=e,{$el:r,$dragEl:l}=n;d=!0,a=t.target===l[0]||t.target===l?m(t)-t.target.getBoundingClientRect()[e.isHorizontal()?"left":"top"]:null,t.preventDefault(),t.stopPropagation(),o.transition(100),l.transition(100),b(t),clearTimeout(u),r.transition(0),i.hide&&r.css("opacity",1),e.params.cssMode&&e.$wrapperEl.css("scroll-snap-type","none"),s("scrollbarDragStart",t)}function w(t){const{scrollbar:i,$wrapperEl:n}=e,{$el:a,$dragEl:o}=i;d&&(t.preventDefault?t.preventDefault():t.returnValue=!1,b(t),n.transition(0),a.transition(0),o.transition(0),s("scrollbarDragMove",t))}function x(t){const i=e.params.scrollbar,{scrollbar:n,$wrapperEl:a}=e,{$el:o}=n;d&&(d=!1,e.params.cssMode&&(e.$wrapperEl.css("scroll-snap-type",""),a.transition("")),i.hide&&(clearTimeout(u),u=v(()=>{o.css("opacity",0),o.transition(400)},1e3)),s("scrollbarDragEnd",t),i.snapOnRelease&&e.slideToClosest())}function E(t){const{scrollbar:i,touchEventsTouch:s,touchEventsDesktop:a,params:o,support:r}=e,l=i.$el;if(!l)return;const c=l[0],d=!(!r.passiveListener||!o.passiveListeners)&&{passive:!1,capture:!1},h=!(!r.passiveListener||!o.passiveListeners)&&{passive:!0,capture:!1};if(!c)return;const u="on"===t?"addEventListener":"removeEventListener";r.touch?(c[u](s.start,y,d),c[u](s.move,w,d),c[u](s.end,x,h)):(c[u](a.start,y,d),n[u](a.move,w,d),n[u](a.end,x,h))}function S(){const{scrollbar:t,$el:i}=e;e.params.scrollbar=G(e,e.originalParams.scrollbar,e.params.scrollbar,{el:"swiper-scrollbar"});const s=e.params.scrollbar;if(!s.el)return;let n=g(s.el);e.params.uniqueNavElements&&"string"==typeof s.el&&n.length>1&&1===i.find(s.el).length&&(n=i.find(s.el)),n.addClass(e.isHorizontal()?s.horizontalClass:s.verticalClass);let a=n.find("."+e.params.scrollbar.dragClass);0===a.length&&(a=g(`<div class="${e.params.scrollbar.dragClass}"></div>`),n.append(a)),Object.assign(t,{$el:n,el:n[0],$dragEl:a,dragEl:a[0]}),s.draggable&&e.params.scrollbar.el&&e.scrollbar.el&&E("on"),n&&n[e.enabled?"removeClass":"addClass"](e.params.scrollbar.lockClass)}function C(){const t=e.params.scrollbar,i=e.scrollbar.$el;i&&i.removeClass(e.isHorizontal()?t.horizontalClass:t.verticalClass),e.params.scrollbar.el&&e.scrollbar.el&&E("off")}t({scrollbar:{el:null,dragSize:"auto",hide:!1,draggable:!1,snapOnRelease:!0,lockClass:"swiper-scrollbar-lock",dragClass:"swiper-scrollbar-drag",scrollbarDisabledClass:"swiper-scrollbar-disabled",horizontalClass:"swiper-scrollbar-horizontal",verticalClass:"swiper-scrollbar-vertical"}}),e.scrollbar={el:null,dragEl:null,$el:null,$dragEl:null},i("init",()=>{!1===e.params.scrollbar.enabled?T():(S(),f(),p())}),i("update resize observerUpdate lock unlock",()=>{f()}),i("setTranslate",()=>{p()}),i("setTransition",(t,i)=>{!function(t){e.params.scrollbar.el&&e.scrollbar.el&&e.scrollbar.$dragEl.transition(t)}(i)}),i("enable disable",()=>{const{$el:t}=e.scrollbar;t&&t[e.enabled?"removeClass":"addClass"](e.params.scrollbar.lockClass)}),i("destroy",()=>{C()});const T=()=>{e.$el.addClass(e.params.scrollbar.scrollbarDisabledClass),e.scrollbar.$el&&e.scrollbar.$el.addClass(e.params.scrollbar.scrollbarDisabledClass),C()};Object.assign(e.scrollbar,{enable:()=>{e.$el.removeClass(e.params.scrollbar.scrollbarDisabledClass),e.scrollbar.$el&&e.scrollbar.$el.removeClass(e.params.scrollbar.scrollbarDisabledClass),S(),f(),p()},disable:T,updateSize:f,setTranslate:p,init:S,destroy:C})},function({swiper:e,extendParams:t,on:i}){t({parallax:{enabled:!1}});const s=(t,i)=>{const{rtl:s}=e,n=g(t),a=s?-1:1,o=n.attr("data-swiper-parallax")||"0";let r=n.attr("data-swiper-parallax-x"),l=n.attr("data-swiper-parallax-y");const c=n.attr("data-swiper-parallax-scale"),d=n.attr("data-swiper-parallax-opacity");if(r||l?(r=r||"0",l=l||"0"):e.isHorizontal()?(r=o,l="0"):(l=o,r="0"),r=r.indexOf("%")>=0?parseInt(r,10)*i*a+"%":r*i*a+"px",l=l.indexOf("%")>=0?parseInt(l,10)*i+"%":l*i+"px",null!=d){const e=d-(d-1)*(1-Math.abs(i));n[0].style.opacity=e}if(null==c)n.transform(`translate3d(${r}, ${l}, 0px)`);else{const e=c-(c-1)*(1-Math.abs(i));n.transform(`translate3d(${r}, ${l}, 0px) scale(${e})`)}},n=()=>{const{$el:t,slides:i,progress:n,snapGrid:a}=e;t.children("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y], [data-swiper-parallax-opacity], [data-swiper-parallax-scale]").each(e=>{s(e,n)}),i.each((t,i)=>{let o=t.progress;e.params.slidesPerGroup>1&&"auto"!==e.params.slidesPerView&&(o+=Math.ceil(i/2)-n*(a.length-1)),o=Math.min(Math.max(o,-1),1),g(t).find("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y], [data-swiper-parallax-opacity], [data-swiper-parallax-scale]").each(e=>{s(e,o)})})};i("beforeInit",()=>{e.params.parallax.enabled&&(e.params.watchSlidesProgress=!0,e.originalParams.watchSlidesProgress=!0)}),i("init",()=>{e.params.parallax.enabled&&n()}),i("setTranslate",()=>{e.params.parallax.enabled&&n()}),i("setTransition",(t,i)=>{e.params.parallax.enabled&&((t=e.params.speed)=>{const{$el:i}=e;i.find("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y], [data-swiper-parallax-opacity], [data-swiper-parallax-scale]").each(e=>{const i=g(e);let s=parseInt(i.attr("data-swiper-parallax-duration"),10)||t;0===t&&(s=0),i.transition(s)})})(i)})},function({swiper:e,extendParams:t,on:i,emit:s}){const n=l();t({zoom:{enabled:!1,maxRatio:3,minRatio:1,toggle:!0,containerClass:"swiper-zoom-container",zoomedSlideClass:"swiper-slide-zoomed"}}),e.zoom={enabled:!1};let a,o,r,c=1,d=!1;const h={$slideEl:void 0,slideWidth:void 0,slideHeight:void 0,$imageEl:void 0,$imageWrapEl:void 0,maxRatio:3},u={isTouched:void 0,isMoved:void 0,currentX:void 0,currentY:void 0,minX:void 0,minY:void 0,maxX:void 0,maxY:void 0,width:void 0,height:void 0,startX:void 0,startY:void 0,touchesStart:{},touchesCurrent:{}},p={x:void 0,y:void 0,prevPositionX:void 0,prevPositionY:void 0,prevTime:void 0};let f=1;function m(e){if(e.targetTouches.length<2)return 1;const t=e.targetTouches[0].pageX,i=e.targetTouches[0].pageY,s=e.targetTouches[1].pageX,n=e.targetTouches[1].pageY;return Math.sqrt((s-t)**2+(n-i)**2)}function v(t){const i=e.support,s=e.params.zoom;if(o=!1,r=!1,!i.gestures){if("touchstart"!==t.type||"touchstart"===t.type&&t.targetTouches.length<2)return;o=!0,h.scaleStart=m(t)}h.$slideEl&&h.$slideEl.length||(h.$slideEl=g(t.target).closest("."+e.params.slideClass),0===h.$slideEl.length&&(h.$slideEl=e.slides.eq(e.activeIndex)),h.$imageEl=h.$slideEl.find("."+s.containerClass).eq(0).find("picture, img, svg, canvas, .swiper-zoom-target").eq(0),h.$imageWrapEl=h.$imageEl.parent("."+s.containerClass),h.maxRatio=h.$imageWrapEl.attr("data-swiper-zoom")||s.maxRatio,0!==h.$imageWrapEl.length)?(h.$imageEl&&h.$imageEl.transition(0),d=!0):h.$imageEl=void 0}function b(t){const i=e.support,s=e.params.zoom,n=e.zoom;if(!i.gestures){if("touchmove"!==t.type||"touchmove"===t.type&&t.targetTouches.length<2)return;r=!0,h.scaleMove=m(t)}h.$imageEl&&0!==h.$imageEl.length?(i.gestures?n.scale=t.scale*c:n.scale=h.scaleMove/h.scaleStart*c,n.scale>h.maxRatio&&(n.scale=h.maxRatio-1+(n.scale-h.maxRatio+1)**.5),n.scale<s.minRatio&&(n.scale=s.minRatio+1-(s.minRatio-n.scale+1)**.5),h.$imageEl.transform(`translate3d(0,
10,0) scale(${n.scale})`)):"gesturechange"===t.type&&v(t)}function w(t){const i=e.device,s=e.support,n=e.params.zoom,a=e.zoom;if(!s.gestures){if(!o||!r)return;if("touchend"!==t.type||"touchend"===t.type&&t.changedTouches.length<2&&!i.android)return;o=!1,r=!1}h.$imageEl&&0!==h.$imageEl.length&&(a.scale=Math.max(Math.min(a.scale,h.maxRatio),n.minRatio),h.$imageEl.transition(e.params.speed).transform(`translate3d(0,0,0) scale(${a.scale})`),c=a.scale,d=!1,1===a.scale&&(h.$slideEl=void 0))}function x(t){const i=e.zoom;if(!h.$imageEl||0===h.$imageEl.length)return;if(e.allowClick=!1,!u.isTouched||!h.$slideEl)return;u.isMoved||(u.width=h.$imageEl[0].offsetWidth,u.height=h.$imageEl[0].offsetHeight,u.startX=y(h.$imageWrapEl[0],"x")||0,u.startY=y(h.$imageWrapEl[0],"y")||0,h.slideWidth=h.$slideEl[0].offsetWidth,h.slideHeight=h.$slideEl[0].offsetHeight,h.$imageWrapEl.transition(0));const s=u.width*i.scale,n=u.height*i.scale;if(!(s<h.slideWidth&&n<h.slideHeight)){if(u.minX=Math.min(h.slideWidth/2-s/2,0),u.maxX=-u.minX,u.minY=Math.min(h.slideHeight/2-n/2,0),u.maxY=-u.minY,u.touchesCurrent.x="touchmove"===t.type?t.targetTouches[0].pageX:t.pageX,u.touchesCurrent.y="touchmove"===t.type?t.targetTouches[0].pageY:t.pageY,!u.isMoved&&!d){if(e.isHorizontal()&&(Math.floor(u.minX)===Math.floor(u.startX)&&u.touchesCurrent.x<u.touchesStart.x||Math.floor(u.maxX)===Math.floor(u.startX)&&u.touchesCurrent.x>u.touchesStart.x))return void(u.isTouched=!1);if(!e.isHorizontal()&&(Math.floor(u.minY)===Math.floor(u.startY)&&u.touchesCurrent.y<u.touchesStart.y||Math.floor(u.maxY)===Math.floor(u.startY)&&u.touchesCurrent.y>u.touchesStart.y))return void(u.isTouched=!1)}t.cancelable&&t.preventDefault(),t.stopPropagation(),u.isMoved=!0,u.currentX=u.touchesCurrent.x-u.touchesStart.x+u.startX,u.currentY=u.touchesCurrent.y-u.touchesStart.y+u.startY,u.currentX<u.minX&&(u.currentX=u.minX+1-(u.minX-u.currentX+1)**.8),u.currentX>u.maxX&&(u.currentX=u.maxX-1+(u.currentX-u.maxX+1)**.8),u.currentY<u.minY&&(u.currentY=u.minY+1-(u.minY-u.currentY+1)**.8),u.currentY>u.maxY&&(u.currentY=u.maxY-1+(u.currentY-u.maxY+1)**.8),p.prevPositionX||(p.prevPositionX=u.touchesCurrent.x),p.prevPositionY||(p.prevPositionY=u.touchesCurrent.y),p.prevTime||(p.prevTime=Date.now()),p.x=(u.touchesCurrent.x-p.prevPositionX)/(Date.now()-p.prevTime)/2,p.y=(u.touchesCurrent.y-p.prevPositionY)/(Date.now()-p.prevTime)/2,Math.abs(u.touchesCurrent.x-p.prevPositionX)<2&&(p.x=0),Math.abs(u.touchesCurrent.y-p.prevPositionY)<2&&(p.y=0),p.prevPositionX=u.touchesCurrent.x,p.prevPositionY=u.touchesCurrent.y,p.prevTime=Date.now(),h.$imageWrapEl.transform(`translate3d(${u.currentX}px, ${u.currentY}px,0)`)}}function E(){const t=e.zoom;h.$slideEl&&e.previousIndex!==e.activeIndex&&(h.$imageEl&&h.$imageEl.transform("translate3d(0,0,0) scale(1)"),h.$imageWrapEl&&h.$imageWrapEl.transform("translate3d(0,0,0)"),t.scale=1,c=1,h.$slideEl=void 0,h.$imageEl=void 0,h.$imageWrapEl=void 0)}function S(t){const i=e.zoom,s=e.params.zoom;if(h.$slideEl||(t&&t.target&&(h.$slideEl=g(t.target).closest("."+e.params.slideClass)),h.$slideEl||(e.params.virtual&&e.params.virtual.enabled&&e.virtual?h.$slideEl=e.$wrapperEl.children("."+e.params.slideActiveClass):h.$slideEl=e.slides.eq(e.activeIndex)),h.$imageEl=h.$slideEl.find("."+s.containerClass).eq(0).find("picture, img, svg, canvas, .swiper-zoom-target").eq(0),h.$imageWrapEl=h.$imageEl.parent("."+s.containerClass)),!h.$imageEl||0===h.$imageEl.length||!h.$imageWrapEl||0===h.$imageWrapEl.length)return;let a,o,r,l,d,p,f,m,v,b,y,w,x,E,S,C,T,M;e.params.cssMode&&(e.wrapperEl.style.overflow="hidden",e.wrapperEl.style.touchAction="none"),h.$slideEl.addClass(""+s.zoomedSlideClass),void 0===u.touchesStart.x&&t?(a="touchend"===t.type?t.changedTouches[0].pageX:t.pageX,o="touchend"===t.type?t.changedTouches[0].pageY:t.pageY):(a=u.touchesStart.x,o=u.touchesStart.y),i.scale=h.$imageWrapEl.attr("data-swiper-zoom")||s.maxRatio,c=h.$imageWrapEl.attr("data-swiper-zoom")||s.maxRatio,t?(T=h.$slideEl[0].offsetWidth,M=h.$slideEl[0].offsetHeight,r=h.$slideEl.offset().left+n.scrollX,l=h.$slideEl.offset().top+n.scrollY,d=r+T/2-a,p=l+M/2-o,v=h.$imageEl[0].offsetWidth,b=h.$imageEl[0].offsetHeight,y=v*i.scale,w=b*i.scale,x=Math.min(T/2-y/2,0),E=Math.min(M/2-w/2,0),S=-x,C=-E,f=d*i.scale,m=p*i.scale,f<x&&(f=x),f>S&&(f=S),m<E&&(m=E),m>C&&(m=C)):(f=0,m=0),h.$imageWrapEl.transition(300).transform(`translate3d(${f}px, ${m}
1px,0)`),h.$imageEl.transition(300).transform(`translate3d(0,0,0) scale(${i.scale})`)}function C(){const t=e.zoom,i=e.params.zoom;h.$slideEl||(e.params.virtual&&e.params.virtual.enabled&&e.virtual?h.$slideEl=e.$wrapperEl.children("."+e.params.slideActiveClass):h.$slideEl=e.slides.eq(e.activeIndex),h.$imageEl=h.$slideEl.find("."+i.containerClass).eq(0).find("picture, img, svg, canvas, .swiper-zoom-target").eq(0),h.$imageWrapEl=h.$imageEl.parent("."+i.containerClass)),h.$imageEl&&0!==h.$imageEl.length&&h.$imageWrapEl&&0!==h.$imageWrapEl.length&&(e.params.cssMode&&(e.wrapperEl.style.overflow="",e.wrapperEl.style.touchAction=""),t.scale=1,c=1,h.$imageWrapEl.transition(300).transform("translate3d(0,0,0)"),h.$imageEl.transition(300).transform("translate3d(0,0,0) scale(1)"),h.$slideEl.removeClass(""+i.zoomedSlideClass),h.$slideEl=void 0)}function T(t){const i=e.zoom;i.scale&&1!==i.scale?C():S(t)}function M(){const t=e.support;return{passiveListener:!("touchstart"!==e.touchEvents.start||!t.passiveListener||!e.params.passiveListeners)&&{passive:!0,capture:!1},activeListenerWithCapture:!t.passiveListener||{passive:!1,capture:!0}}}function P(){return"."+e.params.slideClass}function O(t){const{passiveListener:i}=M(),s=P();e.$wrapperEl[t]("gesturestart",s,v,i),e.$wrapperEl[t]("gesturechange",s,b,i),e.$wrapperEl[t]("gestureend",s,w,i)}function k(){a||(a=!0,O("on"))}function z(){a&&(a=!1,O("off"))}function L(){const t=e.zoom;if(t.enabled)return;t.enabled=!0;const i=e.support,{passiveListener:s,activeListenerWithCapture:n}=M(),a=P();i.gestures?(e.$wrapperEl.on(e.touchEvents.start,k,s),e.$wrapperEl.on(e.touchEvents.end,z,s)):"touchstart"===e.touchEvents.start&&(e.$wrapperEl.on(e.touchEvents.start,a,v,s),e.$wrapperEl.on(e.touchEvents.move,a,b,n),e.$wrapperEl.on(e.touchEvents.end,a,w,s),e.touchEvents.cancel&&e.$wrapperEl.on(e.touchEvents.cancel,a,w,s)),e.$wrapperEl.on(e.touchEvents.move,"."+e.params.zoom.containerClass,x,n)}function A(){const t=e.zoom;if(!t.enabled)return;const i=e.support;t.enabled=!1;const{passiveListener:s,activeListenerWithCapture:n}=M(),a=P();i.gestures?(e.$wrapperEl.off(e.touchEvents.start,k,s),e.$wrapperEl.off(e.touchEvents.end,z,s)):"touchstart"===e.touchEvents.start&&(e.$wrapperEl.off(e.touchEvents.start,a,v,s),e.$wrapperEl.off(e.touchEvents.move,a,b,n),e.$wrapperEl.off(e.touchEvents.end,a,w,s),e.touchEvents.cancel&&e.$wrapperEl.off(e.touchEvents.cancel,a,w,s)),e.$wrapperEl.off(e.touchEvents.move,"."+e.params.zoom.containerClass,x,n)}Object.defineProperty(e.zoom,"scale",{get:()=>f,set(e){if(f!==e){const t=h.$imageEl?h.$imageEl[0]:void 0,i=h.$slideEl?h.$slideEl[0]:void 0;s("zoomChange",e,t,i)}f=e}}),i("init",()=>{e.params.zoom.enabled&&L()}),i("destroy",()=>{A()}),i("touchStart",(t,i)=>{e.zoom.enabled&&function(t){const i=e.device;h.$imageEl&&0!==h.$imageEl.length&&(u.isTouched||(i.android&&t.cancelable&&t.preventDefault(),u.isTouched=!0,u.touchesStart.x="touchstart"===t.type?t.targetTouches[0].pageX:t.pageX,u.touchesStart.y="touchstart"===t.type?t.targetTouches[0].pageY:t.pageY))}(i)}),i("touchEnd",(t,i)=>{e.zoom.enabled&&function(){const t=e.zoom;if(!h.$imageEl||0===h.$imageEl.length)return;if(!u.isTouched||!u.isMoved)return u.isTouched=!1,void(u.isMoved=!1);u.isTouched=!1,u.isMoved=!1;let i=300,s=300;const n=p.x*i,a=u.currentX+n,o=p.y*s,r=u.currentY+o;0!==p.x&&(i=Math.abs((a-u.currentX)/p.x)),0!==p.y&&(s=Math.abs((r-u.currentY)/p.y));const l=Math.max(i,s);u.currentX=a,u.currentY=r;const c=u.width*t.scale,d=u.height*t.scale;u.minX=Math.min(h.slideWidth/2-c/2,0),u.maxX=-u.minX,u.minY=Math.min(h.slideHeight/2-d/2,0),u.maxY=-u.minY,u.currentX=Math.max(Math.min(u.currentX,u.maxX),u.minX),u.currentY=Math.max(Math.min(u.currentY,u.maxY),u.minY),h.$imageWrapEl.transition(l).transform(`translate3d(${u.currentX}px, ${u.currentY}px,0)`)}()}),i("doubleTap",(t,i)=>{!e.animating&&e.params.zoom.enabled&&e.zoom.enabled&&e.params.zoom.toggle&&T(i)}),i("transitionEnd",()=>{e.zoom.enabled&&e.params.zoom.enabled&&E()}),i("slideChange",()=>{e.zoom.enabled&&e.params.zoom.enabled&&e.params.cssMode&&E()}),Object.assign(e.zoom,{enable:L,disable:A,in:S,out:C,toggle:T})},function({swiper:e,extendParams:t,on:i,emit:s}){t({lazy:{checkInView:!1,enabled:!1,loadPrevNext:!1,loadPrevNextAmount:1,loadOnTransitionStart:!1,scrollingElement:"",elementClass:"swiper-lazy",loadingClass:"swiper-lazy-loading",loadedClass:"swiper-lazy-loaded",preloaderClass:"swiper-lazy-preloader"}}),e.lazy={};let n=!1,a=!1;function o(t,i=!0){const n=e.params.lazy;if(void 0===t)return;if(0===e.slides.length)return;const a=e.virtual&&e.params.virtual.enabled?e.$wrapperEl.children(`.${e.params.slideClass}[data-swiper-slide-index="${t}"]`):e.slides.eq(t),r=a.find(`.${n.elementClass}:not(.${n.loadedClass}):not(.${n.loadingClass})`);!a.hasClass(n.elementClass)||a.hasClass(n.loadedClass)||a.hasClass(n.loadingClass)||r.push(a[0]),0!==r.length&&r.each(t=>{const r=g(t);r.addClass(n.loadingClass);const l=r.attr("data-background"),c=r.attr("data-src"),d=r.attr("data-srcset"),h=r.attr("data-sizes"),u=r.parent("picture");e.loadImage(r[0],c||l,d,h,!1,()=>
vendor: 7,137 bytes, line 1
1{if(null!=e&&e&&(!e||e.params)&&!e.destroyed){if(l?(r.css("background-image",`url("${l}")`),r.removeAttr("data-background")):(d&&(r.attr("srcset",d),r.removeAttr("data-srcset")),h&&(r.attr("sizes",h),r.removeAttr("data-sizes")),u.length&&u.children("source").each(e=>{const t=g(e);t.attr("data-srcset")&&(t.attr("srcset",t.attr("data-srcset")),t.removeAttr("data-srcset"))}),c&&(r.attr("src",c),r.removeAttr("data-src"))),r.addClass(n.loadedClass).removeClass(n.loadingClass),a.find("."+n.preloaderClass).remove(),e.params.loop&&i){const t=a.attr("data-swiper-slide-index");if(a.hasClass(e.params.slideDuplicateClass)){o(e.$wrapperEl.children(`[data-swiper-slide-index="${t}"]:not(.${e.params.slideDuplicateClass})`).index(),!1)}else{o(e.$wrapperEl.children(`.${e.params.slideDuplicateClass}[data-swiper-slide-index="${t}"]`).index(),!1)}}s("lazyImageReady",a[0],r[0]),e.params.autoHeight&&e.updateAutoHeight()}}),s("lazyImageLoad",a[0],r[0])})}function r(){const{$wrapperEl:t,params:i,slides:s,activeIndex:n}=e,r=e.virtual&&i.virtual.enabled,l=i.lazy;let c=i.slidesPerView;function d(e){if(r){if(t.children(`.${i.slideClass}[data-swiper-slide-index="${e}"]`).length)return!0}else if(s[e])return!0;return!1}function h(e){return r?g(e).attr("data-swiper-slide-index"):g(e).index()}if("auto"===c&&(c=0),a||(a=!0),e.params.watchSlidesProgress)t.children("."+i.slideVisibleClass).each(e=>{o(r?g(e).attr("data-swiper-slide-index"):g(e).index())});else if(c>1)for(let e=n;e<n+c;e+=1)d(e)&&o(e);else o(n);if(l.loadPrevNext)if(c>1||l.loadPrevNextAmount&&l.loadPrevNextAmount>1){const e=l.loadPrevNextAmount,t=Math.ceil(c),i=Math.min(n+t+Math.max(e,t),s.length),a=Math.max(n-Math.max(t,e),0);for(let e=n+t;e<i;e+=1)d(e)&&o(e);for(let e=a;e<n;e+=1)d(e)&&o(e)}else{const e=t.children("."+i.slideNextClass);e.length>0&&o(h(e));const s=t.children("."+i.slidePrevClass);s.length>0&&o(h(s))}}function c(){const t=l();if(!e||e.destroyed)return;const i=e.params.lazy.scrollingElement?g(e.params.lazy.scrollingElement):g(t),s=i[0]===t,a=s?t.innerWidth:i[0].offsetWidth,o=s?t.innerHeight:i[0].offsetHeight,d=e.$el.offset(),{rtlTranslate:h}=e;let u=!1;h&&(d.left-=e.$el[0].scrollLeft);const p=[[d.left,d.top],[d.left+e.width,d.top],[d.left,d.top+e.height],[d.left+e.width,d.top+e.height]];for(let e=0;e<p.length;e+=1){const t=p[e];if(t[0]>=0&&t[0]<=a&&t[1]>=0&&t[1]<=o){if(0===t[0]&&0===t[1])continue;u=!0}}const f=!("touchstart"!==e.touchEvents.start||!e.support.passiveListener||!e.params.passiveListeners)&&{passive:!0,capture:!1};u?(r(),i.off("scroll",c,f)):n||(n=!0,i.on("scroll",c,f))}i("beforeInit",()=>{e.params.lazy.enabled&&e.params.preloadImages&&(e.params.preloadImages=!1)}),i("init",()=>{e.params.lazy.enabled&&(e.params.lazy.checkInView?c():r())}),i("scroll",()=>{e.params.freeMode&&e.params.freeMode.enabled&&!e.params.freeMode.sticky&&r()}),i("scrollbarDragMove resize _freeModeNoMomentumRelease",()=>{e.params.lazy.enabled&&(e.params.lazy.checkInView?c():r())}),i("transitionStart",()=>{e.params.lazy.enabled&&(e.params.lazy.loadOnTransitionStart||!e.params.lazy.loadOnTransitionStart&&!a)&&(e.params.lazy.checkInView?c():r())}),i("transitionEnd",()=>{e.params.lazy.enabled&&!e.params.lazy.loadOnTransitionStart&&(e.params.lazy.checkInView?c():r())}),i("slideChange",()=>{const{lazy:t,cssMode:i,watchSlidesProgress:s,touchReleaseOnEdges:n,resistanceRatio:a}=e.params;t.enabled&&(i||s&&(n||0===a))&&r()}),i("destroy",()=>{e.$el&&e.$el.find("."+e.params.lazy.loadingClass).removeClass(e.params.lazy.loadingClass)}),Object.assign(e.lazy,{load:r,loadInSlide:o})},function({swiper:e,extendParams:t,on:i}){function s(e,t){const i=function(){let e,t,i;return(s,n)=>{for(t=-1,e=s.length;e-t>1;)i=e+t>>1,s[i]<=n?t=i:e=i;return e}}();let s,n;return this.x=e,this.y=t,this.lastIndex=e.length-1,this.interpolate=function(e){return e?(n=i(this.x,e),s=n-1,(e-this.x[s])*(this.y[n]-this.y[s])/(this.x[n]-this.x[s])+this.y[s]):0},this}function n(){e.controller.control&&e.controller.spline&&(e.controller.spline=void 0,delete e.controller.spline)}t({controller:{control:void 0,inverse:!1,by:"slide"}}),e.controller={control:void 0},i("beforeInit",()=>{e.controller.control=e.params.controller.control}),i("update",()=>{n()}),i("resize",()=>{n()}),i("observerUpdate",()=>{n()}),i("setTranslate",(t,i,s)=>{e.controller.control&&e.controller.setTranslate(i,s)}),i("setTransition",(t,i,s)=>{e.controller.control&&e.controller.setTransition(i,s)}),Object.assign(e.controller,{setTranslate:function(t,i){const n=e.controller.control;let a,o;const r=e.constructor;function l(t){const i=e.rtlTranslate?-e.translate:e.translate;"slide"===e.params.controller.by&&(!function(t){e.controller.spline||(e.controller.spline=e.params.loop?new s(e.slidesGrid,t.slidesGrid):new s(e.snapGrid,t.snapGrid))}(t),o=-e.controller.spline.interpolate(-i)),o&&"container"!==e.params.controller.by||(a=(t.maxTranslate()-t.minTranslate())/(e.maxTranslate()-e.minTranslate()),o=(i-e.minTranslate())*a+t.minTranslate()),e.params.controller.inverse&&(o=t.maxTranslate()-o),t.updateProgress(o),t.setTranslate(o,e),t.updateActiveIndex(),t.updateSlidesClasses()}if(Array.isArray(n))for(let e=0;e<n.length;e+=1)n[e]!==i&&n[e]instanceof r&&l(n[e]);else n instanceof r&&i!==n&&l(n)},setTransition:function(t,i){const s=e.constructor,n=e.controller.control;let a;function o(i){i.setTransition(t,e),0!==t&&(i.transitionStart(),i.params.autoHeight&&v(()=>{i.updateAutoHeight()}),i.$wrapperEl.transitionEnd(()=>{n&&(i.params.loop&&"slide"===e.params.controller.by&&i.loopFix(),i.transitionEnd())}))}if(Array.isArray(n))for(a=0;a<n.length;a+=1)n[a]!==i&&n[a]instanceof s&&o(n[a]);else n instanceof s&&i!==n&&o(n)}})},function({swiper:e,extendParams:t,on:i}){t({a11y:{enabled:!0,notificationClass:"swiper-notification",prevSlideMessage:"Previous slide",nextSlideMessage:"Next slide",firstSlideMessage:"This is the first slide",lastSlideMessage:"This is the last slide",paginationBulletMessage:"Go to slide {{index}}",slideLabelMessage:"{{index}} / {{slidesLength}}",containerMessage:null,containerRoleDescriptionMessage:null,itemRoleDescriptionMessage:null,slideRole:"group",id:null}}),e.a11y={clicked:!1};let s=null;function n(e){const t=s;0!==t.length&&(t.html(""),t.html(e))}function a(e){e.attr("tabIndex","0")}function o(e){e.attr("tabIndex","-1")}function r(e,t){e.attr("role",t)}function l(e,t){e.attr("aria-roledescription",t)}function c(e,t){e.attr("aria-label",t)}function d(e){e.attr("aria-disabled",!0)}function h(e){e.attr("aria-disabled",!1)}function u(t){if(13!==t.keyCode&&32!==t.keyCode)return;const i=e.params.a11y,s=g(t.target);e.navigation&&e.navigation.$nextEl&&s.is(e.navigation.$nextEl)&&(e.isEnd&&!e.params.loop||e.slideNext(),e.isEnd?n(i.lastSlideMessage):n(i.nextSlideMessage)),e.navigation&&e.navigation.$prevEl&&s.is(e.navigation.$prevEl)&&(e.isBeginning&&!e.params.loop||e.slidePrev(),e.isBeginning?n(i.firstSlideMessage):n(i.prevSlideMessage)),e.pagination&&s.is(V(e.params.pagination.bulletClass))&&s[0].click()}function p(){return e.pagination&&e.pagination.bullets&&e.pagination.bullets.length}function f(){return p()&&e.params.pagination.clickable}const m=(e,t,i)=>
1{a(e),"BUTTON"!==e[0].tagName&&(r(e,"button"),e.on("keydown",u)),c(e,i),function(e,t){e.attr("aria-controls",t)}(e,t)},v=()=>{e.a11y.clicked=!0},b=()=>{requestAnimationFrame(()=>{requestAnimationFrame(()=>{e.a11y.clicked=!1})})},y=t=>{if(e.a11y.clicked)return;const i=t.target.closest("."+e.params.slideClass);if(!i||!e.slides.includes(i))return;const s=e.slides.indexOf(i)===e.activeIndex,n=e.params.watchSlidesProgress&&e.visibleSlides&&e.visibleSlides.includes(i);s||n||(e.isHorizontal()?e.el.scrollLeft=0:e.el.scrollTop=0,e.slideTo(e.slides.indexOf(i),0))},w=()=>{const t=e.params.a11y;t.itemRoleDescriptionMessage&&l(g(e.slides),t.itemRoleDescriptionMessage),t.slideRole&&r(g(e.slides),t.slideRole);const i=e.params.loop?e.slides.filter(t=>!t.classList.contains(e.params.slideDuplicateClass)).length:e.slides.length;t.slideLabelMessage&&e.slides.each((s,n)=>{const a=g(s),o=e.params.loop?parseInt(a.attr("data-swiper-slide-index"),10):n;c(a,t.slideLabelMessage.replace(/\{\{index\}\}/,o+1).replace(/\{\{slidesLength\}\}/,i))})},x=()=>{const t=e.params.a11y;e.$el.append(s);const i=e.$el;t.containerRoleDescriptionMessage&&l(i,t.containerRoleDescriptionMessage),t.containerMessage&&c(i,t.containerMessage);const n=e.$wrapperEl,a=t.id||n.attr("id")||"swiper-wrapper-"+function(e=16){return"x".repeat(e).replace(/x/g,()=>Math.round(16*Math.random()).toString(16))}(16),o=e.params.autoplay&&e.params.autoplay.enabled?"off":"polite";var r;let d,h;r=a,n.attr("id",r),function(e,t){e.attr("aria-live",t)}(n,o),w(),e.navigation&&e.navigation.$nextEl&&(d=e.navigation.$nextEl),e.navigation&&e.navigation.$prevEl&&(h=e.navigation.$prevEl),d&&d.length&&m(d,a,t.nextSlideMessage),h&&h.length&&m(h,a,t.prevSlideMessage),f()&&e.pagination.$el.on("keydown",V(e.params.pagination.bulletClass),u),e.$el.on("focus",y,!0),e.$el.on("pointerdown",v,!0),e.$el.on("pointerup",b,!0)};i("beforeInit",()=>{s=g(`<span class="${e.params.a11y.notificationClass}" aria-live="assertive" aria-atomic="true"></span>`)}),i("afterInit",()=>{e.params.a11y.enabled&&x()}),i("slidesLengthChange snapGridLengthChange slidesGridLengthChange",()=>{e.params.a11y.enabled&&w()}),i("fromEdge toEdge afterInit lock unlock",()=>{e.params.a11y.enabled&&function(){if(e.params.loop||e.params.rewind||!e.navigation)return;const{$nextEl:t,$prevEl:i}=e.navigation;i&&i.length>0&&(e.isBeginning?(d(i),o(i)):(h(i),a(i))),t&&t.length>0&&(e.isEnd?(d(t),o(t)):(h(t),a(t)))}()}),i("paginationUpdate",()=>{e.params.a11y.enabled&&function(){const t=e.params.a11y;p()&&e.pagination.bullets.each(i=>{const s=g(i);e.params.pagination.clickable&&(a(s),e.params.pagination.renderBullet||(r(s,"button"),c(s,t.paginationBulletMessage.replace(/\{\{index\}\}/,s.index()+1)))),s.is("."+e.params.pagination.bulletActiveClass)?s.attr("aria-current","true"):s.removeAttr("aria-current")})}()}),i("destroy",()=>{e.params.a11y.enabled&&function(){let t,i;s&&s.length>0&&s.remove(),e.navigation&&e.navigation.$nextEl&&(t=e.navigation.$nextEl),e.navigation&&e.navigation.$prevEl&&(i=e.navigation.$prevEl),t&&t.off("keydown",u),i&&i.off("keydown",u),f()&&e.pagination.$el.off("keydown",V(e.params.pagination.bulletClass),u),e.$el.off("focus",y,!0),e.$el.off("pointerdown",v,!0),e.$el.off("pointerup",b,!0)}()})},function({swiper:e,extendParams:t,on:i}){t({history:{enabled:!1,root:"",replaceState:!1,key:"slides",keepQuery:!1}});let s=!1,n={};const a=e=>e.toString().replace(/\s+/g,"-").replace(/[^\w-]+/g,"").replace(/--+/g,"-").replace(/^-+/,"").replace(/-+$/,""),o=e=>{const t=l();let i;i=e?new URL(e):t.location;const s=i.pathname.slice(1).split("/").filter(e=>""!==e),n=s.length;return{key:s[n-2],value:s[n-1]}},r=(t,i)=>{const n=l();if(!s||!e.params.history.enabled)return;let o;o=e.params.url?new URL(e.params.url):n.location;const r=e.slides.eq(i);let c=a(r.attr("data-history"));if(e.params.history.root.length>0){let i=e.params.history.root;"/"===i[i.length-1]&&(i=i.slice(0,i.length-1)),c=`${i}/${t}/${c}`}else o.pathname.includes(t)||(c=`${t}/${c}`);e.params.history.keepQuery&&(c+=o.search);const d=n.history.state;d&&d.value===c||(e.params.history.replaceState?n.history.replaceState({value:c},null,c):n.history.pushState({value:c},null,c))},c=(t,i,s)=>{if(i)for(let n=0,o=e.slides.length;n<o;n+=1){const o=e.slides.eq(n);if(a(o.attr("data-history"))===i&&!o.hasClass(e.params.slideDuplicateClass)){const i=o.index();e.slideTo(i,t,s)}}else e.slideTo(0,t,s)},d=()=>{n=o(e.params.url),c(e.params.speed,n.value,!1)};i("init",()=>{e.params.history.enabled&&(()=>{const t=l();
1if(e.params.history){if(!t.history||!t.history.pushState)return e.params.history.enabled=!1,void(e.params.hashNavigation.enabled=!0);s=!0,n=o(e.params.url),(n.key||n.value)&&(c(0,n.value,e.params.runCallbacksOnInit),e.params.history.replaceState||t.addEventListener("popstate",d))}})()}),i("destroy",()=>{e.params.history.enabled&&(()=>{const t=l();e.params.history.replaceState||t.removeEventListener("popstate",d)})()}),i("transitionEnd _freeModeNoMomentumRelease",()=>{s&&r(e.params.history.key,e.activeIndex)}),i("slideChange",()=>{s&&e.params.cssMode&&r(e.params.history.key,e.activeIndex)})},function({swiper:e,extendParams:t,emit:i,on:s}){let n=!1;const a=o(),r=l();t({hashNavigation:{enabled:!1,replaceState:!1,watchState:!1}});const c=()=>{i("hashChange");const t=a.location.hash.replace("#","");if(t!==e.slides.eq(e.activeIndex).attr("data-hash")){const i=e.$wrapperEl.children(`.${e.params.slideClass}[data-hash="${t}"]`).index();if(void 0===i)return;e.slideTo(i)}},d=()=>{if(n&&e.params.hashNavigation.enabled)if(e.params.hashNavigation.replaceState&&r.history&&r.history.replaceState)r.history.replaceState(null,null,"#"+e.slides.eq(e.activeIndex).attr("data-hash")||""),i("hashSet");else{const t=e.slides.eq(e.activeIndex),s=t.attr("data-hash")||t.attr("data-history");a.location.hash=s||"",i("hashSet")}};s("init",()=>{e.params.hashNavigation.enabled&&(()=>{if(!e.params.hashNavigation.enabled||e.params.history&&e.params.history.enabled)return;n=!0;const t=a.location.hash.replace("#","");if(t){const i=0;for(let s=0,n=e.slides.length;s<n;s+=1){const n=e.slides.eq(s);if((n.attr("data-hash")||n.attr("data-history"))===t&&!n.hasClass(e.params.slideDuplicateClass)){const t=n.index();e.slideTo(t,i,e.params.runCallbacksOnInit,!0)}}}e.params.hashNavigation.watchState&&g(r).on("hashchange",c)})()}),s("destroy",()=>{e.params.hashNavigation.enabled&&e.params.hashNavigation.watchState&&g(r).off("hashchange",c)}),s("transitionEnd _freeModeNoMomentumRelease",()=>{n&&d()}),s("slideChange",()=>{n&&e.params.cssMode&&d()})},function({swiper:e,extendParams:t,on:i,emit:s}){let n;function a(){if(!e.size)return e.autoplay.running=!1,void(e.autoplay.paused=!1);const t=e.slides.eq(e.activeIndex);let i=e.params.autoplay.delay;t.attr("data-swiper-autoplay")&&(i=t.attr("data-swiper-autoplay")||e.params.autoplay.delay),clearTimeout(n),n=v(()=>{let t;e.params.autoplay.reverseDirection?e.params.loop?(e.loopFix(),t=e.slidePrev(e.params.speed,!0,!0),s("autoplay")):e.isBeginning?e.params.autoplay.stopOnLastSlide?l(
vendor: 12,200 bytes, line 1
1):(t=e.slideTo(e.slides.length-1,e.params.speed,!0,!0),s("autoplay")):(t=e.slidePrev(e.params.speed,!0,!0),s("autoplay")):e.params.loop?(e.loopFix(),t=e.slideNext(e.params.speed,!0,!0),s("autoplay")):e.isEnd?e.params.autoplay.stopOnLastSlide?l():(t=e.slideTo(0,e.params.speed,!0,!0),s("autoplay")):(t=e.slideNext(e.params.speed,!0,!0),s("autoplay")),(e.params.cssMode&&e.autoplay.running||!1===t)&&a()},i)}function r(){return void 0===n&&(!e.autoplay.running&&(e.autoplay.running=!0,s("autoplayStart"),a(),!0))}function l(){return!!e.autoplay.running&&(void 0!==n&&(n&&(clearTimeout(n),n=void 0),e.autoplay.running=!1,s("autoplayStop"),!0))}function c(t){e.autoplay.running&&(e.autoplay.paused||(n&&clearTimeout(n),e.autoplay.paused=!0,0!==t&&e.params.autoplay.waitForTransition?["transitionend","webkitTransitionEnd"].forEach(t=>{e.$wrapperEl[0].addEventListener(t,h)}):(e.autoplay.paused=!1,a())))}function d(){const t=o();"hidden"===t.visibilityState&&e.autoplay.running&&c(),"visible"===t.visibilityState&&e.autoplay.paused&&(a(),e.autoplay.paused=!1)}function h(t){e&&!e.destroyed&&e.$wrapperEl&&t.target===e.$wrapperEl[0]&&(["transitionend","webkitTransitionEnd"].forEach(t=>{e.$wrapperEl[0].removeEventListener(t,h)}),e.autoplay.paused=!1,e.autoplay.running?a():l())}function u(){e.params.autoplay.disableOnInteraction?l():(s("autoplayPause"),c()),["transitionend","webkitTransitionEnd"].forEach(t=>{e.$wrapperEl[0].removeEventListener(t,h)})}function p(){e.params.autoplay.disableOnInteraction||(e.autoplay.paused=!1,s("autoplayResume"),a())}e.autoplay={running:!1,paused:!1},t({autoplay:{enabled:!1,delay:3e3,waitForTransition:!0,disableOnInteraction:!0,stopOnLastSlide:!1,reverseDirection:!1,pauseOnMouseEnter:!1}}),i("init",()=>{if(e.params.autoplay.enabled){r();o().addEventListener("visibilitychange",d),e.params.autoplay.pauseOnMouseEnter&&(e.$el.on("mouseenter",u),e.$el.on("mouseleave",p))}}),i("beforeTransitionStart",(t,i,s)=>{e.autoplay.running&&(s||!e.params.autoplay.disableOnInteraction?e.autoplay.pause(i):l())}),i("sliderFirstMove",()=>{e.autoplay.running&&(e.params.autoplay.disableOnInteraction?l():c())}),i("touchEnd",()=>{e.params.cssMode&&e.autoplay.paused&&!e.params.autoplay.disableOnInteraction&&a()}),i("destroy",()=>{e.$el.off("mouseenter",u),e.$el.off("mouseleave",p),e.autoplay.running&&l();o().removeEventListener("visibilitychange",d)}),Object.assign(e.autoplay,{pause:c,run:a,start:r,stop:l})},function({swiper:e,extendParams:t,on:i}){t({thumbs:{swiper:null,multipleActiveThumbs:!0,autoScrollOffset:0,slideThumbActiveClass:"swiper-slide-thumb-active",thumbsContainerClass:"swiper-thumbs"}});let s=!1,n=!1;function a(){const t=e.thumbs.swiper;if(!t||t.destroyed)return;const i=t.clickedIndex,s=t.clickedSlide;if(s&&g(s).hasClass(e.params.thumbs.slideThumbActiveClass))return;if(null==i)return;let n;if(n=t.params.loop?parseInt(g(t.clickedSlide).attr("data-swiper-slide-index"),10):i,e.params.loop){let t=e.activeIndex;e.slides.eq(t).hasClass(e.params.slideDuplicateClass)&&(e.loopFix(),e._clientLeft=e.$wrapperEl[0].clientLeft,t=e.activeIndex);const i=e.slides.eq(t).prevAll(`[data-swiper-slide-index="${n}"]`).eq(0).index(),s=e.slides.eq(t).nextAll(`[data-swiper-slide-index="${n}"]`).eq(0).index();n=void 0===i?s:void 0===s?i:s-t<t-i?s:i}e.slideTo(n)}function o(){const{thumbs:t}=e.params;if(s)return!1;s=!0;const i=e.constructor;if(t.swiper instanceof i)e.thumbs.swiper=t.swiper,Object.assign(e.thumbs.swiper.originalParams,{watchSlidesProgress:!0,slideToClickedSlide:!1}),Object.assign(e.thumbs.swiper.params,{watchSlidesProgress:!0,slideToClickedSlide:!1});else if(w(t.swiper)){const s=Object.assign({},t.swiper);Object.assign(s,{watchSlidesProgress:!0,slideToClickedSlide:!1}),e.thumbs.swiper=new i(s),n=!0}return e.thumbs.swiper.$el.addClass(e.params.thumbs.thumbsContainerClass),e.thumbs.swiper.on("tap",a),!0}function r(t){const i=e.thumbs.swiper;if(!i||i.destroyed)return;const s="auto"===i.params.slidesPerView?i.slidesPerViewDynamic():i.params.slidesPerView;let n=1;const a=e.params.thumbs.slideThumbActiveClass;if(e.params.slidesPerView>1&&!e.params.centeredSlides&&(n=e.params.slidesPerView),e.params.thumbs.multipleActiveThumbs||(n=1),n=Math.floor(n),i.slides.removeClass(a),i.params.loop||i.params.virtual&&i.params.virtual.enabled)for(let t=0;t<n;t+=1)i.$wrapperEl.children(`[data-swiper-slide-index="${e.realIndex+t}"]`).addClass(a);else for(let t=0;t<n;t+=1)i.slides.eq(e.realIndex+t).addClass(a);const o=e.params.thumbs.autoScrollOffset,r=o&&!i.params.loop;if(e.realIndex!==i.realIndex||r){let n,a,l=i.activeIndex;if(i.params.loop){i.slides.eq(l).hasClass(i.params.slideDuplicateClass)&&(i.loopFix(),i._clientLeft=i.$wrapperEl[0].clientLeft,l=i.activeIndex);const t=i.slides.eq(l).prevAll(`[data-swiper-slide-index="${e.realIndex}"]`).eq(0).index(),s=i.slides.eq(l).nextAll(`[data-swiper-slide-index="${e.realIndex}"]`).eq(0).index();n=void 0===t?s:void 0===s?t:s-l==l-t?i.params.slidesPerGroup>1?s:l:s-l<l-t?s:t,a=e.activeIndex>e.previousIndex?"next":"prev"}else n=e.realIndex,a=n>e.previousIndex?"next":"prev";r&&(n+="next"===a?o:-1*o),i.visibleSlidesIndexes&&i.visibleSlidesIndexes.indexOf(n)<0&&(i.params.centeredSlides?n=n>l?n-Math.floor(s/2)+1:n+Math.floor(s/2)-1:n>l&&i.params.slidesPerGroup,i.slideTo(n,t?0:void 0))}}e.thumbs={swiper:null},i("beforeInit",()=>{const{thumbs:t}=e.params;t&&t.swiper&&(o(),r(!0))}),i("slideChange update resize observerUpdate",()=>{r()}),i("setTransition",(t,i)=>{const s=e.thumbs.swiper;s&&!s.destroyed&&s.setTransition(i)}),i("beforeDestroy",()=>{const t=e.thumbs.swiper;t&&!t.destroyed&&n&&t.destroy()}),Object.assign(e.thumbs,{init:o,update:r})},function({swiper:e,extendParams:t,emit:i,once:s}){t({freeMode:{enabled:!1,momentum:!0,momentumRatio:1,momentumBounce:!0,momentumBounceRatio:1,momentumVelocityRatio:1,sticky:!1,minimumVelocity:.02}}),Object.assign(e,{freeMode:{onTouchStart:function(){const t=e.getTranslate();e.setTranslate(t),e.setTransition(0),e.touchEventsData.velocities.length=0,e.freeMode.onTouchEnd({currentPos:e.rtl?e.translate:-e.translate})},onTouchMove:function(){const{touchEventsData:t,touches:i}=e;0===t.velocities.length&&t.velocities.push({position:i[e.isHorizontal()?"startX":"startY"],time:t.touchStartTime}),t.velocities.push({position:i[e.isHorizontal()?"currentX":"currentY"],time:b()})},onTouchEnd:function({currentPos:t}){const{params:n,$wrapperEl:a,rtlTranslate:o,snapGrid:r,touchEventsData:l}=e,c=b()-l.touchStartTime;if(t<-e.minTranslate())e.slideTo(e.activeIndex);else if(t>-e.maxTranslate())e.slides.length<r.length?e.slideTo(r.length-1):e.slideTo(e.slides.length-1);else{if(n.freeMode.momentum){if(l.velocities.length>1){const t=l.velocities.pop(),i=l.velocities.pop(),s=t.position-i.position,a=t.time-i.time;e.velocity=s/a,e.velocity/=2,Math.abs(e.velocity)<n.freeMode.minimumVelocity&&(e.velocity=0),(a>150||b()-t.time>300)&&(e.velocity=0)}else e.velocity=0;e.velocity*=n.freeMode.momentumVelocityRatio,l.velocities.length=0;let t=1e3*n.freeMode.momentumRatio;const c=e.velocity*t;let d=e.translate+c;o&&(d=-d);let h,u=!1;const p=20*Math.abs(e.velocity)*n.freeMode.momentumBounceRatio;let f;if(d<e.maxTranslate())n.freeMode.momentumBounce?(d+e.maxTranslate()<-p&&(d=e.maxTranslate()-p),h=e.maxTranslate(),u=!0,l.allowMomentumBounce=!0):d=e.maxTranslate(),n.loop&&n.centeredSlides&&(f=!0);else if(d>e.minTranslate())n.freeMode.momentumBounce?(d-e.minTranslate()>p&&(d=e.minTranslate()+p),h=e.minTranslate(),u=!0,l.allowMomentumBounce=!0):d=e.minTranslate(),n.loop&&n.centeredSlides&&(f=!0);else if(n.freeMode.sticky){let t;for(let e=0;e<r.length;e+=1)if(r[e]>-d){t=e;break}d=Math.abs(r[t]-d)<Math.abs(r[t-1]-d)||"next"===e.swipeDirection?r[t]:r[t-1],d=-d}if(f&&s("transitionEnd",()=>{e.loopFix()}),0!==e.velocity){if(t=o?Math.abs((-d-e.translate)/e.velocity):Math.abs((d-e.translate)/e.velocity),n.freeMode.sticky){const i=Math.abs((o?-d:d)-e.translate),s=e.slidesSizesGrid[e.activeIndex];t=i<s?n.speed:i<2*s?1.5*n.speed:2.5*n.speed}}else if(n.freeMode.sticky)return void e.slideToClosest();n.freeMode.momentumBounce&&u?(e.updateProgress(h),e.setTransition(t),e.setTranslate(d),e.transitionStart(!0,e.swipeDirection),e.animating=!0,a.transitionEnd(()=>{e&&!e.destroyed&&l.allowMomentumBounce&&(i("momentumBounce"),e.setTransition(n.speed),setTimeout(()=>{e.setTranslate(h),a.transitionEnd(()=>{e&&!e.destroyed&&e.transitionEnd()})},0))})):e.velocity?(i("_freeModeNoMomentumRelease"),e.updateProgress(d),e.setTransition(t),e.setTranslate(d),e.transitionStart(!0,e.swipeDirection),e.animating||(e.animating=!0,a.transitionEnd(()=>{e&&!e.destroyed&&e.transitionEnd()}))):e.updateProgress(d),e.updateActiveIndex(),e.updateSlidesClasses()}else{if(n.freeMode.sticky)return void e.slideToClosest();n.freeMode&&i("_freeModeNoMomentumRelease")}(!n.freeMode.momentum||c>=n.longSwipesMs)&&(e.updateProgress(),e.updateActiveIndex(),e.updateSlidesClasses())}}}})},function({swiper:e,extendParams:t}){let i,s,n;t({grid:{rows:1,fill:"column"}}),e.grid={initSlides:t=>{const{slidesPerView:a}=e.params,{rows:o,fill:r}=e.params.grid;s=i/o,n=Math.floor(t/o),i=Math.floor(t/o)===t/o?t:Math.ceil(t/o)*o,"auto"!==a&&"row"===r&&(i=Math.max(i,a*o))},updateSlide:(t,a,o,r)=>{const{slidesPerGroup:l,spaceBetween:c}=e.params,{rows:d,fill:h}=e.params.grid;let u,p,f;if("row"===h&&l>1){const e=Math.floor(t/(l*d)),s=t-d*l*e,n=0===e?l:Math.min(Math.ceil((o-e*d*l)/d),l);f=Math.floor(s/n),p=s-f*n+e*l,u=p+f*i/d,a.css({"-webkit-order":u,order:u})}else"column"===h?(p=Math.floor(t/d),f=t-p*d,(p>n||p===n&&f===d-1)&&(f+=1,f>=d&&(f=0,p+=1))):(f=Math.floor(t/s),p=t-f*s);a.css(r("margin-top"),0!==f?c&&c+"px":"")},updateWrapperSize:(t,s,n)=>{const{spaceBetween:a,centeredSlides:o,roundLengths:r}=e.params,{rows:l}=e.params.grid;if(e.virtualSize=(t+a)*i,e.virtualSize=Math.ceil(e.virtualSize/l)-a,e.$wrapperEl.css({[n("width")]:e.virtualSize+a+"px"}),o){s.splice(0,s.length);const t=[];for(let i=0;i<s.length;i+=1){let n=s[i];r&&(n=Math.floor(n)),s[i]<e.virtualSize+s[0]&&t.push(n)}s.push(...t)}}}},function({swiper:e}){Object.assign(e,{appendSlide:U.bind(e),prependSlide:Z.bind(e),addSlide:K.bind(e),removeSlide:J.bind(e),removeAllSlides:Q.bind(e)})},function({swiper:e,extendParams:t,on:i}){t({fadeEffect:{crossFade:!1,transformEl:null}}),ee({effect:"fade",swiper:e,on:i,setTranslate:()=>{const{slides:t}=e,i=e.params.fadeEffect;for(let s=0;s<t.length;s+=1){const t=e.slides.eq(s);let n=-t[0].swiperSlideOffset;e.params.virtualTranslate||(n-=e.translate);let a=0;e.isHorizontal()||(a=n,n=0);const o=e.params.fadeEffect.crossFade?Math.max(1-Math.abs(t[0].progress),0):1+Math.min(Math.max(t[0].progress,-1),0);te(i,t).css({opacity:o}).transform(`translate3d(${n}px, ${a}px, 0px)`)}},setTransition:t=>{const{transformEl:i}=e.params.fadeEffect;(i?e.slides.find(i):e.slides).transition(t),ie({swiper:e,duration:t,transformEl:i,allSlides:!0})},overwriteParams:()=>({slidesPerView:1,slidesPerGroup:1,watchSlidesProgress:!0,spaceBetween:0,virtualTranslate:!e.params.cssMode})})},function({swiper:e,extendParams:t,on:i}){t({cubeEffect:{slideShadows:!0,shadow:!0,shadowOffset:20,shadowScale:.94}});const s=(e,t,i)=>{let s=i?e.find(".swiper-slide-shadow-left"):e.find(".swiper-slide-shadow-top"),n=i?e.find(".swiper-slide-shadow-right"):e.find(".swiper-slide-shadow-bottom");0===s.length&&(s=g(`<div class="swiper-slide-shadow-${i?"left":"top"}"></div>`),e.append(s)),0===n.length&&(n=g(`<div class="swiper-slide-shadow-${i?"right":"bottom"}"></div>`),e.append(n)),s.length&&(s[0].style.opacity=Math.max(-t,0)),n.length&&(n[0].style.opacity=Math.max(t,0))};ee({effect:"cube",swiper:e,on:i,setTranslate:()=>{const{$el:t,$wrapperEl:i,slides:n,width:a,height:o,rtlTranslate:r,size:l,browser:c}=e,d=e.params.cubeEffect,h=e.isHorizontal(),u=e.virtual&&e.params.virtual.enabled;let p,f=0;d.shadow&&(h?(p=i.find(".swiper-cube-shadow"),0===p.length&&(p=g('<div class="swiper-cube-shadow"></div>'),i.append(p)),p.css({height:a+"px"})):(p=t.find(".swiper-cube-shadow"),0===p.length&&(p=g('<div class="swiper-cube-shadow"></div>'),t.append(p))));for(let e=0;e<n.length;e+=1){const t=n.eq(e);let i=e;u&&(i=parseInt(t.attr("data-swiper-slide-index"),10));let a=90*i,o=Math.floor(a/360);r&&(a=-a,o=Math.floor(-a/360));
1const c=Math.max(Math.min(t[0].progress,1),-1);let p=0,m=0,g=0;i%4==0?(p=4*-o*l,g=0):(i-1)%4==0?(p=0,g=4*-o*l):(i-2)%4==0?(p=l+4*o*l,g=l):(i-3)%4==0&&(p=-l,g=3*l+4*l*o),r&&(p=-p),h||(m=p,p=0);const v=`rotateX(${h?0:-a}deg) rotateY(${h?a:0}deg) translate3d(${p}px, ${m}px, ${g}px)`;c<=1&&c>-1&&(f=90*i+90*c,r&&(f=90*-i-90*c)),t.transform(v),d.slideShadows&&s(t,c,h)}if(i.css({"-webkit-transform-origin":`50% 50% -${l/2}px`,"transform-origin":`50% 50% -${l/2}px`}),d.shadow)if(h)p.transform(`translate3d(0px, ${a/2+d.shadowOffset}px, ${-a/2}px) rotateX(90deg) rotateZ(0deg) scale(${d.shadowScale})`);else{const e=Math.abs(f)-90*Math.floor(Math.abs(f)/90),t=1.5-(Math.sin(2*e*Math.PI/360)/2+Math.cos(2*e*Math.PI/360)/2),i=d.shadowScale,s=d.shadowScale/t,n=d.shadowOffset;p.transform(`scale3d(${i}, 1, ${s}) translate3d(0px, ${o/2+n}px, ${-o/2/s}px) rotateX(-90deg)`)}const m=c.isSafari||c.isWebView?-l/2:0;i.transform(`translate3d(0px,0,${m}px) rotateX(${e.isHorizontal()?0:f}deg) rotateY(${e.isHorizontal()?-f:0}deg)`),i[0].style.setProperty("--swiper-cube-translate-z",m+"px")},setTransition:t=>{const{$el:i,slides:s}=e;s.transition(t).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(t),e.params.cubeEffect.shadow&&!e.isHorizontal()&&i.find(".swiper-cube-shadow").transition(t)},recreateShadows:()=>{const t=e.isHorizontal();e.slides.each(e=>{const i=Math.max(Math.min(e.progress,1),-1);s(g(e),i,t)})},getEffectParams:()=>e.params.cubeEffect,perspective:()=>!0,overwriteParams:()=>({slidesPerView:1,slidesPerGroup:1,watchSlidesProgress:!0,resistanceRatio:0,spaceBetween:0,centeredSlides:!1,virtualTranslate:!0})})},function({swiper:e,extendParams:t,on:i}){t({flipEffect:{slideShadows:!0,limitRotation:!0,transformEl:null}});const s=(t,i,s)=>{let n=e.isHorizontal()?t.find(".swiper-slide-shadow-left"):t.find(".swiper-slide-shadow-top"),a=e.isHorizontal()?t.find(".swiper-slide-shadow-right"):t.find(".swiper-slide-shadow-bottom");0===n.length&&(n=se(s,t,e.isHorizontal()?"left":"top")),0===a.length&&(a=se(s,t,e.isHorizontal()?"right":"bottom")),n.length&&(n[0].style.opacity=Math.max(-i,0)),a.length&&(a[0].style.opacity=Math.max(i,0))};ee({effect:"flip",swiper:e,on:i,setTranslate:()=>{const{slides:t,rtlTranslate:i}=e,n=e.params.flipEffect;for(let a=0;a<t.length;a+=1){const o=t.eq(a);let r=o[0].progress;e.params.flipEffect.limitRotation&&(r=Math.max(Math.min(o[0].progress,1),-1));const l=o[0].swiperSlideOffset;let c=-180*r,d=0,h=e.params.cssMode?-l-e.translate:-l,u=0;e.isHorizontal()?i&&(c=-c):(u=h,h=0,d=-c,c=0),o[0].style.zIndex=-Math.abs(Math.round(r))+t.length,n.slideShadows&&s(o,r,n);const p=`translate3d(${h}px, ${u}px, 0px) rotateX(${d}deg) rotateY(${c}deg)`;te(n,o).transform(p)}},setTransition:t=>{const{transformEl:i}=e.params.flipEffect;(i?e.slides.find(i):e.slides).transition(t).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(t),ie({swiper:e,duration:t,transformEl:i})},recreateShadows:()=>{const t=e.params.flipEffect;e.slides.each(i=>{const n=g(i);let a=n[0].progress;e.params.flipEffect.limitRotation&&(a=Math.max(Math.min(i.progress,1),-1)),s(n,a,t)})},getEffectParams:()=>e.params.flipEffect,perspective:()=>!0,overwriteParams:()=>({slidesPerView:1,slidesPerGroup:1,watchSlidesProgress:!0,spaceBetween:0,virtualTranslate:!e.params.cssMode})})},function({swiper:e,extendParams:t,on:i}){t({coverflowEffect:{rotate:50,stretch:0,depth:100,scale:1,modifier:1,slideShadows:!0,transformEl:null}}),ee({effect:"coverflow",swiper:e,on:i,setTranslate:()=>{const{width:t,height:i,slides:s,slidesSizesGrid:n}=e,a=e.params.coverflowEffect,o=e.isHorizontal(),r=e.translate,l=o?t/2-r:i/2-r,c=o?a.rotate:-a.rotate,d=a.depth;for(let e=0,t=s.length;e<t;e+=1){const t=s.eq(e),i=n[e],r=(l-t[0].swiperSlideOffset-i/2)/i,h="function"==typeof a.modifier?a.modifier(r):r*a.modifier;let u=o?c*h:0,p=o?0:c*h,f=-d*Math.abs(h),m=a.stretch;"string"==typeof m&&-1!==m.indexOf("%")&&(m=parseFloat(a.stretch)/100*i);let g=o?0:m*h,v=o?m*h:0,b=1-(1-a.scale)*Math.abs(h);Math.abs(v)<.001&&(v=0),Math.abs(g)<.001&&(g=0),Math.abs(f)<.001&&(f=0),Math.abs(u)<.001&&(u=0),Math.abs(p)<.001&&(p=0),Math.abs(b)<.001&&(b=0);const y=`translate3d(${v}px,${g}px,${f}px)  rotateX(${p}deg) rotateY(${u}deg) scale(${b})`;
1if(te(a,t).transform(y),t[0].style.zIndex=1-Math.abs(Math.round(h)),a.slideShadows){let e=o?t.find(".swiper-slide-shadow-left"):t.find(".swiper-slide-shadow-top"),i=o?t.find(".swiper-slide-shadow-right"):t.find(".swiper-slide-shadow-bottom");0===e.length&&(e=se(a,t,o?"left":"top")),0===i.length&&(i=se(a,t,o?"right":"bottom")),e.length&&(e[0].style.opacity=h>0?h:0),i.length&&(i[0].style.opacity=-h>0?-h:0)}}},setTransition:t=>{const{transformEl:i}=e.params.coverflowEffect;(i?e.slides.find(i):e.slides).transition(t).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(t)},perspective:()=>!0,overwriteParams:()=>({watchSlidesProgress:!0})})},function({swiper:e,extendParams:t,on:i}){t({creativeEffect:{transformEl:null,limitProgress:1,shadowPerProgress:!1,progressMultiplier:1,perspective:!0,prev:{translate:[0,0,0],rotate:[0,0,0],opacity:1,scale:1},next:{translate:[0,0,0],rotate:[0,0,0],opacity:1,scale:1}}});const s=e=>"string"==typeof e?e:e+"px";ee({effect:"creative",swiper:e,on:i,setTranslate:()=>{const{slides:t,$wrapperEl:i,slidesSizesGrid:n}=e,a=e.params.creativeEffect,{progressMultiplier:o}=a,r=e.params.centeredSlides;if(r){const t=n[0]/2-e.params.slidesOffsetBefore||0;i.transform(`translateX(calc(50% - ${t}px))`)}for(let i=0;i<t.length;i+=1){const n=t.eq(i),l=n[0].progress,c=Math.min(Math.max(n[0].progress,-a.limitProgress),a.limitProgress);let d=c;r||(d=Math.min(Math.max(n[0].originalProgress,-a.limitProgress),a.limitProgress));const h=n[0].swiperSlideOffset,u=[e.params.cssMode?-h-e.translate:-h,0,0],p=[0,0,0];let f=!1;e.isHorizontal()||(u[1]=u[0],u[0]=0);let m={translate:[0,0,0],rotate:[0,0,0],scale:1,opacity:1};c<0?(m=a.next,f=!0):c>0&&(m=a.prev,f=!0),u.forEach((e,t)=>{u[t]=`calc(${e}px + (${s(m.translate[t])} * ${Math.abs(c*o)}))`}),p.forEach((e,t)=>{p[t]=m.rotate[t]*Math.abs(c*o)}),n[0].style.zIndex=-Math.abs(Math.round(l))+t.length;const g=u.join(", "),v=`rotateX(${p[0]}deg) rotateY(${p[1]}deg) rotateZ(${p[2]}deg)`,b=d<0?`scale(${1+(1-m.scale)*d*o})`:`scale(${1-(1-m.scale)*d*o})`,y=d<0?1+(1-m.opacity)*d*o:1-(1-m.opacity)*d*o,w=`translate3d(${g}) ${v} ${b}`;if(f&&m.shadow||!f){let e=n.children(".swiper-slide-shadow");if(0===e.length&&m.shadow&&(e=se(a,n)),e.length){const t=a.shadowPerProgress?c*(1/a.limitProgress):c;e[0].style.opacity=Math.min(Math.max(Math.abs(t),0),1)}}const x=te(a,n);x.transform(w).css({opacity:y}),m.origin&&x.css("transform-origin",m.origin)}},setTransition:t=>{const{transformEl:i}=e.params.creativeEffect;(i?e.slides.find(i):e.slides).transition(t).find(".swiper-slide-shadow").transition(t),ie({swiper:e,duration:t,transformEl:i,allSlides:!0})},perspective:()=>e.params.creativeEffect.perspective,overwriteParams:()=>({watchSlidesProgress:!0,virtualTranslate:!e.params.cssMode})})},function({swiper:e,extendParams:t,on:i}){t({cardsEffect:{slideShadows:!0,transformEl:null,rotate:!0,perSlideRotate:2,perSlideOffset:8}}),ee({effect:"cards",swiper:e,on:i,setTranslate:()=>{const{slides:t,activeIndex:i}=e,s=e.params.cardsEffect,{startTranslate:n,isTouched:a}=e.touchEventsData,o=e.translate;for(let r=0;r<t.length;r+=1){const l=t.eq(r),c=l[0].progress,d=Math.min(Math.max(c,-4),4);let h=l[0].swiperSlideOffset;e.params.centeredSlides&&!e.params.cssMode&&e.$wrapperEl.transform(`translateX(${e.minTranslate()}px)`),e.params.centeredSlides&&e.params.cssMode&&(h-=t[0].swiperSlideOffset);let u=e.params.cssMode?-h-e.translate:-h,p=0;const f=-100*Math.abs(d);let m=1,g=-s.perSlideRotate*d,v=s.perSlideOffset-.75*Math.abs(d);const b=e.virtual&&e.params.virtual.enabled?e.virtual.from+r:r,y=(b===i||b===i-1)&&d>0&&d<1&&(a||e.params.cssMode)&&o<n,w=(b===i||b===i+1)&&d<0&&d>-1&&(a||e.params.cssMode)&&o>n;if(y||w){const e=(1-Math.abs((Math.abs(d)-.5)/.5))**.5;g+=-28*d*e,m+=-.5*e,v+=96*e,p=-25*e*Math.abs(d)+"%"}if(d<0?u=`calc(${u}px + (${v*Math.abs(d)}%))`:d>0?u=`calc(${u}px + (-${v*Math.abs(d)}%))`:u+="px",!e.isHorizontal()){const e=p;p=u,u=e}const x=d<0?""+(1+(1-m)*d):""+(1-(1-m)*d),E=`\n        translate3d(${u}, ${p}, ${f}px)\n        rotateZ(${s.rotate?g:0}deg)\n        scale(${x})\n      `;if(s.slideShadows){let e=l.find(".swiper-slide-shadow");0===e.length&&(e=se(s,l)),e.length&&(e[0].style.opacity=Math.min(Math.max((Math.abs(d)-.5)/.5,0),1))}l[0].style.zIndex=-Math.abs(Math.round(c))+t.length;te(s,l).transform(E)}},setTransition:t=>{const{transformEl:i}=e.params.cardsEffect;(i?e.slides.find(i):e.slides).transition(t).find(".swiper-slide-shadow").transition(t),ie({swiper:e,duration:t,transformEl:i})},perspective:()=>!0,overwriteParams:()=>({watchSlidesProgress:!0,virtualTranslate:!e.params.cssMode})})}];function ae(e){return function(e){if(Array.isArray(e))return le(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||re(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function oe(e,t){var i="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!i){if(Array.isArray(e)||(i=re(e))||t&&e&&"number"==typeof e.length){i&&(e=i);var s=0,n=function(){};return{s:n,n:function(){return s>=e.length?{done:!0}:{done:!1,value:e[s++]}},e:function(e){throw e},f:n}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,o=!0,r=!1;return{s:function(){i=i.call(e)},n:function(){var e=i.next();return o=e.done,e},e:function(e){r=!0,a=e},f:function(){try{o||null==i.return||i.return()}finally{if(r)throw a}}}}function re(e,t){if(e){if("string"==typeof e)return le(e,t);var i=Object.prototype.toString.call(e).slice(8,-1);return"Object"===i&&e.constructor&&(i=e.constructor.name),"Map"===i||"Set"===i?Array.from(e):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?le(e,t):void 0}}function le(e,t){(null==t||t>e.length)&&(t=e.length);for(var i=0,s=new Array(t);i<t;i++)s[i]=e[i];return s}function ce(e,t){for(var i=0;i<t.length;i++){var s=t[i];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(e,s.key,s)}}function de(e,t,i){he(e,t),t.set(e,i)}function he(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function ue(e,t,i){if(!t.has(e))throw new TypeError("attempted to get private field on non-instance");return i}function pe(e,t,i){return function(e,t){if(e!==t)throw new TypeError("Private static access of wrong provenance")}(e,t),function(e,t){if(void 0===e)throw new TypeError("attempted to "+t+" private static field before its declaration")}(i,"get"),me(e,i)}function fe(e,t){return me(e,ve(e,t,"get"))}function me(e,t){return t.get?t.get.call(e):t.value}function ge(e,t,i){return function(e,t,i){if(t.set)t.set.call(e,i);else{if(!t.writable)throw new TypeError("attempted to set read only private field");t.value=i}}(e,ve(e,t,"set"),i),i}function ve(e,t,i){if(!t.has(e))throw new TypeError("attempted to "+i+" private field on non-instance");return t.get(e)}q.use(ne);var be=new WeakMap,ye=new WeakMap,we=new WeakMap,xe=new WeakMap,Ee=new WeakMap,Se=new WeakMap,Ce=new WeakSet,Te=function(){function e(t){var i,s,n=this,a=t.enter,o=t.leave,r=t.offsetPx,l=void 0===r?50:r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),he(i=this,s=Ce),s.add(i),de(this,be,{writable:!0,value:void 0}),de(this,ye,{writable:!0,value:void 0}),de(this,we,{writable:!0,value:void 0}),de(this,xe,{writable:!0,value:void 0}),de(this,Ee,{writable:!0,value:void 0}),de(this,Se,{writable:!0,value:function(){var e,t,i=oe(fe(n,we).entries());try{for(i.s();!(t=i.n()).done;){var s=t.value;if(e){var a=s[1].getBoundingClientRect().top,o=e[1].getBoundingClientRect().top;o>fe(n,Ee)?a<o&&(e=s):a<fe(n,Ee)&&a>o&&(e=s)}else e=s}}catch(e){i.e(e)}finally{i.f()}fe(n,xe)!==e[0]&&(fe(n,xe)&&fe(n,ye).call(n,fe(n,xe)),ge(n,xe,e[0]),fe(n,be).call(n,fe(n,xe)))}}),ge(this,be,a),ge(this,ye,o),ge(this,Ee,l),this.refresh()}var t,i,s;return t=e,(i=[{key:"reset",value:function(){ge(this,we,new Map),document.removeEventListener("scroll",fe(this,Se)),fe(this,xe)&&(fe(this,ye).call(this,fe(this,xe)),ge(this,xe,null))}},{key:"refresh",value:function(){this.reset();var t,i=oe(ae(document.querySelectorAll("[".concat(pe(e,e,Pe),"]"))));try{for(i.s();!(t=i.n()).done;){var s=t.value,n=ue(this,Ce,Me).call(this,s);n?fe(this,we).set(s,n):console.warn("Anchor target section does not exist:",{anchor:s,section:n})}}catch(e){i.e(e)}finally{i.f()}0!==fe(this,we).size?(fe(this,Se).call(this),document.addEventListener("scroll",fe(this,Se))):console.warn("No scroll anchors found")}}
1])&&ce(t.prototype,i),s&&ce(t,s),Object.defineProperty(t,"prototype",{writable:!1}),e}();function Me(e){if(""!==e.getAttribute(pe(Te,Te,Pe)))return document.querySelector(e.getAttribute(pe(Te,Te,Pe)));if("A"===e.tagName&&e.getAttribute("href").startsWith("#"))return document.querySelector(e.getAttribute("href"));var t=ae(e.querySelectorAll("a[href]")).filter((function(e){return e.getAttribute("href").startsWith("#")}));if(1===t.length)return t[0];t.length>1&&console.warn("Anchor element has more than one fragment anchor child",{anchor:e,childFragmentHrefs:t})}var Pe={writable:!0,value:"data-scroll-section-anchor"},Oe=Te;function ke(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var i=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==i)return;var s,n,a=[],o=!0,r=!1;try{for(i=i.call(e);!(o=(s=i.next()).done)&&(a.push(s.value),!t||a.length!==t);o=!0);}catch(e){r=!0,n=e}finally{try{o||null==i.return||i.return()}finally{if(r)throw n}}return a}(e,t)||Ae(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ze(e){return function(e){if(Array.isArray(e))return $e(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Ae(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Le(e,t){var i="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!i){if(Array.isArray(e)||(i=Ae(e))||t&&e&&"number"==typeof e.length){i&&(e=i);var s=0,n=function(){};return{s:n,n:function(){return s>=e.length?{done:!0}:{done:!1,value:e[s++]}},e:function(e){throw e},f:n}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,o=!0,r=!1;return{s:function(){i=i.call(e)},n:function(){var e=i.next();return o=e.done,e},e:function(e){r=!0,a=e},f:function(){try{o||null==i.return||i.return()}finally{if(r)throw a}}}}function Ae(e,t){if(e){if("string"==typeof e)return $e(e,t);var i=Object.prototype.toString.call(e).slice(8,-1);return"Object"===i&&e.constructor&&(i=e.constructor.name),"Map"===i||"Set"===i?Array.from(e):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?$e(e,t):void 0}}function $e(e,t){(null==t||t>e.length)&&(t=e.length);for(var i=0,s=new Array(t);i<t;i++)s[i]=e[i];return s}function Ie(e,t){for(var i=0;i<t.length;i++){var s=t[i];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(e,s.key,s)}}function Re(e,t){je(e,t),t.add(e)}function De(e,t,i){je(e,t),t.set(e,i)}function je(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function Fe(e,t){return He(e,We(e,t,"get"))}function Ne(e,t,i){return function(e,t){if(e!==t)throw new TypeError("Private static access of wrong provenance")}(e,t),function(e,t){if(void 0===e)throw new TypeError("attempted to "+t+" private static field before its declaration")}(i,"get"),He(e,i)}function He(e,t){return t.get?t.get.call(e):t.value}function Be(e,t,i){if(!t.has(e))throw new TypeError("attempted to get private field on non-instance");return i}function _e(e,t,i){return function(e,t,i){if(t.set)t.set.call(e,i);else{if(!t.writable)throw new TypeError("attempted to set read only private field");t.value=i}}(e,We(e,t,"set"),i),i}function We(e,t,i){if(!t.has(e))throw new TypeError("attempted to "+i+" private field on non-instance");return t.get(e)}var Xe=new WeakMap,Ye=new WeakMap,qe=new WeakMap,Ge=new WeakMap,Ve=new WeakMap,Ue=new WeakMap,Ze=new WeakMap,Ke=new WeakMap,Je=new WeakSet,Qe=new WeakSet,et=function(){function e(t,i){var s=i.enterMember,n=i.leaveMember,a=i.enterTrigger,o=i.leaveTrigger;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),Re(this,Qe),Re(this,Je),De(this,Xe,{writable:!0,value:void 0}),De(this,Ye,{writable:!0,value:void 0}),De(this,qe,{writable:!0,value:void 0}),De(this,Ge,{writable:!0,value:void 0}),De(this,Ve,{writable:!0,value:void 0}),De(this,Ue,{writable:!0,value:void 0}),De(this,Ze,{writable:!0,value:void 0}),De(this,Ke,{writable:!0,value:void 0}),_e(this,Xe,t),_e(this,Ye,s),_e(this,qe,n),_e(this,Ge,a),_e(this,Ve,o),Be(this,Je,tt).call(this)}var t,i,s;return t=e,(i=[{key:"switchTo",value:function(e){if(e!==Fe(this,Ke))if(Fe(this,Ze).has(e)){var t=Fe(this,Ue).get(Fe(this,Ke));if(void 0!==t){var i,s=Le(t);try{for(s.s();!(i=s.n()).done;){var n=i.value;Fe(this,Ve).call(this,n)}}catch(e){s.e(e)}finally{s.f()}}var a=Fe(this,Ze).get(Fe(this,Ke));void 0!==a&&Fe(this,qe).call(this,a);var o=Fe(this,Ue).get(e);
1if(void 0!==o){var r,l=Le(o);try{for(l.s();!(r=l.n()).done;){var c=r.value;Fe(this,Ge).call(this,c)}}catch(e){l.e(e)}finally{l.f()}}var d=Fe(this,Ze).get(e);void 0!==d&&Fe(this,Ye).call(this,d),_e(this,Ke,e)}else console.warn("No member in this group with this name:",e,{members:Fe(this,Ze),triggers:Fe(this,Ue)})}}])&&Ie(t.prototype,i),s&&Ie(t,s),Object.defineProperty(t,"prototype",{writable:!1}),e}();function tt(){var e=this;_e(this,Ue,new Map),_e(this,Ze,new Map);for(var t=function(){var t,n=s[i],a=Be(e,Qe,it).call(e,n.getAttribute(Ne(et,et,st))),o=a.valid,r=a.group,l=a.member;return o?r!==Fe(e,Xe)?"continue":(Fe(e,Ue).set(l,[].concat(ze(null!==(t=Fe(e,Ue).get(l))&&void 0!==t?t:[]),[n])),void n.addEventListener("click",(function(){e.switchTo(l)}))):(console.warn("Invalid Element Group trigger:",n),"continue")},i=0,s=ze(document.querySelectorAll("[".concat(Ne(et,et,st),"]")));i<s.length;i++)t();for(var n=0,a=ze(document.querySelectorAll("[".concat(Ne(et,et,nt),"]")));n<a.length;n++){var o=a[n],r=Be(this,Qe,it).call(this,o.getAttribute(Ne(et,et,nt))),l=r.valid,c=r.group,d=r.member;l?c===Fe(this,Xe)&&Fe(this,Ze).set(d,o):console.warn("Invalid Element Group member:",o)}if(0!==Fe(this,Ze).size){for(var h,u=0,p=ze(document.querySelectorAll("[".concat(Ne(et,et,at),"]")));u<p.length;u++){var f=p[u],m=Be(this,Qe,it).call(this,f.getAttribute(Ne(et,et,nt))),g=m.valid,v=m.group,b=m.member;if(g&&v===Fe(this,Xe)){h=b;break}}h||(console.warn('No valid initial Element Group member for group "'.concat(Fe(this,Xe),'", defaulting to random member')),h=ze(Fe(this,Ze).keys())[0]);var y,w=Le(Fe(this,Ue).entries());try{for(w.s();!(y=w.n()).done;){var x,E=ke(y.value,2),S=E[0],C=Le(E[1]);try{for(C.s();!(x=C.n()).done;){var T=x.value;S===h?Fe(this,Ge).call(this,T):Fe(this,Ve).call(this,T)}}catch(e){C.e(e)}finally{C.f()}}}catch(e){w.e(e)}finally{w.f()}var M,P=Le(Fe(this,Ze).entries());try{for(P.s();!(M=P.n()).done;){var O=ke(M.value,2),k=O[0],z=O[1];k===h?Fe(this,Ye).call(this,z):Fe(this,qe).call(this,z)}}catch(e){P.e(e)}finally{P.f()}_e(this,Ke,h)}else console.warn("No Element Group members declared",{members:Fe(this,Ze),triggers:Fe(this,Ue)})}function it(e){if(!e)return{valid:!1,group:null,member:null};var t=e.split(":");return 2!==t.length||0===t[0].length||0===t[1].length?{valid:!1,group:null,member:null}:{valid:!0,group:t[0],member:t[1]}}var st={writable:!0,value:"data-element-group-trigger"},nt={writable:!0,value:"data-element-group-member"},at={writable:!0,value:"data-element-group-initial-member"},ot=et;i("H/uN");let rt={root:null,rootMargin:"0% 50%",threshold:.5,animateClassName:"sal-animate",disabledClassName:"sal-disabled",enterEventName:"sal:in",exitEventName:"sal:out",selector:"[data-sal]",once:!0,disabled:!1},lt=[],ct=null;const dt=e=>{e&&e!==rt&&(rt={...rt,...e})},ht=e=>{e.classList.remove(rt.animateClassName)},ut=(e,t)=>{const i=new CustomEvent(e,{bubbles:!0,detail:t});t.target.dispatchEvent(i)},pt=()=>{document.body.classList.add(rt.disabledClassName)},ft=()=>{ct.disconnect(),ct=null},mt=(e,t)=>{e.forEach(e=>{const{target:i}=e,s=void 0!==i.dataset.salRepeat,n=void 0!==i.dataset.salOnce,a=s||!(n||rt.once);e.intersectionRatio>=rt.threshold?((e=>{e.target.classList.add(rt.animateClassName),ut(rt.enterEventName,e)})(e),a||t.unobserve(i)):a&&(e=>{ht(e.target),ut(rt.exitEventName,e)})(e)})},gt=()=>{const e=[].filter.call(document.querySelectorAll(rt.selector),e=>!(e=>e.classList.contains(rt.animateClassName))(e,rt.animateClassName));return e.forEach(e=>ct.observe(e)),e},vt=()=>{pt(),ft()},bt=()=>{document.body.classList.remove(rt.disabledClassName),ct=new IntersectionObserver(mt,{root:rt.root,rootMargin:rt.rootMargin,threshold:rt.threshold}),lt=gt()},yt=(e={})=>{ft(),Array.from(document.querySelectorAll(rt.selector)).forEach(ht),dt(e),bt()},wt=()=>{const e=gt();lt.push(e)};var xt=(e=rt)=>{if(dt(e),"undefined"==typeof window)return console.warn("Sal was not initialised! Probably it is used in SSR."),{elements:lt,disable:vt,enable:bt,reset:yt,update:wt};if(!window.IntersectionObserver)throw pt(),Error("Your browser does not support IntersectionObserver!\nGet a polyfill from here:\nhttps://github.com/w3c/IntersectionObserver/tree/master/polyfill");return rt.disabled||"function"==typeof rt.disabled&&rt.disabled()?pt():bt(),{elements:lt,disable:vt,enable:bt,reset:yt,update:wt}};const Et=(e,t=1e4)=>(e=parseFloat(e+"")||0,Math.round((e+Number.EPSILON)*t)/t),St=function(e){if(!(e&&e instanceof Element&&e.offsetParent))return!1;const t=e.scrollHeight>e.clientHeight,i=window.getComputedStyle(e).overflowY,s=-1!==i.indexOf("hidden"),n=-1!==i.indexOf("visible");return t&&!s&&!n},Ct=function(e,t){return!(!e||e===document.body||t&&e===t)&&(St(e)?e:Ct(e.parentElement,t))},Tt=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},Mt=e=>(""+(e||"")).split(" ").filter(e=>
vendor: 24,400 bytes, line 1
1!!e),Pt=(e,t,i)=>{Mt(t).forEach(t=>{e&&e.classList.toggle(t,i||!1)})};class Ot{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 kt={passive:!1};class zt{constructor(e,{start:t=(()=>!0),move:i=(()=>{}),end:s=(()=>{})}){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=s;for(const e of["onPointerStart","onTouchStart","onMove","onTouchEnd","onPointerEnd","onWindowBlur"])this[e]=this[e].bind(this);this.element.addEventListener("mousedown",this.onPointerStart,kt),this.element.addEventListener("touchstart",this.onTouchStart,kt),this.element.addEventListener("touchmove",this.onMove,kt),this.element.addEventListener("touchend",this.onTouchEnd),this.element.addEventListener("touchcancel",this.onTouchEnd)}onPointerStart(e){if(!e.buttons||0!==e.button)return;const t=new Ot(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 Ot(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 Ot(e)):[new Ot(e)],s=[];for(const e of i){const t=this.currentPointers.findIndex(t=>t.id===e.id);t<0||(s.push(e),this.currentPointers[t]=e)}s.length&&this.moveCallback(e,this.currentPointers.slice(),t)}onPointerEnd(e){e.buttons>0&&0!==e.button||(this.triggerPointerEnd(e,new Ot(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 Ot(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,kt),this.element.removeEventListener("touchstart",this.onTouchStart,kt),this.element.removeEventListener("touchmove",this.onMove,kt),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 Lt(e,t){return t?Math.sqrt(Math.pow(t.clientX-e.clientX,2)+Math.pow(t.clientY-e.clientY,2)):0}function At(e,t){return t?{clientX:(e.clientX+t.clientX)/2,clientY:(e.clientY+t.clientY)/2}:e}const $t=e=>"object"==typeof e&&null!==e&&e.constructor===Object&&"[object Object]"===Object.prototype.toString.call(e),It=(e,...t)=>{const i=t.length;for(let s=0;s<i;s++){const i=t[s]||{};Object.entries(i).forEach(([t,i])=>{const s=Array.isArray(i)?[]:{};e[t]||Object.assign(e,{[t]:s}),$t(i)?Object.assign(e[t],It(s,i)):Array.isArray(i)?Object.assign(e,{[t]:[...i]}):Object.assign(e,{[t]:i})})}return e},Rt=function(e,t){return e.split(".").reduce((e,t)=>"object"==typeof e?e[t]:void 0,t)};class Dt{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?It({},this.constructor.defaults,e):{};for(const[e,t]of Object.entries(this.option("on")||{}))this.on(e,t)}option(e,...t){let i=Rt(e,this.options);return i&&"function"==typeof i&&(i=i.call(this,this,...t)),i}optionFor(e,t,i,...s){let n=Rt(t,e);var a;"string"!=typeof(a=n)||isNaN(a)||isNaN(parseFloat(a))||(n=parseFloat(n)),"true"===n&&(n=!0),"false"===n&&(n=!1),n&&"function"==typeof n&&(n=n.call(this,this,e,...s));let o=Rt(t,this.options);return o&&"function"==typeof o?n=o.call(this,this,e,...s,n):void 0===n&&(n=o),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 s="";return i?s=this.option(`${t[0]+t.toLowerCase().substring(1)}.l10n.${i}`):t&&(s=this.option("l10n."+t)),s||(s=e),s});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(Dt,"version",{enumerable:!0,configurable:!0,writable:!0,value:"5.0.20"}),Object.defineProperty(Dt,"defaults",{enumerable:!0,configurable:!0,writable:!0,value:{}});class jt extends Dt{constructor(e={}){super(e),Object.defineProperty(this,"plugins",{enumerable:!0,configurable:!0,writable:!0,value:{}})}attachPlugins(e={}){const t=new Map;for(const[i,s]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 s(this,e||{}))}for(const[e,i]of t)this.plugins[e]=i,i.attach();this.emit("attachPlugins")}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 Ft,Nt;(Nt=Ft||(Ft={}))[Nt.Init=0]="Init",Nt[Nt.Error=1]="Error",Nt[Nt.Ready=2]="Ready",Nt[Nt.Panning=3]="Panning",Nt[Nt.Mousemove=4]="Mousemove",Nt[Nt.Destroy=5]="Destroy";const Ht=["a","b","c","d","e","f"],Bt={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"},_t={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:Bt},Wt='<div class="f-spinner"><svg viewBox="0 0 50 50"><circle cx="25" cy="25" r="20"></circle><circle cx="25" cy="25" r="20"></circle></svg></div>',Xt=e=>e&&null!==e&&e instanceof Element&&"nodeType"in e,Yt=(e,t)=>{e&&Mt(t).forEach(t=>{e.classList.remove(t)})},qt=(e,t)=>{e&&Mt(t).forEach(t=>{e.classList.add(t)})},Gt={a:1,b:0,c:0,d:1,e:0,f:0},Vt=1e3,Ut="mousemove",Zt="drag",Kt="content";let Jt=null,Qt=null;class ei extends jt{get isTouchDevice(){return null===Qt&&(Qt=window.matchMedia("(hover: none)").matches),Qt}get isMobile(){return null===Jt&&(Jt=/iPhone|iPad|iPod|Android/i.test(navigator.userAgent)),Jt}get panMode(){return this.options.panMode!==Ut||this.isTouchDevice?Zt:Ut}get panOnlyZoomed(){const e=this.options.panOnlyZoomed;return"auto"===e?this.isTouchDevice:e}get isInfinite(){return this.option("infinite")}get angle(){return 180*Math.atan2(this.current.b,this.current.a)/Math.PI||0}get targetAngle(){return 180*Math.atan2(this.target.b,this.target.a)/Math.PI||0}get scale(){const{a:e,b:t}=this.current;return Math.sqrt(e*e+t*t)||1}get targetScale(){const{a:e,b:t}=this.target;return Math.sqrt(e*e+t*t)||1}get minScale(){return this.option("minScale")||1}get fullScale(){const{contentRect:e}=this;return e.fullWidth/e.fitWidth||1}get maxScale(){return this.fullScale*(this.option("maxScale")||1)||1}get coverScale(){const{containerRect:e,contentRect:t}=this,i=Math.max(e.height/t.fitHeight,e.width/t.fitWidth)||1;return Math.min(this.fullScale,i)}get isScaling(){return Math.abs(this.targetScale-this.scale)>1e-5&&!this.isResting}get isContentLoading(){const e=this.content;return!!(e&&e instanceof HTMLImageElement)&&!e.complete}get isResting(){if(this.isBouncingX||this.isBouncingY)return!1;for(const e of Ht){const t="e"==e||"f"===e?.001: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 s;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,"friction",{enumerable:!0,configurable:!0,writable:!0,value:0}),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,"state",{enumerable:!0,configurable:!0,writable:!0,value:Ft.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({},Gt)}),Object.defineProperty(this,"target",{enumerable:!0,configurable:!0,writable:!0,value:Object.assign({},Gt)}),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({},ei.Plugins),i)),this.emit("init");const n=this.content;if(n.addEventListener("load",this.onLoad),n.addEventListener("error",this.onError),this.isContentLoading){if(this.option("spinner")){e.classList.add(this.cn("isLoading"));const t=Tt(Wt);!e.contains(n)||n.parentElement instanceof HTMLPictureElement?this.spinner=e.appendChild(t):this.spinner=(null===(s=n.parentElement)||void 0===s?void 0:s.insertBefore(t,n))||null}this.emit("beforeLoad")}else queueMicrotask(()=>{this.enable()})}initContent(){const{container:e}=this,t=this.cn(Kt);let i=this.option(Kt)||e.querySelector("."+t);if(i||(i=e.querySelector("img,picture")||e.firstElementChild,i&&qt(i,t)),i instanceof HTMLPictureElement&&(i=i.querySelector("img")),!i)throw new Error("No content found");this.content=i}onLoad(){this.spinner&&(this.spinner.remove(),this.spinner=null),this.option("spinner")&&this.container.classList.remove(this.cn("isLoading")),this.emit("afterLoad"),this.state===Ft.Init?this.enable():this.updateMetrics()}onError(){this.state!==Ft.Destroy&&(this.spinner&&(this.spinner.remove(),this.spinner=null),this.stop(),this.detachEvents(),this.state=Ft.Error,this.emit("error"))}attachObserver(){var e;const t=()=>Math.abs(this.containerRect.width-this.container.getBoundingClientRect().width)>.1||Math.abs(this.containerRect.height-this.container.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 zt(e,{start:this.onPointerDown,move:this.onPointerMove,end:this.onPointerUp}),document.addEventListener(Ut,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(Ut,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(){const e=this.friction;this.setTargetForce();const t=this.option("maxVelocity");for(const i of Ht)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 Ht)"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,s=i.e+e,n=i.f+t,a=this.getBounds(),{x:o,y:r}=a,l=o.min,c=o.max,d=r.min,h=r.max;let u=0,p=0;return l!==1/0&&s<l?u=l-s:c!==1/0&&s>c&&(u=c-s),d!==1/0&&n<d?p=d-n:h!==1/0&&n>h&&(p=h-n),Math.abs(u)<.001&&(u=0),Math.abs(p)<.001&&(p=0),Object.assign(Object.assign({},a),{xDiff:u,yDiff:p,inBounds:!u&&!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:s,fitHeight:n,fullWidth:a,fullHeight:o}=i;let r=a,l=o;if(this.option("zoom")||0!==this.angle){const i=!(t instanceof HTMLImageElement||"none"!==window.getComputedStyle(t).maxWidth&&"none"!==window.getComputedStyle(t).maxHeight),c=i?a:s,d=i?o:n,h=this.getMatrix(e),u=new DOMPoint(0,0).matrixTransform(h),p=new DOMPoint(0+c,0).matrixTransform(h),f=new DOMPoint(0+c,0+d).matrixTransform(h),m=new DOMPoint(0,0+d).matrixTransform(h),g=Math.abs(f.x-u.x),v=Math.abs(f.y-u.y),b=Math.abs(m.x-p.x),y=Math.abs(m.y-p.y);r=Math.max(g,b),l=Math.max(v,y)}return{contentWidth:r,contentHeight:l}}setEdgeForce(){if(this.ignoreBounds||this.isDragging||this.panMode===Ut||this.targetScale<this.scale)return this.isBouncingX=!1,void(this.isBouncingY=!1);const{target:e}=this,{x:t,y:i,xDiff:s,yDiff:n}=this.checkBounds(),a=this.option("maxVelocity");let o=this.velocity.e,r=this.velocity.f;0!==s?(this.isBouncingX=!0,s*o<=0?o+=.14*s:(o=.14*s,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))),a&&(o=Math.max(Math.min(o,a),-1*a))):this.isBouncingX=!1,0!==n?(this.isBouncingY=!0,n*r<=0?r+=.14*n:(r=.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))),a&&(r=Math.max(Math.min(r,a),-1*a))):this.isBouncingY=!1,this.isBouncingX&&(this.velocity.e=o),this.isBouncingY&&(this.velocity.f=r)}enable(){const{content:e}=this,t=new DOMMatrixReadOnly(window.getComputedStyle(e).transform);for(const e of Ht)this.current[e]=this.target[e]=t[e];this.updateMetrics(),this.attachObserver(),this.attachEvents(),this.state=Ft.Ready,this.emit("ready")}onClick(e){var t;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&&i.hasAttribute("disabled"))return e.preventDefault(),void e.stopPropagation();if((()=>{const e=window.getSelection();return e&&"Range"===e.type})()&&!i.closest("button"))return;const s=i.closest("[data-panzoom-action]"),n=i.closest("[data-panzoom-change]"),a=s||n,o=a&&Xt(a)?a.dataset:null;if(o){const t=o.panzoomChange,i=o.panzoomAction;if((t||i)&&e.preventDefault(),t){let i={};try{i=JSON.parse(t)}catch(e){console&&console.warn("The given data was not valid JSON")}return void this.applyChange(i)}if(i)return void(this[i]&&this[i]())}if(Math.abs(this.dragOffset.x)>3||Math.abs(this.dragOffset.y)>3)return e.preventDefault(),void e.stopPropagation();const r=this.content.getBoundingClientRect();if(this.dragStart.time&&!this.canZoomOut()&&(Math.abs(r.x-this.dragStart.x)>2||Math.abs(r.y-this.dragStart.y)>2))return;this.dragStart.time=0;const l=t=>{this.option("zoom")&&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}))},c=this.option("click",e),d=this.option("dblClick",e);d?(this.clicks++,1==this.clicks&&(this.clickTimer=setTimeout(()=>{1===this.clicks?(this.emit("click",e),!e.defaultPrevented&&c&&l(c)):(this.emit("dblClick",e),e.defaultPrevented||l(d)),this.clicks=0,this.clickTimer=null},350))):(this.emit("click",e),!e.defaultPrevented&&c&&l(c))}addTrackingPoint(e){const t=this.trackingPoints.filter(e=>e.time>Date.now()-100);t.push(e),this.trackingPoints=t}onPointerDown(e,t,i){var s;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===Ut&&this.targetScale>1)return e.preventDefault(),e.stopPropagation(),!1;if(!i.length){const t=e.composedPath()[0];if(["A","TEXTAREA","OPTION","INPUT","SELECT","VIDEO"].includes(t.nodeName)||t.closest("[contenteditable]")||t.closest("[data-selectable]")||t.closest("[data-draggable]")||t.closest("[data-clickable]")||t.closest("[data-panzoom-change]")||t.closest("[data-panzoom-action]"))return!1;null===(s=window.getSelection())||void 0===s||s.removeAllRanges()}if("mousedown"===e.type)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,t,i){if(!1===this.option("touch",e))return;if(!this.isDragging)return;if(t.length<2&&this.panOnlyZoomed&&Et(this.targetScale)<=Et(this.minScale))return;if(this.emit("touchMove",e),e.defaultPrevented)return;this.addTrackingPoint(t[0]);const{content:s}=this,n=At(i[0],i[1]),a=At(t[0],t[1]);let o=0,r=0;if(t.length>1){const e=s.getBoundingClientRect();o=n.clientX-e.left-.5*e.width,r=n.clientY-e.top-.5*e.height}const l=Lt(i[0],i[1]),c=Lt(t[0],t[1]);let d=l?c/l:1,h=a.clientX-n.clientX,u=a.clientY-n.clientY;this.dragOffset.x+=h,this.dragOffset.y+=u,this.dragOffset.time=Date.now()-this.dragStart.time;let p=Et(this.targetScale)===Et(this.minScale)&&this.option("lockAxis");if(p&&!this.lockedAxis)if("xy"===p||"y"===p||"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,h=0,u=0}else this.lockedAxis=p;if(Ct(e.target,this.content)&&(p="x",this.dragOffset.y=0),p&&"xy"!==p&&this.lockedAxis!==p&&Et(this.targetScale)===Et(this.minScale))return;e.cancelable&&e.preventDefault(),this.container.classList.add(this.cn("isDragging"));const f=this.checkBounds(h,u);this.option("rubberband")?("x"!==this.isInfinite&&(f.xDiff>0&&h<0||f.xDiff<0&&h>0)&&(h*=Math.max(0,.5-Math.abs(.75/this.contentRect.fitWidth*f.xDiff))),"y"!==this.isInfinite&&(f.yDiff>0&&u<0||f.yDiff<0&&u>0)&&(u*=Math.max(0,.5-Math.abs(.75/this.contentRect.fitHeight*f.yDiff)))):(f.xDiff&&(h=0),f.yDiff&&(u=0));const m=this.targetScale,g=this.minScale,v=this.maxScale;m<.5*g&&(d=Math.max(d,g)),m>1.5*v&&(d=Math.min(d,v)),"y"===this.lockedAxis&&Et(m)===Et(g)&&(h=0),"x"===this.lockedAxis&&Et(m)===Et(g)&&(u=0),this.applyChange({originX:o,originY:r,panX:h,panY:u,scale:d,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=[]),Ct(e.target,this.content)&&"y"===this.lockedAxis&&(this.trackingPoints=[]),this.emit
vendor: 4,568 bytes, line 1
1("touchEnd",e),this.isDragging=!1,this.lockedAxis=!1,this.state!==Ft.Destroy&&(e.defaultPrevented||this.startDecelAnim()))}startDecelAnim(){var e;const t=this.isScaling;this.rAF&&(cancelAnimationFrame(this.rAF),this.rAF=null),this.isBouncingX=!1,this.isBouncingY=!1;for(const e of Ht)this.velocity[e]=0;this.target.e=this.current.e,this.target.f=this.current.f,Yt(this.container,"is-scaling"),Yt(this.container,"is-animating"),this.isTicking=!1;const{trackingPoints:i}=this,s=i[0],n=i[i.length-1];let a=0,o=0,r=0;n&&s&&(a=n.clientX-s.clientX,o=n.clientY-s.clientY,r=n.time-s.time);const l=(null===(e=window.visualViewport)||void 0===e?void 0:e.scale)||1;1!==l&&(a*=l,o*=l);let c=0,d=0,h=0,u=0,p=this.option("decelFriction");const f=this.targetScale;if(r>0){h=Math.abs(a)>3?a/(r/30):0,u=Math.abs(o)>3?o/(r/30):0;const e=this.option("maxVelocity");e&&(h=Math.max(Math.min(h,e),-1*e),u=Math.max(Math.min(u,e),-1*e))}h&&(c=h/(1/(1-p)-1)),u&&(d=u/(1/(1-p)-1)),("y"===this.option("lockAxis")||"xy"===this.option("lockAxis")&&"y"===this.lockedAxis&&Et(f)===this.minScale)&&(c=h=0),("x"===this.option("lockAxis")||"xy"===this.option("lockAxis")&&"x"===this.lockedAxis&&Et(f)===this.minScale)&&(d=u=0);const m=this.dragOffset.x,g=this.dragOffset.y,v=this.option("dragMinThreshold")||0;Math.abs(m)<v&&Math.abs(g)<v&&(c=d=0,h=u=0),(f<this.minScale-1e-5||f>this.maxScale+1e-5||t&&!c&&!d)&&(p=.35),this.applyChange({panX:c,panY:d,friction:p}),this.emit("decel",h,u,m,g)}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===Ut)return;if(e.defaultPrevented)return;const s=this.option("wheel");"pan"===s?(e.preventDefault(),this.panOnlyZoomed&&!this.canZoomOut()||this.applyChange({panX:2*-e.deltaX,panY:2*-e.deltaY,bounce:!1})):"zoom"===s&&!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:t,content:i,contentRect:s}=this,n=Object.assign({},Gt);for(const i of Ht){const s="e"==i||"f"===i?Vt:1e5;n[i]=Et(e[i],s),Math.abs(t[i]-e[i])<("e"==i||"f"===i?.51:.001)&&(e[i]=t[i])}let{a:a,b:o,c:r,d:l,e:c,f:d}=n,h=`matrix(${a}, ${o}, ${r}, ${l}, ${c}, ${d})`,u=i.parentElement instanceof HTMLPictureElement?i.parentElement:i;if(this.option("transformParent")&&(u=u.parentElement||u),u.style.transform===h)return;u.style.transform=h;const{contentWidth:p,contentHeight:f}=this.calculateContentDim();s.width=p,s.height=f,this.emit("afterTransform")}updateMetrics(e=!1){var t;if(!this||this.state===Ft.Destroy)return;if(this.isContentLoading)return;const i=Math.max(1,(null===(t=window.visualViewport)||void 0===t?void 0:t.scale)||1),{container:s,content:n}=this,a=n instanceof HTMLImageElement,o=s.getBoundingClientRect(),r=getComputedStyle(this.container);let l=o.width*i,c=o.height*i;const d=parseFloat(r.paddingTop)+parseFloat(r.paddingBottom),h=l-(parseFloat(r.paddingLeft)+parseFloat(r.paddingRight)),u=c-d;this.containerRect={width:l,height:c,innerWidth:h,innerHeight:u};let p=this.option("width")||"auto",f=this.option("height")||"auto";"auto"===p&&(p=parseFloat(n.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})(n)),"auto"===f&&(f=parseFloat(n.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})(n));let m=n.parentElement instanceof HTMLPictureElement?n.parentElement:n;this.option("transformParent")&&(m=m.parentElement||m);const g=m.getAttribute("style")||"";m.style.setProperty("transform","none","important"),a&&(m.style.width="",m.style.height=""),m.offsetHeight;const v=n.getBoundingClientRect();let b=v.width*i,y=v.height*i,w=0,x=0;a&&(Math.abs(p-b)>1||Math.abs(f-y)>1)&&({width:b,height:y,top:w,left:x}=((e,t,i,s)=>{const n=i/s;return n>e/t?(i=e,s=e/n):(i=t*n,s=t),{width:i,height:s,top:.5*(t-s),left:.5*(e-i)}})(b,y,p,f)),this.contentRect=Object.assign(Object.assign({},this.contentRect),{top:v.top-o.top+w,bottom:o.bottom-v.bottom+w,left:v.left-o.left+x,right:o.right-v.right+x,fitWidth:b,fitHeight:y,width:b,height:y,fullWidth:p,fullHeight:f}),m.style.cssText=g,a&&(m.style.width=b+"px",m.style.height=y+"px"),this.setTransform(),!0!==e&&this.emit
1("refresh"),this.ignoreBounds||(Et(this.targetScale)<Et(this.minScale)?this.zoomTo(this.minScale,{friction:0}):this.targetScale>this.maxScale?this.zoomTo(this.maxScale,{friction:0}):this.state===Ft.Init||this.checkBounds().inBounds||this.requestTick()),this.updateControls()}getBounds(){const e=this.option("bounds");if("auto"!==e)return e;const{contentWidth:t,contentHeight:i}=this.calculateContentDim(this.target);let s=0,n=0,a=0,o=0;const r=this.option("infinite");if(!0===r||this.lockedAxis&&r===this.lockedAxis)s=-1/0,a=1/0,n=-1/0,o=1/0;else{let{containerRect:e,contentRect:r}=this,l=Et(this.contentRect.fitWidth*this.targetScale,Vt),c=Et(this.contentRect.fitHeight*this.targetScale,Vt),{innerWidth:d,innerHeight:h}=e;if(this.containerRect.width===l&&(d=e.width),this.containerRect.width===c&&(h=e.height),t>d){a=.5*(t-d),s=-1*a;let e=.5*(r.right-r.left);s+=e,a+=e}if(this.contentRect.fitWidth>d&&t<d&&(s-=.5*(this.contentRect.fitWidth-d),a-=.5*(this.contentRect.fitWidth-d)),i>h){o=.5*(i-h),n=-1*o;let e=.5*(r.bottom-r.top);n+=e,o+=e}this.contentRect.fitHeight>h&&i<h&&(s-=.5*(this.contentRect.fitHeight-h),a-=.5*(this.contentRect.fitHeight-h))}return{x:{min:s,max:a},y:{min:n,max:o}}}updateControls(){const e=this,t=e.container,{panMode:i,contentRect:s,fullScale:n,targetScale:a,coverScale:o,maxScale:r,minScale:l}=e;let c={toggleMax:a-l<.5*(r-l)?r:l,toggleCover:a-l<.5*(o-l)?o:l,toggleZoom:a-l<.5*(n-l)?n:l}[e.option("click")||""]||l,d=e.canZoomIn(),h=e.canZoomOut(),u=h&&i===Zt;Et(a)<Et(l)&&!this.panOnlyZoomed&&(u=!0),(Et(s.width,1)>Et(s.fitWidth,1)||Et(s.height,1)>Et(s.fitHeight,1))&&(u=!0),Et(s.width*a,1)<Et(s.fitWidth,1)&&(u=!1),i===Ut&&(u=!1);let p=d&&Et(c)>Et(a),f=!p&&!u&&h&&Et(c)<Et(a);Pt(t,this.cn("canZoomIn"),p),Pt(t,this.cn("canZoomOut"),f),Pt(t,this.cn("isDraggable"),u);for(const e of t.querySelectorAll('[data-panzoom-action="zoomIn"]'))d?(e.removeAttribute("disabled"),e.removeAttribute("tabindex")):(e.setAttribute("disabled",""),e.setAttribute("tabindex","-1"));for(const e of t.querySelectorAll('[data-panzoom-action="zoomOut"]'))h?(e.removeAttribute("disabled"),e.removeAttribute("tabindex")):(e.setAttribute("disabled",""),e.setAttribute("tabindex","-1"));for(const e of t.querySelectorAll('[data-panzoom-action="toggleZoom"],[data-panzoom-action="iterateZoom"]')){d||h?(e.removeAttribute("disabled"),e.removeAttribute("tabindex")):(e.setAttribute("disabled",""),e.setAttribute("tabindex","-1"));const t=e.querySelector("g");t&&(t.style.display=d?"":"none")}}panTo({x:e=this.target.e,y:t=this.target.f,scale:i=this.targetScale,friction:s=this.option("friction"),angle:n=0,originX:a=0,originY:o=0,flipX:r=!1,flipY:l=!1,ignoreBounds:c=!1}){this.state!==Ft.Destroy&&this.applyChange({panX:e-this.target.e,panY:t-this.target.f,scale:i/this.targetScale,angle:n,originX:a,originY:o,friction:s,flipX:r,flipY:l,ignoreBounds:c})}applyChange({panX:e=0,panY:t=0,scale:i=1,angle:s=0,originX:n=-this.current.e,originY:a=-this.current.f,friction:o=this.option("friction"),flipX:r=!1,flipY:l=!1,ignoreBounds:c=!1,bounce:d=this.option("bounce")}){if(this.state===Ft.Destroy)return;this.rAF&&(cancelAnimationFrame(this.rAF),this.rAF=null),this.friction=o||0,this.ignoreBounds=c;const{current:h}=this,u=h.e,p=h.f,f=this.getMatrix(this.target);let m=(new DOMMatrix).translate(u,p).translate(n,a).translate(e,t);if(this.option("zoom")){if(!c){const e=this.targetScale,t=this.minScale,s=this.maxScale;e*i<t&&(i=t/e),e*i>s&&(i=s/e)}m=m.scale(i)}m=m.translate(-n,-a).translate(-u,-p).multiply(f),s&&(m=m.rotate(s)),r&&(m=m.scale(-1,1)),l&&(m=m.scale(1,-1));for(const e of Ht)"e"!==e&&"f"!==e&&(m[e]>this.minScale+1e-5||m[e]<this.minScale-1e-5)?this.target[e]=m[e]:this.target[e]=Et(m[e],Vt);(this.targetScale<this.scale||Math.abs(i-1)>.1||this.panMode===Ut||!1===d)&&!c&&this.clampTargetBounds(),this.isResting||(this.state=Ft.Panning,this.requestTick())}stop(e=!1){if(this.state===Ft.Init||this.state===Ft.Destroy)return;const t=this.isTicking;this.rAF&&(cancelAnimationFrame(this.rAF),this.rAF=null),this.isBouncingX=!1,this.isBouncingY=!1;for(const t of Ht)this.velocity[t]=0,"current"===e?this.current[t]=this.target[t]:"target"===e&&(this.target[t]=this.current[t]);this.setTransform(),Yt(this.container,"is-scaling"),Yt(this.container,"is-animating"),this.isTicking=!1,this.state=Ft.Ready,t&&(this.emit
1("endAnimation"),this.updateControls())}requestTick(){this.isTicking||(this.emit("startAnimation"),this.updateControls(),qt(this.container,"is-animating"),this.isScaling&&qt(this.container,"is-scaling")),this.isTicking=!0,this.rAF||(this.rAF=requestAnimationFrame(()=>this.animate()))}panWithMouse(e,t=this.option("mouseMoveFriction")){if(this.pmme=e,this.panMode!==Ut||!e)return;if(Et(this.targetScale)<=Et(this.minScale))return;this.emit("mouseMove",e);const{container:i,containerRect:s,contentRect:n}=this,a=s.width,o=s.height,r=i.getBoundingClientRect(),l=(e.clientX||0)-r.left,c=(e.clientY||0)-r.top;let{contentWidth:d,contentHeight:h}=this.calculateContentDim(this.target);const u=this.option("mouseMoveFactor");u>1&&(d!==a&&(d*=u),h!==o&&(h*=u));let p=.5*(d-a)-l/a*100/100*(d-a);p+=.5*(n.right-n.left);let f=.5*(h-o)-c/o*100/100*(h-o);f+=.5*(n.bottom-n.top),this.applyChange({panX:p-this.target.e,panY:f-this.target.f,friction:t})}zoomWithWheel(e){if(this.state===Ft.Destroy||this.state===Ft.Init)return;const t=Date.now();if(t-this.pwt<45)return void e.preventDefault();this.pwt=t;var i=[-e.deltaX||0,-e.deltaY||0,-e.detail||0].reduce((function(e,t){return Math.abs(t)>Math.abs(e)?t:e}));const s=Math.max(-1,Math.min(1,i)),{targetScale:n,maxScale:a,minScale:o}=this;let r=n*(100+45*s)/100;Et(r)<Et(o)&&Et(n)<=Et(o)?(this.cwd+=Math.abs(s),r=o):Et(r)>Et(a)&&Et(n)>=Et(a)?(this.cwd+=Math.abs(s),r=a):(this.cwd=0,r=Math.max(Math.min(r,a),o)),this.cwd>this.option("wheelLimit")||(e.preventDefault(),Et(r)!==Et(n)&&this.zoomTo(r,{event:e}))}canZoomIn(){return this.option("zoom")&&(Et(this.contentRect.width,1)<Et(this.contentRect.fitWidth,1)||Et(this.targetScale)<Et(this.maxScale))}canZoomOut(){return this.option("zoom")&&Et(this.targetScale)>Et(this.minScale)}zoomIn(e=1.25,t){this.zoomTo(this.targetScale*e,t)}zoomOut(e=.8,t){this.zoomTo(this.targetScale*e,t)}zoomToFit(e){this.zoomTo("fit",e)}zoomToCover(e){this.zoomTo("cover",e)}zoomToFull(e){this.zoomTo("full",e)}zoomToMax(e){this.zoomTo("max",e)}toggleZoom(e){this.zoomTo(this.targetScale-this.minScale<.5*(this.fullScale-this.minScale)?"full":"fit",e)}toggleMax(e){this.zoomTo(this.targetScale-this.minScale<.5*(this.maxScale-this.minScale)?"max":"fit",e)}toggleCover(e){this.zoomTo(this.targetScale-this.minScale<.5*(this.coverScale-this.minScale)?"cover":"fit",e)}iterateZoom(e){this.zoomTo("next",e)}zoomTo(e=1,{friction:t="auto",originX:i=0,originY:s=0,event:n}={}){if(this.isContentLoading||this.state===Ft.Destroy)return;const{targetScale:a}=this;this.stop();let o=1;if(this.panMode===Ut&&(n=this.pmme||n),n){const e=this.content.getBoundingClientRect(),t=n.clientX||0,a=n.clientY||0;i=t-e.left-.5*e.width,s=a-e.top-.5*e.height}const r=this.fullScale,l=this.maxScale;let c=this.coverScale;"number"==typeof e?o=e/a:("next"===e&&(r-c<.2&&(c=r),e=a<r-1e-5?"full":a<l-1e-5?"max":"fit"),o="full"===e?r/a||1:"cover"===e?c/a||1:"max"===e?l/a||1:1/a||1),t="auto"===t?o>1?.15:.25:t,this.applyChange({scale:o,originX:i,originY:s,friction:t}),n&&this.panMode===Ut&&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 s=e.classList.contains(t);s?(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
1(s?"enterFS":"exitFS")}getMatrix(e=this.current){const{a:t,b:i,c:s,d:n,e:a,f:o}=e;return new DOMMatrix([t,i,s,n,a,o])}reset(e){if(this.state!==Ft.Init&&this.state!==Ft.Destroy){this.stop("current");for(const e of Ht)this.target[e]=Gt[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=Ft.Panning,this.requestTick())}}destroy(){this.stop(),this.state=Ft.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(ei,"defaults",{enumerable:!0,configurable:!0,writable:!0,value:_t}),Object.defineProperty(ei,"Plugins",{enumerable:!0,configurable:!0,writable:!0,value:{}});const ti=function(e,t){let i=!0;return(...s)=>{i&&(i=!1,e(...s),setTimeout(()=>{i=!0},t))}},ii=(e,t)=>{let i=[];return e.childNodes.forEach(e=>{e.nodeType!==Node.ELEMENT_NODE||t&&!e.matches(t)||i.push(e)}),i};var si;!function(e){e[e.Init=0]="Init",e[e.Ready=1]="Ready",e[e.Destroy=2]="Destroy"}(si||(si={}));const ni=e=>{if("string"==typeof e&&(e={html:e}),!(e instanceof String||e instanceof HTMLElement)){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:"",index:-1,dim:0,gap:0,pos:0,transition:!1},e)},ai=(e={})=>Object.assign({index:-1,slides:[],dim:0,pos:-1},e);class oi extends Dt{constructor(e,t){super(t),Object.defineProperty(this,"instance",{enumerable:!0,configurable:!0,writable:!0,value:e})}attach(){}detach(){}}class ri extends oi{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;return e||(e=document.createElement("ul"),qt(e,this.cn("list")),e.setAttribute("role","tablist"),this.instance.container.appendChild(e),qt(this.instance.container,this.cn("hasDots")),this.list=e),e}refresh(){var e;const t=this.instance.pages.length,i=Math.min(2,this.option("minCount")),s=Math.max(2e3,this.option("maxCount")),n=this.option("dynamicFrom");if(t<i||t>s)return void this.cleanup();const a="number"==typeof n&&t>5&&t>=n,o=!this.list||this.isDynamic!==a||this.list.children.length!==t;o&&this.cleanup();const r=this.build();if(Pt(r,this.cn("isDynamic"),!!a),o)for(let e=0;e<t;e++)r.append(this.createItem(e));let l,c=0;for(const t of[...r.children]){const i=c===this.instance.page;i&&(l=t),Pt(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"])Yt(t,this.cn(e));c++}if(l=l||r.firstChild,a&&l){const e=l.previousElementSibling,t=e&&e.previousElementSibling;qt(e,this.cn("isPrev")),qt(t,this.cn("isBeforePrev"));const i=l.nextElementSibling,s=i&&i.nextElementSibling;qt(i,this.cn("isNext")),qt(s,this.cn("isAfterNext"))}this.isDynamic=a}createItem(e=0){var t;const i=document.createElement("li");i.setAttribute("role","presentation");const s=Tt(this.instance.localize(this.option("dotTpl"),[["%d",e+1]]).replace(/\%i/g,e+""));return i.appendChild(s),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,Yt(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(ri,"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 li="disabled",ci="prev";class di extends oi{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})}onRefresh(){const e=this.instance,t=e.pages.length,i=e.page;if(t<2)return void this.cleanup();this.build();let s=this.prev,n=this.next;s&&n&&(s.removeAttribute(li),n.removeAttribute(li),e.isInfinite||(i<=0&&s.setAttribute(li,""),i>=t-1&&n.setAttribute(li,"")))}createButton(e){const t=this.instance,i=document.createElement("button");i.setAttribute("tabindex","0"),i.setAttribute("title",t.localize(`{{${e.toUpperCase()}}}`)),qt(i,this.cn("button")+" "+this.cn("next"===e?"isNext":"isPrev"));const s=t.isRTL?"next"===e?ci:"next":e;var n;return i.innerHTML=t.localize(this.option(s+"Tpl")),i.dataset["carousel"+(n=e,n?n.match("^[a-z]")?n.charAt(0).toUpperCase()+n.substring(1):n:"")]="true",i}build(){let e=this.container;e||(this.container=e=document.createElement("div"),qt(e,this.cn("container")),this.instance.container.appendChild(e)),this.next||(this.next=e.appendChild(this.createButton("next"))),this.prev||(this.prev=e.appendChild(this.createButton(ci))
1)}cleanup(){this.prev&&this.prev.remove(),this.next&&this.next.remove(),this.container&&this.container.remove(),this.prev=null,this.next=null,this.container=null}attach(){this.instance.on(["refresh","change"],this.onRefresh)}detach(){this.instance.off(["refresh","change"],this.onRefresh),this.cleanup()}}Object.defineProperty(di,"defaults",{enumerable:!0,configurable:!0,writable:!0,value:{classes:{container:"f-carousel__nav",button:"f-button",isNext:"is-next",isPrev:"is-prev"},nextTpl:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" tabindex="-1"><path d="M9 3l9 9-9 9"/></svg>',prevTpl:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" tabindex="-1"><path d="M15 3l-9 9 9 9"/></svg>'}});class hi extends oi{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(){this.nav&&this.target&&(this.nav.options.initialSlide=this.target.options.initialPage,this.nav.on("ready",this.onNavReady),this.nav.state===si.Ready&&this.onNavReady(this.nav),this.target.on("ready",this.onTargetReady),this.target.state===si.Ready&&this.onTargetReady(this.target))}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){i.pointerType||this.onNavTouch(e,e.panzoom,i)}onNavTouch(e,t,i){var s,n;if(Math.abs(t.dragOffset.x)>3||Math.abs(t.dragOffset.y)>3)return;const a=i.target,{nav:o,target:r}=this;if(!o||!r||!a)return;const l=a.closest("[data-index]");if(i.stopPropagation(),i.preventDefault(),!l)return;const c=parseInt(l.dataset.index||"",10)||0,d=r.getPageForSlide(c),h=o.getPageForSlide(c);o.slideTo(h),r.slideTo(d,{friction:(null===(n=null===(s=this.nav)||void 0===s?void 0:s.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(){const{target:e,nav:t}=this;if(!e||!t)return;if(t.state!==si.Ready||e.state!==si.Ready)return;const i=e.pages[e.page].slides[0].index,s=t.getPageForSlide(i);this.markSelectedSlide(i),t.slideTo(s)}markSelectedSlide(e){const t=this.nav;t&&t.state===si.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(hi,"defaults",{enumerable:!0,configurable:!0,writable:!0,value:{friction:.35}});const ui={Navigation:di,Dots:ri,Sync:hi};class pi extends jt{get axis(){return this.isHorizontal?"e":"f"}get isEnabled(){return this.state===si.Ready}get isInfinite(){let e=!1;const{contentDim:t,viewportDim:i,pages:s,slides:n}=this;return s.length>=2&&t+n[0].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,"userOptions",{enumerable:!0,configurable:!0,writable:!0,value:{}}),Object.defineProperty(this,"userPlugins",{enumerable:!0,configurable:!0,writable:!0,value:{}}),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,"state",{enumerable:!0,configurable:!0,writable:!0,value:si.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||!Xt(e))throw new Error("No Element found");this.container=e,this.slideNext=ti(this.slideNext.bind(this),150),this.slidePrev=ti(this.slidePrev.bind(this),150),this.userOptions=t,this.userPlugins=i,queueMicrotask(()=>{this.processOptions()})}processOptions(){const e=It({},pi.defaults,this.userOptions);let t="";const i=e.breakpoints;if(i&&$t(i))for(const[s,n]of Object.entries(i))window.matchMedia(s).matches&&$t(n)&&(t+=s,It(e,n));t===this.bp&&this.state!==si.Init||(this.bp=t,this.state===si.Ready&&(e.initialSlide=this.pages[this.page].slides[0].index),this.state!==si.Init&&this.destroy(),super.setOptions(e),!1===this.option("enabled")?this.attachEvents():setTimeout(()=>{this.init()},0))}
1init(){this.state=si.Init,this.emit("init"),this.attachPlugins(Object.assign(Object.assign({},pi.Plugins),this.userPlugins)),this.initLayout(),this.initSlides(),this.updateMetrics(),this.setInitialPosition(),this.initPanzoom(),this.attachEvents(),this.state=si.Ready,this.emit("ready")}initLayout(){const{container:e}=this,t=this.option("classes");qt(e,this.cn("container")),Pt(e,t.isLTR,!this.isRTL),Pt(e,t.isRTL,this.isRTL),Pt(e,t.isVertical,!this.isHorizontal),Pt(e,t.isHorizontal,this.isHorizontal);let i=this.option("viewport")||e.querySelector("."+t.viewport);i||(i=document.createElement("div"),qt(i,t.viewport),i.append(...ii(e,"."+t.slide)),e.prepend(i));let s=this.option("track")||e.querySelector("."+t.track);s||(s=document.createElement("div"),qt(s,t.track),s.append(...Array.from(i.childNodes))),s.setAttribute("aria-live","polite"),i.contains(s)||i.prepend(s),this.viewport=i,this.track=s,this.emit("initLayout")}initSlides(){const{track:e}=this;if(e){this.slides=[],[...ii(e,"."+this.cn("slide"))].forEach(e=>{if(Xt(e)){const t=ni({el:e,isDom:!0,index:this.slides.length});this.slides.push(t),this.emit("initSlide",t,this.slides.length)}});for(let e of this.option("slides",[])){const t=ni(e);t.index=this.slides.length,this.slides.push(t),this.emit("initSlide",t,this.slides.length)}this.emit("initSlides")}}setInitialPage(){let e=0;const t=this.option("initialSlide");e="number"==typeof t?this.getPageForSlide(t):parseInt(this.option("initialPage",0)+"",10)||0,this.page=e}setInitialPosition(){if(!this.track||!this.pages.length)return;const e=this.isHorizontal;let t=this.page;this.pages[t]||(this.page=t=0);const i=this.pages[t].pos*(this.isRTL&&e?1:-1),s=e?i+"px":"0",n=e?"0":i+"px";this.track.style.transform=`translate3d(${s}, ${n}, 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 ei(this.viewport,It({},{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 s=this.option("slidesPerPage");("number"!=typeof s||t<=i)&&(s=1/0);let n=0,a=0,o=0;for(const t of this.slides)(!e.length||a+t.dim>i||o===s)&&(e.push(ai()),n=e.length-1,a=0,o=0),e[n].slides.push(t),a+=t.dim+t.gap,o++;return e}processPages(){const e=this.pages,{contentDim:t,viewportDim:i}=this,s=this.option("center"),n=this.option("fill"),a=n&&s&&t>i&&!this.isInfinite;if(e.forEach((e,n)=>{e.index=n,e.pos=e.slides[0].pos,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*i?e.pos=0:a&&e.pos+.5*e.dim>=t-.5*i?e.pos=t-i:s&&(e.pos+=-.5*(i-e.dim))}),e.forEach((e,s)=>{n&&!this.isInfinite&&t>i&&(e.pos=Math.max(e.pos,0),e.pos=Math.min(e.pos,t-i)),e.pos=Et(e.pos,1e3),e.dim=Et(e.dim,1e3),e.pos<.1&&e.pos>-.1&&(e.pos=0)}),this.isInfinite)return e;const o=[];let r;return e.forEach(e=>{const t=Object.assign({},e);r&&t.pos===r.pos?(r.dim+=t.dim,r.slides=[...r.slides,...t.slides]):(t.index=o.length,r=t,o.push(t))}),o}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 t;const i=this.isHorizontal?"width":"height";let s=0,n=0,a=e.el;if(a?s=parseFloat(a.dataset[i]||"")||0:(a=document.createElement("div"),a.style.visibility="hidden",qt(a,this.cn("slide")+" "+e.class),(this.track||document.body).prepend(a)),s)a.style[i]=s+"px",a.style["width"===i?"height":"width"]="";
1else{const e=Math.max(1,(null===(t=window.visualViewport)||void 0===t?void 0:t.scale)||1);s=a.getBoundingClientRect()[i]*e}const o=getComputedStyle(a);return"content-box"===o.boxSizing&&(this.isHorizontal?(s+=parseFloat(o.paddingLeft)||0,s+=parseFloat(o.paddingRight)||0):(s+=parseFloat(o.paddingTop)||0,s+=parseFloat(o.paddingBottom)||0)),n=parseFloat(o[this.isHorizontal?"marginRight":"marginBottom"])||0,e.el||a.remove(),{dim:Et(s,1e3),gap:Et(n,1e3)}}getBounds(){const{isInfinite:e,isRTL:t,isHorizontal:i,pages:s}=this;let n={min:0,max:0};if(e)n={min:-1/0,max:1/0};else if(s.length){const e=s[0].pos,a=s[s.length-1].pos;n=t&&i?{min:e,max:a}:{min:-1*a,max:-1*e}}return{x:i?n:{min:0,max:0},y:i?{min:0,max:0}:n}}repositionSlides(){let e,{isHorizontal:t,isRTL:i,isInfinite:s,viewport:n,viewportDim:a,contentDim:o,page:r,pages:l,slides:c,panzoom:d}=this,h=0,u=0,p=0,f=0;d?f=-1*d.current[this.axis]:l[r]&&(f=l[r].pos||0),e=t?i?"right":"left":"top",i&&t&&(f*=-1);for(const t of c)t.el?("top"===e?(t.el.style.right="",t.el.style.left=""):t.el.style.top="",t.index!==h?t.el.style[e]=0===u?"":Et(u,1e3)+"px":t.el.style[e]="",p+=t.dim+t.gap,h++):u+=t.dim+t.gap;if(s&&p&&n){let i=getComputedStyle(n),s="padding",r=t?"Right":"Bottom",l=parseFloat(i[s+(t?"Left":"Top")]);f-=l,a+=l,a+=parseFloat(i[s+r]);for(const t of c)t.el&&(Et(t.pos)<Et(a)&&Et(t.pos+t.dim+t.gap)<Et(f)&&Et(f)>Et(o-a)&&(t.el.style[e]=Et(u+p,1e3)+"px"),Et(t.pos+t.gap)>=Et(o-a)&&Et(t.pos)>Et(f+a)&&Et(f)<Et(a)&&(t.el.style[e]=`-${Et(p,1e3)}px`))}let m,g,v=[...this.inTransition];if(v.length>1&&(m=l[v[0]],g=l[v[1]]),m&&g){let t=0;for(const i of c)i.el?this.inTransition.has(i.index)&&m.slides.indexOf(i)<0&&(i.el.style[e]=Et(t+(m.pos-g.pos),1e3)+"px"):t+=i.dim+i.gap}}createSlideEl(e){const{track:t,slides:i}=this;if(!t||!e)return;if(e.el)return;const s=document.createElement("div");qt(s,this.cn("slide")),qt(s,e.class),qt(s,e.customClass),e.html&&(s.innerHTML=e.html);const n=[];i.forEach((e,t)=>{e.el&&n.push(t)});const a=e.index;let o=null;n.length&&(o=i[n.reduce((e,t)=>Math.abs(t-a)<Math.abs(e-a)?t:e)]);const r=o&&o.el?o.index<e.index?o.el.nextSibling:o.el:null;t.insertBefore(s,t.contains(r)?r:null),e.el=s,this.emit("createSlide",e)}removeSlideEl(e,t=!1){const i=e.el;if(!i)return;if(Yt(i,this.cn("isSelected")),e.isDom&&!t)return i.removeAttribute("aria-hidden"),i.removeAttribute("data-index"),Yt(i,this.cn("isSelected")),void(i.style.left="");this.emit("removeSlide",e);const s=new CustomEvent("animationend");i.dispatchEvent(s),e.el&&e.el.remove(),e.el=null}transitionTo(e=0,t=this.option("transition")){if(!t)return!1;const{pages:i,panzoom:s}=this;e=parseInt((e||0).toString())||0;const n=this.getPageFromIndex(e);if(!s||!i[n]||i.length<2||Math.abs(i[this.page].slides[0].dim-this.viewportDim)>1)return!1;const a=e>this.page?1:-1,o=this.pages[n].pos*(this.isRTL?1:-1);if(this.page===n&&Et(o,1e3)===Et(s.target[this.axis],1e3))return!1;this.clearTransitions();const r=s.isResting;qt(this.container,this.cn("inTransition"));const l=this.pages[this.page].slides[0],c=this.pages[n].slides[0];this.inTransition.add(c.index),this.createSlideEl(c);let d=l.el,h=c.el;r||"slide"===t||(t="fadeFast",d=null);const u=this.isRTL?"next":"prev",p=this.isRTL?"prev":"next";return d&&(this.inTransition.add(l.index),l.transition=t,d.addEventListener("animationend",this.onAnimationEnd),d.classList.add(`f-${t}Out`,"to-"+(a>0?p:u))),h&&(c.transition=t,h.addEventListener("animationend",this.onAnimationEnd),h.classList.add(`f-${t}In`,"from-"+(a>0?u:p))),s.panTo({x:this.isHorizontal?o:0,y:this.isHorizontal?0:o,friction:0}),this.onChange(n),!0}manageSlideVisiblity(){const e=new Set,t=new Set,i=this.getVisibleSlides(parseFloat(this.option("preload",0)+"")||0);for(const s of this.slides)i.has(s)?e.add(s):t.add(s);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("isSelected");if(t)for(const i of this.slides)i.el&&(i.el.dataset.index=""+i.index,this.pages[this.page].slides.includes(i)?(i.el.classList.contains(t)||(qt(i.el,t),this.emit
1("selectSlide",i)),i.el.removeAttribute(e)):(i.el.classList.contains(t)&&(Yt(i.el,t),this.emit("unselectSlide",i)),i.el.setAttribute(e,"true")))}flipInfiniteTrack(){const e=this.panzoom;if(!e||!this.isInfinite)return;const t="x"===this.option("axis")?"e":"f",{viewportDim:i,contentDim:s}=this;let n=e.current[t],a=e.target[t]-n,o=0,r=.5*i,l=s;this.isRTL&&this.isHorizontal?(n<-r&&(o=-1,n+=l),n>l-r&&(o=1,n-=l)):(n>r&&(o=1,n-=l),n<-l+r&&(o=-1,n+=l)),o&&(e.current[t]=n,e.target[t]=n+a)}lazyLoadSlide(e){const t=this,i=e&&e.el;if(!i)return;const s=new Set,n="f-fadeIn";i.querySelectorAll("[data-lazy-srcset]").forEach(e=>{e instanceof HTMLImageElement&&s.add(e)});let a=Array.from(i.querySelectorAll("[data-lazy-src]"));i.dataset.lazySrc&&a.push(i),a.map(e=>{e instanceof HTMLImageElement?s.add(e):Xt(e)&&(e.style.backgroundImage=`url('${e.dataset.lazySrc||""}')`,delete e.dataset.lazySrc)});const o=(e,i,s)=>{s&&(s.remove(),s=null),i.complete&&(i.classList.add(n),setTimeout(()=>{i.classList.remove(n)},350),i.style.display=""),this.option("adaptiveHeight")&&e.el&&this.pages[this.page].slides.indexOf(e)>-1&&(t.updateMetrics(),t.setViewportHeight()),this.emit("load",e)};for(const t of s){let i=null;t.src=t.dataset.lazySrcset||t.dataset.lazySrc||"",delete t.dataset.lazySrc,delete t.dataset.lazySrcset,t.style.display="none",t.addEventListener("error",()=>{o(e,t,i)}),t.addEventListener("load",()=>{o(e,t,i)}),setTimeout(()=>{t.parentNode&&e.el&&(t.complete?o(e,t,i):(i=Tt(Wt),t.parentNode.insertBefore(i,t)))},300)}}onAnimationEnd(e){var t;const i=e.target,s=i?parseInt(i.dataset.index||"",10)||0:-1,n=this.slides[s],a=e.animationName;if(!i||!n||!a)return;const o=!!this.inTransition.has(s)&&n.transition;o&&a.substring(0,o.length+2)==="f-"+o&&this.inTransition.delete(s),this.inTransition.size||this.clearTransitions(),s===this.page&&(null===(t=this.panzoom)||void 0===t?void 0:t.isResting)&&this.emit("settle")}onDecel(e,t=0,i=0,s=0,n=0){const{isRTL:a,isHorizontal:o,axis:r,pages:l}=this,c=l.length,d=Math.abs(Math.atan2(i,t)/(Math.PI/180));let h=0;if(h=d>45&&d<135?o?0:i:o?t:0,!c)return;const u=this.option("dragFree");let p=this.page,f=a&&o?1:-1;const m=e.target[r]*f,g=e.current[r]*f;let{pageIndex:v}=this.getPageFromPosition(m),{pageIndex:b}=this.getPageFromPosition(g);u?this.onChange(v):(Math.abs(h)>5?(l[p].dim<document.documentElement["client"+(this.isHorizontal?"Width":"Height")]-1&&(p=b),p=a&&o?h<0?p-1:p+1:h<0?p+1:p-1):p=0===s&&0===n?p:b,this.slideTo(p,{transition:!1,friction:e.option("decelFriction")}))}onClick(e){const t=e.target,i=t&&Xt(t)?t.dataset:null;let s,n;i&&(void 0!==i.carouselPage?(n="slideTo",s=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](s)):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})}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=si.Init,this.userOptions=e||this.userOptions,this.userPlugins=t||this.userPlugins,this.processOptions()}slideTo(e=0,{friction:t=this.option("friction"),transition:i=this.option("transition")}={}){if(this.state===si.Destroy)return;const{axis:s,isHorizontal:n,isRTL:a,pages:o,panzoom:r}=this,l=o.length,c=a&&n?1:-1;if(!r||!l)return;if(this.transitionTo(e,i))return;const d=this.getPageFromIndex(e);let h=o[d].pos;if(this.isInfinite){const t=this.contentDim,i=r.target[s]*c;if(2===l)h+=t*Math.floor(parseFloat(e+"")/2);else{const e=i;h=[h,h-t,h+t].reduce((function(t,i){return Math.abs(i-e)<Math.abs(t-e)?i:t}))}}h*=c,Math.abs(r.target[s]-h)<.1||(r.panTo({x:n?h:0,y:n?0:h,friction:t}),this.onChange(d))}slideToClosest(e){if(this.panzoom){const{pageIndex:t}=this.getPageFromPosition(this.panzoom.current[this.isHorizontal?"e":"f"]);this.slideTo(t,e)}}slideNext(){this.slideTo(this.page+1)}slidePrev(){this.slideTo(this.page-1)}clearTransitions(){this.inTransition.clear(),Yt(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("animationend",this.onAnimationEnd),i.classList.remove(...e);const s=t.transition;s&&i.classList.remove(`f-${s}Out`,`f-${s}In`)}}this.manageSlideVisiblity()}prependSlide(e){var t,i;let s=Array.isArray(e)?e:[e];for(const e of s.reverse())this.slides.unshift(ni(e));for(let e=0;e<this.slides.length;e++)this.slides[e].index=e;const n=(null===(t=this.pages[this.page])||void 0===t?void 0:t.pos)||0;this.page+=s.length,this.updateMetrics();const a=(null===(i=this.pages[this.page])||void 0===i?void 0:i.pos)||0;if(this.panzoom){const e=this.isRTL?n-a:a-n;this.panzoom.target.e-=e,this.panzoom.current.e-=e,this.panzoom.requestTick()}}appendSlide(e){let t=Array.isArray(e)?e:[e];for(const e of t){const t=ni(e);
1t.index=this.slides.length,this.slides.push(t),this.emit("initSlide",t,this.slides.length)}this.updateMetrics()}removeSlide(e){const t=this.slides.length;e=(e%t+t)%t,this.removeSlideEl(this.slides[e],!0),this.slides.splice(e,1);for(let e=0;e<this.slides.length;e++)this.slides[e].index=e;this.updateMetrics(),this.slideTo(this.page,{friction:0,transition:!1})}updateMetrics(){const{panzoom:e,viewport:t,track:i,isHorizontal:s}=this;if(!i)return;const n=s?"width":"height",a=s?"offsetWidth":"offsetHeight";if(t){let e=Math.max(t[a],Et(t.getBoundingClientRect()[n],1e3)),i=getComputedStyle(t),o="padding",r=s?"Right":"Bottom";e-=parseFloat(i[o+(s?"Left":"Top")])+parseFloat(i[o+r]),this.viewportDim=e}let o,r=this.pages.length,l=0;for(const[e,t]of this.slides.entries()){let i=0,s=0;!t.el&&o?(i=o.dim,s=o.gap):(({dim:i,gap:s}=this.getSlideMetrics(t)),o=t),i=Et(i,1e3),s=Et(s,1e3),t.dim=i,t.gap=s,t.pos=l,l+=i,(this.isInfinite||e<this.slides.length-1)&&(l+=s)}const c=this.contentDim;l=Et(l,1e3),this.contentDim=l,e&&(e.contentRect[n]=l,e.contentRect["e"===this.axis?"fullWidth":"fullHeight"]=l),this.pages=this.createPages(),this.pages=this.processPages(),this.state===si.Init&&this.setInitialPage(),this.page=Math.max(0,Math.min(this.page,this.pages.length-1)),e&&r===this.pages.length&&Math.abs(l-c)>.5&&(e.target[this.axis]=-1*this.pages[this.page].pos,e.current[this.axis]=-1*this.pages[this.page].pos,e.stop()),this.manageSlideVisiblity(),this.emit("refresh")}getProgress(e,t=!1){void 0===e&&(e=this.page);const i=this,s=i.panzoom,n=i.pages[e]||0;if(!n||!s)return 0;let a=-1*s.current.e,o=i.contentDim;var r=[Et((a-n.pos)/(1*n.dim),1e3),Et((a+o-n.pos)/(1*n.dim),1e3),Et((a-o-n.pos)/(1*n.dim),1e3)].reduce((function(e,t){return Math.abs(t)<Math.abs(e)?t:e}));return t?r:Math.max(-1,Math.min(1,r))}setViewportHeight(){const{page:e,pages:t,viewport:i,isHorizontal:s}=this;if(!i||!t[e])return;let n=0;s&&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{contentDim:s,viewportDim:n,pages:a,page:o}=this;s=s+(null===(t=this.slides[this.slides.length-1])||void 0===t?void 0:t.gap)||0;let r=0;r=this.panzoom?-1*this.panzoom.current[this.axis]:a[o]&&a[o].pos||0,this.isInfinite&&(r-=Math.floor(r/s)*s),this.isRTL&&this.isHorizontal&&(r*=-1);const l=r-n*e,c=r+n*(e+1),d=this.isInfinite?[-1,0,1]:[0];for(const e of this.slides)for(const t of d){const n=e.pos+t*s,a=e.pos+e.dim+e.gap+t*s;n<c&&a>l&&i.add(e)}return i}getPageFromPosition(e){const{viewportDim:t,contentDim:i}=this,s=this.pages.length,n=this.slides.length,a=this.slides[n-1];let o=0,r=0,l=0;const c=this.option("center");c&&(e+=.5*t),this.isInfinite||(e=Math.max(this.slides[0].pos,Math.min(e,a.pos)));const d=i+a.gap;l=Math.floor(e/d)||0,e-=l*d;let h=a,u=this.slides.find(t=>{const i=e+(h&&!c?.5*h.dim:0);return h=t,t.pos<=i&&t.pos+t.dim+t.gap>i});return u||(u=a),r=this.getPageForSlide(u.index),o=r+l*s,{page:o,pageIndex:r}}destroy(){if([si.Destroy].includes(this.state))return;this.state=si.Destroy;const{container:e,viewport:t,track:i,slides:s,panzoom:n}=this,a=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),s&&s.forEach(e=>{this.removeSlideEl(e)}),this.detachPlugins(),t&&t.offsetParent&&i&&i.offsetParent&&t.replaceWith(...i.childNodes);for(const[t,i]of Object.entries(a))"container"!==t&&i&&e.classList.remove(i);this.track=null,this.viewport=null,this.page=0,this.slides=[];const o=this.events.get("ready");this.events=new Map,o&&this.events.set("ready",o)}}Object.defineProperty(pi,"Panzoom",{enumerable:!0,configurable:!0,writable:!0,value:ei}),Object.defineProperty(pi,"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(pi,"Plugins",{enumerable:!0,configurable:!0,writable:!0,value:ui});const fi=function(e){const t=window.pageYOffset,i=window.pageYOffset+window.innerHeight;if(!Xt(e))return 0;const s=e.getBoundingClientRect(),n=s.y+window.pageYOffset,a=s.y+s.height+window.pageYOffset;if(t>a||i<n)return 0;if(t<n&&i>a)return 100;if(n<t&&a>i)return 100;let o=s.height;n<t&&(o-=window.pageYOffset-n),a>i&&(o-=a-i);const r=o/window.innerHeight*100;return Math.round(r)},mi=!("undefined"==typeof window||!window.document||!window.document.createElement);let gi;const vi=["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
1([tabindex^="-"]):not([disabled]):not([aria-hidden])'].join(","),bi=e=>{if(e&&mi){void 0===gi&&document.createElement("div").focus({get preventScroll(){return gi=!0,!1}});try{if(gi)e.focus({preventScroll:!0});else{const t=window.pageXOffset||document.body.scrollTop,i=window.pageYOffset||document.body.scrollLeft;e.focus(),document.body.scrollTo({top:t,left:i,behavior:"auto"})}}catch(e){}}},yi={dragToClose:!0,hideScrollbar:!0,Carousel:{classes:{container:"fancybox__carousel",viewport:"fancybox__viewport",track:"fancybox__track",slide:"fancybox__slide"}},contentClick:"toggleZoom",contentDblClick:!1,backdropClick:"close",animated:!0,idle:3500,showClass:"f-zoomInUp",hideClass:"f-fadeOut",commonCaption:!1,parentEl:null,startIndex:0,l10n:Object.assign(Object.assign({},Bt),{CLOSE:"Close",NEXT:"Next",PREV:"Previous",MODAL:"You can close this modal content with the ESC key",ERROR:"Something Went Wrong, Please Try Again Later",IMAGE_ERROR:"Image Not Found",ELEMENT_NOT_FOUND:"HTML Element Not Found",AJAX_NOT_FOUND:"Error Loading AJAX : Not Found",AJAX_FORBIDDEN:"Error Loading AJAX : Forbidden",IFRAME_ERROR:"Error Loading Page",TOGGLE_ZOOM:"Toggle zoom level",TOGGLE_THUMBS:"Toggle thumbnails",TOGGLE_SLIDESHOW:"Toggle slideshow",TOGGLE_FULLSCREEN:"Toggle full-screen mode",DOWNLOAD:"Download"}),tpl:{closeButton:'<button data-fancybox-close class="f-button is-close-btn" title="{{CLOSE}}"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" tabindex="-1"><path d="M20 20L4 4m16 0L4 20"/></svg></button>',main:'<div class="fancybox__container" role="dialog" aria-modal="true" aria-label="{{MODAL}}" tabindex="-1">\n    <div class="fancybox__backdrop"></div>\n    <div class="fancybox__carousel"></div>\n    <div class="fancybox__footer"></div>\n  </div>'},groupAll:!1,groupAttr:"data-fancybox",defaultType:"image",defaultDisplay:"block",autoFocus:!0,trapFocus:!0,placeFocusBack:!0,closeButton:"auto",keyboard:{Escape:"close",Delete:"close",Backspace:"close",PageUp:"next",PageDown:"prev",ArrowUp:"prev",ArrowDown:"next",ArrowRight:"next",ArrowLeft:"prev"},Fullscreen:{autoStart:!1},compact:()=>window.matchMedia("(max-width: 578px), (max-height: 578px)").matches,wheel:"zoom"};var wi,xi;!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"}(wi||(wi={})),function(e){e[e.Loading=0]="Loading",e[e.Opening=1]="Opening",e[e.Ready=2]="Ready",e[e.Closing=3]="Closing"}(xi||(xi={}));const Ei=()=>{queueMicrotask(()=>{(()=>{const{slug:e,index:t}=Si.parseURL(),i=ns.getInstance();if(i&&!1!==i.option("Hash")){const s=i.carousel;if(e&&s){for(let t of s.slides)if(t.slug&&t.slug===e)return s.slideTo(t.index);if(e===i.option("slug"))return s.slideTo(t-1);const n=i.getSlide(),a=n&&n.triggerEl&&n.triggerEl.dataset;if(a&&a.fancybox===e)return s.slideTo(t-1)}Si.hasSilentClose=!0,i.close()}Si.startFromUrl()})()})};class Si extends oi{constructor(){super(...arguments),Object.defineProperty(this,"origHash",{enumerable:!0,configurable:!0,writable:!0,value:""}),Object.defineProperty(this,"timer",{enumerable:!0,configurable:!0,writable:!0,value:null})}onChange(){const e=this.instance,t=e.carousel;this.timer&&clearTimeout(this.timer);const i=e.getSlide();if(!t||!i)return;const s=e.isOpeningSlide(i),n=new URL(document.URL).hash;let a,o=i.slug||void 0,r=i.triggerEl||void 0;a=o||this.instance.option("slug"),!a&&r&&r.dataset&&(a=r.dataset.fancybox);let l="";a&&"true"!==a&&(l="#"+a+(!o&&t.slides.length>1?"-"+(i.index+1):"")),s&&(this.origHash=n!==l?n:""),l&&n!==l&&(this.timer=setTimeout(()=>{try{e.state===wi.Ready&&window.history[s?"pushState":"replaceState"]({},document.title,window.location.pathname+window.location.search+l)}catch(e){}},300))}onClose(){if(this.timer&&clearTimeout(this.timer),!0!==Si.hasSilentClose)try{window.history.replaceState({},document.title,window.location.pathname+window.location.search+(this.origHash||""))}catch(e){}}attach(){const e=this.instance;e.on("Carousel.ready",this.onChange),e.on("Carousel.change",this.onChange),e.on("close",this.onClose)}detach(){const e=this.instance;e.off("Carousel.ready",this.onChange),e.off("Carousel.change",this.onChange),e.off("close",this.onClose)}static parseURL(){const e=window.location.hash.slice(1),t=e.split("-"),i=t[t.length-1],s=i&&/^\+?\d+$/.test(i)&&parseInt(t.pop()||"1",10)||1;return{hash:e,slug:t.join("-"),index:s}}static startFromUrl(){if(Si.hasSilentClose=!1,ns.getInstance()||!1===ns.defaults.Hash)return;const{hash:e,slug:t,index:i}=Si.parseURL();if(!t)return;let s=document.querySelector(`[data-slug="${e}"]`);if(s&&s.dispatchEvent(new CustomEvent("click",{bubbles:!0,cancelable:!0})),ns.getInstance())return;const n=document.querySelectorAll(`[data-fancybox="${t}"]`);n.length&&(s=n[i-1],s&&s.dispatchEvent(new CustomEvent("click",{bubbles:!0,cancelable:!0})))}static destroy(){window.removeEventListener("hashchange",Ei,!1)}}function Ci(){window.addEventListener("hashchange",Ei,!1),setTimeout(()=>{Si.startFromUrl()},500)}Object.defineProperty(Si,"defaults",{enumerable:!0,configurable:!0,writable:!0,value:{}}),Object.defineProperty(Si,"hasSilentClose",{enumerable:!0,configurable:!0,writable:!0,value:!1}),mi&&(/complete|interactive|loaded/.test(document.readyState)?Ci():document.addEventListener("DOMContentLoaded",Ci));class Ti extends oi{onCreateSlide(e,t,i){const s=this.instance.optionFor(i,"src")||"";i.el&&"image"===i.type&&"string"==typeof s&&this.setImage(i,s)}onRemoveSlide(e,t,i){i.panzoom&&i.panzoom.destroy(),i.panzoom=void 0,i.imageEl=void 0}onChange(e,t,i,s){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,s=t.getSlide();if(!i||!i.parentElement||!s)return;const{el:n,contentEl:a,panzoom:o}=s,r=s.thumbElSrc;if(!n||!r||!a||!o||o.isContentLoading||o.state===Ft.Init||o.state===Ft.Destroy)return;o.updateMetrics();let l=this.getZoomInfo(s);if(!l)return;this.instance.state=wi.CustomClosing,i.classList.remove("is-zooming-in"),i.classList.add("is-zooming-out"),a.style.backgroundImage=`url('${r}')`;const c=i.getBoundingClientRect();
11===((null===(e=window.visualViewport)||void 0===e?void 0:e.scale)||1)&&Object.assign(i.style,{position:"absolute",top:window.pageYOffset+"px",left:window.pageXOffset+"px",bottom:"auto",right:"auto",width:c.width+"px",height:c.height+"px",overflow:"hidden"});const{x:d,y:h,scale:u,opacity:p}=l;if(p){const e=((e,t,i,s)=>{const n=t-e;return t=>1+((t-e)/n*-1||0)})(o.scale,u);o.on("afterTransform",()=>{a.style.opacity=e(o.scale)+""})}o.on("endAnimation",()=>{t.destroy()}),o.target.a=u,o.target.b=0,o.target.c=0,o.target.d=u,o.panTo({x:d,y:h,scale:u,friction:p?.2:.33,ignoreBounds:!0}),o.isResting&&t.destroy()}setImage(e,t){const i=this.instance;e.src=t,this.process(e,t).then(t=>{var s;const n=e.contentEl,a=e.imageEl,o=e.thumbElSrc;if(i.isClosing()||!n||!a)return;n.offsetHeight;const r=!!i.isOpeningSlide(e)&&this.getZoomInfo(e);if(this.option("protected")){null===(s=e.el)||void 0===s||s.addEventListener("contextmenu",e=>{e.preventDefault()});const t=document.createElement("div");qt(t,"fancybox-protected"),n.appendChild(t)}if(o&&r){const s=t.contentRect,a=Math.max(s.fullWidth,s.fullHeight);let c=null;!r.opacity&&a>1200&&(c=document.createElement("img"),qt(c,"fancybox-ghost"),c.src=o,n.appendChild(c));const d=()=>{c&&(qt(c,"f-fadeFastOut"),setTimeout(()=>{c&&(c.remove(),c=null)},200))};(l=o,new Promise((e,t)=>{const i=new Image;i.onload=e,i.onerror=t,i.src=l})).then(()=>{e.state=xi.Opening,this.instance.emit("reveal",e),this.zoomIn(e).then(()=>{d(),this.instance.done(e)},()=>{i.hideLoading(e)}),c&&setTimeout(()=>{d()},a>2500?800:200)},()=>{i.hideLoading(e),i.revealContent(e)})}else{const s=this.optionFor(e,"initialSize"),n=this.optionFor(e,"zoom"),a={event:i.prevMouseMoveEvent||i.options.event,friction:n?.12:0};let o=i.optionFor(e,"showClass")||void 0,r=!0;i.isOpeningSlide(e)&&("full"===s?t.zoomToFull(a):"cover"===s?t.zoomToCover(a):"max"===s?t.zoomToMax(a):r=!1,t.stop("current")),r&&o&&(o=t.isDragging?"f-fadeIn":""),i.revealContent(e,o)}var l},()=>{i.setError(e,"{{IMAGE_ERROR}}")})}process(e,t){return new Promise((i,s)=>{var n,a;const o=this.instance,r=e.el;o.clearContent(e),o.showLoading(e);let l=this.optionFor(e,"content");"string"==typeof l&&(l=Tt(l)),l&&Xt(l)||(l=document.createElement("img"),l instanceof HTMLImageElement&&(l.src=t||"",l.alt=(null===(n=e.caption)||void 0===n?void 0:n.replace(/<[^>]+>/gi,"").substring(0,1e3))||`Image ${e.index+1} of ${null===(a=o.carousel)||void 0===a?void 0:a.pages.length}`,l.draggable=!1,e.srcset&&l.setAttribute("srcset",e.srcset)),e.sizes&&l.setAttribute("sizes",e.sizes)),l.classList.add("fancybox-image"),e.imageEl=l,o.setContent(e,l,!1),e.panzoom=new ei(r,It({transformParent:!0},this.option("Panzoom")||{},{content:l,width:o.optionFor(e,"width","auto"),height:o.optionFor(e,"height","auto"),wheel:()=>{const e=o.option("wheel");return("zoom"===e||"pan"==e)&&e},click:(t,i)=>{var s,n;if(o.isCompact||o.isClosing())return!1;if(e.index!==(null===(s=o.getSlide())||void 0===s?void 0:s.index))return!1;if(i){const e=i.composedPath()[0];if(["A","BUTTON","TEXTAREA","OPTION","INPUT","SELECT","VIDEO"].includes(e.nodeName))return!1}let a=!i||i.target&&(null===(n=e.contentEl)||void 0===n?void 0:n.contains(i.target));return o.option(a?"contentClick":"backdropClick")||!1},dblClick:()=>o.isCompact?"toggleZoom":o.option("contentDblClick")||!1,spinner:!1,panOnlyZoomed:!0,wheelLimit:1/0,on:{ready:e=>{i(e)},error:()=>{s()},destroy:()=>{s()}}}))})}zoomIn(e){return new Promise((t,i)=>{const s=this.instance,n=s.container,{panzoom:a,contentEl:o,el:r}=e;a&&a.updateMetrics();const l=this.getZoomInfo(e);if(!(l&&r&&o&&a&&n))return void i();const{x:c,y:d,scale:h,opacity:u}=l,p=()=>{e.state!==xi.Closing&&(u&&(o.style.opacity=Math.max(Math.min(1,1-(1-a.scale)/(1-h)),0)+""),a.scale>=1&&a.scale>a.targetScale-.1&&t(a))},f=e=>{Yt(n,"is-zooming-in"),e.scale<.99||e.scale>1.01||(o.style.opacity="",e.off("endAnimation",f),e.off("touchStart",f),e.off("afterTransform",p),t(e))};a.on("endAnimation",f),a.on("touchStart",f),a.on("afterTransform",p),a.on(["error","destroy"],()=>{i()}),a.panTo({x:c,y:d,scale:h,friction:0,ignoreBounds:!0}),a.stop("current");
1const m={event:"mousemove"===a.panMode?s.prevMouseMoveEvent||s.options.event:void 0},g=this.optionFor(e,"initialSize");qt(n,"is-zooming-in"),s.hideLoading(e),"full"===g?a.zoomToFull(m):"cover"===g?a.zoomToCover(m):"max"===g?a.zoomToMax(m):a.reset(.172)})}getZoomInfo(e){var t;const{el:i,imageEl:s,thumbEl:n,panzoom:a}=e;if(!i||!s||!n||!a||fi(n)<3||!this.optionFor(e,"zoom")||this.instance.state===wi.Destroy)return!1;if(1!==((null===(t=window.visualViewport)||void 0===t?void 0:t.scale)||1))return!1;let{top:o,left:r,width:l,height:c}=n.getBoundingClientRect(),{top:d,left:h,fitWidth:u,fitHeight:p}=a.contentRect;if(!(l&&c&&u&&p))return!1;const f=a.container.getBoundingClientRect();h+=f.left,d+=f.top;const m=-1*(h+.5*u-(r+.5*l)),g=-1*(d+.5*p-(o+.5*c)),v=l/u;let b=this.option("zoomOpacity")||!1;return"auto"===b&&(b=Math.abs(l/c-u/p)>.1),{x:m,y:g,scale:v,opacity:b}}attach(){const e=this,t=e.instance;t.on("Carousel.change",e.onChange),t.on("Carousel.createSlide",e.onCreateSlide),t.on("Carousel.removeSlide",e.onRemoveSlide),t.on("close",e.onClose)}detach(){const e=this,t=e.instance;t.off("Carousel.change",e.onChange),t.off("Carousel.createSlide",e.onCreateSlide),t.off("Carousel.removeSlide",e.onRemoveSlide),t.off("close",e.onClose)}}Object.defineProperty(Ti,"defaults",{enumerable:!0,configurable:!0,writable:!0,value:{initialSize:"fit",Panzoom:{maxScale:1},protected:!1,zoom:!0,zoomOpacity:"auto"}}),"function"==typeof SuppressedError&&SuppressedError;const Mi=(e,t={})=>{const i=new URL(e),s=new URLSearchParams(i.search),n=new URLSearchParams;for(const[e,i]of[...s,...Object.entries(t)]){let t=i.toString();"t"===e?n.set("start",parseInt(t).toString()):n.set(e,t)}let a=n.toString(),o=e.match(/#t=((.*)?\d+s)/);return o&&(a+="#t="+o[1]),a},Pi=["image","html","ajax","inline","clone","iframe","map","pdf","html5video","youtube","vimeo","video"];class Oi extends oi{onInitSlide(e,t,i){this.processType(i)}onCreateSlide(e,t,i){this.setContent(i)}onRemoveSlide(e,t,i){i.xhr&&(i.xhr.abort(),i.xhr=null);const s=i.iframeEl;s&&(s.onload=s.onerror=null,s.src="//about:blank",i.iframeEl=null);const n=i.contentEl,a=i.placeholderEl;if("inline"===i.type&&n&&a)n.classList.remove("fancybox__content"),"none"!==n.style.display&&(n.style.display="none"),a.parentNode&&a.parentNode.insertBefore(n,a),a.remove(),i.contentEl=void 0,i.placeholderEl=void 0;else for(;i.el&&i.el.firstChild;)i.el.removeChild(i.el.firstChild)}onSelectSlide(e,t,i){i.state===xi.Ready&&this.playVideo()}onUnselectSlide(e,t,i){var s,n;if("html5video"===i.type){try{null===(n=null===(s=i.el)||void 0===s?void 0:s.querySelector("video"))||void 0===n||n.pause()}catch(e){}return}let a;"vimeo"===i.type?a={method:"pause",value:"true"}:"youtube"===i.type&&(a={event:"command",func:"pauseVideo"}),a&&i.iframeEl&&i.iframeEl.contentWindow&&i.iframeEl.contentWindow.postMessage(JSON.stringify(a),"*"),i.poller&&clearTimeout(i.poller)}onDone(e,t){e.isCurrentSlide(t)&&!e.isClosing()&&this.playVideo()}onRefresh(e,t){t.slides.forEach(e=>{e.el&&(this.setAspectRatio(e),this.resizeIframe(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,s=new XMLHttpRequest;i.showLoading(e),s.onreadystatechange=function(){s.readyState===XMLHttpRequest.DONE&&i.state===wi.Ready&&(i.hideLoading(e),200===s.status?i.setContent(e,s.responseText):i.setError(e,404===s.status?"{{AJAX_NOT_FOUND}}":"{{AJAX_FORBIDDEN}}"))};const n=e.ajax||null;s.open(n?"POST":"GET",t+""),s.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),s.setRequestHeader("X-Requested-With","XMLHttpRequest"),s.send(n),e.xhr=s}setInlineContent(e){let t=null;if(Xt(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 s=t.getAttribute("id");s=s?s+"--clone":`clone-${this.instance.id}-${e.index}`,t.setAttribute("id",s)}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;const s=this.instance,n=document.createElement("iframe");n.className="fancybox__iframe",n.setAttribute("id",`fancybox__iframe_${s.id}_${e.index}`);for(const[t,i]of Object.entries(this.optionFor(e,"iframeAttr")||{}))n.setAttribute(t,i);n.onerror=()=>{s.setError(e,"{{IFRAME_ERROR}}")},e.iframeEl=n;const a=this.optionFor(e,"preload");if(i.classList.add("is-loading"),"iframe"!==e.type||!1===a)return n.setAttribute("src",e.src+""),this.resizeIframe(e),void s.setContent(e,n);s.showLoading(e),n.onload=()=>
1{if(!n.src.length)return;const t="true"!==n.dataset.ready;n.dataset.ready="true",this.resizeIframe(e),t?s.revealContent(e):s.hideLoading(e)},n.setAttribute("src",t),s.setContent(e,n,!1)}resizeIframe(e){const t=e.iframeEl,i=null==t?void 0:t.parentElement;if(!t||!i)return;let s=e.autoSize,n=e.width||0,a=e.height||0;n&&a&&(s=!1);const o=i&&i.style;if(!1!==e.preload&&!1!==s&&o)try{const e=window.getComputedStyle(i),s=parseFloat(e.paddingLeft)+parseFloat(e.paddingRight),r=parseFloat(e.paddingTop)+parseFloat(e.paddingBottom),l=t.contentWindow;if(l){const e=l.document,t=e.getElementsByTagName("html")[0],i=e.body;o.width="",i.style.overflow="hidden",n=n||t.scrollWidth+s,o.width=n+"px",i.style.overflow="",o.flex="0 0 auto",o.height=i.scrollHeight+"px",a=t.scrollHeight+r}}catch(e){}if(n||a){const e={flex:"0 1 auto",width:"",height:""};n&&(e.width=n+"px"),a&&(e.height=a+"px"),Object.assign(o,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("html5video"===e.type)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("youtube"!==e.type&&"vimeo"!==e.type)return;const i=()=>{if(e.iframeEl&&e.iframeEl.contentWindow){let t;if("true"===e.iframeEl.dataset.ready)return t="youtube"===e.type?{event:"command",func:"playVideo"}:{method:"play",value:"true"},t&&e.iframeEl.contentWindow.postMessage(JSON.stringify(t),"*"),void(e.poller=void 0);"youtube"===e.type&&(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="html",e.src=e.html,void(e.html="");const t=this.instance.optionFor(e,"src","");if(!t||"string"!=typeof t)return;let i=e.type,s=null;if(s=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,"youtube"),{nocookie:a}=n,o=function(e,t){var i={};for(var s in e)Object.prototype.hasOwnProperty.call(e,s)&&t.indexOf(s)<0&&(i[s]=e[s]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(s=Object.getOwnPropertySymbols(e);n<s.length;n++)t.indexOf(s[n])<0&&Object.prototype.propertyIsEnumerable.call(e,s[n])&&(i[s[n]]=e[s[n]])}return i}(n,["nocookie"]),r=`www.youtube${a?"-nocookie":""}.com`,l=Mi(t,o),c=encodeURIComponent(s[2]);e.videoId=c,e.src=`https://${r}/embed/${c}?${l}`,e.thumbSrc=e.thumbSrc||`https://i.ytimg.com/vi/${c}/mqdefault.jpg`,i="youtube"}else if(s=t.match(/^.+vimeo.com\/(?:\/)?([\d]+)((\/|\?h=)([a-z0-9]+))?(.*)?/)){const n=Mi(t,this.optionFor(e,"vimeo")),a=encodeURIComponent(s[1]),o=s[4]||"";e.videoId=a,e.src=`https://player.vimeo.com/video/${a}?${o?`h=${o}${n?"&":""}`:""}${n}`,i="vimeo"}if(!i&&e.triggerEl){const t=e.triggerEl.dataset.type;Pi.includes(t)&&(i=t)}i||"string"==typeof t&&("#"===t.charAt(0)?i="inline":(s=t.match(/\.(mp4|mov|ogv|webm)((\?|#).*)?$/i))?(i="html5video",e.videoFormat=e.videoFormat||"video/"+("ogv"===s[1]?"ogg":s[1])):t.match(/(^data:image\/[a-z0-9+\/=]*,)|(\.(jp(e|g|eg)|gif|png|bmp|webp|svg|ico)((\?|#).*)?$)/i)?i="image":t.match(/\.(pdf)((\?|#).*)?$/i)?i="pdf":(s=t.match(/(?:maps\.)?google\.([a-z]{2,3}(?:\.[a-z]{2})?)\/(?:(?:(?:maps\/(?:place\/(?:.*)\/)?\@(.*),(\d+.?\d+?)z))|(?:\?ll=))(.*)?/i))?(e.src=`https://maps.google.${s[1]}/?ll=${(s[2]?s[2]+"&z="+Math.floor(parseFloat(s[3]))+(s[4]?s[4].replace(/^\//,"&"):""):s[4]+"").replace(/\?/,"&")}&output=${s[4]&&s[4].indexOf("layer=c")>0?"svembed":"embed"}`,i="map"):(s=t.match(/(?:maps\.)?google\.([a-z]{2,3}(?:\.[a-z]{2})?)\/(?:maps\/search\/)(.*)/i))&&(e.src=`https://maps.google.${s[1]}/maps?q=${s[2].replace("query=","q=").replace("api=1","")}&output=embed`,i="map")),i=i||this.instance.option("defaultType"),e.type=i,"image"===i&&(e.thumbSrc=e.thumbSrc||e.src)}setContent(e){const t=this.instance.optionFor(e,"src")||"";if(e&&e.type&&t){switch(e.type){case"html":this.instance.setContent(e,t);break;case"html5video":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"map":case"youtube":case"vimeo":e.preload=!1;case"iframe":this.setIframeContent(e)}this.setAspectRatio(e)}}setAspectRatio(e){var t;const i=e.contentEl,s=this.optionFor(e,"videoRatio"),n=null===(t=e.el)||void 0===t?void 0:t.getBoundingClientRect();if(!(i&&n&&s&&1!==s&&e.type&&["video","youtube","vimeo","html5video"].includes(e.type)))return;const a=n.width,o=n.height;i.style.aspectRatio=s+"",i.style.width=a/o>s?"auto":"",i.style.height=a/o>s?"":"auto"}attach(){const e=this,t=e.instance;t.on("Carousel.initSlide",e.onInitSlide),t.on("Carousel.createSlide",e.onCreateSlide),t.on("Carousel.removeSlide",e.onRemoveSlide),t.on("Carousel.selectSlide",e.onSelectSlide),t.on("Carousel.unselectSlide",e.onUnselectSlide),t.on("Carousel.Panzoom.refresh",e.onRefresh),t.on("done",e.onDone),window.addEventListener("message",e.onMessage)}detach(){const e=this,t=e.instance;t.off("Carousel.initSlide",e.onInitSlide),t.off("Carousel.createSlide",e.onCreateSlide),t.off("Carousel.removeSlide",e.onRemoveSlide),t.off("Carousel.selectSlide",e.onSelectSlide),t.off("Carousel.unselectSlide",e.onUnselectSlide),t.off("Carousel.Panzoom.refresh",e.onRefresh),t.off("done",e.onDone),window.removeEventListener("message",e.onMessage)}}Object.defineProperty(Oi,"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 ki="play",zi="pause",Li="ready";class Ai extends oi{constructor(){super(...arguments),Object.defineProperty(this,"state",{enumerable:!0,configurable:!0,writable:!0,value:Li}),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!==Li}onReady(e){this.option("autoStart")&&(e.isInfinite||e.page<e.pages.length-1)&&this.start()}onChange(){var e;(null===(e=this.instance.panzoom)||void 0===e?void 0:e.isResting)||(this.removeProgressBar(),this.pause())}onSettle(){this.resume()}onVisibilityChange(){"visible"===document.visibilityState?this.resume():this.pause()}onMouseEnter(){this.inHover=!0,this.pause()}onMouseLeave(){var e;this.inHover=!1,(null===(e=this.instance.panzoom)||void 0===e?void 0:e.isResting)&&this.resume()}onTimerEnd(){const e=this.instance;"play"===this.state&&(e.isInfinite||e.page!==e.pages.length-1?e.
vendor: 5,005 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 s=this.option("progressParentEl");if(s||(s=(1===i.length?i[0].el:null)||t.viewport),!s)return null;const n=document.createElement("div");return qt(n,"f-progress"),s.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=ki,qt(t.container,"has-autoplay");let s=e.createProgressBar();s&&(s.style.transitionDuration=i+"ms",s.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!==Li){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=Li,i.removeEventListener("mouseenter",e.onMouseEnter,!1),i.removeEventListener("mouseleave",e.onMouseLeave,!1),document.removeEventListener("visibilitychange",e.onVisibilityChange,!1),Yt(i,"has-autoplay"),t!==Li&&e.emit("stop")}pause(){const e=this;e.state===ki&&(e.state=zi,e.clear(),e.emit(zi))}resume(){const e=this,t=e.instance;if(t.isInfinite||t.page!==t.pages.length-1)if(e.state!==ki){if(e.state===zi&&!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===ki||this.state===zi?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(Ai,"defaults",{enumerable:!0,configurable:!0,writable:!0,value:{autoStart:!0,pauseOnHover:!0,progressParentEl:null,showProgress:!0,timeout:3e3}});class $i extends oi{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=It({autoStart:!1},this.option("Autoplay")||{},{pauseOnHover:!1,timeout:this.option("timeout"),progressParentEl:()=>this.option("progressParentEl")||null,on:{start:()=>{e.emit("startSlideshow")},set:t=>{var s;i.classList.add("has-slideshow"),(null===(s=e.getSlide())||void 0===s?void 0:s.state)!==xi.Ready&&t.pause()},stop:()=>{i.classList.remove("has-slideshow"),e.isCompact||e.endIdle(),e.emit("endSlideshow")},resume:(t,i)=>{var s,n,a;!i||!i.cancelable||(null===(s=e.getSlide())||void 0===s?void 0:s.state)===xi.Ready&&(null===(a=null===(n=e.carousel)||void 0===n?void 0:n.panzoom)||void 0===a?void 0:a.isResting)||i.preventDefault()}}}),t.attachPlugins({Autoplay:Ai}),this.ref=t.plugins.Autoplay)}onReady(e){const t=e.carousel,i=this.ref;t&&i&&this.option("playOnStart")&&(t.isInfinite||t.page<t.pages.length-1)&&i.start()}onDone(e,t){const i=this.ref;if(!i)return;const s=t.panzoom;s&&s.on("startAnimation",()=>{e.isCurrentSlide(t)&&i.stop()}),e.isCurrentSlide(t)&&i.resume()}onKeydown(e,t){var i;const s=this.ref;s&&t===this.option("key")&&"BUTTON"!==(null===(i=document.activeElement)||void 0===i?void 0:i.nodeName)&&s.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($i,"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 Ii={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 Ri;!function(e){e[e.Init=0]="Init",e[e.Ready=1]="Ready",e[e.Hidden=2]="Hidden",e[e.Disabled=3]="Disabled"}
1(Ri||(Ri={}));let Di=class extends oi{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,"panzoom",{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,"shouldCenter",{enumerable:!0,configurable:!0,writable:!0,value:!0}),Object.defineProperty(this,"state",{enumerable:!0,configurable:!0,writable:!0,value:Ri.Init})}formatThumb(e,t){return this.instance.localize(t,[["%i",e.index],["%d",e.index+1],["%s",e.thumbSrc||"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7"]])}getSlides(){const e=[],t=this.option("thumbTpl")||"";if(t)for(const i of this.instance.slides||[]){let s="";i.type&&(s="for-"+i.type,i.type&&["video","youtube","vimeo","html5video"].includes(i.type)&&(s+=" for-video")),e.push({html:this.formatThumb(i,t),customClass:s})}return e}onInitSlide(e,t){const i=t.el;i&&(t.thumbSrc=i.dataset.thumbSrc||t.thumbSrc||"",t.thumbClipWidth=parseFloat(i.dataset.thumbClipWidth||"")||t.thumbClipWidth||0,t.thumbHeight=parseFloat(i.dataset.thumbHeight||"")||t.thumbHeight||0)}onInitSlides(){this.state===Ri.Init&&this.build()}onRefreshM(){this.refreshModern()}onChangeM(){"modern"===this.type&&(this.shouldCenter=!0,this.centerModern())}onClickModern(e){e.preventDefault(),e.stopPropagation();const t=this.instance,i=t.page,s=e=>{if(e){const t=e.closest("[data-carousel-index]");if(t)return parseInt(t.dataset.carouselIndex||"",10)||0}return-1},n=(e,t)=>{const i=document.elementFromPoint(e,t);return i?s(i):-1};let a=s(e.target);a<0&&(a=n(e.clientX+this.thumbGap,e.clientY),a===i&&(a=i-1)),a<0&&(a=n(e.clientX-this.thumbGap,e.clientY),a===i&&(a=i+1)),a<0&&(a=(t=>{let s=n(e.clientX-t,e.clientY),o=n(e.clientX+t,e.clientY);return a<0&&s===i&&(a=i+1),a<0&&o===i&&(a=i-1),a})(this.thumbExtraGap)),a===i?this.centerModern():a>-1&&a<t.pages.length&&t.slideTo(a)}onTransformM(){if("modern"!==this.type)return;const{instance:e,container:t,track:i}=this,s=e.panzoom;if(!(t&&i&&s&&this.panzoom))return;Pt(t,this.cn("isResting"),s.state!==Ft.Init&&s.isResting);const n=this.thumbGap,a=this.thumbExtraGap,o=this.thumbClipWidth;let r=0,l=0,c=0;for(const t of e.slides){let i=t.index,s=t.thumbSlideEl;if(!s)continue;Pt(s,this.cn("isSelected"),i===e.page),l=1-Math.abs(e.getProgress(i)),s.style.setProperty("--progress",l?l+"":"");const d=.5*((t.thumbWidth||0)-o);r+=n,r+=d,l&&(r-=l*(d+a)),s.style.setProperty("--shift",r-n+""),r+=d,l&&(r-=l*(d+a)),r-=n,0===i&&(c=a*l)}i&&(i.style.setProperty("--left",c+""),i.style.setProperty("--width",r+c+n+a*l+"")),this.shouldCenter&&this.centerModern()}buildClassic(){const{container:e,track:t}=this,i=this.getSlides();if(!e||!t||!i)return;const s=new this.instance.constructor(e,It({track:t,infinite:!1,center:!0,fill:!0,dragFree:!0,slidesPerPage:1,transition:!1,Dots:!1,Navigation:!1,classes:{container:"f-thumbs",viewport:"f-thumbs__viewport",track:"f-thumbs__track",slide:"f-thumbs__slide"}},this.option("Carousel")||{},{Sync:{target:this.instance},slides:i}));this.carousel=s,this.track=t,s.on("ready",()=>{this.emit("ready")}),s.on("createSlide",(e,t)=>{this.emit("createSlide",t,t.el)})}buildModern(){if("modern"!==this.type)return;const{container:e,track:t,instance:i}=this,s=this.option("thumbTpl")||"";if(!e||!t||!s)return;qt(e,"is-horizontal"),this.updateModern();for(const e of i.slides||[]){const i=document.createElement("div");if(qt(i,this.cn("slide")),e.type){let t="for-"+e.type;["video","youtube","vimeo","html5video"].includes(e.type)&&(t+=" for-video"),qt(i,t)}
1i.appendChild(Tt(this.formatThumb(e,s))),this.emit("createSlide",e,i),e.thumbSlideEl=i,t.appendChild(i),this.resizeModernSlide(e)}const n=new i.constructor.Panzoom(e,{content:t,lockAxis:"x",zoom:!1,panOnlyZoomed:!1,bounds:()=>{let e=0,t=0,s=i.slides[0],n=i.slides[i.slides.length-1],a=i.slides[i.page];return s&&n&&a&&(t=-1*this.getModernThumbPos(0),0!==i.page&&(t+=.5*(s.thumbWidth||0)),e=-1*this.getModernThumbPos(i.slides.length-1),i.page!==i.slides.length-1&&(e+=(n.thumbWidth||0)-(a.thumbWidth||0)-.5*(n.thumbWidth||0))),{x:{min:e,max:t},y:{min:0,max:0}}}});n.on("touchStart",(e,t)=>{this.shouldCenter=!1}),n.on("click",(e,t)=>this.onClickModern(t)),n.on("ready",()=>{this.centerModern(),this.emit("ready")}),n.on(["afterTransform","refresh"],e=>{this.lazyLoadModern()}),this.panzoom=n,this.refreshModern()}updateModern(){if("modern"!==this.type)return;const{container:e}=this;e&&(this.thumbGap=parseFloat(getComputedStyle(e).getPropertyValue("--f-thumb-gap"))||0,this.thumbExtraGap=parseFloat(getComputedStyle(e).getPropertyValue("--f-thumb-extra-gap"))||0,this.thumbWidth=parseFloat(getComputedStyle(e).getPropertyValue("--f-thumb-width"))||40,this.thumbClipWidth=parseFloat(getComputedStyle(e).getPropertyValue("--f-thumb-clip-width"))||40,this.thumbHeight=parseFloat(getComputedStyle(e).getPropertyValue("--f-thumb-height"))||40)}refreshModern(){var e;if("modern"===this.type){this.updateModern();for(const e of this.instance.slides||[])this.resizeModernSlide(e);this.onTransformM(),null===(e=this.panzoom)||void 0===e||e.updateMetrics(!0),this.centerModern(0)}}centerModern(e){const t=this.instance,{container:i,panzoom:s}=this;if(!i||!s||s.state===Ft.Init)return;const n=t.page;let a=this.getModernThumbPos(n),o=a;for(let e=t.page-3;e<t.page+3;e++){if(e<0||e>t.pages.length-1||e===t.page)continue;const i=1-Math.abs(t.getProgress(e));i>0&&i<1&&(o+=i*(this.getModernThumbPos(e)-a))}let r=100;void 0===e&&(e=.2,t.inTransition.size>0&&(e=.12),Math.abs(-1*s.current.e-o)>s.containerRect.width&&(e=.5,r=0)),s.options.maxVelocity=r,s.applyChange({panX:Et(-1*o-s.target.e,1e3),friction:null===t.prevPage?0:e})}lazyLoadModern(){const{instance:e,panzoom:t}=this;if(!t)return;const i=-1*t.current.e||0;let s=this.getModernThumbPos(e.page);if(t.state!==Ft.Init||0===s)for(const s of e.slides||[]){const e=s.thumbSlideEl;if(!e)continue;const n=e.querySelector("img[data-lazy-src]"),a=s.index,o=this.getModernThumbPos(a),r=i-.5*t.containerRect.innerWidth,l=r+t.containerRect.innerWidth;if(!n||o<r||o>l)continue;let c=n.dataset.lazySrc;if(!c||!c.length)continue;if(delete n.dataset.lazySrc,n.src=c,n.complete)continue;qt(e,this.cn("isLoading"));const d=Tt(Wt);e.appendChild(d),n.addEventListener("load",()=>{e.offsetParent&&(e.classList.remove(this.cn("isLoading")),d.remove())},!1)}}resizeModernSlide(e){if("modern"!==this.type)return;if(!e.thumbSlideEl)return;
1const t=e.thumbClipWidth&&e.thumbHeight?Math.round(this.thumbHeight*(e.thumbClipWidth/e.thumbHeight)):this.thumbWidth;e.thumbWidth=t}getModernThumbPos(e){const t=this.instance.slides[e],i=this.panzoom;if(!i||!i.contentRect.fitWidth)return 0;let s=i.containerRect.innerWidth,n=i.contentRect.width;2===this.instance.slides.length&&(e-=1,n=2*this.thumbClipWidth);let a=e*(this.thumbClipWidth+this.thumbGap)+this.thumbExtraGap+.5*(t.thumbWidth||0);return a-=n>s?.5*s:.5*n,Et(a||0,1)}build(){const e=this.instance,t=e.container,i=this.option("minCount")||0;if(i){let t=0;for(const i of e.slides||[])i.thumbSrc&&t++;if(t<i)return this.cleanup(),void(this.state=Ri.Disabled)}const s=this.option("type");if(["modern","classic"].indexOf(s)<0)return void(this.state=Ri.Disabled);this.type=s;const n=document.createElement("div");qt(n,this.cn("container")),qt(n,"is-"+s);const a=this.option("parentEl");a?a.appendChild(n):t.after(n),this.container=n,qt(t,this.cn("hasThumbs"));const o=document.createElement("div");qt(o,this.cn("track")),n.appendChild(o),this.track=o,"classic"===s?this.buildClassic():this.buildModern(),this.state=Ri.Ready,n.addEventListener("click",t=>{setTimeout(()=>{var t;null===(t=null==n?void 0:n.querySelector(`[data-carousel-index="${e.page}"]`))||void 0===t||t.focus()},100)})}cleanup(){this.carousel&&this.carousel.destroy(),this.carousel=null,this.panzoom&&this.panzoom.destroy(),this.panzoom=null,this.container&&this.container.remove(),this.container=null,this.track=null,this.state=Ri.Init,Yt(this.instance.container,this.cn("hasThumbs"))}attach(){const e=this,t=e.instance;t.on("initSlide",e.onInitSlide),t.state===si.Init?t.on("initSlides",e.onInitSlides):e.onInitSlides(),t.on("Panzoom.afterTransform",e.onTransformM),t.on("Panzoom.refresh",e.onRefreshM),t.on("change",e.onChangeM)}detach(){const e=this,t=e.instance;t.off("initSlide",e.onInitSlide),t.off("initSlides",e.onInitSlides),t.off("Panzoom.afterTransform",e.onTransformM),t.off("Panzoom.refresh",e.onRefreshM),t.off("change",e.onChangeM),e.cleanup()}};Object.defineProperty(Di,"defaults",{enumerable:!0,configurable:!0,writable:!0,value:Ii});const ji=Object.assign(Object.assign({},Ii),{key:"t",showOnStart:!0,parentEl:null}),Fi="is-masked",Ni="aria-hidden";class Hi extends oi{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.state!==Ri.Disabled}get isHidden(){return this.hidden}onInit(){var e;const t=this,i=t.instance,s=i.carousel;if(t.ref||!s)return;const n=t.option("parentEl")||i.footer||i.container;if(!n)return;const a=It({},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()}))}}});a.Carousel=a.Carousel||{},a.Carousel.on=It((null===(e=t.options.Carousel)||void 0===e?void 0:e.on)||{},{click:(e,t)=>{t.stopPropagation()}}),s.options.Thumbs=a,s.attachPlugins({Thumbs:Di}),t.ref=s.plugins.Thumbs,t.option("showOnStart")||(t.ref.state=Ri.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;e&&e.state!==Ri.Disabled&&(e.state!==Ri.Hidden?this.hidden?this.show():this.hide():e.build())}show(){const e=this.ref,t=e&&e.state!==Ri.Disabled&&e.container;t&&(this.refresh(),t.offsetHeight,t.removeAttribute(Ni),t.classList.remove(Fi),this.hidden=!1)}hide(){const e=this.ref,t=e&&e.container;t&&(this.refresh(),t.offsetHeight,t.classList.add(Fi),t.setAttribute(Ni,"true")),this.hidden=!0}refresh(){const e=this.ref;if(!e||e.state===Ri.Disabled)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===wi.Init?t.on("Carousel.init",e.onInit):e.onInit(),t.on("resize",e.onResize),t.on("key
1down",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(Hi,"defaults",{enumerable:!0,configurable:!0,writable:!0,value:ji});const Bi={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 _i;!function(e){e[e.Init=0]="Init",e[e.Ready=1]="Ready",e[e.Disabled=2]="Disabled"}(_i||(_i={}));const Wi={tabindex:"-1",width:"24",height:"24",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"};class Xi extends oi{constructor(){super(...arguments),Object.defineProperty(this,"state",{enumerable:!0,configurable:!0,writable:!0,value:_i.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"),s=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 a=0;const o={left:[],middle:[],right:[]};if(i)for(const e of["left","middle","right"])for(const s of i[e]){const i=this.createEl(s);i&&(null===(t=o[e])||void 0===t||t.push(i),a++)}let r=null;if(a&&(r=this.createContainer()),r){for(const[e,t]of Object.entries(o)){const i=document.createElement("div");qt(i,"fancybox__toolbar__column is-"+e);for(const e of t)i.appendChild(e);"auto"!==s||"middle"!==e||t.length||(s=!0),r.appendChild(i)}!0===s&&qt(r,"is-absolute"),this.state=_i.Ready,this.onRefresh()}else this.state=_i.Disabled}onClick(e){var t,i;const s=this.instance,n=s.getSlide(),a=null==n?void 0:n.panzoom,o=e.target,r=o&&Xt(o)?o.dataset:null;if(!r)return;if(void 0!==r.fancyboxToggleThumbs)return e.preventDefault(),e.stopPropagation(),void(null===(t=s.plugins.Thumbs
vendor: 4,866 bytes, line 1
1)||void 0===t||t.toggle());if(void 0!==r.fancyboxToggleFullscreen)return e.preventDefault(),e.stopPropagation(),void this.instance.toggleFullscreen();if(void 0!==r.fancyboxToggleSlideshow){e.preventDefault(),e.stopPropagation();const t=null===(i=s.carousel)||void 0===i?void 0:i.plugins.Autoplay;let n=t.isActive;return a&&"mousemove"===a.panMode&&!n&&a.reset(),void(n?t.stop():t.start())}const l=r.panzoomAction,c=r.panzoomChange;if((c||l)&&(e.preventDefault(),e.stopPropagation()),c){let t={};try{t=JSON.parse(c)}catch(e){}a&&a.applyChange(t)}else l&&a&&a[l]&&a[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!==xi.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 s=i&&i.canZoomIn(),n=i&&i.canZoomOut();for(const t of e.querySelectorAll('[data-panzoom-action="zoomIn"]'))s?(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||s?(t.removeAttribute("disabled"),t.removeAttribute("tabindex")):(t.setAttribute("disabled",""),t.setAttribute("tabindex","-1"));const e=t.querySelector("g");e&&(e.style.display=s?"":"none")}}onDone(e,t){var i;null===(i=t.panzoom)||void 0===i||i.on("afterTransform",()=>{this.instance.isCurrentSlide(t)&&this.onRefresh()}),this.instance.isCurrentSlide(t)&&this.onRefresh()}createContainer(){const e=this.instance.container;if(!e)return null;const t=this.option("parentEl")||e,i=document.createElement("div");return qt(i,"fancybox__toolbar"),t.prepend(i),i.addEventListener("click",this.onClick,{passive:!1,capture:!0}),e&&qt(e,"has-toolbar"),this.container=i,i}createEl(e){const t=this.instance,i=t.carousel;if(!i)return null;if("toggleFS"===e)return null;if("fullscreen"===e&&!t.fsAPI)return null;let s=null;const n=i.slides.length||0;let a=0,o=0;for(const e of i.slides)(e.panzoom||"image"===e.type)&&a++,("image"===e.type||e.downloadSrc)&&o++;if(n<2&&["infobar","prev","next"].includes(e))return s;if(void 0!==Bi[e]&&!a)return null;if("download"===e&&!o)return null;if("thumbs"===e){const e=t.plugins.Thumbs;if(!e||!e.isEnabled)return null}if("slideshow"===e&&(!i.plugins.Autoplay||n<2))return null;if(void 0!==Bi[e]){const t=Bi[e];s=document.createElement("button"),s.setAttribute("title",this.instance.localize(`{{${e.toUpperCase()}}}`)),qt(s,"f-button"),t.action&&(s.dataset.panzoomAction=t.action),t.change&&(s.dataset.panzoomChange=JSON.stringify(t.change)),s.appendChild(Tt(this.instance.localize(t.icon)))}else{const t=(this.option("items")||[])[e];t&&(s=Tt(this.instance.localize(t.tpl)),"function"==typeof t.click&&s.addEventListener("click",e=>{e.preventDefault(),e.stopPropagation(),"function"==typeof t.click&&t.click.call(this,this,e)}))}const r=null==s?void 0:s.querySelector("svg");if(r)for(const[e,t]of Object.entries(Wi))r.getAttribute(e)||r.setAttribute(e,String(t));return s}removeContainer(){const e=this.container;e&&e.remove(),this.container=null,this.state=_i.Disabled;const t=this.instance.container;t&&Yt(t,"has-toolbar")}attach(){const e=this,t=e.instance;t.on("Carousel.initSlides",e.onReady),t.on("done",e.onDone),t.on("reveal",e.onChange),t.on("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",e.onChange),t.off("Carousel.change",e.onChange),e.removeContainer()}}Object.defineProperty(Xi,"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 Yi={Hash:Si,Html:Oi,Images:Ti,Slideshow:$i,Thumbs:Hi,Toolbar:Xi},qi="with-fancybox",Gi="hide-scrollbar",Vi="--fancybox-scrollbar-compensate",Ui="--fancybox-body-margin",Zi="is-animated",Ki="is-compact",Ji="is-loading",Qi=function(){var e=window.getSelection();return e&&"Range"===e.type};let es=null,ts=null;const is=new Map;let ss=0;class ns extends jt{get isIdle(){return this.idle}get isCompact(){return this.option("compact")}constructor(e=[],t={},i={}){super(t),Object.defineProperty(this,"userSlides",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(this,"userPlugins",{enumerable:!0,configurable:!0,writable:!0,value:{}}),Object.defineProperty(this,"idle",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"idleTimer",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"clickTimer",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"pwt",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"ignoreFocusChange",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"state",{enumerable:!0,configurable:!0,writable:!0,value:wi.Init}),Object.defineProperty(this,"id",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"container",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"footer",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"caption",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"carousel",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"lastFocus",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"prevMouseMoveEvent",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"fsAPI",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.fsAPI=(()=>{let e,t="",i="",s="";return document.fullscreenEnabled?(t="requestFullscreen",i="exitFullscreen",s="fullscreenElement"):document.webkitFullscreenEnabled&&(t="webkitRequestFullscreen",i="webkitExitFullscreen",s="webkitFullscreenElement"),t&&(e={request:function(e){return"webkitRequestFullscreen"===t?e[t](Element.ALLOW_KEYBOARD_INPUT):e[t]()},exit:function(){return document[s]&&document[i]()},isFullscreen:function(){return document[s]}}),e})(),this.id=t.id||++ss,is.set(this.id,this),this.userSlides=e,this.userPlugins=i,queueMicrotask(()=>{this.init()})}init(){if(this.state===wi.Destroy)return;this.state=wi.Init,this.attachPlugins(Object.assign(Object.assign({},ns.Plugins),this.userPlugins)),this.emit("init"),!0===this.option("hideScrollbar")&&(()=>{if(!mi)return;const e=document.body;if(e.classList.contains(Gi))return;let t=window.innerWidth-document.documentElement.getBoundingClientRect().width;t<0&&(t=0);const i=e.currentStyle||window.getComputedStyle(e),s=parseFloat(i.marginRight);document.documentElement.style.setProperty(Vi,t+"px"),s&&e.style.setProperty(Ui,s+"px"),e.classList.add(Gi)})(),this.initLayout(),this.scale();const e=()=>{this.initCarousel(this.userSlides),this.state=wi.Ready,this.attachEvents(),this.emit
1("ready"),setTimeout(()=>{this.container&&this.container.setAttribute("aria-hidden","false")},16)},t=this.fsAPI;this.option("Fullscreen.autoStart")&&t&&!t.isFullscreen()?t.request(this.container).then(()=>e()).catch(()=>e()):e()}initLayout(){var e,t;const i=this.option("parentEl")||document.body,s=Tt(this.localize(this.option("tpl.main")||""));s&&(s.setAttribute("id","fancybox-"+this.id),s.setAttribute("aria-label",this.localize("{{MODAL}}")),s.classList.toggle(Ki,this.isCompact),qt(s,this.option("mainClass")||""),this.container=s,this.footer=s.querySelector(".fancybox__footer"),i.appendChild(s),qt(document.documentElement,qi),es&&ts||(es=document.createElement("span"),qt(es,"fancybox-focus-guard"),es.setAttribute("tabindex","0"),es.setAttribute("aria-hidden","true"),es.setAttribute("aria-label","Focus guard"),ts=es.cloneNode(),null===(e=s.parentElement)||void 0===e||e.insertBefore(es,s),null===(t=s.parentElement)||void 0===t||t.append(ts)),this.option("animated")&&(qt(s,Zi),setTimeout(()=>{this.isClosing()||Yt(s,Zi)},350)),this.emit("initLayout"))}initCarousel(e){const t=this.container;if(!t)return;const i=t.querySelector(".fancybox__carousel");if(!i)return;const s=this.carousel=new pi(i,It({},{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")||{}));s.on("*",(e,t,...i)=>{this.emit("Carousel."+t,e,...i)}),s.on(["ready","change"],()=>{var e;const t=this.getSlide();t&&(null===(e=t.panzoom)||void 0===e||e.updateControls()),this.manageCaption(t)}),this.on("Carousel.removeSlide",(e,t,i)=>{i.contentEl&&(i.contentEl.remove(),i.contentEl=void 0);const s=i.el;s&&(Yt(s,"has-error"),Yt(s,"has-unknown"),Yt(s,"has-"+(i.type||"unknown"))),i.closeBtnEl&&i.closeBtnEl.remove(),i.closeBtnEl=void 0,i.captionEl&&i.captionEl.remove(),i.captionEl=void 0,i.spinnerEl&&i.spinnerEl.remove(),i.spinnerEl=void 0,i.state=void 0}),s.on("Panzoom.touchStart",()=>{this.isCompact||this.endIdle()}),s.on("settle",()=>{this.idleTimer||this.isCompact||!this.option("idle")||this.setIdle(),this.option("autoFocus")&&this.checkFocus()}),this.option("dragToClose")&&(s.on("Panzoom.afterTransform",(e,t)=>{const i=this.getSlide();if(i&&St(i.el))return;const s=this.container;if(s){const e=Math.abs(t.current.f),i=e<1?"":Math.max(.5,Math.min(1,1-e/t.contentRect.fitHeight*1.5));s.style.setProperty("--fancybox-ts",i?"0s":""),s.style.setProperty("--fancybox-opacity",i+"")}}),s.on("Panzoom.touchEnd",(e,t,i)=>{var s;const n=this.getSlide();if(n&&St(n.el))return;if(t.isMobile&&document.activeElement&&-1!==["TEXTAREA","INPUT"].indexOf(null===(s=document.activeElement)||void 0===s?void 0:s.nodeName))return;const a=Math.abs(t.dragOffset.y);"y"===t.lockedAxis&&(a>=200||a>=50&&t.dragOffset.time<300)&&(i&&i.cancelable&&i.preventDefault(),this.close(i,"f-throwOut"+(t.current.f<0?"Up":"Down")))})),s.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)}}),s.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("disabled"),i.removeAttribute("tabindex")):(i.setAttribute("disabled",""),i.setAttribute("tabindex","-1"));for(const i of t.querySelectorAll("[data-fancybox-prev]"))e.page>0?(i.removeAttribute("disabled"),i.removeAttribute("tabindex")):(i.setAttribute("disabled",""),i.setAttribute("tabindex","-1"))}const i=this.getSlide();if(!i)return;let s=i.downloadSrc||"";s||"image"!==i.type||i.error||"string"!=typeof i.src||(s=i.src);const n="disabled",a="tabindex",o="download",r="href";for(const e of t.querySelectorAll("[data-fancybox-download]")){const t=i.downloadFilename;s?(e.removeAttribute(n),e.removeAttribute(a),e.setAttribute(r,s),e.setAttribute(o,t||s),e.setAttribute("target","_blank")):(e.setAttribute(n,""),e.setAttribute(a,"-1"),e.removeAttribute(r),e.removeAttribute(o))}}
1),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 s="",n="",a="";if(t&&i>1){let e=t.offsetLeft+"px",o=t.offsetTop+"px";s=t.width*i+"px",n=t.height*i+"px",a=`translate3d(${e}, ${o}, 0) scale(${1/i})`}e.style.transform=a,e.style.width=s,e.style.height=n}onClick(e){var t,i;const{container:s,isCompact:n}=this;if(!s||this.isClosing())return;!n&&this.option("idle")&&this.resetIdle();const a=document.activeElement;if(Qi()&&a&&s.contains(a))return;const o=e.composedPath()[0];if(o===(null===(t=this.carousel)||void 0===t?void 0:t.container))return;if(o.closest(".f-spinner")||o.closest("[data-fancybox-close]"))return e.preventDefault(),void this.close(e);if(o.closest("[data-fancybox-prev]"))return e.preventDefault(),void this.prev();if(o.closest("[data-fancybox-next]"))return e.preventDefault(),void this.next();if(n&&"image"===(null===(i=this.getSlide())||void 0===i?void 0:i.type))return void(this.clickTimer?(clearTimeout(this.clickTimer),this.clickTimer=null):this.clickTimer=setTimeout(()=>{this.toggleIdle(),this.clickTimer=null},350));if(this.emit("click",e),e.defaultPrevented)return;let r=!1;if(o.closest(".fancybox__content")){if(a){if(a.closest("[contenteditable]"))return;o.matches(vi)||a.blur()}if(Qi())return;r=this.option("contentClick")}else o.closest(".fancybox__carousel")&&!o.matches(vi)&&(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){var t;let i=this.option("wheel",e);(null===(t=e.target)||void 0===t?void 0:t.closest(".fancybox__thumbs"))&&(i="slide");const s="slide"===i,n=[-e.deltaX||0,-e.deltaY||0,-e.detail||0].reduce((function(e,t){return Math.abs(t)>Math.abs(e)?t:e})),a=Math.max(-1,Math.min(1,n)),o=Date.now();this.pwt&&o-this.pwt<300?s&&e.preventDefault():(this.pwt=o,this.emit("wheel",e),e.defaultPrevented||("close"===i?(e.preventDefault(),this.close(e)):"slide"===i&&(e.preventDefault(),this[a>0?"prev":"next"]())))}onKeydown(e){if(!this.isTopmost())return;this.isCompact||!this.option("idle")||this.isClosing()||this.resetIdle();const t=e.key,i=this.option("keyboard");if(!i||e.ctrlKey||e.altKey||e.shiftKey)return;const s=e.composedPath()[0],n=document.activeElement&&document.activeElement.classList,a=n&&n.contains("f-button")||s.dataset.carouselPage||s.dataset.carouselIndex;if("Escape"!==t&&!a&&Xt(s)&&(s.isContentEditable||-1!==["TEXTAREA","OPTION","INPUT","SELECT","VIDEO"].indexOf(s.nodeName)))return;this.emit("keydown",t,e);const o=i[t];"function"==typeof this[o]&&(e.preventDefault(),this[o]())}onResize(){const e=this.container;if(!e)return;const t=this.isCompact;e.classList.toggle("is-compact",t),this.manageCaption(this.getSlide()),this.isCompact?this.clearIdle():this.endIdle(),this.scale(),this.emit
vendor: 1,136 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===_i.Ready)return}if(!t)return;if(!e.contentEl||e.closeBtnEl)return;const i=this.option("tpl.closeButton");if(i){const t=Tt(this.localize(i));e.closeBtnEl=e.contentEl.appendChild(t),e.el&&qt(e.el,"has-close-btn")}}manageCaption(e){var t,i;const s="fancybox__caption",n="has-caption",a=this.container;if(!a)return;const o=this.isCompact||this.option("commonCaption"),r=!o;if(this.caption&&this.stop(this.caption),r&&this.caption&&(this.caption.remove(),this.caption=null),o&&!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,Yt(e.el,n),null===(i=e.el)||void 0===i||i.removeAttribute("aria-labelledby"));if(e||(e=this.getSlide()),!e||o&&!this.isCurrentSlide(e))return;const l=e.el;
1let c=this.optionFor(e,"caption","");if("string"!=typeof c||!c.length)return void(o&&this.caption&&this.animate(this.caption,"f-fadeOut",()=>{this.caption&&(this.caption.innerHTML="")}));let d=null;if(r){if(d=e.captionEl||null,l&&!d){const t=`fancybox__caption_${this.id}_${e.index}`;d=document.createElement("div"),qt(d,s),d.setAttribute("id",t),e.captionEl=l.appendChild(d),qt(l,n),l.setAttribute("aria-labelledby",t)}}else d=this.caption,d||(d=a.querySelector("."+s)),d||(d=document.createElement("div"),d.dataset.fancyboxCaption="",qt(d,s),d.innerHTML=c,(this.footer||a).prepend(d)),qt(a,n),this.caption=d;d&&(d.innerHTML=c)}checkFocus(e){var t;const i=document.activeElement||null;i&&(null===(t=this.container)||void 0===t?void 0:t.contains(i))||this.focus(e)}focus(e){var t;if(this.ignoreFocusChange)return;const i=document.activeElement||null,s=(null==e?void 0:e.target)||null,n=this.container,a=this.getSlide();if(!n||!(null===(t=this.carousel)||void 0===t?void 0:t.viewport))return;if(!e&&i&&n.contains(i))return;const o=a&&a.state===xi.Ready?a.el:null;if(!o||o.contains(i)||n===i)return;e&&e.cancelable&&e.preventDefault(),this.ignoreFocusChange=!0;const r=Array.from(n.querySelectorAll(vi));let l=[],c=null;for(let e of r){const t=!e.offsetParent||e.closest('[aria-hidden="true"]'),i=o&&o.contains(e),s=!this.carousel.viewport.contains(e);if(e===n||(i||s)&&!t){l.push(e);const t=e.dataset.origTabindex;void 0!==t&&t&&(e.tabIndex=parseFloat(t)),e.removeAttribute("data-orig-tabindex"),!e.hasAttribute("autoFocus")&&c||(c=e)}else{const t=void 0===e.dataset.origTabindex?e.getAttribute("tabindex")||"":e.dataset.origTabindex;t&&(e.dataset.origTabindex=t),e.tabIndex=-1}}let d=null;e?(!s||l.indexOf(s)<0)&&(d=c||n,l.length&&(i===ts?d=l[0]:this.lastFocus!==n&&i!==es||(d=l[l.length-1]))):d=a&&"image"===a.type?n:c||n,d&&bi(d),this.lastFocus=document.activeElement,this.ignoreFocusChange=!1}next(){const e=this.carousel;e&&e.pages.length>1&&e.slideNext()}prev(){const e=this.carousel;e&&e.pages.length>1&&e.slidePrev()}jumpTo(...e){this.carousel&&this.carousel.slideTo(...e)}isTopmost(){var e;return(null===(e=ns.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 s=n=>{n.target===e&&e.dataset.animationName&&(e.removeEventListener("animationend",s),delete e.dataset.animationName,i&&i(),Yt(e,t))};e.dataset.animationName=t,e.addEventListener("animationend",s),qt(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 s=e.el;if(!s)return;let n=null;if(Xt(t)?n=t:(n=Tt(t+""),Xt(n)||(n=document.createElement("div"),n.innerHTML=t+"")),["img","picture","iframe","video","audio"].includes(n.nodeName.toLowerCase())){const e=document.createElement("div");e.appendChild(n),n=e}Xt(n)&&e.filter&&!e.error&&(n=n.querySelector(e.filter)),n&&Xt(n)?(qt(n,"fancybox__content"),e.id&&n.setAttribute("id",e.id),"none"!==n.style.display&&"none"!==getComputedStyle(n).getPropertyValue("display")||(n.style.display=e.display||this.option("defaultDisplay")||"flex"),s.classList.add("has-"+(e.error?"error":e.type||"unknown")),s.prepend(n),e.contentEl=n,i&&this.revealContent(e),this.manageCloseBtn(e),this.manageCaption(e)):this.setError(e,"{{ELEMENT_NOT_FOUND}}")}revealContent(e,t){const i=e.el,s=e.contentEl;i&&s&&(this.emit("reveal",e),this.hideLoading(e),e.state=xi.Opening,(t=this.isOpeningSlide(e)?void 0===t?this.optionFor(e,"showClass"):t:"f-fadeIn")?this.animate(s,t,()=>{this.done(e)}):this.done(e))}done(e){this.isClosing()||(e.state=xi.Ready,this.emit("done",e),qt(e.el,"is-done"),this.isCurrentSlide(e)&&this.option("autoFocus")&&queueMicrotask(()=>{this.option("autoFocus")&&(this.option("autoFocus")?this.focus():this.checkFocus())}),this.isOpeningSlide(e)&&!this.isCompact&&this.option("idle")&&this.setIdle())}isCurrentSlide(e){const t=this.getSlide();return!(!e||!t)&&t.index===e.index}isOpeningSlide(e){var t,i;return null===(null===(t=this.carousel)||void 0===t?void 0:t.prevPage)&&e.index===(null===(i=this.getSlide())||void 0===i?void 0:i.index)}showLoading(e){e.state=xi.Loading;const t=e.el;
1t&&(qt(t,Ji),this.emit("loading",e),e.spinnerEl||setTimeout(()=>{if(!this.isClosing()&&!e.spinnerEl&&e.state===xi.Loading){let i=Tt(Wt);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():(Yt(t,Ji),i&&this.animate(i,"f-fadeOut",()=>{i.remove()}),e.state===xi.Loading&&(this.emit("loaded",e),e.state=xi.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 s=document.createElement("div");s.classList.add("fancybox-error"),s.innerHTML=this.localize(t||"<p>{{ERROR}}</p>"),this.setContent(e,s)}clearContent(e){var t;null===(t=this.carousel)||void 0===t||t.emit("removeSlide",e)}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 s=this.fsAPI,n=()=>{this.proceedClose(e,t)};s&&s.isFullscreen()?Promise.resolve(s.exit()).then(()=>n()):n()}clearIdle(){this.idleTimer&&clearTimeout(this.idleTimer),this.idleTimer=null}setIdle(e=!1){const t=()=>{this.clearIdle(),this.idle=!0,qt(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,Yt(this.container,"is-idle"),this.emit("endIdle"))}resetIdle(){this.endIdle(),this.setIdle()}toggleIdle(){this.idle?this.endIdle():this.setIdle(!0)}toggleFullscreen(){const e=this.fsAPI;e&&(e.isFullscreen()?e.exit():this.container&&e.request(this.container))}isClosing(){return[wi.Closing,wi.CustomClosing,wi.Destroy].includes(this.state)}proceedClose(e,t){var i,s;this.state=wi.Closing,this.clearIdle(),this.detachEvents();const n=this.container,a=this.carousel,o=this.getSlide(),r=o&&this.option("placeFocusBack")?o.triggerEl||this.option("triggerEl"):null;if(r&&(fi(r)?bi(r):r.focus()),n&&(qt(n,"is-closing"),n.setAttribute("aria-hidden","true"),this.option("animated")&&qt(n,Zi),n.style.pointerEvents="none"),a){a.clearTransitions(),null===(i=a.panzoom)||void 0===i||i.destroy(),null===(s=a.plugins.Navigation)||void 0===s||s.detach();for(const e of a.slides){e.state=xi.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)||a.emit("removeSlide",e)}}this.emit("close",e),this.state!==wi.CustomClosing?(void 0===t&&o&&(t=this.optionFor(o,"hideClass")),t&&o?(this.animate(o.contentEl,t,()=>{a&&a.emit("removeSlide",o)}),setTimeout(()=>{this.destroy()},500)):this.destroy()):setTimeout(()=>{this.destroy()},500)}destroy(){var e;if(this.state===wi.Destroy)return;this.state=wi.Destroy,null===(e=this.carousel)||void 0===e||e.destroy();const t=this.container;t&&t.remove(),is.delete(this.id);const i=ns.getInstance();i?i.focus():(es&&(es.remove(),es=null),ts&&(ts.remove(),ts=null),Yt(document.documentElement,qi),(()=>{if(!mi)return;const e=document,t=e.body;t.classList.remove(Gi),t.style.setProperty(Ui,""),e.documentElement.style.setProperty(Vi,"")})(),this.emit("destroy"))}static bind(e,t,i){if(!mi)return;let s,n="",a={};if(void 0===e?s=document.body:"string"==typeof e?(s=document.body,n=e,"object"==typeof t&&(a=t||{})):(s=e,"string"==typeof t&&(n=t),"object"==typeof i&&(a=i||{})),!s||!Xt(s))return;n=n||"[data-fancybox]";const o=ns.openers.get(s)||new Map;o.set(n,a),ns.openers.set(s,o),1===o.size&&s.addEventListener("click",ns.fromEvent)}static unbind(e,t){let i,s="";if("string"==typeof e?(i=document.body,s=e):(i=e,"string"==typeof t&&(s=t)),!i)return;const n=ns.openers.get(i);n&&s&&n.delete(s),s&&n||(ns.openers.delete(i),i.removeEventListener("click",ns.fromEvent))}static destroy(){let e;for(;e=ns.getInstance();)e.destroy();for(const e of ns.openers.keys())e.removeEventListener("click",ns.fromEvent);ns.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||"",s=document.querySelectorAll(`[data-fancybox="${e}"]`),n=parseInt(i.dataset.fancyboxIndex||"",10)||0;t=s[n]||t}if(!(t&&t instanceof Element))return;let s,n,a,o;if([...ns.openers].reverse().find(([e,i])=>!(!e.contains(t)||![...i].reverse().find(([i,r])=>{let l=t.closest(i);return!!l&&(s=e,n=i,a=l,o=r,!0)}))),!s||!n||!a)return;o=o||{},e.preventDefault(),t=a;let r=[],l=It({},yi,o);l.event=e,l.triggerEl=t,l.delegate=i;const c=l.groupAll,d=l.groupAttr,h=d&&t?t.getAttribute(""+d):"";if((!t||h||c)&&(r=[].slice.call(s.querySelectorAll(n))),t&&!c&&(r=h?r.filter(e=>e.getAttribute(""+d)===h):[t]),!r.length)return;const u=ns.getInstance();return u&&u.options.triggerEl&&r.indexOf(u.options.triggerEl)>-1?void 0:(t&&(l.startIndex=r.indexOf(t)),ns.fromNodes(r,l))}static fromSelector(e,t){let i=null,s="";if("string"==typeof e?(i=document.body,s=e):e instanceof HTMLElement&&"string"==typeof t&&(i=e,s=t),!i||!s)return!1;const n=ns.openers.get(i);if(!n)return!1;const a=n.get(s);return!!a&&ns.fromNodes(Array.from(i.querySelectorAll(s)),a)}
1static fromNodes(e,t){t=It({},yi,t||{});const i=[];for(const s of e){const e=s.dataset||{},n=e.src||s.getAttribute("href")||s.getAttribute("currentSrc")||s.getAttribute("src")||void 0;let a;const o=t.delegate;let r;o&&i.length===t.startIndex&&(a=o instanceof HTMLImageElement?o:o.querySelector("img:not([aria-hidden])")),a||(a=s instanceof HTMLImageElement?s:s.querySelector("img:not([aria-hidden])")),a&&(r=a.currentSrc||a.src||void 0,!r&&a.dataset&&(r=a.dataset.lazySrc||a.dataset.src||void 0));const l={src:n,triggerEl:s,thumbEl:a,thumbElSrc:r,thumbSrc:r};for(const t in e)l[t]=e[t]+"";i.push(l)}return new ns(i,t)}static getInstance(e){return e?is.get(e):Array.from(is.values()).reverse().find(e=>!e.isClosing()&&e)||null}static getSlide(){var e;return(null===(e=ns.getInstance())||void 0===e?void 0:e.getSlide())||null}static show(e=[],t={}){return new ns(e,t)}static next(){const e=ns.getInstance();e&&e.next()}static prev(){const e=ns.getInstance();e&&e.prev()}static close(e=!0,...t){if(e)for(const e of is.values())e.close(...t);else{const e=ns.getInstance();e&&e.close(...t)}}}Object.defineProperty(ns,"version",{enumerable:!0,configurable:!0,writable:!0,value:"5.0.20"}),Object.defineProperty(ns,"defaults",{enumerable:!0,configurable:!0,writable:!0,value:yi}),Object.defineProperty(ns,"Plugins",{enumerable:!0,configurable:!0,writable:!0,value:Yi}),Object.defineProperty(ns,"openers",{enumerable:!0,configurable:!0,writable:!0,value:new Map}),window.Swiper=q,window.ScrollSectionMatcher=Oe,window.ElementGroupSwitcher=ot,window.sal=xt,window.Fancybox=ns}});

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.