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