vendor: 10,111 bytes, lines 1-9
1import{g as o,f as c}from"./booking-engines-o4e2PFwV.js";function _assertThisInitialized(o){if(void 0===o)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return o}function _inheritsLoose(o,c){o.prototype=Object.create(c.prototype),o.prototype.constructor=o,o.__proto__=c} 2/*! 3 * GSAP 3.14.2 4 * https://gsap.com 5 * 6 * @license Copyright 2008-2025, GreenSock. All rights reserved. 7 * Subject to the terms at https://gsap.com/standard-license 8 * @author: Jack Doyle, [email protected] 9*/var d,u,p,m,g,v,y,_,b,k,w,S={autoSleep:120,force3D:"auto",nullTargetWarn:1,units:{lineHeight:""}},D={duration:.5,overwrite:!1,delay:0},x=1e8,E=1e-8,C=2*Math.PI,M=C/4,T=0,A=Math.sqrt,P=Math.cos,I=Math.sin,_isString$1=function(o){return"string"==typeof o},_isFunction$1=function(o){return"function"==typeof o},_isNumber$1=function(o){return"number"==typeof o},_isUndefined=function(o){return void 0===o},_isObject$1=function(o){return"object"==typeof o},_isNotFalse=function(o){return!1!==o},_windowExists$2=function(){return"undefined"!=typeof window},_isFuncOrString=function(o){return _isFunction$1(o)||_isString$1(o)},O="function"==typeof ArrayBuffer&&ArrayBuffer.isView||function(){},B=Array.isArray,F=/random\([^)]+\)/g,L=/,\s*/g,R=/(?:-?\.?\d|\.)+/gi,Y=/[-+=.]*\d+[.e\-+]*\d*[e\-+]*\d*/g,z=/[-+=.]*\d+[.e-]*\d*[a-z%]*/g,H=/[-+=.]*\d+\.?\d*(?:e-|e\+)?\d*/gi,N=/[+-]=-?[.\d]+/,q=/[^,'"\[\]\s]+/gi,V=/^[+\-=e\s\d]*\d+[.\d]*([a-z]*|%)\s*$/i,j={},U={},_install=function(o){return(U=_merge(o,j))&&Yt},_missingPlugin=function(o,c){return console.warn("Invalid property",o,"set to",c,"Missing plugin? gsap.registerPlugin()")},_warn=function(o,c){return!c&&console.warn(o)},_addGlobal=function(o,c){return o&&(j[o]=c)&&U&&(U[o]=c)||j},_emptyFunc=function(){return 0},W={suppressEvents:!0,isStart:!0,kill:!1},X={suppressEvents:!0,kill:!1},G={suppressEvents:!0},$={},K=[],J={},Q={},Z={},tt=30,et=[],nt="",_harness=function(o){var c,d,u=o[0];if(_isObject$1(u)||_isFunction$1(u)||(o=[o]),!(c=(u._gsap||{}).harness)){for(d=et.length;d--&&!et[d].targetTest(u););c=et[d]}for(d=o.length;d--;)o[d]&&(o[d]._gsap||(o[d]._gsap=new GSCache(o[d],c)))||o.splice(d,1);return o},_getCache=function(o){return o._gsap||_harness(toArray(o))[0]._gsap},_getProperty=function(o,c,d){return(d=o[c])&&_isFunction$1(d)?o[c]():_isUndefined(d)&&o.getAttribute&&o.getAttribute(c)||d},_forEachName=function(o,c){return(o=o.split(",")).forEach(c)||o},_round$1=function(o){return Math.round(1e5*o)/1e5||0},_roundPrecise=function(o){return Math.round(1e7*o)/1e7||0},_parseRelative=function(o,c){var d=c.charAt(0),u=parseFloat(c.substr(2));return o=parseFloat(o),"+"===d?o+u:"-"===d?o-u:"*"===d?o*u:o/u},_arrayContainsAny=function(o,c){for(var d=c.length,u=0;o.indexOf(c[u])<0&&++u<d;);return u<d},_lazyRender=function(){var o,c,d=K.length,u=K.slice(0);for(J={},K.length=0,o=0;o<d;o++)(c=u[o])&&c._lazy&&(c.render(c._lazy[0],c._lazy[1],!0)._lazy=0)},_isRevertWorthy=function(o){return!!(o._initted||o._startAt||o.add)},_lazySafeRender=function(o,c,d,p){K.length&&!u&&_lazyRender(),o.render(c,d,!!(u&&c<0&&_isRevertWorthy(o))),K.length&&!u&&_lazyRender()},_numericIfPossible=function(o){var c=parseFloat(o);return(c||0===c)&&(o+"").match(q).length<2?c:_isString$1(o)?o.trim():o},_passThrough$1=function(o){return o},_setDefaults$1=function(o,c){for(var d in c)d in o||(o[d]=c[d]);return o},_merge=function(o,c){for(var d in c)o[d]=c[d];return o},it=function _mergeDeep(o,c){for(var d in c)"__proto__"!==d&&"constructor"!==d&&"prototype"!==d&&(o[d]=_isObject$1(c[d])?_mergeDeep(o[d]||(o[d]={}),c[d]):c[d]);return o},_copyExcluding=function(o,c){var d,u={};for(d in o)d in c||(u[d]=o[d]);return u},_inheritDefaults=function(o){var c,d=o.parent||m,u=o.keyframes?(c=B(o.keyframes),function(o,d){for(var u in d)u in o||"duration"===u&&c||"ease"===u||(o[u]=d[u])}):_setDefaults$1;if(_isNotFalse(o.inherit))for(;d;)u(o,d.vars.defaults),d=d.parent||d._dp;return o},_addLinkedListItem=function(o,c,d,u,p){var m,g=o[u];if(p)for(m=c[p];g&&g[p]>m;)g=g._prev;return g?(c._next=g._next,g._next=c):(c._next=o[d],o[d]=c),c._next?c._next._prev=c:o[u]=c,c._prev=g,c.parent=c._dp=o,c},_removeLinkedListItem=function(o,c,d,u){void 0===d&&(d="_first"),void 0===u&&(u="_last");var p=c._prev,m=c._next;p?p._next=m:o[d]===c&&(o[d]=m),m?m._prev=p:o[u]===c&&(o[u]=p),c._next=c._prev=c.parent=null},_removeFromParent=function(o,c){o.parent&&(!c||o.parent.autoRemoveChildren)&&o.parent.remove&&o.parent.remove(o),o._act=0},_uncache=function(o,c){if(o&&(!c||c._end>o._dur||c._start<0))for(var d=o;d;)d._dirty=1,d=d.parent;return o},_rewindStartAt=function(o,c,d,p){return o._startAt&&(u?o._startAt.revert(X):o.vars.immediateRender&&!o.vars.autoRevert||o._startAt.render(c,!0,p))},rt=function _hasNoPausedAncestors(o){return!o||o._ts&&_hasNoPausedAncestors(o.parent)},_elapsedCycleDuration=function(o){return o._repeat?_animationCycle(o._tTime,o=o.duration()+o._rDelay)*o:0},_animationCycle=function(o,c){var d=Math.floor(o=_roundPrecise(o/c));return o&&d===o?d-1:d},_parentToChildTotalTime=function(o,c){return(o-c._start)*c._ts+(c._ts>=0?0:c._dirty?c.totalDuration():c._tDur)},_setEnd=function(o){return o._end=_roundPrecise(o._start+(o._tDur/Math.abs(o._ts||o._rts||E)||0))},_alignPlayhead=function(o,c){var d=o._dp;return d&&d.smoothChildTiming&&o._ts&&(o._start=_roundPrecise(d._time-(o._ts>0?c/o._ts:((o._dirty?o.totalDuration():o._tDur)-c)/-o._ts)),_setEnd(o),d._dirty||_uncache(d,o)),o},_postAddChecks=function(o,c){var d;if((c._time||!c._dur&&c._initted||c._start<o._time&&(c._dur||!c.add))&&(d=_parentToChildTotalTime(o.rawTime(),c),(!c._dur||_clamp$1(0,c.totalDuration(),d)-c._tTime>E)&&c.render(d,!0)),_uncache(o,c)._dp&&o._initted&&o._time>=o._dur&&o._ts){if(o._dur<o.duration())for(d=o;d._dp;)d.rawTime()>=0&&d.totalTime(d._tTime),d=d._dp;o._zTime=-1e-8}},_addToTimeline=function(o,c,d,u){return c.parent&&_removeFromParent(c),c._start=_roundPrecise((_isNumber$1(d)?d:d||o!==m?ot(o,d,c):o._time)+c._delay),c._end=_roundPrecise(c._start+(c.totalDuration()/Math.abs(c.timeScale())||0)),_addLinkedListItem(o,c,"_first","_last",o._sort?"_start":0),_isFromOrFromStart(c)||(o._recent=c),u||_postAddChecks(o,c),o._ts<0&&_alignPlayhead(o,o._tTime),o},_scrollTrigger=function(o,c){return(j.ScrollTrigger||_missingPlugin("scrollTrigger",c))&&j.ScrollTrigger.create(c,o)},_attemptInitTween=function(o,c,d,p,m){return xt(o,c,m),o._initted?!d&&o._pt&&!u&&(o._dur&&!1!==o.vars.lazy||!o._dur&&o.vars.lazy)&&b!==ft.frame?(K.push(o),o._lazy=[m,p],1):void 0:1},at=function _parentPlayheadIsBeforeStart(o){var c=o.parent;return c&&c._ts&&c._initted&&!c._lock&&(c.rawTime()<0||_parentPlayheadIsBeforeStart(c))},_isFromOrFromStart=function(o){var c=o.data;return"isFromStart"===c||"isStart"===c},_setDuration=function(o,c,d,u){var p=o._repeat,m=_roundPrecise(c)||0,g=o._tTime/o._tDur;return g&&!u&&(o._time*=m/o._dur),o._dur=m,o._tDur=p?p<0?1e10:_roundPrecise(m*(p+1)+o._rDelay*p):m,g>0&&!u&&_alignPlayhead(o,o._tTime=o._tDur*g),o.parent&&_setEnd(o),d||_uncache(o.parent,o),o},_onUpdateTotalDuration=function(o){return o instanceof wt?_uncache(o):_setDuration(o,o._dur)},st={_start:0,endTime:_emptyFunc,totalDuration:_emptyFunc},ot=function _parsePosition(o,c,d){var u,p,m,g=o.labels,v=o._recent||st,y=o.duration()>=x?v.endTime(!1):o._dur;return _isString$1(c)&&(isNaN(c)||c in g)?(p=c.charAt(0),m="%"===c.substr(-1),u=c.indexOf("="),"<"===p||">"===p?(u>=0&&(c=c.replace(/=/,"")),("<"===p?v._start:v.endTime(v._repeat>=0))+(parseFloat(c.substr(1))||0)*(m?(u<0?v:d).totalDuration()/100:1)):u<0?(c in g||(g[c]=y),g[c]):(p=parseFloat(c.charAt(u-1)+c.substr(u+1)),m&&d&&(p=p/100*(B(d)?d[0]:d).totalDuration()),u>1?_parsePosition(o,c.substr(0,u-1),d)+p:y+p)):null==c?y:+c},_createTweenType=function(o,c,d){var u,p,m=_isNumber$1(c[1]),g=(m?2:1)+(o<2?0:1),v=c[g];if(m&&(v.duration=c[1]),v.parent=d,o){for(u=v,p=d;p&&!("immediateRender"in u);)u=p.vars.defaults||{},p=_isNotFalse(p.vars.inherit)&&p.parent;v.immediateRender=_isNotFalse(u.immediateRender),o<2?v.runBackwards=1:v.startAt=c[g-1]}return new Mt(c[0],v,c[g+1])},_conditionalReturn=function(o,c){return o||0===o?c(o):c},_clamp$1=function(o,c,d){return d<o?o:d>c?c:d},getUnit=function(o,c){return _isString$1(o)&&(c=V.exec(o))?c[1]:""},lt=[].slice,_isArrayLike=function(o,c){return o&&_isObject$1(o)&&"length"in o&&(!c&&!o.length||o.length-1 in o&&_isObject$1(o[0]))&&!o.nodeType&&o!==g},_flatten=function(o,c,d){return void 0===d&&(d=[]),o.forEach(function(o){var u;return _isString$1(o)&&!c||_isArrayLike(o,1)?(u=d).push.apply(u,toArray(o)):d.push(o)})||d},toArray=function(o,c,d){return p&&!c&&p.selector?p.selector(o):!_isString$1(o)||d||!v&&_wake()?B(o)?_flatten(o,d):_isArrayLike(o)?lt.call(o,0):o?[o]:[]:lt.call((c||y).querySelectorAll(o),0)},selector=function(o){return o=toArray(o)[0]||_warn("Invalid scope")||{},function(c){var d=o.current||o.nativeElement||o;return toArray(c,d.querySelectorAll?d:d===o?_warn("Invalid scope")||y.createElement("div"):o)}},shuffle=function(o){return o.sort(function(){return.5-Math.random()})},distribute=function(o){if(_isFunction$1(o))return o;var c=_isObject$1(o)?o:{each:o},d=_parseEase(c.ease),u=c.from||0,p=parseFloat(c.base)||0,m={},g=u>0&&u<1,v=isNaN(u)||g,y=c.axis,_=u,b=u;return _isString$1(u)?_=b={center:.5,edges:.5,end:1}[u]||0:!g&&v&&(_=u[0],b=u[1]),function(o,g,k){var w,S,D,E,C,M,T,P,I,O=(k||c).length,B=m[O];if(!B){if(!(I="auto"===c.grid?0:(c.grid||[1,x])[1])){for(T=-1e8;T<(T=k[I++].getBoundingClientRect().left)&&I<O;);I<O&&I--}for(B=m[O]=[],w=v?Math.min(I,O)*_-.5:u%I,S=I===x?0:v?O*b/I-.5:u/I|0,T=0,P=x,M=0;M<O;M++)D=M%I-w,E=S-(M/I|0),B[M]=C=y?Math.abs("y"===y?E:D):A(D*D+E*E),C>T&&(T=C),C<P&&(P=C);"random"===u&&shuffle(B),B.max=T-P,B.min=P,B.v=O=(parseFloat(c.amount)||parseFloat(c.each)*(I>O?O-1:y?"y"===y?O/I:I:Math.max(I,O/I))||0)*("edges"===u?-1:1),B.b=O<0?p-O:p,B.u=getUnit(c.amount||c.each)||0,d=d&&O<0?_invertEase(d):d}return O=(B[o]-B.min)/B.max||0,_roundPrecise(B.b+(d?d(O):O)*B.v)+B.u}},_roundModifier=function(o){var c=Math.pow(10,((o+"").split(".")[1]||"").length);return function(d){var u=_roundPrecise(Math.round(parseFloat(d)/o)*o*c);
vendor: 5,393 bytes, line 9
9return(u-u%1)/c+(_isNumber$1(d)?0:getUnit(d))}},snap=function(o,c){var d,u,p=B(o);return!p&&_isObject$1(o)&&(d=p=o.radius||x,o.values?(o=toArray(o.values),(u=!_isNumber$1(o[0]))&&(d*=d)):o=_roundModifier(o.increment)),_conditionalReturn(c,p?_isFunction$1(o)?function(c){return u=o(c),Math.abs(u-c)<=d?u:c}:function(c){for(var p,m,g=parseFloat(u?c.x:c),v=parseFloat(u?c.y:0),y=x,_=0,b=o.length;b--;)(p=u?(p=o[b].x-g)*p+(m=o[b].y-v)*m:Math.abs(o[b]-g))<y&&(y=p,_=b);return _=!d||y<=d?o[_]:c,u||_===c||_isNumber$1(c)?_:_+getUnit(c)}:_roundModifier(o))},random=function(o,c,d,u){return _conditionalReturn(B(o)?!c:!0===d?!!(d=0):!u,function(){return B(o)?o[~~(Math.random()*o.length)]:(d=d||1e-5)&&(u=d<1?Math.pow(10,(d+"").length-2):1)&&Math.floor(Math.round((o-d/2+Math.random()*(c-o+.99*d))/d)*d*u)/u})},_wrapArray=function(o,c,d){return _conditionalReturn(d,function(d){return o[~~c(d)]})},_replaceRandom=function(o){return o.replace(F,function(o){var c=o.indexOf("[")+1,d=o.substring(c||7,c?o.indexOf("]"):o.length-1).split(L);return random(c?d:+d[0],c?0:+d[1],+d[2]||1e-5)})},mapRange=function(o,c,d,u,p){var m=c-o,g=u-d;return _conditionalReturn(p,function(c){return d+((c-o)/m*g||0)})},_getLabelInDirection=function(o,c,d){var u,p,m,g=o.labels,v=x;for(u in g)(p=g[u]-c)<0==!!d&&p&&v>(p=Math.abs(p))&&(m=u,v=p);return m},_callback$1=function(o,c,d){var u,m,g,v=o.vars,y=v[c],_=p,b=o._ctx;if(y)return u=v[c+"Params"],m=v.callbackScope||o,d&&K.length&&_lazyRender(),b&&(p=b),g=u?y.apply(m,u):y.call(m),p=_,g},_interrupt=function(o){return _removeFromParent(o),o.scrollTrigger&&o.scrollTrigger.kill(!!u),o.progress()<1&&_callback$1(o,"onInterrupt"),o},ct=[],_createPlugin=function(o){if(o)if(o=!o.name&&o.default||o,_windowExists$2()||o.headless){var c=o.name,d=_isFunction$1(o),u=c&&!d&&o.init?function(){this._props=[]}:o,p={init:_emptyFunc,render:_renderPropTweens,add:_addPropTween,kill:_killPropTweensOf,modifier:_addPluginModifier,rawVars:0},m={targetTest:0,get:0,getSetter:_getSetter,aliases:{},register:0};if(_wake(),o!==u){if(Q[c])return;_setDefaults$1(u,_setDefaults$1(_copyExcluding(o,p),m)),_merge(u.prototype,_merge(p,_copyExcluding(o,m))),Q[u.prop=c]=u,o.targetTest&&(et.push(u),$[c]=1),c=("css"===c?"CSS":c.charAt(0).toUpperCase()+c.substr(1))+"Plugin"}_addGlobal(c,u),o.register&&o.register(Yt,u,Tt)}else ct.push(o)},dt=255,ut={aqua:[0,dt,dt],lime:[0,dt,0],silver:[192,192,192],black:[0,0,0],maroon:[128,0,0],teal:[0,128,128],blue:[0,0,dt],navy:[0,0,128],white:[dt,dt,dt],olive:[128,128,0],yellow:[dt,dt,0],orange:[dt,165,0],gray:[128,128,128],purple:[128,0,128],green:[0,128,0],red:[dt,0,0],pink:[dt,192,203],cyan:[0,dt,dt],transparent:[dt,dt,dt,0]},_hue=function(o,c,d){return(6*(o+=o<0?1:o>1?-1:0)<1?c+(d-c)*o*6:o<.5?d:3*o<2?c+(d-c)*(2/3-o)*6:c)*dt+.5|0},splitColor=function(o,c,d){var u,p,m,g,v,y,_,b,k,w,S=o?_isNumber$1(o)?[o>>16,o>>8&dt,o&dt]:0:ut.black;if(!S){if(","===o.substr(-1)&&(o=o.substr(0,o.length-1)),ut[o])S=ut[o];else if("#"===o.charAt(0)){if(o.length<6&&(u=o.charAt(1),p=o.charAt(2),m=o.charAt(3),o="#"+u+u+p+p+m+m+(5===o.length?o.charAt(4)+o.charAt(4):"")),9===o.length)return[(S=parseInt(o.substr(1,6),16))>>16,S>>8&dt,S&dt,parseInt(o.substr(7),16)/255];S=[(o=parseInt(o.substr(1),16))>>16,o>>8&dt,o&dt]}else if("hsl"===o.substr(0,3))if(S=w=o.match(R),c){if(~o.indexOf("="))return S=o.match(Y),d&&S.length<4&&(S[3]=1),S}else g=+S[0]%360/360,v=+S[1]/100,u=2*(y=+S[2]/100)-(p=y<=.5?y*(v+1):y+v-y*v),S.length>3&&(S[3]*=1),S[0]=_hue(g+1/3,u,p),S[1]=_hue(g,u,p),S[2]=_hue(g-1/3,u,p);else S=o.match(R)||ut.transparent;S=S.map(Number)}return c&&!w&&(u=S[0]/dt,p=S[1]/dt,m=S[2]/dt,y=((_=Math.max(u,p,m))+(b=Math.min(u,p,m)))/2,_===b?g=v=0:(k=_-b,v=y>.5?k/(2-_-b):k/(_+b),g=_===u?(p-m)/k+(p<m?6:0):_===p?(m-u)/k+2:(u-p)/k+4,g*=60),S[0]=~~(g+.5),S[1]=~~(100*v+.5),S[2]=~~(100*y+.5)),d&&S.length<4&&(S[3]=1),S},_colorOrderData=function(o){var c=[],d=[],u=-1;return o.split(ht).forEach(function(o){var p=o.match(z)||[];c.push.apply(c,p),d.push(u+=p.length+1)}),c.c=d,c},_formatColors=function(o,c,d){var u,p,m,g,v="",y=(o+v).match(ht),_=c?"hsla(":"rgba(",b=0;if(!y)return o;if(y=y.map(function(o){return(o=splitColor(o,c,1))&&_+(c?o[0]+","+o[1]+"%,"+o[2]+"%,"+o[3]:o.join(","))+")"}),d&&(m=_colorOrderData(o),(u=d.c).join(v)!==m.c.join(v)))for(g=(p=o.replace(ht,"1").split(z)).length-1;b<g;b++)v+=p[b]+(~u.indexOf(b)?y.shift()||_+"0,0,0,0)":(m.length?m:y.length?y:d).shift());if(!p)for(g=(p=o.split(ht)).length-1;b<g;b++)v+=p[b]+y[b];return v+p[g]},ht=function(){var o,c="(?:\\b(?:(?:rgb|rgba|hsl|hsla)\\(.+?\\))|\\B#(?:[0-9a-f]{3,4}){1,2}\\b";for(o in ut)c+="|"+o+"\\b";return new RegExp(c+")","gi")}(),pt=/hsl[a]?\(/,_colorStringFilter=function(o){var c,d=o.join(" ");if(ht.lastIndex=0,ht.test(d))return c=pt.test(d),o[1]=_formatColors(o[1],c),o[0]=_formatColors(o[0],c,_colorOrderData(o[1])),!0},ft=function(){var o,c,d,u,p,m,b=Date.now,k=500,S=33,D=b(),x=D,E=1e3/240,C=E,M=[],T=function _tick(d){var g,v,y,_,w=b()-x,T=!0===d;if((w>k||w<0)&&(D+=w-S),((g=(y=(x+=w)-D)-C)>0||T)&&(_=++u.frame,p=y-1e3*u.time,u.time=y/=1e3,C+=g+(g>=E?4:E-g),v=1),T||(o=c(_tick)),v)for(m=0;m<M.length;m++)M[m](y,p,_,d)};return u={time:0,frame:0,tick:function(){T(!0)},deltaRatio:function(o){return p/(1e3/(o||60))},wake:function(){_&&(!v&&_windowExists$2()&&(g=v=window,y=g.document||{},j.gsap=Yt,(g.gsapVersions||(g.gsapVersions=[])).push(Yt.version),_install(U||g.GreenSockGlobals||!g.g
vendor: 5,178 bytes, line 9
9sap&&g||{}),ct.forEach(_createPlugin)),d="undefined"!=typeof requestAnimationFrame&&requestAnimationFrame,o&&u.sleep(),c=d||function(o){return setTimeout(o,C-1e3*u.time+1|0)},w=1,T(2))},sleep:function(){(d?cancelAnimationFrame:clearTimeout)(o),w=0,c=_emptyFunc},lagSmoothing:function(o,c){k=o||1/0,S=Math.min(c||33,k)},fps:function(o){E=1e3/(o||240),C=1e3*u.time+E},add:function(o,c,d){var p=c?function(c,d,m,g){o(c,d,m,g),u.remove(p)}:o;return u.remove(o),M[d?"unshift":"push"](p),_wake(),p},remove:function(o,c){~(c=M.indexOf(o))&&M.splice(c,1)&&m>=c&&m--},_listeners:M},u}(),_wake=function(){return!w&&ft.wake()},mt={},gt=/^[\d.\-M][\d.\-,\s]/,vt=/["']/g,_parseObjectInString=function(o){for(var c,d,u,p={},m=o.substr(1,o.length-3).split(":"),g=m[0],v=1,y=m.length;v<y;v++)d=m[v],c=v!==y-1?d.lastIndexOf(","):d.length,u=d.substr(0,c),p[g]=isNaN(u)?u.replace(vt,"").trim():+u,g=d.substr(c+1).trim();return p},_invertEase=function(o){return function(c){return 1-o(1-c)}},yt=function _propagateYoyoEase(o,c){for(var d,u=o._first;u;)u instanceof wt?_propagateYoyoEase(u,c):!u.vars.yoyoEase||u._yoyo&&u._repeat||u._yoyo===c||(u.timeline?_propagateYoyoEase(u.timeline,c):(d=u._ease,u._ease=u._yEase,u._yEase=d,u._yoyo=c)),u=u._next},_parseEase=function(o,c){return o&&(_isFunction$1(o)?o:mt[o]||function(o){var c,d,u,p,m=(o+"").split("("),g=mt[m[0]];return g&&m.length>1&&g.config?g.config.apply(null,~o.indexOf("{")?[_parseObjectInString(m[1])]:(c=o,d=c.indexOf("(")+1,u=c.indexOf(")"),p=c.indexOf("(",d),c.substring(d,~p&&p<u?c.indexOf(")",u+1):u)).split(",").map(_numericIfPossible)):mt._CE&>.test(o)?mt._CE("",o):g}(o))||c},_insertEase=function(o,c,d,u){void 0===d&&(d=function(o){return 1-c(1-o)}),void 0===u&&(u=function(o){return o<.5?c(2*o)/2:1-c(2*(1-o))/2});var p,m={easeIn:c,easeOut:d,easeInOut:u};return _forEachName(o,function(o){for(var c in mt[o]=j[o]=m,mt[p=o.toLowerCase()]=d,m)mt[p+("easeIn"===c?".in":"easeOut"===c?".out":".inOut")]=mt[o+"."+c]=m[c]}),m},_easeInOutFromOut=function(o){return function(c){return c<.5?(1-o(1-2*c))/2:.5+o(2*(c-.5))/2}},_t=function _configElastic(o,c,d){var u=c>=1?c:1,p=(d||(o?.3:.45))/(c<1?c:1),m=p/C*(Math.asin(1/u)||0),easeOut=function(o){return 1===o?1:u*Math.pow(2,-10*o)*I((o-m)*p)+1},g="out"===o?easeOut:"in"===o?function(o){return 1-easeOut(1-o)}:_easeInOutFromOut(easeOut);return p=C/p,g.config=function(c,d){return _configElastic(o,c,d)},g},bt=function _configBack(o,c){void 0===c&&(c=1.70158);var easeOut=function(o){return o?--o*o*((c+1)*o+c)+1:0},d="out"===o?easeOut:"in"===o?function(o){return 1-easeOut(1-o)}:_easeInOutFromOut(easeOut);return d.config=function(c){return _configBack(o,c)},d};_forEachName("Linear,Quad,Cubic,Quart,Quint,Strong",function(o,c){var d=c<5?c+1:c;_insertEase(o+",Power"+(d-1),c?function(o){return Math.pow(o,d)}:function(o){return o},function(o){return 1-Math.pow(1-o,d)},function(o){return o<.5?Math.pow(2*o,d)/2:1-Math.pow(2*(1-o),d)/2})}),mt.Linear.easeNone=mt.none=mt.Linear.easeIn,_insertEase("Elastic",_t("in"),_t("out"),_t()),function(o,c){var d=1/c,u=2*d,p=2.5*d,easeOut=function(m){return m<d?o*m*m:m<u?o*Math.pow(m-1.5/c,2)+.75:m<p?o*(m-=2.25/c)*m+.9375:o*Math.pow(m-2.625/c,2)+.984375};_insertEase("Bounce",function(o){return 1-easeOut(1-o)},easeOut)}(7.5625,2.75),_insertEase("Expo",function(o){return Math.pow(2,10*(o-1))*o+o*o*o*o*o*o*(1-o)}),_insertEase("Circ",function(o){return-(A(1-o*o)-1)}),_insertEase("Sine",function(o){return 1===o?1:1-P(o*M)}),_insertEase("Back",bt("in"),bt("out"),bt()),mt.SteppedEase=mt.steps=j.SteppedEase={config:function(o,c){void 0===o&&(o=1);var d=1/o,u=o+(c?0:1),p=c?1:0;return function(o){return((u*_clamp$1(0,.99999999,o)|0)+p)*d}}},D.ease=mt["quad.out"],_forEachName("onComplete,onUpdate,onStart,onRepeat,onReverseComplete,onInterrupt",function(o){return nt+=o+","+o+"Params,"});var GSCache=function(o,c){this.id=T++,o._gsap=this,this.target=o,this.harness=c,this.get=c?c.get:_getProperty,this.set=c?c.getSetter:_getSetter},kt=function(){function Animation(o){this.vars=o,this._delay=+o.delay||0,(this._repeat=o.repeat===1/0?-2:o.repeat||0)&&(this._rDelay=o.repeatDelay||0,this._yoyo=!!o.yoyo||!!o.yoyoEase),this._ts=1,_setDuration(this,+o.duration,1,1),this.data=o.data,p&&(this._ctx=p,p.data.push(this)),w||ft.wake()}var o=Animation.prototype;return o.delay=function(o){return o||0===o?(this.parent&&this.parent.smoothChildTiming&&this.startTime(this._start+o-this._delay),this._delay=o,this):this._delay},o.duration=function(o){return arguments.length?this.totalDuration(this._repeat>0?o+(o+this._rDelay)*this._repeat:o):this.totalDuration()&&this._dur},o.totalDuration=function(o){return arguments.length?(this._dirty=0,_setDuration(this,this._repeat<0?o:(o-this._repeat*this._rDelay)/(this._repeat+1))):this._tDur},o.totalTime=function(o,c){if(_wake(),!arguments.length)return this._tTime;var d=this._dp;if(d&&d.smoothChildTiming&&this._ts){for(_alignPlayhead(this,o),!d._dp||d.parent||_postAddChecks(d,this);d&&d.parent;)d.parent._time!==d._start+(d._ts>=0?d._tTime/d._ts:(d.totalDuration()-d._tTime)/-d._ts)&&d.totalTime(d._tTime,!0),d=d.parent;!this.parent&&this._dp.autoRemoveChildren&&(this._ts>0&&o<this._tDur||this._ts<0&&o>
vendor: 13,204 bytes, line 9
90||!this._tDur&&!o)&&_addToTimeline(this._dp,this,this._start-this._delay)}return(this._tTime!==o||!this._dur&&!c||this._initted&&Math.abs(this._zTime)===E||!this._initted&&this._dur&&o||!o&&!this._initted&&(this.add||this._ptLookup))&&(this._ts||(this._pTime=o),_lazySafeRender(this,o,c)),this},o.time=function(o,c){return arguments.length?this.totalTime(Math.min(this.totalDuration(),o+_elapsedCycleDuration(this))%(this._dur+this._rDelay)||(o?this._dur:0),c):this._time},o.totalProgress=function(o,c){return arguments.length?this.totalTime(this.totalDuration()*o,c):this.totalDuration()?Math.min(1,this._tTime/this._tDur):this.rawTime()>=0&&this._initted?1:0},o.progress=function(o,c){return arguments.length?this.totalTime(this.duration()*(!this._yoyo||1&this.iteration()?o:1-o)+_elapsedCycleDuration(this),c):this.duration()?Math.min(1,this._time/this._dur):this.rawTime()>0?1:0},o.iteration=function(o,c){var d=this.duration()+this._rDelay;return arguments.length?this.totalTime(this._time+(o-1)*d,c):this._repeat?_animationCycle(this._tTime,d)+1:1},o.timeScale=function(o,c){if(!arguments.length)return-1e-8===this._rts?0:this._rts;if(this._rts===o)return this;var d=this.parent&&this._ts?_parentToChildTotalTime(this.parent._time,this):this._tTime;return this._rts=+o||0,this._ts=this._ps||-1e-8===o?0:this._rts,this.totalTime(_clamp$1(-Math.abs(this._delay),this.totalDuration(),d),!1!==c),_setEnd(this),function(o){for(var c=o.parent;c&&c.parent;)c._dirty=1,c.totalDuration(),c=c.parent;return o}(this)},o.paused=function(o){return arguments.length?(this._ps!==o&&(this._ps=o,o?(this._pTime=this._tTime||Math.max(-this._delay,this.rawTime()),this._ts=this._act=0):(_wake(),this._ts=this._rts,this.totalTime(this.parent&&!this.parent.smoothChildTiming?this.rawTime():this._tTime||this._pTime,1===this.progress()&&Math.abs(this._zTime)!==E&&(this._tTime-=E)))),this):this._ps},o.startTime=function(o){if(arguments.length){this._start=_roundPrecise(o);var c=this.parent||this._dp;return c&&(c._sort||!this.parent)&&_addToTimeline(c,this,this._start-this._delay),this}return this._start},o.endTime=function(o){return this._start+(_isNotFalse(o)?this.totalDuration():this.duration())/Math.abs(this._ts||1)},o.rawTime=function(o){var c=this.parent||this._dp;return c?o&&(!this._ts||this._repeat&&this._time&&this.totalProgress()<1)?this._tTime%(this._dur+this._rDelay):this._ts?_parentToChildTotalTime(c.rawTime(o),this):this._tTime:this._tTime},o.revert=function(o){void 0===o&&(o=G);var c=u;return u=o,_isRevertWorthy(this)&&(this.timeline&&this.timeline.revert(o),this.totalTime(-.01,o.suppressEvents)),"nested"!==this.data&&!1!==o.kill&&this.kill(),u=c,this},o.globalTime=function(o){for(var c=this,d=arguments.length?o:c.rawTime();c;)d=c._start+d/(Math.abs(c._ts)||1),c=c._dp;return!this.parent&&this._sat?this._sat.globalTime(o):d},o.repeat=function(o){return arguments.length?(this._repeat=o===1/0?-2:o,_onUpdateTotalDuration(this)):-2===this._repeat?1/0:this._repeat},o.repeatDelay=function(o){if(arguments.length){var c=this._time;return this._rDelay=o,_onUpdateTotalDuration(this),c?this.time(c):this}return this._rDelay},o.yoyo=function(o){return arguments.length?(this._yoyo=o,this):this._yoyo},o.seek=function(o,c){return this.totalTime(ot(this,o),_isNotFalse(c))},o.restart=function(o,c){return this.play().totalTime(o?-this._delay:0,_isNotFalse(c)),this._dur||(this._zTime=-1e-8),this},o.play=function(o,c){return null!=o&&this.seek(o,c),this.reversed(!1).paused(!1)},o.reverse=function(o,c){return null!=o&&this.seek(o||this.totalDuration(),c),this.reversed(!0).paused(!1)},o.pause=function(o,c){return null!=o&&this.seek(o,c),this.paused(!0)},o.resume=function(){return this.paused(!1)},o.reversed=function(o){return arguments.length?(!!o!==this.reversed()&&this.timeScale(-this._rts||(o?-1e-8:0)),this):this._rts<0},o.invalidate=function(){return this._initted=this._act=0,this._zTime=-1e-8,this},o.isActive=function(){var o,c=this.parent||this._dp,d=this._start;return!(c&&!(this._ts&&this._initted&&c.isActive()&&(o=c.rawTime(!0))>=d&&o<this.endTime(!0)-E))},o.eventCallback=function(o,c,d){var u=this.vars;return arguments.length>1?(c?(u[o]=c,d&&(u[o+"Params"]=d),"onUpdate"===o&&(this._onUpdate=c)):delete u[o],this):u[o]},o.then=function(o){var c=this,d=c._prom;return new Promise(function(u){var p=_isFunction$1(o)?o:_passThrough$1,_resolve=function(){var o=c.then;c.then=null,d&&d(),_isFunction$1(p)&&(p=p(c))&&(p.then||p===c)&&(c.then=o),u(p),c.then=o};c._initted&&1===c.totalProgress()&&c._ts>=0||!c._tTime&&c._ts<0?_resolve():c._prom=_resolve})},o.kill=function(){_interrupt(this)},Animation}();_setDefaults$1(kt.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:-1e-8,_prom:0,_ps:!1,_rts:1});var wt=function(o){function Timeline(c,d){var u;return void 0===c&&(c={}),(u=o.call(this,c)||this).labels={},u.smoothChildTiming=!!c.smoothChildTiming,u.autoRemoveChildren=!!c.autoRemoveChildren,u._sort=_isNotFalse(c.sortChildren),m&&_addToTimeline(c.parent||m,_assertThisInitialized(u),d),c.reversed&&u.reverse(),c.paused&&u.paused(!0),c.scrollTrigger&&_scrollTrigger(_assertThisInitialized(u),c.scrollTrigger),u}_inheritsLoose(Timeline,o);var c=Timeline.prototype;return c.to=function(o,c,d){return _createTweenType(0,arguments,this),this},c.from=function(o,c,d){return _createTweenType(1,arguments,this),this},c.fromTo=function(o,c,d,u){return _createTweenType(2,arguments,this),this},c.set=function(o,c,d){return c.duration=0,c.parent=this,_inheritDefaults(c).repeatDelay||(c.repeat=0),c.immediateRender=!!c.immediateRender,new Mt(o,c,ot(this,d),1),this},c.call=function(o,c,d){return _addToTimeline(this,Mt.delayedCall(0,o,c),d)},c.staggerTo=function(o,c,d,u,p,m,g){return d.duration=c,d.stagger=d.stagger||u,d.onComplete=m,d.onCompleteParams=g,d.parent=this,new Mt(o,d,ot(this,p)),this},c.staggerFrom=function(o,c,d,u,p,m,g){return d.runBackwards=1,_inheritDefaults(d).immediateRender=_isNotFalse(d.immediateRender),this.staggerTo(o,c,d,u,p,m,g)},c.staggerFromTo=function(o,c,d,u,p,m,g,v){return u.startAt=d,_inheritDefaults(u).immediateRender=_isNotFalse(u.immediateRender),this.staggerTo(o,c,u,p,m,g,v)},c.render=function(o,c,d){var p,g,v,y,_,b,k,w,S,D,x,C,M=this._time,T=this._dirty?this.totalDuration():this._tDur,A=this._dur,P=o<=0?0:_roundPrecise(o),I=this._zTime<0!=o<0&&(this._initted||!A);if(this!==m&&P>T&&o>=0&&(P=T),P!==this._tTime||d||I){if(M!==this._time&&A&&(P+=this._time-M,o+=this._time-M),p=P,S=this._start,b=!(w=this._ts),I&&(A||(M=this._zTime),(o||!c)&&(this._zTime=o)),this._repeat){if(x=this._yoyo,_=A+this._rDelay,this._repeat<-1&&o<0)return this.totalTime(100*_+o,c,d);if(p=_roundPrecise(P%_),P===T?(y=this._repeat,p=A):((y=~~(D=_roundPrecise(P/_)))&&y===D&&(p=A,y--),p>A&&(p=A)),D=_animationCycle(this._tTime,_),!M&&this._tTime&&D!==y&&this._tTime-D*_-this._dur<=0&&(D=y),x&&1&y&&(p=A-p,C=1),y!==D&&!this._lock){var O=x&&1&D,B=O===(x&&1&y);if(y<D&&(O=!O),M=O?0:P%A?A:P,this._lock=1,this.render(M||(C?0:_roundPrecise(y*_)),c,!A)._lock=0,this._tTime=P,!c&&this.parent&&_callback$1(this,"onRepeat"),this.vars.repeatRefresh&&!C&&(this.invalidate()._lock=1,D=y),M&&M!==this._time||b!==!this._ts||this.vars.onRepeat&&!this.parent&&!this._act)return this;if(A=this._dur,T=this._tDur,B&&(this._lock=2,M=O?A:-1e-4,this.render(M,!0),this.vars.repeatRefresh&&!C&&this.invalidate()),this._lock=0,!this._ts&&!b)return this;yt(this,C)}}if(this._hasPause&&!this._forcing&&this._lock<2&&(k=function(o,c,d){var u;if(d>c)for(u=o._first;u&&u._start<=d;){if("isPause"===u.data&&u._start>c)return u;u=u._next}else for(u=o._last;u&&u._start>=d;){if("isPause"===u.data&&u._start<c)return u;u=u._prev}}(this,_roundPrecise(M),_roundPrecise(p)),k&&(P-=p-(p=k._start))),this._tTime=P,this._time=p,this._act=!w,this._initted||(this._onUpdate=this.vars.onUpdate,this._initted=1,this._zTime=o,M=0),!M&&P&&A&&!c&&!D&&(_callback$1(this,"onStart"),this._tTime!==P))return this;if(p>=M&&o>=0)for(g=this._first;g;){if(v=g._next,(g._act||p>=g._start)&&g._ts&&k!==g){if(g.parent!==this)return this.render(o,c,d);if(g.render(g._ts>0?(p-g._start)*g._ts:(g._dirty?g.totalDuration():g._tDur)+(p-g._start)*g._ts,c,d),p!==this._time||!this._ts&&!b){k=0,v&&(P+=this._zTime=-1e-8);break}}g=v}else{g=this._last;for(var F=o<0?o:p;g;){if(v=g._prev,(g._act||F<=g._end)&&g._ts&&k!==g){if(g.parent!==this)return this.render(o,c,d);if(g.render(g._ts>0?(F-g._start)*g._ts:(g._dirty?g.totalDuration():g._tDur)+(F-g._start)*g._ts,c,d||u&&_isRevertWorthy(g)),p!==this._time||!this._ts&&!b){k=0,v&&(P+=this._zTime=F?-1e-8:E);break}}g=v}}if(k&&!c&&(this.pause(),k.render(p>=M?0:-1e-8)._zTime=p>=M?1:-1,this._ts))return this._start=S,_setEnd(this),this.render(o,c,d);this._onUpdate&&!c&&_callback$1(this,"onUpdate",!0),(P===T&&this._tTime>=this.totalDuration()||!P&&M)&&(S!==this._start&&Math.abs(w)===Math.abs(this._ts)||this._lock||((o||!A)&&(P===T&&this._ts>0||!P&&this._ts<0)&&_removeFromParent(this,1),c||o<0&&!M||!P&&!M&&T||(_callback$1(this,P===T&&o>=0?"onComplete":"onReverseComplete",!0),this._prom&&!(P<T&&this.timeScale()>0)&&this._prom())))}return this},c.add=function(o,c){var d=this;if(_isNumber$1(c)||(c=ot(this,c,o)),!(o instanceof kt)){if(B(o))return o.forEach(function(o){return d.add(o,c)}),this;if(_isString$1(o))return this.addLabel(o,c);if(!_isFunction$1(o))return this;o=Mt.delayedCall(0,o)}return this!==o?_addToTimeline(this,o,c):this},c.getChildren=function(o,c,d,u){void 0===o&&(o=!0),void 0===c&&(c=!0),void 0===d&&(d=!0),void 0===u&&(u=-1e8);for(var p=[],m=this._first;m;)m._start>=u&&(m instanceof Mt?c&&p.push(m):(d&&p.push(m),o&&p.push.apply(p,m.getChildren(!0,c,d)))),m=m._next;return p},c.getById=function(o){for(var c=this.getChildren(1,1,1),d=c.length;d--;)if(c[d].vars.id===o)return c[d]},c.remove=function(o){return _isString$1(o)?this.removeLabel(o):_isFunction$1(o)?this.killTweensOf(o):(o.parent===this&&_removeLinkedListItem(this,o),o===this._recent&&(this._recent=this._last),_uncache(this))},c.totalTime=function(c,d){return arguments.length?(this._forcing=1,!this._dp&&this._ts&&(this._start=_roundPrecise(ft.time-(this._ts>0?c/this._ts:(this.totalDuration()-c)/-this._ts))),o.prototype.totalTime.call(this,c,d),this._forcing=0,this):this._tTime},c.addLabel=function(o,c){return this.labels[o]=ot(this,c),this},c.removeLabel=function(o){return delete this.labels[o],this},c.addPause=function(o,c,d){var u=Mt.delayedCall(0,c||_emptyFunc,d);return u.data="isPause",this._hasPause=1,_addToTimeline(this,u,ot(this,o))},c.removePause=function(o){var c=this._first;for(o=ot(this,o);c;)c._start===o&&"isPause"===c.data&&_removeFromParent(c),c=c._next},c.killTweensOf=function(o,c,d){for(var u=this.getTweensOf(o,d),p=u.length;p--;)St!==u[p]&&u[p].kill(o,c);return this},c.getTweensOf=function(o,c){for(var d,u=[],p=toArray(o),m=this._first,g=_isNumber$1(c);m;)m instanceof Mt?_arrayContainsAny(m._targets,p)&&(g?(!St||m._initted&&m._ts)&&m.globalTime(0)<=c&&m.globalTime(m.totalDuration())>c:!c||m.isActive())&&u.push(m):(d=m.getTweensOf(p,c)).length&&u.push.apply(u,d),m=m._next;return u},c.tweenTo=function(o,c){c=c||{};var d,u=this,p=ot(u,o),m=c,g=m.startAt,v=m.onStart,y=m.onStartParams,_=m.immediateRender,b=Mt.to(u,_setDefaults$1({ease:c.ease||"none",lazy:!1,immediateRender:!1,time:p,overwrite:"auto",duration:c.duration||Math.abs((p-(g&&"time"in g?g.time:u._time))/u.timeScale())||E,onStart:function(){if(u.pause(),!d){var o=c.duration||Math.abs((p-(g&&"time"in g?g.time:u._time))/u.timeScale());b._dur!==o&&_setDuration(b,o,0,1).render(b._time,!0,!0),d=1}v&&v.apply(b,y||[])}},c));return _?b.render(0):b},c.tweenFromTo=function(o,c,d){return this.tweenTo(c,_setDefaults$1({startAt:{time:ot(this,o)}},d))},c.recent=function(){return this._recent},c.nextLabel=function(o){return void 0===o&&(o=this._time),_getLabelInDirection(this,ot(this,o))},c.previousLabel=function(o){return void 0===o&&(o=this._time),_getLabelInDirection(this,ot(this,o),1)},c.currentLabel=function(o){return arguments.length?this.seek(o,!0):this.previousLabel(this._time+E)},c.shiftChildren=function(o,c,d){void 0===d&&(d=0);var u,p=this._first,m=this.labels;for(o=_roundPrecise(o);p;)p._start>=d&&(p._start+=o,p._end+=o),p=p._next;if(c)for(u in m)m[u]>=d&&(m[u]+=o);return _uncache(this)},c.invalidate=function(c){var d=this._first;for(this._lock=0;d;)d.invalidate(c),d=d._next;return o.prototype.invalidate.call(this,c)},c.clear=function(o){void 0===o&&(o=!0);for(var c,d=this._first;d;)c=d._next,this.remove(d),d=c;return this._dp&&(this._time=this._tTime=this._pTime=0),o&&(this.labels={}),_uncache(this)},c.totalDuration=function(o){var c,d,u,p=0,g=this,v=g._last,y=x;if(arguments.length)return g.timeScale((g._repeat<0?g.duration():g.totalDuration())/(g.reversed()?-o:o));if(g._dirty){for(u=g.parent;v;)c=v._prev,v._dirty&&v.totalDuration(),(d=v._start)>y&&g._sort&&v._ts&&!g._lock?(g._lock=1,_addToTimeline(g,v,d-v._delay,1)._lock=0):y=d,d<0&&v._ts&&(p-=d,(!u&&!g._dp||u&&u.smoothChildTiming)&&(g._start+=_roundPrecise(d/g._ts),g._time-=d,g._tTime-=d),g.shiftChildren(-d,!1,-1/0),y=0),v._end>p&&v._ts&&(p=v._end),v=c;_setDuration(g,g===m&&g._time>p?g._time:p,1,1),g._dirty=0}return g._tDur}
vendor: 11,096 bytes, line 9
9,Timeline.updateRoot=function(o){if(m._ts&&(_lazySafeRender(m,_parentToChildTotalTime(o,m)),b=ft.frame),ft.frame>=tt){tt+=S.autoSleep||120;var c=m._first;if((!c||!c._ts)&&S.autoSleep&&ft._listeners.length<2){for(;c&&!c._ts;)c=c._next;c||ft.sleep()}}},Timeline}(kt);_setDefaults$1(wt.prototype,{_lock:0,_hasPause:0,_forcing:0});var St,Dt,_addComplexStringPropTween=function(o,c,d,u,p,m,g){var v,y,_,b,k,w,S,D,x=new Tt(this._pt,o,c,0,1,_renderComplexString,null,p),E=0,C=0;for(x.b=d,x.e=u,d+="",(S=~(u+="").indexOf("random("))&&(u=_replaceRandom(u)),m&&(m(D=[d,u],o,c),d=D[0],u=D[1]),y=d.match(H)||[];v=H.exec(u);)b=v[0],k=u.substring(E,v.index),_?_=(_+1)%5:"rgba("===k.substr(-5)&&(_=1),b!==y[C++]&&(w=parseFloat(y[C-1])||0,x._pt={_next:x._pt,p:k||1===C?k:",",s:w,c:"="===b.charAt(1)?_parseRelative(w,b)-w:parseFloat(b)-w,m:_&&_<4?Math.round:0},E=H.lastIndex);return x.c=E<u.length?u.substring(E,u.length):"",x.fp=g,(N.test(u)||S)&&(x.e=0),this._pt=x,x},_addPropTween=function(o,c,d,u,p,m,g,v,y,_){_isFunction$1(u)&&(u=u(p||0,o,m));var b,k=o[c],w="get"!==d?d:_isFunction$1(k)?y?o[c.indexOf("set")||!_isFunction$1(o["get"+c.substr(3)])?c:"get"+c.substr(3)](y):o[c]():k,D=_isFunction$1(k)?y?_setterFuncWithParam:_setterFunc:_setterPlain;if(_isString$1(u)&&(~u.indexOf("random(")&&(u=_replaceRandom(u)),"="===u.charAt(1)&&((b=_parseRelative(w,u)+(getUnit(w)||0))||0===b)&&(u=b)),!_||w!==u||Dt)return isNaN(w*u)||""===u?(!k&&!(c in o)&&_missingPlugin(c,u),_addComplexStringPropTween.call(this,o,c,w,u,D,v||S.stringFilter,y)):(b=new Tt(this._pt,o,c,+w||0,u-(w||0),"boolean"==typeof k?_renderBoolean:_renderPlain,0,D),y&&(b.fp=y),g&&b.modifier(g,this,o),this._pt=b)},_checkPlugin=function(o,c,d,u,p,m){var g,v,y,_;if(Q[o]&&!1!==(g=new Q[o]).init(p,g.rawVars?c[o]:function(o,c,d,u,p){if(_isFunction$1(o)&&(o=_parseFuncOrString(o,p,c,d,u)),!_isObject$1(o)||o.style&&o.nodeType||B(o)||O(o))return _isString$1(o)?_parseFuncOrString(o,p,c,d,u):o;var m,g={};for(m in o)g[m]=_parseFuncOrString(o[m],p,c,d,u);return g}(c[o],u,p,m,d),d,u,m)&&(d._pt=v=new Tt(d._pt,p,o,0,1,g.render,g,0,g.priority),d!==k))for(y=d._ptLookup[d._targets.indexOf(p)],_=g._props.length;_--;)y[g._props[_]]=v;return g},xt=function _initTween(o,c,p){var g,v,y,_,b,k,w,S,C,M,T,A,P,I=o.vars,O=I.ease,B=I.startAt,F=I.immediateRender,L=I.lazy,R=I.onUpdate,Y=I.runBackwards,z=I.yoyoEase,H=I.keyframes,N=I.autoRevert,q=o._dur,V=o._startAt,j=o._targets,U=o.parent,G=U&&"nested"===U.data?U.vars.targets:j,Z="auto"===o._overwrite&&!d,tt=o.timeline;if(tt&&(!H||!O)&&(O="none"),o._ease=_parseEase(O,D.ease),o._yEase=z?_invertEase(_parseEase(!0===z?O:z,D.ease)):0,z&&o._yoyo&&!o._repeat&&(z=o._yEase,o._yEase=o._ease,o._ease=z),o._from=!tt&&!!I.runBackwards,!tt||H&&!I.stagger){if(A=(S=j[0]?_getCache(j[0]).harness:0)&&I[S.prop],g=_copyExcluding(I,$),V&&(V._zTime<0&&V.progress(1),c<0&&Y&&F&&!N?V.render(-1,!0):V.revert(Y&&q?X:W),V._lazy=0),B){if(_removeFromParent(o._startAt=Mt.set(j,_setDefaults$1({data:"isStart",overwrite:!1,parent:U,immediateRender:!0,lazy:!V&&_isNotFalse(L),startAt:null,delay:0,onUpdate:R&&function(){return _callback$1(o,"onUpdate")},stagger:0},B))),o._startAt._dp=0,o._startAt._sat=o,c<0&&(u||!F&&!N)&&o._startAt.revert(X),F&&q&&c<=0&&p<=0)return void(c&&(o._zTime=c))}else if(Y&&q&&!V)if(c&&(F=!1),y=_setDefaults$1({overwrite:!1,data:"isFromStart",lazy:F&&!V&&_isNotFalse(L),immediateRender:F,stagger:0,parent:U},g),A&&(y[S.prop]=A),_removeFromParent(o._startAt=Mt.set(j,y)),o._startAt._dp=0,o._startAt._sat=o,c<0&&(u?o._startAt.revert(X):o._startAt.render(-1,!0)),o._zTime=c,F){if(!c)return}else _initTween(o._startAt,E,E);for(o._pt=o._ptCache=0,L=q&&_isNotFalse(L)||L&&!q,v=0;v<j.length;v++){if(w=(b=j[v])._gsap||_harness(j)[v]._gsap,o._ptLookup[v]=M={},J[w.id]&&K.length&&_lazyRender(),T=G===j?v:G.indexOf(b),S&&!1!==(C=new S).init(b,A||g,o,T,G)&&(o._pt=_=new Tt(o._pt,b,C.name,0,1,C.render,C,0,C.priority),C._props.forEach(function(o){M[o]=_}),C.priority&&(k=1)),!S||A)for(y in g)Q[y]&&(C=_checkPlugin(y,g,o,T,b,G))?C.priority&&(k=1):M[y]=_=_addPropTween.call(o,b,y,"get",g[y],T,G,0,I.stringFilter);o._op&&o._op[v]&&o.kill(b,o._op[v]),Z&&o._pt&&(St=o,m.killTweensOf(b,M,o.globalTime(c)),P=!o.parent,St=0),o._pt&&L&&(J[w.id]=1)}k&&_sortPropTweensByPriority(o),o._onInit&&o._onInit(o)}o._onUpdate=R,o._initted=(!o._op||o._pt)&&!P,H&&c<=0&&tt.render(x,!0,!0)},_parseKeyframe=function(o,c,d,u){var p,m,g=c.ease||u||"power1.inOut";if(B(c))m=d[o]||(d[o]=[]),c.forEach(function(o,d){return m.push({t:d/(c.length-1)*100,v:o,e:g})});else for(p in c)m=d[p]||(d[p]=[]),"ease"===p||m.push({t:parseFloat(o),v:c[p],e:g})},_parseFuncOrString=function(o,c,d,u,p){return _isFunction$1(o)?o.call(c,d,u,p):_isString$1(o)&&~o.indexOf("random(")?_replaceRandom(o):o},Et=nt+"repeat,repeatDelay,yoyo,repeatRefresh,yoyoEase,autoRevert",Ct={};_forEachName(Et+",id,stagger,delay,duration,paused,scrollTrigger",function(o){return Ct[o]=1});var Mt=function(o){function Tween(c,u,p,g){var v;"number"==typeof u&&(p.duration=u,u=p,p=null);var y,_,b,k,w,D,x,E,C=(v=o.call(this,g?u:_inheritDefaults(u))||this).vars,M=C.duration,T=C.delay,A=C.immediateRender,P=C.stagger,I=C.overwrite,F=C.keyframes,L=C.defaults,R=C.scrollTrigger,Y=C.yoyoEase,z=u.parent||m,H=(B(c)||O(c)?_isNumber$1(c[0]):"length"in u)?[c]:toArray(c);if(v._targets=H.length?_harness(H):_warn("GSAP target "+c+" not found. https://gsap.com",!S.nullTargetWarn)||[],v._ptLookup=[],v._overwrite=I,F||P||_isFuncOrString(M)||_isFuncOrString(T)){if(u=v.vars,(y=v.timeline=new wt({data:"nested",defaults:L||{},targets:z&&"nested"===z.data?z.vars.targets:H})).kill(),y.parent=y._dp=_assertThisInitialized(v),y._start=0,P||_isFuncOrString(M)||_isFuncOrString(T)){if(k=H.length,x=P&&distribute(P),_isObject$1(P))for(w in P)~Et.indexOf(w)&&(E||(E={}),E[w]=P[w]);for(_=0;_<k;_++)(b=_copyExcluding(u,Ct)).stagger=0,Y&&(b.yoyoEase=Y),E&&_merge(b,E),D=H[_],b.duration=+_parseFuncOrString(M,_assertThisInitialized(v),_,D,H),b.delay=(+_parseFuncOrString(T,_assertThisInitialized(v),_,D,H)||0)-v._delay,!P&&1===k&&b.delay&&(v._delay=T=b.delay,v._start+=T,b.delay=0),y.to(D,b,x?x(_,D,H):0),y._ease=mt.none;y.duration()?M=T=0:v.timeline=0}else if(F){_inheritDefaults(_setDefaults$1(y.vars.defaults,{ease:"none"})),y._ease=_parseEase(F.ease||u.ease||"none");var N,q,V,j=0;if(B(F))F.forEach(function(o){return y.to(H,o,">")}),y.duration();else{for(w in b={},F)"ease"===w||"easeEach"===w||_parseKeyframe(w,F[w],b,F.easeEach);for(w in b)for(N=b[w].sort(function(o,c){return o.t-c.t}),j=0,_=0;_<N.length;_++)(V={ease:(q=N[_]).e,duration:(q.t-(_?N[_-1].t:0))/100*M})[w]=q.v,y.to(H,V,j),j+=V.duration;y.duration()<M&&y.to({},{duration:M-y.duration()})}}M||v.duration(M=y.duration())}else v.timeline=0;return!0!==I||d||(St=_assertThisInitialized(v),m.killTweensOf(H),St=0),_addToTimeline(z,_assertThisInitialized(v),p),u.reversed&&v.reverse(),u.paused&&v.paused(!0),(A||!M&&!F&&v._start===_roundPrecise(z._time)&&_isNotFalse(A)&&rt(_assertThisInitialized(v))&&"nested"!==z.data)&&(v._tTime=-1e-8,v.render(Math.max(0,-T)||0)),R&&_scrollTrigger(_assertThisInitialized(v),R),v}_inheritsLoose(Tween,o);var c=Tween.prototype;return c.render=function(o,c,d){var p,m,g,v,y,_,b,k,w,S=this._time,D=this._tDur,x=this._dur,C=o<0,M=o>D-E&&!C?D:o<E?0:o;if(x){if(M!==this._tTime||!o||d||!this._initted&&this._tTime||this._startAt&&this._zTime<0!==C||this._lazy){if(p=M,k=this.timeline,this._repeat){if(v=x+this._rDelay,this._repeat<-1&&C)return this.totalTime(100*v+o,c,d);if(p=_roundPrecise(M%v),M===D?(g=this._repeat,p=x):(g=~~(y=_roundPrecise(M/v)))&&g===y?(p=x,g--):p>x&&(p=x),(_=this._yoyo&&1&g)&&(w=this._yEase,p=x-p),y=_animationCycle(this._tTime,v),p===S&&!d&&this._initted&&g===y)return this._tTime=M,this;g!==y&&(k&&this._yEase&&yt(k,_),this.vars.repeatRefresh&&!_&&!this._lock&&p!==v&&this._initted&&(this._lock=d=1,this.render(_roundPrecise(v*g),!0).invalidate()._lock=0))}if(!this._initted){if(_attemptInitTween(this,C?o:p,d,c,M))return this._tTime=0,this;if(!(S===this._time||d&&this.vars.repeatRefresh&&g!==y))return this;if(x!==this._dur)return this.render(o,c,d)}if(this._tTime=M,this._time=p,!this._act&&this._ts&&(this._act=1,this._lazy=0),this.ratio=b=(w||this._ease)(p/x),this._from&&(this.ratio=b=1-b),!S&&M&&!c&&!y&&(_callback$1(this,"onStart"),this._tTime!==M))return this;for(m=this._pt;m;)m.r(b,m.d),m=m._next;k&&k.render(o<0?o:k._dur*k._ease(p/this._dur),c,d)||this._startAt&&(this._zTime=o),this._onUpdate&&!c&&(C&&_rewindStartAt(this,o,0,d),_callback$1(this,"onUpdate")),this._repeat&&g!==y&&this.vars.onRepeat&&!c&&this.parent&&_callback$1(this,"onRepeat"),M!==this._tDur&&M||this._tTime!==M||(C&&!this._onUpdate&&_rewindStartAt(this,o,0,!0),(o||!x)&&(M===this._tDur&&this._ts>0||!M&&this._ts<0)&&_removeFromParent(this,1),c||C&&!S||!(M||S||_)||(_callback$1(this,M===D?"onComplete":"onReverseComplete",!0),this._prom&&!(M<D&&this.timeScale()>0)&&this._prom()))}}else!function(o,c,d,p){var m,g,v,y=o.ratio,_=c<0||!c&&(!o._start&&at(o)&&(o._initted||!_isFromOrFromStart(o))||(o._ts<0||o._dp._ts<0)&&!_isFromOrFromStart(o))?0:1,b=o._rDelay,k=0;if(b&&o._repeat&&(k=_clamp$1(0,o._tDur,c),g=_animationCycle(k,b),o._yoyo&&1&g&&(_=1-_),g!==_animationCycle(o._tTime,b)&&(y=1-_,o.vars.repeatRefresh&&o._initted&&o.invalidate())),_!==y||u||p||o._zTime===E||!c&&o._zTime){if(!o._initted&&_attemptInitTween(o,c,p,d,k))return;for(v=o._zTime,o._zTime=c||(d?E:0),d||(d=c&&!v),o.ratio=_,o._from&&(_=1-_),o._time=0,o._tTime=k,m=o._pt;m;)m.r(_,m.d),m=m._next;c<0&&_rewindStartAt(o,c,0,!0),o._onUpdate&&!d&&_callback$1(o,"onUpdate"),k&&o._repeat&&!d&&o.parent&&_callback$1(o,"onRepeat"),(c>=o._tDur||c<0)&&o.ratio===_&&(_&&_removeFromParent(o,1),d||u||(_callback$1(o,_?"onComplete":"onReverseComplete",!0),o._prom&&o._prom()))}else o._zTime||(o._zTime=c)}(this,o,c,d);return this},c.targets=function(){return this._targets},c.invalidate=function(c){return(!c||!this.vars.runBackwards)&&(this._startAt=0),this._pt=this._op=this._onUpdate=this._lazy=this.ratio=0,this._ptLookup=[],this.timeline&&this.timeline.invalidate(c),o.prototype.invalidate.call(this,c)},c.resetTo=function(o,c,d,u,p){w||ft.wake(),this._ts||this.play();var m=Math.min(this._dur,(this._dp._time-this._start)*this._ts);return this._initted||xt(this,m),function(o,c,d,u,p,m,g,v){var y,_,b,k,w=(o._pt&&o._ptCache||(o._ptCache={}))[c];if(!w)for(w=o._ptCache[c]=[],b=o._ptLookup,k=o._targets.length;k--;){if((y=b[k][c])&&y.d&&y.d._pt)for(y=y.d._pt;y&&y.p!==c&&y.fp!==c;)y=y._next;if(!y)return Dt=1,o.vars[c]="+=0",xt(o,g),Dt=0,v?_warn(c+" not eligible for reset"):1;w.push(y)}for(k=w.length;k--;)(y=(_=w[k])._pt||_).s=!u&&0!==u||p?y.s+(u||0)+m*y.c:u,y.c=d-y.s,_.e&&(_.e=_round$1(d)+getUnit(_.e)),_.b&&(_.b=y.s+getUnit(_.b))}(this,o,c,d,u,this._ease(m/this._dur),m,p)?this.resetTo(o,c,d,u,1):(_alignPlayhead(this,0),this.parent||_addLinkedListItem(this._dp,this,"_first","_last",this._dp._sort?"_start":0),this.render(0))},c.kill=function(o,c){if(void 0===c&&(c="all"),!(o||c&&"all"!==c))return this._lazy=this._pt=0,this.parent?_interrupt(this):this.scrollTrigger&&this.scrollTrigger.kill(!!u),this;if(this.timeline){var d=this.timeline.totalDuration();
vendor: 29,933 bytes, lines 9-18
9return this.timeline.killTweensOf(o,c,St&&!0!==St.vars.overwrite)._first||_interrupt(this),this.parent&&d!==this.timeline.totalDuration()&&_setDuration(this,this._dur*this.timeline._tDur/d,0,1),this}var p,m,g,v,y,_,b,k=this._targets,w=o?toArray(o):k,S=this._ptLookup,D=this._pt;if((!c||"all"===c)&&function(o,c){for(var d=o.length,u=d===c.length;u&&d--&&o[d]===c[d];);return d<0}(k,w))return"all"===c&&(this._pt=0),_interrupt(this);for(p=this._op=this._op||[],"all"!==c&&(_isString$1(c)&&(y={},_forEachName(c,function(o){return y[o]=1}),c=y),c=function(o,c){var d,u,p,m,g=o[0]?_getCache(o[0]).harness:0,v=g&&g.aliases;if(!v)return c;for(u in d=_merge({},c),v)if(u in d)for(p=(m=v[u].split(",")).length;p--;)d[m[p]]=d[u];return d}(k,c)),b=k.length;b--;)if(~w.indexOf(k[b]))for(y in m=S[b],"all"===c?(p[b]=c,v=m,g={}):(g=p[b]=p[b]||{},v=c),v)(_=m&&m[y])&&("kill"in _.d&&!0!==_.d.kill(y)||_removeLinkedListItem(this,_,"_pt"),delete m[y]),"all"!==g&&(g[y]=1);return this._initted&&!this._pt&&D&&_interrupt(this),this},Tween.to=function(o,c){return new Tween(o,c,arguments[2])},Tween.from=function(o,c){return _createTweenType(1,arguments)},Tween.delayedCall=function(o,c,d,u){return new Tween(c,0,{immediateRender:!1,lazy:!1,overwrite:!1,delay:o,onComplete:c,onReverseComplete:c,onCompleteParams:d,onReverseCompleteParams:d,callbackScope:u})},Tween.fromTo=function(o,c,d){return _createTweenType(2,arguments)},Tween.set=function(o,c){return c.duration=0,c.repeatDelay||(c.repeat=0),new Tween(o,c)},Tween.killTweensOf=function(o,c,d){return m.killTweensOf(o,c,d)},Tween}(kt);_setDefaults$1(Mt.prototype,{_targets:[],_lazy:0,_startAt:0,_op:0,_onInit:0}),_forEachName("staggerTo,staggerFrom,staggerFromTo",function(o){Mt[o]=function(){var c=new wt,d=lt.call(arguments,0);return d.splice("staggerFromTo"===o?5:4,0,0),c[o].apply(c,d)}});var _setterPlain=function(o,c,d){return o[c]=d},_setterFunc=function(o,c,d){return o[c](d)},_setterFuncWithParam=function(o,c,d,u){return o[c](u.fp,d)},_setterAttribute=function(o,c,d){return o.setAttribute(c,d)},_getSetter=function(o,c){return _isFunction$1(o[c])?_setterFunc:_isUndefined(o[c])&&o.setAttribute?_setterAttribute:_setterPlain},_renderPlain=function(o,c){return c.set(c.t,c.p,Math.round(1e6*(c.s+c.c*o))/1e6,c)},_renderBoolean=function(o,c){return c.set(c.t,c.p,!!(c.s+c.c*o),c)},_renderComplexString=function(o,c){var d=c._pt,u="";if(!o&&c.b)u=c.b;else if(1===o&&c.e)u=c.e;else{for(;d;)u=d.p+(d.m?d.m(d.s+d.c*o):Math.round(1e4*(d.s+d.c*o))/1e4)+u,d=d._next;u+=c.c}c.set(c.t,c.p,u,c)},_renderPropTweens=function(o,c){for(var d=c._pt;d;)d.r(o,d.d),d=d._next},_addPluginModifier=function(o,c,d,u){for(var p,m=this._pt;m;)p=m._next,m.p===u&&m.modifier(o,c,d),m=p},_killPropTweensOf=function(o){for(var c,d,u=this._pt;u;)d=u._next,u.p===o&&!u.op||u.op===o?_removeLinkedListItem(this,u,"_pt"):u.dep||(c=1),u=d;return!c},_setterWithModifier=function(o,c,d,u){u.mSet(o,c,u.m.call(u.tween,d,u.mt),u)},_sortPropTweensByPriority=function(o){for(var c,d,u,p,m=o._pt;m;){for(c=m._next,d=u;d&&d.pr>m.pr;)d=d._next;(m._prev=d?d._prev:p)?m._prev._next=m:u=m,(m._next=d)?d._prev=m:p=m,m=c}o._pt=u},Tt=function(){function PropTween(o,c,d,u,p,m,g,v,y){this.t=c,this.s=u,this.c=p,this.p=d,this.r=m||_renderPlain,this.d=g||this,this.set=v||_setterPlain,this.pr=y||0,this._next=o,o&&(o._prev=this)}return PropTween.prototype.modifier=function(o,c,d){this.mSet=this.mSet||this.set,this.set=_setterWithModifier,this.m=o,this.mt=d,this.tween=c},PropTween}();_forEachName(nt+"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(o){return $[o]=1}),j.TweenMax=j.TweenLite=Mt,j.TimelineLite=j.TimelineMax=wt,m=new wt({sortChildren:!1,defaults:D,autoRemoveChildren:!0,id:"root",smoothChildTiming:!0}),S.stringFilter=_colorStringFilter;var At=[],Pt={},It=[],Ot=0,Bt=0,_dispatch$1=function(o){return(Pt[o]||It).map(function(o){return o()})},_onMediaChange=function(){var o=Date.now(),c=[];o-Ot>2&&(_dispatch$1("matchMediaInit"),At.forEach(function(o){var d,u,p,m,v=o.queries,y=o.conditions;for(u in v)(d=g.matchMedia(v[u]).matches)&&(p=1),d!==y[u]&&(y[u]=d,m=1);m&&(o.revert(),p&&c.push(o))}),_dispatch$1("matchMediaRevert"),c.forEach(function(o){return o.onMatch(o,function(c){return o.add(null,c)})}),Ot=o,_dispatch$1("matchMedia"))},Ft=function(){function Context(o,c){this.selector=c&&selector(c),this.data=[],this._r=[],this.isReverted=!1,this.id=Bt++,o&&this.add(o)}var o=Context.prototype;return o.add=function(o,c,d){_isFunction$1(o)&&(d=c,c=o,o=_isFunction$1);var u=this,f=function(){var o,m=p,g=u.selector;return m&&m!==u&&m.data.push(u),d&&(u.selector=selector(d)),p=u,o=c.apply(u,arguments),_isFunction$1(o)&&u._r.push(o),p=m,u.selector=g,u.isReverted=!1,o};return u.last=f,o===_isFunction$1?f(u,function(o){return u.add(null,o)}):o?u[o]=f:f},o.ignore=function(o){var c=p;p=null,o(this),p=c},o.getTweens=function(){var o=[];return this.data.forEach(function(c){return c instanceof Context?o.push.apply(o,c.getTweens()):c instanceof Mt&&!(c.parent&&"nested"===c.parent.data)&&o.push(c)}),o},o.clear=function(){this._r.length=this.data.length=0},o.kill=function(o,c){var d=this;if(o?function(){for(var c,u=d.getTweens(),p=d.data.length;p--;)"isFlip"===(c=d.data[p]).data&&(c.revert(),c.getChildren(!0,!0,!1).forEach(function(o){return u.splice(u.indexOf(o),1)}));for(u.map(function(o){return{g:o._dur||o._delay||o._sat&&!o._sat.vars.immediateRender?o.globalTime(0):-1/0,t:o}}).sort(function(o,c){return c.g-o.g||-1/0}).forEach(function(c){return c.t.revert(o)}),p=d.data.length;p--;)(c=d.data[p])instanceof wt?"nested"!==c.data&&(c.scrollTrigger&&c.scrollTrigger.revert(),c.kill()):!(c instanceof Mt)&&c.revert&&c.revert(o);d._r.forEach(function(c){return c(o,d)}),d.isReverted=!0}():this.data.forEach(function(o){return o.kill&&o.kill()}),this.clear(),c)for(var u=At.length;u--;)At[u].id===this.id&&At.splice(u,1)},o.revert=function(o){this.kill(o||{})},Context}(),Lt=function(){function MatchMedia(o){this.contexts=[],this.scope=o,p&&p.data.push(this)}var o=MatchMedia.prototype;return o.add=function(o,c,d){_isObject$1(o)||(o={matches:o});var u,m,v,y=new Ft(0,d||this.scope),_=y.conditions={};for(m in p&&!y.selector&&(y.selector=p.selector),this.contexts.push(y),c=y.add("onMatch",c),y.queries=o,o)"all"===m?v=1:(u=g.matchMedia(o[m]))&&(At.indexOf(y)<0&&At.push(y),(_[m]=u.matches)&&(v=1),u.addListener?u.addListener(_onMediaChange):u.addEventListener("change",_onMediaChange));return v&&c(y,function(o){return y.add(null,o)}),this},o.revert=function(o){this.kill(o||{})},o.kill=function(o){this.contexts.forEach(function(c){return c.kill(o,!0)})},MatchMedia}(),Rt={registerPlugin:function(){for(var o=arguments.length,c=new Array(o),d=0;d<o;d++)c[d]=arguments[d];c.forEach(function(o){return _createPlugin(o)})},timeline:function(o){return new wt(o)},getTweensOf:function(o,c){return m.getTweensOf(o,c)},getProperty:function(o,c,d,u){_isString$1(o)&&(o=toArray(o)[0]);var p=_getCache(o||{}).get,m=d?_passThrough$1:_numericIfPossible;return"native"===d&&(d=""),o?c?m((Q[c]&&Q[c].get||p)(o,c,d,u)):function(c,d,u){return m((Q[c]&&Q[c].get||p)(o,c,d,u))}:o},quickSetter:function(o,c,d){if((o=toArray(o)).length>1){var u=o.map(function(o){return Yt.quickSetter(o,c,d)}),p=u.length;return function(o){for(var c=p;c--;)u[c](o)}}o=o[0]||{};var m=Q[c],g=_getCache(o),v=g.harness&&(g.harness.aliases||{})[c]||c,y=m?function(c){var u=new m;k._pt=0,u.init(o,d?c+d:c,k,0,[o]),u.render(1,u),k._pt&&_renderPropTweens(1,k)}:g.set(o,v);return m?y:function(c){return y(o,v,d?c+d:c,g,1)}},quickTo:function(o,c,d){var u,p=Yt.to(o,_setDefaults$1(((u={})[c]="+=0.1",u.paused=!0,u.stagger=0,u),d||{})),func=function(o,d,u){return p.resetTo(c,o,d,u)};return func.tween=p,func},isTweening:function(o){return m.getTweensOf(o,!0).length>0},defaults:function(o){return o&&o.ease&&(o.ease=_parseEase(o.ease,D.ease)),it(D,o||{})},config:function(o){return it(S,o||{})},registerEffect:function(o){var c=o.name,d=o.effect,u=o.plugins,p=o.defaults,m=o.extendTimeline;(u||"").split(",").forEach(function(o){return o&&!Q[o]&&!j[o]&&_warn(c+" effect requires "+o+" plugin.")}),Z[c]=function(o,c,u){return d(toArray(o),_setDefaults$1(c||{},p),u)},m&&(wt.prototype[c]=function(o,d,u){return this.add(Z[c](o,_isObject$1(d)?d:(u=d)&&{},this),u)})},registerEase:function(o,c){mt[o]=_parseEase(c)},parseEase:function(o,c){return arguments.length?_parseEase(o,c):mt},getById:function(o){return m.getById(o)},exportRoot:function(o,c){void 0===o&&(o={});var d,u,p=new wt(o);for(p.smoothChildTiming=_isNotFalse(o.smoothChildTiming),m.remove(p),p._dp=0,p._time=p._tTime=m._time,d=m._first;d;)u=d._next,!c&&!d._dur&&d instanceof Mt&&d.vars.onComplete===d._targets[0]||_addToTimeline(p,d,d._start-d._delay),d=u;return _addToTimeline(m,p,0),p},context:function(o,c){return o?new Ft(o,c):p},matchMedia:function(o){return new Lt(o)},matchMediaRefresh:function(){return At.forEach(function(o){var c,d,u=o.conditions;for(d in u)u[d]&&(u[d]=!1,c=1);c&&o.revert()})||_onMediaChange()},addEventListener:function(o,c){var d=Pt[o]||(Pt[o]=[]);~d.indexOf(c)||d.push(c)},removeEventListener:function(o,c){var d=Pt[o],u=d&&d.indexOf(c);u>=0&&d.splice(u,1)},utils:{wrap:function wrap(o,c,d){var u=c-o;return B(o)?_wrapArray(o,wrap(0,o.length),c):_conditionalReturn(d,function(c){return(u+(c-o)%u)%u+o})},wrapYoyo:function wrapYoyo(o,c,d){var u=c-o,p=2*u;return B(o)?_wrapArray(o,wrapYoyo(0,o.length-1),c):_conditionalReturn(d,function(c){return o+((c=(p+(c-o)%p)%p||0)>u?p-c:c)})},distribute:distribute,random:random,snap:snap,normalize:function(o,c,d){return mapRange(o,c,0,1,d)},getUnit:getUnit,clamp:function(o,c,d){return _conditionalReturn(d,function(d){return _clamp$1(o,c,d)})},splitColor:splitColor,toArray:toArray,selector:selector,mapRange:mapRange,pipe:function(){for(var o=arguments.length,c=new Array(o),d=0;d<o;d++)c[d]=arguments[d];return function(o){return c.reduce(function(o,c){return c(o)},o)}},unitize:function(o,c){return function(d){return o(parseFloat(d))+(c||getUnit(d))}},interpolate:function interpolate(o,c,d,u){var p=isNaN(o+c)?0:function(d){return(1-d)*o+d*c};if(!p){var m,g,v,y,_,b=_isString$1(o),k={};if(!0===d&&(u=1)&&(d=null),b)o={p:o},c={p:c};else if(B(o)&&!B(c)){for(v=[],y=o.length,_=y-2,g=1;g<y;g++)v.push(interpolate(o[g-1],o[g]));y--,p=function(o){o*=y;var c=Math.min(_,~~o);return v[c](o-c)},d=c}else u||(o=_merge(B(o)?[]:{},o));if(!v){for(m in c)_addPropTween.call(k,o,m,"get",c[m]);p=function(c){return _renderPropTweens(c,k)||(b?o.p:o)}}}return _conditionalReturn(d,p)},shuffle:shuffle},install:_install,effects:Z,ticker:ft,updateRoot:wt.updateRoot,plugins:Q,globalTimeline:m,core:{PropTween:Tt,globals:_addGlobal,Tween:Mt,Timeline:wt,Animation:kt,getCache:_getCache,_removeLinkedListItem:_removeLinkedListItem,reverting:function(){return u},context:function(o){return o&&p&&(p.data.push(o),o._ctx=p),p},suppressOverwrites:function(o){return d=o}}};_forEachName("to,from,fromTo,delayedCall,set,killTweensOf",function(o){return Rt[o]=Mt[o]}),ft.add(wt.updateRoot),k=Rt.to({},{duration:0});var _getPluginPropTween=function(o,c){for(var d=o._pt;d&&d.p!==c&&d.op!==c&&d.fp!==c;)d=d._next;return d},_buildModifierPlugin=function(o,c){return{name:o,headless:1,rawVars:1,init:function(o,d,u){u._onInit=function(o){var u,p;if(_isString$1(d)&&(u={},_forEachName(d,function(o){return u[o]=1}),d=u),c){for(p in u={},d)u[p]=c(d[p]);d=u}!function(o,c){var d,u,p,m=o._targets;for(d in c)for(u=m.length;u--;)(p=o._ptLookup[u][d])&&(p=p.d)&&(p._pt&&(p=_getPluginPropTween(p,d)),p&&p.modifier&&p.modifier(c[d],o,m[u],d))}(o,d)}}}},Yt=Rt.registerPlugin({name:"attr",init:function(o,c,d,u,p){var m,g,v;for(m in this.tween=d,c)v=o.getAttribute(m)||"",(g=this.add(o,"setAttribute",(v||0)+"",c[m],u,p,0,0,m)).op=m,g.b=v,this._props.push(m)},render:function(o,c){for(var d=c._pt;d;)u?d.set(d.t,d.p,d.b,d):d.r(o,d.d),d=d._next}},{name:"endArray",headless:1,init:function(o,c){for(var d=c.length;d--;)this.add(o,d,o[d]||0,c[d],0,0,0,0,0,1)}},_buildModifierPlugin("roundProps",_roundModifier),_buildModifierPlugin("modifiers"),_buildModifierPlugin("snap",snap))||Rt;Mt.version=wt.version=Yt.version="3.14.2",_=1,_windowExists$2()&&_wake(),mt.Power0,mt.Power1,mt.Power2,mt.Power3,mt.Power4,mt.Linear,mt.Quad,mt.Cubic,mt.Quart,mt.Quint,mt.Strong,mt.Elastic,mt.Back,mt.SteppedEase,mt.Bounce,mt.Sine,mt.Expo,mt.Circ; 10/*! 11 * CSSPlugin 3.14.2 12 * https://gsap.com 13 * 14 * Copyright 2008-2025, GreenSock. All rights reserved. 15 * Subject to the terms at https://gsap.com/standard-license 16 * @author: Jack Doyle, [email protected] 17*/ 18var zt,Ht,Nt,qt,Vt,jt,Ut,Wt,Xt={},Gt=180/Math.PI,$t=Math.PI/180,Kt=Math.atan2,Jt=/([A-Z])/g,Qt=/(left|right|width|margin|padding|x)/i,Zt=/[\s,\(]\S/,te={autoAlpha:"opacity,visibility",scale:"scaleX,scaleY",alpha:"opacity"},_renderCSSProp=function(o,c){return c.set(c.t,c.p,Math.round(1e4*(c.s+c.c*o))/1e4+c.u,c)},_renderPropWithEnd=function(o,c){return c.set(c.t,c.p,1===o?c.e:Math.round(1e4*(c.s+c.c*o))/1e4+c.u,c)},_renderCSSPropWithBeginning=function(o,c){return c.set(c.t,c.p,o?Math.round(1e4*(c.s+c.c*o))/1e4+c.u:c.b,c)},_renderCSSPropWithBeginningAndEnd=function(o,c){return c.set(c.t,c.p,1===o?c.e:o?Math.round(1e4*(c.s+c.c*o))/1e4+c.u:c.b,c)},_renderRoundedCSSProp=function(o,c){var d=c.s+c.c*o;c.set(c.t,c.p,~~(d+(d<0?-.5:.5))+c.u,c)},_renderNonTweeningValue=function(o,c){return c.set(c.t,c.p,o?c.e:c.b,c)},_renderNonTweeningValueOnlyAtEnd=function(o,c){return c.set(c.t,c.p,1!==o?c.b:c.e,c)},_setterCSSStyle=function(o,c,d){return o.style[c]=d},_setterCSSProp=function(o,c,d){return o.style.setProperty(c,d)},_setterTransform=function(o,c,d){return o._gsap[c]=d},_setterScale=function(o,c,d){return o._gsap.scaleX=o._gsap.scaleY=d},_setterScaleWithRender=function(o,c,d,u,p){var m=o._gsap;m.scaleX=m.scaleY=d,m.renderTransform(p,m)},_setterTransformWithRender=function(o,c,d,u,p){var m=o._gsap;m[c]=d,m.renderTransform(p,m)},ee="transform",ne=ee+"Origin",ie=function _saveStyle(o,c){var d=this,u=this.target,p=u.style,m=u._gsap;if(o in Xt&&p){if(this.tfm=this.tfm||{},"transform"===o)return te.transform.split(",").forEach(function(o){return _saveStyle.call(d,o,c)});if(~(o=te[o]||o).indexOf(",")?o.split(",").forEach(function(o){return d.tfm[o]=_get(u,o)}):this.tfm[o]=m.x?m[o]:_get(u,o),o===ne&&(this.tfm.zOrigin=m.zOrigin),this.props.indexOf(ee)>=0)return;m.svg&&(this.svgo=u.getAttribute("data-svg-origin"),this.props.push(ne,c,"")),o=ee}(p||c)&&this.props.push(o,c,p[o])},_removeIndependentTransforms=function(o){o.translate&&(o.removeProperty("translate"),o.removeProperty("scale"),o.removeProperty("rotate"))},_revertStyle=function(){var o,c,d=this.props,u=this.target,p=u.style,m=u._gsap;for(o=0;o<d.length;o+=3)d[o+1]?2===d[o+1]?u[d[o]](d[o+2]):u[d[o]]=d[o+2]:d[o+2]?p[d[o]]=d[o+2]:p.removeProperty("--"===d[o].substr(0,2)?d[o]:d[o].replace(Jt,"-$1").toLowerCase());if(this.tfm){for(c in this.tfm)m[c]=this.tfm[c];m.svg&&(m.renderTransform(),u.setAttribute("data-svg-origin",this.svgo||"")),(o=Ut())&&o.isStart||p[ee]||(_removeIndependentTransforms(p),m.zOrigin&&p[ne]&&(p[ne]+=" "+m.zOrigin+"px",m.zOrigin=0,m.renderTransform()),m.uncache=1)}},_getStyleSaver=function(o,c){var d={target:o,props:[],revert:_revertStyle,save:ie};return o._gsap||Yt.core.getCache(o),c&&o.style&&o.nodeType&&c.split(",").forEach(function(o){return d.save(o)}),d},_createElement=function(o,c){var d=Ht.createElementNS?Ht.createElementNS((c||"http://www.w3.org/1999/xhtml").replace(/^https/,"http"),o):Ht.createElement(o);return d&&d.style?d:Ht.createElement(o)},re=function _getComputedProperty(o,c,d){var u=getComputedStyle(o);return u[c]||u.getPropertyValue(c.replace(Jt,"-$1").toLowerCase())||u.getPropertyValue(c)||!d&&_getComputedProperty(o,_checkPropPrefix(c)||c,1)||""},ae="O,Moz,ms,Ms,Webkit".split(","),_checkPropPrefix=function(o,c,d){var u=(c||Vt).style,p=5;if(o in u&&!d)return o;for(o=o.charAt(0).toUpperCase()+o.substr(1);p--&&!(ae[p]+o in u););return p<0?null:(3===p?"ms":p>=0?ae[p]:"")+o},_initCore$1=function(){"undefined"!=typeof window&&window.document&&(zt=window,Ht=zt.document,Nt=Ht.documentElement,Vt=_createElement("div")||{style:{}},_createElement("div"),ee=_checkPropPrefix(ee),ne=ee+"Origin",Vt.style.cssText="border-width:0;line-height:0;position:absolute;padding:0",Wt=!!_checkPropPrefix("perspective"),Ut=Yt.core.reverting,qt=1)},_getReparentedCloneBBox=function(o){var c,d=o.ownerSVGElement,u=_createElement("svg",d&&d.getAttribute("xmlns")||"http://www.w3.org/2000/svg"),p=o.cloneNode(!0);p.style.display="block",u.appendChild(p),Nt.appendChild(u);try{c=p.getBBox()}catch(e){}return u.removeChild(p),Nt.removeChild(u),c},_getAttributeFallbacks=function(o,c){for(var d=c.length;d--;)if(o.hasAttribute(c[d]))return o.getAttribute(c[d])},_getBBox=function(o){var c,d;try{c=o.getBBox()}catch(u){c=_getReparentedCloneBBox(o),d=1}return c&&(c.width||c.height)||d||(c=_getReparentedCloneBBox(o)),!c||c.width||c.x||c.y?c:{x:+_getAttributeFallbacks(o,["x","cx","x1"])||0,y:+_getAttributeFallbacks(o,["y","cy","y1"])||0,width:0,height:0}},_isSVG=function(o){return!(!o.getCTM||o.parentNode&&!o.ownerSVGElement||!_getBBox(o))},_removeProperty=function(o,c){if(c){var d,u=o.style;c in Xt&&c!==ne&&(c=ee),u.removeProperty?("ms"!==(d=c.substr(0,2))&&"webkit"!==c.substr(0,6)||(c="-"+c),u.removeProperty("--"===d?c:c.replace(Jt,"-$1").toLowerCase())):u.removeAttribute(c)}},_addNonTweeningPT=function(o,c,d,u,p,m){var g=new Tt(o._pt,c,d,0,1,m?_renderNonTweeningValueOnlyAtEnd:_renderNonTweeningValue);return o._pt=g,g.b=u,g.e=p,o._props.push(d),g},se={deg:1,rad:1,turn:1},oe={grid:1,flex:1},le=function _convertToUnit(o,c,d,u){var p,m,g,v,y=parseFloat(d)||0,_=(d+"").trim().substr((y+"").length)||"px",b=Vt.style,k=Qt.test(c),w="svg"===o.tagName.toLowerCase(),S=(w?"client":"offset")+(k?"Width":"Height"),D=100,x="px"===u,E="%"===u;if(u===_||!y||se[u]||se[_])return y;if("px"!==_&&!x&&(y=_convertToUnit(o,c,d,"px")),v=o.getCTM&&_isSVG(o),(E||"%"===_)&&(Xt[c]||~c.indexOf("adius")))return p=v?o.getBBox()[k?"width":"height"]:o[S],_round$1(E?y/p*D:y/100*p);if(b[k?"width":"height"]=D+(x?_:u),m="rem"!==u&&~c.indexOf("adius")||"em"===u&&o.appendChild&&!w?o:o.parentNode,v&&(m=(o.ownerSVGElement||{}).parentNode),m&&m!==Ht&&m.appendChild||(m=Ht.body),(g=m._gsap)&&E&&g.width&&k&&g.time===ft.time&&!g.uncache)return _round$1(y/g.width*D);if(!E||"height"!==c&&"width"!==c)(E||"%"===_)&&!oe[re(m,"display")]&&(b.position=re(o,"position")),m===o&&(b.position="static"),m.appendChild(Vt),p=Vt[S],m.removeChild(Vt),b.position="absolute";else{var C=o.style[c];o.style[c]=D+u,p=o[S],C?o.style[c]=C:_removeProperty(o,c)}return k&&E&&((g=_getCache(m)).time=ft.time,g.width=m[S]),_round$1(x?p*y/D:p&&y?D/p*y:0)},_get=function(o,c,d,u){var p;return qt||_initCore$1(),c in te&&"transform"!==c&&~(c=te[c]).indexOf(",")&&(c=c.split(",")[0]),Xt[c]&&"transform"!==c?(p=_parseTransform(o,u),p="transformOrigin"!==c?p[c]:p.svg?p.origin:_firstTwoOnly(re(o,ne))+" "+p.zOrigin+"px"):(!(p=o.style[c])||"auto"===p||u||~(p+"").indexOf("calc("))&&(p=de[c]&&de[c](o,c,d)||re(o,c)||_getProperty(o,c)||("opacity"===c?1:0)),d&&!~(p+"").trim().indexOf(" ")?le(o,c,p,d)+d:p},_tweenComplexCSSString=function(o,c,d,u){if(!d||"none"===d){var p=_checkPropPrefix(c,o,1),m=p&&re(o,p,1);m&&m!==d?(c=p,d=m):"borderColor"===c&&(d=re(o,"borderTopColor"))}var g,v,y,_,b,k,w,D,x,E,C,M=new Tt(this._pt,o.style,c,0,1,_renderComplexString),T=0,A=0;if(M.b=d,M.e=u,d+="","var(--"===(u+="").substring(0,6)&&(u=re(o,u.substring(4,u.indexOf(")")))),"auto"===u&&(k=o.style[c],o.style[c]=u,u=re(o,c)||u,k?o.style[c]=k:_removeProperty(o,c)),_colorStringFilter(g=[d,u]),u=g[1],y=(d=g[0]).match(z)||[],(u.match(z)||[]).length){for(;v=z.exec(u);)w=v[0],x=u.substring(T,v.index),b?b=(b+1)%5:"rgba("!==x.substr(-5)&&"hsla("!==x.substr(-5)||(b=1),w!==(k=y[A++]||"")&&(_=parseFloat(k)||0,C=k.substr((_+"").length),"="===w.charAt(1)&&(w=_parseRelative(_,w)+C),D=parseFloat(w),E=w.substr((D+"").length),T=z.lastIndex-E.length,E||(E=E||S.units[c]||C,T===u.length&&(u+=E,M.e+=E)),C!==E&&(_=le(o,c,k,E)||0),M._pt={_next:M._pt,p:x||1===A?x:",",s:_,c:D-_,m:b&&b<4||"zIndex"===c?Math.round:0});M.c=T<u.length?u.substring(T,u.length):""}else M.r="display"===c&&"none"===u?_renderNonTweeningValueOnlyAtEnd:_renderNonTweeningValue;return N.test(u)&&(M.e=0),this._pt=M,M},ce={top:"0%",bottom:"100%",left:"0%",right:"100%",center:"50%"},_convertKeywordsToPercentages=function(o){var c=o.split(" "),d=c[0],u=c[1]||"50%";return"top"!==d&&"bottom"!==d&&"left"!==u&&"right"!==u||(o=d,d=u,u=o),c[0]=ce[d]||d,c[1]=ce[u]||u,c.join(" ")},_renderClearProps=function(o,c){if(c.tween&&c.tween._time===c.tween._dur){var d,u,p,m=c.t,g=m.style,v=c.u,y=m._gsap;if("all"===v||!0===v)g.cssText="",u=1;else for(p=(v=v.split(",")).length;--p>-1;)d=v[p],Xt[d]&&(u=1,d="transformOrigin"===d?ne:ee),_removeProperty(m,d);u&&(_removeProperty(m,ee),y&&(y.svg&&m.removeAttribute("transform"),g.scale=g.rotate=g.translate="none",_parseTransform(m,1),y.uncache=1,_removeIndependentTransforms(g)))}},de={clearProps:function(o,c,d,u,p){if("isFromStart"!==p.data){var m=o._pt=new Tt(o._pt,c,d,0,0,_renderClearProps);return m.u=u,m.pr=-10,m.tween=p,o._props.push(d),1}}},ue=[1,0,0,1,0,0],he={},_isNullTransform=function(o){return"matrix(1, 0, 0, 1, 0, 0)"===o||"none"===o||!o},_getComputedTransformMatrixAsArray=function(o){var c=re(o,ee);return _isNullTransform(c)?ue:c.substr(7).match(Y).map(_round$1)},_getMatrix=function(o,c){var d,u,p,m,g=o._gsap||_getCache(o),v=o.style,y=_getComputedTransformMatrixAsArray(o);return g.svg&&o.getAttribute("transform")?"1,0,0,1,0,0"===(y=[(p=o.transform.baseVal.consolidate().matrix).a,p.b,p.c,p.d,p.e,p.f]).join(",")?ue:y:(y!==ue||o.offsetParent||o===Nt||g.svg||(p=v.display,v.display="block",(d=o.parentNode)&&(o.offsetParent||o.getBoundingClientRect().width)||(m=1,u=o.nextElementSibling,Nt.appendChild(o)),y=_getComputedTransformMatrixAsArray(o),p?v.display=p:_removeProperty(o,"display"),m&&(u?d.insertBefore(o,u):d?d.appendChild(o):Nt.removeChild(o))),c&&y.length>6?[y[0],y[1],y[4],y[5],y[12],y[13]]:y)},_applySVGOrigin=function(o,c,d,u,p,m){var g,v,y,_=o._gsap,b=p||_getMatrix(o,!0),k=_.xOrigin||0,w=_.yOrigin||0,S=_.xOffset||0,D=_.yOffset||0,x=b[0],E=b[1],C=b[2],M=b[3],T=b[4],A=b[5],P=c.split(" "),I=parseFloat(P[0])||0,O=parseFloat(P[1])||0;d?b!==ue&&(v=x*M-E*C)&&(y=I*(-E/v)+O*(x/v)-(x*A-E*T)/v,I=I*(M/v)+O*(-C/v)+(C*A-M*T)/v,O=y):(I=(g=_getBBox(o)).x+(~P[0].indexOf("%")?I/100*g.width:I),O=g.y+(~(P[1]||P[0]).indexOf("%")?O/100*g.height:O)),u||!1!==u&&_.smooth?(T=I-k,A=O-w,_.xOffset=S+(T*x+A*C)-T,_.yOffset=D+(T*E+A*M)-A):_.xOffset=_.yOffset=0,_.xOrigin=I,_.yOrigin=O,_.smooth=!!u,_.origin=c,_.originIsAbsolute=!!d,o.style[ne]="0px 0px",m&&(_addNonTweeningPT(m,_,"xOrigin",k,I),_addNonTweeningPT(m,_,"yOrigin",w,O),_addNonTweeningPT(m,_,"xOffset",S,_.xOffset),_addNonTweeningPT(m,_,"yOffset",D,_.yOffset)),o.setAttribute("data-svg-origin",I+" "+O)},_parseTransform=function(o,c){var d=o._gsap||new GSCache(o);if("x"in d&&!c&&!d.uncache)return d;var u,p,m,g,v,y,_,b,k,w,D,x,E,C,M,T,A,P,I,O,B,F,L,R,Y,z,H,N,q,V,j,U,W=o.style,X=d.scaleX<0,G="px",$="deg",K=getComputedStyle(o),J=re(o,ne)||"0";return u=p=m=y=_=b=k=w=D=0,g=v=1,d.svg=!(!o.getCTM||!_isSVG(o)),K.translate&&("none"===K.translate&&"none"===K.scale&&"none"===K.rotate||(W[ee]=("none"!==K.translate?"translate3d("+(K.translate+" 0 0").split(" ").slice(0,3).join(", ")+") ":"")+("none"!==K.rotate?"rotate("+K.rotate+") ":"")+("none"!==K.scale?"scale("+K.scale.split(" ").join(",")+") ":"")+("none"!==K[ee]?K[ee]:"")),W.scale=W.rotate=W.translate="none"),C=_getMatrix(o,d.svg),d.svg&&(d.uncache?(Y=o.getBBox(),J=d.xOrigin-Y.x+"px "+(d.yOrigin-Y.y)+"px",R=""):R=!c&&o.getAttribute("data-svg-origin"),_applySVGOrigin(o,R||J,!!R||d.originIsAbsolute,!1!==d.smooth,C)),x=d.xOrigin||0,E=d.yOrigin||0,C!==ue&&(P=C[0],I=C[1],O=C[2],B=C[3],u=F=C[4],p=L=C[5],6===C.length?(g=Math.sqrt(P*P+I*I),v=Math.sqrt(B*B+O*O),y=P||I?Kt(I,P)*Gt:0,(k=O||B?Kt(O,B)*Gt+y:0)&&(v*=Math.abs(Math.cos(k*$t))),d.svg&&(u-=x-(x*P+E*O),p-=E-(x*I+E*B))):(U=C[6],V=C[7],H=C[8],N=C[9],q=C[10],j=C[11],u=C[12],p=C[13],m=C[14],_=(M=Kt(U,q))*Gt,M&&(R=F*(T=Math.cos(-M))+H*(A=Math.sin(-M)),Y=L*T+N*A,z=U*T+q*A,H=F*-A+H*T,N=L*-A+N*T,q=U*-A+q*T,j=V*-A+j*T,F=R,L=Y,U=z),b=(M=Kt(-O,q))*Gt,M&&(T=Math.cos(-M),j=B*(A=Math.sin(-M))+j*T,P=R=P*T-H*A,I=Y=I*T-N*A,O=z=O*T-q*A),y=(M=Kt(I,P))*Gt,M&&(R=P*(T=Math.cos(M))+I*(A=Math.sin(M)),Y=F*T+L*A,I=I*T-P*A,L=L*T-F*A,P=R,F=Y),_&&Math.abs(_)+Math.abs(y)>359.9&&(_=y=0,b=180-b),g=_round$1(Math.sqrt(P*P+I*I+O*O)),v=_round$1(Math.sqrt(L*L+U*U)),M=Kt(F,L),k=Math.abs(M)>2e-4?M*Gt:0,D=j?1/(j<0?-j:j):0),d.svg&&(R=o.getAttribute("transform"),d.forceCSS=o.setAttribute("transform","")||!_isNullTransform(re(o,ee)),R&&o.setAttribute("transform",R))),Math.abs(k)>90&&Math.abs(k)<270&&(X?(g*=-1,k+=y<=0?180:-180,y+=y<=0?180:-180):(v*=-1,k+=k<=0?180:-180)),c=c||d.uncache,d.x=u-((d.xPercent=u&&(!c&&d.xPercent||(Math.round(o.offsetWidth/2)===Math.round(-u)?-50:0)))?o.offsetWidth*d.xPercent/100:0)+G,d.y=p-((d.yPercent=p&&(!c&&d.yPercent||(Math.round(o.offsetHeight/2)===Math.round(-p)?-50:0)))?o.offsetHeight*d.yPercent/100:0)+G,d.z=m+G,d.scaleX=_round$1(g),d.scaleY=_round$1(v),d.rotation=_round$1(y)+$,d.rotationX=_round$1(_)+$,d.rotationY=_round$1(b)+$,d.skewX=k+$,d.skewY=w+$,d.transformPerspective=D+G,(d.zOrigin=parseFloat(J.split(" ")[2])||!c&&d.zOrigin||0)&&(W[ne]=_firstTwoOnly(J)),d.xOffset=d.yOffset=0,d.force3D=S.force3D,d.renderTransform=d.svg?_renderSVGTransforms:Wt?_renderCSSTransforms:_renderNon3DTransforms,d.uncache=0,d},_firstTwoOnly=function(o){return(o=o.split(" "))[0]+" "+o[1]},_addPxTranslate=function(o,c,d){var u=getUnit(c);return _round$1(parseFloat(c)+parseFloat(le(o,"x",d+"px",u)))+u},_renderNon3DTransforms=function(o,c){c.z="0px",c.rotationY=c.rotationX="0deg",c.force3D=0,_renderCSSTransforms(o,c)},pe="0deg",fe="0px",me=") ",_renderCSSTransforms=function(o,c){var d=c||this,u=d.xPercent,p=d.yPercent,m=d.x,g=d.y,v=d.z,y=d.rotation,_=d.rotationY,b=d.rotationX,k=d.skewX,w=d.skewY,S=d.scaleX,D=d.scaleY,x=d.transformPerspective,E=d.force3D,C=d.target,M=d.zOrigin,T="",A="auto"===E&&o&&1!==o||!0===E;if(M&&(b!==pe||_!==pe)){var P,I=parseFloat(_)*$t,O=Math.sin(I),B=Math.cos(I);I=parseFloat(b)*$t,P=Math.cos(I),m=_addPxTranslate(C,m,O*P*-M),g=_addPxTranslate(C,g,-Math.sin(I)*-M),v=_addPxTranslate(C,v,B*P*-M+M)}x!==fe&&(T+="perspective("+x+me),(u||p)&&(T+="translate("+u+"%, "+p+"%) "),(A||m!==fe||g!==fe||v!==fe)&&(T+=v!==fe||A?"translate3d("+m+", "+g+", "+v+") ":"translate("+m+", "+g+me),y!==pe&&(T+="rotate("+y+me),_!==pe&&(T+="rotateY("+_+me),b!==pe&&(T+="rotateX("+b+me),k===pe&&w===pe||(T+="skew("+k+", "+w+me),1===S&&1===D||(T+="scale("+S+", "+D+me),C.style[ee]=T||"translate(0, 0)"},_renderSVGTransforms=function(o,c){var d,u,p,m,g,v=c||this,y=v.xPercent,_=v.yPercent,b=v.x,k=v.y,w=v.rotation,S=v.skewX,D=v.skewY,x=v.scaleX,E=v.scaleY,C=v.target,M=v.xOrigin,T=v.yOrigin,A=v.xOffset,P=v.yOffset,I=v.forceCSS,O=parseFloat(b),B=parseFloat(k);w=parseFloat(w),S=parseFloat(S),(D=parseFloat(D))&&(S+=D=parseFloat(D),w+=D),w||S?(w*=$t,S*=$t,d=Math.cos(w)*x,u=Math.sin(w)*x,p=Math.sin(w-S)*-E,m=Math.cos(w-S)*E,S&&(D*=$t,g=Math.tan(S-D),p*=g=Math.sqrt(1+g*g),m*=g,D&&(g=Math.tan(D),d*=g=Math.sqrt(1+g*g),u*=g)),d=_round$1(d),u=_round$1(u),p=_round$1(p),m=_round$1(m)):(d=x,m=E,u=p=0),(O&&!~(b+"").indexOf("px")||B&&!~(k+"").indexOf("px"))&&(O=le(C,"x",b,"px"),B=le(C,"y",k,"px")),(M||T||A||P)&&(O=_round$1(O+M-(M*d+T*p)+A),B=_round$1(B+T-(M*u+T*m)+P)),(y||_)&&(g=C.getBBox(),O=_round$1(O+y/100*g.width),B=_round$1(B+_/100*g.height)),g="matrix("+d+","+u+","+p+","+m+","+O+","+B+")",C.setAttribute("transform",g),I&&(C.style[ee]=g)},_addRotationalPropTween=function(o,c,d,u,p){var m,g,v=360,y=_isString$1(p),_=parseFloat(p)*(y&&~p.indexOf("rad")?Gt:1)-u,b=u+_+"deg";return y&&("short"===(m=p.split("_")[1])&&(_%=v)!==_%180&&(_+=_<0?v:-360),"cw"===m&&_<0?_=(_+36e9)%v-~~(_/v)*v:"ccw"===m&&_>0&&(_=(_-36e9)%v-~~(_/v)*v)),o._pt=g=new Tt(o._pt,c,d,u,_,_renderPropWithEnd),g.e=b,g.u="deg",o._props.push(d),g},_assign=function(o,c){for(var d in c)o[d]=c[d];return o},_addRawTransformPTs=function(o,c,d){var u,p,m,g,v,y,_,b=_assign({},d._gsap),k=d.style;for(p in b.svg?(m=d.getAttribute("transform"),d.setAttribute("transform",""),k[ee]=c,u=_parseTransform(d,1),_removeProperty(d,ee),d.setAttribute("transform",m)):(m=getComputedStyle(d)[ee],k[ee]=c,u=_parseTransform(d,1),k[ee]=m),Xt)(m=b[p])!==(g=u[p])&&"perspective,force3D,transformOrigin,svgOrigin".indexOf(p)<0&&(v=getUnit(m)!==(_=getUnit(g))?le(d,p,m,_):parseFloat(m),y=parseFloat(g),o._pt=new Tt(o._pt,u,p,v,y-v,_renderCSSProp),o._pt.u=_||0,o._props.push(p));_assign(u,b)};_forEachName("padding,margin,Width,Radius",function(o,c){var d="Top",u="Right",p="Bottom",m="Left",g=(c<3?[d,u,p,m]:[d+m,d+u,p+u,p+m]).map(function(d){return c<2?o+d:"border"+d+o});de[c>1?"border"+o:o]=function(o,c,d,u,p){var m,v;if(arguments.length<4)return m=g.map(function(c){return _get(o,c,d)}),5===(v=m.join(" ")).split(m[0]).length?m[0]:v;m=(u+"").split(" "),v={},g.forEach(function(o,c){return v[o]=m[c]=m[c]||m[(c-1)/2|0]}),o.init(c,v,p)}});var ge,ve,ye,_e={name:"css",register:_initCore$1,targetTest:function(o){return o.style&&o.nodeType},init:function(o,c,d,u,p){var m,g,v,y,_,b,k,w,D,x,E,C,M,T,A,P,I,O=this._props,B=o.style,F=d.vars.startAt;for(k in qt||_initCore$1(),this.styles=this.styles||_getStyleSaver(o),P=this.styles.props,this.tween=d,c)if("autoRound"!==k&&(g=c[k],!Q[k]||!_checkPlugin(k,c,d,u,o,p)))if(_=typeof g,b=de[k],"function"===_&&(_=typeof(g=g.call(d,u,o,p))),"string"===_&&~g.indexOf("random(")&&(g=_replaceRandom(g)),b)b(this,o,k,g,d)&&(A=1);else if("--"===k.substr(0,2))m=(getComputedStyle(o).getPropertyValue(k)+"").trim(),g+="",ht.lastIndex=0,ht.test(m)||(w=getUnit(m),(D=getUnit(g))?w!==D&&(m=le(o,k,m,D)+D):w&&(g+=w)),this.add(B,"setProperty",m,g,u,p,
vendor: 52,865 bytes, lines 18-35
180,0,k),O.push(k),P.push(k,0,B[k]);else if("undefined"!==_){if(F&&k in F?(m="function"==typeof F[k]?F[k].call(d,u,o,p):F[k],_isString$1(m)&&~m.indexOf("random(")&&(m=_replaceRandom(m)),getUnit(m+"")||"auto"===m||(m+=S.units[k]||getUnit(_get(o,k))||""),"="===(m+"").charAt(1)&&(m=_get(o,k))):m=_get(o,k),y=parseFloat(m),(x="string"===_&&"="===g.charAt(1)&&g.substr(0,2))&&(g=g.substr(2)),v=parseFloat(g),k in te&&("autoAlpha"===k&&(1===y&&"hidden"===_get(o,"visibility")&&v&&(y=0),P.push("visibility",0,B.visibility),_addNonTweeningPT(this,B,"visibility",y?"inherit":"hidden",v?"inherit":"hidden",!v)),"scale"!==k&&"transform"!==k&&~(k=te[k]).indexOf(",")&&(k=k.split(",")[0])),E=k in Xt){if(this.styles.save(k),I=g,"string"===_&&"var(--"===g.substring(0,6)){if("calc("===(g=re(o,g.substring(4,g.indexOf(")")))).substring(0,5)){var L=o.style.perspective;o.style.perspective=g,g=re(o,"perspective"),L?o.style.perspective=L:_removeProperty(o,"perspective")}v=parseFloat(g)}if(C||((M=o._gsap).renderTransform&&!c.parseTransform||_parseTransform(o,c.parseTransform),T=!1!==c.smoothOrigin&&M.smooth,(C=this._pt=new Tt(this._pt,B,ee,0,1,M.renderTransform,M,0,-1)).dep=1),"scale"===k)this._pt=new Tt(this._pt,M,"scaleY",M.scaleY,(x?_parseRelative(M.scaleY,x+v):v)-M.scaleY||0,_renderCSSProp),this._pt.u=0,O.push("scaleY",k),k+="X";else{if("transformOrigin"===k){P.push(ne,0,B[ne]),g=_convertKeywordsToPercentages(g),M.svg?_applySVGOrigin(o,g,0,T,0,this):((D=parseFloat(g.split(" ")[2])||0)!==M.zOrigin&&_addNonTweeningPT(this,M,"zOrigin",M.zOrigin,D),_addNonTweeningPT(this,B,k,_firstTwoOnly(m),_firstTwoOnly(g)));continue}if("svgOrigin"===k){_applySVGOrigin(o,g,1,T,0,this);continue}if(k in he){_addRotationalPropTween(this,M,k,y,x?_parseRelative(y,x+g):g);continue}if("smoothOrigin"===k){_addNonTweeningPT(this,M,"smooth",M.smooth,g);continue}if("force3D"===k){M[k]=g;continue}if("transform"===k){_addRawTransformPTs(this,g,o);continue}}}else k in B||(k=_checkPropPrefix(k)||k);if(E||(v||0===v)&&(y||0===y)&&!Zt.test(g)&&k in B)v||(v=0),(w=(m+"").substr((y+"").length))!==(D=getUnit(g)||(k in S.units?S.units[k]:w))&&(y=le(o,k,m,D)),this._pt=new Tt(this._pt,E?M:B,k,y,(x?_parseRelative(y,x+v):v)-y,E||"px"!==D&&"zIndex"!==k||!1===c.autoRound?_renderCSSProp:_renderRoundedCSSProp),this._pt.u=D||0,E&&I!==g?(this._pt.b=m,this._pt.e=I,this._pt.r=_renderCSSPropWithBeginningAndEnd):w!==D&&"%"!==D&&(this._pt.b=m,this._pt.r=_renderCSSPropWithBeginning);else if(k in B)_tweenComplexCSSString.call(this,o,k,m,x?x+g:g);else if(k in o)this.add(o,k,m||o[k],x?x+g:g,u,p);else if("parseTransform"!==k){_missingPlugin(k,g);continue}E||(k in B?P.push(k,0,B[k]):"function"==typeof o[k]?P.push(k,2,o[k]()):P.push(k,1,m||o[k])),O.push(k)}A&&_sortPropTweensByPriority(this)},render:function(o,c){if(c.tween._time||!Ut())for(var d=c._pt;d;)d.r(o,d.d),d=d._next;else c.styles.revert()},get:_get,aliases:te,getSetter:function(o,c,d){var u=te[c];return u&&u.indexOf(",")<0&&(c=u),c in Xt&&c!==ne&&(o._gsap.x||_get(o,"x"))?d&&jt===d?"scale"===c?_setterScale:_setterTransform:(jt=d||{})&&("scale"===c?_setterScaleWithRender:_setterTransformWithRender):o.style&&!_isUndefined(o.style[c])?_setterCSSStyle:~c.indexOf("-")?_setterCSSProp:_getSetter(o,c)},core:{_removeProperty:_removeProperty,_getMatrix:_getMatrix}};Yt.utils.checkPrefix=_checkPropPrefix,Yt.core.getStyleSaver=_getStyleSaver,ye=_forEachName((ge="x,y,z,scale,scaleX,scaleY,xPercent,yPercent")+","+(ve="rotation,rotationX,rotationY,skewX,skewY")+",transform,transformOrigin,svgOrigin,force3D,smoothOrigin,transformPerspective",function(o){Xt[o]=1}),_forEachName(ve,function(o){S.units[o]="deg",he[o]=1}),te[ye[13]]=ge+","+ve,_forEachName("0:translateX,1:translateY,2:translateZ,8:rotate,8:rotationZ,8:rotateZ,9:rotateX,10:rotateY",function(o){var c=o.split(":");te[c[1]]=ye[c[0]]}),_forEachName("x,y,z,top,right,bottom,left,width,height,fontSize,padding,margin,perspective",function(o){S.units[o]="px"}),Yt.registerPlugin(_e);var be=Yt.registerPlugin(_e)||Yt;function _createClass(o,c,d){return c&&function(o,c){for(var d=0;d<c.length;d++){var u=c[d];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(o,u.key,u)}}(o.prototype,c),o} 19/*! 20 * Observer 3.14.2 21 * https://gsap.com 22 * 23 * @license Copyright 2008-2025, GreenSock. All rights reserved. 24 * Subject to the terms at https://gsap.com/standard-license 25 * @author: Jack Doyle, [email protected] 26*/be.core.Tween;var ke,we,Se,De,xe,Ee,Ce,Me,Te,Ae,Pe,Ie,Oe,_getGSAP$1=function(){return ke||"undefined"!=typeof window&&(ke=window.gsap)&&ke.registerPlugin&&ke},Be=1,Fe=[],Le=[],Re=[],Ye=Date.now,_bridge=function(o,c){return c},_getProxyProp=function(o,c){return~Re.indexOf(o)&&Re[Re.indexOf(o)+1][c]},_isViewport$1=function(o){return!!~Ae.indexOf(o)},_addListener$1=function(o,c,d,u,p){return o.addEventListener(c,d,{passive:!1!==u,capture:!!p})},_removeListener$1=function(o,c,d,u){return o.removeEventListener(c,d,!!u)},ze="scrollLeft",He="scrollTop",_onScroll$1=function(){return Pe&&Pe.isPressed||Le.cache++},_scrollCacheFunc=function(o,c){var d=function cachingFunc(d){if(d||0===d){Be&&(Se.history.scrollRestoration="manual");var u=Pe&&Pe.isPressed;d=cachingFunc.v=Math.round(d)||(Pe&&Pe.iOS?1:0),o(d),cachingFunc.cacheID=Le.cache,u&&_bridge("ss",d)}else(c||Le.cache!==cachingFunc.cacheID||_bridge("ref"))&&(cachingFunc.cacheID=Le.cache,cachingFunc.v=o());return cachingFunc.v+cachingFunc.offset};return d.offset=0,o&&d},Ne={s:ze,p:"left",p2:"Left",os:"right",os2:"Right",d:"width",d2:"Width",a:"x",sc:_scrollCacheFunc(function(o){return arguments.length?Se.scrollTo(o,qe.sc()):Se.pageXOffset||De[ze]||xe[ze]||Ee[ze]||0})},qe={s:He,p:"top",p2:"Top",os:"bottom",os2:"Bottom",d:"height",d2:"Height",a:"y",op:Ne,sc:_scrollCacheFunc(function(o){return arguments.length?Se.scrollTo(Ne.sc(),o):Se.pageYOffset||De[He]||xe[He]||Ee[He]||0})},_getTarget=function(o,c){return(c&&c._ctx&&c._ctx.selector||ke.utils.toArray)(o)[0]||("string"==typeof o&&!1!==ke.config().nullTargetWarn?console.warn("Element not found:",o):null)},_getScrollFunc=function(o,c){var d=c.s,u=c.sc;_isViewport$1(o)&&(o=De.scrollingElement||xe);var p=Le.indexOf(o),m=u===qe.sc?1:2;!~p&&(p=Le.push(o)-1),Le[p+m]||_addListener$1(o,"scroll",_onScroll$1);var g=Le[p+m],v=g||(Le[p+m]=_scrollCacheFunc(_getProxyProp(o,d),!0)||(_isViewport$1(o)?u:_scrollCacheFunc(function(c){return arguments.length?o[d]=c:o[d]})));return v.target=o,g||(v.smooth="smooth"===ke.getProperty(o,"scrollBehavior")),v},_getVelocityProp=function(o,c,d){var u=o,p=o,m=Ye(),g=m,v=c||50,y=Math.max(500,3*v),update=function(o,c){var y=Ye();c||y-m>v?(p=u,u=o,g=m,m=y):d?u+=o:u=p+(o-p)/(y-g)*(m-g)};return{update:update,reset:function(){p=u=d?0:u,g=m=0},getVelocity:function(o){var c=g,v=p,_=Ye();return(o||0===o)&&o!==u&&update(o),m===g||_-g>y?0:(u+(d?v:-v))/((d?_:m)-c)*1e3}}},_getEvent=function(o,c){return c&&!o._gsapAllow&&o.preventDefault(),o.changedTouches?o.changedTouches[0]:o},_getAbsoluteMax=function(o){var c=Math.max.apply(Math,o),d=Math.min.apply(Math,o);return Math.abs(c)>=Math.abs(d)?c:d},_setScrollTrigger=function(){var o,c,d,u;(Te=ke.core.globals().ScrollTrigger)&&Te.core&&(o=Te.core,c=o.bridge||{},d=o._scrollers,u=o._proxies,d.push.apply(d,Le),u.push.apply(u,Re),Le=d,Re=u,_bridge=function(o,d){return c[o](d)})},_initCore=function(o){return ke=o||_getGSAP$1(),!we&&ke&&"undefined"!=typeof document&&document.body&&(Se=window,De=document,xe=De.documentElement,Ee=De.body,Ae=[Se,De,xe,Ee],ke.utils.clamp,Oe=ke.core.context||function(){},Me="onpointerenter"in Ee?"pointer":"mouse",Ce=Ve.isTouch=Se.matchMedia&&Se.matchMedia("(hover: none), (pointer: coarse)").matches?1:"ontouchstart"in Se||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0?2:0,Ie=Ve.eventTypes=("ontouchstart"in xe?"touchstart,touchmove,touchcancel,touchend":"onpointerdown"in xe?"pointerdown,pointermove,pointercancel,pointerup":"mousedown,mousemove,mouseup,mouseup").split(","),setTimeout(function(){return Be=0},500),_setScrollTrigger(),we=1),we};Ne.op=qe,Le.cache=0;var Ve=function(){function Observer(o){this.init(o)}return Observer.prototype.init=function(o){we||_initCore(ke)||console.warn("Please gsap.registerPlugin(Observer)"),Te||_setScrollTrigger();var c=o.tolerance,d=o.dragMinimum,u=o.type,p=o.target,m=o.lineHeight,g=o.debounce,v=o.preventDefault,y=o.onStop,_=o.onStopDelay,b=o.ignore,k=o.wheelSpeed,w=o.event,S=o.onDragStart,D=o.onDragEnd,x=o.onDrag,E=o.onPress,C=o.onRelease,M=o.onRight,T=o.onLeft,A=o.onUp,P=o.onDown,I=o.onChangeX,O=o.onChangeY,B=o.onChange,F=o.onToggleX,L=o.onToggleY,R=o.onHover,Y=o.onHoverEnd,z=o.onMove,H=o.ignoreCheck,N=o.isNormalizer,q=o.onGestureStart,V=o.onGestureEnd,j=o.onWheel,U=o.onEnable,W=o.onDisable,X=o.onClick,G=o.scrollSpeed,$=o.capture,K=o.allowClicks,J=o.lockAxis,Q=o.onLockAxis;this.target=p=_getTarget(p)||xe,this.vars=o,b&&(b=ke.utils.toArray(b)),c=c||1e-9,d=d||0,k=k||1,G=G||1,u=u||"wheel,touch,pointer",g=!1!==g,m||(m=parseFloat(Se.getComputedStyle(Ee).lineHeight)||22);var Z,tt,et,nt,it,rt,at,st=this,ot=0,lt=0,ct=o.passive||!v&&!1!==o.passive,dt=_getScrollFunc(p,Ne),ut=_getScrollFunc(p,qe),ht=dt(),pt=ut(),ft=~u.indexOf("touch")&&!~u.indexOf("pointer")&&"pointerdown"===Ie[0],mt=_isViewport$1(p),gt=p.ownerDocument||De,vt=[0,0,0],yt=[0,0,0],_t=0,clickCapture=function(){return _t=Ye()},_ignoreCheck=function(o,c){return(st.event=o)&&b&&function(o,c){for(var d=c.length;d--;)if(c[d]===o||c[d].contains(o))return!0;return!1}(o.target,b)||c&&ft&&"touch"!==o.pointerType||H&&H(o,c)},update=function(){var o=st.deltaX=_getAbsoluteMax(vt),d=st.deltaY=_getAbsoluteMax(yt),u=Math.abs(o)>=c,p=Math.abs(d)>=c;B&&(u||p)&&B(st,o,d,vt,yt),u&&(M&&st.deltaX>0&&M(st),T&&st.deltaX<0&&T(st),I&&I(st),F&&st.deltaX<0!=ot<0&&F(st),ot=st.deltaX,vt[0]=vt[1]=vt[2]=0),p&&(P&&st.deltaY>0&&P(st),A&&st.deltaY<0&&A(st),O&&O(st),L&&st.deltaY<0!=lt<0&&L(st),lt=st.deltaY,yt[0]=yt[1]=yt[2]=0),(nt||et)&&(z&&z(st),et&&(S&&1===et&&S(st),x&&x(st),et=0),nt=!1),rt&&!(rt=!1)&&Q&&Q(st),it&&(j(st),it=!1),Z=0},onDelta=function(o,c,d){vt[d]+=o,yt[d]+=c,st._vx.update(o),st._vy.update(c),g?Z||(Z=requestAnimationFrame(update)):update()},onTouchOrPointerDelta=function(o,c){J&&!at&&(st.axis=at=Math.abs(o)>Math.abs(c)?"x":"y",rt=!0),"y"!==at&&(vt[2]+=o,st._vx.update(o,!0)),"x"!==at&&(yt[2]+=c,st._vy.update(c,!0)),g?Z||(Z=requestAnimationFrame(update)):update()},_onDrag=function(o){if(!_ignoreCheck(o,1)){var c=(o=_getEvent(o,v)).clientX,u=o.clientY,p=c-st.x,m=u-st.y,g=st.isDragging;st.x=c,st.y=u,(g||(p||m)&&(Math.abs(st.startX-c)>=d||Math.abs(st.startY-u)>=d))&&(et||(et=g?2:1),g||(st.isDragging=!0),onTouchOrPointerDelta(p,m))}},bt=st.onPress=function(o){_ignoreCheck(o,1)||o&&o.button||(st.axis=at=null,tt.pause(),st.isPressed=!0,o=_getEvent(o),ot=lt=0,st.startX=st.x=o.clientX,st.startY=st.y=o.clientY,st._vx.reset(),st._vy.reset(),_addListener$1(N?p:gt,Ie[1],_onDrag,ct,!0),st.deltaX=st.deltaY=0,E&&E(st))},kt=st.onRelease=function(o){if(!_ignoreCheck(o,1)){_removeListener$1(N?p:gt,Ie[1],_onDrag,!0);var c=!isNaN(st.y-st.startY),d=st.isDragging,u=d&&(Math.abs(st.x-st.startX)>3||Math.abs(st.y-st.startY)>3),m=_getEvent(o);!u&&c&&(st._vx.reset(),st._vy.reset(),v&&K&&ke.delayedCall(.08,function(){if(Ye()-_t>300&&!o.defaultPrevented)if(o.target.click)o.target.click();else if(gt.createEvent){var c=gt.createEvent("MouseEvents");c.initMouseEvent("click",!0,!0,Se,1,m.screenX,m.screenY,m.clientX,m.clientY,!1,!1,!1,!1,0,null),o.target.dispatchEvent(c)}})),st.isDragging=st.isGesturing=st.isPressed=!1,y&&d&&!N&&tt.restart(!0),et&&update(),D&&d&&D(st),C&&C(st,u)}},_onGestureStart=function(o){return o.touches&&o.touches.length>1&&(st.isGesturing=!0)&&q(o,st.isDragging)},_onGestureEnd=function(){return(st.isGesturing=!1)||V(st)},onScroll=function(o){if(!_ignoreCheck(o)){var c=dt(),d=ut();onDelta((c-ht)*G,(d-pt)*G,1),ht=c,pt=d,y&&tt.restart(!0)}},_onWheel=function(o){if(!_ignoreCheck(o)){o=_getEvent(o,v),j&&(it=!0);var c=(1===o.deltaMode?m:2===o.deltaMode?Se.innerHeight:1)*k;onDelta(o.deltaX*c,o.deltaY*c,0),y&&!N&&tt.restart(!0)}},_onMove=function(o){if(!_ignoreCheck(o)){var c=o.clientX,d=o.clientY,u=c-st.x,p=d-st.y;st.x=c,st.y=d,nt=!0,y&&tt.restart(!0),(u||p)&&onTouchOrPointerDelta(u,p)}},_onHover=function(o){st.event=o,R(st)},_onHoverEnd=function(o){st.event=o,Y(st)},_onClick=function(o){return _ignoreCheck(o)||_getEvent(o,v)&&X(st)};tt=st._dc=ke.delayedCall(_||.25,function(){st._vx.reset(),st._vy.reset(),tt.pause(),y&&y(st)}).pause(),st.deltaX=st.deltaY=0,st._vx=_getVelocityProp(0,50,!0),st._vy=_getVelocityProp(0,50,!0),st.scrollX=dt,st.scrollY=ut,st.isDragging=st.isGesturing=st.isPressed=!1,Oe(this),st.enable=function(o){return st.isEnabled||(_addListener$1(mt?gt:p,"scroll",_onScroll$1),u.indexOf("scroll")>=0&&_addListener$1(mt?gt:p,"scroll",onScroll,ct,$),u.indexOf("wheel")>=0&&_addListener$1(p,"wheel",_onWheel,ct,$),(u.indexOf("touch")>=0&&Ce||u.indexOf("pointer")>=0)&&(_addListener$1(p,Ie[0],bt,ct,$),_addListener$1(gt,Ie[2],kt),_addListener$1(gt,Ie[3],kt),K&&_addListener$1(p,"click",clickCapture,!0,!0),X&&_addListener$1(p,"click",_onClick),q&&_addListener$1(gt,"gesturestart",_onGestureStart),V&&_addListener$1(gt,"gestureend",_onGestureEnd),R&&_addListener$1(p,Me+"enter",_onHover),Y&&_addListener$1(p,Me+"leave",_onHoverEnd),z&&_addListener$1(p,Me+"move",_onMove)),st.isEnabled=!0,st.isDragging=st.isGesturing=st.isPressed=nt=et=!1,st._vx.reset(),st._vy.reset(),ht=dt(),pt=ut(),o&&o.type&&bt(o),U&&U(st)),st},st.disable=function(){st.isEnabled&&(Fe.filter(function(o){return o!==st&&_isViewport$1(o.target)}).length||_removeListener$1(mt?gt:p,"scroll",_onScroll$1),st.isPressed&&(st._vx.reset(),st._vy.reset(),_removeListener$1(N?p:gt,Ie[1],_onDrag,!0)),_removeListener$1(mt?gt:p,"scroll",onScroll,$),_removeListener$1(p,"wheel",_onWheel,$),_removeListener$1(p,Ie[0],bt,$),_removeListener$1(gt,Ie[2],kt),_removeListener$1(gt,Ie[3],kt),_removeListener$1(p,"click",clickCapture,!0),_removeListener$1(p,"click",_onClick),_removeListener$1(gt,"gesturestart",_onGestureStart),_removeListener$1(gt,"gestureend",_onGestureEnd),_removeListener$1(p,Me+"enter",_onHover),_removeListener$1(p,Me+"leave",_onHoverEnd),_removeListener$1(p,Me+"move",_onMove),st.isEnabled=st.isPressed=st.isDragging=!1,W&&W(st))},st.kill=st.revert=function(){st.disable();var o=Fe.indexOf(st);o>=0&&Fe.splice(o,1),Pe===st&&(Pe=0)},Fe.push(st),N&&_isViewport$1(p)&&(Pe=st),st.enable(w)},_createClass(Observer,[{key:"velocityX",get:function(){return this._vx.getVelocity()}},{key:"velocityY",get:function(){return this._vy.getVelocity()}}]),Observer}();Ve.version="3.14.2",Ve.create=function(o){return new Ve(o)},Ve.register=_initCore,Ve.getAll=function(){return Fe.slice()},Ve.getById=function(o){return Fe.filter(function(c){return c.vars.id===o})[0]},_getGSAP$1()&&ke.registerPlugin(Ve); 27/*! 28 * ScrollTrigger 3.14.2 29 * https://gsap.com 30 * 31 * @license Copyright 2008-2025, GreenSock. All rights reserved. 32 * Subject to the terms at https://gsap.com/standard-license 33 * @author: Jack Doyle, [email protected] 34*/ 35var je,Ue,We,Xe,Ge,$e,Ke,Je,Qe,Ze,tn,en,nn,rn,an,sn,on,ln,cn,dn,un,hn,pn,fn,mn,gn,vn,yn,_n,bn,kn,wn,Sn,Dn,xn,En,Cn,Mn,Tn=1,An=Date.now,Pn=An(),In=0,On=0,_parseClamp=function(o,c,d){var u=_isString(o)&&("clamp("===o.substr(0,6)||o.indexOf("max")>-1);return d["_"+c+"Clamp"]=u,u?o.substr(6,o.length-7):o},_keepClamp=function(o,c){return!c||_isString(o)&&"clamp("===o.substr(0,6)?o:"clamp("+o+")"},Bn=function _rafBugFix(){return On&&requestAnimationFrame(_rafBugFix)},_pointerDownHandler=function(){return rn=1},_pointerUpHandler=function(){return rn=0},_passThrough=function(o){return o},_round=function(o){return Math.round(1e5*o)/1e5||0},_windowExists=function(){return"undefined"!=typeof window},_getGSAP=function(){return je||_windowExists()&&(je=window.gsap)&&je.registerPlugin&&je},_isViewport=function(o){return!!~Ke.indexOf(o)},_getViewportDimension=function(o){return("Height"===o?kn:We["inner"+o])||Ge["client"+o]||$e["client"+o]},_getBoundsFunc=function(o){return _getProxyProp(o,"getBoundingClientRect")||(_isViewport(o)?function(){return ui.width=We.innerWidth,ui.height=kn,ui}:function(){return _getBounds(o)})},_maxScroll=function(o,c){var d=c.s,u=c.d2,p=c.d,m=c.a;return Math.max(0,(d="scroll"+u)&&(m=_getProxyProp(o,d))?m()-_getBoundsFunc(o)()[p]:_isViewport(o)?(Ge[d]||$e[d])-_getViewportDimension(u):o[d]-o["offset"+u])},_iterateAutoRefresh=function(o,c){for(var d=0;d<cn.length;d+=3)(!c||~c.indexOf(cn[d+1]))&&o(cn[d],cn[d+1],cn[d+2])},_isString=function(o){return"string"==typeof o},_isFunction=function(o){return"function"==typeof o},_isNumber=function(o){return"number"==typeof o},_isObject=function(o){return"object"==typeof o},_endAnimation=function(o,c,d){return o&&o.progress(c?0:1)&&d&&o.pause()},_callback=function(o,c){if(o.enabled){var d=o._ctx?o._ctx.add(function(){return c(o)}):c(o);d&&d.totalTime&&(o.callbackAnimation=d)}},Fn=Math.abs,Ln="left",Rn="right",Yn="bottom",zn="width",Hn="height",Nn="Right",qn="Left",Vn="Top",jn="Bottom",Un="padding",Wn="margin",Xn="Width",Gn="Height",$n="px",_getComputedStyle=function(o){return We.getComputedStyle(o)},_setDefaults=function(o,c){for(var d in c)d in o||(o[d]=c[d]);return o},_getBounds=function(o,c){var d=c&&"matrix(1, 0, 0, 1, 0, 0)"!==_getComputedStyle(o)[an]&&je.to(o,{x:0,y:0,xPercent:0,yPercent:0,rotation:0,rotationX:0,rotationY:0,scale:1,skewX:0,skewY:0}).progress(1),u=o.getBoundingClientRect();return d&&d.progress(0).kill(),u},_getSize=function(o,c){var d=c.d2;return o["offset"+d]||o["client"+d]||0},_getLabelRatioArray=function(o){var c,d=[],u=o.labels,p=o.duration();for(c in u)d.push(u[c]/p);return d},_snapDirectional=function(o){var c=je.utils.snap(o),d=Array.isArray(o)&&o.slice(0).sort(function(o,c){return o-c});return d?function(o,u,p){var m;if(void 0===p&&(p=.001),!u)return c(o);if(u>0){for(o-=p,m=0;m<d.length;m++)if(d[m]>=o)return d[m];return d[m-1]}for(m=d.length,o+=p;m--;)if(d[m]<=o)return d[m];return d[0]}:function(d,u,p){void 0===p&&(p=.001);var m=c(d);return!u||Math.abs(m-d)<p||m-d<0==u<0?m:c(u<0?d-o:d+o)}},_multiListener=function(o,c,d,u){return d.split(",").forEach(function(d){return o(c,d,u)})},_addListener=function(o,c,d,u,p){return o.addEventListener(c,d,{passive:!u,capture:!!p})},_removeListener=function(o,c,d,u){return o.removeEventListener(c,d,!!u)},_wheelListener=function(o,c,d){(d=d&&d.wheelHandler)&&(o(c,"wheel",d),o(c,"touchmove",d))},Kn={startColor:"green",endColor:"red",indent:0,fontSize:"16px",fontWeight:"normal"},Jn={toggleActions:"play",anticipatePin:0},Qn={top:0,left:0,center:.5,bottom:1,right:1},_offsetToPx=function(o,c){if(_isString(o)){var d=o.indexOf("="),u=~d?+(o.charAt(d-1)+1)*parseFloat(o.substr(d+1)):0;~d&&(o.indexOf("%")>d&&(u*=c/100),o=o.substr(0,d-1)),o=u+(o in Qn?Qn[o]*c:~o.indexOf("%")?parseFloat(o)*c/100:parseFloat(o)||0)}return o},_createMarker=function(o,c,d,u,p,m,g,v){var y=p.startColor,_=p.endColor,b=p.fontSize,k=p.indent,w=p.fontWeight,S=Xe.createElement("div"),D=_isViewport(d)||"fixed"===_getProxyProp(d,"pinType"),x=-1!==o.indexOf("scroller"),E=D?$e:d,C=-1!==o.indexOf("start"),M=C?y:_,T="border-color:"+M+";font-size:"+b+";color:"+M+";font-weight:"+w+";pointer-events:none;white-space:nowrap;font-family:sans-serif,Arial;z-index:1000;padding:4px 8px;border-width:0;border-style:solid;";return T+="position:"+((x||v)&&D?"fixed;":"absolute;"),(x||v||!D)&&(T+=(u===qe?Rn:Yn)+":"+(m+parseFloat(k))+"px;"),g&&(T+="box-sizing:border-box;text-align:left;width:"+g.offsetWidth+"px;"),S._isStart=C,S.setAttribute("class","gsap-marker-"+o+(c?" marker-"+c:"")),S.style.cssText=T,S.innerText=c||0===c?o+"-"+c:o,E.children[0]?E.insertBefore(S,E.children[0]):E.appendChild(S),S._offset=S["offset"+u.op.d2],_positionMarker(S,0,u,C),S},_positionMarker=function(o,c,d,u){var p={display:"block"},m=d[u?"os2":"p2"],g=d[u?"p2":"os2"];o._isFlipped=u,p[d.a+"Percent"]=u?-100:0,p[d.a]=u?"1px":0,p["border"+m+Xn]=1,p["border"+g+Xn]=0,p[d.p]=c+"px",je.set(o,p)},Zn=[],ti={},_sync=function(){return An()-In>34&&(xn||(xn=requestAnimationFrame(_updateAll)))},_onScroll=function(){(!pn||!pn.isPressed||pn.startX>$e.clientWidth)&&(Le.cache++,pn?xn||(xn=requestAnimationFrame(_updateAll)):_updateAll(),In||_dispatch("scrollStart"),In=An())},_setBaseDimensions=function(){gn=We.innerWidth,mn=We.innerHeight},_onResize=function(o){Le.cache++,(!0===o||!nn&&!hn&&!Xe.fullscreenElement&&!Xe.webkitFullscreenElement&&(!fn||gn!==We.innerWidth||Math.abs(We.innerHeight-mn)>.25*We.innerHeight))&&Je.restart(!0)},ei={},ni=[],ii=function _softRefresh(){return _removeListener(pi,"scrollEnd",_softRefresh)||_refreshAll(!0)},_dispatch=function(o){return ei[o]&&ei[o].map(function(o){return o()})||ni},ri=[],_revertRecorded=function(o){for(var c=0;c<ri.length;c+=5)(!o||ri[c+4]&&ri[c+4].query===o)&&(ri[c].style.cssText=ri[c+1],ri[c].getBBox&&ri[c].setAttribute("transform",ri[c+2]||""),ri[c+3].uncache=1)},_recordScrollPositions=function(){return Le.forEach(function(o){return _isFunction(o)&&++o.cacheID&&(o.rec=o())})},_revertAll=function(o,c){var d;for(sn=0;sn<Zn.length;sn++)!(d=Zn[sn])||c&&d._ctx!==c||(o?d.kill(1):d.revert(!0,!0));wn=!0,c&&_revertRecorded(c),c||_dispatch("revert")},_clearScrollMemory=function(o,c){Le.cache++,(c||!En)&&Le.forEach(function(o){return _isFunction(o)&&o.cacheID++&&(o.rec=0)}),_isString(o)&&(We.history.scrollRestoration=_n=o)},ai=0,_refresh100vh=function(){$e.appendChild(bn),kn=!pn&&bn.offsetHeight||We.innerHeight,$e.removeChild(bn)},_hideAllMarkers=function(o){return Qe(".gsap-marker-start, .gsap-marker-end, .gsap-marker-scroller-start, .gsap-marker-scroller-end").forEach(function(c){return c.style.display=o?"none":"block"})},_refreshAll=function(o,c){if(Ge=Xe.documentElement,$e=Xe.body,Ke=[We,Xe,Ge,$e],!In||o||wn){_refresh100vh(),En=pi.isRefreshing=!0,wn||_recordScrollPositions();var d=_dispatch("refreshInit");dn&&pi.sort(),c||_revertAll(),Le.forEach(function(o){_isFunction(o)&&(o.smooth&&(o.target.style.scrollBehavior="auto"),o(0))}),Zn.slice(0).forEach(function(o){return o.refresh()}),wn=!1,Zn.forEach(function(o){if(o._subPinOffset&&o.pin){var c=o.vars.horizontal?"offsetWidth":"offsetHeight",d=o.pin[c];o.revert(!0,1),o.adjustPinSpacing(o.pin[c]-d),o.refresh()}}),Sn=1,_hideAllMarkers(!0),Zn.forEach(function(o){var c=_maxScroll(o.scroller,o._dir),d="max"===o.vars.end||o._endClamp&&o.end>c,u=o._startClamp&&o.start>=c;(d||u)&&o.setPositions(u?c-1:o.start,d?Math.max(u?c:o.start+1,c):o.end,!0)}),_hideAllMarkers(!1),Sn=0,d.forEach(function(o){return o&&o.render&&o.render(-1)}),Le.forEach(function(o){_isFunction(o)&&(o.smooth&&requestAnimationFrame(function(){return o.target.style.scrollBehavior="smooth"}),o.rec&&o(o.rec))}),_clearScrollMemory(_n,1),Je.pause(),ai++,En=2,_updateAll(2),Zn.forEach(function(o){return _isFunction(o.vars.onRefresh)&&o.vars.onRefresh(o)}),En=pi.isRefreshing=!1,_dispatch("refresh")}else _addListener(pi,"scrollEnd",ii)},si=0,oi=1,_updateAll=function(o){if(2===o||!En&&!wn){pi.isUpdating=!0,Mn&&Mn.update(0);var c=Zn.length,d=An(),u=d-Pn>=50,p=c&&Zn[0].scroll();if(oi=si>p?-1:1,En||(si=p),u&&(In&&!rn&&d-In>200&&(In=0,_dispatch("scrollEnd")),tn=Pn,Pn=d),oi<0){for(sn=c;sn-- >0;)Zn[sn]&&Zn[sn].update(0,u);oi=1}else for(sn=0;sn<c;sn++)Zn[sn]&&Zn[sn].update(0,u);pi.isUpdating=!1}xn=0},li=[Ln,"top",Yn,Rn,Wn+jn,Wn+Nn,Wn+Vn,Wn+qn,"display","flexShrink","float","zIndex","gridColumnStart","gridColumnEnd","gridRowStart","gridRowEnd","gridArea","justifySelf","alignSelf","placeSelf","order"],ci=li.concat([zn,Hn,"boxSizing","max"+Xn,"max"+Gn,"position",Wn,Un,Un+Vn,Un+Nn,Un+jn,Un+qn]),_swapPinIn=function(o,c,d,u){if(!o._gsap.swappedIn){for(var p,m=li.length,g=c.style,v=o.style;m--;)g[p=li[m]]=d[p];g.position="absolute"===d.position?"absolute":"relative","inline"===d.display&&(g.display="inline-block"),v[Yn]=v[Rn]="auto",g.flexBasis=d.flexBasis||"auto",g.overflow="visible",g.boxSizing="border-box",g[zn]=_getSize(o,Ne)+$n,g[Hn]=_getSize(o,qe)+$n,g[Un]=v[Wn]=v.top=v[Ln]="0",_setState(u),v[zn]=v["max"+Xn]=d[zn],v[Hn]=v["max"+Gn]=d[Hn],v[Un]=d[Un],o.parentNode!==c&&(o.parentNode.insertBefore(c,o),c.appendChild(o)),o._gsap.swappedIn=!0}},di=/([A-Z])/g,_setState=function(o){if(o){var c,d,u=o.t.style,p=o.length,m=0;for((o.t._gsap||je.core.getCache(o.t)).uncache=1;m<p;m+=2)d=o[m+1],c=o[m],d?u[c]=d:u[c]&&u.removeProperty(c.replace(di,"-$1").toLowerCase())}},_getState=function(o){for(var c=ci.length,d=o.style,u=[],p=0;p<c;p++)u.push(ci[p],d[ci[p]]);return u.t=o,u},ui={left:0,top:0},_parsePosition=function(o,c,d,u,p,m,g,v,y,_,b,k,w,S){_isFunction(o)&&(o=o(v)),_isString(o)&&"max"===o.substr(0,3)&&(o=k+("="===o.charAt(4)?_offsetToPx("0"+o.substr(3),d):0));var D,x,E,C=w?w.time():0;if(w&&w.seek(0),isNaN(o)||(o=+o),_isNumber(o))w&&(o=je.utils.mapRange(w.scrollTrigger.start,w.scrollTrigger.end,0,k,o)),g&&_positionMarker(g,d,u,!0);else{_isFunction(c)&&(c=c(v));var M,T,A,P,I=(o||"0").split(" ");E=_getTarget(c,v)||$e,(M=_getBounds(E)||{})&&(M.left||M.top)||"none"!==_getComputedStyle(E).display||(P=E.style.display,E.style.display="block",M=_getBounds(E),P?E.style.display=P:E.style.removeProperty("display")),T=_offsetToPx(I[0],M[u.d]),A=_offsetToPx(I[1]||"0",d),o=M[u.p]-y[u.p]-_+T+p-A,g&&_positionMarker(g,A,u,d-A<20||g._isStart&&A>20),d-=d-A}if(S&&(v[S]=o||-.001,o<0&&(o=0)),m){var O=o+d,B=m._isStart;D="scroll"+u.d2,_positionMarker(m,O,u,B&&O>20||!B&&(b?Math.max($e[D],Ge[D]):m.parentNode[D])<=O+1),b&&(y=_getBounds(g),b&&(m.style[u.op.p]=y[u.op.p]-u.op.m-m._offset+$n))}return w&&E&&(D=_getBounds(E),w.seek(k),x=_getBounds(E),w._caScrollDist=D[u.p]-x[u.p],o=o/w._caScrollDist*k),w&&w.seek(C),w?o:Math.round(o)},hi=/(webkit|moz|length|cssText|inset)/i,_reparent=function(o,c,d,u){if(o.parentNode!==c){var p,m,g=o.style;if(c===$e){for(p in o._stOrig=g.cssText,m=_getComputedStyle(o))+p||hi.test(p)||!m[p]||"string"!=typeof g[p]||"0"===p||(g[p]=m[p]);g.top=d,g.left=u}else g.cssText=o._stOrig;je.core.getCache(o).uncache=1,c.appendChild(o)}},_interruptionTracker=function(o,c,d){var u=c,p=u;return function(c){var m=Math.round(o());return m!==u&&m!==p&&Math.abs(m-u)>3&&Math.abs(m-p)>3&&(c=m,d&&d()),p=u,u=Math.round(c)}},_shiftMarker=function(o,c,d){var u={};u[c.p]="+="+d,je.set(o,u)},_getTweenCreator=function(o,c){var d=_getScrollFunc(o,c),u="_scroll"+c.p2,p=function getTween(c,p,m,g,v){var y=getTween.tween,_=p.onComplete,b={};m=m||d();var k=_interruptionTracker(d,m,function(){y.kill(),getTween.tween=0});return v=g&&v||0,g=g||c-m,y&&y.kill(),p[u]=c,p.inherit=!1,p.modifiers=b,b[u]=function(){return k(m+g*y.ratio+v*y.ratio*y.ratio)},p.onUpdate=function(){Le.cache++,getTween.tween&&_updateAll()},p.onComplete=function(){getTween.tween=0,_&&_.call(y)},y=getTween.tween=je.to(o,p)};return o[u]=d,d.wheelHandler=function(){return p.tween&&p.tween.kill()&&(p.tween=0)},_addListener(o,"wheel",d.wheelHandler),pi.isTouch&&_addListener(o,"touchmove",d.wheelHandler),p},pi=function(){function ScrollTrigger(o,c){Ue||ScrollTrigger.register(je)||console.warn("Please gsap.registerPlugin(ScrollTrigger)"),yn(this),this.init(o,c)}return ScrollTrigger.prototype.init=function(o,c){if(this.progress=this.start=0,this.vars&&this.kill(!0,!0),On){var d,u,p,m,g,v,y,_,b,k,w,S,D,x,E,C,M,T,A,P,I,O,B,F,L,R,Y,z,H,N,q,V,j,U,W,X,G,$,K,J,Q,Z,tt=o=_setDefaults(_isString(o)||_isNumber(o)||o.nodeType?{trigger:o}:o,Jn),et=tt.onUpdate,nt=tt.toggleClass,it=tt.id,rt=tt.onToggle,at=tt.onRefresh,st=tt.scrub,ot=tt.trigger,lt=tt.pin,ct=tt.pinSpacing,dt=tt.invalidateOnRefresh,ut=tt.anticipatePin,ht=tt.onScrubComplete,pt=tt.onSnapComplete,ft=tt.once,mt=tt.snap,gt=tt.pinReparent,vt=tt.pinSpacer,yt=tt.containerAnimation,_t=tt.fastScrollEnd,bt=tt.preventOverlaps,kt=o.horizontal||o.containerAnimation&&!1!==o.horizontal?Ne:qe,wt=!st&&0!==st,St=_getTarget(o.scroller||We),Dt=je.core.getCache(St),xt=_isViewport(St),Et="fixed"===("pinType"in o?o.pinType:_getProxyProp(St,"pinType")||xt&&"fixed"),Ct=[o.onEnter,o.onLeave,o.onEnterBack,o.onLeaveBack],Mt=wt&&o.toggleActions.split(" "),Tt="markers"in o?o.markers:Jn.markers,At=xt?0:parseFloat(_getComputedStyle(St)["border"+kt.p2+Xn])||0,Pt=this,It=o.onRefreshInit&&function(){return o.onRefreshInit(Pt)},Ot=function(o,c,d){var u=d.d,p=d.d2,m=d.a;return(m=_getProxyProp(o,"getBoundingClientRect"))?function(){return m()[u]}:function(){return(c?_getViewportDimension(p):o["client"+p])||0}}(St,xt,kt),Bt=function(o,c){return!c||~Re.indexOf(o)?_getBoundsFunc(o):function(){return ui}}(St,xt),Ft=0,Lt=0,Rt=0,Yt=_getScrollFunc(St,kt);if(Pt._startClamp=Pt._endClamp=!1,Pt._dir=kt,ut*=45,Pt.scroller=St,Pt.scroll=yt?yt.time.bind(yt):Yt,m=Yt(),Pt.vars=o,c=c||o.animation,"refreshPriority"in o&&(dn=1,-9999===o.refreshPriority&&(Mn=Pt)),Dt.tweenScroll=Dt.tweenScroll||{top:_getTweenCreator(St,qe),left:_getTweenCreator(St,Ne)},Pt.tweenTo=d=Dt.tweenScroll[kt.p],Pt.scrubDuration=function(o){(j=_isNumber(o)&&o)?V?V.duration(o):V=je.to(c,{ease:"expo",totalProgress:"+=0",inherit:!1,duration:j,paused:!0,onComplete:function(){return ht&&ht(Pt)}}):(V&&V.progress(1).kill(),V=0)},c&&(c.vars.lazy=!1,c._initted&&!Pt.isReverted||!1!==c.vars.immediateRender&&!1!==o.immediateRender&&c.duration()&&c.render(0,!0,!0),Pt.animation=c.pause(),c.scrollTrigger=Pt,Pt.scrubDuration(st),N=0,it||(it=c.vars.id)),mt&&(_isObject(mt)&&!mt.push||(mt={snapTo:mt}),"scrollBehavior"in $e.style&&je.set(xt?[$e,Ge]:St,{scrollBehavior:"auto"}),Le.forEach(function(o){return _isFunction(o)&&o.target===(xt?Xe.scrollingElement||Ge:St)&&(o.smooth=!1)}),p=_isFunction(mt.snapTo)?mt.snapTo:"labels"===mt.snapTo?function(o){return function(c){return je.utils.snap(_getLabelRatioArray(o),c)}}(c):"labelsDirectional"===mt.snapTo?(J=c,function(o,c){return _snapDirectional(_getLabelRatioArray(J))(o,c.direction)}):!1!==mt.directional?function(o,c){return _snapDirectional(mt.snapTo)(o,An()-Lt<500?0:c.direction)}:je.utils.snap(mt.snapTo),U=mt.duration||{min:.1,max:2},U=_isObject(U)?Ze(U.min,U.max):Ze(U,U),W=je.delayedCall(mt.delay||j/2||.1,function(){var o=Yt(),u=An()-Lt<500,m=d.tween;if(!(u||Math.abs(Pt.getVelocity())<10)||m||rn||Ft===o)Pt.isActive&&Ft!==o&&W.restart(!0);else{var g,_,b=(o-v)/x,k=c&&!wt?c.totalProgress():b,w=u?0:(k-q)/(An()-tn)*1e3||0,S=je.utils.clamp(-b,1-b,Fn(w/2)*w/.185),D=b+(!1===mt.inertia?0:S),E=mt,C=E.onStart,M=E.onInterrupt,T=E.onComplete;if(g=p(D,Pt),_isNumber(g)||(g=D),_=Math.max(0,Math.round(v+g*x)),o<=y&&o>=v&&_!==o){if(m&&!m._initted&&m.data<=Fn(_-o))return;!1===mt.inertia&&(S=g-b),d(_,{duration:U(Fn(.185*Math.max(Fn(D-k),Fn(g-k))/w/.05||0)),ease:mt.ease||"power3",data:Fn(_-o),onInterrupt:function(){return W.restart(!0)&&M&&M(Pt)},onComplete:function(){Pt.update(),Ft=Yt(),c&&!wt&&(V?V.resetTo("totalProgress",g,c._tTime/c._tDur):c.progress(g)),N=q=c&&!wt?c.totalProgress():Pt.progress,pt&&pt(Pt),T&&T(Pt)}},o,S*x,_-o-S*x),C&&C(Pt,d.tween)}}}).pause()),it&&(ti[it]=Pt),(K=(ot=Pt.trigger=_getTarget(ot||!0!==lt&<))&&ot._gsap&&ot._gsap.stRevert)&&(K=K(Pt)),lt=!0===lt?ot:_getTarget(lt),_isString(nt)&&(nt={targets:ot,className:nt}),lt&&(!1===ct||ct===Wn||(ct=!(!ct&<.parentNode&<.parentNode.style&&"flex"===_getComputedStyle(lt.parentNode).display)&&Un),Pt.pin=lt,(u=je.core.getCache(lt)).spacer?E=u.pinState:(vt&&((vt=_getTarget(vt))&&!vt.nodeType&&(vt=vt.current||vt.nativeElement),u.spacerIsNative=!!vt,vt&&(u.spacerState=_getState(vt))),u.spacer=T=vt||Xe.createElement("div"),T.classList.add("pin-spacer"),it&&T.classList.add("pin-spacer-"+it),u.pinState=E=_getState(lt)),!1!==o.force3D&&je.set(lt,{force3D:!0}),Pt.spacer=T=u.spacer,H=_getComputedStyle(lt),F=H[ct+kt.os2],P=je.getProperty(lt),I=je.quickSetter(lt,kt.a,$n),_swapPinIn(lt,T,H),M=_getState(lt)),Tt){S=_isObject(Tt)?_setDefaults(Tt,Kn):Kn,k=_createMarker("scroller-start",it,St,kt,S,0),w=_createMarker("scroller-end",it,St,kt,S,0,k),A=k["offset"+kt.op.d2];var zt=_getTarget(_getProxyProp(St,"content")||St);_=this.markerStart=_createMarker("start",it,zt,kt,S,A,0,yt),b=this.markerEnd=_createMarker("end",it,zt,kt,S,A,0,yt),yt&&($=je.quickSetter([_,b],kt.a,$n)),Et||Re.length&&!0===_getProxyProp(St,"fixedMarkers")||(Z=_getComputedStyle(Q=xt?$e:St).position,Q.style.position="absolute"===Z||"fixed"===Z?Z:"relative",je.set([k,w],{force3D:!0}),R=je.quickSetter(k,kt.a,$n),z=je.quickSetter(w,kt.a,$n))}if(yt){var Ht=yt.vars.onUpdate,Nt=yt.vars.onUpdateParams;yt.eventCallback("onUpdate",function(){Pt.update(0,0,1),Ht&&Ht.apply(yt,Nt||[])})}if(Pt.previous=function(){return Zn[Zn.indexOf(Pt)-1]},Pt.next=function(){return Zn[Zn.indexOf(Pt)+1]},Pt.revert=function(o,d){if(!d)return Pt.kill(!0);var u=!1!==o||!Pt.enabled,p=nn;u!==Pt.isReverted&&(u&&(X=Math.max(Yt(),Pt.scroll.rec||0),Rt=Pt.progress,G=c&&c.progress()),_&&[_,b,k,w].forEach(function(o){return o.style.display=u?"none":"block"}),u&&(nn=Pt,Pt.update(u)),!lt||gt&&Pt.isActive||(u?function(o,c,d){_setState(d);var u=o._gsap;if(u.spacerIsNative)_setState(u.spacerState);else if(o._gsap.swappedIn){var p=c.parentNode;p&&(p.insertBefore(o,c),p.removeChild(c))}o._gsap.swappedIn=!1}(lt,T,E):_swapPinIn(lt,T,_getComputedStyle(lt),L)),u||Pt.update(u),nn=p,Pt.isReverted=u)},Pt.refresh=function(u,p,S,A){if(!nn&&Pt.enabled||p)if(lt&&u&&In)_addListener(ScrollTrigger,"scrollEnd",ii);else{!En&&It&&It(Pt),nn=Pt,d.tween&&!S&&(d.tween.kill(),d.tween=0),V&&V.pause(),dt&&c&&(c.revert({kill:!1}).invalidate(),c.getChildren?c.getChildren(!0,!0,!1).forEach(function(o){return o.vars.immediateRender&&o.render(0,!0,!0)}):c.vars.immediateRender&&c.render(0,!0,!0)),Pt.isReverted||Pt.revert(!0,!0),Pt._subPinOffset=!1;var I,F,R,z,H,N,q,j,U,$,K,J,Q,Z=Ot(),tt=Bt(),et=yt?yt.duration():_maxScroll(St,kt),nt=x<=.01||!x,it=0,rt=A||0,st=_isObject(S)?S.end:o.end,ut=o.endTrigger||ot,ht=_isObject(S)?S.start:o.start||(0!==o.start&&ot?lt?"0 0":"0 100%":0),pt=Pt.pinnedContainer=o.pinnedContainer&&_getTarget(o.pinnedContainer,Pt),ft=ot&&Math.max(0,Zn.indexOf(Pt))||0,mt=ft;for(Tt&&_isObject(S)&&(J=je.getProperty(k,kt.p),Q=je.getProperty(w,kt.p));mt-- >0;)(N=Zn[mt]).end||N.refresh(0,1)||(nn=Pt),!(q=N.pin)||q!==ot&&q!==lt&&q!==pt||N.isReverted||($||($=[]),$.unshift(N),N.revert(!0,!0)),N!==Zn[mt]&&(ft--,mt--);for(_isFunction(ht)&&(ht=ht(Pt)),ht=_parseClamp(ht,"start",Pt),v=_parsePosition(ht,ot,Z,kt,Yt(),_,k,Pt,tt,At,Et,et,yt,Pt._startClamp&&"_startClamp")||(lt?-.001:0),_isFunction(st)&&(st=st(Pt)),_isString(st)&&!st.indexOf("+=")&&(~st.indexOf(" ")?st=(_isString(ht)?ht.split(" ")[0]:"")+st:(it=_offsetToPx(st.substr(2),Z),st=_isString(ht)?ht:(yt?je.utils.mapRange(0,yt.duration(),yt.scrollTrigger.start,yt.scrollTrigger.end,v):v)+it,ut=ot)),st=_parseClamp(st,"end",Pt),y=Math.max(v,_parsePosition(st||(ut?"100% 0":et),ut,Z,kt,Yt()+it,b,w,Pt,tt,At,Et,et,yt,Pt._endClamp&&"_endClamp"))||-.001,it=0,mt=ft;mt--;)(q=(N=Zn[mt]||{}).pin)&&N.start-N._pinPush<=v&&!yt&&N.end>0&&(I=N.end-(Pt._startClamp?Math.max(0,N.start):N.start),(q===ot&&N.start-N._pinPush<v||q===pt)&&isNaN(ht)&&(it+=I*(1-N.progress)),q===lt&&(rt+=I));if(v+=it,y+=it,Pt._startClamp&&(Pt._startClamp+=it),Pt._endClamp&&!En&&(Pt._endClamp=y||-.001,y=Math.min(y,_maxScroll(St,kt))),x=y-v||(v-=.01)&&.001,nt&&(Rt=je.utils.clamp(0,1,je.utils.normalize(v,y,X))),Pt._pinPush=rt,_&&it&&((I={})[kt.a]="+="+it,pt&&(I[kt.p]="-="+Yt()),je.set([_,b],I)),!lt||Sn&&Pt.end>=_maxScroll(St,kt)){if(ot&&Yt()&&!yt)for(F=ot.parentNode;F&&F!==$e;)F._pinOffset&&(v-=F._pinOffset,y-=F._pinOffset),F=F.parentNode}else I=_getComputedStyle(lt),z=kt===qe,R=Yt(),O=parseFloat(P(kt.a))+rt,!et&&y>1&&(K={style:K=(xt?Xe.scrollingElement||Ge:St).style,value:K["overflow"+kt.a.toUpperCase()]},xt&&"scroll"!==_getComputedStyle($e)["overflow"+kt.a.toUpperCase()]&&(K.style["overflow"+kt.a.toUpperCase()]="scroll")),_swapPinIn(lt,T,I),M=_getState(lt),F=_getBounds(lt,!0),j=Et&&_getScrollFunc(St,z?Ne:qe)(),ct?((L=[ct+kt.os2,x+rt+$n]).t=T,(mt=ct===Un?_getSize(lt,kt)+x+rt:0)&&(L.push(kt.d,mt+$n),"auto"!==T.style.flexBasis&&(T.style.flexBasis=mt+$n)),_setState(L),pt&&Zn.forEach(function(o){o.pin===pt&&!1!==o.vars.pinSpacing&&(o._subPinOffset=!0)}),Et&&Yt(X)):(mt=_getSize(lt,kt))&&"auto"!==T.style.flexBasis&&(T.style.flexBasis=mt+$n),Et&&((H={top:F.top+(z?R-v:j)+$n,left:F.left+(z?j:R-v)+$n,boxSizing:"border-box",position:"fixed"})[zn]=H["max"+Xn]=Math.ceil(F.width)+$n,H[Hn]=H["max"+Gn]=Math.ceil(F.height)+$n,H[Wn]=H[Wn+Vn]=H[Wn+Nn]=H[Wn+jn]=H[Wn+qn]="0",H[Un]=I[Un],H[Un+Vn]=I[Un+Vn],H[Un+Nn]=I[Un+Nn],H[Un+jn]=I[Un+jn],H[Un+qn]=I[Un+qn],C=function(o,c,d){for(var u,p=[],m=o.length,g=d?8:0;g<m;g+=2)u=o[g],p.push(u,u in c?c[u]:o[g+1]);return p.t=o.t,p}(E,H,gt),En&&Yt(0)),c?(U=c._initted,un(1),c.render(c.duration(),!0,!0),B=P(kt.a)-O+x+rt,Y=Math.abs(x-B)>1,Et&&Y&&C.splice(C.length-2,2),c.render(0,!0,!0),U||c.invalidate(!0),c.parent||c.totalTime(c.totalTime()),un(0)):B=x,K&&(K.value?K.style["overflow"+kt.a.toUpperCase()]=K.value:K.style.removeProperty("overflow-"+kt.a));$&&$.forEach(function(o){return o.revert(!1,!0)}),Pt.start=v,Pt.end=y,m=g=En?X:Yt(),yt||En||(m<X&&Yt(X),Pt.scroll.rec=0),Pt.revert(!1,!0),Lt=An(),W&&(Ft=-1,W.restart(!0)),nn=0,c&&wt&&(c._initted||G)&&c.progress()!==G&&c.progress(G||0,!0).render(c.time(),!0,!0),(nt||Rt!==Pt.progress||yt||dt||c&&!c._initted)&&(c&&!wt&&(c._initted||Rt||!1!==c.vars.immediateRender)&&c.totalProgress(yt&&v<-.001&&!Rt?je.utils.normalize(v,y,0):Rt,!0),Pt.progress=nt||(m-v)/x===Rt?0:Rt),lt&&ct&&(T._pinOffset=Math.round(Pt.progress*B)),V&&V.invalidate(),isNaN(J)||(J-=je.getProperty(k,kt.p),Q-=je.getProperty(w,kt.p),_shiftMarker(k,kt,J),_shiftMarker(_,kt,J-(A||0)),_shiftMarker(w,kt,Q),_shiftMarker(b,kt,Q-(A||0))),nt&&!En&&Pt.update(),!at||En||D||(D=!0,at(Pt),D=!1)}},Pt.getVelocity=function(){return(Yt()-g)/(An()-tn)*1e3||0},Pt.endAnimation=function(){_endAnimation(Pt.callbackAnimation),c&&(V?V.progress(1):c.paused()?wt||_endAnimation(c,Pt.direction<0,1):_endAnimation(c,c.reversed()))},Pt.labelToScroll=function(o){return c&&c.labels&&(v||Pt.refresh()||v)+c.labels[o]/c.duration()*x||0},Pt.getTrailing=function(o){var c=Zn.indexOf(Pt),d=Pt.direction>0?Zn.slice(0,c).reverse():Zn.slice(c+1);return(_isString(o)?d.filter(function(c){return c.vars.preventOverlaps===o}):d).filter(function(o){return Pt.direction>0?o.end<=v:o.start>=y})},Pt.update=function(o,u,p){if(!yt||p||o){var _,b,w,S,D,E,A,P=!0===En?X:Pt.scroll(),L=o?0:(P-v)/x,H=L<0?0:L>1?1:L||0,j=Pt.progress;if(u&&(g=m,m=yt?Yt():P,mt&&(q=N,N=c&&!wt?c.totalProgress():H)),ut&<&&!nn&&!Tn&&In&&(!H&&v<P+(P-g)/(An()-tn)*ut?H=1e-4:1===H&&y>P+(P-g)/(An()-tn)*ut&&(H=.9999)),H!==j&&Pt.enabled){if(S=(D=(_=Pt.isActive=!!H&&H<1)!==(!!j&&j<1))||!!H!=!!j,Pt.direction=H>j?1:-1,Pt.progress=H,S&&!nn&&(b=H&&!j?0:1===H?1:1===j?2:3,wt&&(w=!D&&"none"!==Mt[b+1]&&Mt[b+1]||Mt[b],A=c&&("complete"===w||"reset"===w||w in c))),bt&&(D||A)&&(A||st||!c)&&(_isFunction(bt)?bt(Pt):Pt.getTrailing(bt).forEach(function(o){return o.endAnimation()})),wt||(!V||nn||Tn?c&&c.totalProgress(H,!(!nn||!Lt&&!o)):(V._dp._time-V._start!==V._time&&V.render(V._dp._time-V._start),V.resetTo?V.resetTo("totalProgress",H,c._tTime/c._tDur):(V.vars.totalProgress=H,V.invalidate().restart()))),lt)if(o&&ct&&(T.style[ct+kt.os2]=F),Et){if(S){if(E=!o&&H>j&&y+1>P&&P+1>=_maxScroll(St,kt),gt)if(o||!_&&!E)_reparent(lt,T);else{var U=_getBounds(lt,!0),G=P-v;_reparent(lt,$e,U.top+(kt===qe?G:0)+$n,U.left+(kt===qe?0:G)+$n)}_setState(_||E?C:M),Y&&H<1&&_||I(O+(1!==H||E?0:B))}}else I(_round(O+B*H));mt&&!d.tween&&!nn&&!Tn&&W.restart(!0),nt&&(D||ft&&H&&(H<1||!Dn))&&Qe(nt.targets).forEach(function(o){return o.classList[_||ft?"add":"remove"](nt.className)}),et&&!wt&&!o&&et(Pt),S&&!nn?(wt&&(A&&("complete"===w?c.pause().totalProgress(1):"reset"===w?c.restart(!0).pause():"restart"===w?c.restart(!0):c[w]()),et&&et(Pt)),!D&&Dn||(rt&&D&&_callback(Pt,rt),Ct[b]&&_callback(Pt,Ct[b]),ft&&(1===H?Pt.kill(!1,1):Ct[b]=0),D||Ct[b=1===H?1:3]&&_callback(Pt,Ct[b])),_t&&!_&&Math.abs(Pt.getVelocity())>(_isNumber(_t)?_t:2500)&&(_endAnimation(Pt.callbackAnimation),V?V.progress(1):_endAnimation(c,"reverse"===w?1:!H,1))):wt&&et&&!nn&&et(Pt)}if(z){var K=yt?P/yt.duration()*(yt._caScrollDist||0):P;R(K+(k._isFlipped?1:0)),z(K)}$&&$(-P/yt.duration()*(yt._caScrollDist||0))}},Pt.enable=function(o,c){Pt.enabled||(Pt.enabled=!0,_addListener(St,"resize",_onResize),xt||_addListener(St,"scroll",_onScroll),It&&_addListener(ScrollTrigger,"refreshInit",It),!1!==o&&(Pt.progress=Rt=0,m=g=Ft=Yt()),!1!==c&&Pt.refresh())},Pt.getTween=function(o){return o&&d?d.tween:V},Pt.setPositions=function(o,c,d,u){if(yt){var p=yt.scrollTrigger,m=yt.duration(),g=p.end-p.start;o=p.start+g*o/m,c=p.start+g*c/m}Pt.refresh(!1,!1,{start:_keepClamp(o,d&&!!Pt._startClamp),end:_keepClamp(c,d&&!!Pt._endClamp)},u),Pt.update()},Pt.adjustPinSpacing=function(o){if(L&&o){var c=L.indexOf(kt.d)+1;L[c]=parseFloat(L[c])+o+$n,L[1]=parseFloat(L[1])+o+$n,_setState(L)}},Pt.disable=function(o,c){if(!1!==o&&Pt.revert(!0,!0),Pt.enabled&&(Pt.enabled=Pt.isActive=!1,c||V&&V.pause(),X=0,u&&(u.uncache=1),It&&_removeListener(ScrollTrigger,"refreshInit",It),W&&(W.pause(),d.tween&&d.tween.kill()&&(d.tween=0)),!xt)){for(var p=Zn.length;p--;)if(Zn[p].scroller===St&&Zn[p]!==Pt)return;_removeListener(St,"resize",_onResize),xt||_removeListener(St,"scroll",_onScroll)}},Pt.kill=function(d,p){Pt.disable(d,p),V&&!p&&V.kill(),it&&delete ti[it];var m=Zn.indexOf(Pt);m>=0&&Zn.splice(m,1),m===sn&&oi>0&&sn--,m=0,Zn.forEach(function(o){return o.scroller===Pt.scroller&&(m=1)}),m||En||(Pt.scroll.rec=0),c&&(c.scrollTrigger=null,d&&c.revert({kill:!1}),p||c.kill()),_&&[_,b,k,w].forEach(function(o){return o.parentNode&&o.parentNode.removeChild(o)}),Mn===Pt&&(Mn=0),lt&&(u&&(u.uncache=1),m=0,Zn.forEach(function(o){return o.pin===lt&&m++}),m||(u.spacer=0)),o.onKill&&o.onKill(Pt)},Zn.push(Pt),Pt.enable(!1,!1),K&&K(Pt),c&&c.add&&!x){var qt=Pt.update;Pt.update=function(){Pt.update=qt,Le.cache++,v||y||Pt.refresh()},je.delayedCall(.01,Pt.update),x=.01,v=y=0}else Pt.refresh();lt&&function(){if(Cn!==ai){var o=Cn=ai;requestAnimationFrame(function(){return o===ai&&_refreshAll(!0)})}}()}else this.update=this.refresh=this.kill=_passThrough},ScrollTrigger.register=function(o){return Ue||(je=o||_getGSAP(),_windowExists()&&window.document&&ScrollTrigger.enable(),Ue=On),Ue},ScrollTrigger.defaults=function(o){if(o)for(var c in o)Jn[c]=o[c];return Jn},ScrollTrigger.disable=function(o,c){On=0,Zn.forEach(function(d){return d[c?"kill":"disable"](o)}),_removeListener(We,"wheel",_onScroll),_removeListener(Xe,"scroll",_onScroll),clearInterval(en),_removeListener(Xe,"touchcancel",_passThrough),_removeListener($e,"touchstart",_passThrough),_multiListener(_removeListener,Xe,"pointerdown,touchstart,mousedown",_pointerDownHandler),_multiListener(_removeListener,Xe,"pointerup,touchend,mouseup",_pointerUpHandler),Je.kill(),_iterateAutoRefresh(_removeListener);for(var d=0;d<Le.length;d+=3)_wheelListener(_removeListener,Le[d],Le[d+1]),_wheelListener(_removeListener,Le[d],Le[d+2])},ScrollTrigger.enable=function(){if(We=window,Xe=document,Ge=Xe.documentElement,$e=Xe.body,je&&(Qe=je.utils.toArray,Ze=je.utils.clamp,yn=je.core.context||_passThrough,un=je.core.suppressOverwrites||_passThrough,_n=We.history.scrollRestoration||"auto",si=We.pageYOffset||0,je.core.globals("ScrollTrigger",ScrollTrigger),$e)){On=1,(bn=document.createElement("div")).style.height="100vh",bn.style.position="absolute",_refresh100vh(),Bn(),Ve.register(je),ScrollTrigger.isTouch=Ve.isTouch,vn=Ve.isTouch&&/(iPad|iPhone|iPod|Mac)/g.test(navigator.userAgent),fn=1===Ve.isTouch,_addListener(We,"wheel",_onScroll),Ke=[We,Xe,Ge,$e],je.matchMedia?(ScrollTrigger.matchMedia=function(o){var c,d=je.matchMedia();for(c in o)d.add(c,o[c]);return d},je.addEventListener("matchMediaInit",function(){_recordScrollPositions(),_revertAll()}),je.addEventListener("matchMediaRevert",function(){return _revertRecorded()}),je.addEventListener("matchMedia",function(){_refreshAll(0,1),_dispatch("matchMedia")}),je.matchMedia().add("(orientation: portrait)",function(){return _setBaseDimensions(),_setBaseDimensions})):console.warn("Requires GSAP 3.11.0 or later"),_setBaseDimensions(),_addListener(Xe,"scroll",_onScroll);var o,c,d=$e.hasAttribute("style"),u=$e.style,p=u.borderTopStyle,m=je.core.Animation.prototype;for(m.revert||Object.defineProperty(m,"revert",{value:function(){return this.time(-.01,!0)}}),u.borderTopStyle="solid",o=_getBounds($e),qe.m=Math.round(o.top+qe.sc())||0,Ne.m=Math.round(o.left+Ne.sc())||0,p?u.borderTopStyle=p:u.removeProperty("border-top-style"),d||($e.setAttribute("style",""),$e.removeAttribute("style")),en=setInterval(_sync,250),je.delayedCall(.5,function(){return Tn=0}),_addListener(Xe,"touchcancel",_passThrough),_addListener($e,"touchstart",_passThrough),_multiListener(_addListener,Xe,"pointerdown,touchstart,mousedown",_pointerDownHandler),_multiListener(_addListener,Xe,"pointerup,touchend,mouseup",_pointerUpHandler),an=je.utils.checkPrefix("transform"),ci.push(an),Ue=An(),Je=je.delayedCall(.2,_refreshAll).pause(),cn=[Xe,"visibilitychange",function(){var o=We.innerWidth,c=We.innerHeight;Xe.hidden?(on=o,ln=c):on===o&&ln===c||_onResize()},Xe,"DOMContentLoaded",_refreshAll,We,"load",_refreshAll,We,"resize",_onResize],_iterateAutoRefresh(_addListener),Zn.forEach(function(o){return o.enable(0,1)}),c=0;c<Le.length;c+=3)_wheelListener(_removeListener,Le[c],Le[c+1]),_wheelListener(_removeListener,Le[c],Le[c+2])}},ScrollTrigger.config=function(o){"limitCallbacks"in o&&(Dn=!!o.limitCallbacks);var c=o.syncInterval;c&&clearInterval(en)||(en=c)&&setInterval(_sync,c),"ignoreMobileResize"in o&&(fn=1===ScrollTrigger.isTouch&&o.ignoreMobileResize),"autoRefreshEvents"in o&&(_iterateAutoRefresh(_removeListener)||_iterateAutoRefresh(_addListener,o.autoRefreshEvents||"none"),hn=-1===(o.autoRefreshEvents+"").indexOf("resize"))},ScrollTrigger.scrollerProxy=function(o,c){var d=_getTarget(o),u=Le.indexOf(d),p=_isViewport(d);~u&&Le.splice(u,p?6:2),c&&(p?Re.unshift(We,c,$e,c,Ge,c):Re.unshift(d,c))},ScrollTrigger.clearMatchMedia=function(o){Zn.forEach(function(c){return c._ctx&&c._ctx.query===o&&c._ctx.kill(!0,!0)})},ScrollTrigger.isInViewport=function(o,c,d){var u=(_isString(o)?_getTarget(o):o).getBoundingClientRect(),p=u[d?zn:Hn]*c||0;return d?u.right-p>0&&u.left+p<We.innerWidth:u.bottom-p>0&&u.top+p<We.innerHeight},ScrollTrigger.positionInViewport=function(o,c,d){_isString(o)&&(o=_getTarget(o));var u=o.getBoundingClientRect(),p=u[d?zn:Hn],m=null==c?p/2:c in Qn?Qn[c]*p:~c.indexOf("%")?parseFloat(c)*p/100:parseFloat(c)||0;return d?(u.left+m)/We.innerWidth:(u.top+m)/We.innerHeight},ScrollTrigger.killAll=function(o){if(Zn.slice(0).forEach(function(o){return"ScrollSmoother"!==o.vars.id&&o.kill()}),!0!==o){var c=ei.killAll||[];ei={},c.forEach(function(o){return o()})}},ScrollTrigger}();pi.version="3.14.2",pi.saveStyles=function(o){return o?Qe(o).forEach(function(o){if(o&&o.style){var c=ri.indexOf(o);c>=0&&ri.splice(c,5),ri.push(o,o.style.cssText,o.getBBox&&o.getAttribute("transform"),je.core.getCache(o),yn())}}):ri},pi.revert=function(o,c){return _revertAll(!o,c)},pi.create=function(o,c){return new pi(o,c)},pi.refresh=function(o){return o?_onResize(!0):(Ue||pi.register())&&_refreshAll(!0)},pi.update=function(o){return++Le.cache&&_updateAll(!0===o?2:0)},pi.clearScrollMemory=_clearScrollMemory,pi.maxScroll=function(o,c){return _maxScroll(o,c?Ne:qe)},pi.getScrollFunc=function(o,c){return _getScrollFunc(_getTarget(o),c?Ne:qe)},pi.getById=function(o){return ti[o]},pi.getAll=function(){return Zn.filter(function(o){return"ScrollSmoother"!==o.vars.id})},pi.isScrolling=function(){return!!In},pi.snapDirectional=_snapDirectional,pi.addEventListener=function(o,c){var d=ei[o]||(ei[o]=[]);~d.indexOf(c)||d.push(c)},pi.removeEventListener=function(o,c){var d=ei[o],u=d&&d.indexOf(c);u>=0&&d.splice(u,1)},pi.batch=function(o,c){var d,u=[],p={},m=c.interval||.016,g=c.batchMax||1e9,proxyCallback=function(o,c){var d=[],u=[],p=je.delayedCall(m,function(){c(d,u),d=[],u=[]}).pause();return function(o){d.length||p.restart(!0),d.push(o.trigger),u.push(o),g<=d.length&&p.progress(1)}};for(d in c)p[d]="on"===d.substr(0,2)&&_isFunction(c[d])&&"onRefreshInit"!==d?proxyCallback(0,c[d]):c[d];return _isFunction(g)&&(g=g(),_addListener(pi,"refresh",function(){return g=c.batchMax()})),Qe(o).forEach(function(o){var c={};for(d in p)c[d]=p[d];c.trigger=o,u.push(pi.create(c))}),u};var fi,_clampScrollAndGetDurationMultiplier=function(o,c,d,u){return c>u?o(u):c<0&&o(0),d>u?(u-c)/(d-c):d<0?c/(c-d):1},mi=function _allowNativePanning(o,c){!0===c?o.style.removeProperty("touch-action"):o.style.touchAction=!0===c?"auto":c?"pan-"+c+(Ve.isTouch?" pinch-zoom":""):"none",o===Ge&&_allowNativePanning($e,c)},gi={auto:1,scroll:1},_nestedScroll=function(o){var c,d=o.event,u=o.target,p=o.axis,m=(d.changedTouches?d.changedTouches[0]:d).target,g=m._gsap||je.core.getCache(m),v=An();if(!g._isScrollT||v-g._isScrollT>2e3){for(;m&&m!==$e&&(m.scrollHeight<=m.clientHeight&&m.scrollWidth<=m.clientWidth||!gi[(c=_getComputedStyle(m)).overflowY]&&!gi[c.overflowX]);)m=m.parentNode;g._isScroll=m&&m!==u&&!_isViewport(m)&&(gi[(c=_getComputedStyle(m)).overflowY]||gi[c.overflowX]),g._isScrollT=v}(g._isScroll||"x"===p)&&(d.stopPropagation(),d._gsapAllow=!0)},_inputObserver=function(o,c,d,u){return Ve.create({target:o,capture:!0,debounce:!1,lockAxis:!0,type:c,onWheel:u=u&&_nestedScroll,onPress:u,onDrag:u,onScroll:u,onEnable:function(){return d&&_addListener(Xe,Ve.eventTypes[0],_captureInputs,!1,!0)},onDisable:function(){return _removeListener(Xe,Ve.eventTypes[0],_captureInputs,!0)}})},vi=/(input|label|select|textarea)/i,_captureInputs=function(o){var c=vi.test(o.target.tagName);(c||fi)&&(o._gsapAllow=!0,fi=c)},_getScrollNormalizer=function(o){_isObject(o)||(o={}),o.preventDefault=o.isNormalizer=o.allowClicks=!0,o.type||(o.type="wheel,touch"),o.debounce=!!o.debounce,o.id=o.id||"normalizer";var c,d,u,p,m,g,v,y,_=o,b=_.normalizeScrollX,k=_.momentum,w=_.allowNestedScroll,S=_.onRelease,D=_getTarget(o.target)||Ge,x=je.core.globals().ScrollSmoother,E=x&&x.get(),C=vn&&(o.content&&_getTarget(o.content)||E&&!1!==o.content&&!E.smooth()&&E.content()),M=_getScrollFunc(D,qe),T=_getScrollFunc(D,Ne),A=1,P=(Ve.isTouch&&We.visualViewport?We.visualViewport.scale*We.visualViewport.width:We.outerWidth)/We.innerWidth,I=0,O=_isFunction(k)?function(){return k(c)}:function(){return k||2.8},B=_inputObserver(D,o.type,!0,w),resumeTouchMove=function(){return p=!1},F=_passThrough,L=_passThrough,updateClamps=function(){d=_maxScroll(D,qe),L=Ze(vn?1:0,d),b&&(F=Ze(0,_maxScroll(D,Ne))),u=ai},removeContentOffset=function(){C._gsap.y=_round(parseFloat(C._gsap.y)+M.offset)+"px",C.style.transform="matrix3d(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, "+parseFloat(C._gsap.y)+", 0, 1)",M.offset=M.cacheID=0},onResize=function(){updateClamps(),m.isActive()&&m.vars.scrollY>d&&(M()>d?m.progress(1)&&M(d):m.resetTo("scrollY",d))};return C&&je.set(C,{y:"+=0"}),o.ignoreCheck=function(o){return vn&&"touchmove"===o.type&&function(){if(p){requestAnimationFrame(resumeTouchMove);var o=_round(c.deltaY/2),d=L(M.v-o);if(C&&d!==M.v+M.offset){M.offset=d-M.v;var u=_round((parseFloat(C&&C._gsap.y)||0)-M.offset);C.style.transform="matrix3d(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, "+u+", 0, 1)",C._gsap.y=u+"px",M.cacheID=Le.cache,_updateAll()}return!0}M.offset&&removeContentOffset(),p=!0}()||A>1.05&&"touchstart"!==o.type||c.isGesturing||o.touches&&o.touches.length>1},o.onPress=function(){p=!1;var o=A;A=_round((We.visualViewport&&We.visualViewport.scale||1)/P),m.pause(),o!==A&&mi(D,A>1.01||!b&&"x"),g=T(),v=M(),updateClamps(),u=ai},o.onRelease=o.onGestureStart=function(o,c){if(M.offset&&removeContentOffset(),c){Le.cache++;var u,p,g=O();b&&(p=(u=T())+.05*g*-o.velocityX/.227,g*=_clampScrollAndGetDurationMultiplier(T,u,p,_maxScroll(D,Ne)),m.vars.scrollX=F(p)),p=(u=M())+.05*g*-o.velocityY/.227,g*=_clampScrollAndGetDurationMultiplier(M,u,p,_maxScroll(D,qe)),m.vars.scrollY=L(p),m.invalidate().duration(g).play(.01),(vn&&m.vars.scrollY>=d||u>=d-1)&&je.to({},{onUpdate:onResize,duration:g})}else y.restart(!0);S&&S(o)},o.onWheel=function(){m._ts&&m.pause(),An()-I>1e3&&(u=0,I=An())},o.onChange=function(o,c,d,p,m){if(ai!==u&&updateClamps(),c&&b&&T(F(p[2]===c?g+(o.startX-o.x):T()+c-p[1])),d){M.offset&&removeContentOffset();var y=m[2]===d,_=y?v+o.startY-o.y:M()+d-m[1],k=L(_);y&&_!==k&&(v+=k-_),M(k)}(d||c)&&_updateAll()},o.onEnable=function(){mi(D,!b&&"x"),pi.addEventListener("refresh",onResize),_addListener(We,"resize",onResize),M.smooth&&(M.target.style.scrollBehavior="auto",M.smooth=T.smooth=!1),B.enable()},o.onDisable=function(){mi(D,!0),_removeListener(We,"resize",onResize),pi.removeEventListener("refresh",onResize),B.kill()},o.lockAxis=!1!==o.lockAxis,(c=new Ve(o)).iOS=vn,vn&&!M()&&M(1),vn&&je.ticker.add(_passThrough),y=c._dc,m=je.to(c,{ease:"power4",paused:!0,inherit:!1,scrollX:b?"+=0.1":"+=0",scrollY:"+=0.1",modifiers:{scrollY:_interruptionTracker(M,M(),function(){return m.pause()})},onUpdate:_updateAll,onComplete:y.vars.onComplete}),c};pi.sort=function(o){if(_isFunction(o))return Zn.sort(o);var c=We.pageYOffset||0;return pi.getAll().forEach(function(o){return o._sortY=o.trigger?c+o.trigger.getBoundingClientRect().top:o.start+We.innerHe
35ight}),Zn.sort(o||function(o,c){return-1e6*(o.vars.refreshPriority||0)+(o.vars.containerAnimation?1e6:o._sortY)-((c.vars.containerAnimation?1e6:c._sortY)+-1e6*(c.vars.refreshPriority||0))})},pi.observe=function(o){return new Ve(o)},pi.normalizeScroll=function(o){if(void 0===o)return pn;if(!0===o&&pn)return pn.enable();if(!1===o)return pn&&pn.kill(),void(pn=o);var c=o instanceof Ve?o:_getScrollNormalizer(o);return pn&&pn.target===c.target&&pn.kill(),_isViewport(c.target)&&(pn=c),c},pi.core={_getVelocityProp:_getVelocityProp,_inputObserver:_inputObserver,_scrollers:Le,_proxies:Re,bridge:{ss:function(){In||_dispatch("scrollStart"),In=An()},ref:function(){return nn}}},_getGSAP()&&je.registerPlugin(pi);var yi={};function t(o,c){(null==c||c>o.length)&&(c=o.length);for(var d=0,u=Array(c);d<c;d++)u[d]=o[d];return u}function e(o,c){for(var d=0;d<c.length;d++){var u=c[d];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(o,l(u.key),u)}}function n(o,c,d){return(c=l(c))in o?Object.defineProperty(o,c,{value:d,enumerable:!0,configurable:!0,writable:!0}):o[c]=d,o}function i(o,c){var d=Object.keys(o);if(Object.getOwnPropertySymbols){var u=Object.getOwnPropertySymbols(o);c&&(u=u.filter(function(c){return Object.getOwnPropertyDescriptor(o,c).enumerable})),d.push.apply(d,u)}return d}function a(o){for(var c=1;c<arguments.length;c++){var d=null!=arguments[c]?arguments[c]:{};c%2?i(Object(d),!0).forEach(function(c){n(o,c,d[c])}):Object.getOwnPropertyDescriptors?Object.defineProperties(o,Object.getOwnPropertyDescriptors(d)):i(Object(d)).forEach(function(c){Object.defineProperty(o,c,Object.getOwnPropertyDescriptor(d,c))})}return o}function s(o,c){return function(o){if(Array.isArray(o))return o}(o)||function(o,c){var d=null==o?null:"undefined"!=typeof Symbol&&o[Symbol.iterator]||o["@@iterator"];if(null!=d){var u,p,m,g,v=[],y=!0,_=!1;try{if(m=(d=d.call(o)).next,0===c){if(Object(d)!==d)return;y=!1}else for(;!(y=(u=m.call(d)).done)&&(v.push(u.value),v.length!==c);y=!0);}catch(b){_=!0,p=b}finally{try{if(!y&&null!=d.return&&(g=d.return(),Object(g)!==g))return}finally{if(_)throw p}}return v}}(o,c)||r(o,c)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function l(o){var c=function(o){if("object"!=typeof o||!o)return o;var c=o[Symbol.toPrimitive];if(void 0!==c){var d=c.call(o,"string");if("object"!=typeof d)return d;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(o)}(o);return"symbol"==typeof c?c:c+""}function r(o,c){if(o){if("string"==typeof o)return t(o,c);var d={}.toString.call(o).slice(8,-1);return"Object"===d&&o.constructor&&(d=o.constructor.name),"Map"===d||"Set"===d?Array.from(o):"Arguments"===d||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(d)?t(o,c):void 0}}var _i=function(){function t2(o){var c=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(function(o,c){if(!(o instanceof c))throw new TypeError("Cannot call a class as a function")}(this,t2),this.element="string"==typeof o?document.querySelector(o):o,!this.element)throw new Error("AccessibleCalendar: Element not found. Please provide a valid selector or DOM element.");this.options=this.mergeOptions(c),this.validateOptions(),this.input=this.element,this.modal=null,this.closeBtn=null,this.applyBtn=null,this.amendBtn=null,this.monthsContainer=null,this.hiddenFields={start:null,end:null,checkin:null,checkout:null},this.selectedStart=null,this.selectedEnd=null,this.tempStart=null,this.tempEnd=null,this.tempCheckin=null,this.tempCheckout=null,this.currentDate=new Date,this.isSelecting=!1,this.isOpen=!1,this.focusedDate=null,this.focusableElements=[],this.instanceId=this.generateId(),this.boundHandlers={document:{},window:{},elements:[]},this.isRangePicker=this.options.isRangePicker,this.calendarCount=this.getCalendarCount(),this.splitDatePicker=this.options.splitDatePicker,this.splitMode=this.options.splitMode,this.displayMode=this.options.displayMode,this.calendarStyle=this.options.calendarStyle||"standard",this.minDate=this.parseDate(this.options.minDate),this.maxDate=this.parseDate(this.options.maxDate),this.blockedDates=this.options.blockedDates||[],this.allowedDates=this.options.allowedDates||[],this.init(),this.setupHiddenFields()}return o=t2,c=[{key:"mergeOptions",value:function(o){return Object.assign({},t2.defaults,o)}},{key:"validateOptions",value:function(){("number"!=typeof this.options.minStay||this.options.minStay<0)&&(this.log("warn","AccessibleCalendar: minStay must be a non-negative number. Using default (1)."),this.options.minStay=1),("number"!=typeof this.options.maxStay||this.options.maxStay<this.options.minStay)&&(this.log("warn","AccessibleCalendar: maxStay must be a number >= minStay. Using default (365)."),this.options.maxStay=Math.max(365,this.options.minStay));
35var o=this.parseDate(this.options.minDate),c=this.parseDate(this.options.maxDate);o&&c&&o>c&&this.log("warn","AccessibleCalendar: minDate is after maxDate â all dates will be invalid. Check your constraints.")}},{key:"generateId",value:function(){return"calendar-".concat(Math.random().toString(36).slice(2,11))}},{key:"getCalendarCount",value:function(){return"auto"===this.options.calendarCount?window.innerWidth>=768?2:1:"dual"===this.options.calendarCount?2:1}},{key:"parseDate",value:function(o){if(!o)return null;try{var c=o instanceof Date?o:new Date(o);return isNaN(c.getTime())?(this.log("warn","Invalid date provided: ".concat(o,". Using null instead.")),null):c}catch(d){return this.log("warn","Error parsing date: ".concat(o),d),null}}},{key:"log",value:function(o){if(("undefined"==typeof process||!yi)&&"undefined"!=typeof console&&console[o]){for(var c,d=arguments.length,u=new Array(d>1?d-1:0),p=1;p<d;p++)u[p-1]=arguments[p];(c=console)[o].apply(c,u)}}},{key:"init",value:function(){this.splitDatePicker||(this.input.setAttribute("role","button"),this.input.setAttribute("tabindex","0"),this.input.setAttribute("aria-haspopup","dialog"),this.input.setAttribute("aria-expanded","false")),this.splitDatePicker?this.createSplitPicker():this.createModal(),this.bindEvents(),this.monthsContainer&&this.generateMonths(),this.updateDisplay(),this.calculateContrastColors(),this.triggerEvent("calendarInit",{instance:this})}},{key:"getLuminance",value:function(o){try{var c=document.createElement("div");c.style.color=o,c.style.position="absolute",c.style.visibility="hidden",document.body.appendChild(c);var d=window.getComputedStyle(c).color;document.body.removeChild(c);var u=d.match(/rgb\((\d+),\s*(\d+),\s*(\d+)\)/);if(!u)return this.log("warn","AccessibleCalendar: Could not parse color:",o),.5;var p=s([parseInt(u[1],10),parseInt(u[2],10),parseInt(u[3],10)].map(function(o){return(o/=255)<=.03928?o/12.92:Math.pow((o+.055)/1.055,2.4)}),3);return.2126*p[0]+.7152*p[1]+.0722*p[2]}catch(m){return this.log("warn","AccessibleCalendar: Could not calculate luminance for color:",o,m),.5}}},{key:"getContrastColor",value:function(o){return this.getLuminance(o)<.5?"#ffffff":"#000000"}},{key:"getContrastTargets",value:function(){var o,c=[];return this.modal&&c.push(this.modal),this.checkinModal&&c.push(this.checkinModal),this.checkoutModal&&c.push(this.checkoutModal),function(o){if(Array.isArray(o))return t(o)}(o=new Set(c))||function(o){if("undefined"!=typeof Symbol&&null!=o[Symbol.iterator]||null!=o["@@iterator"])return Array.from(o)}(o)||r(o)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}},{key:"calculateContrastColors",value:function(){var o=document.documentElement,c=getComputedStyle(o).getPropertyValue("--ac-primary").trim()||"#2563eb",d=getComputedStyle(o).getPropertyValue("--ac-primary-dark").trim()||"#1d4ed8",u=getComputedStyle(o).getPropertyValue("--ac-btn-secondary-bg").trim()||"#ffffff",p=this.getContrastColor(c),m=this.getContrastColor(c),g=this.getContrastColor(d),v=this.getContrastColor(u),y=this.getContrastTargets(),_=y.length>0?y:[o],h=function(o,c){_.forEach(function(d){return d.style.setProperty(o,c)})};h("--ac-selected-text",p),h("--ac-button-text",m),h("--ac-button-hover-text",g),h("--ac-btn-secondary-hover-text",v),h("--ac-range-text",d),h("--ac-hover-text",d),h("--ac-today-text",d);try{var b=document.createElement("div");b.style.color=c,document.body.appendChild(b);var k=window.getComputedStyle(b).color;document.body.removeChild(b);var w=k.match(/rgb\((\d+),\s*(\d+),\s*(\d+)\)/);if(w){var S=s(w,4),D=S[1],x=S[2],E=S[3];h("--ac-primary-alpha","rgba(".concat(D,", ").concat(x,", ").concat(E,", 0.35)")),h("--ac-primary-alpha-light","rgba(".concat(D,", ").concat(x,", ").concat(E,", 0.15)"))}}catch(C){}}},{key:"setupHiddenFields",value:function(){var o=this;if(this.options.autoCreateHiddenField){var e2=function(c){return"".concat(o.instanceId,"-").concat(c)};if(this.splitDatePicker){var c=this.options.dateInName||e2("check_in"),d=this.options.dateOutName||e2("check_out");
35this.hiddenFields.checkin=this.createHiddenField(c),this.hiddenFields.checkout=this.createHiddenField(d)}else{var u=this.options.dateInName||e2("date_in"),p=this.options.dateOutName||e2("date_out");this.hiddenFields.start=this.createHiddenField(u),this.isRangePicker&&(this.hiddenFields.end=this.createHiddenField(p))}}}},{key:"createHiddenField",value:function(o){var c=this.input.parentNode.querySelector('input[name="'.concat(o,'"][data-calendar-instance="').concat(this.instanceId,'"]'));if(!c&&(c=document.querySelector('input[name="'.concat(o,'"]')))){var d=c.getAttribute("data-calendar-instance");d&&d===this.instanceId||(c=null)}if(!c){(c=document.createElement("input")).type="hidden",c.name=o,c.id="".concat(this.instanceId,"-").concat(o),c.setAttribute("data-calendar-instance",this.instanceId);var u=this.input.closest("form");u?u.appendChild(c):this.input.parentNode?this.input.parentNode.insertBefore(c,this.input.nextSibling):(this.log("warn","AccessibleCalendar: Could not find form or parent node for hidden field. Appending to body."),document.body.appendChild(c))}return c}},{key:"createModal",value:function(){var o="".concat(this.instanceId,"-modal"),c=this.options.popupTitle||"Choose your dates",d="inline"===this.displayMode,u="compact"===this.calendarStyle,p="calendar-modal";d&&(p+=" calendar-modal-inline"),u&&(p+=" calendar-modal-compact");var m,g=d?"false":"true";if(m=u?'\n <div class="'.concat(p,'" id="').concat(o,'" role="dialog" aria-modal="').concat(g,'" aria-labelledby="').concat(this.instanceId,'-header-title">\n <div class="calendar-content calendar-content-compact">\n <div class="calendar-header-compact">\n <h2 class="calendar-header-title-compact" id="').concat(this.instanceId,'-header-title">').concat(c,'</h2>\n <button class="calendar-close-btn-compact" id="').concat(this.instanceId,'-close" aria-label="Close calendar" type="button">â</button>\n </div>\n <div class="calendar-body calendar-body-compact">\n <div class="calendar-months" id="').concat(this.instanceId,'-months"></div>\n <div id="').concat(this.instanceId,'-keyboard-instructions" class="sr-only">\n Use arrow keys to navigate dates. Press Enter or Space to select dates for your range.\n Press Home to go to first day of month, End for last day.\n Press Page Up/Down to navigate between months.\n Press Escape to clear selection or close calendar.\n Press Backspace or Delete to clear current selection.\n Press Ctrl+A to apply selection, Ctrl+R to reset selection.\n Range preview will show as you navigate after selecting the first date.\n </div>\n </div>\n <div class="calendar-footer-compact">\n <div class="calendar-footer-actions">\n <button type="button" class="calendar-amend-btn" id="').concat(this.instanceId,'-amend" style="display: none" aria-label="Amend selected dates">Amend Dates</button>\n <button type="button" class="calendar-apply-btn" id="').concat(this.instanceId,'-apply" disabled aria-label="Apply selected dates">Apply Dates</button>\n </div>\n <div class="calendar-validation-message" id="').concat(this.instanceId,'-validation" role="alert" aria-live="polite" style="display: none;"></div>\n </div>\n <div id="').concat(this.instanceId,'-result" class="sr-only" aria-live="polite" aria-atomic="true"></div>\n </div>\n </div>\n '):d?'\n <div class="'.concat(p,'" id="').concat(o,'" role="dialog" aria-modal="').concat(g,'" aria-labelledby="').concat(this.instanceId,'-header-title">\n <div class="calendar-content">\n\n <div class="calendar-body">\n <div class="calendar-months" id="').concat(this.instanceId,'-months"></div>\n <div id="').concat(this.instanceId,'-keyboard-instructions" class="sr-only">\n Use arrow keys to navigate dates. Press Enter or Space to select dates for your range.\n Press Home to go to first day of month, End for last day.\n Press Page Up/Down to navigate between months.\n Press Escape to clear selection or close calendar.\n Press Backspace or Delete to clear current selection.\n Press Ctrl+A to apply selection, Ctrl+R to reset selection.\n Range preview will show as you navigate after selecting the first date.\n </div>\n </div>\n <div class="calendar-footer">\n <div class="calendar-footer-actions">\n <button type="button" class="calendar-amend-btn" id="').concat(this.instanceId,'-amend" style="display: none" aria-label="Amend selected dates">Amend Dates</button>\n <button type="button" class="calendar-apply-btn" id="').concat(this.instanceId,'-apply" disabled aria-label="Apply selected dates">Apply Dates</button>\n </div>\n <div class="calendar-validation-message" id="').concat(this.instanceId,'-validation" role="alert" aria-live="polite" style="display: none;"></div>\n </div>\n <div id="').concat(this.instanceId,'-result" class="sr-only" aria-l
35ive="polite" aria-atomic="true"></div>\n </div>\n </div>\n '):'\n <div class="'.concat(p,'" id="').concat(o,'" role="dialog" aria-modal="').concat(g,'" aria-labelledby="').concat(this.instanceId,'-header-title">\n <div class="calendar-content">\n <div class="calendar-header-bar">\n <h2 class="calendar-header-title" id="').concat(this.instanceId,'-header-title">').concat(c,'</h2>\n <button class="calendar-close-btn" id="').concat(this.instanceId,'-close" aria-label="Close calendar" type="button">â</button>\n </div>\n <div class="calendar-body">\n <div class="calendar-months" id="').concat(this.instanceId,'-months"></div>\n <div id="').concat(this.instanceId,'-keyboard-instructions" class="sr-only">\n Use arrow keys to navigate dates. Press Enter or Space to select dates for your range.\n Press Home to go to first day of month, End for last day.\n Press Page Up/Down to navigate between months.\n Press Escape to clear selection or close calendar.\n Press Backspace or Delete to clear current selection.\n Press Ctrl+A to apply selection, Ctrl+R to reset selection.\n Range preview will show as you navigate after selecting the first date.\n </div>\n </div>\n <div class="calendar-footer">\n <div class="calendar-footer-actions">\n <button type="button" class="calendar-amend-btn" id="').concat(this.instanceId,'-amend" style="display: none" aria-label="Amend selected dates">Amend Dates</button>\n <button type="button" class="calendar-apply-btn" id="').concat(this.instanceId,'-apply" disabled aria-label="Apply selected dates">Apply Dates</button>\n </div>\n <div class="calendar-validation-message" id="').concat(this.instanceId,'-validation" role="alert" aria-live="polite" style="display: none;"></div>\n </div>\n <div id="').concat(this.instanceId,'-result" class="sr-only" aria-live="polite" aria-atomic="true"></div>\n </div>\n </div>\n '),d){if(!this.input.parentElement.classList.contains("calendar-input-wrapper")){var v=document.createElement("div");v.className="calendar-input-wrapper",v.style.position="relative",v.style.display="block",v.style.width="100%",v.style.maxWidth="100%",this.input.parentNode.insertBefore(v,this.input),v.appendChild(this.input)}this.inputWrapper=this.input.parentElement}this.input.insertAdjacentHTML("afterend",m),this.modal=document.getElementById(o),this.closeBtn=document.getElementById("".concat(this.instanceId,"-close")),this.applyBtn=document.getElementById("".concat(this.instanceId,"-apply")),this.amendBtn=document.getElementById("".concat(this.instanceId,"-amend")),this.monthsContainer=document.getElementById("".concat(this.instanceId,"-months")),this.validationMessage=document.getElementById("".concat(this.instanceId,"-validation")),this.resultDisplay=document.getElementById("".concat(this.instanceId,"-result"));var y=this.options.buttonAriaControls||o;this.input.setAttribute("aria-controls",y);var _=this.options.buttonAriaLabel||c;if(this.input.setAttribute("aria-label",_),d){this.modal.style.display="none",this.modal.style.position="absolute",this.modal.style.zIndex="1000",this.modal.style.top="100%",this.modal.style.left="0",this.modal.style.marginTop="8px";var b=window.innerWidth<=768;this.modal.style.width="auto",this.modal.style.minWidth=b?"100%":"600px",this.modal.style.maxWidth="none"}}},{key:"createSplitPicker",value:function(){var o=this.options.buttonPlaceholderCheckin||"Choose check-in date",c=this.options.buttonPlaceholderCheckout||"Choose check-out date",d=this.options.buttonAriaLabel||o,u=this.options.buttonAriaLabel||c,p=this.options.labelInputDate||"Check-in",m=this.options.labelOutputDate||"Check-out";if("inline"===this.displayMode){if(!this.input.parentElement.classList.contains("calendar-input-wrapper")){var g=document.createElement("div");
35g.className="calendar-input-wrapper",g.style.position="relative",g.style.display="block",g.style.width="100%",g.style.maxWidth="100%",this.input.parentNode.insertBefore(g,this.input),g.appendChild(this.input)}this.inputWrapper=this.input.parentElement}var v='\n <div class="split-date-picker" id="'.concat(this.instanceId,'-split-picker">\n <div class="split-inputs">\n <div class="split-input-group">\n <label for="').concat(this.instanceId,'-checkin" class="split-label">').concat(p,'</label>\n <div class="calendar-input split-input" id="').concat(this.instanceId,'-checkin" role="button" tabindex="0" aria-haspopup="dialog" aria-expanded="false" aria-label="').concat(d,'">\n ').concat(o,'\n </div>\n </div>\n <div class="split-input-group">\n <label for="').concat(this.instanceId,'-checkout" class="split-label">').concat(m,'</label>\n <div class="calendar-input split-input" id="').concat(this.instanceId,'-checkout" role="button" tabindex="0" aria-haspopup="dialog" aria-expanded="false" aria-label="').concat(u,'">\n ').concat(c,"\n </div>\n </div>\n </div>\n </div>\n ");if(this.input&&this.input.parentNode?(this.input.outerHTML=v,this.splitPicker=document.getElementById("".concat(this.instanceId,"-split-picker")),this.checkinInput=document.getElementById("".concat(this.instanceId,"-checkin")),this.checkoutInput=document.getElementById("".concat(this.instanceId,"-checkout"))):(document.body.insertAdjacentHTML("beforeend",v),this.splitPicker=document.getElementById("".concat(this.instanceId,"-split-picker")),this.checkinInput=document.getElementById("".concat(this.instanceId,"-checkin")),this.checkoutInput=document.getElementById("".concat(this.instanceId,"-checkout"))),this.input=this.checkinInput,"inline"===this.displayMode&&this.splitPicker&&(this.splitPicker.style.position="relative",this.inputWrapper=this.splitPicker),"joint"===this.splitMode){this.createModal();var y="".concat(this.instanceId,"-modal");this.checkinInput.setAttribute("aria-controls",y),this.checkoutInput.setAttribute("aria-controls",y),"inline"===this.displayMode&&this.modal&&(this.modal.style.position="absolute",this.modal.style.top="100%",this.modal.style.left="0",this.modal.style.marginTop="4px",this.modal.style.width="100%",this.modal.style.minWidth="300px")}else{this.createIndividualModals();var _="".concat(this.instanceId,"-checkin-modal"),b="".concat(this.instanceId,"-checkout-modal");this.checkinInput.setAttribute("aria-controls",_),this.checkoutInput.setAttribute("aria-controls",b)}}},{key:"createIndividualModals",value:function(){var o=this.options.popupTitle||"Choose your dates",c=o.includes("check-in")||o.includes("check in")?o:"Choose check-in date",d=o.includes("check-out")||o.includes("check out")?o:"Choose check-out date",u='\n <div class="calendar-modal" id="'.concat(this.instanceId,'-checkin-modal" role="dialog" aria-modal="true" aria-labelledby="').concat(this.instanceId,'-checkin-header-title">\n <div class="calendar-content">\n <div class="calendar-header-bar">\n <h2 class="calendar-header-title" id="').concat(this.instanceId,'-checkin-header-title">').concat(c,'</h2>\n <button class="calendar-close-btn" id="').concat(this.instanceId,'-checkin-close" aria-label="Close calendar" type="button">â</button>\n </div>\n <div class="calendar-body">\n <div class="calendar-months" id="').concat(this.instanceId,'-checkin-months"></div>\n </div>\n <div class="calendar-footer">\n <div class="calendar-footer-actions">\n <button type="button" class="calendar-apply-btn" id="').concat(this.instanceId,'-checkin-apply" disabled aria-label="Apply check-in date">Apply Date</button>\n </div>\n <div class="calendar-validation-message" id="').concat(this.instanceId,'-checkin-validation" role="alert" aria-live="polite" style="display: none;"></div>\n </div>\n <div id="').concat(this.instanceId,'-checkin-result" class="sr-only" aria-l
35ive="polite" aria-atomic="true"></div>\n </div>\n </div>\n '),p='\n <div class="calendar-modal" id="'.concat(this.instanceId,'-checkout-modal" role="dialog" aria-modal="true" aria-labelledby="').concat(this.instanceId,'-checkout-header-title">\n <div class="calendar-content">\n <div class="calendar-header-bar">\n <h2 class="calendar-header-title" id="').concat(this.instanceId,'-checkout-header-title">').concat(d,'</h2>\n <button class="calendar-close-btn" id="').concat(this.instanceId,'-checkout-close" aria-label="Close calendar" type="button">â</button>\n </div>\n <div class="calendar-body">\n <div class="calendar-months" id="').concat(this.instanceId,'-checkout-months"></div>\n </div>\n <div class="calendar-footer">\n <div class="calendar-footer-actions">\n <button type="button" class="calendar-apply-btn" id="').concat(this.instanceId,'-checkout-apply" disabled aria-label="Apply check-out date">Apply Date</button>\n </div>\n <div class="calendar-validation-message" id="').concat(this.instanceId,'-checkout-validation" role="alert" aria-live="polite" style="display: none;"></div>\n </div>\n <div id="').concat(this.instanceId,'-checkout-result" class="sr-only" aria-live="polite" aria-atomic="true"></div>\n </div>\n </div>\n ');document.body.insertAdjacentHTML("beforeend",u),document.body.insertAdjacentHTML("beforeend",p),this.checkinModal=document.getElementById("".concat(this.instanceId,"-checkin-modal")),this.checkoutModal=document.getElementById("".concat(this.instanceId,"-checkout-modal")),this.checkinCloseBtn=document.getElementById("".concat(this.instanceId,"-checkin-close")),this.checkoutCloseBtn=document.getElementById("".concat(this.instanceId,"-checkout-close")),this.checkinApplyBtn=document.getElementById("".concat(this.instanceId,"-checkin-apply")),this.checkoutApplyBtn=document.getElementById("".concat(this.instanceId,"-checkout-apply")),this.checkinMonthsContainer=document.getElementById("".concat(this.instanceId,"-checkin-months")),this.checkoutMonthsContainer=document.getElementById("".concat(this.instanceId,"-checkout-months")),this.checkinValidationMessage=document.getElementById("".concat(this.instanceId,"-checkin-validation")),this.checkoutValidationMessage=document.getElementById("".concat(this.instanceId,"-checkout-validation")),this.checkinResultDisplay=document.getElementById("".concat(this.instanceId,"-checkin-result")),this.checkoutResultDisplay=document.getElementById("".concat(this.instanceId,"-checkout-result"))}},{key:"bindEvents",value:function(){this.splitDatePicker?this.bindSplitPickerEvents():this.bindStandardEvents()}},{key:"bindSplitPickerEvents",value:function(){var o=this;this.checkinInput.addEventListener("click",function(){return o.openCheckin()}),this.checkinInput.addEventListener("keydown",function(c){"Enter"!==c.key&&" "!==c.key||(c.preventDefault(),o.openCheckin())}),this.checkoutInput.addEventListener("click",function(){return o.openCheckout()}),this.checkoutInput.addEventListener("keydown",function(c){"Enter"!==c.key&&" "!==c.key||(c.preventDefault(),o.openCheckout())}),"joint"===this.splitMode?(this.closeBtn&&this.closeBtn.addEventListener("click",function(){return o.close()}),"inline"===this.displayMode?(this.boundHandlers.document.clickOutside=function(c){var d,u;!o.isOpen||o.modal.contains(c.target)||o.input.contains(c.target)||null!==(d=o.checkinInput)&&void 0!==d&&d.contains(c.target)||null!==(u=o.checkoutInput)&&void 0!==u&&u.contains(c.target)||o.close()},document.addEventListener("click",this.boundHandlers.document.clickOutside)):this.modal.addEventListener("click",function(c){c.target===o.modal&&o.close()}),this.applyBtn.addEventListener("click",function(c){c.stopPropagation(),o.applySelection()}),this.amendBtn&&this.amendBtn.addEventListener("click",function(c){c.stopPropagation(),o.amendSelection()})):(this.checkinCloseBtn.addEventListener("click",function(){return o.closeCheckin()}),this.checkoutCloseBtn.addEventListener("click",function(){return o.closeCheckout()}),this.checkinModal.addEventListener("click",function(c){c.target===o.checkinModal&&o.closeCheckin()}),this.checkoutModal.addEventListener("click",function(c){c.target===o.checkoutModal&&o.closeCheckout()}),this.checkinApplyBtn.addEventListener("click",function(c){c.stopPropagation(),o.applyCheckin()}),this.checkoutApplyBtn.addEventListener("click",function(c){c.stopPropagation(),o.applyCheckout()}),this.checkinApplyBtn.addEventListener("keydown",function(c){"Enter"!==c.key&&" "!==c.key||(c.preventDefault(),o.applyCheckin())}),this.checkoutApplyBtn.addEventListener("keydown",function(c){"Enter"!==c.key&&" "!==c.key||(c.preventDefault(),o.applyCheckout())}))}},{key:"bindStandardEvents",value:function(){var o=this;this.input.addEventListener("click",function(){return o.open()}),this.input.addEventListener("keydown",function(c){"Enter"!==c.key&&" "!==c.key||(c.preventDefault(),o.open())}),this.closeBtn&&this.closeBtn.addEventListener("click",function(){return o.close()}),"inline"===this.displayMode?(this.boundHandlers.document.clickOutside=function(c){!o.isOpen||o.modal.contains(c.target)||o.input.contains(c.target)||o.close()},document.addEventListener("click",this.boundHandlers.document.clickOutside)):this.modal.addEventListener("click",function(c){c.target===o.modal&&o.close()}),this.applyBtn.addEventListener("click",function(c){c.stopPropagation(),o.applySelection()}),this.amendBtn.addEventListener("click",function(c){c.stopPropagation(),o.amendSelection()}),this.applyBtn.addEventListener("keydown",function(c){"Enter"!==c.key&&" "!==c.key||(c.preventDefault(),o.applySelection())}),this.amendBtn.addEventListener("keydown",function(c){"Enter"!==c.key&&" "!==c.key||(c.preventDefault(),o.amendSelection())});var e2=function(c){if("Escape"===c.key&&o.isOpen&&o.close(),o.isOpen&&"Tab"===c.key&&o.handleTabKey(c),o.isOpen)switch(c.key){case"a":case"A":(c.ctrlKey||c.metaKey)&&(c.preventDefault(),o.tempStart&&o.tempEnd&&o.applySelection());break;case"r":case"R":(c.ctrlKey||c.metaKey)&&(c.preventDefault(),(o.tempStart||o.tempEnd)&&o.amendSelection())}};document.addEventListener("keydown",e2),this.boundHandlers.document.keydown=e2;var n3=function(){o.isOpen&&(o.generateMonths(),"inline"===o.displayMode&&requestAnimationFrame(function(){o.positionInlineCalendar(
35)})),"inline"===o.displayMode&&o.inputWrapper&&(o.inputWrapper.style.width="100%",o.inputWrapper.style.maxWidth="100%")};window.addEventListener("resize",n3),this.boundHandlers.window.resize=n3}},{key:"triggerEvent",value:function(o){var c=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},d=new CustomEvent(o,{detail:a(a({},c),{},{instance:this}),bubbles:!0});this.splitDatePicker?"calendarCheckinSelected"===o&&this.checkinInput?(this.checkinInput.dispatchEvent(d),this.splitPicker&&this.splitPicker.dispatchEvent(d),document.dispatchEvent(d)):"calendarCheckoutSelected"===o&&this.checkoutInput?(this.checkoutInput.dispatchEvent(d),this.splitPicker&&this.splitPicker.dispatchEvent(d),document.dispatchEvent(d)):(this.checkinInput&&this.checkinInput.dispatchEvent(d),this.checkoutInput&&this.checkoutInput.dispatchEvent(d),this.splitPicker&&this.splitPicker.dispatchEvent(d)):this.input.dispatchEvent(d);var u="on".concat(o.charAt(0).toUpperCase()).concat(o.slice(1));this.options[u]&&"function"==typeof this.options[u]&&this.options[u](c)}},{key:"isDateBlocked",value:function(o){var c=this.formatDateString(o);return this.blockedDates.includes(c)}},{key:"isDateAllowed",value:function(o){if(0===this.allowedDates.length)return!0;var c=this.formatDateString(o);return this.allowedDates.includes(c)}},{key:"isDateValid",value:function(o){var c=new Date(o);c.setHours(0,0,0,0);var d=new Date;if(d.setHours(0,0,0,0),this.minDate){var u=new Date(this.minDate);if(u.setHours(0,0,0,0),c<u)return!1}else if(!this.options.allowPastDates&&c<d)return!1;if(this.maxDate){var p=new Date(this.maxDate);if(p.setHours(0,0,0,0),c>p)return!1}if(this.isDateBlocked(c))return!1;if(!this.isDateAllowed(c))return!1;if(this.splitDatePicker&&"checkout"===this.currentInput){var m=this.selectedStart||this.tempCheckin;if(m){var g=new Date(m);if(g.setHours(0,0,0,0),c<=g)return!1}}return!this.options.customValidation||"function"!=typeof this.options.customValidation||this.options.customValidation(c)}},{key:"validateSelection",value:function(o,c){if(!o||!c)return this.showValidationMessage("Please select both start and end dates."),!1;var d=new Date(o);d.setHours(0,0,0,0);var u=new Date(c);u.setHours(0,0,0,0);var p=d,m=u;u<d&&(p=u,m=d);var g=Math.ceil((m-p)/864e5);if(g<this.options.minStay){var v="Minimum ".concat(this.options.minStay," ").concat(1===this.options.minStay?"night":"nights"," stay required. You selected ").concat(g," ").concat(1===g?"night":"nights",".");return this.showValidationMessage(v),this.triggerEvent("validationError",{type:"minStay",message:v,duration:g,required:this.options.minStay}),!1}if(g>this.options.maxStay){var y="Maximum ".concat(this.options.maxStay," ").concat(1===this.options.maxStay?"night":"nights"," stay allowed. You selected ").concat(g," ").concat(1===g?"night":"nights",".");return this.showValidationMessage(y),this.triggerEvent("validationError",{type:"maxStay",message:y,duration:g,required:this.options.maxStay}),!1}return this.hideValidationMessage(),!0}},{key:"showValidationMessage",value:function(o){var c=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,d=this.validationMessage;"checkin"===c&&this.checkinValidationMessage?d=this.checkinValidationMessage:"checkout"===c&&this.checkoutValidationMessage&&(d=this.checkoutValidationMessage),d&&(d.textContent="",d.textContent=o,d.style.display="block",requestAnimationFrame(function(){d.setAttribute("aria-live","assertive")}))}},{key:"hideValidationMessage",value:function(){var o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,c=this.validationMessage;"checkin"===o&&this.checkinValidationMessage?c=this.checkinValidationMessage:"checkout"===o&&this.checkoutValidationMessage&&(c=this.checkoutValidationMessage),c&&(c.setAttribute("aria-live","off"),c.textContent="",c.style.display="none",requestAnimationFrame(function(){c.setAttribute("aria-live","polite")}))}},{key:"positionInlineCalendar",value:function(){if(this.modal&&this.input){if("inline"===this.displayMode&&this.inputWrapper){if(window.innerWidth<=768)this.modal.style.minWidth="100%";else{var o=this.getCalendarCount();this.modal.style.minWidth=2===o?"600px":"300px"}this.modal.style.width="auto",this.modal.style.maxWidth="none",this.modal.style.left="0",this.modal.style.right="auto"}var c=this.input.getBoundingClientRect(),d=this.modal.getBoundingClientRect(),u=window.innerHeight,p=window.innerWidth;this.modal.style.top="100%",this.modal.style.left="0",this.modal.style.right="auto",this.modal.style.bottom="auto",this.modal.style.marginTop="8px",this.modal.style.marginBottom="0";var m=u-c.bottom-8,g=c.top-8;if(m<d.height&&g>m&&(this.modal.style.top="auto",this.modal.style.bottom="100%",this.modal.style.marginTop="0",this.modal.style.marginBottom="8px"),"inline"===this.displayMode){var v=d.left,y=d.right;v<0?this.modal.style.left="0":y>p&&(this.modal.style.right="0",this.modal.style.left="auto")}}}},{key:"open",value:function(){var o=this;if(!this.options.onBeforeOpen||!1!==this.options.onBeforeOpen())if(this.modal){this.isOpen=!0,this.modal.classList.add("open"),this.input.setAttribute("aria-expanded","true"),"inline"===this.displayMode?(this.modal.style.display="block",requestAnimationFrame(function(){o.positionInlineCalendar(
35)})):document.body.classList.add("calendar-open"),this.splitDatePicker&&"checkout"===this.currentInput&&this.selectedStart,this.tempStart=this.selectedStart,this.tempEnd=this.selectedEnd,this.generateMonths(),this.updateFocusableElements(),this.updateApplyButton(),requestAnimationFrame(function(){if(o.modal){var c=null;if(o.tempStart&&(c=o.modal.querySelector('[data-date="'.concat(o.formatDateString(o.tempStart),'"]'))),!c){var d=new Date;d.setHours(0,0,0,0),c=o.modal.querySelector('[data-date="'.concat(o.formatDateString(d),'"]'))}c||(c=o.options.allowPastDates?o.modal.querySelector('.date-cell:not(.other-month):not([aria-disabled="true"])'):o.modal.querySelector(".date-cell:not(.other-month):not(.past-date)")),c?(c.focus(),o.focusedDate=o.tempStart||new Date(c.getAttribute("data-date"))):o.focusableElements.length>0&&o.focusableElements[0].focus()}}),this.triggerEvent("calendarOpen");var c=!1,n3=function(){c||(c=!0,o.options.onAfterOpen&&o.options.onAfterOpen())};if(this.modal){var d=this.modal.querySelector(".calendar-content");if(d){var u,s2=function(o){o.target!==d||"opacity"!==o.propertyName&&"transform"!==o.propertyName||(clearTimeout(u),d.removeEventListener("transitionend",s2),n3())};d.addEventListener("transitionend",s2,{once:!0}),u=setTimeout(function(){d.removeEventListener("transitionend",s2),n3()},250)}else n3()}else n3()}else this.log("warn","Calendar modal not found. Cannot open calendar.")}},{key:"close",value:function(){var o,c=this;if(!this.options.onBeforeClose||!1!==this.options.onBeforeClose())if(this.splitDatePicker&&"individual"===this.splitMode)"checkin"===this.currentInput?this.closeCheckin():"checkout"===this.currentInput&&this.closeCheckout();else{if(this.isOpen=!1,"inline"===this.displayMode)return this.modal.style.display="none",this.modal.classList.remove("open"),this.input.setAttribute("aria-expanded","false"),void(this.options.onAfterClose&&this.options.onAfterClose());var d=null===(o=this.modal)||void 0===o?void 0:o.querySelector(".calendar-content");if(d){this.modal.style.setProperty("display","flex","important"),this.modal.offsetHeight,this.modal.classList.remove("open"),this.input.setAttribute("aria-expanded","false"),document.querySelector(".calendar-modal.open:not(.calendar-modal-inline)")||document.body.classList.remove("calendar-open"),this.tempStart=null,this.tempEnd=null,this.input.focus(),this.triggerEvent("calendarClose");var u=!1,a2=function(){u||(u=!0,c.modal&&(c.modal.style.removeProperty("display"),requestAnimationFrame(function(){c.options.onAfterClose&&c.options.onAfterClose()})))},s2=function(o){o.target===d&&"opacity"===o.propertyName&&(c._closeTimeoutId&&(clearTimeout(c._closeTimeoutId),c._closeTimeoutId=null),d.removeEventListener("transitionend",s2),a2())};d.addEventListener("transitionend",s2,{once:!0}),this._closeTimeoutId=setTimeout(function(){c._closeTimeoutId=null,d.removeEventListener("transitionend",s2),a2()},270)}else this.modal.classList.remove("open"),this.modal.style.display="none",this.input.setAttribute("aria-expanded","false"),document.querySelector(".calendar-modal.open:not(.calendar-modal-inline)")||document.body.classList.remove("calendar-open"),this.tempStart=null,this.tempEnd=null,this.input.focus(),this.triggerEvent("calendarClose"),requestAnimationFrame(function(){c.options.onAfterClose&&c.options.onAfterClose()})}}},{key:"updateFocusableElements",value:function(){this.modal&&(this.focusableElements=Array.from(this.modal.querySelectorAll('button:not([disabled]), [tabindex]:not([tabindex="-1"]), input:not([disabled]), select:not([disabled]), textarea:not([disabled])')).filter(function(o){var c=window.getComputedStyle(o);return"none"!==c.display&&"hidden"!==c.visibility}))}},{key:"handleTabKey",value:function(o){if(this.isOpen&&this.modal&&(this.updateFocusableElements(),0!==this.focusableElements.length)){var c=this.focusableElements[0],d=this.focusableElements[this.focusableElements.length-1];c&&c.isConnected&&d&&d.isConnected?o.shiftKey?document.activeElement===c&&(o.preventDefault(),d.focus()):document.activeElement===d&&(o.preventDefault(),c.focus()):this.updateFocusableElements()}}}
35,{key:"announceDateSelection",value:function(o){if(this.resultDisplay){var c="";if(this.isRangePicker)if(this.tempStart&&!this.tempEnd)c="Start date selected: ".concat(this.formatDateLabel(this.tempStart),". Select an end date.");else if(this.tempStart&&this.tempEnd){var d=Math.ceil((this.tempEnd-this.tempStart)/864e5);c="Date range selected: ".concat(this.formatDateLabel(this.tempStart)," to ").concat(this.formatDateLabel(this.tempEnd),", ").concat(d," ").concat(1===d?"night":"nights")}else c="Selected ".concat(this.formatDateLabel(o));else c="Selected ".concat(this.formatDateLabel(o));this.resultDisplay&&(this.resultDisplay.textContent=c)}}},{key:"announceRangeSelection",value:function(o,c){if(this.resultDisplay){var d=Math.ceil((c-o)/864e5),u="Date range confirmed: ".concat(this.formatDateLabel(o)," to ").concat(this.formatDateLabel(c),", ").concat(d," ").concat(1===d?"night":"nights");this.resultDisplay&&(this.resultDisplay.textContent=u)}}},{key:"updateApplyButton",value:function(){if(this.splitDatePicker&&"joint"===this.splitMode){if("checkin"===this.currentInput){var o=this.tempStart,c=this.tempStart&&this.tempEnd;this.applyBtn.disabled=!o,c?(this.applyBtn.textContent="compact"===this.calendarStyle?"Apply":"Apply ".concat(this.formatDate(this.tempStart,"display")," - ").concat(this.formatDate(this.tempEnd,"display")),this.amendBtn&&(this.amendBtn.style.display="block")):o?(this.applyBtn.textContent="compact"===this.calendarStyle?"Apply":"Apply Check-in: ".concat(this.formatDate(this.tempStart,"display")),this.amendBtn&&(this.amendBtn.style.display="block")):(this.applyBtn.textContent="Apply Check-in",this.amendBtn&&(this.amendBtn.style.display="none"))}else if("checkout"===this.currentInput){var d=this.tempEnd;this.applyBtn.disabled=!d,d?(this.applyBtn.textContent="compact"===this.calendarStyle?"Apply":"Apply Check-out: ".concat(this.formatDate(this.tempEnd,"display")),this.amendBtn&&(this.amendBtn.style.display="block")):(this.applyBtn.textContent="Apply Check-out",this.amendBtn&&(this.amendBtn.style.display="none"))}}else if(this.isRangePicker){var u=this.tempStart&&this.tempEnd,p=this.tempStart&&!this.tempEnd;this.applyBtn.disabled=!u,u?(this.applyBtn.textContent="compact"===this.calendarStyle?"Apply":"Apply ".concat(this.formatDate(this.tempStart,"display")," - ").concat(this.formatDate(this.tempEnd,"display")),this.amendBtn&&(this.amendBtn.style.display="block")):p?(this.applyBtn.textContent="compact"===this.calendarStyle?"Select end date":"Apply ".concat(this.formatDate(this.tempStart,"display")," - Select end date"),this.amendBtn&&(this.amendBtn.style.display="block")):(this.applyBtn.textContent="Apply Dates",this.amendBtn&&(this.amendBtn.style.display="none"))}else{var m=this.tempStart;this.applyBtn.disabled=!m,m?(this.applyBtn.textContent="Apply ".concat(this.formatDate(this.tempStart,"display")),this.amendBtn&&(this.amendBtn.style.display="block")):(this.applyBtn.textContent="Apply Date",this.amendBtn&&(this.amendBtn.style.display="none"))}}},{key:"applySelection",value:function(){if(!this.options.onBeforeApply||!1!==this.options.onBeforeApply())if(this.splitDatePicker&&"joint"===this.splitMode)"checkin"===this.currentInput?this.applyCheckin():"checkout"===this.currentInput&&this.applyCheckout();else if(!this.isRangePicker&&this.tempStart)this.selectedStart=this.tempStart,this.selectedEnd=null,this.updateDisplay(),this.triggerChangeEvent(),this.close(),this.triggerEvent("calendarApply",{startDate:this.selectedStart,endDate:null}),this.options.onAfterApply&&this.options.onAfterApply(this.selectedStart,null);else if(this.isRangePicker&&this.tempStart&&this.tempEnd){if(!this.validateSelection(this.tempStart,this.tempEnd))return;this.selectedStart=this.tempStart,this.selectedEnd=this.tempEnd,this.updateDisplay(),this.triggerChangeEvent(),this.close(),this.triggerEvent("calendarApply",{startDate:this.selectedStart,endDate:this.selectedEnd}),this.options.onAfterApply&&this.options.onAfterApply(this.selectedStart,this.selectedEnd)}}},{key:"amendSelection",value:function(){var o=this;this.options.onBeforeAmend&&!1===this.options.onBeforeAmend()||(this.tempStart=null,this.tempEnd=null,this.isSelecting=!1,this.generateMonths(),this.updateApplyButton(),requestAnimationFrame(function(){requestAnimationFrame(function(){if(o.modal){var c=null,d=new Date;d.setHours(0,0,0,0),(c=o.modal.querySelector('[data-date="'.concat(o.formatDateString(d),'"]')))||(c=o.options.allowPastDates?o.modal.querySelector('.date-cell:not(.other-month):not([aria-disabled="true"])'):o.modal.querySelector(".date-cell:not(.other-month):not(.past-date)")),c&&(c.focus(),o.focusedDate=new Date(c.getAttribute("data-date"))),o.updateFocusableElements(),o.triggerEvent("calendarAmend"),o.options.onAfterAmend&&o.options.onAfterAmend()}})}))}},{key:"selectDate",value:function(o){var c=this;this.options.onBeforeDateSelect&&!1===this.options.onBeforeDateSelect(o)||(this.clearHoverPreview(),this.hideValidationMessage(),this.splitDatePicker&&"joint"===this.splitMode?"checkin"===this.currentInput?!this.tempStart||this.tempStart&&this.tempEnd?(this.tempStart=o,this.tempEnd=null,this.isSelecting=!0,this.focusedDate=o):(o<this.tempStart?(this.tempEnd=this.tempStart,this.tempStart=o):this.tempEnd=o,this.isSelecting=!1,this.focusedDate=this.tempStart):"checkout"===this.currentInput&&(this.selectedStart?(this.tempStart=this.selectedStart,this.tempEnd=o):(this.tempStart=o,this.tempEnd=null),this.isSelecting=!1,this.focusedDate=o):this.isRangePicker?!this.tempStart||this.tempStart&&this.tempEnd?(this.tempStart=o,this.tempEnd=null,this.isSelecting=!0,this.focusedDate=o):(o<this.tempStart?(this.tempEnd=this.tempStart,this.tempStart=o):this.tempEnd=o,this.isSelecting=!1,this.focusedDate=this.tempStart):(this.tempStart=o,this.tempEnd=null,this.isSelecting=!1,this.focusedDate=o),this.generateMonths(),this.updateApplyButton(),requestAnimationFrame(function(){requestAnimationFrame(function(){if(!c.tempStart||!c.tempEnd&&c.isRangePicker){var o,d=null===(o=c.modal)||void 0===o?void 0:o.querySelector('[data-date="'.concat(c.formatDateString(c.focusedDate),'"]'));d&&d.focus()}else c.applyBtn&&c.applyBtn.focus();c.updateFocusableElements()})}),this.announceDateSelection(o),this.triggerEvent("calendarDateSelect",{date:o,tempStart:this.tempStart,tempEnd:this.tempEnd}),this.options.onAfterDateSelect&&this.options.onAfterDateSelect(o,this.tempStart,this.tempEnd),this.isRangePicker&&this.tempStart&&this.tempEnd&&(this.triggerEvent("calendarRangeSelected",{startDate:this.tempStart,endDate:this.tempEnd}),this.options.onRangeSelected&&this.options.onRangeSelected(this.tempStart,this.tempEnd),this.announceRangeSelection(this.tempStart,this.tempEnd)))}},{key:"generateMonths",value:function(){if(this.monthsContainer){this.calendarCount=this.getCalendarCount();for(var o=this.calendarCount;this.monthsContainer.firstChild;)this.monthsContainer.removeChild(this.monthsContainer.firstChild);for(var c=0;c<o;c++){var d=new Date(this.currentDate.getFullYear(),this.currentDate.getMonth()+c,1),u=this.createMonthElement(d);this.monthsContainer.appendChild(u)}}}},{key:"createMonthElement",value:function(o){var c=this,d=document.createElement("div");
35d.className="calendar-month",d.setAttribute("data-month",o.getMonth()),d.setAttribute("data-year",o.getFullYear());var u=document.createElement("div");u.className="month-header";var p=document.createElement("h3");if(p.className="month-title",this.options.showMonthSelector){var m=document.createElement("select");m.className="month-select",m.setAttribute("aria-label","Select month"),["January","February","March","April","May","June","July","August","September","October","November","December"].forEach(function(c,d){var u=document.createElement("option");u.value=d,u.textContent=c,d===o.getMonth()&&(u.selected=!0),m.appendChild(u)}),m.addEventListener("change",function(o){var d=parseInt(o.target.value);c.currentDate.setMonth(d),c.generateMonths()}),p.appendChild(m)}if(this.options.showYearSelector){var g=document.createElement("select");g.className="year-select",g.setAttribute("aria-label","Select year");var v=this.options.yearSelectSize;"number"==typeof v&&v>1&&(g.size=v);var y,_,b=o.getFullYear();y=this.minDate?this.minDate.getFullYear():this.options.allowPastDates?b-100:b-5,_=this.maxDate?this.maxDate.getFullYear():b+10;for(var k=y;k<=_;k++){var w=document.createElement("option");w.value=k,w.textContent=k,k===b&&(w.selected=!0),g.appendChild(w)}g.addEventListener("change",function(o){var d=parseInt(o.target.value);c.currentDate.setFullYear(d),c.generateMonths()}),p.appendChild(g)}this.options.showMonthSelector||this.options.showYearSelector||(p.textContent=o.toLocaleDateString("en-US",{month:"long",year:"numeric"})),u.appendChild(p);var S=document.createElement("div");S.className="month-nav";var D=document.createElement("button");D.className="month-nav-btn",D.textContent="â¹",D.setAttribute("aria-label","Previous month"),D.addEventListener("click",function(o){o.stopPropagation(),c.navigateMonth(-1)});var x=document.createElement("button");x.className="month-nav-btn",x.textContent="âº",x.setAttribute("aria-label","Next month"),x.addEventListener("click",function(o){o.stopPropagation(),c.navigateMonth(1)}),S.appendChild(D),S.appendChild(x);var E=document.createElement("div");E.className="weekdays",["Sun","Mon","Tue","Wed","Thu","Fri","Sat"].forEach(function(o){var c=document.createElement("div");c.className="weekday",c.textContent=o,E.appendChild(c)});var C=document.createElement("div");C.className="date-grid",C.setAttribute("role","grid"),C.setAttribute("aria-label","".concat(o.toLocaleDateString("en-US",{month:"long",year:"numeric"})," calendar"));var M=this.generateDates(o),T=null;return M.forEach(function(o,d){d%7==0&&((T=document.createElement("div")).setAttribute("role","row"),C.appendChild(T));var u=document.createElement("div");u.setAttribute("role","gridcell");var p=c.createDateCell(o);u.appendChild(p),T.appendChild(u)}),d.appendChild(u),d.appendChild(S),d.appendChild(E),d.appendChild(C),d}},{key:"generateDates",value:function(o){var c=o.getFullYear(),d=o.getMonth(),u=new Date(c,d,1),p=new Date(u);p.setDate(p.getDate()-u.getDay());var m=[],g=new Date;g.setHours(0,0,0,0);for(var v=0;v<42;v++){var y=new Date(p);y.setDate(p.getDate()+v),m.push({date:y,isCurrentMonth:y.getMonth()===d,isToday:this.isSameDate(y,g),isPast:y<g,isSelected:this.isDateSelected(y),isInRange:this.isDateInRange(y),isValid:this.isDateValid(y)})}return m}},{key:"createDateCell",value:function(o){var c=this,d=document.createElement("button");d.className="date-cell",d.textContent=o.date.getDate();var u=this.formatDateString(o.date);d.setAttribute("data-date",u),d.setAttribute("tabindex",o.isCurrentMonth?"0":"-1"),d.setAttribute("aria-label",this.formatDateLabel(o.date));var p=o.isPast&&!this.options.allowPastDates||!o.isValid;o.isCurrentMonth&&!p&&d.setAttribute("aria-describedby","".concat(this.instanceId,"-keyboard-instructions")),o.isCurrentMonth||d.classList.add("other-month"),o.isToday&&d.classList.add("today");var m=o.isPast&&!this.options.allowPastDates;return o.isPast&&d.classList.add("past-date"),!m&&o.isValid||(d.disabled=!0,d.setAttribute("aria-disabled","true"),d.setAttribute("tabindex","-1")),o.isSelected&&d.classList.add("selected"),o.isInRange&&d.classList.add("in-range"),this.tempStart&&this.isSameDate(o.date,this.tempStart)&&d.classList.add("range-start"),this.tempEnd&&this.isSameDate(o.date,this.tempEnd)&&d.classList.add("range-end"),d.addEventListener("mouseenter",function(){return c.handleDateHover(o.date)}),d.addEventListener("mouseleave",function(){return c.clearHoverPreview()}
35),o.isValid&&(d.addEventListener("click",function(d){d.stopPropagation(),c.selectDate(o.date)}),d.addEventListener("keydown",function(d){return c.handleDateKeydown(d,o.date)})),d}},{key:"isDateSelected",value:function(o){return this.tempStart&&this.isSameDate(o,this.tempStart)||this.tempEnd&&this.isSameDate(o,this.tempEnd)}},{key:"isDateInRange",value:function(o){return!(!this.tempStart||!this.tempEnd)&&o>this.tempStart&&o<this.tempEnd}},{key:"isSameDate",value:function(o,c){return o.getFullYear()===c.getFullYear()&&o.getMonth()===c.getMonth()&&o.getDate()===c.getDate()}},{key:"formatDateString",value:function(o){var c=o.getFullYear(),d=String(o.getMonth()+1).padStart(2,"0"),u=String(o.getDate()).padStart(2,"0");return"".concat(c,"-").concat(d,"-").concat(u)}},{key:"formatDateLabel",value:function(o){try{return o.toLocaleDateString(void 0,{weekday:"long",year:"numeric",month:"long",day:"numeric"})}catch(c){return o.toLocaleDateString("en-US",{weekday:"long",year:"numeric",month:"long",day:"numeric"})}}},{key:"formatDate",value:function(o){var c=this,d=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"display";if(!o)return"";var u={display:function(){return c.parseFormat(o,c.options.displayFormat)},input:function(){return c.formatDateString(o)},api:function(){return c.formatDateString(o)},human:function(){return o.toLocaleDateString("en-US",{weekday:"long",year:"numeric",month:"long",day:"numeric"})},booking:function(){return c.formatDateString(o)},"display-long":function(){return o.toLocaleDateString("en-US",{month:"long",day:"numeric",year:"numeric"})}};return u[d]?u[d]():u.display()}},{key:"parseFormat",value:function(o,c){if(!o||!c)return"";var d,u,p,m=o.getFullYear(),g=o.getMonth()+1,v=o.getDate(),y=c;return(y=(y=(y=(y=(y=(y=(y=(y=(y=(y=y.replace(/{YYYY}/g,m)).replace(/{YY}/g,String(m).slice(-2))).replace(/{MMMM}/g,["January","February","March","April","May","June","July","August","September","October","November","December"][g-1])).replace(/{MMM}/g,["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"][g-1])).replace(/{MM}/g,String(g).padStart(2,"0"))).replace(/{M}/g,String(g))).replace(/{DD}/g,String(v).padStart(2,"0"))).replace(/{D}/g,String(v))).replace(/{Do}/g,(p=(d=v)%100,1==(u=d%10)&&11!==p?d+"st":2===u&&12!==p?d+"nd":3===u&&13!==p?d+"rd":d+"th"))).replace(/{dddd}/g,["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"][o.getDay()])).replace(/{ddd}/g,["Sun","Mon","Tue","Wed","Thu","Fri","Sat"][o.getDay()])}},{key:"navigateMonth",value:function(o){var c=new Date(this.currentDate.getFullYear(),this.currentDate.getMonth()+o,1);o<0&&this.minDate&&c<new Date(this.minDate.getFullYear(),this.minDate.getMonth(),1)||o>0&&this.maxDate&&c>new Date(this.maxDate.getFullYear(),this.maxDate.getMonth()-(this.calendarCount-1),1)||(this.currentDate.setMonth(this.currentDate.getMonth()+o),this.generateMonths())}},{key:"updateDisplay",value:function(){var o=this.options.frontDateInFormat||this.options.displayFormat,c=this.options.frontDateOutFormat||this.options.displayFormat,d=this.selectedStart?this.parseFormat(this.selectedStart,o):"",u=this.selectedEnd?this.parseFormat(this.selectedEnd,c):"";this.updateHiddenFields();var p=this.options.multiDateSeperator||" - ",m=this.options.displayPrefixStartText||"",g=this.options.displayPrefixEndText||"";if(this.splitDatePicker)this.checkinInput&&(this.selectedStart?this.checkinInput.textContent="".concat(m).concat(d):this.checkinInput.textContent=this.options.buttonPlaceholderCheckin||"Choose check-in date"),this.checkoutInput&&(this.selectedEnd?this.checkoutInput.textContent="".concat(g).concat(u):this.checkoutInput.textContent=this.options.buttonPlaceholderCheckout||"Choose check-out date");else if(this.isRangePicker)if(this.selectedStart&&this.selectedEnd)this.input.textContent="".concat(m).concat(d).concat(p).concat(g).concat(u);else if(this.selectedStart){var v=this.options.buttonPlaceholderEnd||"Choose end date";this.input.textContent="".concat(m).concat(d).concat(p).concat(v)}else this.input.textContent=this.options.buttonPlaceholderRange||"Choose your dates";else this.selectedStart?this.input.textContent="".concat(m).concat(d):this.input.textContent=this.options.buttonPlaceholder||"Choose your date"}},{key:"updateHiddenFields",value:function(){var o,c;this.splitDatePicker?(o=this.options.hiddenDateInFormat||this.options.hiddenFormatCheckin,c=this.options.hiddenDateOutFormat||this.options.hiddenFormatCheckout):(o=this.options.hiddenDateInFormat||this.options.hiddenFormatRange,c=this.options.hiddenDateOutFormat||this.options.hiddenFormatRange),this.splitDatePicker?(this.hiddenFields.
35checkin&&(this.hiddenFields.checkin.value=this.selectedStart?this.parseFormat(this.selectedStart,o):""),this.hiddenFields.checkout&&(this.hiddenFields.checkout.value=this.selectedEnd?this.parseFormat(this.selectedEnd,c):"")):(this.hiddenFields.start&&(this.hiddenFields.start.value=this.selectedStart?this.parseFormat(this.selectedStart,o):""),this.hiddenFields.end&&(this.hiddenFields.end.value=this.selectedEnd?this.parseFormat(this.selectedEnd,c):""))}},{key:"triggerChangeEvent",value:function(){var o={startDate:this.selectedStart,endDate:this.selectedEnd,formatted:{start:this.formatDate(this.selectedStart,"input"),end:this.formatDate(this.selectedEnd,"input"),display:{start:this.formatDate(this.selectedStart,"display"),end:this.formatDate(this.selectedEnd,"display")},api:{start:this.formatDate(this.selectedStart,"api"),end:this.formatDate(this.selectedEnd,"api")}},duration:this.selectedStart&&this.selectedEnd?Math.ceil((this.selectedEnd-this.selectedStart)/864e5):0},c=new CustomEvent("calendarChange",{detail:o,bubbles:!0});this.input.dispatchEvent(c);var d=new Event("change",{bubbles:!0});this.input.dispatchEvent(d)}},{key:"handleDateKeydown",value:function(o,c){switch(o.key){case"Enter":case" ":o.preventDefault(),this.selectDate(c);break;case"ArrowRight":o.preventDefault(),this.focusAdjacentDate(c,1);break;case"ArrowLeft":o.preventDefault(),this.focusAdjacentDate(c,-1);break;case"ArrowDown":o.preventDefault(),this.focusAdjacentDate(c,7);break;case"ArrowUp":o.preventDefault(),this.focusAdjacentDate(c,-7);break;case"Home":o.preventDefault();var d=new Date(c.getFullYear(),c.getMonth(),1);this.focusAdjacentDate(c,d.getDate()-c.getDate());break;case"End":o.preventDefault();var u=new Date(c.getFullYear(),c.getMonth()+1,0);this.focusAdjacentDate(c,u.getDate()-c.getDate());break;case"PageUp":o.preventDefault();var p=new Date(c.getFullYear(),c.getMonth()-1,c.getDate());this.focusAdjacentDate(c,p.getDate()-c.getDate()-this.getDaysInMonth(c.getFullYear(),c.getMonth()-1));break;case"PageDown":o.preventDefault();var m=new Date(c.getFullYear(),c.getMonth()+1,c.getDate());this.focusAdjacentDate(c,m.getDate()-c.getDate()+this.getDaysInMonth(c.getFullYear(),c.getMonth()));break;case"Escape":o.preventDefault(),this.tempStart&&!this.tempEnd?(this.tempStart=null,this.tempEnd=null,this.clearHoverPreview(),this.generateMonths(),this.updateApplyButton()):this.close();break;case"Backspace":case"Delete":o.preventDefault(),(this.tempStart||this.tempEnd)&&(this.tempStart=null,this.tempEnd=null,this.clearHoverPreview(),this.generateMonths(),this.updateApplyButton())}}},{key:"focusAdjacentDate",value:function(o,c){var d=new Date(o);d.setDate(o.getDate()+c);var u=this.modal.querySelector('[data-date="'.concat(this.formatDateString(d),'"]'));u&&!u.disabled?(u.focus(),this.focusedDate=d,this.tempStart&&!this.tempEnd?this.handleDateHover(d):this.clearHoverPreview()):u&&u.disabled&&this.focusNextAvailableDate(o,c)}},{key:"focusNextAvailableDate",value:function(o,c){for(var d=new Date(o),u=0;u<14;){d.setDate(d.getDate()+c);var p=this.modal.querySelector('[data-date="'.concat(this.formatDateString(d),'"]'));if(p&&!p.disabled){p.focus(),this.focusedDate=d,this.tempStart&&!this.tempEnd?this.handleDateHover(d):this.clearHoverPreview();break}u++}}},{key:"handleDateHover",value:function(o){(new Date).setHours(0,0,0,0);var c=this.formatDateString(o),d=new Date("".concat(c,"T00:00:00"));this.isDateValid(d)?(this.options.onDateHover&&this.options.onDateHover(d),this.isRangePicker&&(!this.tempStart||this.tempEnd||this.isSameDate(this.tempStart,d)||this.showHoverPreview(this.tempStart,d))):this.options.onDateHover&&this.options.onDateHover(d)}},{key:"showHoverPreview",value:function(o,c){if(this.clearHoverPreview(),!this.isSameDate(o,c)){var d=o<c?o:c,u=o<c?c:o,p=this.formatDateString(d),m=this.formatDateString(u);this.modal.querySelectorAll(".date-cell").forEach(function(o){var c=o.getAttribute("data-date");c>=p&&c<=m&&(c===p?o.classList.add("hover-start"):c===m?o.classList.add("hover-end"):o.classList.add("hover-preview"))})}}},{key:"clearHoverPreview",value:function(){this.modal&&this.modal.querySelectorAll(".date-cell").forEach(function(o){o.classList.remove("hover-preview","hover-start","hover-end")})}},{key:"getDaysInMonth",value:function(o,c){return new Date(o,c+1,0).getDate()}},{key:"setDates",value:function(o,c){this.selectedStart=new Date(o),this.selectedEnd=new Date(c),this.updateDisplay(),this.generateMonths(),this.triggerChangeEvent()}},{key:"getDates",value:function(){return{startDate:this.selectedStart,endDate:this.selectedEnd,formatted:{start:this.formatDate(this.selectedStart,"input"),end:this.formatDate(this.selectedEnd,"input"),display:{start:this.formatDate(this.selectedStart,"display"),end:this.formatDate(this.selectedEnd,"display")},api:{start:this.formatDate(this.selectedStart,"api"),end:this.formatDate(this.selectedEnd,"api")}}
35,duration:this.selectedStart&&this.selectedEnd?Math.ceil((this.selectedEnd-this.selectedStart)/864e5):0}}},{key:"getFormattedDates",value:function(){var o=this,e2=function(c){return o.splitDatePicker?"start"===c?o.options.hiddenFormatCheckin:o.options.hiddenFormatCheckout:o.options.hiddenFormatRange};return{start:this.selectedStart?this.parseFormat(this.selectedStart,this.options.displayFormat):null,end:this.selectedEnd?this.parseFormat(this.selectedEnd,this.options.displayFormat):null,hidden:{start:this.selectedStart?this.parseFormat(this.selectedStart,e2("start")):null,end:this.selectedEnd?this.parseFormat(this.selectedEnd,e2("end")):null},raw:{start:this.selectedStart?this.formatDateString(this.selectedStart):null,end:this.selectedEnd?this.formatDateString(this.selectedEnd):null},duration:this.selectedStart&&this.selectedEnd?Math.ceil((this.selectedEnd-this.selectedStart)/864e5):0}}},{key:"clear",value:function(){this.selectedStart=null,this.selectedEnd=null,this.tempStart=null,this.tempEnd=null,this.updateDisplay(),this.generateMonths(),this.triggerEvent("calendarClear"),this.options.onSelectionCleared&&this.options.onSelectionCleared()}},{key:"destroy",value:function(){if(this._closeTimeoutId&&(clearTimeout(this._closeTimeoutId),this._closeTimeoutId=null),this.boundHandlers.document.keydown&&(document.removeEventListener("keydown",this.boundHandlers.document.keydown),delete this.boundHandlers.document.keydown),this.boundHandlers.document.clickOutside&&(document.removeEventListener("click",this.boundHandlers.document.clickOutside),delete this.boundHandlers.document.clickOutside),this.boundHandlers.window.resize&&(window.removeEventListener("resize",this.boundHandlers.window.resize),delete this.boundHandlers.window.resize),this.modal&&this.modal.parentNode&&this.modal.parentNode.removeChild(this.modal),this.inputWrapper&&this.inputWrapper.classList.contains("calendar-input-wrapper")){var o=this.inputWrapper,c=o.parentNode;c&&(c.insertBefore(this.input,o),c.removeChild(o))}this.splitDatePicker&&"individual"===this.splitMode&&(this.checkinModal&&this.checkinModal.parentNode&&this.checkinModal.parentNode.removeChild(this.checkinModal),this.checkoutModal&&this.checkoutModal.parentNode&&this.checkoutModal.parentNode.removeChild(this.checkoutModal)),this.splitPicker&&this.splitPicker.parentNode&&this.splitPicker.parentNode.removeChild(this.splitPicker),this.hiddenFields.start&&this.hiddenFields.start.parentNode&&this.hiddenFields.start.parentNode.removeChild(this.hiddenFields.start),this.hiddenFields.end&&this.hiddenFields.end.parentNode&&this.hiddenFields.end.parentNode.removeChild(this.hiddenFields.end),this.hiddenFields.checkin&&this.hiddenFields.checkin.parentNode&&this.hiddenFields.checkin.parentNode.removeChild(this.hiddenFields.checkin),this.hiddenFields.checkout&&this.hiddenFields.checkout.parentNode&&this.hiddenFields.checkout.parentNode.removeChild(this.hiddenFields.checkout),document.querySelector(".calendar-modal.open")||document.body.classList.remove("calendar-open"),this.input&&this.triggerEvent("calendarDestroy"),this.modal=null,this.closeBtn=null,this.applyBtn=null,this.amendBtn=null,this.input=null,this.checkinInput=null,this.checkoutInput=null,this.focusableElements=[]}},{key:"openCheckin",value:function(){"joint"===this.splitMode?(this.currentInput="checkin",this.open()):this.openIndividualModal("checkin")}},{key:"openCheckout",value:function(){"joint"===this.splitMode?(this.currentInput="checkout",this.open()):this.openIndividualModal("checkout")}},{key:"openIndividualModal",value:function(o){var c=this;if(!this.isOpen){this.isOpen=!0,this.currentInput=o,this.modal="checkin"===o?this.checkinModal:this.checkoutModal,this.monthsContainer="checkin"===o?this.checkinMonthsContainer:this.checkoutMonthsContainer,this.applyBtn="checkin"===o?this.checkinApplyBtn:this.checkoutApplyBtn,this.resultDisplay="checkin"===o?this.checkinResultDisplay:this.checkoutResultDisplay,this.isRangePicker=!1,this.calendarCount=1,this.tempStart="checkin"===o?this.tempCheckin:this.tempCheckout,this.modal.classList.add("open"),this.modal.setAttribute("aria-hidden","false"),document.body.classList.add("calendar-open"),this.generateMonths(),this.focusableElements=Array.from(this.modal.querySelectorAll('button, [tabindex]:not
35([tabindex="-1"]), input, select, textarea')),this.focusableElements.length>0&&this.focusableElements[0].focus(),this.triggerEvent("calendarOpen",{type:o});var d=!1,i3=function(){d||(d=!0,c.options.onAfterOpen&&c.options.onAfterOpen())};if(this.modal){var u=this.modal.querySelector(".calendar-content");if(u){var s2=function(o){o.target!==u||"opacity"!==o.propertyName&&"transform"!==o.propertyName||i3()};u.addEventListener("transitionend",s2,{once:!0}),setTimeout(function(){u.removeEventListener("transitionend",s2),i3()},250)}else i3()}else i3()}}},{key:"closeCheckin",value:function(){this.closeIndividualModal("checkin")}},{key:"closeCheckout",value:function(){this.closeIndividualModal("checkout")}},{key:"closeIndividualModal",value:function(o){var c=this;if(this.isOpen&&("checkin"===o?this.tempCheckin=this.tempStart:this.tempCheckout=this.tempStart,this.isOpen=!1,this.modal="checkin"===o?this.checkinModal:this.checkoutModal,this.modal)){var d=this.modal.querySelector(".calendar-content");if(d){this.modal.style.setProperty("display","flex","important"),this.modal.offsetHeight,this.modal.classList.remove("open"),this.modal.setAttribute("aria-hidden","true"),document.querySelector(".calendar-modal.open")||document.body.classList.remove("calendar-open");var u="checkin"===o?this.checkinInput:this.checkoutInput;u.focus(),u.setAttribute("aria-expanded","false"),this.triggerEvent("calendarClose",{type:o});var p=!1,s2=function(){p||(p=!0,c.modal&&(c.modal.style.removeProperty("display"),requestAnimationFrame(function(){c.options.onAfterClose&&c.options.onAfterClose()})))},o2=function(o){o.target===d&&"opacity"===o.propertyName&&(c._closeTimeoutId&&(clearTimeout(c._closeTimeoutId),c._closeTimeoutId=null),d.removeEventListener("transitionend",o2),s2())};d.addEventListener("transitionend",o2,{once:!0}),this._closeTimeoutId=setTimeout(function(){c._closeTimeoutId=null,d.removeEventListener("transitionend",o2),s2()},270)}else{this.modal.classList.remove("open"),this.modal.style.display="none",this.modal.setAttribute("aria-hidden","true"),document.querySelector(".calendar-modal.open")||document.body.classList.remove("calendar-open");var m="checkin"===o?this.checkinInput:this.checkoutInput;m.focus(),m.setAttribute("aria-expanded","false"),this.triggerEvent("calendarClose",{type:o}),requestAnimationFrame(function(){c.options.onAfterClose&&c.options.onAfterClose()})}}}},{key:"applyCheckin",value:function(){if(this.tempStart)if(this.isDateValid(this.tempStart)){if("joint"===this.splitMode&&this.tempStart&&this.tempEnd){if(!this.isDateValid(this.tempEnd))return void this.showValidationMessage("Please select a valid check-out date.","checkin");if(!this.validateSelection(this.tempStart,this.tempEnd))return;return this.selectedStart=this.tempStart,this.selectedEnd=this.tempEnd,this.tempCheckin=this.tempStart,this.tempCheckout=this.tempEnd,this.updateDisplay(),this.close(),this.hideValidationMessage("checkin"),this.triggerChangeEvent(),this.triggerEvent("calendarCheckinSelected",{date:this.selectedStart}),this.triggerEvent("calendarCheckoutSelected",{date:this.selectedEnd}),void(this.options.onAfterApply&&this.options.onAfterApply(this.selectedStart,this.selectedEnd))}if(this.selectedStart=this.tempStart,this.tempCheckin=this.tempStart,this.updateDisplay(),"joint"===this.splitMode?this.close():this.closeCheckin(),this.selectedEnd){var o=new Date(this.selectedStart);o.setHours(0,0,0,0);var c=new Date(this.selectedEnd);c.setHours(0,0,0,0),c<=o&&(this.selectedEnd=null,this.tempCheckout=null,this.updateDisplay())}this.hideValidationMessage("checkin"),this.triggerChangeEvent(),this.triggerEvent("calendarCheckinSelected",{date:this.selectedStart}),this.options.onAfterApply&&this.options.onAfterApply(this.selectedStart,null)}else this.showValidationMessage("Please select a valid check-in date.","checkin")}},{key:"applyCheckout",value:function(){var o="joint"===this.splitMode&&this.tempEnd?this.tempEnd:this.tempStart;if(o)if(this.isDateValid(o)){var c=this.selectedStart||this.tempCheckin;if(c){var d=new Date(c);d.setHours(0,0,0,0);var u=new Date(o);if(u.setHours(0,0,0,0),u<=d)return void this.showValidationMessage("Check-out date must be after check-in date.","checkout");if(this.selectedStart){var p=Math.ceil((u-d)/864e5);if(p<this.options.minStay){var m="Minimum ".concat(this.options.minStay," ").concat(1===this.options.minStay?"night":"nights"," stay required. You selected ").concat(p," ").concat(1===p?"night":"nights",".");return this.showValidationMessage(m,"checkout"),void this.triggerEvent("validationError",{type:"minStay",message:m,duration:p,required:this.options.minStay})}if(p>this.options.maxStay){var g="Maximum ".concat(this.options.maxStay," ").concat(1===this.options.maxStay?"night":"nights"," stay allowed. You selected ").concat(p," ").concat(1===p?"night":"nights",".");return this.showValidationMessage(g,"checkout"),void this.triggerEvent("validationError",{type:"maxStay",message:g,duration:p,required:this.options.maxStay})}}}this.selectedEnd=o,this.tempCheckout=o,this.updateDisplay(),"joint"===this.splitMode?this.close():this.closeCheckout(),this.hideValidationMessage("checkout"),this.triggerChangeEvent(),this.triggerEvent("calendarCheckoutSelected",{date:this.selectedEnd}),this.options.onAfterApply&&this.options.onAfterApply(this.selectedStart,this.selectedEnd)}else this.showValidationMessage("Please select a valid check-out date.","checkout")}}],d=[{key:"defaults",get:function(){return{isRangePicker:!0,calendarCount:"auto",splitDatePicker:!1,splitMode:"joint",minStay:1,maxStay:365,minDate:null,maxDate:null,allowPastDates:!1,blockedDates:[],allowedDates:[],customValidation:null,displayFormat:"{MMM} {D}, {YYYY}",hiddenFormat:"{MM}-{DD}-{YYYY}",hiddenFormatRange:"{MM}-{DD}-{YYYY}",hiddenFormatCheckin:"{MM}-{DD}-{YYYY}",hiddenFormatCheckout:"{MM}-{DD}-{YYYY}",frontDateInFormat:null,frontDateOutFormat:null,hiddenDateInFormat:null,hiddenDateOutFormat:null,dateInName:"date_in",dateOutName:"date_out",multiDateSeperator:" - ",displayPrefixStartText:null,displayPrefixEndText:null,displayMode:"modal",calendarStyle:"standard",popupTitle:"Cho
35ose your dates",buttonPlaceholder:"Choose your date",buttonPlaceholderRange:"Choose your dates",buttonPlaceholderEnd:"Choose end date",buttonPlaceholderCheckin:"Choose check-in date",buttonPlaceholderCheckout:"Choose check-out date",labelInputDate:"Check-in",labelOutputDate:"Check-out",showYearSelector:!0,showMonthSelector:!0,yearSelectSize:1,buttonAriaLabel:null,buttonAriaControls:null,hiddenFieldSelector:null,autoCreateHiddenField:!1,hiddenFieldSuffix:"_formatted",onBeforeOpen:null,onAfterOpen:null,onBeforeClose:null,onAfterClose:null,onBeforeDateSelect:null,onAfterDateSelect:null,onBeforeApply:null,onAfterApply:null,onBeforeAmend:null,onAfterAmend:null,onDateHover:null,onRangeSelected:null,onSelectionCleared:null}}}],c&&e(o.prototype,c),d&&e(o,d),Object.defineProperty(o,"prototype",{writable:!1}),o;var o,c,d}();"undefined"!=typeof module&&module.exports?module.exports=_i:"function"==typeof define&&define.amd?define([],function(){return _i}):window.AccessibleCalendar=_i,be.registerPlugin(pi);class BookingInstance{constructor(c,d=!1){this.form=c,this.isMobile=d,this.suffix=d?"-mobile":"",this.calendar=null,this.config=this.parseConfig(),this.engine=o(this.config.bookingEngine),this.data={rooms:this.config.defaultRooms,adults:this.config.defaultAdults,children:this.config.defaultChildren},this.init()}parseConfig(){const o=this.form;return{bookingUrl:o.dataset.bookingUrl||o.action,bookingEngine:o.dataset.bookingEngine||"travelclick",displayFormat:o.dataset.displayFormat||"{D} {MMM} {YYYY}",minStay:parseInt(o.dataset.minStay,10)||1,maxStay:parseInt(o.dataset.maxStay,10)||365,defaultRooms:parseInt(o.dataset.defaultRooms,10)||1,defaultAdults:parseInt(o.dataset.defaultAdults,10)||2,defaultChildren:parseInt(o.dataset.defaultChildren,10)||0,maxRooms:parseInt(o.dataset.maxRooms,10)||9,maxAdults:parseInt(o.dataset.maxAdults,10)||36,maxChildren:parseInt(o.dataset.maxChildren,10)||27,showGroupBooking:"true"===o.dataset.showGroupBooking,displayMode:o.dataset.displayMode||"modal"}}init(){this.initDatepicker(),this.setDefaultDates(),this.updateDisplay()}setDefaultDates(){const o=new Date,c=new Date(o);c.setDate(o.getDate()+1),this.calendar&&this.calendar.setDates(o,c)}initDatepicker(){const o=this.isMobile?"#calendar-input-mobile":"#calendar-input-desktop",c=document.querySelector(o);if(!c)return void console.warn(`Calendar element not found: ${o}`);const d=c.dataset.placeholder||"Choose your dates";this.calendar=new _i(o,{isRangePicker:!0,calendarCount:this.isMobile?"single":"auto",minStay:this.config.minStay,maxStay:this.config.maxStay,allowPastDates:!1,displayMode:this.config.displayMode,displayFormat:this.config.displayFormat,hiddenDateInFormat:this.engine.dateFormat,hiddenDateOutFormat:this.engine.dateFormat,autoCreateHiddenField:!0,dateInName:this.engine.params.checkin,dateOutName:this.engine.params.checkout,multiDateSeperator:" - ",popupTitle:"Choose your dates",buttonPlaceholderRange:d,buttonPlaceholderEnd:"Choose check-out date",onAfterApply:()=>{this.clearMessage()}})}isGroupBooking(){return!!this.config.showGroupBooking&&(this.data.rooms>this.config.maxRooms||this.data.adults>this.config.maxAdults||this.data.children>this.config.maxChildren)}updateGroupBookingState(){const o=this.isMobile?"book-now-btn-mobile":"book-now-btn",c=document.getElementById(o);c&&(this.isGroupBooking()?(c.setAttribute("type","button"),c.setAttribute("data-bs-toggle","modal"),c.setAttribute("data-bs-target","#groupBooking")):(c.setAttribute("type","submit"),c.removeAttribute("data-bs-toggle"),c.removeAttribute("data-bs-target")))}updateCounter(o,c){const d=o.replace(this.suffix,"").replace("-",""),u=this.data[d];let p=0,m=40;"rooms"===d?(p=1,m=50):"adults"===d?(p=1,m=100):"children"===d&&(p=0,m=50);const g="increase"===c?Math.min(u+1,m):Math.max(u-1,p);if(g!==u){this.data[d]=g;const o=`${d}-count${this.suffix}`,c=document.getElementById(o);c&&(c.textContent=g),this.updateDisplay(),this.updateGroupBookingState()}}updateDisplay(){const o=1===this.data.rooms?"1 Room":`${this.data.rooms} Rooms`,c=document.querySelector(`.rooms-text${this.suffix}`);c&&(c.textContent=o);const d=`${this.data.adults} Adults, ${this.data.children} Children`,u=document.querySelector(`.guests-text${this.suffix}`);u&&(u.textContent=d),this.updateHiddenFields()}updateHiddenFields(){["rooms","adults","children"].forEach(o=>{const c=this.engine.params[o];if(!c)return;const d=this.form.querySelector(`input[name="${c}"]`);d&&(d.value=this.data[o])})}showMessage(o,c="error"){const d=document.getElementById(`booking-messages${this.suffix}`);d&&(d.textContent=o,d.className=`booking-bar__messages booking-bar__messages--${c}`,d.style.display="block",d.setAttribute("role","alert"))}clearMessage(){const o=document.getElementById(`booking-messages${this.suffix}`);o&&(o.textContent="",o.style.display="none",o.removeAttribute("role"))}validate(){const o=this.calendar?.getDates();return o?.startDate&&o?.endDate?o.startDate>=o.endDate?(this.showMessage("Check-out date must be after check-in date."),!1):(this.clearMessage(),!0):(this.showMessage("Please select your check-in and check-out dates."),!1)}handleBooking(){if(!this.validate())return!1;const o=this.isMobile?"book-now-btn-mobile":"book-now-btn",d=document.getElementById(o);if(d){d.classList.add("is-loading");const o=d.querySelector(".booking-btn__text"),c=d.querySelector(".booking-btn__loading");o&&(o.style.display="none"),c&&(c.style.display="inline-flex")}return window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"bookingForm",bookingEngine:this.config.bookingEngine,checkin:c(this.calendar?.getDates()?.startDate,"{YYYY}-{MM}-{DD}")||"",checkout:c(this.calendar?.getDates()?.endDate,"{YYYY}-{MM}-{DD}")||"",rooms:this.data.rooms,adults:this.data.adults,children:this.data.children}),setTimeout(()=>{if(!d)return;d.classList.remove("is-loading");const o=d.querySelector(".booking-btn__text"),c=d.querySelector(".booking-btn__loading");o&&(o.style.display="inline"),c&&(c.style.display="none")},2e3),!0}}class BookingManager{constructor(){this.instances=new Map,this.init()}init(){this.createInstances(),this.bindEvents()}createInstances(){const o=document.getElementById("booking-form-desktop");o&&this.instances.set("desktop",new BookingInstance(o,!1));const c=document.getElementById("booking-form-mobile");c&&this.instances.set("mobile",new BookingInstance(c,!0)),this.promoteCalendarModalsToBody()}promoteCalendarModalsToBody(){const move=()=>{document.querySelectorAll(".calendar-modal").forEach(o=>{o.parentElement!==document.body&&document.body.appendChild(o)})};requestAnimationFrame(move),[0,50,150,400,1e3].forEach(o=>setTimeout(move,o))}bindEvents(){document.addEventListener("click",o=>
35{if(o.target.closest(".booking-dropdown__close"))return o.stopPropagation(),void this.closeAllDropdowns();const c=o.target.closest(".booking-field__dropdown");c&&(o.stopPropagation(),this.toggleDropdown(c))}),document.addEventListener("keydown",o=>{const c=o.target.closest(".booking-field__dropdown");!c||"Enter"!==o.key&&" "!==o.key||(o.preventDefault(),this.toggleDropdown(c))}),document.addEventListener("click",o=>{const c=o.target.closest(".booking-counter__btn");if(c){o.stopPropagation();const d=c.dataset.action,u=c.dataset.target;this.updateCounter(u,d)}}),document.addEventListener("keydown",o=>{const c=o.target.closest(".booking-counter__btn");if(c&&("Enter"===o.key||" "===o.key)){o.preventDefault();const d=c.dataset.action,u=c.dataset.target;this.updateCounter(u,d)}}),document.addEventListener("submit",o=>{if("booking-form-desktop"===o.target.id||"booking-form-mobile"===o.target.id){const c="booking-form-mobile"===o.target.id,d=this.instances.get(c?"mobile":"desktop");!!d&&d.handleBooking()||o.preventDefault()}}),document.addEventListener("click",o=>{o.target.closest(".booking-field")||this.closeAllDropdowns()}),document.addEventListener("keydown",o=>{"Escape"===o.key&&this.closeAllDropdowns()})}toggleDropdown(o){const c=o.dataset.target,d=document.getElementById(c),u=d?.classList.contains("active");if(this.closeAllDropdowns(),!u&&d){d.classList.add("active"),d.setAttribute("aria-hidden","false"),o.classList.add("active"),o.setAttribute("aria-expanded","true");const c=d.querySelector(".booking-counter__btn");c&&setTimeout(()=>c.focus(),100)}}closeAllDropdowns(){document.querySelectorAll(".booking-dropdown.active").forEach(o=>{o.classList.remove("active"),o.setAttribute("aria-hidden","true")}),document.querySelectorAll(".booking-field__dropdown.active").forEach(o=>{o.classList.remove("active"),o.setAttribute("aria-expanded","false")})}updateCounter(o,c){const d=o.includes("-mobile"),u=this.instances.get(d?"mobile":"desktop");u&&u.updateCounter(o,c)}}class MobilePanelController{constructor(){this.button=document.querySelector(".booking-bar__mobile-btn"),this.panel=document.querySelector(".booking-bar__content--mobile"),this.closeBtn=document.querySelector(".booking-bar__content--mobile .close-btn"),this.button&&this.panel&&this.init()}init(){this.button.addEventListener("click",()=>this.toggle()),this.closeBtn&&this.closeBtn.addEventListener("click",()=>this.close()),document.addEventListener("keydown",o=>{"Escape"===o.key&&this.isOpen()&&this.close()})}isOpen(){return this.panel.classList.contains("active")}toggle(){this.isOpen()?this.close():this.open()}open(){this.panel.classList.add("active"),this.panel.setAttribute("aria-hidden","false"),this.button.setAttribute("aria-expanded","true"),this.button.textContent="Close",document.body.classList.add("stop-scroll"),document.querySelector(".site-header")?.style.setProperty("display","none"),this._slideDown(this.panel)}close(){this._slideUp(this.panel,()=>this.panel.classList.remove("active")),this.panel.setAttribute("aria-hidden","true"),this.button.setAttribute("aria-expanded","false"),this.button.textContent=this.button.dataset.text||"Book now",document.body.classList.remove("stop-scroll"),document.querySelector(".site-header")?.style.removeProperty("display")}_slideDown(o){o.style.display="block",o.style.overflow="hidden",o.style.maxHeight="0",o.offsetHeight,o.style.transition="max-height 0.35s ease",o.style.maxHeight=o.scrollHeight+"px",o.addEventListener("transitionend",()=>{o.style.maxHeight="",o.style.overflow="",o.style.transition=""},{once:!0})}_slideUp(o,c){o.style.maxHeight=o.scrollHeight+"px",o.style.overflow="hidden",o.offsetHeight,o.style.transition="max-height 0.35s ease",o.style.maxHeight="0",o.addEventListener("transitionend",()=>{o.style.display="none",o.style.maxHeight="",o.style.overflow="",o.style.transition="",c&&c()},{once:!0})}}class StickyController{constructor(){this.bookingBar=document.querySelector(".booking-bar--module"),this.bookingBar&&(this.config={enabled:"true"===this.bookingBar.dataset.sticky,offset:parseInt(this.bookingBar.dataset.stickyOffset,10)||106},this.config.enabled&&this.init())}init(){const o=this.bookingBar.getBoundingClientRect().top+window.scrollY-this.config.offset;let c=!1;window.addEventListener("scroll",()=>{const d=window.scrollY;d>
35=o&&!c?(this.bookingBar.classList.add("booking-bar--fixed"),this.bookingBar.style.top=`${this.config.offset}px`,c=!0,document.body.classList.add("booking-bar-fixed")):d<o&&c&&(this.bookingBar.classList.remove("booking-bar--fixed"),this.bookingBar.style.removeProperty("top"),c=!1,document.body.classList.remove("booking-bar-fixed")),document.body.classList.contains("admin-bar")&&this.bookingBar.classList.add("admin-bar-fixed")})}}class MobileButtonColorController{constructor(){const o=document.querySelector(".booking-bar__mobile-btn");if(!o)return;const c=document.querySelectorAll("footer");c.length&&c.forEach(c=>{pi.create({trigger:c,onEnter:()=>o.classList.add("color"),onLeave:()=>o.classList.remove("color"),onEnterBack:()=>o.classList.add("color"),onLeaveBack:()=>o.classList.remove("color")})})}}new class{constructor(){this.init()}init(){"loading"===document.readyState?document.addEventListener("DOMContentLoaded",()=>this.setup()):this.setup()}setup(){document.querySelector(".booking-bar--module, .booking-bar--mobile-global")&&(new BookingManager,new MobilePanelController,new StickyController,new MobileButtonColorController)}};
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.