1var Yg=Object.defineProperty;var Ug=(i,e,t)=>e in i?Yg(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t;var E=(i,e,t)=>Ug(i,typeof e!="symbol"?e+"":e,t);/* empty css *//* empty css */import{g as Id,c as Xg,u as Nd,a as Ta,b as Ea,d as Oa,t as $a,i as Vo,e as Tr,f as Kg,m as Wa,h as Qs,n as ur,j as Ma,k as Rd,l as Aa,o as ka,p as Qg,q as Jg,r as Zg,s as em,v as tm,w as rm,x as im,y as nm,z as sm,A as om,T as Dc,B as am,C as lm,D as um,E as Bd}from"../assets/instantsearch-WSzi1Ehd.js";import{T as cm,S as fm,P as dm,R as Js,a as hm,U as _i,C as pm,M as gm,b as mm,W as vm,c as ym}from"../assets/three-DukExiHq.js";function bm(i,e){for(var t=0;t<e.length;t++){var r=e[t];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(i,typeof(n=function(s,o){if(typeof s!="object"||s===null)return s;var a=s[Symbol.toPrimitive];if(a!==void 0){var l=a.call(s,"string");if(typeof l!="object")return l;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(s)}(r.key))=="symbol"?n:String(n),r)}var n}function Iu(i,e,t){return e&&bm(i.prototype,e),Object.defineProperty(i,"prototype",{writable:!1}),i}function _r(){return _r=Object.assign?Object.assign.bind():function(i){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(i[r]=t[r])}return i},_r.apply(this,arguments)}function La(i,e){i.prototype=Object.create(e.prototype),i.prototype.constructor=i,_s(i,e)}function Tl(i){return Tl=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Tl(i)}function _s(i,e){return _s=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,r){return t.__proto__=r,t},_s(i,e)}function _m(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function El(i,e,t){return El=_m()?Reflect.construct.bind():function(r,n,s){var o=[null];o.push.apply(o,n);var a=new(Function.bind.apply(r,o));return s&&_s(a,s.prototype),a},El.apply(null,arguments)}function Ol(i){var e=typeof Map=="function"?new Map:void 0;return Ol=function(t){if(t===null||Function.toString.call(t).indexOf("[native code]")===-1)return t;if(typeof t!="function")throw new TypeError("Super expression must either be null or a function");if(e!==void 0){if(e.has(t))return e.get(t);e.set(t,r)}function r(){return El(t,arguments,Tl(this).constructor)}return r.prototype=Object.create(t.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),_s(r,t)},Ol(i)}function wm(i){if(i===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return i}var Kr,Dm=function(){this.before=void 0,this.beforeLeave=void 0,this.leave=void 0,this.afterLeave=void 0,this.beforeEnter=void 0,this.enter=void 0,this.afterEnter=void 0,this.after=void 0};(function(i){i[i.off=0]="off",i[i.error=1]="error",i[i.warning=2]="warning",i[i.info=3]="info",i[i.debug=4]="debug"})(Kr||(Kr={}));var Sc=Kr.off,Ei=function(){function i(t){this.t=void 0,this.t=t}i.getLevel=function(){return Sc},i.setLevel=function(t){return Sc=Kr[t]};var e=i.prototype;return e.error=function(){this.i(console.error,Kr.error,[].slice.call(arguments))},e.warn=function(){this.i(console.warn,Kr.warning,[].slice.call(arguments))}
vendor: 5,971 bytes, line 1
1,e.info=function(){this.i(console.info,Kr.info,[].slice.call(arguments))},e.debug=function(){this.i(console.log,Kr.debug,[].slice.call(arguments))},e.i=function(t,r,n){r<=i.getLevel()&&t.apply(console,["["+this.t+"] "].concat(n))},i}();function Ki(i){return i.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1")}function xc(i){return i&&i.sensitive?"":"i"}var Sr={container:"container",history:"history",namespace:"namespace",prefix:"data-barba",prevent:"prevent",wrapper:"wrapper"},Oi=new(function(){function i(){this.o=Sr,this.u=void 0,this.h={after:null,before:null,parent:null}}var e=i.prototype;return e.toString=function(t){return t.outerHTML},e.toDocument=function(t){return this.u||(this.u=new DOMParser),this.u.parseFromString(t,"text/html")},e.toElement=function(t){var r=document.createElement("div");return r.innerHTML=t,r},e.getHtml=function(t){return t===void 0&&(t=document),this.toString(t.documentElement)},e.getWrapper=function(t){return t===void 0&&(t=document),t.querySelector("["+this.o.prefix+'="'+this.o.wrapper+'"]')},e.getContainer=function(t){return t===void 0&&(t=document),t.querySelector("["+this.o.prefix+'="'+this.o.container+'"]')},e.removeContainer=function(t){document.body.contains(t)&&(this.v(t),t.parentNode.removeChild(t))},e.addContainer=function(t,r){var n=this.getContainer()||this.h.before;n?this.l(t,n):this.h.after?this.h.after.parentNode.insertBefore(t,this.h.after):this.h.parent?this.h.parent.appendChild(t):r.appendChild(t)},e.getSibling=function(){return this.h},e.getNamespace=function(t){t===void 0&&(t=document);var r=t.querySelector("["+this.o.prefix+"-"+this.o.namespace+"]");return r?r.getAttribute(this.o.prefix+"-"+this.o.namespace):null},e.getHref=function(t){if(t.tagName&&t.tagName.toLowerCase()==="a"){if(typeof t.href=="string")return t.href;var r=t.getAttribute("href")||t.getAttribute("xlink:href");if(r)return this.resolveUrl(r.baseVal||r)}return null},e.resolveUrl=function(){var t=[].slice.call(arguments).length;if(t===0)throw new Error("resolveUrl requires at least one argument; got none.");var r=document.createElement("base");if(r.href=arguments[0],t===1)return r.href;var n=document.getElementsByTagName("head")[0];n.insertBefore(r,n.firstChild);for(var s,o=document.createElement("a"),a=1;a<t;a++)o.href=arguments[a],r.href=s=o.href;return n.removeChild(r),s},e.l=function(t,r){r.parentNode.insertBefore(t,r.nextSibling)},e.v=function(t){return this.h={after:t.nextElementSibling,before:t.previousElementSibling,parent:t.parentElement},this.h},i}()),Sm=function(){function i(){this.p=void 0,this.m=[],this.P=-1}var e=i.prototype;return e.init=function(t,r){this.p="barba";var n={data:{},ns:r,scroll:{x:window.scrollX,y:window.scrollY},url:t};this.P=0,this.m.push(n);var s={from:this.p,index:this.P,states:[].concat(this.m)};window.history&&window.history.replaceState(s,"",t)},e.change=function(t,r,n){if(n&&n.state){var s=n.state,o=s.index;r=this.g(this.P-o),this.replace(s.states),this.P=o}else this.add(t,r);return r},e.add=function(t,r,n,s){var o=n??this.R(r),a={data:s??{},ns:"tmp",scroll:{x:window.scrollX,y:window.scrollY},url:t};switch(o){case"push":this.P=this.size,this.m.push(a);break;case"replace":this.set(this.P,a)}var l={from:this.p,index:this.P,states:[].concat(this.m)};switch(o){case"push":window.history&&window.history.pushState(l,"",t);break;case"replace":window.history&&window.history.replaceState(l,"",t)}},e.store=function(t,r){var n=r||this.P,s=this.get(n);s.data=_r({},s.data,t),this.set(n,s);var o={from:this.p,index:this.P,states:[].concat(this.m)};window.history.replaceState(o,"")},e.update=function(t,r){var n=r||this.P,s=_r({},this.get(n),t);this.set(n,s)},e.remove=function(t){t?this.m.splice(t,1):this.m.pop(),this.P--},e.clear=function(){this.m=[],this.P=-1},e.replace=function(t){this.m=t},e.get=function(t){return this.m[t]},e.set=function(t,r){return this.m[t]=r},e.R=function(t){var r="push",n=t,s=Sr.prefix+"-"+Sr.history;return n.hasAttribute&&n.hasAttribute(s)&&(r=n.getAttribute(s)),r},e.g=function(t){return Math.abs(t)>1?t>0?"forward":"back":t===0?"popstate":t>0?"back":"forward"},Iu(i,[{key:"current",get:function(){return this.m[this.P]}},{key:"previous",get:function(){return this.P<1?null:this.m[this.P-1]}},{key:"size",get:function(){return this.m.length}}]),i}(),jd=new Sm,Wo=function(i,e){try{var t=function(){if(!e.next.html)return Promise.resolve(i).then(function(r){var n=e.next;if(r){var s=Oi.toElement(r.html);n.namespace=Oi.getNamespace(s),n.container=Oi.getContainer(s),n.url=r.url,n.html=r.html,jd.update({ns:n.namespace});var o=Oi.toDocument(r.html);document.title=o.title}})}();return Promise.resolve(t&&t.then?t.then(function(){}):void 0)}catch(r){return Promise.reject(r)}},Hd=function i(e,t,r){return e instanceof RegExp?function(n,s){if(!s)return n;for(var o=/\((?:\?<(.*?)>)?(?!\?)/g,a=0,l=o.exec(n.source);l;)s.push({name:l[1]||a++,prefix:"",suffix:"",modifier:"",pattern:""}),l=o.exec(n.source);return n}(e,t):Array.isArray(e)?function(n,s,o){var a=n.map(function(l){return i(l,s,o).source});return new RegExp("(?:".concat(a.join("|"),")"),xc(o))}(e,t,r):function(n,s,o){return function(a,l,u){u===void 0&&(u={});for(var c=u.strict,f=c!==void 0&&c,h=u.start,d=h===void 0||h,g=u.end,p=g===void 0||g,m=u.encode,y=m===void 0?function(B){return B}:m,b=u.delimiter,v=b===void 0?"/#?":b,_=u.endsWith,D="[".concat(Ki(_===void 0?"":_),"]|$"),S="[".concat(Ki(v),"]"),C=d?"^":"",w=0,x=a;w<x.length;w++){var P=x[w];if(typeof P=="string")C+=Ki(y(P));else{var T=Ki(y(P.prefix)),O=Ki(y(P.suffix));if(P.pattern)if(l&&l.push(P),T||O)if(P.modifier==="+"||P.modifier==="*"){var A=P.modifier==="*"?"?":"";C+="(?:".concat(T,"((?:").concat(P.pattern,")(?:").concat(O).concat(T,"(?:").concat(P.pattern,"))*)").concat(O,")").concat(A)}else C+="(?:".concat(T,"(").concat(P.pattern,")").concat(O,")").concat(P.modifier);else C+=P.modifier==="+"||P.modifier==="*"?"((?:".concat(P.pattern,")").concat(P.modifier,")"):"(".concat(P.pattern,")").concat(P.modifier);
1else C+="(?:".concat(T).concat(O,")").concat(P.modifier)}}if(p)f||(C+="".concat(S,"?")),C+=u.endsWith?"(?=".concat(D,")"):"$";else{var N=a[a.length-1],I=typeof N=="string"?S.indexOf(N[N.length-1])>-1:N===void 0;f||(C+="(?:".concat(S,"(?=").concat(D,"))?")),I||(C+="(?=".concat(S,"|").concat(D,")"))}return new RegExp(C,xc(u))}(function(a,l){l===void 0&&(l={});for(var u=function(O){for(var A=[],N=0;N<O.length;){var I=O[N];if(I!=="*"&&I!=="+"&&I!=="?")if(I!=="\\")if(I!=="{")if(I!=="}")if(I!==":")if(I!=="(")A.push({type:"CHAR",index:N,value:O[N++]});else{var B=1,W="";if(O[M=N+1]==="?")throw new TypeError('Pattern cannot start with "?" at '.concat(M));for(;M<O.length;)if(O[M]!=="\\"){if(O[M]===")"){if(--B==0){M++;break}}else if(O[M]==="("&&(B++,O[M+1]!=="?"))throw new TypeError("Capturing groups are not allowed at ".concat(M));W+=O[M++]}else W+=O[M++]+O[M++];if(B)throw new TypeError("Unbalanced pattern at ".concat(N));if(!W)throw new TypeError("Missing pattern at ".concat(N));A.push({type:"PATTERN",index:N,value:W}),N=M}else{for(var V="",M=N+1;M<O.length;){var $=O.charCodeAt(M);if(!($>=48&&$<=57||$>=65&&$<=90||$>=97&&$<=122||$===95))break;V+=O[M++]}if(!V)throw new TypeError("Missing parameter name at ".concat(N));A.push({type:"NAME",index:N,value:V}),N=M}else A.push({type:"CLOSE",index:N,value:O[N++]});else A.push({type:"OPEN",index:N,value:O[N++]});else A.push({type:"ESCAPED_CHAR",index:N++,value:O[N++]});else A.push({type:"MODIFIER",index:N,value:O[N++]})}return A.push({type:"END",index:N,value:""}),A}(a),c=l.prefixes,f=c===void 0?"./":c,h="[^".concat(Ki(l.delimiter||"/#?"),"]+?"),d=[],g=0,p=0,m="",y=function(O){if(p<u.length&&u[p].type===O)return u[p++].value},b=function(O){var A=y(O);if(A!==void 0)return A;var N=u[p],I=N.index;throw new TypeError("Unexpected ".concat(N.type," at ").concat(I,", expected ").concat(O))},v=function(){for(var O,A="";O=y("CHAR")||y("ESCAPED_CHAR");)A+=O;return A};p<u.length;){var _=y("CHAR"),D=y("NAME"),S=y("PATTERN");if(D||S)f.indexOf(w=_||"")===-1&&(m+=w,w=""),m&&(d.push(m),m=""),d.push({name:D||g++,prefix:w,suffix:"",pattern:S||h,modifier:y("MODIFIER")||""});else{var C=_||y("ESCAPED_CHAR");if(C)m+=C;else if(m&&(d.push(m),m=""),y("OPEN")){var w=v(),x=y("NAME")||"",P=y("PATTERN")||"",T=v();b("CLOSE"),d.push({name:x||(P?g++:""),pattern:x&&!P?h:P,prefix:w,suffix:T,modifier:y("MODIFIER")||""})}else b("END")}}return d}(n,o),s,o)}(e,t,r)},xm={__proto__:null,update:Wo,nextTick:function(){return new Promise(function(i){window.requestAnimationFrame(i)})},pathToRegexp:Hd},zd=function(){return window.location.origin},ws=function(i){return i===void 0&&(i=window.location.href),Qr(i).port},Qr=function(i){var e,t=i.match(/:\d+/);if(t===null)/^http/.test(i)&&(e=80),/^https/.test(i)&&(e=443);else{var r=t[0].substring(1);e=parseInt(r,10)}var n,s=i.replace(zd(),""),o={},a=s.indexOf("#");a>=0&&(n=s.slice(a+1),s=s.slice(0,a));var l=s.indexOf("?");return l>=0&&(o=Vd(s.slice(l+1)),s=s.slice(0,l)),{hash:n,path:s,port:e,query:o}},Vd=function(i){return i.split("&").reduce(function(e,t){var r=t.split("=");return e[r[0]]=r[1],e},{})},$l=function(i){return i===void 0&&(i=window.location.href),i.replace(/(\/#.*|\/|#.*)$/,"")},Pm={__proto__:null,getHref:function(){return window.location.href},getAbsoluteHref:function(i,e){return e===void 0&&(e=document.baseURI),new URL(i,e).href},getOrigin:zd,getPort:ws,getPath:function(i){return i===void 0&&(i=window.location.href),Qr(i).path},getQuery:function(i,e){return e===void 0&&(e=!1),e?JSON.stringify(Qr(i).query):Qr(i).query},getHash:function(i){return Qr(i).hash},parse:Qr,parseQuery:Vd,clean:$l};function Cm(i,e,t,r,n){return e===void 0&&(e=2e3),new Promise(function(s,o){var a=new XMLHttpRequest;a.onreadystatechange=function(){if(a.readyState===XMLHttpRequest.DONE){if(a.status===200){var l=a.responseURL!==""&&a.responseURL!==i?a.responseURL:i;s({html:a.responseText,url:_r({href:l},Qr(l))}),r.update(i,{status:"fulfilled",target:l})}else if(a.status){var u={status:a.status,statusText:a.statusText};t(i,u),o(u),r.update(i,{status:"rejected"})}}},a.ontimeout=function(){var l=new Error("Timeout error ["+e+"]");t(i,l),o(l),r.update(i,{status:"rejected"})},a.onerror=function(){var l=new Error("Fetch error");t(i,l),o(l),r.update(i,{status:"rejected"})},a.open("GET",i),a.timeout=e,a.setRequestHeader("Accept","text/html,application/xhtml+xml,application/xml"),a.setRequestHeader("x-barba","yes"),n.all().forEac
1h(function(l,u){a.setRequestHeader(u,l)}),a.send()})}function Tm(i){return!!i&&(typeof i=="object"||typeof i=="function")&&typeof i.then=="function"}function ln(i,e){return e===void 0&&(e={}),function(){var t=arguments,r=!1,n=new Promise(function(s,o){e.async=function(){return r=!0,function(l,u){l?o(l):s(u)}};var a=i.apply(e,[].slice.call(t));r||(Tm(a)?a.then(s,o):s(a))});return n}}var Ur=new(function(i){function e(){var r;return(r=i.call(this)||this).logger=new Ei("@barba/core"),r.all=["ready","page","reset","currentAdded","currentRemoved","nextAdded","nextRemoved","beforeOnce","once","afterOnce","before","beforeLeave","leave","afterLeave","beforeEnter","enter","afterEnter","after"],r.registered=new Map,r.init(),r}La(e,i);var t=e.prototype;return t.init=function(){var r=this;this.registered.clear(),this.all.forEach(function(n){r[n]||(r[n]=function(s,o){r.registered.has(n)||r.registered.set(n,new Set),r.registered.get(n).add({ctx:o||{},fn:s})})})},t.do=function(r){var n=arguments,s=this;if(this.registered.has(r)){var o=Promise.resolve();return this.registered.get(r).forEach(function(a){o=o.then(function(){return ln(a.fn,a.ctx).apply(void 0,[].slice.call(n,1))})}),o.catch(function(a){s.logger.debug("Hook error ["+r+"]"),s.logger.error(a)})}return Promise.resolve()},t.clear=function(){var r=this;this.all.forEach(function(n){delete r[n]}),this.init()},t.help=function(){this.logger.info("Available hooks: "+this.all.join(","));var r=[];this.registered.forEach(function(n,s){return r.push(s)}),this.logger.info("Registered hooks: "+r.join(","))},e}(Dm)),Wd=function(){function i(e){if(this.k=void 0,this.O=[],typeof e=="boolean")this.k=e;else{var t=Array.isArray(e)?e:[e];this.O=t.map(function(r){return Hd(r)})}}return i.prototype.checkHref=function(e){if(typeof this.k=="boolean")return this.k;var t=Qr(e).path;return this.O.some(function(r){return r.exec(t)!==null})},i}(),Em=function(i){function e(r){var n;return(n=i.call(this,r)||this).T=new Map,n}La(e,i);var t=e.prototype;return t.set=function(r,n,s,o,a){return this.T.set(r,{action:s,request:n,status:o,target:a??r}),{action:s,request:n,status:o,target:a}},t.get=function(r){return this.T.get(r)},t.getRequest=function(r){return this.T.get(r).request},t.getAction=function(r){return this.T.get(r).action},t.getStatus=function(r){return this.T.get(r).status},t.getTarget=function(r){return this.T.get(r).target},t.has=function(r){return!this.checkHref(r)&&this.T.has(r)},t.delete=function(r){return this.T.delete(r)},t.update=function(r,n){var s=_r({},this.T.get(r),n);return this.T.set(r,s),s},e}(Wd),Om=function(){function i(){this.A=new Map}var e=i.prototype;return e.set=function(t,r){return this.A.set(t,r),{name:r}},e.get=function(t){return this.A.get(t)},e.all=function(){return this.A},e.has=function(t){return this.A.has(t)},e.delete=function(t){return this.A.delete(t)},e.clear=function(){return this.A.clear()},i}(),$m=function(){return!window.history.pushState},Mm=function(i){return!i.el||!i.href},Am=function(i){var e=i.event;return e.which>1||e.metaKey||e.ctrlKey||e.shiftKey||e.altKey},km=function(i){var e=i.el;return e.hasAttribute("target")&&e.target==="_blank"},Lm=function(i){var e=i.el;return e.protocol!==void 0&&window.location.protocol!==e.protocol||e.hostname!==void 0&&window.location.hostname!==e.hostname},Fm=function(i){var e=i.el;return e.port!==void 0&&ws()!==ws(e.href)},Im=function(i){var e=i.el;return e.getAttribute&&typeof e.getAttribute("download")=="string"},Nm=function(i){return i.el.hasAttribute(Sr.prefix+"-"+Sr.prevent)},Rm=function(i){return!!i.el.closest("["+Sr.prefix+"-"+Sr.prevent+'="all"]')},Bm=function(i){var e=i.href;return $l(e)===$l()&&ws(e)===ws()},jm=function(i){function e(r){var n;return(n=i.call(this,r)||this).suite=[],n.tests=new Map,n.init(),n}La(e,i);var t=e.prototype;return t.init=function(){this.add("pushState",$m),this.add("exists",Mm),this.add("newTab",Am),this.add("blank",km),this.add("corsDomain",Lm),this.add("corsPort",Fm),this.add("download",Im),this.add("preventSelf",Nm),this.add("preventAll",Rm),this.add("sameUrl",Bm,!1)},t.add=function(r,n,s){s===void 0&&(s=!0),this.tests.set(r,n),s&&this.suite.push(r)},t.run=function(r,n,s,o){return this.tests.get(r)({el:n,event:s,href:o})},t.checkLink=function(r,n,s){var o=this;return this.suite.some(function(a){return o.run(a,r,n,s)})},e}(Wd),qa=function(i){function e(t,r){var n;return r===void 0&&(r="Barba error"),(n=i.call.apply(i,[this].concat([].slice.call(arguments,2)))||this).error=void 0,n.label=void 0,n.error=t,n.label=r,Error.captureStackTrace&&Error.captureStackTrace(wm(n),e),n.name="BarbaError",n}return La(e,i),e}(Ol(Error)),Hm=function(){function i(t){t===void 0&&(t=[]),this.logger=new Ei("@barba/core"),this.all=[],this.page=[],this.once=[],this.j=[{name:"namespace",type:"strings"},{name:"custom",type:"function"}],t&&(this.all=this.all.concat(t)),this.update()}var e=i.prototype;return e.add=function(t,r){t==="rule"?this.j.splice(r.position||0,0,r.value):this.all.push(r),this.update()},e.resolve=function(t,r){var n=this;r===void 0&&(r={});var s=r.once?this.once:this.page;s=s.filter(r.self?function(h){return h.name&&h.name==="self"}:function(h){return!h.name||h.name!=="self"});var o=new Map,a=s.find(function(h){var d=!0,g={};return r.self&&h.name==="self"?(o.set(h,g),!0):(n.j.reverse().forEac
vendor: 11,074 bytes, line 1
1h(function(p){d&&(d=n.M(h,p,t,g),h.from&&h.to&&(d=n.M(h,p,t,g,"from")&&n.M(h,p,t,g,"to")),h.from&&!h.to&&(d=n.M(h,p,t,g,"from")),!h.from&&h.to&&(d=n.M(h,p,t,g,"to")))}),o.set(h,g),d)}),l=o.get(a),u=[];if(u.push(r.once?"once":"page"),r.self&&u.push("self"),l){var c,f=[a];Object.keys(l).length>0&&f.push(l),(c=this.logger).info.apply(c,["Transition found ["+u.join(",")+"]"].concat(f))}else this.logger.info("No transition found ["+u.join(",")+"]");return a},e.update=function(){var t=this;this.all=this.all.map(function(r){return t.N(r)}).sort(function(r,n){return r.priority-n.priority}).reverse().map(function(r){return delete r.priority,r}),this.page=this.all.filter(function(r){return r.leave!==void 0||r.enter!==void 0}),this.once=this.all.filter(function(r){return r.once!==void 0})},e.M=function(t,r,n,s,o){var a=!0,l=!1,u=t,c=r.name,f=c,h=c,d=c,g=o?u[o]:u,p=o==="to"?n.next:n.current;if(o?g&&g[c]:g[c]){switch(r.type){case"strings":default:var m=Array.isArray(g[f])?g[f]:[g[f]];p[f]&&m.indexOf(p[f])!==-1&&(l=!0),m.indexOf(p[f])===-1&&(a=!1);break;case"object":var y=Array.isArray(g[h])?g[h]:[g[h]];p[h]?(p[h].name&&y.indexOf(p[h].name)!==-1&&(l=!0),y.indexOf(p[h].name)===-1&&(a=!1)):a=!1;break;case"function":g[d](n)?l=!0:a=!1}l&&(o?(s[o]=s[o]||{},s[o][c]=u[o][c]):s[c]=u[c])}return a},e.S=function(t,r,n){var s=0;return(t[r]||t.from&&t.from[r]||t.to&&t.to[r])&&(s+=Math.pow(10,n),t.from&&t.from[r]&&(s+=1),t.to&&t.to[r]&&(s+=2)),s},e.N=function(t){var r=this;t.priority=0;var n=0;return this.j.forEach(function(s,o){n+=r.S(t,s.name,o+1)}),t.priority=n,t},i}();function Vn(i,e){try{var t=i()}catch(r){return e(r)}return t&&t.then?t.then(void 0,e):t}var zm=function(){function i(t){t===void 0&&(t=[]),this.logger=new Ei("@barba/core"),this.store=void 0,this.C=!1,this.store=new Hm(t)}var e=i.prototype;return e.get=function(t,r){return this.store.resolve(t,r)},e.doOnce=function(t){var r=t.data,n=t.transition;try{var s=function(){o.C=!1},o=this,a=n||{};o.C=!0;var l=Vn(function(){return Promise.resolve(o.L("beforeOnce",r,a)).then(function(){return Promise.resolve(o.once(r,a)).then(function(){return Promise.resolve(o.L("afterOnce",r,a)).then(function(){})})})},function(u){o.C=!1,o.logger.debug("Transition error [before/after/once]"),o.logger.error(u)});return Promise.resolve(l&&l.then?l.then(s):s())}catch(u){return Promise.reject(u)}},e.doPage=function(t){var r=t.data,n=t.transition,s=t.page,o=t.wrapper;try{var a=function(h){l.C=!1},l=this,u=n||{},c=u.sync===!0||!1;l.C=!0;var f=Vn(function(){function h(){return Promise.resolve(l.L("before",r,u)).then(function(){function g(m){return Promise.resolve(l.remove(r)).then(function(){return Promise.resolve(l.L("after",r,u)).then(function(){})})}var p=function(){if(c)return Vn(function(){return Promise.resolve(l.add(r,o)).then(function(){return Promise.resolve(l.L("beforeLeave",r,u)).then(function(){return Promise.resolve(l.L("beforeEnter",r,u)).then(function(){return Promise.resolve(Promise.all([l.leave(r,u),l.enter(r,u)])).then(function(){return Promise.resolve(l.L("afterLeave",r,u)).then(function(){return Promise.resolve(l.L("afterEnter",r,u)).then(function(){})})})})})})},function(v){if(l.H(v))throw new qa(v,"Transition error [sync]")});var m=function(v){return Vn(function(){var _=function(){if(y!==!1)return Promise.resolve(l.add(r,o)).then(function(){return Promise.resolve(l.L("beforeEnter",r,u)).then(function(){return Promise.resolve(l.enter(r,u,y)).then(function(){return Promise.resolve(l.L("afterEnter",r,u)).then(function(){})})})})}();if(_&&_.then)return _.then(function(){})},function(_){if(l.H(_))throw new qa(_,"Transition error [before/after/enter]")})},y=!1,b=Vn(function(){return Promise.resolve(l.L("beforeLeave",r,u)).then(function(){return Promise.resolve(Promise.all([l.leave(r,u),Wo(s,r)]).then(function(v){return v[0]})).then(function(v){return y=v,Promise.resolve(l.L("afterLeave",r,u)).then(function(){})})})},function(v){if(l.H(v))throw new qa(v,"Transition error [before/after/leave]")});return b&&b.then?b.then(m):m()}();return p&&p.then?p.then(g):g()})}var d=function(){if(c)return Promise.resolve(Wo(s,r)).then(function(){})}();return d&&d.then?d.then(h):h()},function(h){throw l.C=!1,h.name&&h.name==="BarbaError"?(l.logger.debug(h.label),l.logger.error(h.error),h):(l.logger.debug("Transition error [page]"),l.logger.error(h),h)});return Promise.resolve(f&&f.then?f.then(a):a())}catch(h){return Promise.reject(h)}},e.once=function(t,r){try{return Promise.resolve(Ur.do("once",t,r)).then(function(){return r.once?ln(r.once,r)(t):Promise.resolve()})}catch(n){return Promise.reject(n)}},e.leave=function(t,r){try{return Promise.resolve(Ur.do("leave",t,r)).then(function(){return r.leave?ln(r.leave,r)(t):Promise.resolve()})}catch(n){return Promise.reject(n)}},e.enter=function(t,r,n){try{return Promise.resolve(Ur.do("enter",t,r)).then(function(){return r.enter?ln(r.enter,r)(t,n):Promise.resolve()})}catch(s){return Promise.reject(s)}},e.add=function(t,r){try{return Oi.addContainer(t.next.container,r),Ur.do("nextAdded",t),Promise.resolve()}catch(n){return Promise.reject(n)}},e.remove=function(t){try{return Oi.removeContainer(t.current.container),Ur.do("currentRemoved",t),Promise.resolve()}catch(r){return Promise.reject(r)}},e.H=function(t){return t.message?!/Timeout error|Fetch error/.test(t.message):!t.status},e.L=function(t,r,n){try{return Promise.resolve(Ur.do(t,r,n)).then(function(){return n[t]?ln(n[t],n)(r):Promise.resolve()})}catch(s){return Promise.reject(s)}},Iu(i,[{key:"isRunning",get:function(){return this.C},set:function(t){this.C=t}},{key:"hasOnce",get:function(){return this.store.once.length>0}},{key:"hasSelf",get:function(){return this.store.all.some(function(t){return t.name==="self"})}},{key:"shouldWait",get:function(){return this.store.all.some(function(t){return t.to&&!t.to.route||t.sync})}}]),i}(),Vm=function(){function i(e){var t=this;this.names=["beforeLeave","afterLeave","beforeEnter","afterEnter"],this.byNamespace=new Map,e.length!==0&&(e.forEach(function(r){t.byNamespace.set(r.namespace,r)}),this.names.forEach(function(r){Ur[r](t._(r))}))}return i.prototype._=function(e){var t=this;return function(r){var n=e.match(/enter/i)?r.next:r.current,s=t.byNamespace.get(n.namespace);return s&&s[e]?ln(s[e],s)(r):Promise.resolve()}},i}();Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector),Element.prototype.closest||(Element.prototype.closest=function(i){var e=this;do{if(e.matches(i))return e;e=e.parentElement||e.parentNode}while(e!==null&&e.nodeType===1);return null});var Wm={container:null,html:"",namespace:"",url:{hash:"",href:"",path:"",port:null,query:{}}},Po=new(function(){function i(){this.version="2.10.3",this.schemaPage=Wm,this.Logger=Ei,this.logger=new Ei("@barba/core"),this.plugins=[],this.timeout=void 0,this.cacheIgnore=void 0,this.cacheFirstPage=void 0,this.prefetchIgnore=void 0,this.preventRunning=void 0,this.hooks=Ur,this.cache=void 0,this.headers=void 0,this.prevent=void 0,this.transitions=void 0,this.views=void 0,this.dom=Oi,this.helpers=xm,this.history=jd,this.request=Cm,this.url=Pm,this.D=void 0,this.B=void 0,this.q=void 0,this.F=void 0}var e=i.prototype;return e.use=function(t,r){var n=this.plugins;n.indexOf(t)>-1?this.logger.warn("Plugin ["+t.name+"] already installed."):typeof t.install=="function"?(t.install(this,r),n.push(t)):this.logger.warn("Plugin ["+t.name+'] has no "install" method.')},e.init=function(t){var r=t===void 0?{}:t,n=r.transitions,s=n===void 0?[]:n,o=r.views,a=o===void 0?[]:o,l=r.schema,u=l===void 0?Sr:l,c=r.requestError,f=r.timeout,h=f===void 0?2e3:f,d=r.cacheIgnore,g=d!==void 0&&d,p=r.cacheFirstPage,m=p!==void 0&&p,y=r.prefetchIgnore,b=y!==void 0&&y,v=r.preventRunning,_=v!==void 0&&v,D=r.prevent,S=D===void 0?null:D,C=r.debug,w=r.logLevel;if(Ei.setLevel((C!==void 0&&C)===!0?"debug":w===void 0?"off":w),this.logger.info(this.version),Object.keys(u).forEach(function(T){Sr[T]&&(Sr[T]=u[T])}),this.B=c,this.timeout=h,this.cacheIgnore=g,this.cacheFirstPage=m,this.prefetchIgnore=b,this.preventRunning=_,this.q=this.dom.getWrapper(),!this.q)throw new Error("[@barba/core] No Barba wrapper found");this.I();var x=this.data.current;if(!x.container)throw new Error("[@barba/core] No Barba container found");if(this.cache=new Em(g),this.headers=new Om,this.prevent=new jm(b),this.transitions=new zm(s),this.views=new Vm(a),S!==null){if(typeof S!="function")throw new Error("[@barba/core] Prevent should be a function");this.prevent.add("preventCustom",S)}this.history.init(x.url.href,x.namespace),m&&this.cache.set(x.url.href,Promise.resolve({html:x.html,url:x.url}),"init","fulfilled"),this.U=this.U.bind(this),this.$=this.$.bind(this),this.X=this.X.bind(this),this.G(),this.plugins.forEach(function(T){return T.init()});var P=this.data;P.trigger="barba",P.next=P.current,P.current=_r({},this.schemaPage),this.hooks.do("ready",P),this.once(P),this.I()},e.destroy=function(){this.I(),this.J(),this.history.clear(),this.hooks.clear(),this.plugins=[]},e.force=function(t){window.location.assign(t)},e.go=function(t,r,n){var s;if(r===void 0&&(r="barba"),this.F=null,this.transitions.isRunning)this.force(t);else if(!(s=r==="popstate"?this.history.current&&this.url.getPath(this.history.current.url)===this.url.getPath(t)&&this.url.getQuery(this.history.current.url,!0)===this.url.getQuery(t,!0):this.prevent.run("sameUrl",null,null,t))||this.transitions.hasSelf)return r=this.history.change(this.cache.has(t)?this.cache.get(t).target:t,r,n),n&&(n.stopPropagation(),n.preventDefault()),this.page(t,r,n??void 0,s)},e.once=function(t){try{var r=this;return Promise.resolve(r.hooks.do("beforeEnter",t)).then(function(){function n(){return Promise.resolve(r.hooks.do("afterEnter",t)).then(function(){})}var s=function(){if(r.transitions.hasOnce){var o=r.transitions.get(t,{once:!0});return Promise.resolve(r.transitions.doOnce({transition:o,data:t})).then(function(){})}}();return s&&s.then?s.then(n):n()})}catch(n){return Promise.reject(n)}},e.page=function(t,r,n,s){try{var o,a=function(){var f=l.data;return Promise.resolve(l.hooks.do("page",f)).then(function(){var h=function(d,g){try{var p=(m=l.transitions.get(f,{once:!1,self:s}),Promise.resolve(l.transitions.doPage({data:f,page:o,transition:m,wrapper:l.q})).then(function(){l.I()}))}catch{return g()}var m;return p&&p.then?p.then(void 0,g):p}(0,function(){Ei.getLevel()===0&&l.force(f.next.url.href)});if(h&&h.then)return h.then(function(){})})},l=this;if(l.data.next.url=_r({href:t},l.url.parse(t)),l.data.trigger=r,l.data.event=n,l.cache.has(t))o=l.cache.update(t,{action:"click"}).request;else{var u=l.request(t,l.timeout,l.onRequestError.bind(l,r),l.cache,l.headers);u.then(function(f){f.url.href!==t&&l.history.add(f.url.href,r,"replace")}),o=l.cache.set(t,u,"click","pending").request}var c=function(){if(l.transitions.shouldWait)return Promise.resolve(Wo(o,l.data)).then(function(){})}();return Promise.resolve(c&&c.then?c.then(a):a())}catch(f){return Promise.reject(f)}},e.onRequestError=function(t){this.transitions.isRunning=!1;
1var r=[].slice.call(arguments,1),n=r[0],s=r[1],o=this.cache.getAction(n);return this.cache.delete(n),this.B&&this.B(t,o,n,s)===!1||o==="click"&&this.force(n),!1},e.prefetch=function(t){var r=this;t=this.url.getAbsoluteHref(t),this.cache.has(t)||this.cache.set(t,this.request(t,this.timeout,this.onRequestError.bind(this,"barba"),this.cache,this.headers).catch(function(n){r.logger.error(n)}),"prefetch","pending")},e.G=function(){this.prefetchIgnore!==!0&&(document.addEventListener("mouseover",this.U),document.addEventListener("touchstart",this.U)),document.addEventListener("click",this.$),window.addEventListener("popstate",this.X)},e.J=function(){this.prefetchIgnore!==!0&&(document.removeEventListener("mouseover",this.U),document.removeEventListener("touchstart",this.U)),document.removeEventListener("click",this.$),window.removeEventListener("popstate",this.X)},e.U=function(t){var r=this,n=this.W(t);if(n){var s=this.url.getAbsoluteHref(this.dom.getHref(n));this.prevent.checkHref(s)||this.cache.has(s)||this.cache.set(s,this.request(s,this.timeout,this.onRequestError.bind(this,n),this.cache,this.headers).catch(function(o){r.logger.error(o)}),"enter","pending")}},e.$=function(t){var r=this.W(t);if(r){if(this.transitions.isRunning&&this.preventRunning)return t.preventDefault(),void t.stopPropagation();this.F=t,this.go(this.dom.getHref(r),r,t)}},e.X=function(t){this.go(this.url.getHref(),"popstate",t)},e.W=function(t){for(var r=t.target;r&&!this.dom.getHref(r);)r=r.parentNode;if(r&&!this.prevent.checkLink(r,t,this.dom.getHref(r)))return r},e.I=function(){var t=this.url.getHref(),r={container:this.dom.getContainer(),html:this.dom.getHtml(),namespace:this.dom.getNamespace(),url:_r({href:t},this.url.parse(t))};this.D={current:r,event:void 0,next:_r({},this.schemaPage),trigger:void 0},this.hooks.do("reset",this.data)},Iu(i,[{key:"data",get:function(){return this.D}},{key:"wrapper",get:function(){return this.q}}]),i}());function qm(i,e){e=e||200;let t;return function(r){t&&clearTimeout(t),t=setTimeout(i,e,r)}}function qd(i,e){return i=Math.ceil(i),e=Math.floor(e),Math.floor(Math.random()*(e-i+1))+i}const Pc=i=>{i?document.body.style.height=`${window.APP.height}px`:document.body.style.height="auto",document.body.classList.toggle("overflow",i)};Window.prototype.on=function(i,e){return this.addEventListener(i,e),"emitters"in this||(this.emitter={}),i in this.emitter||(this.emitter[i]=[]),this.emitter[i]={event:i,callback:e},this};Window.prototype.off=function(i,e){return e?(this.removeEventListener(i,e),this):(this.removeEventListener(i,this.emitter[i].callback),this)};Window.prototype.emit=function(i,e){return this.dispatchEvent(new CustomEvent(i,{detail:e})),this};window.APP=window.APP;class Gm{constructor(){E(this,"root");E(this,"cRoot");E(this,"width");E(this,"height");E(this,"onResizeEvent");E(this,"onRemoveEvent");E(this,"isHoverable");E(this,"isTouchScreen");E(this,"isOnlyTouch");E(this,"isPortrait");E(this,"base");E(this,"originWidth");E(this,"originMargin");E(this,"columnsCount");E(this,"columnsSize");E(this,"columnsGap");E(this,"margin");E(this,"header");return this.root=document.querySelector(":root"),this.cRoot=getComputedStyle(this.root),this.width=parseInt(this.cRoot.getPropertyValue("--width")),this.height=0,this.isHoverable=!1,this.isTouchScreen=!1,this.isPortrait=!1,this.base=0,this.originWidth=0,this.originMargin=0,this.columnsCount=0,this.columnsSize=0,this.columnsGap=0,this.margin=0,this.header=0,this.on(),this}async on(){await this.bindEvents(),await this._onResize(),await window.emit("on")}getOriginVariables(){this.base=parseInt(this.cRoot.getPropertyValue("--base-limit")),this.originWidth=parseInt(this.cRoot.getPropertyValue("--origin-width")),this.originMargin=parseInt(this.cRoot.getPropertyValue("--origin-margin")),this.columnsGap=parseInt(this.cRoot.getPropertyValue("--columns-gap")),this.columnsCount=parseInt(this.cRoot.getPropertyValue("--columns-count"))}getVariable(){this.width=window.innerWidth-(window.innerWidth-document.body.clientWidth),this.height=window.innerHeight,this.header=document.querySelector(".header").clientHeight,this.isHoverable=window.matchMedia("(hover: hover)").matches&&this.width>1023,this.isTouchScreen="ontouchstart"in window,this.isOnlyTouch=!this.isHoverable&&this.isTouchScreen||this.width<=1023,this.isPortrait=window.innerWidth>window.innerHeight,this.width>=this.base?this.margin=+(this.width-(this.base-this.originMargin*2)).toFixed(2)/2:this.margin=+(+this.originMargin/this.originWidth*this.width).toFixed(2),this.columnsSize=+((this.width-this.margin*2-this.columnsGap*(this.columnsCount-1))/this.columnsCount).toFixed(2)}setVariable(){this.root.style.setProperty("--header",`${this.header}px`),this.root.style.setProperty("--vw",`${this.width}px`),this.root.style.setProperty("--vwNoUnit",`${this.width}`),this.root.style.setProperty("--vh",`${this.height}px`),this.root.style.setProperty("--margin",`${this.margin}px`),this.root.style.setProperty("--columns-size",`${this.columnsSize}px`),document.body.classList.toggle("onlyTouch",this.isOnlyTouch),document.body.classList.toggle("canTouchThis",this.isTouchScreen&&!this.isOnlyTouch),document.body.classList.toggle("canHover",this.isHoverable)}_onResize(){this.getOriginVariables(),this.getVariable(),this.setVariable(),window.APP=this,window.emit("resized")}_onRemove(){window.emit("off")}bindEvents(){window.addEventListener("resize",qm(this._onResize.bind(this),150))}}class Ym{constructor(){E(this,"root");E(this,"$el");E(this,"columnsCount");this.root=getComputedStyle(document.querySelector(":root")),this.$el=document.createElement("div"),this.columnsCount=window.APP.columnsCount,document.body.append(this.$el),this.$el.classList.add("grid-tpl","hide"),this.init(),this.bindEvents()}init(){this.handleColumns()}bindEvents(){window.addEventListener("resized",()=>this._onResize()),window.addEventListener("keydown",e=>{const{key:t,shiftKey:r,ctrlKey:n,metaKey:s}=e;(t==="G"&&r&&n||t==="G"&&r&&s)&&(e.preventDefault(),this.$el.classList.toggle("hide"))})}_onResize(){this.handleColumns()}handleColumns(){this.columnsCount=window.APP.columnsCount,this.createColumns()}createColumns(){let e="";for(let t=0;t<this.columnsCount;t++)e+="<div class='col'></div>";this.$el.innerHTML=e}}const Um=()=>{const i="ð«°",t=window.matchMedia("(prefers-color-scheme: dark)").matches?"#ffffff"
1:"#000000",r=`<svg viewBox="0 0 211 27" xmlns="http://www.w3.org/2000/svg"> 2 <path d="M39.3402 18.1408C35.7395 18.1408 32.1388 14.5401 32.1388 10.9395C32.1388 14.5401 28.5382 18.1408 24.9375 18.1408C28.5382 18.1408 32.1388 21.7415 32.1388 25.3422C32.1388 21.7415 35.7395 18.1408 39.3402 18.1408V18.1408Z" fill="#00D749" /> 3 <path fill="${t}" d="M21.1349 25.3405L32.1394 4.55848L43.1439 25.3405H49.2486L36.1631 0.625H28.1137L17.1112 21.4091L6.10671 0.625H0L13.0855 25.3405H21.1349Z" /> 4 <path fill="${t}" d="M51.6348 0.625H59.596L76.9779 20.4046V0.625H82.3669V25.3405H74.4057L57.0218 5.49273V25.3405H51.6328V0.625H51.6348Z" /> 5 <path fill="${t}" d="M87.3262 0.625H92.7152V13.2434L108.497 0.625H116.527L103.908 10.7053L116.527 25.3405H109.887L99.9446 13.903L92.7132 19.709V25.3405H87.3242V0.625H87.3262Z"/> 6 <path fill="${t}" d="M117.527 17.1032H123.125C123.125 20.5796 125.976 22.0391 133.033 22.0391C139.324 22.0391 141.688 21.0307 141.688 18.4244C141.688 15.8181 139.879 15.4011 132.754 14.948L131.399 14.8438C121.735 14.2523 118.189 12.2375 118.189 7.12717C118.189 2.01686 123.089 0 131.746 0C141.2 0 146.032 2.85087 146.206 8.51652H140.645C140.645 5.07422 137.447 3.99763 131.433 3.99763C125.767 3.99763 123.75 4.93589 123.75 7.16125C123.75 9.69937 125.593 10.2908 132.163 10.7419L133.622 10.8461C142.277 11.5057 147.249 12.2375 147.249 18.25C147.249 24.2624 141.93 26.0367 133.101 26.0367C123.089 26.0367 117.736 23.7773 117.527 17.1032V17.1032Z"/> 7 <path fill="${t}" d="M150.855 0.625H175.363V4.76096H156.242V11.0521H174.667V14.8753H156.242V21.2026H175.363V25.3385H150.855V0.625Z"/> 8 <path fill="${t}" d="M179.316 0.625H187.278L204.659 20.4046V0.625H210.048V25.3405H202.087L184.705 5.49072V25.3405H179.316V0.625Z"/> 9 </svg>`,n=`data:image/svg+xml;base64,${btoa(r)}`;setTimeout(console.log.bind(console,`%c %cwww.vanksen.com %c${i} `,` 10 padding-left: 100px; 11 padding-bottom: 20px; 12 margin-right: 100%; 13 background-image: url(${n}); 14 background-size: contain; 15 background-position: center center; 16 background-repeat: no-repeat;`,`font-size:11px; font-weight: 600; width:10px; height:10px; padding-bottom: 20px; color:${t}`,"font-size:20px; padding: 10px 0; margin-right: 100%;"))};let Xm=class{constructor({$els:e,options:t}){E(this,"$els");E(this,"observer");E(this,"sidenavObserver");E(this,"events");this.$els=e;const r=new CustomEvent("appear",{detail:{}}),n=new CustomEvent("visible",{detail:{}}),s=new CustomEvent("hidden",{detail:{}}),o=(a,l)=>{a.forEach(u=>{var c;if(u.isIntersecting)if(u.target.classList.contains("--appear"))u.target.dispatchEvent(n);else{const f=u.target;f.dispatchEvent(r),f.classList.add("--appear"),((c=f==null?void 0:f.dataset)==null?void 0:c.observer)==="appear"&&l.unobserve(u.target)}else u.target.dispatchEvent(s)})};this.sidenavObserver=new IntersectionObserver(o,{rootMargin:"-50% 0px"}),this.observer=new IntersectionObserver(o,t),this.$els.forEach(a=>{a.hasAttribute("data-sidenav-limit")?this.sidenavObserver.observe(a):this.observer.observe(a)}),this.bindEvents()}bindEvents(){this.events={removeEvents:this.removeEvents.bind(this)},window.addEventListener("removeEvents",this.events.removeEvents)}removeEvents(){this.observer.disconnect(),window.removeEventListener("removeEvents",this.events.removeEvents)}};class Km{constructor({$el:e}){E(this,"$el");E(this,"type");this.$el=e,this.type=null,this.init()}init(){if(this.defineType(),!this.type)return;const e=document.createElement("span");this.type==="download"?(e.innerHTML=this.downloadIcon(),this.$el.insertBefore(e,this.$el.firstChild)):(e.innerHTML=this.arrowIcon(),this.$el.append(e))}defineType(){this.$el.classList.contains("btn-download")?this.type="download":this.$el.classList.contains("btn-ghost")?this.type="arrow":this.type=null}downloadIcon(){return`<span icon icon-download> 17 <svg width="16" height="16" viewBox="0 0 16 16" fill="none"> 18 <path 19 d="M14.75 9.78125V14.125C14.75 14.4696 14.4696 14.75 14.125 14.75H1.875C1.53038 14.75 1.25 14.4696 1.25 14.125V9.78125H0V14.125C0 15.1589 0.841125 16 1.875 16H14.125C15.1589 16 16 15.1589 16 14.125V9.78125H14.75Z" 20 fill="currentColor" /> 21 <path 22 d="M11.0001 7.36613L8.62509 9.74113V0H7.37509V9.74113L5.00009 7.36613L4.11621 8.25L8.00009 12.1339L11.884 8.25L11.0001 7.36613Z" 23 fill="currentColor" /> 24 </svg> 25 </span>`}arrowIcon(){return`<span class="icon icon-arrow-left"> 26 <svg width="39" height="15" viewBox="0 0 39 15" fill="none"> 27 <path d="M38 7.5L38.3674 7.83914C38.5442 7.64761 38.5442 7.35239 38.3674 7.16086L38 7.5ZM19.5816 8.50677L19.2766 8.90297L19.5816 8.50677ZM32.3674 14.3391L38.3674 7.83914L37.6326 7.16086L31.6326 13.6609L32.3674 14.3391ZM38.3674 7.16086L32.3674 0.66086L31.6326 1.33914L37.6326 7.83914L38.3674 7.16086ZM38 7.12373C33.0704 7.12374 29.626 8.32214 26.8888 9.01081C25.5122 9.35717 24.3407 9.5688 23.2254 9.47964C22.1276 9.39187 21.0543 9.00951 19.8866 8.11057L19.2766 8.90297C20.5864 9.91129 21.8415 10.3722 23.1457 10.4765C24.4326 10.5793 25.7369 10.3318 27.1328 9.98059C29.9407 9.27412 33.2279 8.12374 38 8.12373V7.12373ZM19.8866 8.11057C16.7682 5.71 14.4363 4.47561 11.6045 4.50036C8.82007 4.5247 5.62585 5.77058 0.786587 8.05461L1.21341 8.95894C6.08294 6.66063 9.08255 5.52244 11.6132 5.50033C14.0965 5.47862 16.2011 6.5354 19.2766 8.90297L19.8866 8.11057Z" fill="currentColor"/> 28 </svg> 29 </span>`}}class Bt{constructor(){E(this,"emitter");E(this,"events");E(this,"eid");E(this,"state");this.events={},this.eid=`${qd(0,1e5)}`,this.state={on:!1};const e=this;HTMLElement.prototype.on=function(t,r){return this.addEventListener(t,r),this.setEmitter(t,`${t}-${e.eid}`,r),this},HTMLElement.prototype.setEmitter=function(t,r,n){return"emitters"in this||(this.emitters={}),e.eid in this.emitters||(this.emitters[e.eid]=[],e.events[e.eid]=[]),this.emitters[e.eid].push({eid:r,event:t,callback:n}),e.events[e.eid].push({eid:r,event:t,callback:n,el:this}),this},HTMLElement.prototype.off=function(t,r,n){return typeof n<"u"?(this.removeEventListener(t,n),this):(this.emitters[`${r}`].forEach(o=>{this.removeEventListener(t,o.callback)}),this)},HTMLElement.prototype.emit=function(t,r=""){return this.dispatchEvent(new CustomEvent(t,{detail:r})),this}}on(e){e?this.events[`${e}-${this.eid}`].forEach(t=>{const{event:r,el:n,callback:s}=t;n.addEventListener(r,s)}
29):Object.keys(this.events).forEach(t=>{t&&this.events[t].forEach(r=>{const{event:n,el:s,callback:o}=r;s.addEventListener(n,o)})})}off(e){this.events&&(e?this.events[`${e}-${this.eid}`].forEach(t=>{const{event:r,el:n,callback:s}=t;n.removeEventListener(r,s)}):Object.keys(this.events).forEach(t=>{t&&this.events[t].forEach(r=>{const{event:n,el:s,callback:o}=r;s.removeEventListener(n,o)})}))}}function kr(i){if(i===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return i}function Gd(i,e){i.prototype=Object.create(e.prototype),i.prototype.constructor=i,i.__proto__=e}/*! 30 * GSAP 3.11.4 31 * https://greensock.com 32 * 33 * @license Copyright 2008-2022, GreenSock. All rights reserved. 34 * Subject to the terms at https://greensock.com/standard-license or for 35 * Club GreenSock members, the agreement issued with that membership. 36 * @author: Jack Doyle, [email protected] 37*/var It={autoSleep:120,force3D:"auto",nullTargetWarn:1,units:{lineHeight:""}},Sn={duration:.5,overwrite:!1,delay:0},Nu,ht,Ye,Gt=1e8,Ce=1/Gt,Ml=Math.PI*2,Qm=Ml/4,Jm=0,Yd=Math.sqrt,Zm=Math.cos,ev=Math.sin,it=function(e){return typeof e=="string"},je=function(e){return typeof e=="function"},Hr=function(e){return typeof e=="number"},Ru=function(e){return typeof e>"u"},Cr=function(e){return typeof e=="object"},xt=function(e){return e!==!1},Ud=function(){return typeof window<"u"},Zs=function(e){return je(e)||it(e)},Xd=typeof ArrayBuffer=="function"&&ArrayBuffer.isView||function(){},pt=Array.isArray,Al=/(?:-?\.?\d|\.)+/gi,Kd=/[-+=.]*\d+[.e\-+]*\d*[e\-+]*\d*/g,un=/[-+=.]*\d+[.e-]*\d*[a-z%]*/g,Ga=/[-+=.]*\d+\.?\d*(?:e-|e\+)?\d*/gi,Qd=/[+-]=-?[.\d]+/,Jd=/[^,'"\[\]\s]+/gi,tv=/^[+\-=e\s\d]*\d+[.\d]*([a-z]*|%)\s*$/i,ke,Vt,kl,Bu,Nt={},qo={},Zd,eh=function(e){return(qo=ji(e,Nt))&&Rt},ju=function(e,t){return console.warn("Invalid property",e,"set to",t,"Missing plugin? gsap.registerPlugin()")},Go=function(e,t){return!t&&console.warn(e)},th=function(e,t){return e&&(Nt[e]=t)&&qo&&(qo[e]=t)||Nt},Ds=function(){return 0},rv={suppressEvents:!0,isStart:!0,kill:!1},Co={suppressEvents:!0,kill:!1},iv={suppressEvents:!0},Hu={},oi=[],Ll={},rh,Mt={},Ya={},Cc=30,To=[],zu="",Vu=function(e){var t=e[0],r,n;if(Cr(t)||je(t)||(e=[e]),!(r=(t._gsap||{}).harness)){for(n=To.length;n--&&!To[n].targetTest(t););r=To[n]}for(n=e.length;n--;)e[n]&&(e[n]._gsap||(e[n]._gsap=new xh(e[n],r)))||e.splice(n,1);return e},Ai=function(e){return e._gsap||Vu(Yt(e))[0]._gsap},ih=function(e,t,r){return(r=e[t])&&je(r)?e[t]():Ru(r)&&e.getAttribute&&e.getAttribute(t)||r},Pt=function(e,t){return(e=e.split(",")).forEach(t)||e},ze=function(e){return Math.round(e*1e5)/1e5||0},at=function(e){return Math.round(e*1e7)/1e7||0},gn=function(e,t){var r=t.charAt(0),n=parseFloat(t.substr(2));return e=parseFloat(e),r==="+"?e+n:r==="-"?e-n:r==="*"?e*n:e/n},nv=function(e,t){for(var r=t.length,n=0;e.indexOf(t[n])<0&&++n<r;);return n<r},Yo=function(){var e=oi.length,t=oi.slice(0),r,n;for(Ll={},oi.length=0,r=0;r<e;r++)n=t[r],n&&n._lazy&&(n.render(n._lazy[0],n._lazy[1],!0)._lazy=0)},nh=function(e,t,r,n){oi.length&&!ht&&Yo(),e.render(t,r,ht&&t<0&&(e._initted||e._startAt)),oi.length&&!ht&&Yo()},sh=function(e){var t=parseFloat(e);return(t||t===0)&&(e+"").match(Jd).length<2?t:it(e)?e.trim():e},oh=function(e){return e},Jt=function(e,t){for(var r in t)r in e||(e[r]=t[r]);return e},sv=function(e){return function(t,r){for(var n in r)n in t||n==="duration"&&e||n==="ease"||(t[n]=r[n])}},ji=function(e,t){for(var r in t)e[r]=t[r];return e},Tc=function i(e,t){for(var r in t)r!=="__proto__"&&r!=="constructor"&&r!=="prototype"&&(e[r]=Cr(t[r])?i(e[r]||(e[r]={}),t[r]):t[r]);return e},Uo=function(e,t){var r={},n;for(n in e)n in t||(r[n]=e[n]);return r},ss=function(e){var t=e.parent||ke,r=e.keyframes?sv(pt(e.keyframes)):Jt;if(xt(e.inherit))for(;t;)r(e,t.vars.defaults),t=t.parent||t._dp;return e},ov=function(e,t){for(var r=e.length,n=r===t.length;n&&r--&&e[r]===t[r];);return r<0},ah=function(e,t,r,n,s){var o=e[n],a;if(s)for(a=t[s];o&&o[s]>a;)o=o._prev;return o?(t._next=o._next,o._next=t):(t._next=e[r],e[r]=t),t._next?t._next._prev=t:e[n]=t,t._prev=o,t.parent=t._dp=e,t},Fa=function(e,t,r,n){r===void 0&&(r="_first"),n===void 0&&(n="_last");var s=t._prev,o=t._next;s?s._next=o:e[r]===t&&(e[r]=o),o?o._prev=s:e[n]===t&&(e[n]=s),t._next=t._prev=t.parent=null},fi=function(e,t){e.parent&&(!t||e.parent.autoRemoveChildren)&&e.parent.remove(e),e._act=0},ki=function(e,t){if(e&&(!t||t._end>e._dur||t._start<0))for(var r=e;r;)r._dirty=1,r=r.parent;return e},av=function(e){for(var t=e.parent;t&&t.parent;)t._dirty=1,t.totalDuration(),t=t.parent;return e},Fl=function(e,t,r,n){return e._startAt&&(ht?e._startAt.revert(Co):e.vars.immediateRender&&!e.vars.autoRevert||e._startAt.render(t,!0,n))},lv=function i(e){return!e||e._ts&&i(e.parent)},Ec=function(e){return e._repeat?xn(e._tTime,e=e.duration()+e._rDelay)*e:0},xn=function(e,t){var r=Math.floor(e/=t);return e&&r===e?r-1:r},Xo=function(e,t){return(e-t._start)*t._ts+(t._ts>=0?0:t._dirty?t.totalDuration():t._tDur)},Ia=function(e){return e._end=at(e._start+(e._tDur/Math.abs(e._ts||e._rts||Ce)||0))},Na=function(e,t){var r=e._dp;return r&&r.smoothChildTiming&&e._ts&&(e._start=at(r._time-(e._ts>0?t/e._ts:((e._dirty?e.totalDuration():e._tDur)-t)/-e._ts)),Ia(e),r._dirty||ki(r,e)),e},lh=function(e,t){var r;if((t._time||t._initted&&!t._dur)&&(r=Xo(e.rawTime(),t),(!t._dur||Us(0,t.totalDuration(),r)-t._tTime>Ce)&&t.render(r,!0)),ki(e,t)._dp&&e._initted&&e._time>=e._dur&&e._ts){if(e._dur<e.duration())for(r=e;r._dp;)r.rawTime()>=0&&r.totalTime(r._tTime),r=r._dp;e._zTime=-Ce}},br=function(e,t,r,n){return t.parent&&fi(t),t._start=at((Hr(r)?r:r||e!==ke?zt(e,r,t):e._time)+t._delay),t._end=at(t._start+(t.totalDuration()/Math.abs(t.timeScale())||0)),ah(e,t,"_first","_last",e._sort?"_start":0),Il(t)||(e._recent=t),n||lh(e,t),e._ts<0&&Na(e,e._tTime),e},uh=function(e,t){return(Nt.ScrollTrigger||ju("scrollTrigger",t))&&Nt.ScrollTrigger.create(t,e)},ch=function(e,t,r,n,s){if(qu(e,t,s),!e._initted)return 1;if(!r&&e._pt&&!ht&&(e._dur&&e.vars.lazy!==!1||!e._dur&&e.vars.lazy)&&rh!==Lt.frame)return oi.push(e),e._lazy=[s,n],1},uv=function i(e){var t=e.parent;return t&&t._ts&&t._initted&&!t._lock&&(t.rawTime()<0||i(t))},Il=function(e){var t=e.data;return t==="isFromStart"||t==="isStart"},cv=function(e,t,r,n){var s=e.ratio,o=t<0||!t&&(!e._start&&uv(e)&&!(!e._initted&&Il(e))||(e._ts<0||e._dp._ts<0)&&!Il(e))?0:1,a=e._rDelay,l=0,u,c,f;if(a&&e._repeat&&(l=Us(0,e._tDur,t),c=xn(l,a),e._yoyo&&c&1&&(o=1-o),c!==xn(e._tTime,a)&&(s=1-o,e.vars.repeatRefresh&&e._initted&&e.invali
37date())),o!==s||ht||n||e._zTime===Ce||!t&&e._zTime){if(!e._initted&&ch(e,t,n,r,l))return;for(f=e._zTime,e._zTime=t||(r?Ce:0),r||(r=t&&!f),e.ratio=o,e._from&&(o=1-o),e._time=0,e._tTime=l,u=e._pt;u;)u.r(o,u.d),u=u._next;t<0&&Fl(e,t,r,!0),e._onUpdate&&!r&&Ut(e,"onUpdate"),l&&e._repeat&&!r&&e.parent&&Ut(e,"onRepeat"),(t>=e._tDur||t<0)&&e.ratio===o&&(o&&fi(e,1),!r&&!ht&&(Ut(e,o?"onComplete":"onReverseComplete",!0),e._prom&&e._prom()))}else e._zTime||(e._zTime=t)},fv=function(e,t,r){var n;if(r>t)for(n=e._first;n&&n._start<=r;){if(n.data==="isPause"&&n._start>t)return n;n=n._next}else for(n=e._last;n&&n._start>=r;){if(n.data==="isPause"&&n._start<t)return n;n=n._prev}},Pn=function(e,t,r,n){var s=e._repeat,o=at(t)||0,a=e._tTime/e._tDur;return a&&!n&&(e._time*=o/e._dur),e._dur=o,e._tDur=s?s<0?1e10:at(o*(s+1)+e._rDelay*s):o,a>0&&!n&&Na(e,e._tTime=e._tDur*a),e.parent&&Ia(e),r||ki(e.parent,e),e},Oc=function(e){return e instanceof St?ki(e):Pn(e,e._dur)},dv={_start:0,endTime:Ds,totalDuration:Ds},zt=function i(e,t,r){var n=e.labels,s=e._recent||dv,o=e.duration()>=Gt?s.endTime(!1):e._dur,a,l,u;return it(t)&&(isNaN(t)||t in n)?(l=t.charAt(0),u=t.substr(-1)==="%",a=t.indexOf("="),l==="<"||l===">"?(a>=0&&(t=t.replace(/=/,"")),(l==="<"?s._start:s.endTime(s._repeat>=0))+(parseFloat(t.substr(1))||0)*(u?(a<0?s:r).totalDuration()/100:1)):a<0?(t in n||(n[t]=o),n[t]):(l=parseFloat(t.charAt(a-1)+t.substr(a+1)),u&&r&&(l=l/100*(pt(r)?r[0]:r).totalDuration()),a>1?i(e,t.substr(0,a-1),r)+l:o+l)):t==null?o:+t},os=function(e,t,r){var n=Hr(t[1]),s=(n?2:1)+(e<2?0:1),o=t[s],a,l;if(n&&(o.duration=t[1]),o.parent=r,e){for(a=o,l=r;l&&!("immediateRender"in a);)a=l.vars.defaults||{},l=xt(l.vars.inherit)&&l.parent;o.immediateRender=xt(a.immediateRender),e<2?o.runBackwards=1:o.startAt=t[s-1]}return new Ke(t[0],o,t[s+1])},mi=function(e,t){return e||e===0?t(e):t},Us=function(e,t,r){return r<e?e:r>t?t:r},dt=function(e,t){return!it(e)||!(t=tv.exec(e))?"":t[1]},hv=function(e,t,r){return mi(r,function(n){return Us(e,t,n)})},Nl=[].slice,fh=function(e,t){return e&&Cr(e)&&"length"in e&&(!t&&!e.length||e.length-1 in e&&Cr(e[0]))&&!e.nodeType&&e!==Vt},pv=function(e,t,r){return r===void 0&&(r=[]),e.forEach(function(n){var s;return it(n)&&!t||fh(n,1)?(s=r).push.apply(s,Yt(n)):r.push(n)})||r},Yt=function(e,t,r){return Ye&&!t&&Ye.selector?Ye.selector(e):it(e)&&!r&&(kl||!Cn())?Nl.call((t||Bu).querySelectorAll(e),0):pt(e)?pv(e,r):fh(e)?Nl.call(e,0):e?[e]:[]},Rl=function(e){return e=Yt(e)[0]||Go("Invalid scope")||{},function(t){var r=e.current||e.nativeElement||e;return Yt(t,r.querySelectorAll?r:r===e?Go("Invalid scope")||Bu.createElement("div"):e)}},dh=function(e){return e.sort(function(){return .5-Math.random()})},hh=function(e){if(je(e))return e;var t=Cr(e)?e:{each:e},r=Li(t.ease),n=t.from||0,s=parseFloat(t.base)||0,o={},a=n>0&&n<1,l=isNaN(n)||a,u=t.axis,c=n,f=n;return it(n)?c=f={center:.5,edges:.5,end:1}[n]||0:!a&&l&&(c=n[0],f=n[1]),function(h,d,g){var p=(g||t).length,m=o[p],y,b,v,_,D,S,C,w,x;if(!m){if(x=t.grid==="auto"?0:(t.grid||[1,Gt])[1],!x){for(C=-Gt;C<(C=g[x++].getBoundingClientRect().left)&&x<p;);x--}for(m=o[p]=[],y=l?Math.min(x,p)*c-.5:n%x,b=x===Gt?0:l?p*f/x-.5:n/x|0,C=0,w=Gt,S=0;S<p;S++)v=S%x-y,_=b-(S/x|0),m[S]=D=u?Math.abs(u==="y"?_:v):Yd(v*v+_*_),D>C&&(C=D),D<w&&(w=D);n==="random"&&dh(m),m.max=C-w,m.min=w,m.v=p=(parseFloat(t.amount)||parseFloat(t.each)*(x>p?p-1:u?u==="y"?p/x:x:Math.max(x,p/x))||0)*(n==="edges"?-1:1),m.b=p<0?s-p:s,m.u=dt(t.amount||t.each)||0,r=r&&p<0?wh(r):r}return p=(m[h]-m.min)/m.max||0,at(m.b+(r?r(p):p)*m.v)+m.u}},Bl=function(e){var t=Math.pow(10,((e+"").split(".")[1]||"").length);return function(r){var n=at(Math.round(parseFloat(r)/e)*e*t);return(n-n%1)/t+(Hr(r)?0:dt(r))}},ph=function(e,t){var r=pt(e),n,s;return!r&&Cr(e)&&(n=r=e.radius||Gt,e.values?(e=Yt(e.values),(s=!Hr(e[0]))&&(n*=n)):e=Bl(e.increment)),mi(t,r?je(e)?function(o){return s=e(o),Math.abs(s-o)<=n?s:o}:function(o){for(var a=parseFloat(s?o.x:o),l=parseFloat(s?o.y:0),u=Gt,c=0,f=e.length,h,d;f--;)s?(h=e[f].x-a,d=e[f].y-l,h=h*h+d*d):h=Math.abs(e[f]-a),h<u&&(u=h,c=f);return c=!n||u<=n?e[c]:o,s||c===o||Hr(o)?c:c+dt(o)}:Bl(e))},gh=function(e,t,r,n){return mi(pt(e)?!t:r===!0?!!(r=0):!n,function(){return pt(e)?e[~~(Math.random()*e.length)]:(r=r||1e-5)&&(n=r<1?Math.pow(10,(r+"").length-2):1)&&Math.floor(Math.round((e-r/2+Math.random()*(t-e+r*.99))/r)*r*n)/n})},gv=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return function(n){return t.reduce(function(s,o){return o(s)},n)}},mv=function(e,t){return function(r){return e(parseFloat(r))+(t||dt(r))}},vv=function(e,t,r){return vh(e,t,0,1,r)},mh=function(e,t,r){return mi(r,function(n){return e[~~t(n)]})},yv=function i(e,t,r){var n=t-e;return pt(e)?mh(e,i(0,e.length),t):mi(r,function(s){return(n+(s-e)%n)%n+e})},bv=function i(e,t,r){var n=t-e,s=n*2;return pt(e)?mh(e,i(0,e.length-1),t):mi(r,function(o){return o=(s+(o-e)%s)%s||
370,e+(o>n?s-o:o)})},Ss=function(e){for(var t=0,r="",n,s,o,a;~(n=e.indexOf("random(",t));)o=e.indexOf(")",n),a=e.charAt(n+7)==="[",s=e.substr(n+7,o-n-7).match(a?Jd:Al),r+=e.substr(t,n-t)+gh(a?s:+s[0],a?0:+s[1],+s[2]||1e-5),t=o+1;return r+e.substr(t,e.length-t)},vh=function(e,t,r,n,s){var o=t-e,a=n-r;return mi(s,function(l){return r+((l-e)/o*a||0)})},_v=function i(e,t,r,n){var s=isNaN(e+t)?0:function(d){return(1-d)*e+d*t};if(!s){var o=it(e),a={},l,u,c,f,h;if(r===!0&&(n=1)&&(r=null),o)e={p:e},t={p:t};else if(pt(e)&&!pt(t)){for(c=[],f=e.length,h=f-2,u=1;u<f;u++)c.push(i(e[u-1],e[u]));f--,s=function(g){g*=f;var p=Math.min(h,~~g);return c[p](g-p)},r=t}else n||(e=ji(pt(e)?[]:{},e));if(!c){for(l in t)Wu.call(a,e,l,"get",t[l]);s=function(g){return Uu(g,a)||(o?e.p:e)}}}return mi(r,s)},$c=function(e,t,r){var n=e.labels,s=Gt,o,a,l;for(o in n)a=n[o]-t,a<0==!!r&&a&&s>(a=Math.abs(a))&&(l=o,s=a);return l},Ut=function(e,t,r){var n=e.vars,s=n[t],o=Ye,a=e._ctx,l,u,c;if(s)return l=n[t+"Params"],u=n.callbackScope||e,r&&oi.length&&Yo(),a&&(Ye=a),c=l?s.apply(u,l):s.call(u),Ye=o,c},Jn=function(e){return fi(e),e.scrollTrigger&&e.scrollTrigger.kill(!!ht),e.progress()<1&&Ut(e,"onInterrupt"),e},cn,wv=function(e){e=!e.name&&e.default||e;var t=e.name,r=je(e),n=t&&!r&&e.init?function(){this._props=[]}:e,s={init:Ds,render:Uu,add:Wu,kill:Nv,modifier:Iv,rawVars:0},o={targetTest:0,get:0,getSetter:Yu,aliases:{},register:0};if(Cn(),e!==n){if(Mt[t])return;Jt(n,Jt(Uo(e,s),o)),ji(n.prototype,ji(s,Uo(e,o))),Mt[n.prop=t]=n,e.targetTest&&(To.push(n),Hu[t]=1),t=(t==="css"?"CSS":t.charAt(0).toUpperCase()+t.substr(1))+"Plugin"}th(t,n),e.register&&e.register(Rt,n,Ct)},Pe=255,Zn={aqua:[0,Pe,Pe],lime:[0,Pe,0],silver:[192,192,192],black:[0,0,0],maroon:[128,0,0],teal:[0,128,128],blue:[0,0,Pe],navy:[0,0,128],white:[Pe,Pe,Pe],olive:[128,128,0],yellow:[Pe,Pe,0],orange:[Pe,165,0],gray:[128,128,128],purple:[128,0,128],green:[0,128,0],red:[Pe,0,0],pink:[Pe,192,203],cyan:[0,Pe,Pe],transparent:[Pe,Pe,Pe,0]},Ua=function(e,t,r){return e+=e<0?1:e>1?-1:0,(e*6<1?t+(r-t)*e*6:e<.5?r:e*3<2?t+(r-t)*(2/3-e)*6:t)*Pe+.5|0},yh=function(e,t,r){var n=e?Hr(e)?[e>>16,e>>8&Pe,e&Pe]:0:Zn.black,s,o,a,l,u,c,f,h,d,g;if(!n){if(e.substr(-1)===","&&(e=e.substr(0,e.length-1)),Zn[e])n=Zn[e];else if(e.charAt(0)==="#"){if(e.length<6&&(s=e.charAt(1),o=e.charAt(2),a=e.charAt(3),e="#"+s+s+o+o+a+a+(e.length===5?e.charAt(4)+e.charAt(4):"")),e.length===9)return n=parseInt(e.substr(1,6),16),[n>>16,n>>8&Pe,n&Pe,parseInt(e.substr(7),16)/255];e=parseInt(e.substr(1),16),n=[e>>16,e>>8&Pe,e&Pe]}else if(e.substr(0,3)==="hsl"){if(n=g=e.match(Al),!t)l=+n[0]%360/360,u=+n[1]/100,c=+n[2]/100,o=c<=.5?c*(u+1):c+u-c*u,s=c*2-o,n.length>3&&(n[3]*=1),n[0]=Ua(l+1/3,s,o),n[1]=Ua(l,s,o),n[2]=Ua(l-1/3,s,o);else if(~e.indexOf("="))return n=e.match(Kd),r&&n.length<4&&(n[3]=1),n}else n=e.match(Al)||Zn.transparent;n=n.map(Number)}return t&&!g&&(s=n[0]/Pe,o=n[1]/Pe,a=n[2]/Pe,f=Math.max(s,o,a),h=Math.min(s,o,a),c=(f+h)/2,f===h?l=u=0:(d=f-h,u=c>.5?d/(2-f-h):d/(f+h),l=f===s?(o-a)/d+(o<a?6:0):f===o?(a-s)/d+2:(s-o)/d+4,l*=60),n[0]=~~(l+.5),n[1]=~~(u*100+.5),n[2]=~~(c*100+.5)),r&&n.length<4&&(n[3]=1),n},bh=function(e){var t=[],r=[],n=-1;return e.split(ai).forEach(function(s){var o=s.match(un)||[];t.push.apply(t,o),r.push(n+=o.length+1)}),t.c=r,t},Mc=function(e,t,r){var n="",s=(e+n).match(ai),o=t?"hsla(":"rgba(",a=0,l,u,c,f;if(!s)return e;if(s=s.map(function(h){return(h=yh(h,t,1))&&o+(t?h[0]+","+h[1]+"%,"+h[2]+"%,"+h[3]:h.join(","))+")"}),r&&(c=bh(e),l=r.c,l.join(n)!==c.c.join(n)))for(u=e.replace(ai,"1").split(un),f=u.length-1;a<f;a++)n+=u[a]+(~l.indexOf(a)?s.shift()||o+"0,0,0,0)":(c.length?c:s.length?s:r).shift());if(!u)for(u=e.split(ai),f=u.length-1;a<f;a++)n+=u[a]+s[a];return n+u[f]},ai=function(){var i="(?:\\b(?:(?:rgb|rgba|hsl|hsla)\\(.+?\\))|\\B#(?:[0-9a-f]{3,4}){1,2}\\b",e;for(e in Zn)i+="|"+e+"\\b";return new RegExp(i+")","gi")}(),Dv=/hsl[a]?\(/,_h=function(e){var t=e.join(" "),r;if(ai.lastIndex=0,ai.test(t))return r=Dv.test(t),e[1]=Mc(e[1],r),e[0]=Mc(e[0],r,bh(e[1])),!0},xs,Lt=function(){var i=Date.now,e=500,t=33,r=i(),n=r,s=1e3/240,o=s,a=[],l,u,c,f,h,d,g=function p(m){var y=i()-n,b=m===!0,v,_,D,S;if(y>e&&(r+=y-t),n+=y,D=n-r,v=D-o,(v>0||b)&&(S=++f.frame,h=D-f.time*1e3,f.time=D=D/1e3,o+=v+(v>
37=s?4:s-v),_=1),b||(l=u(p)),_)for(d=0;d<a.length;d++)a[d](D,h,S,m)};return f={time:0,frame:0,tick:function(){g(!0)},deltaRatio:function(m){return h/(1e3/(m||60))},wake:function(){Zd&&(!kl&&Ud()&&(Vt=kl=window,Bu=Vt.document||{},Nt.gsap=Rt,(Vt.gsapVersions||(Vt.gsapVersions=[])).push(Rt.version),eh(qo||Vt.GreenSockGlobals||!Vt.gsap&&Vt||{}),c=Vt.requestAnimationFrame),l&&f.sleep(),u=c||function(m){return setTimeout(m,o-f.time*1e3+1|0)},xs=1,g(2))},sleep:function(){(c?Vt.cancelAnimationFrame:clearTimeout)(l),xs=0,u=Ds},lagSmoothing:function(m,y){e=m||1/0,t=Math.min(y||33,e)},fps:function(m){s=1e3/(m||240),o=f.time*1e3+s},add:function(m,y,b){var v=y?function(_,D,S,C){m(_,D,S,C),f.remove(v)}:m;return f.remove(m),a[b?"unshift":"push"](v),Cn(),v},remove:function(m,y){~(y=a.indexOf(m))&&a.splice(y,1)&&d>=y&&d--},_listeners:a},f}(),Cn=function(){return!xs&&Lt.wake()},ve={},Sv=/^[\d.\-M][\d.\-,\s]/,xv=/["']/g,Pv=function(e){for(var t={},r=e.substr(1,e.length-3).split(":"),n=r[0],s=1,o=r.length,a,l,u;s<o;s++)l=r[s],a=s!==o-1?l.lastIndexOf(","):l.length,u=l.substr(0,a),t[n]=isNaN(u)?u.replace(xv,"").trim():+u,n=l.substr(a+1).trim();return t},Cv=function(e){var t=e.indexOf("(")+1,r=e.indexOf(")"),n=e.indexOf("(",t);return e.substring(t,~n&&n<r?e.indexOf(")",r+1):r)},Tv=function(e){var t=(e+"").split("("),r=ve[t[0]];return r&&t.length>1&&r.config?r.config.apply(null,~e.indexOf("{")?[Pv(t[1])]:Cv(e).split(",").map(sh)):ve._CE&&Sv.test(e)?ve._CE("",e):r},wh=function(e){return function(t){return 1-e(1-t)}},Dh=function i(e,t){for(var r=e._first,n;r;)r instanceof St?i(r,t):r.vars.yoyoEase&&(!r._yoyo||!r._repeat)&&r._yoyo!==t&&(r.timeline?i(r.timeline,t):(n=r._ease,r._ease=r._yEase,r._yEase=n,r._yoyo=t)),r=r._next},Li=function(e,t){return e&&(je(e)?e:ve[e]||Tv(e))||t},Gi=function(e,t,r,n){r===void 0&&(r=function(l){return 1-t(1-l)}),n===void 0&&(n=function(l){return l<.5?t(l*2)/2:1-t((1-l)*2)/2});var s={easeIn:t,easeOut:r,easeInOut:n},o;return Pt(e,function(a){ve[a]=Nt[a]=s,ve[o=a.toLowerCase()]=r;for(var l in s)ve[o+(l==="easeIn"?".in":l==="easeOut"?".out":".inOut")]=ve[a+"."+l]=s[l]}),s},Sh=function(e){return function(t){return t<.5?(1-e(1-t*2))/2:.5+e((t-.5)*2)/2}},Xa=function i(e,t,r){var n=t>=1?t:1,s=(r||(e?.3:.45))/(t<1?t:1),o=s/Ml*(Math.asin(1/n)||0),a=function(c){return c===1?1:n*Math.pow(2,-10*c)*ev((c-o)*s)+1},l=e==="out"?a:e==="in"?function(u){return 1-a(1-u)}:Sh(a);return s=Ml/s,l.config=function(u,c){return i(e,u,c)},l},Ka=function i(e,t){t===void 0&&(t=1.70158);var r=function(o){return o?--o*o*((t+1)*o+t)+1:0},n=e==="out"?r:e==="in"?function(s){return 1-r(1-s)}:Sh(r);return n.config=function(s){return i(e,s)},n};Pt("Linear,Quad,Cubic,Quart,Quint,Strong",function(i,e){var t=e<5?e+1:e;Gi(i+",Power"+(t-1),e?function(r){return Math.pow(r,t)}:function(r){return r},function(r){return 1-Math.pow(1-r,t)},function(r){return r<.5?Math.pow(r*2,t)/2:1-Math.pow((1-r)*2,t)/2})});ve.Linear.easeNone=ve.none=ve.Linear.easeIn;Gi("Elastic",Xa("in"),Xa("out"),Xa());(function(i,e){var t=1/e,r=2*t,n=2.5*t,s=function(a){return a<t?i*a*a:a<r?i*Math.pow(a-1.5/e,2)+.75:a<n?i*(a-=2.25/e)*a+.9375:i*Math.pow(a-2.625/e,2)+.984375};Gi("Bounce",function(o){return 1-s(1-o)},s)})(7.5625,2.75);Gi("Expo",function(i){return i?Math.pow(2,10*(i-1)):0});Gi("Circ",function(i){return-(Yd(1-i*i)-1)});Gi("Sine",function(i){return i===1?1:-Zm(i*Qm)+1});Gi("Back",Ka("in"),Ka("out"),Ka());ve.SteppedEase=ve.steps=Nt.SteppedEase={config:function(e,t){e===void 0&&(e=1);var r=1/e,n=e+(t?0:1),s=t?1:0,o=1-Ce;return function(a){return((n*Us(0,o,a)|0)+s)*r}}};Sn.ease=ve["quad.out"];Pt("onComplete,onUpdate,onStart,onRepeat,onReverseComplete,onInterrupt",function(i){return zu+=i+","+i+"Params,"});var xh=function(e,t){this.id=Jm++,e._gsap=this,this.target=e,this.harness=t,this.get=t?t.get:ih,this.set=t?t.getSetter:Yu},Tn=function(){function i(t){this.vars=t,this._delay=+t.delay||0,(this._repeat=t.repeat===1/0?-2:t.repeat||0)&&(this._rDelay=t.repeatDelay||0,this._yoyo=!!t.yoyo||!!t.yoyoEase),this._ts=1,Pn(this,+t.duration,1,1),this.data=t.data,Ye&&(this._ctx=Ye,Ye.data.push(this)),xs||Lt.wake()}var e=i.prototype;return e.delay=function(r){return r||r===0?(this.parent&&this.parent.smoothChildTiming&&this.startTime(this._start+r-this._delay),this._delay=r,this):this._delay},e.duration=function(r){return arguments.length?this.totalDuration(this._repeat>0?r+(r+this._rDelay)*this._repeat:r):this.totalDuration()&&this._dur},e.totalDuration=function(r){return arguments.length?(this._dirty=0,Pn(this,this._repeat<0?r:(r-this._repeat*this._rDelay)/(this._repeat+1))):this._tDur},e.totalTime=function(r,n){if(Cn(),!arguments.length)return this._tTime;var s=this._dp;if(s&&s.smoothChildTiming&&this._ts){for(Na(this,r),!s._dp||s.parent||lh(s,this);s&&s.parent;)s.parent._time!==s._start+(s._ts>=0?s._tTime/s._ts:(s.totalDuration()-s._tTime)/-s._ts)&&s.totalTime(s._tTime,!0),s=s.parent;!this.parent&&this._dp.autoRemoveChildren&&(this._ts>0&&r<this._tDur||this._ts<0&&r>0||!this._tDur&&!r)&&br(this._dp,this,this._start-this._delay)}return(this._tTime!==r||!this._dur&&!n||this._initted&&Math.abs(this._zTime)===Ce||!r&&!this._initted&&(this.add||this._ptLookup))&&(this._ts||(this._pTime=r),nh(this,r,n)),this},e.time=function(r,n){return arguments.length?this.totalTime(Math.min(this.totalDuration(),r+Ec(this))%(this._dur+this._rDelay)||(r?this._dur:0),n):this._time},e.totalProgress=function(r,n){return arguments.length?this.totalTime(this.totalDuration()*r,
37n):this.totalDuration()?Math.min(1,this._tTime/this._tDur):this.ratio},e.progress=function(r,n){return arguments.length?this.totalTime(this.duration()*(this._yoyo&&!(this.iteration()&1)?1-r:r)+Ec(this),n):this.duration()?Math.min(1,this._time/this._dur):this.ratio},e.iteration=function(r,n){var s=this.duration()+this._rDelay;return arguments.length?this.totalTime(this._time+(r-1)*s,n):this._repeat?xn(this._tTime,s)+1:1},e.timeScale=function(r){if(!arguments.length)return this._rts===-Ce?0:this._rts;if(this._rts===r)return this;var n=this.parent&&this._ts?Xo(this.parent._time,this):this._tTime;return this._rts=+r||0,this._ts=this._ps||r===-Ce?0:this._rts,this.totalTime(Us(-this._delay,this._tDur,n),!0),Ia(this),av(this)},e.paused=function(r){return arguments.length?(this._ps!==r&&(this._ps=r,r?(this._pTime=this._tTime||Math.max(-this._delay,this.rawTime()),this._ts=this._act=0):(Cn(),this._ts=this._rts,this.totalTime(this.parent&&!this.parent.smoothChildTiming?this.rawTime():this._tTime||this._pTime,this.progress()===1&&Math.abs(this._zTime)!==Ce&&(this._tTime-=Ce)))),this):this._ps},e.startTime=function(r){if(arguments.length){this._start=r;var n=this.parent||this._dp;return n&&(n._sort||!this.parent)&&br(n,this,r-this._delay),this}return this._start},e.endTime=function(r){return this._start+(xt(r)?this.totalDuration():this.duration())/Math.abs(this._ts||1)},e.rawTime=function(r){var n=this.parent||this._dp;return n?r&&(!this._ts||this._repeat&&this._time&&this.totalProgress()<1)?this._tTime%(this._dur+this._rDelay):this._ts?Xo(n.rawTime(r),this):this._tTime:this._tTime},e.revert=function(r){r===void 0&&(r=iv);var n=ht;return ht=r,(this._initted||this._startAt)&&(this.timeline&&this.timeline.revert(r),this.totalTime(-.01,r.suppressEvents)),this.data!=="nested"&&r.kill!==!1&&this.kill(),ht=n,this},e.globalTime=function(r){for(var n=this,s=arguments.length?r:n.rawTime();n;)s=n._start+s/(n._ts||1),n=n._dp;return!this.parent&&this._sat?this._sat.vars.immediateRender?-1:this._sat.globalTime(r):s},e.repeat=function(r){return arguments.length?(this._repeat=r===1/0?-2:r,Oc(this)):this._repeat===-2?1/0:this._repeat},e.repeatDelay=function(r){if(arguments.length){var n=this._time;return this._rDelay=r,Oc(this),n?this.time(n):this}return this._rDelay},e.yoyo=function(r){return arguments.length?(this._yoyo=r,this):this._yoyo},e.seek=function(r,n){return this.totalTime(zt(this,r),xt(n))},e.restart=function(r,n){return this.play().totalTime(r?-this._delay:0,xt(n))},e.play=function(r,n){return r!=null&&this.seek(r,n),this.reversed(!1).paused(!1)},e.reverse=function(r,n){return r!=null&&this.seek(r||this.totalDuration(),n),this.reversed(!0).paused(!1)},e.pause=function(r,n){return r!=null&&this.seek(r,n),this.paused(!0)},e.resume=function(){return this.paused(!1)},e.reversed=function(r){return arguments.length?(!!r!==this.reversed()&&this.timeScale(-this._rts||(r?-Ce:0)),this):this._rts<0},e.invalidate=function(){return this._initted=this._act=0,this._zTime=-Ce,this},e.isActive=function(){var r=this.parent||this._dp,n=this._start,s;return!!(!r||this._ts&&this._initted&&r.isActive()&&(s=r.rawTime(!0))>=n&&s<this.endTime(!0)-Ce)},e.eventCallback=function(r,n,s){var o=this.vars;return arguments.length>1?(n?(o[r]=n,s&&(o[r+"Params"]=s),r==="onUpdate"&&(this._onUpdate=n)):delete o[r],this):o[r]},e.then=function(r){var n=this;return new Promise(function(s){var o=je(r)?r:oh,a=function(){var u=n.then;n.then=null,je(o)&&(o=o(n))&&(o.then||o===n)&&(n.then=u),s(o),n.then=u};n._initted&&n.totalProgress()===1&&n._ts>=0||!n._tTime&&n._ts<0?a():n._prom=a})},e.kill=function(){Jn(this)},i}();Jt(Tn.prototype,{_time:0,_start:0,_end:0,_tTime:0,_tDur:0,_dirty:0,_repeat:0,_yoyo:!1,parent:null,_initted:!1,_rDelay:0,_ts:1,_dp:0,ratio:0,_zTime:-Ce,_prom:0,_ps:!1,_rts:1});var St=function(i){Gd(e,i);function e(r,n){var s;return r===void 0&&(r={}),s=i.call(this,r)||this,s.labels={},s.smoothChildTiming=!!r.smoothChildTiming,s.autoRemoveChildren=!!r.autoRemoveChildren,s._sort=xt(r.sortChildren),ke&&br(r.parent||ke,kr(s),n),r.reversed&&s.reverse(),r.paused&&s.paused(!0),r.scrollTrigger&&uh(kr(s),r.scrollTrigger),s}var t=e.prototype;return t.to=function(n,s,o){return os(0,arguments,this),this},t.from=function(n,s,o){return os(1,arguments,this),this},t.fromTo=function(n,s,o,a){return os(2,arguments,this),this},t.set=function(n,s,o){return s.duration=0,s.parent=this,ss(s).repeatDelay||(s.repeat=0),s.immediateRender=!!s.immediateRender,new Ke(n,s,zt(this,o),1),this},t.call=function(n,s,o){return br(this,Ke.delayedCall(0,n,s),o)},t.staggerTo=function(n,s,o,a,l,u,c){return o.duration=s,o.stagger=o.stagger||a,o.onComplete=u,o.onCompleteParams=c,o.parent=this,new Ke(n,o,zt(this,l)),this},t.staggerFrom=function(n,s,o,a,l,u,c){return o.runBackwards=1,ss(o).immediateRender=xt(o.immediateRender),this.staggerTo(n,s,o,a,l,u,c)},t.staggerFromTo=function(n,s,o,a,l,u,c,f){return a.startAt=o,ss(a).immediateRender=xt(a.immediateRender),this.staggerTo(n,s,a,l,u,c,f)},t.render=function(n,s,o){var a=this._time,l=this._dirty?this.totalDuration():this._tDur,u=this._dur,c=n<=0?0:at(n),f=this._zTime<0!=n<0&&(this._initted||!u),h,d,g,p,m,y,b,v,_,D,S,C;if(this!==ke&&c>l&&n>=0&&(c=l),c!==this._tTime||o||f){if(a!==this._time&&u&&(c+=this._time-a,n+=this._time-a),h=c,_=this._start,v=this._ts,y=!v,f&&(u||(a=this._zTime),(n||!s)&&(this._zTime=n)),this._repeat){if(S=this._yoyo,m=u+this._rDelay,this._repeat<-1&&n<0)return this.totalTime(m*100+n,s,o);if(h=at(c%m),c===l?(p=this._repeat,h=u):(p=~~(c/m),p&&p===c/m&&(h=u,p--),h>
37u&&(h=u)),D=xn(this._tTime,m),!a&&this._tTime&&D!==p&&(D=p),S&&p&1&&(h=u-h,C=1),p!==D&&!this._lock){var w=S&&D&1,x=w===(S&&p&1);if(p<D&&(w=!w),a=w?0:u,this._lock=1,this.render(a||(C?0:at(p*m)),s,!u)._lock=0,this._tTime=c,!s&&this.parent&&Ut(this,"onRepeat"),this.vars.repeatRefresh&&!C&&(this.invalidate()._lock=1),a&&a!==this._time||y!==!this._ts||this.vars.onRepeat&&!this.parent&&!this._act)return this;if(u=this._dur,l=this._tDur,x&&(this._lock=2,a=w?u:-1e-4,this.render(a,!0),this.vars.repeatRefresh&&!C&&this.invalidate()),this._lock=0,!this._ts&&!y)return this;Dh(this,C)}}if(this._hasPause&&!this._forcing&&this._lock<2&&(b=fv(this,at(a),at(h)),b&&(c-=h-(h=b._start))),this._tTime=c,this._time=h,this._act=!v,this._initted||(this._onUpdate=this.vars.onUpdate,this._initted=1,this._zTime=n,a=0),!a&&h&&!s&&(Ut(this,"onStart"),this._tTime!==c))return this;if(h>=a&&n>=0)for(d=this._first;d;){if(g=d._next,(d._act||h>=d._start)&&d._ts&&b!==d){if(d.parent!==this)return this.render(n,s,o);if(d.render(d._ts>0?(h-d._start)*d._ts:(d._dirty?d.totalDuration():d._tDur)+(h-d._start)*d._ts,s,o),h!==this._time||!this._ts&&!y){b=0,g&&(c+=this._zTime=-Ce);break}}d=g}else{d=this._last;for(var P=n<0?n:h;d;){if(g=d._prev,(d._act||P<=d._end)&&d._ts&&b!==d){if(d.parent!==this)return this.render(n,s,o);if(d.render(d._ts>0?(P-d._start)*d._ts:(d._dirty?d.totalDuration():d._tDur)+(P-d._start)*d._ts,s,o||ht&&(d._initted||d._startAt)),h!==this._time||!this._ts&&!y){b=0,g&&(c+=this._zTime=P?-Ce:Ce);break}}d=g}}if(b&&!s&&(this.pause(),b.render(h>=a?0:-Ce)._zTime=h>=a?1:-1,this._ts))return this._start=_,Ia(this),this.render(n,s,o);this._onUpdate&&!s&&Ut(this,"onUpdate",!0),(c===l&&this._tTime>=this.totalDuration()||!c&&a)&&(_===this._start||Math.abs(v)!==Math.abs(this._ts))&&(this._lock||((n||!u)&&(c===l&&this._ts>0||!c&&this._ts<0)&&fi(this,1),!s&&!(n<0&&!a)&&(c||a||!l)&&(Ut(this,c===l&&n>=0?"onComplete":"onReverseComplete",!0),this._prom&&!(c<l&&this.timeScale()>0)&&this._prom())))}return this},t.add=function(n,s){var o=this;if(Hr(s)||(s=zt(this,s,n)),!(n instanceof Tn)){if(pt(n))return n.forEach(function(a){return o.add(a,s)}),this;if(it(n))return this.addLabel(n,s);if(je(n))n=Ke.delayedCall(0,n);else return this}return this!==n?br(this,n,s):this},t.getChildren=function(n,s,o,a){n===void 0&&(n=!0),s===void 0&&(s=!0),o===void 0&&(o=!0),a===void 0&&(a=-Gt);for(var l=[],u=this._first;u;)u._start>=a&&(u instanceof Ke?s&&l.push(u):(o&&l.push(u),n&&l.push.apply(l,u.getChildren(!0,s,o)))),u=u._next;return l},t.getById=function(n){for(var s=this.getChildren(1,1,1),o=s.length;o--;)if(s[o].vars.id===n)return s[o]},t.remove=function(n){return it(n)?this.removeLabel(n):je(n)?this.killTweensOf(n):(Fa(this,n),n===this._recent&&(this._recent=this._last),ki(this))},t.totalTime=function(n,s){return arguments.length?(this._forcing=1,!this._dp&&this._ts&&(this._start=at(Lt.time-(this._ts>0?n/this._ts:(this.totalDuration()-n)/-this._ts))),i.prototype.totalTime.call(this,n,s),this._forcing=0,this):this._tTime},t.addLabel=function(n,s){return this.labels[n]=zt(this,s),this},t.removeLabel=function(n){return delete this.labels[n],this},t.addPause=function(n,s,o){var a=Ke.delayedCall(0,s||Ds,o);return a.data="isPause",this._hasPause=1,br(this,a,zt(this,n))},t.removePause=function(n){var s=this._first;for(n=zt(this,n);s;)s._start===n&&s.data==="isPause"&&fi(s),s=s._next},t.killTweensOf=function(n,s,o){for(var a=this.getTweensOf(n,o),l=a.length;l--;)Jr!==a[l]&&a[l].kill(n,s);return this},t.getTweensOf=function(n,s){for(var o=[],a=Yt(n),l=this._first,u=Hr(s),c;l;)l instanceof Ke?nv(l._targets,a)&&(u?(!Jr||l._initted&&l._ts)&&l.globalTime(0)<=s&&l.globalTime(l.totalDuration())>s:!s||l.isActive())&&o.push(l):(c=l.getTweensOf(a,s)).length&&o.push.apply(o,c),l=l._next;return o},t.tweenTo=function(n,s){s=s||{};var o=this,a=zt(o,n),l=s,u=l.startAt,c=l.onStart,f=l.onStartParams,h=l.immediateRender,d,g=Ke.to(o,Jt({ease:s.ease||"none",lazy:!1,immediateRender:!1,time:a,overwrite:"auto",duration:s.duration||Math.abs((a-(u&&"time"in u?u.time:o._time))/o.timeScale())||Ce,onStart:function(){if(o.pause(),!d){var m=s.duration||Math.abs((a-(u&&"time"in u?u.time:o._time))/o.timeScale());g._dur!==m&&Pn(g,m,0,1).render(g._time,!0,!0),d=1}c&&c.apply(g,f||[])}},s));return h?g.render(0):g},t.tweenFromTo=function(n,s,o){return this.tweenTo(s,Jt({startAt:{time:zt(this,n)}},o))},t.recent=function(){return this._recent},t.nextLabel=function(n){return n===void 0&&(n=this._time),$c(this,zt(this,n))},t.previousLabel=function(n){return n===void 0&&(n=this._time),$c(this,zt(this,n),1)},t.currentLabel=function(n){return arguments.length?this.seek(n,!0):this.previousLabel(this._time+Ce)},t.shiftChildren=function(n,s,o){o===void 0&&(o=0);for(var a=this._first,l=this.labels,u;a;)a._start>=o&&(a._start+=n,a._end+=n),a=a._next;if(s)for(u in l)l[u]>=o&&(l[u]+=n);return ki(this)},t.invalidate=function(n){var s=this._first;for(this._lock=0;s;)s.invalidate(n),s=s._next;return i.prototype.invalidate.call(this,n)},t.clear=function(n){n===void 0&&(n=!0);for(var s=this._first,o;s;)o=s._next,this.remove(s),s=o;return this._dp&&(this._time=this._tTime=this._pTime=0),n&&(this.labels={}),ki(this)},t.totalDuration=function(n){var s=0,o=this,a=o._last,l=Gt,u,c,f;if(arguments.length)return o.timeScale((o._repeat<0?o.duration():o.totalDuration())/(o.reversed()?-n:n));if(o._dirty){for(f=o.parent;a;)u=a._prev,a._dirty&&a.totalDuration(),c=a._start,c>l&&o._sort&&a._ts&&!o._lock?(o._lock=1,br(o,a,c-a._delay,1)._lock=0):l=c,c<0&&a._ts&&(s-=c,(!f&&!o._dp||f&&f.smoothChildTiming)&&(o._start+=c/o._ts,o._time-=c,o._tTime-=c),o.shiftChildren(-c,!1,-1/0),l=0),a._end>s&&a._ts&&(s=a._end),a=u;Pn(o,o===ke&&o._time>s?o._time:s,1,1),o._dirty=0}return o._tDur},e.updateRoot=function(n){if(ke._ts&&(nh(ke,Xo(n,ke)),rh=Lt.frame),Lt.frame>=Cc){Cc+=It.autoSleep||120;var s=ke._first;if((!s||!s._ts)&&It.autoSleep&&Lt._listeners.length<2){for(;s&&!s._ts;)s=s._next;s||Lt.sleep()}}},e}(Tn);Jt(St.prototype,{_lock:0,_hasPause:0,_forcing:0});var Ev=function(e,t,r,n,s,o,a){var l=new Ct(this._pt,e,t,0,1,$h,null,s),u=0,c=0,f,h,d,g,p,m,y,b;for(l.b=r,l.e=n,r+="",n+="",(y=~n.indexOf("random("))&&(n=Ss(n)),o&&(b=[r,n],o(b,e,t),r=b[0],n=b[1]),h=r.match(Ga)||[];f=Ga.exec(n);)g=f[0],p=n.substring(u,f.index),d?d=(d+1)%5:p.substr(-5)==="rgba("&&(d=1),g!==h[c++]&&(m=parseFloat(h[c-1])||0,l._pt={_next:l._pt,p:p||c===1?p:",",s:m,c:g.charAt(1)==="="?gn(m,g)-m:parseFloat(g)-m,m:d&&d<4?Math.round:0},u=Ga.lastIndex);return l.c=u<n.length?n.substring(u,n.length):"",l.fp=a,(Qd.test(n)||y)&&(l.e=0),this._pt=l,l},Wu=function(e,t,r,n,s,o,a,l,u,c){je(n)&&(n=n(s||0,e,o));var f=e[t],h=r!=="get"?r:je(f)?u?e[t.indexOf("set")||!je(e["get"+t.substr(3)])?t:"get"+t.substr(3)](u):e[t]():f,d=je(f)?u?kv:Eh:Gu,g;if(it(n)&&(~n.indexOf("random(")&&(n=Ss(n)),n.charAt(1)==="="&&(g=gn(h,n)+(dt(h)||0),(g||g===0)&&(n=g))),!c||h!==n||jl)return!isNaN(h*n)&&n!==""?(g=new Ct(this._pt,e,t,+h||0,n-(h||0),typeof f=="boolean"?Fv:Oh,0,d),u&&(g.fp=u),a&&g.modifier(a,this,e),this._pt=g):(!f&&!(t in e)&&ju(t,n),Ev.call(this,e,t,h,n,d,l||It.stringFilter,u))},Ov=function(e,t,r,n,s){if(je(e)&&(e=as(e,s,t,r,n)),!Cr(e)||e.style&&e.nodeType||pt(e)||Xd(e))return it(e)?as(e,s,t,r,n):e;var o={},a;for(a in e)o[a]=as(e[a],s,t,r,n);return o},Ph=function(e,t,r,n,s,o){var a,l,u,c;if(Mt[e]&&(a=new Mt[e]).init(s,a.rawVars?t[e]:Ov(t[e],n,s,o,r),r,n,o)!==!1&&(r._pt=l=new Ct
37(r._pt,s,e,0,1,a.render,a,0,a.priority),r!==cn))for(u=r._ptLookup[r._targets.indexOf(s)],c=a._props.length;c--;)u[a._props[c]]=l;return a},Jr,jl,qu=function i(e,t,r){var n=e.vars,s=n.ease,o=n.startAt,a=n.immediateRender,l=n.lazy,u=n.onUpdate,c=n.onUpdateParams,f=n.callbackScope,h=n.runBackwards,d=n.yoyoEase,g=n.keyframes,p=n.autoRevert,m=e._dur,y=e._startAt,b=e._targets,v=e.parent,_=v&&v.data==="nested"?v.vars.targets:b,D=e._overwrite==="auto"&&!Nu,S=e.timeline,C,w,x,P,T,O,A,N,I,B,W,V,M;if(S&&(!g||!s)&&(s="none"),e._ease=Li(s,Sn.ease),e._yEase=d?wh(Li(d===!0?s:d,Sn.ease)):0,d&&e._yoyo&&!e._repeat&&(d=e._yEase,e._yEase=e._ease,e._ease=d),e._from=!S&&!!n.runBackwards,!S||g&&!n.stagger){if(N=b[0]?Ai(b[0]).harness:0,V=N&&n[N.prop],C=Uo(n,Hu),y&&(y._zTime<0&&y.progress(1),t<0&&h&&a&&!p?y.render(-1,!0):y.revert(h&&m?Co:rv),y._lazy=0),o){if(fi(e._startAt=Ke.set(b,Jt({data:"isStart",overwrite:!1,parent:v,immediateRender:!0,lazy:!y&&xt(l),startAt:null,delay:0,onUpdate:u,onUpdateParams:c,callbackScope:f,stagger:0},o))),e._startAt._dp=0,e._startAt._sat=e,t<0&&(ht||!a&&!p)&&e._startAt.revert(Co),a&&m&&t<=0&&r<=0){t&&(e._zTime=t);return}}else if(h&&m&&!y){if(t&&(a=!1),x=Jt({overwrite:!1,data:"isFromStart",lazy:a&&!y&&xt(l),immediateRender:a,stagger:0,parent:v},C),V&&(x[N.prop]=V),fi(e._startAt=Ke.set(b,x)),e._startAt._dp=0,e._startAt._sat=e,t<0&&(ht?e._startAt.revert(Co):e._startAt.render(-1,!0)),e._zTime=t,!a)i(e._startAt,Ce,Ce);else if(!t)return}for(e._pt=e._ptCache=0,l=m&&xt(l)||l&&!m,w=0;w<b.length;w++){if(T=b[w],A=T._gsap||Vu(b)[w]._gsap,e._ptLookup[w]=B={},Ll[A.id]&&oi.length&&Yo(),W=_===b?w:_.indexOf(T),N&&(I=new N).init(T,V||C,e,W,_)!==!1&&(e._pt=P=new Ct(e._pt,T,I.name,0,1,I.render,I,0,I.priority),I._props.forEach(function($){B[$]=P}),I.priority&&(O=1)),!N||V)for(x in C)Mt[x]&&(I=Ph(x,C,e,W,T,_))?I.priority&&(O=1):B[x]=P=Wu.call(e,T,x,"get",C[x],W,_,0,n.stringFilter);e._op&&e._op[w]&&e.kill(T,e._op[w]),D&&e._pt&&(Jr=e,ke.killTweensOf(T,B,e.globalTime(t)),M=!e.parent,Jr=0),e._pt&&l&&(Ll[A.id]=1)}O&&Mh(e),e._onInit&&e._onInit(e)}e._onUpdate=u,e._initted=(!e._op||e._pt)&&!M,g&&t<=0&&S.render(Gt,!0,!0)},$v=function(e,t,r,n,s,o,a){var l=(e._pt&&e._ptCache||(e._ptCache={}))[t],u,c,f,h;if(!l)for(l=e._ptCache[t]=[],f=e._ptLookup,h=e._targets.length;h--;){if(u=f[h][t],u&&u.d&&u.d._pt)for(u=u.d._pt;u&&u.p!==t&&u.fp!==t;)u=u._next;if(!u)return jl=1,e.vars[t]="+=0",qu(e,a),jl=0,1;l.push(u)}for(h=l.length;h--;)c=l[h],u=c._pt||c,u.s=(n||n===0)&&!s?n:u.s+(n||0)+o*u.c,u.c=r-u.s,c.e&&(c.e=ze(r)+dt(c.e)),c.b&&(c.b=u.s+dt(c.b))},Mv=function(e,t){var r=e[0]?Ai(e[0]).harness:0,n=r&&r.aliases,s,o,a,l;if(!n)return t;s=ji({},t);for(o in n)if(o in s)for(l=n[o].split(","),a=l.length;a--;)s[l[a]]=s[o];return s},Av=function(e,t,r,n){var s=t.ease||n||"power1.inOut",o,a;if(pt(t))a=r[e]||(r[e]=[]),t.forEach(function(l,u){return a.push({t:u/(t.length-1)*100,v:l,e:s})});else for(o in t)a=r[o]||(r[o]=[]),o==="ease"||a.push({t:parseFloat(e),v:t[o],e:s})},as=function(e,t,r,n,s){return je(e)?e.call(t,r,n,s):it(e)&&~e.indexOf("random(")?Ss(e):e},Ch=zu+"repeat,repeatDelay,yoyo,repeatRefresh,yoyoEase,autoRevert",Th={};Pt(Ch+",id,stagger,delay,duration,paused,scrollTrigger",function(i){return Th[i]=1});var Ke=function(i){Gd(e,i);function e(r,n,s,o){var a;typeof n=="number"&&(s.duration=n,n=s,s=null),a=i.call(this,o?n:ss(n))||this;var l=a.vars,u=l.duration,c=l.delay,f=l.immediateRender,h=l.stagger,d=l.overwrite,g=l.keyframes,p=l.defaults,m=l.scrollTrigger,y=l.yoyoEase,b=n.parent||ke,v=(pt(r)||Xd(r)?Hr(r[0]):"length"in n)?[r]:Yt(r),_,D,S,C,w,x,P,T;if(a._targets=v.length?Vu(v):Go("GSAP target "+r+" not found. https://greensock.com",!It.nullTargetWarn)||[],a._ptLookup=[],a._overwrite=d,g||h||Zs(u)||Zs(c)){if
37(n=a.vars,_=a.timeline=new St({data:"nested",defaults:p||{},targets:b&&b.data==="nested"?b.vars.targets:v}),_.kill(),_.parent=_._dp=kr(a),_._start=0,h||Zs(u)||Zs(c)){if(C=v.length,P=h&&hh(h),Cr(h))for(w in h)~Ch.indexOf(w)&&(T||(T={}),T[w]=h[w]);for(D=0;D<C;D++)S=Uo(n,Th),S.stagger=0,y&&(S.yoyoEase=y),T&&ji(S,T),x=v[D],S.duration=+as(u,kr(a),D,x,v),S.delay=(+as(c,kr(a),D,x,v)||0)-a._delay,!h&&C===1&&S.delay&&(a._delay=c=S.delay,a._start+=c,S.delay=0),_.to(x,S,P?P(D,x,v):0),_._ease=ve.none;_.duration()?u=c=0:a.timeline=0}else if(g){ss(Jt(_.vars.defaults,{ease:"none"})),_._ease=Li(g.ease||n.ease||"none");var O=0,A,N,I;if(pt(g))g.forEach(function(B){return _.to(v,B,">")}),_.duration();else{S={};for(w in g)w==="ease"||w==="easeEach"||Av(w,g[w],S,g.easeEach);for(w in S)for(A=S[w].sort(function(B,W){return B.t-W.t}),O=0,D=0;D<A.length;D++)N=A[D],I={ease:N.e,duration:(N.t-(D?A[D-1].t:0))/100*u},I[w]=N.v,_.to(v,I,O),O+=I.duration;_.duration()<u&&_.to({},{duration:u-_.duration()})}}u||a.duration(u=_.duration())}else a.timeline=0;return d===!0&&!Nu&&(Jr=kr(a),ke.killTweensOf(v),Jr=0),br(b,kr(a),s),n.reversed&&a.reverse(),n.paused&&a.paused(!0),(f||!u&&!g&&a._start===at(b._time)&&xt(f)&&lv(kr(a))&&b.data!=="nested")&&(a._tTime=-Ce,a.render(Math.max(0,-c)||0)),m&&uh(kr(a),m),a}var t=e.prototype;return t.render=function(n,s,o){var a=this._time,l=this._tDur,u=this._dur,c=n<0,f=n>l-Ce&&!c?l:n<Ce?0:n,h,d,g,p,m,y,b,v,_;if(!u)cv(this,n,s,o);else if(f!==this._tTime||!n||o||!this._initted&&this._tTime||this._startAt&&this._zTime<0!==c){if(h=f,v=this.timeline,this._repeat){if(p=u+this._rDelay,this._repeat<-1&&c)return this.totalTime(p*100+n,s,o);if(h=at(f%p),f===l?(g=this._repeat,h=u):(g=~~(f/p),g&&g===f/p&&(h=u,g--),h>u&&(h=u)),y=this._yoyo&&g&1,y&&(_=this._yEase,h=u-h),m=xn(this._tTime,p),h===a&&!o&&this._initted)return this._tTime=f,this;g!==m&&(v&&this._yEase&&Dh(v,y),this.vars.repeatRefresh&&!y&&!this._lock&&(this._lock=o=1,this.render(at(p*g),!0).invalidate()._lock=0))}if(!this._initted){if(ch(this,c?n:h,o,s,f))return this._tTime=0,this;if(a!==this._time)return this;if(u!==this._dur)return this.render(n,s,o)}if(this._tTime=f,this._time=h,!this._act&&this._ts&&(this._act=1,this._lazy=0),this.ratio=b=(_||this._ease)(h/u),this._from&&(this.ratio=b=1-b),h&&!a&&!s&&(Ut(this,"onStart"),this._tTime!==f))return this;for(d=this._pt;d;)d.r(b,d.d),d=d._next;v&&v.render(n<0?n:!h&&y?-Ce:v._dur*v._ease(h/this._dur),s,o)||this._startAt&&(this._zTime=n),this._onUpdate&&!s&&(c&&Fl(this,n,s,o),Ut(this,"onUpdate")),this._repeat&&g!==m&&this.vars.onRepeat&&!s&&this.parent&&Ut(this,"onRepeat"),(f===this._tDur||!f)&&this._tTime===f&&(c&&!this._onUpdate&&Fl(this,n,!0,!0),(n||!u)&&(f===this._tDur&&this._ts>0||!f&&this._ts<0)&&fi(this,1),!s&&!(c&&!a)&&(f||a||y)&&(Ut(this,f===l?"onComplete":"onReverseComplete",!0),this._prom&&!(f<l&&this.timeScale()>0)&&this._prom()))}return this},t.targets=function(){return this._targets},t.invalidate=function(n){return(!n||!this.vars.runBackwards)&&(this._startAt=0),this._pt=this._op=this._onUpdate=this._lazy=this.ratio=0,this._ptLookup=[],this.timeline&&this.timeline.invalidate(n),i.prototype.invalidate.call(this,n)},t.resetTo=function(n,s,o,a){xs||Lt.wake(),this._ts||this.play();var l=Math.min(this._dur,(this._dp._time-this._start)*this._ts),u;return this._initted||qu(this,l),u=this._ease(l/this._dur),$v(this,n,s,o,a,u,l)?this.resetTo(n,s,o,a):(Na(this,0),this.parent||ah(this._dp,this,"_first","_last",this._dp._sort?"_start":0),this.render(0))},t.kill=function(n,s){if(s===void 0&&(s="all"),!n&&(!s||s==="all"))return this._lazy=this._pt=0,this.parent?Jn(this):this;if(this.timeline){var o=this.timeline.totalDuration();return this.timeline.killTweensOf(n,s,Jr&&Jr.vars.overwrite!==!0)._first||Jn(this),this.parent&&o!==this.timeline.totalDuration()&&Pn(this,this._dur*this.timeline._tDur/o,0,1),this}var a=this._targets,l=n?Yt(n):a,u=this._ptLookup,c=this._pt,f,h,d,g,p,m,y;if((!s||s==="all")&&ov(a,l))return s==="all"&&(this._pt=0),Jn(this);for(f=this._op=this._op||[],s!=="all"&&(it(s)&&(p={},Pt(s,function(b){return p[b]=1}),s=p),s=Mv(a,s)),y=a.length;y--;)if(~l.indexOf(a[y])){h=u[y],s==="all"?(f[y]=s,g=h,d={}):(d=f[y]=f[y]||{},g=s);for(p in g)m=h&&h[p],m&&((!("kill"in m.d)||m.d.kill(p)===!0)&&Fa(this,m,"_pt"),delete h[p]),d!=="all"&&(d[p]=1)}return this._initted&&!this._pt&&c&&Jn(this),this},e.to=function(n,s){return new e(n,s,arguments[2])},e.from=function(n,s){return os(1,arguments)},e.delayedCall=function(n,s,o,a){return new e(s,0,{immediateRender:!1,lazy:!1,overwrite:!1,delay:n,onComplete:s,onReverseComplete:s,onCompleteParams:o,onReverseCompleteParams:o,callbackScope:a})},e.fromTo=function(n,s,o){return os(2,arguments)},e.set=function(n,s){return s.duration=0,s.repeatDelay||(s.repeat=0),new e(n,s)},e.killTweensOf=function(n,s,o){return ke.killTweensOf(n,s,o)},e}(Tn);Jt(Ke.prototype,{_targets:[],_lazy:0,_startAt:0,_op:0,_onInit:0});Pt("staggerTo,staggerFrom,staggerFromTo",function(i){Ke[i]=function(){var e=new St,t=Nl.call(arguments,0);return t.splice(i==="staggerFromTo"?5:4,0,0),e[i].apply(e,t)}});var Gu=function(e,t,r){return e[t]=r},Eh=function(e,t,r){return e[t](r)},kv=function(e,t,r,n){return e[t](n.fp,r)},Lv=function(e,t,r){return e.setAttribute(t,r)},Yu=function(e,t){return je(e[t])?Eh:Ru(e[t])&&e.setAttribute?Lv:Gu},Oh=function(e,t){return t.set(t.t,t.p,Math.round((t.s+t.c*e)*1e6)/1e6,t)},Fv=function(e,t){return t.set(t.t,t.p,!!(t.s+t.c*e),t)},$h=function(e,t){var r=t._pt,n="";if(!e&&t.b)n=t.b;else if(e===1&&t.e)n=t.e;else{for(;r;)n=r.p+(r.m?r.m(r.s+r.c*e):Math.round((r.s+r.c*e)*1e4)/1e4)+n,r=r._next;n+=t.c}t.set(t.t,t.p,n,t)},Uu=function(e,t){for(var r=t._pt;r;)r.r(e,r.d),r=r._next},Iv=function(e,t,r,n){for(var s=this._pt,o;s;)o=s._next,s.p===n&&s.modifier(e,t,r),s=o},Nv=function(e){for(var t=this._pt,r,n;t;)n=t._next,t.p===e&&!t.op||t.op===e?Fa(this,t,"_pt"):t.dep||(r=1),t=n;return!r},Rv=function(e,t,r,n){n.mSet(e,t,n.m.call(n.tween,r,n.mt),n)},Mh=function(e){for(var t=e._pt,r,n,s,o;t;){for(r=t._next,n=s;n&&n.pr>t.pr;)n=n._next;(t._prev=n?n._prev:o)?t._prev._next=t:s=t,(t._next=n)?n._prev=t:o=t,t=r}e._pt=s},Ct=function(){function i(t,r,n,s,o,a,l,u,c){this.t=r,this.s=s,this.c=o,this.p=n,this.r=a||Oh,this.d=l||this,this.set=u||Gu,this.pr=c||0,this._next=t,t&&(t._prev=this)}var e=i.prototype;return e.modifier=function(r,n,s){this.mSet=this.mSet||this.set,this.set=Rv,this.m=r,this.mt=s,this.tween=n},i}();Pt(zu+"parent,duration,ease,delay,overwrite,runBackwards,startAt,yoyo,immediateRender,repeat,repeatDelay,data,paused,reversed,lazy,callbackScope,stringFilter,id,yoyoEase,stagger,inherit,repeatRefresh,keyframes,autoRevert,scrollTrigger",function(i){return Hu[i]=1});Nt.TweenMax=Nt.TweenLite=Ke;Nt.TimelineLite=Nt.TimelineMax=St;ke=new St({sortChildren:!1,defaults:Sn,autoRemoveChildren:!0,id:"root",smoothChildTiming:!0});It.stringFilter=_h;var En=[],Eo={},Bv=[],Ac=0,Qa=function(e){return(Eo[e]||Bv).map(function(t){return t()})},Hl=function(){var e=Date.now(),t=[];e-Ac>2&&(Qa("matchMediaInit"),En.forEach(function(r){var n=r.queries,s=r.conditions,o,a,l,u;for(a in n)o=Vt.matchMedia(n[a]).matches,o&&(l=1),o!==s[a]&&(s[a]=o,u=1);u&&(r.revert(),l&&t.push(r))}),Qa("matchMediaRevert"),t.forEach(function(r){return r.onMatch(r)}),Ac=e,Qa("matchMedia"))},Ah=function(){function i(t,r){this.selector=r&&Rl(r),this.data=[],this._r=[],this.isReverted=!1,t&&this.add(t)}var e=i.prototype;return e.add=function(r,n,s){je(r)&&(s=n,n=r,r=je);var o=this,a=function(){var u=Ye,c=o.selector,f;return u&&u!==o&&u.data.push(o),s&&(o.selector=Rl(s)),Ye=o,f=n.apply(o,arguments),je(f)&&o._r.push(f),Ye=u,o.selector=c,o.isReverted=!1,f};return o.last=a,r===je?a(o):r?o[r]=a:a},e.ignore=function(r){var n=Ye;Ye=null,r(this),Ye=n},e.getTweens=function(){var r=[];return this.data.forEach(function(n){return n instanceof i?r.push.apply(r,n.getTweens()):n instanceof Ke&&!(n.parent&&n.parent.data==="nested")&&r.push(n)}),r},e.clear=function(){this._r.length=this.data.length=0},e.kill=function(r,n){var s=this;if(r){var o=this.getTweens();this.data.forEach(function(l){l.data==="isFlip"&&(l.revert(),l.getChildren(!0,!0,!1).forEac
37h(function(u){return o.splice(o.indexOf(u),1)}))}),o.map(function(l){return{g:l.globalTime(0),t:l}}).sort(function(l,u){return u.g-l.g||-1}).forEach(function(l){return l.t.revert(r)}),this.data.forEach(function(l){return!(l instanceof Tn)&&l.revert&&l.revert(r)}),this._r.forEach(function(l){return l(r,s)}),this.isReverted=!0}else this.data.forEach(function(l){return l.kill&&l.kill()});if(this.clear(),n){var a=En.indexOf(this);~a&&En.splice(a,1)}},e.revert=function(r){this.kill(r||{})},i}(),jv=function(){function i(t){this.contexts=[],this.scope=t}var e=i.prototype;return e.add=function(r,n,s){Cr(r)||(r={matches:r});var o=new Ah(0,s||this.scope),a=o.conditions={},l,u,c;this.contexts.push(o),n=o.add("onMatch",n),o.queries=r;for(u in r)u==="all"?c=1:(l=Vt.matchMedia(r[u]),l&&(En.indexOf(o)<0&&En.push(o),(a[u]=l.matches)&&(c=1),l.addListener?l.addListener(Hl):l.addEventListener("change",Hl)));return c&&n(o),this},e.revert=function(r){this.kill(r||{})},e.kill=function(r){this.contexts.forEach(function(n){return n.kill(r,!0)})},i}(),Ko={registerPlugin:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];t.forEach(function(n){return wv(n)})},timeline:function(e){return new St(e)},getTweensOf:function(e,t){return ke.getTweensOf(e,t)},getProperty:function(e,t,r,n){it(e)&&(e=Yt(e)[0]);var s=Ai(e||{}).get,o=r?oh:sh;return r==="native"&&(r=""),e&&(t?o((Mt[t]&&Mt[t].get||s)(e,t,r,n)):function(a,l,u){return o((Mt[a]&&Mt[a].get||s)(e,a,l,u))})},quickSetter:function(e,t,r){if(e=Yt(e),e.length>1){var n=e.map(function(c){return Rt.quickSetter(c,t,r)}),s=n.length;return function(c){for(var f=s;f--;)n[f](c)}}e=e[0]||{};var o=Mt[t],a=Ai(e),l=a.harness&&(a.harness.aliases||{})[t]||t,u=o?function(c){var f=new o;cn._pt=0,f.init(e,r?c+r:c,cn,0,[e]),f.render(1,f),cn._pt&&Uu(1,cn)}:a.set(e,l);return o?u:function(c){return u(e,l,r?c+r:c,a,1)}},quickTo:function(e,t,r){var n,s=Rt.to(e,ji((n={},n[t]="+=0.1",n.paused=!0,n),r||{})),o=function(l,u,c){return s.resetTo(t,l,u,c)};return o.tween=s,o},isTweening:function(e){return ke.getTweensOf(e,!0).length>0},defaults:function(e){return e&&e.ease&&(e.ease=Li(e.ease,Sn.ease)),Tc(Sn,e||{})},config:function(e){return Tc(It,e||{})},registerEffect:function(e){var t=e.name,r=e.effect,n=e.plugins,s=e.defaults,o=e.extendTimeline;(n||"").split(",").forEach(function(a){return a&&!Mt[a]&&!Nt[a]&&Go(t+" effect requires "+a+" plugin.")}),Ya[t]=function(a,l,u){return r(Yt(a),Jt(l||{},s),u)},o&&(St.prototype[t]=function(a,l,u){return this.add(Ya[t](a,Cr(l)?l:(u=l)&&{},this),u)})},registerEase:function(e,t){ve[e]=Li(t)},parseEase:function(e,t){return arguments.length?Li(e,t):ve},getById:function(e){return ke.getById(e)},exportRoot:function(e,t){e===void 0&&(e={});var r=new St(e),n,s;for(r.smoothChildTiming=xt(e.smoothChildTiming),ke.remove(r),r._dp=0,r._time=r._tTime=ke._time,n=ke._first;n;)s=n._next,(t||!(!n._dur&&n instanceof Ke&&n.vars.onComplete===n._targets[0]))&&br(r,n,n._start-n._delay),n=s;return br(ke,r,0),r},context:function(e,t){return e?new Ah(e,t):Ye},matchMedia:function(e){return new jv(e)},matchMediaRefresh:function(){return En.forEach(function(e){var t=e.conditions,r,n;for(n in t)t[n]&&(t[n]=!1,r=1);r&&e.revert()})||Hl()},addEventListener:function(e,t){var r=Eo[e]||(Eo[e]=[]);~r.indexOf(t)||r.push(t)},removeEventListener:function(e,t){var r=Eo[e],n=r&&r.indexOf(t);n>=0&&r.splice(n,1)},utils:{wrap:yv,wrapYoyo:bv,distribute:hh,random:gh,snap:ph,normalize:vv,getUnit:dt,clamp:hv,splitColor:yh,toArray:Yt,selector:Rl,mapRange:vh,pipe:gv,unitize:mv,interpolate:_v,shuffle:dh},install:eh,effects:Ya,ticker:Lt,updateRoot:St.updateRoot,plugins:Mt,globalTimeline:ke,core:{PropTween:Ct,globals:th,Tween:Ke,Timeline:St,Animation:Tn,getCache:Ai,_removeLinkedListItem:Fa,reverting:function(){return ht},context:function(e){return e&&Ye&&(Ye.data.push(e),e._ctx=Ye),Ye},suppressOverwrites:function(e){return Nu=e}}};Pt("to,from,fromTo,delayedCall,set,killTweensOf",function(i){return Ko[i]=Ke[i]});Lt.add(St.updateRoot);cn=Ko.to({},{duration:0});var Hv=function(e,t){for(var r=e._pt;r&&r.p!==t&&r.op!==t&&r.fp!==t;)r=r._next;return r},zv=function(e,t){var r=e._targets,n,s,o;for(n in t)for(s=r.length;s--;)o=e._ptLookup[s][n],o&&(o=o.d)&&(o._pt&&(o=Hv(o,n)),o&&o.modifier&&o.modifier(t[n],e,r[s],n))},Ja=function(e,t){return{name:e,rawVars:1,init:function(n,s,o){o._onInit=function(a){var l,u;if(it(s)&&(l={},Pt(s,function(c){return l[c]=1}),s=l),t){l={};for(u in s)l[u]=t(s[u]);s=l}zv(a,s)}}}},Rt=Ko.registerPlugin({name:"attr",init:function(e,t,r,n,s){var o,a,l;this.tween=r;for(o in t)l=e.getAttribute(o)||"",a=this.add(e,"setAttribute",(l||0)+"",t[o],n,s,0,0,o),a.op=o,a.b=l,this._props.push(o)},render:function(e,t){for(var r=t._pt;r;)ht?r.set(r.t,r.p,r.b,r):r.r(e,r.d),r=r._next}},{name:"endArray",init:function(e,t){for(var r=t.length;r--;)this.add(e,r,e[r]||0,t[r],0,0,0,0,0,1)}}
37,Ja("roundProps",Bl),Ja("modifiers"),Ja("snap",ph))||Ko;Ke.version=St.version=Rt.version="3.11.4";Zd=1;Ud()&&Cn();ve.Power0;ve.Power1;ve.Power2;ve.Power3;ve.Power4;ve.Linear;ve.Quad;ve.Cubic;ve.Quart;ve.Quint;ve.Strong;ve.Elastic;ve.Back;ve.SteppedEase;ve.Bounce;ve.Sine;ve.Expo;ve.Circ;/*! 38 * CSSPlugin 3.11.4 39 * https://greensock.com 40 * 41 * Copyright 2008-2022, GreenSock. All rights reserved. 42 * Subject to the terms at https://greensock.com/standard-license or for 43 * Club GreenSock members, the agreement issued with that membership. 44 * @author: Jack Doyle, [email protected] 45*/var kc,Zr,mn,Xu,$i,Lc,Ku,Vv=function(){return typeof window<"u"},zr={},Si=180/Math.PI,vn=Math.PI/180,Qi=Math.atan2,Fc=1e8,Qu=/([A-Z])/g,Wv=/(left|right|width|margin|padding|x)/i,qv=/[\s,\(]\S/,Nr={autoAlpha:"opacity,visibility",scale:"scaleX,scaleY",alpha:"opacity"},zl=function(e,t){return t.set(t.t,t.p,Math.round((t.s+t.c*e)*1e4)/1e4+t.u,t)},Gv=function(e,t){return t.set(t.t,t.p,e===1?t.e:Math.round((t.s+t.c*e)*1e4)/1e4+t.u,t)},Yv=function(e,t){return t.set(t.t,t.p,e?Math.round((t.s+t.c*e)*1e4)/1e4+t.u:t.b,t)},Uv=function(e,t){var r=t.s+t.c*e;t.set(t.t,t.p,~~(r+(r<0?-.5:.5))+t.u,t)},kh=function(e,t){return t.set(t.t,t.p,e?t.e:t.b,t)},Lh=function(e,t){return t.set(t.t,t.p,e!==1?t.b:t.e,t)},Xv=function(e,t,r){return e.style[t]=r},Kv=function(e,t,r){return e.style.setProperty(t,r)},Qv=function(e,t,r){return e._gsap[t]=r},Jv=function(e,t,r){return e._gsap.scaleX=e._gsap.scaleY=r},Zv=function(e,t,r,n,s){var o=e._gsap;o.scaleX=o.scaleY=r,o.renderTransform(s,o)},ey=function(e,t,r,n,s){var o=e._gsap;o[t]=r,o.renderTransform(s,o)},Le="transform",cr=Le+"Origin",ty=function(e,t){var r=this,n=this.target,s=n.style;if(e in zr){if(this.tfm=this.tfm||{},e!=="transform"&&(e=Nr[e]||e,~e.indexOf(",")?e.split(",").forEach(function(o){return r.tfm[o]=Lr(n,o)}):this.tfm[e]=n._gsap.x?n._gsap[e]:Lr(n,e)),this.props.indexOf(Le)>=0)return;n._gsap.svg&&(this.svgo=n.getAttribute("data-svg-origin"),this.props.push(cr,t,"")),e=Le}(s||t)&&this.props.push(e,t,s[e])},Fh=function(e){e.translate&&(e.removeProperty("translate"),e.removeProperty("scale"),e.removeProperty("rotate"))},ry=function(){var e=this.props,t=this.target,r=t.style,n=t._gsap,s,o;for(s=0;s<e.length;s+=3)e[s+1]?t[e[s]]=e[s+2]:e[s+2]?r[e[s]]=e[s+2]:r.removeProperty(e[s].replace(Qu,"-$1").toLowerCase());if(this.tfm){for(o in this.tfm)n[o]=this.tfm[o];n.svg&&(n.renderTransform(),t.setAttribute("data-svg-origin",this.svgo||"")),s=Ku(),s&&!s.isStart&&!r[Le]&&(Fh(r),n.uncache=1)}},Ih=function(e,t){var r={target:e,props:[],revert:ry,save:ty};
45return t&&t.split(",").forEach(function(n){return r.save(n)}),r},Nh,Vl=function(e,t){var r=Zr.createElementNS?Zr.createElementNS((t||"http://www.w3.org/1999/xhtml").replace(/^https/,"http"),e):Zr.createElement(e);return r.style?r:Zr.createElement(e)},xr=function i(e,t,r){var n=getComputedStyle(e);return n[t]||n.getPropertyValue(t.replace(Qu,"-$1").toLowerCase())||n.getPropertyValue(t)||!r&&i(e,On(t)||t,1)||""},Ic="O,Moz,ms,Ms,Webkit".split(","),On=function(e,t,r){var n=t||$i,s=n.style,o=5;if(e in s&&!r)return e;for(e=e.charAt(0).toUpperCase()+e.substr(1);o--&&!(Ic[o]+e in s););return o<0?null:(o===3?"ms":o>=0?Ic[o]:"")+e},Wl=function(){Vv()&&window.document&&(kc=window,Zr=kc.document,mn=Zr.documentElement,$i=Vl("div")||{style:{}},Vl("div"),Le=On(Le),cr=Le+"Origin",$i.style.cssText="border-width:0;line-height:0;position:absolute;padding:0",Nh=!!On("perspective"),Ku=Rt.core.reverting,Xu=1)},Za=function i(e){var t=Vl("svg",this.ownerSVGElement&&this.ownerSVGElement.getAttribute("xmlns")||"http://www.w3.org/2000/svg"),r=this.parentNode,n=this.nextSibling,s=this.style.cssText,o;if(mn.appendChild(t),t.appendChild(this),this.style.display="block",e)try{o=this.getBBox(),this._gsapBBox=this.getBBox,this.getBBox=i}catch{}else this._gsapBBox&&(o=this._gsapBBox());return r&&(n?r.insertBefore(this,n):r.appendChild(this)),mn.removeChild(t),this.style.cssText=s,o},Nc=function(e,t){for(var r=t.length;r--;)if(e.hasAttribute(t[r]))return e.getAttribute(t[r])},Rh=function(e){var t;try{t=e.getBBox()}catch{t=Za.call(e,!0)}return t&&(t.width||t.height)||e.getBBox===Za||(t=Za.call(e,!0)),t&&!t.width&&!t.x&&!t.y?{x:+Nc(e,["x","cx","x1"])||0,y:+Nc(e,["y","cy","y1"])||0,width:0,height:0}:t},Bh=function(e){return!!(e.getCTM&&(!e.parentNode||e.ownerSVGElement)&&Rh(e))},Ps=function(e,t){if(t){var r=e.style;t in zr&&t!==cr&&(t=Le),r.removeProperty?((t.substr(0,2)==="ms"||t.substr(0,6)==="webkit")&&(t="-"+t),r.removeProperty(t.replace(Qu,"-$1").toLowerCase())):r.removeAttribute(t)}},ei=function(e,t,r,n,s,o){var a=new Ct(e._pt,t,r,0,1,o?Lh:kh);return e._pt=a,a.b=n,a.e=s,e._props.push(r),a},Rc={deg:1,rad:1,turn:1},iy={grid:1,flex:1},di=function i(e,t,r,n){var s=parseFloat(r)||0,o=(r+"").trim().substr((s+"").length)||"px",a=$i.style,l=Wv.test(t),u=e.tagName.toLowerCase()==="svg",c=(u?"client":"offset")+(l?"Width":"Height"),f=100,h=n==="px",d=n==="%",g,p,m,y;return n===o||!s||Rc[n]||Rc[o]?s:(o!=="px"&&!h&&(s=i(e,t,r,"px")),y=e.getCTM&&Bh(e),(d||o==="%")&&(zr[t]||~t.indexOf("adius"))?(g=y?e.getBBox()[l?"width":"height"]:e[c],ze(d?s/g*f:s/100*g)):(a[l?"width":"height"]=f+(h?o:n),p=~t.indexOf("adius")||n==="em"&&e.appendChild&&!u?e:e.parentNode,y&&(p=(e.ownerSVGElement||{}).parentNode),(!p||p===Zr||!p.appendChild)&&(p=Zr.body),m=p._gsap,m&&d&&m.width&&l&&m.time===Lt.time&&!m.uncache?ze(s/m.width*f):((d||o==="%")&&!iy[xr(p,"display")]&&(a.position=xr(e,"position")),p===e&&(a.position="static"),p.appendChild($i),g=$i[c],p.removeChild($i),a.position="absolute",l&&d&&(m=Ai(p),m.time=Lt.time,m.width=p[c]),ze(h?g*s/f:g&&s?f/g*s:0))))},Lr=function(e,t,r,n){var s;return Xu||Wl(),t in Nr&&t!=="transform"&&(t=Nr[t],~t.indexOf(",")&&(t=t.split(",")[0])),zr[t]&&t!=="transform"?(s=Ts(e,n),s=t!=="transformOrigin"?s[t]:s.svg?s.origin:Jo(xr(e,cr))+" "+s.zOrigin+"px"):(s=e.style[t],(!s||s==="auto"||n||~(s+"").indexOf("calc("))&&(s=Qo[t]&&Qo[t](e,t,r)||xr(e,t)||ih(e,t)||(t==="opacity"?1:0))),r&&!~(s+"").trim().indexOf(" ")?di(e,t,s,r)+r:s},ny=function(e,t,r,n){if(!r||r==="none"){var s=On(t,e,1),o=s&&xr(e,s,1);o&&o!==r?(t=s,r=o):t==="borderColor"&&(r=xr(e,"borderTopColor"))}var a=new Ct(this._pt,e.style,t,0,1,$h),l=0,u=0,c,f,h,d,g,p,m,y,b,v,_,D;if(a.b=r,a.e=n,r+="",n+="",n==="auto"&&(e.style[t]=n,n=xr(e,t)||n,e.style[t]=r),c=[r,n],_h(c),r=c[0],n=c[1],h=r.match(un)||[],D=n.match(un)||[],D.length){for(;f=un.exec(n);)m=f[0],b=n.substring(l,f.index),g?g=(g+1)%5:(b.substr(-5)==="rgba("||b.substr(-5)==="hsla(")&&(g=1),m!==(p=h[u++]||"")&&(d=parseFloat(p)||0,_=p.substr((d+"").length),m.charAt(1)==="="&&(m=gn(d,m)+_),y=parseFloat(m),v=m.substr((y+"").length),l=un.lastIndex-v.length,v||(v=v||It.units[t]||_,l===n.length&&(n+=v,a.e+=v)),_!==v&&(d=di(e,t,p,v)||0),a._pt={_next:a._pt,p:b||u===1?b:",",s:d,c:y-d,m:g&&g<4||t==="zIndex"?Math.round:0});a.c=l<n.length?n.substring(l,n.length):""}else a.r=t==="display"&&n==="none"?Lh:kh;return Qd.test(n)&&(a.e=0),this._pt=a,a},Bc={top:"0%",bottom:"100%",left:"0%",right:"100%",center:"50%"},sy=function(e){var t=e.split(" "),r=t[0],n=t[1]||"50%";return(r==="top"||r==="bottom"||n==="left"||n==="right")&&(e=r,r=n,n=e),t[0]=Bc[r]||r,t[1]=Bc[n]||n,t.join(" ")}
45,oy=function(e,t){if(t.tween&&t.tween._time===t.tween._dur){var r=t.t,n=r.style,s=t.u,o=r._gsap,a,l,u;if(s==="all"||s===!0)n.cssText="",l=1;else for(s=s.split(","),u=s.length;--u>-1;)a=s[u],zr[a]&&(l=1,a=a==="transformOrigin"?cr:Le),Ps(r,a);l&&(Ps(r,Le),o&&(o.svg&&r.removeAttribute("transform"),Ts(r,1),o.uncache=1,Fh(n)))}},Qo={clearProps:function(e,t,r,n,s){if(s.data!=="isFromStart"){var o=e._pt=new Ct(e._pt,t,r,0,0,oy);return o.u=n,o.pr=-10,o.tween=s,e._props.push(r),1}}},Cs=[1,0,0,1,0,0],jh={},Hh=function(e){return e==="matrix(1, 0, 0, 1, 0, 0)"||e==="none"||!e},jc=function(e){var t=xr(e,Le);return Hh(t)?Cs:t.substr(7).match(Kd).map(ze)},Ju=function(e,t){var r=e._gsap||Ai(e),n=e.style,s=jc(e),o,a,l,u;return r.svg&&e.getAttribute("transform")?(l=e.transform.baseVal.consolidate().matrix,s=[l.a,l.b,l.c,l.d,l.e,l.f],s.join(",")==="1,0,0,1,0,0"?Cs:s):(s===Cs&&!e.offsetParent&&e!==mn&&!r.svg&&(l=n.display,n.display="block",o=e.parentNode,(!o||!e.offsetParent)&&(u=1,a=e.nextElementSibling,mn.appendChild(e)),s=jc(e),l?n.display=l:Ps(e,"display"),u&&(a?o.insertBefore(e,a):o?o.appendChild(e):mn.removeChild(e))),t&&s.length>6?[s[0],s[1],s[4],s[5],s[12],s[13]]:s)},ql=function(e,t,r,n,s,o){var a=e._gsap,l=s||Ju(e,!0),u=a.xOrigin||0,c=a.yOrigin||0,f=a.xOffset||0,h=a.yOffset||0,d=l[0],g=l[1],p=l[2],m=l[3],y=l[4],b=l[5],v=t.split(" "),_=parseFloat(v[0])||0,D=parseFloat(v[1])||0,S,C,w,x;r?l!==Cs&&(C=d*m-g*p)&&(w=_*(m/C)+D*(-p/C)+(p*b-m*y)/C,x=_*(-g/C)+D*(d/C)-(d*b-g*y)/C,_=w,D=x):(S=Rh(e),_=S.x+(~v[0].indexOf("%")?_/100*S.width:_),D=S.y+(~(v[1]||v[0]).indexOf("%")?D/100*S.height:D)),n||n!==!1&&a.smooth?(y=_-u,b=D-c,a.xOffset=f+(y*d+b*p)-y,a.yOffset=h+(y*g+b*m)-b):a.xOffset=a.yOffset=0,a.xOrigin=_,a.yOrigin=D,a.smooth=!!n,a.origin=t,a.originIsAbsolute=!!r,e.style[cr]="0px 0px",o&&(ei(o,a,"xOrigin",u,_),ei(o,a,"yOrigin",c,D),ei(o,a,"xOffset",f,a.xOffset),ei(o,a,"yOffset",h,a.yOffset)),e.setAttribute("data-svg-origin",_+" "+D)},Ts=function(e,t){var r=e._gsap||new xh(e);if("x"in r&&!t&&!r.uncache)return r;var n=e.style,s=r.scaleX<0,o="px",a="deg",l=getComputedStyle(e),u=xr(e,cr)||"0",c,f,h,d,g,p,m,y,b,v,_,D,S,C,w,x,P,T,O,A,N,I,B,W,V,M,$,q,ne,le,re,Z;return c=f=h=p=m=y=b=v=_=0,d=g=1,r.svg=!!(e.getCTM&&Bh(e)),l.translate&&((l.translate!=="none"||l.scale!=="none"||l.rotate!=="none")&&(n[Le]=(l.translate!=="none"?"translate3d("+(l.translate+" 0 0").split(" ").slice(0,3).join(", ")+") ":"")+(l.rotate!=="none"?"rotate("+l.rotate+") ":"")+(l.scale!=="none"?"scale("+l.scale.split(" ").join(",")+") ":"")+(l[Le]!=="none"?l[Le]:"")),n.scale=n.rotate=n.translate="none"),C=Ju(e,r.svg),r.svg&&(r.uncache?(V=e.getBBox(),u=r.xOrigin-V.x+"px "+(r.yOrigin-V.y)+"px",W=""):W=!t&&e.getAttribute("data-svg-origin"),ql(e,W||u,!!W||r.originIsAbsolute,r.smooth!==!1,C)),D=r.xOrigin||0,S=r.yOrigin||0,C!==Cs&&(T=C[0],O=C[1],A=C[2],N=C[3],c=I=C[4],f=B=C[5],C.length===6?(d=Math.sqrt(T*T+O*O),g=Math.sqrt(N*N+A*A),p=T||O?Qi(O,T)*Si:0,b=A||N?Qi(A,N)*Si+p:0,b&&(g*=Math.abs(Math.cos(b*vn))),r.svg&&(c-=D-(D*T+S*A),f-=S-(D*O+S*N))):(Z=C[6],le=C[7],$=C[8],q=C[9],ne=C[10],re=C[11],c=C[12],f=C[13],h=C[14],w=Qi(Z,ne),m=w*Si,w&&(x=Math.cos(-w),P=Math.sin(-w),W=I*x+$*P,V=B*x+q*P,M=Z*x+ne*P,$=I*-P+$*x,q=B*-P+q*x,ne=Z*-P+ne*x,re=le*-P+re*x,I=W,B=V,Z=M),w=Qi(-A,ne),y=w*Si,w&&(x=Math.cos(-w),P=Math.sin(-w),W=T*x-$*P,V=O*x-q*P,M=A*x-ne*P,re=N*P+re*x,T=W,O=V,A=M),w=Qi(O,T),p=w*Si,w&&(x=Math.cos(w),P=Math.sin(w),W=T*x+O*P,V=I*x+B*P,O=O*x-T*P,B=B*x-I*P,T=W,I=V),m&&Math.abs(m)+Math.abs(p)>359.9&&(m=p=0,y=180-y),d=ze(Math.sqrt(T*T+O*O+A*A)),g=ze(Math.sqrt(B*B+Z*Z)),w=Qi(I,B),b=Math.abs(w)>2e-4?w*Si:0,_=re?1/(re<0?-re:re):0),r.svg&&(W=e.getAttribute("transform"),r.forceCSS=e.setAttribute("transform","")||!Hh(xr(e,Le)),W&&e.setAttribute("transform",W))),Math.abs(b)>90&&Math.abs(b)<270&&(s?(d*=-1,b+=p<=0?180:-180,p+=p<=0?180:-180):(g*=-1,b+=b<=0?180:-180)),t=t||r.uncache,r.x=c-((r.xPercent=c&&(!t&&r.xPercent||(Math.round(e.offsetWidth/2)===Math.round(-c)?-50:0)))?e.offsetWidth*r.xPercent/100:0)+o,r.y=f-((r.yPercent=f&&(!t&&r.yPercent||(Math.round(e.offsetHeight/2)===Math.round(-f)?-50:0)))?e.offsetHeight*r.yPercent/100:0)+o,r.z=h+o,r.scaleX=ze(d),r.scaleY=ze(g),r.rotation=ze(p)+a,r.rotationX=ze(m)+a,r.rotationY=ze(y)+a,r.skewX=b+a,r.skewY=v+a,r.transformPerspective=_+o,(r.zOrigin=parseFloat(u.split(" ")[2])||0)&&(n[cr]=Jo(u)),r.xOffset=r.yOffset=0,r.force3D=It.force3D,r.renderTransform=r.svg?ly:Nh?zh:ay,r.uncache=0,r},Jo=function(e){return(e=e.split(" "))[0]+" "+e[1]},el=function(e,t,r){var n=dt(t);return ze(parseFloat(t)+parseFloat(di(e,"x",r+"px",n)))+n},ay=function(e,t){t.z="0px",t.rotationY=t.rotationX="0deg",t.force3D=0,zh(e,t)},wi="0deg",Wn="0px",Di=") ",zh=function(e,t){var r=t||this,n=r.xPercent,s=r.yPercent,o=r.x,a=r.y,l=r.z,u=r.rotation,c=r.rotationY,f=r.rotationX,h=r.skewX,d=r.skewY,g=r.scaleX,p=r.scaleY,m=r.transformPerspective,y=r.force3D,b=r.target,v=r.zOrigin,_="",D=y==="auto"&&e&&e!==1||y===!0;if(v&&(f!==wi||c!==wi)){var S=parseFloat(c)*vn,C=Math.sin(S),w=Math.cos(S),x;S=parseFloat(f)*vn,x=Math.cos(S),o=el(b,o,C*x*-v),a=el(b,a,-Math.sin(S)*-v),l=el(b,l,w*x*-v+v)}m!==Wn&&(_+="perspective("+m+Di),(n||s)&&(_+="translate("+n+"%, "+s+"%) "),(D||o!==Wn||a!==Wn||l!==Wn)&&(_+=l!==Wn||D?"translate3d("+o+", "+a+", "+l+") ":"translate("+o+", "+a+Di),u!==wi&&(_+="rotate("+u+Di),c!==wi&&(_+="rotateY("+c+Di),f!==wi&&(_+="rotateX("+f+Di),(h!==wi||d!==wi)&&(_+="skew("+h+", "+d+Di),(g!==1||p!==1)&&(_+="scale("+g+", "+p+Di),b.style[Le]=_||"translate(0, 0)"},ly=function(e,t){var r=t||this,n=r.xPercent,s=r.yPercent,o=r.x,a=r.y,l=r.rotation,u=r.skewX,c=r.skewY,f=r.scaleX,h=r.scaleY,d=r.target,g=r.xOrigin,p=r.yOrigin,m=r.xOffset,y=r.yOffset,b=r.forceCSS,v=parseFloat(o),_=parseFloat(a),D,S,C,w,x;l=parseFloat(l),u=parseFloat(u),c=parseFloat(c),c&&(c=parseFloat(c),u+=c,l+=c),l||u?(l*=vn,u*=vn,D=Math.cos(l)*f,S=Math.sin(l)*f,C=Math.sin(l-u)*-h,w=Math.cos(l-u)*h,u&&(c*=vn,x=Math.tan(u-c),x=Math.sqrt(1+x*x
45),C*=x,w*=x,c&&(x=Math.tan(c),x=Math.sqrt(1+x*x),D*=x,S*=x)),D=ze(D),S=ze(S),C=ze(C),w=ze(w)):(D=f,w=h,S=C=0),(v&&!~(o+"").indexOf("px")||_&&!~(a+"").indexOf("px"))&&(v=di(d,"x",o,"px"),_=di(d,"y",a,"px")),(g||p||m||y)&&(v=ze(v+g-(g*D+p*C)+m),_=ze(_+p-(g*S+p*w)+y)),(n||s)&&(x=d.getBBox(),v=ze(v+n/100*x.width),_=ze(_+s/100*x.height)),x="matrix("+D+","+S+","+C+","+w+","+v+","+_+")",d.setAttribute("transform",x),b&&(d.style[Le]=x)},uy=function(e,t,r,n,s){var o=360,a=it(s),l=parseFloat(s)*(a&&~s.indexOf("rad")?Si:1),u=l-n,c=n+u+"deg",f,h;return a&&(f=s.split("_")[1],f==="short"&&(u%=o,u!==u%(o/2)&&(u+=u<0?o:-o)),f==="cw"&&u<0?u=(u+o*Fc)%o-~~(u/o)*o:f==="ccw"&&u>0&&(u=(u-o*Fc)%o-~~(u/o)*o)),e._pt=h=new Ct(e._pt,t,r,n,u,Gv),h.e=c,h.u="deg",e._props.push(r),h},Hc=function(e,t){for(var r in t)e[r]=t[r];return e},cy=function(e,t,r){var n=Hc({},r._gsap),s="perspective,force3D,transformOrigin,svgOrigin",o=r.style,a,l,u,c,f,h,d,g;n.svg?(u=r.getAttribute("transform"),r.setAttribute("transform",""),o[Le]=t,a=Ts(r,1),Ps(r,Le),r.setAttribute("transform",u)):(u=getComputedStyle(r)[Le],o[Le]=t,a=Ts(r,1),o[Le]=u);for(l in zr)u=n[l],c=a[l],u!==c&&s.indexOf(l)<0&&(d=dt(u),g=dt(c),f=d!==g?di(r,l,u,g):parseFloat(u),h=parseFloat(c),e._pt=new Ct(e._pt,a,l,f,h-f,zl),e._pt.u=g||0,e._props.push(l));Hc(a,n)};Pt("padding,margin,Width,Radius",function(i,e){var t="Top",r="Right",n="Bottom",s="Left",o=(e<3?[t,r,n,s]:[t+s,t+r,n+r,n+s]).map(function(a){return e<2?i+a:"border"+a+i});Qo[e>1?"border"+i:i]=function(a,l,u,c,f){var h,d;if(arguments.length<4)return h=o.map(function(g){return Lr(a,g,u)}),d=h.join(" "),d.split(h[0]).length===5?h[0]:d;h=(c+"").split(" "),d={},o.forEach(function(g,p){return d[g]=h[p]=h[p]||h[(p-1)/2|0]}),a.init(l,d,f)}});var Vh={name:"css",register:Wl,targetTest:function(e){return e.style&&e.nodeType},init:function(e,t,r,n,s){var o=this._props,a=e.style,l=r.vars.startAt,u,c,f,h,d,g,p,m,y,b,v,_,D,S,C,w;Xu||Wl(),this.styles=this.styles||Ih(e),w=this.styles.props,this.tween=r;for(p in t)if(p!=="autoRound"&&(c=t[p],!(Mt[p]&&Ph(p,t,r,n,e,s)))){if(d=typeof c,g=Qo[p],d==="function"&&(c=c.call(r,n,e,s),d=typeof c),d==="string"&&~c.indexOf("random(")&&(c=Ss(c)),g)g(this,e,p,c,r)&&(C=1);else if(p.substr(0,2)==="--")u=(getComputedStyle(e).getPropertyValue(p)+"").trim(),c+="",ai.lastIndex=0,ai.test(u)||(m=dt(u),y=dt(c)),y?m!==y&&(u=di(e,p,u,y)+y):m&&(c+=m),this.add(a,"setProperty",u,c,n,s,0,0,p),o.push(p),w.push(p,0,a[p]);else if(d!=="undefined"){if(l&&p in l?(u=typeof l[p]=="function"?l[p].call(r,n,e,s):l[p],it(u)&&~u.indexOf("random(")&&(u=Ss(u)),dt(u+"")||(u+=It.units[p]||dt(Lr(e,p))||""),(u+"").charAt(1)==="="&&(u=Lr(e,p))):u=Lr(e,p),h=parseFloat(u),b=d==="string"&&c.charAt(1)==="="&&c.substr(0,2),b&&(c=c.substr(2)),f=parseFloat(c),p in Nr&&(p==="autoAlpha"&&(h===1&&Lr(e,"visibility")==="hidden"&&f&&(h=0),w.push("visibility",0,a.visibility),ei(this,a,"visibility",h?"inherit":"hidden",f?"inherit":"hidden",!f)),p!=="scale"&&p!=="transform"&&(p=Nr[p],~p.indexOf(",")&&(p=p.split(",")[0]))),v=p in zr,v){if(this.styles.save(p),_||(D=e._gsap,D.renderTransform&&!t.parseTransform||Ts(e,t.parseTransform),S=t.smoothOrigin!==!1&&D.smooth,_=this._pt=new Ct(this._pt,a,Le,0,1,D.renderTransform,D,0,-1),_.dep=1),p==="scale")this._pt=new Ct(this._pt,D,"scaleY",D.scaleY,(b?gn(D.scaleY,b+f):f)-D.scaleY||0,zl),this._pt.u=0,o.push("scaleY",p),p+="X";else if(p==="transformOrigin"){w.push(cr,0,a[cr]),c=sy(c),D.svg?ql(e,c,0,S,0,this):(y=parseFloat(c.split(" ")[2])||0,y!==D.zOrigin&&ei(this,D,"zOrigin",D.zOrigin,y),ei(this,a,p,Jo(u),Jo(c)));continue}else if(p==="svgOrigin"){ql(e,c,1,S,0,this);continue}else if(p in jh){uy(this,D,p,h,b?gn(h,b+c):c);continue}else if(p==="smoothOrigin"){ei(this,D,"smooth",D.smooth,c);continue}else if(p==="force3D"){D[p]=c;continue}else if(p==="transform"){cy(this,c,e);continue}}else p in a||(p=On(p)||p);if(v||(f||f===0)&&(h||h===0)&&!qv.test(c)&&p in a)m=(u+"").substr((h+"").length),f||(f=0),y=dt(c)||(p in It.units?It.units[p]:m),m!==y&&(h=di(e,p,u,y)),this._pt=new Ct(this._pt,v?D:a,p,h,(b?gn(h,b+f):f)-h,!v&&(y==="px"||p==="zIndex")&&t.autoRound!==!1?Uv:zl),this._pt.u=y||0,m!==y&&y!=="%"&&(this._pt.b=u,this._pt.r=Yv);else if(p in a)ny.call(this,e,p,u,b?b+c:c);else if(p in e)this.add(e,p,u||e[p],b?b+c:c,n,s);else if(p!=="parseTransform"){ju(p,c);continue}
45v||(p in a?w.push(p,0,a[p]):w.push(p,1,u||e[p])),o.push(p)}}C&&Mh(this)},render:function(e,t){if(t.tween._time||!Ku())for(var r=t._pt;r;)r.r(e,r.d),r=r._next;else t.styles.revert()},get:Lr,aliases:Nr,getSetter:function(e,t,r){var n=Nr[t];return n&&n.indexOf(",")<0&&(t=n),t in zr&&t!==cr&&(e._gsap.x||Lr(e,"x"))?r&&Lc===r?t==="scale"?Jv:Qv:(Lc=r||{})&&(t==="scale"?Zv:ey):e.style&&!Ru(e.style[t])?Xv:~t.indexOf("-")?Kv:Yu(e,t)},core:{_removeProperty:Ps,_getMatrix:Ju}};Rt.utils.checkPrefix=On;Rt.core.getStyleSaver=Ih;(function(i,e,t,r){var n=Pt(i+","+e+","+t,function(s){zr[s]=1});Pt(e,function(s){It.units[s]="deg",jh[s]=1}),Nr[n[13]]=i+","+e,Pt(r,function(s){var o=s.split(":");Nr[o[1]]=n[o[0]]})})("x,y,z,scale,scaleX,scaleY,xPercent,yPercent","rotation,rotationX,rotationY,skewX,skewY","transform,transformOrigin,svgOrigin,force3D,smoothOrigin,transformPerspective","0:translateX,1:translateY,2:translateZ,8:rotate,8:rotationZ,8:rotateZ,9:rotateX,10:rotateY");Pt("x,y,z,top,right,bottom,left,width,height,fontSize,padding,margin,perspective",function(i){It.units[i]="px"});Rt.registerPlugin(Vh);var Ve=Rt.registerPlugin(Vh)||Rt;Ve.core.Tween;class fy extends Bt{constructor({$header:t}){super();E(this,"$header");E(this,"$el");E(this,"$top");E(this,"$bottom");E(this,"$center");E(this,"isMobile");E(this,"toggleTl");E(this,"openEvent");E(this,"closeEvent");E(this,"open");this.$header=t,this.$el=document.querySelector(".burger"),this.$top=this.$el.querySelector(".top"),this.$bottom=this.$el.querySelector(".bottom"),this.$center=this.$el.querySelector(".center"),this.$el&&(this.open=!1,this.toggleTl=null,this.openEvent=new CustomEvent("open",{detail:{}}),this.closeEvent=new CustomEvent("close",{detail:{}}),this.init(),this.bindEvents())}init(){this.toggleTl=Ve.timeline({paused:!0,reversed:!0}),this.toggleTl.to(this.$top,{y:"11px",duration:.2},"collapse").to(this.$bottom,{y:"-11px",duration:.2},"collapse").to(this.$center,{opacity:0,duration:.2},"collapse").to(this.$top,{rotate:45,transformOrigin:"50%",duration:.2},"rotate").to(this.$bottom,{rotate:-45,transformOrigin:"50%",duration:.2},"rotate")}bindEvents(){this.$el.on("click",()=>this._onClick()),window.on("resized",()=>this._onResized())}_onResized(){this.isMobile=window.APP.isOnlyTouch,this.isMobile||this.$header.classList.remove("is-open")}_onClick(){this.handleClick()}handleClick(){this.open?this.$header.dispatchEvent(this.closeEvent):this.openMenu()}openMenu(){this.open=!0,this.$header.classList.add("is-open"),this.toggleTl.restart(),Pc(!0)}closeMenu(){this.open=!1,this.toggleTl.reverse(),this.$header.classList.remove("is-open"),Pc(!1)}}class dy extends Bt{constructor({$el:t}){super();E(this,"$el");E(this,"$button");E(this,"$menu");E(this,"open");this.$el=t,this.$el&&(this.$button=this.$el.querySelector(".langswitch-button"),this.$menu=this.$el.querySelector(".langswitch-menu"),this.open=!1,this.bindEvents())}bindEvents(){this.$button.on("click",()=>this._onClick()),this.$menu.on("mouseleave",()=>this._onLeave()),window.on("resized",()=>this._onResized())}_onResized(){this.$el.classList.remove("is-langswitch-open")}_onClick(){this.toggle()}_onLeave(){this.toggle()}toggle(){this.open=!this.open,this.$el.classList.toggle("is-langswitch-open",this.open)}}let hy=class extends Bt{constructor({$header:t}){super();E(this,"$header");E(this,"$items");E(this,"$subItems");E(this,"$submenus");E(this,"$primarySubmenus");E(this,"$secondarySubmenus");E(this,"$closeBtns");E(this,"isMobile");this.$header=t,this.$items=t.querySelectorAll(".nav-item-has-children .nav-item-title"),this.$subItems=t.querySelectorAll(".submenu-item-has-children > span"),this.$submenus=t.querySelectorAll(".submenu"),this.$primarySubmenus=t.querySelectorAll(".submenu-level-1"),this.$secondarySubmenus=t.querySelectorAll(".submenu-level-2"),this.$closeBtns=t.querySelectorAll(".submenu-close"),this.isMobile=window.APP.isOnlyTouch,this.bindEvents()}bindEvents(){window.on("resized",()=>this._onResized()),this.$items.forEach((t,r)=>{t.on("click",n=>this._onClick(n,t))}),this.$subItems.forEach((t,r)=>{t.on("click",n=>this._onClick(n,t))}
45),this.$primarySubmenus.forEach((t,r)=>{t.on("mouseleave",()=>this.closeAll())}),this.$closeBtns.forEach((t,r)=>{t.on("click",()=>this._onClose(t))})}_onResized(){this.isMobile=window.APP.isOnlyTouch,this.closeAll()}_onClick(t,r){t.preventDefault(),t.stopPropagation(),this.handleClick(r)}_onClose(t){const r=t.closest(".submenu");r.classList.contains("submenu-level-2")?(t.closest(".submenu-level-1").classList.remove("has-open-submenu"),r.classList.remove("menu-collapsed")):this.closeAll()}closeAll(){this.$submenus.forEach(t=>{t.classList.remove("menu-collapsed"),t.classList.remove("has-open-submenu")})}closeSecondarySubmenus(){this.$secondarySubmenus.forEach(t=>{t.classList.remove("menu-collapsed")})}handleClick(t){const r=t.parentNode.querySelector(".submenu");if(r.classList.contains("submenu-level-2")){const n=t.closest(".submenu-level-1");n.classList.add("has-open-submenu"),n.scrollTop=0,this.closeSecondarySubmenus()}else this.closeAll();r.classList.add("menu-collapsed")}};class zc extends Bt{constructor(){super();E(this,"$el");E(this,"burger");E(this,"navigation");E(this,"langswitch");E(this,"limit");E(this,"dir");E(this,"st");this.$el=document.querySelector(".header"),this.$el&&(this.limit=100,this.dir=0,this.init(),this.bindEvents())}init(){this.burger=new fy({$header:this.$el}),this.navigation=new hy({$header:this.$el}),document.querySelectorAll(".langswitch").forEach(r=>{new dy({$el:r})})}bindEvents(){this.$el.on("close",()=>{this.burger.closeMenu(),this.navigation.closeAll()}),window.on("scroll",()=>this._onScroll())}_onScroll(){this.dir=this.st>window.scrollY?-1:1,window.scrollY>this.limit?this.$el.classList.add("header--scrolled"):this.$el.classList.remove("header--scrolled"),this.dir>0?this.$el.classList.add("header--down"):this.$el.classList.remove("header--down"),window.scrollY===0&&this.$el.classList.remove("header--down"),this.st=window.scrollY}}/*! 46 * strings: 3.11.4 47 * https://greensock.com 48 * 49 * Copyright 2008-2022, GreenSock. All rights reserved. 50 * Subject to the terms at https://greensock.com/standard-license or for 51 * Club GreenSock members, the agreement issued with that membership. 52 * @author: Jack Doyle, [email protected] 53*/var py=/([\uD800-\uDBFF][\uDC00-\uDFFF](?:[\u200D\uFE0F][\uD800-\uDBFF][\uDC00-\uDFFF]){2,}|\uD83D\uDC69(?:\u200D(?:(?:\uD83D\uDC69\u200D)?\uD83D\uDC67|(?:\uD83D\uDC69\u200D)?\uD83D\uDC66)|\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC69\u200D(?:\uD83D\uDC69\u200D)?\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC69\u200D(?:\uD83D\uDC69\u200D)?\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|\uD83C\uDFF3\uFE0F\u200D\uD83C\uDF08|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]\uFE0F|\uD83D\uDC69(?:\uD83C[\uDFFB-\uDFFF])\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92])|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC6F\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3C-\uDD3E\uDDD6-\uDDDF])\u200D[\u2640\u2642]\uFE0F|\uD83C\uDDFD\uD83C\uDDF0|\uD83C\uDDF6\uD83C\uDDE6|\uD83C\uDDF4\uD83C\uDDF2|\uD83C\uDDE9(?:\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF])|\uD83C\uDDF7(?:\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC])|\uD83C\uDDE8(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF])|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uFE0F\u200D[\u2640\u2642]|(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642])\uFE0F|(?:\uD83D\uDC41\uFE0F\u200D\uD83D\uDDE8|\uD83D\uDC69(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2695\u2696\u2708]|\uD83D\uDC69\u200D[\u2695\u2696\u2708]|\uD83D\uDC68(?:(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708]))\uFE0F|\uD83C\uDDF2(?:\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF])|\uD83D\uDC69\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69]))|\uD83C\uDDF1(?:\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE])|\uD83C\uDDEF(?:\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5])|\uD83C\uDDED(?:\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA])|\uD83C\uDDEB(?:\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7])|[#\*0-9]\uFE0F\u20E3|\uD83C\uDDE7(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF])|\uD83C\uDDE6(?:\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF])|\uD83C\uDDFF(?:\uD83C[\uDDE6\uDDF2\uDDFC])|\uD83C\uDDF5(?:\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE])|\uD83C\uDDFB(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA])|\uD83C\uDDF3(?:\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF])|\uD83C\uDFF4\uDB40\uDC67\uDB40\uDC62(?:\uDB40\uDC77\uDB40\uDC6C\uDB40\uDC73|\uDB40\uDC73\uDB40\uDC63\uDB40\uDC74|\uDB40\uDC65\uDB40\uDC6E\uDB40\uDC67)\uDB40\uDC7F|\uD83D\uDC68(?:\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83D\uDC68|(?:(?:\uD83D[\uDC68\uDC69])\u200D)?\uD83D\uDC66\u200D\uD83D\uDC66|(?:(?:\uD83D[\uDC68\uDC69])\u200D)?\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92])|(?:\uD83C[\uDFFB-\uDFFF])\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]))|\uD83C\uDDF8(?:\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF])|\uD83C\uDDF0(?:\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF])|\uD83C\uDDFE(?:\uD83C[\uDDEA\uDDF9])|\uD83C\uDDEE(?:\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9])|\uD83C\uDDF9(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF])|\uD83C\uDDEC(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE])|\uD83C\uDDFA(?:\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF])|\uD83C\uDDEA(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA])|\uD83C\uDDFC(?:\uD83C[\uDDEB\uDDF8])|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u261D\u270A-\u270D]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC70\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDCAA\uDD74\uDD7A\uDD90\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD36\uDDD1-\uDDD5])(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC68(?:\u200D(?:(?:(?:\uD83D[\uDC68\uDC69])\u200D)?\uD83D\uDC67|(?:(?:\uD83D[\uDC68\uDC69])\u200D)?\uD83D\uDC66)|\uD83C[\uDFFB-\uDFFF])|(?:[\u261D\u26F9\u270A-\u270D]|\uD83C[\uDF85\uDFC2-\uD
53FC4\uDFC7\uDFCA-\uDFCC]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66-\uDC69\uDC6E\uDC70-\uDC78\uDC7C\uDC81-\uDC83\uDC85-\uDC87\uDCAA\uDD74\uDD75\uDD7A\uDD90\uDD95\uDD96\uDE45-\uDE47\uDE4B-\uDE4F\uDEA3\uDEB4-\uDEB6\uDEC0\uDECC]|\uD83E[\uDD18-\uDD1C\uDD1E\uDD1F\uDD26\uDD30-\uDD39\uDD3D\uDD3E\uDDD1-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])?|(?:[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u270A\u270B\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF93\uDFA0-\uDFCA\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF4\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC3E\uDC40\uDC42-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDD7A\uDD95\uDD96\uDDA4\uDDFB-\uDE4F\uDE80-\uDEC5\uDECC\uDED0-\uDED2\uDEEB\uDEEC\uDEF4-\uDEF8]|\uD83E[\uDD10-\uDD3A\uDD3C-\uDD3E\uDD40-\uDD45\uDD47-\uDD4C\uDD50-\uDD6B\uDD80-\uDD97\uDDC0\uDDD0-\uDDE6])|(?:[#\*0-9\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u261D\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u2660\u2663\u2665\u2666\u2668\u267B\u267F\u2692-\u2697\u2699\u269B\u269C\u26A0\u26A1\u26AA\u26AB\u26B0\u26B1\u26BD\u26BE\u26C4\u26C5\u26C8\u26CE\u26CF\u26D1\u26D3\u26D4\u26E9\u26EA\u26F0-\u26F5\u26F7-\u26FA\u26FD\u2702\u2705\u2708-\u270D\u270F\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763\u2764\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC04\uDCCF\uDD70\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE02\uDE1A\uDE2F\uDE32-\uDE3A\uDE50\uDE51\uDF00-\uDF21\uDF24-\uDF93\uDF96\uDF97\uDF99-\uDF9B\uDF9E-\uDFF0\uDFF3-\uDFF5\uDFF7-\uDFFF]|\uD83D[\uDC00-\uDCFD\uDCFF-\uDD3D\uDD49-\uDD4E\uDD50-\uDD67\uDD6F\uDD70\uDD73-\uDD7A\uDD87\uDD8A-\uDD8D\uDD90\uDD95\uDD96\uDDA4\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA-\uDE4F\uDE80-\uDEC5\uDECB-\uDED2\uDEE0-\uDEE5\uDEE9\uDEEB\uDEEC\uDEF0\uDEF3-\uDEF8]|\uD83E[\uDD10-\uDD3A\uDD3C-\uDD3E\uDD40-\uDD45\uDD47-\uDD4C\uDD50-\uDD6B\uDD80-\uDD97\uDDC0\uDDD0-\uDDE6])\uFE0F)/;function Wh(i){var e=i.nodeType,t="";if(e===1||e===9||e===11){if(typeof i.textContent=="string")return i.textContent;for(i=i.firstChild;i;i=i.nextSibling)t+=Wh(i)}else if(e===3||e===4)return i.nodeValue;return t}/*! 54 * SplitText: 3.11.4 55 * https://greensock.com 56 * 57 * @license Copyright 2008-2022, GreenSock. All rights reserved. 58 * Subject to the terms at https://greensock.com/standard-license or for 59 * Club GreenSock members, the agreement issued with that membership. 60 * @author: Jack Doyle, [email protected] 61*/var fn,Gl,qh,qn,Gh,Ra,gy=/(?:\r|\n|\t\t)/g,my=/(?:\s\s+)/g,Yh=function(e){fn=document,Gl=window,qn=qn||e||Gl.gsap||console.warn("Please gsap.registerPlugin(SplitText)"),qn&&(Ra=qn.utils.toArray,Gh=qn.core.context||function(){},qh=1)},Uh=function(e){return Gl.getComputedStyle(e)},Zu=function(e){return e.position==="absolute"||e.absolute===!0},vy=function(e,t){for(var r=t.length,n;--r>-1;)if(n=t[r],e.substr(0,n.length)===n)return n.length},yy=" style='position:relative;display:inline-block;'",Vc=function(e,t){e===void 0&&(e="");var r=~e.indexOf("++"),n=1;return r&&(e=e.split("++").join("")),function(){return"<"+t+yy+(e?" class='"+e+(r?n++:"")+"'>":">")}},Xh=function i(e,t,r){var n=e.nodeType;if(n===1||n===9||n===11)for(e=e.firstChild;e;e=e.nextSibling)i(e,t,r);else(n===3||n===4)&&(e.nodeValue=e.nodeValue.split(t).join(r))},tl=function(e,t){for(var r=t.length;--r>-1;)e.push(t[r])},Wc=function(e,t,r){for(var n;e&&e!==t;){if(n=e._next||e.nextSibling,n)return n.textContent.charAt(0)===r;e=e.parentNode||e._parent}},by=function i(e){var t=Ra(e.childNodes),r=t.length,n,s;for(n=0;n<r;n++)s=t[n],s._isSplit?i(s):n&&s.previousSibling&&s.previousSibling.nodeType===3?(s.previousSibling.nodeValue+=s.nodeType===3?s.nodeValue:s.firstChild.nodeValue,e.removeChild(s)):s.nodeType!==3&&(e.insertBefore(s.firstChild,s),e.removeChild(s))},mr=function(e,t){return parseFloat(t[e])||0},_y=function(e,t,r,n,s,o,a){var l=Uh(e),u=mr("paddingLeft",l),c=-999,f=mr("borderBottomWidth",l)+mr("borderTopWidth",l),h=mr("borderLeftWidth",l)+mr("borderRightWidth",l),d=mr("paddingTop",l)+mr("paddingBottom",l),g=mr("paddingLeft",l)+mr("paddingRight",l),p=mr("fontSize",l)*(t.lineThreshold||.2),m=l.textAlign,y=[],b=[],v=[],_=t.wordDelimiter||" ",D=t.tag?t.tag:t.span?"span":"div",S=t.type||t.split||"chars,words,lines",C=s&&~S.indexOf("lines")?[]:null,w=~S.indexOf("words"),x=~S.indexOf("chars"),P=Zu(t),T=t.linesClass,O=~(T||"").indexOf("++"),A=[],N=l.display==="flex",I=e.style.display,B,W,V,M,$,q,ne,le,re,Z,pe,ue;for(O&&(T=T.split("++").join("")),N&&(e.style.display="block"),W=e.getElementsByTagName("*"),V=W.length,$=[],B=0;B<V;B++)$[B]=W[B];if(C||P)for(B=0;B<V;B++)M=$[B],q=M.parentNode===e,(q||P||x&&!w)&&(ue=M.offsetTop,C&&q&&Math.abs(ue-c)>p&&(M.nodeName!=="BR"||B===0)&&(ne=[],C.push(ne),c=ue),P&&(M._x=M.offsetLeft,M._y=ue,M._w=M.offsetWidth,M._h=M.offsetHeight),C&&((M._isSplit&&q||!x&&q||w&&q||!w&&M.parentNode.parentNode===e&&!M.parentNode._isSplit)&&(ne.push(M),M._x-=u,Wc(M,e,_)&&(M._wordEnd=!0)),M.nodeName==="BR"&&(M.nextSibling&&M.nextSibling.nodeName==="BR"||B===0)&&C.push([])));for(B=0;B<V;B++){if(M=$[B],q=M.parentNode===e,M.nodeName==="BR"){C||P?(M.parentNode&&M.parentNode.removeChild(M),$.splice(B--,1),V--):w||e.a
61ppendChild(M);continue}if(P&&(re=M.style,!w&&!q&&(M._x+=M.parentNode._x,M._y+=M.parentNode._y),re.left=M._x+"px",re.top=M._y+"px",re.position="absolute",re.display="block",re.width=M._w+1+"px",re.height=M._h+"px"),!w&&x)if(M._isSplit)for(M._next=W=M.nextSibling,M.parentNode.appendChild(M);W&&W.nodeType===3&&W.textContent===" ";)M._next=W.nextSibling,M.parentNode.appendChild(W),W=W.nextSibling;else M.parentNode._isSplit?(M._parent=M.parentNode,!M.previousSibling&&M.firstChild&&(M.firstChild._isFirst=!0),M.nextSibling&&M.nextSibling.textContent===" "&&!M.nextSibling.nextSibling&&A.push(M.nextSibling),M._next=M.nextSibling&&M.nextSibling._isFirst?null:M.nextSibling,M.parentNode.removeChild(M),$.splice(B--,1),V--):q||(ue=!M.nextSibling&&Wc(M.parentNode,e,_),M.parentNode._parent&&M.parentNode._parent.appendChild(M),ue&&M.parentNode.appendChild(fn.createTextNode(" ")),D==="span"&&(M.style.display="inline"),y.push(M));else M.parentNode._isSplit&&!M._isSplit&&M.innerHTML!==""?b.push(M):x&&!M._isSplit&&(D==="span"&&(M.style.display="inline"),y.push(M))}for(B=A.length;--B>-1;)A[B].parentNode.removeChild(A[B]);if(C){for(P&&(Z=fn.createElement(D),e.appendChild(Z),pe=Z.offsetWidth+"px",ue=Z.offsetParent===e?0:e.offsetLeft,e.removeChild(Z)),re=e.style.cssText,e.style.cssText="display:none;";e.firstChild;)e.removeChild(e.firstChild);
61for(le=_===" "&&(!P||!w&&!x),B=0;B<C.length;B++){for(ne=C[B],Z=fn.createElement(D),Z.style.cssText="display:block;text-align:"+m+";position:"+(P?"absolute;":"relative;"),T&&(Z.className=T+(O?B+1:"")),v.push(Z),V=ne.length,W=0;W<V;W++)ne[W].nodeName!=="BR"&&(M=ne[W],Z.appendChild(M),le&&M._wordEnd&&Z.appendChild(fn.createTextNode(" ")),P&&(W===0&&(Z.style.top=M._y+"px",Z.style.left=u+ue+"px"),M.style.top="0px",ue&&(M.style.left=M._x-ue+"px")));V===0?Z.innerHTML=" ":!w&&!x&&(by(Z),Xh(Z,"Â "," ")),P&&(Z.style.width=pe,Z.style.height=M._h+"px"),e.appendChild(Z)}e.style.cssText=re}P&&(a>e.clientHeight&&(e.style.height=a-d+"px",e.clientHeight<a&&(e.style.height=a+f+"px")),o>e.clientWidth&&(e.style.width=o-g+"px",e.clientWidth<o&&(e.style.width=o+h+"px"))),N&&(I?e.style.display=I:e.style.removeProperty("display")),tl(r,y),w&&tl(n,b),tl(s,v)},wy=function(e,t,r,n){var s=t.tag?t.tag:t.span?"span":"div",o=t.type||t.split||"chars,words,lines",a=~o.indexOf("chars"),l=Zu(t),u=t.wordDelimiter||" ",c=u!==" "?"":l?"­ ":" ",f="</"+s+">",h=1,d=t.specialChars?typeof t.specialChars=="function"?t.specialChars:vy:null,g,p,m,y,b,v,_,D,S=fn.createElement("div"),C=e.parentNode;for(C.insertBefore(S,e),S.textContent=e.nodeValue,C.removeChild(e),e=S,g=Wh(e),_=g.indexOf("<")!==-1,t.reduceWhiteSpace!==!1&&(g=g.replace(my," ").replace(gy,"")),_&&(g=g.split("<").join("{{LT}}")),b=g.length,p=(g.charAt(0)===" "?c:"")+r(),m=0;m<b;m++)if(v=g.charAt(m),d&&(D=d(g.substr(m),t.specialChars)))v=g.substr(m,D||1),p+=a&&v!==" "?n()+v+"</"+s+">":v,m+=D-1;else if(v===u&&g.charAt(m-1)!==u&&m){for(p+=h?f:"",h=0;g.charAt(m+1)===u;)p+=c,m++;m===b-1?p+=c:g.charAt(m+1)!==")"&&(p+=c+r(),h=1)}else v==="{"&&g.substr(m,6)==="{{LT}}
61"?(p+=a?n()+"{{LT}}</"+s+">":"{{LT}}",m+=5):v.charCodeAt(0)>=55296&&v.charCodeAt(0)<=56319||g.charCodeAt(m+1)>=65024&&g.charCodeAt(m+1)<=65039?(y=((g.substr(m,12).split(py)||[])[1]||"").length||2,p+=a&&v!==" "?n()+g.substr(m,y)+"</"+s+">":g.substr(m,y),m+=y-1):p+=a&&v!==" "?n()+v+"</"+s+">":v;e.outerHTML=p+(h?f:""),_&&Xh(C,"{{LT}}","<")},Dy=function i(e,t,r,n){var s=Ra(e.childNodes),o=s.length,a=Zu(t),l,u;if(e.nodeType!==3||o>1){for(t.absolute=!1,l=0;l<o;l++)u=s[l],u._next=u._isFirst=u._parent=u._wordEnd=null,(u.nodeType!==3||/\S+/.test(u.nodeValue))&&(a&&u.nodeType!==3&&Uh(u).display==="inline"&&(u.style.display="inline-block",u.style.position="relative"),u._isSplit=!0,i(u,t,r,n));t.absolute=a,e._isSplit=!0;return}wy(e,t,r,n)},Es=function(){function i(t,r){qh||Yh(),this.elements=Ra(t),this.chars=[],this.words=[],this.lines=[],this._originals=[],this.vars=r||{},Gh(this),this.split(r)}var e=i.prototype;return e.split=function(r){this.isSplit&&this.revert(),this.vars=r=r||this.vars,this._originals.length=this.chars.length=this.words.length=this.lines.length=0;for(var n=this.elements.length,s=r.tag?r.tag:r.span?"span":"div",o=Vc(r.wordsClass,s),a=Vc(r.charsClass,s),l,u,c;--n>-1;)c=this.elements[n],this._originals[n]=c.innerHTML,l=c.clientHeight,u=c.clientWidth,Dy(c,r,o,a),_y(c,r,this.chars,this.words,this.lines,u,l);return this.chars.reverse(),this.words.reverse(),this.lines.reverse(),this.isSplit=!0,this},e.revert=function(){var r=this._originals;if(!r)throw"revert() call wasn't scoped properly.";return this.elements.forEach(function(n,s){return n.innerHTML=r[s]}),this.chars=[],this.words=[],this.lines=[],this.isSplit=!1,this},i.create=function(r,n){return new i(r,n)},i}();Es.version="3.11.4";Es.register=Yh;Ve.registerPlugin(Es);class Sy extends Bt{constructor({$el:t,open:r}){super();E(this,"$el");E(this,"$actions");E(this,"$target");E(this,"limit");E(this,"autoClose");E(this,"open");E(this,"height");E(this,"closeHeight");this.$el=t,this.$actions=this.$el.querySelectorAll("[data-collapse-action]"),this.$target=this.$el.querySelector("[data-collapse-target]"),this.limit=this.$el.dataset.collapseLimit,this.autoClose=!!this.$el.dataset.collapseAutoClose,this.closeHeight=this.$el.clientHeight-this.$target.clientHeight,this.open=r??this.$el.dataset.collapse==="open"??!1,this.height={open:this.$el.clientHeight,close:this.closeHeight},this.limit&&setTimeout(()=>{this.setLimit()}),this.init(),this.bindEvents()}bindEvents(){this.$actions.forEach(t=>{t.on("click",r=>this._onClick(r,t))})}init(){this.handleClick()}setLimit(){const t=new Es(this.$target,{type:"lines",tag:"split"});let r=[];t.lines.forEach(a=>{if(!a.children){r.push(a.clientHeight);return}Array.from(a.children).forEach(l=>{const u=new Es(l,{type:"lines",tag:"split"});u.lines.forEach(c=>{r.push(c.clientHeight)}),u.revert()})}),t.revert();const s=r.slice(0,+this.limit).reduce((a,l)=>a+l,0),o=r.reduce((a,l)=>a+l,0);this.height={open:o,close:s},s===o&&this.handleNoToggle(),this.handleClick()}_onClick(t,r){const n=r.dataset.collapseAction,s=n!=="open"&&n!=="close",o=n==="open",a=n==="close";s&&(this.open=!this.open),o&&(this.open=!0),a&&(this.open=!1),this.handleClick()}_onClickOutside(t){if(!this.open)return;const{target:r}=t;r.closest("[data-collapse]")!==this.$el&&(this.open=!1,this.handleClick())}_onOpen(){this.open=!0,this.handleClick()}_onClose(){this.open=!1,this.handleClick()}_onResize(){this.open&&this._onClose()}handleClick(){this.$el.classList.toggle("open",this.open),this.open?this.handleOpen():this.handleClose()}handleOpen(){this.height.open=this.$target.clientHeight+this.$el.clientHeight,this.$el.style.setProperty("--height",`${this.height.open}px`)}handleClose(){this.$el.style.setProperty("--height",`${this.height.close}px`)}handleNoToggle(){this.$actions.forEach(t=>t.remove())}}class xy{constructor(){E(this,"Functions");E(this,"classes")}register(e,t,r,n,s){if(!r){const l=this.classes[t];new l({options:s});return}const o=document.querySelectorAll(r);if(!o.length||!(t in this.classes))return;const a=this.classes[t];n?new a({$els:o,options:s}):o.forEach(l=>{const u=new a({$el:l,options:s});e.class=u,e.destroy=u.destroy??null,e.off=u.off??null,e.on=u.on??null})}}class Py extends Bt{constructor({$el:t}){super();E(this,"$el");E(this,"drag");this.$el=t,this.drag={start:0,x:0,on:!1,enable:this.$el.scrollWidth>this.$el.parentNode.clientWidth},window.on("resized",()=>this._onResize()),this.$el.classList.toggle("draggable",this.drag.enable),this.drag.enable&&this.on()}on(){this.$el.on("mousedown",t=>this._onDragStart(t)),this.$el.on("mousemove",t=>this._onDrag(t)),this.$el.on("mouseup",()=>this._onDragEnd()),this.$el.on("touchstart",t=>this._onTouchStart(t)),this.$el.on("touchmove",t=>this._onTouch(t)),this.$el.on("touchend",()=>this._onTouchEnd())}_onResize(){this.drag.enable=this.$el.scrollWidth>this.$el.parentNode.clientWidth,this.$el.classList.toggle("draggable",this.drag.enable),this.drag.enable?this.on():this.off()}_onDragStart({clientX:t}){this.drag.on||this.handleStart(t)}_onDrag({clientX:t}){this.drag.on&&this.handleMove(t)}_onDragEnd(){this.handleEnd()}_onTouchStart(t){if(this.drag.on)return;const{clientX:r}=t.touches[0];this.handleStart(r)}_onTouch(t){if(!this.drag.on)return;const{clientX:r}=t.touches[0];this.handleMove(r)}_onTouchEnd(){this.handleEnd()}handleStart(t){this.drag.on=!0;const{scrollLeft:r}=this.$el;this.drag.start=r+t,this.$el.classList.add("draggin")}handleMove(t){this.drag.x=this.drag.start-t,this.$el.scrollLeft=this.drag.x}handleEnd(){this.drag.on=!1,this.$el.classList.remove("draggin")}}const Cy={dom:i=>fetch(i).then(e=>e.text()).then(e=>new DOMParser().parseFromString(e,"text/html")).catch(function(e){console.log("Failed to fetch page: ",e)}),json:()=>{}},Ty=()=>{const i=async(e,t,r)=>new Promise((n,s)=>{e(()=>{n(t)})}).then(function(){r&&r()});return{exampleCb:e=>{setTimeout(()=>
61{console.log("_event: done()"),e()},1e3)},_event:async(e,t,r)=>await i(e,t,r)}};class Kh extends Bt{constructor({$el:t}){super();E(this,"timeline");E(this,"fetch");E(this,"$el");E(this,"$actions");E(this,"$targets");E(this,"$newTargets");E(this,"$more");E(this,"$newMore");E(this,"url");E(this,"loading");E(this,"actionType");E(this,"actionDataset");this.timeline=Ty(),this.fetch=Cy,this.loading=!1}async _onClick(t,r){t.preventDefault(),t.stopPropagation(),this.url=r.href,this.loading=!0,this.$el.classList.add("is-loading"),this.actionType=r.dataset[this.actionDataset]?r.dataset[this.actionDataset]:"replace",r.hasAttribute("data-filters-more")&&(this.$more=r);const n=await this.fetch.dom(this.url);this.loading=!1,this.$el.classList.remove("is-loading"),this.handleClick(n)}_onReset(){}_onLoad(){}handleClick(t){}beforeleave(t){t()}leave(t){t()}afterleave(t){t()}beforeenter(t){t()}enter(t){t()}afterenter(t){t()}async handleNewItemInDOM(){this.actionType==="replace"?(this.$targets[0].parentNode.innerHTML=this.$newTargets[0].parentNode.innerHTML,this.$newMore?(this.$el.querySelector("[data-filters-more-container]").innerHTML=this.$newMore.parentNode.innerHTML,this.$more=this.$el.querySelector("[data-filters-more]"),this.$more.on("click",t=>this._onClick(t,this.$more))):(this.$more=this.$el.querySelector("[data-filters-more]"),this.$more&&this.$more.remove())):this.actionType==="append"&&(this.$targets[0].parentNode.innerHTML+=this.$newTargets[0].parentNode.innerHTML,this.$newMore?this.$more.setAttribute("href",this.$newMore.getAttribute("href")):this.$more.remove())}async _onUpdate(){await this.timeline._event(this.beforeleave.bind(this),1),await this.timeline._event(this.leave.bind(this),2),await this.timeline._event(this.afterleave.bind(this),3),await this.handleNewItemInDOM(),await this.timeline._event(this.beforeenter.bind(this),4),await this.timeline._event(this.enter.bind(this),5),await this.timeline._event(this.afterenter.bind(this),6)}on(){this.$actions.forEach(t=>{t.on("click",r=>this._onClick(r,t))})}off(){}}class Ey extends Kh{constructor({$el:t}){super({$el:t});E(this,"$active");E(this,"$intro");E(this,"$newIntro");this.$el=t,this.actionDataset="filtersAction",this.$active=this.$el.querySelector(".active"),this.$actions=this.$el.querySelectorAll("[data-filters-action]"),this.$targets=this.$el.querySelectorAll("[data-filters-target]"),this.$intro=document.querySelector("[data-intro]"),this.on()}async _onClick(t,r){super._onClick(t,r),r.hasAttribute("data-filters-more")||(this.$active.classList.remove("active"),this.$active=r,this.$active.classList.add("active"))}handleClick(t){this.$newTargets=t.querySelectorAll("[data-filters-target]"),this.$newMore=t.querySelector("[data-filters-more]"),this.$newIntro=t.querySelector("[data-intro]"),t.querySelectorAll("[data-observer]").forEach(n=>n.classList.add("--appear")),this._onUpdate()}async _onUpdate(){super._onUpdate(),this.$intro&&this.$newIntro&&Ve.to(this.$intro,{opacity:0,y:-10,onComplete:()=>{this.$intro.innerHTML=this.$newIntro.innerHTML,Ve.to(this.$intro,{opacity:1,y:0})}})}leave(t){this.actionType==="replace"?Ve.to(this.$targets,{opacity:0,y:20,x:-10,stagger:{amount:.1},duration:.5,ease:"power3.inOut",onComplete:()=>{t()}}):t(),Ve.set(this.$newTargets,{opacity:0,y:10})}enter(t){this.$targets=this.$el.querySelectorAll("[data-filters-target]"),Ve.to(this.$targets,{opacity:1,y:0,stagger:{amount:.1},duration:.8,ease:"power3.inOut",onComplete:()=>{t()}})}}class Oy extends Kh{constructor({$el:t}){super({$el:t});E(this,"$form");E(this,"$reset");E(this,"$submitContainer");E(this,"$startInput");E(this,"$endInput");E(this,"lang");this.$el=t,this.$form=this.$el.querySelector("form"),this.$actions=this.$el.querySelectorAll("[data-filters-action]"),this.$targets=this.$el.querySelectorAll("[data-filters-target]"),this.$reset=this.$el.querySelector("#edit-reset"),this.$submitContainer=this.$el.querySelector("#edit-actions"),this.$startInput=this.$el.querySelector("#edit-field-date-start-value"),this.$endInput=this.$el.querySelector("#edit-field-date-end-value"),this.actionDataset="filtersAction",this.lang=document.documentElement.getAttribute("lang"),this.on()}on(){super.on(),this.$form.addEventListener("submit",t=>this._onSubmit(t))}async _onSubmit(t){t.preventDefault(),t.stopPropagation();const r=new FormData(this.$form),n=r.get("field_date_start_value"),s=r.get("field_date_end_value");this.lang==="fr"?(n&&r.set("field_date_start_value",this.formatDateFr(n)),s&&r.set("field_date_end_value",this.formatDateFr(s))):(n&&r.set("field_date_start_value",this.formatDateEn(n)),s&&r.set("field_date_end_value",this.formatDateEn(s))),t.submitter.id==="edit-reset"?(this.url=this.$form.action,this.$form.reset(),history.replaceState(history.state,"",this.url),this.$startInput.getAttribute("value")&&this.$startInput.removeAttribute("value"),this.$endInput.getAttribute("value")&&this.$endInput.removeAttribute("value")):(this.url=`${this.$form.action}?field_date_start_value=${r.get("field_date_start_value")}&field_date_end_value=${r.get("field_date_end_value")}&field_event_category_value=${r.get("field_event_category_value")}`,history.replaceState(history.state,"",this.url)),this.loading=!0,this.actionType="replace";const o=await this.fetch.dom(this.url);this.loading=!1,this.handleClick(o)}handleClick(t){this.$newTargets=t.querySelectorAll("[data-filters-target]"),this.$newMore=t.querySelector("[data-filters-more]"),this.updateReset(t),t.querySelectorAll("[data-observer]").forEach(n=>n.classList.add("--appear")),this._onUpdate()}
61leave(t){this.actionType==="replace"?Ve.to(this.$targets,{opacity:0,y:20,stagger:{amount:.1},duration:.5,ease:"power3.inOut",onComplete:()=>{t()}}):t(),Ve.set(this.$newTargets,{opacity:0,y:10})}enter(t){this.$targets=this.$el.querySelectorAll("[data-filters-target]"),Ve.to(this.$targets,{opacity:1,y:0,stagger:{amount:.1},duration:.8,ease:"power3.inOut",onComplete:()=>{t()}})}formatDateFr(t){const r=t.split("/");return`${r[2]}-${r[1]}-${r[0]}`}formatDateEn(t){const r=t.split("/");return`${r[2]}-${r[0]}-${r[1]}`}updateReset(t){!this.$reset&&t.querySelector("#edit-reset")?(this.$reset=t.querySelector("#edit-reset"),this.$submitContainer.append(this.$reset)):this.$reset&&!t.querySelector("#edit-reset")&&(this.$reset.remove(),this.$reset=null)}}class $y{constructor({$el:e}){E(this,"$el");E(this,"$content");this.$el=e,this.$content=document.querySelector("main"),this.$content&&this.init()}init(){const e=this.$content.innerText,t=265,r=e.trim().split(/\s+/).length,n=Math.ceil(r/t);this.$el.innerHTML=`${n}`}}class My extends Bt{constructor({$el:t}){super();E(this,"$el");E(this,"$btn");E(this,"$current");E(this,"$previous");E(this,"$targets");E(this,"$limits");E(this,"isClicked");this.$el=t,this.$btn=this.$el.querySelector("[data-sidenav-btn]"),this.$targets=this.$el.querySelectorAll("[data-sidenav-target]"),this.$limits=document.querySelectorAll("[data-sidenav-limit]"),this.isClicked=!1,this.$current=this.$targets[0],this.$previous=this.$targets[0],this.init(),this.bindEvents()}init(){this.$targets.forEach(t=>{t.trueH=t.getAttribute("href"),t.$limit=document.querySelector(`${t.trueH}`),t.$limit&&(t.url=new URL(location.origin+location.pathname+t.trueH))})}setCurrent(t){if(this.isClicked)return;this.$current.classList.remove("active");const r=[...this.$targets].filter(n=>n.trueH===`#${t}`);r.length&&(this.$current=r[0],this.$current.classList.add("active"))}bindEvents(){this.$limits.forEach(t=>{t.on("visible",r=>this.setCurrent(t.id))}),this.$targets.forEach(t=>{t.on("click",r=>{this.$previous&&(this.$previous.classList.remove("active"),this.$previous.classList.remove("beforeChange"),this.$previous=null),this.isClicked=!0,r.preventDefault(),r.stopPropagation(),t.$limit.scrollIntoView({behavior:"smooth"}),this.$previous=this.$current,this.$previous.classList.remove("active"),this.$previous.classList.add("beforeChange"),this.$el.classList.contains("open")&&this.$el.classList.remove("open"),this.$current=t,history.pushState("","",t.url)})}),window.addEventListener("scrollend",()=>{this.$previous&&this.$previous.classList.remove("beforeChange"),this.$current.classList.add("active"),this.isClicked=!1,this.$previous=null}),this.$btn.on("click",()=>{window.matchMedia("(max-width: 1100px)").matches&&this.$el.classList.toggle("open")})}}function qc(i){return i!==null&&typeof i=="object"&&"constructor"in i&&i.constructor===Object}function ec(i,e){i===void 0&&(i={}),e===void 0&&(e={}),Object.keys(e).forEach(t=>{typeof i[t]>"u"?i[t]=e[t]:qc(e[t])&&qc(i[t])&&Object.keys(e[t]).length>0&&ec(i[t],e[t])})}const Qh={body:{},addEventListener(){},removeEventListener(){},activeElement:{blur(){},nodeName:""},querySelector(){return null},querySelectorAll(){return[]},getElementById(){return null},createEvent(){return{initEvent(){}}},createElement(){return{children:[],childNodes:[],style:{},setAttribute(){},getElementsByTagName(){return[]}}},createElementNS(){return{}},importNode(){return null},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""}};function Rn(){const i=typeof document<"u"?document:{};return ec(i,Qh),i}const Ay={document:Qh,navigator:{userAgent:""},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""},history:{replaceState(){},pushState(){},go(){},back(){}},CustomEvent:function(){return this},addEventListener(){},removeEventListener(){},getComputedStyle(){return{getPropertyValue(){return""}}},Image(){},Date(){},screen:{},setTimeout(){},clearTimeout(){},matchMedia(){return{}},requestAnimationFrame(i){return typeof setTimeout>"u"?(i(),null):setTimeout(i,0)},cancelAnimationFrame(i){typeof setTimeout>"u"||clearTimeout(i)}};function jt(){const i=typeof window<"u"?window:{};return ec(i,Ay),i}function ky(i){return i===void 0&&(i=""),i.trim().split(" ").filter(e=>!!e.trim())}function Ly(i){const e=i;Object.keys(e).forEach(t=>{try{e[t]=null}catch{}try{delete e[t]}catch{}})}function Yl(i,e){return e===void 0&&(e=0),setTimeout(i,e)}function Zo(){return Date.now()}function Fy(i){const e=jt();let t;return e.getComputedStyle&&(t=e.getComputedStyle(i,null)),!t&&i.currentStyle&&(t=i.currentStyle),t||(t=i.style),t}function Iy(i,e){e===void 0&&(e="x");const t=jt();let r,n,s;const o=Fy(i);return t.WebKitCSSMatrix?(n=o.transform||o.webkitTransform,n.split(",").length>6&&(n=n.split(", ").map(a=>a.replace(",",".")).join(", ")),s=new t.WebKitCSSMatrix(n==="none"?"":n)):(s=o.MozTransform||o.OTransform||o.MsTransform||o.msTransform||o.transform||o.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,"),r=s.toString().split(",")),e==="x"&&(t.WebKitCSSMatrix?n=s.m41:r.length===16?n=parseFloat(r[12]):n=parseFloat(r[4])),e==="y"&&(t.WebKitCSSMatrix?n=s.m42:r.length===16?n=parseFloat(r[13]):n=parseFloat(r[5])),n||0}function eo(i){return typeof i=="object"&&i!==null&&i.constructor&&Object.prototype.toString.call(i).slice(8,-1)==="Object"}function Ny(i){return typeof window<"u"&&typeof window.HTMLElement<"u"?i instanceof HTMLElement:i&&(i.nodeType===1||i.nodeType===11)}function At(){const i=Object(arguments.length<=0?void 0:arguments[0]),e=["__proto__","constructor","prototype"];for(let t=1;t<arguments.length;t+=1){const r=t<0||arguments.length<=t?void 0:arguments[t];if(r!=null&&!Ny(r)){const n=Object.keys(Object(r)).filter(s=>e.indexOf(s)<0);for(let s=0,o=n.length;s<o;s+=1){const a=n[s],l=Object.getOwnPropertyDescriptor(r,a);l!==void 0&&l.enumerable&&(eo(i[a])&&eo(r[a])?r[a].__swiper__?i[a]=r[a]:At(i[a],r[a]):!eo(i[a])&&eo(r[a])?(i[a]={},r[a].__swiper__?i[a]=r[a]:At(i[a],r[a])):i[a]=r[a])}}}return i}function to(i,e,t){i.style.setProperty(e,t)}function Jh(i){let{swiper:e,targetPosition:t,side:r}=i;const n=jt(),s=-e.translate;let o=null,a;const l=e.params.speed;e.wrapperEl.style.scrollSnapType="none",n.cancelAnimationFrame(e.cssModeFrameID);const u=t>s?"next":"prev",c=(h,d)=>u==="next"&&h>=d||u==="prev"&&h<=d,f=()=>{a=new Date().getTime(),o===null&&(o=a);const h=Math.max(Math.min((a-o)/l,1),0),d=.5-Math.cos(h*Math.PI)/2;let g=s+d*(t-s);if(c(g,t)&&(g=t),e.wrapperEl.scrollTo({[r]:g}),c(g,t)){e.wrapperEl.style.overflow="hidden",e.wrapperEl.style.scrollSnapType="",setTimeout(()=>{e.wrapperEl.style.overflow="",e.wrapperEl.scrollTo({[r]:g})}),n.cancelAnimationFrame(e.cssModeFrameID);return}e.cssModeFrameID=n.requestAnimationFrame(f)};f()}function wr(i,e){e===void 0&&(e="");const t=[...i.children];return i instanceof HTMLSlotElement&&t.push(...i.assignedElements()),e?t.filter(r=>r.matches(e)):t}function Ry(i,e){const t=e.contains(i);return!t&&e instanceof HTMLSlotElement?[...e.assignedElements()].includes(i):t}function ea(i){try{console.warn(i);return}catch{}}function ta(i,e){e===void 0&&(e=[]);const t=document.createElement(i);return t.classList.add(...Array.isArray(e)?e:ky(e)),t}function By(i,e){const t=[];for(;i.previousElementSibling;){const r=i.previousElementSibling;e?r.matches(e)&&t.push(r):t.push(r),i=r}return t}function jy(i,e){const t=[];for(;i.nextElementSibling;){const r=i.nextElementSibling;e?r.matches(e)&&t.push(r):t.push(r),i=r}return t}function ti(i,e){return jt().getComputedStyle(i,null).getPropertyValue(e)}function ra(i){let e=i,t;if(e){for(t=0;(e=e.previousSibling)!==null;)e.nodeType===1&&(t+=1);return t}}function Zh(i,e){const t=[];let r=i.parentElement;for(;r;)e?r.matches(e)&&t.push(r):t.push(r),r=r.parentElement;return t}function Ul(i,e,t){const r=jt();return i[e==="width"?"offsetWidth":"offsetHeight"]+parseFloat(r.getComputedStyle(i,null).getPropertyValue(e==="width"?"margin-right":"margin-top"))+parseFloat(r.getComputedStyle(i,null).getPropertyValue(e==="width"?"margin-left":"margin-bottom"))}function rt(i){return(Array.isArray(i)?i:[i]).filter(e=>!!e)}let rl;function Hy(){const i=jt(),e=Rn();return{smoothScroll:e.documentElement&&e.documentElement.style&&"scrollBehavior"in e.documentElement.style,touch:!!("ontouchstart"in i||i.DocumentTouch&&e instanceof i.DocumentTouch)}}function ep(){return rl||(rl=Hy()),rl}let il;function zy(i){let{userAgent:e}=i===void 0?{}:i;const t=ep(),r=jt(),n=r.navigator.platform,s=e||r.navigator.userAgent,o={ios:!1,android:!1},a=r.screen.width,l=r.screen.height,u=s.match(/(Android);?[\s\/]+([\d.]+)?/);let c=s.match(/(iPad).*OS\s([\d_]+)/);const f=s.match(/(iPod)(.*OS\s([\d_]+))?/),h=!c&&s.match(/(iPhone\sOS|iOS)\s([\d_]+)/),d=n==="Win32";let g=n==="MacIntel";const p=["1024x1366","1366x1024","834x1194","1194x834","834x1112","1112x834","768x1024","1024x768","820x1180","1180x820","810x1080","1080x810"];return!c&&g&&t.touch&&p.indexOf(`${a}x${l}`)>
61=0&&(c=s.match(/(Version)\/([\d.]+)/),c||(c=[0,1,"13_0_0"]),g=!1),u&&!d&&(o.os="android",o.android=!0),(c||h||f)&&(o.os="ios",o.ios=!0),o}function tp(i){return i===void 0&&(i={}),il||(il=zy(i)),il}let nl;function Vy(){const i=jt(),e=tp();let t=!1;function r(){const a=i.navigator.userAgent.toLowerCase();return a.indexOf("safari")>=0&&a.indexOf("chrome")<0&&a.indexOf("android")<0}if(r()){const a=String(i.navigator.userAgent);if(a.includes("Version/")){const[l,u]=a.split("Version/")[1].split(" ")[0].split(".").map(c=>Number(c));t=l<16||l===16&&u<2}}const n=/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(i.navigator.userAgent),s=r(),o=s||n&&e.ios;return{isSafari:t||s,needPerspectiveFix:t,need3dFix:o,isWebView:n}}function Wy(){return nl||(nl=Vy()),nl}function qy(i){let{swiper:e,on:t,emit:r}=i;const n=jt();let s=null,o=null;const a=()=>{!e||e.destroyed||!e.initialized||(r("beforeResize"),r("resize"))},l=()=>{!e||e.destroyed||!e.initialized||(s=new ResizeObserver(f=>{o=n.requestAnimationFrame(()=>{const{width:h,height:d}=e;let g=h,p=d;f.forEach(m=>{let{contentBoxSize:y,contentRect:b,target:v}=m;v&&v!==e.el||(g=b?b.width:(y[0]||y).inlineSize,p=b?b.height:(y[0]||y).blockSize)}),(g!==h||p!==d)&&a()})}),s.observe(e.el))},u=()=>{o&&n.cancelAnimationFrame(o),s&&s.unobserve&&e.el&&(s.unobserve(e.el),s=null)},c=()=>{!e||e.destroyed||!e.initialized||r("orientationchange")};t("init",()=>{if(e.params.resizeObserver&&typeof n.ResizeObserver<"u"){l();return}n.addEventListener("resize",a),n.addEventListener("orientationchange",c)}),t("destroy",()=>{u(),n.removeEventListener("resize",a),n.removeEventListener("orientationchange",c)})}function Gy(i){let{swiper:e,extendParams:t,on:r,emit:n}=i;const s=[],o=jt(),a=function(c,f){f===void 0&&(f={});const h=o.MutationObserver||o.WebkitMutationObserver,d=new h(g=>{if(e.__preventObserver__)return;if(g.length===1){n("observerUpdate",g[0]);return}const p=function(){n("observerUpdate",g[0])};o.requestAnimationFrame?o.requestAnimationFrame(p):o.setTimeout(p,0)});d.observe(c,{attributes:typeof f.attributes>"u"?!0:f.attributes,childList:e.isElement||(typeof f.childList>"u"?!0:f).childList,characterData:typeof f.characterData>"u"?!0:f.characterData}),s.push(d)},l=()=>{if(e.params.observer){if(e.params.observeParents){const c=Zh(e.hostEl);for(let f=0;f<c.length;f+=1)a(c[f])}a(e.hostEl,{childList:e.params.observeSlideChildren}),a(e.wrapperEl,{attributes:!1})}},u=()=>{s.forEach(c=>{c.disconnect()}),s.splice(0,s.length)};t({observer:!1,observeParents:!1,observeSlideChildren:!1}),r("init",l),r("destroy",u)}var Yy={on(i,e,t){const r=this;if(!r.eventsListeners||r.destroyed||typeof e!="function")return r;const n=t?"unshift":"push";return i.split(" ").forEach(s=>{r.eventsListeners[s]||(r.eventsListeners[s]=[]),r.eventsListeners[s][n](e)}),r},once(i,e,t){const r=this;if(!r.eventsListeners||r.destroyed||typeof e!="function")return r;function n(){r.off(i,n),n.__emitterProxy&&delete n.__emitterProxy;for(var s=arguments.length,o=new Array(s),a=0;a<s;a++)o[a]=arguments[a];e.apply(r,o)}return n.__emitterProxy=e,r.on(i,n,t)},onAny(i,e){const t=this;if(!t.eventsListeners||t.destroyed||typeof i!="function")return t;const r=e?"unshift":"push";return t.eventsAnyListeners.indexOf(i)<0&&t.eventsAnyListeners[r](i),t},offAny(i){const e=this;if(!e.eventsListeners||e.destroyed||!e.eventsAnyListeners)return e;const t=e.eventsAnyListeners.indexOf(i);return t>=0&&e.eventsAnyListeners.splice(t,1),e},off(i,e){const t=this;return!t.eventsListeners||t.destroyed||!t.eventsListeners||i.split(" ").forEach(r=>{typeof e>"u"?t.eventsListeners[r]=[]:t.eventsListeners[r]&&t.eventsListeners[r].forEach((n,s)=>{(n===e||n.__emitterProxy&&n.__emitterProxy===e)&&t.eventsListeners[r].splice(s,1)})}),t},emit(){const i=this;if(!i.eventsListeners||i.destroyed||!i.eventsListeners)return i;let e,t,r;for(var n=arguments.length,s=new Array(n),o=0;o<n;o++)s[o]=arguments[o];return typeof s[0]=="string"||Array.isArray(s[0])?(e=s[0],t=s.slice(1,s.length),r=i):(e=s[0].events,t=s[0].data,r=s[0].context||i),t.unshift(r),(Array.isArray(e)?e:e.split(" ")).forEach(l=>{i.eventsAnyListeners&&i.eventsAnyListeners.length&&i.eventsAnyListeners.forEac
61h(u=>{u.apply(r,[l,...t])}),i.eventsListeners&&i.eventsListeners[l]&&i.eventsListeners[l].forEach(u=>{u.apply(r,t)})}),i}};function Uy(){const i=this;let e,t;const r=i.el;typeof i.params.width<"u"&&i.params.width!==null?e=i.params.width:e=r.clientWidth,typeof i.params.height<"u"&&i.params.height!==null?t=i.params.height:t=r.clientHeight,!(e===0&&i.isHorizontal()||t===0&&i.isVertical())&&(e=e-parseInt(ti(r,"padding-left")||0,10)-parseInt(ti(r,"padding-right")||0,10),t=t-parseInt(ti(r,"padding-top")||0,10)-parseInt(ti(r,"padding-bottom")||0,10),Number.isNaN(e)&&(e=0),Number.isNaN(t)&&(t=0),Object.assign(i,{width:e,height:t,size:i.isHorizontal()?e:t}))}function Xy(){const i=this;function e(P,T){return parseFloat(P.getPropertyValue(i.getDirectionLabel(T))||0)}const t=i.params,{wrapperEl:r,slidesEl:n,size:s,rtlTranslate:o,wrongRTL:a}=i,l=i.virtual&&t.virtual.enabled,u=l?i.virtual.slides.length:i.slides.length,c=wr(n,`.${i.params.slideClass}, swiper-slide`),f=l?i.virtual.slides.length:c.length;let h=[];const d=[],g=[];let p=t.slidesOffsetBefore;typeof p=="function"&&(p=t.slidesOffsetBefore.call(i));let m=t.slidesOffsetAfter;typeof m=="function"&&(m=t.slidesOffsetAfter.call(i));const y=i.snapGrid.length,b=i.slidesGrid.length;let v=t.spaceBetween,_=-p,D=0,S=0;if(typeof s>"u")return;typeof v=="string"&&v.indexOf("%")>=0?v=parseFloat(v.replace("%",""))/100*s:typeof v=="string"&&(v=parseFloat(v)),i.virtualSize=-v,c.forEach(P=>{o?P.style.marginLeft="":P.style.marginRight="",P.style.marginBottom="",P.style.marginTop=""}),t.centeredSlides&&t.cssMode&&(to(r,"--swiper-centered-offset-before",""),to(r,"--swiper-centered-offset-after",""));const C=t.grid&&t.grid.rows>1&&i.grid;C?i.grid.initSlides(c):i.grid&&i.grid.unsetSlides();let w;const x=t.slidesPerView==="auto"&&t.breakpoints&&Object.keys(t.breakpoints).filter(P=>typeof t.breakpoints[P].slidesPerView<"u").length>0;for(let P=0;P<f;P+=1){w=0;let T;if(c[P]&&(T=c[P]),C&&i.grid.updateSlide(P,T,c),!(c[P]&&ti(T,"display")==="none")){if(t.slidesPerView==="auto"){x&&(c[P].style[i.getDirectionLabel("width")]="");const O=getComputedStyle(T),A=T.style.transform,N=T.style.webkitTransform;if(A&&(T.style.transform="none"),N&&(T.style.webkitTransform="none"),t.roundLengths)w=i.isHorizontal()?Ul(T,"width"):Ul(T,"height");else{const I=e(O,"width"),B=e(O,"padding-left"),W=e(O,"padding-right"),V=e(O,"margin-left"),M=e(O,"margin-right"),$=O.getPropertyValue("box-sizing");if($&&$==="border-box")w=I+V+M;else{const{clientWidth:q,offsetWidth:ne}=T;w=I+B+W+V+M+(ne-q)}}A&&(T.style.transform=A),N&&(T.style.webkitTransform=N),t.roundLengths&&(w=Math.floor(w))}else w=(s-(t.slidesPerView-1)*v)/t.slidesPerView,t.roundLengths&&(w=Math.floor(w)),c[P]&&(c[P].style[i.getDirectionLabel("width")]=`${w}px`);c[P]&&(c[P].swiperSlideSize=w),g.push(w),t.centeredSlides?(_=_+w/2+D/2+v,D===0&&P!==0&&(_=_-s/2-v),P===0&&(_=_-s/2-v),Math.abs(_)<1/1e3&&(_=0),t.roundLengths&&(_=Math.floor(_)),S%t.slidesPerGroup===0&&h.push(_),d.push(_)):(t.roundLengths&&(_=Math.floor(_)),(S-Math.min(i.params.slidesPerGroupSkip,S))%i.params.slidesPerGroup===0&&h.push(_),d.push(_),_=_+w+v),i.virtualSize+=w+v,D=w,S+=1}}if(i.virtualSize=Math.max(i.virtualSize,s)+m,o&&a&&(t.effect==="slide"||t.effect==="coverflow")&&(r.style.width=`${i.virtualSize+v}px`),t.setWrapperSize&&(r.style[i.getDirectionLabel("width")]=`${i.virtualSize+v}px`),C&&i.grid.updateWrapperSize(w,h),!t.centeredSlides){const P=[];for(let T=0;T<h.length;T+=1){let O=h[T];t.roundLengths&&(O=Math.floor(O)),h[T]<=i.virtualSize-s&&P.push(O)}h=P,Math.floor(i.virtualSize-s)-Math.floor(h[h.length-1])>1&&h.push(i.virtualSize-s)}if(l&&t.loop){const P=g[0]+v;if(t.slidesPerGroup>1){const T=Math.ceil((i.virtual.slidesBefore+i.virtual.slidesAfter)/t.slidesPerGroup),O=P*t.slidesPerGroup;for(let A=0;A<T;A+=1)h.push(h[h.length-1]+O)}for(let T=0;T<i.virtual.slidesBefore+i.virtual.slidesAfter;T+=1)t.slidesPerGroup===1&&h.push(h[h.length-1]+P),d.push(d[d.length-1]+P),i.virtualSize+=P}if(h.length===0&&(h=[0]),v!==0){const P=i.isHorizontal()&&o?"marginLeft":i.getDirectionLabel("marginRight");c.filter((T,O)=>
61!t.cssMode||t.loop?!0:O!==c.length-1).forEach(T=>{T.style[P]=`${v}px`})}if(t.centeredSlides&&t.centeredSlidesBounds){let P=0;g.forEach(O=>{P+=O+(v||0)}),P-=v;const T=P>s?P-s:0;h=h.map(O=>O<=0?-p:O>T?T+m:O)}if(t.centerInsufficientSlides){let P=0;g.forEach(O=>{P+=O+(v||0)}),P-=v;const T=(t.slidesOffsetBefore||0)+(t.slidesOffsetAfter||0);if(P+T<s){const O=(s-P-T)/2;h.forEach((A,N)=>{h[N]=A-O}),d.forEach((A,N)=>{d[N]=A+O})}}if(Object.assign(i,{slides:c,snapGrid:h,slidesGrid:d,slidesSizesGrid:g}),t.centeredSlides&&t.cssMode&&!t.centeredSlidesBounds){to(r,"--swiper-centered-offset-before",`${-h[0]}px`),to(r,"--swiper-centered-offset-after",`${i.size/2-g[g.length-1]/2}px`);const P=-i.snapGrid[0],T=-i.slidesGrid[0];i.snapGrid=i.snapGrid.map(O=>O+P),i.slidesGrid=i.slidesGrid.map(O=>O+T)}if(f!==u&&i.emit("slidesLengthChange"),h.length!==y&&(i.params.watchOverflow&&i.checkOverflow(),i.emit("snapGridLengthChange")),d.length!==b&&i.emit("slidesGridLengthChange"),t.watchSlidesProgress&&i.updateSlidesOffset(),i.emit("slidesUpdated"),!l&&!t.cssMode&&(t.effect==="slide"||t.effect==="fade")){const P=`${t.containerModifierClass}backface-hidden`,T=i.el.classList.contains(P);f<=t.maxBackfaceHiddenSlides?T||i.el.classList.add(P):T&&i.el.classList.remove(P)}}function Ky(i){const e=this,t=[],r=e.virtual&&e.params.virtual.enabled;let n=0,s;typeof i=="number"?e.setTransition(i):i===!0&&e.setTransition(e.params.speed);const o=a=>r?e.slides[e.getSlideIndexByData(a)]:e.slides[a];if(e.params.slidesPerView!=="auto"&&e.params.slidesPerView>1)if(e.params.centeredSlides)(e.visibleSlides||[]).forEach(a=>{t.push(a)});else for(s=0;s<Math.ceil(e.params.slidesPerView);s+=1){const a=e.activeIndex+s;if(a>e.slides.length&&!r)break;t.push(o(a))}else t.push(o(e.activeIndex));for(s=0;s<t.length;s+=1)if(typeof t[s]<"u"){const a=t[s].offsetHeight;n=a>n?a:n}(n||n===0)&&(e.wrapperEl.style.height=`${n}px`)}function Qy(){const i=this,e=i.slides,t=i.isElement?i.isHorizontal()?i.wrapperEl.offsetLeft:i.wrapperEl.offsetTop:0;for(let r=0;r<e.length;r+=1)e[r].swiperSlideOffset=(i.isHorizontal()?e[r].offsetLeft:e[r].offsetTop)-t-i.cssOverflowAdjustment()}const Gc=(i,e,t)=>{e&&!i.classList.contains(t)?i.classList.add(t):!e&&i.classList.contains(t)&&i.classList.remove(t)};function Jy(i){i===void 0&&(i=this&&this.translate||0);const e=this,t=e.params,{slides:r,rtlTranslate:n,snapGrid:s}=e;if(r.length===0)return;typeof r[0].swiperSlideOffset>"u"&&e.updateSlidesOffset();let o=-i;n&&(o=i),e.visibleSlidesIndexes=[],e.visibleSlides=[];let a=t.spaceBetween;typeof a=="string"&&a.indexOf("%")>=0?a=parseFloat(a.replace("%",""))/100*e.size:typeof a=="string"&&(a=parseFloat(a));for(let l=0;l<r.length;l+=1){const u=r[l];let c=u.swiperSlideOffset;t.cssMode&&t.centeredSlides&&(c-=r[0].swiperSlideOffset);const f=(o+(t.centeredSlides?e.minTranslate():0)-c)/(u.swiperSlideSize+a),h=(o-s[0]+(t.centeredSlides?e.minTranslate():0)-c)/(u.swiperSlideSize+a),d=-(o-c),g=d+e.slidesSizesGrid[l],p=d>=0&&d<=e.size-e.slidesSizesGrid[l],m=d>=0&&d<e.size-1||g>1&&g<=e.size||d<=0&&g>=e.size;m&&(e.visibleSlides.push(u),e.visibleSlidesIndexes.push(l)),Gc(u,m,t.slideVisibleClass),Gc(u,p,t.slideFullyVisibleClass),u.progress=n?-f:f,u.originalProgress=n?-h:h}}function Zy(i){const e=this;if(typeof i>"u"){const c=e.rtlTranslate?-1:1;i=e&&e.translate&&e.translate*c||0}const t=e.params,r=e.maxTranslate()-e.minTranslate();let{progress:n,isBeginning:s,isEnd:o,progressLoop:a}=e;const l=s,u=o;if(r===0)n=0,s=!0,o=!0;else{n=(i-e.minTranslate())/r;const c=Math.abs(i-e.minTranslate())<1,f=Math.abs(i-e.maxTranslate())<1;s=c||n<=0,o=f||n>=1,c&&(n=0),f&&(n=1)}if(t.loop){const c=e.getSlideIndexByData(0),f=e.getSlideIndexByData(e.slides.length-1),h=e.slidesGrid[c],d=e.slidesGrid[f],g=e.slidesGrid[e.slidesGrid.length-1],p=Math.abs(i);p>=h?a=(p-h)/g:a=(p+g-d)/g,a>1&&(a-=1)}Object.assign(e,{progress:n,progressLoop:a,isBeginning:s,isEnd:o}),(t.watchSlidesProgress||t.centeredSlides&&t.autoHeight)&&e.updateSlidesProgress(i),s&&!l&&e.emit("reachBeginning toEdge"),o&&!u&&e.emit("reachEnd toEdge"),(l&&!s||u&&!o)&&e.emit("fromEdge"),e.emit("progress",n)}const sl=(i,e,t)=>{e&&!i.classList.contains(t)?i.classList.add(t):!e&&i.classList.contains(t)&&i.classList.remove(t)};function e0(){const i=this,{slides:e,params:t,slidesEl:r,activeIndex:n}=i,s=i.virtual&&t.virtual.enabled,o=i.grid&&t.grid&&t.grid.rows>1,a=f=>wr(r,`.${t.slideClass}${f}, swiper-slide${f}`)[0];let l,u,c;if(s)if(t.loop){let f=n-i.virtual.slidesBefore;f<0&&(f=i.virtual.slides.length+f),f>=i.virtual.slides.length&&(f-=i.virtual.slides.length),l=a(`[data-swiper-slide-index="${f}"]`)}else l=a(`[data-swiper-slide-index="${n}"]`);else o?(l=e.filter(f=>
61f.column===n)[0],c=e.filter(f=>f.column===n+1)[0],u=e.filter(f=>f.column===n-1)[0]):l=e[n];l&&(o||(c=jy(l,`.${t.slideClass}, swiper-slide`)[0],t.loop&&!c&&(c=e[0]),u=By(l,`.${t.slideClass}, swiper-slide`)[0],t.loop&&!u===0&&(u=e[e.length-1]))),e.forEach(f=>{sl(f,f===l,t.slideActiveClass),sl(f,f===c,t.slideNextClass),sl(f,f===u,t.slidePrevClass)}),i.emitSlidesClasses()}const Oo=(i,e)=>{if(!i||i.destroyed||!i.params)return;const t=()=>i.isElement?"swiper-slide":`.${i.params.slideClass}`,r=e.closest(t());if(r){let n=r.querySelector(`.${i.params.lazyPreloaderClass}`);!n&&i.isElement&&(r.shadowRoot?n=r.shadowRoot.querySelector(`.${i.params.lazyPreloaderClass}`):requestAnimationFrame(()=>{r.shadowRoot&&(n=r.shadowRoot.querySelector(`.${i.params.lazyPreloaderClass}`),n&&n.remove())})),n&&n.remove()}},ol=(i,e)=>{if(!i.slides[e])return;const t=i.slides[e].querySelector('[loading="lazy"]');t&&t.removeAttribute("loading")},Xl=i=>{if(!i||i.destroyed||!i.params)return;let e=i.params.lazyPreloadPrevNext;const t=i.slides.length;if(!t||!e||e<0)return;e=Math.min(e,t);const r=i.params.slidesPerView==="auto"?i.slidesPerViewDynamic():Math.ceil(i.params.slidesPerView),n=i.activeIndex;if(i.params.grid&&i.params.grid.rows>1){const o=n,a=[o-e];a.push(...Array.from({length:e}).map((l,u)=>o+r+u)),i.slides.forEach((l,u)=>{a.includes(l.column)&&ol(i,u)});return}const s=n+r-1;if(i.params.rewind||i.params.loop)for(let o=n-e;o<=s+e;o+=1){const a=(o%t+t)%t;(a<n||a>s)&&ol(i,a)}else for(let o=Math.max(n-e,0);o<=Math.min(s+e,t-1);o+=1)o!==n&&(o>s||o<n)&&ol(i,o)};function t0(i){const{slidesGrid:e,params:t}=i,r=i.rtlTranslate?i.translate:-i.translate;let n;for(let s=0;s<e.length;s+=1)typeof e[s+1]<"u"?r>=e[s]&&r<e[s+1]-(e[s+1]-e[s])/2?n=s:r>=e[s]&&r<e[s+1]&&(n=s+1):r>=e[s]&&(n=s);return t.normalizeSlideIndex&&(n<0||typeof n>"u")&&(n=0),n}function r0(i){const e=this,t=e.rtlTranslate?e.translate:-e.translate,{snapGrid:r,params:n,activeIndex:s,realIndex:o,snapIndex:a}=e;let l=i,u;const c=d=>{let g=d-e.virtual.slidesBefore;return g<0&&(g=e.virtual.slides.length+g),g>=e.virtual.slides.length&&(g-=e.virtual.slides.length),g};if(typeof l>"u"&&(l=t0(e)),r.indexOf(t)>=0)u=r.indexOf(t);else{const d=Math.min(n.slidesPerGroupSkip,l);u=d+Math.floor((l-d)/n.slidesPerGroup)}if(u>=r.length&&(u=r.length-1),l===s&&!e.params.loop){u!==a&&(e.snapIndex=u,e.emit("snapIndexChange"));return}if(l===s&&e.params.loop&&e.virtual&&e.params.virtual.enabled){e.realIndex=c(l);return}const f=e.grid&&n.grid&&n.grid.rows>1;let h;if(e.virtual&&n.virtual.enabled&&n.loop)h=c(l);else if(f){const d=e.slides.filter(p=>p.column===l)[0];let g=parseInt(d.getAttribute("data-swiper-slide-index"),10);Number.isNaN(g)&&(g=Math.max(e.slides.indexOf(d),0)),h=Math.floor(g/n.grid.rows)}else if(e.slides[l]){const d=e.slides[l].getAttribute("data-swiper-slide-index");d?h=parseInt(d,10):h=l}else h=l;Object.assign(e,{previousSnapIndex:a,snapIndex:u,previousRealIndex:o,realIndex:h,previousIndex:s,activeIndex:l}),e.initialized&&Xl(e),e.emit("activeIndexChange"),e.emit("snapIndexChange"),(e.initialized||e.params.runCallbacksOnInit)&&(o!==h&&e.emit("realIndexChange"),e.emit("slideChange"))}function i0(i,e){const t=this,r=t.params;let n=i.closest(`.${r.slideClass}, swiper-slide`);!n&&t.isElement&&e&&e.length>
611&&e.includes(i)&&[...e.slice(e.indexOf(i)+1,e.length)].forEach(a=>{!n&&a.matches&&a.matches(`.${r.slideClass}, swiper-slide`)&&(n=a)});let s=!1,o;if(n){for(let a=0;a<t.slides.length;a+=1)if(t.slides[a]===n){s=!0,o=a;break}}if(n&&s)t.clickedSlide=n,t.virtual&&t.params.virtual.enabled?t.clickedIndex=parseInt(n.getAttribute("data-swiper-slide-index"),10):t.clickedIndex=o;else{t.clickedSlide=void 0,t.clickedIndex=void 0;return}r.slideToClickedSlide&&t.clickedIndex!==void 0&&t.clickedIndex!==t.activeIndex&&t.slideToClickedSlide()}var n0={updateSize:Uy,updateSlides:Xy,updateAutoHeight:Ky,updateSlidesOffset:Qy,updateSlidesProgress:Jy,updateProgress:Zy,updateSlidesClasses:e0,updateActiveIndex:r0,updateClickedSlide:i0};function s0(i){i===void 0&&(i=this.isHorizontal()?"x":"y");const e=this,{params:t,rtlTranslate:r,translate:n,wrapperEl:s}=e;if(t.virtualTranslate)return r?-n:n;if(t.cssMode)return n;let o=Iy(s,i);return o+=e.cssOverflowAdjustment(),r&&(o=-o),o||0}function o0(i,e){const t=this,{rtlTranslate:r,params:n,wrapperEl:s,progress:o}=t;let a=0,l=0;const u=0;t.isHorizontal()?a=r?-i:i:l=i,n.roundLengths&&(a=Math.floor(a),l=Math.floor(l)),t.previousTranslate=t.translate,t.translate=t.isHorizontal()?a:l,n.cssMode?s[t.isHorizontal()?"scrollLeft":"scrollTop"]=t.isHorizontal()?-a:-l:n.virtualTranslate||(t.isHorizontal()?a-=t.cssOverflowAdjustment():l-=t.cssOverflowAdjustment(),s.style.transform=`translate3d(${a}px, ${l}px, ${u}px)`);let c;const f=t.maxTranslate()-t.minTranslate();f===0?c=0:c=(i-t.minTranslate())/f,c!==o&&t.updateProgress(i),t.emit("setTranslate",t.translate,e)}function a0(){return-this.snapGrid[0]}function l0(){return-this.snapGrid[this.snapGrid.length-1]}function u0(i,e,t,r,n){i===void 0&&(i=0),e===void 0&&(e=this.params.speed),t===void 0&&(t=!0),r===void 0&&(r=!0);const s=this,{params:o,wrapperEl:a}=s;if(s.animating&&o.preventInteractionOnTransition)return!1;const l=s.minTranslate(),u=s.maxTranslate();let c;if(r&&i>l?c=l:r&&i<u?c=u:c=i,s.updateProgress(c),o.cssMode){const f=s.isHorizontal();if(e===0)a[f?"scrollLeft":"scrollTop"]=-c;else{if(!s.support.smoothScroll)return Jh({swiper:s,targetPosition:-c,side:f?"left":"top"}),!0;
61a.scrollTo({[f?"left":"top"]:-c,behavior:"smooth"})}return!0}return e===0?(s.setTransition(0),s.setTranslate(c),t&&(s.emit("beforeTransitionStart",e,n),s.emit("transitionEnd"))):(s.setTransition(e),s.setTranslate(c),t&&(s.emit("beforeTransitionStart",e,n),s.emit("transitionStart")),s.animating||(s.animating=!0,s.onTranslateToWrapperTransitionEnd||(s.onTranslateToWrapperTransitionEnd=function(h){!s||s.destroyed||h.target===this&&(s.wrapperEl.removeEventListener("transitionend",s.onTranslateToWrapperTransitionEnd),s.onTranslateToWrapperTransitionEnd=null,delete s.onTranslateToWrapperTransitionEnd,s.animating=!1,t&&s.emit("transitionEnd"))}),s.wrapperEl.addEventListener("transitionend",s.onTranslateToWrapperTransitionEnd))),!0}var c0={getTranslate:s0,setTranslate:o0,minTranslate:a0,maxTranslate:l0,translateTo:u0};function f0(i,e){const t=this;t.params.cssMode||(t.wrapperEl.style.transitionDuration=`${i}ms`,t.wrapperEl.style.transitionDelay=i===0?"0ms":""),t.emit("setTransition",i,e)}function rp(i){let{swiper:e,runCallbacks:t,direction:r,step:n}=i;const{activeIndex:s,previousIndex:o}=e;let a=r;if(a||(s>o?a="next":s<o?a="prev":a="reset"),e.emit(`transition${n}`),t&&s!==o){if(a==="reset"){e.emit(`slideResetTransition${n}`);return}e.emit(`slideChangeTransition${n}`),a==="next"?e.emit(`slideNextTransition${n}`):e.emit(`slidePrevTransition${n}`)}}function d0(i,e){i===void 0&&(i=!0);const t=this,{params:r}=t;r.cssMode||(r.autoHeight&&t.updateAutoHeight(),rp({swiper:t,runCallbacks:i,direction:e,step:"Start"}))}function h0(i,e){i===void 0&&(i=!0);const t=this,{params:r}=t;t.animating=!1,!r.cssMode&&(t.setTransition(0),rp({swiper:t,runCallbacks:i,direction:e,step:"End"}))}var p0={setTransition:f0,transitionStart:d0,transitionEnd:h0};function g0(i,e,t,r,n){i===void 0&&(i=0),t===void 0&&(t=!0),typeof i=="string"&&(i=parseInt(i,10));const s=this;let o=i;o<0&&(o=0);const{params:a,snapGrid:l,slidesGrid:u,previousIndex:c,activeIndex:f,rtlTranslate:h,wrapperEl:d,enabled:g}=s;if(!g&&!r&&!n||s.destroyed||s.animating&&a.preventInteractionOnTransition)return!1;typeof e>"u"&&(e=s.params.speed);const p=Math.min(s.params.slidesPerGroupSkip,o);let m=p+Math.floor((o-p)/s.params.slidesPerGroup);m>=l.length&&(m=l.length-1);const y=-l[m];if(a.normalizeSlideIndex)for(let D=0;D<u.length;D+=1){const S=-Math.floor(y*100),C=Math.floor(u[D]*100),w=Math.floor(u[D+1]*100);typeof u[D+1]<"u"?S>=C&&S<w-(w-C)/2?o=D:S>=C&&S<w&&(o=D+1):S>=C&&(o=D)}if(s.initialized&&o!==f&&(!s.allowSlideNext&&(h?y>s.translate&&y>s.minTranslate():y<s.translate&&y<s.minTranslate())||!s.allowSlidePrev&&y>s.translate&&y>s.maxTranslate()&&(f||0)!==o))return!1;o!==(c||0)&&t&&s.emit("beforeSlideChangeStart"),s.updateProgress(y);let b;o>f?b="next":o<f?b="prev":b="reset";const v=s.virtual&&s.params.virtual.enabled;if(!(v&&n)&&(h&&-y===s.translate||!h&&y===s.translate))return s.updateActiveIndex(o),a.autoHeight&&s.updateAutoHeight(),s.updateSlidesClasses(),a.effect!=="slide"&&s.setTranslate(y),b!=="reset"&&(s.transitionStart(t,b),s.transitionEnd(t,b)),!1;if(a.cssMode){const D=s.isHorizontal(),S=h?y:-y;if(e===0)v&&(s.wrapperEl.style.scrollSnapType="none",s._immediateVirtual=!0),v&&!s._cssModeVirtualInitialSet&&s.params.initialSlide>0?(s._cssModeVirtualInitialSet=!0,requestAnimationFrame(()=>{d[D?"scrollLeft":"scrollTop"]=S})):d[D?"scrollLeft":"scrollTop"]=S,v&&requestAnimationFrame(()=>{s.wrapperEl.style.scrollSnapType="",s._immediateVirtual=!1});else{if(!s.support.smoothScroll)return Jh({swiper:s,targetPosition:S,side:D?"left":"top"}),!0;d.scrollTo({[D?"left":"top"]:S,behavior:"smooth"})}return!0}return s.setTransition(e),s.setTranslate(y),s.updateActiveIndex(o),s.updateSlidesClasses(),s.emit("beforeTransitionStart",e,r),s.transitionStart(t,b),e===0?s.transitionEnd(t,b):s.animating||(s.animating=!0,s.onSlideToWrapperTransitionEnd||(s.onSlideToWrapperTransitionEnd=function(S){!s||s.destroyed||S.target===this&&(s.wrapperEl.removeEventListener("transitionend",s.onSlideToWrapperTransitionEnd),s.onSlideToWrapperTransitionEnd=null,delete s.onSlideToWrapperTransitionEnd,s.transitionEnd(t,b))}),s.wrapperEl.addEventListener("transitionend",s.onSlideToWrapperTransitionEnd)),!0}function m0(i,e,t,r){i===void 0&&(i=0),t===void 0&&(t=!0),typeof i=="string"&&(i=parseInt(i,10));const n=this;if(n.destroyed)return;typeof e>"u"&&(e=n.params.speed);const s=n.grid&&n.params.grid&&n.params.grid.rows>1;let o=i;if(n.params.loop)if(n.virtual&&n.params.virtual.enabled)o=o+n.virtual.slidesBefore;else{let a;if(s){const h=o*n.params.grid.rows;a=n.slides.filter(d=>d.getAttribute("data-swiper-slide-index")*1===h)[0].column}
61else a=n.getSlideIndexByData(o);const l=s?Math.ceil(n.slides.length/n.params.grid.rows):n.slides.length,{centeredSlides:u}=n.params;let c=n.params.slidesPerView;c==="auto"?c=n.slidesPerViewDynamic():(c=Math.ceil(parseFloat(n.params.slidesPerView,10)),u&&c%2===0&&(c=c+1));let f=l-a<c;if(u&&(f=f||a<Math.ceil(c/2)),r&&u&&n.params.slidesPerView!=="auto"&&!s&&(f=!1),f){const h=u?a<n.activeIndex?"prev":"next":a-n.activeIndex-1<n.params.slidesPerView?"next":"prev";n.loopFix({direction:h,slideTo:!0,activeSlideIndex:h==="next"?a+1:a-l+1,slideRealIndex:h==="next"?n.realIndex:void 0})}if(s){const h=o*n.params.grid.rows;o=n.slides.filter(d=>d.getAttribute("data-swiper-slide-index")*1===h)[0].column}else o=n.getSlideIndexByData(o)}return requestAnimationFrame(()=>{n.slideTo(o,e,t,r)}),n}function v0(i,e,t){e===void 0&&(e=!0);const r=this,{enabled:n,params:s,animating:o}=r;if(!n||r.destroyed)return r;typeof i>"u"&&(i=r.params.speed);let a=s.slidesPerGroup;s.slidesPerView==="auto"&&s.slidesPerGroup===1&&s.slidesPerGroupAuto&&(a=Math.max(r.slidesPerViewDynamic("current",!0),1));const l=r.activeIndex<s.slidesPerGroupSkip?1:a,u=r.virtual&&s.virtual.enabled;if(s.loop){if(o&&!u&&s.loopPreventsSliding)return!1;if(r.loopFix({direction:"next"}),r._clientLeft=r.wrapperEl.clientLeft,r.activeIndex===r.slides.length-1&&s.cssMode)return requestAnimationFrame(()=>{r.slideTo(r.activeIndex+l,i,e,t)}),!0}return s.rewind&&r.isEnd?r.slideTo(0,i,e,t):r.slideTo(r.activeIndex+l,i,e,t)}function y0(i,e,t){e===void 0&&(e=!0);const r=this,{params:n,snapGrid:s,slidesGrid:o,rtlTranslate:a,enabled:l,animating:u}=r;if(!l||r.destroyed)return r;typeof i>"u"&&(i=r.params.speed);const c=r.virtual&&n.virtual.enabled;if(n.loop){if(u&&!c&&n.loopPreventsSliding)return!1;r.loopFix({direction:"prev"}),r._clientLeft=r.wrapperEl.clientLeft}const f=a?r.translate:-r.translate;function h(y){return y<0?-Math.floor(Math.abs(y)):Math.floor(y)}const d=h(f),g=s.map(y=>h(y));let p=s[g.indexOf(d)-1];if(typeof p>"u"&&n.cssMode){let y;s.forEach((b,v)=>{d>=b&&(y=v)}),typeof y<"u"&&(p=s[y>0?y-1:y])}let m=0;if(typeof p<"u"&&(m=o.indexOf(p),m<0&&(m=r.activeIndex-1),n.slidesPerView==="auto"&&n.slidesPerGroup===1&&n.slidesPerGroupAuto&&(m=m-r.slidesPerViewDynamic("previous",!0)+1,m=Math.max(m,0))),n.rewind&&r.isBeginning){const y=r.params.virtual&&r.params.virtual.enabled&&r.virtual?r.virtual.slides.length-1:r.slides.length-1;return r.slideTo(y,i,e,t)}else if(n.loop&&r.activeIndex===0&&n.cssMode)return requestAnimationFrame(()=>{r.slideTo(m,i,e,t)}),!0;return r.slideTo(m,i,e,t)}function b0(i,e,t){e===void 0&&(e=!0);const r=this;if(!r.destroyed)return typeof i>"u"&&(i=r.params.speed),r.slideTo(r.activeIndex,i,e,t)}function _0(i,e,t,r){e===void 0&&(e=!0),r===void 0&&(r=.5);const n=this;if(n.destroyed)return;typeof i>"u"&&(i=n.params.speed);let s=n.activeIndex;const o=Math.min(n.params.slidesPerGroupSkip,s),a=o+Math.floor((s-o)/n.params.slidesPerGroup),l=n.rtlTranslate?n.translate:-n.translate;if(l>=n.snapGrid[a]){const u=n.snapGrid[a],c=n.snapGrid[a+1];l-u>(c-u)*r&&(s+=n.params.slidesPerGroup)}else{const u=n.snapGrid[a-1],c=n.snapGrid[a];l-u<=(c-u)*r&&(s-=n.params.slidesPerGroup)}return s=Math.max(s,0),s=Math.min(s,n.slidesGrid.length-1),n.slideTo(s,i,e,t)}function w0(){const i=this;if(i.destroyed)return;const{params:e,slidesEl:t}=i,r=e.slidesPerView==="auto"?i.slidesPerViewDynamic():e.slidesPerView;let n=i.clickedIndex,s;const o=i.isElement?"swiper-slide":`.${e.slideClass}`;if(e.loop){if(i.animating)return;s=parseInt(i.clickedSlide.getAttribute("data-swiper-slide-index"),10),e.centeredSlides?n<i.loopedSlides-r/2||n>i.slides.length-i.loopedSlides+r/2?(i.loopFix(),n=i.getSlideIndex(wr(t,`${o}[data-swiper-slide-index="${s}"]`)[0]),Yl(()=>{i.slideTo(n)})):i.slideTo(n):n>i.slides.length-r?(i.loopFix(),n=i.getSlideIndex(wr(t,`${o}[data-swiper-slide-index="${s}"]`)[0]),Yl(()=>{i.slideTo(n)})):i.slideTo(n)}else i.slideTo(n)}var D0={slideTo:g0,slideToLoop:m0,slideNext:v0,slidePrev:y0,slideReset:b0,slideToClosest:_0,slideToClickedSlide:w0};function S0(i){const e=this,{params:t,slidesEl:r}=e;if(!t.loop||e.virtual&&e.params.virtual.enabled)return;const n=()=>{wr(r,`.${t.slideClass}, swiper-slide`).forEach((f,h)=>{f.setAttribute("data-swiper-slide-index",h)})},s=e.grid&&t.grid&&t.grid.rows>1,o=t.slidesPerGroup*(s?t.grid.rows:1),a=e.slides.length%o!==0,l=s&&e.slides.length%t.grid.rows!==0,u=c=>{for(let f=0;f<c;f+=1){const h=e.isElement?ta("swiper-slide",[t.slideBlankClass]):ta("div",[t.slideClass,t.slideBlankClass]);e.slidesEl.append(h)}};if(a){if(t.loopAddBlankSlides){const c=o-e.slides.length%o;u(c),e.recalcSlides(),e.updateSlides()}else ea("Swiper Loop Warning: The number of slides is not even to slidesPerGroup, loop mode may
61not function properly. You need to add more slides (or make duplicates, or empty slides)");n()}else if(l){if(t.loopAddBlankSlides){const c=t.grid.rows-e.slides.length%t.grid.rows;u(c),e.recalcSlides(),e.updateSlides()}else ea("Swiper Loop Warning: The number of slides is not even to grid.rows, loop mode may not function properly. You need to add more slides (or make duplicates, or empty slides)");n()}else n();e.loopFix({slideRealIndex:i,direction:t.centeredSlides?void 0:"next"})}function x0(i){let{slideRealIndex:e,slideTo:t=!0,direction:r,setTranslate:n,activeSlideIndex:s,byController:o,byMousewheel:a}=i===void 0?{}:i;const l=this;if(!l.params.loop)return;l.emit("beforeLoopFix");const{slides:u,allowSlidePrev:c,allowSlideNext:f,slidesEl:h,params:d}=l,{centeredSlides:g}=d;if(l.allowSlidePrev=!0,l.allowSlideNext=!0,l.virtual&&d.virtual.enabled){t&&(!d.centeredSlides&&l.snapIndex===0?l.slideTo(l.virtual.slides.length,0,!1,!0):d.centeredSlides&&l.snapIndex<d.slidesPerView?l.slideTo(l.virtual.slides.length+l.snapIndex,0,!1,!0):l.snapIndex===l.snapGrid.length-1&&l.slideTo(l.virtual.slidesBefore,0,!1,!0)),l.allowSlidePrev=c,l.allowSlideNext=f,l.emit("loopFix");return}let p=d.slidesPerView;p==="auto"?p=l.slidesPerViewDynamic():(p=Math.ceil(parseFloat(d.slidesPerView,10)),g&&p%2===0&&(p=p+1));const m=d.slidesPerGroupAuto?p:d.slidesPerGroup;let y=m;y%m!==0&&(y+=m-y%m),y+=d.loopAdditionalSlides,l.loopedSlides=y;const b=l.grid&&d.grid&&d.grid.rows>1;u.length<p+y?ea("Swiper Loop Warning: The number of slides is not enough for loop mode, it will be disabled and not function properly. You need to add more slides (or make duplicates) or lower the values of slidesPerView and slidesPerGroup parameters"):b&&d.grid.fill==="row"&&ea("Swiper Loop Warning: Loop mode is not compatible with grid.fill = `row`");const v=[],_=[];let D=l.activeIndex;typeof s>"u"?s=l.getSlideIndex(u.filter(A=>A.classList.contains(d.slideActiveClass))[0]):D=s;const S=r==="next"||!r,C=r==="prev"||!r;let w=0,x=0;const P=b?Math.ceil(u.length/d.grid.rows):u.length,O=(b?u[s].column:s)+(g&&typeof n>"u"?-p/2+.5:0);if(O<y){w=Math.max(y-O,m);for(let A=0;A<y-O;A+=1){const N=A-Math.floor(A/P)*P;if(b){const I=P-N-1;for(let B=u.length-1;B>=0;B-=1)u[B].column===I&&v.push(B)}else v.push(P-N-1)}}else if(O+p>P-y){x=Math.max(O-(P-y*2),m);for(let A=0;A<x;A+=1){const N=A-Math.floor(A/P)*P;b?u.forEach((I,B)=>{I.column===N&&_.push(B)}):_.push(N)}}if(l.__preventObserver__=!0,requestAnimationFrame(()=>{l.__preventObserver__=!1}),C&&v.forEach(A=>{u[A].swiperLoopMoveDOM=!0,h.prepend(u[A]),u[A].swiperLoopMoveDOM=!1}),S&&_.forEach(A=>{u[A].swiperLoopMoveDOM=!0,h.append(u[A]),u[A].swiperLoopMoveDOM=!1}),l.recalcSlides(),d.slidesPerView==="auto"?l.updateSlides():b&&(v.length>0&&C||_.length>0&&S)&&l.slides.forEach((A,N)=>{l.grid.updateSlide(N,A,l.slides)}),d.watchSlidesProgress&&l.updateSlidesOffset(),t){if(v.length>0&&C){if(typeof e>"u"){const A=l.slidesGrid[D],I=l.slidesGrid[D+w]-A;a?l.setTranslate(l.translate-I):(l.slideTo(D+Math.ceil(w),0,!1,!0),n&&(l.touchEventsData.startTranslate=l.touchEventsData.startTranslate-I,l.touchEventsData.currentTranslate=l.touchEventsData.currentTranslate-I))}else if(n){const A=b?v.length/d.grid.rows:v.length;l.slideTo(l.activeIndex+A,0,!1,!0),l.touchEventsData.currentTranslate=l.translate}}else if(_.length>0&&S)if(typeof e>"u"){const A=l.slidesGrid[D],I=l.slidesGrid[D-x]-A;a?l.setTranslate(l.translate-I):(l.slideTo(D-x,0,!1,!0),n&&(l.touchEventsData.startTranslate=l.touchEventsData.startTranslate-I,l.touchEventsData.currentTranslate=l.touchEventsData.currentTranslate-I))}else{const A=b?_.length/d.grid.rows:_.length;l.slideTo(l.activeIndex-A,0,!1,!0)}}if(l.allowSlidePrev=c,l.allowSlideNext=f,l.controller&&l.controller.control&&!o){const A={slideRealIndex:e,direction:r,setTranslate:n,activeSlideIndex:s,byController:!0};Array.isArray(l.controller.control)?l.controller.control.forEach(N=>{!N.destroyed&&N.params.loop&&N.loopFix({...A,slideTo:N.params.slidesPerView===d.slidesPerView?t:!1})}):l.controller.control instanceof l.constructor&&l.controller.control.params.loop&&l.controller.control.loopFix({...A,slideTo:l.controller.control.params.slidesPerView===d.slidesPerView?t:!1})}l.emit("loopFix")}function P0(){const i=this,{params:e,slidesEl:t}=i;if(!e.loop||i.virtual&&i.params.virtual.enabled)return;i.recalcSlides();const r=[];
vendor: 14,856 bytes, line 61
61i.slides.forEach(n=>{const s=typeof n.swiperSlideIndex>"u"?n.getAttribute("data-swiper-slide-index")*1:n.swiperSlideIndex;r[s]=n}),i.slides.forEach(n=>{n.removeAttribute("data-swiper-slide-index")}),r.forEach(n=>{t.append(n)}),i.recalcSlides(),i.slideTo(i.realIndex,0)}var C0={loopCreate:S0,loopFix:x0,loopDestroy:P0};function T0(i){const e=this;if(!e.params.simulateTouch||e.params.watchOverflow&&e.isLocked||e.params.cssMode)return;const t=e.params.touchEventsTarget==="container"?e.el:e.wrapperEl;e.isElement&&(e.__preventObserver__=!0),t.style.cursor="move",t.style.cursor=i?"grabbing":"grab",e.isElement&&requestAnimationFrame(()=>{e.__preventObserver__=!1})}function E0(){const i=this;i.params.watchOverflow&&i.isLocked||i.params.cssMode||(i.isElement&&(i.__preventObserver__=!0),i[i.params.touchEventsTarget==="container"?"el":"wrapperEl"].style.cursor="",i.isElement&&requestAnimationFrame(()=>{i.__preventObserver__=!1}))}var O0={setGrabCursor:T0,unsetGrabCursor:E0};function $0(i,e){e===void 0&&(e=this);function t(r){if(!r||r===Rn()||r===jt())return null;r.assignedSlot&&(r=r.assignedSlot);const n=r.closest(i);return!n&&!r.getRootNode?null:n||t(r.getRootNode().host)}return t(e)}function Yc(i,e,t){const r=jt(),{params:n}=i,s=n.edgeSwipeDetection,o=n.edgeSwipeThreshold;return s&&(t<=o||t>=r.innerWidth-o)?s==="prevent"?(e.preventDefault(),!0):!1:!0}function M0(i){const e=this,t=Rn();let r=i;r.originalEvent&&(r=r.originalEvent);const n=e.touchEventsData;if(r.type==="pointerdown"){if(n.pointerId!==null&&n.pointerId!==r.pointerId)return;n.pointerId=r.pointerId}else r.type==="touchstart"&&r.targetTouches.length===1&&(n.touchId=r.targetTouches[0].identifier);if(r.type==="touchstart"){Yc(e,r,r.targetTouches[0].pageX);return}const{params:s,touches:o,enabled:a}=e;if(!a||!s.simulateTouch&&r.pointerType==="mouse"||e.animating&&s.preventInteractionOnTransition)return;!e.animating&&s.cssMode&&s.loop&&e.loopFix();let l=r.target;if(s.touchEventsTarget==="wrapper"&&!Ry(l,e.wrapperEl)||"which"in r&&r.which===3||"button"in r&&r.button>0||n.isTouched&&n.isMoved)return;const u=!!s.noSwipingClass&&s.noSwipingClass!=="",c=r.composedPath?r.composedPath():r.path;u&&r.target&&r.target.shadowRoot&&c&&(l=c[0]);const f=s.noSwipingSelector?s.noSwipingSelector:`.${s.noSwipingClass}`,h=!!(r.target&&r.target.shadowRoot);if(s.noSwiping&&(h?$0(f,l):l.closest(f))){e.allowClick=!0;return}if(s.swipeHandler&&!l.closest(s.swipeHandler))return;o.currentX=r.pageX,o.currentY=r.pageY;const d=o.currentX,g=o.currentY;if(!Yc(e,r,d))return;Object.assign(n,{isTouched:!0,isMoved:!1,allowTouchCallbacks:!0,isScrolling:void 0,startMoving:void 0}),o.startX=d,o.startY=g,n.touchStartTime=Zo(),e.allowClick=!0,e.updateSize(),e.swipeDirection=void 0,s.threshold>0&&(n.allowThresholdMove=!1);let p=!0;l.matches(n.focusableElements)&&(p=!1,l.nodeName==="SELECT"&&(n.isTouched=!1)),t.activeElement&&t.activeElement.matches(n.focusableElements)&&t.activeElement!==l&&(r.pointerType==="mouse"||r.pointerType!=="mouse"&&!l.matches(n.focusableElements))&&t.activeElement.blur();const m=p&&e.allowTouchMove&&s.touchStartPreventDefault;(s.touchStartForcePreventDefault||m)&&!l.isContentEditable&&r.preventDefault(),s.freeMode&&s.freeMode.enabled&&e.freeMode&&e.animating&&!s.cssMode&&e.freeMode.onTouchStart(),e.emit("touchStart",r)}function A0(i){const e=Rn(),t=this,r=t.touchEventsData,{params:n,touches:s,rtlTranslate:o,enabled:a}=t;if(!a||!n.simulateTouch&&i.pointerType==="mouse")return;let l=i;if(l.originalEvent&&(l=l.originalEvent),l.type==="pointermove"&&(r.touchId!==null||l.pointerId!==r.pointerId))return;let u;if(l.type==="touchmove"){if(u=[...l.changedTouches].filter(S=>S.identifier===r.touchId)[0],!u||u.identifier!==r.touchId)return}else u=l;if(!r.isTouched){r.startMoving&&r.isScrolling&&t.emit("touchMoveOpposite",l);return}const c=u.pageX,f=u.pageY;if(l.preventedByNestedSwiper){s.startX=c,s.startY=f;return}if(!t.allowTouchMove){l.target.matches(r.focusableElements)||(t.allowClick=!1),r.isTouched&&(Object.assign(s,{startX:c,startY:f,currentX:c,currentY:f}),r.touchStartTime=Zo());return}if(n.touchReleaseOnEdges&&!n.loop){if(t.isVertical()){if(f<s.startY&&t.translate<=t.maxTranslate()||f>s.startY&&t.translate>=t.minTranslate()){r.isTouched=!1,r.isMoved=!1;return}}else if(c<s.startX&&t.translate<=t.maxTranslate()||c>s.startX&&t.translate>=t.minTranslate())return}if(e.activeElement&&e.activeElement.matches(r.focusableElements)&&e.activeElement!==l.target&&l.pointerType!=="mouse"&&e.activeElement.blur(),e.activeElement&&l.target===e.activeElement&&l.target.matches(r.focusableElements)){r.isMoved=!0,t.allowClick=!1;return}r.allowTouchCallbacks&&t.emit("touchMove",l),s.previousX=s.currentX,s.previousY=s.currentY,s.currentX=c,s.currentY=f;const h=s.currentX-s.startX,d=s.currentY-s.startY;if(t.params.threshold&&Math.sqrt(h**2+d**2)<t.params.threshold)return;if(typeof r.isScrolling>"u"){let S;t.isHorizontal()&&s.currentY===s.startY||t.isVertical()&&s.currentX===s.startX?r.isScrolling=!1:h*h+d*d>=25&&(S=Math.atan2(Math.abs(d),Math.abs(h))*180/Math.PI,r.isScrolling=t.isHorizontal()?S>n.touchAngle:90-S>n.touchAngle)}if(r.isScrolling&&t.emit("touchMoveOpposite",l),typeof r.startMoving>"u"&&(s.currentX!==s.startX||s.currentY!==s.startY)&&(r.startMoving=!0),r.isScrolling||l.type==="touchmove"&&r.preventTouchMoveFromPointerMove){r.isTouched=!1;return}if(!r.startMoving)return;t.allowClick=!1,!n.cssMode&&l.cancelable&&l.preventDefault(),n.touchMoveStopPropagation&&!n.nested&&l.stopPropagation();let g=t.isHorizontal()?h:d,p=t.isHorizontal()?s.currentX-s.previousX:s.currentY-s.previousY;n.oneWayMovement&&(g=Math.abs(g)*(o?1:-1),p=Math.abs(p)*(o?1:-1)),s.diff=g,g*=n.touchRatio,o&&(g=-g,p=-p);const m=t.touchesDirection;t.swipeDirection=g>0?"prev":"next",t.touchesDirection=p>0?"prev":"next";const y=t.params.loop&&!n.cssMode,b=t.touchesDirection==="next"&&t.allowSlideNext||t.touchesDirection==="prev"&&t.allowSlidePrev;if(!r.isMoved){if(y&&b&&t.loopFix({direction:t.swipeDirection}),r.startTranslate=t.getTranslate(),t.setTransition(0),t.animating){const S=new window.CustomEvent("transitionend",{bubbles:!0,cancelable:!0,detail:{bySwiperTouchMove:!0}});t.wrapperEl.dispatchEvent(S)}r.allowMomentumBounce=!1,n.grabCursor&&(t.allowSlideNext===!0||t.allowSlidePrev===!0)&&t.setGrabCursor(!0),t.emit("sliderFirstMove",l)}let v;if(new Date().getTime(),r.isMoved&&r.allowThresholdMove&&m!==t.touchesDirection&&y&&b&&Math.abs(g)>=1){Object.assign(s,{startX:c,startY:f,currentX:c,currentY:f,startTranslate:r.currentTranslate}),r.loopSwapReset=!0,r.startTranslate=r.currentTranslate;return}t.emit("sliderMove",l),r.isMoved=!0,r.currentTranslate=g+r.startTranslate;let _=!0,D=n.resistanceRatio;if(n.touchReleaseOnEdges&&(D=0),g>0?(y&&b&&!v&&r.allowThresholdMove&&r.currentTranslate>(n.centeredSlides?t.minTranslate()-t.slidesSizesGrid[t.activeIndex+1]-(n.slidesPerView!=="auto"&&t.slides.length-n.slidesPerView>=2?t.slidesSizesGrid[t.activeIndex+1]+t.params.spaceBetween:0)-t.params.spaceBetween:t.minTranslate())&&t.loopFix({direction:"prev",setTranslate:!0,activeSlideIndex:0}),r.currentTranslate>t.minTranslate()&&(_=!1,n.resistance&&(r.currentTranslate=t.minTranslate()-1+(-t.minTranslate()+r.startTranslate+g)**D))):g<0&&(y&&b&&!v&&r.allowThresholdMove&&r.currentTranslate<(n.centeredSlides?t.maxTranslate()+t.slidesSizesGrid[t.slidesSizesGrid.length-1]+t.params.spaceBetween+(n.slidesPerView!=="auto"&&t.slides.length-n.slidesPerView>=2?t.slidesSizesGrid[t.slidesSizesGrid.length-1]+t.params.spaceBetween:0):t.maxTranslate())&&t.loopFix({direction:"next",setTranslate:!0,activeSlideIndex:t.slides.length-(n.slidesPerView==="auto"?t.slidesPerViewDynamic():Math.ceil(parseFloat(n.slidesPerView,10)))}),r.currentTranslate<t.maxTranslate()&&(_=!1,n.resistance&&(r.currentTranslate=t.maxTranslate()+1-(t.maxTranslate()-r.startTranslate-g)**D))),_&&(l.preventedByNestedSwiper=!0),!t.allowSlideNext&&t.swipeDirection==="next"&&r.currentTranslate<r.startTranslate&&(r.currentTranslate=r.startTranslate),!t.allowSlidePrev&&t.swipeDirection==="prev"&&r.currentTranslate>r.startTranslate&&(r.currentTranslate=r.startTranslate),!t.allowSlidePrev&&!t.allowSlideNext&&(r.currentTranslate=r.startTranslate),n.threshold>0)if(Math.abs(g)>n.threshold||r.allowThresholdMove){if(!r.allowThresholdMove){r.allowThresholdMove=!0,s.startX=s.currentX,s.startY=s.currentY,r.currentTranslate=r.startTranslate,s.diff=t.isHorizontal()?s.currentX-s.startX:s.currentY-s.startY;return}}else{r.currentTranslate=r.startTranslate;return}!n.followFinger||n.cssMode||((n.freeMode&&n.freeMode.enabled&&t.freeMode||n.watchSlidesProgress)&&(t.updateActiveIndex(),t.updateSlidesClasses()),n.freeMode&&n.freeMode.enabled&&t.freeMode&&t.freeMode.onTouchMove(),t.updateProgress(r.currentTranslate),t.setTranslate(r.currentTranslate))}function k0(i){const e=this,t=e.touchEventsData;let r=i;r.originalEvent&&(r=r.originalEvent);let n;if(r.type==="touchend"||r.type==="touchcancel"){if(n=[...r.changedTouches].filter(D=>D.identifier===t.touchId)[0],!n||n.identifier!==t.touchId)return}else{if(t.touchId!==null||r.pointerId!==t.pointerId)return;n=r}if(["pointercancel","pointerout","pointerleave","contextmenu"].includes(r.type)&&!(["pointercancel","contextmenu"].includes(r.type)&&(e.browser.isSafari||e.browser.isWebView)))return;t.pointerId=null,t.touchId=null;const{params:o,touches:a,rtlTranslate:l,slidesGrid:u,enabled:c}=e;if(!c||!o.simulateTouch&&r.pointerType==="mouse")return;if(t.allowTouchCallbacks&&e.emit("touchEnd",r),t.allowTouchCallbacks=!1,!t.isTouched){t.isMoved&&o.grabCursor&&e.setGrabCursor(!1),t.isMoved=!1,t.startMoving=!1;return}o.grabCursor&&t.isMoved&&t.isTouched&&(e.allowSlideNext===!0||e.allowSlidePrev===!0)&&e.setGrabCursor(!1);const f=Zo(),h=f-t.touchStartTime;if(e.allowClick){const D=r.path||r.composedPath&&r.composedPath();e.updateClickedSlide(D&&D[0]||r.target,D),e.emit("tap click",r),h<300&&f-t.lastClickTime<300&&e.emit("doubleTap doubleClick",r)}if(t.lastClickTime=Zo(),Yl(()=>{e.destroyed||(e.allowClick=!0)}),!t.isTouched||!t.isMoved||!e.swipeDirection||a.diff===0&&!t.loopSwapReset||t.currentTranslate===t.startTranslate&&!t.loopSwapReset){t.isTouched=!1,t.isMoved=!1,t.startMoving=!1;return}t.isTouched=!1,t.isMoved=!1,t.startMoving=!1;let d;if(o.followFinger?d=l?e.translate:-e.translate:d=-t.currentTranslate,o.cssMode)return;if(o.freeMode&&o.freeMode.enabled){e.freeMode.onTouchEnd({currentPos:d});return}const g=d>=-e.maxTranslate()&&!e.params.loop;let p=0,m=e.slidesSizesGrid[0];for(let D=0;D<u.length;D+=D<o.slidesPerGroupSkip?1:o.slidesPerGroup){const S=D<o.slidesPerGroupSkip-1?1:o.slidesPerGroup;typeof u[D+S]<"u"?(g||d>=u[D]&&d<u[D+S])&&(p=D,m=u[D+S]-u[D]):(g||d>=u[D])&&(p=D,m=u[u.length-1]-u[u.length-2])}let y=null,b=null;o.rewind&&(e.isBeginning?b=o.virtual&&o.virtual.enabled&&e.virtual?e.virtual.slides.length-1:e.slides.length-1:e.isEnd&&(y=0));const v=(d-u[p])/m,_=p<o.slidesPerGroupSkip-1?1:o.slidesPerGroup;if(h>o.longSwipesMs){if(!o.longSwipes){e.slideTo(e.activeIndex);return}e.swipeDirection==="next"&&(v>=o.longSwipesRatio?e.slideTo(o.rewind&&e.isEnd?y:p+_):e.slideTo(p)),e.swipeDirection==="prev"&&(v>1-o.longSwipesRatio?e.slideTo(p+_):b!==null&&v<0&&Math.abs(v)>o.longSwipesRatio?e.slideTo(b):e.slideTo(p))}else{if(!o.shortSwipes){e.slideTo(e.activeIndex);return}e.navigation&&(r.target===e.navigation.nextEl||r.target===e.navigation.prevEl)?r.target===e.navigation.nextEl?e.slideTo(p+_):e.slideTo(p):(e.swipeDirection==="next"&&e.slideTo(y!==null?y:p+_),e.swipeDirection==="prev"&&e.slideTo(b!==null?b:p))}}function Uc(){const i=this,{params:e,el:t}=i;if(t&&t.offsetWidth===0)return;e.breakpoints&&i.setBreakpoint();const{allowSlideNext:r,allowSlidePrev:n,snapGrid:s}=i,o=i.virtual&&i.params.virtual.enabled;i.allowSlideNext=!0,i.allowSlidePrev=!0,i.updateSize(),i.updateSlides(),i.updateSlidesClasses();const a=o&&e.loop;(e.slidesPerView==="auto"||e.slidesPerView>1)&&i.isEnd&&!i.isBeginning&&!i.params.centeredSlides&&!a?i.slideTo(i.slides.length-1,0,!1,!0):i.params.loop&&!o?i.slideToLoop(i.realIndex,0,!1,!0):i.slideTo(i.activeIndex,0,!1,!0),i.autoplay&&i.autoplay.running&&i.autoplay.paused&&(clearTimeout(i.autoplay.resizeTimeout),i.autoplay.resizeTimeout=setTimeout(()=>{i.autoplay&&i.autoplay.running&&i.autoplay.paused&&i.autoplay.resume()},500)),i.allowSlidePrev=n,i.allowSlideNext=r,i.params.watchOverflow&&s!==i.snapGrid&&i.checkOverflow()}function L0(i){const e=this;e.enabled&&(e.allowClick||(e.params.preventClicks&&i.preventDefault(),e.params.preventClicksPropagation&&e.animating&&(i.stopPropagation(),i.stopImmediatePropagation())))}function F0(){const i=this,{wrapperEl:e,rtlTranslate:t,enabled:r}=i;if(!r)return;i.previousTranslate=i.translate,i.isHorizontal()?i.translate=-e.scrollLeft:i.translate=-e.scrollTop,i.translate===0&&(i.translate=0),i.updateActiveIndex(),i.updateSlidesClasses();let n;const s=i.maxTranslate()-i.minTranslate();s===0?n=0:n=(i.translate-i.minTranslate())/s,n!==i.progress&&i.updateProgress(t?-i.translate:i.translate),i.emit("setTranslate",i.translate,!1)}function I0(i){const e=this;Oo(e,i.target),!(e.params.cssMode||e.params.slidesPerView!=="auto"&&!e.params.autoHeight)&&e.update()}function N0(){const i=this;i.documentTouchHandlerProceeded||(i.documentTouchHandlerProceeded=!0,i.params.touchReleaseOnEdges&&(i.el.style.touchAction="auto"))}const ip=(i,e)=>{const t=Rn(),{params:r,el:n,wrapperEl:s,device:o}=i,a=!!r.nested,l=e==="on"?"addEventListener":"removeEventListener",u=e;!n||typeof n=="string"||(t[l]("touchstart",i.onDocumentTouchStart,{passive:!1,capture:a}),n[l]("touchstart",i.onTouchStart,{passive:!1}),n[l]("pointerdown",i.onTouchStart,{passive:!1}),t[l]("touchmove",i.onTouchMove,{passive:!1,capture:a}),t[l]("pointermove",i.onTouchMove,{passive:!1,capture:a}),t[l]("touchend",i.onTouchEnd,{passive:!0}),t[l]("pointerup",i.onTouchEnd,{passive:!0}),t[l]("pointercancel",i.onTouchEnd,{passive:!0}),t[l]("touchcancel",i.onTouchEnd,{passive:!0}),t[l]("pointerout",i.onTouchEnd,{passive:!0}),t[l]("pointerleave",i.onTouchEnd,{passive:!0}),t[l]("contextmenu",i.onTouchEnd,{passive:!0}),(r.preventClicks||r.preventClicksPropagation)&&n[l]("click",i.onClick,!0),r.cssMode&&s[l]("scroll",i.onScroll),r.updateOnWindowResize?i[u](o.ios||o.android?"resize orientationchange observerUpdate":"resize observerUpdate",Uc,!0):i[u]("observerUpdate",Uc,!0),n[l]("load",i.onLoad,{capture:!0}))};function R0(){const i=this,{params:e}=i;i.onTouchStart=M0.bind(i),i.onTouchMove=A0.bind(i),i.onTouchEnd=k0.bind(i),i.onDocumentTouchStart=N0.bind(i),e.cssMode&&(i.onScroll=F0.bind(i)),i.onClick=L0.bind(i),i.onLoad=I0.bind(i),ip(i,"on")}function B0(){ip(this,"off")}var j0={attachEvents:R0,detachEvents:B0};const Xc=(i,e)=>i.grid&&e.grid&&e.grid.rows>1;function H0(){const i=this,{realIndex:e,initialized:t,params:r,el:n}=i,s=r.breakpoints;if(!s||s&&Object.keys(s).length===0)return;
61const o=i.getBreakpoint(s,i.params.breakpointsBase,i.el);if(!o||i.currentBreakpoint===o)return;const l=(o in s?s[o]:void 0)||i.originalParams,u=Xc(i,r),c=Xc(i,l),f=i.params.grabCursor,h=l.grabCursor,d=r.enabled;u&&!c?(n.classList.remove(`${r.containerModifierClass}grid`,`${r.containerModifierClass}grid-column`),i.emitContainerClasses()):!u&&c&&(n.classList.add(`${r.containerModifierClass}grid`),(l.grid.fill&&l.grid.fill==="column"||!l.grid.fill&&r.grid.fill==="column")&&n.classList.add(`${r.containerModifierClass}grid-column`),i.emitContainerClasses()),f&&!h?i.unsetGrabCursor():!f&&h&&i.setGrabCursor(),["navigation","pagination","scrollbar"].forEach(v=>{if(typeof l[v]>"u")return;const _=r[v]&&r[v].enabled,D=l[v]&&l[v].enabled;_&&!D&&i[v].disable(),!_&&D&&i[v].enable()});const g=l.direction&&l.direction!==r.direction,p=r.loop&&(l.slidesPerView!==r.slidesPerView||g),m=r.loop;g&&t&&i.changeDirection(),At(i.params,l);const y=i.params.enabled,b=i.params.loop;Object.assign(i,{allowTouchMove:i.params.allowTouchMove,allowSlideNext:i.params.allowSlideNext,allowSlidePrev:i.params.allowSlidePrev}),d&&!y?i.disable():!d&&y&&i.enable(),i.currentBreakpoint=o,i.emit("_beforeBreakpoint",l),t&&(p?(i.loopDestroy(),i.loopCreate(e),i.updateSlides()):!m&&b?(i.loopCreate(e),i.updateSlides()):m&&!b&&i.loopDestroy()),i.emit("breakpoint",l)}function z0(i,e,t){if(e===void 0&&(e="window"),!i||e==="container"&&!t)return;let r=!1;const n=jt(),s=e==="window"?n.innerHeight:t.clientHeight,o=Object.keys(i).map(a=>{if(typeof a=="string"&&a.indexOf("@")===0){const l=parseFloat(a.substr(1));return{value:s*l,point:a}}return{value:a,point:a}});o.sort((a,l)=>
vendor: 4,479 bytes, line 61
61parseInt(a.value,10)-parseInt(l.value,10));for(let a=0;a<o.length;a+=1){const{point:l,value:u}=o[a];e==="window"?n.matchMedia(`(min-width: ${u}px)`).matches&&(r=l):u<=t.clientWidth&&(r=l)}return r||"max"}var V0={setBreakpoint:H0,getBreakpoint:z0};function W0(i,e){const t=[];return i.forEach(r=>{typeof r=="object"?Object.keys(r).forEach(n=>{r[n]&&t.push(e+n)}):typeof r=="string"&&t.push(e+r)}),t}function q0(){const i=this,{classNames:e,params:t,rtl:r,el:n,device:s}=i,o=W0(["initialized",t.direction,{"free-mode":i.params.freeMode&&t.freeMode.enabled},{autoheight:t.autoHeight},{rtl:r},{grid:t.grid&&t.grid.rows>1},{"grid-column":t.grid&&t.grid.rows>1&&t.grid.fill==="column"},{android:s.android},{ios:s.ios},{"css-mode":t.cssMode},{centered:t.cssMode&&t.centeredSlides},{"watch-progress":t.watchSlidesProgress}],t.containerModifierClass);e.push(...o),n.classList.add(...e),i.emitContainerClasses()}function G0(){const i=this,{el:e,classNames:t}=i;!e||typeof e=="string"||(e.classList.remove(...t),i.emitContainerClasses())}var Y0={addClasses:q0,removeClasses:G0};function U0(){const i=this,{isLocked:e,params:t}=i,{slidesOffsetBefore:r}=t;if(r){const n=i.slides.length-1,s=i.slidesGrid[n]+i.slidesSizesGrid[n]+r*2;i.isLocked=i.size>s}else i.isLocked=i.snapGrid.length===1;t.allowSlideNext===!0&&(i.allowSlideNext=!i.isLocked),t.allowSlidePrev===!0&&(i.allowSlidePrev=!i.isLocked),e&&e!==i.isLocked&&(i.isEnd=!1),e!==i.isLocked&&i.emit(i.isLocked?"lock":"unlock")}var X0={checkOverflow:U0},Kc={init:!0,direction:"horizontal",oneWayMovement:!1,swiperElementNodeName:"SWIPER-CONTAINER",touchEventsTarget:"wrapper",initialSlide:0,speed:300,cssMode:!1,updateOnWindowResize:!0,resizeObserver:!0,nested:!1,createElements:!1,eventsPrefix:"swiper",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:5,touchMoveStopPropagation:!1,touchStartPreventDefault:!0,touchStartForcePreventDefault:!1,touchReleaseOnEdges:!1,uniqueNavElements:!0,resistance:!0,resistanceRatio:.85,watchSlidesProgress:!1,grabCursor:!1,preventClicks:!0,preventClicksPropagation:!0,slideToClickedSlide:!1,loop:!1,loopAddBlankSlides:!0,loopAdditionalSlides:0,loopPreventsSliding:!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-blank",slideActiveClass:"swiper-slide-active",slideVisibleClass:"swiper-slide-visible",slideFullyVisibleClass:"swiper-slide-fully-visible",slideNextClass:"swiper-slide-next",slidePrevClass:"swiper-slide-prev",wrapperClass:"swiper-wrapper",lazyPreloaderClass:"swiper-lazy-preloader",lazyPreloadPrevNext:0,runCallbacksOnInit:!0,_emitClasses:!1};function K0(i,e){return function(r){r===void 0&&(r={});const n=Object.keys(r)[0],s=r[n];if(typeof s!="object"||s===null){At(e,r);return}if(i[n]===!0&&(i[n]={enabled:!0}),n==="navigation"&&i[n]&&i[n].enabled&&!i[n].prevEl&&!i[n].nextEl&&(i[n].auto=!0),["pagination","scrollbar"].indexOf(n)>=0&&i[n]&&i[n].enabled&&!i[n].el&&(i[n].auto=!0),!(n in i&&"enabled"in s)){At(e,r);return}typeof i[n]=="object"&&!("enabled"in i[n])&&(i[n].enabled=!0),i[n]||(i[n]={enabled:!1}),At(e,r)}}const al={eventsEmitter:Yy,update:n0,translate:c0,transition:p0,slide:D0,loop:C0,grabCursor:O0,events:j0,breakpoints:V0,checkOverflow:X0,classes:Y0},ll={};class $t{constructor(){let e,t;for(var r=arguments.length,n=new Array(r),s=0;s<r;s++)n[s]=arguments[s];n.length===1&&n[0].constructor&&Object.prototype.toString.call(n[0]).slice(8,-1)==="Object"?t=n[0]:[e,t]=n,t||(t={}),t=At({},t),e&&!t.el&&(t.el=e);const o=Rn();if(t.el&&typeof t.el=="string"&&o.querySelectorAll(t.el).length>1){const c=[];return o.querySelectorAll(t.el).forEach(f=>{const h=At({},t,{el:f});
61c.push(new $t(h))}),c}const a=this;a.__swiper__=!0,a.support=ep(),a.device=tp({userAgent:t.userAgent}),a.browser=Wy(),a.eventsListeners={},a.eventsAnyListeners=[],a.modules=[...a.__modules__],t.modules&&Array.isArray(t.modules)&&a.modules.push(...t.modules);const l={};a.modules.forEach(c=>{c({params:t,swiper:a,extendParams:K0(t,l),on:a.on.bind(a),once:a.once.bind(a),off:a.off.bind(a),emit:a.emit.bind(a)})});const u=At({},Kc,l);return a.params=At({},u,ll,t),a.originalParams=At({},a.params),a.passedParams=At({},t),a.params&&a.params.on&&Object.keys(a.params.on).forEach(c=>{a.on(c,a.params.on[c])}),a.params&&a.params.onAny&&a.onAny(a.params.onAny),Object.assign(a,{enabled:a.params.enabled,el:e,classNames:[],slides:[],slidesGrid:[],snapGrid:[],slidesSizesGrid:[],isHorizontal(){return a.params.direction==="horizontal"},isVertical(){return a.params.direction==="vertical"},activeIndex:0,realIndex:0,isBeginning:!0,isEnd:!1,translate:0,previousTranslate:0,progress:0,velocity:0,animating:!1,cssOverflowAdjustment(){return Math.trunc(this.translate/2**23)*2**23},allowSlideNext:a.params.allowSlideNext,allowSlidePrev:a.params.allowSlidePrev,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:a.params.focusableElements,lastClickTime:0,clickTimeout:void 0,velocities:[],allowMomentumBounce:void 0,startMoving:void 0,pointerId:null,touchId:null},allowClick:!0,allowTouchMove:a.params.allowTouchMove,touches:{startX:0,startY:0,currentX:0,currentY:0,diff:0},imagesToLoad:[],imagesLoaded:0}),a.emit("_swiper"),a.params.init&&a.init(),a}getDirectionLabel(e){return this.isHorizontal()?e:{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"}[e]}getSlideIndex(e){const{slidesEl:t,params:r}=this,n=wr(t,`.${r.slideClass}, swiper-slide`),s=ra(n[0]);return ra(e)-s}getSlideIndexByData(e){return this.getSlideIndex(this.slides.filter(t=>t.getAttribute("data-swiper-slide-index")*1===e)[0])}recalcSlides(){const e=this,{slidesEl:t,params:r}=e;e.slides=wr(t,`.${r.slideClass}, swiper-slide`)}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){const r=this;e=Math.min(Math.max(e,0),1);const n=r.minTranslate(),o=(r.maxTranslate()-n)*e+n;r.translateTo(o,typeof t>"u"?0:t),r.updateActiveIndex(),r.updateSlidesClasses()}emitContainerClasses(){const e=this;if(!e.params._emitClasses||!e.el)return;const t=e.el.className.split(" ").filter(r=>r.indexOf("swiper")===0||r.indexOf(e.params.containerModifierClass)===0);e.emit("_containerClasses",t.join(" "))}getSlideClasses(e){const t=this;return t.destroyed?"":e.className.split(" ").filter(r=>r.indexOf("swiper-slide")===0||r.indexOf(t.params.slideClass)===0).join(" ")}emitSlidesClasses(){const e=this;if(!e.params._emitClasses||!e.el)return;const t=[];e.slides.forEach(r=>{const n=e.getSlideClasses(r);t.push({slideEl:r,classNames:n}),e.emit("_slideClass",r,n)}),e.emit("_slideClasses",t)}slidesPerViewDynamic(e,t){e===void 0&&(e="current"),t===void 0&&(t=!1);const r=this,{params:n,slides:s,slidesGrid:o,slidesSizesGrid:a,size:l,activeIndex:u}=r;let c=1;if(typeof n.slidesPerView=="number")return n.slidesPerView;if(n.centeredSlides){let f=s[u]?Math.ceil(s[u].swiperSlideSize):0,h;for(let d=u+1;d<s.length;d+=1)s[d]&&!h&&(f+=Math.ceil(s[d].swiperSlideSize),c+=1,f>l&&(h=!0));for(let d=u-1;d>=0;d-=1)s[d]&&!h&&(f+=s[d].swiperSlideSize,c+=1,f>l&&(h=!0))}else if(e==="current")for(let f=u+1;f<s.length;f+=1)(t?o[f]+a[f]-o[u]<l:o[f]-o[u]<l)&&(c+=1);else for(let f=u-1;f>=0;f-=1)o[u]-o[f]<l&&(c+=1);return c}update(){const e=this;if(!e||e.destroyed)return;const{snapGrid:t,params:r}=e;r.breakpoints&&e.setBreakpoint(),[...e.el.querySelectorAll('[loading="lazy"]')].forEac
vendor: 4,303 bytes, line 61
61h(o=>{o.complete&&Oo(e,o)}),e.updateSize(),e.updateSlides(),e.updateProgress(),e.updateSlidesClasses();function n(){const o=e.rtlTranslate?e.translate*-1:e.translate,a=Math.min(Math.max(o,e.maxTranslate()),e.minTranslate());e.setTranslate(a),e.updateActiveIndex(),e.updateSlidesClasses()}let s;if(r.freeMode&&r.freeMode.enabled&&!r.cssMode)n(),r.autoHeight&&e.updateAutoHeight();else{if((r.slidesPerView==="auto"||r.slidesPerView>1)&&e.isEnd&&!r.centeredSlides){const o=e.virtual&&r.virtual.enabled?e.virtual.slides:e.slides;s=e.slideTo(o.length-1,0,!1,!0)}else s=e.slideTo(e.activeIndex,0,!1,!0);s||n()}r.watchOverflow&&t!==e.snapGrid&&e.checkOverflow(),e.emit("update")}changeDirection(e,t){t===void 0&&(t=!0);const r=this,n=r.params.direction;return e||(e=n==="horizontal"?"vertical":"horizontal"),e===n||e!=="horizontal"&&e!=="vertical"||(r.el.classList.remove(`${r.params.containerModifierClass}${n}`),r.el.classList.add(`${r.params.containerModifierClass}${e}`),r.emitContainerClasses(),r.params.direction=e,r.slides.forEach(s=>{e==="vertical"?s.style.width="":s.style.height=""}),r.emit("changeDirection"),t&&r.update()),r}changeLanguageDirection(e){const t=this;t.rtl&&e==="rtl"||!t.rtl&&e==="ltr"||(t.rtl=e==="rtl",t.rtlTranslate=t.params.direction==="horizontal"&&t.rtl,t.rtl?(t.el.classList.add(`${t.params.containerModifierClass}rtl`),t.el.dir="rtl"):(t.el.classList.remove(`${t.params.containerModifierClass}rtl`),t.el.dir="ltr"),t.update())}mount(e){const t=this;if(t.mounted)return!0;let r=e||t.params.el;if(typeof r=="string"&&(r=document.querySelector(r)),!r)return!1;r.swiper=t,r.parentNode&&r.parentNode.host&&r.parentNode.host.nodeName===t.params.swiperElementNodeName.toUpperCase()&&(t.isElement=!0);const n=()=>`.${(t.params.wrapperClass||"").trim().split(" ").join(".")}`;let o=r&&r.shadowRoot&&r.shadowRoot.querySelector?r.shadowRoot.querySelector(n()):wr(r,n())[0];return!o&&t.params.createElements&&(o=ta("div",t.params.wrapperClass),r.append(o),wr(r,`.${t.params.slideClass}`).forEach(a=>{o.append(a)})),Object.assign(t,{el:r,wrapperEl:o,slidesEl:t.isElement&&!r.parentNode.host.slideSlots?r.parentNode.host:o,hostEl:t.isElement?r.parentNode.host:r,mounted:!0,rtl:r.dir.toLowerCase()==="rtl"||ti(r,"direction")==="rtl",rtlTranslate:t.params.direction==="horizontal"&&(r.dir.toLowerCase()==="rtl"||ti(r,"direction")==="rtl"),wrongRTL:ti(o,"display")==="-webkit-box"}),!0}init(e){const t=this;if(t.initialized||t.mount(e)===!1)return t;t.emit("beforeInit"),t.params.breakpoints&&t.setBreakpoint(),t.addClasses(),t.updateSize(),t.updateSlides(),t.params.watchOverflow&&t.checkOverflow(),t.params.grabCursor&&t.enabled&&t.setGrabCursor(),t.params.loop&&t.virtual&&t.params.virtual.enabled?t.slideTo(t.params.initialSlide+t.virtual.slidesBefore,0,t.params.runCallbacksOnInit,!1,!0):t.slideTo(t.params.initialSlide,0,t.params.runCallbacksOnInit,!1,!0),t.params.loop&&t.loopCreate(),t.attachEvents();const n=[...t.el.querySelectorAll('[loading="lazy"]')];return t.isElement&&n.push(...t.hostEl.querySelectorAll('[loading="lazy"]')),n.forEach(s=>{s.complete?Oo(t,s):s.addEventListener("load",o=>{Oo(t,o.target)})}),Xl(t),t.initialized=!0,Xl(t),t.emit("init"),t.emit("afterInit"),t}destroy(e,t){e===void 0&&(e=!0),t===void 0&&(t=!0);const r=this,{params:n,el:s,wrapperEl:o,slides:a}=r;return typeof r.params>"u"||r.destroyed||(r.emit("beforeDestroy"),r.initialized=!1,r.detachEvents(),n.loop&&r.loopDestroy(),t&&(r.removeClasses(),s&&typeof s!="string"&&s.removeAttribute("style"),o&&o.removeAttribute("style"),a&&a.length&&a.forEach(l=>{l.classList.remove(n.slideVisibleClass,n.slideFullyVisibleClass,n.slideActiveClass,n.slideNextClass,n.slidePrevClass),l.removeAttribute("style"),l.removeAttribute("data-swiper-slide-index")})),r.emit("destroy"),Object.keys(r.eventsListeners).forEach(l=>{r.off(l)}),e!==!1&&(r.el&&typeof r.el!="string"&&(r.el.swiper=null),Ly(r)),r.destroyed=!0),null}static extendDefaults(e){At(ll,e)}static get extendedDefaults(){return ll}static get defaults(){return Kc}static installModule(e){$t.prototype.__modules__||($t.prototype.__modules__=[]);const t=$t.prototype.__modules__;typeof e=="function"&&t.indexOf(e)<0&&t.push(e)}static use(e){return Array.isArray(e)?(e.forEach(t=>$t.installModule(t)),$t):($t.installModule(e),$t)}}Object.keys(al).forEach(i=>
61{Object.keys(al[i]).forEach(e=>{$t.prototype[e]=al[i][e]})});$t.use([qy,Gy]);function np(i,e,t,r){return i.params.createElements&&Object.keys(r).forEach(n=>{if(!t[n]&&t.auto===!0){let s=wr(i.el,`.${r[n]}`)[0];s||(s=ta("div",r[n]),s.className=r[n],i.el.append(s)),t[n]=s,e[n]=s}}),t}function Q0(i){let{swiper:e,extendParams:t,on:r,emit:n}=i;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,prevEl:null};function s(g){let p;return g&&typeof g=="string"&&e.isElement&&(p=e.el.querySelector(g)||e.hostEl.querySelector(g),p)?p:(g&&(typeof g=="string"&&(p=[...document.querySelectorAll(g)]),e.params.uniqueNavElements&&typeof g=="string"&&p&&p.length>1&&e.el.querySelectorAll(g).length===1?p=e.el.querySelector(g):p&&p.length===1&&(p=p[0])),g&&!p?g:p)}function o(g,p){const m=e.params.navigation;g=rt(g),g.forEach(y=>{y&&(y.classList[p?"add":"remove"](...m.disabledClass.split(" ")),y.tagName==="BUTTON"&&(y.disabled=p),e.params.watchOverflow&&e.enabled&&y.classList[e.isLocked?"add":"remove"](m.lockClass))})}function a(){const{nextEl:g,prevEl:p}=e.navigation;if(e.params.loop){o(p,!1),o(g,!1);return}o(p,e.isBeginning&&!e.params.rewind),o(g,e.isEnd&&!e.params.rewind)}function l(g){g.preventDefault(),!(e.isBeginning&&!e.params.loop&&!e.params.rewind)&&(e.slidePrev(),n("navigationPrev"))}function u(g){g.preventDefault(),!(e.isEnd&&!e.params.loop&&!e.params.rewind)&&(e.slideNext(),n("navigationNext"))}function c(){const g=e.params.navigation;if(e.params.navigation=np(e,e.originalParams.navigation,e.params.navigation,{nextEl:"swiper-button-next",prevEl:"swiper-button-prev"}),!(g.nextEl||g.prevEl))return;let p=s(g.nextEl),m=s(g.prevEl);Object.assign(e.navigation,{nextEl:p,prevEl:m}),p=rt(p),m=rt(m);const y=(b,v)=>{b&&b.addEventListener("click",v==="next"?u:l),!e.enabled&&b&&b.classList.add(...g.lockClass.split(" "))};p.forEach(b=>y(b,"next")),m.forEach(b=>y(b,"prev"))}function f(){let{nextEl:g,prevEl:p}=e.navigation;g=rt(g),p=rt(p);const m=(y,b)=>{y.removeEventListener("click",b==="next"?u:l),y.classList.remove(...e.params.navigation.disabledClass.split(" "))};g.forEach(y=>m(y,"next")),p.forEach(y=>m(y,"prev"))}r("init",()=>{e.params.navigation.enabled===!1?d():(c(),a())}),r("toEdge fromEdge lock unlock",()=>{a()}),r("destroy",()=>{f()}),r("enable disable",()=>{let{nextEl:g,prevEl:p}=e.navigation;if(g=rt(g),p=rt(p),e.enabled){a();return}[...g,...p].filter(m=>!!m).forEach(m=>m.classList.add(e.params.navigation.lockClass))}),r("click",(g,p)=>{let{nextEl:m,prevEl:y}=e.navigation;m=rt(m),y=rt(y);const b=p.target;let v=y.includes(b)||m.includes(b);if(e.isElement&&!v){const _=p.path||p.composedPath&&p.composedPath();_&&(v=_.find(D=>m.includes(D)||y.includes(D)))}if(e.params.navigation.hideOnClick&&!v){if(e.pagination&&e.params.pagination&&e.params.pagination.clickable&&(e.pagination.el===b||e.pagination.el.contains(b)))return;let _;m.length?_=m[0].classList.contains(e.params.navigation.hiddenClass):y.length&&(_=y[0].classList.contains(e.params.navigation.hiddenClass)),n(_===!0?"navigationShow":"navigationHide"),[...m,...y].filter(D=>!!D).forEach(D=>D.classList.toggle(e.params.navigation.hiddenClass))}});const h=()=>{e.el.classList.remove(...e.params.navigation.navigationDisabledClass.split(" ")),c(),a()},d=()=>{e.el.classList.add(...e.params.navigation.navigationDisabledClass.split(" ")),f()};Object.assign(e.navigation,{enable:h,disable:d,update:a,init:c,destroy:f})}function Gn(i){return i===void 0&&(i=""),`.${i.trim().replace(/([\.:!+\/])/g,"\\$1").replace(/ /g,".")}`}function J0(i){let{swiper:e,extendParams:t,on:r,emit:n}=i;const s="swiper-pagination";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:b=>b,formatFractionTotal:b=>b,bulletClass:`${s}-bullet`,bulletActiveClass:`${s}-bullet-active`,modifierClass:`${s}-`,currentClass:`${s}-current`,totalClass:`${s}-total`,hiddenClass:`${s}-hidden`,progressbarFillClass:`${s}-progressbar-fill`,progressbarOppositeClass:`${s}-progressbar-opposite`,clickableClass:`${s}-clickable`,lockClass:`${s}-lock`,horizontalClass:`${s}-horizontal`,verticalClass:`${s}-vertical`,paginationDisabledClass:`${s}-disabled`}}),e.pagination={el:null,bullets:[]};let o,a=0;function l(){return!e.params.pagination.el||!e.pagination.el||Array.isArray(e.pagination.el)&&e.pagination.el.length===0}function u(b,v){const{bulletActiveClass:_}=e.params.pagination;b&&(b=b[`${v==="prev"?"previous":"next"}ElementSibling`],b&&(b.classList.add(`${_}-${v}`),b=b[`${v==="prev"?"previous":"next"}ElementSibling`],b&&b.classList.add(`${_}-${v}-${v}`)))}function c(b,v,_){if(b=b%_,v=v%_,v===b+1)return"next";if(v===b-1)return"previous"}function f(b){const v=b.target.closest(Gn(e.params.pagination.bulletClass));if(!v)return;b.preventDefault();const _=ra(v)*e.params.slidesPerGroup;if(e.params.loop){if(e.realIndex===_)return;const D=c(e.realIndex,_,e.slides.length);D==="next"?e.slideNext():D==="previous"?e.slidePrev():e.slideToLoop(_)}else e.slideTo(_)}function h(){const b=e.rtl,v=e.params.pagination;if(l())return;let _=e.pagination.el;_=rt(_);let D,S;const C=e.virtual&&e.params.virtual.enabled?e.virtual.slides.length:e.slides.length,w=e.params.loop?Math.
61ceil(C/e.params.slidesPerGroup):e.snapGrid.length;if(e.params.loop?(S=e.previousRealIndex||0,D=e.params.slidesPerGroup>1?Math.floor(e.realIndex/e.params.slidesPerGroup):e.realIndex):typeof e.snapIndex<"u"?(D=e.snapIndex,S=e.previousSnapIndex):(S=e.previousIndex||0,D=e.activeIndex||0),v.type==="bullets"&&e.pagination.bullets&&e.pagination.bullets.length>0){const x=e.pagination.bullets;let P,T,O;if(v.dynamicBullets&&(o=Ul(x[0],e.isHorizontal()?"width":"height"),_.forEach(A=>{A.style[e.isHorizontal()?"width":"height"]=`${o*(v.dynamicMainBullets+4)}px`}),v.dynamicMainBullets>1&&S!==void 0&&(a+=D-(S||0),a>v.dynamicMainBullets-1?a=v.dynamicMainBullets-1:a<0&&(a=0)),P=Math.max(D-a,0),T=P+(Math.min(x.length,v.dynamicMainBullets)-1),O=(T+P)/2),x.forEach(A=>{const N=[...["","-next","-next-next","-prev","-prev-prev","-main"].map(I=>`${v.bulletActiveClass}${I}`)].map(I=>typeof I=="string"&&I.includes(" ")?I.split(" "):I).flat();A.classList.remove(...N)}),_.length>1)x.forEach(A=>{const N=ra(A);N===D?A.classList.add(...v.bulletActiveClass.split(" ")):e.isElement&&A.setAttribute("part","bullet"),v.dynamicBullets&&(N>=P&&N<=T&&A.classList.add(...`${v.bulletActiveClass}-main`.split(" ")),N===P&&u(A,"prev"),N===T&&u(A,"next"))});else{const A=x[D];if(A&&A.classList.add(...v.bulletActiveClass.split(" ")),e.isElement&&x.forEach((N,I)=>{N.setAttribute("part",I===D?"bullet-active":"bullet")}),v.dynamicBullets){const N=x[P],I=x[T];for(let B=P;B<=T;B+=1)x[B]&&x[B].classList.add(...`${v.bulletActiveClass}-main`.split(" "));u(N,"prev"),u(I,"next")}}if(v.dynamicBullets){const A=Math.min(x.length,v.dynamicMainBullets+4),N=(o*A-o)/2-O*o,I=b?"right":"left";x.forEach(B=>{B.style[e.isHorizontal()?I:"top"]=`${N}px`})}}_.forEach((x,P)=>{if(v.type==="fraction"&&(x.querySelectorAll(Gn(v.currentClass)).forEach(T=>{T.textContent=v.formatFractionCurrent(D+1)}),x.querySelectorAll(Gn(v.totalClass)).forEach(T=>{T.textContent=v.formatFractionTotal(w)})),v.type==="progressbar"){let T;v.progressbarOpposite?T=e.isHorizontal()?"vertical":"horizontal":T=e.isHorizontal()?"horizontal":"vertical";const O=(D+1)/w;let A=1,N=1;T==="horizontal"?A=O:N=O,x.querySelectorAll(Gn(v.progressbarFillClass)).forEach(I=>{I.style.transform=`translate3d(0,0,0) scaleX(${A}) scaleY(${N})`,I.style.transitionDuration=`${e.params.speed}ms`})}v.type==="custom"&&v.renderCustom?(x.innerHTML=v.renderCustom(e,D+1,w),P===0&&n("paginationRender",x)):(P===0&&n("paginationRender",x),n("paginationUpdate",x)),e.params.watchOverflow&&e.enabled&&x.classList[e.isLocked?"add":"remove"](v.lockClass)})}function d(){const b=e.params.pagination;if(l())return;const v=e.virtual&&e.params.virtual.enabled?e.virtual.slides.length:e.grid&&e.params.grid.rows>1?e.slides.length/Math.ceil(e.params.grid.rows):e.slides.length;let _=e.pagination.el;_=rt(_);let D="";if(b.type==="bullets"){let S=e.params.loop?Math.ceil(v/e.params.slidesPerGroup):e.snapGrid.length;e.params.freeMode&&e.params.freeMode.enabled&&S>v&&(S=v);for(let C=0;C<S;C+=1)b.renderBullet?D+=b.renderBullet.call(e,C,b.bulletClass):D+=`<${b.bulletElement} ${e.isElement?'part="bullet"':""} class="${b.bulletClass}"></${b.bulletElement}>`}b.type==="fraction"&&(b.renderFraction?D=b.renderFraction.call(e,b.currentClass,b.totalClass):D=`<span class="${b.currentClass}"></span> / <span class="${b.totalClass}"></span>`),b.type==="progressbar"&&(b.renderProgressbar?D=b.renderProgressbar.call(e,b.progressbarFillClass):D=`<span class="${b.progressbarFillClass}"></span>`),e.pagination.bullets=[],_.forEach(S=>{b.type!=="custom"&&(S.innerHTML=D||""),b.type==="bullets"&&e.pagination.bullets.push(...S.querySelectorAll(Gn(b.bulletClass)))}),b.type!=="custom"&&n("paginationRender",_[0])}function g(){e.params.pagination=np(e,e.originalParams.pagination,e.params.pagination,{el:"swiper-pagination"});const b=e.params.pagination;if(!b.el)return;let v;typeof b.el=="string"&&e.isElement&&(v=e.el.querySelector(b.el)),!v&&typeof b.el=="string"&&(v=[...document.querySelectorAll(b.el)]),v||(v=b.el),!(!v||v.length===0)&&(e.params.uniqueNavElements&&typeof b.el=="string"&&Array.isArray(v)&&v.length>1&&(v=[...e.el.querySelectorAll(b.el)],v.length>1&&(v=v.filter(_=>Zh(_,".swiper")[0]===e.el)[0])),Array.isArray(v)&&v.length===1&&(v=v[0]),Object.assign(e.pagination,{el:v}),v=rt(v),v.forEach(_=>{b.type==="bullets"&&b.clickable&&_.classList.add(...(b.clickableClass||"").split(" ")),_.classList.add(b.modifierClass+b.type),_.classList.add(e.isHorizontal()?b.horizontalClass:b.verticalClass),b.type==="bullets"&&b.dynamicBullets&&(_.classList.add(`${b.modifierClass}${b.type}-dynamic`),a=0,b.dynamicMainBullets<1&&(b.dynamicMainBullets=1)),b.type==="progressbar"&&b.progressbarOpposite&&_.classList.add(b.progressbarOppositeClass),b.clickable&&_.addEventListener("click",f),e.enabled||_.classList.add(b.lockClass)}))}function p(){const b=e.params.pagination;if(l())return;let v=e.pagination.el;v&&(v=rt(v),v.forEach(_=>{_.classList.remove(b.hiddenClass),_.classList.remove(b.modifierClass+b.type),_.classList.remove(e.isHorizontal()?b.horizontalClass:b.verticalClass),b.clickable&&(_.classList.remove(...(b.clickableClass||"").split(" ")),_.removeEventListener("click",f))}
61)),e.pagination.bullets&&e.pagination.bullets.forEach(_=>_.classList.remove(...b.bulletActiveClass.split(" ")))}r("changeDirection",()=>{if(!e.pagination||!e.pagination.el)return;const b=e.params.pagination;let{el:v}=e.pagination;v=rt(v),v.forEach(_=>{_.classList.remove(b.horizontalClass,b.verticalClass),_.classList.add(e.isHorizontal()?b.horizontalClass:b.verticalClass)})}),r("init",()=>{e.params.pagination.enabled===!1?y():(g(),d(),h())}),r("activeIndexChange",()=>{typeof e.snapIndex>"u"&&h()}),r("snapIndexChange",()=>{h()}),r("snapGridLengthChange",()=>{d(),h()}),r("destroy",()=>{p()}),r("enable disable",()=>{let{el:b}=e.pagination;b&&(b=rt(b),b.forEach(v=>v.classList[e.enabled?"remove":"add"](e.params.pagination.lockClass)))}),r("lock unlock",()=>{h()}),r("click",(b,v)=>{const _=v.target,D=rt(e.pagination.el);if(e.params.pagination.el&&e.params.pagination.hideOnClick&&D&&D.length>0&&!_.classList.contains(e.params.pagination.bulletClass)){if(e.navigation&&(e.navigation.nextEl&&_===e.navigation.nextEl||e.navigation.prevEl&&_===e.navigation.prevEl))return;const S=D[0].classList.contains(e.params.pagination.hiddenClass);n(S===!0?"paginationShow":"paginationHide"),D.forEach(C=>C.classList.toggle(e.params.pagination.hiddenClass))}});const m=()=>{e.el.classList.remove(e.params.pagination.paginationDisabledClass);let{el:b}=e.pagination;b&&(b=rt(b),b.forEach(v=>v.classList.remove(e.params.pagination.paginationDisabledClass))),g(),d(),h()},y=()=>{e.el.classList.add(e.params.pagination.paginationDisabledClass);let{el:b}=e.pagination;b&&(b=rt(b),b.forEach(v=>v.classList.add(e.params.pagination.paginationDisabledClass))),p()};Object.assign(e.pagination,{enable:m,disable:y,render:d,update:h,init:g,destroy:p})}$t.use([J0,Q0]);class Z0{constructor(e,t){E(this,"swiper");E(this,"realIndex");E(this,"$slides");E(this,"slides");E(this,"$el");E(this,"$prev");E(this,"$next");E(this,"previousIndex");E(this,"activeIndex");E(this,"current");E(this,"$container");E(this,"$actions");E(this,"$bullets");E(this,"$current");E(this,"$previous");E(this,"infinite");E(this,"translate");E(this,"trX");E(this,"proxy");E(this,"dir");E(this,"start");E(this,"min");E(this,"max");E(this,"toTrX");E(this,"trxStart");E(this,"totalWidth");E(this,"slideSize");E(this,"snapX");E(this,"isDragging");E(this,"bounds");E(this,"space");E(this,"progressX");E(this,"dragDisabled");E(this,"pagination");E(this,"events");this.$el=e;const r=window.matchMedia("(max-width: 769px)");this.$el.getAttribute("data-slider")==="mobile"&&!r.matches||(this.swiper=new $t(this.$el,t))}}class eb extends Z0{constructor({$el:t}){super(t,{slidesPerView:"auto",loop:!0,spaceBetween:16,navigation:{nextEl:".btn-next",prevEl:".btn-prev"},breakpoints:{768:{spaceBetween:40}}});E(this,"initialSlides");E(this,"size");E(this,"spaceBetween");E(this,"params");this.swiper&&this.swiper.on("slideChange",()=>{const n=this.$el.querySelector("[data-slider-current]");n&&(n.innerHTML=(this.swiper.realIndex+1).toString())})}}class tb{constructor({$el:e}){E(this,"$el");this.$el=e,this.init()}init(){var t;const e=(t=history.state)==null?void 0:t.states;e&&e.length>1&&(this.$el.setAttribute("href",e[e.length-2].url),this.$el.classList.remove("btn-hidden"))}}class rb{constructor({$el:e}){E(this,"$el");E(this,"$backBtn");this.$el=e,this.$backBtn=document.querySelector("[data-back-btn]"),this.init()}init(){localStorage.getItem("search")&&localStorage.getItem("searchUrl")&&localStorage.getItem("fromSearchResult")&&(this.$el.setAttribute("href",localStorage.getItem("searchUrl")||""),this.$el.setAttribute("data-current-search",localStorage.getItem("search")||""),this.$el.setAttribute("data-search-type",localStorage.getItem("searchType")||""),this.$el.classList.remove("btn-hidden"),this.$backBtn&&this.$backBtn.classList.add("btn-hidden"))}}class ib extends Bt{constructor({$el:t}){super();E(this,"$el");E(this,"popup");this.$el=t,this.popup=null,this.bindEvents()}bindEvents(){this.$el.on("click",t=>this._onClick(t)),this.$el.on("mouseover",t=>this._onClick(t))}_onClick(t){t.preventDefault(),t.stopPropagation(),this.popup||this.createPopup(),this.adjustPopupPosition(),this.popup.classList.remove("is-hidden")}_onLeave(){this.popup.classList.add("is-hidden")}createPopup(){this.popup=document.createElement("dl"),this.popup.classList.add("glossary-popup","is-hidden");const t=document.createElement("dt");t.classList.add("glossary-popup-title"),t.innerHTML=this.$el.getAttribute("title");const r=document.createElement("dd");r.classList.add("glossary-popup-text","body"),r.innerHTML=this.$el.getAttribute("data-popover-text");const n=document.createElement("a");n.classList.add("glossary-popup-link"),n.setAttribute("href",this.$el.getAttribute("href")),n.innerHTML=this.$el.getAttribute("data-popover-label"),this.popup.append(t,r,n),document.body.classList.contains("toolbar-fixed")?n.on("click",()=>window.location.href=n.getAttribute("href")):n.on("click",()=>Po.go(n.getAttribute("href"))),this.$el.append(this.popup),this.$el.on("mouseleave",()=>this._onLeave())}adjustPopupPosition(){const t=this.popup.getBoundingClientRect();t.left<20?(this.popup.style.left="0",this.popup.style.transform="translate(0, -100%)"):t.right>window.innerWidth&&(this.popup.style.left="auto",this.popup.style.right="0",this.popup.style.transform="translate(0, -100%)")}}function nb(i,e){for(var t=0;t<e.length;t++){var r=e[t];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(i,r.key,r)}}
61function sb(i,e,t){return e&&nb(i.prototype,e),i}/*! 62 * Observer 3.11.4 63 * https://greensock.com 64 * 65 * @license Copyright 2008-2022, GreenSock. All rights reserved. 66 * Subject to the terms at https://greensock.com/standard-license or for 67 * Club GreenSock members, the agreement issued with that membership. 68 * @author: Jack Doyle, [email protected] 69*/var lt,Kl,Ft,ri,ii,yn,sp,xi,ls,op,Rr,nr,ap,lp=function(){return lt||typeof window<"u"&&(lt=window.gsap)&<.registerPlugin&<},up=1,dn=[],he=[],Pr=[],us=Date.now,Ql=function(e,t){return t},ob=function(){var e=ls.core,t=e.bridge||{},r=e._scrollers,n=e._proxies;r.push.apply(r,he),n.push.apply(n,Pr),he=r,Pr=n,Ql=function(o,a){return t[o](a)}},li=function(e,t){return~Pr.indexOf(e)&&Pr[Pr.indexOf(e)+1][t]},cs=function(e){return!!~op.indexOf(e)},wt=function(e,t,r,n,s){return e.addEventListener(t,r,{passive:!n,capture:!!s})},mt=function(e,t,r,n){return e.removeEventListener(t,r,!!n)},ro="scrollLeft",io="scrollTop",Jl=function(){return Rr&&Rr.isPressed||he.cache++},ia=function(e,t){var r=function n(s){if(s||s===0){up&&(Ft.history.scrollRestoration="manual");var o=Rr&&Rr.isPressed;s=n.v=Math.round(s)||(Rr&&Rr.iOS?1:0),e(s),n.cacheID=he.cache,o&&Ql("ss",s)}else(t||he.cache!==n.cacheID||Ql("ref"))&&(n.cacheID=he.cache,n.v=e());return n.v+n.offset};return r.offset=0,e&&r},bt={s:ro,p:"left",p2:"Left",os:"right",os2:"Right",d:"width",d2:"Width",a:"x",sc:ia(function(i){return arguments.length?Ft.scrollTo(i,Qe.sc()):Ft.pageXOffset||ri[ro]||ii[ro]||yn[ro]||0})},Qe={s:io,p:"top",p2:"Top",os:"bottom",os2:"Bottom",d:"height",d2:"Height",a:"y",op:bt,sc:ia(function(i){return arguments.length?Ft.scrollTo(bt.sc(),i):Ft.pageYOffset||ri[io]||ii[io]||yn[io]||0})},Dt=function(e){return lt.utils.toArray(e)[0]||(typeof e=="string"&<.config().nullTargetWarn!==!1?console.warn("Element not found:",e):null)},hi=function(e,t){var r=t.s,n=t.sc;cs(e)&&(e=ri.scrollingElement||ii);var s=he.indexOf(e),o=n===Qe.sc?1:2;!~s&&(s=he.push(e)-1),he[s+o]||e.addEventListener("scroll",Jl);var a=he[s+o],l=a||(he[s+o]=ia(li(e,r),!0)||(cs(e)?n:ia(function(u){return arguments.length?e[r]=u:e[r]})));return l.target=e,a||(l.smooth=lt.getProperty(e,"scrollBehavior")==="smooth"),l},Zl=function(e,t,r){var n=e,s=e,o=us(),a=o,l=t||50,u=Math.max(500,l*3),c=function(g,p){var m=us();p||m-o>l?(s=n,n=g,a=o,o=m):r?n+=g:n=s+(g-s)/(m-a)*(o-a)},f=function(){s=n=r?0:n,a=o=0},h=function(g){var p=a,m=s,y=us();return(g||g===0)&&g!==n&&c(g),o===a||y-a>u?0:(n+(r?m:-m))/((r?y:o)-p)*1e3};return{update:c,reset:f,getVelocity:h}},Yn=function(e,t){return t&&!e._gsapAllow&&e.preventDefault(),e.changedTouches?e.changedTouches[0]:e},Qc=function(e){var t=Math.max.apply(Math,e),r=Math.min.apply(Math,e);return Math.abs(t)>=Math.abs(r)?t:r},cp=function(){ls=lt.core.globals().ScrollTrigger,ls&&ls.core&&ob()},fp=function(e){return lt=e||lp(),lt&&typeof document<"u"&&document.body&&(Ft=window,ri=document,ii=ri.documentElement,yn=ri.body,op=[Ft,ri,ii,yn],lt.utils.clamp,ap=lt.core.context||function(){},xi="onpointerenter"in yn?"pointer":"mouse",sp=Ue.isTouch=Ft.matchMedia&&Ft.matchMedia("(hover: none), (pointer: coarse)").matches?1:"ontouchstart"in Ft||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0?2:0,nr=Ue.eventTypes=("ontouchstart"in ii?"touchstart,touchmove,touchcancel,touchend":"onpointerdown"in ii?"pointerdown,pointermove,pointercancel,pointerup":"mousedown,mousemove,mouseup,mouseup").split(","),setTimeout(function(){return up=0},500),cp(),Kl=1),Kl};bt.op=Qe;he.cache=0;var Ue=function(){function i(t){this.init(t)}var e=i.prototype;return e.init=function(r){Kl||fp(lt)||console.warn("Please gsap.registerPlugin(Observer)"),ls||cp();var n=r.tolerance,s=r.dragMinimum,o=r.type,a=r.target,l=r.lineHeight,u=r.debounce,c=r.preventDefault,f=r.onStop,h=r.onStopDelay,d=r.ignore,g=r.wheelSpeed,p=r.event,m=r.onDragStart,y=r.onDragEnd,b=r.onDrag,v=r.onPress,_=r.onRelease,D=r.onRight,S=r.onLeft,C=r.onUp,w=r.onDown,x=r.onChangeX,P=r.onChangeY,T=r.onChange,O=r.onToggleX,A=r.onToggleY,N=r.onHover,I=r.onHoverEnd,B=r.onMove,W=r.ignoreCheck,V=r.isNormalizer,M=r.onGestureStart,$=r.onGestureEnd,q=r.onWheel,ne=r.onEnable,le=r.onDisable,re=r.onClick,Z=r.scrollSpeed,pe=r.capture,ue=r.allowClicks,F=r.lockAxis,R=r.onLockAxis;this.target=a=Dt(a)||ii,this.vars=r,d&&(d=lt.utils.toArray(d)),n=n||1e-9,s=s||0,g=g||1,Z=Z||1,o=o||"wheel,touch,pointer",u=u!==!1,l||(l=parseFloat(Ft.getComputedStyle(yn).lineHeight)||22);var k,j,H,G,K,Y,ie,L=this,ge=0,se=0,xe=hi(a,bt),Ae=hi(a,Qe),De=xe(),_e=Ae(),gt=~o.indexOf("touch")&&!~o.indexOf("pointer")&&nr[0]==="pointerdown",We=cs(a),Te=a.ownerDocument||ri,be=[0,0,0],oe=[0,0,0],ut=0,Oe=function(){return ut=us()},nt=function(J,z){return(L.event=J)&&d&&~d.indexOf(J.target)||z&>&&J.pointerType!=="touch"||W&&W(J,z)},Zt=function(){L._vx.reset(),L._vy.reset(),j.pause(),f&&f(L)},Tt=function(){var J=L.deltaX=Qc(be),z=L.deltaY=Qc(oe),ee=Math.abs(J)>=n,te=Math.abs(z)>=n;T&&(ee||te)&&T(L,J,z,be,oe),ee&&(D&&L.deltaX>0&&D(L),S&&L.deltaX<0&&S(L),x&&x(L),O&&L.deltaX<0!=ge<0&&O(L),ge=L.deltaX,be[0]=be[1]=be[2]=0),te&&(w&&L.deltaY>0&&w(L),C&&L.deltaY<0&&C(L),P&&P(L),A&&L.deltaY<0!=se<0&&A(L),se=L.deltaY,oe[0]=oe[1]=oe[2]=0),(G||H)&&(B&&B(L),H&&(b(L),H=!1),G=!1),Y&&!(Y=!1)&&R&&R(L),K&&(q(L),K=!1),k=0},fr=function(J,z,ee){be[ee]+=J,oe[ee]+=z,L._vx.update(J),L._vy.update(z),u?k||(k=requestAnimationFrame(Tt)):Tt()},Er=function(J,z){F&&!ie&&(L.axis=ie=Math.abs(J)>Math.abs(z)?"x":"y",Y=!0),ie!=="y"&&(be[2]+=J,L._vx.update(J,!0)),ie!=="x"&&(oe[2]+=z,L._vy.update(z,!0)),u?k||(k=requestAnimationFrame(Tt)):Tt()},vi=function(J){if(!nt(J,1)){J=Yn(J,c);var z=J.clientX,ee=J.clientY,te=z-L.x,ae=ee-L.y,Je=L.isDragging;L.x=z,L.y=ee,(Je||Math.abs(L.startX-z)>=s||Math.abs(L.startY-ee)>=s)&&(b&&(H=!0),Je||(L.isDragging=!0),Er(te,ae),Je||m&&m(L))}}
69,we=L.onPress=function(ye){nt(ye,1)||(L.axis=ie=null,j.pause(),L.isPressed=!0,ye=Yn(ye),ge=se=0,L.startX=L.x=ye.clientX,L.startY=L.y=ye.clientY,L._vx.reset(),L._vy.reset(),wt(V?a:Te,nr[1],vi,c,!0),L.deltaX=L.deltaY=0,v&&v(L))},Or=function(J){if(!nt(J,1)){mt(V?a:Te,nr[1],vi,!0);var z=!isNaN(L.y-L.startY),ee=L.isDragging&&(Math.abs(L.x-L.startX)>3||Math.abs(L.y-L.startY)>3),te=Yn(J);!ee&&z&&(L._vx.reset(),L._vy.reset(),c&&ue&<.delayedCall(.08,function(){if(us()-ut>300&&!J.defaultPrevented){if(J.target.click)J.target.click();else if(Te.createEvent){var ae=Te.createEvent("MouseEvents");ae.initMouseEvent("click",!0,!0,Ft,1,te.screenX,te.screenY,te.clientX,te.clientY,!1,!1,!1,!1,0,null),J.target.dispatchEvent(ae)}}})),L.isDragging=L.isGesturing=L.isPressed=!1,f&&!V&&j.restart(!0),y&&ee&&y(L),_&&_(L,ee)}},er=function(J){return J.touches&&J.touches.length>1&&(L.isGesturing=!0)&&M(J,L.isDragging)},tr=function(){return(L.isGesturing=!1)||$(L)},dr=function(J){if(!nt(J)){var z=xe(),ee=Ae();fr((z-De)*Z,(ee-_e)*Z,1),De=z,_e=ee,f&&j.restart(!0)}},hr=function(J){if(!nt(J)){J=Yn(J,c),q&&(K=!0);
69var z=(J.deltaMode===1?l:J.deltaMode===2?Ft.innerHeight:1)*g;fr(J.deltaX*z,J.deltaY*z,0),f&&!V&&j.restart(!0)}},yi=function(J){if(!nt(J)){var z=J.clientX,ee=J.clientY,te=z-L.x,ae=ee-L.y;L.x=z,L.y=ee,G=!0,(te||ae)&&Er(te,ae)}},Ui=function(J){L.event=J,N(L)},$r=function(J){L.event=J,I(L)},jn=function(J){return nt(J)||Yn(J,c)&&re(L)};j=L._dc=lt.delayedCall(h||.25,Zt).pause(),L.deltaX=L.deltaY=0,L._vx=Zl(0,50,!0),L._vy=Zl(0,50,!0),L.scrollX=xe,L.scrollY=Ae,L.isDragging=L.isGesturing=L.isPressed=!1,ap(this),L.enable=function(ye){return L.isEnabled||(wt(We?Te:a,"scroll",Jl),o.indexOf("scroll")>=0&&wt(We?Te:a,"scroll",dr,c,pe),o.indexOf("wheel")>=0&&wt(a,"wheel",hr,c,pe),(o.indexOf("touch")>=0&&sp||o.indexOf("pointer")>=0)&&(wt(a,nr[0],we,c,pe),wt(Te,nr[2],Or),wt(Te,nr[3],Or),ue&&wt(a,"click",Oe,!1,!0),re&&wt(a,"click",jn),M&&wt(Te,"gesturestart",er),$&&wt(Te,"gestureend",tr),N&&wt(a,xi+"enter",Ui),I&&wt(a,xi+"leave",$r),B&&wt(a,xi+"move",yi)),L.isEnabled=!0,ye&&ye.type&&we(ye),ne&&ne(L)),L},L.disable=function(){L.isEnabled&&(dn.filter(function(ye){return ye!==L&&cs(ye.target)}).length||mt(We?Te:a,"scroll",Jl),L.isPressed&&(L._vx.reset(),L._vy.reset(),mt(V?a:Te,nr[1],vi,!0)),mt(We?Te:a,"scroll",dr,pe),mt(a,"wheel",hr,pe),mt(a,nr[0],we,pe),mt(Te,nr[2],Or),mt(Te,nr[3],Or),mt(a,"click",Oe,!0),mt(a,"click",jn),mt(Te,"gesturestart",er),mt(Te,"gestureend",tr),mt(a,xi+"enter",Ui),mt(a,xi+"leave",$r),mt(a,xi+"move",yi),L.isEnabled=L.isPressed=L.isDragging=!1,le&&le(L))},L.kill=L.revert=function(){L.disable();var ye=dn.indexOf(L);ye>=0&&dn.splice(ye,1),Rr===L&&(Rr=0)},dn.push(L),V&&cs(a)&&(Rr=L),L.enable(p)},sb(i,[{key:"velocityX",get:function(){return this._vx.getVelocity()}},{key:"velocityY",get:function(){return this._vy.getVelocity()}}]),i}();Ue.version="3.11.4";Ue.create=function(i){return new Ue(i)};Ue.register=fp;Ue.getAll=function(){return dn.slice()};Ue.getById=function(i){return dn.filter(function(e){return e.vars.id===i})[0]};lp()&<.registerPlugin(Ue);/*! 70 * ScrollTrigger 3.11.4 71 * https://greensock.com 72 * 73 * @license Copyright 2008-2022, GreenSock. All rights reserved. 74 * Subject to the terms at https://greensock.com/standard-license or for 75 * Club GreenSock members, the agreement issued with that membership. 76 * @author: Jack Doyle, [email protected] 77*/var Q,rn,me,$e,ar,Be,dp,na,sa,hn,$o,no,ft,Ba,eu,vt,Jc,Zc,nn,hp,ul,pp,Et,gp,mp,vp,qr,tu,tc,cl,so=1,yt=Date.now,fl=yt(),Qt=0,oo=0,ef=function(){return Ba=1},tf=function(){return Ba=0},yr=function(e){return e},es=function(e){return Math.round(e*1e5)/1e5||0},yp=function(){return typeof window<"u"},bp=function(){return Q||yp()&&(Q=window.gsap)&&Q.registerPlugin&&Q},Hi=function(e){return!!~dp.indexOf(e)},_p=function(e){return li(e,"getBoundingClientRect")||(Hi(e)?function(){return Io.width=me.innerWidth,Io.height=me.innerHeight,Io}:function(){return Fr(e)})},ab=function(e,t,r){var n=r.d,s=r.d2,o=r.a;return(o=li(e,"getBoundingClientRect"))?function(){return o()[n]}:function(){return(t?me["inner"+s]:e["client"+s])||0}},lb=function(e,t){return!t||~Pr.indexOf(e)?_p(e):function(){return Io}},ni=function(e,t){var r=t.s,n=t.d2,s=t.d,o=t.a;return(r="scroll"+n)&&(o=li(e,r))?o()-_p(e)()[s]:Hi(e)?(ar[r]||Be[r])-(me["inner"+n]||ar["client"+n]||Be["client"+n]):e[r]-e["offset"+n]},ao=function(e,t){for(var r=0;r<nn.length;r+=3)(!t||~t.indexOf(nn[r+1]))&&e(nn[r],nn[r+1],nn[r+2])},sr=function(e){return typeof e=="string"},_t=function(e){return typeof e=="function"},ts=function(e){return typeof e=="number"},Mo=function(e){return typeof e=="object"},Un=function(e,t,r){return e&&e.progress(t?0:1)&&r&&e.pause()},dl=function(e,t){if(e.enabled){var r=t(e);r&&r.totalTime&&(e.callbackAnimation=r)}},Ji=Math.abs,wp="left",Dp="top",rc="right",ic="bottom",Fi="width",Ii="height",fs="Right",ds="Left",hs="Top",ps="Bottom",He="padding",Wt="margin",$n="Width",nc="Height",st="px",lr=function(e){return me.getComputedStyle(e)},ub=function(e){var t=lr(e).position;e.style.position=t==="absolute"||t==="fixed"?t:"relative"},rf=function(e,t){for(var r in t)r in e||(e[r]=t[r]);return e},Fr=function(e,t){var r=t&&lr(e)[eu]!=="matrix(1, 0, 0, 1, 0, 0)"&&Q.to(e,{x:0,y:0,xPercent:0,yPercent:0,rotation:0,rotationX:0,rotationY:0,scale:1,skewX:0,skewY:0}).progress(1),n=e.getBoundingClientRect();return r&&r.progress(0).kill(),n},ru=function(e,t){var r=t.d2;return e["offset"+r]||e["client"+r]||0},Sp=function(e){var t=[],r=e.labels,n=e.duration(),s;for(s in r)t.push(r[s]/n);return t},cb=function(e){return function(t){return Q.utils.snap(Sp(e),t)}},sc=function(e){var t=Q.utils.snap(e),r=Array.isArray(e)&&e.slice(0).sort(function(n,s){return n-s});return r?function(n,s,o){o===void 0&&(o=.001);var a;if(!s)return t(n);if(s>0){for(n-=o,a=0;a<r.length;a++)if(r[a]>=n)return r[a];return r[a-1]}else for(a=r.length,n+=o;a--;
77)if(r[a]<=n)return r[a];return r[0]}:function(n,s,o){o===void 0&&(o=.001);var a=t(n);return!s||Math.abs(a-n)<o||a-n<0==s<0?a:t(s<0?n-e:n+e)}},fb=function(e){return function(t,r){return sc(Sp(e))(t,r.direction)}},lo=function(e,t,r,n){return r.split(",").forEach(function(s){return e(t,s,n)})},ot=function(e,t,r,n,s){return e.addEventListener(t,r,{passive:!n,capture:!!s})},tt=function(e,t,r,n){return e.removeEventListener(t,r,!!n)},uo=function(e,t,r){return r&&r.wheelHandler&&e(t,"wheel",r)},nf={startColor:"green",endColor:"red",indent:0,fontSize:"16px",fontWeight:"normal"},co={toggleActions:"play",anticipatePin:0},oa={top:0,left:0,center:.5,bottom:1,right:1},Ao=function(e,t){if(sr(e)){var r=e.indexOf("="),n=~r?+(e.charAt(r-1)+1)*parseFloat(e.substr(r+1)):0;~r&&(e.indexOf("%")>r&&(n*=t/100),e=e.substr(0,r-1)),e=n+(e in oa?oa[e]*t:~e.indexOf("%")?parseFloat(e)*t/100:parseFloat(e)||0)}return e},fo=function(e,t,r,n,s,o,a,l){var u=s.startColor,c=s.endColor,f=s.fontSize,h=s.indent,d=s.fontWeight,g=$e.createElement("div"),p=Hi(r)||li(r,"pinType")==="fixed",m=e.indexOf("scroller")!==-1,y=p?Be:r,b=e.indexOf("start")!==-1,v=b?u:c,_="border-color:"+v+";font-size:"+f+";color:"+v+";font-weight:"+d+";pointer-events:none;white-space:nowrap;font-family:sans-serif,Arial;z-index:1000;padding:4px 8px;border-width:0;border-style:solid;";return _+="position:"+((m||l)&&p?"fixed;":"absolute;"),(m||l||!p)&&(_+=(n===Qe?rc:ic)+":"+(o+parseFloat(h))+"px;"),a&&(_+="box-sizing:border-box;text-align:left;width:"+a.offsetWidth+"px;"),g._isStart=b,g.setAttribute("class","gsap-marker-"+e+(t?" marker-"+t:"")),g.style.cssText=_,g.innerText=t||t===0?e+"-"+t:e,y.children[0]?y.insertBefore(g,y.children[0]):y.appendChild(g),g._offset=g["offset"+n.op.d2],ko(g,0,n,b),g},ko=function(e,t,r,n){var s={display:"block"},o=r[n?"os2":"p2"],a=r[n?"p2":"os2"];e._isFlipped=n,s[r.a+"Percent"]=n?-100:0,s[r.a]=n?"1px":0,s["border"+o+$n]=1,s["border"+a+$n]=0,s[r.p]=t+"px",Q.set(e,s)},ce=[],iu={},Os,sf=function(){return yt()-Qt>34&&(Os||(Os=requestAnimationFrame(pi)))},Zi=function(){(!Et||!Et.isPressed||Et.startX>Be.clientWidth)&&(he.cache++,Et?Os||(Os=requestAnimationFrame(pi)):pi(),Qt||Vi("scrollStart"),Qt=yt())},hl=function(){vp=me.innerWidth,mp=me.innerHeight},rs=function(){he.cache++,!ft&&!pp&&!$e.fullscreenElement&&!$e.webkitFullscreenElement&&(!gp||vp!==me.innerWidth||Math.abs(me.innerHeight-mp)>me.innerHeight*.25)&&na.restart(!0)},zi={},db=[],xp=function i(){return tt(fe,"scrollEnd",i)||Mi(!0)},Vi=function(e){return zi[e]&&zi[e].map(function(t){return t()})||db},Ot=[],Pp=function(e){for(var t=0;t<Ot.length;t+=5)(!e||Ot[t+4]&&Ot[t+4].query===e)&&(Ot[t].style.cssText=Ot[t+1],Ot[t].getBBox&&Ot[t].setAttribute("transform",Ot[t+2]||""),Ot[t+3].uncache=1)},oc=function(e,t){var r;for(vt=0;vt<ce.length;vt++)r=ce[vt],r&&(!t||r._ctx===t)&&(e?r.kill(1):r.revert(!0,!0));t&&Pp(t),t||Vi("revert")},Cp=function(e,t){he.cache++,(t||!or)&&he.forEach(function(r){return _t(r)&&r.cacheID++&&(r.rec=0)}),sr(e)&&(me.history.scrollRestoration=tc=e)},or,Ni=0,of,hb=function(){if(of!==Ni){var e=of=Ni;requestAnimationFrame(function(){return e===Ni&&Mi(!0)})}},Mi=function(e,t){if(Qt&&!e){ot(fe,"scrollEnd",xp);return}or=fe.isRefreshing=!0,he.forEach(function(n){return _t(n)&&n.cacheID++&&(n.rec=n())});var r=Vi("refreshInit");hp&&fe.sort(),t||oc(),he.forEach(function(n){_t(n)&&(n.smooth&&(n.target.style.scrollBehavior="auto"),n(0))}),ce.slice(0).forEach(function(n){return n.refresh()}),ce.forEach(function(n,s){if(n._subPinOffset&&n.pin){var o=n.vars.horizontal?"offsetWidth":"offsetHeight",a=n.pin[o];n.revert(!0,1),n.adjustPinSpacing(n.pin[o]-a),n.revert(!1,1)}}),ce.forEach(function(n){return n.vars.end==="max"&&n.setPositions(n.start,Math.max(n.start+1,ni(n.scroller,n._dir)))}),r.forEach(function(n){return n&&n.render&&n.render(-1)}),he.forEach(function(n){_t(n)&&(n.smooth&&requestAnimationFrame(function(){return n.target.style.scrollBehavior="smooth"}),n.rec&&n(n.rec))}),Cp(tc,1),na.pause(),Ni++,pi(2),ce.forEach(function(n){return _t(n.vars.onRefresh)&&n.vars.onRefresh(n)}),or=fe.isRefreshing=!1,Vi("refresh")},af=0,Lo=1,gs,pi=function(e){if(!or||e===2){fe.isUpdating=!0,gs&&gs.update(0);var t=ce.length,r=yt(),n=r-fl>=50,s=t&&ce[0].scroll();if(Lo=af>s?-1:1,af=s,n&&(Qt&&!Ba&&r-Qt>200&&(Qt=0,Vi("scrollEnd")),$o=fl,fl=r),Lo<0){for(vt=t;vt-- >0;)ce[vt]&&ce[vt].update(0,n);Lo=1}else for(vt=0;vt<t;vt++)ce[vt]&&ce[vt].update(0,n);fe.isUpdating=!1}Os=0},nu=[wp,Dp,ic,rc,Wt+ps,Wt+fs,Wt+hs,Wt+ds,"display","flexShrink","float","zIndex","gridColumnStart","gridColumnEnd","gridRowStart","gridRowEnd","gridArea","justifySelf","alignSelf","placeSelf","order"],Fo=nu.concat([Fi,Ii,"boxSizing","max"+$n,"max"+nc,"position",Wt,He,He+hs,He+fs,He+ps,He+ds]),pb=function(e,t,r){bn(r);var n=e._gsap;if(n.spacerIsNative)bn(n.spacerState);else if(e._gsap.swappedIn){var s=t.parentNode;s&&(s.insertBefore(e,t),s.removeChild(t))}
77e._gsap.swappedIn=!1},pl=function(e,t,r,n){if(!e._gsap.swappedIn){for(var s=nu.length,o=t.style,a=e.style,l;s--;)l=nu[s],o[l]=r[l];o.position=r.position==="absolute"?"absolute":"relative",r.display==="inline"&&(o.display="inline-block"),a[ic]=a[rc]="auto",o.flexBasis=r.flexBasis||"auto",o.overflow="visible",o.boxSizing="border-box",o[Fi]=ru(e,bt)+st,o[Ii]=ru(e,Qe)+st,o[He]=a[Wt]=a[Dp]=a[wp]="0",bn(n),a[Fi]=a["max"+$n]=r[Fi],a[Ii]=a["max"+nc]=r[Ii],a[He]=r[He],e.parentNode!==t&&(e.parentNode.insertBefore(t,e),t.appendChild(e)),e._gsap.swappedIn=!0}},gb=/([A-Z])/g,bn=function(e){if(e){var t=e.t.style,r=e.length,n=0,s,o;for((e.t._gsap||Q.core.getCache(e.t)).uncache=1;n<r;n+=2)o=e[n+1],s=e[n],o?t[s]=o:t[s]&&t.removeProperty(s.replace(gb,"-$1").toLowerCase())}},ho=function(e){for(var t=Fo.length,r=e.style,n=[],s=0;s<t;s++)n.push(Fo[s],r[Fo[s]]);return n.t=e,n},mb=function(e,t,r){for(var n=[],s=e.length,o=r?8:0,a;o<s;o+=2)a=e[o],n.push(a,a in t?t[a]:e[o+1]);return n.t=e.t,n},Io={left:0,top:0},lf=function(e,t,r,n,s,o,a,l,u,c,f,h,d){_t(e)&&(e=e(l)),sr(e)&&e.substr(0,3)==="max"&&(e=h+(e.charAt(4)==="="?Ao("0"+e.substr(3),r):0));var g=d?d.time():0,p,m,y;if(d&&d.seek(0),ts(e))a&&ko(a,r,n,!0);else{_t(t)&&(t=t(l));var b=(e||"0").split(" "),v,_,D,S;y=Dt(t)||Be,v=Fr(y)||{},(!v||!v.left&&!v.top)&&lr(y).display==="none"&&(S=y.style.display,y.style.display="block",v=Fr(y),S?y.style.display=S:y.style.removeProperty("display")),_=Ao(b[0],v[n.d]),D=Ao(b[1]||"0",r),e=v[n.p]-u[n.p]-c+_+s-D,a&&ko(a,D,n,r-D<20||a._isStart&&D>20),r-=r-D}if(o){var C=e+r,w=o._isStart;p="scroll"+n.d2,ko(o,C,n,w&&C>20||!w&&(f?Math.max(Be[p],ar[p]):o.parentNode[p])<=C+1),f&&(u=Fr(a),f&&(o.style[n.op.p]=u[n.op.p]-n.op.m-o._offset+st))}return d&&y&&(p=Fr(y),d.seek(h),m=Fr(y),d._caScrollDist=p[n.p]-m[n.p],e=e/d._caScrollDist*h),d&&d.seek(g),d?e:Math.round(e)},vb=/(webkit|moz|length|cssText|inset)/i,uf=function(e,t,r,n){if(e.parentNode!==t){var s=e.style,o,a;if(t===Be){e._stOrig=s.cssText,a=lr(e);for(o in a)!+o&&!vb.test(o)&&a[o]&&typeof s[o]=="string"&&o!=="0"&&(s[o]=a[o]);s.top=r,s.left=n}else s.cssText=e._stOrig;Q.core.getCache(e).uncache=1,t.appendChild(e)}},cf=function(e,t){var r=hi(e,t),n="_scroll"+t.p2,s,o,a=function l(u,c,f,h,d){var g=l.tween,p=c.onComplete,m={};return f=f||r(),d=h&&d||0,h=h||u-f,g&&g.kill(),s=Math.round(f),c[n]=u,c.modifiers=m,m[n]=function(y){return y=Math.round(r()),y!==s&&y!==o&&Math.abs(y-s)>3&&Math.abs(y-o)>3?(g.kill(),l.tween=0):y=f+h*g.ratio+d*g.ratio*g.ratio,o=s,s=Math.round(y)},c.onUpdate=function(){he.cache++,pi()},c.onComplete=function(){l.tween=0,p&&p.call(g)},g=l.tween=Q.to(e,c),g};return e[n]=r,r.wheelHandler=function(){return a.tween&&a.tween.kill()&&(a.tween=0)},ot(e,"wheel",r.wheelHandler),a},fe=function(){function i(t,r){rn||i.register(Q)||console.warn("Please gsap.registerPlugin(ScrollTrigger)"),this.init(t,r)}var e=i.prototype;return e.init=function(r,n){if(this.progress=this.start=0,this.vars&&this.kill(!0,!0),!oo){this.update=this.refresh=this.kill=yr;return}r=rf(sr(r)||ts(r)||r.nodeType?{trigger:r}:r,co);var s=r,o=s.onUpdate,a=s.toggleClass,l=s.id,u=s.onToggle,c=s.onRefresh,f=s.scrub,h=s.trigger,d=s.pin,g=s.pinSpacing,p=s.invalidateOnRefresh,m=s.anticipatePin,y=s.onScrubComplete,b=s.onSnapComplete,v=s.once,_=s.snap,D=s.pinReparent,S=s.pinSpacer,C=s.containerAnimation,w=s.fastScrollEnd,x=s.preventOverlaps,P=r.horizontal||r.containerAnimation&&r.horizontal!==!1?bt:Qe,T=!f&&f!==0,O=Dt(r.scroller||me),A=Q.core.getCache(O),N=Hi(O),I=("pinType"in r?r.pinType:li(O,"pinType")||N&&"fixed")==="fixed",B=[r.onEnter,r.onLeave,r.onEnterBack,r.onLeaveBack],W=T&&r.toggleActions.split(" "),V="markers"in r?r.markers:co.markers,M=N?0:parseFloat(lr(O)["border"+P.p2+$n])||0,$=this,q=r.onRefreshInit&&function(){return r.onRefreshInit($)},ne=ab(O,N,P),le=lb(O,N),re=0,Z=0,pe=hi(O,P),ue,F,R,k,j,H,G,K,Y,ie,L,ge,se,xe,Ae,De,_e,gt,We,Te,be,oe,ut,Oe,nt,Zt,Tt,fr,Er,vi,we,Or,er,tr,dr,hr,yi,Ui,$r;if(tu($),$._dir=P,m*=45,$.scroller=O,$.scroll=C?C.time.bind(C):pe,k=pe(),$.vars=r,n=n||r.animation,"refreshPriority"in r&&(hp=1,r.refreshPriority===-9999&&(gs=$)),A.tweenScroll=A.tweenScroll||{top:cf(O,Qe),left:cf(O,bt)},$.tweenTo=ue=A.tweenScroll[P.p],$.scrubDuration=function(z){Or=ts(z)&&z,Or?we?we.duration(z):we=Q.to(n,{ease:"expo",totalProgress:"+=0.001",duration:Or,paused:!0,onComplete:function(){return y&&y($)}}):(we&&we.progress(1).kill(),we=0)},n&&(n.vars.lazy=!1,n._initted||n.vars.immediateRender!==!1&&r.immediateRender!==!1&&n.duration()&&n.render(0,!0,!0),$.animation=n.pause(),n.scrollTrigger=$,$.scrubDuration(f),Er=0,l||(l=n.vars.id)),ce.push($),_&&((!Mo(_)||_.push)&&(_={snapTo:_}),"scrollBehavior"in Be.style&&Q.set(N?[Be,ar]:O,{scrollBehavior:"auto"}),he.forEach(function(z){return _t(z)&&z.target===(N?$e.scrollingElement||ar:O)&&(z.smooth=!1)}),R=_t(_.snapTo)?_.snapTo:_.snapTo==="labels"?cb(n):_.snapTo==="labelsDirectional"?fb(n):_.directional!==!1?function(z,ee){return sc(_.snapTo)(z,yt()-Z<500?0:ee.direction)}:Q.utils.snap(_.snapTo),er=_.duration||{min:.1,max:2},er=Mo(er)?hn(er.min,er.max):hn(er,er),tr=Q.delayedCall(_.delay||Or/2||.1,function(){var z=pe(),ee=yt()-Z<500,te=ue.tween;
77if((ee||Math.abs($.getVelocity())<10)&&!te&&!Ba&&re!==z){var ae=(z-H)/se,Je=n&&!T?n.totalProgress():ae,de=ee?0:(Je-vi)/(yt()-$o)*1e3||0,qe=Q.utils.clamp(-ae,1-ae,Ji(de/2)*de/.185),Fe=ae+(_.inertia===!1?0:qe),pr=hn(0,1,R(Fe,$)),Ee=Math.round(H+pr*se),Ze=_,rr=Ze.onStart,Ie=Ze.onInterrupt,Ne=Ze.onComplete;if(z<=G&&z>=H&&Ee!==z){if(te&&!te._initted&&te.data<=Ji(Ee-z))return;_.inertia===!1&&(qe=pr-ae),ue(Ee,{duration:er(Ji(Math.max(Ji(Fe-Je),Ji(pr-Je))*.185/de/.05||0)),ease:_.ease||"power3",data:Ji(Ee-z),onInterrupt:function(){return tr.restart(!0)&&Ie&&Ie($)},onComplete:function(){$.update(),re=pe(),Er=vi=n&&!T?n.totalProgress():$.progress,b&&b($),Ne&&Ne($)}},z,qe*se,Ee-z-qe*se),rr&&rr($,ue.tween)}}else $.isActive&&re!==z&&tr.restart(!0)}).pause()),l&&(iu[l]=$),h=$.trigger=Dt(h||d),$r=h&&h._gsap&&h._gsap.stRevert,$r&&($r=$r($)),d=d===!0?h:Dt(d),sr(a)&&(a={targets:h,className:a}),d&&(g===!1||g===Wt||(g=!g&&d.parentNode&&d.parentNode.style&&lr(d.parentNode).display==="flex"?!1:He),$.pin=d,F=Q.core.getCache(d),F.spacer?xe=F.pinState:(S&&(S=Dt(S),S&&!S.nodeType&&(S=S.current||S.nativeElement),F.spacerIsNative=!!S,S&&(F.spacerState=ho(S))),F.spacer=_e=S||$e.createElement("div"),_e.classList.add("pin-spacer"),l&&_e.classList.add("pin-spacer-"+l),F.pinState=xe=ho(d)),r.force3D!==!1&&Q.set(d,{force3D:!0}),$.spacer=_e=F.spacer,fr=lr(d),ut=fr[g+P.os2],We=Q.getProperty(d),Te=Q.quickSetter(d,P.a,st),pl(d,_e,fr),De=ho(d)),V){ge=Mo(V)?rf(V,nf):nf,ie=fo("scroller-start",l,O,P,ge,0),L=fo("scroller-end",l,O,P,ge,0,ie),gt=ie["offset"+P.op.d2];var jn=Dt(li(O,"content")||O);K=this.markerStart=fo("start",l,jn,P,ge,gt,0,C),Y=this.markerEnd=fo("end",l,jn,P,ge,gt,0,C),C&&(Ui=Q.quickSetter([K,Y],P.a,st)),!I&&!(Pr.length&&li(O,"fixedMarkers")===!0)&&(ub(N?Be:O),Q.set([ie,L],{force3D:!0}),nt=Q.quickSetter(ie,P.a,st),Tt=Q.quickSetter(L,P.a,st))}if(C){var ye=C.vars.onUpdate,J=C.vars.onUpdateParams;C.eventCallback("onUpdate",function(){$.update(0,0,1),ye&&ye.apply(J||[])})}$.previous=function(){return ce[ce.indexOf($)-1]},$.next=function(){return ce[ce.indexOf($)+1]},$.revert=function(z,ee){if(!ee)return $.kill(!0);var te=z!==!1||!$.enabled,ae=ft;te!==$.isReverted&&(te&&(hr=Math.max(pe(),$.scroll.rec||0),dr=$.progress,yi=n&&n.progress()),K&&[K,Y,ie,L].forEach(function(Je){return Je.style.display=te?"none":"block"}),te&&(ft=1,$.update(te)),d&&(!D||!$.isActive)&&(te?pb(d,_e,xe):pl(d,_e,lr(d),Oe)),te||$.update(te),ft=ae,$.isReverted=te)},$.refresh=function(z,ee){if(!((ft||!$.enabled)&&!ee)){if(d&&z&&Qt){ot(i,"scrollEnd",xp);return}!or&&q&&q($),ft=1,Z=yt(),ue.tween&&(ue.tween.kill(),ue.tween=0),we&&we.pause(),p&&n&&n.revert({kill:!1}).invalidate(),$.isReverted||$.revert(!0,!0),$._subPinOffset=!1;for(var te=ne(),ae=le(),Je=C?C.duration():ni(O,P),de=0,qe=0,Fe=r.end,pr=r.endTrigger||h,Ee=r.start||(r.start===0||!h?0:d?"0 0":"0 100%"),Ze=$.pinnedContainer=r.pinnedContainer&&Dt(r.pinnedContainer),rr=h&&Math.max(0,ce.indexOf($))||0,Ie=rr,Ne,Ge,Xi,bi,Xe,Re,Mr,Va,wc,Hn,gr;Ie--;)Re=ce[Ie],Re.end||Re.refresh(0,1)||(ft=1),Mr=Re.pin,Mr&&(Mr===h||Mr===d)&&!Re.isReverted&&(Hn||(Hn=[]),Hn.unshift(Re),Re.revert(!0,!0)),Re!==ce[Ie]&&(rr--,Ie--);for(_t(Ee)&&(Ee=Ee($)),H=lf(Ee,h,te,P,pe(),K,ie,$,ae,M,I,Je,C)||(d?-.001:0),_t(Fe)&&(Fe=Fe($)),sr(Fe)&&!Fe.indexOf("+=")&&(~Fe.indexOf(" ")?Fe=(sr(Ee)?Ee.split(" ")[0]:"")+Fe:(de=Ao(Fe.substr(2),te),Fe=sr(Ee)?Ee:H+de,pr=h)),G=Math.max(H,lf(Fe||(pr?"100% 0":Je),pr,te,P,pe()+de,Y,L,$,ae,M,I,Je,C))||-.001,se=G-H||(H-=.01)&&.001,de=0,Ie=rr;Ie--;)Re=ce[Ie],Mr=Re.pin,Mr&&Re.start-Re._pinPush<=H&&!C&&Re.end>0&&(Ne=Re.end-Re.start,(Mr===h&&Re.start-Re._pinPush<H||Mr===Ze)&&!ts(Ee)&&(de+=Ne*(1-Re.progress)),Mr===d&&(qe+=Ne));if(H+=de,G+=de,$._pinPush=qe,K&&de&&(Ne={},Ne[P.a]="+="+de,Ze&&(Ne[P.p]="-="+pe()),Q.set([K,Y],Ne)),d)Ne=lr(d),bi=P===Qe,Xi=pe(),be=parseFloat(We(P.a))+qe,!Je&&G>1&&(gr=(N?$e.scrollingElement||ar:O).style,gr={style:gr,value:gr["overflow"+P.a.toUpperCase()]},gr["overflow"+P.a.toUpperCase()]="scroll"),pl(d,_e,Ne),De=ho(d),Ge=Fr(d,!0),Va=I&&hi(O,bi?bt:Qe)(),g&&(Oe=[g+P.os2,se+qe+st],Oe.t=_e,Ie=g===He?ru(d,P)+se+qe:0,Ie&&Oe.push(P.d,Ie+st),bn(Oe),Ze&&ce.forEach(function(zn){zn.pin===Ze&&zn.vars.pinSpacing!==!1&&(zn._subPinOffset=!0)}),I&&pe(hr)),I&&(Xe={top:Ge.top+(bi?Xi-H:Va)+st,left:Ge.left+(bi?Va:Xi-H)+st,boxSizing:"border-box",position:"fixed"},Xe[Fi]=Xe["max"+$n]=Math.ceil(Ge.width)+st,Xe[Ii]=Xe["max"+nc]=Math.ceil(Ge.height)+st,Xe[Wt]=Xe[Wt+hs]=Xe[Wt+fs]=Xe[Wt+ps]=Xe[Wt+ds]="0",Xe[He]=Ne[He],Xe[He+hs]=Ne[He+hs],Xe[He+fs]=Ne[He+fs],Xe[He+ps]=Ne[He+ps],Xe[He+ds]=Ne[He+ds],Ae=mb(xe,Xe,D),or&&pe(0)),n?(wc=n._initted,ul(1),n.render(n.duration(),!0,!0),oe=We(P.a)-be+se+qe,Zt=Math.abs(se-oe)>1,I&&Zt&&Ae.splice(Ae.length-2,2),n.render(0,!0,!0),wc||n.invalidate(!0),n.parent||n.totalTime(n.totalTime()),ul(0)):oe=se,gr&&(gr.value?gr.style["overflow"+P.a.toUpperCase()]=gr.value:gr.style.removeProperty("overflow-"+P.a));else if(h&&pe()&&!C)for(Ge=h.parentNode;Ge&&Ge!==Be;)Ge._pinOffset&&(H-=Ge._pinOffset,G-=Ge._pinOffset),Ge=Ge.parentNode;Hn&&Hn.forEach(function(zn){return zn.revert(!1,!0)}),$.start=H,$.end=G,k=j=or?hr:pe(),!C&&!or&&(k<hr&&pe(hr),$.scroll.rec=0),$.revert(!1,!0),tr&&(re=-1,$.isActive&&pe(H+se*dr),tr.restart(!0)),ft=0,n&&T&&(n._initted||yi)&&n.progress()!==yi&&n.progress(yi,!0).render(n.time(),!0,!0),(dr!==$.progress||C)&&(n&&!T&&n.totalProgress(dr,!0),$.progress=(k-H)/se===dr?0:dr),d&&g&&(_e._pinOffset=Math.round($.progress*oe)),c&&!or&&c($)}},$.getVelocity=function(){return(pe()-j)/(yt()-$o)*1e3||0}
77,$.endAnimation=function(){Un($.callbackAnimation),n&&(we?we.progress(1):n.paused()?T||Un(n,$.direction<0,1):Un(n,n.reversed()))},$.labelToScroll=function(z){return n&&n.labels&&(H||$.refresh()||H)+n.labels[z]/n.duration()*se||0},$.getTrailing=function(z){var ee=ce.indexOf($),te=$.direction>0?ce.slice(0,ee).reverse():ce.slice(ee+1);return(sr(z)?te.filter(function(ae){return ae.vars.preventOverlaps===z}):te).filter(function(ae){return $.direction>0?ae.end<=H:ae.start>=G})},$.update=function(z,ee,te){if(!(C&&!te&&!z)){var ae=or?hr:$.scroll(),Je=z?0:(ae-H)/se,de=Je<0?0:Je>1?1:Je||0,qe=$.progress,Fe,pr,Ee,Ze,rr,Ie,Ne,Ge;if(ee&&(j=k,k=C?pe():ae,_&&(vi=Er,Er=n&&!T?n.totalProgress():de)),m&&!de&&d&&!ft&&!so&&Qt&&H<ae+(ae-j)/(yt()-$o)*m&&(de=1e-4),de!==qe&&$.enabled){if(Fe=$.isActive=!!de&&de<1,pr=!!qe&&qe<1,Ie=Fe!==pr,rr=Ie||!!de!=!!qe,$.direction=de>qe?1:-1,$.progress=de,rr&&!ft&&(Ee=de&&!qe?0:de===1?1:qe===1?2:3,T&&(Ze=!Ie&&W[Ee+1]!=="none"&&W[Ee+1]||W[Ee],Ge=n&&(Ze==="complete"||Ze==="reset"||Ze in n))),x&&(Ie||Ge)&&(Ge||f||!n)&&(_t(x)?x($):$.getTrailing(x).forEach(function(Re){return Re.endAnimation()})),T||(we&&!ft&&!so?(we._dp._time-we._start!==we._time&&we.render(we._dp._time-we._start),we.resetTo?we.resetTo("totalProgress",de,n._tTime/n._tDur):(we.vars.totalProgress=de,we.invalidate().restart())):n&&n.totalProgress(de,!!ft)),d){if(z&&g&&(_e.style[g+P.os2]=ut),!I)Te(es(be+oe*de));else if(rr){if(Ne=!z&&de>qe&&G+1>ae&&ae+1>=ni(O,P),D)if(!z&&(Fe||Ne)){var Xi=Fr(d,!0),bi=ae-H;uf(d,Be,Xi.top+(P===Qe?bi:0)+st,Xi.left+(P===Qe?0:bi)+st)}else uf(d,_e);bn(Fe||Ne?Ae:De),Zt&&de<1&&Fe||Te(be+(de===1&&!Ne?oe:0))}}_&&!ue.tween&&!ft&&!so&&tr.restart(!0),a&&(Ie||v&&de&&(de<1||!cl))&&sa(a.targets).forEach(function(Re){return Re.classList[Fe||v?"add":"remove"](a.className)}),o&&!T&&!z&&o($),rr&&!ft?(T&&(Ge&&(Ze==="complete"?n.pause().totalProgress(1):Ze==="reset"?n.restart(!0).pause():Ze==="restart"?n.restart(!0):n[Ze]()),o&&o($)),(Ie||!cl)&&(u&&Ie&&dl($,u),B[Ee]&&dl($,B[Ee]),v&&(de===1?$.kill(!1,1):B[Ee]=0),Ie||(Ee=de===1?1:3,B[Ee]&&dl($,B[Ee]))),w&&!Fe&&Math.abs($.getVelocity())>(ts(w)?w:2500)&&(Un($.callbackAnimation),we?we.progress(1):Un(n,Ze==="reverse"?1:!de,1))):T&&o&&!ft&&o($)}if(Tt){var Xe=C?ae/C.duration()*(C._caScrollDist||0):ae;nt(Xe+(ie._isFlipped?1:0)),Tt(Xe)}Ui&&Ui(-ae/C.duration()*(C._caScrollDist||0))}},$.enable=function(z,ee){$.enabled||($.enabled=!0,ot(O,"resize",rs),ot(N?$e:O,"scroll",Zi),q&&ot(i,"refreshInit",q),z!==!1&&($.progress=dr=0,k=j=re=pe()),ee!==!1&&$.refresh())},$.getTween=function(z){return z&&ue?ue.tween:we},$.setPositions=function(z,ee){d&&(be+=z-H,oe+=ee-z-se,g===He&&$.adjustPinSpacing(ee-z-se)),$.start=H=z,$.end=G=ee,se=ee-z,$.update()},$.adjustPinSpacing=function(z){if(Oe){var ee=Oe.indexOf(P.d)+1;Oe[ee]=parseFloat(Oe[ee])+z+st,Oe[1]=parseFloat(Oe[1])+z+st,bn(Oe)}},$.disable=function(z,ee){if($.enabled&&(z!==!1&&$.revert(!0,!0),$.enabled=$.isActive=!1,ee||we&&we.pause(),hr=0,F&&(F.uncache=1),q&&tt(i,"refreshInit",q),tr&&(tr.pause(),ue.tween&&ue.tween.kill()&&(ue.tween=0)),!N)){for(var te=ce.length;te--;)if(ce[te].scroller===O&&ce[te]!==$)return;tt(O,"resize",rs),tt(O,"scroll",Zi)}},$.kill=function(z,ee){$.disable(z,ee),we&&!ee&&we.kill(),l&&delete iu[l];var te=ce.indexOf($);te>=0&&ce.splice(te,1),te===vt&&Lo>0&&vt--,te=0,ce.forEach(function(ae){return ae.scroller===$.scroller&&(te=1)}),te||or||($.scroll.rec=0),n&&(n.scrollTrigger=null,z&&n.revert({kill:!1}),ee||n.kill()),K&&[K,Y,ie,L].forEach(function(ae){return ae.parentNode&&ae.parentNode.removeChild(ae)}),gs===$&&(gs=0),d&&(F&&(F.uncache=1),te=0,ce.forEach(function(ae){return ae.pin===d&&te++}),te||(F.spacer=0)),r.onKill&&r.onKill($)},$.enable(!1,!1),$r&&$r($),!n||!n.add||se?$.refresh():Q.delayedCall(.01,function(){return H||G||$.refresh()})&&(se=.01)&&(H=G=0),d&&hb()},i.register=function(r){return rn||(Q=r||bp(),yp()&&window.document&&i.enable(),rn=oo),rn},i.defaults=function(r){if(r)for(var n in r)co[n]=r[n];return co},i.disable=function(r,n){oo=0,ce.forEach(function(o){return o[n?"kill":"disable"](r)}),tt(me,"wheel",Zi),tt($e,"scroll",Zi),clearInterval(no),tt($e,"touchcancel",yr),tt(Be,"touchstart",yr),lo(tt,$e,"pointerdown,touchstart,mousedown",ef),lo(tt,$e,"pointerup,touchend,mouseup",tf),na.kill(),ao(tt);for(var s=0;s<he.length;s+=3)uo(tt,he[s],he[s+1]),uo(tt,he[s],he[s+2])},i.enable=function(){if(me=window,$e=document,ar=$e.documentElement,Be=$e.body,Q&&(sa=Q.utils.toArray,hn=Q.utils.clamp,tu=Q.core.context||yr,ul=Q.core.suppressOverwrites||yr,tc=me.history.scrollRestoration||"auto",Q.core.globals("ScrollTrigger",i),Be)){oo=1,Ue.register(Q),i.isTouch=Ue.isTouch,qr=Ue.isTouch&&/(iPad|iPhone|iPod|Mac)/g.test(navigator.userAgent),ot(me,"wheel",Zi),dp=[me,$e,ar,Be],Q.matchMedia?(i.matchMedia=function(l){var u=Q.matchMedia(),c;for(c in l)u.add(c,l[c]);return u},Q.addEventListener("matchMediaInit",function(){return oc()}),Q.addEventListener("matchMediaRevert",function(){return Pp()}),Q.addEventListener("matchMedia",function(){Mi(0,1),Vi("matchMedia")}),Q.matchMedia("(orientation: portrait)",function(){return hl(),hl})):console.warn("Requires GSAP 3.11.0 or later"),hl(),ot($e,"scroll",Zi);var r=Be.style,n=r.borderTopStyle,s=Q.core.Animation.prototype,o,a;for(s.revert||Object.defineProperty(s,"revert",{value:function(){return this.time(-.01,!0)}}),r.borderTopStyle="solid",o=Fr(Be),Qe.m=Math.round(o.top+Qe.sc())||0,bt.m=Math.round(o.left+bt.sc())||0,n?r.borderTopStyle=n:r.removeProperty("border-top-style"),no=setInterval(sf,250),Q.delayedCall(.5,function(){return so=0}),ot($e,"touchcancel",yr),ot(Be,"touchstart",yr),lo(ot,$e,"pointerdown,touchstart,mousedown",ef),lo(ot,$e,"pointerup,touchend,mouseup",tf),eu=Q.utils.checkPrefix("transform"),Fo.push(eu),rn=yt(),na=Q.delayedCall(.2,Mi).pause(),nn=[$e,"visibilitychange",function(){var l=me.innerWidth,u=me.innerHe
77ight;$e.hidden?(Jc=l,Zc=u):(Jc!==l||Zc!==u)&&rs()},$e,"DOMContentLoaded",Mi,me,"load",Mi,me,"resize",rs],ao(ot),ce.forEach(function(l){return l.enable(0,1)}),a=0;a<he.length;a+=3)uo(tt,he[a],he[a+1]),uo(tt,he[a],he[a+2])}},i.config=function(r){"limitCallbacks"in r&&(cl=!!r.limitCallbacks);var n=r.syncInterval;n&&clearInterval(no)||(no=n)&&setInterval(sf,n),"ignoreMobileResize"in r&&(gp=i.isTouch===1&&r.ignoreMobileResize),"autoRefreshEvents"in r&&(ao(tt)||ao(ot,r.autoRefreshEvents||"none"),pp=(r.autoRefreshEvents+"").indexOf("resize")===-1)},i.scrollerProxy=function(r,n){var s=Dt(r),o=he.indexOf(s),a=Hi(s);~o&&he.splice(o,a?6:2),n&&(a?Pr.unshift(me,n,Be,n,ar,n):Pr.unshift(s,n))},i.clearMatchMedia=function(r){ce.forEach(function(n){return n._ctx&&n._ctx.query===r&&n._ctx.kill(!0,!0)})},i.isInViewport=function(r,n,s){var o=(sr(r)?Dt(r):r).getBoundingClientRect(),a=o[s?Fi:Ii]*n||0;return s?o.right-a>0&&o.left+a<me.innerWidth:o.bottom-a>0&&o.top+a<me.innerHeight},i.positionInViewport=function(r,n,s){sr(r)&&(r=Dt(r));var o=r.getBoundingClientRect(),a=o[s?Fi:Ii],l=n==null?a/2:n in oa?oa[n]*a:~n.indexOf("%")?parseFloat(n)*a/100:parseFloat(n)||0;return s?(o.left+l)/me.innerWidth:(o.top+l)/me.innerHeight},i.killAll=function(r){if(ce.slice(0).forEach(function(s){return s.vars.id!=="ScrollSmoother"&&s.kill()}),r!==!0){var n=zi.killAll||[];zi={},n.forEach(function(s){return s()})}},i}();fe.version="3.11.4";fe.saveStyles=function(i){return i?sa(i).forEach(function(e){if(e&&e.style){var t=Ot.indexOf(e);t>=0&&Ot.splice(t,5),Ot.push(e,e.style.cssText,e.getBBox&&e.getAttribute("transform"),Q.core.getCache(e),tu())}}):Ot};fe.revert=function(i,e){return oc(!i,e)};fe.create=function(i,e){return new fe(i,e)};fe.refresh=function(i){return i?rs():(rn||fe.register())&&Mi(!0)};fe.update=function(i){return++he.cache&&pi(i===!0?2:0)};fe.clearScrollMemory=Cp;fe.maxScroll=function(i,e){return ni(i,e?bt:Qe)};fe.getScrollFunc=function(i,e){return hi(Dt(i),e?bt:Qe)};fe.getById=function(i){return iu[i]};fe.getAll=function(){return ce.filter(function(i){return i.vars.id!=="ScrollSmoother"})};fe.isScrolling=function(){return!!Qt};fe.snapDirectional=sc;fe.addEventListener=function(i,e){var t=zi[i]||(zi[i]=[]);~t.indexOf(e)||t.push(e)};fe.removeEventListener=function(i,e){var t=zi[i],r=t&&t.indexOf(e);r>=0&&t.splice(r,1)};fe.batch=function(i,e){var t=[],r={},n=e.interval||.016,s=e.batchMax||1e9,o=function(u,c){var f=[],h=[],d=Q.delayedCall(n,function(){c(f,h),f=[],h=[]}).pause();return function(g){f.length||d.restart(!0),f.push(g.trigger),h.push(g),s<=f.length&&d.progress(1)}},a;for(a in e)r[a]=a.substr(0,2)==="on"&&_t(e[a])&&a!=="onRefreshInit"?o(a,e[a]):e[a];return _t(s)&&(s=s(),ot(fe,"refresh",function(){return s=e.batchMax()})),sa(i).forEach(function(l){var u={};for(a in r)u[a]=r[a];u.trigger=l,t.push(fe.create(u))}),t};var ff=function(e,t,r,n){return t>n?e(n):t<0&&e(0),r>n?(n-t)/(r-t):r<0?t/(t-r):1},gl=function i(e,t){t===!0?e.style.removeProperty("touch-action"):e.style.touchAction=t===!0?"auto":t?"pan-"+t+(Ue.isTouch?" pinch-zoom":""):"none",e===ar&&i(Be,t)},po={auto:1,scroll:1},yb=function(e){var t=e.event,r=e.target,n=e.axis,s=(t.changedTouches?t.changedTouches[0]:t).target,o=s._gsap||Q.core.getCache(s),a=yt(),l;if(!o._isScrollT||a-o._isScrollT>2e3){for(;s&&s!==Be&&(s.scrollHeight<=s.clientHeight&&s.scrollWidth<=s.clientWidth||!(po[(l=lr(s)).overflowY]||po[l.overflowX]));)s=s.parentNode;o._isScroll=s&&s!==r&&!Hi(s)&&(po[(l=lr(s)).overflowY]||po[l.overflowX]),o._isScrollT=a}(o._isScroll||n==="x")&&(t.stopPropagation(),t._gsapAllow=!0)},Tp=function(e,t,r,n){return Ue.create({target:e,capture:!0,debounce:!1,lockAxis:!0,type:t,onWheel:n=n&&yb,onPress:n,onDrag:n,onScroll:n,onEnable:function(){return r&&ot($e,Ue.eventTypes[0],hf,!1,!0)},onDisable:function(){return tt($e,Ue.eventTypes[0],hf,!0)}})},bb=/(input|label|select|textarea)/i,df,hf=function(e){var t=bb.test(e.target.tagName);(t||df)&&(e._gsapAllow=!0,df=t)},_b=function(e){Mo(e)||(e={}),e.preventDefault=e.isNormalizer=e.allowClicks=!0,e.type||(e.type="wheel,touch"),e.debounce=!!e.debounce,e.id=e.id||"normalizer";var t=e,r=t.normalizeScrollX,n=t.momentum,s=t.allowNestedScroll,o,a,l=Dt(e.target)||ar,u=Q.core.globals().ScrollSmoother,c=u&&u.get(),f=qr&&(e.content&&Dt(e.content)||c&&e.content!==!1&&!c.smooth()&&c.content()),h=hi(l,Qe),d=hi(l,bt),g=1,p=(Ue.isTouch&&me.visualVie
77wport?me.visualViewport.scale*me.visualViewport.width:me.outerWidth)/me.innerWidth,m=0,y=_t(n)?function(){return n(o)}:function(){return n||2.8},b,v,_=Tp(l,e.type,!0,s),D=function(){return v=!1},S=yr,C=yr,w=function(){a=ni(l,Qe),C=hn(qr?1:0,a),r&&(S=hn(0,ni(l,bt))),b=Ni},x=function(){f._gsap.y=es(parseFloat(f._gsap.y)+h.offset)+"px",f.style.transform="matrix3d(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, "+parseFloat(f._gsap.y)+", 0, 1)",h.offset=h.cacheID=0},P=function(){if(v){requestAnimationFrame(D);var W=es(o.deltaY/2),V=C(h.v-W);if(f&&V!==h.v+h.offset){h.offset=V-h.v;var M=es((parseFloat(f&&f._gsap.y)||0)-h.offset);f.style.transform="matrix3d(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, "+M+", 0, 1)",f._gsap.y=M+"px",h.cacheID=he.cache,pi()}return!0}h.offset&&x(),v=!0},T,O,A,N,I=function(){w(),T.isActive()&&T.vars.scrollY>a&&(h()>a?T.progress(1)&&h(a):T.resetTo("scrollY",a))};return f&&Q.set(f,{y:"+=0"}),e.ignoreCheck=function(B){return qr&&B.type==="touchmove"&&P()||g>1.05&&B.type!=="touchstart"||o.isGesturing||B.touches&&B.touches.length>1},e.onPress=function(){var B=g;g=es((me.visualViewport&&me.visualViewport.scale||1)/p),T.pause(),B!==g&&gl(l,g>1.01?!0:r?!1:"x"),O=d(),A=h(),w(),b=Ni},e.onRelease=e.onGestureStart=function(B,W){if(h.offset&&x(),!W)N.restart(!0);else{he.cache++;var V=y(),M,$;r&&(M=d(),$=M+V*.05*-B.velocityX/.227,V*=ff(d,M,$,ni(l,bt)),T.vars.scrollX=S($)),M=h(),$=M+V*.05*-B.velocityY/.227,V*=ff(h,M,$,ni(l,Qe)),T.vars.scrollY=C($),T.invalidate().duration(V).play(.01),(qr&&T.vars.scrollY>=a||M>=a-1)&&Q.to({},{onUpdate:I,duration:V})}},e.onWheel=function(){T._ts&&T.pause(),yt()-m>1e3&&(b=0,m=yt())},e.onChange=function(B,W,V,M,$){if(Ni!==b&&w(),W&&r&&d(S(M[2]===W?O+(B.startX-B.x):d()+W-M[1])),V){h.offset&&x();var q=$[2]===V,ne=q?A+B.startY-B.y:h()+V-$[1],le=C(ne);q&&ne!==le&&(A+=le-ne),h(le)}(V||W)&&pi()},e.onEnable=function(){gl(l,r?!1:"x"),fe.addEventListener("refresh",I),ot(me,"resize",I),h.smooth&&(h.target.style.scrollBehavior="auto",h.smooth=d.smooth=!1),_.enable()},e.onDisable=function(){gl(l,!0),tt(me,"resize",I),fe.removeEventListener("refresh",I),_.kill()},e.lockAxis=e.lockAxis!==!1,o=new Ue(e),o.iOS=qr,qr&&!h()&&h(1),qr&&Q.ticker.add(yr),N=o._dc,T=Q.to(o,{ease:"power4",paused:!0,scrollX:r?"+=0.1":"+=0",scrollY:"+=0.1",onComplete:N.vars.onComplete}),o};fe.sort=function(i){return ce.sort(i||function(e,t){return(e.vars.refreshPriority||0)*-1e6+e.start-(t.start+(t.vars.refreshPriority||0)*-1e6)})};fe.observe=function(i){return new Ue(i)};fe.normalizeScroll=function(i){if(typeof i>"u")return Et;if(i===!0&&Et)return Et.enable();if(i===!1)return Et&&Et.kill();var e=i instanceof Ue?i:_b(i);return Et&&Et.target===e.target&&Et.kill(),Hi(e.target)&&(Et=e),e};fe.core={_getVelocityProp:Zl,_inputObserver:Tp,_scrollers:he,_proxies:Pr,bridge:{ss:function(){Qt||Vi("scrollStart"),Qt=yt()},ref:function(){return ft}}};bp()&&Q.registerPlugin(fe);/*! 78 * DrawSVGPlugin 3.11.4 79 * https://greensock.com 80 * 81 * @license Copyright 2008-2022, GreenSock. All rights reserved. 82 * Subject to the terms at https://greensock.com/standard-license or for 83 * Club GreenSock members, the agreement issued with that membership. 84 * @author: Jack Doyle, [email protected] 85*/var Dr,ac,aa,Ep,Op,pf,su,$p,Mp=function(){return typeof window<"u"},Ap=function(){return Dr||Mp()&&(Dr=window.gsap)&&Dr.registerPlugin&&Dr},wb=/[-+=\.]*\d+[\.e\-\+]*\d*[e\-\+]*\d*/gi,ml={rect:["width","height"],circle:["r","r"],ellipse:["rx","ry"],line:["x2","y2"]},Pi=function(e){return Math.round(e*1e4)/1e4},Br=function(e){return parseFloat(e)||0},gf=function(e,t){var r=Br(e);return~e.indexOf("%")?r/100*t:r},go=function(e,t){return Br(e.getAttribute(t))},No=Math.sqrt,mf=function(e,t,r,n,s,o){return No(Math.pow((Br(r)-Br(e))*s,2)+Math.pow((Br(n)-Br(t))*o,2))},vf=function(e){return console.warn(e)},kp=function(e){return e.getAttribute("vector-effect")==="non-scaling-stroke"},Db=1,Sb=function(e,t,r){var n=e.indexOf(" "),s,o;return n<0?(s=r!==void 0?r+"":e,o=e):(s=e.substr(0,n),o=e.substr(n+1)),s=gf(s,t),o=gf(o,t),s>o?[o,s]:[s,o]},Ro=function(e){if(e=ac(e)[0],!e)return 0;var t=e.tagName.toLowerCase(),r=e.style,n=1,s=1,o,a,l,u,c,f,h;kp(e)&&(s=e.getScreenCTM(),n=No(s.a*s.a+s.b*s.b),s=No(s.d*s.d+s.c*s.c));try{a=e.getBBox()}catch{vf("Some browsers won't measure invisible elements (like display:none or masks inside defs).")}var d=a||{x:0,y:0,width:0,height:0},g=d.x,p=d.y,m=d.width,y=d.height;if((!a||!m&&!y)&&ml[t]&&(m=go(e,ml[t][0]),y=go(e,ml[t][1]),t!=="rect"&&t!=="line"&&(m*=2,y*=2),t==="line"&&(g=go(e,"x1"),p=go(e,"y1"),m=Math.abs(m-g),y=Math.abs(y-p))),t==="path")u=r.strokeDasharray,r.strokeDasharray="none",o=e.getTotalLength()||0,Pi(n)!==Pi(s)&&!pf&&(pf=1)&&vf("Warning: <path> length cannot be measured when vector-effect is non-scaling-stroke and the element isn't proportionally scaled."),o*=(n+s)/2,r.strokeDasharray=u;else if(t==="rect")o=m*2*n+y*2*s;else if(t==="line")o=mf(g,p,g+m,p+y,n,s);else if(t==="polyline"||t==="polygon")for(l=e.getAttribute("points").match(wb)||[],t==="polygon"&&l.push(l[0],l[1]),o=0,c=2;c<l.length;c+=2)o+=mf(l[c-2],l[c-1],l[c],l[c+1],n,s)||0;else(t==="circle"||t==="ellipse")&&(f=m/2*n,h=y/2*s,o=Math.PI*(3*(f+h)-No((3*f+h)*(f+3*h))));return o||0},yf=function(e,t){if(e=ac(e)[0],!e)return[0,0];t||(t=Ro(e)+1);var r=aa.getComputedStyle(e),n=r.strokeDasharray||"",s=Br(r.strokeDashoffset),o=n.indexOf(",");return o<0&&(o=n.indexOf(" ")),n=o<0?t:Br(n.substr(0,o)),n>t&&(n=t),[-s||0,n-s||0]},bf=function(){Mp()&&(aa=window,Op=Dr=Ap(),ac=Dr.utils.toArray,su=Dr.core.getStyleSaver,$p=Dr.core.reverting||function(){},Ep=((aa.navigator||{}).userAgent||"").indexOf("Edge")!==-1)},Lp={version:"3.11.4",name:"drawSVG",register:function(e){Dr=e,bf()},init:function(e,t,r,n,s){if(!e.getBBox)return!1;Op||bf();var o=Ro(e),a,l,u;return this.styles=su&&su(e,"strokeDashoffset,strokeDasharray,strokeMiterlimit"),this.tween=r,this._style=e.style,this._target=e,t+""=="true"?t="0 100%":t?(t+"").indexOf(" ")===-1&&(t="0 "+t):t="0 0",a=yf(e,o),l=Sb(t,o,a[0]),this._length=Pi(o),this._dash=Pi(a[1]-a[0]),this._offset=Pi(-a[0]),this._dashPT=this.add(this,"_dash",this._dash,Pi(l[1]-l[0]),0,0,0,0,0,1),this._offsetPT=this.add(this,"_offset",this._offset,Pi(-l[0]),0,0,0,0,0,1),Ep&&(u=aa.getComputedStyle(e),u.strokeLinecap!==u.strokeLinejoin&&(l=Br(u.strokeMiterlimit),this.add(e.style,"strokeMiterlimit",l,l+.01))),this._live=kp(e)||~(t+"").indexOf("live"),this._nowrap=~(t+"").indexOf("nowrap"),this._props.push("drawSVG"),Db},render:function(e,t){if(t.tween._time||!$p()){var r=t._pt,n=t._style,s,o,a,l;if(r){for(t._live&&(s=Ro(t._target),s!==t._length&&(o=s/t._length,t._length=s,t._offsetPT&&(t._offsetPT.s*=o,t._offsetPT.c*=o),t._dashPT?(t._dashPT.s*=o,t._dashPT.c*=o):t._dash*=o));r;)r.r(e,r.d),r=r._next;a=t._dash||e&&e!==1&&1e-4||0,s=t._length-a+.1,l=t._offset,a&&l&&a+Math.abs(l%t._length)>t._length-.2&&(l+=l<0?.1:-.1)&&(s+=.1),n.strokeDashoffset=a?l:l+.001,n.strokeDasharray=s<.2?"none":a?a+"px,"+(t._nowrap?999999:s)+"px":"0px, 999999px"}}else t.styles.revert()},getLength:Ro,getPosition:yf};Ap()&&Dr.registerPlugin(Lp);/*! 86 * paths 3.11.4 87 * https://greensock.com 88 * 89 * Copyright 2008-2022, GreenSock. All rights reserved. 90 * Subject to the terms at https://greensock.com/standard-license or for 91 * Club GreenSock members, the agreement issued with that membership. 92 * @author: Jack Doyle, [email protected] 93*/var xb=/[achlmqstvz]|(-?\d*\.?\d*(?:e[\-+]?\d+)?)[0-9]/ig,Pb=/(?
93:(-)?\d*\.?\d*(?:e[\-+]?\d+)?)[0-9]/ig,Cb=/[\+\-]?\d*\.?\d+e[\+\-]?\d+/ig,Tb=/(^[#\.][a-z]|[a-y][a-z])/i,Eb=Math.PI/180,Ob=180/Math.PI,mo=Math.sin,vo=Math.cos,Xt=Math.abs,Ir=Math.sqrt,$b=Math.atan2,ou=1e8,_f=function(e){return typeof e=="string"},Fp=function(e){return typeof e=="number"},Mb=function(e){return typeof e>"u"},Ab={},kb={},la=1e5,Ip=function(e){return Math.round((e+ou)%1*la)/la||(e<0?0:1)},Se=function(e){return Math.round(e*la)/la||0},wf=function(e){return Math.round(e*1e10)/1e10||0},Df=function(e,t,r,n){var s=e[t],o=n===1?6:au(s,r,n);if(o&&o+r+2<s.length)return e.splice(t,0,s.slice(0,r+o+2)),s.splice(0,r+o),1},Np=function(e,t,r){var n=e.length,s=~~(r*n);if(e[s]>t){for(;--s&&e[s]>t;);s<0&&(s=0)}else for(;e[++s]<t&&s<n;);return s<n?s:n-1},Lb=function(e,t){var r=e.length;for(e.reverse();r--;)e[r].reversed||Nb(e[r])},Sf=function(e,t){return t.totalLength=e.totalLength,e.samples?(t.samples=e.samples.slice(0),t.lookup=e.lookup.slice(0),t.minLength=e.minLength,t.resolution=e.resolution):e.totalPoints&&(t.totalPoints=e.totalPoints),t},Fb=function(e,t){var r=e.length,n=e[r-1]||[],s=n.length;r&&t[0]===n[s-2]&&t[1]===n[s-1]&&(t=n.concat(t.slice(2)),r--),e[r]=t};function Bo(i){i=_f(i)&&Tb.test(i)&&document.querySelector(i)||i;var e=i.getAttribute?i:0,t;return e&&(i=i.getAttribute("d"))?(e._gsPath||(e._gsPath={}),t=e._gsPath[i],t&&!t._dirty?t:e._gsPath[i]=ua(i)):i?_f(i)?ua(i):Fp(i[0])?[i]:i:console.warn("Expecting a <path> element or an SVG path data string")}function Ib(i){for(var e=[],t=0;t<i.length;t++)e[t]=Sf(i[t],i[t].slice(0));return Sf(i,e)}function Nb(i){var e=0,t;for(i.reverse();e<i.length;e+=2)t=i[e],i[e]=i[e+1],i[e+1]=t;i.reversed=!i.reversed}var Rb=function(e,t){var r=document.createElementNS("http://www.w3.org/2000/svg","path"),n=[].slice.call(e.attributes),s=n.length,o;for(t=","+t+",";--s>-1;)o=n[s].nodeName.toLowerCase(),t.indexOf(","+o+",")<0&&r.setAttributeNS(null,o,n[s].nodeValue);return r},Bb={rect:"rx,ry,x,y,width,height",circle:"r,cx,cy",ellipse:"rx,ry,cx,cy",line:"x1,x2,y1,y2"},jb=function(e,t){for(var r=t?t.split(","):[],n={},s=r.length;--s>-1;)n[r[s]]=+e.getAttribute(r[s])||0;return n};function Hb(i,e){var t=i.tagName.toLowerCase(),r=.552284749831,n,s,o,a,l,u,c,f,h,d,g,p,m,y,b,v,_,D,S,C,w,x;return t==="path"||!i.getBBox?i:(u=Rb(i,"x,y,width,height,cx,cy,rx,ry,r,x1,x2,y1,y2,points"),x=jb(i,Bb[t]),t==="rect"?(a=x.rx,l=x.ry||a,s=x.x,o=x.y,d=x.width-a*2,g=x.height-l*2,a||l?(p=s+a*(1-r),m=s+a,y=m+d,b=y+a*r,v=y+a,_=o+l*(1-r),D=o+l,S=D+g,C=S+l*r,w=S+l,n="M"+v+","+D+" V"+S+" C"+[v,C,b,w,y,w,y-(y-m)/3,w,m+(y-m)/3,w,m,w,p,w,s,C,s,S,s,S-(S-D)/3,s,D+(S-D)/3,s,D,s,_,p,o,m,o,m+(y-m)/3,o,y-(y-m)/3,o,y,o,b,o,v,_,v,D].join(",")+"z"):n="M"+(s+d)+","+o+" v"+g+" h"+-d+" v"+-g+" h"+d+"z"):t==="circle"||t==="ellipse"?(t==="circle"?(a=l=x.r,f=a*r):(a=x.rx,l=x.ry,f=l*r),s=x.cx,o=x.cy,c=a*r,n="M"+(s+a)+","+o+" C"+[s+a,o+f,s+c,o+l,s,o+l,s-c,o+l,s-a,o+f,s-a,o,s-a,o-f,s-c,o-l,s,o-l,s+c,o-l,s+a,o-f,s+a,o].join(",")+"z"):t==="line"?n="M"+x.x1+","+x.y1+" L"+x.x2+","+x.y2:(t==="polyline"||t==="polygon")&&(h=(i.getAttribute("points")+"").match(Pb)||[],s=h.shift(),o=h.shift(),n="M"+s+","+o+" L"+h.join(","),t==="polygon"&&(n+=","+s+","+o+"z")),u.setAttribute("d",jp(u._gsRawPath=ua(n))),e&&i.parentNode&&(i.parentNode.insertBefore(u,i),i.parentNode.removeChild(i)),u)}function Rp(i,e,t){var r=i[e],n=i[e+2],s=i[e+4],o;return r+=(n-r)*t,n+=(s-n)*t,r+=(n-r)*t,o=n+(s+(i[e+6]-s)*t-n)*t-r,r=i[e+1],n=i[e+3],s=i[e+5],r+=(n-r)*t,n+=(s-n)*t,r+=(n-r)*t,Se($b(n+(s+(i[e+7]-s)*t-n)*t-r,o)*Ob)}function Bp(i,e,t){t=Mb(t)?1:wf(t)||0,e=wf(e)||0;var r=Math.max(0,~~(Xt(t-e)-1e-8)),n=Ib(i);if(e>t&&(e=1-e,t=1-t,Lb(n),n.totalLength=0),e<0||t<0){var s=Math.abs(~~Math.min(e,t))+1;e+=s,t+=s}n.totalLength||_n(n);var o=t>1,a=xf(n,e,Ab,!0),l=xf(n,t,kb),u=l.segment,c=a.segment,f=l.segIndex,h=a.segIndex,d=l.i,g=a.i,p=h===f,m=d===g&&p,y,b,v,_,D,S,C,w;if(o||r){for(y=f<h||p&&d<g||m&&l.t<a.t,Df(n,h,g,a.t)&&(h++,y||(f++,m?(l.t=(l.t-a.t)/(1-a.t),d=0):p&&(d-=g))),Math.abs(1-(t-e))<1e-5?f=h-1:!l.t&&f?f--:Df(n,f,d,l.t)&&y&&h++,a.t===1&&(h=(h+1)%n.length),D=[],S=n.length,C=1+S*r,w=h,C+=(S-h+f)%S,_=0;_<C;_++)Fb(D,n[w++%S]);n=D}else if(v=l.t===1?6:au(u,d,l.t),e!==t)for(b=au(c,g,m?a.t/l.t:a.t),p&&(v+=b),u.splice(d+v+2),(b||g)&&c.splice(0,g+b),_=n.length;_--;)(_<h||_>f)&&n.splice(_,1);else u.angle=Rp(u,d+v,0),d+=v,a=u[d],l=u[d+1],u.length=u.totalLength=0,u.totalPoints=n.totalPoints=8,u.push(a,l,a,l,a,l,a,l);return n.totalLength=0,n}function zb(i,e,t){e=e||0,i.samples||(i.samples=[],i.lookup=[]);var r=~~i.resolution||12,n=1/r,s=i.length,o=i[e],a=i[e+1],l=e?e/6*r:0,u=i.samples,c=i.lookup,f=(e?i.minLength:ou)||ou,h=u[l+t*r-1],d=e?u[l-1]:0,g,p,m,y,b,v,_,D,S,C,w,x,P,T,O,A,N;for(u.length=c.length=0,p=e+2;p<s;p+=6){if(m=i[p+4]-o,y=i[p+2]-o,b=i[p]-o,D=i[p+5]-a,S=i[p+3]-a,C=i[p+1]-a,v=_=w=x=0,Xt(m)<.01&&Xt(D)<.01&&Xt(b)+Xt(C)<.01)i.length>8&&(i.splice(p,6),p-=6,s-=6);else for(g=1;g<=r;g++)T=n*g,P=1-T,v=_-(_=(T*T*m+3*P*(T*y+P*b))*T),w=x-(x=(T*T*D+3*P*(T*S+P*C))*T),A=Ir(w*w+v*v),A<f&&(f=A),d+=A,u[l++]=d;o+=m,a+=D}if(h)for(h-=d;l<u.length;l++)u[l]+=h;if(u.length&&f){if(i.totalLength=N=u[u.length-1]||0,i.minLength=f,N/f<9999)for(A=O=0,g=0;g<N;g+=f)c[A++]=u[O]<g?++O:O}else i.totalLength=u[0]=0;return e?d-u[e/2-1]:d}function _n(i,e){var t,r,n;for(n=t=r=0;n<i.length;n++)i[n].resolution=~~e||12,r+=i[n].length,t+=zb(i[n]);return i.totalPoints=r,i.totalLength=t,i}function au(i,e,t){if(t<=0||t>=1)return 0;var r=i[e],n=i[e+1],s=i[e+2],o=i[e+3],a=i[e+4],l=i[e+5],u=i[e+6],c=i[e+7],f=r+(s-r)*t,h=s+(a-s)*t,d=n+(o-n)*t,g=o+(l-o)*t,p=f+(h-f)*t,m=d+(g-d)*t,y=a+(u-a)*t,b=l+(c-l)*t;return h+=(y-h)*t,g+=(b-g)*t,i.splice(e+2,4,Se(f),Se(d),Se(p),Se(m),Se(p+(h-p)*t),Se(m+(g-m)*t),Se(h),Se(g),Se(y),Se(b)),i.samples&&i.samples.splice(e/6*i.resolution|0,0,0,0,0,0,0,0),6}function xf(i,e,t,r){t=t||{},i.totalLength||_n(i),(e<0||e>1)&&(e=Ip(e));var n=0,s=i[0],o,a,l,u,c,f,h;if(!e)h=f=n=0,s=i[0];else if(e===1)h=1,n=i.length-1,s=i[n],f=s.length-8;else{if(i.length>1){for(l=i.totalLength*e,c=f=0;(c+=i[f++].totalLength)<l;)n=f;s=i[n],u=c-s.totalLength,e=(l-u)/(c-u)||0}o=s.samples,a=s.resolution,l=s.totalLength*e,f=s.lookup.length?s.lookup[~~(l/s.minLength)]||0:Np(o,l,e),u=f?o[f-1]:0,c=o[f],c<l&&(u=c,c=o[++f]),h=1/a*((l-u)/(c-u)+f%a),f=~~(f/a)*6,r&&h===1&&(f+6<s.length?(f+=6,h=0):n+1<i.length&&(f=h=0,s=i[++n]))}return t.t=h,t.i=f,t.path=i,t.segment=s,t.segIndex=n,t}function Pf(i,e,t,r){var n=i[0],s=r||{},o,a,l,u,c,f,h,d,g;if((e<0||e>1)&&(e=Ip(e)),i.length>1){for(l=i.totalLength*e,c=f=0;(c+=i[f++].totalLength)<l;)n=i[f];u=c-n.totalLength,e=(l-u)/(c-u)||0}return o=n.samples,a=n.resolution,l=n.totalLength*e,f=n.lookup.length?n.lookup[e<1?~~(l/n.minLength):n.lookup.length-1]||0:Np(o,l,e),u=f?o[f-1]:0,c=o[f],c<l&&(u=c,c=o[++f]),h=1/a*((l-u)/(c-u)+f%a)||0,g=1-h,f=~~(f/a)*6,d=n[f],s.x=Se((h*h*(n[f+6]-d)+3*g*(h*(n[f+4]-d)+g*(n[f+2]-d)))*h+d),s.y=Se((h*h*(n[f+7]-(d=n[f+1]))+3*g*(h*(n[f+5]-d)+g*(n[f+3]-d)))*h+d),t&&(s.angle=n.totalLength?Rp(n,f,h>=1?1-1e-9:h||1e-9):n.angle||0),s}function is(i,e,t,r,n,s,o){for(var a=i.length,l,u,c,f,h;--a>-1;)for(l=i[a],u=l.length,c=0;c<u;c+=2)f=l[c],h=l[c+1],l[c]=f*e+h*r+s,l[c+1]=f*t+h*n+o;return i._dirty=1,i}function Vb(i,e,t,r,n,s,o,a,l){if(!(i===a&&e===l)){t=Xt(t),r=Xt(r);var u=n%360*Eb,c=vo(u),f=mo(u),h=Math.PI,d=h*2,g=(i-a)/2,p=(e-l)/2,m=c*g+f*p,y=-f*g+c*p,b=m*m,v=y*y,_=b/(t*t)+v/(r*r);_>1&&(t=Ir(_)*t,r=Ir(_)*r);var D=t*t,S=r*r,C=(D*S-D*v-S*b)/(D*v+S*b);C<0&&(C=0);var w=(s===o?-1:1)*Ir(C),x=w*(t*y/r),P=w*-(r*m/t),T=(i+a)/2,O=(e+l)/2,A=T+(c*x-f*P),N=O+(f*x+c*P),I=(m-x)/t,B=(y-P)/r,W=(-m-x)/t,V=(-y-P)/r,M=I*I+B*B,$=(B<0?-1:1)*Math.acos(I/Ir(M)),q=(I*V-B*W<0?-1:1)*Math.acos((I*W+B*V)/Ir(M*(W*W+V*V)));isNaN(q)&&(q=h),!o&&q>0?q-=d:o&&q<0&&(q+=d),$%=d,q%=d;var ne=Math.ceil(Xt(q)/(d/4)),le=[],re=q/ne,Z=4/3*mo(re/2)/(1+vo(re/2)),pe
93=c*t,ue=f*t,F=f*-r,R=c*r,k;for(k=0;k<ne;k++)n=$+k*re,m=vo(n),y=mo(n),I=vo(n+=re),B=mo(n),le.push(m-Z*y,y+Z*m,I+Z*B,B-Z*I,I,B);for(k=0;k<le.length;k+=2)m=le[k],y=le[k+1],le[k]=m*pe+y*F+A,le[k+1]=m*ue+y*R+N;return le[k-2]=a,le[k-1]=l,le}}function ua(i){var e=(i+"").replace(Cb,function(x){var P=+x;return P<1e-4&&P>-1e-4?0:P}).match(xb)||[],t=[],r=0,n=0,s=2/3,o=e.length,a=0,l="ERROR: malformed path: "+i,u,c,f,h,d,g,p,m,y,b,v,_,D,S,C,w=function(P,T,O,A){b=(O-P)/3,v=(A-T)/3,p.push(P+b,T+v,O-b,A-v,O,A)};if(!i||!isNaN(e[0])||isNaN(e[1]))return console.log(l),t;for(u=0;u<o;u++)if(D=d,isNaN(e[u])?(d=e[u].toUpperCase(),g=d!==e[u]):u--,f=+e[u+1],h=+e[u+2],g&&(f+=r,h+=n),u||(m=f,y=h),d==="M")p&&(p.length<8?t.length-=1:a+=p.length),r=m=f,n=y=h,p=[f,h],t.push(p),u+=2,d="L";else if(d==="C")p||(p=[0,0]),g||(r=n=0),p.push(f,h,r+e[u+3]*1,n+e[u+4]*1,r+=e[u+5]*1,n+=e[u+6]*1),u+=6;else if(d==="S")b=r,v=n,(D==="C"||D==="S")&&(b+=r-p[p.length-4],v+=n-p[p.length-3]),g||(r=n=0),p.push(b,v,f,h,r+=e[u+3]*1,n+=e[u+4]*1),u+=4;else if(d==="Q")b=r+(f-r)*s,v=n+(h-n)*s,g||(r=n=0),r+=e[u+3]*1,n+=e[u+4]*1,p.push(b,v,r+(f-r)*s,n+(h-n)*s,r,n),u+=4;else if(d==="T")b=r-p[p.length-4],v=n-p[p.length-3],p.push(r+b,n+v,f+(r+b*1.5-f)*s,h+(n+v*1.5-h)*s,r=f,n=h),u+=2;else if(d==="H")w(r,n,r=f,n),u+=1;else if(d==="V")w(r,n,r,n=f+(g?n-r:0)),u+=1;else if(d==="L"||d==="Z")d==="Z"&&(f=m,h=y,p.closed=!0),(d==="L"||Xt(r-f)>.5||Xt(n-h)>.5)&&(w(r,n,f,h),d==="L"&&(u+=2)),r=f,n=h;else if(d==="A"){if(S=e[u+4],C=e[u+5],b=e[u+6],v=e[u+7],c=7,S.length>1&&(S.length<3?(v=b,b=C,c--):(v=C,b=S.substr(2),c-=2),C=S.charAt(1),S=S.charAt(0)),_=Vb(r,n,+e[u+1],+e[u+2],+e[u+3],+S,+C,(g?r:0)+b*1,(g?n:0)+v*1),u+=c,_)for(c=0;c<_.length;c++)p.push(_[c]);r=p[p.length-2],n=p[p.length-1]}else console.log(l);return u=p.length,u<6?(t.pop(),u=0):p[0]===p[u-2]&&p[1]===p[u-1]&&(p.closed=!0),t.totalPoints=a+u,t}function Wb(i,e){e===void 0&&(e=1);for(var t=i[0],r=0,n=[t,r],s=2;s<i.length;s+=2)n.push(t,r,i[s],r=(i[s]-t)*e/2,t=i[s],-r);return n}function lu(i,e){Xt(i[0]-i[2])<1e-4&&Xt(i[1]-i[3])<1e-4&&(i=i.slice(2));var t=i.length-2,r=+i[0],n=+i[1],s=+i[2],o=+i[3],a=[r,n,r,n],l=s-r,u=o-n,c=Math.abs(i[t]-r)<.001&&Math.abs(i[t+1]-n)<.001,f,h,d,g,p,m,y,b,v,_,D,S,C,w,x;for(c&&(i.push(s,o),s=r,o=n,r=i[t-2],n=i[t-1],i.unshift(r,n),t+=4),e=e||e===0?+e:1,d=2;d<t;d+=2)f=r,h=n,r=s,n=o,s=+i[d+2],o=+i[d+3],!(r===s&&n===o)&&(g=l,p=u,l=s-r,u=o-n,m=Ir(g*g+p*p),y=Ir(l*l+u*u),b=Ir(Math.pow(l/y+g/m,2)+Math.pow(u/y+p/m,2)),v=(m+y)*e*.25/b,_=r-(r-f)*(m?v/m:0),D=r+(s-r)*(y?v/y:0),S=r-(_+((D-_)*(m*3/(m+y)+.5)/4||0)),C=n-(n-h)*(m?v/m:0),w=n+(o-n)*(y?v/y:0),x=n-(C+((w-C)*(m*3/(m+y)+.5)/4||0)),(r!==f||n!==h)&&a.push(Se(_+S),Se(C+x),Se(r),Se(n),Se(D+S),Se(w+x)));return r!==s||n!==o||a.length<4?a.push(Se(s),Se(o),Se(s),Se(o)):a.length-=2,a.length===2?a.push(r,n,r,n,r,n):c&&(a.splice(0,6),a.length=a.length-6),a}function jp(i){Fp(i[0])&&(i=[i]);var e="",t=i.length,r,n,s,o;for(n=0;n<t;n++){for(o=i[n],e+="M"+Se(o[0])+","+Se(o[1])+" C",r=o.length,s=2;s<r;s++)e+=Se(o[s++])+","+Se(o[s++])+" "+Se(o[s++])+","+Se(o[s++])+" "+Se(o[s++])+","+Se(o[s])+" ";o.closed&&(e+="z")}return e}/*! 94 * matrix 3.11.4 95 * https://greensock.com 96 * 97 * Copyright 2008-2022, GreenSock. All rights reserved. 98 * Subject to the terms at https://greensock.com/standard-license or for 99 * Club GreenSock members, the agreement issued with that membership. 100 * @author: Jack Doyle, [email protected] 101*/var jr,Ri,lc,wn,ns,jo,ca,ms,Kt="transform",uu=Kt+"Origin",Hp,zp=function(e){var t=e.ownerDocument||e;for(!(Kt in e.style)&&("msTransform"in e.style)&&(Kt="msTransform",uu=Kt+"Origin");t.parentNode&&(t=t.parentNode););if(Ri=window,ca=new $s,t){jr=t,lc=t.documentElement,wn=t.body,ms=jr.createElementNS("http://www.w3.org/2000/svg","g"),ms.style.transform="none";var r=t.createElement("div"),n=t.createElement("div");wn.appendChild(r),r.appendChild(n),r.style.position="static",r.style[Kt]="translate3d(0,0,1px)",Hp=n.offsetParent!==r,wn.removeChild(r)}return t},qb=function(e){for(var t,r;e&&e!==wn;)r=e._gsap,r&&r.uncache&&r.get(e,"x"),r&&!r.scaleX&&!r.scaleY&&r.renderTransform&&(r.scaleX=r.scaleY=1e-4,r.renderTransform(1,r),t?t.push(r):t=[r]),e=e.parentNode;return t},Vp=[],Wp=[],Gb=function(){return Ri.pageYOffset||jr.scrollTop||lc.scrollTop||wn.scrollTop||0},Yb=function(){return Ri.pageXOffset||jr.scrollLeft||lc.scrollLeft||wn.scrollLeft||0},uc=function(e){return e.ownerSVGElement||((e.tagName+"").toLowerCase()==="svg"?e:null)},Ub=function i(e){if(Ri.getComputedStyle(e).position==="fixed")return!0;
101if(e=e.parentNode,e&&e.nodeType===1)return i(e)},vl=function i(e,t){if(e.parentNode&&(jr||zp(e))){var r=uc(e),n=r?r.getAttribute("xmlns")||"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",s=r?t?"rect":"g":"div",o=t!==2?0:100,a=t===3?100:0,l="position:absolute;display:block;pointer-events:none;margin:0;padding:0;",u=jr.createElementNS?jr.createElementNS(n.replace(/^https/,"http"),s):jr.createElement(s);return t&&(r?(jo||(jo=i(e)),u.setAttribute("width",.01),u.setAttribute("height",.01),u.setAttribute("transform","translate("+o+","+a+")"),jo.appendChild(u)):(ns||(ns=i(e),ns.style.cssText=l),u.style.cssText=l+"width:0.1px;height:0.1px;top:"+a+"px;left:"+o+"px",ns.appendChild(u))),u}throw"Need document and parent."},Xb=function(e){for(var t=new $s,r=0;r<e.numberOfItems;r++)t.multiply(e.getItem(r).matrix);return t},Kb=function(e){var t=e.getCTM(),r;return t||(r=e.style[Kt],e.style[Kt]="none",e.appendChild(ms),t=ms.getCTM(),e.removeChild(ms),r?e.style[Kt]=r:e.style.removeProperty(Kt.replace(/([A-Z])/g,"-$1").toLowerCase())),t||ca.clone()},Qb=function(e,t){var r=uc(e),n=e===r,s=r?Vp:Wp,o=e.parentNode,a,l,u,c,f,h;if(e===Ri)return e;if(s.length||s.push(vl(e,1),vl(e,2),vl(e,3)),a=r?jo:ns,r)n?(u=Kb(e),c=-u.e/u.a,f=-u.f/u.d,l=ca):e.getBBox?(u=e.getBBox(),l=e.transform?e.transform.baseVal:{},l=l.numberOfItems?l.numberOfItems>1?Xb(l):l.getItem(0).matrix:ca,c=l.a*u.x+l.c*u.y,f=l.b*u.x+l.d*u.y):(l=new $s,c=f=0),t&&e.tagName.toLowerCase()==="g"&&(c=f=0),(n?r:o).appendChild(a),a.setAttribute("transform","matrix("+l.a+","+l.b+","+l.c+","+l.d+","+(l.e+c)+","+(l.f+f)+")");else{if(c=f=0,Hp)for(l=e.offsetParent,u=e;u&&(u=u.parentNode)&&u!==l&&u.parentNode;)(Ri.getComputedStyle(u)[Kt]+"").length>4&&(c=u.offsetLeft,f=u.offsetTop,u=0);if(h=Ri.getComputedStyle(e),h.position!=="absolute"&&h.position!=="fixed")for(l=e.offsetParent;o&&o!==l;)c+=o.scrollLeft||0,f+=o.scrollTop||0,o=o.parentNode;u=a.style,u.top=e.offsetTop-f+"px",u.left=e.offsetLeft-c+"px",u[Kt]=h[Kt],u[uu]=h[uu],u.position=h.position==="fixed"?"fixed":"absolute",e.parentNode.appendChild(a)}return a},yl=function(e,t,r,n,s,o,a){return e.a=t,e.b=r,e.c=n,e.d=s,e.e=o,e.f=a,e},$s=function(){function i(t,r,n,s,o,a){t===void 0&&(t=1),r===void 0&&(r=0),n===void 0&&(n=0),s===void 0&&(s=1),o===void 0&&(o=0),a===void 0&&(a=0),yl(this,t,r,n,s,o,a)}var e=i.prototype;return e.inverse=function(){var r=this.a,n=this.b,s=this.c,o=this.d,a=this.e,l=this.f,u=r*o-n*s||1e-10;return yl(this,o/u,-n/u,-s/u,r/u,(s*l-o*a)/u,-(r*l-n*a)/u)},e.multiply=function(r){var n=this.a,s=this.b,o=this.c,a=this.d,l=this.e,u=this.f,c=r.a,f=r.c,h=r.b,d=r.d,g=r.e,p=r.f;return yl(this,c*n+h*o,c*s+h*a,f*n+d*o,f*s+d*a,l+g*n+p*o,u+g*s+p*a)},e.clone=function(){return new i(this.a,this.b,this.c,this.d,this.e,this.f)},e.equals=function(r){var n=this.a,s=this.b,o=this.c,a=this.d,l=this.e,u=this.f;return n===r.a&&s===r.b&&o===r.c&&a===r.d&&l===r.e&&u===r.f},e.apply=function(r,n){n===void 0&&(n={});var s=r.x,o=r.y,a=this.a,l=this.b,u=this.c,c=this.d,f=this.e,h=this.f;return n.x=s*a+o*u+f||0,n.y=s*l+o*c+h||0,n},i}();function Dn(i,e,t,r){if(!i||!i.parentNode||(jr||zp(i)).documentElement===i)return new $s;var n=qb(i),s=uc(i),o=s?Vp:Wp,a=Qb(i,t),l=o[0].getBoundingClientRect(),u=o[1].getBoundingClientRect(),c=o[2].getBoundingClientRect(),f=a.parentNode,h=!r&&Ub(i),d=new $s((u.left-l.left)/100,(u.top-l.top)/100,(c.left-l.left)/100,(c.top-l.top)/100,l.left+(h?0:Yb()),l.top+(h?0:Gb()));if(f.removeChild(a),n)for(l=n.length;l--;)u=n[l],u.scaleX=u.scaleY=0,u.renderTransform(1,u);return e?d.inverse():d}/*! 102 * MotionPathPlugin 3.11.4 103 * https://greensock.com 104 * 105 * @license Copyright 2008-2022, GreenSock. All rights reserved. 106 * Subject to the terms at https://greensock.com/standard-license or for 107 * Club GreenSock members, the agreement issued with that membership. 108 * @author: Jack Doyle, [email protected] 109*/var Jb="x,translateX,left,marginLeft,xPercent".split(","),Zb="y,translateY,top,marginTop,yPercent".split(","),e_=Math.PI/180,qt,qp,sn,cu,bl,Cf,t_=function(){return qt||typeof window<"u"&&(qt=window.gsap)&&qt.registerPlugin&&qt},Xn=function(e,t,r,n){for(var s=t.length,o=n===2?0:n,a=0;a<s;a++)e[o]=parseFloat(t[a][r]),n===2&&(e[o+1]=0),o+=2;return e},pn=function(e,t,r){return parseFloat(e._gsap.get(e,t,r||"px"))||0},Gp=function(e){var t=e[0],r=e[1],n;for(n=2;n<e.length;n+=2)t=e[n]+=t,r=e[n+1]+=r},Tf=function(e,t,r,n,s,o,a,l,u){if(a.type==="cubic")t=[t];else{a.fromCurrent!==!1&&t.unshift(pn(r,n,l),s?pn(r,s,u):0),a.relative&&Gp(t);var c=s?lu:Wb;t=[c(t,a.curviness)]}return t=o(Yp(t,r,a)),fa(e,r,n,t,"x",l),s&&fa(e,r,s,t,"y",u),_n(t,a.resolution||(a.curviness===0?20:12))},r_=function(e){return e}
109,i_=/[-+\.]*\d+\.?(?:e-|e\+)?\d*/g,Ef=function(e,t,r){var n=Dn(e),s=0,o=0,a;return(e.tagName+"").toLowerCase()==="svg"?(a=e.viewBox.baseVal,a.width||(a={width:+e.getAttribute("width"),height:+e.getAttribute("height")})):a=t&&e.getBBox&&e.getBBox(),t&&t!=="auto"&&(s=t.push?t[0]*(a?a.width:e.offsetWidth||0):t.x,o=t.push?t[1]*(a?a.height:e.offsetHeight||0):t.y),r.apply(s||o?n.apply({x:s,y:o}):{x:n.e,y:n.f})},fu=function(e,t,r,n){var s=Dn(e.parentNode,!0,!0),o=s.clone().multiply(Dn(t)),a=Ef(e,r,s),l=Ef(t,n,s),u=l.x,c=l.y,f;return o.e=o.f=0,n==="auto"&&t.getTotalLength&&t.tagName.toLowerCase()==="path"&&(f=t.getAttribute("d").match(i_)||[],f=o.apply({x:+f[0],y:+f[1]}),u+=f.x,c+=f.y),f&&(f=o.apply(t.getBBox()),u-=f.x,c-=f.y),o.e=u-a.x,o.f=c-a.y,o},Yp=function(e,t,r){var n=r.align,s=r.matrix,o=r.offsetX,a=r.offsetY,l=r.alignOrigin,u=e[0][0],c=e[0][1],f=pn(t,"x"),h=pn(t,"y"),d,g,p;return!e||!e.length?Bo("M0,0L0,0"):(n&&(n==="self"||(d=cu(n)[0]||t)===t?is(e,1,0,0,1,f-u,h-c):(l&&l[2]!==!1?qt.set(t,{transformOrigin:l[0]*100+"% "+l[1]*100+"%"}):l=[pn(t,"xPercent")/-100,pn(t,"yPercent")/-100],g=fu(t,d,l,"auto"),p=g.apply({x:u,y:c}),is(e,g.a,g.b,g.c,g.d,f+g.e-(p.x-g.e),h+g.f-(p.y-g.f)))),s?is(e,s.a,s.b,s.c,s.d,s.e,s.f):(o||a)&&is(e,1,0,0,1,o||0,a||0),e)},fa=function(e,t,r,n,s,o){var a=t._gsap,l=a.harness,u=l&&l.aliases&&l.aliases[r],c=u&&u.indexOf(",")<0?u:r,f=e._pt=new qp(e._pt,t,c,0,0,r_,0,a.set(t,c,e));f.u=sn(a.get(t,c,o))||0,f.path=n,f.pp=s,e._props.push(c)},n_=function(e,t){return function(r){return e||t!==1?Bp(r,e,t):r}},Up={version:"3.11.4",name:"motionPath",register:function(e,t,r){qt=e,sn=qt.utils.getUnit,cu=qt.utils.toArray,bl=qt.core.getStyleSaver,Cf=qt.core.reverting||function(){},qp=r},init:function(e,t,r){if(!qt)return console.warn("Please gsap.registerPlugin(MotionPathPlugin)"),!1;(!(typeof t=="object"&&!t.style)||!t.path)&&(t={path:t});var n=[],s=t,o=s.path,a=s.autoRotate,l=s.unitX,u=s.unitY,c=s.x,f=s.y,h=o[0],d=n_(t.start,"end"in t?t.end:1),g,p;if(this.rawPaths=n,this.target=e,this.tween=r,this.styles=bl&&bl(e,"transform"),(this.rotate=a||a===0)&&(this.rOffset=parseFloat(a)||0,this.radians=!!t.useRadians,this.rProp=t.rotation||"rotation",this.rSet=e._gsap.set(e,this.rProp,this),this.ru=sn(e._gsap.get(e,this.rProp))||0),Array.isArray(o)&&!("closed"in o)&&typeof h!="number"){for(p in h)!c&&~Jb.indexOf(p)?c=p:!f&&~Zb.indexOf(p)&&(f=p);c&&f?n.push(Tf(this,Xn(Xn([],o,c,0),o,f,1),e,c,f,d,t,l||sn(o[0][c]),u||sn(o[0][f]))):c=f=0;for(p in h)p!==c&&p!==f&&n.push(Tf(this,Xn([],o,p,2),e,p,0,d,t,sn(o[0][p])))}else g=d(Yp(Bo(t.path),e,t)),_n(g,t.resolution),n.push(g),fa(this,e,t.x||"x",g,"x",t.unitX||"px"),fa(this,e,t.y||"y",g,"y",t.unitY||"px")},render:function(e,t){var r=t.rawPaths,n=r.length,s=t._pt;if(t.tween._time||!Cf()){for(e>1?e=1:e<0&&(e=0);n--;)Pf(r[n],e,!n&&t.rotate,r[n]);for(;s;)s.set(s.t,s.p,s.path[s.pp]+s.u,s.d,e),s=s._next;t.rotate&&t.rSet(t.target,t.rProp,r[0].angle*(t.radians?e_:1)+t.rOffset+t.ru,t,e)}else t.styles.revert()},getLength:function(e){return _n(Bo(e)).totalLength},sliceRawPath:Bp,getRawPath:Bo,pointsToSegment:lu,stringToRawPath:ua,rawPathToString:jp,transformRawPath:is,getGlobalMatrix:Dn,getPositionOnPath:Pf,cacheRawPathMeasurements:_n,convertToPath:function(e,t){return cu(e).map(function(r){return Hb(r,t!==!1)})},convertCoordinates:function(e,t,r){var n=Dn(t,!0,!0).multiply(Dn(e));return r?n.apply(r):n},getAlignMatrix:fu,getRelativePosition:function(e,t,r,n){var s=fu(e,t,r,n);return{x:s.e,y:s.f}},arrayToRawPath:function(e,t){t=t||{};var r=Xn(Xn([],e,t.x||"x",0),e,t.y||"y",1);return t.relative&&Gp(r),[t.type==="cubic"?r:lu(r,t.curviness)]}};t_()&&qt.registerPlugin(Up);Ve.registerPlugin(fe,Lp,Up);class s_{constructor({$el:e}){E(this,"$el");E(this,"root");E(this,"isMobile");E(this,"isTablet");E(this,"$paths");E(this,"$finalPath");E(this,"$main");E(this,"$infoSection");E(this,"$infoBubble");E(this,"$infoLineTop");E(this,"$infoLineBottom");E(this,"headerHeight");E(this,"infoLineHeight");this.$el=e,this.isMobile=window.matchMedia("(max-width: 768px)").matches,this.isTablet=window.matchMedia("(min-width: 769px) and (max-width: 1100px)").matches,this.infoLineHeight=0,!this.isMobile&&(this.root=document.querySelector(":root"),this.$main=document.querySelector("main"),this.$paths=Array.from(document.querySelectorAll("[data-draw-line] path, [data-draw-line] line")),this.$finalPath=document.querySelector("[data-final-path]"),this.headerHeight=document.querySelector("header").clientHeight,this.isTablet?(this.$paths=this.$paths.filter(t=>!t.closest("svg").classList.contains("md-min")),this.$finalPath.style.stroke="white"):(this.$infoSection=document.querySelector(".information-research"),this.$infoSection&&(this.$infoBubble=this.$infoSection.querySelector(".draw-line-bubble path"),this.infoLineHeight=(this.$infoSection.clientHeight-this.$infoBubble.getBoundingClientRect().height)/2+10,this.$infoLineTop=this.$infoSection.querySelector(".draw-line-top"),this.$infoLineBottom=this.$infoSection.querySelector(".draw-line-bottom"),this.$infoLineTop.setAttribute("height",`${this.infoLineHeight}`),this.$infoLineBottom.setAttribute("height",`${this.infoLineHeight}`),this.$infoLineTop.setAttribute("viewBox",`0 0 1 ${this.infoLineHeight}`),this.$infoLineBottom.setAttribute("viewBox",`0 0 1 ${this.infoLineHeight}`),this.$infoLineTop.querySelector("line").setAttribute("y2",`${this.infoLineHeight}`),this.$infoLineBottom.querySelector("line").setAttribute("y2",`${this.infoLineHeight}`))),this.root.style.setProperty("--final-path",`${this.$finalPath.getBoundingClientRect().height}px`),this.init())}init(){Ve.set(this.$paths,{drawSVG:0});const e=Ve.timeline({scrollTrigger:{trigger:document.body,scrub:!0,start:"top bottom",end:"bottom top"}});this.$paths.forEach((t,r)=>{const n=t.getTotalLength();Ve.set(t,{strokeDasharray:n,strokeDashoffset:n});const s=window.innerHeight-this.infoLineHeight-this.headerHeight-200,o=r===0?`top-=${this.headerHeight}px top`:`top+=${this.headerHeight*2}px bottom`,a=r===this.$paths.length-1||t.tagName==="line"?`top-=${s} top`:"top top";e.to(t,{strokeDashoffset:0,duration:1,scrollTrigger:{trigger:t,scrub:!0,start:o,end:a}})})}calculateValue(e){return 750+(e-0)/360*-650}}class o_ extends Bt{constructor({$el:t}){super();E(this,"$el");E(this,"$close");E(this,"$btns");E(this,"$radios");E(this,"$input");E(this,"$amount");E(this,"$otherInput");this.$el=t,this.$close=this.$el.querySelector("[data-close]"),this.$btns=document.querySelectorAll("[data-donation-widget-btn]"),this.$radios=this.$el.querySelectorAll("[data-donation-radio]"),this.$input
109=this.$el.querySelector("[data-donation-input]"),this.$amount=this.$el.querySelector("[data-donation-amount]"),this.$otherInput=this.$el.querySelector("[data-donation-other]"),this.bindEvents()}bindEvents(){this.$btns.forEach(t=>{t.on("click",r=>this._onClick(r))}),this.$radios.forEach(t=>{t.on("click",r=>this._onSelect(r))}),this.$input.on("input",t=>this._onInput(t)),this.$close.on("click",t=>this._onClick(t))}_onClick(t){t.preventDefault(),t.stopPropagation(),this.$el.classList.toggle("is-visible")}_onSelect(t){const r=parseFloat(t.target.value);this.updateAmount(r)}_onInput(t){const r=parseFloat(t.target.value);this.$otherInput.value=`${r*100}`,this.$otherInput.checked=!0,this.updateAmount(r*100)}updateAmount(t){if(isNaN(t)){this.$amount.innerHTML="00,00";return}const r=this.formatNumber((t-t*.66)/100);this.$amount.innerHTML=r}formatNumber(t){return t.toFixed(2).replace(".",",")}}function cc(i){return i[i.length-1]}function Xs(i,...e){return e.forEach(t=>{i.includes(t)||i.push(t)}),i}function Of(i,e){return i?i.split(e):[]}function fc(i,e,t){const r=e===void 0||i>=e,n=t===void 0||i<=t;return r&&n}function Xp(i,e,t){return i<e?e:i>t?t:i}function Mn(i,e,t={},r=0,n=""){const s=Object.keys(t).reduce((a,l)=>{let u=t[l];return typeof u=="function"&&(u=u(r)),`${a} ${l}="${u}"`},i);n+=`<${s}></${i}>`;const o=r+1;return o<e?Mn(i,e,t,o,n):n}function dc(i){return i.replace(/>\s+/g,">").replace(/\s+</,"<")}function du(i){return new Date(i).setHours(0,0,0,0)}function Yi(){return new Date().setHours(0,0,0,0)}function An(...i){switch(i.length){case 0:return Yi();case 1:return du(i[0])}const e=new Date(0);return e.setFullYear(...i),e.setHours(0,0,0,0)}function Ms(i,e){const t=new Date(i);return t.setDate(t.getDate()+e)}function a_(i,e){return Ms(i,e*7)}function da(i,e){const t=new Date(i),r=t.getMonth()+e;let n=r%12;n<0&&(n+=12);const s=t.setMonth(r);return t.getMonth()!==n?t.setDate(0):s}function As(i,e){const t=new Date(i),r=t.getMonth(),n=t.setFullYear(t.getFullYear()+e);return r===1&&t.getMonth()===2?t.setDate(0):n}function $f(i,e){return(i-e+7)%7}function Bi(i,e,t=0){const r=new Date(i).getDay();return Ms(i,$f(e,t)-$f(r,t))}function Kp(i,e){return Math.round((i-e)/6048e5)+1}function l_(i){const e=Bi(i,4,1),t=Bi(new Date(e).setMonth(0,4),4,1);return Kp(e,t)}function Qp(i,e){const t=Bi(new Date(i).setMonth(0,1),e,e),r=Bi(i,e,e),n=Kp(r,t);if(n<53)return n;const s=Bi(new Date(i).setDate(32),e,e);return r===s?1:n}function u_(i){return Qp(i,0)}function c_(i){return Qp(i,6)}function en(i,e){const t=new Date(i).getFullYear();return Math.floor(t/e)*e}function ui(i,e,t){if(e!==1&&e!==2)return i;const r=new Date(i);return e===1?t?r.setMonth(r.getMonth()+1,0):r.setDate(1):t?r.setFullYear(r.getFullYear()+1,0,0):r.setMonth(0,1),r.setHours(0,0,0,0)}const hu=/dd?|DD?|mm?|MM?|yy?(?:yy)?/,f_=/[\s!-/:-@[-`{-~å¹´ææ¥]+/;let _l={};const Mf={y(i,e){return new Date(i).setFullYear(parseInt(e,10))},m(i,e,t){const r=new Date(i);let n=parseInt(e,10)-1;if(isNaN(n)){if(!e)return NaN;const s=e.toLowerCase(),o=a=>a.toLowerCase().startsWith(s);if(n=t.monthsShort.findIndex(o),n<0&&(n=t.months.findIndex(o)),n<0)return NaN}return r.setMonth(n),r.getMonth()!==Jp(n)?r.setDate(0):r.getTime()},d(i,e){return new Date(i).setDate(parseInt(e,10))}},d_={d(i){return i.getDate()},dd(i){return yo(i.getDate(),2)},D(i,e){return e.daysShort[i.getDay()]},DD(i,e){return e.days[i.getDay()]},m(i){return i.getMonth()+1},mm(i){return yo(i.getMonth()+1,2)},M(i,e){return e.monthsShort[i.getMonth()]},MM(i,e){return e.months[i.getMonth()]},y(i){return i.getFullYear()},yy(i){return yo(i.getFullYear(),2).slice(-2)},yyyy(i){return yo(i.getFullYear(),4)}};function Jp(i){return i>-1?i%12:Jp(i+12)}function yo(i,e){return i.toString().padStart(e,"0")}function Zp(i){if(typeof i!="string")throw new Error("Invalid date format.");if(i in _l)return _l[i];const e=i.split(hu),t=i.match(new RegExp(hu,"g"));if(e.length===0||!t)throw new Error("Invalid date format.");const r=t.map(s=>d_[s]),n=Object.keys(Mf).reduce((s,o)=>(t.find(l=>l[0]!=="D"&&l[0].toLowerCase()===o)&&s.push(o),s),[]);return _l[i]={parser(s,o){const a=s.split(f_).reduce((l,u,c)=>{if(u.length>0&&t[c]){const f=t[c][0];f==="M"?l.m=u:f!=="D"&&(l[f]=u)}return l},{});return n.reduce((l,u)=>{const c=Mf[u](l,a[u],o);return isNaN(c)?l:c},Yi())},formatter(s,o){let a=r.reduce((l,u,c)=>l+=`${e[c]}${u(s,o)}`,"");return a+=cc(e)}}}function Wi(i,e,t){if(i instanceof Date||typeof i=="number"){const r=du(i);return isNaN(r)?void 0:r}if(i){if(i==="today")return Yi();if(e&&e.toValue){const r=e.toValue(i,e,t);return isNaN(r)?void 0:du(r)}return Zp(e).parser(i,t)}}
109function Ks(i,e,t){if(isNaN(i)||!i&&i!==0)return"";const r=typeof i=="number"?new Date(i):i;return e.toDisplay?e.toDisplay(r,e,t):Zp(e).formatter(r,t)}const h_=document.createRange();function Vr(i){return h_.createContextualFragment(i)}function eg(i){return i.parentElement||(i.parentNode instanceof ShadowRoot?i.parentNode.host:void 0)}function ja(i){return i.getRootNode().activeElement===i}function vs(i){i.style.display!=="none"&&(i.style.display&&(i.dataset.styleDisplay=i.style.display),i.style.display="none")}function ys(i){i.style.display==="none"&&(i.dataset.styleDisplay?(i.style.display=i.dataset.styleDisplay,delete i.dataset.styleDisplay):i.style.display="")}function ha(i){i.firstChild&&(i.removeChild(i.firstChild),ha(i))}function p_(i,e){ha(i),e instanceof DocumentFragment?i.appendChild(e):typeof e=="string"?i.appendChild(Vr(e)):typeof e.forEach=="function"&&e.forEach(t=>{i.appendChild(t)})}const pa=new WeakMap,{addEventListener:g_,removeEventListener:m_}=EventTarget.prototype;function ga(i,e){let t=pa.get(i);t||(t=[],pa.set(i,t)),e.forEach(r=>{g_.call(...r),t.push(r)})}function tg(i){let e=pa.get(i);e&&(e.forEach(t=>{m_.call(...t)}),pa.delete(i))}if(!Event.prototype.composedPath){const i=(e,t=[])=>{t.push(e);let r;return e.parentNode?r=e.parentNode:e.host?r=e.host:e.defaultView&&(r=e.defaultView),r?i(r,t):t};Event.prototype.composedPath=function(){return i(this.target)}}function rg(i,e,t){const[r,...n]=i;if(e(r))return r;if(!(r===t||r.tagName==="HTML"||n.length===0))return rg(n,e,t)}function ig(i,e){const t=typeof e=="function"?e:r=>r instanceof Element&&r.matches(e);return rg(i.composedPath(),t,i.currentTarget)}const Kn={en:{days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],daysShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],daysMin:["Su","Mo","Tu","We","Th","Fr","Sa"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],monthsShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],today:"Today",clear:"Clear",titleFormat:"MM y"}},hc={autohide:!1,beforeShowDay:null,beforeShowDecade:null,beforeShowMonth:null,beforeShowYear:null,clearButton:!1,dateDelimiter:",",datesDisabled:[],daysOfWeekDisabled:[],daysOfWeekHighlighted:[],defaultViewDate:void 0,disableTouchKeyboard:!1,enableOnReadonly:!0,format:"mm/dd/yyyy",language:"en",maxDate:null,maxNumberOfDates:1,maxView:3,minDate:null,nextArrow:"»",orientation:"auto",pickLevel:0,prevArrow:"«",showDaysOfWeek:!0,showOnClick:!0,showOnFocus:!0,startView:0,title:"",todayButton:!1,todayButtonMode:0,todayHighlight:!1,updateOnBlur:!0,weekNumbers:0,weekStart:0},{language:wl,format:v_,weekStart:y_}=hc;function Af(i,e){return i.length<6&&e>=0&&e<7?Xs(i,e):i}function ng(i,e){switch(i===4?e===6?3:!e+1:i){case 1:return l_;case 2:return u_;case 3:return c_}}function kf(i,e,t){return e.weekStart=i,e.weekEnd=(i+6)%7,t===4&&(e.getWeekNumber=ng(4,i)),i}function Lf(i,e,t,r){const n=Wi(i,e,t);return n!==void 0?n:r}function Dl(i,e,t=3){const r=parseInt(i,10);return r>=0&&r<=t?r:e}function bo(i,e,t,r=void 0){e in i&&(t in i||(i[t]=r?r(i[e]):i[e]),delete i[e])}function Sl(i,e){const t=Object.assign({},i),r={},n=e.constructor.locales,s=!!e.rangeSideIndex;let{datesDisabled:o,format:a,language:l,locale:u,maxDate:c,maxView:f,minDate:h,pickLevel:d,startView:g,weekNumbers:p,weekStart:m}=e.config||{};if(bo(t,"calendarWeeks","weekNumbers",S=>S?1:0),bo(t,"clearBtn","clearButton"),bo(t,"todayBtn","todayButton"),bo(t,"todayBtnMode","todayButtonMode"),t.language){let S;if(t.language!==l&&(n[t.language]?S=t.language:(S=t.language.split("-")[0],n[S]||(S=!1))),delete t.language,S){l=r.language=S;const C=u||n[wl];u=Object.assign({format:v_,weekStart:y_},n[wl]),l!==wl&&Object.assign(u,n[l]),r.locale=u,a===C.format&&(a=r.format=u.format),m===C.weekStart&&(m=kf(u.weekStart,r,p))}}if(t.format){const S=typeof t.format.toDisplay=="function",C=typeof t.format.toValue=="function",w=hu.test(t.format);(S&&C||w)&&(a=r.format=t.format),delete t.format}let y=d;"pickLevel"in t&&(y=Dl(t.pickLevel,d,2),delete t.pickLevel),y!==d&&(y>d&&("minDate"in t||(t.minDate=h),"maxDate"in t||(t.maxDate=c)),o&&!t.datesDisabled&&(t.datesDisabled=[]),d=r.pickLevel=y);let b=h,v=c;if("minDate"in t){const S=An(0,0,1);b=t.minDate===null?S:Lf(t.minDate,a,u,b),b!==S&&(b=ui(b,d,!1)),delete t.minDate}if("maxDate"in t&&(v=t.maxDate===null?void 0:Lf(t.maxDate,a,u,v),v!==void 0&&(v=ui(v,d,!0)),delete t.maxDate),v<b?(h=r.minDate=v,c=r.maxDate=b):(h!==b&&(h=r.minDate=b),c!==v&&(c=r.maxDate=v)),t.datesDisabled){const S=t.datesDisabled;if(typeof S=="function")r.datesDisabled=null,r.checkDisabled=(C,w)=>S(new Date(C),w,s);else{const C=r.datesDisabled=S.reduce((w,x)=>{const P=Wi(x,a,u);return P!==void 0?Xs(w,ui(P,d,s)):w},[]);r.checkDisabled=w=>C.includes(w)}delete t.datesDisabled}if("defaultViewDate"in t){const S=Wi(t.defaultViewDate,a,u);S!==void 0&&(r.defaultViewDate=S),delete t.defaultViewDate}if("weekStart"in t){const S=Number(t.weekStart)%7;isNaN(S)||(m=kf(S,r,p)),delete t.weekStart}if(t.daysOfWeekDisabled&&(r.daysOfWeekDisabled=t.daysOfWeekDisabled.reduce(Af,[]),delete t.daysOfWeekDisabled),t.daysOfWeekHighlighted&&(r.daysOfWeekHighlighted=t.daysOfWeekHighlighted.reduce(Af,[]),delete t.daysOfWeekHighlighted),"weekNumbers"in t){let S=t.weekNumbers;if(S){const C=typeof S=="function"?(w,x)=>S(new Date(w),x):ng(S=parseInt(S,10),m);C&&(p=r.weekNumbers=S,r.getWeekNumber=C)}else p=r.weekNumbers=0,r.getWeekNumber=null;delete t.weekNumbers}if("maxNumberOfDates"in t){const S=parseInt(t.maxNumberOfDates,10);S>=0&&(r.maxNumberOfDates=S,r.multidate=S!==1),delete t.maxNumberOfDates}t.dateDelimiter&&(r.dateDelimiter=String(t.dateDelimiter),delete t.dateDelimiter);let _=f;"maxView"in t&&(_=Dl(t.maxView,f),delete t.maxView),_=d>_?d:_,_!==f&&(f=r.maxView=_);let D=g;if("startView"in t&&(D=Dl(t.startView,D),delete t.startView),D<d?D=d:D>f&&(D=f),D!==g&&(r.startView=D),t.prevArrow){const S=Vr(t.prevArrow);S.childNodes.length>0&&(r.prevArrow=S.childNodes),delete t.prevArrow}if(t.nextArrow){const S=Vr(t.nextArrow);S.childNodes.length>0&&(r.nextArrow=S.childNodes),delete t.nextArrow}if("disableTouchKeyboard"in t&&(r.disableTouchKeyboard="ontouchstart"in document&&!!t.disableTouchKeyboard,delete t.disableTouchKeyboard),t.orientation){const S=t.orientation.toLowerCase().split(/\s+/g);r.orientation={x:S.find(C=>C==="left"||C==="right")||"auto",y:S.find(C=>C==="top"||C==="bottom")||"auto"},delete t.orientation}if("todayButtonMode"in t){switch(t.todayButtonMode){case 0:case 1:r.todayButtonMode=t.todayButtonMode}delete t.todayButtonMode}return Object.entries(t).forEach(([S,C])=>{C!==void 0&&S in hc&&(r[S]=C)}),r}const Ff={show:{key:"ArrowDown"},hide:null,toggle:{key:"Escape"},prevButton:{key:"ArrowLeft",ctrlOrMetaKey:!0},nextButton:{key:"ArrowRight",ctrlOrMetaKey:!0},viewSwitch:{key:"ArrowUp",ctrlOrMetaKey:!0},clearButton:{key:"Backspace",ctrlOrMetaKey:!0},todayButton:{key:".",ctrlOrMetaKey:!0},exitEditMode:{key:"ArrowDown",ctrlOrMetaKey:!0}};function b_(i){return Object.keys(Ff).reduce((e,t)=>
vendor: 4,377 bytes, lines 109-130
109{const r=i[t]===void 0?Ff[t]:i[t],n=r&&r.key;if(!n||typeof n!="string")return e;const s={key:n,ctrlOrMetaKey:!!(r.ctrlOrMetaKey||r.ctrlKey||r.metaKey)};return n.length>1&&(s.altKey=!!r.altKey,s.shiftKey=!!r.shiftKey),e[t]=s,e},{})}const If=i=>i.map(e=>`<button type="button" class="%buttonClass% ${e}" tabindex="-1"></button>`).join(""),__=dc(`<div class="datepicker"> 110 <div class="datepicker-picker"> 111 <div class="datepicker-header"> 112 <div class="datepicker-title"></div> 113 <div class="datepicker-controls"> 114 ${If(["prev-button prev-btn","view-switch","next-button next-btn"])} 115 </div> 116 </div> 117 <div class="datepicker-main"></div> 118 <div class="datepicker-footer"> 119 <div class="datepicker-controls"> 120 ${If(["today-button today-btn","clear-button clear-btn"])} 121 </div> 122 </div> 123 </div> 124</div>`),w_=dc(`<div class="days"> 125 <div class="days-of-week">${Mn("span",7,{class:"dow"})}</div> 126 <div class="datepicker-grid">${Mn("span",42)}</div> 127</div>`),D_=dc(`<div class="week-numbers calendar-weeks"> 128 <div class="days-of-week"><span class="dow"></span></div> 129 <div class="weeks">${Mn("span",6,{class:"week"})}</div> 130</div>`);class pc{constructor(e,t){Object.assign(this,t,{picker:e,element:Vr('<div class="datepicker-view"></div>').firstChild,selected:[],isRangeEnd:!!e.datepicker.rangeSideIndex}),this.init(this.picker.datepicker.config)}init(e){"pickLevel"in e&&(this.isMinView=this.id===e.pickLevel),this.setOptions(e),this.updateFocus(),this.updateSelection()}prepareForRender(e,t,r){this.disabled=[];const n=this.picker;n.setViewSwitchLabel(e),n.setPrevButtonDisabled(t),n.setNextButtonDisabled(r)}setDisabled(e,t){t.add("disabled"),Xs(this.disabled,e)}performBeforeHook(e,t){let r=this.beforeShow(new Date(t));switch(typeof r){case"boolean":r={enabled:r};break;case"string":r={classes:r}}if(r){const n=e.classList;if(r.enabled===!1&&this.setDisabled(t,n),r.classes){const s=r.classes.split(/\s+/);n.add(...s),s.includes("disabled")&&this.setDisabled(t,n)}r.content&&p_(e,r.content)}}renderCell(e,t,r,n,{selected:s,range:o},a,l=[]){e.textContent=t,this.isMinView&&(e.dataset.date=n);const u=e.classList;if(e.className=`datepicker-cell ${this.cellClass}`,r<this.first?u.add("prev"):r>this.last&&u.add("next"),u.add(...l),(a||this.checkDisabled(n,this.id))&&this.setDisabled(n,u),o){const[c,f]=o;r>c&&r<f&&u.add("range"),r===c&&u.add("range-start"),r===f&&u.add("range-end")}s.includes(r)&&u.add("selected"),r===this.focused&&u.add("focused"),this.beforeShow&&this.performBeforeHook(e,n)}refreshCell(e,t,r,[n,s]){const o=e.classList;o.remove("range","range-start","range-end","selected","focused"),t>n&&t<s&&o.add("range"),t===n&&o.add("range-start"),t===s&&o.add("range-end"),r.includes(t)&&o.add("selected"),t===this.focused&&o.add("focused")}changeFocusedCell(e){this.grid.querySelectorAll(".focused").forEach(t=>{t.classList.remove("focused")}),this.grid.children[e].classList.add("focused")}}class S_ extends pc{constructor(e){super(e,{id:0,name:"days",cellClass:"day"})}init(e,t=!0){if(t){const r=Vr(w_).firstChild;this.dow=r.firstChild,this.grid=r.lastChild,this.element.appendChild(r)}super.init(e)}setOptions(e){let t;if("minDate"in e&&(this.minDate=e.minDate),"maxDate"in e&&(this.maxDate=e.maxDate),e.checkDisabled&&(this.checkDisabled=e.checkDisabled),e.daysOfWeekDisabled&&(this.daysOfWeekDisabled=e.daysOfWeekDisabled,t=!0),e.daysOfWeekHighlighted&&(this.daysOfWeekHighlighted=e.daysOfWeekHighlighted),"todayHighlight"in e&&(this.todayHighlight=e.todayHighlight),"weekStart"in e&&(this.weekStart=e.weekStart,this.weekEnd=e.weekEnd,t=!0),e.locale){const r=this.locale=e.locale;this.dayNames=r.daysMin,this.switchLabelFormat=r.titleFormat,t=!0}if("beforeShowDay"in e&&(this.beforeShow=typeof e.beforeShowDay=="function"?e.beforeShowDay:void 0),"weekNumbers"in e)if(e.weekNumbers&&!this.weekNumbers){const r=Vr(D_).firstChild;this.weekNumbers={element:r,dow:r.firstChild,weeks:r.lastChild},this.element.insertBefore(r,this.element.firstChild)}else this.weekNumbers&&!e.weekNumbers&&(this.element.removeChild(this.weekNumbers.element),this.weekNumbers=null);"getWeekNumber"in e&&(this.getWeekNumber=e.getWeekNumber),"showDaysOfWeek"in e&&(e.showDaysOfWeek?(ys(this.dow),this.weekNumbers&&ys(this.weekNumbers.dow)):(vs(this.dow),this.weekNumbers&&vs(this.weekNumbers.dow))),t&&Array.from(this.dow.children).forEac
130h((r,n)=>{const s=(this.weekStart+n)%7;r.textContent=this.dayNames[s],r.className=this.daysOfWeekDisabled.includes(s)?"dow disabled":"dow"})}updateFocus(){const e=new Date(this.picker.viewDate),t=e.getFullYear(),r=e.getMonth(),n=An(t,r,1),s=Bi(n,this.weekStart,this.weekStart);this.first=n,this.last=An(t,r+1,0),this.start=s,this.focused=this.picker.viewDate}updateSelection(){const{dates:e,rangepicker:t}=this.picker.datepicker;this.selected=e,t&&(this.range=t.dates)}render(){if(this.today=this.todayHighlight?Yi():void 0,this.prepareForRender(Ks(this.focused,this.switchLabelFormat,this.locale),this.first<=this.minDate,this.last>=this.maxDate),this.weekNumbers){const e=this.weekStart,t=Bi(this.first,e,e);Array.from(this.weekNumbers.weeks.children).forEach((r,n)=>{const s=a_(t,n);r.textContent=this.getWeekNumber(s,e),n>3&&r.classList[s>this.last?"add":"remove"]("next")})}Array.from(this.grid.children).forEach((e,t)=>{const r=Ms(this.start,t),n=new Date(r),s=n.getDay(),o=[];this.today===r&&o.push("today"),this.daysOfWeekHighlighted.includes(s)&&o.push("highlighted"),this.renderCell(e,n.getDate(),r,r,this,r<this.minDate||r>this.maxDate||this.daysOfWeekDisabled.includes(s),o)})}refresh(){const e=this.range||[];Array.from(this.grid.children).forEach(t=>{this.refreshCell(t,Number(t.dataset.date),this.selected,e)})}refreshFocus(){this.changeFocusedCell(Math.round((this.focused-this.start)/864e5))}}function Nf(i,e){if(!i||!i[0]||!i[1])return;const[[t,r],[n,s]]=i;if(!(t>e||n<e))return[t===e?r:-1,n===e?s:12]}class x_ extends pc{constructor(e){super(e,{id:1,name:"months",cellClass:"month"})}init(e,t=!0){t&&(this.grid=this.element,this.element.classList.add("months","datepicker-grid"),this.grid.appendChild(Vr(Mn("span",12,{"data-month":r=>r}))),this.first=0,this.last=11),super.init(e)}setOptions(e){if(e.locale&&(this.monthNames=e.locale.monthsShort),"minDate"in e)if(e.minDate===void 0)this.minYear=this.minMonth=this.minDate=void 0;else{const t=new Date(e.minDate);this.minYear=t.getFullYear(),this.minMonth=t.getMonth(),this.minDate=t.setDate(1)}if("maxDate"in e)if(e.maxDate===void 0)this.maxYear=this.maxMonth=this.maxDate=void 0;else{const t=new Date(e.maxDate);this.maxYear=t.getFullYear(),this.maxMonth=t.getMonth(),this.maxDate=An(this.maxYear,this.maxMonth+1,0)}e.checkDisabled&&(this.checkDisabled=this.isMinView||e.datesDisabled===null?e.checkDisabled:()=>!1),"beforeShowMonth"in e&&(this.beforeShow=typeof e.beforeShowMonth=="function"?e.beforeShowMonth:void 0)}updateFocus(){const e=new Date(this.picker.viewDate);this.year=e.getFullYear(),this.focused=e.getMonth()}updateSelection(){const{dates:e,rangepicker:t}=this.picker.datepicker;this.selected=e.reduce((r,n)=>{const s=new Date(n),o=s.getFullYear(),a=s.getMonth();return r[o]===void 0?r[o]=[a]:Xs(r[o],a),r},{}),t&&t.dates&&(this.range=t.dates.map(r=>{const n=new Date(r);return isNaN(n)?void 0:[n.getFullYear(),n.getMonth()]}))}render(){this.prepareForRender(this.year,this.year<=this.minYear,this.year>=this.maxYear);const e=this.selected[this.year]||[],t=this.year<this.minYear||this.year>this.maxYear,r=this.year===this.minYear,n=this.year===this.maxYear,s=Nf(this.range,this.year);Array.from(this.grid.children).forEach((o,a)=>{const l=ui(new Date(this.year,a,1),1,this.isRangeEnd);this.renderCell(o,this.monthNames[a],a,l,{selected:e,range:s},t||r&&a<this.minMonth||n&&a>this.maxMonth)})}refresh(){const e=this.selected[this.year]||[],t=Nf(this.range,this.year)||[];Array.from(this.grid.children).forEach((r,n)=>{this.refreshCell(r,n,e,t)})}refreshFocus(){this.changeFocusedCell(this.focused)}}function P_(i){return[...i].reduce((e,t,r)=>e+=r?t:t.toUpperCase(),"")}class Rf extends pc{constructor(e,t){super(e,t)}init(e,t=!0){t&&(this.navStep=this.step*10,this.beforeShowOption=`beforeShow${P_(this.cellClass)}`,this.grid=this.element,this.element.classList.add(this.name,"datepicker-grid"),this.grid.appendChild(Vr(Mn("span",12)))),super.init(e)}setOptions(e){if("minDate"in e&&(e.minDate===void 0?this.minYear=this.minDate=void 0:(this.minYear=en(e.minDate,this.step),this.minDate=An(this.minYear,0,1))),"maxDate"in e&&(e.maxDate===void 0?this.maxYear=this.maxDate=void 0:(this.maxYear=en(e.maxDate,this.step),this.maxDate=An(this.maxYear,11,31))),e.checkDisabled&&(this.checkDisabled=this.isMinView||e.datesDisabled===null?e.checkDisabled:()=>!1),this.beforeShowOption in e){const t=e[this.beforeShowOption];this.beforeShow=typeof t=="function"?t:void 0}}updateFocus(){const e=new Date(this.picker.viewDate),t=en(e,this.navStep),r=t+9*this.step;this.first=t,this.last=r,this.start=t-this.step,this.focused=en(e,this.step)}updateSelection(){const{dates:e,rangepicker:t}=this.picker.datepicker;this.selected=e.reduce((r,n)=>Xs(r,en(n,this.step)),[]),t&&t.dates&&(this.range=t.dates.map(r=>{if(r!==void 0)return en(r,this.step)}))}render(){this.prepareForRender(`${this.first}-${this.last}`,this.first<=this.minYear,this.last>
vendor: 4,924 bytes, line 130
130=this.maxYear),Array.from(this.grid.children).forEach((e,t)=>{const r=this.start+t*this.step,n=ui(new Date(r,0,1),2,this.isRangeEnd);e.dataset.year=r,this.renderCell(e,r,r,n,this,r<this.minYear||r>this.maxYear)})}refresh(){const e=this.range||[];Array.from(this.grid.children).forEach(t=>{this.refreshCell(t,Number(t.textContent),this.selected,e)})}refreshFocus(){this.changeFocusedCell(Math.round((this.focused-this.start)/this.step))}}function on(i,e){const t={bubbles:!0,cancelable:!0,detail:{date:i.getDate(),viewDate:new Date(i.picker.viewDate),viewId:i.picker.currentView.id,datepicker:i}};i.element.dispatchEvent(new CustomEvent(e,t))}function ma(i,e){const{config:t,picker:r}=i,{currentView:n,viewDate:s}=r;let o;switch(n.id){case 0:o=da(s,e);break;case 1:o=As(s,e);break;default:o=As(s,e*n.navStep)}o=Xp(o,t.minDate,t.maxDate),r.changeFocus(o).render()}function sg(i){const e=i.picker.currentView.id;e!==i.config.maxView&&i.picker.changeView(e+1).render()}function og(i){i.setDate({clear:!0})}function ag(i){const e=Yi();i.config.todayButtonMode===1?i.setDate(e,{forceRefresh:!0,viewDate:e}):i.setFocusedDate(e,!0)}function lg(i){const e=()=>{i.config.updateOnBlur?i.update({revert:!0}):i.refresh("input"),i.hide()},t=i.element;ja(t)?t.addEventListener("blur",e,{once:!0}):e()}function Bf(i,e){const t=i.picker,r=new Date(t.viewDate),n=t.currentView.id,s=n===1?da(r,e-r.getMonth()):As(r,e-r.getFullYear());t.changeFocus(s).changeView(n-1).render()}function C_(i){sg(i)}function T_(i){ma(i,-1)}function E_(i){ma(i,1)}function O_(i,e){const t=ig(e,".datepicker-cell");if(!t||t.classList.contains("disabled"))return;const{id:r,isMinView:n}=i.picker.currentView,s=t.dataset;n?i.setDate(Number(s.date)):r===1?Bf(i,Number(s.month)):Bf(i,Number(s.year))}function $_(i){i.preventDefault()}const xl=["left","top","right","bottom"].reduce((i,e)=>(i[e]=`datepicker-orient-${e}`,i),{}),jf=i=>i&&`${i}px`;function Hf(i,e){if("title"in e&&(e.title?(i.controls.title.textContent=e.title,ys(i.controls.title)):(i.controls.title.textContent="",vs(i.controls.title))),e.prevArrow){const t=i.controls.prevButton;ha(t),e.prevArrow.forEach(r=>{t.appendChild(r.cloneNode(!0))})}if(e.nextArrow){const t=i.controls.nextButton;ha(t),e.nextArrow.forEach(r=>{t.appendChild(r.cloneNode(!0))})}if(e.locale&&(i.controls.todayButton.textContent=e.locale.today,i.controls.clearButton.textContent=e.locale.clear),"todayButton"in e&&(e.todayButton?ys(i.controls.todayButton):vs(i.controls.todayButton)),"minDate"in e||"maxDate"in e){const{minDate:t,maxDate:r}=i.datepicker.config;i.controls.todayButton.disabled=!fc(Yi(),t,r)}"clearButton"in e&&(e.clearButton?ys(i.controls.clearButton):vs(i.controls.clearButton))}function zf(i){const{dates:e,config:t,rangeSideIndex:r}=i,n=e.length>0?cc(e):ui(t.defaultViewDate,t.pickLevel,r);return Xp(n,t.minDate,t.maxDate)}function Vf(i,e){!("_oldViewDate"in i)&&e!==i.viewDate&&(i._oldViewDate=i.viewDate),i.viewDate=e;const{id:t,year:r,first:n,last:s}=i.currentView,o=new Date(e).getFullYear();switch(t){case 0:return e<n||e>s;case 1:return o!==r;default:return o<n||o>s}}function Pl(i){return window.getComputedStyle(i).direction}function ug(i){const e=eg(i);if(!(e===document.body||!e))return window.getComputedStyle(e).overflow!=="visible"?e:ug(e)}class M_{constructor(e){const{config:t,inputField:r}=this.datepicker=e,n=__.replace(/%buttonClass%/g,t.buttonClass),s=this.element=Vr(n).firstChild,[o,a,l]=s.firstChild.children,u=o.firstElementChild,[c,f,h]=o.lastElementChild.children,[d,g]=l.firstChild.children,p={title:u,prevButton:c,viewSwitch:f,nextButton:h,todayButton:d,clearButton:g};this.main=a,this.controls=p;const m=r?"dropdown":"inline";s.classList.add(`datepicker-${m}`),Hf(this,t),this.viewDate=zf(e),ga(e,[[s,"mousedown",$_],[a,"click",O_.bind(null,e)],[p.viewSwitch,"click",C_.bind(null,e)],[p.prevButton,"click",T_.bind(null,e)],[p.nextButton,"click",E_.bind(null,e)],[p.todayButton,"click",ag.bind(null,e)],[p.clearButton,"click",og.bind(null,e)]]),this.views=[new S_(this),new x_(this),new Rf(this,{id:2,name:"years",cellClass:"year",step:1}),new Rf(this,{id:3,name:"decades",cellClass:"decade",step:10})],this.currentView=this.views[t.startView],this.currentView.render(),this.main.appendChild(this.currentView.element),t.container?t.container.appendChild(this.element):r.after(this.element)}setOptions(e){Hf(this,e),this.views.forEach(t=>{t.init(e,!1)}),this.currentView.render()}detach(){this.element.remove()}show(){if(this.active)return;const{datepicker:e,element:t}=this,r=e.inputField;if(r){const n=Pl(r);n!==Pl(eg(t))?t.dir=n:t.dir&&t.removeAttribute("dir"),this.place(),t.classList.add("active"),e.config.disableTouchKeyboard&&r.blur()}else t.classList.add("active");this.active=!0,on(e,"show")}hide(){this.active&&(this.datepicker.exitEditMode(),this.element.classList.remove("active"),this.active=!1,on(this.datepicker,"hide"))}place(){const{classList:e,style:t}=this.element;
130t.display="block";const{width:r,height:n}=this.element.getBoundingClientRect(),s=this.element.offsetParent;t.display="";const{config:o,inputField:a}=this.datepicker,{left:l,top:u,right:c,bottom:f,width:h,height:d}=a.getBoundingClientRect();let{x:g,y:p}=o.orientation,m=l,y=u;if(s===document.body||!s)m+=window.scrollX,y+=window.scrollY;else{const w=s.getBoundingClientRect();m-=w.left-s.scrollLeft,y-=w.top-s.scrollTop}const b=ug(a);let v=0,_=0,{clientWidth:D,clientHeight:S}=document.documentElement;if(b){const w=b.getBoundingClientRect();w.top>0&&(_=w.top),w.left>0&&(v=w.left),w.right<D&&(D=w.right),w.bottom<S&&(S=w.bottom)}let C=0;g==="auto"&&(l<v?(g="left",C=v-l):l+r>D?(g="right",D<c&&(C=D-c)):Pl(a)==="rtl"?g=c-r<v?"left":"right":g="left"),g==="right"&&(m+=h-r),m+=C,p==="auto"&&(u-n>_?p=f+n>S?"top":"bottom":p="bottom"),p==="top"?y-=n:y+=d,e.remove(...Object.values(xl)),e.add(xl[g],xl[p]),t.left=jf(m),t.top=jf(y)}setViewSwitchLabel(e){this.controls.viewSwitch.textContent=e}setPrevButtonDisabled(e){this.controls.prevButton.disabled=e}setNextButtonDisabled(e){this.controls.nextButton.disabled=e}changeView(e){const t=this.currentView;return e!==t.id&&(this._oldView||(this._oldView=t),this.currentView=this.views[e],this._renderMethod="render"),this}changeFocus(e){return this._renderMethod=Vf(this,e)?"render":"refreshFocus",this.views.forEach(t=>{t.updateFocus()}),this}update(e=void 0){const t=e===void 0?zf(this.datepicker):e;return this._renderMethod=Vf(this,t)?"render":"refresh",this.views.forEach(r=>{r.updateFocus(),r.updateSelection()}),this}render(e=!0){const{currentView:t,datepicker:r,_oldView:n}=this,s=new Date(this._oldViewDate),o=e&&this._renderMethod||"render";if(delete this._oldView,delete this._oldViewDate,delete this._renderMethod,t[o](),n&&(this.main.replaceChild(t.element,n.element),on(r,"changeView")),!isNaN(s)){const a=new Date(this.viewDate);a.getFullYear()!==s.getFullYear()&&on(r,"changeYear"),a.getMonth()!==s.getMonth()&&on(r,"changeMonth")}}}function cg(i,e,t,r,n,s){if(fc(i,n,s)){if(r(i)){const o=e(i,t);return cg(o,e,t,r,n,s)}return i}}function A_(i,e,t){const r=i.picker,n=r.currentView,s=n.step||1;let o=r.viewDate,a;switch(n.id){case 0:o=Ms(o,t?e*7:e),a=Ms;break;case 1:o=da(o,t?e*4:e),a=da;break;default:o=As(o,e*(t?4:1)*s),a=As}o=cg(o,a,e<0?-s:s,l=>n.disabled.includes(l),n.minDate,n.maxDate),o!==void 0&&r.changeFocus(o).render()}function k_(i,e){const{config:t,picker:r,editMode:n}=i,s=r.active,{key:o,altKey:a,shiftKey:l}=e,u=e.ctrlKey||e.metaKey,c=()=>{e.preventDefault(),e.stopPropagation()};if(o==="Tab"){lg(i);return}if(o==="Enter"){if(!s)i.update();else if(n)i.exitEditMode({update:!0,autohide:t.autohide});else{const p=r.currentView;p.isMinView?i.setDate(r.viewDate):(r.changeView(p.id-1).render(),c())}return}const f=t.shortcutKeys,h={key:o,ctrlOrMetaKey:u,altKey:a,shiftKey:l},d=Object.keys(f).find(p=>{const m=f[p];return!Object.keys(m).find(y=>m[y]!==h[y])});if(d){let p;if(d==="toggle"?p=d:n?d==="exitEditMode"&&(p=d):s?d==="hide"?p=d:d==="prevButton"?p=[ma,[i,-1]]:d==="nextButton"?p=[ma,[i,1]]:d==="viewSwitch"?p=[sg,[i]]:t.clearButton&&d==="clearButton"?p=[og,[i]]:t.todayButton&&d==="todayButton"&&(p=[ag,[i]]):d==="show"&&(p=d),p){Array.isArray(p)?p[0].apply(null,p[1]):i[p](),c();return}}if(!s||n)return;const g=(p,m)=>{l||u||a?i.enterEditMode():(A_(i,p,m),e.preventDefault())};o==="ArrowLeft"?g(-1,!1):o==="ArrowRight"?g(1,!1):o==="ArrowUp"?g(-1,!0):o==="ArrowDown"?g(1,!0):(o==="Backspace"||o==="Delete"||o&&o.length===1&&!u)&&i.enterEditMode()}function L_(i){i.config.showOnFocus&&!i._showing&&i.show()}function F_(i,e){const t=e.target;(i.picker.active||i.config.showOnClick)&&(t._active=ja(t),t._clicking=setTimeout(()=>{delete t._active,delete t._clicking},2e3))}function I_(i,e){const t=e.target;t._clicking&&(clearTimeout(t._clicking),delete t._clicking,t._active&&i.enterEditMode(),delete t._active,i.config.showOnClick&&i.show())}function N_(i,e){e.clipboardData.types.includes("text/plain")&&i.enterEditMode()}function R_(i,e){const{element:t,picker:r}=i;if(!r.active&&!ja(t))return;const n=r.element;ig(e,s=>s===t||s===n)||lg(i)}function fg(i,e){return i.map(t=>Ks(t,e.format,e.locale)).join(e.dateDelimiter)}function dg(i,e,t=!1){if(e.length===0)return t?[]:void 0;const{config:r,dates:n,rangeSideIndex:s}=i,{pickLevel:o,maxNumberOfDates:a}=r;let l=e.reduce((u,c)=>{let f=Wi(c,r.format,r.locale);return f===void 0||(f=ui(f,o,s),fc(f,r.minDate,r.maxDate)&&!u.includes(f)&&!r.checkDisabled(f,o)&&(o>0||!r.daysOfWeekDisabled.includes(new Date(f).getDay()))&&u.push(f)),u},[]);if(l.length!==0)return r.multidate&&!t&&(l=l.reduce((u,c)=>(n.includes(c)||u.push(c),u),n.filter(u=>!l.includes(u)))),a&&l.length>a?l.slice(a*-1):l}function va(i,e=3,t=!0,r=void 0){const{config:n,picker:s,inputField:o}=i;if(e&2){const a=s.active?n.pickLevel:n.startView;s.update(r).changeView(a).render(t)}e&1&&o&&(o.value=fg(i.dates,n))}function Wf(i,e,t){const r=i.config;let{clear:n,render:s,autohide:o,revert:a,forceRefresh:l,viewDate:u}=t;s===void 0&&(s=!0),s?o===void 0&&(o=r.autohide):o=l=!1,u=Wi(u,r.format,r.locale);
130const c=dg(i,e,n);!c&&!a||(c&&c.toString()!==i.dates.toString()?(i.dates=c,va(i,s?3:1,!0,u),on(i,"changeDate")):va(i,l?3:1,!0,u),o&&i.hide())}function qf(i,e){return e?t=>Ks(t,e,i.config.locale):t=>new Date(t)}class hg{constructor(e,t={},r=void 0){e.datepicker=this,this.element=e,this.dates=[];const n=this.config=Object.assign({buttonClass:t.buttonClass&&String(t.buttonClass)||"button",container:null,defaultViewDate:Yi(),maxDate:void 0,minDate:void 0},Sl(hc,this));let s;if(e.tagName==="INPUT"?(s=this.inputField=e,s.classList.add("datepicker-input"),t.container&&(n.container=t.container instanceof HTMLElement?t.container:document.querySelector(t.container))):n.container=e,r){const c=r.inputs.indexOf(s),f=r.datepickers;if(c<0||c>1||!Array.isArray(f))throw Error("Invalid rangepicker object.");f[c]=this,this.rangepicker=r,this.rangeSideIndex=c}this._options=t,Object.assign(n,Sl(t,this)),n.shortcutKeys=b_(t.shortcutKeys||{});const o=Of(e.value||e.dataset.date,n.dateDelimiter);delete e.dataset.date;const a=dg(this,o);a&&a.length>0&&(this.dates=a),s&&(s.value=fg(this.dates,n));const l=this.picker=new M_(this),u=[e,"keydown",k_.bind(null,this)];s?ga(this,[u,[s,"focus",L_.bind(null,this)],[s,"mousedown",F_.bind(null,this)],[s,"click",I_.bind(null,this)],[s,"paste",N_.bind(null,this)],[document,"mousedown",R_.bind(null,this)],[window,"resize",l.place.bind(l)]]):(ga(this,[u]),this.show())}static formatDate(e,t,r){return Ks(e,t,r&&Kn[r]||Kn.en)}static parseDate(e,t,r){return Wi(e,t,r&&Kn[r]||Kn.en)}static get locales(){return Kn}get active(){return!!(this.picker&&this.picker.active)}get pickerElement(){return this.picker?this.picker.element:void 0}setOptions(e){const t=Sl(e,this);Object.assign(this._options,e),Object.assign(this.config,t),this.picker.setOptions(t),va(this,3)}show(){if(this.inputField){const{config:e,inputField:t}=this;if(t.disabled||t.readOnly&&!e.enableOnReadonly)return;!ja(t)&&!e.disableTouchKeyboard&&(this._showing=!0,t.focus(),delete this._showing)}this.picker.show()}hide(){this.inputField&&(this.picker.hide(),this.picker.update().changeView(this.config.startView).render())}toggle(){this.picker.active?this.inputField&&this.picker.hide():this.show()}destroy(){this.hide(),tg(this),this.picker.detach();const e=this.element;return e.classList.remove("datepicker-input"),delete e.datepicker,this}getDate(e=void 0){const t=qf(this,e);if(this.config.multidate)return this.dates.map(t);if(this.dates.length>0)return t(this.dates[0])}setDate(...e){const t=[...e],r={},n=cc(e);n&&typeof n=="object"&&!Array.isArray(n)&&!(n instanceof Date)&&Object.assign(r,t.pop());const s=Array.isArray(t[0])?t[0]:t;Wf(this,s,r)}update(e=void 0){if(!this.inputField)return;const t=Object.assign(e||{},{clear:!0,render:!0,viewDate:void 0}),r=Of(this.inputField.value,this.config.dateDelimiter);Wf(this,r,t)}getFocusedDate(e=void 0){return qf(this,e)(this.picker.viewDate)}setFocusedDate(e,t=!1){const{config:r,picker:n,active:s,rangeSideIndex:o}=this,a=r.pickLevel,l=Wi(e,r.format,r.locale);l!==void 0&&(n.changeFocus(ui(l,a,o)),s&&t&&n.changeView(a),n.render())}refresh(e=void 0,t=!1){e&&typeof e!="string"&&(t=e,e=void 0);let r;e==="picker"?r=2:e==="input"?r=1:r=3,va(this,r,!t)}enterEditMode(){const e=this.inputField;!e||e.readOnly||!this.picker.active||this.editMode||(this.editMode=!0,e.classList.add("in-edit"))}exitEditMode(e=void 0){if(!this.inputField||!this.editMode)return;const t=Object.assign({update:!1},e);delete this.editMode,this.inputField.classList.remove("in-edit"),t.update&&this.update(t)}}function Gf(i){const e=Object.assign({},i);return delete e.inputs,delete e.allowOneSidedRange,delete e.maxNumberOfDates,e}function B_(i,e,t,r){ga(i,[[t,"changeDate",e]]),new hg(t,r,i)}function Qn(i,e){if(i._updating)return;i._updating=!0;const t=e.target;if(t.datepicker===void 0)return;const r=i.datepickers,[n,s]=r,o={render:!1},a=i.inputs.indexOf(t),l=a===0?1:0,u=r[a].dates[0],c=r[l].dates[0];u!==void 0&&c!==void 0?a===0&&u>c?(n.setDate(c,o),s.setDate(u,o)):a===1&&u<c&&(n.setDate(u,o),s.setDate(c,o)):i.allowOneSidedRange||(u!==void 0||c!==void 0)&&(o.clear=!0,r[l].setDate(r[a].dates,o)),r.forEach(f=>
130{f.picker.update().render()}),delete i._updating}class j_{constructor(e,t={}){let r=Array.isArray(t.inputs)?t.inputs:Array.from(e.querySelectorAll("input"));if(r.length<2)return;e.rangepicker=this,this.element=e,this.inputs=r=r.slice(0,2),Object.freeze(r),this.allowOneSidedRange=!!t.allowOneSidedRange;const n=Qn.bind(null,this),s=Gf(t),o=this.datepickers=[];r.forEach(a=>{B_(this,n,a,s)}),Object.freeze(o),Object.defineProperty(this,"dates",{get(){return o.map(a=>a.dates[0])}}),o[0].dates.length>0?Qn(this,{target:r[0]}):o[1].dates.length>0&&Qn(this,{target:r[1]})}setOptions(e){this.allowOneSidedRange=!!e.allowOneSidedRange;const t=Gf(e);this.datepickers.forEach(r=>{r.setOptions(t)})}destroy(){this.datepickers.forEach(e=>{e.destroy()}),tg(this),delete this.element.rangepicker}getDates(e=void 0){const t=e?r=>Ks(r,e,this.datepickers[0].config.locale):r=>new Date(r);return this.dates.map(r=>r===void 0?r:t(r))}setDates(e,t){const{datepickers:[r,n],inputs:[s,o],dates:[a,l]}=this;this._updating=!0,r.setDate(e),n.setDate(t),delete this._updating,n.dates[0]!==l?Qn(this,{target:o}):r.dates[0]!==a&&Qn(this,{target:s})}}const H_={fr:{days:["dimanche","lundi","mardi","mercredi","jeudi","vendredi","samedi"],daysShort:["dim.","lun.","mar.","mer.","jeu.","ven.","sam."],daysMin:["d","l","ma","me","j","v","s"],months:["janvier","février","mars","avril","mai","juin","juillet","août","septembre","octobre","novembre","décembre"],monthsShort:["janv.","févr.","mars","avril","mai","juin","juil.","août","sept.","oct.","nov.","déc."],today:"Aujourd'hui",monthsTitle:"Mois",clear:"Effacer",weekStart:1,format:"dd/mm/yyyy"}};Object.assign(hg.locales,H_);class z_ extends Bt{constructor({$el:t}){super();E(this,"$el");E(this,"$container");E(this,"$startInput");E(this,"$endInput");E(this,"lang");E(this,"startLabel");E(this,"endLabel");E(this,"datepicker");E(this,"upcomingDates");this.$el=t,this.$startInput=this.$el.querySelector("#edit-field-date-start-value"),this.$endInput=this.$el.querySelector("#edit-field-date-end-value"),this.lang=document.documentElement.getAttribute("lang"),this.startLabel=this.$el.getAttribute("data-start-label"),this.endLabel=this.$el.getAttribute("data-end-label"),this.upcomingDates=this.$el.getAttribute("data-upcoming-events"),this.init()}init(){this.$startInput.setAttribute("placeholder",this.startLabel),this.$endInput.setAttribute("placeholder",this.endLabel);
130const t=window.location.search,r=new URLSearchParams(t),n=r.get("field_date_start_value"),s=r.get("field_date_end_value");n&&(this.lang==="fr"?this.$startInput.setAttribute("value",this.formatDateFr(n)):this.$startInput.setAttribute("value",this.formatDateEn(n))),s&&(this.lang==="fr"?this.$endInput.setAttribute("value",this.formatDateFr(s)):this.$endInput.setAttribute("value",this.formatDateEn(s))),this.datepicker=new j_(this.$el,{language:this.lang?this.lang:"fr",autohide:!0,allowOneSidedRange:!0,beforeShowDay:o=>{const a=new Date(o.setHours(6,0,0,0)).toISOString().split("T")[0];return this.upcomingDates.includes(a)?"has-event":""}})}formatDateFr(t){const r=t.split("-");return`${r[2]}/${r[1]}/${r[0]}`}formatDateEn(t){const r=t.split("-");return`${r[1]}/${r[2]}/${r[0]}`}}var pg={exports:{}};/*! algoliasearch-lite.umd.js | 4.24.0 | © Algolia, inc. | https://github.com/algolia/algoliasearch-client-javascript */(function(i,e){(function(t,r){i.exports=r()})(Xg,function(){function t(F,R,k){return R in F?Object.defineProperty(F,R,{value:k,enumerable:!0,configurable:!0,writable:!0}):F[R]=k,F}function r(F,R){var k=Object.keys(F);if(Object.getOwnPropertySymbols){var j=Object.getOwnPropertySymbols(F);R&&(j=j.filter(function(H){return Object.getOwnPropertyDescriptor(F,H).enumerable})),k.push.apply(k,j)}return k}function n(F){for(var R=1;R<arguments.length;R++){var k=arguments[R]!=null?arguments[R]:{};R%2?r(Object(k),!0).forEach(function(j){t(F,j,k[j])}):Object.getOwnPropertyDescriptors?Object.defineProperties(F,Object.getOwnPropertyDescriptors(k)):r(Object(k)).forEach(function(j){Object.defineProperty(F,j,Object.getOwnPropertyDescriptor(k,j))})}return F}function s(F,R){if(F==null)return{};var k,j,H=function(K,Y){if(K==null)return{};var ie,L,ge={},se=Object.keys(K);for(L=0;L<se.length;L++)ie=se[L],Y.indexOf(ie)>=0||(ge[ie]=K[ie]);return ge}(F,R);if(Object.getOwnPropertySymbols){var G=Object.getOwnPropertySymbols(F);for(j=0;j<G.length;j++)k=G[j],R.indexOf(k)>=0||Object.prototype.propertyIsEnumerable.call(F,k)&&(H[k]=F[k])}return H}function o(F,R){return function(k){if(Array.isArray(k))return k}(F)||function(k,j){if(Symbol.iterator in Object(k)||Object.prototype.toString.call(k)==="[object Arguments]"){var H=[],G=!0,K=!1,Y=void 0;try{for(var ie,L=k[Symbol.iterator]();!(G=(ie=L.next()).done)&&(H.push(ie.value),!j||H.length!==j);G=!0);}catch(ge){K=!0,Y=ge}finally{try{G||L.return==null||L.return()}finally{if(K)throw Y}}return H}}(F,R)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function a(F){return function(R){if(Array.isArray(R)){for(var k=0,j=new Array(R.length);k<R.length;k++)j[k]=R[k];return j}}(F)||function(R){if(Symbol.iterator in Object(R)||Object.prototype.toString.call(R)==="[object Arguments]")return Array.from(R)}(F)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function l(F){var R,k="algoliasearch-client-js-".concat(F.key),j=function(){return R===void 0&&(R=F.localStorage||window.localStorage),R},H=function(){return JSON.parse(j().getItem(k)||"{}")},G=function(Y){j().setItem(k,JSON.stringify(Y))},K=function(){var Y=F.timeToLive?1e3*F.timeToLive:null,ie=H(),L=Object.fromEntries(Object.entries(ie).filter(function(se){return o(se,2)[1].timestamp!==void 0}));if(G(L),Y){var ge=Object.fromEntries(Object.entries(L).filter(function(se){var xe=o(se,2)[1],Ae=new Date().getTime();return!(xe.timestamp+Y<Ae)}));G(ge)}};return{get:function(Y,ie){var L=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{miss:function(){return Promise.resolve()}};return Promise.resolve().then(function(){K();var ge=JSON.stringify(Y);return H()[ge]}).then(function(ge){return Promise.all([ge?ge.value:ie(),ge!==void 0])}).then(function(ge){var se=o(ge,2),xe=se[0],Ae=se[1];return Promise.all([xe,Ae||L.miss(xe)])}).then(function(ge){return o(ge,1)[0]})},set:function(Y,ie){return Promise.resolve().then(function(){var L=H();return L[JSON.stringify(Y)]={timestamp:new Date().getTime(),value:ie},j().setItem(k,JSON.stringify(L)),ie})},delete:function(Y){return Promise.resolve().then(function(){var ie=H();delete ie[JSON.stringify(Y)],j().setItem(k,JSON.stringify(ie))})},clear:function(){return Promise.resolve().then(function(){j().removeItem(k)})}}}function u(F){var R=a(F.caches),k=R.shift();return k===void 0?{get:function(j,H){var G=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{miss:function(){return Promise.resolve()}},K=H();return K.then(function(Y){return Promise.all([Y,G.miss(Y)])}).then(function(Y){return o(Y,1)[0]})},set:function(j,H){return Promise.resolve(H)},delete:function(j){return Promise.resolve()},clear:function(){return Promise.resolve()}}:{get:function(j,H){var G=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{miss:function(){return Promise.resolve()}};return k.get(j,H,G).catch(function(){return u({caches:R}).get(j,H,G)})},set:function(j,H){return k.set(j,H).catch(function(){return u({caches:R}).set(j,H)})},delete:function(j){return k.delete(j).catch(function(){return u({caches:R}).delete(j)})}
130,clear:function(){return k.clear().catch(function(){return u({caches:R}).clear()})}}}function c(){var F=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{serializable:!0},R={};return{get:function(k,j){var H=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{miss:function(){return Promise.resolve()}},G=JSON.stringify(k);if(G in R)return Promise.resolve(F.serializable?JSON.parse(R[G]):R[G]);var K=j(),Y=H&&H.miss||function(){return Promise.resolve()};return K.then(function(ie){return Y(ie)}).then(function(){return K})},set:function(k,j){return R[JSON.stringify(k)]=F.serializable?JSON.stringify(j):j,Promise.resolve(j)},delete:function(k){return delete R[JSON.stringify(k)],Promise.resolve()},clear:function(){return R={},Promise.resolve()}}}function f(F){for(var R=F.length-1;R>0;R--){var k=Math.floor(Math.random()*(R+1)),j=F[R];F[R]=F[k],F[k]=j}return F}function h(F,R){return R&&Object.keys(R).forEach(function(k){F[k]=R[k](F)}),F}function d(F){for(var R=arguments.length,k=new Array(R>1?R-1:0),j=1;j<R;j++)k[j-1]=arguments[j];var H=0;return F.replace(/%s/g,function(){return encodeURIComponent(k[H++])})}var g={WithinQueryParameters:0,WithinHeaders:1};function p(F,R){var k=F||{},j=k.data||{};return Object.keys(k).forEach(function(H){["timeout","headers","queryParameters","data","cacheable"].indexOf(H)===-1&&(j[H]=k[H])}),{data:Object.entries(j).length>0?j:void 0,timeout:k.timeout||R,headers:k.headers||{},queryParameters:k.queryParameters||{},cacheable:k.cacheable}}var m={Read:1,Write:2,Any:3},y=1,b=2,v=3;function _(F){var R=arguments.length>1&&arguments[1]!==void 0?arguments[1]:y;return n(n({},F),{},{status:R,lastUpdate:Date.now()})}function D(F){return typeof F=="string"?{protocol:"https",url:F,accept:m.Any}:{protocol:F.protocol||"https",url:F.url,accept:F.accept||m.Any}}var S="GET",C="POST";function w(F,R){return Promise.all(R.map(function(k){return F.get(k,function(){return Promise.resolve(_(k))})})).then(function(k){var j=k.filter(function(K){return function(Y){return Y.status===y||Date.now()-Y.lastUpdate>12e4}(K)}),H=k.filter(function(K){return function(Y){return Y.status===v&&Date.now()-Y.lastUpdate<=12e4}(K)}),G=[].concat(a(j),a(H));return{getTimeout:function(K,Y){return(H.length===0&&K===0?1:H.length+3+K)*Y},statelessHosts:G.length>0?G.map(function(K){return D(K)}):R}})}function x(F,R,k,j){var H=[],G=function(xe,Ae){if(!(xe.method===S||xe.data===void 0&&Ae.data===void 0)){var De=Array.isArray(xe.data)?xe.data:n(n({},xe.data),Ae.data);return JSON.stringify(De)}}(k,j),K=function(xe,Ae){var De=n(n({},xe.headers),Ae.headers),_e={};return Object.keys(De).forEach(function(gt){var We=De[gt];_e[gt.toLowerCase()]=We}),_e}(F,j),Y=k.method,ie=k.method!==S?{}:n(n({},k.data),j.data),L=n(n(n({"x-algolia-agent":F.userAgent.value},F.queryParameters),ie),j.queryParameters),ge=0,se=function xe(Ae,De){var _e=Ae.pop();if(_e===void 0)throw{name:"RetryError",message:"Unreachable hosts - your application id may be incorrect. If the error persists, please reach out to the Algolia Support team: https://alg.li/support .",transporterStackTrace:A(H)};var gt={data:G,headers:K,method:Y,url:T(_e,k.path,L),connectTimeout:De(ge,F.timeouts.connect),responseTimeout:De(ge,j.timeout)},We=function(be){var oe={request:gt,response:be,host:_e,triesLeft:Ae.length};return H.push(oe),oe},Te={onSuccess:function(be){return function(oe){try{return JSON.parse(oe.content)}catch(ut){throw function(Oe,nt){return{name:"DeserializationError",message:Oe,response:nt}}(ut.message,oe)}}(be)},onRetry:function(be){var oe=We(be);return be.isTimedOut&&ge++,Promise.all([F.logger.info("Retryable failure",N(oe)),F.hostsCache.set(_e,_(_e,be.isTimedOut?v:b))]).then(function(){return xe(Ae,De)})},onFail:function(be){throw We(be),function(oe,ut){var Oe=oe.content,nt=oe.status,Zt=Oe;try{Zt=JSON.parse(Oe).message}catch{}return function(Tt,fr,Er){return{name:"ApiError",message:Tt,status:fr,transporterStackTrace:Er}}(Zt,nt,ut)}(be,A(H))}};return F.requester.send(gt).then(function(be){return function(oe,ut){return function(Oe){var nt=Oe.status;
130return Oe.isTimedOut||function(Zt){var Tt=Zt.isTimedOut,fr=Zt.status;return!Tt&&~~fr==0}(Oe)||~~(nt/100)!=2&&~~(nt/100)!=4}(oe)?ut.onRetry(oe):~~(oe.status/100)==2?ut.onSuccess(oe):ut.onFail(oe)}(be,Te)})};return w(F.hostsCache,R).then(function(xe){return se(a(xe.statelessHosts).reverse(),xe.getTimeout)})}function P(F){var R={value:"Algolia for JavaScript (".concat(F,")"),add:function(k){var j="; ".concat(k.segment).concat(k.version!==void 0?" (".concat(k.version,")"):"");return R.value.indexOf(j)===-1&&(R.value="".concat(R.value).concat(j)),R}};return R}function T(F,R,k){var j=O(k),H="".concat(F.protocol,"://").concat(F.url,"/").concat(R.charAt(0)==="/"?R.substr(1):R);return j.length&&(H+="?".concat(j)),H}function O(F){return Object.keys(F).map(function(R){return d("%s=%s",R,(k=F[R],Object.prototype.toString.call(k)==="[object Object]"||Object.prototype.toString.call(k)==="[object Array]"?JSON.stringify(F[R]):F[R]));var k}).join("&")}function A(F){return F.map(function(R){return N(R)})}function N(F){var R=F.request.headers["x-algolia-api-key"]?{"x-algolia-api-key":"*****"}:{};return n(n({},F),{},{request:n(n({},F.request),{},{headers:n(n({},F.request.headers),R)})})}var I=function(F){var R=F.appId,k=function(H,G,K){var Y={"x-algolia-api-key":K,"x-algolia-application-id":G};return{headers:function(){return H===g.WithinHeaders?Y:{}},queryParameters:function(){return H===g.WithinQueryParameters?Y:{}}}}(F.authMode!==void 0?F.authMode:g.WithinHeaders,R,F.apiKey),j=function(H){var G=H.hostsCache,K=H.logger,Y=H.requester,ie=H.requestsCache,L=H.responsesCache,ge=H.timeouts,se=H.userAgent,xe=H.hosts,Ae=H.queryParameters,De={hostsCache:G,logger:K,requester:Y,requestsCache:ie,responsesCache:L,timeouts:ge,userAgent:se,headers:H.headers,queryParameters:Ae,hosts:xe.map(function(_e){return D(_e)}),read:function(_e,gt){var We=p(gt,De.timeouts.read),Te=function(){return x(De,De.hosts.filter(function(oe){return(oe.accept&m.Read)!=0}),_e,We)};if((We.cacheable!==void 0?We.cacheable:_e.cacheable)!==!0)return Te();var be={request:_e,mappedRequestOptions:We,transporter:{queryParameters:De.queryParameters,headers:De.headers}};return De.responsesCache.get(be,function(){return De.requestsCache.get(be,function(){return De.requestsCache.set(be,Te()).then(function(oe){return Promise.all([De.requestsCache.delete(be),oe])},function(oe){return Promise.all([De.requestsCache.delete(be),Promise.reject(oe)])}).then(function(oe){var ut=o(oe,2);return ut[0],ut[1]})})},{miss:function(oe){return De.responsesCache.set(be,oe)}})},write:function(_e,gt){return x(De,De.hosts.filter(function(We){return(We.accept&m.Write)!=0}),_e,p(gt,De.timeouts.write))}};return De}(n(n({hosts:[{url:"".concat(R,"-dsn.algolia.net"),accept:m.Read},{url:"".concat(R,".algolia.net"),accept:m.Write}].concat(f([{url:"".concat(R,"-1.algolianet.com")},{url:"".concat(R,"-2.algolianet.com")},{url:"".concat(R,"-3.algolianet.com")}]))},F),{},{headers:n(n(n({},k.headers()),{"content-type":"application/x-www-form-urlencoded"}),F.headers),queryParameters:n(n({},k.queryParameters()),F.queryParameters)}));return h({transporter:j,appId:R,addAlgoliaAgent:function(H,G){j.userAgent.add({segment:H,version:G})},clearCache:function(){return Promise.all([j.requestsCache.clear(),j.responsesCache.clear()]).then(function(){})}},F.methods)},B=function(F){return function(R,k){return R.method===S?F.transporter.read(R,k):F.transporter.write(R,k)}},W=function(F){return function(R){var k=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},j={transporter:F.transporter,appId:F.appId,indexName:R};return h(j,k.methods)}},V=function(F){return function(R,k){var j=R.map(function(H){return n(n({},H),{},{params:O(H.params||{})})});return F.transporter.read({method:C,path:"1/indexes/*/queries",data:{requests:j},cacheable:!0},k)}},M=function(F){return function(R,k){return Promise.all(R.map(function(j){var H=j.params,G=H.facetName,K=H.facetQuery,Y=s(H,["facetName","facetQuery"]);return W(F)(j.indexName,{methods:{searchForFacetValues:ne}}).searchForFacetValues(G,K,n(n({},k),Y))}))}},$=function(F){return function(R,k,j){return F.transporter.read({method:C,path:d("1/answers/%s/prediction",F.indexName),data:{query:R,queryLanguages:k},cacheable:!0},j)}},q=function(F){return function(R,k){return F.transporter.read({method:C,path:d("1/indexes/%s/query",F.indexName),data:{query:R},cacheable:!0},k)}},ne=function(F){return function(R,k,j){return F.transporter.read({method:C,path:d("1/indexes/%s/facets/%s/query",F.indexName,R),data:{facetQuery:k},cacheable:!0},j)}},le=1,re=2,Z=3,pe=function(F){return function(R,k){var j=R.map(function(H){return n(n({},H),{},{threshold:H.threshold||0})});return F.transporter.read({method:C,path:"1/indexes/*/recommendations",data:{requests:j},cacheable:!0},k)}};function ue(F,R,k){var j,H={appId:F,apiKey:R,timeouts:{connect:1,read:2,write:30},requester:{send:function(G){return new Promise(function(K){var Y=new XMLHttpRequest;
130Y.open(G.method,G.url,!0),Object.keys(G.headers).forEach(function(se){return Y.setRequestHeader(se,G.headers[se])});var ie,L=function(se,xe){return setTimeout(function(){Y.abort(),K({status:0,content:xe,isTimedOut:!0})},1e3*se)},ge=L(G.connectTimeout,"Connection timeout");Y.onreadystatechange=function(){Y.readyState>Y.OPENED&&ie===void 0&&(clearTimeout(ge),ie=L(G.responseTimeout,"Socket timeout"))},Y.onerror=function(){Y.status===0&&(clearTimeout(ge),clearTimeout(ie),K({content:Y.responseText||"Network request failed",status:Y.status,isTimedOut:!1}))},Y.onload=function(){clearTimeout(ge),clearTimeout(ie),K({content:Y.responseText,status:Y.status,isTimedOut:!1})},Y.send(G.data)})}},logger:(j=Z,{debug:function(G,K){return le>=j&&console.debug(G,K),Promise.resolve()},info:function(G,K){return re>=j&&console.info(G,K),Promise.resolve()},error:function(G,K){return console.error(G,K),Promise.resolve()}}),responsesCache:c(),requestsCache:c({serializable:!1}),hostsCache:u({caches:[l({key:"".concat("4.24.0","-").concat(F)}),c()]}),userAgent:P("4.24.0").add({segment:"Browser",version:"lite"}),authMode:g.WithinQueryParameters};return I(n(n(n({},H),k),{},{methods:{search:V,searchForFacetValues:M,multipleQueries:V,multipleSearchForFacetValues:M,customRequest:B,initIndex:function(G){return function(K){return W(G)(K,{methods:{search:q,searchForFacetValues:ne,findAnswers:$}})}},getRecommendations:pe}}))}return ue.version="4.24.0",ue})})(pg);var V_=pg.exports;const gg=Id(V_);function pu(){return pu=Object.assign?Object.assign.bind():function(i){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var r in t)({}).hasOwnProperty.call(t,r)&&(i[r]=t[r])}return i},pu.apply(null,arguments)}function W_(i,e){if(i==null)return{};var t={};for(var r in i)if({}.hasOwnProperty.call(i,r)){if(e.includes(r))continue;t[r]=i[r]}return t}function q_(i,e){if(i==null)return{};var t,r,n=W_(i,e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(i);for(r=0;r<s.length;r++)t=s[r],e.includes(t)||{}.propertyIsEnumerable.call(i,t)&&(n[t]=i[t])}return n}function X(){for(var i=arguments.length,e=new Array(i),t=0;t<i;t++)e[t]=arguments[t];return e.reduce(function(r,n){return Array.isArray(n)?r.concat(n):r.concat([n])},[]).filter(Boolean).join(" ")}var G_=["parts","highlightedTagName","nonHighlightedTagName","separator","className","classNames"];function Y_(i){var e=i.createElement;return function(r){var n=r.classNames,s=r.children,o=r.highlightedTagName,a=r.isHighlighted,l=r.nonHighlightedTagName,u=a?o:l;return e(u,{className:a?n.highlighted:n.nonHighlighted},s)}}function U_(i){var e=i.createElement,t=i.Fragment,r=Y_({createElement:e,Fragment:t});return function(s){var o=s.parts,a=s.highlightedTagName,l=a===void 0?"mark":a,u=s.nonHighlightedTagName,c=u===void 0?"span":u,f=s.separator,h=f===void 0?", ":f,d=s.className,g=s.classNames,p=g===void 0?{}:g,m=q_(s,G_);return e("span",pu({},m,{className:X(p.root,d)}),o.map(function(y,b){var v=b===o.length-1;return e(t,{key:b},y.map(function(_,D){return e(r,{key:D,classNames:p,highlightedTagName:l,nonHighlightedTagName:c,isHighlighted:_.isHighlighted},_.value)}),!v&&e("span",{className:p.separator},h))}))}}var Ha,Me,mg,Ci,Yf,vg,gu,yg,gc,mu,vu,ks={},bg=[],X_=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,mc=Array.isArray;function si(i,e){for(var t in e)i[t]=e[t];return i}function vc(i){i&&i.parentNode&&i.parentNode.removeChild(i)}function U(i,e,t){var r,n,s,o={};for(s in e)s=="key"?r=e[s]:s=="ref"?n=e[s]:o[s]=e[s];if(arguments.length>2&&(o.children=arguments.length>3?Ha.call(arguments,2):t),typeof i=="function"&&i.defaultProps!=null)for(s in i.defaultProps)o[s]===void 0&&(o[s]=i.defaultProps[s]);return Ho(i,o,r,n,null)}function Ho(i,e,t,r,n){var s={type:i,props:e,key:t,ref:r,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:n??++mg,__i:-1,__u:0};return n==null&&Me.vnode!=null&&Me.vnode(s),s}function ya(){return{current:null}}function gi(i){return i.children}function ci(i,e){this.props=i,this.context=e}function kn(i,e){if(e==null)return i.__?kn(i.__,i.__i+1):null;for(var t;
130e<i.__k.length;e++)if((t=i.__k[e])!=null&&t.__e!=null)return t.__e;return typeof i.type=="function"?kn(i):null}function _g(i){var e,t;if((i=i.__)!=null&&i.__c!=null){for(i.__e=i.__c.base=null,e=0;e<i.__k.length;e++)if((t=i.__k[e])!=null&&t.__e!=null){i.__e=i.__c.base=t.__e;break}return _g(i)}}function Uf(i){(!i.__d&&(i.__d=!0)&&Ci.push(i)&&!ba.__r++||Yf!==Me.debounceRendering)&&((Yf=Me.debounceRendering)||vg)(ba)}function ba(){var i,e,t,r,n,s,o,a;for(Ci.sort(gu);i=Ci.shift();)i.__d&&(e=Ci.length,r=void 0,s=(n=(t=i).__v).__e,o=[],a=[],t.__P&&((r=si({},n)).__v=n.__v+1,Me.vnode&&Me.vnode(r),yc(t.__P,r,n,t.__n,t.__P.namespaceURI,32&n.__u?[s]:null,o,s??kn(n),!!(32&n.__u),a),r.__v=n.__v,r.__.__k[r.__i]=r,Sg(o,r,a),r.__e!=s&&_g(r)),Ci.length>e&&Ci.sort(gu));ba.__r=0}function wg(i,e,t,r,n,s,o,a,l,u,c){var f,h,d,g,p,m,y=r&&r.__k||bg,b=e.length;for(l=K_(t,e,y,l),f=0;f<b;f++)(d=t.__k[f])!=null&&(h=d.__i===-1?ks:y[d.__i]||ks,d.__i=f,m=yc(i,d,h,n,s,o,a,l,u,c),g=d.__e,d.ref&&h.ref!=d.ref&&(h.ref&&bc(h.ref,null,d),c.push(d.ref,d.__c||g,d)),p==null&&g!=null&&(p=g),4&d.__u||h.__k===d.__k?l=Dg(d,l,i):typeof d.type=="function"&&m!==void 0?l=m:g&&(l=g.nextSibling),d.__u&=-7);return t.__e=p,l}function K_(i,e,t,r){var n,s,o,a,l,u=e.length,c=t.length,f=c,h=0;for(i.__k=[],n=0;n<u;n++)(s=e[n])!=null&&typeof s!="boolean"&&typeof s!="function"?(a=n+h,(s=i.__k[n]=typeof s=="string"||typeof s=="number"||typeof s=="bigint"||s.constructor==String?Ho(null,s,null,null,null):mc(s)?Ho(gi,{children:s},null,null,null):s.constructor===void 0&&s.__b>0?Ho(s.type,s.props,s.key,s.ref?s.ref:null,s.__v):s).__=i,s.__b=i.__b+1,o=null,(l=s.__i=Q_(s,t,a,f))!==-1&&(f--,(o=t[l])&&(o.__u|=2)),o==null||o.__v===null?(l==-1&&h--,typeof s.type!="function"&&(s.__u|=4)):l!==a&&(l==a-1?h--:l==a+1?h++:(l>a?h--:h++,s.__u|=4))):s=i.__k[n]=null;if(f)for(n=0;n<c;n++)(o=t[n])!=null&&!(2&o.__u)&&(o.__e==r&&(r=kn(o)),xg(o,o));return r}function Dg(i,e,t){var r,n;if(typeof i.type=="function"){for(r=i.__k,n=0;r&&n<r.length;n++)r[n]&&(r[n].__=i,e=Dg(r[n],e,t));return e}i.__e!=e&&(e&&i.type&&!t.contains(e)&&(e=kn(i)),t.insertBefore(i.__e,e||null),e=i.__e);do e=e&&e.nextSibling;while(e!=null&&e.nodeType===8);return e}function Q_(i,e,t,r){var n=i.key,s=i.type,o=t-1,a=t+1,l=e[t];if(l===null||l&&n==l.key&&s===l.type&&!(2&l.__u))return t;if((typeof s!="function"||s===gi||n)&&r>(l!=null&&!(2&l.__u)?1:0))for(;o>=0||a<e.length;){if(o>=0){if((l=e[o])&&!(2&l.__u)&&n==l.key&&s===l.type)return o;o--}if(a<e.length){if((l=e[a])&&!(2&l.__u)&&n==l.key&&s===l.type)return a;a++}}return-1}function Xf(i,e,t){e[0]==="-"?i.setProperty(e,t??""):i[e]=t==null?"":typeof t!="number"||X_.test(e)?t:t+"px"}function _o(i,e,t,r,n){var s;e:if(e==="style")if(typeof t=="string")i.style.cssText=t;else{if(typeof r=="string"&&(i.style.cssText=r=""),r)for(e in r)t&&e in t||Xf(i.style,e,"");if(t)for(e in t)r&&t[e]===r[e]||Xf(i.style,e,t[e])}else if(e[0]==="o"&&e[1]==="n")s=e!==(e=e.replace(yg,"$1")),e=e.toLowerCase()in i||e==="onFocusOut"||e==="onFocusIn"?e.toLowerCase().slice(2):e.slice(2),i.l||(i.l={}),i.l[e+s]=t,t?r?t.u=r.u:(t.u=gc,i.addEventListener(e,s?vu:mu,s)):i.removeEventListener(e,s?vu:mu,s);else{if(n=="http://www.w3.org/2000/svg")e=e.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if(e!="width"&&e!="height"&&e!="href"&&e!="list"&&e!="form"&&e!="tabIndex"&&e!="download"&&e!="rowSpan"&&e!="colSpan"&&e!="role"&&e!="popover"&&e in i)try{i[e]=t??"";break e}catch{}typeof t=="function"||(t==null||t===!1&&e[4]!=="-"?i.removeAttribute(e):i.setAttribute(e,e=="popover"&&t==1?"":t))}}function Kf(i){return function(e){if(this.l){var t=this.l[e.type+i];if(e.t==null)e.t=gc++;else if(e.t<t.u)return;return t(Me.event?Me.event(e):e)}}}function yc(i,e,t,r,n,s,o,a,l,u){var c,f,h,d,g,p,m,y,b,v,_,D,S,C,w,x,P,T=e.type;if(e.constructor!==void 0)return null;128&t.__u&&(l=!!(32&t.__u),s=[a=e.__e=t.__e]),(c=Me.__b)&&c(e);e:if(typeof T=="function")try{if(y=e.props,b="prototype"in T&&T.prototype.render,v=(c=T.contextType)&&r[c.__c],_=c?v?v.props.value:c.__:r,t.__c?m=(f=e.__c=t.__c).__=f.__E:(b?e.__c=f=new T(y,_):(e.__c=f=new ci(y,_),f.constructor=T,f.render=Z_),v&&v.sub(f),f.props=y,f.state||(f.state={}),f.context=_,f.__n=r,h=f.__d=!0,f.__h=[],f._sb=[]),b&&f.__s==null&&(f.__s=f.state),b&&T.getDerivedStateFromProps!=null&&(f.__s==f.state&&(f.__s=si({},f.__s)),si(f.__s,T.getDerivedStateFromProps(y,f.__s))),d=f.props,g=f.
130state,f.__v=e,h)b&&T.getDerivedStateFromProps==null&&f.componentWillMount!=null&&f.componentWillMount(),b&&f.componentDidMount!=null&&f.__h.push(f.componentDidMount);else{if(b&&T.getDerivedStateFromProps==null&&y!==d&&f.componentWillReceiveProps!=null&&f.componentWillReceiveProps(y,_),!f.__e&&(f.shouldComponentUpdate!=null&&f.shouldComponentUpdate(y,f.__s,_)===!1||e.__v===t.__v)){for(e.__v!==t.__v&&(f.props=y,f.state=f.__s,f.__d=!1),e.__e=t.__e,e.__k=t.__k,e.__k.some(function(O){O&&(O.__=e)}),D=0;D<f._sb.length;D++)f.__h.push(f._sb[D]);f._sb=[],f.__h.length&&o.push(f);break e}f.componentWillUpdate!=null&&f.componentWillUpdate(y,f.__s,_),b&&f.componentDidUpdate!=null&&f.__h.push(function(){f.componentDidUpdate(d,g,p)})}if(f.context=_,f.props=y,f.__P=i,f.__e=!1,S=Me.__r,C=0,b){for(f.state=f.__s,f.__d=!1,S&&S(e),c=f.render(f.props,f.state,f.context),w=0;w<f._sb.length;w++)f.__h.push(f._sb[w]);f._sb=[]}else do f.__d=!1,S&&S(e),c=f.render(f.props,f.state,f.context),f.state=f.__s;while(f.__d&&++C<25);f.state=f.__s,f.getChildContext!=null&&(r=si(si({},r),f.getChildContext())),b&&!h&&f.getSnapshotBeforeUpdate!=null&&(p=f.getSnapshotBeforeUpdate(d,g)),a=wg(i,mc(x=c!=null&&c.type===gi&&c.key==null?c.props.children:c)?x:[x],e,t,r,n,s,o,a,l,u),f.base=e.__e,e.__u&=-161,f.__h.length&&o.push(f),m&&(f.__E=f.__=null)}catch(O){if(e.__v=null,l||s!=null)if(O.then){for(e.__u|=l?160:128;a&&a.nodeType===8&&a.nextSibling;)a=a.nextSibling;s[s.indexOf(a)]=null,e.__e=a}else for(P=s.length;P--;)vc(s[P]);else e.__e=t.__e,e.__k=t.__k;Me.__e(O,e,t)}else s==null&&e.__v===t.__v?(e.__k=t.__k,e.__e=t.__e):a=e.__e=J_(t.__e,e,t,r,n,s,o,l,u);return(c=Me.diffed)&&c(e),128&e.__u?void 0:a}function Sg(i,e,t){for(var r=0;r<t.length;r++)bc(t[r],t[++r],t[++r]);Me.__c&&Me.__c(e,i),i.some(function(n){try{i=n.__h,n.__h=[],i.some(function(s){s.call(n)})}catch(s){Me.__e(s,n.__v)}})}function J_(i,e,t,r,n,s,o,a,l){var u,c,f,h,d,g,p,m=t.props,y=e.props,b=e.type;if(b==="svg"?n="http://www.w3.org/2000/svg":b==="math"?n="http://www.w3.org/1998/Math/MathML":n||(n="http://www.w3.org/1999/xhtml"),s!=null){for(u=0;u<s.length;u++)if((d=s[u])&&"setAttribute"in d==!!b&&(b?d.localName===b:d.nodeType===3)){i=d,s[u]=null;break}}if(i==null){if(b===null)return document.createTextNode(y);i=document.createElementNS(n,b,y.is&&y),a&&(Me.__m&&Me.__m(e,s),a=!1),s=null}if(b===null)m===y||a&&i.data===y||(i.data=y);else{if(s=s&&Ha.call(i.childNodes),m=t.props||ks,!a&&s!=null)for(m={},u=0;u<i.attributes.length;u++)m[(d=i.attributes[u]).name]=d.value;for(u in m)if(d=m[u],u!="children"){if(u=="dangerouslySetInnerHTML")f=d;else if(!(u in y)){if(u=="value"&&"defaultValue"in y||u=="checked"&&"defaultChecked"in y)continue;_o(i,u,null,d,n)}}for(u in y)d=y[u],u=="children"?h=d:u=="dangerouslySetInnerHTML"?c=d:u=="value"?g=d:u=="checked"?p=d:a&&typeof d!="function"||m[u]===d||_o(i,u,d,m[u],n);if(c)a||f&&(c.__html===f.__html||c.__html===i.innerHTML)||(i.innerHTML=c.__html),e.__k=[];else if(f&&(i.innerHTML=""),wg(i,mc(h)?h:[h],e,t,r,b==="foreignObject"?"http://www.w3.org/1999/xhtml":n,s,o,s?s[0]:t.__k&&kn(t,0),a,l),s!=null)for(u=s.length;u--;)vc(s[u]);a||(u="value",b==="progress"&&g==null?i.removeAttribute("value"):g!==void 0&&(g!==i[u]||b==="progress"&&!g||b==="option"&&g!==m[u])&&_o(i,u,g,m[u],n),u="checked",p!==void 0&&p!==i[u]&&_o(i,u,p,m[u],n))}return i}function bc(i,e,t){try{if(typeof i=="function"){var r=typeof i.__u=="function";r&&i.__u(),r&&e==null||(i.__u=i(e))}else i.current=e}catch(n){Me.__e(n,t)}}function xg(i,e,t){var r,n;if(Me.unmount&&Me.unmount(i),(r=i.ref)&&(r.current&&r.current!==i.__e||bc(r,null,e)),(r=i.__c)!=null){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(s){Me.__e(s,e)}r.base=r.__P=null}if(r=i.__k)for(n=0;n<r.length;n++)r[n]&&xg(r[n],e,t||typeof i.type!="function");t||vc(i.__e),i.__c=i.__=i.__e=void 0}function Z_(i,e,t){return this.constructor(i,t)}function Bn(i,e,t){var r,n,s,o;e===document&&(e=document.documentElement),Me.__&&Me.__(i,e),n=(r=typeof t=="function")?null:e.__k,s=[],o=[],yc(e,i=(!r&&t||e).__k=U(gi,null,[i]),n||ks,ks,e.namespaceURI,!r&&t?[t]:n?null:e.firstChild?Ha.call(e.childNodes):null,
130s,!r&&t?t:n?n.__e:e.firstChild,r,o),Sg(s,i,o)}Ha=bg.slice,Me={__e:function(i,e,t,r){for(var n,s,o;e=e.__;)if((n=e.__c)&&!n.__)try{if((s=n.constructor)&&s.getDerivedStateFromError!=null&&(n.setState(s.getDerivedStateFromError(i)),o=n.__d),n.componentDidCatch!=null&&(n.componentDidCatch(i,r||{}),o=n.__d),o)return n.__E=n}catch(a){i=a}throw i}},mg=0,ci.prototype.setState=function(i,e){var t;t=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=si({},this.state),typeof i=="function"&&(i=i(si({},t),this.props)),i&&si(t,i),i!=null&&this.__v&&(e&&this._sb.push(e),Uf(this))},ci.prototype.forceUpdate=function(i){this.__v&&(this.__e=!0,i&&this.__h.push(i),Uf(this))},ci.prototype.render=gi,Ci=[],vg=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,gu=function(i,e){return i.__v.__b-e.__v.__b},ba.__r=0,yg=/(PointerCapture)$|Capture$/i,gc=0,mu=Kf(!1),vu=Kf(!0);function Ls(i){"@babel/helpers - typeof";return Ls=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ls(i)}function Qf(i,e){var t=Object.keys(i);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(i);e&&(r=r.filter(function(n){return Object.getOwnPropertyDescriptor(i,n).enumerable})),t.push.apply(t,r)}return t}function ew(i){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?Qf(Object(t),!0).forEach(function(r){tw(i,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(i,Object.getOwnPropertyDescriptors(t)):Qf(Object(t)).forEach(function(r){Object.defineProperty(i,r,Object.getOwnPropertyDescriptor(t,r))})}return i}function tw(i,e,t){return e=rw(e),e in i?Object.defineProperty(i,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):i[e]=t,i}function rw(i){var e=iw(i,"string");return Ls(e)==="symbol"?e:String(e)}function iw(i,e){if(Ls(i)!=="object"||i===null)return i;var t=i[Symbol.toPrimitive];if(t!==void 0){var r=t.call(i,e||"default");if(Ls(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(i)}function Jf(i){return aw(i)||ow(i)||sw(i)||nw()}function nw(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 131In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function sw(i,e){if(i){if(typeof i=="string")return yu(i,e);var t=Object.prototype.toString.call(i).slice(8,-1);if(t==="Object"&&i.constructor&&(t=i.constructor.name),t==="Map"||t==="Set")return Array.from(i);if(t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return yu(i,e)}}function ow(i){if(typeof Symbol<"u"&&i[Symbol.iterator]!=null||i["@@iterator"]!=null)return Array.from(i)}function aw(i){if(Array.isArray(i))return yu(i)}function yu(i,e){(e==null||e>i.length)&&(e=i.length);for(var t=0,r=new Array(e);t<e;t++)r[t]=i[t];return r}function lw(i){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},t=Nd([].concat(Jf(Object.keys(i||{})),Jf(Object.keys(e))));return t.reduce(function(r,n){var s=i?i[n]:void 0,o=e[n],a=o!==void 0&&o!==s;return r.templates[n]=a?o:s,r.useCustomCompileOptions[n]=a,r},{templates:{},useCustomCompileOptions:{}})}function Pg(i){var e=i.defaultTemplates,t=i.templates,r=i.templatesConfig,n=lw(e,t);return ew({templatesConfig:r},n)}var Cg={};(function(i){(function(e){var t=/\S/,r=/\"/g,n=/\n/g,s=/\r/g,o=/\\/g,a=/\u2028/,l=/\u2029/;e.tags={"#":1,"^":2,"<":3,$:4,"/":5,"!":6,">":7,"=":8,_v:9,"{":10,"&":11,_t:12},e.scan=function(x,P){var T=x.length,O=0,A=1,N=2,I=O,B=null,W=null,V="",M=[],$=!1,q=0,ne=0,le="{{",re="}}";function Z(){V.length>0&&(M.push({tag:"_t",text:new String(V)}),V="")}function pe(){for(var R=!0,k=ne;k<M.length;k++)if(R=e.tags[M[k].tag]<e.tags._v||M[k].tag=="_t"&&M[k].text.match(t)===null,!R)return!1;return R}
vendor: 7,106 bytes, lines 131-135
131function ue(R,k){if(Z(),R&&pe())for(var j=ne,H;j<M.length;j++)M[j].text&&((H=M[j+1])&&H.tag==">"&&(H.indent=M[j].text.toString()),M.splice(j,1));else k||M.push({tag:` 132`});$=!1,ne=M.length}function F(R,k){var j="="+re,H=R.indexOf(j,k),G=c(R.substring(R.indexOf("=",k)+1,H)).split(" ");return le=G[0],re=G[G.length-1],H+j.length-1}for(P&&(P=P.split(" "),le=P[0],re=P[1]),q=0;q<T;q++)I==O?f(le,x,q)?(--q,Z(),I=A):x.charAt(q)==` 133`?ue($):V+=x.charAt(q):I==A?(q+=le.length-1,W=e.tags[x.charAt(q+1)],B=W?x.charAt(q+1):"_v",B=="="?(q=F(x,q),I=O):(W&&q++,I=N),$=q):f(re,x,q)?(M.push({tag:B,n:c(V),otag:le,ctag:re,i:B=="/"?$-le.length:q+re.length}),V="",q+=re.length-1,I=O,B=="{"&&(re=="}}"?q++:u(M[M.length-1]))):V+=x.charAt(q);return ue($,!0),M};function u(w){w.n.substr(w.n.length-1)==="}"&&(w.n=w.n.substring(0,w.n.length-1))}function c(w){return w.trim?w.trim():w.replace(/^\s*|\s*$/g,"")}function f(w,x,P){if(x.charAt(P)!=w.charAt(0))return!1;for(var T=1,O=w.length;T<O;T++)if(x.charAt(P+T)!=w.charAt(T))return!1;return!0}var h={_t:!0,"\n":!0,$:!0,"/":!0};function d(w,x,P,T){var O=[],A=null,N=null,I=null;for(N=P[P.length-1];w.length>0;){if(I=w.shift(),N&&N.tag=="<"&&!(I.tag in h))throw new Error("Illegal content in < super tag.");if(e.tags[I.tag]<=e.tags.$||g(I,T))P.push(I),I.nodes=d(w,I.tag,P,T);else if(I.tag=="/"){if(P.length===0)throw new Error("Closing tag without opener: /"+I.n);if(A=P.pop(),I.n!=A.n&&!p(I.n,A.n,T))throw new Error("Nesting error: "+A.n+" vs. "+I.n);return A.end=I.i,O}else I.tag==` 134`&&(I.last=w.length==0||w[0].tag==` 135`);O.push(I)}if(P.length>0)throw new Error("missing closing tag: "+P.pop().n);return O}function g(w,x){for(var P=0,T=x.length;P<T;P++)if(x[P].o==w.n)return w.tag="#",!0}function p(w,x,P){for(var T=0,O=P.length;T<O;T++)if(P[T].c==w&&P[T].o==x)return!0}function m(w){var x=[];for(var P in w)x.push('"'+v(P)+'": function(c,p,t,i) {'+w[P]+"}");return"{ "+x.join(",")+" }"}function y(w){var x=[];for(var P in w.partials)x.push('"'+v(P)+'":{name:"'+v(w.partials[P].name)+'", '+y(w.partials[P])+"}");return"partials: {"+x.join(",")+"}, subs: "+m(w.subs)}e.stringify=function(w,x,P){return"{code: function (c,p,i) { "+e.wrapMain(w.code)+" },"+y(w)+"}"};var b=0;e.generate=function(w,x,P){b=0;var T={code:"",subs:{},partials:{}};return e.walk(w,T),P.asString?this.stringify(T,x,P):this.makeTemplate(T,x,P)},e.wrapMain=function(w){return'var t=this;t.b(i=i||"");'+w+"return t.fl();"},e.template=e.Template,e.makeTemplate=function(w,x,P){var T=this.makePartials(w);return T.code=new Function("c","p","i",this.wrapMain(w.code)),new this.template(T,x,this,P)},e.makePartials=function(w){var x,P={subs:{},partials:w.partials,name:w.name};for(x in P.partials)P.partials[x]=this.makePartials(P.partials[x]);for(x in w.subs)P.subs[x]=new Function("c","p","t","i",w.subs[x]);return P};function v(w){return w.replace(o,"\\\\").replace(r,'\\"').replace(n,"\\n").replace(s,"\\r").replace(a,"\\u2028").replace(l,"\\u2029")}function _(w){return~w.indexOf(".")?"d":"f"}function D(w,x){var P="<"+(x.prefix||""),T=P+w.n+b++;return x.partials[T]={name:w.n,partials:{}},x.code+='t.b(t.rp("'+v(T)+'",c,p,"'+(w.indent||"")+'"));',T}e.codegen={"#":function(w,x){x.code+="if(t.s(t."+_(w.n)+'("'+v(w.n)+'",c,p,1),c,p,0,'+w.i+","+w.end+',"'+w.otag+" "+w.ctag+'")){t.rs(c,p,function(c,p,t){',e.walk(w.nodes,x),x.code+="});c.pop();}"},"^":function(w,x){x.code+="if(!t.s(t."+_(w.n)+'("'+v(w.n)+'",c,p,1),c,p,1,0,0,"")){',e.walk(w.nodes,x),x.code+="};"},">":D,"<":function(w,x){var P={partials:{},code:"",subs:{},inPartial:!0};e.walk(w.nodes,P);var T=x.partials[D(w,x)];T.subs=P.subs,T.partials=P.partials},$:function(w,x){var P={subs:{},code:"",partials:x.partials,prefix:w.n};e.walk(w.nodes,P),x.subs[w.n]=P.code,x.inPartial||(x.code+='t.sub("'+v(w.n)+'",c,p,i);')},"\n":function(w,x){x.code+=C('"\\n"'+(w.last?"":" + i"))},_v:function(w,x){x.code+="t.b(t.v(t."+_(w.n)+'("'+v(w.n)+'",c,p,0)));'},_t:function(w,x){x.code+=C('"'+v(w.text)+'"')},"{":S,"&":S};function S(w,x){x.code+="t.b(t.t(t."+_(w.n)+'("'+v(w.n)+'",c,p,0)));'}function C(w){return"t.b("+w+");"}e.walk=function(w,x){for(var P,T=0,O=w.length;T<O;T++)P=e.codegen[w[T].tag],P&&P(w[T],x);return x},e.parse=function(w,x,P){return P=P||{},d(w,"",[],P.sectionTags||[])},e.cache={},e.cacheKey=function(w,x){return[w,!!x.asString,!!x.disableLambda,x.delimiters,!!x.modelGet].join("||")},e.compile=function(w,x){x=x||{};var P=e.cacheKey(w,x),T=this.cache[P];if(T){var O=T.partials;for(var A in O)delete O[A].instance;return T}return T=this.generate(this.parse(this.scan(w,x.delimiters),w,x),w,x),this.cache[P]=T}})(i)})(Cg);var Tg={};(function(i){(function(e){e.Template=function(d,g,p,m){d=d||{},this.r=d.code||this.r,this.c=p,this.options=m||{},this.text=g||"",this.partials=d.partials||{},this.subs=d.subs||{},this.buf=""},e.Template.prototype={r:function(d,g,p){return""},v:f,t:c,render:function(g,p,m){return this.ri([g],p||{},m)},ri:function(d,g,p){return this.r(d,g,p)},ep:function(d,g){var p=this.partials[d],m=g[p.name];if(p.instance&&p.base==m)return p.instance;if(typeof m=="string"){if(!this.c)throw new Error("No compiler available.");m=this.c.compile(m,this.options)}if(!m)return null;if(this.partials[d].base=m,p.subs){g.stackText||(g.stackText={});for(key in p.subs)g.stackText[key]||(g.stackText[key]=this.activeSub!==void 0&&g.stackText[this.activeSub]?g.stackText[this.activeSub]:this.text);m=r(m,p.subs,p.partials,this.stackSubs,this.stackPartials,g.stackText)}return this.partials[d].instance=m,m},rp:function(d,g,p,m){var y=this.ep(d,p);return y?y.ri(g,p,m):""},rs:function(d,g,p){var m=d[d.length-1];if(!h(m)){p(d,g,this);return}for(var y=0;y<m.length;y++)d.push(m[y]),p(d,g,this),d.pop()},s:function(d,g,p,m,y,b,v){var _;return h(d)&&d.length===0?!1:(typeof d=="function"&&(d=this.ms(d,g,p,m,y,b,v)),_=!!d,!m&&_&&g&&g.push(typeof d=="object"?d:g[g.length-1]),_)},d:function(d,g,p,m){var y,b=d.split("."),v=this.f(b[0],g,p,m),_=this.options.modelGet,D=null;if(d==="."&&h(g[g.length-2]))v=g[g.length-1];else for(var S=1;S<b.length;S++)y=t(b[S],v,_),y!==void 0?(D=v,v=y):v="";return m&&!v?!1:(!m&&typeof v=="function"&&(g.push(D),v=this.mv(v,g,p),g.pop()),v)},f:function(d,g,p,m){for(var y=!1,b=null,v=!1,_=this.options.modelGet,D=g.length-1;D>=0;D--)if(b=g[D],y=t(d,b,_),y!==void 0){v=!0;break}return v?(!m&&typeof y=="function"&&(y=this.mv(y,g,p)),y):m?!1:""},ls:function(d,g,p,m,y){var b=this.options.delimiters;return this.options.delimiters=y,this.b(this.ct(c(d.call(g,m)),g,p)),this.options.delimiters=b,!1},ct:function(d,g,p){if(this.options.disableLambda)throw new Error("Lambda features disabled.");return this.c.compile(d,this.options).render(g,p)},b:function(d){this.buf+=d},fl:function(){var d=this.buf;return this.buf="",d},ms:function(d,g,p,m,y,b,v){var _,D=g[g.length-1],S=d.call(D);return typeof S=="function"?m?!0:(_=this.activeSub&&this.subsText&&this.subsText[this.activeSub]?this.subsText[this.activeSub]:this.text,this.ls(S,D,p,_.substring(y,b),v)):S},mv:function(d,g,p){var m=g[g.length-1],y=d.call(m);return typeof y=="function"?this.ct(c(y.call(m)),m,p):y},sub:function(d,g,p,m){var y=this.subs[d];
135y&&(this.activeSub=d,y(g,p,this,m),this.activeSub=!1)}};function t(d,g,p){var m;return g&&typeof g=="object"&&(g[d]!==void 0?m=g[d]:p&&g.get&&typeof g.get=="function"&&(m=g.get(d))),m}function r(d,g,p,m,y,b){function v(){}v.prototype=d;function _(){}_.prototype=d.subs;var D,S=new v;S.subs=new _,S.subsText={},S.buf="",m=m||{},S.stackSubs=m,S.subsText=b;for(D in g)m[D]||(m[D]=g[D]);for(D in m)S.subs[D]=m[D];y=y||{},S.stackPartials=y;for(D in p)y[D]||(y[D]=p[D]);for(D in y)S.partials[D]=y[D];return S}var n=/&/g,s=/</g,o=/>/g,a=/\'/g,l=/\"/g,u=/[&<>\"\']/;function c(d){return String(d??"")}function f(d){return d=c(d),u.test(d)?d.replace(n,"&").replace(s,"<").replace(o,">").replace(a,"'").replace(l,"""):d}var h=Array.isArray||function(d){return Object.prototype.toString.call(d)==="[object Array]"}})(i)})(Tg);var _a=Cg;_a.Template=Tg.Template;_a.template=_a.Template;var uw=_a;const Eg=Id(uw);var Og=function(i,e,t,r){var n;e[0]=0;for(var s=1;s<e.length;s++){var o=e[s++],a=e[s]?(e[0]|=o?1:2,t[e[s++]]):e[++s];o===3?r[0]=a:o===4?r[1]=Object.assign(r[1]||{},a):o===5?(r[1]=r[1]||{})[e[++s]]=a:o===6?r[1][e[++s]]+=a+"":o?(n=i.apply(a,Og(i,a,t,["",null])),r.push(n),a[0]?e[0]|=2:(e[s-2]=0,e[s]=n)):r.push(a)}return r},Zf=new Map;function cw(i){var e=Zf.get(this);return e||(e=new Map,Zf.set(this,e)),(e=Og(this,e.get(i)||(e.set(i,e=function(t){for(var r,n,s=1,o="",a="",l=[0],u=function(h){s===1&&(h||(o=o.replace(/^\s*\n\s*|\s*\n\s*$/g,"")))?l.push(0,h,o):s===3&&(h||o)?(l.push(3,h,o),s=2):s===2&&o==="..."&&h?l.push(4,h,0):s===2&&o&&!h?l.push(5,0,!0,o):s>=5&&((o||!h&&s===5)&&(l.push(s,0,o,n),s=6),h&&(l.push(s,h,0,n),s=6)),o=""},c=0;c<t.length;c++){c&&(s===1&&u(),u(c));for(var f=0;f<t[c].length;f++)r=t[c][f],s===1?r==="<"?(u(),l=[l],s=3):o+=r:s===4?o==="--"&&r===">"?(s=1,o=""):o=r+o[0]:a?r===a?a="":o+=r:r==='"'||r==="'"?a=r:r===">"?(u(),s=1):s&&(r==="="?(s=5,n=o,o=""):r==="/"&&(s<5||t[c][f+1]===">")?(u(),s===3&&(l=l[0]),s=l,(l=l[0]).push(2,0,s),s=0):r===" "||r===" "||r===` 136`||r==="\r"?(u(),s=2):o+=r),s===3&&o==="!--"&&(s=4,l=l[0])}return u(),l}(i)),e),arguments,[])).length>1?e:e[0]}var fw=cw.bind(U),za=U_({createElement:U,Fragment:gi}),dw=["classNames"];function bu(){return bu=Object.assign?Object.assign.bind():function(i){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(i[r]=t[r])}return i},bu.apply(this,arguments)}function hw(i,e){if(i==null)return{};var t=pw(i,e),r,n;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(i);for(n=0;n<s.length;n++)r=s[n],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(i,r)&&(t[r]=i[r])}return t}function pw(i,e){if(i==null)return{};var t={},r=Object.keys(i),n,s;for(s=0;s<r.length;s++)n=r[s],!(e.indexOf(n)>=0)&&(t[n]=i[n]);return t}function gw(i){var e=i.classNames,t=e===void 0?{}:e,r=hw(i,dw);return U(za,bu({classNames:{root:X("ais-Highlight",t.root),highlighted:X("ais-Highlight-highlighted",t.highlighted),nonHighlighted:X("ais-Highlight-nonHighlighted",t.nonHighlighted),separator:X("ais-Highlight-separator",t.separator)}},r))}var mw=["hit","attribute","cssClasses"];function _u(){return _u=Object.assign?Object.assign.bind():function(i){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(i[r]=t[r])}return i},_u.apply(this,arguments)}function vw(i,e){if(i==null)return{};var t=yw(i,e),r,n;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(i);for(n=0;n<s.length;n++)r=s[n],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(i,r)&&(t[r]=i[r])}return t}function yw(i,e){if(i==null)return{};var t={},r=Object.keys(i),n,s;for(s=0;s<r.length;s++)n=r[s],!(e.indexOf(n)>=0)&&(t[n]=i[n]);return t}function bw(i){var e=i.hit,t=i.attribute,r=i.cssClasses,n=vw(i,mw),s=Ta(e._highlightResult,t)||[],o=$a(s),a=o.map(function(l){var u=l.value;return Ea(Oa(u||""))});return U(gw,_u({},n,{parts:a,classNames:r}))}var _w=["classNames"];function wu(){return wu=Object.assign?Object.assign.bind():function(i){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(i[r]=t[r])}return i},wu.apply(this,arguments)}function ww(i,e){if(i==null)return{};var t=Dw(i,e),r,n;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(i);for(n=0;n<s.length;n++)r=s[n],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(i,r)&&(t[r]=i[r])}return t}function Dw(i,e){if(i==null)return{};var t={},r=Object.keys(i),n,s;for(s=0;s<r.length;s++)n=r[s],!(e.indexOf(n)>=0)&&(t[n]=i[n]);return t}function Sw(i){var e=i.classNames,t=e===void 0?{}:e,r=ww(i,_w);return U(za,wu({classNames:{root:X("ais-ReverseHighlight",t.root),highlighted:X("ais-ReverseHighlight-highlighted",t.highlighted),nonHighlighted:X("ais-ReverseHighlight-nonHighlighted",t.nonHighlighted),separator:X("ais-ReverseHighlight-separator",t.separator)}},r))}function Fs(i){"@babel/helpers - typeof";return Fs=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Fs(i)}
136var xw=["hit","attribute","cssClasses"],Pw=["isHighlighted"];function Du(){return Du=Object.assign?Object.assign.bind():function(i){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(i[r]=t[r])}return i},Du.apply(this,arguments)}function ed(i,e){var t=Object.keys(i);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(i);e&&(r=r.filter(function(n){return Object.getOwnPropertyDescriptor(i,n).enumerable})),t.push.apply(t,r)}return t}function td(i){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?ed(Object(t),!0).forEach(function(r){Cw(i,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(i,Object.getOwnPropertyDescriptors(t)):ed(Object(t)).forEach(function(r){Object.defineProperty(i,r,Object.getOwnPropertyDescriptor(t,r))})}return i}function Cw(i,e,t){return e=Tw(e),e in i?Object.defineProperty(i,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):i[e]=t,i}function Tw(i){var e=Ew(i,"string");return Fs(e)==="symbol"?e:String(e)}function Ew(i,e){if(Fs(i)!=="object"||i===null)return i;var t=i[Symbol.toPrimitive];if(t!==void 0){var r=t.call(i,e||"default");if(Fs(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(i)}function rd(i,e){if(i==null)return{};var t=Ow(i,e),r,n;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(i);for(n=0;n<s.length;n++)r=s[n],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(i,r)&&(t[r]=i[r])}return t}function Ow(i,e){if(i==null)return{};var t={},r=Object.keys(i),n,s;for(s=0;s<r.length;s++)n=r[s],!(e.indexOf(n)>=0)&&(t[n]=i[n]);return t}function $w(i){var e=i.hit,t=i.attribute,r=i.cssClasses,n=rd(i,xw),s=Ta(e._highlightResult,t)||[],o=$a(s),a=o.map(function(l){var u=l.value;return Ea(Oa(u||"")).map(function(c){var f=c.isHighlighted,h=rd(c,Pw);return td(td({},h),{},{isHighlighted:!f})})});return U(Sw,Du({},n,{parts:a,classNames:r}))}var Mw=["classNames"];function Su(){return Su=Object.assign?Object.assign.bind():function(i){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(i[r]=t[r])}return i},Su.apply(this,arguments)}function Aw(i,e){if(i==null)return{};var t=kw(i,e),r,n;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(i);for(n=0;n<s.length;n++)r=s[n],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(i,r)&&(t[r]=i[r])}return t}function kw(i,e){if(i==null)return{};var t={},r=Object.keys(i),n,s;for(s=0;s<r.length;s++)n=r[s],!(e.indexOf(n)>=0)&&(t[n]=i[n]);return t}function Lw(i){var e=i.classNames,t=e===void 0?{}:e,r=Aw(i,Mw);return U(za,Su({classNames:{root:X("ais-ReverseSnippet",t.root),highlighted:X("ais-ReverseSnippet-highlighted",t.highlighted),nonHighlighted:X("ais-ReverseSnippet-nonHighlighted",t.nonHighlighted),separator:X("ais-ReverseSnippet-separator",t.separator)}},r))}function Is(i){"@babel/helpers - typeof";return Is=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Is(i)}var Fw=["hit","attribute","cssClasses"],Iw=["isHighlighted"];function xu(){return xu=Object.assign?Object.assign.bind():function(i){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(i[r]=t[r])}return i},xu.apply(this,arguments)}function id(i,e){var t=Object.keys(i);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(i);e&&(r=r.filter(function(n){return Object.getOwnPropertyDescriptor(i,n).enumerable})),t.push.apply(t,r)}return t}function nd(i){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?id(Object(t),!0).forEach(function(r){Nw(i,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(i,Object.getOwnPropertyDescriptors(t)):id(Object(t)).forEach(function(r){Object.defineProperty(i,r,Object.getOwnPropertyDescriptor(t,r))})}return i}function Nw(i,e,t){return e=Rw(e),e in i?Object.defineProperty(i,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):i[e]=t,i}function Rw(i){var e=Bw(i,"string");return Is(e)==="symbol"?e:String(e)}function Bw(i,e){if(Is(i)!=="object"||i===null)return i;var t=i[Symbol.toPrimitive];if(t!==void 0){var r=t.call(i,e||"default");if(Is(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(i)}function sd(i,e){if(i==null)return{};var t=jw(i,e),r,n;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(i);for(n=0;n<s.length;n++)r=s[n],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(i,r)&&(t[r]=i[r])}return t}function jw(i,e){if(i==null)return{};var t={},r=Object.keys(i),n,s;for(s=0;s<r.length;s++)n=r[s],!(e.indexOf(n)>=0)&&(t[n]=i[n]);return t}
136function Hw(i){var e=i.hit,t=i.attribute,r=i.cssClasses,n=sd(i,Fw),s=Ta(e._snippetResult,t)||[],o=$a(s),a=o.map(function(l){var u=l.value;return Ea(Oa(u||"")).map(function(c){var f=c.isHighlighted,h=sd(c,Iw);return nd(nd({},h),{},{isHighlighted:!f})})});return U(Lw,xu({},n,{parts:a,classNames:r}))}var zw=["classNames"];function Pu(){return Pu=Object.assign?Object.assign.bind():function(i){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(i[r]=t[r])}return i},Pu.apply(this,arguments)}function Vw(i,e){if(i==null)return{};var t=Ww(i,e),r,n;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(i);for(n=0;n<s.length;n++)r=s[n],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(i,r)&&(t[r]=i[r])}return t}function Ww(i,e){if(i==null)return{};var t={},r=Object.keys(i),n,s;for(s=0;s<r.length;s++)n=r[s],!(e.indexOf(n)>=0)&&(t[n]=i[n]);return t}function qw(i){var e=i.classNames,t=e===void 0?{}:e,r=Vw(i,zw);return U(za,Pu({classNames:{root:X("ais-Snippet",t.root),highlighted:X("ais-Snippet-highlighted",t.highlighted),nonHighlighted:X("ais-Snippet-nonHighlighted",t.nonHighlighted),separator:X("ais-Snippet-separator",t.separator)}},r))}var Gw=["hit","attribute","cssClasses"];function Cu(){return Cu=Object.assign?Object.assign.bind():function(i){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(i[r]=t[r])}return i},Cu.apply(this,arguments)}function Yw(i,e){if(i==null)return{};var t=Uw(i,e),r,n;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(i);for(n=0;n<s.length;n++)r=s[n],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(i,r)&&(t[r]=i[r])}return t}function Uw(i,e){if(i==null)return{};var t={},r=Object.keys(i),n,s;for(s=0;s<r.length;s++)n=r[s],!(e.indexOf(n)>=0)&&(t[n]=i[n]);return t}function Xw(i){var e=i.hit,t=i.attribute,r=i.cssClasses,n=Yw(i,Gw),s=Ta(e._snippetResult,t)||[],o=$a(s),a=o.map(function(l){var u=l.value;return Ea(Oa(u||""))});return U(qw,Cu({},n,{parts:a,classNames:r}))}function Ln(i){"@babel/helpers - typeof";return Ln=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ln(i)}function od(i,e){var t=Object.keys(i);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(i);e&&(r=r.filter(function(n){return Object.getOwnPropertyDescriptor(i,n).enumerable})),t.push.apply(t,r)}return t}function wa(i){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?od(Object(t),!0).forEach(function(r){$g(i,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(i,Object.getOwnPropertyDescriptors(t)):od(Object(t)).forEach(function(r){Object.defineProperty(i,r,Object.getOwnPropertyDescriptor(t,r))})}return i}function $g(i,e,t){return e=Kw(e),e in i?Object.defineProperty(i,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):i[e]=t,i}function Kw(i){var e=Qw(i,"string");return Ln(e)==="symbol"?e:String(e)}function Qw(i,e){if(Ln(i)!=="object"||i===null)return i;var t=i[Symbol.toPrimitive];if(t!==void 0){var r=t.call(i,e||"default");if(Ln(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(i)}function Jw(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},e=arguments.length>1?arguments[1]:void 0,t=arguments.length>2?arguments[2]:void 0;return Object.keys(i).reduce(function(r,n){return wa(wa({},r),{},$g({},n,function(){var s=this;return function(o){var a=function(u){return Eg.compile(u,e).render(s)};return i[n].call(t,o,a)}}))},{})}function Zw(i){var e=i.templates,t=i.templateKey,r=i.compileOptions,n=i.helpers,s=i.data,o=i.bindEvent,a=i.sendEvent,l=e[t];if(typeof l!="string"&&typeof l!="function")throw new Error("Template must be 'string' or 'function', was '".concat(Ln(l),"' (key: ").concat(t,")"));if(typeof l=="function"){var u=o||{};return u.html=fw,u.sendEvent=a,u.components={Highlight:bw,ReverseHighlight:$w,Snippet:Xw,ReverseSnippet:Hw},l(s,u)}var c=Jw(n,r,s);return Eg.compile(l,r).render(wa(wa({},s),{},{helpers:c}
136)).replace(/[ \n\r\t\f\xA0]+/g,function(f){return f.replace(/(^|\xA0+)[^\xA0]+/g,"$1 ")}).trim()}function Tu(){return Tu=Object.assign?Object.assign.bind():function(i){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(i[r]=t[r])}return i},Tu.apply(this,arguments)}function qi(i){"@babel/helpers - typeof";return qi=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},qi(i)}function eD(i){return nD(i)||iD(i)||rD(i)||tD()}function tD(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 137In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function rD(i,e){if(i){if(typeof i=="string")return Eu(i,e);var t=Object.prototype.toString.call(i).slice(8,-1);if(t==="Object"&&i.constructor&&(t=i.constructor.name),t==="Map"||t==="Set")return Array.from(i);if(t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return Eu(i,e)}}function iD(i){if(typeof Symbol<"u"&&i[Symbol.iterator]!=null||i["@@iterator"]!=null)return Array.from(i)}function nD(i){if(Array.isArray(i))return Eu(i)}function Eu(i,e){(e==null||e>i.length)&&(e=i.length);for(var t=0,r=new Array(e);t<e;t++)r[t]=i[t];return r}function Mg(i,e){if(!(i instanceof e))throw new TypeError("Cannot call a class as a function")}function sD(i,e){for(var t=0;t<e.length;t++){var r=e[t];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(i,Fg(r.key),r)}}function Ag(i,e,t){return e&&sD(i.prototype,e),Object.defineProperty(i,"prototype",{writable:!1}),i}function kg(i,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");i.prototype=Object.create(e&&e.prototype,{constructor:{value:i,writable:!0,configurable:!0}}),Object.defineProperty(i,"prototype",{writable:!1}),e&&Ou(i,e)}function Ou(i,e){return Ou=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,n){return r.__proto__=n,r},Ou(i,e)}function Lg(i){var e=aD();return function(){var r=Da(i),n;if(e){var s=Da(this).constructor;n=Reflect.construct(r,arguments,s)}else n=r.apply(this,arguments);return oD(this,n)}}function oD(i,e){if(e&&(qi(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return $u(i)}function $u(i){if(i===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return i}function aD(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Da(i){return Da=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Da(i)}function Mu(i,e,t){return e=Fg(e),e in i?Object.defineProperty(i,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):i[e]=t,i}function Fg(i){var e=lD(i,"string");return qi(e)==="symbol"?e:String(e)}function lD(i,e){if(qi(i)!=="object"||i===null)return i;var t=i[Symbol.toPrimitive];if(t!==void 0){var r=t.call(i,e||"default");if(qi(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(i)}var uD=function(i){kg(t,i);var e=Lg(t);function t(){var r;Mg(this,t);for(var n=arguments.length,s=new Array(n),o=0;o<n;o++)s[o]=arguments[o];return r=e.call.apply(e,[this].concat(s)),Mu($u(r),"ref",ya()),Mu($u(r),"nodes",[]),r}return Ag(t,[{key:"componentDidMount",value:function(){var n=new DocumentFragment,s=document.createElement("div");s.innerHTML=this.props.content,this.nodes=eD(s.childNodes),this.nodes.forEach(function(o){return n.appendChild(o)}),this.ref.current.replaceWith(n)}},{key:"componentWillUnmount",value:function(){this.nodes.forEach(function(n){if(n instanceof Element){n.outerHTML="";return}n.nodeValue=""}),this.nodes[0].nodeValue&&(this.nodes[0].nodeValue="")}},{key:"render",value:function(){return U("div",{ref:this.ref})}}]),t}(ci),cD={data:{},rootTagName:"div",useCustomCompileOptions:{},templates:{},templatesConfig:{}},kt=function(i){kg(t,i);var e=Lg(t);function t(){return Mg(this,t),e.apply(this,arguments)}return Ag(t,[{key:"shouldComponentUpdate",value:function(n){return!Vo(this.props.data,n.data)||this.props.templateKey!==n.templateKey||!Vo(this.props.rootProps,n.rootProps)}},{key:"render",value:function(){var n=this.props.rootTagName==="fragment"?gi:this.props.rootTagName,s=this.props.useCustomCompileOptions[this.props.templateKey],o=s?this.props.templatesConfig.compileOptions:{},a=Zw({templates:this.props.templates,templateKey:this.props.templateKey,compileOptions:o,helpers:this.props.templatesConfig.helpers,data:this.props.data,bindEvent:this.props.bindEvent,sendEvent:this.props.sendEvent});return a===null?null:qi(a)==="object"?U(n,this.props.rootProps,a):n===gi?U(uD,{content:a,key:Math.random()}):U(n,Tu({},this.props.rootProps,{dangerouslySetInnerHTML:{__html:a}}))}}]),t}(ci);Mu(kt,"defaultProps",cD);function Ns(i){"@babel/helpers - typeof";return Ns=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ns(i)}function ad(i,e){var t=Object.keys(i);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(i);e&&(r=r.filter(function(n){return Object.getOwnPropertyDescriptor(i,n).enumerable})),t.push.apply(t,r)}return t}function et(i){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};
137e%2?ad(Object(t),!0).forEach(function(r){Ig(i,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(i,Object.getOwnPropertyDescriptors(t)):ad(Object(t)).forEach(function(r){Object.defineProperty(i,r,Object.getOwnPropertyDescriptor(t,r))})}return i}function Ig(i,e,t){return e=fD(e),e in i?Object.defineProperty(i,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):i[e]=t,i}function fD(i){var e=dD(i,"string");return Ns(e)==="symbol"?e:String(e)}function dD(i,e){if(Ns(i)!=="object"||i===null)return i;var t=i[Symbol.toPrimitive];if(t!==void 0){var r=t.call(i,e||"default");if(Ns(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(i)}var hD=Tr({name:"configure",connector:!0});function ld(i,e){return i.setQueryParameters(Object.keys(e.searchParameters).reduce(function(t,r){return et(et({},t),{},Ig({},r,void 0))},{}))}var pD=function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:ur,t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:ur;return function(r){if(!r||!Kg(r.searchParameters))throw new Error(hD("The `searchParameters` option expects an object."));var n={};function s(o){return function(a){var l=ld(o.state,r),u=Wa(l,new Qs.SearchParameters(a));r.searchParameters=a,o.setState(u).search()}}return{$$type:"ais.configure",init:function(a){var l=a.instantSearchInstance;e(et(et({},this.getWidgetRenderState(a)),{},{instantSearchInstance:l}),!0)},render:function(a){var l=a.instantSearchInstance;e(et(et({},this.getWidgetRenderState(a)),{},{instantSearchInstance:l}),!1)},dispose:function(a){var l=a.state;return t(),ld(l,r)},getRenderState:function(a,l){var u,c=this.getWidgetRenderState(l);return et(et({},a),{},{configure:et(et({},c),{},{widgetParams:et(et({},c.widgetParams),{},{searchParameters:Wa(new Qs.SearchParameters((u=a.configure)===null||u===void 0?void 0:u.widgetParams.searchParameters),new Qs.SearchParameters(c.widgetParams.searchParameters)).getQueryParams()})})})},getWidgetRenderState:function(a){var l=a.helper;return n.refine||(n.refine=s(l)),{refine:n.refine,widgetParams:r}},getWidgetSearchParameters:function(a,l){var u=l.uiState;return Wa(a,new Qs.SearchParameters(et(et({},u.configure),r.searchParameters)))},getWidgetUiState:function(a){return et(et({},a),{},{configure:et(et({},a.configure),r.searchParameters)})}}}};function ud(i,e){var t=Object.keys(i);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(i);e&&(r=r.filter(function(n){return Object.getOwnPropertyDescriptor(i,n).enumerable})),t.push.apply(t,r)}return t}function tn(i){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?ud(Object(t),!0).forEach(function(r){gD(i,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(i,Object.getOwnPropertyDescriptors(t)):ud(Object(t)).forEach(function(r){Object.defineProperty(i,r,Object.getOwnPropertyDescriptor(t,r))})}return i}function gD(i,e,t){return e=mD(e),e in i?Object.defineProperty(i,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):i[e]=t,i}function mD(i){var e=vD(i,"string");return Fn(e)==="symbol"?e:String(e)}function vD(i,e){if(Fn(i)!=="object"||i===null)return i;var t=i[Symbol.toPrimitive];if(t!==void 0){var r=t.call(i,e||"default");if(Fn(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(i)}function Fn(i){"@babel/helpers - typeof";return Fn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Fn(i)}var wo=Tr({name:"dynamic-widgets",connector:!0}),yD=function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:ur;return Ma(e,wo()),function(r){var n=r.widgets,s=r.maxValuesPerFacet,o=s===void 0?20:s,a=r.facets,l=a===void 0?["*"]:a,u=r.transformItems,c=u===void 0?function(d){return d}:u,f=r.fallbackWidget;if(!(n&&Array.isArray(n)&&n.every(function(d){return Fn(d)==="object"})))throw new Error(wo("The `widgets` option expects an array of widgets."));if(!Array.isArray(l))throw new Error(wo("The `facets` option only accepts an array of facets, you passed ".concat(JSON.stringify(l))));var h=new Map;
137return{$$type:"ais.dynamicWidgets",init:function(g){n.forEach(function(p){var m=Rd(p,g);h.set(m,{widget:p,isMounted:!1})}),e(tn(tn({},this.getWidgetRenderState(g)),{},{instantSearchInstance:g.instantSearchInstance}),!0)},render:function(g){var p=g.parent,m=this.getWidgetRenderState(g),y=[],b=[];f&&m.attributesToRender.forEach(function(v){if(!h.has(v)){var _=f({attribute:v});h.set(v,{widget:_,isMounted:!1})}}),h.forEach(function(v,_){var D=v.widget,S=v.isMounted,C=m.attributesToRender.indexOf(_)>-1;!S&&C?(b.push(D),h.set(_,{widget:D,isMounted:!0})):S&&!C&&(y.push(D),h.set(_,{widget:D,isMounted:!1}))}),p.addWidgets(b),setTimeout(function(){return p.removeWidgets(y)},0),e(tn(tn({},m),{},{instantSearchInstance:g.instantSearchInstance}),!1)},dispose:function(g){var p=g.parent,m=[];h.forEach(function(y){var b=y.widget,v=y.isMounted;v&&m.push(b)}),p.removeWidgets(m),t()},getWidgetSearchParameters:function(g){return l.reduce(function(p,m){return p.addFacet(m)},g.setQueryParameters({maxValuesPerFacet:Math.max(o||0,g.maxValuesPerFacet||0)}))},getRenderState:function(g,p){return tn(tn({},g),{},{dynamicWidgets:this.getWidgetRenderState(p)})},getWidgetRenderState:function(g){var p,m,y,b,v=g.results;if(g.state,!v)return{attributesToRender:[],widgetParams:r};var _=c((p=(m=v.renderingContent)===null||m===void 0||(y=m.facetOrdering)===null||y===void 0||(b=y.facets)===null||b===void 0?void 0:b.order)!==null&&p!==void 0?p:[],{results:v});if(!Array.isArray(_))throw new Error(wo("The `transformItems` option expects a function that returns an Array."));return{attributesToRender:_,widgetParams:r}}}}};function Rs(i){"@babel/helpers - typeof";return Rs=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Rs(i)}var bD=["container","widgets","fallbackWidget"];function cd(i,e){var t=Object.keys(i);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(i);e&&(r=r.filter(function(n){return Object.getOwnPropertyDescriptor(i,n).enumerable})),t.push.apply(t,r)}return t}function Do(i){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?cd(Object(t),!0).forEach(function(r){_D(i,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(i,Object.getOwnPropertyDescriptors(t)):cd(Object(t)).forEach(function(r){Object.defineProperty(i,r,Object.getOwnPropertyDescriptor(t,r))})}return i}function _D(i,e,t){return e=wD(e),e in i?Object.defineProperty(i,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):i[e]=t,i}function wD(i){var e=DD(i,"string");return Rs(e)==="symbol"?e:String(e)}function DD(i,e){if(Rs(i)!=="object"||i===null)return i;var t=i[Symbol.toPrimitive];if(t!==void 0){var r=t.call(i,e||"default");if(Rs(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(i)}function SD(i,e){if(i==null)return{};var t=xD(i,e),r,n;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(i);for(n=0;n<s.length;n++)r=s[n],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(i,r)&&(t[r]=i[r])}return t}function xD(i,e){if(i==null)return{};var t={},r=Object.keys(i),n,s;for(s=0;s<r.length;s++)n=r[s],!(e.indexOf(n)>=0)&&(t[n]=i[n]);return t}var fd=Tr({name:"dynamic-widgets"}),Ng=ka("DynamicWidgets");function dd(i){var e=document.createElement("div");return e.className=Ng({descendantName:"widget"}),i.appendChild(e),e}var PD=function(e){var t=e||{},r=t.container,n=t.widgets,s=t.fallbackWidget,o=SD(t,bD);if(!r)throw new Error(fd("The `container` option is required."));if(!(n&&Array.isArray(n)&&n.every(function(d){return typeof d=="function"})))throw new Error(fd("The `widgets` option expects an array of callbacks."));var a=Aa(r),l=document.createElement("div");l.className=Ng();var u=new Map,c=[],f=yD(function(d,g){var p=d.attributesToRender;g&&a.appendChild(l),p.forEach(function(m){if(u.has(m)){var y=u.get(m);l.appendChild(y)}})},function(){a.removeChild(l)}),h=f(Do(Do({},o),{},{widgets:c,fallbackWidget:typeof s=="function"?function(d){var g=d.attribute,p=dd(l);return u.set(g,p),s({attribute:g,container:p})}:void 0}));return Do(Do({},h),{}
137,{init:function(g){n.forEach(function(p){var m=dd(l),y=p(m),b=Rd(y,g);u.set(b,m),c.push(y)}),h.init(g)},$$widgetType:"ais.dynamicWidgets"})};function Bs(i){"@babel/helpers - typeof";return Bs=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Bs(i)}function hd(i,e){var t=Object.keys(i);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(i);e&&(r=r.filter(function(n){return Object.getOwnPropertyDescriptor(i,n).enumerable})),t.push.apply(t,r)}return t}function pd(i){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?hd(Object(t),!0).forEach(function(r){CD(i,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(i,Object.getOwnPropertyDescriptors(t)):hd(Object(t)).forEach(function(r){Object.defineProperty(i,r,Object.getOwnPropertyDescriptor(t,r))})}return i}function CD(i,e,t){return e=TD(e),e in i?Object.defineProperty(i,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):i[e]=t,i}function TD(i){var e=ED(i,"string");return Bs(e)==="symbol"?e:String(e)}function ED(i,e){if(Bs(i)!=="object"||i===null)return i;var t=i[Symbol.toPrimitive];if(t!==void 0){var r=t.call(i,e||"default");if(Bs(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(i)}var Rg=function(e){var t=pD(ur);return pd(pd({},t({searchParameters:e})),{},{$$widgetType:"ais.configure"})};function In(i){"@babel/helpers - typeof";return In=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},In(i)}function OD(i,e){if(!(i instanceof e))throw new TypeError("Cannot call a class as a function")}function $D(i,e){for(var t=0;t<e.length;t++){var r=e[t];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(i,Bg(r.key),r)}}function MD(i,e,t){return e&&$D(i.prototype,e),Object.defineProperty(i,"prototype",{writable:!1}),i}function AD(i,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");i.prototype=Object.create(e&&e.prototype,{constructor:{value:i,writable:!0,configurable:!0}}),Object.defineProperty(i,"prototype",{writable:!1}),e&&Au(i,e)}function Au(i,e){return Au=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,n){return r.__proto__=n,r},Au(i,e)}function kD(i){var e=FD();return function(){var r=Sa(i),n;if(e){var s=Sa(this).constructor;n=Reflect.construct(r,arguments,s)}else n=r.apply(this,arguments);return LD(this,n)}}function LD(i,e){if(e&&(In(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Gr(i)}function Gr(i){if(i===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return i}function FD(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Sa(i){return Sa=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Sa(i)}function Yr(i,e,t){return e=Bg(e),e in i?Object.defineProperty(i,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):i[e]=t,i}function Bg(i){var e=ID(i,"string");return In(e)==="symbol"?e:String(e)}function ID(i,e){if(In(i)!=="object"||i===null)return i;var t=i[Symbol.toPrimitive];if(t!==void 0){var r=t.call(i,e||"default");if(In(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(i)}var ND={query:"",showSubmit:!0,showReset:!0,showLoadingIndicator:!0,autofocus:!1,searchAsYouType:!0,ignoreCompositionEvents:!1,isSearchStalled:!1,disabled:!1,ariaLabel:"Search",onChange:ur,onSubmit:ur,onReset:ur,refine:ur},_c=function(i){AD(t,i);var e=kD(t);function t(){var r;OD(this,t);for(var n=arguments.length,s=new Array(n),o=0;o<n;o++)s[o]=arguments[o];return r=e.call.apply(e,[this].concat(s)),Yr(Gr(r),"state",{query:r.props.query,focused:!1}),Yr(Gr(r),"input",ya()),Yr(Gr(r),"onInput",function(a){var l=r.props,u=l.searchAsYouType,c=l.refine,f=l.onChange,h=a.target.value;r.props.ignoreCompositionEvents&&a.isComposing||(u&&c(h),r.setState({query:h}),f(a))}),Yr(Gr(r),"onSubmit",function(a){var l=r.props,u=l.searchAsYouType,c=l.refine,f=l.onSubmit;return a.preventDefault(),a.stopPropagation(),r.input.current&&r.input.current.blur(),u||c(r.state.query),f(a),!1}),Yr(Gr(r),"onReset",function(a){var l=r.props,u=l.refine,c=l.onReset,f="";r.input.current&&r.input.current.focus(),u(f),r.setState({query:f}),c(a)}),Yr(Gr(r),"onBlur",function(){r.setState({focused:!1})}),Yr(Gr(r),"onFocus",function(){r.setState({focused:!0})}),r}return MD(t,[{key:"resetInput",value:function(){this.setState({query:""})}},{key:"componentWillReceiveProps",value:function(n){!this.state.focused&&n.query!==this.state.query&&this.setState({query:n.query})}}
137,{key:"render",value:function(){var n=this.props,s=n.cssClasses,o=n.placeholder,a=n.autofocus,l=n.showSubmit,u=n.showReset,c=n.showLoadingIndicator,f=n.templates,h=n.isSearchStalled,d=n.ariaLabel;return U("div",{className:s.root},U("form",{action:"",role:"search",className:s.form,noValidate:!0,onSubmit:this.onSubmit,onReset:this.onReset},U("input",{ref:this.input,value:this.state.query,disabled:this.props.disabled,className:s.input,type:"search",placeholder:o,autoFocus:a,autoComplete:"off",autoCorrect:"off",autoCapitalize:"off",spellCheck:"false",maxLength:512,onInput:this.onInput,oncompositionend:this.onInput,onBlur:this.onBlur,onFocus:this.onFocus,"aria-label":d}),U(kt,{templateKey:"submit",rootTagName:"button",rootProps:{className:s.submit,type:"submit",title:"Submit the search query",hidden:!l},templates:f,data:{cssClasses:s}}),U(kt,{templateKey:"reset",rootTagName:"button",rootProps:{className:s.reset,type:"reset",title:"Clear the search query",hidden:!(u&&this.state.query.trim()&&!h)},templates:f,data:{cssClasses:s}}),c&&U(kt,{templateKey:"loadingIndicator",rootTagName:"span",rootProps:{className:s.loadingIndicator,hidden:!h},templates:f,data:{cssClasses:s}})))}}]),t}(ci);Yr(_c,"defaultProps",ND);function ku(){return ku=Object.assign?Object.assign.bind():function(i){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(i[r]=t[r])}return i},ku.apply(this,arguments)}function RD(i){var e=i.className,t=i.handleClick,r=i.facetValueToRefine,n=i.isRefined,s=i.templateProps,o=i.templateKey,a=i.templateData,l=i.subItems;return U("li",{className:e,onClick:function(c){t({facetValueToRefine:r,isRefined:n,originalEvent:c})}},U(kt,ku({},s,{templateKey:o,data:a})),l)}var BD=["root"];function Nn(i){"@babel/helpers - typeof";return Nn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Nn(i)}function gd(i,e){var t=Object.keys(i);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(i);e&&(r=r.filter(function(n){return Object.getOwnPropertyDescriptor(i,n).enumerable})),t.push.apply(t,r)}return t}function md(i){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?gd(Object(t),!0).forEach(function(r){Ti(i,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(i,Object.getOwnPropertyDescriptors(t)):gd(Object(t)).forEach(function(r){Object.defineProperty(i,r,Object.getOwnPropertyDescriptor(t,r))})}return i}function bs(){return bs=Object.assign?Object.assign.bind():function(i){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(i[r]=t[r])}return i},bs.apply(this,arguments)}function jD(i,e){if(i==null)return{};var t=HD(i,e),r,n;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(i);for(n=0;n<s.length;n++)r=s[n],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(i,r)&&(t[r]=i[r])}return t}function HD(i,e){if(i==null)return{};var t={},r=Object.keys(i),n,s;for(s=0;s<r.length;s++)n=r[s],!(e.indexOf(n)>=0)&&(t[n]=i[n]);return t}function zD(i,e){if(!(i instanceof e))throw new TypeError("Cannot call a class as a function")}function VD(i,e){for(var t=0;t<e.length;t++){var r=e[t];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(i,jg(r.key),r)}}function WD(i,e,t){return e&&VD(i.prototype,e),Object.defineProperty(i,"prototype",{writable:!1}),i}function qD(i,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");i.prototype=Object.create(e&&e.prototype,{constructor:{value:i,writable:!0,configurable:!0}}),Object.defineProperty(i,"prototype",{writable:!1}),e&&Lu(i,e)}function Lu(i,e){return Lu=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,n){return r.__proto__=n,r},Lu(i,e)}function GD(i){var e=UD();return function(){var r=xa(i),n;if(e){var s=xa(this).constructor;n=Reflect.construct(r,arguments,s)}else n=r.apply(this,arguments);return YD(this,n)}}function YD(i,e){if(e&&(Nn(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return an(i)}function an(i){if(i===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return i}function UD(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}
137function xa(i){return xa=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},xa(i)}function Ti(i,e,t){return e=jg(e),e in i?Object.defineProperty(i,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):i[e]=t,i}function jg(i){var e=XD(i,"string");return Nn(e)==="symbol"?e:String(e)}function XD(i,e){if(Nn(i)!=="object"||i===null)return i;var t=i[Symbol.toPrimitive];if(t!==void 0){var r=t.call(i,e||"default");if(Nn(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(i)}var KD={cssClasses:{},depth:0};function vd(i){return i.data!==void 0}var Hg=function(i){qD(t,i);var e=GD(t);function t(){var r;zD(this,t);for(var n=arguments.length,s=new Array(n),o=0;o<n;o++)s[o]=arguments[o];return r=e.call.apply(e,[this].concat(s)),Ti(an(r),"listRef",ya()),Ti(an(r),"searchBox",ya()),Ti(an(r),"lastRefinedValue",void 0),Ti(an(r),"_generateFacetItem",function(a){var l;if(vd(a)&&Array.isArray(a.data)&&a.data.length>0){var u=r.props.cssClasses;u.root;var c=jD(u,BD);l=U(t,bs({},r.props,{cssClasses:c,depth:r.props.depth+1,facetValues:a.data,showMore:!1,className:r.props.cssClasses.childList}))}var f=r.props.createURL(a.value),h=md(md({},a),{},{url:f,attribute:r.props.attribute,cssClasses:r.props.cssClasses,isFromSearch:r.props.isFromSearch}),d=a.value;a.isRefined!==void 0&&(d+="/".concat(a.isRefined)),a.count!==void 0&&(d+="/".concat(a.count));var g=X(r.props.cssClasses.item,a.isRefined&&r.props.cssClasses.selectedItem,!a.count&&r.props.cssClasses.disabledItem,!!(vd(a)&&Array.isArray(a.data)&&a.data.length>0)&&r.props.cssClasses.parentItem);return U(RD,{templateKey:"item",key:d,facetValueToRefine:a.value,handleClick:r.handleItemClick,isRefined:a.isRefined,className:g,subItems:l,templateData:h,templateProps:r.props.templateProps})}),Ti(an(r),"handleItemClick",function(a){var l=a.facetValueToRefine,u=a.isRefined,c=a.originalEvent;if(!Qg(c)){var f=c.target;if(!(f===null||f.parentNode===null)&&!(u&&f.parentNode.querySelector('input[type="radio"]:checked'))){if(f.tagName==="INPUT"){r.refine(l);return}for(;f!==c.currentTarget;){if(f.tagName==="LABEL"&&(f.querySelector('input[type="checkbox"]')||f.querySelector('input[type="radio"]')))return;f.tagName==="A"&&f.href&&c.preventDefault(),f=f.parentNode}c.stopPropagation(),r.refine(l)}}}),r}return WD(t,[{key:"shouldComponentUpdate",value:function(n){var s=!Vo(this.props.facetValues,n.facetValues);return s}},{key:"refine",value:function(n){this.lastRefinedValue=n,this.props.toggleRefinement(n)}},{key:"componentWillReceiveProps",value:function(n){this.searchBox.current&&!n.isFromSearch&&this.searchBox.current.resetInput()}},{key:"componentDidUpdate",value:function(){var n,s;(n=this.listRef.current)===null||n===void 0||(s=n.querySelector('input[value="'.concat(this.lastRefinedValue,'"]')))===null||s===void 0||s.focus(),this.lastRefinedValue=void 0}},{key:"refineFirstValue",value:function(){var n=this.props.facetValues&&this.props.facetValues[0];if(n){var s=n.value;this.props.toggleRefinement(s)}}},{key:"render",value:function(){var n=this,s=X(this.props.cssClasses.showMore,!(this.props.showMore===!0&&this.props.canToggleShowMore)&&this.props.cssClasses.disabledShowMore),o=this.props.showMore===!0&&U(kt,bs({},this.props.templateProps,{templateKey:"showMoreText",rootTagName:"button",rootProps:{className:s,disabled:!this.props.canToggleShowMore,onClick:this.props.toggleShowMore},data:{isShowingMore:this.props.isShowingMore}})),a=this.props.searchIsAlwaysActive!==!0&&!(this.props.isFromSearch||!this.props.hasExhaustiveItems),l=this.props.searchFacetValues&&U("div",{className:this.props.cssClasses.searchBox},U(_c,{ref:this.searchBox,placeholder:this.props.searchPlaceholder,disabled:a,cssClasses:this.props.cssClasses.searchable,templates:this.props.searchBoxTemplateProps.templates,onChange:function(d){return n.props.searchFacetValues(d.target.value)},onReset:function(){return n.props.searchFacetValues("")},onSubmit:function(){return n.refineFirstValue()},searchAsYouType:!1,ariaLabel:"Search for filters"})),u=this.props.facetValues&&this.props.facetValues.length>
1370&&U("ul",{ref:this.listRef,className:this.props.cssClasses.list},this.props.facetValues.map(this._generateFacetItem,this)),c=this.props.searchFacetValues&&this.props.isFromSearch&&(!this.props.facetValues||this.props.facetValues.length===0)&&U(kt,bs({},this.props.templateProps,{templateKey:"searchableNoResults",rootProps:{className:this.props.cssClasses.noResults}})),f=X(this.props.cssClasses.root,(!this.props.facetValues||this.props.facetValues.length===0)&&this.props.cssClasses.noRefinementRoot,this.props.className);return U("div",{className:f},this.props.children,l,u,c,o)}}]),t}(ci);Ti(Hg,"defaultProps",KD);function js(i){"@babel/helpers - typeof";return js=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},js(i)}function yd(i,e){var t=Object.keys(i);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(i);e&&(r=r.filter(function(n){return Object.getOwnPropertyDescriptor(i,n).enumerable})),t.push.apply(t,r)}return t}function Pa(i){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?yd(Object(t),!0).forEach(function(r){QD(i,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(i,Object.getOwnPropertyDescriptors(t)):yd(Object(t)).forEach(function(r){Object.defineProperty(i,r,Object.getOwnPropertyDescriptor(t,r))})}return i}function QD(i,e,t){return e=JD(e),e in i?Object.defineProperty(i,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):i[e]=t,i}function JD(i){var e=ZD(i,"string");return js(e)==="symbol"?e:String(e)}function ZD(i,e){if(js(i)!=="object"||i===null)return i;var t=i[Symbol.toPrimitive];if(t!==void 0){var r=t.call(i,e||"default");if(js(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(i)}var e1=function(e,t){return t.map(function(r){var n=Jg(e,function(s){return s.objectID===r});if(typeof n>"u")throw new Error('Could not find objectID "'.concat(r,'" passed to `clickedObjectIDsAfterSearch` in the returned hits. This is necessary to infer the absolute position and the query ID.'));return n})},t1=function(e){var t=Nd(e.map(function(n){return n.__queryID}));if(t.length>1)throw new Error("Insights currently allows a single `queryID`. The `objectIDs` provided map to multiple `queryID`s.");var r=t[0];if(typeof r!="string")throw new Error("Could not infer `queryID`. Ensure InstantSearch `clickAnalytics: true` was added with the Configure widget.\n\nSee: https://alg.li/lNiZZ7");return r},r1=function(e){return e.map(function(t){return t.__position})},i1=function(e){var t=e.method,r=e.results,n=e.hits,s=e.objectIDs,o=r.index,a=e1(n,s),l=t1(a);switch(t){case"clickedObjectIDsAfterSearch":{var u=r1(a);return{index:o,queryID:l,objectIDs:s,positions:u}}case"convertedObjectIDsAfterSearch":return{index:o,queryID:l,objectIDs:s};default:throw new Error('Unsupported method passed to insights: "'.concat(t,'".'))}},n1=function(e,t,r){return function(n){for(var s=arguments.length,o=new Array(s>1?s-1:0),a=1;a<s;a++)o[a-1]=arguments[a];var l=o[0];if(!e){var u=Tr({name:"instantsearch"});throw new Error(u("The `insightsClient` option has not been provided to `instantsearch`."))}if(!Array.isArray(l.objectIDs))throw new TypeError("Expected `objectIDs` to be an array.");var c=i1({method:n,results:t,hits:r,objectIDs:l.objectIDs});e(n,Pa(Pa({},c),l))}};function s1(i){return function(e,t){return i(function(r,n){var s=r.results,o=r.hits,a=r.instantSearchInstance;if(s&&o&&a){var l=n1(a.insightsClient,s,o);return e(Pa(Pa({},r),{},{insights:l}),n)}return e(r,n)},t)}}var o1=function(e){var t=e.insights,r=e.sendEvent;return function(n){var s=bd(n.target,n.currentTarget,function(f){return f.hasAttribute("data-insights-event")});if(s){var o=a1(s);o.forEach(function(f){return r(f)})}var a=bd(n.target,n.currentTarget,function(f){return f.hasAttribute("data-insights-method")&&f.hasAttribute("data-insights-payload")});if(a){var l=Zg(a),u=l.method,c=l.payload;t(u,c)}}};function bd(i,e,t){for(var r=i;r&&!t(r);){if(r===e)return null;r=r.parentElement}return r}function a1(i){var e=i.getAttribute("data-insights-event");
137if(typeof e!="string")throw new Error("The insights middleware expects `data-insights-event` to be a base64-encoded JSON string.");try{return em(e)}catch{throw new Error("The insights middleware was unable to parse `data-insights-event`.")}}function Hs(i){"@babel/helpers - typeof";return Hs=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Hs(i)}function _d(i,e){var t=Object.keys(i);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(i);e&&(r=r.filter(function(n){return Object.getOwnPropertyDescriptor(i,n).enumerable})),t.push.apply(t,r)}return t}function wd(i){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?_d(Object(t),!0).forEach(function(r){l1(i,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(i,Object.getOwnPropertyDescriptors(t)):_d(Object(t)).forEach(function(r){Object.defineProperty(i,r,Object.getOwnPropertyDescriptor(t,r))})}return i}function l1(i,e,t){return e=u1(e),e in i?Object.defineProperty(i,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):i[e]=t,i}function u1(i){var e=c1(i,"string");return Hs(e)==="symbol"?e:String(e)}function c1(i,e){if(Hs(i)!=="object"||i===null)return i;var t=i[Symbol.toPrimitive];if(t!==void 0){var r=t.call(i,e||"default");if(Hs(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(i)}function Xr(){return Xr=Object.assign?Object.assign.bind():function(i){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(i[r]=t[r])}return i},Xr.apply(this,arguments)}var Dd=function(e){var t=e.banner,r=e.classNames;return t.image.urls[0].url?U("aside",{className:X(r.bannerRoot)},t.link?U("a",{className:X(r.bannerLink),href:t.link.url,target:t.link.target},U("img",{className:X(r.bannerImage),src:t.image.urls[0].url,alt:t.image.t
137itle})):U("img",{className:X(r.bannerImage),src:t.image.urls[0].url,alt:t.image.title})):null},f1=function(e){var t=e.results,r=e.hits,n=e.insights,s=e.bindEvent,o=e.sendEvent,a=e.hasShowPrevious,l=e.showPrevious,u=e.showMore,c=e.isFirstPage,f=e.isLastPage,h=e.cssClasses,d=e.templateProps,g=e.banner,p=o1({insights:n,sendEvent:o});return t.hits.length===0?U("div",{className:X(h.root,h.emptyRoot),onClick:p},g&&(d.templates.banner?U(kt,Xr({},d,{templateKey:"banner",rootTagName:"fragment",data:{banner:g,className:h.bannerRoot}})):U(Dd,{banner:g,classNames:h})),U(kt,Xr({},d,{templateKey:"empty",rootTagName:"fragment",data:t}))):U("div",{className:h.root},a&&U(kt,Xr({},d,{templateKey:"showPreviousText",rootTagName:"button",rootProps:{className:X(h.loadPrevious,c&&h.disabledLoadPrevious),disabled:c,onClick:l}})),g&&(d.templates.banner?U(kt,Xr({},d,{templateKey:"banner",rootTagName:"fragment",data:{banner:g,className:h.bannerRoot}})):U(Dd,{banner:g,classNames:h})),U("ol",{className:h.list},r.map(function(m,y){return U(kt,Xr({},d,{templateKey:"item",rootTagName:"li",rootProps:{className:h.item,onClick:function(v){p(v),o("click:internal",m,"Hit Clicked")},onAuxClick:function(v){p(v),o("click:internal",m,"Hit Clicked")}},key:m.objectID,data:wd(wd({},m),{},{get __hitIndex(){return y}}),bindEvent:s,sendEvent:o}))})),U(kt,Xr({},d,{templateKey:"showMoreText",rootTagName:"button",rootProps:{className:X(h.loadM
137ore,f&&h.disabledLoadMore),disabled:f,onClick:u}})))};function zs(i){"@babel/helpers - typeof";return zs=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},zs(i)}var d1=["page"],h1=["clickAnalytics","userToken"];function Sd(i,e){var t=Object.keys(i);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(i);e&&(r=r.filter(function(n){return Object.getOwnPropertyDescriptor(i,n).enumerable})),t.push.apply(t,r)}return t}function Ht(i){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?Sd(Object(t),!0).forEach(function(r){zg(i,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(i,Object.getOwnPropertyDescriptors(t)):Sd(Object(t)).forEach(function(r){Object.defineProperty(i,r,Object.getOwnPropertyDescriptor(t,r))})}return i}function zg(i,e,t){return e=p1(e),e in i?Object.defineProperty(i,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):i[e]=t,i}function p1(i){var e=g1(i,"string");return zs(e)==="symbol"?e:String(e)}function g1(i,e){if(zs(i)!=="object"||i===null)return i;var t=i[Symbol.toPrimitive];if(t!==void 0){var r=t.call(i,e||"default");if(zs(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(i)}function xd(i){return b1(i)||y1(i)||v1(i)||m1()}function m1(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 138In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function v1(i,e){if(i){if(typeof i=="string")return Fu(i,e);var t=Object.prototype.toString.call(i).slice(8,-1);if(t==="Object"&&i.constructor&&(t=i.constructor.name),t==="Map"||t==="Set")return Array.from(i);if(t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return Fu(i,e)}}function y1(i){if(typeof Symbol<"u"&&i[Symbol.iterator]!=null||i["@@iterator"]!=null)return Array.from(i)}function b1(i){if(Array.isArray(i))return Fu(i)}function Fu(i,e){(e==null||e>i.length)&&(e=i.length);for(var t=0,r=new Array(e);t<e;t++)r[t]=i[t];return r}function Vg(i,e){if(i==null)return{};var t=_1(i,e),r,n;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(i);for(n=0;n<s.length;n++)r=s[n],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(i,r)&&(t[r]=i[r])}return t}function _1(i,e){if(i==null)return{};var t={},r=Object.keys(i),n,s;for(s=0;s<r.length;s++)n=r[s],!(e.indexOf(n)>=0)&&(t[n]=i[n]);return t}var w1=Tr({name:"infinite-hits",connector:!0});function Pd(i){var e=i||{};e.page;var t=Vg(e,d1);return t}function So(i){var e=i||{};e.clickAnalytics,e.userToken;var t=Vg(e,h1);return t}function D1(){var i=null,e=null;return{read:function(r){var n=r.state;return Vo(e,Pd(n))?i:null},write:function(r){var n=r.state,s=r.hits;e=Pd(n),i=s}}}function S1(i){return Object.keys(i).map(Number).sort(function(e,t){return e-t}).reduce(function(e,t){return e.concat(i[t])},[])}const x1=function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:ur;return Ma(e,w1()),function(r){var n=r||{},s=n.escapeHTML,o=s===void 0?!0:s,a=n.transformItems,l=a===void 0?function(v){return v}:a,u=n.cache,c=u===void 0?D1():u,f,h,d,g,p=function(_,D){var S=_.page,C=S===void 0?0:S,w=Object.keys(D).map(Number);return w.length===0?C:Math.min.apply(Math,[C].concat(xd(w)))},m=function(_,D){var S=_.page,C=S===void 0?0:S,w=Object.keys(D).map(Number);return w.length===0?C:Math.max.apply(Math,[C].concat(xd(w)))},y=function(_){return function(){_.overrideStateWithoutTriggeringChangeEvent(Ht(Ht({},_.state),{},{page:p(_.state,c.read({state:So(_.state)})||{})-1})).searchWithoutTriggeringOnStateChange()}},b=function(_){return function(){_.setPage(m(_.state,c.read({state:So(_.state)})||{})+1).search()}};return{$$type:"ais.infiniteHits",init:function(_){e(Ht(Ht({},this.getWidgetRenderState(_)),{},{instantSearchInstance:_.instantSearchInstance}),!0)},render:function(_){var D=_.instantSearchInstance,S=this.getWidgetRenderState(_);e(Ht(Ht({},S),{},{instantSearchInstance:D}),!1),d("view:internal",S.currentPageHits)},getRenderState:function(_,D){return Ht(Ht({},_),{},{infiniteHits:this.getWidgetRenderState(D)})},getWidgetRenderState:function(_){var D,S,C,w=_.results,x=_.helper,P=_.parent,T=_.state,O=_.instantSearchInstance,A,N=[],I=P.getPreviousState()||T,B=c.read({state:So(I)})||{},W=w==null||(D=w.renderingContent)===null||D===void 0||(S=D.widgets)===null||S===void 0||(C=S.banners)===null||C===void 0?void 0:C[0];if(!w)f=y(x),h=b(x),d=tm({instantSearchInstance:O,getIndex:function(){return x.getIndex()},widgetType:this.$$type}),g=rm({getIndex:function(){return x.getIndex()},widgetType:this.$$type,instantSearchInstance:O}),A=I.page===void 0||p(I,B)===0;else{var V,M,$=I.page,q=$===void 0?0:$;o&&w.hits.length>0&&(w.hits=im(w.hits));var ne=nm(w.hits,w.page,w.hitsPerPage),le=sm(ne,w.queryID),re=l(le,{results:w}),Z=!1;om(O.mainIndex,function(R){!Z&&R.getWidgets().some(function(k){var j=k.$$type;return j==="ais.dynamicWidgets"})&&(Z=!0)});var pe=!((V=I.disjunctiveFacets)!==null&&V!==void 0&&V.length)&&!(I.facets||[]).filter(function(R){return R!=="*"}).length&&!((M=I.hierarchicalFacets)!==null&&M!==void 0&&M.length);B[q]===void 0&&!w.__isArtificial&&O.status==="idle"&&!(Z&&pe)&&(B[q]=re,c.write({state:So(I),hits:B})),N=re,A=p(I,B)===0}var ue=S1(B),F=w?w.nbPages<=m(I,B)+1:!0;return{hits:ue,items:ue,currentPageHits:N,sendEvent:d,bindEvent:g,banner:W,results:w||void 0,showPrevious:f,showMore:h,isFirstPage:A,isLastPage:F,widgetParams:r}},dispose:function(_){var D=_.state;t();var S=D.setQueryParameter("page",void 0);return o?S.setQueryParameters(Object.keys(Dc).reduce(function(C,w){return Ht(Ht({},C),{},zg({},w,void 0))},{})):S},getWidgetUiState:function(_,D){var S=D.searchParameters,C=S.page||0;return C?Ht(Ht({},_),{},{page:C+1}):_},getWidgetSearchParameters:function(_,D){var S=D.uiState,C=_;o&&(C=_.setQueryParameters(Dc));var w=S.page?S.page-1:0;return C.setQueryParameter("page",w)}}}};var P1={empty:function(){return"No results"},showPreviousText:function(){return"Show previous results"},showMoreText:function(){return"Show more results"},item:function(e){return JSON.stringify(am(e,["__hitIndex"]),null,2)}};function Vs(i){"@babel/helpers - typeof";return Vs=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Vs(i)}function Cd(i,e){var t=Object.keys(i);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(i);e&&(r=r.filter(function(n){return Object.getOwnPropertyDescriptor(i,n).enumerable})),t.push.apply(t,r)}return t}function Td(i){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};
138e%2?Cd(Object(t),!0).forEach(function(r){C1(i,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(i,Object.getOwnPropertyDescriptors(t)):Cd(Object(t)).forEach(function(r){Object.defineProperty(i,r,Object.getOwnPropertyDescriptor(t,r))})}return i}function C1(i,e,t){return e=T1(e),e in i?Object.defineProperty(i,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):i[e]=t,i}function T1(i){var e=E1(i,"string");return Vs(e)==="symbol"?e:String(e)}function E1(i,e){if(Vs(i)!=="object"||i===null)return i;var t=i[Symbol.toPrimitive];if(t!==void 0){var r=t.call(i,e||"default");if(Vs(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(i)}var O1=Tr({name:"infinite-hits"}),ir=ka("InfiniteHits"),$1=function(e){var t=e.containerNode,r=e.cssClasses,n=e.renderState,s=e.templates,o=e.showPrevious;return function(a,l){var u=a.items,c=a.results,f=a.showMore,h=a.showPrevious,d=a.isFirstPage,g=a.isLastPage,p=a.instantSearchInstance,m=a.insights,y=a.bindEvent,b=a.sendEvent,v=a.banner;if(l){n.templateProps=Pg({defaultTemplates:P1,templatesConfig:p.templatesConfig,templates:s});return}Bn(U(f1,{cssClasses:r,hits:u,results:c,hasShowPrevious:o,showPrevious:h,showMore:f,templateProps:n.templateProps,isFirstPage:d,isLastPage:g,insights:m,sendEvent:b,bindEvent:y,banner:v}),t)}};const Wg=function(e){var t=e||{},r=t.container,n=t.escapeHTML,s=t.transformItems,o=t.templates,a=o===void 0?{}:o,l=t.cssClasses,u=l===void 0?{}:l,c=t.showPrevious,f=t.cache;if(!r)throw new Error(O1("The `container` option is required."));var h=Aa(r),d={root:X(ir(),u.root),emptyRoot:X(ir({modifierName:"empty"}),u.emptyRoot),item:X(ir({descendantName:"item"}),u.item),list:X(ir({descendantName:"list"}),u.list),loadPrevious:X(ir({descendantName:"loadPrevious"}),u.loadPrevious),disabledLoadPrevious:X(ir({descendantName:"loadPrevious",modifierName:"disabled"}),u.disabledLoadPrevious),loadMore:X(ir({descendantName:"loadMore"}),u.loadMore),disabledLoadMore:X(ir({descendantName:"loadMore",modifierName:"disabled"}),u.disabledLoadMore),bannerRoot:X(ir({descendantName:"banner"}),u.bannerRoot),bannerImage:X(ir({descendantName:"banner-image"}),u.bannerImage),bannerLink:X(ir({descendantName:"banner-link"}),u.bannerLink)},g=$1({containerNode:h,cssClasses:d,templates:a,showPrevious:c,renderState:{}}),p=s1(x1)(g,function(){return Bn(null,h)});return Td(Td({},p({escapeHTML:n,transformItems:s,showPrevious:c,cache:f})),{},{$$widgetType:"ais.infiniteHits"})};var M1=["name","escapedValue","path"];function Ws(i){"@babel/helpers - typeof";return Ws=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ws(i)}function A1(i,e){if(i==null)return{};var t=k1(i,e),r,n;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(i);for(n=0;n<s.length;n++)r=s[n],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(i,r)&&(t[r]=i[r])}return t}function k1(i,e){if(i==null)return{};var t={},r=Object.keys(i),n,s;for(s=0;s<r.length;s++)n=r[s],!(e.indexOf(n)>=0)&&(t[n]=i[n]);return t}function Ed(i,e){return N1(i)||I1(i,e)||F1(i,e)||L1()}function L1(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 139In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function F1(i,e){if(i){if(typeof i=="string")return Od(i,e);var t=Object.prototype.toString.call(i).slice(8,-1);if(t==="Object"&&i.constructor&&(t=i.constructor.name),t==="Map"||t==="Set")return Array.from(i);if(t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return Od(i,e)}}function Od(i,e){(e==null||e>i.length)&&(e=i.length);for(var t=0,r=new Array(e);t<e;t++)r[t]=i[t];return r}function I1(i,e){var t=i==null?null:typeof Symbol<"u"&&i[Symbol.iterator]||i["@@iterator"];if(t!=null){var r,n,s,o,a=[],l=!0,u=!1;try{if(s=(t=t.call(i)).next,e!==0)for(;!(l=(r=s.call(t)).done)&&(a.push(r.value),a.length!==e);l=!0);}catch(c){u=!0,n=c}
139finally{try{if(!l&&t.return!=null&&(o=t.return(),Object(o)!==o))return}finally{if(u)throw n}}return a}}function N1(i){if(Array.isArray(i))return i}function $d(i,e){var t=Object.keys(i);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(i);e&&(r=r.filter(function(n){return Object.getOwnPropertyDescriptor(i,n).enumerable})),t.push.apply(t,r)}return t}function ct(i){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?$d(Object(t),!0).forEach(function(r){zo(i,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(i,Object.getOwnPropertyDescriptors(t)):$d(Object(t)).forEach(function(r){Object.defineProperty(i,r,Object.getOwnPropertyDescriptor(t,r))})}return i}function zo(i,e,t){return e=R1(e),e in i?Object.defineProperty(i,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):i[e]=t,i}function R1(i){var e=B1(i,"string");return Ws(e)==="symbol"?e:String(e)}function B1(i,e){if(Ws(i)!=="object"||i===null)return i;var t=i[Symbol.toPrimitive];if(t!==void 0){var r=t.call(i,e||"default");if(Ws(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(i)}var Cl=Tr({name:"menu",connector:!0}),Md=["isRefined","name:asc"],qg=function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:ur;return Ma(e,Cl()),function(r){var n=r||{},s=n.attribute,o=n.limit,a=o===void 0?10:o,l=n.showMore,u=l===void 0?!1:l,c=n.showMoreLimit,f=c===void 0?20:c,h=n.sortBy,d=h===void 0?Md:h,g=n.transformItems,p=g===void 0?function(w){return w}:g;if(!s)throw new Error(Cl("The `attribute` option is required."));if(u===!0&&f<=a)throw new Error(Cl("The `showMoreLimit` option must be greater than `limit`."));var m,y,b,v=!1,_=function(){};function D(w,x){return function(){v=!v,x.render(w)}}function S(){_()}function C(){return v?f:a}return{$$type:"ais.menu",init:function(x){var P=x.instantSearchInstance;e(ct(ct({},this.getWidgetRenderState(x)),{},{instantSearchInstance:P}),!0)},render:function(x){var P=x.instantSearchInstance;e(ct(ct({},this.getWidgetRenderState(x)),{},{instantSearchInstance:P}),!1)},dispose:function(x){var P=x.state;return t(),P.removeHierarchicalFacet(s).setQueryParameter("maxValuesPerFacet",void 0)},getRenderState:function(x,P){return ct(ct({},x),{},{menu:ct(ct({},x.menu),{},zo({},s,this.getWidgetRenderState(P)))})},getWidgetRenderState:function(x){var P=this,T=x.results,O=x.createURL,A=x.instantSearchInstance,N=x.helper,I=[],B=!1;if(m||(m=lm({instantSearchInstance:A,helper:N,attribute:s,widgetType:this.$$type})),y||(y=function($){return O(function(q){return P.getWidgetUiState(q,{searchParameters:N.state.resetPage().toggleFacetRefinement(s,$),helper:N})})}),b||(b=function($){var q=N.getHierarchicalFacetBreadcrumb(s),ne=Ed(q,1),le=ne[0];m("click:internal",$||le),N.toggleFacetRefinement(s,$||le).search()}),x.results&&(_=D(x,this)),T){var W=T.getFacetValues(s,{sortBy:d,facetOrdering:d===Md}),V=W&&!Array.isArray(W)&&W.data?W.data:[];B=u&&(v||V.length>C()),I=p(V.slice(0,C()).map(function(M){var $=M.name,q=M.escapedValue;M.path;var ne=A1(M,M1);return ct(ct({},ne),{},{label:$,value:q})}),{results:T})}return{items:I,createURL:y,refine:b,sendEvent:m,canRefine:I.length>0,widgetParams:r,isShowingMore:v,toggleShowMore:S,canToggleShowMore:B}},getWidgetUiState:function(x,P){var T=P.searchParameters,O=T.getHierarchicalFacetBreadcrumb(s),A=Ed(O,1),N=A[0];return j1(ct(ct({},x),{},{menu:ct(ct({},x.menu),{},zo({},s,N))}),s)},getWidgetSearchParameters:function(x,P){var T=P.uiState,O=T.menu&&T.menu[s];if(x.isConjunctiveFacet(s)||x.isDisjunctiveFacet(s))return x;var A=x.removeHierarchicalFacet(s).addHierarchicalFacet({name:s,attributes:[s]}),N=A.maxValuesPerFacet||0,I=Math.max(N,u?f:a),B=A.setQueryParameter("maxValuesPerFacet",I);return O?B.addHierarchicalFacetRefinement(s,O):B.setQueryParameters({hierarchicalFacetsRefinements:ct(ct({},B.hierarchicalFacetsRefinements),{},zo({},s,[]))})}}}};function j1(i,e){return i.menu&&(i.menu[e]===void 0&&delete i.menu[e],Object.keys(i.menu).length===0&&delete i.menu),i}
139var H1={item:function(e){var t=e.cssClasses,r=e.url,n=e.label,s=e.count;return U("a",{className:X(t.link),href:r},U("span",{className:X(t.label)},n),U("span",{className:X(t.count)},um(s)))},showMoreText:function(e){var t=e.isShowingMore;return t?"Show less":"Show more"}};function qs(i){"@babel/helpers - typeof";return qs=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},qs(i)}function Ad(i,e){var t=Object.keys(i);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(i);e&&(r=r.filter(function(n){return Object.getOwnPropertyDescriptor(i,n).enumerable})),t.push.apply(t,r)}return t}function Ca(i){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?Ad(Object(t),!0).forEach(function(r){z1(i,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(i,Object.getOwnPropertyDescriptors(t)):Ad(Object(t)).forEach(function(r){Object.defineProperty(i,r,Object.getOwnPropertyDescriptor(t,r))})}return i}function z1(i,e,t){return e=V1(e),e in i?Object.defineProperty(i,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):i[e]=t,i}function V1(i){var e=W1(i,"string");return qs(e)==="symbol"?e:String(e)}function W1(i,e){if(qs(i)!=="object"||i===null)return i;var t=i[Symbol.toPrimitive];if(t!==void 0){var r=t.call(i,e||"default");if(qs(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(i)}var q1=Tr({name:"menu"}),vr=ka("Menu"),G1=function(e){var t=e.containerNode,r=e.cssClasses,n=e.renderState,s=e.templates,o=e.showMore;return function(a,l){var u=a.refine,c=a.items,f=a.createURL,h=a.instantSearchInstance,d=a.isShowingMore,g=a.toggleShowMore,p=a.canToggleShowMore;if(l){n.templateProps=Pg({defaultTemplates:H1,templatesConfig:h.templatesConfig,templates:s});return}var m=c.map(function(y){return Ca(Ca({},y),{},{url:f(y.value)})});Bn(U(Hg,{createURL:f,cssClasses:r,facetValues:m,showMore:o,templateProps:n.templateProps,toggleRefinement:u,toggleShowMore:g,isShowingMore:d,canToggleShowMore:p}),t)}},Y1=function(e){var t=e||{},r=t.container,n=t.attribute,s=t.sortBy,o=t.limit,a=t.showMore,l=t.showMoreLimit,u=t.cssClasses,c=u===void 0?{}:u,f=t.templates,h=f===void 0?{}:f,d=t.transformItems;if(!r)throw new Error(q1("The `container` option is required."));var g=Aa(r),p={root:X(vr(),c.root),noRefinementRoot:X(vr({modifierName:"noRefinement"}),c.noRefinementRoot),list:X(vr({descendantName:"list"}),c.list),item:X(vr({descendantName:"item"}),c.item),selectedItem:X(vr({descendantName:"item",modifierName:"selected"}),c.selectedItem),link:X(vr({descendantName:"link"}),c.link),label:X(vr({descendantName:"label"}),c.label),count:X(vr({descendantName:"count"}),c.count),showMore:X(vr({descendantName:"showMore"}),c.showMore),disabledShowMore:X(vr({descendantName:"showMore",modifierName:"disabled"}),c.disabledShowMore)},m=G1({containerNode:g,cssClasses:p,renderState:{},templates:h,showMore:a}),y=qg(m,function(){return Bn(null,g)});return Ca(Ca({},y({attribute:n,limit:o,showMore:a,showMoreLimit:l,sortBy:s,transformItems:d})),{},{$$widgetType:"ais.menu"})},U1=U("path",{d:"M8.114 10L.944 2.83 0 1.885 1.886 0l.943.943L10 8.113l7.17-7.17.944-.943L20 1.886l-.943.943-7.17 7.17 7.17 7.17.943.944L18.114 20l-.943-.943-7.17-7.17-7.17 7.17-.944.943L0 18.114l.943-.943L8.113 10z"}),X1=U("path",{d:"M26.804 29.01c-2.832 2.34-6.465 3.746-10.426 3.746C7.333 32.756 0 25.424 0 16.378 0 7.333 7.333 0 16.378 0c9.046 0 16.378 7.333 16.378 16.378 0 3.96-1.406 7.594-3.746 10.426l10.534 10.534c.607.607.61 1.59-.004 2.202-.61.61-1.597.61-2.202.004L26.804 29.01zm-10.426.627c7.323 0 13.26-5.936 13.26-13.26 0-7.32-5.937-13.257-13.26-13.257C9.056 3.12 3.12 9.056 3.12 16.378c0 7.323 5.936 13.26 13.258 13.26z"}),K1=U("g",{fill:"none","fill-rule":"evenodd"},U("g",{transform:"translate(1 1)","stroke-width":"2"},U("circle",{"stroke-opacity":".5",cx:"18",cy:"18",r:"18"}),U("path",{d:"M36 18c0-9.94-8.06-18-18-18"},U("animateTransform",{attributeName:"transform",type:"rotate",from:"0 18 18",to:"360 18 18",dur:"1s",repeatCount:"indef
139inite"})))),Q1={reset:function(e){var t=e.cssClasses;return U("svg",{className:t.resetIcon,viewBox:"0 0 20 20",width:"10",height:"10","aria-hidden":"true"},U1)},submit:function(e){var t=e.cssClasses;return U("svg",{className:t.submitIcon,width:"10",height:"10",viewBox:"0 0 40 40","aria-hidden":"true"},X1)},loadingIndicator:function(e){var t=e.cssClasses;return U("svg",{"aria-label":"Results are loading",className:t.loadingIcon,width:"16",height:"16",viewBox:"0 0 38 38",stroke:"#444","aria-hidden":"true"},K1)}};function Gs(i){"@babel/helpers - typeof";return Gs=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Gs(i)}function kd(i,e){var t=Object.keys(i);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(i);e&&(r=r.filter(function(n){return Object.getOwnPropertyDescriptor(i,n).enumerable})),t.push.apply(t,r)}return t}function Wr(i){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?kd(Object(t),!0).forEach(function(r){J1(i,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(i,Object.getOwnPropertyDescriptors(t)):kd(Object(t)).forEach(function(r){Object.defineProperty(i,r,Object.getOwnPropertyDescriptor(t,r))})}return i}function J1(i,e,t){return e=Z1(e),e in i?Object.defineProperty(i,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):i[e]=t,i}function Z1(i){var e=eS(i,"string");return Gs(e)==="symbol"?e:String(e)}function eS(i,e){if(Gs(i)!=="object"||i===null)return i;var t=i[Symbol.toPrimitive];if(t!==void 0){var r=t.call(i,e||"default");if(Gs(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(i)}var tS=Tr({name:"search-box",connector:!0}),rS=function(e,t){return t(e)},iS=function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:ur;return Ma(e,tS()),function(r){var n=r||{},s=n.queryHook,o=s===void 0?rS:s,a,l;return{$$type:"ais.searchBox",init:function(c){var f=c.instantSearchInstance;e(Wr(Wr({},this.getWidgetRenderState(c)),{},{instantSearchInstance:f}),!0)},render:function(c){var f=c.instantSearchInstance;e(Wr(Wr({},this.getWidgetRenderState(c)),{},{instantSearchInstance:f}),!1)},dispose:function(c){var f=c.state;return t(),f.setQueryParameter("query",void 0)},getRenderState:function(c,f){return Wr(Wr({},c),{},{searchBox:this.getWidgetRenderState(f)})},getWidgetRenderState:function(c){var f=c.helper,h=c.instantSearchInstance,d=c.state;return a||(a=function(p){o(p,function(m){return f.setQuery(m).search()})},l=function(){f.setQuery("").search()}),{query:d.query||"",refine:a,clear:l,widgetParams:r,isSearchStalled:h.status==="stalled"}},getWidgetUiState:function(c,f){var h=f.searchParameters,d=h.query||"";return d===""||c&&c.query===d?c:Wr(Wr({},c),{},{query:d})},getWidgetSearchParameters:function(c,f){var h=f.uiState;return c.setQueryParameter("query",h.query||"")}}}};function Ys(i){"@babel/helpers - typeof";return Ys=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ys(i)}function Ld(i,e){var t=Object.keys(i);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(i);e&&(r=r.filter(function(n){return Object.getOwnPropertyDescriptor(i,n).enumerable})),t.push.apply(t,r)}return t}function xo(i){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?Ld(Object(t),!0).forEach(function(r){nS(i,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(i,Object.getOwnPropertyDescriptors(t)):Ld(Object(t)).forEach(function(r){Object.defineProperty(i,r,Object.getOwnPropertyDescriptor(t,r))})}return i}function nS(i,e,t){return e=sS(e),e in i?Object.defineProperty(i,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):i[e]=t,i}function sS(i){var e=oS(i,"string");return Ys(e)==="symbol"?e:String(e)}function oS(i,e){if(Ys(i)!=="object"||i===null)return i;var t=i[Symbol.toPrimitive];if(t!==void 0){var r=t.call(i,e||"default");if(Ys(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(i)}var aS=Tr({name:"search-box"}),Ar=ka("SearchBox"),lS=function(e){var t=e.containerNode,r=e.cssClasse
139s,n=e.placeholder,s=e.templates,o=e.autofocus,a=e.searchAsYouType,l=e.ignoreCompositionEvents,u=e.showReset,c=e.showSubmit,f=e.showLoadingIndicator;return function(h){var d=h.refine,g=h.query,p=h.isSearchStalled;Bn(U(_c,{query:g,placeholder:n,autofocus:o,refine:d,searchAsYouType:a,ignoreCompositionEvents:l,templates:s,showSubmit:c,showReset:u,showLoadingIndicator:f,isSearchStalled:p,cssClasses:r}),t)}},Gg=function(e){var t=e||{},r=t.container,n=t.placeholder,s=n===void 0?"":n,o=t.cssClasses,a=o===void 0?{}:o,l=t.autofocus,u=l===void 0?!1:l,c=t.searchAsYouType,f=c===void 0?!0:c,h=t.ignoreCompositionEvents,d=h===void 0?!1:h,g=t.showReset,p=g===void 0?!0:g,m=t.showSubmit,y=m===void 0?!0:m,b=t.showLoadingIndicator,v=b===void 0?!0:b,_=t.queryHook,D=t.templates,S=D===void 0?{}:D;if(!r)throw new Error(aS("The `container` option is required."));var C=Aa(r),w={root:X(Ar(),a.root),form:X(Ar({descendantName:"form"}),a.form),input:X(Ar({descendantName:"input"}),a.input),submit:X(Ar({descendantName:"submit"}),a.submit),submitIcon:X(Ar({descendantName:"submitIcon"}),a.submitIcon),reset:X(Ar({descendantName:"reset"}),a.reset),resetIcon:X(Ar({descendantName:"resetIcon"}),a.resetIcon),loadingIndicator:X(Ar({descendantName:"loadingIndicator"}),a.loadingIndicator),loadingIcon:X(Ar({descendantName:"loadingIcon"}),a.loadingIcon)},x=xo(xo({},Q1),S),P=lS({containerNode:C,cssClasses:w,placeholder:s,templates:x,autofocus:u,searchAsYouType:f,ignoreCompositionEvents:d,showReset:p,showSubmit:y,showLoadingIndicator:v}),T=iS(P,function(){return Bn(null,C)});return xo(xo({},T({queryHook:_})),{},{$$widgetType:"ais.searchBox"})};const uS=qg(()=>null);class cS extends Bt{constructor({$el:t}){super();E(this,"$el");E(this,"config");E(this,"labels");this.$el=t,this.labels=JSON.parse(this.$el.getAttribute("data-labels")),this.config=window.drupalSettings.search_api.algolia,this.init()}init(){this.labels&&(this.setAlgolia(),localStorage.setItem("searchUrl",window.location.href)),document.querySelector("[data-back-search]")&&document.querySelector("[data-back-search]").remove()}setAlgolia(){const t=gg(this.config.appId,this.config.apiKey),r={...t,search(s){if(s.every(({params:o})=>!o.query)){const o={results:s.map(()=>({hits:[],nbHits:0,nbPages:0,page:0,processingTimeMS:0,hitsPerPage:0,exhaustiveNbHits:!1,query:"",params:""}))};return Promise.resolve(o)}return t.search(s)}},n=Bd({indexName:this.config.indexName,searchClient:r,initialUiState:{[this.config.indexName]:{query:localStorage.getItem("search")||"",menu:{type:localStorage.getItem("searchType")||""}}},onStateChange:({uiState:s,setUiState:o})=>{var c;const a=s[this.config.indexName],l=a.query;if(!l||l.length<3)return!1;localStorage.setItem("search",l);const u=(c=a.menu)==null?void 0:c.type;u&&localStorage.setItem("searchType",u),o(s)}});n.addWidgets([Gg({container:"#searchbox",placeholder:this.labels.placeholder,showLoadingIndicator:!1}),uS({attribute:"type"}),PD({container:"#dynamic-widgets",widgets:[s=>Y1({limit:15,attribute:"type",sortBy:["count:desc","name:asc"],container:s,transformItems:o=>o.map(a=>({...a,label:this.labels[a.label]}))})],facets:[]}),Wg({container:"#hits",templates:{empty:({query:s},{html:o})=>o`<div class="search-empty">${s?this.labels.no_result:""}</div>`,showMoreText:({},{html:s})=>s`${this.labels.load_more}`,item:({items:s,type:o},{components:a,html:l})=>l` 140 <ul class="search-section"> 141 ${document.querySelector(`.search-section-title.search-type-${o}`)?"":l`<strong class="search-section-title search-type-${o} h2">${this.labels[o]}</strong>`} 142 ${s.map(u=>l` 143 <li class="search-item"> 144 <strong class="search-item-title h3"> 145 <a class="search-item-link" data-search-result href="${u.url}"> 146 ${u.title} 147 </a> 148 </strong> 149 <p class="search-item-text"> 150 ${u.field_introduction?a.Snippet({hit:u,attribute:"field_introduction"}):""} 151 </p> 152 </li> 153 `)} 154 </ul> 155 `},transformItems(s){const o=s.reduce((a,l)=>{const u=a[l.type]||[];return{...a,[l.type]:u.concat(l)}},{});return Object.keys(o).map(a=>({items:o[a],type:a}))}}),Rg({filters:`search_api_language:${document.documentElement.lang}`})]),n.start()}}class fS extends Bt{constructor({$el:t}){super();E(this,"$el");E(this,"$baseList");E(this,"type");E(this,"baseClass");E(this,"config");E(this,"labels");this.$el=t,this.$baseList=document.querySelector("[data-search-list-alt]"),this.type=this.$el.getAttribute("data-search-list"),this.baseClass=this.type==="brain_function"?"disease":this.t
155ype,this.labels=JSON.parse(this.$el.getAttribute("data-labels")),this.config=window.drupalSettings.search_api.algolia,this.init()}init(){this.setAlgolia()}setAlgolia(){const t=gg(this.config.appId,this.config.apiKey),r={...t,search(s){if(s.every(({params:o})=>!o.query)){const o={results:s.map(()=>({hits:[],nbHits:0,nbPages:0,page:0,processingTimeMS:0,hitsPerPage:0,exhaustiveNbHits:!1,query:"",params:""}))};return Promise.resolve(o)}return t.search(s)}},n=Bd({indexName:this.config.indexName,searchClient:r,onStateChange:({uiState:s,setUiState:o})=>{const a=s[this.config.indexName].query;if(!a||a.length<3)return this.$baseList.classList.remove("is-hidden"),o({}),!1;this.$baseList.classList.add("is-hidden"),o(s)}});n.addWidgets([Gg({container:"#list-searchbox",placeholder:this.labels.placeholder}),Wg({container:"#list-hits",cssClasses:{list:`${this.baseClass}s`,item:`card-${this.baseClass}`},templates:{empty:({query:s},{html:o})=>o`<div class="search-empty">${s?this.labels.no_result:""}</div>`,showMoreText:({},{html:s})=>s`${this.labels.load_more}`,item:(s,{html:o,components:a})=>{switch(this.type){case"glossary":return o` 156 <dt class="card-glossary-content"> 157 <a class="card-glossary-title" href="${s.url}"> 158 ${s.title} : 159 </a> 160 </dt> 161 <dd class="card-glossary-content"> 162 <p>${" "}${s.field_introduction?a.Snippet({hit:s,attribute:"field_introduction"}):""}</p> 163 </dd> 164 <span class="icon icon-chevron-right "> 165 <svg> 166 <use xlink:href="/themes/custom/brain_institute/public/assets/svg/icons.svg#chevron-right"></use> 167 </svg> 168 </span> 169 `;case"team":return o` 170 <span class="card-team-surtitle">${this.labels.team}</span> 171 <h4 class="card-team-title">${s.title}</h4> 172 <p class="card-team-text"> 173 ${s.field_introduction?a.Snippet({hit:s,attribute:"field_introduction"}):""} 174 </p> 175 <span class="card-team-leaders-title card-team-surtitle">${this.labels.leaders}</span> 176 <ul class="card-team-leaders"> 177 ${JSON.parse(s.team_leaders).map(l=>o` 178 <li class="card-team-leaders-item"> 179 ${l} 180 </li> 181 `)} 182 </ul> 183 <a class="btn btn-primary" href="${s.url}"> 184 <span class="btn-label">${this.labels.read_more}</span> 185 </a> 186 `;default:return o` 187 <a class="card-disease-title" href="${s.url}"> 188 ${s.title} 189 </a> 190 <figure class="card-disease-picture"> 191 <img loading="lazy" src="${s.thumbnail_image_url}" /> 192 </figure> 193 `}}}}),Rg({filters:`search_api_language:${document.documentElement.lang} AND type:${this.type}`})]),n.start()}}const dS=`uniform vec3 uColor; 194 195void main() { 196 gl_FragColor = vec4(uColor, 1.0); 197 198 #include <colorspace_fragment> 199}`,hS=`uniform float uTime; 200uniform float uFrequency; 201uniform float uSpeed; 202uniform float uElevation; 203uniform sampler2D uPerlinTexture; 204 205varying vec2 vUv; 206 207void main() { 208 vec4 modelPosition = modelMatrix * vec4(position, 1.0); 209 210 float noise = texture(uPerlinTexture, vec2(0.1, uv.y * 0.8)).r; 211 float elevation = sin((modelPosition.y * uFrequency * noise) + (uTime * uSpeed)) * uElevation; 212 213 modelPosition.x += elevation; 214 215 vec4 viewPosition = viewMatrix * modelPosition; 216 vec4 projectionPosition = projectionMatrix * viewPosition; 217 218 gl_Position = projectionPosition; 219 220 vUv = uv; 221}`,pS="/themes/custom/brain_institute/dist/perlin1.png",gS="/themes/custom/brain_institute/dist/perlin2.png";Ve.registerPlugin(fe);class Fd{constructor({$el:e}){E(this,"$canvas");E(this,"isRight");E(this,"isMobile");E(this,"scene");E(this,"renderer");E(this,"isHp");if(this.isHp=document.querySelector(".content-homepage"),this.isHp)return;this.$canvas=e,this.isRight=this.$canvas.getAttribute("data-line-canvas")==="right",this.isMobile=window.matchMedia("(max-width: 768px)").matches;const t=new cm;this.scene=new fm;const r=new dm(.003,2,16,128),n="",s=t.load(`${n}${pS}`),o=t.load(`${n}${gS}`);s.wrapS=Js,s.wrapT=Js,o.wrapS=Js,o.wrapT=Js;const a=new hm({vertexShader:hS,fragmentShader:dS,uniforms:{uFrequency:new _i(10),uTime:new _i(0),uColor:new _i(new pm("#FA4616")),uSpeed:new _i(.5),uElevation:new _i(.1),uPerlinTexture:this.isRight?new _i(o):new _i(s)}}),l=new gm(r,a);l.position.x=this.isRight?.1:-.1,this.scene.add(l);const u={width:this.isMobile?50:100,height:window.innerHeight};window.addEventListener("resize",()=>{u.height=window.innerHeight,c.aspect=u.width/u.height,c.updateProjectionMatrix(),this.renderer.setSize(u.width,u.height),this.renderer.setPixelRatio(Math.min(window.devicePixelRatio,2))});const c=new mm(75,u.width/u.height,.1,100);c.position.set(0,0,1),this.scene.add(c),this.renderer=new vm({canvas:this.$canvas,alpha:!0,antialias:!0}),this.renderer.setSize(u.width,u.height),this.renderer.setPixelRatio(Math.min(window.devicePixelRatio,2));const f=new ym,h=()=>{const g=f.getElapsedTime();a.uniforms.uTime.value=g,this.renderer.render(this.scene,c),window.requestAnimationFrame(h)};h();let d=!1;
221fe.create({trigger:"body",start:"top top",onUpdate:()=>{if(d===!0)return;d=!0;const g=a.uniforms.uFrequency.value<=10?2:-2;Ve.to(a.uniforms.uFrequency,{value:"+="+g})}}),fe.addEventListener("scrollEnd",()=>{d=!1})}}class mS{constructor({$el:e}){E(this,"$el");E(this,"isSafari");this.$el=e,this.init()}checkBrowser(){const t=window.navigator.userAgent.toLowerCase();return t.indexOf("safari")!=-1&&t.indexOf("chrome")==-1&&t.indexOf("version/")!=-1}init(){this.isSafari=this.checkBrowser(),this.isSafari?this.$el.src=this.$el.getAttribute("data-src-safari")?this.$el.getAttribute("data-src-safari"):this.$el.getAttribute("data-src"):this.$el.src=this.$el.getAttribute("data-src")}}const vS=i=>{const e=["red","orange","yellow","pink","purple","blue","turquoise"];let t="";const r=document.querySelector("footer");return{new(n){t&&i.classList.remove(t),t=e[qd(0,e.length-1)],i.classList.add(t),n&&n()},visible(n,s){Ve.to(r,{opacity:0,ease:"power3.inOut",duration:.9}),Ve.to(s.current.container,{scale:.99,ease:"power3.inOut",duration:.9,clipPath:"inset(20px round 3px)",onStart:()=>{setTimeout(()=>{i.classList.add("visible")},300)},onComplete:()=>{window.scrollTo(0,0),s.current.container.remove(),n&&n()}})},hide(n,s){Ve.set(s.next.container,{opacity:0,scale:.99,clipPath:"inset(20px round 3px)"}),Ve.to([s.next.container,r],{opacity:1,scale:1,y:0,ease:"power3.inOut",duration:.9,delay:.5,stagger:{amount:.3},clipPath:"inset(0px round 3px)",clearProps:"transform",onStart:()=>{n&&n()}})},end(n){setTimeout(()=>{i.classList.remove("visible"),i.classList.add(t),n&&n()},300)}}};class yS extends xy{constructor(){super();E(this,"window");E(this,"transition");this.init(),this.classes={Buttons:Km,ArticlesFilters:Ey,Collapse:Sy,Observer:Xm,Sidenav:My,SimpleSlider:eb,Draggable:Py,Readtime:$y,Back:tb,BackSearch:rb,PopOver:ib,Datepick:z_,EventsFilters:Oy,DrawLine:s_,DonationWidget:o_,Search:cS,ListSearch:fS,Video:mS},this.Functions=[{name:"Observer",targets:"[data-observer]",targetsAll:!0,args:null},{name:"Observer",targets:"[data-sidenav-limit]",targetsAll:!0,args:{threshold:1}},{name:"Sidenav",targets:"[data-sidenav]",args:null},{name:"Collapse",targets:"[data-collapse]",args:null},{name:"SimpleSlider",targets:"[data-slider]",args:null},{name:"Draggable",targets:"table",args:null},{name:"ArticlesFilters",targets:"[data-filters]",args:null},{name:"Readtime",targets:"[data-readtime]",args:null},{name:"Back",targets:"[data-back-btn]",args:null},{name:"BackSearch",targets:"[data-back-search]",args:null},{name:"Line",targets:"[data-line-canvas]",args:null},{name:"Datepick",targets:"[data-datepicker]"},{name:"PopOver",targets:"[data-popover]",args:null},{name:"Buttons",targets:".btn-richtext",args:null},{name:"DrawLine",targets:"[data-draw-lines]",args:null},{name:"DonationWidget",targets:"[data-donation-widget]",args:null},{name:"EventsFilters",targets:"[data-events-filters]",args:null},{name:"Search",targets:"[data-search]",args:null},{name:"ListSearch",targets:"[data-search-list]",args:null},{name:"Video",targets:"[data-video]",args:null}]}
221async init(){await new Gm,window.on("on",async()=>{this.core(),document.querySelector("#toolbar-administration")?this.app():await this.barbaSetup(),this.additionnal()})}async core(){const t=document.querySelector(".transition");new zc;const r=document.querySelectorAll("[data-line-canvas]");r.length&&r.forEach(n=>{new Fd({$el:n})}),this.transition=vS(t)}async barbaSetup(){const t=this,r=new CustomEvent("close",{detail:{}}),n=document.querySelector(".header");Po.init({prevent:({el:s})=>{const o=s.classList.contains("langswitch-menu-link"),a=s.hasAttribute("data-filters-action"),l=s.hasAttribute('target="_blank"');return o||l||a},transitions:[{beforeLeave(s){s.trigger.hasAttribute("data-search-result")||s.trigger.hasAttribute("data-back-search")?(s.trigger.hasAttribute("data-search-result")&&localStorage.setItem("fromSearchResult","true"),s.trigger.hasAttribute("data-back-search")&&(localStorage.setItem("fromSearchResult","false"),localStorage.setItem("search",s.trigger.getAttribute("data-current-search")||""),localStorage.setItem("searchType",s.trigger.getAttribute("data-search-type")||""))):(localStorage.removeItem("fromSearchResult"),localStorage.removeItem("search"),localStorage.removeItem("searchType"));const o=this.async();t.transition.new(o,s),n.dispatchEvent(r)},leave(s){const o=this.async();t.transition.visible(o,s)},afterLeave(s){const o=this.async();if(s.next.container.querySelector("[data-barba-form]")){location.reload();return}const l=s.next.html,f=new DOMParser().parseFromString(l,"text/html").head,h=["meta[name='keywords']","meta[name='description']","meta[property^='og']","meta[name^='twitter']","meta[itemprop]","link[itemprop]","link[rel='prev']","link[rel='next']","link[rel='alternate']","link[rel='canonical']"].join(",");document.querySelectorAll(h).forEach(d=>d.remove()),f.querySelectorAll(h).forEach(d=>document.head.appendChild(d)),o()},beforeEnter(s){if(new zc,document.querySelector(".content-homepage"))document.body.classList.add("homepage");else{document.body.classList.remove("homepage");const l=document.querySelectorAll("[data-line-canvas]");l.length&&l.forEach(u=>{u.getAttribute("data-engine")||new Fd({$el:u})})}const a=this.async();t.transition.hide(a,s)},afterEnter(s){const o=this.async();t.transition.end(o,s)}}]}),Po.hooks.beforeLeave(()=>{this.unregister()}
221),Po.hooks.afterEnter(()=>{this.app()})}async app(){window.APP.lenis&&window.APP.lenis.resize(),this.Functions.forEach(t=>{t.registered=!0,this.register(t,t.name,t.targets,t.targetsAll,t.options)})}async unregister(){this.Functions.forEach(t=>{t.registered&&t.off&&t.off()})}additionnal(){new Ym,Um()}}new yS;
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.