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)\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:"div",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+">").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+">").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=[$("
").addClass(settings.dotClass).append($("")).prop("outerHTML")]),this._controls.$absolute=(settings.dotsContainer?$(settings.dotsContainer):$("
").addClass(settings.dotsClass).appendTo(this.$element)).addClass("disabled"),this._controls.$absolute.on("click","div",$.proxy(function(e){var index=$(e.target).parent().is(this._controls.$absolute)?$(e.target).index():$(e.target).parent().index();e.preventDefault(),this.to(index,settings.dotsSpeed)},this));for(override in this._overrides)this._core[override]=$.proxy(this[override],this)},Navigation.prototype.destroy=function(){var handler,control,property,override;for(handler in this._handlers)this.$element.off(handler,this._handlers[handler]);for(control in this._controls)this._controls[control].remove();for(override in this.overides)this._core[override]=this._overrides[override];for(property in Object.getOwnPropertyNames(this))typeof this[property]!="function"&&(this[property]=null)},Navigation.prototype.update=function(){var i,j,k,lower=this._core.clones().length/2,upper=lower+this._core.items().length,maximum=this._core.maximum(!0),settings=this._core.settings,size=settings.center||settings.autoWidth||settings.dotsData?1:settings.dotsEach||settings.items;settings.slideBy!=="page"&&(settings.slideBy=Math.min(settings.slideBy,settings.items));if(settings.dots||settings.slideBy=="page"){this._pages=[];for(i=lower,j=0,k=0;i=size||j===0){this._pages.push({start:Math.min(maximum,i-lower),end:i-lower+size-1});if(Math.min(maximum,i-lower)===maximum)break;j=0,++k}j+=this._core.mergers(this._core.relative(i))}}},Navigation.prototype.draw=function(){var difference,settings=this._core.settings,disabled=this._core.items().length<=settings.items,index=this._core.relative(this._core.current()),loop=settings.loop||settings.rewind;this._controls.$relative.toggleClass("disabled",!settings.nav||disabled),settings.nav&&(this._controls.$previous.toggleClass("disabled",!loop&&index<=this._core.minimum(!0)),this._controls.$next.toggleClass("disabled",!loop&&index>=this._core.maximum(!0))),this._controls.$absolute.toggleClass("disabled",!settings.dots||disabled),settings.dots&&(difference=this._pages.length-this._controls.$absolute.children().length,settings.dotsData&&difference!==0?this._controls.$absolute.html(this._templates.join("")):difference>0?this._controls.$absolute.append((new Array(difference+1)).join(this._templates[0])):difference<0&&this._controls.$absolute.children().slice(difference).remove(),this._controls.$absolute.find(".active").removeClass("active"),this._controls.$absolute.children().eq($.inArray(this.current(),this._pages)).addClass("active"))},Navigation.prototype.onTrigger=function(event){var settings=this._core.settings;event.page={index:$.inArray(this.current(),this._pages),count:this._pages.length,size:settings&&(settings.center||settings.autoWidth||settings.dotsData?1:settings.dotsEach||settings.items)}},Navigation.prototype.current=function(){var current=this._core.relative(this._core.current());return $.grep(this._pages,$.proxy(function(page,index){return page.start<=current&&page.end>=current},this)).pop()},Navigation.prototype.getPosition=function(successor){var position,length,settings=this._core.settings;return settings.slideBy=="page"?(position=$.inArray(this.current(),this._pages),length=this._pages.length,successor?++position:--position,position=this._pages[(position%length+length)%length].start):(position=this._core.relative(this._core.current()),length=this._core.items().length,successor?position+=settings.slideBy:position-=settings.slideBy),position},Navigation.prototype.next=function(speed){$.proxy(this._overrides.to,this._core)(this.getPosition(!0),speed)},Navigation.prototype.prev=function(speed){$.proxy(this._overrides.to,this._core)(this.getPosition(!1),speed)},Navigation.prototype.to=function(position,speed,standard){var length;standard?$.proxy(this._overrides.to,this._core)(position,speed):(length=this._pages.length,$.proxy(this._overrides.to,this._core)(this._pages[(position%length+length)%length].start,speed))},$.fn.owlCarousel.Constructor.Plugins.Navigation=Navigation}(window.Zepto||window.jQuery,window,document),function($,window,document,undefined){"use strict";var Hash=function(carousel){this._core=carousel,this._hashes={},this.$element=this._core.$element,this._handlers={"initialized.owl.carousel":$.proxy(function(e){e.namespace&&this._core.settings.startPosition==="URLHash"&&$(window).trigger("hashchange.owl.navigation")},this),"prepared.owl.carousel":$.proxy(function(e){if(e.namespace){var hash=$(e.content).find("[data-hash]").addBack("[data-hash]").attr("data-hash");if(!hash)return;this._hashes[hash]=e.content}},this),"changed.owl.carousel":$.proxy(function(e){if(e.namespace&&e.property.name==="position"){var current=this._core.items(this._core.relative(this._core.current())),hash=$.map(this._hashes,function(item,hash){return item===current?hash:null}).join();if(!hash||window.location.hash.slice(1)===hash)return;window.location.hash=hash}},this)},this._core.options=$.extend({},Hash.Defaults,this._core.options),this.$element.on(this._handlers)};Hash.Defaults={URLhashListener:!1},Hash.prototype.destroy=function(){var handler,property;$(window).off("hashchange.owl.navigation");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.Hash=Hash}(window.Zepto||window.jQuery,window,document),function($,window,document,undefined){function test(property,prefixed){var result=!1,upper=property.charAt(0).toUpperCase()+property.slice(1);return $.each((property+" "+prefixes.join(upper+" ")+upper).split(" "),function(i,property){if(style[property]!==undefined)return result=prefixed?property:!0,!1}),result}function prefixed(property){return test(property,!0)}var style=$("").get(0).style,prefixes="Webkit Moz O ms".split(" "),events={transition:{end:{WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd",transition:"transitionend"}},animation:{end:{WebkitAnimation:"webkitAnimationEnd",MozAnimation:"animationend",OAnimation:"oAnimationEnd",animation:"animationend"}}},tests={csstransforms:function(){return!!test("transform")},csstransforms3d:function(){return!!test("perspective")},csstransitions:function(){return!!test("transition")},cssanimations:function(){return!!test("animation")}};tests.csstransitions()&&($.support.transition=new String(prefixed("transition")),$.support.transition.end=events.transition.end[$.support.transition]),tests.cssanimations()&&($.support.animation=new String(prefixed("animation")),$.support.animation.end=events.animation.end[$.support.animation]),tests.csstransforms()&&($.support.transform=new String(prefixed("transform")),$.support.transform3d=tests.csstransforms3d())}(window.Zepto||window.jQuery,window,document),function(window,document,undefined){var absPos=function(element){var offsetLeft,offsetTop;offsetLeft=offsetTop=0;if(element.offsetParent)do offsetLeft+=element.offsetLeft,offsetTop+=element.offsetTop;while(element=element.offsetParent);return[offsetLeft,offsetTop]},ProgressCircle=function(params){this.canvas=params.canvas,this.minRadius=params.minRadius||15,this.arcWidth=params.arcWidth||5,this.gapWidth=params.gapWidth||3,this.centerX=params.centerX||this.canvas.width/2,this.centerY=params.centerY||this.canvas.height/2,this.infoLineLength=params.infoLineLength||60,this.horizLineLength=params.horizLineLength||10,this.infoLineAngleInterval=params.infoLineAngleInterval||Math.PI/8,this.infoLineBaseAngle=params.infoLineBaseAngle||Math.PI/6,this.context=this.canvas.getContext("2d"),this.width=this.canvas.width,this.height=this.canvas.height,this.circles=[],this.runningCount=0};ProgressCircle.prototype={constructor:ProgressCircle,addEntry:function(params){return this.circles.push(new Circle({canvas:this.canvas,context:this.context,centerX:this.centerX,centerY:this.centerY,innerRadius:this.minRadius+this.circles.length*(this.gapWidth+this.arcWidth),arcWidth:this.arcWidth,infoLineLength:this.infoLineLength,horizLineLength:this.horizLineLength,id:this.circles.length,fillColor:params.fillColor,outlineColor:params.outlineColor,progressListener:params.progressListener,infoListener:params.infoListener,infoLineAngle:this.infoLineBaseAngle+this.circles.length*this.infoLineAngleInterval})),this},start:function(interval){var self=this;return this.timer=setInterval(function(){self._update()},interval||33),this},stop:function(){clearTimeout(this.timer)},_update:function(){return this._clear(),this.circles.forEach(function(circle,idx,array){circle.update()}),this},_clear:function(){return this.context.clearRect(0,0,this.canvas.width,this.canvas.height),this}};var Circle=function(params){this.id=params.id,this.canvas=params.canvas,this.context=params.context,this.centerX=params.centerX,this.centerY=params.centerY,this.arcWidth=params.arcWidth,this.innerRadius=params.innerRadius||0,this.fillColor=params.fillColor||"#fff",this.outlineColor=params.outlineColor||this.fillColor,this.progressListener=params.progressListener,this.infoLineLength=params.infoLineLength||250,this.horizLineLength=params.horizLineLength||50,this.infoListener=params.infoListener,this.infoLineAngle=params.infoLineAngle,this.outerRadius=this.innerRadius+this.arcWidth;if(!this.infoListener)return;var angle=this.infoLineAngle,arcDistance=(this.innerRadius+this.outerRadius)/2,sinA=Math.sin(angle),cosA=Math.cos(angle);this.infoLineStartX=this.centerX+sinA*arcDistance,this.infoLineStartY=this.centerY-cosA*arcDistance,this.infoLineMidX=this.centerX+sinA*this.infoLineLength,this.infoLineMidY=this.centerY-cosA*this.infoLineLength,this.infoLineEndX=this.infoLineMidX+(sinA<0?-this.horizLineLength:this.horizLineLength),this.infoLineEndY=this.infoLineMidY;var infoText=document.createElement("div"),style=infoText.style;style.color=this.fillColor,style.position="absolute",style.left=this.infoLineEndX+absPos(this.canvas)[0]+"px",infoText.className="ProgressCircleInfo",infoText.id="progress_circle_info_"+this.id,document.body.appendChild(infoText),this.infoText=infoText};Circle.prototype={constructor:Circle,update:function(){this.progress=this.progressListener(),this._draw(),this.infoListener&&(this.info=this.infoListener(),this._drawInfo())},_draw:function(){var ctx=this.context,ANGLE_OFFSET=-Math.PI/2,startAngle=0+ANGLE_OFFSET,endAngle=startAngle+this.progress*Math.PI*2,x=this.centerX,y=this.centerY,innerRadius=this.innerRadius-this.arcWidth-1,outerRadius=this.outerRadius-this.arcWidth-1;if(innerRadius<0)return;return ctx.fillStyle=this.fillColor,ctx.strokeStyle=this.outlineColor,ctx.beginPath(),ctx.arc(x,y,innerRadius,startAngle,endAngle,!1),ctx.arc(x,y,outerRadius,endAngle,startAngle,!0),ctx.closePath(),ctx.stroke(),ctx.fill(),this},_drawInfo:function(){var pointList,lineHeight;return pointList=[[this.infoLineStartX,this.infoLineStartY],[this.infoLineMidX,this.infoLineMidY],[this.infoLineEndX,this.infoLineEndY]],this._drawSegments(pointList,!1),this.infoText.innerHTML=this.info,lineHeight=this.infoText.offsetHeight,this.infoText.style.top=this.infoLineEndY+absPos(this.canvas)[1]-lineHeight/2+"px",this},_drawSegments:function(pointList,close){var ctx=this.context;ctx.beginPath(),ctx.moveTo(pointList[0][0],pointList[0][1]);for(var i=1;i=this.value)return this.circle.stop(),this.animated=!0,this.$label.html(this.label_value+this.options.units),this._progress_v;this._progress_v+=.01;if(!isNaN(this.label_value)){var label_value=this._progress_v/this.value*this.label_value,val=Math.round(label_value)+this.options.units;this.$label.html(val)}else this.$label.html(this.label_value+this.options.units);return this._progress_v},animate:function(){this.animated!==!0&&this.circle.addEntry({fillColor:this.color,progressListener:$.proxy(this.setProgress,this)}).start(10)},setWayPoint:function(){typeof $.fn.waypoint!="undefined"&&!UNCODE.isMobile?this.$el.waypoint($.proxy(this.animate,this),{offset:"85%"}):this.animate()}},$.fn.vcChat=function(option,value){return this.each(function(){var $this=$(this),data=$this.data("vc_chart"),options=typeof option=="object"?option:{color:$this.data("pie-color"),units:$this.data("pie-units")};typeof option=="undefined"&&$this.data("vc_chart",data=new VcChart(this,options)),typeof option=="string"&&data[option](value)})},typeof window["vc_pieChart"]!="function"&&(window.vc_pieChart=function(){$(".vc_pie_chart:visible:not(.vc_ready)").vcChat()}),$(document).ready(function(){!window.vc_iframe&&vc_pieChart(),$(".nav-tabs a").on("shown.bs.tab",function(e){var $cont=$(e.target).closest(".tab-container"),$active=$(".tab-pane.active",$cont);$(".vc_pie_chart:not(.vc_ready)",$active).vcChat()}),$(".panel-collapse").on("shown.bs.collapse",function(e){$(".vc_pie_chart:not(.vc_ready)",e.target).vcChat()})})}(window.jQuery),uncode_progress_bar(),function($){"use strict";$.fn.counterUp=function(options){var settings=$.extend({time:400,delay:10},options);return this.each(function(){var $this=$(this),$settings=settings,counterUpper=function(){var nums=[],divisions=$settings.time/$settings.delay,numReal=$this.attr("data-val"),num=numReal,isComma=/[0-9]+,[0-9]+/.test(num);num=num.replace(/,/g,"");var isInt=/^[0-9]+$/.test(num),isFloat=/^[0-9]+\.[0-9]+$/.test(num),decimalPlaces=isFloat?(num.split(".")[1]||[]).length:0;for(var i=divisions;i>=1;i--){var newNum=parseInt(num/divisions*i);isFloat&&(newNum=parseFloat(num/divisions*i).toFixed(decimalPlaces));if(isComma)while(/(\d+)(\d{3})/.test(newNum.toString()))newNum=newNum.toString().replace(/(\d+)(\d{3})/,"$1,$2");nums.unshift(newNum)}nums.push(numReal),$this.data("counterup-nums",nums),$this.text("0");var f=function(){$this.data("counterup-nums")!=null&&($this.text($this.data("counterup-nums").shift()),$this.data("counterup-nums").length?setTimeout($this.data("counterup-func"),$settings.delay):(delete $this.data("counterup-nums"),$this.data("counterup-nums",null),$this.data("counterup-func",null)))};$this.data("counterup-func",f),setTimeout($this.data("counterup-func"),$settings.delay)};new Waypoint({context:UNCODE.isUnmodalOpen?document.getElementById("unmodal-content"):window,element:this,handler:function(){counterUpper(),UNCODE.isUnmodalOpen||this.destroy()},offset:"100%"})})}}(jQuery),function(factory){"use strict";typeof define=="function"&&define.amd?define(["jquery"],factory):factory(jQuery)}(function($){"use strict";function parseDateString(dateString){if(dateString instanceof Date)return dateString;if(String(dateString).match(matchers))return String(dateString).match(/^[0-9]*$/)&&(dateString=Number(dateString)),String(dateString).match(/\-/)&&(dateString=String(dateString).replace(/\-/g,"/")),new Date(dateString);throw new Error("Couldn't cast `"+dateString+"` to a date object.")}function escapedRegExp(str){var sanitize=str.toString().replace(/([.?*+^$[\]\\(){}|-])/g,"\\$1");return new RegExp(sanitize)}function strftime(offsetObject){return function(format){var directives=format.match(/%(-|!)?[A-Z]{1}(:[^;]+;)?/gi);if(directives)for(var i=0,len=directives.length;i1?plural:singular}var instances=[],matchers=[],defaultOptions={precision:100,elapse:!1,defer:!1};matchers.push(/^[0-9]*$/.source),matchers.push(/([0-9]{1,2}\/){2}[0-9]{4}( [0-9]{1,2}(:[0-9]{2}){2})?/.source),matchers.push(/[0-9]{4}([\/\-][0-9]{1,2}){2}( [0-9]{1,2}(:[0-9]{2}){2})?/.source),matchers=new RegExp(matchers.join("|"));var DIRECTIVE_KEY_MAP={Y:"years",m:"months",n:"daysToMonth",d:"daysToWeek",w:"weeks",W:"weeksToMonth",H:"hours",M:"minutes",S:"seconds",D:"totalDays",I:"totalHours",N:"totalMinutes",T:"totalSeconds"},Countdown=function(el,finalDate,options){this.el=el,this.$el=$(el),this.interval=null,this.offset={},this.options=$.extend({},defaultOptions),this.instanceNumber=instances.length,instances.push(this),this.$el.data("countdown-instance",this.instanceNumber),options&&(typeof options=="function"?(this.$el.on("update.countdown",options),this.$el.on("stoped.countdown",options),this.$el.on("finish.countdown",options)):this.options=$.extend({},defaultOptions,options)),this.setFinalDate(finalDate),this.options.defer===!1&&this.start()};$.extend(Countdown.prototype,{start:function(){this.interval!==null&&clearInterval(this.interval);var self=this;this.update(),this.interval=setInterval(function(){self.update.call(self)},this.options.precision)},stop:function(){clearInterval(this.interval),this.interval=null,this.dispatchEvent("stoped")},toggle:function(){this.interval?this.stop():this.start()},pause:function(){this.stop()},resume:function(){this.start()},remove:function(){this.stop.call(this),instances[this.instanceNumber]=null,delete this.$el.data().countdownInstance},setFinalDate:function(value){this.finalDate=parseDateString(value)},update:function(){if(this.$el.closest("html").length===0){this.remove();return}var hasEventsAttached=$._data(this.el,"events")!==undefined,now=new Date,newTotalSecsLeft;newTotalSecsLeft=this.finalDate.getTime()-now.getTime(),newTotalSecsLeft=Math.ceil(newTotalSecsLeft/1e3),newTotalSecsLeft=!this.options.elapse&&newTotalSecsLeft<0?0:Math.abs(newTotalSecsLeft);if(this.totalSecsLeft===newTotalSecsLeft||!hasEventsAttached)return;this.totalSecsLeft=newTotalSecsLeft,this.elapsed=now>=this.finalDate,this.offset={seconds:this.totalSecsLeft%60,minutes:Math.floor(this.totalSecsLeft/60)%60,hours:Math.floor(this.totalSecsLeft/60/60)%24,days:Math.floor(this.totalSecsLeft/60/60/24)%7,daysToWeek:Math.floor(this.totalSecsLeft/60/60/24)%7,daysToMonth:Math.floor(this.totalSecsLeft/60/60/24%30.4368),weeks:Math.floor(this.totalSecsLeft/60/60/24/7),weeksToMonth:Math.floor(this.totalSecsLeft/60/60/24/7)%4,months:Math.floor(this.totalSecsLeft/60/60/24/30.4368),years:Math.abs(this.finalDate.getFullYear()-now.getFullYear()),totalDays:Math.floor(this.totalSecsLeft/60/60/24),totalHours:Math.floor(this.totalSecsLeft/60/60),totalMinutes:Math.floor(this.totalSecsLeft/60),totalSeconds:this.totalSecsLeft},!this.options.elapse&&this.totalSecsLeft===0?(this.stop(),this.dispatchEvent("finish")):this.dispatchEvent("update")},dispatchEvent:function(eventName){var event=$.Event(eventName+".countdown");event.finalDate=this.finalDate,event.elapsed=this.elapsed,event.offset=$.extend({},this.offset),event.strftime=strftime(this.offset),this.$el.trigger(event)}}),$.fn.countdown=function(){var argumentsArray=Array.prototype.slice.call(arguments,0);return this.each(function(){var instanceNumber=$(this).data("countdown-instance");if(instanceNumber!==undefined){var instance=instances[instanceNumber],method=argumentsArray[0];Countdown.prototype.hasOwnProperty(method)?instance[method].apply(instance,argumentsArray.slice(1)):String(method).match(/^[$A-Z_][0-9A-Z_$]*$/i)===null?(instance.setFinalDate.call(instance,method),instance.start()):$.error("Method %s does not exist on jQuery.countdown".replace(/\%s/gi,method))}else new Countdown(this,argumentsArray[0],argumentsArray[1])})}}),!function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var f;"undefined"!=typeof window?f=window:"undefined"!=typeof global?f=global:"undefined"!=typeof self&&(f=self),f.Share=e()}}(function(){function getStyles(config){}var define,module,exports,ShareUtils;!("classList"in document.documentElement)&&Object.defineProperty&&typeof HTMLElement!="undefined"&&Object.defineProperty(HTMLElement.prototype,"classList",{get:function(){var ret,self,update;return update=function(fn){return function(value){var classes,index;classes=self.className.split(/\s+/),index=classes.indexOf(value),fn(classes,index,value),self.className=classes.join(" ")}},self=this,ret={add:update(function(classes,index,value){~index||classes.push(value)}),remove:update(function(classes,index){~index&&classes.splice(index,1)}),toggle:update(function(classes,index,value){~index?classes.splice(index,1):classes.push(value)}),contains:function(value){return!!~self.className.split(/\s+/).indexOf(value)},item:function(i){return self.className.split(/\s+/)[i]||null}},Object.defineProperty(ret,"length",{get:function(){return self.className.split(/\s+/).length}}),ret}}),String.prototype.to_rfc3986=function(){var tmp;return tmp=encodeURIComponent(this),tmp.replace(/[!'()*]/g,function(c){return"%"+c.charCodeAt(0).toString(16)})},ShareUtils=function(){function ShareUtils(){}return ShareUtils.prototype.extend=function(to,from,overwrite){var hasProp,prop;for(prop in from){hasProp=to[prop]!==undefined;if(hasProp&&typeof from[prop]=="object")this.extend(to[prop],from[prop],overwrite);else if(overwrite||!hasProp)to[prop]=from[prop]}},ShareUtils.prototype.hide=function(el){return el.style.display="none"},ShareUtils.prototype.show=function(el){return el.style.display="block"},ShareUtils.prototype.has_class=function(el,class_name){return el.classList.contains(class_name)},ShareUtils.prototype.add_class=function(el,class_name){return el.classList.add(class_name)},ShareUtils.prototype.remove_class=function(el,class_name){return el.classList.remove(class_name)},ShareUtils.prototype.is_encoded=function(str){return str=str.to_rfc3986(),decodeURIComponent(str)!==str},ShareUtils.prototype.encode=function(str){return typeof str=="undefined"||this.is_encoded(str)?str:str.to_rfc3986()},ShareUtils.prototype.popup=function(url,params){var k,popup,qs,v;return params==null&&(params={}),popup={width:500,height:350},popup.top=screen.height/2-popup.height/2,popup.left=screen.width/2-popup.width/2,qs=function(){var _results;_results=[];for(k in params)v=params[k],_results.push(""+k+"="+this.encode(v));return _results}.call(this).join("&"),qs&&(qs="?"+qs),window.open(url+qs,"targetWindow","toolbar=no,location=no,status=no,menubar=no,scrollbars=yes,resizable=yes,left="+popup.left+",top="+popup.top+",width="+popup.width+",height="+popup.height)},ShareUtils}();var Share,__hasProp={}.hasOwnProperty,__extends=function(child,parent){function ctor(){this.constructor=child}for(var key in parent)__hasProp.call(parent,key)&&(child[key]=parent[key]);return ctor.prototype=parent.prototype,child.prototype=new ctor,child.__super__=parent.prototype,child};return Share=function(_super){function Share(element,options){return this.element=element,this.el={head:document.getElementsByTagName("head")[0],body:document.getElementsByTagName("body")[0]},this.config={enabled_networks:0,protocol:["http","https"].indexOf(window.location.href.split(":")[0])===-1?"https://":"//",url:window.location.href.replace("&","%26"),caption:null,title:this.default_title(),image:this.default_image(),description:this.default_description(),ui:{flyout:"top center",button_text:"Share",button_font:!0,icon_font:!0},networks:{twitter:{enabled:!0,url:null,title:null,description:null},facebook:{enabled:!0,load_sdk:!0,url:null,app_id:null,title:null,caption:null,description:null,image:null},threads:{enabled:!0,url:null,title:null,description:null},bluesky:{enabled:!0,url:null,title:null,description:null},pinterest:{enabled:!0,url:null,image:null,description:null},reddit:{enabled:!0,url:null,title:null},linkedin:{enabled:!0,url:null,title:null,description:null},xing:{enabled:!0,url:null,title:null,image:null,description:null},whatsapp:{enabled:!0,title:null,url:null},email:{enabled:!0,title:null,description:null,url:null}}},this.setup(element,options),this}return __extends(Share,_super),Share.prototype.setup=function(element,opts){var index,instance,instances,_i,_len;instances=document.querySelectorAll(element),this.extend(this.config,opts,!0),this.set_global_configuration(),this.normalize_network_configuration(),this.config.ui.icon_font&&this.inject_icons(),this.config.ui.button_font&&this.inject_fonts(),this.config.networks.facebook.enabled&&this.config.networks.facebook.load_sdk&&this.inject_facebook_sdk();for(index=_i=0,_len=instances.length;_i<_len;index=++_i)instance=instances[index],this.setup_instance(element,index)},Share.prototype.setup_instance=function(element,index){var button,instance,label,network,networks,_i,_len,_results,_this=this;instance=document.querySelectorAll(element)[index],this.hide(instance),this.add_class(instance,"sharer-"+index),instance=document.querySelectorAll(element)[index],this.inject_css(instance),this.inject_html(instance),this.show(instance),label=instance.getElementsByTagName("label")[0],button=instance.getElementsByClassName("social")[0],networks=instance.getElementsByTagName("li"),this.add_class(button,"networks-"+this.config.enabled_networks),label.addEventListener("click",function(){return _this.event_toggle(button)}),_this=this,_results=[];for(index=_i=0,_len=networks.length;_i<_len;index=++_i)network=networks[index],_results.push(network.addEventListener("click",function(){return _this.event_network(instance,this),_this.event_close(button)}));return _results},Share.prototype.event_toggle=function(button){return this.has_class(button,"active")?this.event_close(button):this.event_open(button)},Share.prototype.event_open=function(button){return this.has_class(button,"load")&&this.remove_class(button,"load"),this.add_class(button,"active")},Share.prototype.event_close=function(button){return this.remove_class(button,"active")},Share.prototype.event_network=function(instance,network){var name;return name=network.getAttribute("data-network"),this.hook("before",name,instance),this["network_"+name](),this.hook("after",name,instance)},Share.prototype.open=function(){return this["public"]("open")},Share.prototype.close=function(){return this["public"]("close")},Share.prototype.toggle=function(){return this["public"]("toggle")},Share.prototype["public"]=function(action){var button,index,instance,_i,_len,_ref,_results;_ref=document.querySelectorAll(this.element),_results=[];for(index=_i=0,_len=_ref.length;_i<_len;index=++_i)instance=_ref[index],button=instance.getElementsByClassName("social")[0],_results.push(this["event_"+action](button));return _results},Share.prototype.network_facebook=function(){return this.config.networks.facebook.load_sdk?window.FB?FB.ui({method:"feed",name:this.config.networks.facebook.title,link:this.config.networks.facebook.url,picture:this.config.networks.facebook.image,caption:this.config.networks.facebook.caption,description:this.config.networks.facebook.description}):console.error("The Facebook JS SDK hasn't loaded yet."):this.popup("https://www.facebook.com/sharer/sharer.php",{u:this.config.networks.facebook.url})},Share.prototype.network_threads=function(){return this.popup("https://threads.net/intent/post",{text:this.config.networks.threads.title,url:this.config.networks.threads.url})},Share.prototype.network_bluesky=function(){return this.popup("https://bsky.app/intent/compose",{text:this.config.networks.bluesky.title+" "+this.config.networks.bluesky.url})},Share.prototype.network_twitter=function(){return this.popup("https://twitter.com/intent/tweet",{text:this.config.networks.twitter.title,url:this.config.networks.twitter.url})},Share.prototype.network_pinterest=function(){return this.popup("https://www.pinterest.com/pin/create/button",{url:this.config.networks.pinterest.url,media:this.config.networks.pinterest.image,description:this.config.networks.pinterest.description})},Share.prototype.network_linkedin=function(){return this.popup("https://www.linkedin.com/shareArticle",{url:this.config.networks.linkedin.url,title:this.config.networks.linkedin.title,summary:this.config.networks.linkedin.description})},Share.prototype.network_xing=function(){return this.popup("https://www.xing.com/spi/shares/new",{url:this.config.networks.xing.url,image:this.config.networks.xing.image,title:this.config.networks.xing.title,summary:this.config.networks.xing.description})},Share.prototype.network_whatsapp=function(){return this.popup("https://api.whatsapp.com/send",{text:this.config.networks.whatsapp.title+"%20"+this.config.networks.whatsapp.url})},Share.prototype.network_email=function(){return this.popup("mailto:",{subject:this.config.networks.email.title,body:this.config.networks.email.url+"%0A%0A"+this.config.networks.email.description})},Share.prototype.inject_icons=function(){},Share.prototype.inject_fonts=function(){},Share.prototype.inject_stylesheet=function(url){var link;if(!this.el.head.querySelector('link[href="'+url+'"]'))return link=document.createElement("link"),link.setAttribute("rel","stylesheet"),link.setAttribute("href",url),this.el.head.appendChild(link)},Share.prototype.inject_css=function(instance){var css,meta,selector,style;selector="."+instance.getAttribute("class").split(" ").join(".");if(!this.el.head.querySelector("meta[name='sharer"+selector+"']"))return this.config.selector=selector,css=getStyles(this.config),style=document.createElement("style"),style.type="text/css",style.styleSheet?style.styleSheet.cssText=css:style.appendChild(document.createTextNode(css)),this.el.head.appendChild(style),delete this.config.selector,meta=document.createElement("meta"),meta.setAttribute("name","sharer"+selector),this.el.head.appendChild(meta)},Share.prototype.inject_html=function(instance){return instance.innerHTML=""},Share.prototype.inject_facebook_sdk=function(){var fb_root,script;if(!window.FB&&this.config.networks.facebook.app_id&&!this.el.body.querySelector("#fb-root"))return script=document.createElement("script"),script.text="window.fbAsyncInit=function(){FB.init({appId:'"+this.config.networks.facebook.app_id+"',status:true,xfbml:true})};(function(e,t,n){var r,i=e.getElementsByTagName(t)[0];if(e.getElementById(n)){return}r=e.createElement(t);r.id=n;r.src='"+this.config.protocol+"connect.facebook.net/en_US/all.js';i.parentNode.insertBefore(r,i)})(document,'script','facebook-jssdk')",fb_root=document.createElement("div"),fb_root.id="fb-root",this.el.body.appendChild(fb_root),this.el.body.appendChild(script)},Share.prototype.hook=function(type,network,instance){var fn,opts;fn=this.config.networks[network][type],typeof fn=="function"&&(opts=fn.call(this.config.networks[network],instance),opts!==void 0&&(opts=this.normalize_filter_config_updates(opts),this.extend(this.config.networks[network],opts,!0),this.normalize_network_configuration()))},Share.prototype.default_title=function(){var content;if(content=document.querySelector('meta[property="og:title"]')||document.querySelector('meta[name="twitter:title"]'))return encodeURIComponent(content.getAttribute("content"));if(content=document.querySelector("title"))return encodeURIComponent(content.innerText)},Share.prototype.default_image=function(){var content;if(content=document.querySelector('meta[property="og:image"]')||document.querySelector('meta[name="twitter:image"]'))return content.getAttribute("content")},Share.prototype.default_description=function(){var content;return(content=document.querySelector('meta[property="og:description"]')||document.querySelector('meta[name="twitter:description"]')||document.querySelector('meta[name="description"]'))?encodeURIComponent(content.getAttribute("content")):""},Share.prototype.set_global_configuration=function(){var display,network,option,options,_ref,_results;_ref=this.config.networks,_results=[];for(network in _ref){options=_ref[network];for(option in options)this.config.networks[network][option]==null&&(this.config.networks[network][option]=this.config[option]);this.config.networks[network].enabled?(display="block",this.config.enabled_networks+=1):display="none",_results.push(this.config.networks[network].display=display)}return _results},Share.prototype.normalize_network_configuration=function(){this.config.networks.facebook.app_id||(this.config.networks.facebook.load_sdk=!1),this.is_encoded(this.config.networks.twitter.description)||(this.config.networks.twitter.description=encodeURIComponent(this.config.networks.twitter.description));if(typeof this.config.networks.facebook.app_id=="number")return this.config.networks.facebook.app_id=this.config.networks.facebook.app_id.toString()},Share.prototype.normalize_filter_config_updates=function(opts){return this.config.networks.facebook.app_id!==opts.app_id&&(console.warn("You are unable to change the Facebook app_id after the button has been initialized. Please-in-out update your Facebook filters accordingly."),delete opts.app_id),this.config.networks.facebook.load_sdk!==opts.load_sdk&&(console.warn("You are unable to change the Facebook load_sdk option after the button has been initialized. Please-in-out update your Facebook filters accordingly."),delete opts.app_id),opts},Share}(ShareUtils),Share}),function(){var $,win;$=this.jQuery||window.jQuery,win=$(window),$.fn.stick_in_parent=function(opts){var doc,elm,enable_bottoming,fn,i,inner_scrolling,len,manual_spacer,offset_top,outer_width,parent_selector,recalc_every,sticky_class;opts==null&&(opts={}),sticky_class=opts.sticky_class,inner_scrolling=opts.inner_scrolling,recalc_every=opts.recalc_every,parent_selector=opts.parent,offset_top=opts.offset_top,manual_spacer=opts.spacer,enable_bottoming=opts.bottoming,offset_top==null&&(offset_top=0),parent_selector==null&&(parent_selector=void 0),inner_scrolling==null&&(inner_scrolling=!0),sticky_class==null&&(sticky_class="is_stuck"),doc=$(document),enable_bottoming==null&&(enable_bottoming=!0),outer_width=function(el){var _el,computed,w;return window.getComputedStyle?(_el=el[0],computed=window.getComputedStyle(el[0]),w=parseFloat(computed.getPropertyValue("width"))+parseFloat(computed.getPropertyValue("margin-left"))+parseFloat(computed.getPropertyValue("margin-right")),computed.getPropertyValue("box-sizing")!=="border-box"&&(w+=parseFloat(computed.getPropertyValue("border-left-width"))+parseFloat(computed.getPropertyValue("border-right-width"))+parseFloat(computed.getPropertyValue("padding-left"))+parseFloat(computed.getPropertyValue("padding-right"))),w):el.outerWidth(!0)},fn=function(elm,padding_bottom,parent_top,parent_height,top,height,el_float,detached){var bottomed,detach,fixed,last_pos,last_scroll_height,offset,parent,recalc,recalc_and_tick,recalc_counter,spacer,tick;if(elm.data("sticky_kit"))return;elm.data("sticky_kit",!0),last_scroll_height=doc.height(),parent=elm.parent(),parent_selector!=null&&(parent=parent.closest(parent_selector));if(!parent.length)throw"failed to find stick parent";fixed=!1,bottomed=!1,spacer=manual_spacer!=null?manual_spacer&&elm.closest(manual_spacer):$("
"),spacer&&spacer.css("position",elm.css("position")),recalc=function(){var border_top,padding_top,restore;if(detached)return;last_scroll_height=doc.height(),border_top=parseInt(parent.css("border-top-width"),10),padding_top=parseInt(parent.css("padding-top"),10),padding_bottom=parseInt(parent.css("padding-bottom"),10),parent_top=parent.offset().top+border_top+padding_top,parent_height=parent.height(),fixed&&(fixed=!1,bottomed=!1,manual_spacer==null&&(elm.insertAfter(spacer),spacer.detach()),elm.css({position:"",top:"",width:"",bottom:""}).removeClass(sticky_class),restore=!0),top=elm.offset().top-(parseInt(elm.css("margin-top"),10)||0)-offset_top,height=elm.outerHeight(!0),el_float=elm.css("float"),spacer&&spacer.css({width:outer_width(elm),height:height,display:elm.css("display"),"vertical-align":elm.css("vertical-align"),"float":el_float});if(restore)return tick()},recalc();if(height===parent_height)return;return last_pos=void 0,offset=offset_top,recalc_counter=recalc_every,tick=function(){var css,delta,recalced,scroll,will_bottom,win_height;if(detached)return;recalced=!1,recalc_counter!=null&&(recalc_counter-=1,recalc_counter<=0&&(recalc_counter=recalc_every,recalc(),recalced=!0)),!recalced&&doc.height()!==last_scroll_height&&(recalc(),recalced=!0),scroll=win.scrollTop(),last_pos!=null&&(delta=scroll-last_pos),last_pos=scroll,fixed?(enable_bottoming&&(will_bottom=scroll+height+offset>parent_height+parent_top,bottomed&&!will_bottom&&(bottomed=!1,elm.css({position:"fixed",bottom:"",top:offset}).trigger("sticky_kit:unbottom"))),scrollwin_height&&(bottomed||(offset-=delta,offset=Math.max(win_height-height,offset),offset=Math.min(offset_top,offset),fixed&&elm.css({top:offset+"px"}))))):scroll>top&&(fixed=!0,css={position:"fixed",top:offset},css.width=elm.css("box-sizing")==="border-box"?elm.outerWidth()+"px":elm.width()+"px",elm.css(css).addClass(sticky_class),manual_spacer==null&&(elm.after(spacer),(el_float==="left"||el_float==="right")&&spacer.append(elm)),elm.trigger("sticky_kit:stick"));if(fixed&&enable_bottoming){will_bottom==null&&(will_bottom=scroll+height+offset>parent_height+parent_top);if(!bottomed&&will_bottom)return bottomed=!0,parent.css("position")==="static"&&parent.css({position:"relative"}),elm.css({position:"absolute",bottom:padding_bottom,top:"auto"}).trigger("sticky_kit:bottom")}},recalc_and_tick=function(){return recalc(),tick()},detach=function(){detached=!0,win.off("touchmove",tick),win.off("scroll",tick),win.off("resize",recalc_and_tick),$(document.body).off("sticky_kit:recalc",recalc_and_tick),elm.off("sticky_kit:detach",detach),elm.removeData("sticky_kit"),elm.css({position:"",bottom:"",top:"",width:""}),parent.position("position","");if(fixed)return manual_spacer==null&&((el_float==="left"||el_float==="right")&&elm.insertAfter(spacer),spacer.remove()),elm.removeClass(sticky_class)},win.on("touchmove",tick),win.on("scroll",tick),win.on("resize",recalc_and_tick),$(document.body).on("sticky_kit:recalc",recalc_and_tick),elm.on("sticky_kit:detach",detach),setTimeout(tick,0)};for(i=0,len=this.length;i [data-tab-history], .panel-title.active [data-tab-history]").each(function(){var $activeTabElement=jQuery(this),selector=getTabSelector($activeTabElement);if(selector){var tabGroup=getTabGroup($activeTabElement);tabGroup&&(newState=createNewHistoryState(newState||history.state,tabGroup,selector))}}),newState&&history.replaceState(newState,"",null)}function createNewHistoryState(existingState,tabGroup,selector){var newState=jQuery.extend(!0,{},existingState,{bootstrapTabHistory:{}});return newState.bootstrapTabHistory[tabGroup]=selector,newState}function getTabGroup($tab){return parseTruthyAttributeValue($tab.data("tab-history"))}function getTabSelector($tab){return $tab.data("target")||$tab.attr("href")}function onShownTab(shownEvt){if(!showingTabsBasedOnState){var $activatedTab=jQuery(shownEvt.target);$activatedTab.hasClass("panel-collapse")&&($activatedTab=$activatedTab.closest(".panel").find("a"));var selector=getTabSelector($activatedTab);if(selector){var tabGroup=getTabGroup($activatedTab);if(tabGroup){var historyChanger=$activatedTab.data("tab-history-changer")||BootstrapTabHistory.options.defaultChanger,newState=createNewHistoryState(history.state,tabGroup,selector),updateURL=function($activatedTab){if(selector[0]==="#"){var elementUpdateURLOption=parseTruthyAttributeValue($activatedTab.data("tab-history-update-url"));return elementUpdateURLOption===undefined?BootstrapTabHistory.options.defaultUpdateURL:elementUpdateURLOption}return!1}($activatedTab);switch(historyChanger){case"push":history.pushState(newState,"",updateURL?selector:null);break;case"replace":history.replaceState(newState,"",updateURL?selector:null);break;default:throw new Error("Unknown tab-history-changer: "+historyChanger)}}}}}function onPopState(){var bootstrapTabHistory=history.state&&history.state.bootstrapTabHistory;bootstrapTabHistory&&showTabsBasedOnState(bootstrapTabHistory)}function parseTruthyAttributeValue(value){return value?value:value===""?!0:value}function showTabsBasedOnAnchor(){if(BootstrapTabHistory.options.showTabsBasedOnAnchor){var anchor=window.location&&window.location.hash;if(anchor){var $tabElement=showTabForSelector(anchor);if($tabElement&&window.addEventListener&&window.removeEventListener){var anchorYOffset=function($tabElement){var elementSetting=$tabElement.data("tab-history-anchor-y-offset");return elementSetting===undefined?BootstrapTabHistory.options.defaultAnchorYOffset:elementSetting}($tabElement);if(anchorYOffset||anchorYOffset===0){var scrollListener=function resetAnchorScroll(){window.removeEventListener("scroll",scrollListener),window.scrollTo(0,anchorYOffset)};window.addEventListener("scroll",scrollListener)}}}}}function showTabForSelector(selector){var $tabElement=function(selector){var $ret=null;return jQuery('[data-toggle="tab"], [data-toggle="pill"], [data-toggle="collapse"]').each(function(){var $potentialTab=jQuery(this);return $potentialTab.attr("href")!==selector&&$potentialTab.data("target")!==selector||!getTabGroup($potentialTab)?null:($ret=$potentialTab,!1)}),$ret}(selector);return $tabElement&&($tabElement.parent().hasClass("active")||$tabElement.trigger("click")),$tabElement}function showTabsBasedOnState(bootstrapTabHistory){showingTabsBasedOnState=!0;try{for(var k in bootstrapTabHistory)bootstrapTabHistory.hasOwnProperty(k)&&showTabForSelector(bootstrapTabHistory[k])}finally{showingTabsBasedOnState=!1}}jQuery(function(){if(history&&history.pushState&&history.replaceState){var bootstrapTabHistory=history.state&&history.state.bootstrapTabHistory;bootstrapTabHistory?showTabsBasedOnState(bootstrapTabHistory):showTabsBasedOnAnchor(),backfillHistoryState(),jQuery(document).on("shown.bs.tab show.bs.collapse",onShownTab),jQuery(window).on("popstate",onPopState)}else showTabsBasedOnAnchor()});var showingTabsBasedOnState=!1}(),function(factory){typeof define=="function"&&define.amd?define(["jquery"],factory):typeof module=="object"&&module.exports?module.exports=function(root,jQuery){return jQuery===undefined&&(typeof window!="undefined"?jQuery=require("jquery"):jQuery=require("jquery")(root)),factory(jQuery),jQuery}:factory(jQuery)}(function($){var JustifiedGallery=function($gallery,settings){this.settings=settings,this.checkSettings(),this.imgAnalyzerTimeout=null,this.entries=null,this.buildingRow={entriesBuff:[],width:0,height:0,aspectRatio:0},this.lastFetchedEntry=null,this.lastAnalyzedIndex=-1,this.yield={every:2,flushed:0},this.border=settings.border>=0?settings.border:settings.margins,this.maxRowHeight=this.retrieveMaxRowHeight(),this.suffixRanges=this.retrieveSuffixRanges(),this.offY=this.border,this.rows=0,this.spinner={phase:0,timeSlot:150,$el:$('
'),intervalId:null},this.scrollBarOn=!1,this.checkWidthIntervalId=null,this.galleryWidth=$gallery.width(),this.$gallery=$gallery};JustifiedGallery.prototype.getSuffix=function(width,height){var longestSide,i;longestSide=width>height?width:height;for(i=0;i .jg-caption");return $caption.length===0?null:$caption},JustifiedGallery.prototype.displayEntry=function($entry,x,y,imgWidth,imgHeight,rowHeight){$entry.width(imgWidth),$entry.height(Math.floor(rowHeight)),$entry.css("top",Math.floor(y)),$entry.css("left",x);var $image=this.imgFromEntry($entry);if($image!==null){$image.css("width",imgWidth),$image.css("height",imgHeight),$image.css("margin-left",-imgWidth/2),$image.css("margin-top",-imgHeight/2);var imageSrc=$image.data("jg.src");if(imageSrc){imageSrc=this.newSrc(imageSrc,imgWidth,imgHeight,$image[0]),$image.one("error",function(){this.resetImgSrc($image)});var loadNewImage=function(){$image.attr("src",imageSrc)};$entry.data("jg.loaded")==="skipped"&&imageSrc?this.onImageEvent(imageSrc,function(){this.showImg($entry,loadNewImage),$entry.data("jg.loaded",!0)}.bind(this)):this.showImg($entry,loadNewImage)}}else this.showImg($entry);this.displayEntryCaption($entry)},JustifiedGallery.prototype.displayEntryCaption=function($entry){var $image=this.imgFromEntry($entry);if($image!==null&&this.settings.captions){var $imgCaption=this.captionFromEntry($entry);if($imgCaption===null){var caption=$image.attr("alt");this.isValidCaption(caption)||(caption=$entry.attr("title")),this.isValidCaption(caption)&&($imgCaption=$('
'+caption+"
"),$entry.append($imgCaption),$entry.data("jg.createdCaption",!0))}$imgCaption!==null&&(this.settings.cssAnimation||$imgCaption.stop().fadeTo(0,this.settings.captionSettings.nonVisibleOpacity),this.addCaptionEventsHandlers($entry))}else this.removeCaptionEventsHandlers($entry)},JustifiedGallery.prototype.isValidCaption=function(caption){return typeof caption!="undefined"&&caption.length>0},JustifiedGallery.prototype.onEntryMouseEnterForCaption=function(eventObject){var $caption=this.captionFromEntry($(eventObject.currentTarget));this.settings.cssAnimation?$caption.addClass("jg-caption-visible").removeClass("jg-caption-hidden"):$caption.stop().fadeTo(this.settings.captionSettings.animationDuration,this.settings.captionSettings.visibleOpacity)},JustifiedGallery.prototype.onEntryMouseLeaveForCaption=function(eventObject){var $caption=this.captionFromEntry($(eventObject.currentTarget));this.settings.cssAnimation?$caption.removeClass("jg-caption-visible").removeClass("jg-caption-hidden"):$caption.stop().fadeTo(this.settings.captionSettings.animationDuration,this.settings.captionSettings.nonVisibleOpacity)},JustifiedGallery.prototype.addCaptionEventsHandlers=function($entry){var captionMouseEvents=$entry.data("jg.captionMouseEvents");typeof captionMouseEvents=="undefined"&&(captionMouseEvents={mouseenter:$.proxy(this.onEntryMouseEnterForCaption,this),mouseleave:$.proxy(this.onEntryMouseLeaveForCaption,this)},$entry.on("mouseenter",undefined,undefined,captionMouseEvents.mouseenter),$entry.on("mouseleave",undefined,undefined,captionMouseEvents.mouseleave),$entry.data("jg.captionMouseEvents",captionMouseEvents))},JustifiedGallery.prototype.removeCaptionEventsHandlers=function($entry){var captionMouseEvents=$entry.data("jg.captionMouseEvents");typeof captionMouseEvents!="undefined"&&($entry.off("mouseenter",undefined,captionMouseEvents.mouseenter),$entry.off("mouseleave",undefined,captionMouseEvents.mouseleave),$entry.removeData("jg.captionMouseEvents"))},JustifiedGallery.prototype.clearBuildingRow=function(){this.buildingRow.entriesBuff=[],this.buildingRow.aspectRatio=0,this.buildingRow.width=0},JustifiedGallery.prototype.prepareBuildingRow=function(isLastRow,hiddenRow){var i,$entry,imgAspectRatio,newImgW,newImgH,justify=!0,minHeight=0,availableWidth=this.galleryWidth-2*this.border-(this.buildingRow.entriesBuff.length-1)*this.settings.margins,rowHeight=Math.floor(availableWidth/this.buildingRow.aspectRatio),defaultRowHeight=this.settings.rowHeight,justifiable=this.buildingRow.width/availableWidth>this.settings.justifyThreshold;if(hiddenRow||isLastRow&&this.settings.lastRow==="hide"&&!justifiable){for(i=0;i img, > a > img").fadeTo(0,0));return-1}isLastRow&&!justifiable&&this.settings.lastRow!=="justify"&&this.settings.lastRow!=="hide"&&(justify=!1,this.rows>0&&(defaultRowHeight=(this.offY-this.border-this.settings.margins*this.rows)/this.rows,justify=defaultRowHeight*this.buildingRow.aspectRatio/availableWidth>this.settings.justifyThreshold));for(i=0;inewImgH)minHeight=newImgH}return this.buildingRow.height=minHeight,justify},JustifiedGallery.prototype.flushRow=function(isLastRow,hiddenRow){var settings=this.settings,$entry,buildingRowRes,offX=this.border,i;buildingRowRes=this.prepareBuildingRow(isLastRow,hiddenRow);if(hiddenRow||isLastRow&&settings.lastRow==="hide"&&buildingRowRes===-1){this.clearBuildingRow();return}this.maxRowHeight&&this.maxRowHeightthis.settings.refreshSensitivity&&(this.galleryWidth=galleryWidth,this.rewind(),this.rememberGalleryHeight(),this.startImgAnalyzer(!0))},this),this.settings.refreshTime)},JustifiedGallery.prototype.isSpinnerActive=function(){return this.spinner.intervalId!==null},JustifiedGallery.prototype.getSpinnerHeight=function(){return this.spinner.$el.innerHeight()},JustifiedGallery.prototype.stopLoadingSpinnerAnimation=function(){clearInterval(this.spinner.intervalId),this.spinner.intervalId=null,this.setGalleryTempHeight(this.$gallery.height()-this.getSpinnerHeight()),this.spinner.$el.detach()},JustifiedGallery.prototype.startLoadingSpinnerAnimation=function(){var spinnerContext=this.spinner,$spinnerPoints=spinnerContext.$el.find("span");clearInterval(spinnerContext.intervalId),this.$gallery.append(spinnerContext.$el),this.setGalleryTempHeight(this.offY+this.buildingRow.height+this.getSpinnerHeight()),spinnerContext.intervalId=setInterval(function(){spinnerContext.phase<$spinnerPoints.length?$spinnerPoints.eq(spinnerContext.phase).fadeTo(spinnerContext.timeSlot,1):$spinnerPoints.eq(spinnerContext.phase-$spinnerPoints.length).fadeTo(spinnerContext.timeSlot,0),spinnerContext.phase=(spinnerContext.phase+1)%($spinnerPoints.length*2)},spinnerContext.timeSlot)},JustifiedGallery.prototype.rewind=function(){this.lastFetchedEntry=null,this.lastAnalyzedIndex=-1,this.offY=this.border,this.rows=0,this.clearBuildingRow()},JustifiedGallery.prototype.getSelectorWithoutSpinner=function(){return this.settings.selector+", div:not(.jg-spinner)"},JustifiedGallery.prototype.getAllEntries=function(){var selector=this.getSelectorWithoutSpinner();return this.$gallery.children(selector).toArray()},JustifiedGallery.prototype.updateEntries=function(norewind){var newEntries;if(norewind&&this.lastFetchedEntry!=null){var selector=this.getSelectorWithoutSpinner();newEntries=$(this.lastFetchedEntry).nextAll(selector).toArray()}else this.entries=[],newEntries=this.getAllEntries();return newEntries.length>0&&($.isFunction(this.settings.sort)?newEntries=this.sortArray(newEntries):this.settings.randomize&&(newEntries=this.shuffleArray(newEntries)),this.lastFetchedEntry=newEntries[newEntries.length-1],this.settings.filter?newEntries=this.filterArray(newEntries):this.resetFilters(newEntries)),this.entries=this.entries.concat(newEntries),!0},JustifiedGallery.prototype.insertToGallery=function(entries){var that=this;$.each(entries,function(){$(this).appendTo(that.$gallery)})},JustifiedGallery.prototype.shuffleArray=function(a){var i,j,temp;for(i=a.length-1;i>0;i--)j=Math.floor(Math.random()*(i+1)),temp=a[i],a[i]=a[j],a[j]=temp;return this.insertToGallery(a),a},JustifiedGallery.prototype.sortArray=function(a){return a.sort(this.settings.sort),this.insertToGallery(a),a},JustifiedGallery.prototype.resetFilters=function(a){for(var i=0;i0&&this.rows===this.settings.maxRowsCount);if(++this.yield.flushed>=this.yield.every){this.startImgAnalyzer(isForResize);return}}}else if($entry.data("jg.loaded")!=="error")return}this.buildingRow.entriesBuff.length>0&&this.flushRow(!0,this.settings.maxRowsCount>0&&this.rows===this.settings.maxRowsCount),this.isSpinnerActive()&&this.stopLoadingSpinnerAnimation(),this.stopImgAnalyzerStarter(),this.setGalleryFinalHeight(this.galleryHeightToSet),this.settings.triggerEvent.call(this,isForResize?"jg.resize":"jg.complete")},JustifiedGallery.prototype.stopImgAnalyzerStarter=function(){this.yield.flushed=0,this.imgAnalyzerTimeout!==null&&(clearTimeout(this.imgAnalyzerTimeout),this.imgAnalyzerTimeout=null)},JustifiedGallery.prototype.startImgAnalyzer=function(isForResize){var that=this;this.stopImgAnalyzerStarter(),this.imgAnalyzerTimeout=setTimeout(function(){that.analyzeImages(isForResize)},.001)},JustifiedGallery.prototype.onImageEvent=function(imageSrc,onLoad,onError){if(!onLoad&&!onError)return;var memImage=new Image,$memImage=$(memImage);onLoad&&$memImage.one("load",function(){$memImage.off("load error"),onLoad(memImage)}),onError&&$memImage.one("error",function(){$memImage.off("load error"),onError(memImage)}),memImage.src=imageSrc},JustifiedGallery.prototype.init=function(){var imagesToLoad=!1,skippedImages=!1,that=this;$.each(this.entries,function(index,entry){var $entry=$(entry),$image=that.imgFromEntry($entry);$entry.addClass("jg-entry");if($entry.data("jg.loaded")!==!0&&$entry.data("jg.loaded")!=="skipped"){that.settings.rel!==null&&$entry.attr("rel",that.settings.rel),that.settings.target!==null&&$entry.attr("target",that.settings.target);if($image!==null){var imageSrc=that.extractImgSrcFromImage($image);if(that.settings.waitThumbnailsLoad===!1||!imageSrc){var width=parseFloat($image.attr("width")),height=parseFloat($image.attr("height"));$image.prop("tagName")==="svg"&&(width=parseFloat($image[0].getBBox().width),height=parseFloat($image[0].getBBox().height));if(!isNaN(width)&&!isNaN(height))return $entry.data("jg.width",width),$entry.data("jg.height",height),$entry.data("jg.loaded","skipped"),skippedImages=!0,that.startImgAnalyzer(!1),!0}$entry.data("jg.loaded",!1),imagesToLoad=!0,that.isSpinnerActive()||that.startLoadingSpinnerAnimation(),that.onImageEvent(imageSrc,function(loadImg){$entry.data("jg.width",loadImg.width),$entry.data("jg.height",loadImg.height),$entry.data("jg.loaded",!0),that.startImgAnalyzer(!1)},function(){$entry.data("jg.loaded","error"),that.startImgAnalyzer(!1)})}else $entry.data("jg.loaded",!0),$entry.data("jg.width",$entry.width()|parseFloat($entry.css("width"))|1),$entry.data("jg.height",$entry.height()|parseFloat($entry.css("height"))|1)}}),!imagesToLoad&&!skippedImages&&this.startImgAnalyzer(!1),this.checkWidth()},JustifiedGallery.prototype.checkOrConvertNumber=function(settingContainer,settingName){$.type(settingContainer[settingName])==="string"&&(settingContainer[settingName]=parseFloat(settingContainer[settingName]));if($.type(settingContainer[settingName])!=="number")throw settingName+" must be a number";if(isNaN(settingContainer[settingName]))throw"invalid number for "+settingName},JustifiedGallery.prototype.checkSizeRangesSuffixes=function(){if($.type(this.settings.sizeRangeSuffixes)!=="object")throw"sizeRangeSuffixes must be defined and must be an object";var suffixRanges=[];for(var rangeIdx in this.settings.sizeRangeSuffixes)this.settings.sizeRangeSuffixes.hasOwnProperty(rangeIdx)&&suffixRanges.push(rangeIdx);var newSizeRngSuffixes={0:""};for(var i=0;i1)throw"justifyThreshold must be in the interval [0,1]";if($.type(this.settings.cssAnimation)!=="boolean")throw"cssAnimation must be a boolean";if($.type(this.settings.captions)!=="boolean")throw"captions must be a boolean";this.checkOrConvertNumber(this.settings.captionSettings,"animationDuration"),this.checkOrConvertNumber(this.settings.captionSettings,"visibleOpacity");if(this.settings.captionSettings.visibleOpacity<0||this.settings.captionSettings.visibleOpacity>1)throw"captionSettings.visibleOpacity must be in the interval [0, 1]";this.checkOrConvertNumber(this.settings.captionSettings,"nonVisibleOpacity");if(this.settings.captionSettings.nonVisibleOpacity<0||this.settings.captionSettings.nonVisibleOpacity>1)throw"captionSettings.nonVisibleOpacity must be in the interval [0, 1]";this.checkOrConvertNumber(this.settings,"imagesAnimationDuration"),this.checkOrConvertNumber(this.settings,"refreshTime"),this.checkOrConvertNumber(this.settings,"refreshSensitivity");if($.type(this.settings.randomize)!=="boolean")throw"randomize must be a boolean";if($.type(this.settings.selector)!=="string")throw"selector must be a string";if(this.settings.sort!==!1&&!$.isFunction(this.settings.sort))throw"sort must be false or a comparison function";if(this.settings.filter!==!1&&!$.isFunction(this.settings.filter)&&$.type(this.settings.filter)!=="string")throw"filter must be false, a string or a filter function"},JustifiedGallery.prototype.retrieveSuffixRanges=function(){var suffixRanges=[];for(var rangeIdx in this.settings.sizeRangeSuffixes)this.settings.sizeRangeSuffixes.hasOwnProperty(rangeIdx)&&suffixRanges.push(parseInt(rangeIdx,10));return suffixRanges.sort(function(a,b){return a>b?1:a=0?this.settings.border:this.settings.margins,this.maxRowHeight=this.retrieveMaxRowHeight(),this.suffixRanges=this.retrieveSuffixRanges()},JustifiedGallery.prototype.defaults={sizeRangeSuffixes:{},thumbnailPath:undefined,rowHeight:120,maxRowHeight:!1,maxRowsCount:0,margins:1,border:-1,lastRow:"nojustify",justifyThreshold:.9,waitThumbnailsLoad:!0,captions:!0,cssAnimation:!0,imagesAnimationDuration:500,captionSettings:{animationDuration:500,visibleOpacity:.7,nonVisibleOpacity:0},rel:null,target:null,extension:/\.[^.\\/]+$/,refreshTime:200,refreshSensitivity:0,randomize:!1,rtl:!1,sort:!1,filter:!1,selector:"a",imgSelector:"> img, > a > img, > svg, > a > svg",triggerEvent:function(event){this.$gallery.trigger(event)}},$.fn.justifiedGallery=function(arg){return this.each(function(index,gallery){var $gallery=$(gallery);$gallery.addClass("justified-gallery");var controller=$gallery.data("jg.controller");if(typeof controller=="undefined"){if(typeof arg!="undefined"&&arg!==null&&$.type(arg)!=="object"){if(arg==="destroy")return;throw"The argument must be an object"}controller=new JustifiedGallery($gallery,$.extend({},JustifiedGallery.prototype.defaults,arg)),$gallery.data("jg.controller",controller)}else if(arg!=="norewind"){if(arg==="destroy"){controller.destroy();return}controller.updateSettings(arg),controller.rewind()}if(!controller.updateEntries(arg==="norewind"))return;controller.init()})}}),function(window,document,Math){function IScroll(el,options){this.wrapper=typeof el=="string"?document.querySelector(el):el,this.scroller=this.wrapper.children[0],this.scrollerStyle=this.scroller.style,this.options={resizeScrollbars:!0,mouseWheelSpeed:20,snapThreshold:.334,disablePointer:!utils.hasPointer,disableTouch:utils.hasPointer||!utils.hasTouch,disableMouse:utils.hasPointer||utils.hasTouch,startX:0,startY:0,scrollY:!0,directionLockThreshold:5,momentum:!0,bounce:!0,bounceTime:600,bounceEasing:"",preventDefault:!0,preventDefaultException:{tagName:/^(INPUT|TEXTAREA|BUTTON|SELECT|LABEL)$/},HWCompositing:!0,useTransition:!0,useTransform:!0,bindToWrapper:typeof window.onmousedown=="undefined"};for(var i in options)this.options[i]=options[i];this.translateZ=this.options.HWCompositing&&utils.hasPerspective?" translateZ(0)":"",this.options.useTransition=utils.hasTransition&&this.options.useTransition,this.options.useTransform=utils.hasTransform&&this.options.useTransform,this.options.eventPassthrough=this.options.eventPassthrough===!0?"vertical":this.options.eventPassthrough,this.options.preventDefault=!this.options.eventPassthrough&&this.options.preventDefault,this.options.scrollY=this.options.eventPassthrough=="vertical"?!1:this.options.scrollY,this.options.scrollX=this.options.eventPassthrough=="horizontal"?!1:this.options.scrollX,this.options.freeScroll=this.options.freeScroll&&!this.options.eventPassthrough,this.options.directionLockThreshold=this.options.eventPassthrough?0:this.options.directionLockThreshold,this.options.bounceEasing=typeof this.options.bounceEasing=="string"?utils.ease[this.options.bounceEasing]||utils.ease.circular:this.options.bounceEasing,this.options.resizePolling=this.options.resizePolling===undefined?60:this.options.resizePolling,this.options.tap===!0&&(this.options.tap="tap"),!this.options.useTransition&&!this.options.useTransform&&(/relative|absolute/i.test(this.scrollerStyle.position)||(this.scrollerStyle.position="relative")),this.options.shrinkScrollbars=="scale"&&(this.options.useTransition=!1),this.options.invertWheelDirection=this.options.invertWheelDirection?-1:1,this.x=0,this.y=0,this.directionX=0,this.directionY=0,this._events={},this._init(),this.refresh(),this.scrollTo(this.options.startX,this.options.startY),this.enable()}function createDefaultScrollbar(direction,interactive,type){var scrollbar=document.createElement("div"),indicator=document.createElement("div");return type===!0&&(scrollbar.style.cssText="position:absolute;z-index:9999",indicator.style.cssText="-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;position:absolute;background:rgba(0,0,0,0.5);border:1px solid rgba(255,255,255,0.9);border-radius:3px"),indicator.className="iScrollIndicator",direction=="h"?(type===!0&&(scrollbar.style.cssText+=";height:7px;left:2px;right:2px;bottom:0",indicator.style.height="100%"),scrollbar.className="iScrollHorizontalScrollbar"):(type===!0&&(scrollbar.style.cssText+=";width:7px;bottom:2px;top:2px;right:1px",indicator.style.width="100%"),scrollbar.className="iScrollVerticalScrollbar"),scrollbar.style.cssText+=";overflow:hidden",interactive||(scrollbar.style.pointerEvents="none"),scrollbar.appendChild(indicator),scrollbar}function Indicator(scroller,options){this.wrapper=typeof options.el=="string"?document.querySelector(options.el):options.el,this.wrapperStyle=this.wrapper.style,this.indicator=this.wrapper.children[0],this.indicatorStyle=this.indicator.style,this.scroller=scroller,this.options={listenX:!0,listenY:!0,interactive:!1,resize:!0,defaultScrollbars:!1,shrink:!1,fade:!1,speedRatioX:0,speedRatioY:0};for(var i in options)this.options[i]=options[i];this.sizeRatioX=1,this.sizeRatioY=1,this.maxPosX=0,this.maxPosY=0,this.options.interactive&&(this.options.disableTouch||(utils.addEvent(this.indicator,"touchstart",this),utils.addEvent(window,"touchend",this)),this.options.disablePointer||(utils.addEvent(this.indicator,utils.prefixPointerEvent("pointerdown"),this),utils.addEvent(window,utils.prefixPointerEvent("pointerup"),this)),this.options.disableMouse||(utils.addEvent(this.indicator,"mousedown",this),utils.addEvent(window,"mouseup",this)));if(this.options.fade){this.wrapperStyle[utils.style.transform]=this.scroller.translateZ;var durationProp=utils.style.transitionDuration;if(!durationProp)return;this.wrapperStyle[durationProp]=utils.isBadAndroid?"0.0001ms":"0ms";var self=this;utils.isBadAndroid&&rAF(function(){self.wrapperStyle[durationProp]==="0.0001ms"&&(self.wrapperStyle[durationProp]="0s")}),this.wrapperStyle.opacity="0"}}var rAF=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(callback){window.setTimeout(callback,1e3/60)},utils=function(){function _prefixStyle(style){return _vendor===!1?!1:_vendor===""?style:_vendor+style.charAt(0).toUpperCase()+style.substr(1)}var me={},_elementStyle=document.createElement("div").style,_vendor=function(){var vendors=["t","webkitT","MozT","msT","OT"],transform,i=0,l=vendors.length;for(;i0&&(destination=wrapperSize?wrapperSize/2.5*(speed/8):0,distance=Math.abs(current)+destination,duration=distance/speed),{destination:Math.round(destination),duration:duration}};var _transform=_prefixStyle("transform");return me.extend(me,{hasTransform:_transform!==!1,hasPerspective:_prefixStyle("perspective")in _elementStyle,hasTouch:"ontouchstart"in window,hasPointer:!!window.PointerEvent||!!window.MSPointerEvent,hasTransition:_prefixStyle("transition")in _elementStyle}),me.isBadAndroid=function(){var appVersion=window.navigator.appVersion;if(/Android/.test(appVersion)&&!/Chrome\/\d/.test(appVersion)){var safariVersion=appVersion.match(/Safari\/(\d+.\d)/);return safariVersion&&typeof safariVersion=="object"&&safariVersion.length>=2?parseFloat(safariVersion[1])<535.19:!0}return!1}(),me.extend(me.style={},{transform:_transform,transitionTimingFunction:_prefixStyle("transitionTimingFunction"),transitionDuration:_prefixStyle("transitionDuration"),transitionDelay:_prefixStyle("transitionDelay"),transformOrigin:_prefixStyle("transformOrigin")}),me.hasClass=function(e,c){var re=new RegExp("(^|\\s)"+c+"(\\s|$)");return re.test(e.className)},me.addClass=function(e,c){if(me.hasClass(e,c))return;var newclass=e.className.split(" ");newclass.push(c),e.className=newclass.join(" ")},me.removeClass=function(e,c){if(!me.hasClass(e,c))return;var re=new RegExp("(^|\\s)"+c+"(\\s|$)","g");e.className=e.className.replace(re," ")},me.offset=function(el){var left=-el.offsetLeft,top=-el.offsetTop;while(el=el.offsetParent)left-=el.offsetLeft,top-=el.offsetTop;return{left:left,top:top}},me.preventDefaultException=function(el,exceptions){for(var i in exceptions)if(exceptions[i].test(el[i]))return!0;return!1},me.extend(me.eventType={},{touchstart:1,touchmove:1,touchend:1,mousedown:2,mousemove:2,mouseup:2,pointerdown:3,pointermove:3,pointerup:3,MSPointerDown:3,MSPointerMove:3,MSPointerUp:3}),me.extend(me.ease={},{quadratic:{style:"cubic-bezier(0.25, 0.46, 0.45, 0.94)",fn:function(k){return k*(2-k)}},circular:{style:"cubic-bezier(0.1, 0.57, 0.1, 1)",fn:function(k){return Math.sqrt(1- --k*k)}},back:{style:"cubic-bezier(0.175, 0.885, 0.32, 1.275)",fn:function(k){var b=4;return(k-=1)*k*((b+1)*k+b)+1}},bounce:{style:"",fn:function(k){return(k/=1)<1/2.75?7.5625*k*k:k<2/2.75?7.5625*(k-=1.5/2.75)*k+.75:k<2.5/2.75?7.5625*(k-=2.25/2.75)*k+.9375:7.5625*(k-=2.625/2.75)*k+.984375}},elastic:{style:"",fn:function(k){var f=.22,e=.4;return k===0?0:k==1?1:e*Math.pow(2,-10*k)*Math.sin((k-f/4)*2*Math.PI/f)+1}}}),me.tap=function(e,eventName){var ev=document.createEvent("Event");ev.initEvent(eventName,!0,!0),ev.pageX=e.pageX,ev.pageY=e.pageY,e.target.dispatchEvent(ev)},me.click=function(e){var target=e.target,ev;/(SELECT|INPUT|TEXTAREA)/i.test(target.tagName)||(ev=document.createEvent(window.MouseEvent?"MouseEvents":"Event"),ev.initEvent("click",!0,!0),ev.view=e.view||window,ev.detail=1,ev.screenX=target.screenX||0,ev.screenY=target.screenY||0,ev.clientX=target.clientX||0,ev.clientY=target.clientY||0,ev.ctrlKey=!!e.ctrlKey,ev.altKey=!!e.altKey,ev.shiftKey=!!e.shiftKey,ev.metaKey=!!e.metaKey,ev.button=0,ev.relatedTarget=null,ev._constructed=!0,target.dispatchEvent(ev))},me}();IScroll.prototype={version:"5.2.0",_init:function(){this._initEvents(),(this.options.scrollbars||this.options.indicators)&&this._initIndicators(),this.options.mouseWheel&&this._initWheel(),this.options.snap&&this._initSnap(),this.options.keyBindings&&this._initKeys()},destroy:function(){this._initEvents(!0),clearTimeout(this.resizeTimeout),this.resizeTimeout=null,this._execEvent("destroy")},_transitionEnd:function(e){if(e.target!=this.scroller||!this.isInTransition)return;this._transitionTime(),this.resetPosition(this.options.bounceTime)||(this.isInTransition=!1,this._execEvent("scrollEnd"))},_start:function(e){if(utils.eventType[e.type]!=1){var button;e.which?button=e.button:button=e.button<2?0:e.button==4?1:2;if(button!==0)return}if(!this.enabled||this.initiated&&utils.eventType[e.type]!==this.initiated)return;this.options.preventDefault&&!utils.isBadAndroid&&!utils.preventDefaultException(e.target,this.options.preventDefaultException)&&e.preventDefault();var point=e.touches?e.touches[0]:e,pos;this.initiated=utils.eventType[e.type],this.moved=!1,this.distX=0,this.distY=0,this.directionX=0,this.directionY=0,this.directionLocked=0,this.startTime=utils.getTime(),this.options.useTransition&&this.isInTransition?(this._transitionTime(),this.isInTransition=!1,pos=this.getComputedPosition(),this._translate(Math.round(pos.x),Math.round(pos.y)),this._execEvent("scrollEnd")):!this.options.useTransition&&this.isAnimating&&(this.isAnimating=!1,this._execEvent("scrollEnd")),this.startX=this.x,this.startY=this.y,this.absStartX=this.x,this.absStartY=this.y,this.pointX=point.pageX,this.pointY=point.pageY,this._execEvent("beforeScrollStart")},_move:function(e){if(!this.enabled||utils.eventType[e.type]!==this.initiated)return;this.options.preventDefault&&e.preventDefault();var point=e.touches?e.touches[0]:e,deltaX=point.pageX-this.pointX,deltaY=point.pageY-this.pointY,timestamp=utils.getTime(),newX,newY,absDistX,absDistY;this.pointX=point.pageX,this.pointY=point.pageY,this.distX+=deltaX,this.distY+=deltaY,absDistX=Math.abs(this.distX),absDistY=Math.abs(this.distY);if(timestamp-this.endTime>300&&absDistX<10&&absDistY<10)return;!this.directionLocked&&!this.options.freeScroll&&(absDistX>absDistY+this.options.directionLockThreshold?this.directionLocked="h":absDistY>=absDistX+this.options.directionLockThreshold?this.directionLocked="v":this.directionLocked="n");if(this.directionLocked=="h"){if(this.options.eventPassthrough=="vertical")e.preventDefault();else if(this.options.eventPassthrough=="horizontal"){this.initiated=!1;return}deltaY=0}else if(this.directionLocked=="v"){if(this.options.eventPassthrough=="horizontal")e.preventDefault();else if(this.options.eventPassthrough=="vertical"){this.initiated=!1;return}deltaX=0}deltaX=this.hasHorizontalScroll?deltaX:0,deltaY=this.hasVerticalScroll?deltaY:0,newX=this.x+deltaX,newY=this.y+deltaY;if(newX>0||newX0?0:this.maxScrollX;if(newY>0||newY0?0:this.maxScrollY;this.directionX=deltaX>0?-1:deltaX<0?1:0,this.directionY=deltaY>0?-1:deltaY<0?1:0,this.moved||this._execEvent("scrollStart"),this.moved=!0,this._translate(newX,newY),timestamp-this.startTime>300&&(this.startTime=timestamp,this.startX=this.x,this.startY=this.y)},_end:function(e){if(!this.enabled||utils.eventType[e.type]!==this.initiated)return;this.options.preventDefault&&!utils.preventDefaultException(e.target,this.options.preventDefaultException)&&e.preventDefault();var point=e.changedTouches?e.changedTouches[0]:e,momentumX,momentumY,duration=utils.getTime()-this.startTime,newX=Math.round(this.x),newY=Math.round(this.y),distanceX=Math.abs(newX-this.startX),distanceY=Math.abs(newY-this.startY),time=0,easing="";this.isInTransition=0,this.initiated=0,this.endTime=utils.getTime();if(this.resetPosition(this.options.bounceTime))return;this.scrollTo(newX,newY);if(!this.moved){this.options.tap&&utils.tap(e,this.options.tap),this.options.click&&utils.click(e),this._execEvent("scrollCancel");return}if(this._events.flick&&duration<200&&distanceX<100&&distanceY<100){this._execEvent("flick");return}this.options.momentum&&duration<300&&(momentumX=this.hasHorizontalScroll?utils.momentum(this.x,this.startX,duration,this.maxScrollX,this.options.bounce?this.wrapperWidth:0,this.options.deceleration):{destination:newX,duration:0},momentumY=this.hasVerticalScroll?utils.momentum(this.y,this.startY,duration,this.maxScrollY,this.options.bounce?this.wrapperHeight:0,this.options.deceleration):{destination:newY,duration:0},newX=momentumX.destination,newY=momentumY.destination,time=Math.max(momentumX.duration,momentumY.duration),this.isInTransition=1);if(this.options.snap){var snap=this._nearestSnap(newX,newY);this.currentPage=snap,time=this.options.snapSpeed||Math.max(Math.max(Math.min(Math.abs(newX-snap.x),1e3),Math.min(Math.abs(newY-snap.y),1e3)),300),newX=snap.x,newY=snap.y,this.directionX=0,this.directionY=0,easing=this.options.bounceEasing}if(newX!=this.x||newY!=this.y){if(newX>0||newX0||newY0?x=0:this.x0?y=0:this.y-1&&this._events[type].splice(index,1)},_execEvent:function(type){if(!this._events[type])return;var i=0,l=this._events[type].length;if(!l)return;for(;i0;var transitionType=this.options.useTransition&&easing.style;!time||transitionType?(transitionType&&(this._transitionTimingFunction(easing.style),this._transitionTime(time)),this._translate(x,y)):this._animate(x,y,time,easing.fn)},scrollToElement:function(el,time,offsetX,offsetY,easing){el=el.nodeType?el:this.scroller.querySelector(el);if(!el)return;var pos=utils.offset(el);pos.left-=this.wrapperOffset.left,pos.top-=this.wrapperOffset.top,offsetX===!0&&(offsetX=Math.round(el.offsetWidth/2-this.wrapper.offsetWidth/2)),offsetY===!0&&(offsetY=Math.round(el.offsetHeight/2-this.wrapper.offsetHeight/2)),pos.left-=offsetX||0,pos.top-=offsetY||0,pos.left=pos.left>0?0:pos.left0?0:pos.top-1)return!1;this.options.useTransform?this.scrollerStyle[utils.style.transform]="translate("+x+"px,"+y+"px)"+this.translateZ:(x=Math.round(x),y=Math.round(y),this.scrollerStyle.left=x+"px",this.scrollerStyle.top=y+"px"),this.x=x,this.y=y;if(this.indicators)for(var i=this.indicators.length;i--;)this.indicators[i].updatePosition();var uncodevent=new CustomEvent("fp-slide-scroll");window.dispatchEvent(uncodevent)},_initEvents:function(remove){var eventType=remove?utils.removeEvent:utils.addEvent,target=this.options.bindToWrapper?this.wrapper:window;eventType(window,"orientationchange",this),eventType(window,"resize",this),this.options.click&&eventType(this.wrapper,"click",this,!0),this.options.disableMouse||(eventType(this.wrapper,"mousedown",this),eventType(target,"mousemove",this),eventType(target,"mousecancel",this),eventType(target,"mouseup",this)),utils.hasPointer&&!this.options.disablePointer&&(eventType(this.wrapper,utils.prefixPointerEvent("pointerdown"),this),eventType(target,utils.prefixPointerEvent("pointermove"),this),eventType(target,utils.prefixPointerEvent("pointercancel"),this),eventType(target,utils.prefixPointerEvent("pointerup"),this)),utils.hasTouch&&!this.options.disableTouch&&(eventType(this.wrapper,"touchstart",this),eventType(target,"touchmove",this),eventType(target,"touchcancel",this),eventType(target,"touchend",this)),eventType(this.scroller,"transitionend",this),eventType(this.scroller,"webkitTransitionEnd",this),eventType(this.scroller,"oTransitionEnd",this),eventType(this.scroller,"MSTransitionEnd",this)},getComputedPosition:function(){var matrix=window.getComputedStyle(this.scroller,null),x,y;return this.options.useTransform?(matrix=matrix[utils.style.transform].split(")")[0].split(", "),x=+(matrix[12]||matrix[4]),y=+(matrix[13]||matrix[5])):(x=+matrix.left.replace(/[^-\d.]/g,""),y=+matrix.top.replace(/[^-\d.]/g,"")),{x:x,y:y}},_initIndicators:function(){function _indicatorsMap(fn){if(that.indicators)for(var i=that.indicators.length;i--;)fn.call(that.indicators[i])}var interactive=this.options.interactiveScrollbars,customStyle=typeof this.options.scrollbars!="string",indicators=[],indicator,that=this;this.indicators=[],this.options.scrollbars&&(this.options.scrollY&&(indicator={el:createDefaultScrollbar("v",interactive,this.options.scrollbars),interactive:interactive,defaultScrollbars:!0,customStyle:customStyle,resize:this.options.resizeScrollbars,shrink:this.options.shrinkScrollbars,fade:this.options.fadeScrollbars,listenX:!1},this.wrapper.appendChild(indicator.el),indicators.push(indicator)),this.options.scrollX&&(indicator={el:createDefaultScrollbar("h",interactive,this.options.scrollbars),interactive:interactive,defaultScrollbars:!0,customStyle:customStyle,resize:this.options.resizeScrollbars,shrink:this.options.shrinkScrollbars,fade:this.options.fadeScrollbars,listenY:!1},this.wrapper.appendChild(indicator.el),indicators.push(indicator))),this.options.indicators&&(indicators=indicators.concat(this.options.indicators));for(var i=indicators.length;i--;)this.indicators.push(new Indicator(this,indicators[i]));this.options.fadeScrollbars&&(this.on("scrollEnd",function(){_indicatorsMap(function(){this.fade()})}),this.on("scrollCancel",function(){_indicatorsMap(function(){this.fade()})}),this.on("scrollStart",function(){_indicatorsMap(function(){this.fade(1)})}),this.on("beforeScrollStart",function(){_indicatorsMap(function(){this.fade(1,!0)})})),this.on("refresh",function(){_indicatorsMap(function(){this.refresh()})}),this.on("destroy",function(){_indicatorsMap(function(){this.destroy()}),delete this.indicators})},_initWheel:function(){utils.addEvent(this.wrapper,"wheel",this),utils.addEvent(this.wrapper,"mousewheel",this),utils.addEvent(this.wrapper,"DOMMouseScroll",this),this.on("destroy",function(){clearTimeout(this.wheelTimeout),this.wheelTimeout=null,utils.removeEvent(this.wrapper,"wheel",this),utils.removeEvent(this.wrapper,"mousewheel",this),utils.removeEvent(this.wrapper,"DOMMouseScroll",this)})},_wheel:function(e){if(!this.enabled)return;var wheelDeltaX,wheelDeltaY,newX,newY,that=this;this.wheelTimeout===undefined&&that._execEvent("scrollStart"),clearTimeout(this.wheelTimeout),this.wheelTimeout=setTimeout(function(){that.options.snap||that._execEvent("scrollEnd"),that.wheelTimeout=undefined},400);if("deltaX"in e)e.deltaMode===1?(wheelDeltaX=-e.deltaX*this.options.mouseWheelSpeed,wheelDeltaY=-e.deltaY*this.options.mouseWheelSpeed):(wheelDeltaX=-e.deltaX,wheelDeltaY=-e.deltaY);else if("wheelDeltaX"in e)wheelDeltaX=e.wheelDeltaX/120*this.options.mouseWheelSpeed,wheelDeltaY=e.wheelDeltaY/120*this.options.mouseWheelSpeed;else if("wheelDelta"in e)wheelDeltaX=wheelDeltaY=e.wheelDelta/120*this.options.mouseWheelSpeed;else{if(!("detail"in e))return;wheelDeltaX=wheelDeltaY=-e.detail/3*this.options.mouseWheelSpeed}wheelDeltaX*=this.options.invertWheelDirection,wheelDeltaY*=this.options.invertWheelDirection,this.hasVerticalScroll||(wheelDeltaX=wheelDeltaY,wheelDeltaY=0);if(this.options.snap){newX=this.currentPage.pageX,newY=this.currentPage.pageY,wheelDeltaX>0?newX--:wheelDeltaX<0&&newX++,wheelDeltaY>0?newY--:wheelDeltaY<0&&newY++,this.goToPage(newX,newY);return}newX=this.x+Math.round(this.hasHorizontalScroll?wheelDeltaX:0),newY=this.y+Math.round(this.hasVerticalScroll?wheelDeltaY:0),this.directionX=wheelDeltaX>0?-1:wheelDeltaX<0?1:0,this.directionY=wheelDeltaY>0?-1:wheelDeltaY<0?1:0,newX>0?newX=0:newX0?newY=0:newY-this.scrollerWidth){this.pages[i]=[],l=0,y=0;while(y>-this.scrollerHeight)this.pages[i][l]={x:Math.max(x,this.maxScrollX),y:Math.max(y,this.maxScrollY),width:stepX,height:stepY,cx:x-cx,cy:y-cy},y-=stepY,l++;x-=stepX,i++}}else{el=this.options.snap,l=el.length,n=-1;for(;ithis.maxScrollX&&m++}}this.goToPage(this.currentPage.pageX||0,this.currentPage.pageY||0,0),this.options.snapThreshold%1===0?(this.snapThresholdX=this.options.snapThreshold,this.snapThresholdY=this.options.snapThreshold):(this.snapThresholdX=Math.round(this.pages[this.currentPage.pageX][this.currentPage.pageY].width*this.options.snapThreshold),this.snapThresholdY=Math.round(this.pages[this.currentPage.pageX][this.currentPage.pageY].height*this.options.snapThreshold))}),this.on("flick",function(){var time=this.options.snapSpeed||Math.max(Math.max(Math.min(Math.abs(this.x-this.startX),1e3),Math.min(Math.abs(this.y-this.startY),1e3)),300);this.goToPage(this.currentPage.pageX+this.directionX,this.currentPage.pageY+this.directionY,time)})},_nearestSnap:function(x,y){if(!this.pages.length)return{x:0,y:0,pageX:0,pageY:0};var i=0,l=this.pages.length,m=0;if(Math.abs(x-this.absStartX)0?x=0:x0?y=0:y=this.pages[i][0].cx){x=this.pages[i][0].x;break}l=this.pages[i].length;for(;m=this.pages[0][m].cy){y=this.pages[0][m].y;break}return i==this.currentPage.pageX&&(i+=this.directionX,i<0?i=0:i>=this.pages.length&&(i=this.pages.length-1),x=this.pages[i][0].x),m==this.currentPage.pageY&&(m+=this.directionY,m<0?m=0:m>=this.pages[0].length&&(m=this.pages[0].length-1),y=this.pages[0][m].y),{x:x,y:y,pageX:i,pageY:m}},goToPage:function(x,y,time,easing){easing=easing||this.options.bounceEasing,x>=this.pages.length?x=this.pages.length-1:x<0&&(x=0),y>=this.pages[x].length?y=this.pages[x].length-1:y<0&&(y=0);var posX=this.pages[x][y].x,posY=this.pages[x][y].y;time=time===undefined?this.options.snapSpeed||Math.max(Math.max(Math.min(Math.abs(posX-this.x),1e3),Math.min(Math.abs(posY-this.y),1e3)),300):time,this.currentPage={x:posX,y:posY,pageX:x,pageY:y},this.scrollTo(posX,posY,time,easing)},next:function(time,easing){var x=this.currentPage.pageX,y=this.currentPage.pageY;x++,x>=this.pages.length&&this.hasVerticalScroll&&(x=0,y++),this.goToPage(x,y,time,easing)},prev:function(time,easing){var x=this.currentPage.pageX,y=this.currentPage.pageY;x--,x<0&&this.hasVerticalScroll&&(x=0,y--),this.goToPage(x,y,time,easing)},_initKeys:function(e){var keys={pageUp:33,pageDown:34,end:35,home:36,left:37,up:38,right:39,down:40},i;if(typeof this.options.keyBindings=="object")for(i in this.options.keyBindings)typeof this.options.keyBindings[i]=="string"&&(this.options.keyBindings[i]=this.options.keyBindings[i].toUpperCase().charCodeAt(0));else this.options.keyBindings={};for(i in keys)this.options.keyBindings[i]=this.options.keyBindings[i]||keys[i];utils.addEvent(window,"keydown",this),this.on("destroy",function(){utils.removeEvent(window,"keydown",this)})},_key:function(e){if(!this.enabled)return;var snap=this.options.snap,newX=snap?this.currentPage.pageX:this.x,newY=snap?this.currentPage.pageY:this.y,now=utils.getTime(),prevTime=this.keyTime||0,acceleration=.25,pos;this.options.useTransition&&this.isInTransition&&(pos=this.getComputedPosition(),this._translate(Math.round(pos.x),Math.round(pos.y)),this.isInTransition=!1),this.keyAcceleration=now-prevTime<200?Math.min(this.keyAcceleration+acceleration,50):0;switch(e.keyCode){case this.options.keyBindings.pageUp:this.hasHorizontalScroll&&!this.hasVerticalScroll?newX+=snap?1:this.wrapperWidth:newY+=snap?1:this.wrapperHeight;break;case this.options.keyBindings.pageDown:this.hasHorizontalScroll&&!this.hasVerticalScroll?newX-=snap?1:this.wrapperWidth:newY-=snap?1:this.wrapperHeight;break;case this.options.keyBindings.end:newX=snap?this.pages.length-1:this.maxScrollX,newY=snap?this.pages[0].length-1:this.maxScrollY;break;case this.options.keyBindings.home:newX=0,newY=0;break;case this.options.keyBindings.left:newX+=snap?-1:5+this.keyAcceleration>>0;break;case this.options.keyBindings.up:newY+=snap?1:5+this.keyAcceleration>>0;break;case this.options.keyBindings.right:newX-=snap?-1:5+this.keyAcceleration>>0;break;case this.options.keyBindings.down:newY-=snap?1:5+this.keyAcceleration>>0;break;default:return}if(snap){this.goToPage(newX,newY);return}newX>0?(newX=0,this.keyAcceleration=0):newX0?(newY=0,this.keyAcceleration=0):newY=destTime){that.isAnimating=!1,that._translate(destX,destY),that.resetPosition(that.options.bounceTime)||that._execEvent("scrollEnd");return}now=(now-startTime)/duration,easing=easingFn(now),newX=(destX-startX)*easing+startX,newY=(destY-startY)*easing+startY,that._translate(newX,newY),that.isAnimating&&rAF(step)}var that=this,startX=this.x,startY=this.y,startTime=utils.getTime(),destTime=startTime+duration;this.isAnimating=!0,step()},handleEvent:function(e){switch(e.type){case"touchstart":case"pointerdown":case"MSPointerDown":case"mousedown":this._start(e);break;case"touchmove":case"pointermove":case"MSPointerMove":case"mousemove":this._move(e);break;case"touchend":case"pointerup":case"MSPointerUp":case"mouseup":case"touchcancel":case"pointercancel":case"MSPointerCancel":case"mousecancel":this._end(e);break;case"orientationchange":case"resize":this._resize();break;case"transitionend":case"webkitTransitionEnd":case"oTransitionEnd":case"MSTransitionEnd":this._transitionEnd(e);break;case"wheel":case"DOMMouseScroll":case"mousewheel":this._wheel(e);break;case"keydown":this._key(e);break;case"click":this.enabled&&!e._constructed&&(e.preventDefault(),e.stopPropagation())}}},Indicator.prototype={handleEvent:function(e){switch(e.type){case"touchstart":case"pointerdown":case"MSPointerDown":case"mousedown":this._start(e);break;case"touchmove":case"pointermove":case"MSPointerMove":case"mousemove":this._move(e);break;case"touchend":case"pointerup":case"MSPointerUp":case"mouseup":case"touchcancel":case"pointercancel":case"MSPointerCancel":case"mousecancel":this._end(e)}},destroy:function(){this.options.fadeScrollbars&&(clearTimeout(this.fadeTimeout),this.fadeTimeout=null),this.options.interactive&&(utils.removeEvent(this.indicator,"touchstart",this),utils.removeEvent(this.indicator,utils.prefixPointerEvent("pointerdown"),this),utils.removeEvent(this.indicator,"mousedown",this),utils.removeEvent(window,"touchmove",this),utils.removeEvent(window,utils.prefixPointerEvent("pointermove"),this),utils.removeEvent(window,"mousemove",this),utils.removeEvent(window,"touchend",this),utils.removeEvent(window,utils.prefixPointerEvent("pointerup"),this),utils.removeEvent(window,"mouseup",this)),this.options.defaultScrollbars&&this.wrapper.parentNode.removeChild(this.wrapper)},_start:function(e){var point=e.touches?e.touches[0]:e;e.preventDefault(),e.stopPropagation(),this.transitionTime(),this.initiated=!0,this.moved=!1,this.lastPointX=point.pageX,this.lastPointY=point.pageY,this.startTime=utils.getTime(),this.options.disableTouch||utils.addEvent(window,"touchmove",this),this.options.disablePointer||utils.addEvent(window,utils.prefixPointerEvent("pointermove"),this),this.options.disableMouse||utils.addEvent(window,"mousemove",this),this.scroller._execEvent("beforeScrollStart")},_move:function(e){var point=e.touches?e.touches[0]:e,deltaX,deltaY,newX,newY,timestamp=utils.getTime();this.moved||this.scroller._execEvent("scrollStart"),this.moved=!0,deltaX=point.pageX-this.lastPointX,this.lastPointX=point.pageX,deltaY=point.pageY-this.lastPointY,this.lastPointY=point.pageY,newX=this.x+deltaX,newY=this.y+deltaY,this._pos(newX,newY),e.preventDefault(),e.stopPropagation()},_end:function(e){if(!this.initiated)return;this.initiated=!1,e.preventDefault(),e.stopPropagation(),utils.removeEvent(window,"touchmove",this),utils.removeEvent(window,utils.prefixPointerEvent("pointermove"),this),utils.removeEvent(window,"mousemove",this);if(this.scroller.options.snap){var snap=this.scroller._nearestSnap(this.scroller.x,this.scroller.y),time=this.options.snapSpeed||Math.max(Math.max(Math.min(Math.abs(this.scroller.x-snap.x),1e3),Math.min(Math.abs(this.scroller.y-snap.y),1e3)),300);if(this.scroller.x!=snap.x||this.scroller.y!=snap.y)this.scroller.directionX=0,this.scroller.directionY=0,this.scroller.currentPage=snap,this.scroller.scrollTo(snap.x,snap.y,time,this.scroller.options.bounceEasing)}this.moved&&this.scroller._execEvent("scrollEnd")},transitionTime:function(time){time=time||0;var durationProp=utils.style.transitionDuration;if(!durationProp)return;this.indicatorStyle[durationProp]=time+"ms";if(!time&&utils.isBadAndroid){this.indicatorStyle[durationProp]="0.0001ms";var self=this;rAF(function(){self.indicatorStyle[durationProp]==="0.0001ms"&&(self.indicatorStyle[durationProp]="0s")})}},transitionTimingFunction:function(easing){this.indicatorStyle[utils.style.transitionTimingFunction]=easing},refresh:function(){this.transitionTime(),this.options.listenX&&!this.options.listenY?this.indicatorStyle.display=this.scroller.hasHorizontalScroll?"block":"none":this.options.listenY&&!this.options.listenX?this.indicatorStyle.display=this.scroller.hasVerticalScroll?"block":"none":this.indicatorStyle.display=this.scroller.hasHorizontalScroll||this.scroller.hasVerticalScroll?"block":"none",this.scroller.hasHorizontalScroll&&this.scroller.hasVerticalScroll?(utils.addClass(this.wrapper,"iScrollBothScrollbars"),utils.removeClass(this.wrapper,"iScrollLoneScrollbar"),this.options.defaultScrollbars&&this.options.customStyle&&(this.options.listenX?this.wrapper.style.right="8px":this.wrapper.style.bottom="8px")):(utils.removeClass(this.wrapper,"iScrollBothScrollbars"),utils.addClass(this.wrapper,"iScrollLoneScrollbar"),this.options.defaultScrollbars&&this.options.customStyle&&(this.options.listenX?this.wrapper.style.right="2px":this.wrapper.style.bottom="2px"));var r=this.wrapper.offsetHeight;this.options.listenX&&(this.wrapperWidth=this.wrapper.clientWidth,this.options.resize?(this.indicatorWidth=Math.max(Math.round(this.wrapperWidth*this.wrapperWidth/(this.scroller.scrollerWidth||this.wrapperWidth||1)),8),this.indicatorStyle.width=this.indicatorWidth+"px"):this.indicatorWidth=this.indicator.clientWidth,this.maxPosX=this.wrapperWidth-this.indicatorWidth,this.options.shrink=="clip"?(this.minBoundaryX=-this.indicatorWidth+8,this.maxBoundaryX=this.wrapperWidth-8):(this.minBoundaryX=0,this.maxBoundaryX=this.maxPosX),this.sizeRatioX=this.options.speedRatioX||this.scroller.maxScrollX&&this.maxPosX/this.scroller.maxScrollX),this.options.listenY&&(this.wrapperHeight=this.wrapper.clientHeight,this.options.resize?(this.indicatorHeight=Math.max(Math.round(this.wrapperHeight*this.wrapperHeight/(this.scroller.scrollerHeight||this.wrapperHeight||1)),8),this.indicatorStyle.height=this.indicatorHeight+"px"):this.indicatorHeight=this.indicator.clientHeight,this.maxPosY=this.wrapperHeight-this.indicatorHeight,this.options.shrink=="clip"?(this.minBoundaryY=-this.indicatorHeight+8,this.maxBoundaryY=this.wrapperHeight-8):(this.minBoundaryY=0,this.maxBoundaryY=this.maxPosY),this.maxPosY=this.wrapperHeight-this.indicatorHeight,this.sizeRatioY=this.options.speedRatioY||this.scroller.maxScrollY&&this.maxPosY/this.scroller.maxScrollY),this.updatePosition()},updatePosition:function(){var x=this.options.listenX&&Math.round(this.sizeRatioX*this.scroller.x)||0,y=this.options.listenY&&Math.round(this.sizeRatioY*this.scroller.y)||0;this.options.ignoreBoundaries||(xthis.maxBoundaryX?this.options.shrink=="scale"?(this.width=Math.max(this.indicatorWidth-(x-this.maxPosX),8),this.indicatorStyle.width=this.width+"px",x=this.maxPosX+this.indicatorWidth-this.width):x=this.maxBoundaryX:this.options.shrink=="scale"&&this.width!=this.indicatorWidth&&(this.width=this.indicatorWidth,this.indicatorStyle.width=this.width+"px"),ythis.maxBoundaryY?this.options.shrink=="scale"?(this.height=Math.max(this.indicatorHeight-(y-this.maxPosY)*3,8),this.indicatorStyle.height=this.height+"px",y=this.maxPosY+this.indicatorHeight-this.height):y=this.maxBoundaryY:this.options.shrink=="scale"&&this.height!=this.indicatorHeight&&(this.height=this.indicatorHeight,this.indicatorStyle.height=this.height+"px")),this.x=x,this.y=y,this.scroller.options.useTransform?this.indicatorStyle[utils.style.transform]="translate("+x+"px,"+y+"px)"+this.scroller.translateZ:(this.indicatorStyle.left=x+"px",this.indicatorStyle.top=y+"px")},_pos:function(x,y){x<0?x=0:x>this.maxPosX&&(x=this.maxPosX),y<0?y=0:y>this.maxPosY&&(y=this.maxPosY),x=this.options.listenX?Math.round(x/this.sizeRatioX):this.scroller.x,y=this.options.listenY?Math.round(y/this.sizeRatioY):this.scroller.y,this.scroller.scrollTo(x,y)},fade:function(val,hold){if(hold&&!this.visible)return;clearTimeout(this.fadeTimeout),this.fadeTimeout=null;var time=val?250:500,delay=val?0:300;val=val?"1":"0",this.wrapperStyle[utils.style.transitionDuration]=time+"ms",this.fadeTimeout=setTimeout(function(val){this.wrapperStyle.opacity=val,this.visible=+val}.bind(this,val),delay)}},IScroll.utils=utils,typeof module!="undefined"&&module.exports?module.exports=IScroll:typeof define=="function"&&define.amd?define(function(){return IScroll}):window.IScroll=IScroll}(window,document,Math),function(global,factory){"use strict";typeof define=="function"&&define.amd?define(["jquery"],function($){return factory($,global,global.document,global.Math)}):typeof exports=="object"&&exports?module.exports=factory(require("jquery"),global,global.document,global.Math):factory(jQuery,global,global.document,global.Math)}(typeof window!="undefined"?window:this,function($,window,document,Math,undefined){"use strict";var WRAPPER="fullpage-wrapper",WRAPPER_SEL="."+WRAPPER,SCROLLABLE="fp-scrollable",SCROLLABLE_SEL="."+SCROLLABLE,RESPONSIVE="fp-responsive",NO_TRANSITION="fp-notransition",DESTROYED="fp-destroyed",ENABLED="fp-enabled",VIEWING_PREFIX="fp-viewing",ACTIVE="active",ACTIVE_SEL="."+ACTIVE,COMPLETELY="fp-completely",COMPLETELY_SEL="."+COMPLETELY,SECTION_DEFAULT_SEL=".section",SECTION="fp-section",SECTION_SEL="."+SECTION,SECTION_ACTIVE_SEL=SECTION_SEL+ACTIVE_SEL,SECTION_FIRST_SEL=SECTION_SEL+":first",SECTION_LAST_SEL=SECTION_SEL+":last",TABLE_CELL="fp-tableCell",TABLE_CELL_SEL="."+TABLE_CELL,AUTO_HEIGHT="fp-auto-height",AUTO_HEIGHT_SEL=".fp-auto-height",NORMAL_SCROLL="fp-normal-scroll",NORMAL_SCROLL_SEL=".fp-normal-scroll",SECTION_NAV="fp-nav",SECTION_NAV_SEL="#"+SECTION_NAV,SECTION_NAV_TOOLTIP="fp-tooltip",SECTION_NAV_TOOLTIP_SEL="."+SECTION_NAV_TOOLTIP,SHOW_ACTIVE_TOOLTIP="fp-show-active",SLIDE_DEFAULT_SEL=".slide",SLIDE="fp-slide",SLIDE_SEL="."+SLIDE,SLIDE_ACTIVE_SEL=SLIDE_SEL+ACTIVE_SEL,SLIDES_WRAPPER="fp-slides",SLIDES_WRAPPER_SEL="."+SLIDES_WRAPPER,SLIDES_CONTAINER="fp-slidesContainer",SLIDES_CONTAINER_SEL="."+SLIDES_CONTAINER,TABLE="fp-table",SLIDES_NAV="fp-slidesNav",SLIDES_NAV_SEL="."+SLIDES_NAV,SLIDES_NAV_LINK_SEL=SLIDES_NAV_SEL+" a",SLIDES_ARROW="fp-controlArrow",SLIDES_ARROW_SEL="."+SLIDES_ARROW,SLIDES_PREV="fp-prev",SLIDES_PREV_SEL="."+SLIDES_PREV,SLIDES_ARROW_PREV=SLIDES_ARROW+" "+SLIDES_PREV,SLIDES_ARROW_PREV_SEL=SLIDES_ARROW_SEL+SLIDES_PREV_SEL,SLIDES_NEXT="fp-next",SLIDES_NEXT_SEL="."+SLIDES_NEXT,SLIDES_ARROW_NEXT=SLIDES_ARROW+" "+SLIDES_NEXT,SLIDES_ARROW_NEXT_SEL=SLIDES_ARROW_SEL+SLIDES_NEXT_SEL,$window=$(window),$document=$(document),iscrollOptions={scrollbars:!0,mouseWheel:!0,hideScrollbars:!1,fadeScrollbars:!1,disableMouse:!0,interactiveScrollbars:!0,bounce:!1};$.fn.fullpage=function(options){function setAutoScrolling(value,type){value||silentScroll(0),setVariableState("autoScrolling",value,type);var element=$(SECTION_ACTIVE_SEL);options.autoScrolling&&!options.scrollBar?($htmlBody.css({overflow:"hidden !important",height:"100%"}),container.css({"-ms-touch-action":"none","touch-action":"none"}),element.length&&silentScroll(element.position().top)):($htmlBody.css({overflow:"visible !important",height:"initial"}),container.css({"-ms-touch-action":"","touch-action":""}),element.length&&$htmlBody.scrollTop(element.position().top))}function setRecordHistory(value,type){setVariableState("recordHistory",value,type)}function setScrollingSpeed(value,type){setVariableState("scrollingSpeed",value,type)}function setFitToSection(value,type){setVariableState("fitToSection",value,type)}function setLockAnchors(value){options.lockAnchors=value}function setMouseWheelScrolling(value){value?(addMouseWheelHandler(),addMiddleWheelHandler()):(removeMouseWheelHandler(),removeMiddleWheelHandler())}function setAllowScrolling(value,directions){typeof directions!="undefined"?(directions=directions.replace(/ /g,"").split(","),$.each(directions,function(index,direction){setIsScrollAllowed(value,direction,"m")})):value?(setMouseWheelScrolling(!0),addTouchHandler()):(setMouseWheelScrolling(!1),removeTouchHandler())}function setKeyboardScrolling(value,directions){typeof directions!="undefined"?(directions=directions.replace(/ /g,"").split(","),$.each(directions,function(index,direction){setIsScrollAllowed(value,direction,"k")})):options.keyboardScrolling=value}function moveSectionUp(){var prev=$(SECTION_ACTIVE_SEL).prev(SECTION_SEL);!prev.length&&(options.loopTop||options.continuousVertical)&&(prev=$(SECTION_SEL).last()),prev.length&&scrollPage(prev,null,!0)}function moveSectionDown(){var next=$(SECTION_ACTIVE_SEL).next(SECTION_SEL);!next.length&&(options.loopBottom||options.continuousVertical)&&(next=$(SECTION_SEL).first()),next.length&&scrollPage(next,null,!1)}function silentMoveTo(sectionAnchor,slideAnchor){setScrollingSpeed(0,"internal"),moveTo(sectionAnchor,slideAnchor),setScrollingSpeed(originals.scrollingSpeed,"internal")}function moveTo(sectionAnchor,slideAnchor){var destiny=getSectionByAnchor(sectionAnchor);typeof slideAnchor!="undefined"?scrollPageAndSlide(sectionAnchor,slideAnchor):destiny.length>0&&scrollPage(destiny)}function moveSlideRight(section){moveSlide("right",section)}function moveSlideLeft(section){moveSlide("left",section)}function reBuild(resizing){if(container.hasClass(DESTROYED))return;isResizing=!0,windowsHeight=$window.height(),$(SECTION_SEL).each(function(){var slidesWrap=$(this).find(SLIDES_WRAPPER_SEL),slides=$(this).find(SLIDE_SEL);options.verticalCentered&&$(this).find(TABLE_CELL_SEL).css("height",getTableHeight($(this))+"px"),$(this).css("height",windowsHeight+"px"),options.scrollOverflow&&(slides.length?slides.each(function(){createScrollBar($(this))}):createScrollBar($(this))),slides.length>1&&landscapeScroll(slidesWrap,slidesWrap.find(SLIDE_ACTIVE_SEL))});var activeSection=$(SECTION_ACTIVE_SEL),sectionIndex=activeSection.index(SECTION_SEL);sectionIndex&&silentMoveTo(sectionIndex+1),isResizing=!1,$.isFunction(options.afterResize)&&resizing&&options.afterResize.call(container,getTableHeight()),$.isFunction(options.afterReBuild)&&!resizing&&options.afterReBuild.call(container)}function setResponsive(active){var isResponsive=$body.hasClass(RESPONSIVE);active?isResponsive||(setAutoScrolling(!1,"internal"),setFitToSection(!1,"internal"),$(SECTION_NAV_SEL).hide(),$body.addClass(RESPONSIVE),$.isFunction(options.afterResponsive)&&options.afterResponsive.call(container,active)):isResponsive&&(setAutoScrolling(originals.autoScrolling,"internal"),setFitToSection(originals.autoScrolling,"internal"),$(SECTION_NAV_SEL).show(),$body.removeClass(RESPONSIVE),$.isFunction(options.afterResponsive)&&options.afterResponsive.call(container,active))}function init(){options.css3&&(options.css3=support3d()),options.scrollBar=options.scrollBar||options.hybrid,setOptionsFromDOM(),prepareDom(),setAllowScrolling(!0),setAutoScrolling(options.autoScrolling,"internal"),responsive(),setBodyClass()}function bindEvents(){$window.on("hashchange",hashChangeHandler).blur(blurHandler).resize(resizeHandler),$document.keydown(keydownHandler).keyup(keyUpHandler).on("click touchstart",SECTION_NAV_SEL+" a",sectionBulletHandler).on("click touchstart",SLIDES_NAV_LINK_SEL,slideBulletHandler).on("click",SECTION_NAV_TOOLTIP_SEL,tooltipTextHandler),$(SECTION_SEL).on("click touchstart",SLIDES_ARROW_SEL,slideArrowHandler),options.normalScrollElements&&($document.on("mouseenter",options.normalScrollElements,function(){setMouseWheelScrolling(!1)}),$document.on("mouseleave",options.normalScrollElements,function(){setMouseWheelScrolling(!0)}))}function setOptionsFromDOM(){var sections=container.find(options.sectionSelector);options.anchors.length||(options.anchors=sections.filter("[data-anchor]").map(function(){return $(this).data("anchor").toString()}).get()),options.navigationTooltips.length||(options.navigationTooltips=sections.filter("[data-tooltip]").map(function(){return $(this).data("tooltip").toString()}).get())}function prepareDom(){container.css({height:"100%",position:"relative"}),container.addClass(WRAPPER),$("html").addClass(ENABLED),windowsHeight=$window.height(),container.removeClass(DESTROYED),addInternalSelectors(),$(SECTION_SEL).each(function(index){var section=$(this),slides=section.find(SLIDE_SEL),numSlides=slides.length;styleSection(section,index),styleMenu(section,index),numSlides>0?styleSlides(section,slides,numSlides):options.verticalCentered&&addTableClass(section)}),options.fixedElements&&options.css3&&$(options.fixedElements).appendTo($body),options.navigation&&addVerticalNavigation(),enableYoutubeAPI(),options.scrollOverflow?(document.readyState==="complete"&&createScrollBarHandler(),$window.on("load",createScrollBarHandler)):afterRenderActions()}function styleSlides(section,slides,numSlides){var sliderWidth=numSlides*100,slideWidth=100/numSlides;slides.wrapAll('
'),slides.parent().wrap('
'),section.find(SLIDES_CONTAINER_SEL).css("width",sliderWidth+"%"),numSlides>1&&(options.controlArrows&&createSlideArrows(section),options.slidesNavigation&&addSlidesNavigation(section,numSlides)),slides.each(function(index){$(this).css("width",slideWidth+"%"),options.verticalCentered&&addTableClass($(this))});var startingSlide=section.find(SLIDE_ACTIVE_SEL);startingSlide.length&&($(SECTION_ACTIVE_SEL).index(SECTION_SEL)!==0||$(SECTION_ACTIVE_SEL).index(SECTION_SEL)===0&&startingSlide.index()!==0)?silentLandscapeScroll(startingSlide,"internal"):slides.eq(0).addClass(ACTIVE)}function styleSection(section,index){!index&&$(SECTION_ACTIVE_SEL).length===0&§ion.addClass(ACTIVE),startingSection=$(SECTION_ACTIVE_SEL),section.css("height",windowsHeight+"px"),options.paddingTop&§ion.css("padding-top",options.paddingTop),options.paddingBottom&§ion.css("padding-bottom",options.paddingBottom),typeof options.sectionsColor[index]!="undefined"&§ion.css("background-color",options.sectionsColor[index]),typeof options.anchors[index]!="undefined"&§ion.attr("data-anchor",options.anchors[index])}function styleMenu(section,index){typeof options.anchors[index]!="undefined"&§ion.hasClass(ACTIVE)&&activateMenuAndNav(options.anchors[index],index),options.menu&&options.css3&&$(options.menu).closest(WRAPPER_SEL).length&&$(options.menu).appendTo($body)}function addInternalSelectors(){container.find(options.sectionSelector).addClass(SECTION),container.find(options.slideSelector).addClass(SLIDE)}function createSlideArrows(section){section.find(SLIDES_WRAPPER_SEL).after('
'),options.controlArrowColor!="#fff"&&(section.find(SLIDES_ARROW_NEXT_SEL).css("border-color","transparent transparent transparent "+options.controlArrowColor),section.find(SLIDES_ARROW_PREV_SEL).css("border-color","transparent "+options.controlArrowColor+" transparent transparent")),options.loopHorizontal||section.find(SLIDES_ARROW_PREV_SEL).hide()}function addVerticalNavigation(){$body.append('
    ');var nav=$(SECTION_NAV_SEL);nav.addClass(function(){return options.showActiveTooltip?SHOW_ACTIVE_TOOLTIP+" "+options.navigationPosition:options.navigationPosition});for(var i=0;i<$(SECTION_SEL).length;i++){var link="";options.anchors.length&&(link=options.anchors[i]);var li='
  • ',tooltip=options.navigationTooltips[i];typeof tooltip!="undefined"&&tooltip!==""&&(li+='
    '+tooltip+"
    "),li+="
  • ",nav.find("ul").append(li)}$(SECTION_NAV_SEL).css("margin-top","-"+$(SECTION_NAV_SEL).height()/2+"px"),$(SECTION_NAV_SEL).find("li").eq($(SECTION_ACTIVE_SEL).index(SECTION_SEL)).find("a").addClass(ACTIVE)}function createScrollBarHandler(){$(SECTION_SEL).each(function(){var slides=$(this).find(SLIDE_SEL);slides.length?slides.each(function(){createScrollBar($(this))}):createScrollBar($(this))}),afterRenderActions()}function enableYoutubeAPI(){container.find('iframe[src*="youtube.com/embed/"]').each(function(){addURLParam($(this),"enablejsapi=1")})}function addURLParam(element,newParam){var originalSrc=element.attr("src");element.attr("src",originalSrc+getUrlParamSign(originalSrc)+newParam)}function getUrlParamSign(url){return/\?/.test(url)?"&":"?"}function afterRenderActions(){var section=$(SECTION_ACTIVE_SEL);section.addClass(COMPLETELY),options.scrollOverflowHandler.afterRender&&options.scrollOverflowHandler.afterRender(section),lazyLoad(section),playMedia(section),options.scrollOverflowHandler.afterLoad(),isDestinyTheStartingSection()&&$.isFunction(options.afterLoad)&&options.afterLoad.call(section,section.data("anchor"),section.index(SECTION_SEL)+1),$.isFunction(options.afterRender)&&options.afterRender.call(container,getTableHeight())}function isDestinyTheStartingSection(){var anchors=window.location.hash.replace("#","").split("/"),destinationSection=getSectionByAnchor(decodeURIComponent(anchors[0]));return!destinationSection.length||destinationSection.length&&destinationSection.index()===startingSection.index()}function scrollHandler(){var currentSection;if(!options.autoScrolling||options.scrollBar){var currentScroll=$window.scrollTop(),scrollDirection=getScrollDirection(currentScroll),visibleSectionIndex=0,screen_mid=currentScroll+$window.height()/2,isAtBottom=$body.height()-$window.height()===currentScroll,sections=document.querySelectorAll(SECTION_SEL);if(isAtBottom)visibleSectionIndex=sections.length-1;else if(!currentScroll)visibleSectionIndex=0;else for(var i=0;i=$window.scrollTop()+$window.height():top<=$window.scrollTop()}function getScrollDirection(currentScroll){var direction=currentScroll>lastScroll?"down":"up";return lastScroll=currentScroll,previousDestTop=currentScroll,direction}function scrolling(type,scrollable){if(!isScrollAllowed.m[type])return;var check=type==="down"?"bottom":"top",scrollSection=type==="down"?moveSectionDown:moveSectionUp;if(scrollable.length>0){if(!options.scrollOverflowHandler.isScrolled(check,scrollable))return!0;scrollSection()}else scrollSection()}function preventBouncing(event){var e=event.originalEvent;!checkParentForNormalScrollElement(event.target)&&options.autoScrolling&&isReallyTouch(e)&&isScrollAllowed.m.up&&event.preventDefault()}function touchMoveHandler(event){var e=event.originalEvent,activeSection=$(e.target).closest(SECTION_SEL);if(!checkParentForNormalScrollElement(event.target)&&isReallyTouch(e)){options.autoScrolling&&event.preventDefault();var scrollable=options.scrollOverflowHandler.scrollable(activeSection),touchEvents=getEventsPage(e);touchEndY=touchEvents.y,touchEndX=touchEvents.x,activeSection.find(SLIDES_WRAPPER_SEL).length&&Math.abs(touchStartX-touchEndX)>Math.abs(touchStartY-touchEndY)?!slideMoving&&Math.abs(touchStartX-touchEndX)>$window.outerWidth()/100*options.touchSensitivity&&(touchStartX>touchEndX?isScrollAllowed.m.right&&moveSlideRight(activeSection):isScrollAllowed.m.left&&moveSlideLeft(activeSection)):options.autoScrolling&&canScroll&&Math.abs(touchStartY-touchEndY)>$window.height()/100*options.touchSensitivity&&(touchStartY>touchEndY?scrolling("down",scrollable):touchEndY>touchStartY&&scrolling("up",scrollable))}}function checkParentForNormalScrollElement(el,hop){hop=hop||0;var parent=$(el).parent();return hop149&&scrollings.shift(),scrollings.push(Math.abs(value)),options.scrollBar&&(e.preventDefault?e.preventDefault():e.returnValue=!1);var activeSection=$(SECTION_ACTIVE_SEL),scrollable=options.scrollOverflowHandler.scrollable(activeSection),timeDiff=curTime-prevTime;prevTime=curTime,timeDiff>200&&(scrollings=[]);if(canScroll){var averageEnd=getAverage(scrollings,10),averageMiddle=getAverage(scrollings,70),isAccelerating=averageEnd>=averageMiddle;isAccelerating&&isScrollingVertically&&(delta<0?scrolling("down",scrollable):scrolling("up",scrollable))}return!1}options.fitToSection&&$htmlBody.stop()}function moveSlide(direction,section){var activeSection=typeof section=="undefined"?$(SECTION_ACTIVE_SEL):section,slides=activeSection.find(SLIDES_WRAPPER_SEL),numSlides=slides.find(SLIDE_SEL).length;if(!slides.length||slideMoving||numSlides<2)return;var currentSlide=slides.find(SLIDE_ACTIVE_SEL),destiny=null;direction==="left"?destiny=currentSlide.prev(SLIDE_SEL):destiny=currentSlide.next(SLIDE_SEL);if(!destiny.length){if(!options.loopHorizontal)return;direction==="left"?destiny=currentSlide.siblings(":last"):destiny=currentSlide.siblings(":first")}slideMoving=!0,landscapeScroll(slides,destiny,direction)}function keepSlidesPosition(){$(SLIDE_ACTIVE_SEL).each(function(){silentLandscapeScroll($(this),"internal")})}function getDestinationPosition(element){var elemPosition=element.position(),position=elemPosition.top,isScrollingDown=elemPosition.top>previousDestTop,sectionBottom=position-windowsHeight+element.outerHeight(),bigSectionsDestination=options.bigSectionsDestination,containerH=container.outerHeight(),containerPosition=container.offset();!$masthead.hasClass("menu-transparent")&&$("body").hasClass("uncode-fp-menu-shrink")&&!element.is(":first-child")&&(position+=18);if(containerH+menuHeight+bodyBorder+adminBarHeight-windowsHeight-1&&e.preventDefault(),controlPressed=e.ctrlKey,keydownId=setTimeout(function(){onkeydown(e)},150)}}function tooltipTextHandler(){$(this).prev().trigger("click")}function keyUpHandler(e){isWindowFocused&&(controlPressed=e.ctrlKey)}function mouseDownHandler(e){e.which==2&&(oldPageY=e.pageY,container.on("mousemove",mouseMoveHandler))}function mouseUpHandler(e){e.which==2&&container.off("mousemove")}function slideArrowHandler(){var section=$(this).closest(SECTION_SEL);$(this).hasClass(SLIDES_PREV)?isScrollAllowed.m.left&&moveSlideLeft(section):isScrollAllowed.m.right&&moveSlideRight(section)}function blurHandler(){isWindowFocused=!1,controlPressed=!1}function sectionBulletHandler(e){e.preventDefault();var index=$(this).parent().index();scrollPage($(SECTION_SEL).eq(index))}function slideBulletHandler(e){e.preventDefault();var slides=$(this).closest(SECTION_SEL).find(SLIDES_WRAPPER_SEL),destiny=slides.find(SLIDE_SEL).eq($(this).closest("li").index());landscapeScroll(slides,destiny)}function onkeydown(e){var shiftPressed=e.shiftKey;if(!canScroll&&[37,39].indexOf(e.which)<0)return;switch(e.which){case 38:case 33:isScrollAllowed.k.up&&moveSectionUp();break;case 32:if(shiftPressed&&isScrollAllowed.k.up){moveSectionUp();break};case 40:case 34:isScrollAllowed.k.down&&moveSectionDown();break;case 36:isScrollAllowed.k.up&&moveTo(1);break;case 35:isScrollAllowed.k.down&&moveTo($(SECTION_SEL).length);break;case 37:isScrollAllowed.k.left&&moveSlideLeft();break;case 39:isScrollAllowed.k.right&&moveSlideRight();break;default:return}}function mouseMoveHandler(e){canScroll&&(e.pageYoldPageY&&isScrollAllowed.m.down&&moveSectionDown()),oldPageY=e.pageY}function landscapeScroll(slides,destiny,direction){var section=slides.closest(SECTION_SEL),v={slides:slides,destiny:destiny,direction:direction,destinyPos:destiny.position(),slideIndex:destiny.index(),section:section,sectionIndex:section.index(SECTION_SEL),anchorLink:section.data("anchor"),slidesNav:section.find(SLIDES_NAV_SEL),slideAnchor:getAnchor(destiny),prevSlide:section.find(SLIDE_ACTIVE_SEL),prevSlideIndex:section.find(SLIDE_ACTIVE_SEL).index(),localIsResizing:isResizing};v.xMovement=getXmovement(v.prevSlideIndex,v.slideIndex),v.direction=v.direction?v.direction:v.xMovement,v.localIsResizing||(canScroll=!1);if(options.onSlideLeave&&!v.localIsResizing&&v.xMovement!=="none"&&$.isFunction(options.onSlideLeave)&&options.onSlideLeave.call(v.prevSlide,v.anchorLink,v.sectionIndex+1,v.prevSlideIndex,v.xMovement,v.slideIndex)===!1){slideMoving=!1;return}destiny.addClass(ACTIVE).siblings().removeClass(ACTIVE),v.localIsResizing||(stopMedia(v.prevSlide),lazyLoad(destiny)),!options.loopHorizontal&&options.controlArrows&&(section.find(SLIDES_ARROW_PREV_SEL).toggle(v.slideIndex!==0),section.find(SLIDES_ARROW_NEXT_SEL).toggle(!destiny.is(":last-child"))),section.hasClass(ACTIVE)&&!v.localIsResizing&&setState(v.slideIndex,v.slideAnchor,v.anchorLink,v.sectionIndex),performHorizontalMove(slides,v,!0)}function afterSlideLoads(v){activeSlidesNavigation(v.slidesNav,v.slideIndex),v.localIsResizing||($.isFunction(options.afterSlideLoad)&&options.afterSlideLoad.call(v.destiny,v.anchorLink,v.sectionIndex+1,v.slideAnchor,v.slideIndex),canScroll=!0,playMedia(v.destiny)),slideMoving=!1}function performHorizontalMove(slides,v,fireCallback){var destinyPos=v.destinyPos;if(options.css3){var translate3d="translate3d(-"+Math.round(destinyPos.left)+"px, 0px, 0px)";addAnimation(slides.find(SLIDES_CONTAINER_SEL)).css(getTransforms(translate3d),v),afterSlideLoadsId=setTimeout(function(){fireCallback&&afterSlideLoads(v)},options.scrollingSpeed,options.easing)}else slides.animate({scrollLeft:Math.round(destinyPos.left)},options.scrollingSpeed,options.easing,function(){fireCallback&&afterSlideLoads(v)})}function activeSlidesNavigation(slidesNav,slideIndex){slidesNav.find(ACTIVE_SEL).removeClass(ACTIVE),slidesNav.find("li").eq(slideIndex).find("a").addClass(ACTIVE)}function resizeHandler(){responsive();if(isTouchDevice){var activeElement=$(document.activeElement);if(!activeElement.is("textarea")&&!activeElement.is("input")&&!activeElement.is("select")){var currentHeight=$window.height();Math.abs(currentHeight-previousHeight)>20*Math.max(previousHeight,currentHeight)/100&&(reBuild(!0),previousHeight=currentHeight)}}else clearTimeout(resizeId),resizeId=setTimeout(function(){reBuild(!0)},350)}function responsive(){var widthLimit=options.responsive||options.responsiveWidth,heightLimit=options.responsiveHeight,isBreakingPointWidth=widthLimit&&$window.outerWidth()toIndex?"up":"down"}function getXmovement(fromIndex,toIndex){return fromIndex==toIndex?"none":fromIndex>toIndex?"left":"right"}function createScrollBar(element){if(element.hasClass("fp-noscroll"))return;element.css("overflow","hidden");var scrollOverflowHandler=options.scrollOverflowHandler,wrap=scrollOverflowHandler.wrapContent(),section=element.closest(SECTION_SEL),scrollable=scrollOverflowHandler.scrollable(element),contentHeight;scrollable.length?contentHeight=scrollOverflowHandler.scrollHeight(element):(contentHeight=element.get(0).scrollHeight,options.verticalCentered&&(contentHeight=element.find(TABLE_CELL_SEL).get(0).scrollHeight));var scrollHeight=windowsHeight-parseInt(section.css("padding-bottom"))-parseInt(section.css("padding-top"));contentHeight>scrollHeight?scrollable.length?scrollOverflowHandler.update(element,scrollHeight):(options.verticalCentered?element.find(TABLE_CELL_SEL).wrapInner(wrap):element.wrapInner(wrap),scrollOverflowHandler.create(element,scrollHeight)):scrollOverflowHandler.remove(element),element.css("overflow","")}function addTableClass(element){element.hasClass(TABLE)||element.addClass(TABLE).wrapInner('
    ')}function getTableHeight(element){var sectionHeight=windowsHeight;if(options.paddingTop||options.paddingBottom){var section=element;section.hasClass(SECTION)||(section=element.closest(SECTION_SEL));var paddings=parseInt(section.css("padding-top"))+parseInt(section.css("padding-bottom"));sectionHeight=windowsHeight-paddings}return sectionHeight}function transformContainer(translate3d,animated){animated?addAnimation(container):removeAnimation(container),container.css(getTransforms(translate3d)),setTimeout(function(){container.removeClass(NO_TRANSITION)},10)}function getSectionByAnchor(sectionAnchor){if(!sectionAnchor)return[];var section=container.find(SECTION_SEL+'[data-anchor="'+sectionAnchor+'"]');return section.length||(section=$(SECTION_SEL).eq(sectionAnchor-1)),section}function getSlideByAnchor(slideAnchor,section){var slides=section.find(SLIDES_WRAPPER_SEL),slide=slides.find(SLIDE_SEL+'[data-anchor="'+slideAnchor+'"]');return slide.length||(slide=slides.find(SLIDE_SEL).eq(slideAnchor)),slide}function scrollPageAndSlide(destiny,slide){var section=getSectionByAnchor(destiny);if(!section.length)return;typeof slide=="undefined"&&(slide=0),destiny!==lastScrolledDestiny&&!section.hasClass(ACTIVE)?scrollPage(section,function(){scrollSlider(section,slide)}):scrollSlider(section,slide)}function scrollSlider(section,slideAnchor){if(typeof slideAnchor!="undefined"){var slides=section.find(SLIDES_WRAPPER_SEL),destiny=getSlideByAnchor(slideAnchor,section);destiny.length&&landscapeScroll(slides,destiny)}}function addSlidesNavigation(section,numSlides){section.append('
      ');var nav=section.find(SLIDES_NAV_SEL);nav.addClass(options.slidesNavPosition);for(var i=0;i');nav.css("margin-left","-"+nav.width()/2+"px"),nav.find("li").first().find("a").addClass(ACTIVE)}function setState(slideIndex,slideAnchor,anchorLink,sectionIndex){var sectionHash="";options.anchors.length&&!options.lockAnchors&&(slideIndex?(typeof anchorLink!="undefined"&&(sectionHash=anchorLink),typeof slideAnchor=="undefined"&&(slideAnchor=slideIndex),lastScrolledSlide=slideAnchor,setUrlHash(sectionHash+"/"+slideAnchor)):typeof slideIndex!="undefined"?(lastScrolledSlide=slideAnchor,setUrlHash(anchorLink)):setUrlHash(anchorLink)),setBodyClass()}function setUrlHash(url){if(typeof SiteParameters.slide_footer!="undefined"&&url==SiteParameters.slide_footer)return!1;if(!options.recordHistory)return!1;location.hash=url}function getAnchor(element){var anchor=element.data("anchor"),index=element.index();return typeof anchor=="undefined"&&(anchor=index),anchor}function setBodyClass(){var section=$(SECTION_ACTIVE_SEL),slide=section.find(SLIDE_ACTIVE_SEL),sectionAnchor=getAnchor(section),slideAnchor=getAnchor(slide),text=String(sectionAnchor);slide.length&&(text=text+"-"+slideAnchor),text=text.replace("/","-").replace("#","");var classRe=new RegExp("\\b\\s?"+VIEWING_PREFIX+"-[^\\s]+\\b","g");$body[0].className=$body[0].className.replace(classRe,""),$body.addClass(VIEWING_PREFIX+"-"+text)}function support3d(){var el=document.createElement("p"),has3d,transforms={webkitTransform:"-webkit-transform",OTransform:"-o-transform",msTransform:"-ms-transform",MozTransform:"-moz-transform",transform:"transform"};document.body.insertBefore(el,null);for(var t in transforms)el.style[t]!==undefined&&(el.style[t]="translate3d(1px,1px,1px)",has3d=window.getComputedStyle(el).getPropertyValue(transforms[t]));return document.body.removeChild(el),has3d!==undefined&&has3d.length>0&&has3d!=="none"}function removeMouseWheelHandler(){document.addEventListener?(document.removeEventListener("mousewheel",MouseWheelHandler,!1),document.removeEventListener("wheel",MouseWheelHandler,!1),document.removeEventListener("MozMousePixelScroll",MouseWheelHandler,!1)):document.detachEvent("onmousewheel",MouseWheelHandler)}function addMouseWheelHandler(){var prefix="",_addEventListener;window.addEventListener?_addEventListener="addEventListener":(_addEventListener="attachEvent",prefix="on");var support="onwheel"in document.createElement("div")?"wheel":document.onmousewheel!==undefined?"mousewheel":"DOMMouseScroll",passiveEvent=g_supportsPassive?{passive:!1}:!1;support=="DOMMouseScroll"?document[_addEventListener](prefix+"MozMousePixelScroll",MouseWheelHandler,passiveEvent):document[_addEventListener](prefix+support,MouseWheelHandler,passiveEvent)}function addMiddleWheelHandler(){container.on("mousedown",mouseDownHandler).on("mouseup",mouseUpHandler)}function removeMiddleWheelHandler(){container.off("mousedown",mouseDownHandler).off("mouseup",mouseUpHandler)}function addTouchHandler(){if(isTouchDevice||isTouch)options.autoScrolling&&$body.off(events.touchmove).on(events.touchmove,preventBouncing),$(WRAPPER_SEL).off(events.touchstart).on(events.touchstart,touchStartHandler).off(events.touchmove).on(events.touchmove,touchMoveHandler)}function removeTouchHandler(){(isTouchDevice||isTouch)&&$(WRAPPER_SEL).off(events.touchstart).off(events.touchmove)}function getMSPointer(){var pointer;return window.PointerEvent?pointer={down:"pointerdown",move:"pointermove"}:pointer={down:"MSPointerDown",move:"MSPointerMove"},pointer}function getEventsPage(e){var events=[];return events.y=typeof e.pageY!="undefined"&&(e.pageY||e.pageX)?e.pageY:e.touches[0].pageY,events.x=typeof e.pageX!="undefined"&&(e.pageY||e.pageX)?e.pageX:e.touches[0].pageX,isTouch&&isReallyTouch(e)&&options.scrollBar&&(events.y=e.touches[0].pageY,events.x=e.touches[0].pageX),events}function silentLandscapeScroll(activeSlide,noCallbacks){setScrollingSpeed(0,"internal"),typeof noCallbacks!="undefined"&&(isResizing=!0),landscapeScroll(activeSlide.closest(SLIDES_WRAPPER_SEL),activeSlide),typeof noCallbacks!="undefined"&&(isResizing=!1),setScrollingSpeed(originals.scrollingSpeed,"internal")}function silentScroll(top){var roundedTop=Math.round(top);if(options.css3&&options.autoScrolling&&!options.scrollBar){var translate3d="translate3d(0px, -"+roundedTop+"px, 0px)";transformContainer(translate3d,!1)}else options.autoScrolling&&!options.scrollBar?container.css("top",-roundedTop):$htmlBody.scrollTop(roundedTop)}function getTransforms(translate3d){return{"-webkit-transform":translate3d,"-moz-transform":translate3d,"-ms-transform":translate3d,transform:translate3d}}function setIsScrollAllowed(value,direction,type){switch(direction){case"up":isScrollAllowed[type].up=value;break;case"down":isScrollAllowed[type].down=value;break;case"left":isScrollAllowed[type].left=value;break;case"right":isScrollAllowed[type].right=value;break;case"all":type=="m"?setAllowScrolling(value):setKeyboardScrolling(value)}}function destroy(all){setAutoScrolling(!1,"internal"),setAllowScrolling(!1),setKeyboardScrolling(!1),container.addClass(DESTROYED),clearTimeout(afterSlideLoadsId),clearTimeout(afterSectionLoadsId),clearTimeout(resizeId),clearTimeout(scrollId),clearTimeout(scrollId2),$window.off("scroll",scrollHandler).off("hashchange",hashChangeHandler).off("resize",resizeHandler),$document.off("click touchstart",SECTION_NAV_SEL+" a").off("mouseenter",SECTION_NAV_SEL+" li").off("mouseleave",SECTION_NAV_SEL+" li").off("click touchstart",SLIDES_NAV_LINK_SEL).off("mouseover",options.normalScrollElements).off("mouseout",options.normalScrollElements),$(SECTION_SEL).off("click touchstart",SLIDES_ARROW_SEL),clearTimeout(afterSlideLoadsId),clearTimeout(afterSectionLoadsId),all&&destroyStructure()}function destroyStructure(){silentScroll(0),container.find("img[data-src], source[data-src], audio[data-src], iframe[data-src]").each(function(){setSrc($(this),"src")}),container.find("img[data-srcset]").each(function(){setSrc($(this),"srcset")}),$(SECTION_NAV_SEL+", "+SLIDES_NAV_SEL+", "+SLIDES_ARROW_SEL).remove(),$(SECTION_SEL).css({height:"","background-color":"",padding:""}),$(SLIDE_SEL).css({width:""}),container.css({height:"",position:"","-ms-touch-action":"","touch-action":""}),$htmlBody.css({overflow:"",height:""}),$("html").removeClass(ENABLED),$body.removeClass(RESPONSIVE),$.each($body.get(0).className.split(/\s+/),function(index,className){className.indexOf(VIEWING_PREFIX)===0&&$body.removeClass(className)}),$(SECTION_SEL+", "+SLIDE_SEL).each(function(){options.scrollOverflowHandler.remove($(this)),$(this).removeClass(TABLE+" "+ACTIVE)}),removeAnimation(container),container.find(TABLE_CELL_SEL+", "+SLIDES_CONTAINER_SEL+", "+SLIDES_WRAPPER_SEL).each(function(){$(this).replaceWith(this.childNodes)}),container.css({"-webkit-transition":"none",transition:"none"}),$htmlBody.scrollTop(0);var usedSelectors=[SECTION,SLIDE,SLIDES_CONTAINER];$.each(usedSelectors,function(index,value){$("."+value).removeClass(value)})}function setVariableState(variable,value,type){options[variable]=value,type!=="internal"&&(originals[variable]=value)}function displayWarnings(){var extensions=["fadingEffect","continuousHorizontal","scrollHorizontally","interlockedSlides","resetSliders","responsiveSlides","offsetSections","dragAndMove","scrollOverflowReset","parallax"];$.each(extensions,function(index,extension){options[extension]&&showError("warn","fullpage.js extensions require jquery.fullpage.extensions.min.js file instead of the usual jquery.fullpage.js. Requested: "+extension)}),$.each(options.anchors,function(index,name){var nameAttr=$document.find("[name]").filter(function(){return $(this).attr("name")&&$(this).attr("name").toLowerCase()==name.toLowerCase()}),idAttr=$document.find("[id]").filter(function(){return $(this).attr("id")&&$(this).attr("id").toLowerCase()==name.toLowerCase()});if(idAttr.length||nameAttr.length)showError("error","data-anchor tags can not have the same value as any `id` element on the site (or `name` element for IE)."),idAttr.length&&showError("error",'"'+name+'" is is being used by another element `id` property'),nameAttr.length&&showError("error",'"'+name+'" is is being used by another element `name` property')})}function showError(type,text){console&&console[type]&&console[type]("fullPage: "+text)}if($("html").hasClass(ENABLED)){displayWarnings();return}var $htmlBody=$("html, body"),$body=$("body"),FP=$.fn.fullpage;options=$.extend({menu:!1,anchors:[],lockAnchors:!1,navigation:!1,navigationPosition:"right",navigationTooltips:[],showActiveTooltip:!1,slidesNavigation:!1,slidesNavPosition:"bottom",scrollBar:!1,hybrid:!1,css3:!0,scrollingSpeed:700,autoScrolling:!0,fitToSection:!0,fitToSectionDelay:1e3,easing:"easeInOutCubic",easingcss3:"ease",loopBottom:!1,loopTop:!1,loopHorizontal:!0,continuousVertical:!1,continuousHorizontal:!1,scrollHorizontally:!1,interlockedSlides:!1,dragAndMove:!1,offsetSections:!1,resetSliders:!1,fadingEffect:!1,normalScrollElements:null,scrollOverflow:!1,scrollOverflowReset:!1,scrollOverflowHandler:iscrollHandler,scrollOverflowOptions:null,touchSensitivity:5,normalScrollElementTouchThreshold:5,bigSectionsDestination:null,keyboardScrolling:!0,animateAnchor:!0,recordHistory:!0,controlArrows:!0,controlArrowColor:"#fff",verticalCentered:!0,sectionsColor:[],paddingTop:0,paddingBottom:0,fixedElements:null,responsive:0,responsiveWidth:0,responsiveHeight:0,responsiveSlides:!1,parallax:!1,parallaxOptions:{type:"reveal",percentage:62,property:"translate"},sectionSelector:SECTION_DEFAULT_SEL,slideSelector:SLIDE_DEFAULT_SEL,afterLoad:null,onLeave:null,afterRender:null,afterResize:null,afterReBuild:null,afterSlideLoad:null,onSlideLeave:null,afterResponsive:null,lazyLoading:!0},options);var slideMoving=!1,isTouchDevice=navigator.userAgent.match(/(iPhone|iPod|iPad|Android|playbook|silk|BlackBerry|BB10|Windows Phone|Tizen|Bada|webOS|IEMobile|Opera Mini)/),isTouch="ontouchstart"in window||navigator.msMaxTouchPoints>0||navigator.maxTouchPoints,container=$(this),windowsHeight=$window.height(),isResizing=!1,isWindowFocused=!0,lastScrolledDestiny,lastScrolledSlide,canScroll=!0,scrollings=[],controlPressed,startingSection,isScrollAllowed={};isScrollAllowed.m={up:!0,down:!0,left:!0,right:!0},isScrollAllowed.k=$.extend(!0,{},isScrollAllowed.m);var MSPointer=getMSPointer(),events={touchmove:"ontouchmove"in window?"touchmove":MSPointer.move,touchstart:"ontouchstart"in window?"touchstart":MSPointer.down},g_supportsPassive=!1;try{var opts=Object.defineProperty({},"passive",{get:function(){g_supportsPassive=!0}});window.addEventListener("testPassive",null,opts),window.removeEventListener("testPassive",null,opts)}catch(e){}var resizeId,afterSectionLoadsId,afterSlideLoadsId,scrollId,scrollId2,keydownId,originals=$.extend(!0,{},options),$masthead=$("#masthead"),hideMenu=!$("body").hasClass("vmenu")&&$("body").hasClass("uncode-fp-menu-hide")?!0:!1,menuHeight=$masthead.hasClass("menu-transparent")||hideMenu?0:UNCODE.menuHeight,bodyBorder=UNCODE.bodyBorder,adminBarHeight=UNCODE.adminBarHeight;displayWarnings(),iscrollOptions.click=isTouch,iscrollOptions=$.extend(iscrollOptions,options.scrollOverflowOptions),$.extend($.easing,{easeInOutCubic:function(x,t,b,c,d){return(t/=d/2)<1?c/2*t*t*t+b:c/2*((t-=2)*t*t+2)+b}}),$(this).length&&(FP.setAutoScrolling=setAutoScrolling,FP.setRecordHistory=setRecordHistory,FP.setScrollingSpeed=setScrollingSpeed,FP.setFitToSection=setFitToSection,FP.setLockAnchors=setLockAnchors,FP.setMouseWheelScrolling=setMouseWheelScrolling,FP.setAllowScrolling=setAllowScrolling,FP.setKeyboardScrolling=setKeyboardScrolling,FP.moveSectionUp=moveSectionUp,FP.moveSectionDown=moveSectionDown,FP.silentMoveTo=silentMoveTo,FP.moveTo=moveTo,FP.moveSlideRight=moveSlideRight,FP.moveSlideLeft=moveSlideLeft,FP.fitToSection=fitToSection,FP.reBuild=reBuild,FP.setResponsive=setResponsive,FP.destroy=destroy,init(),bindEvents());var isScrolling=!1,lastScroll=0,touchStartY=0,touchStartX=0,touchEndY=0,touchEndX=0,prevTime=(new Date).getTime(),previousDestTop=0,oldPageY=0,previousHeight=windowsHeight},typeof IScroll!="undefined"&&(IScroll.prototype.wheelOn=function(){this.wrapper.addEventListener("wheel",this),this.wrapper.addEventListener("mousewheel",this),this.wrapper.addEventListener("DOMMouseScroll",this)},IScroll.prototype.wheelOff=function(){this.wrapper.removeEventListener("wheel",this),this.wrapper.removeEventListener("mousewheel",this),this.wrapper.removeEventListener("DOMMouseScroll",this)});var iscrollHandler={refreshId:null,iScrollInstances:[],toggleWheel:function(value){var scrollable=$(SECTION_ACTIVE_SEL).find(SCROLLABLE_SEL);scrollable.each(function(){var iScrollInstance=$(this).data("iscrollInstance");typeof iScrollInstance!="undefined"&&iScrollInstance&&(value?iScrollInstance.wheelOn():iScrollInstance.wheelOff())})},onLeave:function(){iscrollHandler.toggleWheel(!1)},beforeLeave:function(){iscrollHandler.onLeave()},afterLoad:function(){iscrollHandler.toggleWheel(!0)},create:function(element,scrollHeight){var scrollable=element.find(SCROLLABLE_SEL);scrollable.height(scrollHeight),scrollable.each(function(){var $this=$(this),iScrollInstance=$this.data("iscrollInstance");iScrollInstance&&$.each(iscrollHandler.iScrollInstances,function(){$(this).destroy()}),iScrollInstance=new IScroll($this.get(0),iscrollOptions),iscrollHandler.iScrollInstances.push(iScrollInstance),iScrollInstance.wheelOff(),$this.data("iscrollInstance",iScrollInstance)})},isScrolled:function(type,scrollable){var scroller=scrollable.data("iscrollInstance");if(!scroller)return!0;var uncode_body_borders=parseFloat($(".body-borders").attr("data-border"))||0;if(type==="top")return scroller.y>=0&&!scrollable.scrollTop();if(type==="bottom")return 0-scroller.y+scrollable.scrollTop()+1+uncode_body_borders*2+scrollable.innerHeight()>=scrollable[0].scrollHeight},scrollable:function(activeSection){return activeSection.find(SLIDES_WRAPPER_SEL).length?activeSection.find(SLIDE_ACTIVE_SEL).find(SCROLLABLE_SEL):activeSection.find(SCROLLABLE_SEL)},scrollHeight:function(element){return element.find(SCROLLABLE_SEL).children().first().get(0).scrollHeight},remove:function(element){var scrollable=element.find(SCROLLABLE_SEL);if(scrollable.length){var iScrollInstance=scrollable.data("iscrollInstance");iScrollInstance.destroy(),scrollable.data("iscrollInstance",null)}element.find(SCROLLABLE_SEL).children().first().children().first().unwrap().unwrap()},update:function(element,scrollHeight){clearTimeout(iscrollHandler.refreshId),iscrollHandler.refreshId=setTimeout(function(){$.each(iscrollHandler.iScrollInstances,function(){$(this).get(0).refresh()})},150),element.find(SCROLLABLE_SEL).css("height",scrollHeight+"px").parent().css("height",scrollHeight+"px")},wrapContent:function(){return'
      '}}}),function(global,factory){typeof exports=="object"&&typeof module!="undefined"?factory(exports):typeof define=="function"&&define.amd?define(["exports"],factory):(global=global||self,factory(global.window=global.window||{}))}(this,function(exports){"use strict";function _defineProperties(target,props){for(var i=0;imin?(v2=v1,v1=value,t2=t1,t1=t):useDelta?v1+=value:v1=v2+(value-v2)/(t-t2)*(t1-t2)},reset=function reset(){v2=v1=useDelta?0:v1,t2=t1=0},getVelocity=function getVelocity(latestValue){var tOld=t2,vOld=v2,t=_getTime();return(latestValue||latestValue===0)&&latestValue!==v1&&update(latestValue),t1===t2||t-t2>dropToZeroTime?0:(v1+(useDelta?vOld:-vOld))/((useDelta?t:t1)-tOld)*1e3};return{update:update,reset:reset,getVelocity:getVelocity}},_getEvent=function _getEvent(e,preventDefault){return preventDefault&&!e._gsapAllow&&e.preventDefault(),e.changedTouches?e.changedTouches[0]:e},_getAbsoluteMax=function _getAbsoluteMax(a){var max=Math.max.apply(Math,a),min=Math.min.apply(Math,a);return Math.abs(max)>=Math.abs(min)?max:min},_setScrollTrigger=function _setScrollTrigger(){ScrollTrigger=gsap.core.globals().ScrollTrigger,ScrollTrigger&&ScrollTrigger.core&&_integrate()},_initCore=function _initCore(core){return gsap=core||_getGSAP(),!_coreInitted&&gsap&&typeof document!="undefined"&&document.body&&(_win=window,_doc=document,_docEl=_doc.documentElement,_body=_doc.body,_root=[_win,_doc,_docEl,_body],_clamp=gsap.utils.clamp,_context=gsap.core.context||function(){},_pointerType="onpointerenter"in _body?"pointer":"mouse",_isTouch=Observer.isTouch=_win.matchMedia&&_win.matchMedia("(hover: none), (pointer: coarse)").matches?1:"ontouchstart"in _win||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0?2:0,_eventTypes=Observer.eventTypes=("ontouchstart"in _docEl?"touchstart,touchmove,touchcancel,touchend":"onpointerdown"in _docEl?"pointerdown,pointermove,pointercancel,pointerup":"mousedown,mousemove,mouseup,mouseup").split(","),setTimeout(function(){return _startup=0},500),_setScrollTrigger(),_coreInitted=1),_coreInitted};_horizontal.op=_vertical,_scrollers.cache=0;var Observer=function(){function Observer(vars){this.init(vars)}var _proto=Observer.prototype;return _proto.init=function init(vars){_coreInitted||_initCore(gsap)||console.warn("Please gsap.registerPlugin(Observer)"),ScrollTrigger||_setScrollTrigger();var tolerance=vars.tolerance,dragMinimum=vars.dragMinimum,type=vars.type,target=vars.target,lineHeight=vars.lineHeight,debounce=vars.debounce,preventDefault=vars.preventDefault,onStop=vars.onStop,onStopDelay=vars.onStopDelay,ignore=vars.ignore,wheelSpeed=vars.wheelSpeed,event=vars.event,onDragStart=vars.onDragStart,onDragEnd=vars.onDragEnd,onDrag=vars.onDrag,onPress=vars.onPress,onRelease=vars.onRelease,onRight=vars.onRight,onLeft=vars.onLeft,onUp=vars.onUp,onDown=vars.onDown,onChangeX=vars.onChangeX,onChangeY=vars.onChangeY,onChange=vars.onChange,onToggleX=vars.onToggleX,onToggleY=vars.onToggleY,onHover=vars.onHover,onHoverEnd=vars.onHoverEnd,onMove=vars.onMove,ignoreCheck=vars.ignoreCheck,isNormalizer=vars.isNormalizer,onGestureStart=vars.onGestureStart,onGestureEnd=vars.onGestureEnd,onWheel=vars.onWheel,onEnable=vars.onEnable,onDisable=vars.onDisable,onClick=vars.onClick,scrollSpeed=vars.scrollSpeed,capture=vars.capture,allowClicks=vars.allowClicks,lockAxis=vars.lockAxis,onLockAxis=vars.onLockAxis;this.target=target=_getTarget(target)||_docEl,this.vars=vars,ignore&&(ignore=gsap.utils.toArray(ignore)),tolerance=tolerance||1e-9,dragMinimum=dragMinimum||0,wheelSpeed=wheelSpeed||1,scrollSpeed=scrollSpeed||1,type=type||"wheel,touch,pointer",debounce=debounce!==!1,lineHeight||(lineHeight=parseFloat(_win.getComputedStyle(_body).lineHeight)||22);var id,onStopDelayedCall,dragged,moved,wheeled,locked,axis,self=this,prevDeltaX=0,prevDeltaY=0,passive=vars.passive||!preventDefault,scrollFuncX=_getScrollFunc(target,_horizontal),scrollFuncY=_getScrollFunc(target,_vertical),scrollX=scrollFuncX(),scrollY=scrollFuncY(),limitToTouch=~type.indexOf("touch")&&!~type.indexOf("pointer")&&_eventTypes[0]==="pointerdown",isViewport=_isViewport(target),ownerDoc=target.ownerDocument||_doc,deltaX=[0,0,0],deltaY=[0,0,0],onClickTime=0,clickCapture=function clickCapture(){return onClickTime=_getTime()},_ignoreCheck=function _ignoreCheck(e,isPointerOrTouch){return(self.event=e)&&ignore&&~ignore.indexOf(e.target)||isPointerOrTouch&&limitToTouch&&e.pointerType!=="touch"||ignoreCheck&&ignoreCheck(e,isPointerOrTouch)},onStopFunc=function onStopFunc(){self._vx.reset(),self._vy.reset(),onStopDelayedCall.pause(),onStop&&onStop(self)},update=function update(){var dx=self.deltaX=_getAbsoluteMax(deltaX),dy=self.deltaY=_getAbsoluteMax(deltaY),changedX=Math.abs(dx)>=tolerance,changedY=Math.abs(dy)>=tolerance;onChange&&(changedX||changedY)&&onChange(self,dx,dy,deltaX,deltaY),changedX&&(onRight&&self.deltaX>0&&onRight(self),onLeft&&self.deltaX<0&&onLeft(self),onChangeX&&onChangeX(self),onToggleX&&self.deltaX<0!=prevDeltaX<0&&onToggleX(self),prevDeltaX=self.deltaX,deltaX[0]=deltaX[1]=deltaX[2]=0),changedY&&(onDown&&self.deltaY>0&&onDown(self),onUp&&self.deltaY<0&&onUp(self),onChangeY&&onChangeY(self),onToggleY&&self.deltaY<0!=prevDeltaY<0&&onToggleY(self),prevDeltaY=self.deltaY,deltaY[0]=deltaY[1]=deltaY[2]=0);if(moved||dragged)onMove&&onMove(self),dragged&&(onDrag(self),dragged=!1),moved=!1;locked&&!(locked=!1)&&onLockAxis&&onLockAxis(self),wheeled&&(onWheel(self),wheeled=!1),id=0},onDelta=function onDelta(x,y,index){deltaX[index]+=x,deltaY[index]+=y,self._vx.update(x),self._vy.update(y),debounce?id||(id=requestAnimationFrame(update)):update()},onTouchOrPointerDelta=function onTouchOrPointerDelta(x,y){lockAxis&&!axis&&(self.axis=axis=Math.abs(x)>Math.abs(y)?"x":"y",locked=!0),axis!=="y"&&(deltaX[2]+=x,self._vx.update(x,!0)),axis!=="x"&&(deltaY[2]+=y,self._vy.update(y,!0)),debounce?id||(id=requestAnimationFrame(update)):update()},_onDrag=function _onDrag(e){if(_ignoreCheck(e,1))return;e=_getEvent(e,preventDefault);var x=e.clientX,y=e.clientY,dx=x-self.x,dy=y-self.y,isDragging=self.isDragging;self.x=x,self.y=y;if(isDragging||Math.abs(self.startX-x)>=dragMinimum||Math.abs(self.startY-y)>=dragMinimum)onDrag&&(dragged=!0),isDragging||(self.isDragging=!0),onTouchOrPointerDelta(dx,dy),isDragging||onDragStart&&onDragStart(self)},_onPress=self.onPress=function(e){if(_ignoreCheck(e,1)||e&&e.button)return;self.axis=axis=null,onStopDelayedCall.pause(),self.isPressed=!0,e=_getEvent(e),prevDeltaX=prevDeltaY=0,self.startX=self.x=e.clientX,self.startY=self.y=e.clientY,self._vx.reset(),self._vy.reset(),_addListener(isNormalizer?target:ownerDoc,_eventTypes[1],_onDrag,passive,!0),self.deltaX=self.deltaY=0,onPress&&onPress(self)},_onRelease=self.onRelease=function(e){if(_ignoreCheck(e,1))return;_removeListener(isNormalizer?target:ownerDoc,_eventTypes[1],_onDrag,!0);var isTrackingDrag=!isNaN(self.y-self.startY),wasDragging=self.isDragging,isDragNotClick=wasDragging&&(Math.abs(self.x-self.startX)>3||Math.abs(self.y-self.startY)>3),eventData=_getEvent(e);!isDragNotClick&&isTrackingDrag&&(self._vx.reset(),self._vy.reset(),preventDefault&&allowClicks&&gsap.delayedCall(.08,function(){if(_getTime()-onClickTime>300&&!e.defaultPrevented)if(e.target.click)e.target.click();else if(ownerDoc.createEvent){var syntheticEvent=ownerDoc.createEvent("MouseEvents");syntheticEvent.initMouseEvent("click",!0,!0,_win,1,eventData.screenX,eventData.screenY,eventData.clientX,eventData.clientY,!1,!1,!1,!1,0,null),e.target.dispatchEvent(syntheticEvent)}})),self.isDragging=self.isGesturing=self.isPressed=!1,onStop&&wasDragging&&!isNormalizer&&onStopDelayedCall.restart(!0),onDragEnd&&wasDragging&&onDragEnd(self),onRelease&&onRelease(self,isDragNotClick)},_onGestureStart=function _onGestureStart(e){return e.touches&&e.touches.length>1&&(self.isGesturing=!0)&&onGestureStart(e,self.isDragging)},_onGestureEnd=function _onGestureEnd(){return(self.isGesturing=!1)||onGestureEnd(self)},onScroll=function onScroll(e){if(_ignoreCheck(e))return;var x=scrollFuncX(),y=scrollFuncY();onDelta((x-scrollX)*scrollSpeed,(y-scrollY)*scrollSpeed,1),scrollX=x,scrollY=y,onStop&&onStopDelayedCall.restart(!0)},_onWheel=function _onWheel(e){if(_ignoreCheck(e))return;e=_getEvent(e,preventDefault),onWheel&&(wheeled=!0);var multiplier=(e.deltaMode===1?lineHeight:e.deltaMode===2?_win.innerHeight:1)*wheelSpeed;onDelta(e.deltaX*multiplier,e.deltaY*multiplier,0),onStop&&!isNormalizer&&onStopDelayedCall.restart(!0)},_onMove=function _onMove(e){if(_ignoreCheck(e))return;var x=e.clientX,y=e.clientY,dx=x-self.x,dy=y-self.y;self.x=x,self.y=y,moved=!0,onStop&&onStopDelayedCall.restart(!0),(dx||dy)&&onTouchOrPointerDelta(dx,dy)},_onHover=function _onHover(e){self.event=e,onHover(self)},_onHoverEnd=function _onHoverEnd(e){self.event=e,onHoverEnd(self)},_onClick=function _onClick(e){return _ignoreCheck(e)||_getEvent(e,preventDefault)&&onClick(self)};onStopDelayedCall=self._dc=gsap.delayedCall(onStopDelay||.25,onStopFunc).pause(),self.deltaX=self.deltaY=0,self._vx=_getVelocityProp(0,50,!0),self._vy=_getVelocityProp(0,50,!0),self.scrollX=scrollFuncX,self.scrollY=scrollFuncY,self.isDragging=self.isGesturing=self.isPressed=!1,_context(this),self.enable=function(e){if(!self.isEnabled){_addListener(isViewport?ownerDoc:target,"scroll",_onScroll),type.indexOf("scroll")>=0&&_addListener(isViewport?ownerDoc:target,"scroll",onScroll,passive,capture),type.indexOf("wheel")>=0&&_addListener(target,"wheel",_onWheel,passive,capture);if(type.indexOf("touch")>=0&&_isTouch||type.indexOf("pointer")>=0)_addListener(target,_eventTypes[0],_onPress,passive,capture),_addListener(ownerDoc,_eventTypes[2],_onRelease),_addListener(ownerDoc,_eventTypes[3],_onRelease),allowClicks&&_addListener(target,"click",clickCapture,!0,!0),onClick&&_addListener(target,"click",_onClick),onGestureStart&&_addListener(ownerDoc,"gesturestart",_onGestureStart),onGestureEnd&&_addListener(ownerDoc,"gestureend",_onGestureEnd),onHover&&_addListener(target,_pointerType+"enter",_onHover),onHoverEnd&&_addListener(target,_pointerType+"leave",_onHoverEnd),onMove&&_addListener(target,_pointerType+"move",_onMove);self.isEnabled=!0,e&&e.type&&_onPress(e),onEnable&&onEnable(self)}return self},self.disable=function(){self.isEnabled&&(_observers.filter(function(o){return o!==self&&_isViewport(o.target)}).length||_removeListener(isViewport?ownerDoc:target,"scroll",_onScroll),self.isPressed&&(self._vx.reset(),self._vy.reset(),_removeListener(isNormalizer?target:ownerDoc,_eventTypes[1],_onDrag,!0)),_removeListener(isViewport?ownerDoc:target,"scroll",onScroll,capture),_removeListener(target,"wheel",_onWheel,capture),_removeListener(target,_eventTypes[0],_onPress,capture),_removeListener(ownerDoc,_eventTypes[2],_onRelease),_removeListener(ownerDoc,_eventTypes[3],_onRelease),_removeListener(target,"click",clickCapture,!0),_removeListener(target,"click",_onClick),_removeListener(ownerDoc,"gesturestart",_onGestureStart),_removeListener(ownerDoc,"gestureend",_onGestureEnd),_removeListener(target,_pointerType+"enter",_onHover),_removeListener(target,_pointerType+"leave",_onHoverEnd),_removeListener(target,_pointerType+"move",_onMove),self.isEnabled=self.isPressed=self.isDragging=!1,onDisable&&onDisable(self))},self.kill=self.revert=function(){self.disable();var i=_observers.indexOf(self);i>=0&&_observers.splice(i,1),_normalizer===self&&(_normalizer=0)},_observers.push(self),isNormalizer&&_isViewport(target)&&(_normalizer=self),self.enable(event)},_createClass(Observer,[{key:"velocityX",get:function get(){return this._vx.getVelocity()}},{key:"velocityY",get:function get(){return this._vy.getVelocity()}}]),Observer}();Observer.version="3.12.5",Observer.create=function(vars){return new Observer(vars)},Observer.register=_initCore,Observer.getAll=function(){return _observers.slice()},Observer.getById=function(id){return _observers.filter(function(o){return o.vars.id===id})[0]},_getGSAP()&&gsap.registerPlugin(Observer);var gsap$1,_coreInitted$1,_win$1,_doc$1,_docEl$1,_body$1,_root$1,_resizeDelay,_toArray,_clamp$1,_time2,_syncInterval,_refreshing,_pointerIsDown,_transformProp,_i,_prevWidth,_prevHeight,_autoRefresh,_sort,_suppressOverwrites,_ignoreResize,_normalizer$1,_ignoreMobileResize,_baseScreenHeight,_baseScreenWidth,_fixIOSBug,_context$1,_scrollRestoration,_div100vh,_100vh,_isReverted,_clampingMax,_limitCallbacks,_startup$1=1,_getTime$1=Date.now,_time1=_getTime$1(),_lastScrollTime=0,_enabled=0,_parseClamp=function _parseClamp(value,type,self){var clamp=_isString(value)&&(value.substr(0,6)==="clamp("||value.indexOf("max")>-1);return self["_"+type+"Clamp"]=clamp,clamp?value.substr(6,value.length-7):value},_keepClamp=function _keepClamp(value,clamp){return clamp&&(!_isString(value)||value.substr(0,6)!=="clamp(")?"clamp("+value+")":value},_rafBugFix=function _rafBugFix(){return _enabled&&requestAnimationFrame(_rafBugFix)},_pointerDownHandler=function _pointerDownHandler(){return _pointerIsDown=1},_pointerUpHandler=function _pointerUpHandler(){return _pointerIsDown=0},_passThrough=function _passThrough(v){return v},_round=function _round(value){return Math.round(value*1e5)/1e5||0},_windowExists=function _windowExists(){return typeof window!="undefined"},_getGSAP$1=function _getGSAP(){return gsap$1||_windowExists()&&(gsap$1=window.gsap)&&gsap$1.registerPlugin&&gsap$1},_isViewport$1=function _isViewport(e){return!!~_root$1.indexOf(e)},_getViewportDimension=function _getViewportDimension(dimensionProperty){return(dimensionProperty==="Height"?_100vh:_win$1["inner"+dimensionProperty])||_docEl$1["client"+dimensionProperty]||_body$1["client"+dimensionProperty]},_getBoundsFunc=function _getBoundsFunc(element){return _getProxyProp(element,"getBoundingClientRect")||(_isViewport$1(element)?function(){return _winOffsets.width=_win$1.innerWidth,_winOffsets.height=_100vh,_winOffsets}:function(){return _getBounds(element)})},_getSizeFunc=function _getSizeFunc(scroller,isViewport,_ref){var d=_ref.d,d2=_ref.d2,a=_ref.a;return(a=_getProxyProp(scroller,"getBoundingClientRect"))?function(){return a()[d]}:function(){return(isViewport?_getViewportDimension(d2):scroller["client"+d2])||0}},_getOffsetsFunc=function _getOffsetsFunc(element,isViewport){return!isViewport||~_proxies.indexOf(element)?_getBoundsFunc(element):function(){return _winOffsets}},_maxScroll=function _maxScroll(element,_ref2){var s=_ref2.s,d2=_ref2.d2,d=_ref2.d,a=_ref2.a;return Math.max(0,(s="scroll"+d2)&&(a=_getProxyProp(element,s))?a()-_getBoundsFunc(element)()[d]:_isViewport$1(element)?(_docEl$1[s]||_body$1[s])-_getViewportDimension(d2):element[s]-element["offset"+d2])},_iterateAutoRefresh=function _iterateAutoRefresh(func,events){for(var i=0;i<_autoRefresh.length;i+=3)(!events||~events.indexOf(_autoRefresh[i+1]))&&func(_autoRefresh[i],_autoRefresh[i+1],_autoRefresh[i+2])},_isString=function _isString(value){return typeof value=="string"},_isFunction=function _isFunction(value){return typeof value=="function"},_isNumber=function _isNumber(value){return typeof value=="number"},_isObject=function _isObject(value){return typeof value=="object"},_endAnimation=function _endAnimation(animation,reversed,pause){return animation&&animation.progress(reversed?0:1)&&pause&&animation.pause()},_callback=function _callback(self,func){if(self.enabled){var result=self._ctx?self._ctx.add(function(){return func(self)}):func(self);result&&result.totalTime&&(self.callbackAnimation=result)}},_abs=Math.abs,_left="left",_top="top",_right="right",_bottom="bottom",_width="width",_height="height",_Right="Right",_Left="Left",_Top="Top",_Bottom="Bottom",_padding="padding",_margin="margin",_Width="Width",_Height="Height",_px="px",_getComputedStyle=function _getComputedStyle(element){return _win$1.getComputedStyle(element)},_makePositionable=function _makePositionable(element){var position=_getComputedStyle(element).position;element.style.position=position==="absolute"||position==="fixed"?position:"relative"},_setDefaults=function _setDefaults(obj,defaults){for(var p in defaults)p in obj||(obj[p]=defaults[p]);return obj},_getBounds=function _getBounds(element,withoutTransforms){var tween=withoutTransforms&&_getComputedStyle(element)[_transformProp]!=="matrix(1, 0, 0, 1, 0, 0)"&&gsap$1.to(element,{x:0,y:0,xPercent:0,yPercent:0,rotation:0,rotationX:0,rotationY:0,scale:1,skewX:0,skewY:0}).progress(1),bounds=element.getBoundingClientRect();return tween&&tween.progress(0).kill(),bounds},_getSize=function _getSize(element,_ref3){var d2=_ref3.d2;return element["offset"+d2]||element["client"+d2]||0},_getLabelRatioArray=function _getLabelRatioArray(timeline){var a=[],labels=timeline.labels,duration=timeline.duration(),p;for(p in labels)a.push(labels[p]/duration);return a},_getClosestLabel=function _getClosestLabel(animation){return function(value){return gsap$1.utils.snap(_getLabelRatioArray(animation),value)}},_snapDirectional=function _snapDirectional(snapIncrementOrArray){var snap=gsap$1.utils.snap(snapIncrementOrArray),a=Array.isArray(snapIncrementOrArray)&&snapIncrementOrArray.slice(0).sort(function(a,b){return a-b});return a?function(value,direction,threshold){threshold===void 0&&(threshold=.001);var i;if(!direction)return snap(value);if(direction>0){value-=threshold;for(i=0;i=value)return a[i];return a[i-1]}i=a.length,value+=threshold;while(i--)if(a[i]<=value)return a[i];return a[0]}:function(value,direction,threshold){threshold===void 0&&(threshold=.001);var snapped=snap(value);return!direction||Math.abs(snapped-value)eqIndex&&(relative*=size/100),value=value.substr(0,eqIndex-1)),value=relative+(value in _keywords?_keywords[value]*size:~value.indexOf("%")?parseFloat(value)*size/100:parseFloat(value)||0)}return value},_createMarker=function _createMarker(type,name,container,direction,_ref4,offset,matchWidthEl,containerAnimation){var startColor=_ref4.startColor,endColor=_ref4.endColor,fontSize=_ref4.fontSize,indent=_ref4.indent,fontWeight=_ref4.fontWeight,e=_doc$1.createElement("div"),useFixedPosition=_isViewport$1(container)||_getProxyProp(container,"pinType")==="fixed",isScroller=type.indexOf("scroller")!==-1,parent=useFixedPosition?_body$1:container,isStart=type.indexOf("start")!==-1,color=isStart?startColor:endColor,css="border-color:"+color+";font-size:"+fontSize+";color:"+color+";font-weight:"+fontWeight+";pointer-events:none;white-space:nowrap;font-family:sans-serif,Arial;z-index:1000;padding:4px 8px;border-width:0;border-style:solid;";return css+="position:"+((isScroller||containerAnimation)&&useFixedPosition?"fixed;":"absolute;"),(isScroller||containerAnimation||!useFixedPosition)&&(css+=(direction===_vertical?_right:_bottom)+":"+(offset+parseFloat(indent))+"px;"),matchWidthEl&&(css+="box-sizing:border-box;text-align:left;width:"+matchWidthEl.offsetWidth+"px;"),e._isStart=isStart,e.setAttribute("class","gsap-marker-"+type+(name?" marker-"+name:"")),e.style.cssText=css,e.innerText=name||name===0?type+"-"+name:type,parent.children[0]?parent.insertBefore(e,parent.children[0]):parent.appendChild(e),e._offset=e["offset"+direction.op.d2],_positionMarker(e,0,direction,isStart),e},_positionMarker=function _positionMarker(marker,start,direction,flipped){var vars={display:"block"},side=direction[flipped?"os2":"p2"],oppositeSide=direction[flipped?"p2":"os2"];marker._isFlipped=flipped,vars[direction.a+"Percent"]=flipped?-100:0,vars[direction.a]=flipped?"1px":0,vars["border"+side+_Width]=1,vars["border"+oppositeSide+_Width]=0,vars[direction.p]=start+"px",gsap$1.set(marker,vars)},_triggers=[],_ids={},_rafID,_sync=function _sync(){return _getTime$1()-_lastScrollTime>34&&(_rafID||(_rafID=requestAnimationFrame(_updateAll)))},_onScroll$1=function _onScroll(){if(!_normalizer$1||!_normalizer$1.isPressed||_normalizer$1.startX>_body$1.clientWidth)_scrollers.cache++,_normalizer$1?_rafID||(_rafID=requestAnimationFrame(_updateAll)):_updateAll(),_lastScrollTime||_dispatch("scrollStart"),_lastScrollTime=_getTime$1()},_setBaseDimensions=function _setBaseDimensions(){_baseScreenWidth=_win$1.innerWidth,_baseScreenHeight=_win$1.innerHeight},_onResize=function _onResize(){_scrollers.cache++,!_refreshing&&!_ignoreResize&&!_doc$1.fullscreenElement&&!_doc$1.webkitFullscreenElement&&(!_ignoreMobileResize||_baseScreenWidth!==_win$1.innerWidth||Math.abs(_win$1.innerHeight-_baseScreenHeight)>_win$1.innerHeight*.25)&&_resizeDelay.restart(!0)},_listeners={},_emptyArray=[],_softRefresh=function _softRefresh(){return _removeListener$1(ScrollTrigger$1,"scrollEnd",_softRefresh)||_refreshAll(!0)},_dispatch=function _dispatch(type){return _listeners[type]&&_listeners[type].map(function(f){return f()})||_emptyArray},_savedStyles=[],_revertRecorded=function _revertRecorded(media){for(var i=0;i<_savedStyles.length;i+=5)if(!media||_savedStyles[i+4]&&_savedStyles[i+4].query===media)_savedStyles[i].style.cssText=_savedStyles[i+1],_savedStyles[i].getBBox&&_savedStyles[i].setAttribute("transform",_savedStyles[i+2]||""),_savedStyles[i+3].uncache=1},_revertAll=function _revertAll(kill,media){var trigger;for(_i=0;_i<_triggers.length;_i++)trigger=_triggers[_i],trigger&&(!media||trigger._ctx===media)&&(kill?trigger.kill(1):trigger.revert(!0,!0));_isReverted=!0,media&&_revertRecorded(media),media||_dispatch("revert")},_clearScrollMemory=function _clearScrollMemory(scrollRestoration,force){_scrollers.cache++,(force||!_refreshingAll)&&_scrollers.forEach(function(obj){return _isFunction(obj)&&obj.cacheID++&&(obj.rec=0)}),_isString(scrollRestoration)&&(_win$1.history.scrollRestoration=_scrollRestoration=scrollRestoration)},_refreshingAll,_refreshID=0,_queueRefreshID,_queueRefreshAll=function _queueRefreshAll(){if(_queueRefreshID!==_refreshID){var id=_queueRefreshID=_refreshID;requestAnimationFrame(function(){return id===_refreshID&&_refreshAll(!0)})}},_refresh100vh=function _refresh100vh(){_body$1.appendChild(_div100vh),_100vh=!_normalizer$1&&_div100vh.offsetHeight||_win$1.innerHeight,_body$1.removeChild(_div100vh)},_hideAllMarkers=function _hideAllMarkers(hide){return _toArray(".gsap-marker-start, .gsap-marker-end, .gsap-marker-scroller-start, .gsap-marker-scroller-end").forEach(function(el){return el.style.display=hide?"none":"block"})},_refreshAll=function _refreshAll(force,skipRevert){if(_lastScrollTime&&!force&&!_isReverted){_addListener$1(ScrollTrigger$1,"scrollEnd",_softRefresh);return}_refresh100vh(),_refreshingAll=ScrollTrigger$1.isRefreshing=!0,_scrollers.forEach(function(obj){return _isFunction(obj)&&++obj.cacheID&&(obj.rec=obj())});var refreshInits=_dispatch("refreshInit");_sort&&ScrollTrigger$1.sort(),skipRevert||_revertAll(),_scrollers.forEach(function(obj){_isFunction(obj)&&(obj.smooth&&(obj.target.style.scrollBehavior="auto"),obj(0))}),_triggers.slice(0).forEach(function(t){return t.refresh()}),_isReverted=!1,_triggers.forEach(function(t){if(t._subPinOffset&&t.pin){var prop=t.vars.horizontal?"offsetWidth":"offsetHeight",original=t.pin[prop];t.revert(!0,1),t.adjustPinSpacing(t.pin[prop]-original),t.refresh()}}),_clampingMax=1,_hideAllMarkers(!0),_triggers.forEach(function(t){var max=_maxScroll(t.scroller,t._dir),endClamp=t.vars.end==="max"||t._endClamp&&t.end>max,startClamp=t._startClamp&&t.start>=max;(endClamp||startClamp)&&t.setPositions(startClamp?max-1:t.start,endClamp?Math.max(startClamp?max:t.start+1,max):t.end,!0)}),_hideAllMarkers(!1),_clampingMax=0,refreshInits.forEach(function(result){return result&&result.render&&result.render(-1)}),_scrollers.forEach(function(obj){_isFunction(obj)&&(obj.smooth&&requestAnimationFrame(function(){return obj.target.style.scrollBehavior="smooth"}),obj.rec&&obj(obj.rec))}),_clearScrollMemory(_scrollRestoration,1),_resizeDelay.pause(),_refreshID++,_refreshingAll=2,_updateAll(2),_triggers.forEach(function(t){return _isFunction(t.vars.onRefresh)&&t.vars.onRefresh(t)}),_refreshingAll=ScrollTrigger$1.isRefreshing=!1,_dispatch("refresh")},_lastScroll=0,_direction=1,_primary,_updateAll=function _updateAll(force){if(force===2||!_refreshingAll&&!_isReverted){ScrollTrigger$1.isUpdating=!0,_primary&&_primary.update(0);var l=_triggers.length,time=_getTime$1(),recordVelocity=time-_time1>=50,scroll=l&&_triggers[0].scroll();_direction=_lastScroll>scroll?-1:1,_refreshingAll||(_lastScroll=scroll),recordVelocity&&(_lastScrollTime&&!_pointerIsDown&&time-_lastScrollTime>200&&(_lastScrollTime=0,_dispatch("scrollEnd")),_time2=_time1,_time1=time);if(_direction<0){_i=l;while(_i-->0)_triggers[_i]&&_triggers[_i].update(0,recordVelocity);_direction=1}else for(_i=0;_i20),scrollerSize-=scrollerSize-globalOffset}else containerAnimation&&(value=gsap$1.utils.mapRange(containerAnimation.scrollTrigger.start,containerAnimation.scrollTrigger.end,0,scrollerMax,value)),markerScroller&&_positionMarker(markerScroller,scrollerSize,direction,!0);clampZeroProp&&(self[clampZeroProp]=value||-0.001,value<0&&(value=0));if(marker){var position=value+scrollerSize,isStart=marker._isStart;p1="scroll"+direction.d2,_positionMarker(marker,position,direction,isStart&&position>20||!isStart&&(useFixedPosition?Math.max(_body$1[p1],_docEl$1[p1]):marker.parentNode[p1])<=position+1),useFixedPosition&&(scrollerBounds=_getBounds(markerScroller),useFixedPosition&&(marker.style[direction.op.p]=scrollerBounds[direction.op.p]-direction.op.m-marker._offset+_px))}return containerAnimation&&element&&(p1=_getBounds(element),containerAnimation.seek(scrollerMax),p2=_getBounds(element),containerAnimation._caScrollDist=p1[direction.p]-p2[direction.p],value=value/containerAnimation._caScrollDist*scrollerMax),containerAnimation&&containerAnimation.seek(time),containerAnimation?value:Math.round(value)},_prefixExp=/(webkit|moz|length|cssText|inset)/i,_reparent=function _reparent(element,parent,top,left){if(element.parentNode!==parent){var style=element.style,p,cs;if(parent===_body$1){element._stOrig=style.cssText,cs=_getComputedStyle(element);for(p in cs)!+p&&!_prefixExp.test(p)&&cs[p]&&typeof style[p]=="string"&&p!=="0"&&(style[p]=cs[p]);style.top=top,style.left=left}else style.cssText=element._stOrig;gsap$1.core.getCache(element).uncache=1,parent.appendChild(element)}},_interruptionTracker=function _interruptionTracker(getValueFunc,initialValue,onInterrupt){var last1=initialValue,last2=last1;return function(value){var current=Math.round(getValueFunc());return current!==last1&¤t!==last2&&Math.abs(current-last1)>3&&Math.abs(current-last2)>3&&(value=current,onInterrupt&&onInterrupt()),last2=last1,last1=value,value}},_shiftMarker=function _shiftMarker(marker,direction,value){var vars={};vars[direction.p]="+="+value,gsap$1.set(marker,vars)},_getTweenCreator=function _getTweenCreator(scroller,direction){var getScroll=_getScrollFunc(scroller,direction),prop="_scroll"+direction.p2,getTween=function getTween(scrollTo,vars,initialValue,change1,change2){var tween=getTween.tween,onComplete=vars.onComplete,modifiers={};initialValue=initialValue||getScroll();var checkForInterruption=_interruptionTracker(getScroll,initialValue,function(){tween.kill(),getTween.tween=0});return change2=change1&&change2||0,change1=change1||scrollTo-initialValue,tween&&tween.kill(),vars[prop]=scrollTo,vars.inherit=!1,vars.modifiers=modifiers,modifiers[prop]=function(){return checkForInterruption(initialValue+change1*tween.ratio+change2*tween.ratio*tween.ratio)},vars.onUpdate=function(){_scrollers.cache++,getTween.tween&&_updateAll()},vars.onComplete=function(){getTween.tween=0,onComplete&&onComplete.call(tween)},tween=getTween.tween=gsap$1.to(scroller,vars),tween};return scroller[prop]=getScroll,getScroll.wheelHandler=function(){return getTween.tween&&getTween.tween.kill()&&(getTween.tween=0)},_addListener$1(scroller,"wheel",getScroll.wheelHandler),ScrollTrigger$1.isTouch&&_addListener$1(scroller,"touchmove",getScroll.wheelHandler),getTween},ScrollTrigger$1=function(){function ScrollTrigger(vars,animation){_coreInitted$1||ScrollTrigger.register(gsap$1)||console.warn("Please gsap.registerPlugin(ScrollTrigger)"),_context$1(this),this.init(vars,animation)}var _proto=ScrollTrigger.prototype;return _proto.init=function init(vars,animation){this.progress=this.start=0,this.vars&&this.kill(!0,!0);if(!_enabled){this.update=this.refresh=this.kill=_passThrough;return}vars=_setDefaults(_isString(vars)||_isNumber(vars)||vars.nodeType?{trigger:vars}:vars,_defaults);var _vars=vars,onUpdate=_vars.onUpdate,toggleClass=_vars.toggleClass,id=_vars.id,onToggle=_vars.onToggle,onRefresh=_vars.onRefresh,scrub=_vars.scrub,trigger=_vars.trigger,pin=_vars.pin,pinSpacing=_vars.pinSpacing,invalidateOnRefresh=_vars.invalidateOnRefresh,anticipatePin=_vars.anticipatePin,onScrubComplete=_vars.onScrubComplete,onSnapComplete=_vars.onSnapComplete,once=_vars.once,snap=_vars.snap,pinReparent=_vars.pinReparent,pinSpacer=_vars.pinSpacer,containerAnimation=_vars.containerAnimation,fastScrollEnd=_vars.fastScrollEnd,preventOverlaps=_vars.preventOverlaps,direction=vars.horizontal||vars.containerAnimation&&vars.horizontal!==!1?_horizontal:_vertical,isToggle=!scrub&&scrub!==0,scroller=_getTarget(vars.scroller||_win$1),scrollerCache=gsap$1.core.getCache(scroller),isViewport=_isViewport$1(scroller),useFixedPosition=("pinType"in vars?vars.pinType:_getProxyProp(scroller,"pinType")||isViewport&&"fixed")==="fixed",callbacks=[vars.onEnter,vars.onLeave,vars.onEnterBack,vars.onLeaveBack],toggleActions=isToggle&&vars.toggleActions.split(" "),markers="markers"in vars?vars.markers:_defaults.markers,borderWidth=isViewport?0:parseFloat(_getComputedStyle(scroller)["border"+direction.p2+_Width])||0,self=this,onRefreshInit=vars.onRefreshInit&&function(){return vars.onRefreshInit(self)},getScrollerSize=_getSizeFunc(scroller,isViewport,direction),getScrollerOffsets=_getOffsetsFunc(scroller,isViewport),lastSnap=0,lastRefresh=0,prevProgress=0,scrollFunc=_getScrollFunc(scroller,direction),tweenTo,pinCache,snapFunc,scroll1,scroll2,start,end,markerStart,markerEnd,markerStartTrigger,markerEndTrigger,markerVars,executingOnRefresh,change,pinOriginalState,pinActiveState,pinState,spacer,offset,pinGetter,pinSetter,pinStart,pinChange,spacingStart,spacerState,markerStartSetter,pinMoves,markerEndSetter,cs,snap1,snap2,scrubTween,scrubSmooth,snapDurClamp,snapDelayedCall,prevScroll,prevAnimProgress,caMarkerSetter,customRevertReturn;self._startClamp=self._endClamp=!1,self._dir=direction,anticipatePin*=45,self.scroller=scroller,self.scroll=containerAnimation?containerAnimation.time.bind(containerAnimation):scrollFunc,scroll1=scrollFunc(),self.vars=vars,animation=animation||vars.animation,"refreshPriority"in vars&&(_sort=1,vars.refreshPriority===-9999&&(_primary=self)),scrollerCache.tweenScroll=scrollerCache.tweenScroll||{top:_getTweenCreator(scroller,_vertical),left:_getTweenCreator(scroller,_horizontal)},self.tweenTo=tweenTo=scrollerCache.tweenScroll[direction.p],self.scrubDuration=function(value){scrubSmooth=_isNumber(value)&&value,scrubSmooth?scrubTween?scrubTween.duration(value):scrubTween=gsap$1.to(animation,{ease:"expo",totalProgress:"+=0",inherit:!1,duration:scrubSmooth,paused:!0,onComplete:function onComplete(){return onScrubComplete&&onScrubComplete(self)}}):(scrubTween&&scrubTween.progress(1).kill(),scrubTween=0)},animation&&(animation.vars.lazy=!1,animation._initted&&!self.isReverted||animation.vars.immediateRender!==!1&&vars.immediateRender!==!1&&animation.duration()&&animation.render(0,!0,!0),self.animation=animation.pause(),animation.scrollTrigger=self,self.scrubDuration(scrub),snap1=0,id||(id=animation.vars.id));if(snap){if(!_isObject(snap)||snap.push)snap={snapTo:snap};"scrollBehavior"in _body$1.style&&gsap$1.set(isViewport?[_body$1,_docEl$1]:scroller,{scrollBehavior:"auto"}),_scrollers.forEach(function(o){return _isFunction(o)&&o.target===(isViewport?_doc$1.scrollingElement||_docEl$1:scroller)&&(o.smooth=!1)}),snapFunc=_isFunction(snap.snapTo)?snap.snapTo:snap.snapTo==="labels"?_getClosestLabel(animation):snap.snapTo==="labelsDirectional"?_getLabelAtDirection(animation):snap.directional!==!1?function(value,st){return _snapDirectional(snap.snapTo)(value,_getTime$1()-lastRefresh<500?0:st.direction)}:gsap$1.utils.snap(snap.snapTo),snapDurClamp=snap.duration||{min:.1,max:2},snapDurClamp=_isObject(snapDurClamp)?_clamp$1(snapDurClamp.min,snapDurClamp.max):_clamp$1(snapDurClamp,snapDurClamp),snapDelayedCall=gsap$1.delayedCall(snap.delay||scrubSmooth/2||.1,function(){var scroll=scrollFunc(),refreshedRecently=_getTime$1()-lastRefresh<500,tween=tweenTo.tween;if((refreshedRecently||Math.abs(self.getVelocity())<10)&&!tween&&!_pointerIsDown&&lastSnap!==scroll){var progress=(scroll-start)/change,totalProgress=animation&&!isToggle?animation.totalProgress():progress,velocity=refreshedRecently?0:(totalProgress-snap2)/(_getTime$1()-_time2)*1e3||0,change1=gsap$1.utils.clamp(-progress,1-progress,_abs(velocity/2)*velocity/.185),naturalEnd=progress+(snap.inertia===!1?0:change1),endValue,endScroll,_snap=snap,onStart=_snap.onStart,_onInterrupt=_snap.onInterrupt,_onComplete=_snap.onComplete;endValue=snapFunc(naturalEnd,self),_isNumber(endValue)||(endValue=naturalEnd),endScroll=Math.round(start+endValue*change);if(scroll<=end&&scroll>=start&&endScroll!==scroll){if(tween&&!tween._initted&&tween.data<=_abs(endScroll-scroll))return;snap.inertia===!1&&(change1=endValue-progress),tweenTo(endScroll,{duration:snapDurClamp(_abs(Math.max(_abs(naturalEnd-totalProgress),_abs(endValue-totalProgress))*.185/velocity/.05||0)),ease:snap.ease||"power3",data:_abs(endScroll-scroll),onInterrupt:function onInterrupt(){return snapDelayedCall.restart(!0)&&_onInterrupt&&_onInterrupt(self)},onComplete:function onComplete(){self.update(),lastSnap=scrollFunc(),animation&&(scrubTween?scrubTween.resetTo("totalProgress",endValue,animation._tTime/animation._tDur):animation.progress(endValue)),snap1=snap2=animation&&!isToggle?animation.totalProgress():self.progress,onSnapComplete&&onSnapComplete(self),_onComplete&&_onComplete(self)}},scroll,change1*change,endScroll-scroll-change1*change),onStart&&onStart(self,tweenTo.tween)}}else self.isActive&&lastSnap!==scroll&&snapDelayedCall.restart(!0)}).pause()}id&&(_ids[id]=self),trigger=self.trigger=_getTarget(trigger||pin!==!0&&pin),customRevertReturn=trigger&&trigger._gsap&&trigger._gsap.stRevert,customRevertReturn&&(customRevertReturn=customRevertReturn(self)),pin=pin===!0?trigger:_getTarget(pin),_isString(toggleClass)&&(toggleClass={targets:trigger,className:toggleClass}),pin&&(pinSpacing===!1||pinSpacing===_margin||(pinSpacing=!pinSpacing&&pin.parentNode&&pin.parentNode.style&&_getComputedStyle(pin.parentNode).display==="flex"?!1:_padding),self.pin=pin,pinCache=gsap$1.core.getCache(pin),pinCache.spacer?pinOriginalState=pinCache.pinState:(pinSpacer&&(pinSpacer=_getTarget(pinSpacer),pinSpacer&&!pinSpacer.nodeType&&(pinSpacer=pinSpacer.current||pinSpacer.nativeElement),pinCache.spacerIsNative=!!pinSpacer,pinSpacer&&(pinCache.spacerState=_getState(pinSpacer))),pinCache.spacer=spacer=pinSpacer||_doc$1.createElement("div"),spacer.classList.add("pin-spacer"),id&&spacer.classList.add("pin-spacer-"+id),pinCache.pinState=pinOriginalState=_getState(pin)),vars.force3D!==!1&&gsap$1.set(pin,{force3D:!0}),self.spacer=spacer=pinCache.spacer,cs=_getComputedStyle(pin),spacingStart=cs[pinSpacing+direction.os2],pinGetter=gsap$1.getProperty(pin),pinSetter=gsap$1.quickSetter(pin,direction.a,_px),_swapPinIn(pin,spacer,cs),pinState=_getState(pin));if(markers){markerVars=_isObject(markers)?_setDefaults(markers,_markerDefaults):_markerDefaults,markerStartTrigger=_createMarker("scroller-start",id,scroller,direction,markerVars,0),markerEndTrigger=_createMarker("scroller-end",id,scroller,direction,markerVars,0,markerStartTrigger),offset=markerStartTrigger["offset"+direction.op.d2];var content=_getTarget(_getProxyProp(scroller,"content")||scroller);markerStart=this.markerStart=_createMarker("start",id,content,direction,markerVars,offset,0,containerAnimation),markerEnd=this.markerEnd=_createMarker("end",id,content,direction,markerVars,offset,0,containerAnimation),containerAnimation&&(caMarkerSetter=gsap$1.quickSetter([markerStart,markerEnd],direction.a,_px)),!useFixedPosition&&(!_proxies.length||_getProxyProp(scroller,"fixedMarkers")!==!0)&&(_makePositionable(isViewport?_body$1:scroller),gsap$1.set([markerStartTrigger,markerEndTrigger],{force3D:!0}),markerStartSetter=gsap$1.quickSetter(markerStartTrigger,direction.a,_px),markerEndSetter=gsap$1.quickSetter(markerEndTrigger,direction.a,_px))}if(containerAnimation){var oldOnUpdate=containerAnimation.vars.onUpdate,oldParams=containerAnimation.vars.onUpdateParams;containerAnimation.eventCallback("onUpdate",function(){self.update(0,0,1),oldOnUpdate&&oldOnUpdate.apply(containerAnimation,oldParams||[])})}self.previous=function(){return _triggers[_triggers.indexOf(self)-1]},self.next=function(){return _triggers[_triggers.indexOf(self)+1]},self.revert=function(revert,temp){if(!temp)return self.kill(!0);var r=revert!==!1||!self.enabled,prevRefreshing=_refreshing;r!==self.isReverted&&(r&&(prevScroll=Math.max(scrollFunc(),self.scroll.rec||0),prevProgress=self.progress,prevAnimProgress=animation&&animation.progress()),markerStart&&[markerStart,markerEnd,markerStartTrigger,markerEndTrigger].forEach(function(m){return m.style.display=r?"none":"block"}),r&&(_refreshing=self,self.update(r)),pin&&(!pinReparent||!self.isActive)&&(r?_swapPinOut(pin,spacer,pinOriginalState):_swapPinIn(pin,spacer,_getComputedStyle(pin),spacerState)),r||self.update(r),_refreshing=prevRefreshing,self.isReverted=r)},self.refresh=function(soft,force,position,pinOffset){if((_refreshing||!self.enabled)&&!force)return;if(pin&&soft&&_lastScrollTime){_addListener$1(ScrollTrigger,"scrollEnd",_softRefresh);return}!_refreshingAll&&onRefreshInit&&onRefreshInit(self),_refreshing=self,tweenTo.tween&&!position&&(tweenTo.tween.kill(),tweenTo.tween=0),scrubTween&&scrubTween.pause(),invalidateOnRefresh&&animation&&animation.revert({kill:!1}).invalidate(),self.isReverted||self.revert(!0,!0),self._subPinOffset=!1;var size=getScrollerSize(),scrollerBounds=getScrollerOffsets(),max=containerAnimation?containerAnimation.duration():_maxScroll(scroller,direction),isFirstRefresh=change<=.01,offset=0,otherPinOffset=pinOffset||0,parsedEnd=_isObject(position)?position.end:vars.end,parsedEndTrigger=vars.endTrigger||trigger,parsedStart=_isObject(position)?position.start:vars.start||(vars.start===0||!trigger?0:pin?"0 0":"0 100%"),pinnedContainer=self.pinnedContainer=vars.pinnedContainer&&_getTarget(vars.pinnedContainer,self),triggerIndex=trigger&&Math.max(0,_triggers.indexOf(self))||0,i=triggerIndex,cs,bounds,scroll,isVertical,override,curTrigger,curPin,oppositeScroll,initted,revertedPins,forcedOverflow,markerStartOffset,markerEndOffset;markers&&_isObject(position)&&(markerStartOffset=gsap$1.getProperty(markerStartTrigger,direction.p),markerEndOffset=gsap$1.getProperty(markerEndTrigger,direction.p));while(i--)curTrigger=_triggers[i],curTrigger.end||curTrigger.refresh(0,1)||(_refreshing=self),curPin=curTrigger.pin,curPin&&(curPin===trigger||curPin===pin||curPin===pinnedContainer)&&!curTrigger.isReverted&&(revertedPins||(revertedPins=[]),revertedPins.unshift(curTrigger),curTrigger.revert(!0,!0)),curTrigger!==_triggers[i]&&(triggerIndex--,i--);_isFunction(parsedStart)&&(parsedStart=parsedStart(self)),parsedStart=_parseClamp(parsedStart,"start",self),start=_parsePosition(parsedStart,trigger,size,direction,scrollFunc(),markerStart,markerStartTrigger,self,scrollerBounds,borderWidth,useFixedPosition,max,containerAnimation,self._startClamp&&"_startClamp")||(pin?-0.001:0),_isFunction(parsedEnd)&&(parsedEnd=parsedEnd(self)),_isString(parsedEnd)&&!parsedEnd.indexOf("+=")&&(~parsedEnd.indexOf(" ")?parsedEnd=(_isString(parsedStart)?parsedStart.split(" ")[0]:"")+parsedEnd:(offset=_offsetToPx(parsedEnd.substr(2),size),parsedEnd=_isString(parsedStart)?parsedStart:(containerAnimation?gsap$1.utils.mapRange(0,containerAnimation.duration(),containerAnimation.scrollTrigger.start,containerAnimation.scrollTrigger.end,start):start)+offset,parsedEndTrigger=trigger)),parsedEnd=_parseClamp(parsedEnd,"end",self),end=Math.max(start,_parsePosition(parsedEnd||(parsedEndTrigger?"100% 0":max),parsedEndTrigger,size,direction,scrollFunc()+offset,markerEnd,markerEndTrigger,self,scrollerBounds,borderWidth,useFixedPosition,max,containerAnimation,self._endClamp&&"_endClamp"))||-0.001,offset=0,i=triggerIndex;while(i--)curTrigger=_triggers[i],curPin=curTrigger.pin,curPin&&curTrigger.start-curTrigger._pinPush<=start&&!containerAnimation&&curTrigger.end>0&&(cs=curTrigger.end-(self._startClamp?Math.max(0,curTrigger.start):curTrigger.start),(curPin===trigger&&curTrigger.start-curTrigger._pinPush=_maxScroll(scroller,direction)))cs=_getComputedStyle(pin),isVertical=direction===_vertical,scroll=scrollFunc(),pinStart=parseFloat(pinGetter(direction.a))+otherPinOffset,!max&&end>1&&(forcedOverflow=(isViewport?_doc$1.scrollingElement||_docEl$1:scroller).style,forcedOverflow={style:forcedOverflow,value:forcedOverflow["overflow"+direction.a.toUpperCase()]},isViewport&&_getComputedStyle(_body$1)["overflow"+direction.a.toUpperCase()]!=="scroll"&&(forcedOverflow.style["overflow"+direction.a.toUpperCase()]="scroll")),_swapPinIn(pin,spacer,cs),pinState=_getState(pin),bounds=_getBounds(pin,!0),oppositeScroll=useFixedPosition&&_getScrollFunc(scroller,isVertical?_horizontal:_vertical)(),pinSpacing?(spacerState=[pinSpacing+direction.os2,change+otherPinOffset+_px],spacerState.t=spacer,i=pinSpacing===_padding?_getSize(pin,direction)+change+otherPinOffset:0,i&&(spacerState.push(direction.d,i+_px),spacer.style.flexBasis!=="auto"&&(spacer.style.flexBasis=i+_px)),_setState(spacerState),pinnedContainer&&_triggers.forEach(function(t){t.pin===pinnedContainer&&t.vars.pinSpacing!==!1&&(t._subPinOffset=!0)}),useFixedPosition&&scrollFunc(prevScroll)):(i=_getSize(pin,direction),i&&spacer.style.flexBasis!=="auto"&&(spacer.style.flexBasis=i+_px)),useFixedPosition&&(override={top:bounds.top+(isVertical?scroll-start:oppositeScroll)+_px,left:bounds.left+(isVertical?oppositeScroll:scroll-start)+_px,boxSizing:"border-box",position:"fixed"},override[_width]=override["max"+_Width]=Math.ceil(bounds.width)+_px,override[_height]=override["max"+_Height]=Math.ceil(bounds.height)+_px,override[_margin]=override[_margin+_Top]=override[_margin+_Right]=override[_margin+_Bottom]=override[_margin+_Left]="0",override[_padding]=cs[_padding],override[_padding+_Top]=cs[_padding+_Top],override[_padding+_Right]=cs[_padding+_Right],override[_padding+_Bottom]=cs[_padding+_Bottom],override[_padding+_Left]=cs[_padding+_Left],pinActiveState=_copyState(pinOriginalState,override,pinReparent),_refreshingAll&&scrollFunc(0)),animation?(initted=animation._initted,_suppressOverwrites(1),animation.render(animation.duration(),!0,!0),pinChange=pinGetter(direction.a)-pinStart+change+otherPinOffset,pinMoves=Math.abs(change-pinChange)>1,useFixedPosition&&pinMoves&&pinActiveState.splice(pinActiveState.length-2,2),animation.render(0,!0,!0),initted||animation.invalidate(!0),animation.parent||animation.totalTime(animation.totalTime()),_suppressOverwrites(0)):pinChange=change,forcedOverflow&&(forcedOverflow.value?forcedOverflow.style["overflow"+direction.a.toUpperCase()]=forcedOverflow.value:forcedOverflow.style.removeProperty("overflow-"+direction.a));else if(trigger&&scrollFunc()&&!containerAnimation){bounds=trigger.parentNode;while(bounds&&bounds!==_body$1)bounds._pinOffset&&(start-=bounds._pinOffset,end-=bounds._pinOffset),bounds=bounds.parentNode}revertedPins&&revertedPins.forEach(function(t){return t.revert(!1,!0)}),self.start=start,self.end=end,scroll1=scroll2=_refreshingAll?prevScroll:scrollFunc(),!containerAnimation&&!_refreshingAll&&(scroll10?_triggers.slice(0,i).reverse():_triggers.slice(i+1);return(_isString(name)?a.filter(function(t){return t.vars.preventOverlaps===name}):a).filter(function(t){return self.direction>0?t.end<=start:t.start>=end})},self.update=function(reset,recordVelocity,forceFake){if(containerAnimation&&!forceFake&&!reset)return;var scroll=_refreshingAll===!0?prevScroll:self.scroll(),p=reset?0:(scroll-start)/change,clipped=p<0?0:p>1?1:p||0,prevProgress=self.progress,isActive,wasActive,toggleState,action,stateChanged,toggled,isAtMax,isTakingAction;recordVelocity&&(scroll2=scroll1,scroll1=containerAnimation?scrollFunc():scroll,snap&&(snap2=snap1,snap1=animation&&!isToggle?animation.totalProgress():clipped)),anticipatePin&&pin&&!_refreshing&&!_startup$1&&_lastScrollTime&&(!clipped&&startscroll+(scroll-scroll2)/(_getTime$1()-_time2)*anticipatePin&&(clipped=.9999));if(clipped!==prevProgress&&self.enabled){isActive=self.isActive=!!clipped&&clipped<1,wasActive=!!prevProgress&&prevProgress<1,toggled=isActive!==wasActive,stateChanged=toggled||!!clipped!=!!prevProgress,self.direction=clipped>prevProgress?1:-1,self.progress=clipped,stateChanged&&!_refreshing&&(toggleState=clipped&&!prevProgress?0:clipped===1?1:prevProgress===1?2:3,isToggle&&(action=!toggled&&toggleActions[toggleState+1]!=="none"&&toggleActions[toggleState+1]||toggleActions[toggleState],isTakingAction=animation&&(action==="complete"||action==="reset"||action in animation))),preventOverlaps&&(toggled||isTakingAction)&&(isTakingAction||scrub||!animation)&&(_isFunction(preventOverlaps)?preventOverlaps(self):self.getTrailing(preventOverlaps).forEach(function(t){return t.endAnimation()})),isToggle||(scrubTween&&!_refreshing&&!_startup$1?(scrubTween._dp._time-scrubTween._start!==scrubTween._time&&scrubTween.render(scrubTween._dp._time-scrubTween._start),scrubTween.resetTo?scrubTween.resetTo("totalProgress",clipped,animation._tTime/animation._tDur):(scrubTween.vars.totalProgress=clipped,scrubTween.invalidate().restart())):animation&&animation.totalProgress(clipped,!(!_refreshing||!lastRefresh&&!reset)));if(pin){reset&&pinSpacing&&(spacer.style[pinSpacing+direction.os2]=spacingStart);if(!useFixedPosition)pinSetter(_round(pinStart+pinChange*clipped));else if(stateChanged){isAtMax=!reset&&clipped>prevProgress&&end+1>scroll&&scroll+1>=_maxScroll(scroller,direction);if(pinReparent)if(!reset&&(isActive||isAtMax)){var bounds=_getBounds(pin,!0),_offset=scroll-start;_reparent(pin,_body$1,bounds.top+(direction===_vertical?_offset:0)+_px,bounds.left+(direction===_vertical?0:_offset)+_px)}else _reparent(pin,spacer);_setState(isActive||isAtMax?pinActiveState:pinState),pinMoves&&clipped<1&&isActive||pinSetter(pinStart+(clipped===1&&!isAtMax?pinChange:0))}}snap&&!tweenTo.tween&&!_refreshing&&!_startup$1&&snapDelayedCall.restart(!0),toggleClass&&(toggled||once&&clipped&&(clipped<1||!_limitCallbacks))&&_toArray(toggleClass.targets).forEach(function(el){return el.classList[isActive||once?"add":"remove"](toggleClass.className)}),onUpdate&&!isToggle&&!reset&&onUpdate(self);if(stateChanged&&!_refreshing){isToggle&&(isTakingAction&&(action==="complete"?animation.pause().totalProgress(1):action==="reset"?animation.restart(!0).pause():action==="restart"?animation.restart(!0):animation[action]()),onUpdate&&onUpdate(self));if(toggled||!_limitCallbacks)onToggle&&toggled&&_callback(self,onToggle),callbacks[toggleState]&&_callback(self,callbacks[toggleState]),once&&(clipped===1?self.kill(!1,1):callbacks[toggleState]=0),toggled||(toggleState=clipped===1?1:3,callbacks[toggleState]&&_callback(self,callbacks[toggleState]));fastScrollEnd&&!isActive&&Math.abs(self.getVelocity())>(_isNumber(fastScrollEnd)?fastScrollEnd:2500)&&(_endAnimation(self.callbackAnimation),scrubTween?scrubTween.progress(1):_endAnimation(animation,action==="reverse"?1:!clipped,1))}else isToggle&&onUpdate&&!_refreshing&&onUpdate(self)}if(markerEndSetter){var n=containerAnimation?scroll/containerAnimation.duration()*(containerAnimation._caScrollDist||0):scroll;markerStartSetter(n+(markerStartTrigger._isFlipped?1:0)),markerEndSetter(n)}caMarkerSetter&&caMarkerSetter(-scroll/containerAnimation.duration()*(containerAnimation._caScrollDist||0))},self.enable=function(reset,refresh){self.enabled||(self.enabled=!0,_addListener$1(scroller,"resize",_onResize),isViewport||_addListener$1(scroller,"scroll",_onScroll$1),onRefreshInit&&_addListener$1(ScrollTrigger,"refreshInit",onRefreshInit),reset!==!1&&(self.progress=prevProgress=0,scroll1=scroll2=lastSnap=scrollFunc()),refresh!==!1&&self.refresh())},self.getTween=function(snap){return snap&&tweenTo?tweenTo.tween:scrubTween},self.setPositions=function(newStart,newEnd,keepClamp,pinOffset){if(containerAnimation){var st=containerAnimation.scrollTrigger,duration=containerAnimation.duration(),_change=st.end-st.start;newStart=st.start+_change*newStart/duration,newEnd=st.start+_change*newEnd/duration}self.refresh(!1,!1,{start:_keepClamp(newStart,keepClamp&&!!self._startClamp),end:_keepClamp(newEnd,keepClamp&&!!self._endClamp)},pinOffset),self.update()},self.adjustPinSpacing=function(amount){if(spacerState&&amount){var i=spacerState.indexOf(direction.d)+1;spacerState[i]=parseFloat(spacerState[i])+amount+_px,spacerState[1]=parseFloat(spacerState[1])+amount+_px,_setState(spacerState)}},self.disable=function(reset,allowAnimation){if(self.enabled){reset!==!1&&self.revert(!0,!0),self.enabled=self.isActive=!1,allowAnimation||scrubTween&&scrubTween.pause(),prevScroll=0,pinCache&&(pinCache.uncache=1),onRefreshInit&&_removeListener$1(ScrollTrigger,"refreshInit",onRefreshInit),snapDelayedCall&&(snapDelayedCall.pause(),tweenTo.tween&&tweenTo.tween.kill()&&(tweenTo.tween=0));if(!isViewport){var i=_triggers.length;while(i--)if(_triggers[i].scroller===scroller&&_triggers[i]!==self)return;_removeListener$1(scroller,"resize",_onResize),isViewport||_removeListener$1(scroller,"scroll",_onScroll$1)}}},self.kill=function(revert,allowAnimation){self.disable(revert,allowAnimation),scrubTween&&!allowAnimation&&scrubTween.kill(),id&&delete _ids[id];var i=_triggers.indexOf(self);i>=0&&_triggers.splice(i,1),i===_i&&_direction>0&&_i--,i=0,_triggers.forEach(function(t){return t.scroller===self.scroller&&(i=1)}),i||_refreshingAll||(self.scroll.rec=0),animation&&(animation.scrollTrigger=null,revert&&animation.revert({kill:!1}),allowAnimation||animation.kill()),markerStart&&[markerStart,markerEnd,markerStartTrigger,markerEndTrigger].forEach(function(m){return m.parentNode&&m.parentNode.removeChild(m)}),_primary===self&&(_primary=0),pin&&(pinCache&&(pinCache.uncache=1),i=0,_triggers.forEach(function(t){return t.pin===pin&&i++}),i||(pinCache.spacer=0)),vars.onKill&&vars.onKill(self)},_triggers.push(self),self.enable(!1,!1),customRevertReturn&&customRevertReturn(self);if(animation&&animation.add&&!change){var updateFunc=self.update;self.update=function(){self.update=updateFunc,start||end||self.refresh()},gsap$1.delayedCall(.01,self.update),change=.01,start=end=0}else self.refresh();pin&&_queueRefreshAll()},ScrollTrigger.register=function register(core){return _coreInitted$1||(gsap$1=core||_getGSAP$1(),_windowExists()&&window.document&&ScrollTrigger.enable(),_coreInitted$1=_enabled),_coreInitted$1},ScrollTrigger.defaults=function defaults(config){if(config)for(var p in config)_defaults[p]=config[p];return _defaults},ScrollTrigger.disable=function disable(reset,kill){_enabled=0,_triggers.forEach(function(trigger){return trigger[kill?"kill":"disable"](reset)}),_removeListener$1(_win$1,"wheel",_onScroll$1),_removeListener$1(_doc$1,"scroll",_onScroll$1),clearInterval(_syncInterval),_removeListener$1(_doc$1,"touchcancel",_passThrough),_removeListener$1(_body$1,"touchstart",_passThrough),_multiListener(_removeListener$1,_doc$1,"pointerdown,touchstart,mousedown",_pointerDownHandler),_multiListener(_removeListener$1,_doc$1,"pointerup,touchend,mouseup",_pointerUpHandler),_resizeDelay.kill(),_iterateAutoRefresh(_removeListener$1);for(var i=0;i<_scrollers.length;i+=3)_wheelListener(_removeListener$1,_scrollers[i],_scrollers[i+1]),_wheelListener(_removeListener$1,_scrollers[i],_scrollers[i+2])},ScrollTrigger.enable=function enable(){_win$1=window,_doc$1=document,_docEl$1=_doc$1.documentElement,_body$1=_doc$1.body;if(gsap$1){_toArray=gsap$1.utils.toArray,_clamp$1=gsap$1.utils.clamp,_context$1=gsap$1.core.context||_passThrough,_suppressOverwrites=gsap$1.core.suppressOverwrites||_passThrough,_scrollRestoration=_win$1.history.scrollRestoration||"auto",_lastScroll=_win$1.pageYOffset,gsap$1.core.globals("ScrollTrigger",ScrollTrigger);if(_body$1){_enabled=1,_div100vh=document.createElement("div"),_div100vh.style.height="100vh",_div100vh.style.position="absolute",_refresh100vh(),_rafBugFix(),Observer.register(gsap$1),ScrollTrigger.isTouch=Observer.isTouch,_fixIOSBug=Observer.isTouch&&/(iPad|iPhone|iPod|Mac)/g.test(navigator.userAgent),_ignoreMobileResize=Observer.isTouch===1,_addListener$1(_win$1,"wheel",_onScroll$1),_root$1=[_win$1,_doc$1,_docEl$1,_body$1],gsap$1.matchMedia?(ScrollTrigger.matchMedia=function(vars){var mm=gsap$1.matchMedia(),p;for(p in vars)mm.add(p,vars[p]);return mm},gsap$1.addEventListener("matchMediaInit",function(){return _revertAll()}),gsap$1.addEventListener("matchMediaRevert",function(){return _revertRecorded()}),gsap$1.addEventListener("matchMedia",function(){_refreshAll(0,1),_dispatch("matchMedia")}),gsap$1.matchMedia("(orientation: portrait)",function(){return _setBaseDimensions(),_setBaseDimensions})):console.warn("Requires GSAP 3.11.0 or later"),_setBaseDimensions(),_addListener$1(_doc$1,"scroll",_onScroll$1);var bodyStyle=_body$1.style,border=bodyStyle.borderTopStyle,AnimationProto=gsap$1.core.Animation.prototype,bounds,i;AnimationProto.revert||Object.defineProperty(AnimationProto,"revert",{value:function value(){return this.time(-0.01,!0)}}),bodyStyle.borderTopStyle="solid",bounds=_getBounds(_body$1),_vertical.m=Math.round(bounds.top+_vertical.sc())||0,_horizontal.m=Math.round(bounds.left+_horizontal.sc())||0,border?bodyStyle.borderTopStyle=border:bodyStyle.removeProperty("border-top-style"),_syncInterval=setInterval(_sync,250),gsap$1.delayedCall(.5,function(){return _startup$1=0}),_addListener$1(_doc$1,"touchcancel",_passThrough),_addListener$1(_body$1,"touchstart",_passThrough),_multiListener(_addListener$1,_doc$1,"pointerdown,touchstart,mousedown",_pointerDownHandler),_multiListener(_addListener$1,_doc$1,"pointerup,touchend,mouseup",_pointerUpHandler),_transformProp=gsap$1.utils.checkPrefix("transform"),_stateProps.push(_transformProp),_coreInitted$1=_getTime$1(),_resizeDelay=gsap$1.delayedCall(.2,_refreshAll).pause(),_autoRefresh=[_doc$1,"visibilitychange",function(){var w=_win$1.innerWidth,h=_win$1.innerHeight;_doc$1.hidden?(_prevWidth=w,_prevHeight=h):(_prevWidth!==w||_prevHeight!==h)&&_onResize()},_doc$1,"DOMContentLoaded",_refreshAll,_win$1,"load",_refreshAll,_win$1,"resize",_onResize],_iterateAutoRefresh(_addListener$1),_triggers.forEach(function(trigger){return trigger.enable(0,1)});for(i=0;i<_scrollers.length;i+=3)_wheelListener(_removeListener$1,_scrollers[i],_scrollers[i+1]),_wheelListener(_removeListener$1,_scrollers[i],_scrollers[i+2])}}},ScrollTrigger.config=function config(vars){"limitCallbacks"in vars&&(_limitCallbacks=!!vars.limitCallbacks);var ms=vars.syncInterval;ms&&clearInterval(_syncInterval)||(_syncInterval=ms)&&setInterval(_sync,ms),"ignoreMobileResize"in vars&&(_ignoreMobileResize=ScrollTrigger.isTouch===1&&vars.ignoreMobileResize),"autoRefreshEvents"in vars&&(_iterateAutoRefresh(_removeListener$1)||_iterateAutoRefresh(_addListener$1,vars.autoRefreshEvents||"none"),_ignoreResize=(vars.autoRefreshEvents+"").indexOf("resize")===-1)},ScrollTrigger.scrollerProxy=function scrollerProxy(target,vars){var t=_getTarget(target),i=_scrollers.indexOf(t),isViewport=_isViewport$1(t);~i&&_scrollers.splice(i,isViewport?6:2),vars&&(isViewport?_proxies.unshift(_win$1,vars,_body$1,vars,_docEl$1,vars):_proxies.unshift(t,vars))},ScrollTrigger.clearMatchMedia=function clearMatchMedia(query){_triggers.forEach(function(t){return t._ctx&&t._ctx.query===query&&t._ctx.kill(!0,!0)})},ScrollTrigger.isInViewport=function isInViewport(element,ratio,horizontal){var bounds=(_isString(element)?_getTarget(element):element).getBoundingClientRect(),offset=bounds[horizontal?_width:_height]*ratio||0;return horizontal?bounds.right-offset>0&&bounds.left+offset<_win$1.innerWidth:bounds.bottom-offset>0&&bounds.top+offset<_win$1.innerHeight},ScrollTrigger.positionInViewport=function positionInViewport(element,referencePoint,horizontal){_isString(element)&&(element=_getTarget(element));var bounds=element.getBoundingClientRect(),size=bounds[horizontal?_width:_height],offset=referencePoint==null?size/2:referencePoint in _keywords?_keywords[referencePoint]*size:~referencePoint.indexOf("%")?parseFloat(referencePoint)*size/100:parseFloat(referencePoint)||0;return horizontal?(bounds.left+offset)/_win$1.innerWidth:(bounds.top+offset)/_win$1.innerHeight},ScrollTrigger.killAll=function killAll(allowListeners){_triggers.slice(0).forEach(function(t){return t.vars.id!=="ScrollSmoother"&&t.kill()});if(allowListeners!==!0){var listeners=_listeners.killAll||[];_listeners={},listeners.forEach(function(f){return f()})}},ScrollTrigger}();ScrollTrigger$1.version="3.12.5",ScrollTrigger$1.saveStyles=function(targets){return targets?_toArray(targets).forEach(function(target){if(target&&target.style){var i=_savedStyles.indexOf(target);i>=0&&_savedStyles.splice(i,5),_savedStyles.push(target,target.style.cssText,target.getBBox&&target.getAttribute("transform"),gsap$1.core.getCache(target),_context$1())}}):_savedStyles},ScrollTrigger$1.revert=function(soft,media){return _revertAll(!soft,media)},ScrollTrigger$1.create=function(vars,animation){return new ScrollTrigger$1(vars,animation)},ScrollTrigger$1.refresh=function(safe){return safe?_onResize():(_coreInitted$1||ScrollTrigger$1.register())&&_refreshAll(!0)},ScrollTrigger$1.update=function(force){return++_scrollers.cache&&_updateAll(force===!0?2:0)},ScrollTrigger$1.clearScrollMemory=_clearScrollMemory,ScrollTrigger$1.maxScroll=function(element,horizontal){return _maxScroll(element,horizontal?_horizontal:_vertical)},ScrollTrigger$1.getScrollFunc=function(element,horizontal){return _getScrollFunc(_getTarget(element),horizontal?_horizontal:_vertical)},ScrollTrigger$1.getById=function(id){return _ids[id]},ScrollTrigger$1.getAll=function(){return _triggers.filter(function(t){return t.vars.id!=="ScrollSmoother"})},ScrollTrigger$1.isScrolling=function(){return!!_lastScrollTime},ScrollTrigger$1.snapDirectional=_snapDirectional,ScrollTrigger$1.addEventListener=function(type,callback){var a=_listeners[type]||(_listeners[type]=[]);~a.indexOf(callback)||a.push(callback)},ScrollTrigger$1.removeEventListener=function(type,callback){var a=_listeners[type],i=a&&a.indexOf(callback);i>=0&&a.splice(i,1)},ScrollTrigger$1.batch=function(targets,vars){var result=[],varsCopy={},interval=vars.interval||.016,batchMax=vars.batchMax||1e9,proxyCallback=function proxyCallback(type,callback){var elements=[],triggers=[],delay=gsap$1.delayedCall(interval,function(){callback(elements,triggers),elements=[],triggers=[]}).pause();return function(self){elements.length||delay.restart(!0),elements.push(self.trigger),triggers.push(self),batchMax<=elements.length&&delay.progress(1)}},p;for(p in vars)varsCopy[p]=p.substr(0,2)==="on"&&_isFunction(vars[p])&&p!=="onRefreshInit"?proxyCallback(p,vars[p]):vars[p];return _isFunction(batchMax)&&(batchMax=batchMax(),_addListener$1(ScrollTrigger$1,"refresh",function(){return batchMax=vars.batchMax()})),_toArray(targets).forEach(function(target){var config={};for(p in varsCopy)config[p]=varsCopy[p];config.trigger=target,result.push(ScrollTrigger$1.create(config))}),result};var _clampScrollAndGetDurationMultiplier=function _clampScrollAndGetDurationMultiplier(scrollFunc,current,end,max){return current>max?scrollFunc(max):current<0&&scrollFunc(0),end>max?(max-current)/(end-current):end<0?current/(current-end):1},_allowNativePanning=function _allowNativePanning(target,direction){direction===!0?target.style.removeProperty("touch-action"):target.style.touchAction=direction===!0?"auto":direction?"pan-"+direction+(Observer.isTouch?" pinch-zoom":""):"none",target===_docEl$1&&_allowNativePanning(_body$1,direction)},_overflow={auto:1,scroll:1},_nestedScroll=function _nestedScroll(_ref5){var event=_ref5.event,target=_ref5.target,axis=_ref5.axis,node=(event.changedTouches?event.changedTouches[0]:event).target,cache=node._gsap||gsap$1.core.getCache(node),time=_getTime$1(),cs;if(!cache._isScrollT||time-cache._isScrollT>2e3){while(node&&node!==_body$1&&(node.scrollHeight<=node.clientHeight&&node.scrollWidth<=node.clientWidth||!_overflow[(cs=_getComputedStyle(node)).overflowY]&&!_overflow[cs.overflowX]))node=node.parentNode;cache._isScroll=node&&node!==target&&!_isViewport$1(node)&&(_overflow[(cs=_getComputedStyle(node)).overflowY]||_overflow[cs.overflowX]),cache._isScrollT=time}if(cache._isScroll||axis==="x")event.stopPropagation(),event._gsapAllow=!0},_inputObserver=function _inputObserver(target,type,inputs,nested){return Observer.create({target:target,capture:!0,debounce:!1,lockAxis:!0,type:type,onWheel:nested=nested&&_nestedScroll,onPress:nested,onDrag:nested,onScroll:nested,onEnable:function onEnable(){return inputs&&_addListener$1(_doc$1,Observer.eventTypes[0],_captureInputs,!1,!0)},onDisable:function onDisable(){return _removeListener$1(_doc$1,Observer.eventTypes[0],_captureInputs,!0)}})},_inputExp=/(input|label|select|textarea)/i,_inputIsFocused,_captureInputs=function _captureInputs(e){var isInput=_inputExp.test(e.target.tagName);if(isInput||_inputIsFocused)e._gsapAllow=!0,_inputIsFocused=isInput},_getScrollNormalizer=function _getScrollNormalizer(vars){_isObject(vars)||(vars={}),vars.preventDefault=vars.isNormalizer=vars.allowClicks=!0,vars.type||(vars.type="wheel,touch"),vars.debounce=!!vars.debounce,vars.id=vars.id||"normalizer";var _vars2=vars,normalizeScrollX=_vars2.normalizeScrollX,momentum=_vars2.momentum,allowNestedScroll=_vars2.allowNestedScroll,onRelease=_vars2.onRelease,self,maxY,target=_getTarget(vars.target)||_docEl$1,smoother=gsap$1.core.globals().ScrollSmoother,smootherInstance=smoother&&smoother.get(),content=_fixIOSBug&&(vars.content&&_getTarget(vars.content)||smootherInstance&&vars.content!==!1&&!smootherInstance.smooth()&&smootherInstance.content()),scrollFuncY=_getScrollFunc(target,_vertical),scrollFuncX=_getScrollFunc(target,_horizontal),scale=1,initialScale=(Observer.isTouch&&_win$1.visualViewport?_win$1.visualViewport.scale*_win$1.visualViewport.width:_win$1.outerWidth)/_win$1.innerWidth,wheelRefresh=0,resolveMomentumDuration=_isFunction(momentum)?function(){return momentum(self)}:function(){return momentum||2.8},lastRefreshID,skipTouchMove,inputObserver=_inputObserver(target,vars.type,!0,allowNestedScroll),resumeTouchMove=function resumeTouchMove(){return skipTouchMove=!1},scrollClampX=_passThrough,scrollClampY=_passThrough,updateClamps=function updateClamps(){maxY=_maxScroll(target,_vertical),scrollClampY=_clamp$1(_fixIOSBug?1:0,maxY),normalizeScrollX&&(scrollClampX=_clamp$1(0,_maxScroll(target,_horizontal))),lastRefreshID=_refreshID},removeContentOffset=function removeContentOffset(){content._gsap.y=_round(parseFloat(content._gsap.y)+scrollFuncY.offset)+"px",content.style.transform="matrix3d(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, "+parseFloat(content._gsap.y)+", 0, 1)",scrollFuncY.offset=scrollFuncY.cacheID=0},ignoreDrag=function ignoreDrag(){if(skipTouchMove){requestAnimationFrame(resumeTouchMove);var offset=_round(self.deltaY/2),scroll=scrollClampY(scrollFuncY.v-offset);if(content&&scroll!==scrollFuncY.v+scrollFuncY.offset){scrollFuncY.offset=scroll-scrollFuncY.v;var y=_round((parseFloat(content&&content._gsap.y)||0)-scrollFuncY.offset);content.style.transform="matrix3d(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, "+y+", 0, 1)",content._gsap.y=y+"px",scrollFuncY.cacheID=_scrollers.cache,_updateAll()}return!0}scrollFuncY.offset&&removeContentOffset(),skipTouchMove=!0},tween,startScrollX,startScrollY,onStopDelayedCall,onResize=function onResize(){updateClamps(),tween.isActive()&&tween.vars.scrollY>maxY&&(scrollFuncY()>maxY?tween.progress(1)&&scrollFuncY(maxY):tween.resetTo("scrollY",maxY))};return content&&gsap$1.set(content,{y:"+=0"}),vars.ignoreCheck=function(e){return _fixIOSBug&&e.type==="touchmove"&&ignoreDrag()||scale>1.05&&e.type!=="touchstart"||self.isGesturing||e.touches&&e.touches.length>1},vars.onPress=function(){skipTouchMove=!1;var prevScale=scale;scale=_round((_win$1.visualViewport&&_win$1.visualViewport.scale||1)/initialScale),tween.pause(),prevScale!==scale&&_allowNativePanning(target,scale>1.01?!0:normalizeScrollX?!1:"x"),startScrollX=scrollFuncX(),startScrollY=scrollFuncY(),updateClamps(),lastRefreshID=_refreshID},vars.onRelease=vars.onGestureStart=function(self,wasDragging){scrollFuncY.offset&&removeContentOffset();if(!wasDragging)onStopDelayedCall.restart(!0);else{_scrollers.cache++;var dur=resolveMomentumDuration(),currentScroll,endScroll;normalizeScrollX&&(currentScroll=scrollFuncX(),endScroll=currentScroll+dur*.05*-self.velocityX/.227,dur*=_clampScrollAndGetDurationMultiplier(scrollFuncX,currentScroll,endScroll,_maxScroll(target,_horizontal)),tween.vars.scrollX=scrollClampX(endScroll)),currentScroll=scrollFuncY(),endScroll=currentScroll+dur*.05*-self.velocityY/.227,dur*=_clampScrollAndGetDurationMultiplier(scrollFuncY,currentScroll,endScroll,_maxScroll(target,_vertical)),tween.vars.scrollY=scrollClampY(endScroll),tween.invalidate().duration(dur).play(.01),(_fixIOSBug&&tween.vars.scrollY>=maxY||currentScroll>=maxY-1)&&gsap$1.to({},{onUpdate:onResize,duration:dur})}onRelease&&onRelease(self)},vars.onWheel=function(){tween._ts&&tween.pause(),_getTime$1()-wheelRefresh>1e3&&(lastRefreshID=0,wheelRefresh=_getTime$1())},vars.onChange=function(self,dx,dy,xArray,yArray){_refreshID!==lastRefreshID&&updateClamps(),dx&&normalizeScrollX&&scrollFuncX(scrollClampX(xArray[2]===dx?startScrollX+(self.startX-self.x):scrollFuncX()+dx-xArray[1]));if(dy){scrollFuncY.offset&&removeContentOffset();var isTouch=yArray[2]===dy,y=isTouch?startScrollY+self.startY-self.y:scrollFuncY()+dy-yArray[1],yClamped=scrollClampY(y);isTouch&&y!==yClamped&&(startScrollY+=yClamped-y),scrollFuncY(yClamped)}(dy||dx)&&_updateAll()},vars.onEnable=function(){_allowNativePanning(target,normalizeScrollX?!1:"x"),ScrollTrigger$1.addEventListener("refresh",onResize),_addListener$1(_win$1,"resize",onResize),scrollFuncY.smooth&&(scrollFuncY.target.style.scrollBehavior="auto",scrollFuncY.smooth=scrollFuncX.smooth=!1),inputObserver.enable()},vars.onDisable=function(){_allowNativePanning(target,!0),_removeListener$1(_win$1,"resize",onResize),ScrollTrigger$1.removeEventListener("refresh",onResize),inputObserver.kill()},vars.lockAxis=vars.lockAxis!==!1,self=new Observer(vars),self.iOS=_fixIOSBug,_fixIOSBug&&!scrollFuncY()&&scrollFuncY(1),_fixIOSBug&&gsap$1.ticker.add(_passThrough),onStopDelayedCall=self._dc,tween=gsap$1.to(self,{ease:"power4",paused:!0,inherit:!1,scrollX:normalizeScrollX?"+=0.1":"+=0",scrollY:"+=0.1",modifiers:{scrollY:_interruptionTracker(scrollFuncY,scrollFuncY(),function(){return tween.pause()})},onUpdate:_updateAll,onComplete:onStopDelayedCall.vars.onComplete}),self};ScrollTrigger$1.sort=function(func){return _triggers.sort(func||function(a,b){return(a.vars.refreshPriority||0)*-1e6+a.start-(b.start+(b.vars.refreshPriority||0)*-1e6)})},ScrollTrigger$1.observe=function(vars){return new Observer(vars)},ScrollTrigger$1.normalizeScroll=function(vars){if(typeof vars=="undefined")return _normalizer$1;if(vars===!0&&_normalizer$1)return _normalizer$1.enable();if(vars===!1){_normalizer$1&&_normalizer$1.kill(),_normalizer$1=vars;return}var normalizer=vars instanceof Observer?vars:_getScrollNormalizer(vars);return _normalizer$1&&_normalizer$1.target===normalizer.target&&_normalizer$1.kill(),_isViewport$1(normalizer.target)&&(_normalizer$1=normalizer),normalizer},ScrollTrigger$1.core={_getVelocityProp:_getVelocityProp,_inputObserver:_inputObserver,_scrollers:_scrollers,_proxies:_proxies,bridge:{ss:function ss(){_lastScrollTime||_dispatch("scrollStart"),_lastScrollTime=_getTime$1()},ref:function ref(){return _refreshing}}},_getGSAP$1()&&gsap$1.registerPlugin(ScrollTrigger$1),exports.ScrollTrigger=ScrollTrigger$1,exports.default=ScrollTrigger$1,typeof window=="undefined"||window!==exports?Object.defineProperty(exports,"__esModule",{value:!0}):delete window.default}),function(global,factory){typeof exports=="object"&&typeof module!="undefined"?factory(exports):typeof define=="function"&&define.amd?define(["exports"],factory):(global=global||self,factory(global.window=global.window||{}))}(this,function(exports){"use strict";function _inheritsLoose(subClass,superClass){subClass.prototype=Object.create(superClass.prototype),subClass.prototype.constructor=subClass,subClass.__proto__=superClass}function _assertThisInitialized(self){if(self===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return self}function getGlobalMatrix(element,inverse,adjustGOffset,includeScrollInFixed){if(!element||!element.parentNode||(_doc||_setDoc(element)).documentElement===element)return new Matrix2D;var zeroScales=_forceNonZeroScale(element),svg=_svgOwner(element),temps=svg?_svgTemps:_divTemps,container=_placeSiblings(element,adjustGOffset),b1=temps[0].getBoundingClientRect(),b2=temps[1].getBoundingClientRect(),b3=temps[2].getBoundingClientRect(),parent=container.parentNode,isFixed=!includeScrollInFixed&&_isFixed(element),m=new Matrix2D((b2.left-b1.left)/100,(b2.top-b1.top)/100,(b3.left-b1.left)/100,(b3.top-b1.top)/100,b1.left+(isFixed?0:_getDocScrollLeft()),b1.top+(isFixed?0:_getDocScrollTop()));parent.removeChild(container);if(zeroScales){b1=zeroScales.length;while(b1--)b2=zeroScales[b1],b2.scaleX=b2.scaleY=0,b2.renderTransform(1,b2)}return inverse?m.inverse():m}var _doc,_win,_docElement,_body,_divContainer,_svgContainer,_identityMatrix,_gEl,_transformProp="transform",_transformOriginProp=_transformProp+"Origin",_hasOffsetBug,_setDoc=function _setDoc(element){var doc=element.ownerDocument||element;!(_transformProp in element.style)&&"msTransform"in element.style&&(_transformProp="msTransform",_transformOriginProp=_transformProp+"Origin");while(doc.parentNode&&(doc=doc.parentNode));_win=window,_identityMatrix=new Matrix2D;if(doc){_doc=doc,_docElement=doc.documentElement,_body=doc.body,_gEl=_doc.createElementNS("http://www.w3.org/2000/svg","g"),_gEl.style.transform="none";var d1=doc.createElement("div"),d2=doc.createElement("div"),root=doc&&(doc.body||doc.firstElementChild);root&&root.appendChild&&(root.appendChild(d1),d1.appendChild(d2),d1.setAttribute("style","position:static;transform:translate3d(0,0,1px)"),_hasOffsetBug=d2.offsetParent!==d1,root.removeChild(d1))}return doc},_forceNonZeroScale=function _forceNonZeroScale(e){var a,cache;while(e&&e!==_body)cache=e._gsap,cache&&cache.uncache&&cache.get(e,"x"),cache&&!cache.scaleX&&!cache.scaleY&&cache.renderTransform&&(cache.scaleX=cache.scaleY=1e-4,cache.renderTransform(1,cache),a?a.push(cache):a=[cache]),e=e.parentNode;return a},_svgTemps=[],_divTemps=[],_getDocScrollTop=function _getDocScrollTop(){return _win.pageYOffset||_doc.scrollTop||_docElement.scrollTop||_body.scrollTop||0},_getDocScrollLeft=function _getDocScrollLeft(){return _win.pageXOffset||_doc.scrollLeft||_docElement.scrollLeft||_body.scrollLeft||0},_svgOwner=function _svgOwner(element){return element.ownerSVGElement||((element.tagName+"").toLowerCase()==="svg"?element:null)},_isFixed=function _isFixed(element){if(_win.getComputedStyle(element).position==="fixed")return!0;element=element.parentNode;if(element&&element.nodeType===1)return _isFixed(element)},_createSibling=function _createSibling(element,i){if(element.parentNode&&(_doc||_setDoc(element))){var svg=_svgOwner(element),ns=svg?svg.getAttribute("xmlns")||"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",type=svg?i?"rect":"g":"div",x=i!==2?0:100,y=i===3?100:0,css="position:absolute;display:block;pointer-events:none;margin:0;padding:0;",e=_doc.createElementNS?_doc.createElementNS(ns.replace(/^https/,"http"),type):_doc.createElement(type);return i&&(svg?(_svgContainer||(_svgContainer=_createSibling(element)),e.setAttribute("width",.01),e.setAttribute("height",.01),e.setAttribute("transform","translate("+x+","+y+")"),_svgContainer.appendChild(e)):(_divContainer||(_divContainer=_createSibling(element),_divContainer.style.cssText=css),e.style.cssText=css+"width:0.1px;height:0.1px;top:"+y+"px;left:"+x+"px",_divContainer.appendChild(e))),e}throw"Need document and parent."},_consolidate=function _consolidate(m){var c=new Matrix2D,i=0;for(;i1?_consolidate(m):m.getItem(0).matrix:_identityMatrix,x=m.a*b.x+m.c*b.y,y=m.b*b.x+m.d*b.y):(m=new Matrix2D,x=y=0),adjustGOffset&&element.tagName.toLowerCase()==="g"&&(x=y=0),(isRootSVG?svg:parent).appendChild(container),container.setAttribute("transform","matrix("+m.a+","+m.b+","+m.c+","+m.d+","+(m.e+x)+","+(m.f+y)+")");else{x=y=0;if(_hasOffsetBug){m=element.offsetParent,b=element;while(b&&(b=b.parentNode)&&b!==m&&b.parentNode)(_win.getComputedStyle(b)[_transformProp]+"").length>4&&(x=b.offsetLeft,y=b.offsetTop,b=0)}cs=_win.getComputedStyle(element);if(cs.position!=="absolute"&&cs.position!=="fixed"){m=element.offsetParent;while(parent&&parent!==m)x+=parent.scrollLeft||0,y+=parent.scrollTop||0,parent=parent.parentNode}b=container.style,b.top=element.offsetTop-y+"px",b.left=element.offsetLeft-x+"px",b[_transformProp]=cs[_transformProp],b[_transformOriginProp]=cs[_transformOriginProp],b.position=cs.position==="fixed"?"fixed":"absolute",element.parentNode.appendChild(container)}return container},_setMatrix=function _setMatrix(m,a,b,c,d,e,f){return m.a=a,m.b=b,m.c=c,m.d=d,m.e=e,m.f=f,m},Matrix2D=function(){function Matrix2D(a,b,c,d,e,f){a===void 0&&(a=1),b===void 0&&(b=0),c===void 0&&(c=0),d===void 0&&(d=1),e===void 0&&(e=0),f===void 0&&(f=0),_setMatrix(this,a,b,c,d,e,f)}var _proto=Matrix2D.prototype;return _proto.inverse=function inverse(){var a=this.a,b=this.b,c=this.c,d=this.d,e=this.e,f=this.f,determinant=a*d-b*c||1e-10;return _setMatrix(this,d/determinant,-b/determinant,-c/determinant,a/determinant,(c*f-d*e)/determinant,-(a*f-b*e)/determinant)},_proto.multiply=function multiply(matrix){var a=this.a,b=this.b,c=this.c,d=this.d,e=this.e,f=this.f,a2=matrix.a,b2=matrix.c,c2=matrix.b,d2=matrix.d,e2=matrix.e,f2=matrix.f;return _setMatrix(this,a2*a+c2*c,a2*b+c2*d,b2*a+d2*c,b2*b+d2*d,e+e2*a+f2*c,f+e2*b+f2*d)},_proto.clone=function clone(){return new Matrix2D(this.a,this.b,this.c,this.d,this.e,this.f)},_proto.equals=function equals(matrix){var a=this.a,b=this.b,c=this.c,d=this.d,e=this.e,f=this.f;return a===matrix.a&&b===matrix.b&&c===matrix.c&&d===matrix.d&&e===matrix.e&&f===matrix.f},_proto.apply=function apply(point,decoratee){decoratee===void 0&&(decoratee={});var x=point.x,y=point.y,a=this.a,b=this.b,c=this.c,d=this.d,e=this.e,f=this.f;return decoratee.x=x*a+y*c+e||0,decoratee.y=x*b+y*d+f||0,decoratee},Matrix2D}(),gsap,_win$1,_doc$1,_docElement$1,_body$1,_tempDiv,_placeholderDiv,_coreInitted,_checkPrefix,_toArray,_supportsPassive,_isTouchDevice,_touchEventLookup,_isMultiTouching,_isAndroid,InertiaPlugin,_defaultCursor,_supportsPointer,_context,_getStyleSaver,_dragCount=0,_windowExists=function _windowExists(){return typeof window!="undefined"},_getGSAP=function _getGSAP(){return gsap||_windowExists()&&(gsap=window.gsap)&&gsap.registerPlugin&&gsap},_isFunction=function _isFunction(value){return typeof value=="function"},_isObject=function _isObject(value){return typeof value=="object"},_isUndefined=function _isUndefined(value){return typeof value=="undefined"},_emptyFunc=function _emptyFunc(){return!1},_transformProp$1="transform",_transformOriginProp$1="transformOrigin",_round=function _round(value){return Math.round(value*1e4)/1e4},_isArray=Array.isArray,_createElement=function _createElement(type,ns){var e=_doc$1.createElementNS?_doc$1.createElementNS((ns||"http://www.w3.org/1999/xhtml").replace(/^https/,"http"),type):_doc$1.createElement(type);return e.style?e:_doc$1.createElement(type)},_RAD2DEG=180/Math.PI,_bigNum=1e20,_identityMatrix$1=new Matrix2D,_getTime=Date.now||function(){return(new Date).getTime()},_renderQueue=[],_lookup={},_lookupCount=0,_clickableTagExp=/^(?:a|input|textarea|button|select)$/i,_lastDragTime=0,_temp1={},_windowProxy={},_copy=function _copy(obj,factor){var copy={},p;for(p in obj)copy[p]=factor?obj[p]*factor:obj[p];return copy},_extend=function _extend(obj,defaults){for(var p in defaults)p in obj||(obj[p]=defaults[p]);return obj},_setTouchActionForAllDescendants=function _setTouchActionForAllDescendants(elements,value){var i=elements.length,children;while(i--)value?elements[i].style.touchAction=value:elements[i].style.removeProperty("touch-action"),children=elements[i].children,children&&children.length&&_setTouchActionForAllDescendants(children,value)},_renderQueueTick=function _renderQueueTick(){return _renderQueue.forEach(function(func){return func()})},_addToRenderQueue=function _addToRenderQueue(func){_renderQueue.push(func),_renderQueue.length===1&&gsap.ticker.add(_renderQueueTick)},_renderQueueTimeout=function _renderQueueTimeout(){return!_renderQueue.length&&gsap.ticker.remove(_renderQueueTick)},_removeFromRenderQueue=function _removeFromRenderQueue(func){var i=_renderQueue.length;while(i--)_renderQueue[i]===func&&_renderQueue.splice(i,1);gsap.to(_renderQueueTimeout,{overwrite:!0,delay:15,duration:0,onComplete:_renderQueueTimeout,data:"_draggable"})},_setDefaults=function _setDefaults(obj,defaults){for(var p in defaults)p in obj||(obj[p]=defaults[p]);return obj},_addListener=function _addListener(element,type,func,capture){if(element.addEventListener){var touchType=_touchEventLookup[type];capture=capture||(_supportsPassive?{passive:!1}:null),element.addEventListener(touchType||type,func,capture),touchType&&type!==touchType&&element.addEventListener(type,func,capture)}},_removeListener=function _removeListener(element,type,func,capture){if(element.removeEventListener){var touchType=_touchEventLookup[type];element.removeEventListener(touchType||type,func,capture),touchType&&type!==touchType&&element.removeEventListener(type,func,capture)}},_preventDefault=function _preventDefault(event){event.preventDefault&&event.preventDefault(),event.preventManipulation&&event.preventManipulation()},_hasTouchID=function _hasTouchID(list,ID){var i=list.length;while(i--)if(list[i].identifier===ID)return!0},_onMultiTouchDocumentEnd=function _onMultiTouchDocumentEnd(event){_isMultiTouching=event.touches&&_dragCount2||dif<-2)&&!force){prevLeft=element.scrollLeft,gsap.killTweensOf(this,{left:1,scrollLeft:1}),this.left(-prevLeft),vars.onKill&&vars.onKill();return}value=-value,value<0?(offsetLeft=value-.5|0,value=0):value>maxLeft?(offsetLeft=value-maxLeft|0,value=maxLeft):offsetLeft=0;if(offsetLeft||oldOffset)this._skip||(style[_transformProp$1]=transformStart+ -offsetLeft+"px,"+ -offsetTop+transformEnd),offsetLeft+extraPadRight>=0&&(style.paddingRight=offsetLeft+extraPadRight+"px");element.scrollLeft=value|0,prevLeft=element.scrollLeft},this.top=function(value,force){if(!arguments.length)return-(element.scrollTop+offsetTop);var dif=element.scrollTop-prevTop,oldOffset=offsetTop;if((dif>2||dif<-2)&&!force){prevTop=element.scrollTop,gsap.killTweensOf(this,{top:1,scrollTop:1}),this.top(-prevTop),vars.onKill&&vars.onKill();return}value=-value,value<0?(offsetTop=value-.5|0,value=0):value>maxTop?(offsetTop=value-maxTop|0,value=maxTop):offsetTop=0;if(offsetTop||oldOffset)this._skip||(style[_transformProp$1]=transformStart+ -offsetLeft+"px,"+ -offsetTop+transformEnd);element.scrollTop=value|0,prevTop=element.scrollTop},this.maxScrollTop=function(){return maxTop},this.maxScrollLeft=function(){return maxLeft},this.disable=function(){node=content.firstChild;while(node)nextNode=node.nextSibling,element.appendChild(node),node=nextNode;element===content.parentNode&&element.removeChild(content)},this.enable=function(){node=element.firstChild;if(node===content)return;while(node)nextNode=node.nextSibling,content.appendChild(node),node=nextNode;element.appendChild(content),this.calibrate()},this.calibrate=function(force){var widthMatches=element.clientWidth===elementWidth,cs,x,y;prevTop=element.scrollTop,prevLeft=element.scrollLeft;if(widthMatches&&element.clientHeight===elementHeight&&content.offsetHeight===contentHeight&&scrollWidth===element.scrollWidth&&scrollHeight===element.scrollHeight&&!force)return;if(offsetTop||offsetLeft)x=this.left(),y=this.top(),this.left(-element.scrollLeft),this.top(-element.scrollTop);cs=_getComputedStyle(element);if(!widthMatches||force)style.display="block",style.width="auto",style.paddingRight="0px",extraPadRight=Math.max(0,element.scrollWidth-element.clientWidth),extraPadRight&&(extraPadRight+=parseFloat(cs.paddingLeft)+(_addPaddingBR?parseFloat(cs.paddingRight):0));style.display="inline-block",style.position="relative",style.overflow="visible",style.verticalAlign="top",style.boxSizing="content-box",style.width="100%",style.paddingRight=extraPadRight+"px",_addPaddingBR&&(style.paddingBottom=cs.paddingBottom),elementWidth=element.clientWidth,elementHeight=element.clientHeight,scrollWidth=element.scrollWidth,scrollHeight=element.scrollHeight,maxLeft=element.scrollWidth-elementWidth,maxTop=element.scrollHeight-elementHeight,contentHeight=content.offsetHeight,style.display="block";if(x||y)this.left(x),this.top(y)},this.content=content,this.element=element,this._skip=!1,this.enable()},_initCore=function _initCore(required){if(_windowExists()&&document.body){var nav=window&&window.navigator;_win$1=window,_doc$1=document,_docElement$1=_doc$1.documentElement,_body$1=_doc$1.body,_tempDiv=_createElement("div"),_supportsPointer=!!window.PointerEvent,_placeholderDiv=_createElement("div"),_placeholderDiv.style.cssText="visibility:hidden;height:1px;top:-1px;pointer-events:none;position:relative;clear:both;cursor:grab",_defaultCursor=_placeholderDiv.style.cursor==="grab"?"grab":"move",_isAndroid=nav&&nav.userAgent.toLowerCase().indexOf("android")!==-1,_isTouchDevice="ontouchstart"in _docElement$1&&"orientation"in _win$1||nav&&(nav.MaxTouchPoints>0||nav.msMaxTouchPoints>0),_addPaddingBR=function(){var div=_createElement("div"),child=_createElement("div"),childStyle=child.style,parent=_body$1,val;return childStyle.display="inline-block",childStyle.position="relative",div.style.cssText="width:90px;height:40px;padding:10px;overflow:auto;visibility:hidden",div.appendChild(child),parent.appendChild(div),val=child.offsetHeight+18>div.scrollHeight,parent.removeChild(div),val}(),_touchEventLookup=function(types){var standard=types.split(","),converted=("onpointerdown"in _tempDiv?"pointerdown,pointermove,pointerup,pointercancel":"onmspointerdown"in _tempDiv?"MSPointerDown,MSPointerMove,MSPointerUp,MSPointerCancel":types).split(","),obj={},i=4;while(--i>-1)obj[standard[i]]=converted[i],obj[converted[i]]=standard[i];try{_docElement$1.addEventListener("test",null,Object.defineProperty({},"passive",{get:function get(){_supportsPassive=1}}))}catch(e){}return obj}("touchstart,touchmove,touchend,touchcancel"),_addListener(_doc$1,"touchcancel",_emptyFunc),_addListener(_win$1,"touchmove",_emptyFunc),_body$1&&_body$1.addEventListener("touchstart",_emptyFunc),_addListener(_doc$1,"contextmenu",function(){for(var p in _lookup)_lookup[p].isPressed&&_lookup[p].endDrag()}),gsap=_coreInitted=_getGSAP()}gsap?(InertiaPlugin=gsap.plugins.inertia,_context=gsap.core.context||function(){},_checkPrefix=gsap.utils.checkPrefix,_transformProp$1=_checkPrefix(_transformProp$1),_transformOriginProp$1=_checkPrefix(_transformOriginProp$1),_toArray=gsap.utils.toArray,_getStyleSaver=gsap.core.getStyleSaver,_supports3D=!!_checkPrefix("perspective")):required&&console.warn("Please gsap.registerPlugin(Draggable)")},EventDispatcher=function(){function EventDispatcher(target){this._listeners={},this.target=target||this}var _proto=EventDispatcher.prototype;return _proto.addEventListener=function addEventListener(type,callback){var list=this._listeners[type]||(this._listeners[type]=[]);~list.indexOf(callback)||list.push(callback)},_proto.removeEventListener=function removeEventListener(type,callback){var list=this._listeners[type],i=list&&list.indexOf(callback);i>=0&&list.splice(i,1)},_proto.dispatchEvent=function dispatchEvent(type){var _this=this,result;return(this._listeners[type]||[]).forEach(function(callback){return callback.call(_this,{type:type,target:_this.target})===!1&&(result=!1)}),result},EventDispatcher}(),Draggable=function(_EventDispatcher){function Draggable(target,vars){var _this2;_this2=_EventDispatcher.call(this)||this,_coreInitted||_initCore(1),target=_toArray(target)[0],_this2.styles=_getStyleSaver&&_getStyleSaver(target,"transform,left,top"),InertiaPlugin||(InertiaPlugin=gsap.plugins.inertia),_this2.vars=vars=_copy(vars||{}),_this2.target=target,_this2.x=_this2.y=_this2.rotation=0,_this2.dragResistance=parseFloat(vars.dragResistance)||0,_this2.edgeResistance=isNaN(vars.edgeResistance)?1:parseFloat(vars.edgeResistance)||0,_this2.lockAxis=vars.lockAxis,_this2.autoScroll=vars.autoScroll||0,_this2.lockedAxis=null,_this2.allowEventDefault=!!vars.allowEventDefault,gsap.getProperty(target,"x");var type=(vars.type||"x,y").toLowerCase(),xyMode=~type.indexOf("x")||~type.indexOf("y"),rotationMode=type.indexOf("rotation")!==-1,xProp=rotationMode?"rotation":xyMode?"x":"left",yProp=xyMode?"y":"top",allowX=!!~type.indexOf("x")||!!~type.indexOf("left")||type==="scroll",allowY=!!~type.indexOf("y")||!!~type.indexOf("top")||type==="scroll",minimumMovement=vars.minimumMovement||2,self=_assertThisInitialized(_this2),triggers=_toArray(vars.trigger||vars.handle||target),killProps={},dragEndTime=0,checkAutoScrollBounds=!1,autoScrollMarginTop=vars.autoScrollMarginTop||40,autoScrollMarginRight=vars.autoScrollMarginRight||40,autoScrollMarginBottom=vars.autoScrollMarginBottom||40,autoScrollMarginLeft=vars.autoScrollMarginLeft||40,isClickable=vars.clickableTest||_isClickable,clickTime=0,gsCache=target._gsap||gsap.core.getCache(target),isFixed=_isFixed$1(target),getPropAsNum=function getPropAsNum(property,unit){return parseFloat(gsCache.get(target,property,unit))},ownerDoc=target.ownerDocument||_doc$1,enabled,scrollProxy,startPointerX,startPointerY,startElementX,startElementY,hasBounds,hasDragCallback,hasMoveCallback,maxX,minX,maxY,minY,touch,touchID,rotationOrigin,dirty,old,snapX,snapY,snapXY,isClicking,touchEventTarget,matrix,interrupted,allowNativeTouchScrolling,touchDragAxis,isDispatching,clickDispatch,trustedClickDispatch,isPreventingDefault,innerMatrix,dragged,onContextMenu=function onContextMenu(e){return _preventDefault(e),e.stopImmediatePropagation&&e.stopImmediatePropagation(),!1},render=function render(suppressEvents){if(self.autoScroll&&self.isDragging&&(checkAutoScrollBounds||dirty)){var e=target,autoScrollFactor=self.autoScroll*15,parent,isRoot,rect,pointerX,pointerY,changeX,changeY,gap;checkAutoScrollBounds=!1,_windowProxy.scrollTop=_win$1.pageYOffset!=null?_win$1.pageYOffset:ownerDoc.documentElement.scrollTop!=null?ownerDoc.documentElement.scrollTop:ownerDoc.body.scrollTop,_windowProxy.scrollLeft=_win$1.pageXOffset!=null?_win$1.pageXOffset:ownerDoc.documentElement.scrollLeft!=null?ownerDoc.documentElement.scrollLeft:ownerDoc.body.scrollLeft,pointerX=self.pointerX-_windowProxy.scrollLeft,pointerY=self.pointerY-_windowProxy.scrollTop;while(e&&!isRoot)isRoot=_isRoot(e.parentNode),parent=isRoot?_windowProxy:e.parentNode,rect=isRoot?{bottom:Math.max(_docElement$1.clientHeight,_win$1.innerHeight||0),right:Math.max(_docElement$1.clientWidth,_win$1.innerWidth||0),left:0,top:0}:parent.getBoundingClientRect(),changeX=changeY=0,allowY&&(gap=parent._gsMaxScrollY-parent.scrollTop,gap<0?changeY=gap:pointerY>rect.bottom-autoScrollMarginBottom&&gap?(checkAutoScrollBounds=!0,changeY=Math.min(gap,autoScrollFactor*(1-Math.max(0,rect.bottom-pointerY)/autoScrollMarginBottom)|0)):pointerYrect.right-autoScrollMarginRight&&gap?(checkAutoScrollBounds=!0,changeX=Math.min(gap,autoScrollFactor*(1-Math.max(0,rect.right-pointerX)/autoScrollMarginRight)|0)):pointerXmax?max+(n-max)*edgeTolerance:n-1)val=snap[i],dif=val-n,dif<0&&(dif=-dif),dif=min&&val<=max&&(closest=i,absDif=dif);return snap[closest]}:isNaN(snap)?function(n){return n}:function(){return snap*factor}},buildPointSnapFunc=function buildPointSnapFunc(snap,minX,maxX,minY,maxY,radius,factor){return radius=radius&&radius<_bigNum?radius*radius:_bigNum,_isFunction(snap)?function(point){var edgeTolerance=self.isPressed?1-self.edgeResistance:1,x=point.x,y=point.y,result,dx,dy;return point.x=x=x>maxX?maxX+(x-maxX)*edgeTolerance:xmaxY?maxY+(y-maxY)*edgeTolerance:yradius&&(point.x=x,point.y=y)),point}:_isArray(snap)?function(p){var i=snap.length,closest=0,minDist=_bigNum,x,y,point,dist;while(--i>-1)point=snap[i],x=point.x-p.x,y=point.y-p.y,dist=x*x+y*y,distmaxX&&(self.minX=maxX,self.maxX=maxX=minX,minX=self.minX),minY>maxY&&(self.minY=maxY,self.maxY=maxY=minY,minY=self.minY),rotationMode&&(self.minRotation=minX,self.maxRotation=maxX),hasBounds=!0),vars.liveSnap&&(snap=vars.liveSnap===!0?vars.snap||{}:vars.liveSnap,snapIsRaw=_isArray(snap)||_isFunction(snap),rotationMode?(snapX=buildSnapFunc(snapIsRaw?snap:snap.rotation,minX,maxX,1),snapY=null):snap.points?snapXY=buildPointSnapFunc(snapIsRaw?snap:snap.points,minX,maxX,minY,maxY,snap.radius,scrollProxy?-1:1):(allowX&&(snapX=buildSnapFunc(snapIsRaw?snap:snap.x||snap.left||snap.scrollLeft,minX,maxX,scrollProxy?-1:1)),allowY&&(snapY=buildSnapFunc(snapIsRaw?snap:snap.y||snap.top||snap.scrollTop,minY,maxY,scrollProxy?-1:1))))},onThrowComplete=function onThrowComplete(){self.isThrowing=!1,_dispatchEvent(self,"throwcomplete","onThrowComplete")},onThrowInterrupt=function onThrowInterrupt(){self.isThrowing=!1},animate=function animate(inertia,forceZeroVelocity){var snap,snapIsRaw,tween,overshootTolerance;if(inertia&&InertiaPlugin){if(inertia===!0){snap=vars.snap||vars.liveSnap||{},snapIsRaw=_isArray(snap)||_isFunction(snap),inertia={resistance:(vars.throwResistance||vars.resistance||1e3)/(rotationMode?10:1)};if(rotationMode)inertia.rotation=_parseInertia(self,snapIsRaw?snap:snap.rotation,maxX,minX,1,forceZeroVelocity);else{allowX&&(inertia[xProp]=_parseInertia(self,snapIsRaw?snap:snap.points||snap.x||snap.left,maxX,minX,scrollProxy?-1:1,forceZeroVelocity||self.lockedAxis==="x")),allowY&&(inertia[yProp]=_parseInertia(self,snapIsRaw?snap:snap.points||snap.y||snap.top,maxY,minY,scrollProxy?-1:1,forceZeroVelocity||self.lockedAxis==="y"));if(snap.points||_isArray(snap)&&_isObject(snap[0]))inertia.linkedProps=xProp+","+yProp,inertia.radius=snap.radius}}self.isThrowing=!0,overshootTolerance=isNaN(vars.overshootTolerance)?vars.edgeResistance===1?0:1-self.edgeResistance+.2:vars.overshootTolerance,inertia.duration||(inertia.duration={max:Math.max(vars.minDuration||0,"maxDuration"in vars?vars.maxDuration:2),min:isNaN(vars.minDuration)?overshootTolerance===0||_isObject(inertia)&&inertia.resistance>1e3?0:.5:vars.minDuration,overshoot:overshootTolerance}),self.tween=tween=gsap.to(scrollProxy||target,{inertia:inertia,data:"_draggable",inherit:!1,onComplete:onThrowComplete,onInterrupt:onThrowInterrupt,onUpdate:vars.fastMode?_dispatchEvent:syncXY,onUpdateParams:vars.fastMode?[self,"onthrowupdate","onThrowUpdate"]:snap&&snap.radius?[!1,!0]:[]}),vars.fastMode||(scrollProxy&&(scrollProxy._skip=!0),tween.render(1e9,!0,!0),syncXY(!0,!0),self.endX=self.x,self.endY=self.y,rotationMode&&(self.endRotation=self.x),tween.play(0),syncXY(!0,!0),scrollProxy&&(scrollProxy._skip=!1))}else hasBounds&&self.applyBounds()},updateMatrix=function updateMatrix(shiftStart){var start=matrix,p;matrix=getGlobalMatrix(target.parentNode,!0),shiftStart&&self.isPressed&&!matrix.equals(start||new Matrix2D)&&(p=start.inverse().apply({x:startPointerX,y:startPointerY}),matrix.apply(p,p),startPointerX=p.x,startPointerY=p.y),matrix.equals(_identityMatrix$1)&&(matrix=null)},recordStartPositions=function recordStartPositions(){var edgeTolerance=1-self.edgeResistance,offsetX=isFixed?_getDocScrollLeft$1(ownerDoc):0,offsetY=isFixed?_getDocScrollTop$1(ownerDoc):0,parsedOrigin,x,y;xyMode&&(gsCache.x=getPropAsNum(xProp,"px")+"px",gsCache.y=getPropAsNum(yProp,"px")+"px",gsCache.renderTransform()),updateMatrix(!1),_point1.x=self.pointerX-offsetX,_point1.y=self.pointerY-offsetY,matrix&&matrix.apply(_point1,_point1),startPointerX=_point1.x,startPointerY=_point1.y,dirty&&(setPointerPosition(self.pointerX,self.pointerY),render(!0)),innerMatrix=getGlobalMatrix(target),scrollProxy?(calculateBounds(),startElementY=scrollProxy.top(),startElementX=scrollProxy.left()):(isTweening()?(syncXY(!0,!0),calculateBounds()):self.applyBounds(),rotationMode?(parsedOrigin=target.ownerSVGElement?[gsCache.xOrigin-target.getBBox().x,gsCache.yOrigin-target.getBBox().y]:(_getComputedStyle(target)[_transformOriginProp$1]||"0 0").split(" "),rotationOrigin=self.rotationOrigin=getGlobalMatrix(target).apply({x:parseFloat(parsedOrigin[0])||0,y:parseFloat(parsedOrigin[1])||0}),syncXY(!0,!0),x=self.pointerX-rotationOrigin.x-offsetX,y=rotationOrigin.y-self.pointerY+offsetY,startElementX=self.x,startElementY=self.y=Math.atan2(y,x)*_RAD2DEG):(startElementY=getPropAsNum(yProp,"px"),startElementX=getPropAsNum(xProp,"px"))),hasBounds&&edgeTolerance&&(startElementX>maxX?startElementX=maxX+(startElementX-maxX)/edgeTolerance:startElementXmaxY?startElementY=maxY+(startElementY-maxY)/edgeTolerance:startElementY2)?!1:allowX?"y":"x",isPreventingDefault=!allowNativeTouchScrolling&&!self.allowEventDefault,isPreventingDefault&&(_preventDefault(e),_addListener(_win$1,"touchforcechange",_preventDefault)),e.changedTouches?(e=touch=e.changedTouches[0],touchID=e.identifier):e.pointerId?touchID=e.pointerId:touch=touchID=null,_dragCount++,_addToRenderQueue(render),startPointerY=self.pointerY=e.pageY,startPointerX=self.pointerX=e.pageX,_dispatchEvent(self,"pressInit","onPressInit"),(allowNativeTouchScrolling||self.autoScroll)&&_recordMaxScrolls(target.parentNode),target.parentNode&&self.autoScroll&&!scrollProxy&&!rotationMode&&target.parentNode._gsMaxScrollX&&!_placeholderDiv.parentNode&&!target.getBBox&&(_placeholderDiv.style.width=target.parentNode.scrollWidth+"px",target.parentNode.appendChild(_placeholderDiv)),recordStartPositions(),self.tween&&self.tween.kill(),self.isThrowing=!1,gsap.killTweensOf(scrollProxy||target,killProps,!0),scrollProxy&&gsap.killTweensOf(target,{scrollTo:1},!0),self.tween=self.lockedAxis=null;if(vars.zIndexBoost||!rotationMode&&!scrollProxy&&vars.zIndexBoost!==!1)target.style.zIndex=Draggable.zIndex++;self.isPressed=!0,hasDragCallback=!!vars.onDrag||!!self._listeners.drag,hasMoveCallback=!!vars.onMove||!!self._listeners.move;if(vars.cursor!==!1||vars.activeCursor){i=triggers.length;while(--i>-1)gsap.set(triggers[i],{cursor:vars.activeCursor||vars.cursor||(_defaultCursor==="grab"?"grabbing":_defaultCursor)})}_dispatchEvent(self,"press","onPress")},onMove=function onMove(e){var originalEvent=e,touches,pointerX,pointerY,i,dx,dy;if(!enabled||_isMultiTouching||!self.isPressed||!e){isPreventingDefault&&e&&enabled&&_preventDefault(e);return}self.pointerEvent=e,touches=e.changedTouches;if(touches){e=touches[0];if(e!==touch&&e.identifier!==touchID){i=touches.length;while(--i>-1&&(e=touches[i]).identifier!==touchID&&e.target!==target);if(i<0)return}}else if(e.pointerId&&touchID&&e.pointerId!==touchID)return;if(touchEventTarget&&allowNativeTouchScrolling&&!touchDragAxis){_point1.x=e.pageX-(isFixed?_getDocScrollLeft$1(ownerDoc):0),_point1.y=e.pageY-(isFixed?_getDocScrollTop$1(ownerDoc):0),matrix&&matrix.apply(_point1,_point1),pointerX=_point1.x,pointerY=_point1.y,dx=Math.abs(pointerX-startPointerX),dy=Math.abs(pointerY-startPointerY);if(dx!==dy&&(dx>minimumMovement||dy>minimumMovement)||_isAndroid&&allowNativeTouchScrolling===touchDragAxis){touchDragAxis=dx>dy&&allowX?"x":"y",allowNativeTouchScrolling&&touchDragAxis!==allowNativeTouchScrolling&&_addListener(_win$1,"touchforcechange",_preventDefault),self.vars.lockAxisOnTouchScroll!==!1&&allowX&&allowY&&(self.lockedAxis=touchDragAxis==="x"?"y":"x",_isFunction(self.vars.onLockAxis)&&self.vars.onLockAxis.call(self,originalEvent));if(_isAndroid&&allowNativeTouchScrolling===touchDragAxis){onRelease(originalEvent);return}}}!self.allowEventDefault&&(!allowNativeTouchScrolling||touchDragAxis&&allowNativeTouchScrolling!==touchDragAxis)&&originalEvent.cancelable!==!1?(_preventDefault(originalEvent),isPreventingDefault=!0):isPreventingDefault&&(isPreventingDefault=!1),self.autoScroll&&(checkAutoScrollBounds=!0),setPointerPosition(e.pageX,e.pageY,hasMoveCallback)},setPointerPosition=function setPointerPosition(pointerX,pointerY,invokeOnMove){var dragTolerance=1-self.dragResistance,edgeTolerance=1-self.edgeResistance,prevPointerX=self.pointerX,prevPointerY=self.pointerY,prevStartElementY=startElementY,prevX=self.x,prevY=self.y,prevEndX=self.endX,prevEndY=self.endY,prevEndRotation=self.endRotation,prevDirty=dirty,xChange,yChange,x,y,dif,temp;self.pointerX=pointerX,self.pointerY=pointerY,isFixed&&(pointerX-=_getDocScrollLeft$1(ownerDoc),pointerY-=_getDocScrollTop$1(ownerDoc)),rotationMode?(y=Math.atan2(rotationOrigin.y-pointerY,pointerX-rotationOrigin.x)*_RAD2DEG,dif=self.y-y,dif>180?(startElementY-=360,self.y=y):dif<-180&&(startElementY+=360,self.y=y),self.x!==startElementX||Math.abs(startElementY-y)>minimumMovement?(self.y=y,x=startElementX+(startElementY-y)*dragTolerance):x=startElementX):(matrix&&(temp=pointerX*matrix.a+pointerY*matrix.c+matrix.e,pointerY=pointerX*matrix.b+pointerY*matrix.d+matrix.f,pointerX=temp),yChange=pointerY-startPointerY,xChange=pointerX-startPointerX,yChange-minimumMovement&&(yChange=0),xChange-minimumMovement&&(xChange=0),(self.lockAxis||self.lockedAxis)&&(xChange||yChange)&&(temp=self.lockedAxis,temp||(self.lockedAxis=temp=allowX&&Math.abs(xChange)>Math.abs(yChange)?"y":allowY?"x":null,temp&&_isFunction(self.vars.onLockAxis)&&self.vars.onLockAxis.call(self,self.pointerEvent)),temp==="y"?yChange=0:temp==="x"&&(xChange=0)),x=_round(startElementX+xChange*dragTolerance),y=_round(startElementY+yChange*dragTolerance)),(snapX||snapY||snapXY)&&(self.x!==x||self.y!==y&&!rotationMode)&&(snapXY&&(_temp1.x=x,_temp1.y=y,temp=snapXY(_temp1),x=_round(temp.x),y=_round(temp.y)),snapX&&(x=_round(snapX(x))),snapY&&(y=_round(snapY(y)))),hasBounds&&(x>maxX?x=maxX+Math.round((x-maxX)*edgeTolerance):xmaxY?y=Math.round(maxY+(y-maxY)*edgeTolerance):y2),placeholderDelayedCall=gsap.delayedCall(.001,removePlaceholder),touches,i,syntheticEvent,eventTarget,syntheticClick;touchEventTarget?(_removeListener(touchEventTarget,"touchend",onRelease),_removeListener(touchEventTarget,"touchmove",onMove),_removeListener(touchEventTarget,"touchcancel",onRelease),_removeListener(ownerDoc,"touchstart",_onMultiTouchDocument)):_removeListener(ownerDoc,"mousemove",onMove),_removeListener(_win$1,"touchforcechange",_preventDefault);if(!_supportsPointer||!touchEventTarget)_removeListener(ownerDoc,"mouseup",onRelease),e&&e.target&&_removeListener(e.target,"mouseup",onRelease);dirty=!1,wasDragging&&(dragEndTime=_lastDragTime=_getTime(),self.isDragging=!1),_removeFromRenderQueue(render);if(isClicking&&!isContextMenuRelease){e&&(_removeListener(e.target,"change",onRelease),self.pointerEvent=originalEvent),_setSelectable(triggers,!1),_dispatchEvent(self,"release","onRelease"),_dispatchEvent(self,"click","onClick"),isClicking=!1;return}i=triggers.length;while(--i>-1)_setStyle(triggers[i],"cursor",vars.cursor||(vars.cursor!==!1?_defaultCursor:null));_dragCount--;if(e){touches=e.changedTouches;if(touches){e=touches[0];if(e!==touch&&e.identifier!==touchID){i=touches.length;while(--i>-1&&(e=touches[i]).identifier!==touchID&&e.target!==target);if(i<0&&!force)return}}self.pointerEvent=originalEvent,self.pointerX=e.pageX,self.pointerY=e.pageY}return isContextMenuRelease&&originalEvent?(_preventDefault(originalEvent),isPreventingDefault=!0,_dispatchEvent(self,"release","onRelease")):originalEvent&&!wasDragging?(isPreventingDefault=!1,interrupted&&(vars.snap||vars.bounds)&&animate(vars.inertia||vars.throwProps),_dispatchEvent(self,"release","onRelease"),(!_isAndroid||originalEvent.type!=="touchmove")&&originalEvent.type.indexOf("cancel")===-1&&(_dispatchEvent(self,"click","onClick"),_getTime()-clickTime<300&&_dispatchEvent(self,"doubleclick","onDoubleClick"),eventTarget=originalEvent.target||target,clickTime=_getTime(),syntheticClick=function syntheticClick(){clickTime!==clickDispatch&&self.enabled()&&!self.isPressed&&!originalEvent.defaultPrevented&&(eventTarget.click?eventTarget.click():ownerDoc.createEvent&&(syntheticEvent=ownerDoc.createEvent("MouseEvents"),syntheticEvent.initMouseEvent("click",!0,!0,_win$1,1,self.pointerEvent.screenX,self.pointerEvent.screenY,self.pointerX,self.pointerY,!1,!1,!1,!1,0,null),eventTarget.dispatchEvent(syntheticEvent)))},!_isAndroid&&!originalEvent.defaultPrevented&&gsap.delayedCall(.05,syntheticClick))):(animate(vars.inertia||vars.throwProps),!self.allowEventDefault&&originalEvent&&(vars.dragClickables!==!1||!isClickable.call(self,originalEvent.target))&&wasDragging&&(!allowNativeTouchScrolling||touchDragAxis&&allowNativeTouchScrolling===touchDragAxis)&&originalEvent.cancelable!==!1?(isPreventingDefault=!0,_preventDefault(originalEvent)):isPreventingDefault=!1,_dispatchEvent(self,"release","onRelease")),isTweening()&&placeholderDelayedCall.duration(self.tween.duration()),wasDragging&&_dispatchEvent(self,"dragend","onDragEnd"),!0},updateScroll=function updateScroll(e){if(e&&self.isDragging&&!scrollProxy){var parent=e.target||target.parentNode,deltaX=parent.scrollLeft-parent._gsScrollX,deltaY=parent.scrollTop-parent._gsScrollY;if(deltaX||deltaY)matrix?(startPointerX-=deltaX*matrix.a+deltaY*matrix.c,startPointerY-=deltaY*matrix.d+deltaX*matrix.b):(startPointerX-=deltaX,startPointerY-=deltaY),parent._gsScrollX+=deltaX,parent._gsScrollY+=deltaY,setPointerPosition(self.pointerX,self.pointerY)}},onClick=function onClick(e){var time=_getTime(),recentlyClicked=time-clickTime<100,recentlyDragged=time-dragEndTime<50,alreadyDispatched=recentlyClicked&&clickDispatch===clickTime,defaultPrevented=self.pointerEvent&&self.pointerEvent.defaultPrevented,alreadyDispatchedTrusted=recentlyClicked&&trustedClickDispatch===clickTime,trusted=e.isTrusted||e.isTrusted==null&&recentlyClicked&&alreadyDispatched;(alreadyDispatched||recentlyDragged&&self.vars.suppressClickOnDrag!==!1)&&e.stopImmediatePropagation&&e.stopImmediatePropagation();if(recentlyClicked&&(!self.pointerEvent||!self.pointerEvent.defaultPrevented)&&(!alreadyDispatched||trusted&&!alreadyDispatchedTrusted)){trusted&&alreadyDispatched&&(trustedClickDispatch=clickTime),clickDispatch=clickTime;return}(self.isPressed||recentlyDragged||recentlyClicked)&&(!trusted||!e.detail||!recentlyClicked||defaultPrevented)&&_preventDefault(e),!recentlyClicked&&!recentlyDragged&&!dragged&&(e&&e.target&&(self.pointerEvent=e),_dispatchEvent(self,"click","onClick"))},localizePoint=function localizePoint(p){return matrix?{x:p.x*matrix.a+p.y*matrix.c+matrix.e,y:p.x*matrix.b+p.y*matrix.d+matrix.f}:{x:p.x,y:p.y}};return old=Draggable.get(target),old&&old.kill(),_this2.startDrag=function(event,align){var r1,r2,p1,p2;onPress(event||self.pointerEvent,!0),align&&!self.hitTest(event||self.pointerEvent)&&(r1=_parseRect(event||self.pointerEvent),r2=_parseRect(target),p1=localizePoint({x:r1.left+r1.width/2,y:r1.top+r1.height/2}),p2=localizePoint({x:r2.left+r2.width/2,y:r2.top+r2.height/2}),startPointerX-=p1.x-p2.x,startPointerY-=p1.y-p2.y),self.isDragging||(self.isDragging=dragged=!0,_dispatchEvent(self,"dragstart","onDragStart"))},_this2.drag=onMove,_this2.endDrag=function(e){return onRelease(e||self.pointerEvent,!0)},_this2.timeSinceDrag=function(){return self.isDragging?0:(_getTime()-dragEndTime)/1e3},_this2.timeSinceClick=function(){return(_getTime()-clickTime)/1e3},_this2.hitTest=function(target,threshold){return Draggable.hitTest(self.target,target,threshold)},_this2.getDirection=function(from,diagonalThreshold){var mode=from==="velocity"&&InertiaPlugin?from:_isObject(from)&&!rotationMode?"element":"start",xChange,yChange,ratio,direction,r1,r2;return mode==="element"&&(r1=_parseRect(self.target),r2=_parseRect(from)),xChange=mode==="start"?self.x-startElementX:mode==="velocity"?InertiaPlugin.getVelocity(target,xProp):r1.left+r1.width/2-(r2.left+r2.width/2),rotationMode?xChange<0?"counter-clockwise":"clockwise":(diagonalThreshold=diagonalThreshold||2,yChange=mode==="start"?self.y-startElementY:mode==="velocity"?InertiaPlugin.getVelocity(target,yProp):r1.top+r1.height/2-(r2.top+r2.height/2),ratio=Math.abs(xChange/yChange),direction=ratio<1/diagonalThreshold?"":xChange<0?"left":"right",ratiomaxX?x=maxX:xmaxY?y=maxY:yparent._gsMaxScrollY&&(parent.scrollTop=parent._gsMaxScrollY),allowX&&parent.scrollLeft>parent._gsMaxScrollX&&(parent.scrollLeft=parent._gsMaxScrollX),e=parent}}self.isThrowing&&(forceZeroVelocity||self.endX>maxX||self.endXmaxY||self.endY.01||allowY&&Math.abs(y-self.y)>.01&&!rotationMode)&&recordStartPositions(),self.autoScroll&&(_recordMaxScrolls(target.parentNode,self.isDragging),checkAutoScrollBounds=self.isDragging,render(!0),_removeScrollListener(target,updateScroll),_addScrollListener(target,updateScroll)),self},_this2.enable=function(type){var setVars={lazy:!0},id,i,trigger;vars.cursor!==!1&&(setVars.cursor=vars.cursor||_defaultCursor),gsap.utils.checkPrefix("touchCallout")&&(setVars.touchCallout="none");if(type!=="soft"){_setTouchActionForAllDescendants(triggers,allowX===allowY?"none":vars.allowNativeTouchScrolling&&target.scrollHeight===target.clientHeight==(target.scrollWidth===target.clientHeight)||vars.allowEventDefault?"manipulation":allowX?"pan-y":"pan-x"),i=triggers.length;while(--i>-1)trigger=triggers[i],_supportsPointer||_addListener(trigger,"mousedown",onPress),_addListener(trigger,"touchstart",onPress),_addListener(trigger,"click",onClick,!0),gsap.set(trigger,setVars),trigger.getBBox&&trigger.ownerSVGElement&&allowX!==allowY&&gsap.set(trigger.ownerSVGElement,{touchAction:vars.allowNativeTouchScrolling||vars.allowEventDefault?"manipulation":allowX?"pan-y":"pan-x"}),vars.allowContextMenu||_addListener(trigger,"contextmenu",onContextMenu);_setSelectable(triggers,!1)}return _addScrollListener(target,updateScroll),enabled=!0,InertiaPlugin&&type!=="soft"&&InertiaPlugin.track(scrollProxy||target,xyMode?"x,y":rotationMode?"rotation":"top,left"),target._gsDragID=id="d"+_lookupCount++,_lookup[id]=self,scrollProxy&&(scrollProxy.enable(),scrollProxy.element._gsDragID=id),(vars.bounds||rotationMode)&&recordStartPositions(),vars.bounds&&self.applyBounds(),self},_this2.disable=function(type){var dragging=self.isDragging,i=triggers.length,trigger;while(--i>-1)_setStyle(triggers[i],"cursor",null);if(type!=="soft"){_setTouchActionForAllDescendants(triggers,null),i=triggers.length;while(--i>-1)trigger=triggers[i],_setStyle(trigger,"touchCallout",null),_removeListener(trigger,"mousedown",onPress),_removeListener(trigger,"touchstart",onPress),_removeListener(trigger,"click",onClick,!0),_removeListener(trigger,"contextmenu",onContextMenu);_setSelectable(triggers,!0),touchEventTarget&&(_removeListener(touchEventTarget,"touchcancel",onRelease),_removeListener(touchEventTarget,"touchend",onRelease),_removeListener(touchEventTarget,"touchmove",onMove)),_removeListener(ownerDoc,"mouseup",onRelease),_removeListener(ownerDoc,"mousemove",onMove)}return _removeScrollListener(target,updateScroll),enabled=!1,InertiaPlugin&&type!=="soft"&&(InertiaPlugin.untrack(scrollProxy||target,xyMode?"x,y":rotationMode?"rotation":"top,left"),self.tween&&self.tween.kill()),scrollProxy&&scrollProxy.disable(),_removeFromRenderQueue(render),self.isDragging=self.isPressed=isClicking=!1,dragging&&_dispatchEvent(self,"dragend","onDragEnd"),self},_this2.enabled=function(value,type){return arguments.length?value?self.enable(type):self.disable(type):enabled},_this2.kill=function(){return self.isThrowing=!1,self.tween&&self.tween.kill(),self.disable(),gsap.set(triggers,{clearProps:"userSelect"}),delete _lookup[target._gsDragID],self},_this2.revert=function(){this.kill(),this.styles&&this.styles.revert()},~type.indexOf("scroll")&&(scrollProxy=_this2.scrollProxy=new ScrollProxy(target,_extend({onKill:function onKill(){self.isPressed&&onRelease(null)}},vars)),target.style.overflowY=allowY&&!_isTouchDevice?"auto":"hidden",target.style.overflowX=allowX&&!_isTouchDevice?"auto":"hidden",target=scrollProxy.content),rotationMode?killProps.rotation=1:(allowX&&(killProps[xProp]=1),allowY&&(killProps[yProp]=1)),gsCache.force3D="force3D"in vars?vars.force3D:!0,_context(_assertThisInitialized(_this2)),_this2.enable(),_this2}return _inheritsLoose(Draggable,_EventDispatcher),Draggable.register=function register(core){gsap=core,_initCore()},Draggable.create=function create(targets,vars){return _coreInitted||_initCore(!0),_toArray(targets).map(function(target){return new Draggable(target,vars)})},Draggable.get=function get(target){return _lookup[(_toArray(target)[0]||{})._gsDragID]},Draggable.timeSinceDrag=function timeSinceDrag(){return(_getTime()-_lastDragTime)/1e3},Draggable.hitTest=function hitTest(obj1,obj2,threshold){if(obj1===obj2)return!1;var r1=_parseRect(obj1),r2=_parseRect(obj2),top=r1.top,left=r1.left,right=r1.right,bottom=r1.bottom,width=r1.width,height=r1.height,isOutside=r2.left>right||r2.rightbottom||r2.bottom=width*height*threshold||area>=r2.width*r2.height*threshold):overlap.width>threshold&&overlap.height>threshold)},Draggable}(EventDispatcher);_setDefaults(Draggable.prototype,{pointerX:0,pointerY:0,startX:0,startY:0,deltaX:0,deltaY:0,isDragging:!1,isPressed:!1}),Draggable.zIndex=1e3,Draggable.version="3.12.5",_getGSAP()&&gsap.registerPlugin(Draggable),exports.Draggable=Draggable,exports.default=Draggable,typeof window=="undefined"||window!==exports?Object.defineProperty(exports,"__esModule",{value:!0}):delete window.default}),+function($){"use strict";var Collapse=function(element,options){this.$element=$(element),this.options=$.extend({},Collapse.DEFAULTS,options),this.transitioning=null,this.options.parent&&(this.$parent=$(this.options.parent)),this.options.toggle&&this.toggle()};Collapse.DEFAULTS={toggle:!0},Collapse.prototype.dimension=function(){var hasWidth=this.$element.hasClass("width");return hasWidth?"width":"height"},Collapse.prototype.show=function(){if(this.transitioning||this.$element.hasClass("in"))return;var startEvent=$.Event("show.bs.collapse");this.$element.trigger(startEvent);if(startEvent.isDefaultPrevented())return;var actives=this.$parent&&this.$parent.find("> .panel > .in");if(actives&&actives.length){var hasData=actives.data("bs.collapse");if(hasData&&hasData.transitioning)return;var parentNoToggle=this.$parent.data("no-toggle");parentNoToggle||actives.collapse("hide"),hasData||actives.data("bs.collapse",null)}var dimension=this.dimension();this.$element.removeClass("collapse").addClass("collapsing")[dimension](0),this.transitioning=1;var complete=function(e){if(e&&e.target!=this.$element[0])return;this.$element.removeClass("collapsing").addClass("collapse in")[dimension]("auto"),this.transitioning=0,this.$element.trigger("shown.bs.collapse")};if(!$.support.transition)return complete.call(this);var scrollSize=$.camelCase(["scroll",dimension].join("-"));this.$element.one($.support.transition.end,$.proxy(complete,this)).emulateTransitionEnd(350)[dimension](this.$element[0][scrollSize])},Collapse.prototype.hide=function(){if(this.transitioning||!this.$element.hasClass("in"))return;var startEvent=$.Event("hide.bs.collapse");this.$element.trigger(startEvent);if(startEvent.isDefaultPrevented())return;var dimension=this.dimension();this.$element[dimension](this.$element[dimension]())[0].offsetHeight,this.$element.addClass("collapsing").removeClass("collapse").removeClass("in"),this.transitioning=1;var complete=function(e){if(e&&e.target!=this.$element[0])return;this.transitioning=0,this.$element.trigger("hidden.bs.collapse").removeClass("collapsing").addClass("collapse")};if(!$.support.transition)return complete.call(this);this.$element[dimension](0).one($.support.transition.end,$.proxy(complete,this)).emulateTransitionEnd(350)},Collapse.prototype.toggle=function(){this[this.$element.hasClass("in")?"hide":"show"]()};var old=$.fn.collapse;$.fn.collapse=function(option){return this.each(function(){var $this=$(this),data=$this.data("bs.collapse"),options=$.extend({},Collapse.DEFAULTS,$this.data(),typeof option=="object"&&option);!data&&options.toggle&&option=="show"&&(option=!option),data||$this.data("bs.collapse",data=new Collapse(this,options)),typeof option=="string"&&data[option]()})},$.fn.collapse.Constructor=Collapse,$.fn.collapse.noConflict=function(){return $.fn.collapse=old,this},$(document).on("click.bs.collapse.data-api",'[data-toggle="collapse"]',function(e){var $this=$(this),href,target=$this.attr("data-target")||e.preventDefault()||(href=$this.attr("href"))&&href.replace(/.*(?=#[^\s]+$)/,""),_target=href.replace(/^#/,"");if($('[data-id="'+_target+'"]').length)var $target=$('[data-id="'+_target+'"]');else var $target=$(target);var data=$target.data("bs.collapse"),option=data?"toggle":$this.data(),parent=$this.attr("data-parent"),$parent=parent&&$(parent);if(!data||!data.transitioning)$parent&&$parent.find('[data-toggle="collapse"][data-parent="'+parent+'"]').not($this).addClass("collapsed"),$this[$target.hasClass("in")?"addClass":"removeClass"]("collapsed");$target.collapse(option)})}(jQuery),+function($){"use strict";var Tab=function(element){this.element=$(element)};Tab.prototype.show=function(){var $this=this.element,$ul=$this.closest("ul:not(.dropdown-menu)"),selector=$this.data("target");selector||(selector=$this.attr("href"),selector=selector&&selector.replace(/.*(?=#[^\s]*$)/,""));if($this.parent("li").hasClass("active"))return;var previous=$ul.find(".active:last a")[0],e=$.Event("show.bs.tab",{relatedTarget:previous});$this.trigger(e);if(e.isDefaultPrevented())return;var _target=selector.replace(/^#/,"");if($('[data-id="'+_target+'"]').length)var $target=$('[data-id="'+_target+'"]');else var $target=$(selector);this.activate($this.parent("li"),$ul),this.activate($target,$target.parent(),function(){$this.trigger({type:"shown.bs.tab",relatedTarget:previous})})},Tab.prototype.activate=function(element,container,callback){function next(){$active.removeClass("active").find("> .dropdown-menu > .active").removeClass("active"),$active.find(".tab-excerpt").slideUp(),element.addClass("active"),$(".tab-excerpt",element).slideDown(),element[0].offsetWidth,element.add($active).addClass("in"),element.parent(".dropdown-menu")&&element.closest("li.dropdown").addClass("active"),element.is("li")||element.closest(".tab-content").find("> .active").not(element).removeClass("active"),callback&&callback()}var $active=container.find("> .active").add(container.find("> .active > .active")),transition=callback&&$.support.transition&&$active.hasClass("fade");transition?$active.one($.support.transition.end,next).emulateTransitionEnd(150):next(),$active.removeClass("in")};var old=$.fn.tab;$.fn.tab=function(option){return this.each(function(){var $this=$(this),data=$this.data("bs.tab");data||$this.data("bs.tab",data=new Tab(this)),typeof option=="string"&&data[option]()})},$.fn.tab.Constructor=Tab,$.fn.tab.noConflict=function(){return $.fn.tab=old,this},$(document).on("click.bs.tab.data-api",'[data-toggle="tab"], [data-toggle="pill"]',function(e){e.preventDefault(),$(this).tab("show")})}(jQuery),+function($){"use strict";var Tooltip=function(element,options){this.type=this.options=this.enabled=this.timeout=this.hoverState=this.$element=null,this.init("tooltip",element,options)};Tooltip.DEFAULTS={animation:!0,placement:"top",selector:!1,template:'',trigger:"hover focus",title:"",delay:0,html:!1,container:!1,viewport:{selector:"body",padding:0}},Tooltip.prototype.init=function(type,element,options){this.enabled=!0,this.type=type,this.$element=$(element),this.options=this.getOptions(options),this.$viewport=this.options.viewport&&$(this.options.viewport.selector||this.options.viewport);var triggers=this.options.trigger.split(" ");for(var i=triggers.length;i--;){var trigger=triggers[i];if(trigger=="click")this.$element.on("click."+this.type,this.options.selector,$.proxy(this.toggle,this));else if(trigger!="manual"){var eventIn=trigger=="hover"?"mouseenter":"focusin",eventOut=trigger=="hover"?"mouseleave":"focusout";this.$element.on(eventIn+"."+this.type,this.options.selector,$.proxy(this.enter,this)),this.$element.on(eventOut+"."+this.type,this.options.selector,$.proxy(this.leave,this))}}this.options.selector?this._options=$.extend({},this.options,{trigger:"manual",selector:""}):this.fixTitle()},Tooltip.prototype.getDefaults=function(){return Tooltip.DEFAULTS},Tooltip.prototype.getOptions=function(options){return options=$.extend({},this.getDefaults(),this.$element.data(),options),options.delay&&typeof options.delay=="number"&&(options.delay={show:options.delay,hide:options.delay}),options},Tooltip.prototype.getDelegateOptions=function(){var options={},defaults=this.getDefaults();return this._options&&$.each(this._options,function(key,value){defaults[key]!=value&&(options[key]=value)}),options},Tooltip.prototype.enter=function(obj){var self=obj instanceof this.constructor?obj:$(obj.currentTarget)[this.type](this.getDelegateOptions()).data("bs."+this.type);clearTimeout(self.timeout),self.hoverState="in";if(!self.options.delay||!self.options.delay.show)return self.show();self.timeout=setTimeout(function(){self.hoverState=="in"&&self.show()},self.options.delay.show)},Tooltip.prototype.leave=function(obj){var self=obj instanceof this.constructor?obj:$(obj.currentTarget)[this.type](this.getDelegateOptions()).data("bs."+this.type);clearTimeout(self.timeout),self.hoverState="out";if(!self.options.delay||!self.options.delay.hide)return self.hide();self.timeout=setTimeout(function(){self.hoverState=="out"&&self.hide()},self.options.delay.hide)},Tooltip.prototype.show=function(){var e=$.Event("show.bs."+this.type);if(this.hasContent()&&this.enabled){this.$element.trigger(e);if(e.isDefaultPrevented())return;var that=this,$tip=this.tip();this.setContent(),this.options.animation&&$tip.addClass("fade");var placement=typeof this.options.placement=="function"?this.options.placement.call(this,$tip[0],this.$element[0]):this.options.placement,autoToken=/\s?auto?\s?/i,autoPlace=autoToken.test(placement);autoPlace&&(placement=placement.replace(autoToken,"")||"top"),$tip.detach().css({top:0,left:0,display:"block"}).addClass(placement),this.options.container?$tip.appendTo($(document).find(this.options.container)):$tip.insertAfter(this.$element);var pos=this.getPosition(),actualWidth=$tip[0].offsetWidth,actualHeight=$tip[0].offsetHeight;if(autoPlace){var orgPlacement=placement,$parent=this.$element.parent(),parentDim=this.getPosition($parent);placement=placement=="bottom"&&pos.top+pos.height+actualHeight-parentDim.scroll>parentDim.height?"top":placement=="top"&&pos.top-parentDim.scroll-actualHeight<0?"bottom":placement=="right"&&pos.right+actualWidth>parentDim.width?"left":placement=="left"&&pos.left-actualWidthviewportDimensions.top+viewportDimensions.height&&(delta.top=viewportDimensions.top+viewportDimensions.height-bottomEdgeOffset)}else{var leftEdgeOffset=pos.left-viewportPadding,rightEdgeOffset=pos.left+viewportPadding+actualWidth;leftEdgeOffsetviewportDimensions.width&&(delta.left=viewportDimensions.left+viewportDimensions.width-rightEdgeOffset)}return delta},Tooltip.prototype.getTitle=function(){var title,$e=this.$element,o=this.options;return title=$e.attr("data-original-title")||(typeof o.title=="function"?o.title.call($e[0]):o.title),title},Tooltip.prototype.tip=function(){return this.$tip=this.$tip||$(this.options.template)},Tooltip.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".tooltip-arrow")},Tooltip.prototype.validate=function(){this.$element[0].parentNode||(this.hide(),this.$element=null,this.options=null)},Tooltip.prototype.enable=function(){this.enabled=!0},Tooltip.prototype.disable=function(){this.enabled=!1},Tooltip.prototype.toggleEnabled=function(){this.enabled=!this.enabled},Tooltip.prototype.toggle=function(e){var self=e?$(e.currentTarget)[this.type](this.getDelegateOptions()).data("bs."+this.type):this;self.tip().hasClass("in")?self.leave(self):self.enter(self)},Tooltip.prototype.destroy=function(){clearTimeout(this.timeout),this.hide().$element.off("."+this.type).removeData("bs."+this.type)};var old=$.fn.tooltip;$.fn.tooltip=function(option){return this.each(function(){var $this=$(this),data=$this.data("bs.tooltip"),options=typeof option=="object"&&option;if(!data&&option=="destroy")return;data||$this.data("bs.tooltip",data=new Tooltip(this,options)),typeof option=="string"&&data[option]()})},$.fn.tooltip.Constructor=Tooltip,$.fn.tooltip.noConflict=function(){return $.fn.tooltip=old,this}}(jQuery),+function($){"use strict";function transitionEnd(){var el=document.createElement("bootstrap"),transEndEventNames={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"};for(var name in transEndEventNames)if(el.style[name]!==undefined)return{end:transEndEventNames[name]};return!1}$.fn.emulateTransitionEnd=function(duration){var called=!1,$el=this;$(this).one($.support.transition.end,function(){called=!0});var callback=function(){called||$($el).trigger($.support.transition.end)};return setTimeout(callback,duration),this},$(function(){$.support.transition=transitionEnd()})}(jQuery),function(root,factory){typeof define=="function"&&define.amd?define([],factory):typeof module=="object"&&module.exports?module.exports=factory():root.Rellax=factory()}(typeof window!="undefined"?window:global,function(){var Rellax=function(el,options){"use strict";function validateCustomBreakpoints(){if(self.options.breakpoints.length===3&&Array.isArray(self.options.breakpoints)){var isAscending=!0,isNumerical=!0,lastVal;self.options.breakpoints.forEach(function(i){typeof i!="number"&&(isNumerical=!1),lastVal!==null&&i0){self.elems=elements;if(self.options.wrapper&&!self.options.wrapper.nodeType){var wrapper=document.querySelector(self.options.wrapper);if(!wrapper){console.warn("Rellax: The wrapper you're trying to use doesn't exist.");return}self.options.wrapper=wrapper}var currentBreakpoint,getCurrentBreakpoint=function(w){var bp=self.options.breakpoints;return w=bp[0]&&w=bp[1]&&w=blocks[i].max?blocks[i].max:positionY),self.options.horizontal&&!self.options.vertical&&(positionX=positionX>=blocks[i].max?blocks[i].max:positionX)),blocks[i].maxY!=null&&(positionY=positionY>=blocks[i].maxY?blocks[i].maxY:positionY),blocks[i].maxX!=null&&(positionX=positionX>=blocks[i].maxX?blocks[i].maxX:positionX);var zindex=blocks[i].zindex,translate="translate3d("+(self.options.horizontal?positionX:"0")+"px,"+(self.options.vertical?positionY:"0")+"px,"+zindex+"px) "+blocks[i].transform;self.elems[i].style[transformProp]=translate}self.options.callback(positions)};return self.destroy=function(){for(var i=0;i=this.duration)throw new Error("Vivus [constructor]: delay must be shorter than duration")},Vivus.prototype.setCallback=function(callback){if(!!callback&&callback.constructor!==Function)throw new Error('Vivus [constructor]: "callback" parameter must be a function');this.callback=callback||function(){}},Vivus.prototype.mapping=function(){var i,paths,path,pAttrs,pathObj,totalLength,lengthMeter,timePoint;timePoint=totalLength=lengthMeter=0,paths=this.el.querySelectorAll("path");for(i=0;i1?paths.length-1:1),this.reverseStack&&this.map.reverse();for(i=0;i=this.frameLength)){this.trace(),this.handle=requestAnimFrame(function(){self.drawer()});return}this.stop(),this.currentFrame=this.frameLength,this.trace(),this.selfDestroy&&this.destroy()}this.callback(this),this.instanceCallback&&(this.instanceCallback(this),this.instanceCallback=null)},Vivus.prototype.trace=function(){var i,progress,path,currentFrame;currentFrame=this.animTimingFunction(this.currentFrame/this.frameLength)*this.frameLength;for(i=0;i=scrolled},Vivus.prototype.getViewportH=function(){var client=this.docElem.clientHeight,inner=window.innerHeight;return client=0?output:defaultValue},typeof define=="function"&&define.amd?define([],function(){return Vivus}):typeof exports=="object"?module.exports=Vivus:window.Vivus=Vivus}(),!function(){"use strict";function i(r){var e;e="function"==typeof r?r:r?function(){var r=0,e=0,t=0,a=1,o=(i=4022871197,function(r){r=r.toString();for(var e=0;e>>0,i=(t*=i)>>>0,i+=4294967296*(t-=i)}return 2.3283064365386963e-10*(i>>>0)}),i;r=o(" "),e=o(" "),t=o(" ");for(var n=0;nc?(o=1,i=0):(o=0,i=1);var y=m-o+e,w=c-i+e,g=m-1+2*e,A=c-1+2*e,x=255&d,q=255&p,D=.5-m*m-c*c;if(D>=0){var S=3*n[x+f[q]];v=(D*=D)*D*(s[S]*m+s[S+1]*c)}var U=.5-y*y-w*w;if(U>=0){var b=3*n[x+o+f[q+i]];h=(U*=U)*U*(s[b]*y+s[b+1]*w)}var F=.5-g*g-A*A;if(F>=0){var N=3*n[x+1+f[q+1]];l=(F*=F)*F*(s[N]*g+s[N+1]*A)}return 70*(v+h+l)},noise3D:function(r,e,a){var o,i,n,f,s,v,h,l,u,d,p=this.permMod12,M=this.perm,m=this.grad3,c=(r+e+a)*(1/3),y=Math.floor(r+c),w=Math.floor(e+c),g=Math.floor(a+c),A=(y+w+g)*t,x=r-(y-A),q=e-(w-A),D=a-(g-A);x>=q?q>=D?(s=1,v=0,h=0,l=1,u=1,d=0):x>=D?(s=1,v=0,h=0,l=1,u=0,d=1):(s=0,v=0,h=1,l=1,u=0,d=1):qT?k++:z++,P>_?k++:B++,P>j?k++:E++,T>_?z++:B++,T>j?z++:E++,_>j?B++:E++;var G=P-(l=k>=3?1:0)+o,H=T-(u=z>=3?1:0)+o,I=_-(d=B>=3?1:0)+o,J=j-(p=E>=3?1:0)+o,K=P-(M=k>=2?1:0)+2*o,L=T-(m=z>=2?1:0)+2*o,O=_-(c=B>=2?1:0)+2*o,Q=j-(y=E>=2?1:0)+2*o,R=P-(w=k>=1?1:0)+3*o,V=T-(g=z>=1?1:0)+3*o,W=_-(A=B>=1?1:0)+3*o,X=j-(x=E>=1?1:0)+3*o,Y=P-1+4*o,Z=T-1+4*o,$=_-1+4*o,rr=j-1+4*o,er=255&U,tr=255&b,ar=255&F,or=255&N,ir=.6-P*P-T*T-_*_-j*j;if(ir<0)n=0;else{var nr=q[er+q[tr+q[ar+q[or]]]]%32*4;n=(ir*=ir)*ir*(D[nr]*P+D[nr+1]*T+D[nr+2]*_+D[nr+3]*j)}var fr=.6-G*G-H*H-I*I-J*J;if(fr<0)f=0;else{var sr=q[er+l+q[tr+u+q[ar+d+q[or+p]]]]%32*4;f=(fr*=fr)*fr*(D[sr]*G+D[sr+1]*H+D[sr+2]*I+D[sr+3]*J)}var vr=.6-K*K-L*L-O*O-Q*Q;if(vr<0)s=0;else{var hr=q[er+M+q[tr+m+q[ar+c+q[or+y]]]]%32*4;s=(vr*=vr)*vr*(D[hr]*K+D[hr+1]*L+D[hr+2]*O+D[hr+3]*Q)}var lr=.6-R*R-V*V-W*W-X*X;if(lr<0)v=0;else{var ur=q[er+w+q[tr+g+q[ar+A+q[or+x]]]]%32*4;v=(lr*=lr)*lr*(D[ur]*R+D[ur+1]*V+D[ur+2]*W+D[ur+3]*X)}var dr=.6-Y*Y-Z*Z-$*$-rr*rr;if(dr<0)h=0;else{var pr=q[er+1+q[tr+1+q[ar+1+q[or+1]]]]%32*4;h=(dr*=dr)*dr*(D[pr]*Y+D[pr+1]*Z+D[pr+2]*$+D[pr+3]*rr)}return 27*(n+f+s+v+h)}},i._buildPermutationTable=n,"undefined"!=typeof define&&define.amd&&define(function(){return i}),"undefined"!=typeof exports?exports.SimplexNoise=i:"undefined"!=typeof window&&(window.SimplexNoise=i),"undefined"!=typeof module&&(module.exports=i)}()