julienmonnerie/public/build/app.js
2022-12-19 15:18:38 +01:00

2 lines
No EOL
33 KiB
JavaScript

/*! For license information please see app.js.LICENSE.txt */
!function(){var t={770:function(){!function(t,n){"use strict";"function"!=typeof t.CustomEvent&&(t.CustomEvent=function(t,e){e=e||{bubbles:!1,cancelable:!1,detail:void 0};var i=n.createEvent("CustomEvent");return i.initCustomEvent(t,e.bubbles,e.cancelable,e.detail),i},t.CustomEvent.prototype=t.Event.prototype),n.addEventListener("touchstart",(function(t){if("true"===t.target.getAttribute("data-swipe-ignore"))return;a=t.target,u=Date.now(),e=t.touches[0].clientX,i=t.touches[0].clientY,r=0,o=0}),!1),n.addEventListener("touchmove",(function(t){if(!e||!i)return;var n=t.touches[0].clientX,u=t.touches[0].clientY;r=e-n,o=i-u}),!1),n.addEventListener("touchend",(function(t){if(a!==t.target)return;var c=parseInt(s(a,"data-swipe-threshold","20"),10),l=s(a,"data-swipe-unit","px"),f=parseInt(s(a,"data-swipe-timeout","500"),10),d=Date.now()-u,v="",p=t.changedTouches||t.touches||[];"vh"===l&&(c=Math.round(c/100*n.documentElement.clientHeight));"vw"===l&&(c=Math.round(c/100*n.documentElement.clientWidth));Math.abs(r)>Math.abs(o)?Math.abs(r)>c&&d<f&&(v=r>0?"swiped-left":"swiped-right"):Math.abs(o)>c&&d<f&&(v=o>0?"swiped-up":"swiped-down");if(""!==v){var h={dir:v.replace(/swiped-/,""),touchType:(p[0]||{}).touchType||"direct",xStart:parseInt(e,10),xEnd:parseInt((p[0]||{}).clientX||-1,10),yStart:parseInt(i,10),yEnd:parseInt((p[0]||{}).clientY||-1,10)};a.dispatchEvent(new CustomEvent("swiped",{bubbles:!0,cancelable:!0,detail:h})),a.dispatchEvent(new CustomEvent(v,{bubbles:!0,cancelable:!0,detail:h}))}e=null,i=null,u=null}),!1);var e=null,i=null,r=null,o=null,u=null,a=null;function s(t,e,i){for(;t&&t!==n.documentElement;){var r=t.getAttribute(e);if(r)return r;t=t.parentNode}return i}}(window,document)}},n={};function e(i){var r=n[i];if(void 0!==r)return r.exports;var o=n[i]={exports:{}};return t[i](o,o.exports,e),o.exports}!function(){"use strict";function t(t,n){for(var e=0;e<n.length;e++){var i=n[e];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}var n="(prefers-reduced-motion: reduce)",i={CREATED:1,MOUNTED:2,IDLE:3,MOVING:4,SCROLLING:5,DRAGGING:6,DESTROYED:7};function r(t){t.length=0}function o(t,n,e){return Array.prototype.slice.call(t,n,e)}function u(t){return t.bind.apply(t,[null].concat(o(arguments,1)))}var a=setTimeout,s=function(){};function c(t){return requestAnimationFrame(t)}function l(t,n){return typeof n===t}function f(t){return!g(t)&&l("object",t)}var d=Array.isArray,v=u(l,"function"),p=u(l,"string"),h=u(l,"undefined");function g(t){return null===t}function m(t){try{return t instanceof(t.ownerDocument.defaultView||window).HTMLElement}catch(t){return!1}}function y(t){return d(t)?t:[t]}function b(t,n){y(t).forEach(n)}function w(t,n){return t.indexOf(n)>-1}function E(t,n){return t.push.apply(t,y(n)),t}function x(t,n,e){t&&b(n,(function(n){n&&t.classList[e?"add":"remove"](n)}))}function S(t,n){x(t,p(n)?n.split(" "):n,!0)}function _(t,n){b(n,t.appendChild.bind(t))}function k(t,n){b(t,(function(t){var e=(n||t).parentNode;e&&e.insertBefore(t,n)}))}function C(t,n){return m(t)&&(t.msMatchesSelector||t.matches).call(t,n)}function L(t,n){var e=t?o(t.children):[];return n?e.filter((function(t){return C(t,n)})):e}function P(t,n){return n?L(t,n)[0]:t.firstElementChild}var A=Object.keys;function M(t,n,e){return t&&(e?A(t).reverse():A(t)).forEach((function(e){"__proto__"!==e&&n(t[e],e)})),t}function D(t){return o(arguments,1).forEach((function(n){M(n,(function(e,i){t[i]=n[i]}))})),t}function I(t){return o(arguments,1).forEach((function(n){M(n,(function(n,e){d(n)?t[e]=n.slice():f(n)?t[e]=I({},f(t[e])?t[e]:{},n):t[e]=n}))})),t}function z(t,n){b(n||A(t),(function(n){delete t[n]}))}function N(t,n){b(t,(function(t){b(n,(function(n){t&&t.removeAttribute(n)}))}))}function T(t,n,e){f(n)?M(n,(function(n,e){T(t,e,n)})):b(t,(function(t){g(e)||""===e?N(t,n):t.setAttribute(n,String(e))}))}function O(t,n,e){var i=document.createElement(t);return n&&(p(n)?S(i,n):T(i,n)),e&&_(e,i),i}function F(t,n,e){if(h(e))return getComputedStyle(t)[n];g(e)||(t.style[n]=""+e)}function X(t,n){F(t,"display",n)}function j(t){t.setActive&&t.setActive()||t.focus({preventScroll:!0})}function R(t,n){return t.getAttribute(n)}function W(t,n){return t&&t.classList.contains(n)}function q(t){return t.getBoundingClientRect()}function G(t){b(t,(function(t){t&&t.parentNode&&t.parentNode.removeChild(t)}))}function B(t){return P((new DOMParser).parseFromString(t,"text/html").body)}function Y(t,n){t.preventDefault(),n&&(t.stopPropagation(),t.stopImmediatePropagation())}function $(t,n){return t&&t.querySelector(n)}function H(t,n){return n?o(t.querySelectorAll(n)):[]}function U(t,n){x(t,n,!1)}function K(t){return t.timeStamp}function J(t){return p(t)?t:t?t+"px":""}var V="splide",Q="data-"+V;function Z(t,n){if(!t)throw new Error("["+V+"] "+(n||""))}var tt=Math.min,nt=Math.max,et=Math.floor,it=Math.ceil,rt=Math.abs;function ot(t,n,e){return rt(t-n)<e}function ut(t,n,e,i){var r=tt(n,e),o=nt(n,e);return i?r<t&&t<o:r<=t&&t<=o}function at(t,n,e){var i=tt(n,e),r=nt(n,e);return tt(nt(i,t),r)}function st(t){return+(t>0)-+(t<0)}function ct(t,n){return b(n,(function(n){t=t.replace("%s",""+n)})),t}function lt(t){return t<10?"0"+t:""+t}var ft={};function dt(t){return""+t+lt(ft[t]=(ft[t]||0)+1)}function vt(){var t=[];function n(t,n,e){b(t,(function(t){t&&b(n,(function(n){n.split(" ").forEach((function(n){var i=n.split(".");e(t,i[0],i[1])}))}))}))}return{bind:function(e,i,r,o){n(e,i,(function(n,e,i){var u="addEventListener"in n,a=u?n.removeEventListener.bind(n,e,r,o):n.removeListener.bind(n,r);u?n.addEventListener(e,r,o):n.addListener(r),t.push([n,e,i,r,a])}))},unbind:function(e,i,r){n(e,i,(function(n,e,i){t=t.filter((function(t){return!!(t[0]!==n||t[1]!==e||t[2]!==i||r&&t[3]!==r)||(t[4](),!1)}))}))},dispatch:function(t,n,e){var i;return"function"==typeof CustomEvent?i=new CustomEvent(n,{bubbles:true,detail:e}):(i=document.createEvent("CustomEvent")).initCustomEvent(n,true,!1,e),t.dispatchEvent(i),i},destroy:function(){t.forEach((function(t){t[4]()})),r(t)}}}var pt="mounted",ht="ready",gt="move",mt="moved",yt="click",bt="active",wt="inactive",Et="visible",xt="hidden",St="refresh",_t="updated",kt="resize",Ct="resized",Lt="scroll",Pt="scrolled",At="destroy",Mt="arrows:mounted",Dt="navigation:mounted",It="autoplay:play",zt="autoplay:pause",Nt="lazyload:loaded",Tt="sk",Ot="sh",Ft="ei";function Xt(t){var n=t?t.event.bus:document.createDocumentFragment(),e=vt();return t&&t.event.on(At,e.destroy),D(e,{bus:n,on:function(t,i){e.bind(n,y(t).join(" "),(function(t){i.apply(i,d(t.detail)?t.detail:[])}))},off:u(e.unbind,n),emit:function(t){e.dispatch(n,t,o(arguments,1))}})}function jt(t,n,e,i){var r,o,u=Date.now,a=0,s=!0,l=0;function f(){if(!s){if(a=t?tt((u()-r)/t,1):1,e&&e(a),a>=1&&(n(),r=u(),i&&++l>=i))return d();o=c(f)}}function d(){s=!0}function v(){o&&cancelAnimationFrame(o),a=0,o=0,s=!0}return{start:function(n){n||v(),r=u()-(n?a*t:0),s=!1,o=c(f)},rewind:function(){r=u(),a=0,e&&e(a)},pause:d,cancel:v,set:function(n){t=n},isPaused:function(){return s}}}var Rt="Arrow",Wt=Rt+"Left",qt=Rt+"Right",Gt=Rt+"Up",Bt=Rt+"Down",Yt="ttb",$t={width:["height"],left:["top","right"],right:["bottom","left"],x:["y"],X:["Y"],Y:["X"],ArrowLeft:[Gt,qt],ArrowRight:[Bt,Wt]};function Ht(t,n,e){return{resolve:function(t,n,i){var r="rtl"!==(i=i||e.direction)||n?i===Yt?0:-1:1;return $t[t]&&$t[t][r]||t.replace(/width|left|right/i,(function(t,n){var e=$t[t.toLowerCase()][r]||t;return n>0?e.charAt(0).toUpperCase()+e.slice(1):e}))},orient:function(t){return t*("rtl"===e.direction?1:-1)}}}var Ut="role",Kt="tabindex",Jt="aria-",Vt=Jt+"controls",Qt=Jt+"current",Zt=Jt+"selected",tn=Jt+"label",nn=Jt+"labelledby",en=Jt+"hidden",rn=Jt+"orientation",on=Jt+"roledescription",un=Jt+"live",an=Jt+"busy",sn=Jt+"atomic",cn=[Ut,Kt,"disabled",Vt,Qt,tn,nn,en,rn,on],ln=V+"__",fn="is-",dn=V,vn=ln+"track",pn=ln+"list",hn=ln+"slide",gn=hn+"--clone",mn=hn+"__container",yn=ln+"arrows",bn=ln+"arrow",wn=bn+"--prev",En=bn+"--next",xn=ln+"pagination",Sn=xn+"__page",_n=ln+"progress"+"__bar",kn=ln+"toggle",Cn=ln+"sr",Ln=fn+"initialized",Pn=fn+"active",An=fn+"prev",Mn=fn+"next",Dn=fn+"visible",In=fn+"loading",zn=fn+"focus-in",Nn=fn+"overflow",Tn=[Pn,Dn,An,Mn,In,zn,Nn],On={slide:hn,clone:gn,arrows:yn,arrow:bn,prev:wn,next:En,pagination:xn,page:Sn,spinner:ln+"spinner"};var Fn="touchstart mousedown",Xn="touchmove mousemove",jn="touchend touchcancel mouseup click";var Rn="slide",Wn="loop",qn="fade";function Gn(t,n,e,i){var r,o=Xt(t),a=o.on,s=o.emit,c=o.bind,l=t.Components,f=t.root,d=t.options,v=d.isNavigation,p=d.updateOnMove,h=d.i18n,g=d.pagination,m=d.slideFocus,y=l.Direction.resolve,b=R(i,"style"),w=R(i,tn),E=e>-1,S=P(i,"."+mn);function _(){var r=t.splides.map((function(t){var e=t.splide.Components.Slides.getAt(n);return e?e.slide.id:""})).join(" ");T(i,tn,ct(h.slideX,(E?e:n)+1)),T(i,Vt,r),T(i,Ut,m?"button":""),m&&N(i,on)}function k(){r||C()}function C(){if(!r){var e=t.index;(o=L())!==W(i,Pn)&&(x(i,Pn,o),T(i,Qt,v&&o||""),s(o?bt:wt,A)),function(){var n=function(){if(t.is(qn))return L();var n=q(l.Elements.track),e=q(i),r=y("left",!0),o=y("right",!0);return et(n[r])<=it(e[r])&&et(e[o])<=it(n[o])}(),e=!n&&(!L()||E);t.state.is([4,5])||T(i,en,e||"");T(H(i,d.focusableNodes||""),Kt,e?-1:""),m&&T(i,Kt,e?-1:0);n!==W(i,Dn)&&(x(i,Dn,n),s(n?Et:xt,A));if(!n&&document.activeElement===i){var r=l.Slides.getAt(t.index);r&&j(r.slide)}}(),x(i,An,n===e-1),x(i,Mn,n===e+1)}var o}function L(){var i=t.index;return i===n||d.cloneStatus&&i===e}var A={index:n,slideIndex:e,slide:i,container:S,isClone:E,mount:function(){E||(i.id=f.id+"-slide"+lt(n+1),T(i,Ut,g?"tabpanel":"group"),T(i,on,h.slide),T(i,tn,w||ct(h.slideLabel,[n+1,t.length]))),c(i,"click",u(s,yt,A)),c(i,"keydown",u(s,Tt,A)),a([mt,Ot,Pt],C),a(Dt,_),p&&a(gt,k)},destroy:function(){r=!0,o.destroy(),U(i,Tn),N(i,cn),T(i,"style",b),T(i,tn,w||"")},update:C,style:function(t,n,e){F(e&&S||i,t,n)},isWithin:function(e,i){var r=rt(e-n);return E||!d.rewind&&!t.is(Wn)||(r=tt(r,t.length-r)),r<=i}};return A}var Bn="http://www.w3.org/2000/svg",Yn="m15.5 0.932-4.3 4.38 14.5 14.6-14.5 14.5 4.3 4.4 14.6-14.6 4.4-4.3-4.4-4.4-14.6-14.6z";var $n=Q+"-interval";var Hn={passive:!1,capture:!0};var Un={Spacebar:" ",Right:qt,Left:Wt,Up:Gt,Down:Bt};function Kn(t){return t=p(t)?t:t.key,Un[t]||t}var Jn="keydown";var Vn=Q+"-lazy",Qn=Vn+"-srcset",Zn="["+Vn+"], ["+Qn+"]";var te=[" ","Enter"];var ne=Object.freeze({__proto__:null,Media:function(t,e,i){var r=t.state,o=i.breakpoints||{},u=i.reducedMotion||{},a=vt(),s=[];function c(t){t&&a.destroy()}function l(t,n){var e=matchMedia(n);a.bind(e,"change",f),s.push([t,e])}function f(){var n=r.is(7),e=i.direction,o=s.reduce((function(t,n){return I(t,n[1].matches?n[0]:{})}),{});z(i),d(o),i.destroy?t.destroy("completely"===i.destroy):n?(c(!0),t.mount()):e!==i.direction&&t.refresh()}function d(n,e,o){I(i,n),e&&I(Object.getPrototypeOf(i),n),!o&&r.is(1)||t.emit(_t,i)}return{setup:function(){var t="min"===i.mediaQuery;A(o).sort((function(n,e){return t?+n-+e:+e-+n})).forEach((function(n){l(o[n],"("+(t?"min":"max")+"-width:"+n+"px)")})),l(u,n),f()},destroy:c,reduce:function(t){matchMedia(n).matches&&(t?I(i,u):z(i,A(u)))},set:d}},Direction:Ht,Elements:function(t,n,e){var i,o,u,a=Xt(t),s=a.on,c=a.bind,l=t.root,f=e.i18n,d={},p=[],h=[],g=[];function m(){i=w("."+vn),o=P(i,"."+pn),Z(i&&o,"A track/list element is missing."),E(p,L(o,"."+hn+":not(."+gn+")")),M({arrows:yn,pagination:xn,prev:wn,next:En,bar:_n,toggle:kn},(function(t,n){d[n]=w("."+t)})),D(d,{root:l,track:i,list:o,slides:p}),function(){var t=l.id||dt(V),n=e.role;l.id=t,i.id=i.id||t+"-track",o.id=o.id||t+"-list",!R(l,Ut)&&"SECTION"!==l.tagName&&n&&T(l,Ut,n);T(l,on,f.carousel),T(o,Ut,"presentation")}(),b()}function y(t){var n=cn.concat("style");r(p),U(l,h),U(i,g),N([i,o],n),N(l,t?n:["style",on])}function b(){U(l,h),U(i,g),h=_(dn),g=_(vn),S(l,h),S(i,g),T(l,tn,e.label),T(l,nn,e.labelledby)}function w(t){var n=$(l,t);return n&&function(t,n){if(v(t.closest))return t.closest(n);for(var e=t;e&&1===e.nodeType&&!C(e,n);)e=e.parentElement;return e}(n,"."+dn)===l?n:void 0}function _(t){return[t+"--"+e.type,t+"--"+e.direction,e.drag&&t+"--draggable",e.isNavigation&&t+"--nav",t===dn&&Pn]}return D(d,{setup:m,mount:function(){s(St,y),s(St,m),s(_t,b),c(document,Fn+" keydown",(function(t){u="keydown"===t.type}),{capture:!0}),c(l,"focusin",(function(){x(l,zn,!!u)}))},destroy:y})},Slides:function(t,n,e){var i=Xt(t),o=i.on,a=i.emit,s=i.bind,c=n.Elements,l=c.slides,f=c.list,d=[];function h(){l.forEach((function(t,n){E(t,n,-1)}))}function g(){L((function(t){t.destroy()})),r(d)}function E(n,e,i){var r=Gn(t,e,i,n);r.mount(),d.push(r),d.sort((function(t,n){return t.index-n.index}))}function x(t){return t?P((function(t){return!t.isClone})):d}function L(t,n){x(n).forEach(t)}function P(t){return d.filter(v(t)?t:function(n){return p(t)?C(n.slide,t):w(y(t),n.index)})}return{mount:function(){h(),o(St,g),o(St,h)},destroy:g,update:function(){L((function(t){t.update()}))},register:E,get:x,getIn:function(t){var i=n.Controller,r=i.toIndex(t),o=i.hasFocus()?1:e.perPage;return P((function(t){return ut(t.index,r,r+o-1)}))},getAt:function(t){return P(t)[0]},add:function(t,n){b(t,(function(t){if(p(t)&&(t=B(t)),m(t)){var i=l[n];i?k(t,i):_(f,t),S(t,e.classes.slide),r=t,o=u(a,kt),c=H(r,"img"),(d=c.length)?c.forEach((function(t){s(t,"load error",(function(){--d||o()}))})):o()}var r,o,c,d})),a(St)},remove:function(t){G(P(t).map((function(t){return t.slide}))),a(St)},forEach:L,filter:P,style:function(t,n,e){L((function(i){i.style(t,n,e)}))},getLength:function(t){return t?l.length:d.length},isEnough:function(){return d.length>e.perPage}}},Layout:function(t,n,e){var i,r,o,a=Xt(t),s=a.on,c=a.bind,l=a.emit,d=n.Slides,v=n.Direction.resolve,p=n.Elements,h=p.root,g=p.track,m=p.list,y=d.getAt,b=d.style;function w(){i=e.direction===Yt,F(h,"maxWidth",J(e.width)),F(g,v("paddingLeft"),S(!1)),F(g,v("paddingRight"),S(!0)),E(!0)}function E(t){var n=q(h);(t||r.width!==n.width||r.height!==n.height)&&(F(g,"height",function(){var t="";i&&(Z(t=_(),"height or heightRatio is missing."),t="calc("+t+" - "+S(!1)+" - "+S(!0)+")");return t}()),b(v("marginRight"),J(e.gap)),b("width",e.autoWidth?null:J(e.fixedWidth)||(i?"":k())),b("height",J(e.fixedHeight)||(i?e.autoHeight?null:k():_()),!0),r=n,l(Ct),o!==(o=D())&&(x(h,Nn,o),l("overflow",o)))}function S(t){var n=e.padding,i=v(t?"right":"left");return n&&J(n[i]||(f(n)?0:n))||"0px"}function _(){return J(e.height||q(m).width*e.heightRatio)}function k(){var t=J(e.gap);return"calc((100%"+(t&&" + "+t)+")/"+(e.perPage||1)+(t&&" - "+t)+")"}function C(){return q(m)[v("width")]}function L(t,n){var e=y(t||0);return e?q(e.slide)[v("width")]+(n?0:M()):0}function P(t,n){var e=y(t);if(e){var i=q(e.slide)[v("right")],r=q(m)[v("left")];return rt(i-r)+(n?0:M())}return 0}function A(n){return P(t.length-1)-P(0)+L(0,n)}function M(){var t=y(0);return t&&parseFloat(F(t.slide,v("marginRight")))||0}function D(){return t.is(qn)||A(!0)>C()}return{mount:function(){var t,n,e;w(),c(window,"resize load",(t=u(l,kt),e=jt(n||0,t,null,1),function(){e.isPaused()&&e.start()})),s([_t,St],w),s(kt,E)},resize:E,listSize:C,slideSize:L,sliderSize:A,totalSize:P,getPadding:function(t){return parseFloat(F(g,v("padding"+(t?"Right":"Left"))))||0},isOverflow:D}},Clones:function(t,n,e){var i,o=Xt(t),u=o.on,a=n.Elements,s=n.Slides,c=n.Direction.resolve,l=[];function f(){u(St,d),u([_t,kt],p),(i=g())&&(!function(n){var i=s.get().slice(),r=i.length;if(r){for(;i.length<n;)E(i,i);E(i.slice(-n),i.slice(0,n)).forEach((function(o,u){var c=u<n,f=function(n,i){var r=n.cloneNode(!0);return S(r,e.classes.clone),r.id=t.root.id+"-clone"+lt(i+1),r}(o.slide,u);c?k(f,i[0].slide):_(a.list,f),E(l,f),s.register(f,u-n+(c?0:r),o.index)}))}}(i),n.Layout.resize(!0))}function d(){v(),f()}function v(){G(l),r(l),o.destroy()}function p(){var t=g();i!==t&&(i<t||!t)&&o.emit(St)}function g(){var i=e.clones;if(t.is(Wn)){if(h(i)){var r=e[c("fixedWidth")]&&n.Layout.slideSize(0);i=r&&it(q(a.track)[c("width")]/r)||e[c("autoWidth")]&&t.length||2*e.perPage}}else i=0;return i}return{mount:f,destroy:v}},Move:function(t,n,e){var i,r=Xt(t),o=r.on,u=r.emit,a=t.state.set,s=n.Layout,c=s.slideSize,l=s.getPadding,f=s.totalSize,d=s.listSize,v=s.sliderSize,p=n.Direction,g=p.resolve,m=p.orient,y=n.Elements,b=y.list,w=y.track;function E(){n.Controller.isBusy()||(n.Scroll.cancel(),x(t.index),n.Slides.update())}function x(t){S(L(t,!0))}function S(e,i){if(!t.is(qn)){var r=i?e:function(e){if(t.is(Wn)){var i=C(e),r=i>n.Controller.getEnd();(i<0||r)&&(e=_(e,r))}return e}(e);F(b,"transform","translate"+g("X")+"("+r+"px)"),e!==r&&u(Ot)}}function _(t,n){var e=t-A(n),i=v();return t-=m(i*(it(rt(e)/i)||1))*(n?1:-1)}function k(){S(P(),!0),i.cancel()}function C(t){for(var e=n.Slides.get(),i=0,r=1/0,o=0;o<e.length;o++){var u=e[o].index,a=rt(L(u,!0)-t);if(!(a<=r))break;r=a,i=u}return i}function L(n,i){var r=m(f(n-1)-function(t){var n=e.focus;return"center"===n?(d()-c(t,!0))/2:+n*c(t)||0}(n));return i?function(n){e.trimSpace&&t.is(Rn)&&(n=at(n,0,m(v(!0)-d())));return n}(r):r}function P(){var t=g("left");return q(b)[t]-q(w)[t]+m(l(!1))}function A(t){return L(t?n.Controller.getEnd():0,!!e.trimSpace)}return{mount:function(){i=n.Transition,o([pt,Ct,_t,St],E)},move:function(t,n,e,r){var o,s;t!==n&&(o=t>e,s=m(_(P(),o)),o?s>=0:s<=b[g("scrollWidth")]-q(w)[g("width")])&&(k(),S(_(P(),t>e),!0)),a(4),u(gt,n,e,t),i.start(n,(function(){a(3),u(mt,n,e,t),r&&r()}))},jump:x,translate:S,shift:_,cancel:k,toIndex:C,toPosition:L,getPosition:P,getLimit:A,exceededLimit:function(t,n){n=h(n)?P():n;var e=!0!==t&&m(n)<m(A(!1)),i=!1!==t&&m(n)>m(A(!0));return e||i},reposition:E}},Controller:function(t,n,e){var i,r,o,a,s=Xt(t),c=s.on,l=s.emit,f=n.Move,d=f.getPosition,v=f.getLimit,g=f.toPosition,m=n.Slides,y=m.isEnough,b=m.getLength,w=e.omitEnd,E=t.is(Wn),x=t.is(Rn),S=u(A,!1),_=u(A,!0),k=e.start||0,C=k;function L(){r=b(!0),o=e.perMove,a=e.perPage,i=I();var t=at(k,0,w?i:r-1);t!==k&&(k=t,f.reposition())}function P(){i!==I()&&l(Ft)}function A(t,n){var e=o||(O()?1:a),r=M(k+e*(t?-1:1),k,!(o||O()));return-1===r&&x&&!ot(d(),v(!t),1)?t?0:i:n?r:D(r)}function M(n,u,s){if(y()||O()){var c=function(n){if(x&&"move"===e.trimSpace&&n!==k)for(var i=d();i===g(n,!0)&&ut(n,0,t.length-1,!e.rewind);)n<k?--n:++n;return n}(n);c!==n&&(u=n,n=c,s=!1),n<0||n>i?n=o||!ut(0,n,u,!0)&&!ut(i,u,n,!0)?E?s?n<0?-(r%a||a):r:n:e.rewind?n<0?i:0:-1:z(N(n)):s&&n!==u&&(n=z(N(u)+(n<u?-1:1)))}else n=-1;return n}function D(t){return E?(t+r)%r||0:t}function I(){for(var t=r-(O()||E&&o?1:a);w&&t-- >0;)if(g(r-1,!0)!==g(t,!0)){t++;break}return at(t,0,r-1)}function z(t){return at(O()?t:a*t,0,i)}function N(t){return O()?tt(t,i):et((t>=i?r-1:t)/a)}function T(t){t!==k&&(C=k,k=t)}function O(){return!h(e.focus)||e.isNavigation}function F(){return t.state.is([4,5])&&!!e.waitForTransition}return{mount:function(){L(),c([_t,St,Ft],L),c(Ct,P)},go:function(t,n,e){if(!F()){var r=function(t){var n=k;if(p(t)){var e=t.match(/([+\-<>])(\d+)?/)||[],r=e[1],o=e[2];"+"===r||"-"===r?n=M(k+ +(""+r+(+o||1)),k):">"===r?n=o?z(+o):S(!0):"<"===r&&(n=_(!0))}else n=E?t:at(t,0,i);return n}(t),o=D(r);o>-1&&(n||o!==k)&&(T(o),f.move(r,o,C,e))}},scroll:function(t,e,r,o){n.Scroll.scroll(t,e,r,(function(){var t=D(f.toIndex(d()));T(w?tt(t,i):t),o&&o()}))},getNext:S,getPrev:_,getAdjacent:A,getEnd:I,setIndex:T,getIndex:function(t){return t?C:k},toIndex:z,toPage:N,toDest:function(t){var n=f.toIndex(t);return x?at(n,0,i):n},hasFocus:O,isBusy:F}},Arrows:function(t,n,e){var i,r,o=Xt(t),a=o.on,s=o.bind,c=o.emit,l=e.classes,f=e.i18n,d=n.Elements,v=n.Controller,p=d.arrows,h=d.track,g=p,m=d.prev,y=d.next,b={};function w(){!function(){var t=e.arrows;!t||m&&y||(g=p||O("div",l.arrows),m=L(!0),y=L(!1),i=!0,_(g,[m,y]),!p&&k(g,h));m&&y&&(D(b,{prev:m,next:y}),X(g,t?"":"none"),S(g,r=yn+"--"+e.direction),t&&(a([pt,mt,St,Pt,Ft],P),s(y,"click",u(C,">")),s(m,"click",u(C,"<")),P(),T([m,y],Vt,h.id),c(Mt,m,y)))}(),a(_t,E)}function E(){x(),w()}function x(){o.destroy(),U(g,r),i?(G(p?[m,y]:g),m=y=null):N([m,y],cn)}function C(t){v.go(t,!0)}function L(t){return B('<button class="'+l.arrow+" "+(t?l.prev:l.next)+'" type="button"><svg xmlns="'+Bn+'" viewBox="0 0 '+"40 "+'40" width="'+'40" height="'+'40" focusable="false"><path d="'+(e.arrowPath||Yn)+'" />')}function P(){if(m&&y){var n=t.index,e=v.getPrev(),i=v.getNext(),r=e>-1&&n<e?f.last:f.prev,o=i>-1&&n>i?f.first:f.next;m.disabled=e<0,y.disabled=i<0,T(m,tn,r),T(y,tn,o),c("arrows:updated",m,y,e,i)}}return{arrows:b,mount:w,destroy:x,update:P}},Autoplay:function(t,n,e){var i,r,o=Xt(t),u=o.on,a=o.bind,s=o.emit,c=jt(e.interval,t.go.bind(t,">"),(function(t){var n=f.bar;n&&F(n,"width",100*t+"%"),s("autoplay:playing",t)})),l=c.isPaused,f=n.Elements,d=n.Elements,v=d.root,p=d.toggle,h=e.autoplay,g="pause"===h;function m(){l()&&n.Slides.isEnough()&&(c.start(!e.resetProgress),r=i=g=!1,w(),s(It))}function y(t){void 0===t&&(t=!0),g=!!t,w(),l()||(c.pause(),s(zt))}function b(){g||(i||r?y(!1):m())}function w(){p&&(x(p,Pn,!g),T(p,tn,e.i18n[g?"play":"pause"]))}function E(t){var i=n.Slides.getAt(t);c.set(i&&+R(i.slide,$n)||e.interval)}return{mount:function(){h&&(!function(){e.pauseOnHover&&a(v,"mouseenter mouseleave",(function(t){i="mouseenter"===t.type,b()}));e.pauseOnFocus&&a(v,"focusin focusout",(function(t){r="focusin"===t.type,b()}));p&&a(p,"click",(function(){g?m():y(!0)}));u([gt,Lt,St],c.rewind),u(gt,E)}(),p&&T(p,Vt,f.track.id),g||m(),w())},destroy:c.cancel,play:m,pause:y,isPaused:l}},Cover:function(t,n,e){var i=Xt(t).on;function r(t){n.Slides.forEach((function(n){var e=P(n.container||n.slide,"img");e&&e.src&&o(t,e,n)}))}function o(t,n,e){e.style("background",t?'center/cover no-repeat url("'+n.src+'")':"",!0),X(n,t?"none":"")}return{mount:function(){e.cover&&(i(Nt,u(o,!0)),i([pt,_t,St],u(r,!0)))},destroy:u(r,!1)}},Scroll:function(t,n,e){var i,r,o=Xt(t),a=o.on,s=o.emit,c=t.state.set,l=n.Move,f=l.getPosition,d=l.getLimit,v=l.exceededLimit,p=l.translate,h=t.is(Rn),g=1;function m(t,e,o,a,d){var p=f();if(w(),o&&(!h||!v())){var m=n.Layout.sliderSize(),E=st(t)*m*et(rt(t)/m)||0;t=l.toPosition(n.Controller.toDest(t%m))+E}var x=ot(p,t,1);g=1,e=x?0:e||nt(rt(t-p)/1.5,800),r=a,i=jt(e,y,u(b,p,t,d),1),c(5),s(Lt),i.start()}function y(){c(3),r&&r(),s(Pt)}function b(t,n,i,o){var u,a,s=f(),c=(t+(n-t)*(u=o,(a=e.easingFunc)?a(u):1-Math.pow(1-u,4))-s)*g;p(s+c),h&&!i&&v()&&(g*=.6,rt(c)<10&&m(d(v(!0)),600,!1,r,!0))}function w(){i&&i.cancel()}function E(){i&&!i.isPaused()&&(w(),y())}return{mount:function(){a(gt,w),a([_t,St],E)},destroy:w,scroll:m,cancel:E}},Drag:function(t,n,e){var i,r,o,u,a,c,l,d,v=Xt(t),p=v.on,h=v.emit,g=v.bind,m=v.unbind,y=t.state,b=n.Move,w=n.Scroll,E=n.Controller,x=n.Elements.track,S=n.Media.reduce,_=n.Direction,k=_.resolve,L=_.orient,P=b.getPosition,A=b.exceededLimit,M=!1;function D(){var t=e.drag;q(!t),u="free"===t}function I(t){if(c=!1,!l){var n=W(t);i=t.target,r=e.noDrag,C(i,"."+Sn+", ."+bn)||r&&C(i,r)||!n&&t.button||(E.isBusy()?Y(t,!0):(d=n?x:window,a=y.is([4,5]),o=null,g(d,Xn,z,Hn),g(d,jn,N,Hn),b.cancel(),w.cancel(),O(t)))}var i,r}function z(n){if(y.is(6)||(y.set(6),h("drag")),n.cancelable)if(a){b.translate(i+F(n)/(M&&t.is(Rn)?5:1));var r=X(n)>200,o=M!==(M=A());(r||o)&&O(n),c=!0,h("dragging"),Y(n)}else(function(t){return rt(F(t))>rt(F(t,!0))})(n)&&(a=function(t){var n=e.dragMinThreshold,i=f(n),r=i&&n.mouse||0,o=(i?n.touch:+n)||10;return rt(F(t))>(W(t)?o:r)}(n),Y(n))}function N(i){y.is(6)&&(y.set(3),h("dragged")),a&&(!function(i){var r=function(n){if(t.is(Wn)||!M){var e=X(n);if(e&&e<200)return F(n)/e}return 0}(i),o=function(t){return P()+st(t)*tt(rt(t)*(e.flickPower||600),u?1/0:n.Layout.listSize()*(e.flickMaxPages||1))}(r),a=e.rewind&&e.rewindByDrag;S(!1),u?E.scroll(o,0,e.snap):t.is(qn)?E.go(L(st(r))<0?a?"<":"-":a?">":"+"):t.is(Rn)&&M&&a?E.go(A(!0)?">":"<"):E.go(E.toDest(o),!0);S(!0)}(i),Y(i)),m(d,Xn,z),m(d,jn,N),a=!1}function T(t){!l&&c&&Y(t,!0)}function O(t){o=r,r=t,i=P()}function F(t,n){return R(t,n)-R(j(t),n)}function X(t){return K(t)-K(j(t))}function j(t){return r===t&&o||r}function R(t,n){return(W(t)?t.changedTouches[0]:t)["page"+k(n?"Y":"X")]}function W(t){return"undefined"!=typeof TouchEvent&&t instanceof TouchEvent}function q(t){l=t}return{mount:function(){g(x,Xn,s,Hn),g(x,jn,s,Hn),g(x,Fn,I,Hn),g(x,"click",T,{capture:!0}),g(x,"dragstart",Y),p([pt,_t],D)},disable:q,isDragging:function(){return a}}},Keyboard:function(t,n,e){var i,r,o=Xt(t),u=o.on,s=o.bind,c=o.unbind,l=t.root,f=n.Direction.resolve;function d(){var t=e.keyboard;t&&(i="global"===t?window:l,s(i,Jn,h))}function v(){c(i,Jn)}function p(){var t=r;r=!0,a((function(){r=t}))}function h(n){if(!r){var e=Kn(n);e===f(Wt)?t.go("<"):e===f(qt)&&t.go(">")}}return{mount:function(){d(),u(_t,v),u(_t,d),u(gt,p)},destroy:v,disable:function(t){r=t}}},LazyLoad:function(t,n,e){var i=Xt(t),o=i.on,a=i.off,s=i.bind,c=i.emit,l="sequential"===e.lazyLoad,f=[mt,Pt],d=[];function v(){r(d),n.Slides.forEach((function(t){H(t.slide,Zn).forEach((function(n){var i=R(n,Vn),r=R(n,Qn);if(i!==n.src||r!==n.srcset){var o=e.classes.spinner,u=n.parentElement,a=P(u,"."+o)||O("span",o,u);d.push([n,t,a]),n.src||X(n,"none")}}))})),l?m():(a(f),o(f,p),p())}function p(){(d=d.filter((function(n){var i=e.perPage*((e.preloadPages||1)+1)-1;return!n[1].isWithin(t.index,i)||h(n)}))).length||a(f)}function h(t){var n=t[0];S(t[1].slide,In),s(n,"load error",u(g,t)),T(n,"src",R(n,Vn)),T(n,"srcset",R(n,Qn)),N(n,Vn),N(n,Qn)}function g(t,n){var e=t[0],i=t[1];U(i.slide,In),"error"!==n.type&&(G(t[2]),X(e,""),c(Nt,e,i),c(kt)),l&&m()}function m(){d.length&&h(d.shift())}return{mount:function(){e.lazyLoad&&(v(),o(St,v))},destroy:u(r,d),check:p}},Pagination:function(t,n,e){var i,a,s=Xt(t),c=s.on,l=s.emit,f=s.bind,d=n.Slides,v=n.Elements,p=n.Controller,h=p.hasFocus,g=p.getIndex,m=p.go,y=n.Direction.resolve,b=v.pagination,w=[];function E(){i&&(G(b?o(i.children):i),U(i,a),r(w),i=null),s.destroy()}function x(t){m(">"+t,!0)}function _(t,n){var e=w.length,i=Kn(n),r=k(),o=-1;i===y(qt,!1,r)?o=++t%e:i===y(Wt,!1,r)?o=(--t+e)%e:"Home"===i?o=0:"End"===i&&(o=e-1);var u=w[o];u&&(j(u.button),m(">"+o),Y(n,!0))}function k(){return e.paginationDirection||e.direction}function C(t){return w[p.toPage(t)]}function L(){var t=C(g(!0)),n=C(g());if(t){var e=t.button;U(e,Pn),N(e,Zt),T(e,Kt,-1)}if(n){var r=n.button;S(r,Pn),T(r,Zt,!0),T(r,Kt,"")}l("pagination:updated",{list:i,items:w},t,n)}return{items:w,mount:function n(){E(),c([_t,St,Ft],n);var r=e.pagination;b&&X(b,r?"":"none"),r&&(c([gt,Lt,Pt],L),function(){var n=t.length,r=e.classes,o=e.i18n,s=e.perPage,c=h()?p.getEnd()+1:it(n/s);S(i=b||O("ul",r.pagination,v.track.parentElement),a=xn+"--"+k()),T(i,Ut,"tablist"),T(i,tn,o.select),T(i,rn,k()===Yt?"vertical":"");for(var l=0;l<c;l++){var g=O("li",null,i),m=O("button",{class:r.page,type:"button"},g),y=d.getIn(l).map((function(t){return t.slide.id})),E=!h()&&s>1?o.pageX:o.slideX;f(m,"click",u(x,l)),e.paginationKeyboard&&f(m,"keydown",u(_,l)),T(g,Ut,"presentation"),T(m,Ut,"tab"),T(m,Vt,y.join(" ")),T(m,tn,ct(E,l+1)),T(m,Kt,-1),w.push({li:g,button:m,page:l})}}(),L(),l("pagination:mounted",{list:i,items:w},C(t.index)))},destroy:E,getAt:C,update:L}},Sync:function(t,n,e){var i=e.isNavigation,o=e.slideFocus,a=[];function s(){var n,e;t.splides.forEach((function(n){n.isParent||(l(t,n.splide),l(n.splide,t))})),i&&(n=Xt(t),(e=n.on)(yt,d),e(Tt,v),e([pt,_t],f),a.push(n),n.emit(Dt,t.splides))}function c(){a.forEach((function(t){t.destroy()})),r(a)}function l(t,n){var e=Xt(t);e.on(gt,(function(t,e,i){n.go(n.is(Wn)?i:t)})),a.push(e)}function f(){T(n.Elements.list,rn,e.direction===Yt?"vertical":"")}function d(n){t.go(n.index)}function v(t,n){w(te,Kn(n))&&(d(t),Y(n))}return{setup:u(n.Media.set,{slideFocus:h(o)?i:o},!0),mount:s,destroy:c,remount:function(){c(),s()}}},Wheel:function(t,n,e){var i=Xt(t).bind,r=0;function o(i){if(i.cancelable){var o=i.deltaY,u=o<0,a=K(i),s=e.wheelMinThreshold||0,c=e.wheelSleep||0;rt(o)>s&&a-r>c&&(t.go(u?"<":">"),r=a),function(i){return!e.releaseWheel||t.state.is(4)||-1!==n.Controller.getAdjacent(i)}(u)&&Y(i)}}return{mount:function(){e.wheel&&i(n.Elements.track,"wheel",o,Hn)}}},Live:function(t,n,e){var i=Xt(t).on,r=n.Elements.track,o=e.live&&!e.isNavigation,a=O("span",Cn),s=jt(90,u(c,!1));function c(t){T(r,an,t),t?(_(r,a),s.start()):(G(a),s.cancel())}function l(t){o&&T(r,un,t?"off":"polite")}return{mount:function(){o&&(l(!n.Autoplay.isPaused()),T(r,sn,!0),a.textContent="…",i(It,u(l,!0)),i(zt,u(l,!1)),i([mt,Pt],u(c,!0)))},disable:l,destroy:function(){N(r,[un,sn,an]),G(a)}}}}),ee={type:"slide",role:"region",speed:400,perPage:1,cloneStatus:!0,arrows:!0,pagination:!0,paginationKeyboard:!0,interval:5e3,pauseOnHover:!0,pauseOnFocus:!0,resetProgress:!0,easing:"cubic-bezier(0.25, 1, 0.5, 1)",drag:!0,direction:"ltr",trimSpace:!0,focusableNodes:"a, button, textarea, input, select, iframe",live:!0,classes:On,i18n:{prev:"Previous slide",next:"Next slide",first:"Go to first slide",last:"Go to last slide",slideX:"Go to slide %s",pageX:"Go to page %s",play:"Start autoplay",pause:"Pause autoplay",carousel:"carousel",slide:"slide",select:"Select a slide to show",slideLabel:"%s of %s"},reducedMotion:{speed:0,rewindSpeed:0,autoplay:"pause"}};function ie(t,n,e){var i=n.Slides;function r(){i.forEach((function(t){t.style("transform","translateX(-"+100*t.index+"%)")}))}return{mount:function(){Xt(t).on([pt,St],r)},start:function(t,n){i.style("transition","opacity "+e.speed+"ms "+e.easing),a(n)},cancel:s}}function re(t,n,e){var i,r=n.Move,o=n.Controller,a=n.Scroll,s=n.Elements.list,c=u(F,s,"transition");function l(){c(""),a.cancel()}return{mount:function(){Xt(t).bind(s,"transitionend",(function(t){t.target===s&&i&&(l(),i())}))},start:function(n,u){var s=r.toPosition(n,!0),l=r.getPosition(),f=function(n){var i=e.rewindSpeed;if(t.is(Rn)&&i){var r=o.getIndex(!0),u=o.getEnd();if(0===r&&n>=u||r>=u&&0===n)return i}return e.speed}(n);rt(s-l)>=1&&f>=1?e.useScroll?a.scroll(s,f,!1,u):(c("transform "+f+"ms "+e.easing),r.translate(s,!0),i=u):(r.jump(n),u())},cancel:l}}var oe=function(){function n(t,e){var i;this.event=Xt(),this.Components={},this.state=(i=1,{set:function(t){i=t},is:function(t){return w(y(t),i)}}),this.splides=[],this._o={},this._E={};var r=p(t)?$(document,t):t;Z(r,r+" is invalid."),this.root=r,e=I({label:R(r,tn)||"",labelledby:R(r,nn)||""},ee,n.defaults,e||{});try{I(e,JSON.parse(R(r,Q)))}catch(t){Z(!1,"Invalid JSON")}this._o=Object.create(I({},e))}var e,i,u,a=n.prototype;return a.mount=function(t,n){var e=this,i=this.state,r=this.Components;return Z(i.is([1,7]),"Already mounted!"),i.set(1),this._C=r,this._T=n||this._T||(this.is(qn)?ie:re),this._E=t||this._E,M(D({},ne,this._E,{Transition:this._T}),(function(t,n){var i=t(e,r,e._o);r[n]=i,i.setup&&i.setup()})),M(r,(function(t){t.mount&&t.mount()})),this.emit(pt),S(this.root,Ln),i.set(3),this.emit(ht),this},a.sync=function(t){return this.splides.push({splide:t}),t.splides.push({splide:this,isParent:!0}),this.state.is(3)&&(this._C.Sync.remount(),t.Components.Sync.remount()),this},a.go=function(t){return this._C.Controller.go(t),this},a.on=function(t,n){return this.event.on(t,n),this},a.off=function(t){return this.event.off(t),this},a.emit=function(t){var n;return(n=this.event).emit.apply(n,[t].concat(o(arguments,1))),this},a.add=function(t,n){return this._C.Slides.add(t,n),this},a.remove=function(t){return this._C.Slides.remove(t),this},a.is=function(t){return this._o.type===t},a.refresh=function(){return this.emit(St),this},a.destroy=function(t){void 0===t&&(t=!0);var n=this.event,e=this.state;return e.is(1)?Xt(this).on(ht,this.destroy.bind(this,t)):(M(this._C,(function(n){n.destroy&&n.destroy(t)}),!0),n.emit(At),n.destroy(),t&&r(this.splides),e.set(7)),this},e=n,(i=[{key:"options",get:function(){return this._o},set:function(t){this._C.Media.set(t,!0,!0)}},{key:"length",get:function(){return this._C.Slides.getLength(!0)}},{key:"index",get:function(){return this._C.Controller.getIndex()}}])&&t(e.prototype,i),u&&t(e,u),Object.defineProperty(e,"prototype",{writable:!1}),n}(),ue=oe;ue.defaults={},ue.STATES=i;e(770);const ae=document.body,se=document.querySelector(".home-section"),ce=document.querySelectorAll(".navigation__link"),le=document.querySelectorAll(".social__link"),fe=document.querySelector(".slider-section");let de;const ve=document.querySelectorAll(".splide__slide");let pe,he;function ge(t){t&&("white"===t.getAttribute("data-text-color")?(!function(){if(ce)for(let t=0;t<ce.length;t++)ce[t].classList.add("navigation__link--white");if(le)for(let t=0;t<le.length;t++)le[t].classList.add("social__link--white")}(),he="light"):"black"===t.getAttribute("data-text-color")&&(!function(){if(ce)for(let t=0;t<ce.length;t++)ce[t].classList.remove("navigation__link--white");if(le)for(let t=0;t<le.length;t++)le[t].classList.remove("social__link--white")}(),he="dark"),ae&&pe&&he&&("previous"===pe?ae.style.cursor=`url('/images/cursor-${pe}-${he}.svg') 0 12, auto`:"next"===pe&&(ae.style.cursor=`url('/images/cursor-${pe}-${he}.svg') 24 12, auto`)))}document.addEventListener("touchstart",(function(){}),!1),fe&&(de=new ue(".splide",{type:"fade",rewind:!0,rewindByDrag:!0,speed:400,width:"100vw",height:"100vh",arrows:!1,pagination:!1,easing:"ease-in-out",drag:!0})),de&&ve&&de.on("mounted",(function(){ge(ve[0])})),de&&de.mount(),se&&de&&se.addEventListener("click",(function(t){t.target.closest(".navigation__link")||t.target.closest(".social__link")||(t.clientX>=window.innerWidth/2?de.go(">"):de.go("<"))})),se&&de&&se.addEventListener("swiped",(function(t){"left"===t.detail.dir?de.go(">"):"right"===t.detail.dir&&de.go("<")})),de&&de.on("active",(function(t){ge(t.slide)})),ae&&ae.addEventListener("mousemove",(function(t){pe=t.clientX>=window.innerWidth/2?"next":"previous",pe&&he&&("previous"===pe?ae.style.cursor=`url('/images/cursor-${pe}-${he}.svg') 0 12, auto`:"next"===pe&&(ae.style.cursor=`url('/images/cursor-${pe}-${he}.svg') 24 12, auto`))}))}()}();