function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor))throw new TypeError("Cannot call a class as a function")}function _defineProperties(target,props){for(var i=0;it)prev=prev._prev}return prev?(child._next=prev._next,prev._next=child):(child._next=parent[firstProp],parent[firstProp]=child),child._next?child._next._prev=child:parent[lastProp]=child,child._prev=prev,child.parent=child._dp=parent,child},_removeLinkedListItem=function _removeLinkedListItem(parent,child,firstProp,lastProp){firstProp===void 0&&(firstProp="_first"),lastProp===void 0&&(lastProp="_last");var prev=child._prev,next=child._next;prev?prev._next=next:parent[firstProp]===child&&(parent[firstProp]=next),next?next._prev=prev:parent[lastProp]===child&&(parent[lastProp]=prev),child._next=child._prev=child.parent=null},_removeFromParent=function _removeFromParent(child,onlyIfParentHasAutoRemove){child.parent&&(!onlyIfParentHasAutoRemove||child.parent.autoRemoveChildren)&&child.parent.remove&&child.parent.remove(child),child._act=0},_uncache=function _uncache(animation,child){if(animation&&(!child||child._end>animation._dur||child._start<0)){var a=animation;while(a)a._dirty=1,a=a.parent}return animation},_recacheAncestors=function _recacheAncestors(animation){var parent=animation.parent;while(parent&&parent.parent)parent._dirty=1,parent.totalDuration(),parent=parent.parent;return animation},_rewindStartAt=function _rewindStartAt(tween,totalTime,suppressEvents,force){return tween._startAt&&(_reverting?tween._startAt.revert(_revertConfigNoKill):tween.vars.immediateRender&&!tween.vars.autoRevert||tween._startAt.render(totalTime,!0,force))},_hasNoPausedAncestors=function _hasNoPausedAncestors(animation){return!animation||animation._ts&&_hasNoPausedAncestors(animation.parent)},_elapsedCycleDuration=function _elapsedCycleDuration(animation){return animation._repeat?_animationCycle(animation._tTime,animation=animation.duration()+animation._rDelay)*animation:0},_animationCycle=function _animationCycle(tTime,cycleDuration){var whole=Math.floor(tTime/=cycleDuration);return tTime&&whole===tTime?whole-1:whole},_parentToChildTotalTime=function _parentToChildTotalTime(parentTime,child){return(parentTime-child._start)*child._ts+(child._ts>=0?0:child._dirty?child.totalDuration():child._tDur)},_setEnd=function _setEnd(animation){return animation._end=_roundPrecise(animation._start+(animation._tDur/Math.abs(animation._ts||animation._rts||_tinyNum)||0))},_alignPlayhead=function _alignPlayhead(animation,totalTime){var parent=animation._dp;return parent&&parent.smoothChildTiming&&animation._ts&&(animation._start=_roundPrecise(parent._time-(animation._ts>0?totalTime/animation._ts:((animation._dirty?animation.totalDuration():animation._tDur)-totalTime)/-animation._ts)),_setEnd(animation),parent._dirty||_uncache(parent,animation)),animation},_postAddChecks=function _postAddChecks(timeline,child){var t;if(child._time||!child._dur&&child._initted||child._start_tinyNum)&&child.render(t,!0);if(_uncache(timeline,child)._dp&&timeline._initted&&timeline._time>=timeline._dur&&timeline._ts){if(timeline._dur=0&&t.totalTime(t._tTime),t=t._dp}timeline._zTime=-_tinyNum}},_addToTimeline=function _addToTimeline(timeline,child,position,skipChecks){return child.parent&&_removeFromParent(child),child._start=_roundPrecise((_isNumber(position)?position:position||timeline!==_globalTimeline?_parsePosition(timeline,position,child):timeline._time)+child._delay),child._end=_roundPrecise(child._start+(child.totalDuration()/Math.abs(child.timeScale())||0)),_addLinkedListItem(timeline,child,"_first","_last",timeline._sort?"_start":0),_isFromOrFromStart(child)||(timeline._recent=child),skipChecks||_postAddChecks(timeline,child),timeline._ts<0&&_alignPlayhead(timeline,timeline._tTime),timeline},_scrollTrigger=function _scrollTrigger(animation,trigger){return(_globals.ScrollTrigger||_missingPlugin("scrollTrigger",trigger))&&_globals.ScrollTrigger.create(trigger,animation)},_attemptInitTween=function _attemptInitTween(tween,time,force,suppressEvents,tTime){_initTween(tween,time,tTime);if(!tween._initted)return 1;if(!force&&tween._pt&&!_reverting&&(tween._dur&&tween.vars.lazy!==!1||!tween._dur&&tween.vars.lazy)&&_lastRenderedFrame!==_ticker.frame)return _lazyTweens.push(tween),tween._lazy=[tTime,suppressEvents],1},_parentPlayheadIsBeforeStart=function _parentPlayheadIsBeforeStart(_ref){var parent=_ref.parent;return parent&&parent._ts&&parent._initted&&!parent._lock&&(parent.rawTime()<0||_parentPlayheadIsBeforeStart(parent))},_isFromOrFromStart=function _isFromOrFromStart(_ref2){var data=_ref2.data;return data==="isFromStart"||data==="isStart"},_renderZeroDurationTween=function _renderZeroDurationTween(tween,totalTime,suppressEvents,force){var prevRatio=tween.ratio,ratio=totalTime<0||!totalTime&&(!tween._start&&_parentPlayheadIsBeforeStart(tween)&&(!!tween._initted||!_isFromOrFromStart(tween))||(tween._ts<0||tween._dp._ts<0)&&!_isFromOrFromStart(tween))?0:1,repeatDelay=tween._rDelay,tTime=0,pt,iteration,prevIteration;repeatDelay&&tween._repeat&&(tTime=_clamp(0,tween._tDur,totalTime),iteration=_animationCycle(tTime,repeatDelay),tween._yoyo&&iteration&1&&(ratio=1-ratio),iteration!==_animationCycle(tween._tTime,repeatDelay)&&(prevRatio=1-ratio,tween.vars.repeatRefresh&&tween._initted&&tween.invalidate()));if(ratio!==prevRatio||_reverting||force||tween._zTime===_tinyNum||!totalTime&&tween._zTime){if(!tween._initted&&_attemptInitTween(tween,totalTime,force,suppressEvents,tTime))return;prevIteration=tween._zTime,tween._zTime=totalTime||(suppressEvents?_tinyNum:0),suppressEvents||(suppressEvents=totalTime&&!prevIteration),tween.ratio=ratio,tween._from&&(ratio=1-ratio),tween._time=0,tween._tTime=tTime,pt=tween._pt;while(pt)pt.r(ratio,pt.d),pt=pt._next;totalTime<0&&_rewindStartAt(tween,totalTime,suppressEvents,!0),tween._onUpdate&&!suppressEvents&&_callback(tween,"onUpdate"),tTime&&tween._repeat&&!suppressEvents&&tween.parent&&_callback(tween,"onRepeat"),(totalTime>=tween._tDur||totalTime<0)&&tween.ratio===ratio&&(ratio&&_removeFromParent(tween,1),!suppressEvents&&!_reverting&&(_callback(tween,ratio?"onComplete":"onReverseComplete",!0),tween._prom&&tween._prom()))}else tween._zTime||(tween._zTime=totalTime)},_findNextPauseTween=function _findNextPauseTween(animation,prevTime,time){var child;if(time>prevTime){child=animation._first;while(child&&child._start<=time){if(child.data==="isPause"&&child._start>prevTime)return child;child=child._next}}else{child=animation._last;while(child&&child._start>=time){if(child.data==="isPause"&&child._start0&&!leavePlayhead&&_alignPlayhead(animation,animation._tTime=animation._tDur*totalProgress),animation.parent&&_setEnd(animation),skipUncache||_uncache(animation.parent,animation),animation},_onUpdateTotalDuration=function _onUpdateTotalDuration(animation){return animation instanceof Timeline?_uncache(animation):_setDuration(animation,animation._dur)},_zeroPosition={_start:0,endTime:_emptyFunc,totalDuration:_emptyFunc},_parsePosition=function _parsePosition(animation,position,percentAnimation){var labels=animation.labels,recent=animation._recent||_zeroPosition,clippedDuration=animation.duration()>=_bigNum?recent.endTime(!1):animation._dur,i,offset,isPercent;return _isString(position)&&(isNaN(position)||position in labels)?(offset=position.charAt(0),isPercent=position.substr(-1)==="%",i=position.indexOf("="),offset==="<"||offset===">"?(i>=0&&(position=position.replace(/=/,"")),(offset==="<"?recent._start:recent.endTime(recent._repeat>=0))+(parseFloat(position.substr(1))||0)*(isPercent?(i<0?recent:percentAnimation).totalDuration()/100:1)):i<0?(position in labels||(labels[position]=clippedDuration),labels[position]):(offset=parseFloat(position.charAt(i-1)+position.substr(i+1)),isPercent&&percentAnimation&&(offset=offset/100*(_isArray(percentAnimation)?percentAnimation[0]:percentAnimation).totalDuration()),i>1?_parsePosition(animation,position.substr(0,i-1),percentAnimation)+offset:clippedDuration+offset)):position==null?clippedDuration:+position},_createTweenType=function _createTweenType(type,params,timeline){var isLegacy=_isNumber(params[1]),varsIndex=(isLegacy?2:1)+(type<2?0:1),vars=params[varsIndex],irVars,parent;isLegacy&&(vars.duration=params[1]),vars.parent=timeline;if(type){irVars=vars,parent=timeline;while(parent&&!("immediateRender"in irVars))irVars=parent.vars.defaults||{},parent=_isNotFalse(parent.vars.inherit)&&parent.parent;vars.immediateRender=_isNotFalse(irVars.immediateRender),type<2?vars.runBackwards=1:vars.startAt=params[varsIndex-1]}return new Tween(params[0],vars,params[varsIndex+1])},_conditionalReturn=function _conditionalReturn(value,func){return value||value===0?func(value):func},_clamp=function _clamp(min,max,value){return valuemax?max:value},getUnit=function getUnit(value,v){return!_isString(value)||!(v=_unitExp.exec(value))?"":v[1]},clamp=function clamp(min,max,value){return _conditionalReturn(value,function(v){return _clamp(min,max,v)})},_slice=[].slice,_isArrayLike=function _isArrayLike(value,nonEmpty){return value&&_isObject(value)&&"length"in value&&(!nonEmpty&&!value.length||value.length-1 in value&&_isObject(value[0]))&&!value.nodeType&&value!==_win},_flatten=function _flatten(ar,leaveStrings,accumulator){return accumulator===void 0&&(accumulator=[]),ar.forEach(function(value){var _accumulator;return _isString(value)&&!leaveStrings||_isArrayLike(value,1)?(_accumulator=accumulator).push.apply(_accumulator,toArray(value)):accumulator.push(value)})||accumulator},toArray=function toArray(value,scope,leaveStrings){return _context&&!scope&&_context.selector?_context.selector(value):_isString(value)&&!leaveStrings&&(_coreInitted||!_wake())?_slice.call((scope||_doc).querySelectorAll(value),0):_isArray(value)?_flatten(value,leaveStrings):_isArrayLike(value)?_slice.call(value,0):value?[value]:[]},selector=function selector(value){return value=toArray(value)[0]||_warn("Invalid scope")||{},function(v){var el=value.current||value.nativeElement||value;return toArray(v,el.querySelectorAll?el:el===value?_warn("Invalid scope")||_doc.createElement("div"):value)}},shuffle=function shuffle(a){return a.sort(function(){return.5-Math.random()})},distribute=function distribute(v){if(_isFunction(v))return v;var vars=_isObject(v)?v:{each:v},ease=_parseEase(vars.ease),from=vars.from||0,base=parseFloat(vars.base)||0,cache={},isDecimal=from>0&&from<1,ratios=isNaN(from)||isDecimal,axis=vars.axis,ratioX=from,ratioY=from;return _isString(from)?ratioX=ratioY={center:.5,edges:.5,end:1}[from]||0:!isDecimal&&ratios&&(ratioX=from[0],ratioY=from[1]),function(i,target,a){var l=(a||vars).length,distances=cache[l],originX,originY,x,y,d,j,max,min,wrapAt;if(!distances){wrapAt=vars.grid==="auto"?0:(vars.grid||[1,_bigNum])[1];if(!wrapAt){max=-_bigNum;while(max<(max=a[wrapAt++].getBoundingClientRect().left)&&wrapAtmax&&(max=d),dl?l-1:axis?axis==="y"?l/wrapAt:wrapAt:Math.max(wrapAt,l/wrapAt))||0)*(from==="edges"?-1:1),distances.b=l<0?base-l:base,distances.u=getUnit(vars.amount||vars.each)||0,ease=ease&&l<0?_invertEase(ease):ease}return l=(distances[i]-distances.min)/distances.max||0,_roundPrecise(distances.b+(ease?ease(l):l)*distances.v)+distances.u}},_roundModifier=function _roundModifier(v){var p=Math.pow(10,((v+"").split(".")[1]||"").length);return function(raw){var n=_roundPrecise(Math.round(parseFloat(raw)/v)*v*p);return(n-n%1)/p+(_isNumber(raw)?0:getUnit(raw))}},snap=function snap(snapTo,value){var isArray=_isArray(snapTo),radius,is2D;if(!isArray&&_isObject(snapTo)){radius=isArray=snapTo.radius||_bigNum;if(snapTo.values){snapTo=toArray(snapTo.values);if(is2D=!_isNumber(snapTo[0]))radius*=radius}else snapTo=_roundModifier(snapTo.increment)}return _conditionalReturn(value,isArray?_isFunction(snapTo)?function(raw){return is2D=snapTo(raw),Math.abs(is2D-raw)<=radius?is2D:raw}:function(raw){var x=parseFloat(is2D?raw.x:raw),y=parseFloat(is2D?raw.y:0),min=_bigNum,closest=0,i=snapTo.length,dx,dy;while(i--)is2D?(dx=snapTo[i].x-x,dy=snapTo[i].y-y,dx=dx*dx+dy*dy):dx=Math.abs(snapTo[i]-x),dxrange?total-value:value)})},_replaceRandom=function _replaceRandom(value){var prev=0,s="",i,nums,end,isArray;while(~(i=value.indexOf("random(",prev)))end=value.indexOf(")",i),isArray=value.charAt(i+7)==="[",nums=value.substr(i+7,end-i-7).match(isArray?_delimitedValueExp:_strictNumExp),s+=value.substr(prev,i-prev)+random(isArray?nums:+nums[0],isArray?0:+nums[1],+nums[2]||1e-5),prev=end+1;return s+value.substr(prev,value.length-prev)},mapRange=function mapRange(inMin,inMax,outMin,outMax,value){var inRange=inMax-inMin,outRange=outMax-outMin;return _conditionalReturn(value,function(value){return outMin+((value-inMin)/inRange*outRange||0)})},interpolate=function interpolate(start,end,progress,mutate){var func=isNaN(start+end)?0:function(p){return(1-p)*start+p*end};if(!func){var isString=_isString(start),master={},p,i,interpolators,l,il;progress===!0&&(mutate=1)&&(progress=null);if(isString)start={p:start},end={p:end};else if(_isArray(start)&&!_isArray(end)){interpolators=[],l=start.length,il=l-2;for(i=1;i(distance=Math.abs(distance))&&(label=p,min=distance);return label},_callback=function _callback(animation,type,executeLazyFirst){var v=animation.vars,callback=v[type],prevContext=_context,context=animation._ctx,params,scope,result;if(!callback)return;return params=v[type+"Params"],scope=v.callbackScope||animation,executeLazyFirst&&_lazyTweens.length&&_lazyRender(),context&&(_context=context),result=params?callback.apply(scope,params):callback.call(scope),_context=prevContext,result},_interrupt=function _interrupt(animation){return _removeFromParent(animation),animation.scrollTrigger&&animation.scrollTrigger.kill(!!_reverting),animation.progress()<1&&_callback(animation,"onInterrupt"),animation},_quickTween,_registerPluginQueue=[],_createPlugin=function _createPlugin(config){if(!config)return;config=!config.name&&config["default"]||config;if(_windowExists()||config.headless){var name=config.name,isFunc=_isFunction(config),Plugin=name&&!isFunc&&config.init?function(){this._props=[]}:config,instanceDefaults={init:_emptyFunc,render:_renderPropTweens,add:_addPropTween,kill:_killPropTweensOf,modifier:_addPluginModifier,rawVars:0},statics={targetTest:0,get:0,getSetter:_getSetter,aliases:{},register:0};_wake();if(config!==Plugin){if(_plugins[name])return;_setDefaults(Plugin,_setDefaults(_copyExcluding(config,instanceDefaults),statics)),_merge(Plugin.prototype,_merge(instanceDefaults,_copyExcluding(config,statics))),_plugins[Plugin.prop=name]=Plugin,config.targetTest&&(_harnessPlugins.push(Plugin),_reservedProps[name]=1),name=(name==="css"?"CSS":name.charAt(0).toUpperCase()+name.substr(1))+"Plugin"}_addGlobal(name,Plugin),config.register&&config.register(gsap,Plugin,PropTween)}else _registerPluginQueue.push(config)},_255=255,_colorLookup={aqua:[0,_255,_255],lime:[0,_255,0],silver:[192,192,192],black:[0,0,0],maroon:[128,0,0],teal:[0,128,128],blue:[0,0,_255],navy:[0,0,128],white:[_255,_255,_255],olive:[128,128,0],yellow:[_255,_255,0],orange:[_255,165,0],gray:[128,128,128],purple:[128,0,128],green:[0,128,0],red:[_255,0,0],pink:[_255,192,203],cyan:[0,_255,_255],transparent:[_255,_255,_255,0]},_hue=function _hue(h,m1,m2){return h+=h<0?1:h>1?-1:0,(h*6<1?m1+(m2-m1)*h*6:h<.5?m2:h*3<2?m1+(m2-m1)*(2/3-h)*6:m1)*_255+.5|0},splitColor=function splitColor(v,toHSL,forceAlpha){var a=v?_isNumber(v)?[v>>16,v>>8&_255,v&_255]:0:_colorLookup.black,r,g,b,h,s,l,max,min,d,wasHSL;if(!a){v.substr(-1)===","&&(v=v.substr(0,v.length-1));if(_colorLookup[v])a=_colorLookup[v];else if(v.charAt(0)==="#"){v.length<6&&(r=v.charAt(1),g=v.charAt(2),b=v.charAt(3),v="#"+r+r+g+g+b+b+(v.length===5?v.charAt(4)+v.charAt(4):""));if(v.length===9)return a=parseInt(v.substr(1,6),16),[a>>16,a>>8&_255,a&_255,parseInt(v.substr(7),16)/255];v=parseInt(v.substr(1),16),a=[v>>16,v>>8&_255,v&_255]}else if(v.substr(0,3)==="hsl"){a=wasHSL=v.match(_strictNumExp);if(!toHSL)h=+a[0]%360/360,s=+a[1]/100,l=+a[2]/100,g=l<=.5?l*(s+1):l+s-l*s,r=l*2-g,a.length>3&&(a[3]*=1),a[0]=_hue(h+1/3,r,g),a[1]=_hue(h,r,g),a[2]=_hue(h-1/3,r,g);else if(~v.indexOf("="))return a=v.match(_numExp),forceAlpha&&a.length<4&&(a[3]=1),a}else a=v.match(_strictNumExp)||_colorLookup.transparent;a=a.map(Number)}return toHSL&&!wasHSL&&(r=a[0]/_255,g=a[1]/_255,b=a[2]/_255,max=Math.max(r,g,b),min=Math.min(r,g,b),l=(max+min)/2,max===min?h=s=0:(d=max-min,s=l>.5?d/(2-max-min):d/(max+min),h=max===r?(g-b)/d+(g_lagThreshold||elapsed<0)&&(_startTime+=elapsed-_adjustedLag),_lastUpdate+=elapsed,time=_lastUpdate-_startTime,overlap=time-_nextTime;if(overlap>0||manual)frame=++_self.frame,_delta=time-_self.time*1e3,_self.time=time/=1e3,_nextTime+=overlap+(overlap>=_gap?4:_gap-overlap),dispatch=1;manual||(_id=_req(_tick));if(dispatch)for(_i=0;_i<_listeners.length;_i++)_listeners[_i](time,_delta,frame,v)};return _self={time:0,frame:0,tick:function tick(){_tick(!0)},deltaRatio:function deltaRatio(fps){return _delta/(1e3/(fps||60))},wake:function wake(){_coreReady&&(!_coreInitted&&_windowExists()&&(_win=_coreInitted=window,_doc=_win.document||{},_globals.gsap=gsap,(_win.gsapVersions||(_win.gsapVersions=[])).push(gsap.version),_install(_installScope||_win.GreenSockGlobals||!_win.gsap&&_win||{}),_registerPluginQueue.forEach(_createPlugin)),_raf=typeof requestAnimationFrame!="undefined"&&requestAnimationFrame,_id&&_self.sleep(),_req=_raf||function(f){return setTimeout(f,_nextTime-_self.time*1e3+1|0)},_tickerActive=1,_tick(2))},sleep:function sleep(){(_raf?cancelAnimationFrame:clearTimeout)(_id),_tickerActive=0,_req=_emptyFunc},lagSmoothing:function lagSmoothing(threshold,adjustedLag){_lagThreshold=threshold||Infinity,_adjustedLag=Math.min(adjustedLag||33,_lagThreshold)},fps:function fps(_fps){_gap=1e3/(_fps||240),_nextTime=_self.time*1e3+_gap},add:function add(callback,once,prioritize){var func=once?function(t,d,f,v){callback(t,d,f,v),_self.remove(func)}:callback;return _self.remove(callback),_listeners[prioritize?"unshift":"push"](func),_wake(),func},remove:function remove(callback,i){~(i=_listeners.indexOf(callback))&&_listeners.splice(i,1)&&_i>=i&&_i--},_listeners:_listeners},_self}(),_wake=function _wake(){return!_tickerActive&&_ticker.wake()},_easeMap={},_customEaseExp=/^[\d.\-M][\d.\-,\s]/,_quotesExp=/["']/g,_parseObjectInString=function _parseObjectInString(value){var obj={},split=value.substr(1,value.length-3).split(":"),key=split[0],i=1,l=split.length,index,val,parsedVal;for(;i1&&ease.config?ease.config.apply(null,~name.indexOf("{")?[_parseObjectInString(split[1])]:_valueInParentheses(name).split(",").map(_numericIfPossible)):_easeMap._CE&&_customEaseExp.test(name)?_easeMap._CE("",name):ease},_invertEase=function _invertEase(ease){return function(p){return 1-ease(1-p)}},_propagateYoyoEase=function _propagateYoyoEase(timeline,isYoyo){var child=timeline._first,ease;while(child)child instanceof Timeline?_propagateYoyoEase(child,isYoyo):child.vars.yoyoEase&&(!child._yoyo||!child._repeat)&&child._yoyo!==isYoyo&&(child.timeline?_propagateYoyoEase(child.timeline,isYoyo):(ease=child._ease,child._ease=child._yEase,child._yEase=ease,child._yoyo=isYoyo)),child=child._next},_parseEase=function _parseEase(ease,defaultEase){return ease?(_isFunction(ease)?ease:_easeMap[ease]||_configEaseFromString(ease))||defaultEase:defaultEase},_insertEase=function _insertEase(names,easeIn,easeOut,easeInOut){easeOut===void 0&&(easeOut=function easeOut(p){return 1-easeIn(1-p)}),easeInOut===void 0&&(easeInOut=function easeInOut(p){return p<.5?easeIn(p*2)/2:1-easeIn((1-p)*2)/2});var ease={easeIn:easeIn,easeOut:easeOut,easeInOut:easeInOut},lowercaseName;return _forEachName(names,function(name){_easeMap[name]=_globals[name]=ease,_easeMap[lowercaseName=name.toLowerCase()]=easeOut;for(var p in ease)_easeMap[lowercaseName+(p==="easeIn"?".in":p==="easeOut"?".out":".inOut")]=_easeMap[name+"."+p]=ease[p]}),ease},_easeInOutFromOut=function _easeInOutFromOut(easeOut){return function(p){return p<.5?(1-easeOut(1-p*2))/2:.5+easeOut((p-.5)*2)/2}},_configElastic=function _configElastic(type,amplitude,period){var p1=amplitude>=1?amplitude:1,p2=(period||(type?.3:.45))/(amplitude<1?amplitude:1),p3=p2/_2PI*(Math.asin(1/p1)||0),easeOut=function easeOut(p){return p===1?1:p1*Math.pow(2,-10*p)*_sin((p-p3)*p2)+1},ease=type==="out"?easeOut:type==="in"?function(p){return 1-easeOut(1-p)}:_easeInOutFromOut(easeOut);return p2=_2PI/p2,ease.config=function(amplitude,period){return _configElastic(type,amplitude,period)},ease},_configBack=function _configBack(type,overshoot){overshoot===void 0&&(overshoot=1.70158);var easeOut=function easeOut(p){return p?--p*p*((overshoot+1)*p+overshoot)+1:0},ease=type==="out"?easeOut:type==="in"?function(p){return 1-easeOut(1-p)}:_easeInOutFromOut(easeOut);return ease.config=function(overshoot){return _configBack(type,overshoot)},ease};_forEachName("Linear,Quad,Cubic,Quart,Quint,Strong",function(name,i){var power=i<5?i+1:i;_insertEase(name+",Power"+(power-1),i?function(p){return Math.pow(p,power)}:function(p){return p},function(p){return 1-Math.pow(1-p,power)},function(p){return p<.5?Math.pow(p*2,power)/2:1-Math.pow((1-p)*2,power)/2})}),_easeMap.Linear.easeNone=_easeMap.none=_easeMap.Linear.easeIn,_insertEase("Elastic",_configElastic("in"),_configElastic("out"),_configElastic()),function(n,c){var n1=1/c,n2=2*n1,n3=2.5*n1,easeOut=function easeOut(p){return p0?value+(value+this._rDelay)*this._repeat:value):this.totalDuration()&&this._dur},_proto.totalDuration=function totalDuration(value){return arguments.length?(this._dirty=0,_setDuration(this,this._repeat<0?value:(value-this._repeat*this._rDelay)/(this._repeat+1))):this._tDur},_proto.totalTime=function totalTime(_totalTime,suppressEvents){_wake();if(!arguments.length)return this._tTime;var parent=this._dp;if(parent&&parent.smoothChildTiming&&this._ts){_alignPlayhead(this,_totalTime),!parent._dp||parent.parent||_postAddChecks(parent,this);while(parent&&parent.parent)parent.parent._time!==parent._start+(parent._ts>=0?parent._tTime/parent._ts:(parent.totalDuration()-parent._tTime)/-parent._ts)&&parent.totalTime(parent._tTime,!0),parent=parent.parent;!this.parent&&this._dp.autoRemoveChildren&&(this._ts>0&&_totalTime0||!this._tDur&&!_totalTime)&&_addToTimeline(this._dp,this,this._start-this._delay)}if(this._tTime!==_totalTime||!this._dur&&!suppressEvents||this._initted&&Math.abs(this._zTime)===_tinyNum||!_totalTime&&!this._initted&&(this.add||this._ptLookup))this._ts||(this._pTime=_totalTime),_lazySafeRender(this,_totalTime,suppressEvents);return this},_proto.time=function time(value,suppressEvents){return arguments.length?this.totalTime(Math.min(this.totalDuration(),value+_elapsedCycleDuration(this))%(this._dur+this._rDelay)||(value?this._dur:0),suppressEvents):this._time},_proto.totalProgress=function totalProgress(value,suppressEvents){return arguments.length?this.totalTime(this.totalDuration()*value,suppressEvents):this.totalDuration()?Math.min(1,this._tTime/this._tDur):this.rawTime()>0?1:0},_proto.progress=function progress(value,suppressEvents){return arguments.length?this.totalTime(this.duration()*(this._yoyo&&!(this.iteration()&1)?1-value:value)+_elapsedCycleDuration(this),suppressEvents):this.duration()?Math.min(1,this._time/this._dur):this.rawTime()>0?1:0},_proto.iteration=function iteration(value,suppressEvents){var cycleDuration=this.duration()+this._rDelay;return arguments.length?this.totalTime(this._time+(value-1)*cycleDuration,suppressEvents):this._repeat?_animationCycle(this._tTime,cycleDuration)+1:1},_proto.timeScale=function timeScale(value,suppressEvents){if(!arguments.length)return this._rts===-_tinyNum?0:this._rts;if(this._rts===value)return this;var tTime=this.parent&&this._ts?_parentToChildTotalTime(this.parent._time,this):this._tTime;return this._rts=+value||0,this._ts=this._ps||value===-_tinyNum?0:this._rts,this.totalTime(_clamp(-Math.abs(this._delay),this._tDur,tTime),suppressEvents!==!1),_setEnd(this),_recacheAncestors(this)},_proto.paused=function paused(value){return arguments.length?(this._ps!==value&&(this._ps=value,value?(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,this.progress()===1&&Math.abs(this._zTime)!==_tinyNum&&(this._tTime-=_tinyNum)))),this):this._ps},_proto.startTime=function startTime(value){if(arguments.length){this._start=value;var parent=this.parent||this._dp;return parent&&(parent._sort||!this.parent)&&_addToTimeline(parent,this,value-this._delay),this}return this._start},_proto.endTime=function endTime(includeRepeats){return this._start+(_isNotFalse(includeRepeats)?this.totalDuration():this.duration())/Math.abs(this._ts||1)},_proto.rawTime=function rawTime(wrapRepeats){var parent=this.parent||this._dp;return parent?wrapRepeats&&(!this._ts||this._repeat&&this._time&&this.totalProgress()<1)?this._tTime%(this._dur+this._rDelay):this._ts?_parentToChildTotalTime(parent.rawTime(wrapRepeats),this):this._tTime:this._tTime},_proto.revert=function revert(config){config===void 0&&(config=_revertConfig);var prevIsReverting=_reverting;_reverting=config;if(this._initted||this._startAt)this.timeline&&this.timeline.revert(config),this.totalTime(-0.01,config.suppressEvents);return this.data!=="nested"&&config.kill!==!1&&this.kill(),_reverting=prevIsReverting,this},_proto.globalTime=function globalTime(rawTime){var animation=this,time=arguments.length?rawTime:animation.rawTime();while(animation)time=animation._start+time/(Math.abs(animation._ts)||1),animation=animation._dp;return!this.parent&&this._sat?this._sat.globalTime(rawTime):time},_proto.repeat=function repeat(value){return arguments.length?(this._repeat=value===Infinity?-2:value,_onUpdateTotalDuration(this)):this._repeat===-2?Infinity:this._repeat},_proto.repeatDelay=function repeatDelay(value){if(arguments.length){var time=this._time;return this._rDelay=value,_onUpdateTotalDuration(this),time?this.time(time):this}return this._rDelay},_proto.yoyo=function yoyo(value){return arguments.length?(this._yoyo=value,this):this._yoyo},_proto.seek=function seek(position,suppressEvents){return this.totalTime(_parsePosition(this,position),_isNotFalse(suppressEvents))},_proto.restart=function restart(includeDelay,suppressEvents){return this.play().totalTime(includeDelay?-this._delay:0,_isNotFalse(suppressEvents))},_proto.play=function play(from,suppressEvents){return from!=null&&this.seek(from,suppressEvents),this.reversed(!1).paused(!1)},_proto.reverse=function reverse(from,suppressEvents){return from!=null&&this.seek(from||this.totalDuration(),suppressEvents),this.reversed(!0).paused(!1)},_proto.pause=function pause(atTime,suppressEvents){return atTime!=null&&this.seek(atTime,suppressEvents),this.paused(!0)},_proto.resume=function resume(){return this.paused(!1)},_proto.reversed=function reversed(value){return arguments.length?(!!value!==this.reversed()&&this.timeScale(-this._rts||(value?-_tinyNum:0)),this):this._rts<0},_proto.invalidate=function invalidate(){return this._initted=this._act=0,this._zTime=-_tinyNum,this},_proto.isActive=function isActive(){var parent=this.parent||this._dp,start=this._start,rawTime;return!!(!parent||this._ts&&this._initted&&parent.isActive()&&(rawTime=parent.rawTime(!0))>=start&&rawTime1?(callback?(vars[type]=callback,params&&(vars[type+"Params"]=params),type==="onUpdate"&&(this._onUpdate=callback)):delete vars[type],this):vars[type]},_proto.then=function then(onFulfilled){var self=this;return new Promise(function(resolve){var f=_isFunction(onFulfilled)?onFulfilled:_passThrough,_resolve=function _resolve(){var _then=self.then;self.then=null,_isFunction(f)&&(f=f(self))&&(f.then||f===self)&&(self.then=_then),resolve(f),self.then=_then};self._initted&&self.totalProgress()===1&&self._ts>=0||!self._tTime&&self._ts<0?_resolve():self._prom=_resolve})},_proto.kill=function kill(){_interrupt(this)},Animation}();_setDefaults(Animation.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:-_tinyNum,_prom:0,_ps:!1,_rts:1});var Timeline=function(_Animation){function Timeline(vars,position){var _this;return vars===void 0&&(vars={}),_this=_Animation.call(this,vars)||this,_this.labels={},_this.smoothChildTiming=!!vars.smoothChildTiming,_this.autoRemoveChildren=!!vars.autoRemoveChildren,_this._sort=_isNotFalse(vars.sortChildren),_globalTimeline&&_addToTimeline(vars.parent||_globalTimeline,_assertThisInitialized(_this),position),vars.reversed&&_this.reverse(),vars.paused&&_this.paused(!0),vars.scrollTrigger&&_scrollTrigger(_assertThisInitialized(_this),vars.scrollTrigger),_this}_inheritsLoose(Timeline,_Animation);var _proto2=Timeline.prototype;return _proto2.to=function to(targets,vars,position){return _createTweenType(0,arguments,this),this},_proto2.from=function from(targets,vars,position){return _createTweenType(1,arguments,this),this},_proto2.fromTo=function fromTo(targets,fromVars,toVars,position){return _createTweenType(2,arguments,this),this},_proto2.set=function set(targets,vars,position){return vars.duration=0,vars.parent=this,_inheritDefaults(vars).repeatDelay||(vars.repeat=0),vars.immediateRender=!!vars.immediateRender,new Tween(targets,vars,_parsePosition(this,position),1),this},_proto2.call=function call(callback,params,position){return _addToTimeline(this,Tween.delayedCall(0,callback,params),position)},_proto2.staggerTo=function staggerTo(targets,duration,vars,stagger,position,onCompleteAll,onCompleteAllParams){return vars.duration=duration,vars.stagger=vars.stagger||stagger,vars.onComplete=onCompleteAll,vars.onCompleteParams=onCompleteAllParams,vars.parent=this,new Tween(targets,vars,_parsePosition(this,position)),this},_proto2.staggerFrom=function staggerFrom(targets,duration,vars,stagger,position,onCompleteAll,onCompleteAllParams){return vars.runBackwards=1,_inheritDefaults(vars).immediateRender=_isNotFalse(vars.immediateRender),this.staggerTo(targets,duration,vars,stagger,position,onCompleteAll,onCompleteAllParams)},_proto2.staggerFromTo=function staggerFromTo(targets,duration,fromVars,toVars,stagger,position,onCompleteAll,onCompleteAllParams){return toVars.startAt=fromVars,_inheritDefaults(toVars).immediateRender=_isNotFalse(toVars.immediateRender),this.staggerTo(targets,duration,toVars,stagger,position,onCompleteAll,onCompleteAllParams)},_proto2.render=function render(totalTime,suppressEvents,force){var prevTime=this._time,tDur=this._dirty?this.totalDuration():this._tDur,dur=this._dur,tTime=totalTime<=0?0:_roundPrecise(totalTime),crossingStart=this._zTime<0!=totalTime<0&&(this._initted||!dur),time,child,next,iteration,cycleDuration,prevPaused,pauseTween,timeScale,prevStart,prevIteration,yoyo,isYoyo;this!==_globalTimeline&&tTime>tDur&&totalTime>=0&&(tTime=tDur);if(tTime!==this._tTime||force||crossingStart){prevTime!==this._time&&dur&&(tTime+=this._time-prevTime,totalTime+=this._time-prevTime),time=tTime,prevStart=this._start,timeScale=this._ts,prevPaused=!timeScale,crossingStart&&(dur||(prevTime=this._zTime),(totalTime||!suppressEvents)&&(this._zTime=totalTime));if(this._repeat){yoyo=this._yoyo,cycleDuration=dur+this._rDelay;if(this._repeat<-1&&totalTime<0)return this.totalTime(cycleDuration*100+totalTime,suppressEvents,force);time=_roundPrecise(tTime%cycleDuration),tTime===tDur?(iteration=this._repeat,time=dur):(iteration=~~(tTime/cycleDuration),iteration&&iteration===tTime/cycleDuration&&(time=dur,iteration--),time>dur&&(time=dur)),prevIteration=_animationCycle(this._tTime,cycleDuration),!prevTime&&this._tTime&&prevIteration!==iteration&&this._tTime-prevIteration*cycleDuration-this._dur<=0&&(prevIteration=iteration),yoyo&&iteration&1&&(time=dur-time,isYoyo=1);if(iteration!==prevIteration&&!this._lock){var rewinding=yoyo&&prevIteration&1,doesWrap=rewinding===(yoyo&&iteration&1);iteration=prevTime&&totalTime>=0){child=this._first;while(child){next=child._next;if((child._act||time>=child._start)&&child._ts&&pauseTween!==child){if(child.parent!==this)return this.render(totalTime,suppressEvents,force);child.render(child._ts>0?(time-child._start)*child._ts:(child._dirty?child.totalDuration():child._tDur)+(time-child._start)*child._ts,suppressEvents,force);if(time!==this._time||!this._ts&&!prevPaused){pauseTween=0,next&&(tTime+=this._zTime=-_tinyNum);break}}child=next}}else{child=this._last;var adjustedTime=totalTime<0?totalTime:time;while(child){next=child._prev;if((child._act||adjustedTime<=child._end)&&child._ts&&pauseTween!==child){if(child.parent!==this)return this.render(totalTime,suppressEvents,force);child.render(child._ts>0?(adjustedTime-child._start)*child._ts:(child._dirty?child.totalDuration():child._tDur)+(adjustedTime-child._start)*child._ts,suppressEvents,force||_reverting&&(child._initted||child._startAt));if(time!==this._time||!this._ts&&!prevPaused){pauseTween=0,next&&(tTime+=this._zTime=adjustedTime?-_tinyNum:_tinyNum);break}}child=next}}if(pauseTween&&!suppressEvents){this.pause(),pauseTween.render(time>=prevTime?0:-_tinyNum)._zTime=time>=prevTime?1:-1;if(this._ts)return this._start=prevStart,_setEnd(this),this.render(totalTime,suppressEvents,force)}this._onUpdate&&!suppressEvents&&_callback(this,"onUpdate",!0);if(tTime===tDur&&this._tTime>=this.totalDuration()||!tTime&&prevTime)if(prevStart===this._start||Math.abs(timeScale)!==Math.abs(this._ts))this._lock||((totalTime||!dur)&&(tTime===tDur&&this._ts>0||!tTime&&this._ts<0)&&_removeFromParent(this,1),!suppressEvents&&!(totalTime<0&&!prevTime)&&(tTime||prevTime||!tDur)&&(_callback(this,tTime===tDur&&totalTime>=0?"onComplete":"onReverseComplete",!0),this._prom&&!(tTime0)&&this._prom()))}return this},_proto2.add=function add(child,position){var _this2=this;_isNumber(position)||(position=_parsePosition(this,position,child));if(!(child instanceof Animation)){if(_isArray(child))return child.forEach(function(obj){return _this2.add(obj,position)}),this;if(_isString(child))return this.addLabel(child,position);if(!_isFunction(child))return this;child=Tween.delayedCall(0,child)}return this!==child?_addToTimeline(this,child,position):this},_proto2.getChildren=function getChildren(nested,tweens,timelines,ignoreBeforeTime){nested===void 0&&(nested=!0),tweens===void 0&&(tweens=!0),timelines===void 0&&(timelines=!0),ignoreBeforeTime===void 0&&(ignoreBeforeTime=-_bigNum);var a=[],child=this._first;while(child)child._start>=ignoreBeforeTime&&(child instanceof Tween?tweens&&a.push(child):(timelines&&a.push(child),nested&&a.push.apply(a,child.getChildren(!0,tweens,timelines)))),child=child._next;return a},_proto2.getById=function getById(id){var animations=this.getChildren(1,1,1),i=animations.length;while(i--)if(animations[i].vars.id===id)return animations[i]},_proto2.remove=function remove(child){return _isString(child)?this.removeLabel(child):_isFunction(child)?this.killTweensOf(child):(_removeLinkedListItem(this,child),child===this._recent&&(this._recent=this._last),_uncache(this))},_proto2.totalTime=function totalTime(_totalTime2,suppressEvents){return arguments.length?(this._forcing=1,!this._dp&&this._ts&&(this._start=_roundPrecise(_ticker.time-(this._ts>0?_totalTime2/this._ts:(this.totalDuration()-_totalTime2)/-this._ts))),_Animation.prototype.totalTime.call(this,_totalTime2,suppressEvents),this._forcing=0,this):this._tTime},_proto2.addLabel=function addLabel(label,position){return this.labels[label]=_parsePosition(this,position),this},_proto2.removeLabel=function removeLabel(label){return delete this.labels[label],this},_proto2.addPause=function addPause(position,callback,params){var t=Tween.delayedCall(0,callback||_emptyFunc,params);return t.data="isPause",this._hasPause=1,_addToTimeline(this,t,_parsePosition(this,position))},_proto2.removePause=function removePause(position){var child=this._first;position=_parsePosition(this,position);while(child)child._start===position&&child.data==="isPause"&&_removeFromParent(child),child=child._next},_proto2.killTweensOf=function killTweensOf(targets,props,onlyActive){var tweens=this.getTweensOf(targets,onlyActive),i=tweens.length;while(i--)_overwritingTween!==tweens[i]&&tweens[i].kill(targets,props);return this},_proto2.getTweensOf=function getTweensOf(targets,onlyActive){var a=[],parsedTargets=toArray(targets),child=this._first,isGlobalTime=_isNumber(onlyActive),children;while(child)child instanceof Tween?_arrayContainsAny(child._targets,parsedTargets)&&(isGlobalTime?(!_overwritingTween||child._initted&&child._ts)&&child.globalTime(0)<=onlyActive&&child.globalTime(child.totalDuration())>onlyActive:!onlyActive||child.isActive())&&a.push(child):(children=child.getTweensOf(parsedTargets,onlyActive)).length&&a.push.apply(a,children),child=child._next;return a},_proto2.tweenTo=function tweenTo(position,vars){vars=vars||{};var tl=this,endTime=_parsePosition(tl,position),_vars=vars,startAt=_vars.startAt,_onStart=_vars.onStart,onStartParams=_vars.onStartParams,immediateRender=_vars.immediateRender,initted,tween=Tween.to(tl,_setDefaults({ease:vars.ease||"none",lazy:!1,immediateRender:!1,time:endTime,overwrite:"auto",duration:vars.duration||Math.abs((endTime-(startAt&&"time"in startAt?startAt.time:tl._time))/tl.timeScale())||_tinyNum,onStart:function onStart(){tl.pause();if(!initted){var duration=vars.duration||Math.abs((endTime-(startAt&&"time"in startAt?startAt.time:tl._time))/tl.timeScale());tween._dur!==duration&&_setDuration(tween,duration,0,1).render(tween._time,!0,!0),initted=1}_onStart&&_onStart.apply(tween,onStartParams||[])}},vars));return immediateRender?tween.render(0):tween},_proto2.tweenFromTo=function tweenFromTo(fromPosition,toPosition,vars){return this.tweenTo(toPosition,_setDefaults({startAt:{time:_parsePosition(this,fromPosition)}},vars))},_proto2.recent=function recent(){return this._recent},_proto2.nextLabel=function nextLabel(afterTime){return afterTime===void 0&&(afterTime=this._time),_getLabelInDirection(this,_parsePosition(this,afterTime))},_proto2.previousLabel=function previousLabel(beforeTime){return beforeTime===void 0&&(beforeTime=this._time),_getLabelInDirection(this,_parsePosition(this,beforeTime),1)},_proto2.currentLabel=function currentLabel(value){return arguments.length?this.seek(value,!0):this.previousLabel(this._time+_tinyNum)},_proto2.shiftChildren=function shiftChildren(amount,adjustLabels,ignoreBeforeTime){ignoreBeforeTime===void 0&&(ignoreBeforeTime=0);var child=this._first,labels=this.labels,p;while(child)child._start>=ignoreBeforeTime&&(child._start+=amount,child._end+=amount),child=child._next;if(adjustLabels)for(p in labels)labels[p]>=ignoreBeforeTime&&(labels[p]+=amount);return _uncache(this)},_proto2.invalidate=function invalidate(soft){var child=this._first;this._lock=0;while(child)child.invalidate(soft),child=child._next;return _Animation.prototype.invalidate.call(this,soft)},_proto2.clear=function clear(includeLabels){includeLabels===void 0&&(includeLabels=!0);var child=this._first,next;while(child)next=child._next,this.remove(child),child=next;return this._dp&&(this._time=this._tTime=this._pTime=0),includeLabels&&(this.labels={}),_uncache(this)},_proto2.totalDuration=function totalDuration(value){var max=0,self=this,child=self._last,prevStart=_bigNum,prev,start,parent;if(arguments.length)return self.timeScale((self._repeat<0?self.duration():self.totalDuration())/(self.reversed()?-value:value));if(self._dirty){parent=self.parent;while(child){prev=child._prev,child._dirty&&child.totalDuration(),start=child._start,start>prevStart&&self._sort&&child._ts&&!self._lock?(self._lock=1,_addToTimeline(self,child,start-child._delay,1)._lock=0):prevStart=start;if(start<0&&child._ts){max-=start;if(!parent&&!self._dp||parent&&parent.smoothChildTiming)self._start+=start/self._ts,self._time-=start,self._tTime-=start;self.shiftChildren(-start,!1,-1/0),prevStart=0}child._end>max&&child._ts&&(max=child._end),child=prev}_setDuration(self,self===_globalTimeline&&self._time>max?self._time:max,1,1),self._dirty=0}return self._tDur},Timeline.updateRoot=function updateRoot(time){_globalTimeline._ts&&(_lazySafeRender(_globalTimeline,_parentToChildTotalTime(time,_globalTimeline)),_lastRenderedFrame=_ticker.frame);if(_ticker.frame>=_nextGCFrame){_nextGCFrame+=_config.autoSleep||120;var child=_globalTimeline._first;if(!child||!child._ts)if(_config.autoSleep&&_ticker._listeners.length<2){while(child&&!child._ts)child=child._next;child||_ticker.sleep()}}},Timeline}(Animation);_setDefaults(Timeline.prototype,{_lock:0,_hasPause:0,_forcing:0});var _addComplexStringPropTween=function _addComplexStringPropTween(target,prop,start,end,setter,stringFilter,funcParam){var pt=new PropTween(this._pt,target,prop,0,1,_renderComplexString,null,setter),index=0,matchIndex=0,result,startNums,color,endNum,chunk,startNum,hasRandom,a;pt.b=start,pt.e=end,start+="",end+="";if(hasRandom=~end.indexOf("random("))end=_replaceRandom(end);stringFilter&&(a=[start,end],stringFilter(a,target,prop),start=a[0],end=a[1]),startNums=start.match(_complexStringNumExp)||[];while(result=_complexStringNumExp.exec(end))endNum=result[0],chunk=end.substring(index,result.index),color?color=(color+1)%5:chunk.substr(-5)==="rgba("&&(color=1),endNum!==startNums[matchIndex++]&&(startNum=parseFloat(startNums[matchIndex-1])||0,pt._pt={_next:pt._pt,p:chunk||matchIndex===1?chunk:",",s:startNum,c:endNum.charAt(1)==="="?_parseRelative(startNum,endNum)-startNum:parseFloat(endNum)-startNum,m:color&&color<4?Math.round:0},index=_complexStringNumExp.lastIndex);pt.c=index")}),tl.duration();else{copy={};for(p in keyframes)p==="ease"||p==="easeEach"||_parseKeyframe(p,keyframes[p],copy,keyframes.easeEach);for(p in copy){a=copy[p].sort(function(a,b){return a.t-b.t}),time=0;for(i=0;itDur-_tinyNum&&!isNegative?tDur:totalTime<_tinyNum?0:totalTime,time,pt,iteration,cycleDuration,prevIteration,isYoyo,ratio,timeline,yoyoEase;if(!dur)_renderZeroDurationTween(this,totalTime,suppressEvents,force);else if(tTime!==this._tTime||!totalTime||force||!this._initted&&this._tTime||this._startAt&&this._zTime<0!==isNegative){time=tTime,timeline=this.timeline;if(this._repeat){cycleDuration=dur+this._rDelay;if(this._repeat<-1&&isNegative)return this.totalTime(cycleDuration*100+totalTime,suppressEvents,force);time=_roundPrecise(tTime%cycleDuration),tTime===tDur?(iteration=this._repeat,time=dur):(iteration=~~(tTime/cycleDuration),iteration&&iteration===_roundPrecise(tTime/cycleDuration)&&(time=dur,iteration--),time>dur&&(time=dur)),isYoyo=this._yoyo&&iteration&1,isYoyo&&(yoyoEase=this._yEase,time=dur-time),prevIteration=_animationCycle(this._tTime,cycleDuration);if(time===prevTime&&!force&&this._initted&&iteration===prevIteration)return this._tTime=tTime,this;iteration!==prevIteration&&(timeline&&this._yEase&&_propagateYoyoEase(timeline,isYoyo),this.vars.repeatRefresh&&!isYoyo&&!this._lock&&this._time!==cycleDuration&&this._initted&&(this._lock=force=1,this.render(_roundPrecise(cycleDuration*iteration),!0).invalidate()._lock=0))}if(!this._initted){if(_attemptInitTween(this,isNegative?totalTime:time,force,suppressEvents,tTime))return this._tTime=0,this;if(prevTime!==this._time&&(!force||!this.vars.repeatRefresh||iteration===prevIteration))return this;if(dur!==this._dur)return this.render(totalTime,suppressEvents,force)}this._tTime=tTime,this._time=time,!this._act&&this._ts&&(this._act=1,this._lazy=0),this.ratio=ratio=(yoyoEase||this._ease)(time/dur),this._from&&(this.ratio=ratio=1-ratio);if(time&&!prevTime&&!suppressEvents&&!iteration){_callback(this,"onStart");if(this._tTime!==tTime)return this}pt=this._pt;while(pt)pt.r(ratio,pt.d),pt=pt._next;timeline&&timeline.render(totalTime<0?totalTime:timeline._dur*timeline._ease(time/this._dur),suppressEvents,force)||this._startAt&&(this._zTime=totalTime),this._onUpdate&&!suppressEvents&&(isNegative&&_rewindStartAt(this,totalTime,suppressEvents,force),_callback(this,"onUpdate")),this._repeat&&iteration!==prevIteration&&this.vars.onRepeat&&!suppressEvents&&this.parent&&_callback(this,"onRepeat"),(tTime===this._tDur||!tTime)&&this._tTime===tTime&&(isNegative&&!this._onUpdate&&_rewindStartAt(this,totalTime,!0,!0),(totalTime||!dur)&&(tTime===this._tDur&&this._ts>0||!tTime&&this._ts<0)&&_removeFromParent(this,1),!suppressEvents&&(!isNegative||!!prevTime)&&(tTime||prevTime||isYoyo)&&(_callback(this,tTime===tDur?"onComplete":"onReverseComplete",!0),this._prom&&!(tTime0)&&this._prom()))}return this},_proto3.targets=function targets(){return this._targets},_proto3.invalidate=function invalidate(soft){return(!soft||!this.vars.runBackwards)&&(this._startAt=0),this._pt=this._op=this._onUpdate=this._lazy=this.ratio=0,this._ptLookup=[],this.timeline&&this.timeline.invalidate(soft),_Animation2.prototype.invalidate.call(this,soft)},_proto3.resetTo=function resetTo(property,value,start,startIsRelative,skipRecursion){_tickerActive||_ticker.wake(),this._ts||this.play();var time=Math.min(this._dur,(this._dp._time-this._start)*this._ts),ratio;return this._initted||_initTween(this,time),ratio=this._ease(time/this._dur),_updatePropTweens(this,property,value,start,startIsRelative,ratio,time,skipRecursion)?this.resetTo(property,value,start,startIsRelative,1):(_alignPlayhead(this,0),this.parent||_addLinkedListItem(this._dp,this,"_first","_last",this._dp._sort?"_start":0),this.render(0))},_proto3.kill=function kill(targets,vars){vars===void 0&&(vars="all");if(!targets&&(!vars||vars==="all"))return this._lazy=this._pt=0,this.parent?_interrupt(this):this;if(this.timeline){var tDur=this.timeline.totalDuration();return this.timeline.killTweensOf(targets,vars,_overwritingTween&&_overwritingTween.vars.overwrite!==!0)._first||_interrupt(this),this.parent&&tDur!==this.timeline.totalDuration()&&_setDuration(this,this._dur*this.timeline._tDur/tDur,0,1),this}var parsedTargets=this._targets,killingTargets=targets?toArray(targets):parsedTargets,propTweenLookup=this._ptLookup,firstPT=this._pt,overwrittenProps,curLookup,curOverwriteProps,props,p,pt,i;if((!vars||vars==="all")&&_arraysMatch(parsedTargets,killingTargets))return vars==="all"&&(this._pt=0),_interrupt(this);overwrittenProps=this._op=this._op||[],vars!=="all"&&(_isString(vars)&&(p={},_forEachName(vars,function(name){return p[name]=1}),vars=p),vars=_addAliasesToVars(parsedTargets,vars)),i=parsedTargets.length;while(i--)if(~killingTargets.indexOf(parsedTargets[i])){curLookup=propTweenLookup[i],vars==="all"?(overwrittenProps[i]=vars,props=curLookup,curOverwriteProps={}):(curOverwriteProps=overwrittenProps[i]=overwrittenProps[i]||{},props=vars);for(p in props)pt=curLookup&&curLookup[p],pt&&((!("kill"in pt.d)||pt.d.kill(p)===!0)&&_removeLinkedListItem(this,pt,"_pt"),delete curLookup[p]),curOverwriteProps!=="all"&&(curOverwriteProps[p]=1)}return this._initted&&!this._pt&&firstPT&&_interrupt(this),this},Tween.to=function to(targets,vars){return new Tween(targets,vars,arguments[2])},Tween.from=function from(targets,vars){return _createTweenType(1,arguments)},Tween.delayedCall=function delayedCall(delay,callback,params,scope){return new Tween(callback,0,{immediateRender:!1,lazy:!1,overwrite:!1,delay:delay,onComplete:callback,onReverseComplete:callback,onCompleteParams:params,onReverseCompleteParams:params,callbackScope:scope})},Tween.fromTo=function fromTo(targets,fromVars,toVars){return _createTweenType(2,arguments)},Tween.set=function set(targets,vars){return vars.duration=0,vars.repeatDelay||(vars.repeat=0),new Tween(targets,vars)},Tween.killTweensOf=function killTweensOf(targets,props,onlyActive){return _globalTimeline.killTweensOf(targets,props,onlyActive)},Tween}(Animation);_setDefaults(Tween.prototype,{_targets:[],_lazy:0,_startAt:0,_op:0,_onInit:0}),_forEachName("staggerTo,staggerFrom,staggerFromTo",function(name){Tween[name]=function(){var tl=new Timeline,params=_slice.call(arguments,0);return params.splice(name==="staggerFromTo"?5:4,0,0),tl[name].apply(tl,params)}});var _setterPlain=function _setterPlain(target,property,value){return target[property]=value},_setterFunc=function _setterFunc(target,property,value){return target[property](value)},_setterFuncWithParam=function _setterFuncWithParam(target,property,value,data){return target[property](data.fp,value)},_setterAttribute=function _setterAttribute(target,property,value){return target.setAttribute(property,value)},_getSetter=function _getSetter(target,property){return _isFunction(target[property])?_setterFunc:_isUndefined(target[property])&&target.setAttribute?_setterAttribute:_setterPlain},_renderPlain=function _renderPlain(ratio,data){return data.set(data.t,data.p,Math.round((data.s+data.c*ratio)*1e6)/1e6,data)},_renderBoolean=function _renderBoolean(ratio,data){return data.set(data.t,data.p,!!(data.s+data.c*ratio),data)},_renderComplexString=function _renderComplexString(ratio,data){var pt=data._pt,s="";if(!ratio&&data.b)s=data.b;else if(ratio===1&&data.e)s=data.e;else{while(pt)s=pt.p+(pt.m?pt.m(pt.s+pt.c*ratio):Math.round((pt.s+pt.c*ratio)*1e4)/1e4)+s,pt=pt._next;s+=data.c}data.set(data.t,data.p,s,data)},_renderPropTweens=function _renderPropTweens(ratio,data){var pt=data._pt;while(pt)pt.r(ratio,pt.d),pt=pt._next},_addPluginModifier=function _addPluginModifier(modifier,tween,target,property){var pt=this._pt,next;while(pt)next=pt._next,pt.p===property&&pt.modifier(modifier,tween,target),pt=next},_killPropTweensOf=function _killPropTweensOf(property){var pt=this._pt,hasNonDependentRemaining,next;while(pt)next=pt._next,pt.p===property&&!pt.op||pt.op===property?_removeLinkedListItem(this,pt,"_pt"):pt.dep||(hasNonDependentRemaining=1),pt=next;return!hasNonDependentRemaining},_setterWithModifier=function _setterWithModifier(target,property,value,data){data.mSet(target,property,data.m.call(data.tween,value,data.mt),data)},_sortPropTweensByPriority=function _sortPropTweensByPriority(parent){var pt=parent._pt,next,pt2,first,last;while(pt){next=pt._next,pt2=first;while(pt2&&pt2.pr>pt.pr)pt2=pt2._next;(pt._prev=pt2?pt2._prev:last)?pt._prev._next=pt:first=pt,(pt._next=pt2)?pt2._prev=pt:last=pt,pt=next}parent._pt=first},PropTween=function(){function PropTween(next,target,prop,start,change,renderer,data,setter,priority){this.t=target,this.s=start,this.c=change,this.p=prop,this.r=renderer||_renderPlain,this.d=data||this,this.set=setter||_setterPlain,this.pr=priority||0,this._next=next,next&&(next._prev=this)}var _proto4=PropTween.prototype;return _proto4.modifier=function modifier(func,tween,target){this.mSet=this.mSet||this.set,this.set=_setterWithModifier,this.m=func,this.mt=target,this.tween=tween},PropTween}();_forEachName(_callbackNames+"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(name){return _reservedProps[name]=1}),_globals.TweenMax=_globals.TweenLite=Tween,_globals.TimelineLite=_globals.TimelineMax=Timeline,_globalTimeline=new Timeline({sortChildren:!1,defaults:_defaults,autoRemoveChildren:!0,id:"root",smoothChildTiming:!0}),_config.stringFilter=_colorStringFilter;var _media=[],_listeners={},_emptyArray=[],_lastMediaTime=0,_contextID=0,_dispatch=function _dispatch(type){return(_listeners[type]||_emptyArray).map(function(f){return f()})},_onMediaChange=function _onMediaChange(){var time=Date.now(),matches=[];time-_lastMediaTime>2&&(_dispatch("matchMediaInit"),_media.forEach(function(c){var queries=c.queries,conditions=c.conditions,match,p,anyMatch,toggled;for(p in queries)match=_win.matchMedia(queries[p]).matches,match&&(anyMatch=1),match!==conditions[p]&&(conditions[p]=match,toggled=1);toggled&&(c.revert(),anyMatch&&matches.push(c))}),_dispatch("matchMediaRevert"),matches.forEach(function(c){return c.onMatch(c,function(func){return c.add(null,func)})}),_lastMediaTime=time,_dispatch("matchMedia"))},Context=function(){function Context(func,scope){this.selector=scope&&selector(scope),this.data=[],this._r=[],this.isReverted=!1,this.id=_contextID++,func&&this.add(func)}var _proto5=Context.prototype;return _proto5.add=function add(name,func,scope){_isFunction(name)&&(scope=func,func=name,name=_isFunction);var self=this,f=function f(){var prev=_context,prevSelector=self.selector,result;return prev&&prev!==self&&prev.data.push(self),scope&&(self.selector=selector(scope)),_context=self,result=func.apply(self,arguments),_isFunction(result)&&self._r.push(result),_context=prev,self.selector=prevSelector,self.isReverted=!1,result};return self.last=f,name===_isFunction?f(self,function(func){return self.add(null,func)}):name?self[name]=f:f},_proto5.ignore=function ignore(func){var prev=_context;_context=null,func(this),_context=prev},_proto5.getTweens=function getTweens(){var a=[];return this.data.forEach(function(e){return e instanceof Context?a.push.apply(a,e.getTweens()):e instanceof Tween&&(!e.parent||e.parent.data!=="nested")&&a.push(e)}),a},_proto5.clear=function clear(){this._r.length=this.data.length=0},_proto5.kill=function kill(revert,matchMedia){var _this4=this;revert?function(){var tweens=_this4.getTweens(),i=_this4.data.length,t;while(i--)t=_this4.data[i],t.data==="isFlip"&&(t.revert(),t.getChildren(!0,!0,!1).forEach(function(tween){return tweens.splice(tweens.indexOf(tween),1)}));tweens.map(function(t){return{g:t._dur||t._delay||t._sat&&!t._sat.vars.immediateRender?t.globalTime(0):-Infinity,t:t}}).sort(function(a,b){return b.g-a.g||-Infinity}).forEach(function(o){return o.t.revert(revert)}),i=_this4.data.length;while(i--)t=_this4.data[i],t instanceof Timeline?t.data!=="nested"&&(t.scrollTrigger&&t.scrollTrigger.revert(),t.kill()):!(t instanceof Tween)&&t.revert&&t.revert(revert);_this4._r.forEach(function(f){return f(revert,_this4)}),_this4.isReverted=!0}():this.data.forEach(function(e){return e.kill&&e.kill()}),this.clear();if(matchMedia){var i=_media.length;while(i--)_media[i].id===this.id&&_media.splice(i,1)}},_proto5.revert=function revert(config){this.kill(config||{})},Context}(),MatchMedia=function(){function MatchMedia(scope){this.contexts=[],this.scope=scope,_context&&_context.data.push(this)}var _proto6=MatchMedia.prototype;return _proto6.add=function add(conditions,func,scope){_isObject(conditions)||(conditions={matches:conditions});var context=new Context(0,scope||this.scope),cond=context.conditions={},mq,p,active;_context&&!context.selector&&(context.selector=_context.selector),this.contexts.push(context),func=context.add("onMatch",func),context.queries=conditions;for(p in conditions)p==="all"?active=1:(mq=_win.matchMedia(conditions[p]),mq&&(_media.indexOf(context)<0&&_media.push(context),(cond[p]=mq.matches)&&(active=1),mq.addListener?mq.addListener(_onMediaChange):mq.addEventListener("change",_onMediaChange)));return active&&func(context,function(f){return context.add(null,f)}),this},_proto6.revert=function revert(config){this.kill(config||{})},_proto6.kill=function kill(revert){this.contexts.forEach(function(c){return c.kill(revert,!0)})},MatchMedia}(),_gsap={registerPlugin:function registerPlugin(){for(var _len2=arguments.length,args=new Array(_len2),_key2=0;_key2<_len2;_key2++)args[_key2]=arguments[_key2];args.forEach(function(config){return _createPlugin(config)})},timeline:function timeline(vars){return new Timeline(vars)},getTweensOf:function getTweensOf(targets,onlyActive){return _globalTimeline.getTweensOf(targets,onlyActive)},getProperty:function getProperty(target,property,unit,uncache){_isString(target)&&(target=toArray(target)[0]);var getter=_getCache(target||{}).get,format=unit?_passThrough:_numericIfPossible;return unit==="native"&&(unit=""),target?property?format((_plugins[property]&&_plugins[property].get||getter)(target,property,unit,uncache)):function(property,unit,uncache){return format((_plugins[property]&&_plugins[property].get||getter)(target,property,unit,uncache))}:target},quickSetter:function quickSetter(target,property,unit){target=toArray(target);if(target.length>1){var setters=target.map(function(t){return gsap.quickSetter(t,property,unit)}),l=setters.length;return function(value){var i=l;while(i--)setters[i](value)}}target=target[0]||{};var Plugin=_plugins[property],cache=_getCache(target),p=cache.harness&&(cache.harness.aliases||{})[property]||property,setter=Plugin?function(value){var p=new Plugin;_quickTween._pt=0,p.init(target,unit?value+unit:value,_quickTween,0,[target]),p.render(1,p),_quickTween._pt&&_renderPropTweens(1,_quickTween)}:cache.set(target,p);return Plugin?setter:function(value){return setter(target,p,unit?value+unit:value,cache,1)}},quickTo:function quickTo(target,property,vars){var _merge2,tween=gsap.to(target,_merge((_merge2={},_merge2[property]="+=0.1",_merge2.paused=!0,_merge2),vars||{})),func=function func(value,start,startIsRelative){return tween.resetTo(property,value,start,startIsRelative)};return func.tween=tween,func},isTweening:function isTweening(targets){return _globalTimeline.getTweensOf(targets,!0).length>0},defaults:function defaults(value){return value&&value.ease&&(value.ease=_parseEase(value.ease,_defaults.ease)),_mergeDeep(_defaults,value||{})},config:function config(value){return _mergeDeep(_config,value||{})},registerEffect:function registerEffect(_ref3){var name=_ref3.name,effect=_ref3.effect,plugins=_ref3.plugins,defaults=_ref3.defaults,extendTimeline=_ref3.extendTimeline;(plugins||"").split(",").forEach(function(pluginName){return pluginName&&!_plugins[pluginName]&&!_globals[pluginName]&&_warn(name+" effect requires "+pluginName+" plugin.")}),_effects[name]=function(targets,vars,tl){return effect(toArray(targets),_setDefaults(vars||{},defaults),tl)},extendTimeline&&(Timeline.prototype[name]=function(targets,vars,position){return this.add(_effects[name](targets,_isObject(vars)?vars:(position=vars)&&{},this),position)})},registerEase:function registerEase(name,ease){_easeMap[name]=_parseEase(ease)},parseEase:function parseEase(ease,defaultEase){return arguments.length?_parseEase(ease,defaultEase):_easeMap},getById:function getById(id){return _globalTimeline.getById(id)},exportRoot:function exportRoot(vars,includeDelayedCalls){vars===void 0&&(vars={});var tl=new Timeline(vars),child,next;tl.smoothChildTiming=_isNotFalse(vars.smoothChildTiming),_globalTimeline.remove(tl),tl._dp=0,tl._time=tl._tTime=_globalTimeline._time,child=_globalTimeline._first;while(child)next=child._next,(includeDelayedCalls||!(!child._dur&&child instanceof Tween&&child.vars.onComplete===child._targets[0]))&&_addToTimeline(tl,child,child._start-child._delay),child=next;return _addToTimeline(_globalTimeline,tl,0),tl},context:function context(func,scope){return func?new Context(func,scope):_context},matchMedia:function matchMedia(scope){return new MatchMedia(scope)},matchMediaRefresh:function matchMediaRefresh(){return _media.forEach(function(c){var cond=c.conditions,found,p;for(p in cond)cond[p]&&(cond[p]=!1,found=1);found&&c.revert()})||_onMediaChange()},addEventListener:function addEventListener(type,callback){var a=_listeners[type]||(_listeners[type]=[]);~a.indexOf(callback)||a.push(callback)},removeEventListener:function removeEventListener(type,callback){var a=_listeners[type],i=a&&a.indexOf(callback);i>=0&&a.splice(i,1)},utils:{wrap:wrap,wrapYoyo:wrapYoyo,distribute:distribute,random:random,snap:snap,normalize:normalize,getUnit:getUnit,clamp:clamp,splitColor:splitColor,toArray:toArray,selector:selector,mapRange:mapRange,pipe:pipe,unitize:unitize,interpolate:interpolate,shuffle:shuffle},install:_install,effects:_effects,ticker:_ticker,updateRoot:Timeline.updateRoot,plugins:_plugins,globalTimeline:_globalTimeline,core:{PropTween:PropTween,globals:_addGlobal,Tween:Tween,Timeline:Timeline,Animation:Animation,getCache:_getCache,_removeLinkedListItem:_removeLinkedListItem,reverting:function reverting(){return _reverting},context:function context(toAdd){return toAdd&&_context&&(_context.data.push(toAdd),toAdd._ctx=_context),_context},suppressOverwrites:function suppressOverwrites(value){return _suppressOverwrites=value}}};_forEachName("to,from,fromTo,delayedCall,set,killTweensOf",function(name){return _gsap[name]=Tween[name]}),_ticker.add(Timeline.updateRoot),_quickTween=_gsap.to({},{duration:0});var _getPluginPropTween=function _getPluginPropTween(plugin,prop){var pt=plugin._pt;while(pt&&pt.p!==prop&&pt.op!==prop&&pt.fp!==prop)pt=pt._next;return pt},_addModifiers=function _addModifiers(tween,modifiers){var targets=tween._targets,p,i,pt;for(p in modifiers){i=targets.length;while(i--)pt=tween._ptLookup[i][p],pt&&(pt=pt.d)&&(pt._pt&&(pt=_getPluginPropTween(pt,p)),pt&&pt.modifier&&pt.modifier(modifiers[p],tween,targets[i],p))}},_buildModifierPlugin=function _buildModifierPlugin(name,modifier){return{name:name,rawVars:1,init:function init(target,vars,tween){tween._onInit=function(tween){var temp,p;_isString(vars)&&(temp={},_forEachName(vars,function(name){return temp[name]=1}),vars=temp);if(modifier){temp={};for(p in vars)temp[p]=modifier(vars[p]);vars=temp}_addModifiers(tween,vars)}}}},gsap=_gsap.registerPlugin({name:"attr",init:function init(target,vars,tween,index,targets){var p,pt,v;this.tween=tween;for(p in vars)v=target.getAttribute(p)||"",pt=this.add(target,"setAttribute",(v||0)+"",vars[p],index,targets,0,0,p),pt.op=p,pt.b=v,this._props.push(p)},render:function render(ratio,data){var pt=data._pt;while(pt)_reverting?pt.set(pt.t,pt.p,pt.b,pt):pt.r(ratio,pt.d),pt=pt._next}},{name:"endArray",init:function init(target,value){var i=value.length;while(i--)this.add(target,i,target[i]||0,value[i],0,0,0,0,0,1)}},_buildModifierPlugin("roundProps",_roundModifier),_buildModifierPlugin("modifiers"),_buildModifierPlugin("snap",snap))||_gsap;Tween.version=Timeline.version=gsap.version="3.12.5",_coreReady=1,_windowExists()&&_wake();var Power0=_easeMap.Power0,Power1=_easeMap.Power1,Power2=_easeMap.Power2,Power3=_easeMap.Power3,Power4=_easeMap.Power4,Linear=_easeMap.Linear,Quad=_easeMap.Quad,Cubic=_easeMap.Cubic,Quart=_easeMap.Quart,Quint=_easeMap.Quint,Strong=_easeMap.Strong,Elastic=_easeMap.Elastic,Back=_easeMap.Back,SteppedEase=_easeMap.SteppedEase,Bounce=_easeMap.Bounce,Sine=_easeMap.Sine,Expo=_easeMap.Expo,Circ=_easeMap.Circ,_win$1,_doc$1,_docElement,_pluginInitted,_tempDiv,_tempDivStyler,_recentSetterPlugin,_reverting$1,_windowExists$1=function _windowExists(){return typeof window!="undefined"},_transformProps={},_RAD2DEG=180/Math.PI,_DEG2RAD=Math.PI/180,_atan2=Math.atan2,_bigNum$1=1e8,_capsExp=/([A-Z])/g,_horizontalExp=/(left|right|width|margin|padding|x)/i,_complexExp=/[\s,\(]\S/,_propertyAliases={autoAlpha:"opacity,visibility",scale:"scaleX,scaleY",alpha:"opacity"},_renderCSSProp=function _renderCSSProp(ratio,data){return data.set(data.t,data.p,Math.round((data.s+data.c*ratio)*1e4)/1e4+data.u,data)},_renderPropWithEnd=function _renderPropWithEnd(ratio,data){return data.set(data.t,data.p,ratio===1?data.e:Math.round((data.s+data.c*ratio)*1e4)/1e4+data.u,data)},_renderCSSPropWithBeginning=function _renderCSSPropWithBeginning(ratio,data){return data.set(data.t,data.p,ratio?Math.round((data.s+data.c*ratio)*1e4)/1e4+data.u:data.b,data)},_renderRoundedCSSProp=function _renderRoundedCSSProp(ratio,data){var value=data.s+data.c*ratio;data.set(data.t,data.p,~~(value+(value<0?-0.5:.5))+data.u,data)},_renderNonTweeningValue=function _renderNonTweeningValue(ratio,data){return data.set(data.t,data.p,ratio?data.e:data.b,data)},_renderNonTweeningValueOnlyAtEnd=function _renderNonTweeningValueOnlyAtEnd(ratio,data){return data.set(data.t,data.p,ratio!==1?data.b:data.e,data)},_setterCSSStyle=function _setterCSSStyle(target,property,value){return target.style[property]=value},_setterCSSProp=function _setterCSSProp(target,property,value){return target.style.setProperty(property,value)},_setterTransform=function _setterTransform(target,property,value){return target._gsap[property]=value},_setterScale=function _setterScale(target,property,value){return target._gsap.scaleX=target._gsap.scaleY=value},_setterScaleWithRender=function _setterScaleWithRender(target,property,value,data,ratio){var cache=target._gsap;cache.scaleX=cache.scaleY=value,cache.renderTransform(ratio,cache)},_setterTransformWithRender=function _setterTransformWithRender(target,property,value,data,ratio){var cache=target._gsap;cache[property]=value,cache.renderTransform(ratio,cache)},_transformProp="transform",_transformOriginProp=_transformProp+"Origin",_saveStyle=function _saveStyle(property,isNotCSS){var _this=this,target=this.target,style=target.style,cache=target._gsap;if(property in _transformProps&&style){this.tfm=this.tfm||{};if(property==="transform")return _propertyAliases.transform.split(",").forEach(function(p){return _saveStyle.call(_this,p,isNotCSS)});property=_propertyAliases[property]||property,~property.indexOf(",")?property.split(",").forEach(function(a){return _this.tfm[a]=_get(target,a)}):this.tfm[property]=cache.x?cache[property]:_get(target,property),property===_transformOriginProp&&(this.tfm.zOrigin=cache.zOrigin);if(this.props.indexOf(_transformProp)>=0)return;cache.svg&&(this.svgo=target.getAttribute("data-svg-origin"),this.props.push(_transformOriginProp,isNotCSS,"")),property=_transformProp}(style||isNotCSS)&&this.props.push(property,isNotCSS,style[property])},_removeIndependentTransforms=function _removeIndependentTransforms(style){style.translate&&(style.removeProperty("translate"),style.removeProperty("scale"),style.removeProperty("rotate"))},_revertStyle=function _revertStyle(){var props=this.props,target=this.target,style=target.style,cache=target._gsap,i,p;for(i=0;i=0?_prefixes[i]:"")+property},_initCore=function _initCore(){_windowExists$1()&&window.document&&(_win$1=window,_doc$1=_win$1.document,_docElement=_doc$1.documentElement,_tempDiv=_createElement("div")||{style:{}},_tempDivStyler=_createElement("div"),_transformProp=_checkPropPrefix(_transformProp),_transformOriginProp=_transformProp+"Origin",_tempDiv.style.cssText="border-width:0;line-height:0;position:absolute;padding:0",_supports3D=!!_checkPropPrefix("perspective"),_reverting$1=gsap.core.reverting,_pluginInitted=1)},_getBBoxHack=function _getBBoxHack(swapIfPossible){var svg=_createElement("svg",this.ownerSVGElement&&this.ownerSVGElement.getAttribute("xmlns")||"http://www.w3.org/2000/svg"),oldParent=this.parentNode,oldSibling=this.nextSibling,oldCSS=this.style.cssText,bbox;_docElement.appendChild(svg),svg.appendChild(this),this.style.display="block";if(swapIfPossible)try{bbox=this.getBBox(),this._gsapBBox=this.getBBox,this.getBBox=_getBBoxHack}catch(e){}else this._gsapBBox&&(bbox=this._gsapBBox());return oldParent&&(oldSibling?oldParent.insertBefore(this,oldSibling):oldParent.appendChild(this)),_docElement.removeChild(svg),this.style.cssText=oldCSS,bbox},_getAttributeFallbacks=function _getAttributeFallbacks(target,attributesArray){var i=attributesArray.length;while(i--)if(target.hasAttribute(attributesArray[i]))return target.getAttribute(attributesArray[i])},_getBBox=function _getBBox(target){var bounds;try{bounds=target.getBBox()}catch(error){bounds=_getBBoxHack.call(target,!0)}return bounds&&(bounds.width||bounds.height)||target.getBBox===_getBBoxHack||(bounds=_getBBoxHack.call(target,!0)),bounds&&!bounds.width&&!bounds.x&&!bounds.y?{x:+_getAttributeFallbacks(target,["x","cx","x1"])||0,y:+_getAttributeFallbacks(target,["y","cy","y1"])||0,width:0,height:0}:bounds},_isSVG=function _isSVG(e){return!(!e.getCTM||!!e.parentNode&&!e.ownerSVGElement||!_getBBox(e))},_removeProperty=function _removeProperty(target,property){if(property){var style=target.style,first2Chars;property in _transformProps&&property!==_transformOriginProp&&(property=_transformProp);if(style.removeProperty){first2Chars=property.substr(0,2);if(first2Chars==="ms"||property.substr(0,6)==="webkit")property="-"+property;style.removeProperty(first2Chars==="--"?property:property.replace(_capsExp,"-$1").toLowerCase())}else style.removeAttribute(property)}},_addNonTweeningPT=function _addNonTweeningPT(plugin,target,property,beginning,end,onlySetAtEnd){var pt=new PropTween(plugin._pt,target,property,0,1,onlySetAtEnd?_renderNonTweeningValueOnlyAtEnd:_renderNonTweeningValue);return plugin._pt=pt,pt.b=beginning,pt.e=end,plugin._props.push(property),pt},_nonConvertibleUnits={deg:1,rad:1,turn:1},_nonStandardLayouts={grid:1,flex:1},_convertToUnit=function _convertToUnit(target,property,value,unit){var curValue=parseFloat(value)||0,curUnit=(value+"").trim().substr((curValue+"").length)||"px",style=_tempDiv.style,horizontal=_horizontalExp.test(property),isRootSVG=target.tagName.toLowerCase()==="svg",measureProperty=(isRootSVG?"client":"offset")+(horizontal?"Width":"Height"),amount=100,toPixels=unit==="px",toPercent=unit==="%",px,parent,cache,isSVG;if(unit===curUnit||!curValue||_nonConvertibleUnits[unit]||_nonConvertibleUnits[curUnit])return curValue;curUnit!=="px"&&!toPixels&&(curValue=_convertToUnit(target,property,value,"px")),isSVG=target.getCTM&&_isSVG(target);if(!toPercent&&curUnit!=="%"||!_transformProps[property]&&!~property.indexOf("adius")){style[horizontal?"width":"height"]=amount+(toPixels?curUnit:unit),parent=~property.indexOf("adius")||unit==="em"&&target.appendChild&&!isRootSVG?target:target.parentNode,isSVG&&(parent=(target.ownerSVGElement||{}).parentNode);if(!parent||parent===_doc$1||!parent.appendChild)parent=_doc$1.body;cache=parent._gsap;if(cache&&toPercent&&cache.width&&horizontal&&cache.time===_ticker.time&&!cache.uncache)return _round(curValue/cache.width*amount);if(!toPercent||property!=="height"&&property!=="width")(toPercent||curUnit==="%")&&!_nonStandardLayouts[_getComputedProperty(parent,"display")]&&(style.position=_getComputedProperty(target,"position")),parent===target&&(style.position="static"),parent.appendChild(_tempDiv),px=_tempDiv[measureProperty],parent.removeChild(_tempDiv),style.position="absolute";else{var v=target.style[property];target.style[property]=amount+unit,px=target[measureProperty],v?target.style[property]=v:_removeProperty(target,property)}return horizontal&&toPercent&&(cache=_getCache(parent),cache.time=_ticker.time,cache.width=parent[measureProperty]),_round(toPixels?px*curValue/amount:px&&curValue?amount/px*curValue:0)}return px=isSVG?target.getBBox()[horizontal?"width":"height"]:target[measureProperty],_round(toPercent?curValue/px*amount:curValue/100*px)},_get=function _get(target,property,unit,uncache){var value;_pluginInitted||_initCore(),property in _propertyAliases&&property!=="transform"&&(property=_propertyAliases[property],~property.indexOf(",")&&(property=property.split(",")[0]));if(_transformProps[property]&&property!=="transform")value=_parseTransform(target,uncache),value=property!=="transformOrigin"?value[property]:value.svg?value.origin:_firstTwoOnly(_getComputedProperty(target,_transformOriginProp))+" "+value.zOrigin+"px";else{value=target.style[property];if(!value||value==="auto"||uncache||~(value+"").indexOf("calc("))value=_specialProps[property]&&_specialProps[property](target,property,unit)||_getComputedProperty(target,property)||_getProperty(target,property)||(property==="opacity"?1:0)}return unit&&!~(value+"").trim().indexOf(" ")?_convertToUnit(target,property,value,unit)+unit:value},_tweenComplexCSSString=function _tweenComplexCSSString(target,prop,start,end){if(!start||start==="none"){var p=_checkPropPrefix(prop,target,1),s=p&&_getComputedProperty(target,p,1);s&&s!==start?(prop=p,start=s):prop==="borderColor"&&(start=_getComputedProperty(target,"borderTopColor"))}var pt=new PropTween(this._pt,target.style,prop,0,1,_renderComplexString),index=0,matchIndex=0,a,result,startValues,startNum,color,startValue,endValue,endNum,chunk,endUnit,startUnit,endValues;pt.b=start,pt.e=end,start+="",end+="",end==="auto"&&(startValue=target.style[prop],target.style[prop]=end,end=_getComputedProperty(target,prop)||end,startValue?target.style[prop]=startValue:_removeProperty(target,prop)),a=[start,end],_colorStringFilter(a),start=a[0],end=a[1],startValues=start.match(_numWithUnitExp)||[],endValues=end.match(_numWithUnitExp)||[];if(endValues.length){while(result=_numWithUnitExp.exec(end)){endValue=result[0],chunk=end.substring(index,result.index);if(color)color=(color+1)%5;else if(chunk.substr(-5)==="rgba("||chunk.substr(-5)==="hsla(")color=1;endValue!==(startValue=startValues[matchIndex++]||"")&&(startNum=parseFloat(startValue)||0,startUnit=startValue.substr((startNum+"").length),endValue.charAt(1)==="="&&(endValue=_parseRelative(startNum,endValue)+startUnit),endNum=parseFloat(endValue),endUnit=endValue.substr((endNum+"").length),index=_numWithUnitExp.lastIndex-endUnit.length,endUnit||(endUnit=endUnit||_config.units[prop]||startUnit,index===end.length&&(end+=endUnit,pt.e+=endUnit)),startUnit!==endUnit&&(startNum=_convertToUnit(target,prop,startValue,endUnit)||0),pt._pt={_next:pt._pt,p:chunk||matchIndex===1?chunk:",",s:startNum,c:endNum-startNum,m:color&&color<4||prop==="zIndex"?Math.round:0})}pt.c=index-1)prop=props[i],_transformProps[prop]&&(clearTransforms=1,prop=prop==="transformOrigin"?_transformOriginProp:_transformProp),_removeProperty(target,prop)}clearTransforms&&(_removeProperty(target,_transformProp),cache&&(cache.svg&&target.removeAttribute("transform"),_parseTransform(target,1),cache.uncache=1,_removeIndependentTransforms(style)))}},_specialProps={clearProps:function clearProps(plugin,target,property,endValue,tween){if(tween.data!=="isFromStart"){var pt=plugin._pt=new PropTween(plugin._pt,target,property,0,0,_renderClearProps);return pt.u=endValue,pt.pr=-10,pt.tween=tween,plugin._props.push(property),1}}},_identity2DMatrix=[1,0,0,1,0,0],_rotationalProperties={},_isNullTransform=function _isNullTransform(value){return value==="matrix(1, 0, 0, 1, 0, 0)"||value==="none"||!value},_getComputedTransformMatrixAsArray=function _getComputedTransformMatrixAsArray(target){var matrixString=_getComputedProperty(target,_transformProp);return _isNullTransform(matrixString)?_identity2DMatrix:matrixString.substr(7).match(_numExp).map(_round)},_getMatrix=function _getMatrix(target,force2D){var cache=target._gsap||_getCache(target),style=target.style,matrix=_getComputedTransformMatrixAsArray(target),parent,nextSibling,temp,addedToDOM;if(cache.svg&&target.getAttribute("transform"))return temp=target.transform.baseVal.consolidate().matrix,matrix=[temp.a,temp.b,temp.c,temp.d,temp.e,temp.f],matrix.join(",")==="1,0,0,1,0,0"?_identity2DMatrix:matrix;if(matrix===_identity2DMatrix&&!target.offsetParent&&target!==_docElement&&!cache.svg){temp=style.display,style.display="block",parent=target.parentNode;if(!parent||!target.offsetParent)addedToDOM=1,nextSibling=target.nextElementSibling,_docElement.appendChild(target);matrix=_getComputedTransformMatrixAsArray(target),temp?style.display=temp:_removeProperty(target,"display"),addedToDOM&&(nextSibling?parent.insertBefore(target,nextSibling):parent?parent.appendChild(target):_docElement.removeChild(target))}return force2D&&matrix.length>6?[matrix[0],matrix[1],matrix[4],matrix[5],matrix[12],matrix[13]]:matrix},_applySVGOrigin=function _applySVGOrigin(target,origin,originIsAbsolute,smooth,matrixArray,pluginToAddPropTweensTo){var cache=target._gsap,matrix=matrixArray||_getMatrix(target,!0),xOriginOld=cache.xOrigin||0,yOriginOld=cache.yOrigin||0,xOffsetOld=cache.xOffset||0,yOffsetOld=cache.yOffset||0,a=matrix[0],b=matrix[1],c=matrix[2],d=matrix[3],tx=matrix[4],ty=matrix[5],originSplit=origin.split(" "),xOrigin=parseFloat(originSplit[0])||0,yOrigin=parseFloat(originSplit[1])||0,bounds,determinant,x,y;originIsAbsolute?matrix!==_identity2DMatrix&&(determinant=a*d-b*c)&&(x=xOrigin*(d/determinant)+yOrigin*(-c/determinant)+(c*ty-d*tx)/determinant,y=xOrigin*(-b/determinant)+yOrigin*(a/determinant)-(a*ty-b*tx)/determinant,xOrigin=x,yOrigin=y):(bounds=_getBBox(target),xOrigin=bounds.x+(~originSplit[0].indexOf("%")?xOrigin/100*bounds.width:xOrigin),yOrigin=bounds.y+(~(originSplit[1]||originSplit[0]).indexOf("%")?yOrigin/100*bounds.height:yOrigin)),smooth||smooth!==!1&&cache.smooth?(tx=xOrigin-xOriginOld,ty=yOrigin-yOriginOld,cache.xOffset=xOffsetOld+(tx*a+ty*c)-tx,cache.yOffset=yOffsetOld+(tx*b+ty*d)-ty):cache.xOffset=cache.yOffset=0,cache.xOrigin=xOrigin,cache.yOrigin=yOrigin,cache.smooth=!!smooth,cache.origin=origin,cache.originIsAbsolute=!!originIsAbsolute,target.style[_transformOriginProp]="0px 0px",pluginToAddPropTweensTo&&(_addNonTweeningPT(pluginToAddPropTweensTo,cache,"xOrigin",xOriginOld,xOrigin),_addNonTweeningPT(pluginToAddPropTweensTo,cache,"yOrigin",yOriginOld,yOrigin),_addNonTweeningPT(pluginToAddPropTweensTo,cache,"xOffset",xOffsetOld,cache.xOffset),_addNonTweeningPT(pluginToAddPropTweensTo,cache,"yOffset",yOffsetOld,cache.yOffset)),target.setAttribute("data-svg-origin",xOrigin+" "+yOrigin)},_parseTransform=function _parseTransform(target,uncache){var cache=target._gsap||new GSCache(target);if("x"in cache&&!uncache&&!cache.uncache)return cache;var style=target.style,invertedScaleX=cache.scaleX<0,px="px",deg="deg",cs=getComputedStyle(target),origin=_getComputedProperty(target,_transformOriginProp)||"0",x,y,z,scaleX,scaleY,rotation,rotationX,rotationY,skewX,skewY,perspective,xOrigin,yOrigin,matrix,angle,cos,sin,a,b,c,d,a12,a22,t1,t2,t3,a13,a23,a33,a42,a43,a32;x=y=z=rotation=rotationX=rotationY=skewX=skewY=perspective=0,scaleX=scaleY=1,cache.svg=!!target.getCTM&&!!_isSVG(target);if(cs.translate){if(cs.translate!=="none"||cs.scale!=="none"||cs.rotate!=="none")style[_transformProp]=(cs.translate!=="none"?"translate3d("+(cs.translate+" 0 0").split(" ").slice(0,3).join(", ")+") ":"")+(cs.rotate!=="none"?"rotate("+cs.rotate+") ":"")+(cs.scale!=="none"?"scale("+cs.scale.split(" ").join(",")+") ":"")+(cs[_transformProp]!=="none"?cs[_transformProp]:"");style.scale=style.rotate=style.translate="none"}matrix=_getMatrix(target,cache.svg),cache.svg&&(cache.uncache?(t2=target.getBBox(),origin=cache.xOrigin-t2.x+"px "+(cache.yOrigin-t2.y)+"px",t1=""):t1=!uncache&&target.getAttribute("data-svg-origin"),_applySVGOrigin(target,t1||origin,!!t1||cache.originIsAbsolute,cache.smooth!==!1,matrix)),xOrigin=cache.xOrigin||0,yOrigin=cache.yOrigin||0,matrix!==_identity2DMatrix&&(a=matrix[0],b=matrix[1],c=matrix[2],d=matrix[3],x=a12=matrix[4],y=a22=matrix[5],matrix.length===6?(scaleX=Math.sqrt(a*a+b*b),scaleY=Math.sqrt(d*d+c*c),rotation=a||b?_atan2(b,a)*_RAD2DEG:0,skewX=c||d?_atan2(c,d)*_RAD2DEG+rotation:0,skewX&&(scaleY*=Math.abs(Math.cos(skewX*_DEG2RAD))),cache.svg&&(x-=xOrigin-(xOrigin*a+yOrigin*c),y-=yOrigin-(xOrigin*b+yOrigin*d))):(a32=matrix[6],a42=matrix[7],a13=matrix[8],a23=matrix[9],a33=matrix[10],a43=matrix[11],x=matrix[12],y=matrix[13],z=matrix[14],angle=_atan2(a32,a33),rotationX=angle*_RAD2DEG,angle&&(cos=Math.cos(-angle),sin=Math.sin(-angle),t1=a12*cos+a13*sin,t2=a22*cos+a23*sin,t3=a32*cos+a33*sin,a13=a12*-sin+a13*cos,a23=a22*-sin+a23*cos,a33=a32*-sin+a33*cos,a43=a42*-sin+a43*cos,a12=t1,a22=t2,a32=t3),angle=_atan2(-c,a33),rotationY=angle*_RAD2DEG,angle&&(cos=Math.cos(-angle),sin=Math.sin(-angle),t1=a*cos-a13*sin,t2=b*cos-a23*sin,t3=c*cos-a33*sin,a43=d*sin+a43*cos,a=t1,b=t2,c=t3),angle=_atan2(b,a),rotation=angle*_RAD2DEG,angle&&(cos=Math.cos(angle),sin=Math.sin(angle),t1=a*cos+b*sin,t2=a12*cos+a22*sin,b=b*cos-a*sin,a22=a22*cos-a12*sin,a=t1,a12=t2),rotationX&&Math.abs(rotationX)+Math.abs(rotation)>359.9&&(rotationX=rotation=0,rotationY=180-rotationY),scaleX=_round(Math.sqrt(a*a+b*b+c*c)),scaleY=_round(Math.sqrt(a22*a22+a32*a32)),angle=_atan2(a12,a22),skewX=Math.abs(angle)>2e-4?angle*_RAD2DEG:0,perspective=a43?1/(a43<0?-a43:a43):0),cache.svg&&(t1=target.getAttribute("transform"),cache.forceCSS=target.setAttribute("transform","")||!_isNullTransform(_getComputedProperty(target,_transformProp)),t1&&target.setAttribute("transform",t1))),Math.abs(skewX)>90&&Math.abs(skewX)<270&&(invertedScaleX?(scaleX*=-1,skewX+=rotation<=0?180:-180,rotation+=rotation<=0?180:-180):(scaleY*=-1,skewX+=skewX<=0?180:-180)),uncache=uncache||cache.uncache,cache.x=x-((cache.xPercent=x&&(!uncache&&cache.xPercent||(Math.round(target.offsetWidth/2)===Math.round(-x)?-50:0)))?target.offsetWidth*cache.xPercent/100:0)+px,cache.y=y-((cache.yPercent=y&&(!uncache&&cache.yPercent||(Math.round(target.offsetHeight/2)===Math.round(-y)?-50:0)))?target.offsetHeight*cache.yPercent/100:0)+px,cache.z=z+px,cache.scaleX=_round(scaleX),cache.scaleY=_round(scaleY),cache.rotation=_round(rotation)+deg,cache.rotationX=_round(rotationX)+deg,cache.rotationY=_round(rotationY)+deg,cache.skewX=skewX+deg,cache.skewY=skewY+deg,cache.transformPerspective=perspective+px;if(cache.zOrigin=parseFloat(origin.split(" ")[2])||!uncache&&cache.zOrigin||0)style[_transformOriginProp]=_firstTwoOnly(origin);return cache.xOffset=cache.yOffset=0,cache.force3D=_config.force3D,cache.renderTransform=cache.svg?_renderSVGTransforms:_supports3D?_renderCSSTransforms:_renderNon3DTransforms,cache.uncache=0,cache},_firstTwoOnly=function _firstTwoOnly(value){return(value=value.split(" "))[0]+" "+value[1]},_addPxTranslate=function _addPxTranslate(target,start,value){var unit=getUnit(start);return _round(parseFloat(start)+parseFloat(_convertToUnit(target,"x",value+"px",unit)))+unit},_renderNon3DTransforms=function _renderNon3DTransforms(ratio,cache){cache.z="0px",cache.rotationY=cache.rotationX="0deg",cache.force3D=0,_renderCSSTransforms(ratio,cache)},_zeroDeg="0deg",_zeroPx="0px",_endParenthesis=") ",_renderCSSTransforms=function _renderCSSTransforms(ratio,cache){var _ref=cache||this,xPercent=_ref.xPercent,yPercent=_ref.yPercent,x=_ref.x,y=_ref.y,z=_ref.z,rotation=_ref.rotation,rotationY=_ref.rotationY,rotationX=_ref.rotationX,skewX=_ref.skewX,skewY=_ref.skewY,scaleX=_ref.scaleX,scaleY=_ref.scaleY,transformPerspective=_ref.transformPerspective,force3D=_ref.force3D,target=_ref.target,zOrigin=_ref.zOrigin,transforms="",use3D=force3D==="auto"&&ratio&&ratio!==1||force3D===!0;if(zOrigin&&(rotationX!==_zeroDeg||rotationY!==_zeroDeg)){var angle=parseFloat(rotationY)*_DEG2RAD,a13=Math.sin(angle),a33=Math.cos(angle),cos;angle=parseFloat(rotationX)*_DEG2RAD,cos=Math.cos(angle),x=_addPxTranslate(target,x,a13*cos*-zOrigin),y=_addPxTranslate(target,y,-Math.sin(angle)*-zOrigin),z=_addPxTranslate(target,z,a33*cos*-zOrigin+zOrigin)}transformPerspective!==_zeroPx&&(transforms+="perspective("+transformPerspective+_endParenthesis);if(xPercent||yPercent)transforms+="translate("+xPercent+"%, "+yPercent+"%) ";if(use3D||x!==_zeroPx||y!==_zeroPx||z!==_zeroPx)transforms+=z!==_zeroPx||use3D?"translate3d("+x+", "+y+", "+z+") ":"translate("+x+", "+y+_endParenthesis;rotation!==_zeroDeg&&(transforms+="rotate("+rotation+_endParenthesis),rotationY!==_zeroDeg&&(transforms+="rotateY("+rotationY+_endParenthesis),rotationX!==_zeroDeg&&(transforms+="rotateX("+rotationX+_endParenthesis);if(skewX!==_zeroDeg||skewY!==_zeroDeg)transforms+="skew("+skewX+", "+skewY+_endParenthesis;if(scaleX!==1||scaleY!==1)transforms+="scale("+scaleX+", "+scaleY+_endParenthesis;target.style[_transformProp]=transforms||"translate(0, 0)"},_renderSVGTransforms=function _renderSVGTransforms(ratio,cache){var _ref2=cache||this,xPercent=_ref2.xPercent,yPercent=_ref2.yPercent,x=_ref2.x,y=_ref2.y,rotation=_ref2.rotation,skewX=_ref2.skewX,skewY=_ref2.skewY,scaleX=_ref2.scaleX,scaleY=_ref2.scaleY,target=_ref2.target,xOrigin=_ref2.xOrigin,yOrigin=_ref2.yOrigin,xOffset=_ref2.xOffset,yOffset=_ref2.yOffset,forceCSS=_ref2.forceCSS,tx=parseFloat(x),ty=parseFloat(y),a11,a21,a12,a22,temp;rotation=parseFloat(rotation),skewX=parseFloat(skewX),skewY=parseFloat(skewY),skewY&&(skewY=parseFloat(skewY),skewX+=skewY,rotation+=skewY),rotation||skewX?(rotation*=_DEG2RAD,skewX*=_DEG2RAD,a11=Math.cos(rotation)*scaleX,a21=Math.sin(rotation)*scaleX,a12=Math.sin(rotation-skewX)*-scaleY,a22=Math.cos(rotation-skewX)*scaleY,skewX&&(skewY*=_DEG2RAD,temp=Math.tan(skewX-skewY),temp=Math.sqrt(1+temp*temp),a12*=temp,a22*=temp,skewY&&(temp=Math.tan(skewY),temp=Math.sqrt(1+temp*temp),a11*=temp,a21*=temp)),a11=_round(a11),a21=_round(a21),a12=_round(a12),a22=_round(a22)):(a11=scaleX,a22=scaleY,a21=a12=0);if(tx&&!~(x+"").indexOf("px")||ty&&!~(y+"").indexOf("px"))tx=_convertToUnit(target,"x",x,"px"),ty=_convertToUnit(target,"y",y,"px");if(xOrigin||yOrigin||xOffset||yOffset)tx=_round(tx+xOrigin-(xOrigin*a11+yOrigin*a12)+xOffset),ty=_round(ty+yOrigin-(xOrigin*a21+yOrigin*a22)+yOffset);if(xPercent||yPercent)temp=target.getBBox(),tx=_round(tx+xPercent/100*temp.width),ty=_round(ty+yPercent/100*temp.height);temp="matrix("+a11+","+a21+","+a12+","+a22+","+tx+","+ty+")",target.setAttribute("transform",temp),forceCSS&&(target.style[_transformProp]=temp)},_addRotationalPropTween=function _addRotationalPropTween(plugin,target,property,startNum,endValue){var cap=360,isString=_isString(endValue),endNum=parseFloat(endValue)*(isString&&~endValue.indexOf("rad")?_RAD2DEG:1),change=endNum-startNum,finalValue=startNum+change+"deg",direction,pt;return isString&&(direction=endValue.split("_")[1],direction==="short"&&(change%=cap,change!==change%(cap/2)&&(change+=change<0?cap:-cap)),direction==="cw"&&change<0?change=(change+cap*_bigNum$1)%cap-~~(change/cap)*cap:direction==="ccw"&&change>0&&(change=(change-cap*_bigNum$1)%cap-~~(change/cap)*cap)),plugin._pt=pt=new PropTween(plugin._pt,target,property,startNum,change,_renderPropWithEnd),pt.e=finalValue,pt.u="deg",plugin._props.push(property),pt},_assign=function _assign(target,source){for(var p in source)target[p]=source[p];return target},_addRawTransformPTs=function _addRawTransformPTs(plugin,transforms,target){var startCache=_assign({},target._gsap),exclude="perspective,force3D,transformOrigin,svgOrigin",style=target.style,endCache,p,startValue,endValue,startNum,endNum,startUnit,endUnit;startCache.svg?(startValue=target.getAttribute("transform"),target.setAttribute("transform",""),style[_transformProp]=transforms,endCache=_parseTransform(target,1),_removeProperty(target,_transformProp),target.setAttribute("transform",startValue)):(startValue=getComputedStyle(target)[_transformProp],style[_transformProp]=transforms,endCache=_parseTransform(target,1),style[_transformProp]=startValue);for(p in _transformProps)startValue=startCache[p],endValue=endCache[p],startValue!==endValue&&exclude.indexOf(p)<0&&(startUnit=getUnit(startValue),endUnit=getUnit(endValue),startNum=startUnit!==endUnit?_convertToUnit(target,p,startValue,endUnit):parseFloat(startValue),endNum=parseFloat(endValue),plugin._pt=new PropTween(plugin._pt,endCache,p,startNum,endNum-startNum,_renderCSSProp),plugin._pt.u=endUnit||0,plugin._props.push(p));_assign(endCache,startCache)};_forEachName("padding,margin,Width,Radius",function(name,index){var t="Top",r="Right",b="Bottom",l="Left",props=(index<3?[t,r,b,l]:[t+l,t+r,b+r,b+l]).map(function(side){return index<2?name+side:"border"+side+name});_specialProps[index>1?"border"+name:name]=function(plugin,target,property,endValue,tween){var a,vars;if(arguments.length<4)return a=props.map(function(prop){return _get(plugin,prop,property)}),vars=a.join(" "),vars.split(a[0]).length===5?a[0]:vars;a=(endValue+"").split(" "),vars={},props.forEach(function(prop,i){return vars[prop]=a[i]=a[i]||a[(i-1)/2|0]}),plugin.init(target,vars,tween)}});var CSSPlugin={name:"css",register:_initCore,targetTest:function targetTest(target){return target.style&&target.nodeType},init:function init(target,vars,tween,index,targets){var props=this._props,style=target.style,startAt=tween.vars.startAt,startValue,endValue,endNum,startNum,type,specialProp,p,startUnit,endUnit,relative,isTransformRelated,transformPropTween,cache,smooth,hasPriority,inlineProps;_pluginInitted||_initCore(),this.styles=this.styles||_getStyleSaver(target),inlineProps=this.styles.props,this.tween=tween;for(p in vars){if(p==="autoRound")continue;endValue=vars[p];if(_plugins[p]&&_checkPlugin(p,vars,tween,index,target,targets))continue;type=typeof endValue,specialProp=_specialProps[p],type==="function"&&(endValue=endValue.call(tween,index,target,targets),type=typeof endValue),type==="string"&&~endValue.indexOf("random(")&&(endValue=_replaceRandom(endValue));if(specialProp)specialProp(this,target,p,endValue,tween)&&(hasPriority=1);else if(p.substr(0,2)==="--")startValue=(getComputedStyle(target).getPropertyValue(p)+"").trim(),endValue+="",_colorExp.lastIndex=0,_colorExp.test(startValue)||(startUnit=getUnit(startValue),endUnit=getUnit(endValue)),endUnit?startUnit!==endUnit&&(startValue=_convertToUnit(target,p,startValue,endUnit)+endUnit):startUnit&&(endValue+=startUnit),this.add(style,"setProperty",startValue,endValue,index,targets,0,0,p),props.push(p),inlineProps.push(p,0,style[p]);else if(type!=="undefined"){startAt&&p in startAt?(startValue=typeof startAt[p]=="function"?startAt[p].call(tween,index,target,targets):startAt[p],_isString(startValue)&&~startValue.indexOf("random(")&&(startValue=_replaceRandom(startValue)),getUnit(startValue+"")||startValue==="auto"||(startValue+=_config.units[p]||getUnit(_get(target,p))||""),(startValue+"").charAt(1)==="="&&(startValue=_get(target,p))):startValue=_get(target,p),startNum=parseFloat(startValue),relative=type==="string"&&endValue.charAt(1)==="="&&endValue.substr(0,2),relative&&(endValue=endValue.substr(2)),endNum=parseFloat(endValue),p in _propertyAliases&&(p==="autoAlpha"&&(startNum===1&&_get(target,"visibility")==="hidden"&&endNum&&(startNum=0),inlineProps.push("visibility",0,style.visibility),_addNonTweeningPT(this,style,"visibility",startNum?"inherit":"hidden",endNum?"inherit":"hidden",!endNum)),p!=="scale"&&p!=="transform"&&(p=_propertyAliases[p],~p.indexOf(",")&&(p=p.split(",")[0]))),isTransformRelated=p in _transformProps;if(isTransformRelated){this.styles.save(p),transformPropTween||(cache=target._gsap,cache.renderTransform&&!vars.parseTransform||_parseTransform(target,vars.parseTransform),smooth=vars.smoothOrigin!==!1&&cache.smooth,transformPropTween=this._pt=new PropTween(this._pt,style,_transformProp,0,1,cache.renderTransform,cache,0,-1),transformPropTween.dep=1);if(p==="scale")this._pt=new PropTween(this._pt,cache,"scaleY",cache.scaleY,(relative?_parseRelative(cache.scaleY,relative+endNum):endNum)-cache.scaleY||0,_renderCSSProp),this._pt.u=0,props.push("scaleY",p),p+="X";else{if(p==="transformOrigin"){inlineProps.push(_transformOriginProp,0,style[_transformOriginProp]),endValue=_convertKeywordsToPercentages(endValue),cache.svg?_applySVGOrigin(target,endValue,0,smooth,0,this):(endUnit=parseFloat(endValue.split(" ")[2])||0,endUnit!==cache.zOrigin&&_addNonTweeningPT(this,cache,"zOrigin",cache.zOrigin,endUnit),_addNonTweeningPT(this,style,p,_firstTwoOnly(startValue),_firstTwoOnly(endValue)));continue}if(p==="svgOrigin"){_applySVGOrigin(target,endValue,1,smooth,0,this);continue}if(p in _rotationalProperties){_addRotationalPropTween(this,cache,p,startNum,relative?_parseRelative(startNum,relative+endValue):endValue);continue}if(p==="smoothOrigin"){_addNonTweeningPT(this,cache,"smooth",cache.smooth,endValue);continue}if(p==="force3D"){cache[p]=endValue;continue}if(p==="transform"){_addRawTransformPTs(this,endValue,target);continue}}}else p in style||(p=_checkPropPrefix(p)||p);if(isTransformRelated||(endNum||endNum===0)&&(startNum||startNum===0)&&!_complexExp.test(endValue)&&p in style)startUnit=(startValue+"").substr((startNum+"").length),endNum||(endNum=0),endUnit=getUnit(endValue)||(p in _config.units?_config.units[p]:startUnit),startUnit!==endUnit&&(startNum=_convertToUnit(target,p,startValue,endUnit)),this._pt=new PropTween(this._pt,isTransformRelated?cache:style,p,startNum,(relative?_parseRelative(startNum,relative+endNum):endNum)-startNum,!!isTransformRelated||endUnit!=="px"&&p!=="zIndex"||vars.autoRound===!1?_renderCSSProp:_renderRoundedCSSProp),this._pt.u=endUnit||0,startUnit!==endUnit&&endUnit!=="%"&&(this._pt.b=startValue,this._pt.r=_renderCSSPropWithBeginning);else if(p in style)_tweenComplexCSSString.call(this,target,p,startValue,relative?relative+endValue:endValue);else if(p in target)this.add(target,p,startValue||target[p],relative?relative+endValue:endValue,index,targets);else if(p!=="parseTransform"){_missingPlugin(p,endValue);continue}isTransformRelated||(p in style?inlineProps.push(p,0,style[p]):inlineProps.push(p,1,startValue||target[p])),props.push(p)}}hasPriority&&_sortPropTweensByPriority(this)},render:function render(ratio,data){if(data.tween._time||!_reverting$1()){var pt=data._pt;while(pt)pt.r(ratio,pt.d),pt=pt._next}else data.styles.revert()},get:_get,aliases:_propertyAliases,getSetter:function getSetter(target,property,plugin){var p=_propertyAliases[property];return p&&p.indexOf(",")<0&&(property=p),property in _transformProps&&property!==_transformOriginProp&&(target._gsap.x||_get(target,"x"))?plugin&&_recentSetterPlugin===plugin?property==="scale"?_setterScale:_setterTransform:(_recentSetterPlugin=plugin||{})&&(property==="scale"?_setterScaleWithRender:_setterTransformWithRender):target.style&&!_isUndefined(target.style[property])?_setterCSSStyle:~property.indexOf("-")?_setterCSSProp:_getSetter(target,property)},core:{_removeProperty:_removeProperty,_getMatrix:_getMatrix}};gsap.utils.checkPrefix=_checkPropPrefix,gsap.core.getStyleSaver=_getStyleSaver,function(positionAndScale,rotation,others,aliases){var all=_forEachName(positionAndScale+","+rotation+","+others,function(name){_transformProps[name]=1});_forEachName(rotation,function(name){_config.units[name]="deg",_rotationalProperties[name]=1}),_propertyAliases[all[13]]=positionAndScale+","+rotation,_forEachName(aliases,function(name){var split=name.split(":");_propertyAliases[split[1]]=all[split[0]]})}("x,y,z,scale,scaleX,scaleY,xPercent,yPercent","rotation,rotationX,rotationY,skewX,skewY","transform,transformOrigin,svgOrigin,force3D,smoothOrigin,transformPerspective","0:translateX,1:translateY,2:translateZ,8:rotate,8:rotationZ,8:rotateZ,9:rotateX,10:rotateY"),_forEachName("x,y,z,top,right,bottom,left,width,height,fontSize,padding,margin,perspective",function(name){_config.units[name]="px"}),gsap.registerPlugin(CSSPlugin);var gsapWithCSS=gsap.registerPlugin(CSSPlugin)||gsap,TweenMaxWithCSS=gsapWithCSS.core.Tween;exports.Back=Back,exports.Bounce=Bounce,exports.CSSPlugin=CSSPlugin,exports.Circ=Circ,exports.Cubic=Cubic,exports.Elastic=Elastic,exports.Expo=Expo,exports.Linear=Linear,exports.Power0=Power0,exports.Power1=Power1,exports.Power2=Power2,exports.Power3=Power3,exports.Power4=Power4,exports.Quad=Quad,exports.Quart=Quart,exports.Quint=Quint,exports.Sine=Sine,exports.SteppedEase=SteppedEase,exports.Strong=Strong,exports.TimelineLite=Timeline,exports.TimelineMax=Timeline,exports.TweenLite=Tween,exports.TweenMax=TweenMaxWithCSS,exports.default=gsapWithCSS,exports.gsap=gsapWithCSS,typeof window=="undefined"||window!==exports?Object.defineProperty(exports,"__esModule",{value:!0}):delete window.default}),"use strict",function(global,factory){(typeof exports=="undefined"?"undefined":_typeof(exports))==="object"&&typeof module!="undefined"?module.exports=factory():typeof define=="function"&&define.amd?define(factory):(global=typeof globalThis!="undefined"?globalThis:global||self,global.Lenis=factory())}(void 0,function(){"use strict";function clamp(min,input,max){return Math.max(min,Math.min(input,max))}function lerp(x,y,t){return(1-t)*x+t*y}function damp(x,y,lambda,dt){return lerp(x,y,1-Math.exp(-lambda*dt))}function modulo(n,d){return(n%d+d)%d}function debounce(callback,delay){var timer;return function(){var args=arguments,context=this;clearTimeout(timer),timer=setTimeout(function(){callback.apply(context,args)},delay)}}var version="1.1.9",Animate=function(){function Animate(){_classCallCheck(this,Animate),this.isRunning=!1,this.value=0,this.from=0,this.to=0,this.duration=0,this.currentTime=0}return _createClass(Animate,[{key:"advance",value:function advance(deltaTime){var _a;if(!this.isRunning)return;var completed=!1;if(this.duration&&this.easing){this.currentTime+=deltaTime;var linearProgress=clamp(0,this.currentTime/this.duration,1);completed=linearProgress>=1;var easedProgress=completed?1:this.easing(linearProgress);this.value=this.from+(this.to-this.from)*easedProgress}else this.lerp?(this.value=damp(this.value,this.to,this.lerp*60,deltaTime),Math.round(this.value)===this.to&&(this.value=this.to,completed=!0)):(this.value=this.to,completed=!0);completed&&this.stop(),(_a=this.onUpdate)===null||_a===void 0?void 0:_a.call(this,this.value,completed)}},{key:"stop",value:function stop(){this.isRunning=!1}},{key:"fromTo",value:function fromTo(from,to,_ref){var lerp=_ref.lerp,duration=_ref.duration,easing=_ref.easing,onStart=_ref.onStart,onUpdate=_ref.onUpdate;this.from=this.value=from,this.to=to,this.lerp=lerp,this.duration=duration,this.easing=easing,this.currentTime=0,this.isRunning=!0,onStart===null||onStart===void 0?void 0:onStart(),this.onUpdate=onUpdate}}]),Animate}(),Dimensions=function(){function Dimensions(){var _this=this,_ref2=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{},wrapper=_ref2.wrapper,content=_ref2.content,_ref2$autoResize=_ref2.autoResize,autoResize=_ref2$autoResize===void 0?!0:_ref2$autoResize,_ref2$debounce=_ref2.debounce,debounceValue=_ref2$debounce===void 0?250:_ref2$debounce;_classCallCheck(this,Dimensions),this.width=0,this.height=0,this.scrollWidth=0,this.scrollHeight=0,this.resize=function(){_this.onWrapperResize(),_this.onContentResize()},this.onWrapperResize=function(){_this.wrapper===window?(_this.width=window.innerWidth,_this.height=window.innerHeight):_this.wrapper instanceof HTMLElement&&(_this.width=_this.wrapper.clientWidth,_this.height=_this.wrapper.clientHeight)},this.onContentResize=function(){_this.wrapper===window?(_this.scrollHeight=_this.content.scrollHeight,_this.scrollWidth=_this.content.scrollWidth):_this.wrapper instanceof HTMLElement&&(_this.scrollHeight=_this.wrapper.scrollHeight,_this.scrollWidth=_this.wrapper.scrollWidth)},this.wrapper=wrapper,this.content=content,autoResize&&(this.debouncedResize=debounce(this.resize,debounceValue),this.wrapper===window?window.addEventListener("resize",this.debouncedResize,!1):(this.wrapperResizeObserver=new ResizeObserver(this.debouncedResize),this.wrapperResizeObserver.observe(this.wrapper)),this.contentResizeObserver=new ResizeObserver(this.debouncedResize),this.contentResizeObserver.observe(this.content)),this.resize()}return _createClass(Dimensions,[{key:"destroy",value:function destroy(){var _a,_b;(_a=this.wrapperResizeObserver)===null||_a===void 0?void 0:_a.disconnect(),(_b=this.contentResizeObserver)===null||_b===void 0?void 0:_b.disconnect(),window.removeEventListener("resize",this.debouncedResize,!1)}},{key:"limit",get:function get(){return{x:this.scrollWidth-this.width,y:this.scrollHeight-this.height}}}]),Dimensions}(),Emitter=function(){function Emitter(){_classCallCheck(this,Emitter),this.events={}}return _createClass(Emitter,[{key:"emit",value:function emit(event){var callbacks=this.events[event]||[];for(var _len=arguments.length,args=new Array(_len>1?_len-1:0),_key=1;_key<_len;_key++)args[_key-1]=arguments[_key];for(var i=0,length=callbacks.length;i0&&arguments[0]!==undefined?arguments[0]:{},_ref6$wrapper=_ref6.wrapper,wrapper=_ref6$wrapper===void 0?window:_ref6$wrapper,_ref6$content=_ref6.content,content=_ref6$content===void 0?document.documentElement:_ref6$content,_ref6$wheelEventsTarg=_ref6.wheelEventsTarget,wheelEventsTarget=_ref6$wheelEventsTarg===void 0?wrapper:_ref6$wheelEventsTarg,_ref6$eventsTarget=_ref6.eventsTarget,eventsTarget=_ref6$eventsTarget===void 0?wheelEventsTarget:_ref6$eventsTarget,_ref6$smoothWheel=_ref6.smoothWheel,smoothWheel=_ref6$smoothWheel===void 0?!0:_ref6$smoothWheel,_ref6$syncTouch=_ref6.syncTouch,syncTouch=_ref6$syncTouch===void 0?!1:_ref6$syncTouch,_ref6$syncTouchLerp=_ref6.syncTouchLerp,syncTouchLerp=_ref6$syncTouchLerp===void 0?.075:_ref6$syncTouchLerp,_ref6$touchInertiaMul=_ref6.touchInertiaMultiplier,touchInertiaMultiplier=_ref6$touchInertiaMul===void 0?35:_ref6$touchInertiaMul,duration=_ref6.duration,_ref6$easing=_ref6.easing,easing=_ref6$easing===void 0?function(t){return Math.min(1,1.001-Math.pow(2,-10*t))}:_ref6$easing,_ref6$lerp=_ref6.lerp,lerp=_ref6$lerp===void 0?.1:_ref6$lerp,_ref6$infinite=_ref6.infinite,infinite=_ref6$infinite===void 0?!1:_ref6$infinite,_ref6$orientation=_ref6.orientation,orientation=_ref6$orientation===void 0?"vertical":_ref6$orientation,_ref6$gestureOrientat=_ref6.gestureOrientation,gestureOrientation=_ref6$gestureOrientat===void 0?"vertical":_ref6$gestureOrientat,_ref6$touchMultiplier=_ref6.touchMultiplier,touchMultiplier=_ref6$touchMultiplier===void 0?1:_ref6$touchMultiplier,_ref6$wheelMultiplier=_ref6.wheelMultiplier,wheelMultiplier=_ref6$wheelMultiplier===void 0?1:_ref6$wheelMultiplier,_ref6$autoResize=_ref6.autoResize,autoResize=_ref6$autoResize===void 0?!0:_ref6$autoResize,prevent=_ref6.prevent,virtualScroll=_ref6.virtualScroll,_ref6$__experimental_=_ref6.__experimental__naiveDimensions,__experimental__naiveDimensions=_ref6$__experimental_===void 0?!1:_ref6$__experimental_;_classCallCheck(this,Lenis),this.__isScrolling=!1,this.__isStopped=!1,this.__isLocked=!1,this.userData={},this.lastVelocity=0,this.velocity=0,this.direction=0,this.onPointerDown=function(event){event.button===1&&_this4.reset()},this.onVirtualScroll=function(data){if(typeof _this4.options.virtualScroll=="function"&&_this4.options.virtualScroll(data)===!1)return;var deltaX=data.deltaX,deltaY=data.deltaY,event=data.event;_this4.emitter.emit("virtual-scroll",{deltaX:deltaX,deltaY:deltaY,event:event});if(event.ctrlKey)return;var isTouch=event.type.includes("touch"),isWheel=event.type.includes("wheel");_this4.isTouching=event.type==="touchstart"||event.type==="touchmove";var isTapToStop=_this4.options.syncTouch&&isTouch&&event.type==="touchstart"&&!_this4.isStopped&&!_this4.isLocked;if(isTapToStop){_this4.reset();return}var isClick=deltaX===0&&deltaY===0,isUnknownGesture=_this4.options.gestureOrientation==="vertical"&&deltaY===0||_this4.options.gestureOrientation==="horizontal"&&deltaX===0;if(isClick||isUnknownGesture)return;var composedPath=event.composedPath();composedPath=composedPath.slice(0,composedPath.indexOf(_this4.rootElement));var prevent=_this4.options.prevent;if(!!composedPath.find(function(node){var _a,_b,_c,_d,_e;return node instanceof Element&&(typeof prevent=="function"&&(prevent===null||prevent===void 0?void 0:prevent(node))||((_a=node.hasAttribute)===null||_a===void 0?void 0:_a.call(node,"data-lenis-prevent"))||isTouch&&((_b=node.hasAttribute)===null||_b===void 0?void 0:_b.call(node,"data-lenis-prevent-touch"))||isWheel&&((_c=node.hasAttribute)===null||_c===void 0?void 0:_c.call(node,"data-lenis-prevent-wheel"))||((_d=node.classList)===null||_d===void 0?void 0:_d.contains("lenis"))&&((_e=node.classList)===null||_e===void 0?!void 0:!_e.contains("lenis-stopped")))}))return;if(_this4.isStopped||_this4.isLocked){event.preventDefault();return}var isSmooth=_this4.options.syncTouch&&isTouch||_this4.options.smoothWheel&&isWheel;if(!isSmooth){_this4.isScrolling="native",_this4.animate.stop();return}event.preventDefault();var delta=deltaY;_this4.options.gestureOrientation==="both"?delta=Math.abs(deltaY)>Math.abs(deltaX)?deltaY:deltaX:_this4.options.gestureOrientation==="horizontal"&&(delta=deltaX);var syncTouch=isTouch&&_this4.options.syncTouch,isTouchEnd=isTouch&&event.type==="touchend",hasTouchInertia=isTouchEnd&&Math.abs(delta)>5;hasTouchInertia&&(delta=_this4.velocity*_this4.options.touchInertiaMultiplier),_this4.scrollTo(_this4.targetScroll+delta,Object.assign({programmatic:!1},syncTouch?{lerp:hasTouchInertia?_this4.options.syncTouchLerp:1}:{lerp:_this4.options.lerp,duration:_this4.options.duration,easing:_this4.options.easing}))},this.onNativeScroll=function(){clearTimeout(_this4.__resetVelocityTimeout),delete _this4.__resetVelocityTimeout;if(_this4.__preventNextNativeScrollEvent){delete _this4.__preventNextNativeScrollEvent;return}if(_this4.isScrolling===!1||_this4.isScrolling==="native"){var lastScroll=_this4.animatedScroll;_this4.animatedScroll=_this4.targetScroll=_this4.actualScroll,_this4.lastVelocity=_this4.velocity,_this4.velocity=_this4.animatedScroll-lastScroll,_this4.direction=Math.sign(_this4.animatedScroll-lastScroll),_this4.isScrolling="native",_this4.emit(),_this4.velocity!==0&&(_this4.__resetVelocityTimeout=setTimeout(function(){_this4.lastVelocity=_this4.velocity,_this4.velocity=0,_this4.isScrolling=!1,_this4.emit()},400))}},window.lenisVersion=version;if(!wrapper||wrapper===document.documentElement||wrapper===document.body)wrapper=window;this.options={wrapper:wrapper,content:content,wheelEventsTarget:wheelEventsTarget,eventsTarget:eventsTarget,smoothWheel:smoothWheel,syncTouch:syncTouch,syncTouchLerp:syncTouchLerp,touchInertiaMultiplier:touchInertiaMultiplier,duration:duration,easing:easing,lerp:lerp,infinite:infinite,gestureOrientation:gestureOrientation,orientation:orientation,touchMultiplier:touchMultiplier,wheelMultiplier:wheelMultiplier,autoResize:autoResize,prevent:prevent,virtualScroll:virtualScroll,__experimental__naiveDimensions:__experimental__naiveDimensions},this.animate=new Animate,this.emitter=new Emitter,this.dimensions=new Dimensions({wrapper:wrapper,content:content,autoResize:autoResize}),this.updateClassName(),this.userData={},this.time=0,this.velocity=this.lastVelocity=0,this.isLocked=!1,this.isStopped=!1,this.isScrolling=!1,this.targetScroll=this.animatedScroll=this.actualScroll,this.options.wrapper.addEventListener("scroll",this.onNativeScroll,!1),this.options.wrapper.addEventListener("pointerdown",this.onPointerDown,!1),this.virtualScroll=new VirtualScroll(eventsTarget,{touchMultiplier:touchMultiplier,wheelMultiplier:wheelMultiplier}),this.virtualScroll.on("scroll",this.onVirtualScroll)}return _createClass(Lenis,[{key:"destroy",value:function destroy(){this.emitter.destroy(),this.options.wrapper.removeEventListener("scroll",this.onNativeScroll,!1),this.options.wrapper.removeEventListener("pointerdown",this.onPointerDown,!1),this.virtualScroll.destroy(),this.dimensions.destroy(),this.cleanUpClassName()}},{key:"on",value:function on(event,callback){return this.emitter.on(event,callback)}},{key:"off",value:function off(event,callback){return this.emitter.off(event,callback)}},{key:"setScroll",value:function setScroll(scroll){this.isHorizontal?this.rootElement.scrollLeft=scroll:this.rootElement.scrollTop=scroll}},{key:"resize",value:function resize(){this.dimensions.resize()}},{key:"emit",value:function emit(){this.emitter.emit("scroll",this)}},{key:"reset",value:function reset(){this.isLocked=!1,this.isScrolling=!1,this.animatedScroll=this.targetScroll=this.actualScroll,this.lastVelocity=this.velocity=0,this.animate.stop()}},{key:"start",value:function start(){if(!this.isStopped)return;this.isStopped=!1,this.reset()}},{key:"stop",value:function stop(){if(this.isStopped)return;this.isStopped=!0,this.animate.stop(),this.reset()}},{key:"raf",value:function raf(time){var deltaTime=time-(this.time||time);this.time=time,this.animate.advance(deltaTime*.001)}},{key:"scrollTo",value:function scrollTo(target){var _this5=this,_ref7=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{},_ref7$offset=_ref7.offset,offset=_ref7$offset===void 0?0:_ref7$offset,_ref7$immediate=_ref7.immediate,immediate=_ref7$immediate===void 0?!1:_ref7$immediate,_ref7$lock=_ref7.lock,lock=_ref7$lock===void 0?!1:_ref7$lock,_ref7$duration=_ref7.duration,duration=_ref7$duration===void 0?this.options.duration:_ref7$duration,_ref7$easing=_ref7.easing,easing=_ref7$easing===void 0?this.options.easing:_ref7$easing,_ref7$lerp=_ref7.lerp,lerp=_ref7$lerp===void 0?this.options.lerp:_ref7$lerp,_onStart=_ref7.onStart,onComplete=_ref7.onComplete,_ref7$force=_ref7.force,force=_ref7$force===void 0?!1:_ref7$force,_ref7$programmatic=_ref7.programmatic,programmatic=_ref7$programmatic===void 0?!0:_ref7$programmatic,_ref7$userData=_ref7.userData,userData=_ref7$userData===void 0?{}:_ref7$userData;if((this.isStopped||this.isLocked)&&!force)return;if(typeof target=="string"&&["top","left","start"].includes(target))target=0;else if(typeof target=="string"&&["bottom","right","end"].includes(target))target=this.limit;else{var node;typeof target=="string"?node=document.querySelector(target):target instanceof HTMLElement&&(target===null||target===void 0?void 0:target.nodeType)&&(node=target);if(node){if(this.options.wrapper!==window){var wrapperRect=this.rootElement.getBoundingClientRect();offset-=this.isHorizontal?wrapperRect.left:wrapperRect.top}var rect=node.getBoundingClientRect();target=(this.isHorizontal?rect.left:rect.top)+this.animatedScroll}}if(typeof target!="number")return;target+=offset,target=Math.round(target),this.options.infinite?programmatic&&(this.targetScroll=this.animatedScroll=this.scroll):target=clamp(0,target,this.limit);if(target===this.targetScroll)return;this.userData=userData;if(immediate){this.animatedScroll=this.targetScroll=target,this.setScroll(this.scroll),this.reset(),this.preventNextNativeScrollEvent(),this.emit(),onComplete===null||onComplete===void 0?void 0:onComplete(this),this.userData={};return}programmatic||(this.targetScroll=target),this.animate.fromTo(this.animatedScroll,target,{duration:duration,easing:easing,lerp:lerp,onStart:function onStart(){lock&&(_this5.isLocked=!0),_this5.isScrolling="smooth",_onStart===null||_onStart===void 0?void 0:_onStart(_this5)},onUpdate:function onUpdate(value,completed){_this5.isScrolling="smooth",_this5.lastVelocity=_this5.velocity,_this5.velocity=value-_this5.animatedScroll,_this5.direction=Math.sign(_this5.velocity),_this5.animatedScroll=value,_this5.setScroll(_this5.scroll),programmatic&&(_this5.targetScroll=value),completed||_this5.emit(),completed&&(_this5.reset(),_this5.emit(),onComplete===null||onComplete===void 0?void 0:onComplete(_this5),_this5.userData={},_this5.preventNextNativeScrollEvent())}})}},{key:"preventNextNativeScrollEvent",value:function preventNextNativeScrollEvent(){var _this6=this;this.__preventNextNativeScrollEvent=!0,requestAnimationFrame(function(){delete _this6.__preventNextNativeScrollEvent})}},{key:"rootElement",get:function get(){return this.options.wrapper===window?document.documentElement:this.options.wrapper}},{key:"limit",get:function get(){return this.options.__experimental__naiveDimensions?this.isHorizontal?this.rootElement.scrollWidth-this.rootElement.clientWidth:this.rootElement.scrollHeight-this.rootElement.clientHeight:this.dimensions.limit[this.isHorizontal?"x":"y"]}},{key:"isHorizontal",get:function get(){return this.options.orientation==="horizontal"}},{key:"actualScroll",get:function get(){return this.isHorizontal?this.rootElement.scrollLeft:this.rootElement.scrollTop}},{key:"scroll",get:function get(){return this.options.infinite?modulo(this.animatedScroll,this.limit):this.animatedScroll}},{key:"progress",get:function get(){return this.limit===0?1:this.scroll/this.limit}},{key:"isScrolling",get:function get(){return this.__isScrolling},set:function set(value){this.__isScrolling!==value&&(this.__isScrolling=value,this.updateClassName())}},{key:"isStopped",get:function get(){return this.__isStopped},set:function set(value){this.__isStopped!==value&&(this.__isStopped=value,this.updateClassName())}},{key:"isLocked",get:function get(){return this.__isLocked},set:function set(value){this.__isLocked!==value&&(this.__isLocked=value,this.updateClassName())}},{key:"isSmooth",get:function get(){return this.isScrolling==="smooth"}},{key:"className",get:function get(){var className="lenis";return this.isStopped&&(className+=" lenis-stopped"),this.isLocked&&(className+=" lenis-locked"),this.isScrolling&&(className+=" lenis-scrolling"),this.isScrolling==="smooth"&&(className+=" lenis-smooth"),className}},{key:"updateClassName",value:function updateClassName(){this.cleanUpClassName(),this.rootElement.className="".concat(this.rootElement.className," ").concat(this.className).trim()}},{key:"cleanUpClassName",value:function cleanUpClassName(){this.rootElement.className=this.rootElement.className.replace(/lenis(-\w+)?/g,"").trim()}}]),Lenis}();return Lenis}),function(window,$){"use strict";var counter=0,$headCache=$("head"),oldBigText=window.BigText,oldjQueryMethod=$.fn.bigtext,BigText={DEBUG_MODE:!1,DEFAULT_MIN_FONT_SIZE_PX:null,DEFAULT_MAX_FONT_SIZE_PX:528,GLOBAL_STYLE_ID:"bigtext-style",STYLE_ID:"bigtext-id",LINE_CLASS_PREFIX:"bigtext-line",EXEMPT_CLASS:"bigtext-exempt",noConflict:function(restore){return restore&&($.fn.bigtext=oldjQueryMethod,window.BigText=oldBigText),BigText},supports:{wholeNumberFontSizeOnly:function(){if("getComputedStyle"in window){var test=$("
").css({position:"absolute","font-size":"14.1px"}).insertBefore($("script").eq(0)),computedStyle=window.getComputedStyle(test[0],null),ret=computedStyle&&computedStyle.getPropertyValue("font-size")==="14px";return test.remove(),ret}return!0}()},init:function(){$("#"+BigText.GLOBAL_STYLE_ID).length||$headCache.append(BigText.generateStyleTag(BigText.GLOBAL_STYLE_ID,[".bigtext * { white-space: nowrap; } .bigtext > * { display: block; }",".bigtext ."+BigText.EXEMPT_CLASS+", .bigtext ."+BigText.EXEMPT_CLASS+" * { white-space: normal; }"]))},bindResize:function(eventName,resizeFunction){var timeoutId;$(window).off(eventName).on(eventName,function(){timeoutId&&clearTimeout(timeoutId),timeoutId=setTimeout(resizeFunction,100)})},getStyleId:function(id){return BigText.STYLE_ID+"-"+id},generateStyleTag:function(id,css){return $("").attr("id",id)},clearCss:function(id){var styleId=BigText.getStyleId(id);$("#"+styleId).remove()},generateCss:function(id,linesFontSizes,lineWordSpacings,minFontSizes){var css=[];BigText.clearCss(id);for(var j=0,k=linesFontSizes.length;j=maxWidth){$line.css(property,"");if(width===maxWidth)return{match:"exact",size:parseFloat((parseFloat(size)-.1).toFixed(3))};var under=maxWidth-previousWidth,over=width-maxWidth;return{match:"estimate",size:parseFloat((parseFloat(size)-(property==="word-spacing"&&previousWidth&&overmaxFontSize){newFontSize=maxFontSize;break e}lineMax=BigText.testLineDimensions($line,maxWidth,"font-size",newFontSize+j*intervals[m],intervals[m],"px",lineMax);if(typeof lineMax!="number"){newFontSize=lineMax.size;if(lineMax.match==="exact")break e;break t}}ratios.push(maxWidth/newFontSize),newFontSize>maxFontSize?(fontSizes.push(maxFontSize),minFontSizes.push(!1)):!!minFontSize&&newFontSize
';this.core.outer.addClass("lg-has-thumb"),this.settings.appendThumbnailsTo===".lg-components"?this.core.$lgComponents.append(html):this.core.outer.append(html),this.$thumbOuter=this.core.outer.find(".lg-thumb-outer").first(),this.$lgThumb=this.core.outer.find(".lg-thumb").first(),this.settings.animateThumb&&this.core.outer.find(".lg-thumb").css("transition-duration",this.core.settings.speed+"ms").css("width",this.thumbTotalWidth+"px").css("position","relative"),this.setThumbItemHtml(this.core.galleryItems)},Thumbnail.prototype.enableThumbDrag=function(){var _this=this,thumbDragUtils={cords:{startX:0,endX:0},isMoved:!1,newTranslateX:0,startTime:new Date,endTime:new Date,touchMoveTime:0},isDragging=!1;this.$thumbOuter.addClass("lg-grab"),this.core.outer.find(".lg-thumb").first().on("mousedown.lg.thumb",function(e){_this.thumbTotalWidth>_this.thumbOuterWidth&&(e.preventDefault(),thumbDragUtils.cords.startX=e.pageX,thumbDragUtils.startTime=new Date,_this.thumbClickable=!1,isDragging=!0,_this.core.outer.get().scrollLeft+=1,_this.core.outer.get().scrollLeft-=1,_this.$thumbOuter.removeClass("lg-grab").addClass("lg-grabbing"))}),this.$LG(window).on("mousemove.lg.thumb.global"+this.core.lgId,function(e){if(!_this.core.lgOpened)return;isDragging&&(thumbDragUtils.cords.endX=e.pageX,thumbDragUtils=_this.onThumbTouchMove(thumbDragUtils))}),this.$LG(window).on("mouseup.lg.thumb.global"+this.core.lgId,function(){if(!_this.core.lgOpened)return;thumbDragUtils.isMoved?thumbDragUtils=_this.onThumbTouchEnd(thumbDragUtils):_this.thumbClickable=!0,isDragging&&(isDragging=!1,_this.$thumbOuter.removeClass("lg-grabbing").addClass("lg-grab"))})},Thumbnail.prototype.enableThumbSwipe=function(){var _this=this,thumbDragUtils={cords:{startX:0,endX:0},isMoved:!1,newTranslateX:0,startTime:new Date,endTime:new Date,touchMoveTime:0};this.$lgThumb.on("touchstart.lg",function(e){_this.thumbTotalWidth>_this.thumbOuterWidth&&(e.preventDefault(),thumbDragUtils.cords.startX=e.targetTouches[0].pageX,_this.thumbClickable=!1,thumbDragUtils.startTime=new Date)}),this.$lgThumb.on("touchmove.lg",function(e){_this.thumbTotalWidth>_this.thumbOuterWidth&&(e.preventDefault(),thumbDragUtils.cords.endX=e.targetTouches[0].pageX,thumbDragUtils=_this.onThumbTouchMove(thumbDragUtils))}),this.$lgThumb.on("touchend.lg",function(){thumbDragUtils.isMoved?thumbDragUtils=_this.onThumbTouchEnd(thumbDragUtils):_this.thumbClickable=!0})},Thumbnail.prototype.rebuildThumbnails=function(){var _this=this;this.$thumbOuter.addClass("lg-rebuilding-thumbnails"),setTimeout(function(){_this.thumbTotalWidth=_this.core.galleryItems.length*(_this.settings.thumbWidth+_this.settings.thumbMargin),_this.$lgThumb.css("width",_this.thumbTotalWidth+"px"),_this.$lgThumb.empty(),_this.setThumbItemHtml(_this.core.galleryItems),_this.animateThumb(_this.core.index)},50),setTimeout(function(){_this.$thumbOuter.removeClass("lg-rebuilding-thumbnails")},200)},Thumbnail.prototype.setTranslate=function(value){this.$lgThumb.css("transform","translate3d(-"+value+"px, 0px, 0px)")},Thumbnail.prototype.getPossibleTransformX=function(left){return left>this.thumbTotalWidth-this.thumbOuterWidth&&(left=this.thumbTotalWidth-this.thumbOuterWidth),left<0&&(left=0),left},Thumbnail.prototype.animateThumb=function(index){this.$lgThumb.css("transition-duration",this.core.settings.speed+"ms");if(this.settings.animateThumb){var position=0;switch(this.settings.currentPagerPosition){case"left":position=0;break;case"middle":position=this.thumbOuterWidth/2-this.settings.thumbWidth/2;break;case"right":position=this.thumbOuterWidth-this.settings.thumbWidth}this.translateX=(this.settings.thumbWidth+this.settings.thumbMargin)*index-1-position,this.translateX>this.thumbTotalWidth-this.thumbOuterWidth&&(this.translateX=this.thumbTotalWidth-this.thumbOuterWidth),this.translateX<0&&(this.translateX=0),this.setTranslate(this.translateX)}},Thumbnail.prototype.onThumbTouchMove=function(thumbDragUtils){return thumbDragUtils.newTranslateX=this.translateX,thumbDragUtils.isMoved=!0,thumbDragUtils.touchMoveTime=(new Date).valueOf(),thumbDragUtils.newTranslateX-=thumbDragUtils.cords.endX-thumbDragUtils.cords.startX,thumbDragUtils.newTranslateX=this.getPossibleTransformX(thumbDragUtils.newTranslateX),this.setTranslate(thumbDragUtils.newTranslateX),this.$thumbOuter.addClass("lg-dragging"),thumbDragUtils},Thumbnail.prototype.onThumbTouchEnd=function(thumbDragUtils){thumbDragUtils.isMoved=!1,thumbDragUtils.endTime=new Date,this.$thumbOuter.removeClass("lg-dragging");var touchDuration=thumbDragUtils.endTime.valueOf()-thumbDragUtils.startTime.valueOf(),distanceXnew=thumbDragUtils.cords.endX-thumbDragUtils.cords.startX,speedX=Math.abs(distanceXnew)/touchDuration;return speedX>.15&&thumbDragUtils.endTime.valueOf()-thumbDragUtils.touchMoveTime<30?(speedX+=1,speedX>2&&(speedX+=1),speedX+=speedX*(Math.abs(distanceXnew)/this.thumbOuterWidth),this.$lgThumb.css("transition-duration",Math.min(speedX-1,2)+"settings"),distanceXnew*=speedX,this.translateX=this.getPossibleTransformX(this.translateX-distanceXnew),this.setTranslate(this.translateX)):this.translateX=thumbDragUtils.newTranslateX,Math.abs(thumbDragUtils.cords.endX-thumbDragUtils.cords.startX)]+(>|$)/g,""),altApp='alt="'+altTh+' " '),thumbImg?'
\n \n
':'
\n
'},Thumbnail.prototype.getThumbItemHtml=function(items){var thumbList="";for(var i=0;i'),this.core.outer.find(".lg-toggle-thumb").first().on("click.lg",function(){_this.core.outer.toggleClass("lg-components-open")}))},Thumbnail.prototype.thumbKeyPress=function(){var _this=this;this.$LG(window).on("keydown.lg.thumb.global"+this.core.lgId,function(e){if(!_this.core.lgOpened||!_this.settings.toggleThumb)return;e.keyCode===38?(e.preventDefault(),_this.core.outer.addClass("lg-components-open")):e.keyCode===40&&(e.preventDefault(),_this.core.outer.removeClass("lg-components-open"))})},Thumbnail.prototype.destroy=function(){this.settings.thumbnail&&(this.$LG(window).off(".lg.thumb.global"+this.core.lgId),this.core.LGel.off(".lg.thumb"),this.core.LGel.off(".thumb"),this.$thumbOuter.remove(),this.core.outer.removeClass("lg-has-thumb"))},Thumbnail}();return Thumbnail}),function(global,factory){typeof exports=="object"&&typeof module!="undefined"?module.exports=factory():typeof define=="function"&&define.amd?define(factory):(global=typeof globalThis!="undefined"?globalThis:global||self,global.lgVideo=factory())}(this,function(){"use strict";var __assign=function(){return __assign=Object.assign||function __assign(t){for(var s,i=1,n=arguments.length;i";var tag=document.createElement("script");tag.src="//www.youtube.com/player_api";var firstScriptTag=document.getElementsByTagName("script")[0];firstScriptTag.parentNode.insertBefore(tag,firstScriptTag);var ytIframeplayer,setMute=muted==="yes"?0:100;window.onYouTubePlayerAPIReady=function(){ytIframeplayer=new YT.Player(videoId,{videoId:videoInfo.youtube[1],events:{onReady:function(event){event.target.setVolume(setMute)}}})}}else if(videoInfo.vimeo){var videoId="lg-vimeo"+index;videoInfo.autoplay=autoplay,videoInfo.muted=muted;var playerParams=getVimeoURLParams(this.settings.vimeoPlayerParams,videoInfo),data_video="";autoplay!==""&&(data_video=' data-autoplay="'+(autoplay==="yes"?1:0)+'"'),video='"}else if(videoInfo.wistia){var wistiaId="lg-wistia"+index,playerParams=param(this.settings.wistiaPlayerParams);playerParams=playerParams?"?"+playerParams:"",video='"}else if(videoInfo.html5){var html5VideoMarkup="";for(var i=0;i';if(html5Video.tracks){var _loop_1=function(i){var trackAttributes="",track=html5Video.tracks[i];Object.keys(track||{}).forEach(function(key){trackAttributes+=key+'="'+track[key]+'" '}),html5VideoMarkup+=""};for(var i=0;i\n "+html5VideoMarkup+"\n Your browser does not support HTML5 video.\n "}return video},Video.prototype.appendVideos=function(el,videoParams){var _a,videoHtml=this.getVideoHtml(videoParams.src,videoParams.addClass,videoParams.index,videoParams.html5Video,videoParams.autoplay,videoParams.muted);el.find(".lg-video-cont").append(videoHtml);var $videoElement=el.find(".lg-video-object").first();videoParams.html5Video&&$videoElement.on("mousedown.lg.video",function(e){e.stopPropagation()});if(this.settings.videojs&&((_a=this.core.galleryItems[videoParams.index].__slideVideoInfo)===null||_a===void 0?void 0:_a.html5))try{return videojs($videoElement.get(),this.settings.videojsOptions)}catch(e){console.warn("lightGallery:- Make sure you have included videojs")}},Video.prototype.gotoNextSlideOnVideoEnd=function(src,index){var _this=this,$videoElement=this.core.getSlideItem(index).find(".lg-video-object").first(),videoInfo=this.core.galleryItems[index].__slideVideoInfo||{};if(this.settings.gotoNextSlideOnVideoEnd)if(videoInfo.html5)$videoElement.on("ended",function(){_this.core.goToNextSlide()});else if(videoInfo.vimeo)try{(new Vimeo.Player($videoElement.get())).on("ended",function(){_this.core.goToNextSlide()})}catch(e){console.warn("lightGallery:- Make sure you have included //github.com/vimeo/player.js")}else if(videoInfo.wistia)try{window._wq=window._wq||[],window._wq.push({id:$videoElement.attr("id"),onReady:function(video){video.bind("end",function(){_this.core.goToNextSlide()})}})}catch(e){console.warn("lightGallery:- Make sure you have included //fast.wistia.com/assets/external/E-v1.js")}},Video.prototype.controlVideo=function(index,action){var $videoElement=this.core.getSlideItem(index).find(".lg-video-object").first(),videoInfo=this.core.galleryItems[index].__slideVideoInfo||{};if(!$videoElement.get())return;if(videoInfo.youtube)try{$videoElement.get().contentWindow.postMessage('{"event":"command","func":"'+action+'Video","args":""}',"*")}catch(e){console.warn("lightGallery:- "+e)}else if(videoInfo.vimeo)try{(new Vimeo.Player($videoElement.get()))[action]()}catch(e){console.warn("lightGallery:- Make sure you have included //github.com/vimeo/player.js")}else if(videoInfo.html5)if(this.settings.videojs)try{videojs($videoElement.get())[action]()}catch(e){console.warn("lightGallery:- Make sure you have included videojs")}else $videoElement.get()[action]();else if(videoInfo.wistia)try{window._wq=window._wq||[],window._wq.push({id:$videoElement.attr("id"),onReady:function(video){video[action]()}})}catch(e){console.warn("lightGallery:- Make sure you have included //fast.wistia.com/assets/external/E-v1.js")}},Video.prototype.loadVideoOnPosterClick=function($el,forcePlay){var _this=this;if(!$el.hasClass("lg-video-loaded"))if(!$el.hasClass("lg-has-video")){$el.addClass("lg-has-video");var _html=void 0,_src=this.core.galleryItems[this.core.index].src,video=this.core.galleryItems[this.core.index].video;video&&(_html=typeof video=="string"?JSON.parse(video):video);var videoJsPlayer_1=this.appendVideos($el,{src:_src,addClass:"",index:this.core.index,html5Video:_html});this.gotoNextSlideOnVideoEnd(_src,this.core.index);var $tempImg=$el.find(".lg-object").first().get();$el.find(".lg-video-cont").first().append($tempImg),$el.addClass("lg-video-loading"),videoJsPlayer_1&&videoJsPlayer_1.ready(function(){videoJsPlayer_1.on("loadedmetadata",function(){_this.onVideoLoadAfterPosterClick($el,_this.core.index)})}),$el.find(".lg-video-object").first().on("load.lg error.lg loadedmetadata.lg",function(){setTimeout(function(){_this.onVideoLoadAfterPosterClick($el,_this.core.index)},50)})}else this.playVideo(this.core.index);else forcePlay&&this.playVideo(this.core.index)},Video.prototype.onVideoLoadAfterPosterClick=function($el,index){$el.addClass("lg-video-loaded"),this.playVideo(index)},Video.prototype.destroy=function(){this.core.LGel.off(".lg.video"),this.core.LGel.off(".video")},Video}();return Video}),!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):((e="undefined"!=typeof globalThis?globalThis:e||self).Vimeo=e.Vimeo||{},e.Vimeo.Player=t())}(this,function(){"use strict";function r(e,t){for(var n=0;n1||cache.items.merge,widths[iterator]=grid?width*merge:this._items[iterator].width();this._widths=widths}},{filter:["items","settings"],run:function(){var clones=[],items=this._items,settings=this.settings,view=Math.max(settings.items*2,4),size=Math.ceil(items.length/2)*2,repeat=settings.loop&&items.length?settings.rewind?view:Math.max(view,size):0,append="",prepend="";repeat/=2;while(repeat--)clones.push(this.normalize(clones.length/2,!0)),append+=items[clones[clones.length-1]][0].outerHTML,clones.push(this.normalize(items.length-1-(clones.length-1)/2,!0)),prepend=items[clones[clones.length-1]][0].outerHTML+prepend;this._clones=clones,$(append).addClass("cloned").appendTo(this.$stage),$(prepend).addClass("cloned").prependTo(this.$stage)}},{filter:["width","items","settings"],run:function(){var rtl=this.settings.rtl?1:-1,size=this._clones.length+this._items.length,iterator=-1,previous=0,current=0,coordinates=[];while(++iterator0?41:this._width*this.settings.stagePadding/200,padding=stagePadding,coordinates=this._coordinates,css={width:Math.ceil(Math.abs(coordinates[coordinates.length-1]))+padding*2,"padding-left":padding||"","padding-right":padding||""};this.$stage.css(css)}},{filter:["width","items","settings"],run:function(cache){var iterator=this._coordinates.length,grid=!this.settings.autoWidth,items=this.$stage.children();if(grid&&cache.items.merge)while(iterator--)cache.css.width=this._widths[this.relative(iterator)],items.eq(iterator).css(cache.css);else grid&&(cache.css.width=cache.items.width,items.css(cache.css))}},{filter:["items"],run:function(){this._coordinates.length<1&&this.$stage.removeAttr("style")}},{filter:["width","items","settings"],run:function(cache){cache.current=cache.current?this.$stage.children().index(cache.current):0,cache.current=Math.max(this.minimum(),Math.min(this.maximum(),cache.current)),this.reset(cache.current)}},{filter:["position"],run:function(){this.animate(this.coordinates(this._current))}},{filter:["width","position","items","settings"],run:function(){var stagePadding=this._width<480&&this.settings.stagePadding>0?41:this._width*this.settings.stagePadding/200,rtl=this.settings.rtl?1:-1,padding=this.settings.stagePadding*2,begin=this.coordinates(this.current())+padding,end=begin+this.width()*rtl,inner,outer,matches=[],i,n;for(i=0,n=this._coordinates.length;i",end)||this.op(outer,"<",begin)&&this.op(outer,">",end))&&matches.push(i);this.$stage.children(".active").removeClass("active"),this.$stage.children(":eq("+matches.join("), :eq(")+")").addClass("active"),this.settings.center&&(this.$stage.children(".center").removeClass("center"),this.$stage.children().eq(this.current()).addClass("center"))}}],Owl.prototype.initialize=function(){this.enter("initializing"),this.trigger("initialize"),this.$element.toggleClass(this.settings.rtlClass,this.settings.rtl);if(this.settings.autoWidth&&!this.is("pre-loading")){var imgs,nestedSelector,width;imgs=this.$element.find("img"),nestedSelector=this.settings.nestedItemSelector?"."+this.settings.nestedItemSelector:undefined,width=this.$element.children(nestedSelector).width(),imgs.length&&width<=0&&this.preloadAutoWidthImages(imgs)}this.$element.addClass(this.options.loadingClass),this.$stage=$("<"+this.settings.stageElement+' class="'+this.settings.stageClass+'"/>').wrap('
'),this.$element.append(this.$stage.parent()),this.replace(this.$element.children().not(this.$stage.parent())),this.$element.is(":visible")?this.refresh():this.invalidate("width"),this.$element.removeClass(this.options.loadingClass).addClass(this.options.loadedClass),this.registerEventHandlers(),this.leave("initializing"),this.trigger("initialized")},Owl.prototype.setup=function(){var viewport=this.viewport(),overwrites=this.options.responsive,match=-1,settings=null;overwrites?($.each(overwrites,function(breakpoint){breakpoint<=viewport&&breakpoint>match&&(match=Number(breakpoint))}),settings=$.extend({},this.options,overwrites[match]),delete settings.responsive,settings.responsiveClass&&this.$element.attr("class",this.$element.attr("class").replace(new RegExp("("+this.options.responsiveClass+"-)\\S+\\s","g"),"$1"+match))):settings=$.extend({},this.options);if(this.settings===null||this._breakpoint!==match)this.trigger("change",{property:{name:"settings",value:settings}}),this._breakpoint=match,this.settings=settings,this.invalidate("settings"),this.trigger("changed",{property:{name:"settings",value:this.settings}})},Owl.prototype.optionsLogic=function(){this.settings.autoWidth&&(this.settings.stagePadding=!1,this.settings.merge=!1)},Owl.prototype.prepare=function(item,index){var event=this.trigger("prepare",{content:item});return event.data||(event.data=$("<"+this.settings.itemElement+"/>").addClass(this.options.itemClass).attr("data-index",index+1).append(item)),this.trigger("prepared",{content:event.data}),event.data},Owl.prototype.update=function(){var i=0,n=this._pipe.length,filter=$.proxy(function(p){return this[p]},this._invalidated),cache={};while(i0)&&this._pipe[i].run(cache),i++;this._invalidated={},!this.is("valid")&&this.enter("valid")},Owl.prototype.width=function(dimension){dimension=dimension||Owl.Width.Default;var stagePadding=this._width<480&&this.settings.stagePadding>0?41:this._width*this.settings.stagePadding/200;switch(dimension){case Owl.Width.Inner:case Owl.Width.Outer:return this._width;default:return this._width-stagePadding*2+this.settings.margin}},Owl.prototype.refresh=function(){this.enter("refreshing"),this.trigger("refresh"),this.setup(),this.optionsLogic(),this.$element.addClass(this.options.refreshClass),this.update(),this.$element.removeClass(this.options.refreshClass),this.leave("refreshing"),this.trigger("refreshed")},Owl.prototype.onThrottledResize=function(){window.clearTimeout(this.resizeTimer),this.resizeTimer=window.setTimeout(this._handlers.onResize,this.settings.responsiveRefreshRate)},Owl.prototype.onResize=function(){if(!this._items.length)return!1;if(this._width===this.$element.width())return!1;if(!this.$element.is(":visible"))return!1;this.enter("resizing");if(this.trigger("resize").isDefaultPrevented())return this.leave("resizing"),!1;this.invalidate("width"),this.refresh(),this.leave("resizing"),this.trigger("resized")},Owl.prototype.registerEventHandlers=function(){$.support.transition&&this.$stage.on($.support.transition.end+".owl.core",$.proxy(this.onTransitionEnd,this)),this.settings.responsive!==!1&&this.on(window,"resize",this._handlers.onThrottledResize),this.settings.mouseDrag&&(this.$element.addClass(this.options.dragClass),this.$stage.on("mousedown.owl.core",$.proxy(this.onDragStart,this)),this.$stage.on("dragstart.owl.core selectstart.owl.core",function(){return!1})),this.settings.touchDrag&&(this.$stage.on("touchstart.owl.core",$.proxy(this.onDragStart,this)),this.$stage.on("touchcancel.owl.core",$.proxy(this.onDragEnd,this)))},Owl.prototype.onDragStart=function(event){var stage=null;if(event.which===3)return;$.support.transform?(stage=this.$stage.css("transform").replace(/.*\(|\)| /g,"").split(","),stage={x:stage[stage.length===16?12:4],y:stage[stage.length===16?13:5]}):(stage=this.$stage.position(),stage={x:this.settings.rtl?stage.left+this.$stage.width()-this.width()+this.settings.margin:stage.left,y:stage.top}),this.is("animating")&&($.support.transform?this.animate(stage.x):this.$stage.stop(),this.invalidate("position")),this.$element.toggleClass(this.options.grabClass,event.type==="mousedown"),this.speed(0),this._drag.time=(new Date).getTime(),this._drag.target=$(event.target),this._drag.stage.start=stage,this._drag.stage.current=stage,this._drag.pointer=this.pointer(event),$(document).on("mouseup.owl.core touchend.owl.core",$.proxy(this.onDragEnd,this)),$(document).one("mousemove.owl.core touchmove.owl.core",$.proxy(function(event){var delta=this.difference(this._drag.pointer,this.pointer(event));$(document).on("mousemove.owl.core touchmove.owl.core",$.proxy(this.onDragMove,this));if(Math.abs(delta.x)0^this.settings.rtl?"left":"right";$(document).off(".owl.core"),this.$element.removeClass(this.options.grabClass);if(delta.x!==0&&this.is("dragging")||!this.is("valid"))this.speed(this.settings.dragEndSpeed||this.settings.smartSpeed),this.current(this.closest(stage.x,delta.x!==0?direction:this._drag.direction)),this.invalidate("position"),this.update(),this._drag.direction=direction,(Math.abs(delta.x)>3||(new Date).getTime()-this._drag.time>300)&&this._drag.target.one("click.owl.core",function(){return!1});if(!this.is("dragging"))return;this.leave("dragging"),this.trigger("dragged")},Owl.prototype.closest=function(coordinate,direction){var position=-1,pull=30,width=this.width(),coordinates=this.coordinates();return this.settings.freeDrag||$.each(coordinates,$.proxy(function(index,value){return coordinate>value-pull&&coordinate",coordinates[index+1]||value-width)&&(position=direction==="left"?index+1:index),position===-1},this)),this.settings.loop||(this.op(coordinate,">",coordinates[this.minimum()])?position=coordinate=this.minimum():this.op(coordinate,"<",coordinates[this.maximum()])&&(position=coordinate=this.maximum())),position},Owl.prototype.animate=function(coordinate){var animate=this.speed()>0;this.is("animating")&&this.onTransitionEnd(),animate&&(this.enter("animating"),this.trigger("translate")),$.support.transform3d&&$.support.transition?this.$stage.css({transform:"translate3d("+coordinate+"px,0px,0px)",transition:this.speed()/1e3+"s"}):animate?this.$stage.animate({left:coordinate+"px"},this.speed(),this.settings.fallbackEasing,$.proxy(this.onTransitionEnd,this)):this.$stage.css({left:coordinate+"px"})},Owl.prototype.is=function(state){return this._states.current[state]&&this._states.current[state]>0},Owl.prototype.current=function(position){if(position===undefined)return this._current;if(this._items.length===0)return undefined;position=this.normalize(position);if(this._current!==position){var event=this.trigger("change",{property:{name:"position",value:position}});event.data!==undefined&&(position=this.normalize(event.data)),this._current=position,this.invalidate("position"),this.trigger("changed",{property:{name:"position",value:this._current}})}return this._current},Owl.prototype.invalidate=function(part){return $.type(part)==="string"&&(this._invalidated[part]=!0,this.is("valid")&&this.leave("valid")),$.map(this._invalidated,function(v,i){return i})},Owl.prototype.reset=function(position){position=this.normalize(position);if(position===undefined)return;this._speed=0,this._current=position,this.suppress(["translate","translated"]),this.animate(this.coordinates(position)),this.release(["translate","translated"])},Owl.prototype.normalize=function(position,relative){var n=this._items.length,m=relative?0:this._clones.length;if(!$.isNumeric(position)||n<1)position=undefined;else if(position<0||position>=n+m)position=((position-m/2)%n+n)%n+m/2;return position},Owl.prototype.relative=function(position){return position-=this._clones.length/2,this.normalize(position,!0)},Owl.prototype.maximum=function(relative){var settings=this.settings,maximum=this._coordinates.length,boundary=Math.abs(this._coordinates[maximum-1])-this._width,i=-1,j;if(settings.loop)maximum=this._clones.length/2+this._items.length-1;else if(settings.autoWidth||settings.merge)while(maximum-i>1)Math.abs(this._coordinates[j=maximum+i>>1])0)-(distance<0),items=this._items.length,minimum=this.minimum(),maximum=this.maximum();this.settings.loop?(!this.settings.rewind&&Math.abs(distance)>items/2&&(distance+=direction*-1*items),position=current+distance,revert=((position-minimum)%items+items)%items+minimum,revert!==position&&revert-distance<=maximum&&revert-distance>0&&(current=revert-distance,position=revert,this.reset(current))):this.settings.rewind?(maximum+=1,position=(position%maximum+maximum)%maximum):position=Math.max(minimum,Math.min(maximum,position)),this.speed(this.duration(current,position,speed)),this.current(position),this.$element.is(":visible")&&this.update()},Owl.prototype.next=function(speed){speed=speed||!1,this.to(this.relative(this.current())+1,speed)},Owl.prototype.prev=function(speed){speed=speed||!1,this.to(this.relative(this.current())-1,speed)},Owl.prototype.onTransitionEnd=function(event){if(event!==undefined){event.stopPropagation();if((event.target||event.srcElement||event.originalTarget)!==this.$stage.get(0))return!1}this.leave("animating"),this.trigger("translated")},Owl.prototype.viewport=function(){var width;if(this.options.responsiveBaseElement!==window)width=$(this.options.responsiveBaseElement).width();else if(window.innerWidth)width=window.innerWidth;else{if(!document.documentElement||!document.documentElement.clientWidth)throw"Can not detect viewport width.";width=document.documentElement.clientWidth}return width},Owl.prototype.replace=function(content){this.$stage.empty(),this._items=[],content&&(content=content instanceof jQuery?content:$(content)),this.settings.nestedItemSelector&&(content=content.find("."+this.settings.nestedItemSelector)),content.filter(function(){return this.nodeType===1}).each($.proxy(function(index,item){item=this.prepare(item,index),this.$stage.append(item),this._items.push(item),this._mergers.push(item.find("[data-merge]").addBack("[data-merge]").attr("data-merge")*1||1)},this)),this.reset($.isNumeric(this.settings.startPosition)?this.settings.startPosition:0),this.invalidate("items")},Owl.prototype.add=function(content,position){var current=this.relative(this._current);position=position===undefined?this._items.length:this.normalize(position,!0),content=content instanceof jQuery?content:$(content),this.trigger("add",{content:content,position:position}),content=this.prepare(content,this._items[current].index()),this._items.length===0||position===this._items.length?(this._items.length===0&&this.$stage.append(content),this._items.length!==0&&this._items[position-1].after(content),this._items.push(content),this._mergers.push(content.find("[data-merge]").andSelf("[data-merge]").attr("data-merge")*1||1)):(this._items[position].before(content),this._items.splice(position,0,content),this._mergers.splice(position,0,content.find("[data-merge]").andSelf("[data-merge]").attr("data-merge")*1||1)),this._items[current]&&this.reset(this._items[current].index()),this.invalidate("items"),this.trigger("added",{content:content,position:position})},Owl.prototype.remove=function(position){position=this.normalize(position,!0);if(position===undefined)return;this.trigger("remove",{content:this._items[position],position:position}),this._items[position].remove(),this._items.splice(position,1),this._mergers.splice(position,1),this.invalidate("items"),this.trigger("removed",{content:null,position:position})},Owl.prototype.preloadAutoWidthImages=function(images){images.each($.proxy(function(i,element){this.enter("pre-loading"),element=$(element),$(new Image).one("load",$.proxy(function(e){element.attr("src",e.target.src),element.css("opacity",1),this.leave("pre-loading"),!this.is("pre-loading")&&!this.is("initializing")&&this.refresh()},this)).attr("src",element.attr("src")||element.attr("data-src")||element.attr("data-src-retina"))},this))},Owl.prototype.destroy=function(){this.$element.off(".owl.core"),this.$stage.off(".owl.core"),$(document).off(".owl.core"),this.settings.responsive!==!1&&(window.clearTimeout(this.resizeTimer),this.off(window,"resize",this._handlers.onThrottledResize));for(var i in this._plugins)this._plugins[i].destroy();this.$stage.children(".cloned").remove(),this.$stage.unwrap(),this.$stage.children().contents().unwrap(),this.$stage.children().unwrap(),this.$element.removeClass(this.options.refreshClass).removeClass(this.options.loadingClass).removeClass(this.options.loadedClass).removeClass(this.options.rtlClass).removeClass(this.options.dragClass).removeClass(this.options.grabClass).attr("class",this.$element.attr("class").replace(new RegExp(this.options.responsiveClass+"-\\S+\\s","g"),"")).removeData("owl.carousel")},Owl.prototype.op=function(a,o,b){var rtl=this.settings.rtl;switch(o){case"<":return rtl?a>b:a":return rtl?ab;case">=":return rtl?a<=b:a>=b;case"<=":return rtl?a>=b:a<=b;default:}},Owl.prototype.on=function(element,event,listener,capture){element.addEventListener?element.addEventListener(event,listener,capture):element.attachEvent&&element.attachEvent("on"+event,listener)},Owl.prototype.off=function(element,event,listener,capture){element.removeEventListener?element.removeEventListener(event,listener,capture):element.detachEvent&&element.detachEvent("on"+event,listener)},Owl.prototype.trigger=function(name,data,namespace,state,enter){var status={item:{count:this._items.length,index:this.current()}},handler=$.camelCase($.grep(["on",name,namespace],function(v){return v}).join("-").toLowerCase()),event=$.Event([name,"owl",namespace||"carousel"].join(".").toLowerCase(),$.extend({relatedTarget:this},status,data));return this._supress[name]||($.each(this._plugins,function(name,plugin){plugin.onTrigger&&plugin.onTrigger(event)}),this.register({type:Owl.Type.Event,name:name}),this.$element.trigger(event),this.settings&&typeof this.settings[handler]=="function"&&this.settings[handler].call(this,event)),event},Owl.prototype.enter=function(name){$.each([name].concat(this._states.tags[name]||[]),$.proxy(function(i,name){this._states.current[name]===undefined&&(this._states.current[name]=0),this._states.current[name]++},this))},Owl.prototype.leave=function(name){$.each([name].concat(this._states.tags[name]||[]),$.proxy(function(i,name){this._states.current[name]--},this))},Owl.prototype.register=function(object){if(object.type===Owl.Type.Event){$.event.special[object.name]||($.event.special[object.name]={});if(!$.event.special[object.name].owl){var _default=$.event.special[object.name]._default;$.event.special[object.name]._default=function(e){return _default&&_default.apply&&(!e.namespace||e.namespace.indexOf("owl")===-1)?_default.apply(this,arguments):e.namespace&&e.namespace.indexOf("owl")>-1},$.event.special[object.name].owl=!0}}else object.type===Owl.Type.State&&(this._states.tags[object.name]?this._states.tags[object.name]=this._states.tags[object.name].concat(object.tags):this._states.tags[object.name]=object.tags,this._states.tags[object.name]=$.grep(this._states.tags[object.name],$.proxy(function(tag,i){return $.inArray(tag,this._states.tags[object.name])===i},this)))},Owl.prototype.suppress=function(events){$.each(events,$.proxy(function(index,event){this._supress[event]=!0},this))},Owl.prototype.release=function(events){$.each(events,$.proxy(function(index,event){delete this._supress[event]},this))},Owl.prototype.pointer=function(event){var result={x:null,y:null};return event=event.originalEvent||event||window.event,event=event.touches&&event.touches.length?event.touches[0]:event.changedTouches&&event.changedTouches.length?event.changedTouches[0]:event,event.pageX?(result.x=event.pageX,result.y=event.pageY):(result.x=event.clientX,result.y=event.clientY),result},Owl.prototype.difference=function(first,second){return{x:first.x-second.x,y:first.y-second.y}},$.fn.owlCarousel=function(option){var args=Array.prototype.slice.call(arguments,1);return this.each(function(){var $this=$(this),data=$this.data("owl.carousel");data||(data=new Owl(this,typeof option=="object"&&option),$this.data("owl.carousel",data),$.each(["next","prev","to","destroy","refresh","replace","add","remove"],function(i,event){data.register({type:Owl.Type.Event,name:event}),data.$element.on(event+".owl.carousel.core",$.proxy(function(e){e.namespace&&e.relatedTarget!==this&&(this.suppress([event]),data[event].apply(this,[].slice.call(arguments,1)),this.release([event]))},data))})),typeof option=="string"&&option.charAt(0)!=="_"&&data[option].apply(data,args)})},$.fn.owlCarousel.Constructor=Owl}(window.Zepto||window.jQuery,window,document),function($,window,document,undefined){var AutoRefresh=function(carousel){this._core=carousel,this._interval=null,this._visible=null,this._handlers={"initialized.owl.carousel":$.proxy(function(e){e.namespace&&this._core.settings.autoRefresh&&this.watch()},this)},this._core.options=$.extend({},AutoRefresh.Defaults,this._core.options),this._core.$element.on(this._handlers)};AutoRefresh.Defaults={autoRefresh:!0,autoRefreshInterval:500},AutoRefresh.prototype.watch=function(){if(this._interval)return;this._visible=this._core.$element.is(":visible"),this._interval=window.setInterval($.proxy(this.refresh,this),this._core.settings.autoRefreshInterval)},AutoRefresh.prototype.refresh=function(){if(this._core.$element.is(":visible")===this._visible)return;this._visible=!this._visible,this._core.$element.toggleClass("owl-hidden",!this._visible),this._visible&&this._core.invalidate("width")&&this._core.refresh()},AutoRefresh.prototype.destroy=function(){var handler,property;window.clearInterval(this._interval);for(handler in this._handlers)this._core.$element.off(handler,this._handlers[handler]);for(property in Object.getOwnPropertyNames(this))typeof this[property]!="function"&&(this[property]=null)},$.fn.owlCarousel.Constructor.Plugins.AutoRefresh=AutoRefresh}(window.Zepto||window.jQuery,window,document),function($,window,document,undefined){var Lazy=function(carousel){this._core=carousel,this._loaded=[],this._handlers={"initialized.owl.carousel change.owl.carousel":$.proxy(function(e){if(!e.namespace)return;if(!this._core.settings||!this._core.settings.lazyLoad)return;if(e.property&&e.property.name=="position"||e.type=="initialized"){var settings=this._core.settings,n=settings.center&&Math.ceil(settings.items/2)||settings.items,i=settings.center&&n*-1||0,position=(e.property&&e.property.value||this._core.current())+i,clones=this._core.clones().length,load=$.proxy(function(i,v){this.load(v)},this);while(i++-1)return;$elements.each($.proxy(function(index,element){var $element=$(element),image,url=window.devicePixelRatio>1&&$element.attr("data-src-retina")||$element.attr("data-src");this._core.trigger("load",{element:$element,url:url},"lazy"),$element.is("img")?$element.one("load.owl.lazy",$.proxy(function(){$element.css("opacity",1),this._core.trigger("loaded",{element:$element,url:url},"lazy")},this)).attr("src",url):(image=new Image,image.onload=$.proxy(function(){$element.css({"background-image":"url("+url+")",opacity:"1"}),this._core.trigger("loaded",{element:$element,url:url},"lazy")},this),image.src=url)},this)),this._loaded.push($item.get(0))},Lazy.prototype.destroy=function(){var handler,property;for(handler in this.handlers)this._core.$element.off(handler,this.handlers[handler]);for(property in Object.getOwnPropertyNames(this))typeof this[property]!="function"&&(this[property]=null)},$.fn.owlCarousel.Constructor.Plugins.Lazy=Lazy}(window.Zepto||window.jQuery,window,document),function($,window,document,undefined){var AutoHeight=function(carousel){this._core=carousel,this._handlers={"initialized.owl.carousel refreshed.owl.carousel":$.proxy(function(e){e.namespace&&this._core.settings.autoHeight&&this.update()},this),"changed.owl.carousel":$.proxy(function(e){e.namespace&&this._core.settings.autoHeight&&e.property.name=="position"&&this.update()},this),"loaded.owl.lazy":$.proxy(function(e){e.namespace&&this._core.settings.autoHeight&&e.element.closest("."+this._core.settings.itemClass).index()===this._core.current()&&this.update()},this)},this._core.options=$.extend({},AutoHeight.Defaults,this._core.options),this._core.$element.on(this._handlers)};AutoHeight.Defaults={autoHeight:!1,autoHeightClass:"owl-height"},AutoHeight.prototype.update=function(){var start=this._core._current,end=start+this._core.settings.items,visible=this._core.$stage.children().toArray().slice(start,end);heights=[],maxheight=0,$.each(visible,function(index,item){heights.push($(item).height())}),maxheight=Math.max.apply(null,heights),this._core.$stage.parent().height(maxheight).addClass(this._core.settings.autoHeightClass)},AutoHeight.prototype.destroy=function(){var handler,property;for(handler in this._handlers)this._core.$element.off(handler,this._handlers[handler]);for(property in Object.getOwnPropertyNames(this))typeof this[property]!="function"&&(this[property]=null)},$.fn.owlCarousel.Constructor.Plugins.AutoHeight=AutoHeight}(window.Zepto||window.jQuery,window,document),function($,window,document,undefined){var Video=function(carousel){this._core=carousel,this._videos={},this._playing=null,this._handlers={"initialized.owl.carousel":$.proxy(function(e){e.namespace&&this._core.register({type:"state",name:"playing",tags:["interacting"]})},this),"resize.owl.carousel":$.proxy(function(e){e.namespace&&this._core.settings.video&&this.isInFullScreen()&&e.preventDefault()},this),"refreshed.owl.carousel":$.proxy(function(e){e.namespace&&this._core.is("resizing")&&this._core.$stage.find(".cloned .owl-video-frame").remove()},this),"changed.owl.carousel":$.proxy(function(e){e.namespace&&e.property.name==="position"&&this._playing&&this.stop()},this),"prepared.owl.carousel":$.proxy(function(e){if(!e.namespace)return;var $element=$(e.content).find(".owl-video");$element.length&&($element.css("display","none"),this.fetch($element,$(e.content)))},this)},this._core.options=$.extend({},Video.Defaults,this._core.options),this._core.$element.on(this._handlers),this._core.$element.on("click.owl.video",".owl-video-play-icon",$.proxy(function(e){this.play(e)},this))};Video.Defaults={video:!1,videoHeight:!1,videoWidth:!1},Video.prototype.fetch=function(target,item){var type=target.attr("data-vimeo-id")?"vimeo":"youtube",id=target.attr("data-vimeo-id")||target.attr("data-youtube-id"),width=target.attr("data-width")||this._core.settings.videoWidth,height=target.attr("data-height")||this._core.settings.videoHeight,url=target.attr("href");if(!url)throw new Error("Missing video URL.");id=url.match(/(http:|https:|)\/\/(player.|www.)?(vimeo\.com|youtu(be\.com|\.be|be\.googleapis\.com))\/(video\/|embed\/|watch\?v=|v\/)?([A-Za-z0-9._%-]*)(\&\S+)?/);if(id[3].indexOf("youtu")>-1)type="youtube";else{if(!(id[3].indexOf("vimeo")>-1))throw new Error("Video URL not supported.");type="vimeo"}id=id[6],this._videos[url]={type:type,id:id,width:width,height:height},item.attr("data-video",url),this.thumbnail(target,this._videos[url])},Video.prototype.thumbnail=function(target,video){var tnLink,icon,path,dimensions=video.width&&video.height?'style="width:'+video.width+"px;height:"+video.height+'px;"':"",customTn=target.find("img"),srcType="src",lazyClass="",settings=this._core.settings,create=function(path){icon='
',settings.lazyLoad?tnLink='
':tnLink='
',target.after(tnLink),target.after(icon)};target.wrap('
"),this._core.settings.lazyLoad&&(srcType="data-src",lazyClass="owl-lazy");if(customTn.length)return create(customTn.attr(srcType)),customTn.remove(),!1;video.type==="youtube"?(path="//img.youtube.com/vi/"+video.id+"/hqdefault.jpg",create(path)):video.type==="vimeo"&&$.ajax({type:"GET",url:"//vimeo.com/api/v2/video/"+video.id+".json",jsonp:"callback",dataType:"jsonp",success:function(data){path=data[0].thumbnail_large,create(path)}})},Video.prototype.stop=function(){this._core.trigger("stop",null,"video"),this._playing.find(".owl-video-frame").remove(),this._playing.removeClass("owl-video-playing"),this._playing=null,this._core.leave("playing"),this._core.trigger("stopped",null,"video")},Video.prototype.play=function(event){var target=$(event.target),item=target.closest("."+this._core.settings.itemClass),video=this._videos[item.attr("data-video")],width=video.width||"100%",height=video.height||this._core.$stage.height(),html;if(this._playing)return;this._core.enter("playing"),this._core.trigger("play",null,"video"),item=this._core.items(this._core.relative(item.index())),this._core.reset(item.index()),video.type==="youtube"?html='':video.type==="vimeo"&&(html=''),$('
'+html+"
").insertAfter(item.find(".owl-video")),this._playing=item.addClass("owl-video-playing")},Video.prototype.isInFullScreen=function(){var element=document.fullscreenElement||document.mozFullScreenElement||document.webkitFullscreenElement;return element&&$(element).parent().hasClass("owl-video-frame")},Video.prototype.destroy=function(){var handler,property;this._core.$element.off("click.owl.video");for(handler in this._handlers)this._core.$element.off(handler,this._handlers[handler]);for(property in Object.getOwnPropertyNames(this))typeof this[property]!="function"&&(this[property]=null)},$.fn.owlCarousel.Constructor.Plugins.Video=Video}(window.Zepto||window.jQuery,window,document),function($,window,document,undefined){var Animate=function(scope){this.core=scope,this.core.options=$.extend({},Animate.Defaults,this.core.options),this.swapping=!0,this.previous=undefined,this.next=undefined,this.handlers={"change.owl.carousel":$.proxy(function(e){e.namespace&&e.property.name=="position"&&(this.previous=this.core.current(),this.next=e.property.value)},this),"drag.owl.carousel dragged.owl.carousel translated.owl.carousel":$.proxy(function(e){e.namespace&&(this.swapping=e.type=="translated")},this),"translate.owl.carousel":$.proxy(function(e){e.namespace&&this.swapping&&(this.core.options.animateOut||this.core.options.animateIn)&&this.swap()},this)},this.core.$element.on(this.handlers)};Animate.Defaults={animateOut:!1,animateIn:!1},Animate.prototype.swap=function(){if(this.core.settings.items!==1)return;if(!$.support.animation||!$.support.transition)return;this.core.speed(0);var left,clear=$.proxy(this.clear,this),previous=this.core.$stage.children().eq(this.previous),next=this.core.$stage.children().eq(this.next),incoming=this.core.settings.animateIn,outgoing=this.core.settings.animateOut;if(this.core.current()===this.previous)return;outgoing&&(left=this.core.coordinates(this.previous)-this.core.coordinates(this.next),previous.css({left:left+"px"}).addClass("animated owl-animated-out").addClass(outgoing).on($.support.animation.end,clear)),incoming&&next.addClass("animated owl-animated-in").addClass(incoming).on($.support.animation.end,clear)},Animate.prototype.clear=function(e){$(e.target).hasClass("animated")&&($(e.target).css({left:""}).removeClass("animated owl-animated-out owl-animated-in").removeClass(this.core.settings.animateIn).removeClass(this.core.settings.animateOut),this.core.onTransitionEnd())},Animate.prototype.destroy=function(){var handler,property;for(handler in this.handlers)this.core.$element.off(handler,this.handlers[handler]);for(property in Object.getOwnPropertyNames(this))typeof this[property]!="function"&&(this[property]=null)},$.fn.owlCarousel.Constructor.Plugins.Animate=Animate}(window.Zepto||window.jQuery,window,document),function($,window,document,undefined){var Autoplay=function(carousel){this._core=carousel,this._interval=null,this._paused=!1,this._handlers={"changed.owl.carousel":$.proxy(function(e){e.namespace&&e.property.name==="settings"&&(this._core.settings.autoplay?this.play():this.stop())},this),"initialized.owl.carousel":$.proxy(function(e){e.namespace&&this._core.settings.autoplay&&this.play()},this),"play.owl.autoplay":$.proxy(function(e,t,s){e.namespace&&this.play(t,s)},this),"stop.owl.autoplay":$.proxy(function(e){e.namespace&&this.stop()},this),"mouseover.owl.autoplay":$.proxy(function(){this._core.settings.autoplayHoverPause&&this._core.is("rotating")&&this.pause()},this),"mouseleave.owl.autoplay":$.proxy(function(){this._core.settings.autoplayHoverPause&&this._core.is("rotating")&&this.play()},this)},this._core.$element.on(this._handlers),this._core.options=$.extend({},Autoplay.Defaults,this._core.options)};Autoplay.Defaults={autoplay:!1,autoplayTimeout:5e3,autoplayHoverPause:!1,autoplaySpeed:!1},Autoplay.prototype.play=function(timeout,speed){this._paused=!1;if(this._core.is("rotating"))return;this._core.enter("rotating"),this._interval=window.setInterval($.proxy(function(){if(this._paused||this._core.is("busy")||this._core.is("interacting")||document.hidden)return;this._core.next(speed||this._core.settings.autoplaySpeed)},this),timeout||this._core.settings.autoplayTimeout)},Autoplay.prototype.stop=function(){if(!this._core.is("rotating"))return;window.clearInterval(this._interval),this._core.leave("rotating")},Autoplay.prototype.pause=function(){if(!this._core.is("rotating"))return;this._paused=!0},Autoplay.prototype.destroy=function(){var handler,property;this.stop();for(handler in this._handlers)this._core.$element.off(handler,this._handlers[handler]);for(property in Object.getOwnPropertyNames(this))typeof this[property]!="function"&&(this[property]=null)},$.fn.owlCarousel.Constructor.Plugins.autoplay=Autoplay}(window.Zepto||window.jQuery,window,document),function($,window,document,undefined){"use strict";var Navigation=function(carousel){this._core=carousel,this._initialized=!1,this._pages=[],this._controls={},this._templates=[],this.$element=this._core.$element,this._overrides={next:this._core.next,prev:this._core.prev,to:this._core.to},this._handlers={"prepared.owl.carousel":$.proxy(function(e){e.namespace&&this._core.settings.dotsData&&this._templates.push('
'+$(e.content).find("[data-dot]").andSelf("[data-dot]").attr("data-dot")+"
")},this),"added.owl.carousel":$.proxy(function(e){e.namespace&&this._core.settings.dotsData&&this._templates.splice(e.position,0,this._templates.pop())},this),"remove.owl.carousel":$.proxy(function(e){e.namespace&&this._core.settings.dotsData&&this._templates.splice(e.position,1)},this),"changed.owl.carousel":$.proxy(function(e){e.namespace&&e.property.name=="position"&&this.draw()},this),"initialized.owl.carousel":$.proxy(function(e){e.namespace&&!this._initialized&&(this._core.trigger("initialize",null,"navigation"),this.initialize(),this.update(),this.draw(),this._initialized=!0,this._core.trigger("initialized",null,"navigation"))},this),"refreshed.owl.carousel":$.proxy(function(e){e.namespace&&this._initialized&&(this._core.trigger("refresh",null,"navigation"),this.update(),this.draw(),this._core.trigger("refreshed",null,"navigation"))},this)},this._core.options=$.extend({},Navigation.Defaults,this._core.options),this.$element.on(this._handlers)};Navigation.Defaults={nav:!1,navText:["prev","next"],navSpeed:!1,navElement:'button type="button" role="presentation"',navContainer:!1,navContainerClass:"owl-nav",navClass:["owl-prev","owl-next"],slideBy:1,dotClass:"owl-dot",dotsClass:"owl-dots",dots:!0,dotsEach:!1,dotsData:!1,dotsSpeed:!1,dotsContainer:!1},Navigation.prototype.initialize=function(){var override,settings=this._core.settings;this._controls.$relative=(settings.navContainer?$(settings.navContainer):$("
").addClass(settings.navContainerClass).appendTo(this.$element)).addClass("disabled"),this._controls.$previous=$("<"+settings.navElement[0]+">").addClass(settings.navClass[0]).html(settings.navText[0]).prependTo(this._controls.$relative).on("click",$.proxy(function(e){this.prev(settings.navSpeed)},this)),this._controls.$next=$("<"+settings.navElement[1]+">").addClass(settings.navClass[1]).html(settings.navText[1]).appendTo(this._controls.$relative).on("click",$.proxy(function(e){this.next(settings.navSpeed)},this)),settings.dotsData||(this._templates=[$('