UNPKG

various-ui

Version:

This is a test version of the Vue 3 component library

9 lines 352 kB
(function(v,u){typeof exports=="object"&&typeof module!="undefined"?u(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],u):(v=typeof globalThis!="undefined"?globalThis:v||self,u(v.VariousUI={},v.Vue))})(this,function(v,u){"use strict";const Mt=n=>{const e=n.getBoundingClientRect();return{rootY:e.top+window.scrollY,rootX:e.left+window.scrollX,visibleY:e.top,visibleX:e.left,width:e.width,height:e.height}},Co=(n,e,t)=>n<t.min?t.min:n+e>t.max?t.max-e:n;function xe(n){if(n===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}function Ut(n,e){n.prototype=Object.create(e.prototype),n.prototype.constructor=n,n.__proto__=e}/*! * GSAP 3.12.5 * https://gsap.com * * @license Copyright 2008-2024, GreenSock. All rights reserved. * Subject to the terms at https://gsap.com/standard-license or for * Club GSAP members, the agreement issued with that membership. * @author: Jack Doyle, jack@greensock.com */var me={autoSleep:120,force3D:"auto",nullTargetWarn:1,units:{lineHeight:""}},Bu={duration:.5,overwrite:!1,delay:0},wn,ee,j,Fe=1e8,I=1/Fe,Nn=Math.PI*2,po=Nn/4,Ao=0,It=Math.sqrt,Do=Math.cos,_o=Math.sin,K=function(e){return typeof e=="string"},W=function(e){return typeof e=="function"},Te=function(e){return typeof e=="number"},Sn=function(e){return typeof e=="undefined"},ge=function(e){return typeof e=="object"},ae=function(e){return e!==!1},xn=function(){return typeof window!="undefined"},Ju=function(e){return W(e)||K(e)},zt=typeof ArrayBuffer=="function"&&ArrayBuffer.isView||function(){},ue=Array.isArray,Tn=/(?:-?\.?\d|\.)+/gi,Rt=/[-+=.]*\d+[.e\-+]*\d*[e\-+]*\d*/g,Cu=/[-+=.]*\d+[.e-]*\d*[a-z%]*/g,Vn=/[-+=.]*\d+\.?\d*(?:e-|e\+)?\d*/gi,jt=/[+-]=-?[.\d]+/,Lt=/[^,'"\[\]\s]+/gi,go=/^[+\-=e\s\d]*\d+[.\d]*([a-z]*|%)\s*$/i,H,ye,$n,Pn,ce={},en={},Ht,Yt=function(e){return(en=Qe(e,ce))&&oe},On=function(e,t){return console.warn("Invalid property",e,"set to",t,"Missing plugin? gsap.registerPlugin()")},xu=function(e,t){return!t&&console.warn(e)},Wt=function(e,t){return e&&(ce[e]=t)&&en&&(en[e]=t)||ce},Tu=function(){return 0},yo={suppressEvents:!0,isStart:!0,kill:!1},un={suppressEvents:!0,kill:!1},bo={suppressEvents:!0},Mn={},Ue=[],Un={},Xt,de={},In={},qt=30,nn=[],zn="",Rn=function(e){var t=e[0],a,r;if(ge(t)||W(t)||(e=[e]),!(a=(t._gsap||{}).harness)){for(r=nn.length;r--&&!nn[r].targetTest(t););a=nn[r]}for(r=e.length;r--;)e[r]&&(e[r]._gsap||(e[r]._gsap=new ga(e[r],a)))||e.splice(r,1);return e},Ze=function(e){return e._gsap||Rn(Ce(e))[0]._gsap},Gt=function(e,t,a){return(a=e[t])&&W(a)?e[t]():Sn(a)&&e.getAttribute&&e.getAttribute(t)||a},re=function(e,t){return(e=e.split(",")).forEach(t)||e},X=function(e){return Math.round(e*1e5)/1e5||0},Z=function(e){return Math.round(e*1e7)/1e7||0},pu=function(e,t){var a=t.charAt(0),r=parseFloat(t.substr(2));return e=parseFloat(e),a==="+"?e+r:a==="-"?e-r:a==="*"?e*r:e/r},vo=function(e,t){for(var a=t.length,r=0;e.indexOf(t[r])<0&&++r<a;);return r<a},tn=function(){var e=Ue.length,t=Ue.slice(0),a,r;for(Un={},Ue.length=0,a=0;a<e;a++)r=t[a],r&&r._lazy&&(r.render(r._lazy[0],r._lazy[1],!0)._lazy=0)},Kt=function(e,t,a,r){Ue.length&&!ee&&tn(),e.render(t,a,r||ee&&t<0&&(e._initted||e._startAt)),Ue.length&&!ee&&tn()},Zt=function(e){var t=parseFloat(e);return(t||t===0)&&(e+"").match(Lt).length<2?t:K(e)?e.trim():e},Qt=function(e){return e},he=function(e,t){for(var a in t)a in e||(e[a]=t[a]);return e},ko=function(e){return function(t,a){for(var r in a)r in t||r==="duration"&&e||r==="ease"||(t[r]=a[r])}},Qe=function(e,t){for(var a in t)e[a]=t[a];return e},Jt=function n(e,t){for(var a in t)a!=="__proto__"&&a!=="constructor"&&a!=="prototype"&&(e[a]=ge(t[a])?n(e[a]||(e[a]={}),t[a]):t[a]);return e},an=function(e,t){var a={},r;for(r in e)r in t||(a[r]=e[r]);return a},Vu=function(e){var t=e.parent||H,a=e.keyframes?ko(ue(e.keyframes)):he;if(ae(e.inherit))for(;t;)a(e,t.vars.defaults),t=t.parent||t._dp;return e},wo=function(e,t){for(var a=e.length,r=a===t.length;r&&a--&&e[a]===t[a];);return a<0},ea=function(e,t,a,r,i){a===void 0&&(a="_first"),r===void 0&&(r="_last");var o=e[r],s;if(i)for(s=t[i];o&&o[i]>s;)o=o._prev;return o?(t._next=o._next,o._next=t):(t._next=e[a],e[a]=t),t._next?t._next._prev=t:e[r]=t,t._prev=o,t.parent=t._dp=e,t},rn=function(e,t,a,r){a===void 0&&(a="_first"),r===void 0&&(r="_last");var i=t._prev,o=t._next;i?i._next=o:e[a]===t&&(e[a]=o),o?o._prev=i:e[r]===t&&(e[r]=i),t._next=t._prev=t.parent=null},Ie=function(e,t){e.parent&&(!t||e.parent.autoRemoveChildren)&&e.parent.remove&&e.parent.remove(e),e._act=0},Je=function(e,t){if(e&&(!t||t._end>e._dur||t._start<0))for(var a=e;a;)a._dirty=1,a=a.parent;return e},No=function(e){for(var t=e.parent;t&&t.parent;)t._dirty=1,t.totalDuration(),t=t.parent;return e},jn=function(e,t,a,r){return e._startAt&&(ee?e._startAt.revert(un):e.vars.immediateRender&&!e.vars.autoRevert||e._startAt.render(t,!0,r))},So=function n(e){return!e||e._ts&&n(e.parent)},ua=function(e){return e._repeat?Au(e._tTime,e=e.duration()+e._rDelay)*e:0},Au=function(e,t){var a=Math.floor(e/=t);return e&&a===e?a-1:a},on=function(e,t){return(e-t._start)*t._ts+(t._ts>=0?0:t._dirty?t.totalDuration():t._tDur)},sn=function(e){return e._end=Z(e._start+(e._tDur/Math.abs(e._ts||e._rts||I)||0))},ln=function(e,t){var a=e._dp;return a&&a.smoothChildTiming&&e._ts&&(e._start=Z(a._time-(e._ts>0?t/e._ts:((e._dirty?e.totalDuration():e._tDur)-t)/-e._ts)),sn(e),a._dirty||Je(a,e)),e},na=function(e,t){var a;if((t._time||!t._dur&&t._initted||t._start<e._time&&(t._dur||!t.add))&&(a=on(e.rawTime(),t),(!t._dur||Pu(0,t.totalDuration(),a)-t._tTime>I)&&t.render(a,!0)),Je(e,t)._dp&&e._initted&&e._time>=e._dur&&e._ts){if(e._dur<e.duration())for(a=e;a._dp;)a.rawTime()>=0&&a.totalTime(a._tTime),a=a._dp;e._zTime=-I}},be=function(e,t,a,r){return t.parent&&Ie(t),t._start=Z((Te(a)?a:a||e!==H?Be(e,a,t):e._time)+t._delay),t._end=Z(t._start+(t.totalDuration()/Math.abs(t.timeScale())||0)),ea(e,t,"_first","_last",e._sort?"_start":0),Ln(t)||(e._recent=t),r||na(e,t),e._ts<0&&ln(e,e._tTime),e},ta=function(e,t){return(ce.ScrollTrigger||On("scrollTrigger",t))&&ce.ScrollTrigger.create(t,e)},aa=function(e,t,a,r,i){if(Qn(e,t,i),!e._initted)return 1;if(!a&&e._pt&&!ee&&(e._dur&&e.vars.lazy!==!1||!e._dur&&e.vars.lazy)&&Xt!==fe.frame)return Ue.push(e),e._lazy=[i,r],1},xo=function n(e){var t=e.parent;return t&&t._ts&&t._initted&&!t._lock&&(t.rawTime()<0||n(t))},Ln=function(e){var t=e.data;return t==="isFromStart"||t==="isStart"},To=function(e,t,a,r){var i=e.ratio,o=t<0||!t&&(!e._start&&xo(e)&&!(!e._initted&&Ln(e))||(e._ts<0||e._dp._ts<0)&&!Ln(e))?0:1,s=e._rDelay,l=0,m,c,d;if(s&&e._repeat&&(l=Pu(0,e._tDur,t),c=Au(l,s),e._yoyo&&c&1&&(o=1-o),c!==Au(e._tTime,s)&&(i=1-o,e.vars.repeatRefresh&&e._initted&&e.invalidate())),o!==i||ee||r||e._zTime===I||!t&&e._zTime){if(!e._initted&&aa(e,t,r,a,l))return;for(d=e._zTime,e._zTime=t||(a?I:0),a||(a=t&&!d),e.ratio=o,e._from&&(o=1-o),e._time=0,e._tTime=l,m=e._pt;m;)m.r(o,m.d),m=m._next;t<0&&jn(e,t,a,!0),e._onUpdate&&!a&&Ee(e,"onUpdate"),l&&e._repeat&&!a&&e.parent&&Ee(e,"onRepeat"),(t>=e._tDur||t<0)&&e.ratio===o&&(o&&Ie(e,1),!a&&!ee&&(Ee(e,o?"onComplete":"onReverseComplete",!0),e._prom&&e._prom()))}else e._zTime||(e._zTime=t)},Vo=function(e,t,a){var r;if(a>t)for(r=e._first;r&&r._start<=a;){if(r.data==="isPause"&&r._start>t)return r;r=r._next}else for(r=e._last;r&&r._start>=a;){if(r.data==="isPause"&&r._start<t)return r;r=r._prev}},Du=function(e,t,a,r){var i=e._repeat,o=Z(t)||0,s=e._tTime/e._tDur;return s&&!r&&(e._time*=o/e._dur),e._dur=o,e._tDur=i?i<0?1e10:Z(o*(i+1)+e._rDelay*i):o,s>0&&!r&&ln(e,e._tTime=e._tDur*s),e.parent&&sn(e),a||Je(e.parent,e),e},ra=function(e){return e instanceof te?Je(e):Du(e,e._dur)},$o={_start:0,endTime:Tu,totalDuration:Tu},Be=function n(e,t,a){var r=e.labels,i=e._recent||$o,o=e.duration()>=Fe?i.endTime(!1):e._dur,s,l,m;return K(t)&&(isNaN(t)||t in r)?(l=t.charAt(0),m=t.substr(-1)==="%",s=t.indexOf("="),l==="<"||l===">"?(s>=0&&(t=t.replace(/=/,"")),(l==="<"?i._start:i.endTime(i._repeat>=0))+(parseFloat(t.substr(1))||0)*(m?(s<0?i:a).totalDuration()/100:1)):s<0?(t in r||(r[t]=o),r[t]):(l=parseFloat(t.charAt(s-1)+t.substr(s+1)),m&&a&&(l=l/100*(ue(a)?a[0]:a).totalDuration()),s>1?n(e,t.substr(0,s-1),a)+l:o+l)):t==null?o:+t},$u=function(e,t,a){var r=Te(t[1]),i=(r?2:1)+(e<2?0:1),o=t[i],s,l;if(r&&(o.duration=t[1]),o.parent=a,e){for(s=o,l=a;l&&!("immediateRender"in s);)s=l.vars.defaults||{},l=ae(l.vars.inherit)&&l.parent;o.immediateRender=ae(s.immediateRender),e<2?o.runBackwards=1:o.startAt=t[i-1]}return new q(t[0],o,t[i+1])},ze=function(e,t){return e||e===0?t(e):t},Pu=function(e,t,a){return a<e?e:a>t?t:a},ne=function(e,t){return!K(e)||!(t=go.exec(e))?"":t[1]},Po=function(e,t,a){return ze(a,function(r){return Pu(e,t,r)})},Hn=[].slice,ia=function(e,t){return e&&ge(e)&&"length"in e&&(!t&&!e.length||e.length-1 in e&&ge(e[0]))&&!e.nodeType&&e!==ye},Oo=function(e,t,a){return a===void 0&&(a=[]),e.forEach(function(r){var i;return K(r)&&!t||ia(r,1)?(i=a).push.apply(i,Ce(r)):a.push(r)})||a},Ce=function(e,t,a){return j&&!t&&j.selector?j.selector(e):K(e)&&!a&&($n||!gu())?Hn.call((t||Pn).querySelectorAll(e),0):ue(e)?Oo(e,a):ia(e)?Hn.call(e,0):e?[e]:[]},Yn=function(e){return e=Ce(e)[0]||xu("Invalid scope")||{},function(t){var a=e.current||e.nativeElement||e;return Ce(t,a.querySelectorAll?a:a===e?xu("Invalid scope")||Pn.createElement("div"):e)}},oa=function(e){return e.sort(function(){return .5-Math.random()})},sa=function(e){if(W(e))return e;var t=ge(e)?e:{each:e},a=eu(t.ease),r=t.from||0,i=parseFloat(t.base)||0,o={},s=r>0&&r<1,l=isNaN(r)||s,m=t.axis,c=r,d=r;return K(r)?c=d={center:.5,edges:.5,end:1}[r]||0:!s&&l&&(c=r[0],d=r[1]),function(E,h,F){var f=(F||t).length,B=o[f],C,p,A,y,_,b,k,D,g;if(!B){if(g=t.grid==="auto"?0:(t.grid||[1,Fe])[1],!g){for(k=-Fe;k<(k=F[g++].getBoundingClientRect().left)&&g<f;);g<f&&g--}for(B=o[f]=[],C=l?Math.min(g,f)*c-.5:r%g,p=g===Fe?0:l?f*d/g-.5:r/g|0,k=0,D=Fe,b=0;b<f;b++)A=b%g-C,y=p-(b/g|0),B[b]=_=m?Math.abs(m==="y"?y:A):It(A*A+y*y),_>k&&(k=_),_<D&&(D=_);r==="random"&&oa(B),B.max=k-D,B.min=D,B.v=f=(parseFloat(t.amount)||parseFloat(t.each)*(g>f?f-1:m?m==="y"?f/g:g:Math.max(g,f/g))||0)*(r==="edges"?-1:1),B.b=f<0?i-f:i,B.u=ne(t.amount||t.each)||0,a=a&&f<0?Aa(a):a}return f=(B[E]-B.min)/B.max||0,Z(B.b+(a?a(f):f)*B.v)+B.u}},Wn=function(e){var t=Math.pow(10,((e+"").split(".")[1]||"").length);return function(a){var r=Z(Math.round(parseFloat(a)/e)*e*t);return(r-r%1)/t+(Te(a)?0:ne(a))}},la=function(e,t){var a=ue(e),r,i;return!a&&ge(e)&&(r=a=e.radius||Fe,e.values?(e=Ce(e.values),(i=!Te(e[0]))&&(r*=r)):e=Wn(e.increment)),ze(t,a?W(e)?function(o){return i=e(o),Math.abs(i-o)<=r?i:o}:function(o){for(var s=parseFloat(i?o.x:o),l=parseFloat(i?o.y:0),m=Fe,c=0,d=e.length,E,h;d--;)i?(E=e[d].x-s,h=e[d].y-l,E=E*E+h*h):E=Math.abs(e[d]-s),E<m&&(m=E,c=d);return c=!r||m<=r?e[c]:o,i||c===o||Te(o)?c:c+ne(o)}:Wn(e))},ma=function(e,t,a,r){return ze(ue(e)?!t:a===!0?!!(a=0):!r,function(){return ue(e)?e[~~(Math.random()*e.length)]:(a=a||1e-5)&&(r=a<1?Math.pow(10,(a+"").length-2):1)&&Math.floor(Math.round((e-a/2+Math.random()*(t-e+a*.99))/a)*a*r)/r})},Mo=function(){for(var e=arguments.length,t=new Array(e),a=0;a<e;a++)t[a]=arguments[a];return function(r){return t.reduce(function(i,o){return o(i)},r)}},Uo=function(e,t){return function(a){return e(parseFloat(a))+(t||ne(a))}},Io=function(e,t,a){return da(e,t,0,1,a)},ca=function(e,t,a){return ze(a,function(r){return e[~~t(r)]})},zo=function n(e,t,a){var r=t-e;return ue(e)?ca(e,n(0,e.length),t):ze(a,function(i){return(r+(i-e)%r)%r+e})},Ro=function n(e,t,a){var r=t-e,i=r*2;return ue(e)?ca(e,n(0,e.length-1),t):ze(a,function(o){return o=(i+(o-e)%i)%i||0,e+(o>r?i-o:o)})},Ou=function(e){for(var t=0,a="",r,i,o,s;~(r=e.indexOf("random(",t));)o=e.indexOf(")",r),s=e.charAt(r+7)==="[",i=e.substr(r+7,o-r-7).match(s?Lt:Tn),a+=e.substr(t,r-t)+ma(s?i:+i[0],s?0:+i[1],+i[2]||1e-5),t=o+1;return a+e.substr(t,e.length-t)},da=function(e,t,a,r,i){var o=t-e,s=r-a;return ze(i,function(l){return a+((l-e)/o*s||0)})},jo=function n(e,t,a,r){var i=isNaN(e+t)?0:function(h){return(1-h)*e+h*t};if(!i){var o=K(e),s={},l,m,c,d,E;if(a===!0&&(r=1)&&(a=null),o)e={p:e},t={p:t};else if(ue(e)&&!ue(t)){for(c=[],d=e.length,E=d-2,m=1;m<d;m++)c.push(n(e[m-1],e[m]));d--,i=function(F){F*=d;var f=Math.min(E,~~F);return c[f](F-f)},a=t}else r||(e=Qe(ue(e)?[]:{},e));if(!c){for(l in t)Kn.call(s,e,l,"get",t[l]);i=function(F){return ut(F,s)||(o?e.p:e)}}}return ze(a,i)},Ea=function(e,t,a){var r=e.labels,i=Fe,o,s,l;for(o in r)s=r[o]-t,s<0==!!a&&s&&i>(s=Math.abs(s))&&(l=o,i=s);return l},Ee=function(e,t,a){var r=e.vars,i=r[t],o=j,s=e._ctx,l,m,c;if(i)return l=r[t+"Params"],m=r.callbackScope||e,a&&Ue.length&&tn(),s&&(j=s),c=l?i.apply(m,l):i.call(m),j=o,c},Mu=function(e){return Ie(e),e.scrollTrigger&&e.scrollTrigger.kill(!!ee),e.progress()<1&&Ee(e,"onInterrupt"),e},_u,fa=[],Fa=function(e){if(e)if(e=!e.name&&e.default||e,xn()||e.headless){var t=e.name,a=W(e),r=t&&!a&&e.init?function(){this._props=[]}:e,i={init:Tu,render:ut,add:Kn,kill:a5,modifier:t5,rawVars:0},o={targetTest:0,get:0,getSetter:et,aliases:{},register:0};if(gu(),e!==r){if(de[t])return;he(r,he(an(e,i),o)),Qe(r.prototype,Qe(i,an(e,o))),de[r.prop=t]=r,e.targetTest&&(nn.push(r),Mn[t]=1),t=(t==="css"?"CSS":t.charAt(0).toUpperCase()+t.substr(1))+"Plugin"}Wt(t,r),e.register&&e.register(oe,r,ie)}else fa.push(e)},U=255,Uu={aqua:[0,U,U],lime:[0,U,0],silver:[192,192,192],black:[0,0,0],maroon:[128,0,0],teal:[0,128,128],blue:[0,0,U],navy:[0,0,128],white:[U,U,U],olive:[128,128,0],yellow:[U,U,0],orange:[U,165,0],gray:[128,128,128],purple:[128,0,128],green:[0,128,0],red:[U,0,0],pink:[U,192,203],cyan:[0,U,U],transparent:[U,U,U,0]},Xn=function(e,t,a){return e+=e<0?1:e>1?-1:0,(e*6<1?t+(a-t)*e*6:e<.5?a:e*3<2?t+(a-t)*(2/3-e)*6:t)*U+.5|0},ha=function(e,t,a){var r=e?Te(e)?[e>>16,e>>8&U,e&U]:0:Uu.black,i,o,s,l,m,c,d,E,h,F;if(!r){if(e.substr(-1)===","&&(e=e.substr(0,e.length-1)),Uu[e])r=Uu[e];else if(e.charAt(0)==="#"){if(e.length<6&&(i=e.charAt(1),o=e.charAt(2),s=e.charAt(3),e="#"+i+i+o+o+s+s+(e.length===5?e.charAt(4)+e.charAt(4):"")),e.length===9)return r=parseInt(e.substr(1,6),16),[r>>16,r>>8&U,r&U,parseInt(e.substr(7),16)/255];e=parseInt(e.substr(1),16),r=[e>>16,e>>8&U,e&U]}else if(e.substr(0,3)==="hsl"){if(r=F=e.match(Tn),!t)l=+r[0]%360/360,m=+r[1]/100,c=+r[2]/100,o=c<=.5?c*(m+1):c+m-c*m,i=c*2-o,r.length>3&&(r[3]*=1),r[0]=Xn(l+1/3,i,o),r[1]=Xn(l,i,o),r[2]=Xn(l-1/3,i,o);else if(~e.indexOf("="))return r=e.match(Rt),a&&r.length<4&&(r[3]=1),r}else r=e.match(Tn)||Uu.transparent;r=r.map(Number)}return t&&!F&&(i=r[0]/U,o=r[1]/U,s=r[2]/U,d=Math.max(i,o,s),E=Math.min(i,o,s),c=(d+E)/2,d===E?l=m=0:(h=d-E,m=c>.5?h/(2-d-E):h/(d+E),l=d===i?(o-s)/h+(o<s?6:0):d===o?(s-i)/h+2:(i-o)/h+4,l*=60),r[0]=~~(l+.5),r[1]=~~(m*100+.5),r[2]=~~(c*100+.5)),a&&r.length<4&&(r[3]=1),r},Ba=function(e){var t=[],a=[],r=-1;return e.split(Re).forEach(function(i){var o=i.match(Cu)||[];t.push.apply(t,o),a.push(r+=o.length+1)}),t.c=a,t},Ca=function(e,t,a){var r="",i=(e+r).match(Re),o=t?"hsla(":"rgba(",s=0,l,m,c,d;if(!i)return e;if(i=i.map(function(E){return(E=ha(E,t,1))&&o+(t?E[0]+","+E[1]+"%,"+E[2]+"%,"+E[3]:E.join(","))+")"}),a&&(c=Ba(e),l=a.c,l.join(r)!==c.c.join(r)))for(m=e.replace(Re,"1").split(Cu),d=m.length-1;s<d;s++)r+=m[s]+(~l.indexOf(s)?i.shift()||o+"0,0,0,0)":(c.length?c:i.length?i:a).shift());if(!m)for(m=e.split(Re),d=m.length-1;s<d;s++)r+=m[s]+i[s];return r+m[d]},Re=function(){var n="(?:\\b(?:(?:rgb|rgba|hsl|hsla)\\(.+?\\))|\\B#(?:[0-9a-f]{3,4}){1,2}\\b",e;for(e in Uu)n+="|"+e+"\\b";return new RegExp(n+")","gi")}(),Lo=/hsl[a]?\(/,pa=function(e){var t=e.join(" "),a;if(Re.lastIndex=0,Re.test(t))return a=Lo.test(t),e[1]=Ca(e[1],a),e[0]=Ca(e[0],a,Ba(e[1])),!0},Iu,fe=function(){var n=Date.now,e=500,t=33,a=n(),r=a,i=1e3/240,o=i,s=[],l,m,c,d,E,h,F=function f(B){var C=n()-r,p=B===!0,A,y,_,b;if((C>e||C<0)&&(a+=C-t),r+=C,_=r-a,A=_-o,(A>0||p)&&(b=++d.frame,E=_-d.time*1e3,d.time=_=_/1e3,o+=A+(A>=i?4:i-A),y=1),p||(l=m(f)),y)for(h=0;h<s.length;h++)s[h](_,E,b,B)};return d={time:0,frame:0,tick:function(){F(!0)},deltaRatio:function(B){return E/(1e3/(B||60))},wake:function(){Ht&&(!$n&&xn()&&(ye=$n=window,Pn=ye.document||{},ce.gsap=oe,(ye.gsapVersions||(ye.gsapVersions=[])).push(oe.version),Yt(en||ye.GreenSockGlobals||!ye.gsap&&ye||{}),fa.forEach(Fa)),c=typeof requestAnimationFrame!="undefined"&&requestAnimationFrame,l&&d.sleep(),m=c||function(B){return setTimeout(B,o-d.time*1e3+1|0)},Iu=1,F(2))},sleep:function(){(c?cancelAnimationFrame:clearTimeout)(l),Iu=0,m=Tu},lagSmoothing:function(B,C){e=B||1/0,t=Math.min(C||33,e)},fps:function(B){i=1e3/(B||240),o=d.time*1e3+i},add:function(B,C,p){var A=C?function(y,_,b,k){B(y,_,b,k),d.remove(A)}:B;return d.remove(B),s[p?"unshift":"push"](A),gu(),A},remove:function(B,C){~(C=s.indexOf(B))&&s.splice(C,1)&&h>=C&&h--},_listeners:s},d}(),gu=function(){return!Iu&&fe.wake()},V={},Ho=/^[\d.\-M][\d.\-,\s]/,Yo=/["']/g,Wo=function(e){for(var t={},a=e.substr(1,e.length-3).split(":"),r=a[0],i=1,o=a.length,s,l,m;i<o;i++)l=a[i],s=i!==o-1?l.lastIndexOf(","):l.length,m=l.substr(0,s),t[r]=isNaN(m)?m.replace(Yo,"").trim():+m,r=l.substr(s+1).trim();return t},Xo=function(e){var t=e.indexOf("(")+1,a=e.indexOf(")"),r=e.indexOf("(",t);return e.substring(t,~r&&r<a?e.indexOf(")",a+1):a)},qo=function(e){var t=(e+"").split("("),a=V[t[0]];return a&&t.length>1&&a.config?a.config.apply(null,~e.indexOf("{")?[Wo(t[1])]:Xo(e).split(",").map(Zt)):V._CE&&Ho.test(e)?V._CE("",e):a},Aa=function(e){return function(t){return 1-e(1-t)}},Da=function n(e,t){for(var a=e._first,r;a;)a instanceof te?n(a,t):a.vars.yoyoEase&&(!a._yoyo||!a._repeat)&&a._yoyo!==t&&(a.timeline?n(a.timeline,t):(r=a._ease,a._ease=a._yEase,a._yEase=r,a._yoyo=t)),a=a._next},eu=function(e,t){return e&&(W(e)?e:V[e]||qo(e))||t},uu=function(e,t,a,r){a===void 0&&(a=function(l){return 1-t(1-l)}),r===void 0&&(r=function(l){return l<.5?t(l*2)/2:1-t((1-l)*2)/2});var i={easeIn:t,easeOut:a,easeInOut:r},o;return re(e,function(s){V[s]=ce[s]=i,V[o=s.toLowerCase()]=a;for(var l in i)V[o+(l==="easeIn"?".in":l==="easeOut"?".out":".inOut")]=V[s+"."+l]=i[l]}),i},_a=function(e){return function(t){return t<.5?(1-e(1-t*2))/2:.5+e((t-.5)*2)/2}},qn=function n(e,t,a){var r=t>=1?t:1,i=(a||(e?.3:.45))/(t<1?t:1),o=i/Nn*(Math.asin(1/r)||0),s=function(c){return c===1?1:r*Math.pow(2,-10*c)*_o((c-o)*i)+1},l=e==="out"?s:e==="in"?function(m){return 1-s(1-m)}:_a(s);return i=Nn/i,l.config=function(m,c){return n(e,m,c)},l},Gn=function n(e,t){t===void 0&&(t=1.70158);var a=function(o){return o?--o*o*((t+1)*o+t)+1:0},r=e==="out"?a:e==="in"?function(i){return 1-a(1-i)}:_a(a);return r.config=function(i){return n(e,i)},r};re("Linear,Quad,Cubic,Quart,Quint,Strong",function(n,e){var t=e<5?e+1:e;uu(n+",Power"+(t-1),e?function(a){return Math.pow(a,t)}:function(a){return a},function(a){return 1-Math.pow(1-a,t)},function(a){return a<.5?Math.pow(a*2,t)/2:1-Math.pow((1-a)*2,t)/2})}),V.Linear.easeNone=V.none=V.Linear.easeIn,uu("Elastic",qn("in"),qn("out"),qn()),function(n,e){var t=1/e,a=2*t,r=2.5*t,i=function(s){return s<t?n*s*s:s<a?n*Math.pow(s-1.5/e,2)+.75:s<r?n*(s-=2.25/e)*s+.9375:n*Math.pow(s-2.625/e,2)+.984375};uu("Bounce",function(o){return 1-i(1-o)},i)}(7.5625,2.75),uu("Expo",function(n){return n?Math.pow(2,10*(n-1)):0}),uu("Circ",function(n){return-(It(1-n*n)-1)}),uu("Sine",function(n){return n===1?1:-Do(n*po)+1}),uu("Back",Gn("in"),Gn("out"),Gn()),V.SteppedEase=V.steps=ce.SteppedEase={config:function(e,t){e===void 0&&(e=1);var a=1/e,r=e+(t?0:1),i=t?1:0,o=1-I;return function(s){return((r*Pu(0,o,s)|0)+i)*a}}},Bu.ease=V["quad.out"],re("onComplete,onUpdate,onStart,onRepeat,onReverseComplete,onInterrupt",function(n){return zn+=n+","+n+"Params,"});var ga=function(e,t){this.id=Ao++,e._gsap=this,this.target=e,this.harness=t,this.get=t?t.get:Gt,this.set=t?t.getSetter:et},zu=function(){function n(t){this.vars=t,this._delay=+t.delay||0,(this._repeat=t.repeat===1/0?-2:t.repeat||0)&&(this._rDelay=t.repeatDelay||0,this._yoyo=!!t.yoyo||!!t.yoyoEase),this._ts=1,Du(this,+t.duration,1,1),this.data=t.data,j&&(this._ctx=j,j.data.push(this)),Iu||fe.wake()}var e=n.prototype;return e.delay=function(a){return a||a===0?(this.parent&&this.parent.smoothChildTiming&&this.startTime(this._start+a-this._delay),this._delay=a,this):this._delay},e.duration=function(a){return arguments.length?this.totalDuration(this._repeat>0?a+(a+this._rDelay)*this._repeat:a):this.totalDuration()&&this._dur},e.totalDuration=function(a){return arguments.length?(this._dirty=0,Du(this,this._repeat<0?a:(a-this._repeat*this._rDelay)/(this._repeat+1))):this._tDur},e.totalTime=function(a,r){if(gu(),!arguments.length)return this._tTime;var i=this._dp;if(i&&i.smoothChildTiming&&this._ts){for(ln(this,a),!i._dp||i.parent||na(i,this);i&&i.parent;)i.parent._time!==i._start+(i._ts>=0?i._tTime/i._ts:(i.totalDuration()-i._tTime)/-i._ts)&&i.totalTime(i._tTime,!0),i=i.parent;!this.parent&&this._dp.autoRemoveChildren&&(this._ts>0&&a<this._tDur||this._ts<0&&a>0||!this._tDur&&!a)&&be(this._dp,this,this._start-this._delay)}return(this._tTime!==a||!this._dur&&!r||this._initted&&Math.abs(this._zTime)===I||!a&&!this._initted&&(this.add||this._ptLookup))&&(this._ts||(this._pTime=a),Kt(this,a,r)),this},e.time=function(a,r){return arguments.length?this.totalTime(Math.min(this.totalDuration(),a+ua(this))%(this._dur+this._rDelay)||(a?this._dur:0),r):this._time},e.totalProgress=function(a,r){return arguments.length?this.totalTime(this.totalDuration()*a,r):this.totalDuration()?Math.min(1,this._tTime/this._tDur):this.rawTime()>0?1:0},e.progress=function(a,r){return arguments.length?this.totalTime(this.duration()*(this._yoyo&&!(this.iteration()&1)?1-a:a)+ua(this),r):this.duration()?Math.min(1,this._time/this._dur):this.rawTime()>0?1:0},e.iteration=function(a,r){var i=this.duration()+this._rDelay;return arguments.length?this.totalTime(this._time+(a-1)*i,r):this._repeat?Au(this._tTime,i)+1:1},e.timeScale=function(a,r){if(!arguments.length)return this._rts===-I?0:this._rts;if(this._rts===a)return this;var i=this.parent&&this._ts?on(this.parent._time,this):this._tTime;return this._rts=+a||0,this._ts=this._ps||a===-I?0:this._rts,this.totalTime(Pu(-Math.abs(this._delay),this._tDur,i),r!==!1),sn(this),No(this)},e.paused=function(a){return arguments.length?(this._ps!==a&&(this._ps=a,a?(this._pTime=this._tTime||Math.max(-this._delay,this.rawTime()),this._ts=this._act=0):(gu(),this._ts=this._rts,this.totalTime(this.parent&&!this.parent.smoothChildTiming?this.rawTime():this._tTime||this._pTime,this.progress()===1&&Math.abs(this._zTime)!==I&&(this._tTime-=I)))),this):this._ps},e.startTime=function(a){if(arguments.length){this._start=a;var r=this.parent||this._dp;return r&&(r._sort||!this.parent)&&be(r,this,a-this._delay),this}return this._start},e.endTime=function(a){return this._start+(ae(a)?this.totalDuration():this.duration())/Math.abs(this._ts||1)},e.rawTime=function(a){var r=this.parent||this._dp;return r?a&&(!this._ts||this._repeat&&this._time&&this.totalProgress()<1)?this._tTime%(this._dur+this._rDelay):this._ts?on(r.rawTime(a),this):this._tTime:this._tTime},e.revert=function(a){a===void 0&&(a=bo);var r=ee;return ee=a,(this._initted||this._startAt)&&(this.timeline&&this.timeline.revert(a),this.totalTime(-.01,a.suppressEvents)),this.data!=="nested"&&a.kill!==!1&&this.kill(),ee=r,this},e.globalTime=function(a){for(var r=this,i=arguments.length?a:r.rawTime();r;)i=r._start+i/(Math.abs(r._ts)||1),r=r._dp;return!this.parent&&this._sat?this._sat.globalTime(a):i},e.repeat=function(a){return arguments.length?(this._repeat=a===1/0?-2:a,ra(this)):this._repeat===-2?1/0:this._repeat},e.repeatDelay=function(a){if(arguments.length){var r=this._time;return this._rDelay=a,ra(this),r?this.time(r):this}return this._rDelay},e.yoyo=function(a){return arguments.length?(this._yoyo=a,this):this._yoyo},e.seek=function(a,r){return this.totalTime(Be(this,a),ae(r))},e.restart=function(a,r){return this.play().totalTime(a?-this._delay:0,ae(r))},e.play=function(a,r){return a!=null&&this.seek(a,r),this.reversed(!1).paused(!1)},e.reverse=function(a,r){return a!=null&&this.seek(a||this.totalDuration(),r),this.reversed(!0).paused(!1)},e.pause=function(a,r){return a!=null&&this.seek(a,r),this.paused(!0)},e.resume=function(){return this.paused(!1)},e.reversed=function(a){return arguments.length?(!!a!==this.reversed()&&this.timeScale(-this._rts||(a?-I:0)),this):this._rts<0},e.invalidate=function(){return this._initted=this._act=0,this._zTime=-I,this},e.isActive=function(){var a=this.parent||this._dp,r=this._start,i;return!!(!a||this._ts&&this._initted&&a.isActive()&&(i=a.rawTime(!0))>=r&&i<this.endTime(!0)-I)},e.eventCallback=function(a,r,i){var o=this.vars;return arguments.length>1?(r?(o[a]=r,i&&(o[a+"Params"]=i),a==="onUpdate"&&(this._onUpdate=r)):delete o[a],this):o[a]},e.then=function(a){var r=this;return new Promise(function(i){var o=W(a)?a:Qt,s=function(){var m=r.then;r.then=null,W(o)&&(o=o(r))&&(o.then||o===r)&&(r.then=m),i(o),r.then=m};r._initted&&r.totalProgress()===1&&r._ts>=0||!r._tTime&&r._ts<0?s():r._prom=s})},e.kill=function(){Mu(this)},n}();he(zu.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:-I,_prom:0,_ps:!1,_rts:1});var te=function(n){Ut(e,n);function e(a,r){var i;return a===void 0&&(a={}),i=n.call(this,a)||this,i.labels={},i.smoothChildTiming=!!a.smoothChildTiming,i.autoRemoveChildren=!!a.autoRemoveChildren,i._sort=ae(a.sortChildren),H&&be(a.parent||H,xe(i),r),a.reversed&&i.reverse(),a.paused&&i.paused(!0),a.scrollTrigger&&ta(xe(i),a.scrollTrigger),i}var t=e.prototype;return t.to=function(r,i,o){return $u(0,arguments,this),this},t.from=function(r,i,o){return $u(1,arguments,this),this},t.fromTo=function(r,i,o,s){return $u(2,arguments,this),this},t.set=function(r,i,o){return i.duration=0,i.parent=this,Vu(i).repeatDelay||(i.repeat=0),i.immediateRender=!!i.immediateRender,new q(r,i,Be(this,o),1),this},t.call=function(r,i,o){return be(this,q.delayedCall(0,r,i),o)},t.staggerTo=function(r,i,o,s,l,m,c){return o.duration=i,o.stagger=o.stagger||s,o.onComplete=m,o.onCompleteParams=c,o.parent=this,new q(r,o,Be(this,l)),this},t.staggerFrom=function(r,i,o,s,l,m,c){return o.runBackwards=1,Vu(o).immediateRender=ae(o.immediateRender),this.staggerTo(r,i,o,s,l,m,c)},t.staggerFromTo=function(r,i,o,s,l,m,c,d){return s.startAt=o,Vu(s).immediateRender=ae(s.immediateRender),this.staggerTo(r,i,s,l,m,c,d)},t.render=function(r,i,o){var s=this._time,l=this._dirty?this.totalDuration():this._tDur,m=this._dur,c=r<=0?0:Z(r),d=this._zTime<0!=r<0&&(this._initted||!m),E,h,F,f,B,C,p,A,y,_,b,k;if(this!==H&&c>l&&r>=0&&(c=l),c!==this._tTime||o||d){if(s!==this._time&&m&&(c+=this._time-s,r+=this._time-s),E=c,y=this._start,A=this._ts,C=!A,d&&(m||(s=this._zTime),(r||!i)&&(this._zTime=r)),this._repeat){if(b=this._yoyo,B=m+this._rDelay,this._repeat<-1&&r<0)return this.totalTime(B*100+r,i,o);if(E=Z(c%B),c===l?(f=this._repeat,E=m):(f=~~(c/B),f&&f===c/B&&(E=m,f--),E>m&&(E=m)),_=Au(this._tTime,B),!s&&this._tTime&&_!==f&&this._tTime-_*B-this._dur<=0&&(_=f),b&&f&1&&(E=m-E,k=1),f!==_&&!this._lock){var D=b&&_&1,g=D===(b&&f&1);if(f<_&&(D=!D),s=D?0:c%m?m:c,this._lock=1,this.render(s||(k?0:Z(f*B)),i,!m)._lock=0,this._tTime=c,!i&&this.parent&&Ee(this,"onRepeat"),this.vars.repeatRefresh&&!k&&(this.invalidate()._lock=1),s&&s!==this._time||C!==!this._ts||this.vars.onRepeat&&!this.parent&&!this._act)return this;if(m=this._dur,l=this._tDur,g&&(this._lock=2,s=D?m:-1e-4,this.render(s,!0),this.vars.repeatRefresh&&!k&&this.invalidate()),this._lock=0,!this._ts&&!C)return this;Da(this,k)}}if(this._hasPause&&!this._forcing&&this._lock<2&&(p=Vo(this,Z(s),Z(E)),p&&(c-=E-(E=p._start))),this._tTime=c,this._time=E,this._act=!A,this._initted||(this._onUpdate=this.vars.onUpdate,this._initted=1,this._zTime=r,s=0),!s&&E&&!i&&!f&&(Ee(this,"onStart"),this._tTime!==c))return this;if(E>=s&&r>=0)for(h=this._first;h;){if(F=h._next,(h._act||E>=h._start)&&h._ts&&p!==h){if(h.parent!==this)return this.render(r,i,o);if(h.render(h._ts>0?(E-h._start)*h._ts:(h._dirty?h.totalDuration():h._tDur)+(E-h._start)*h._ts,i,o),E!==this._time||!this._ts&&!C){p=0,F&&(c+=this._zTime=-I);break}}h=F}else{h=this._last;for(var w=r<0?r:E;h;){if(F=h._prev,(h._act||w<=h._end)&&h._ts&&p!==h){if(h.parent!==this)return this.render(r,i,o);if(h.render(h._ts>0?(w-h._start)*h._ts:(h._dirty?h.totalDuration():h._tDur)+(w-h._start)*h._ts,i,o||ee&&(h._initted||h._startAt)),E!==this._time||!this._ts&&!C){p=0,F&&(c+=this._zTime=w?-I:I);break}}h=F}}if(p&&!i&&(this.pause(),p.render(E>=s?0:-I)._zTime=E>=s?1:-1,this._ts))return this._start=y,sn(this),this.render(r,i,o);this._onUpdate&&!i&&Ee(this,"onUpdate",!0),(c===l&&this._tTime>=this.totalDuration()||!c&&s)&&(y===this._start||Math.abs(A)!==Math.abs(this._ts))&&(this._lock||((r||!m)&&(c===l&&this._ts>0||!c&&this._ts<0)&&Ie(this,1),!i&&!(r<0&&!s)&&(c||s||!l)&&(Ee(this,c===l&&r>=0?"onComplete":"onReverseComplete",!0),this._prom&&!(c<l&&this.timeScale()>0)&&this._prom())))}return this},t.add=function(r,i){var o=this;if(Te(i)||(i=Be(this,i,r)),!(r instanceof zu)){if(ue(r))return r.forEach(function(s){return o.add(s,i)}),this;if(K(r))return this.addLabel(r,i);if(W(r))r=q.delayedCall(0,r);else return this}return this!==r?be(this,r,i):this},t.getChildren=function(r,i,o,s){r===void 0&&(r=!0),i===void 0&&(i=!0),o===void 0&&(o=!0),s===void 0&&(s=-Fe);for(var l=[],m=this._first;m;)m._start>=s&&(m instanceof q?i&&l.push(m):(o&&l.push(m),r&&l.push.apply(l,m.getChildren(!0,i,o)))),m=m._next;return l},t.getById=function(r){for(var i=this.getChildren(1,1,1),o=i.length;o--;)if(i[o].vars.id===r)return i[o]},t.remove=function(r){return K(r)?this.removeLabel(r):W(r)?this.killTweensOf(r):(rn(this,r),r===this._recent&&(this._recent=this._last),Je(this))},t.totalTime=function(r,i){return arguments.length?(this._forcing=1,!this._dp&&this._ts&&(this._start=Z(fe.time-(this._ts>0?r/this._ts:(this.totalDuration()-r)/-this._ts))),n.prototype.totalTime.call(this,r,i),this._forcing=0,this):this._tTime},t.addLabel=function(r,i){return this.labels[r]=Be(this,i),this},t.removeLabel=function(r){return delete this.labels[r],this},t.addPause=function(r,i,o){var s=q.delayedCall(0,i||Tu,o);return s.data="isPause",this._hasPause=1,be(this,s,Be(this,r))},t.removePause=function(r){var i=this._first;for(r=Be(this,r);i;)i._start===r&&i.data==="isPause"&&Ie(i),i=i._next},t.killTweensOf=function(r,i,o){for(var s=this.getTweensOf(r,o),l=s.length;l--;)je!==s[l]&&s[l].kill(r,i);return this},t.getTweensOf=function(r,i){for(var o=[],s=Ce(r),l=this._first,m=Te(i),c;l;)l instanceof q?vo(l._targets,s)&&(m?(!je||l._initted&&l._ts)&&l.globalTime(0)<=i&&l.globalTime(l.totalDuration())>i:!i||l.isActive())&&o.push(l):(c=l.getTweensOf(s,i)).length&&o.push.apply(o,c),l=l._next;return o},t.tweenTo=function(r,i){i=i||{};var o=this,s=Be(o,r),l=i,m=l.startAt,c=l.onStart,d=l.onStartParams,E=l.immediateRender,h,F=q.to(o,he({ease:i.ease||"none",lazy:!1,immediateRender:!1,time:s,overwrite:"auto",duration:i.duration||Math.abs((s-(m&&"time"in m?m.time:o._time))/o.timeScale())||I,onStart:function(){if(o.pause(),!h){var B=i.duration||Math.abs((s-(m&&"time"in m?m.time:o._time))/o.timeScale());F._dur!==B&&Du(F,B,0,1).render(F._time,!0,!0),h=1}c&&c.apply(F,d||[])}},i));return E?F.render(0):F},t.tweenFromTo=function(r,i,o){return this.tweenTo(i,he({startAt:{time:Be(this,r)}},o))},t.recent=function(){return this._recent},t.nextLabel=function(r){return r===void 0&&(r=this._time),Ea(this,Be(this,r))},t.previousLabel=function(r){return r===void 0&&(r=this._time),Ea(this,Be(this,r),1)},t.currentLabel=function(r){return arguments.length?this.seek(r,!0):this.previousLabel(this._time+I)},t.shiftChildren=function(r,i,o){o===void 0&&(o=0);for(var s=this._first,l=this.labels,m;s;)s._start>=o&&(s._start+=r,s._end+=r),s=s._next;if(i)for(m in l)l[m]>=o&&(l[m]+=r);return Je(this)},t.invalidate=function(r){var i=this._first;for(this._lock=0;i;)i.invalidate(r),i=i._next;return n.prototype.invalidate.call(this,r)},t.clear=function(r){r===void 0&&(r=!0);for(var i=this._first,o;i;)o=i._next,this.remove(i),i=o;return this._dp&&(this._time=this._tTime=this._pTime=0),r&&(this.labels={}),Je(this)},t.totalDuration=function(r){var i=0,o=this,s=o._last,l=Fe,m,c,d;if(arguments.length)return o.timeScale((o._repeat<0?o.duration():o.totalDuration())/(o.reversed()?-r:r));if(o._dirty){for(d=o.parent;s;)m=s._prev,s._dirty&&s.totalDuration(),c=s._start,c>l&&o._sort&&s._ts&&!o._lock?(o._lock=1,be(o,s,c-s._delay,1)._lock=0):l=c,c<0&&s._ts&&(i-=c,(!d&&!o._dp||d&&d.smoothChildTiming)&&(o._start+=c/o._ts,o._time-=c,o._tTime-=c),o.shiftChildren(-c,!1,-1/0),l=0),s._end>i&&s._ts&&(i=s._end),s=m;Du(o,o===H&&o._time>i?o._time:i,1,1),o._dirty=0}return o._tDur},e.updateRoot=function(r){if(H._ts&&(Kt(H,on(r,H)),Xt=fe.frame),fe.frame>=qt){qt+=me.autoSleep||120;var i=H._first;if((!i||!i._ts)&&me.autoSleep&&fe._listeners.length<2){for(;i&&!i._ts;)i=i._next;i||fe.sleep()}}},e}(zu);he(te.prototype,{_lock:0,_hasPause:0,_forcing:0});var Go=function(e,t,a,r,i,o,s){var l=new ie(this._pt,e,t,0,1,Na,null,i),m=0,c=0,d,E,h,F,f,B,C,p;for(l.b=a,l.e=r,a+="",r+="",(C=~r.indexOf("random("))&&(r=Ou(r)),o&&(p=[a,r],o(p,e,t),a=p[0],r=p[1]),E=a.match(Vn)||[];d=Vn.exec(r);)F=d[0],f=r.substring(m,d.index),h?h=(h+1)%5:f.substr(-5)==="rgba("&&(h=1),F!==E[c++]&&(B=parseFloat(E[c-1])||0,l._pt={_next:l._pt,p:f||c===1?f:",",s:B,c:F.charAt(1)==="="?pu(B,F)-B:parseFloat(F)-B,m:h&&h<4?Math.round:0},m=Vn.lastIndex);return l.c=m<r.length?r.substring(m,r.length):"",l.fp=s,(jt.test(r)||C)&&(l.e=0),this._pt=l,l},Kn=function(e,t,a,r,i,o,s,l,m,c){W(r)&&(r=r(i||0,e,o));var d=e[t],E=a!=="get"?a:W(d)?m?e[t.indexOf("set")||!W(e["get"+t.substr(3)])?t:"get"+t.substr(3)](m):e[t]():d,h=W(d)?m?e5:ka:Jn,F;if(K(r)&&(~r.indexOf("random(")&&(r=Ou(r)),r.charAt(1)==="="&&(F=pu(E,r)+(ne(E)||0),(F||F===0)&&(r=F))),!c||E!==r||Zn)return!isNaN(E*r)&&r!==""?(F=new ie(this._pt,e,t,+E||0,r-(E||0),typeof d=="boolean"?n5:wa,0,h),m&&(F.fp=m),s&&F.modifier(s,this,e),this._pt=F):(!d&&!(t in e)&&On(t,r),Go.call(this,e,t,E,r,h,l||me.stringFilter,m))},Ko=function(e,t,a,r,i){if(W(e)&&(e=Ru(e,i,t,a,r)),!ge(e)||e.style&&e.nodeType||ue(e)||zt(e))return K(e)?Ru(e,i,t,a,r):e;var o={},s;for(s in e)o[s]=Ru(e[s],i,t,a,r);return o},ya=function(e,t,a,r,i,o){var s,l,m,c;if(de[e]&&(s=new de[e]).init(i,s.rawVars?t[e]:Ko(t[e],r,i,o,a),a,r,o)!==!1&&(a._pt=l=new ie(a._pt,i,e,0,1,s.render,s,0,s.priority),a!==_u))for(m=a._ptLookup[a._targets.indexOf(i)],c=s._props.length;c--;)m[s._props[c]]=l;return s},je,Zn,Qn=function n(e,t,a){var r=e.vars,i=r.ease,o=r.startAt,s=r.immediateRender,l=r.lazy,m=r.onUpdate,c=r.runBackwards,d=r.yoyoEase,E=r.keyframes,h=r.autoRevert,F=e._dur,f=e._startAt,B=e._targets,C=e.parent,p=C&&C.data==="nested"?C.vars.targets:B,A=e._overwrite==="auto"&&!wn,y=e.timeline,_,b,k,D,g,w,S,N,M,$,Q,G,J;if(y&&(!E||!i)&&(i="none"),e._ease=eu(i,Bu.ease),e._yEase=d?Aa(eu(d===!0?i:d,Bu.ease)):0,d&&e._yoyo&&!e._repeat&&(d=e._yEase,e._yEase=e._ease,e._ease=d),e._from=!y&&!!r.runBackwards,!y||E&&!r.stagger){if(N=B[0]?Ze(B[0]).harness:0,G=N&&r[N.prop],_=an(r,Mn),f&&(f._zTime<0&&f.progress(1),t<0&&c&&s&&!h?f.render(-1,!0):f.revert(c&&F?un:yo),f._lazy=0),o){if(Ie(e._startAt=q.set(B,he({data:"isStart",overwrite:!1,parent:C,immediateRender:!0,lazy:!f&&ae(l),startAt:null,delay:0,onUpdate:m&&function(){return Ee(e,"onUpdate")},stagger:0},o))),e._startAt._dp=0,e._startAt._sat=e,t<0&&(ee||!s&&!h)&&e._startAt.revert(un),s&&F&&t<=0&&a<=0){t&&(e._zTime=t);return}}else if(c&&F&&!f){if(t&&(s=!1),k=he({overwrite:!1,data:"isFromStart",lazy:s&&!f&&ae(l),immediateRender:s,stagger:0,parent:C},_),G&&(k[N.prop]=G),Ie(e._startAt=q.set(B,k)),e._startAt._dp=0,e._startAt._sat=e,t<0&&(ee?e._startAt.revert(un):e._startAt.render(-1,!0)),e._zTime=t,!s)n(e._startAt,I,I);else if(!t)return}for(e._pt=e._ptCache=0,l=F&&ae(l)||l&&!F,b=0;b<B.length;b++){if(g=B[b],S=g._gsap||Rn(B)[b]._gsap,e._ptLookup[b]=$={},Un[S.id]&&Ue.length&&tn(),Q=p===B?b:p.indexOf(g),N&&(M=new N).init(g,G||_,e,Q,p)!==!1&&(e._pt=D=new ie(e._pt,g,M.name,0,1,M.render,M,0,M.priority),M._props.forEach(function(_e){$[_e]=D}),M.priority&&(w=1)),!N||G)for(k in _)de[k]&&(M=ya(k,_,e,Q,g,p))?M.priority&&(w=1):$[k]=D=Kn.call(e,g,k,"get",_[k],Q,p,0,r.stringFilter);e._op&&e._op[b]&&e.kill(g,e._op[b]),A&&e._pt&&(je=e,H.killTweensOf(g,$,e.globalTime(t)),J=!e.parent,je=0),e._pt&&l&&(Un[S.id]=1)}w&&Sa(e),e._onInit&&e._onInit(e)}e._onUpdate=m,e._initted=(!e._op||e._pt)&&!J,E&&t<=0&&y.render(Fe,!0,!0)},Zo=function(e,t,a,r,i,o,s,l){var m=(e._pt&&e._ptCache||(e._ptCache={}))[t],c,d,E,h;if(!m)for(m=e._ptCache[t]=[],E=e._ptLookup,h=e._targets.length;h--;){if(c=E[h][t],c&&c.d&&c.d._pt)for(c=c.d._pt;c&&c.p!==t&&c.fp!==t;)c=c._next;if(!c)return Zn=1,e.vars[t]="+=0",Qn(e,s),Zn=0,l?xu(t+" not eligible for reset"):1;m.push(c)}for(h=m.length;h--;)d=m[h],c=d._pt||d,c.s=(r||r===0)&&!i?r:c.s+(r||0)+o*c.c,c.c=a-c.s,d.e&&(d.e=X(a)+ne(d.e)),d.b&&(d.b=c.s+ne(d.b))},Qo=function(e,t){var a=e[0]?Ze(e[0]).harness:0,r=a&&a.aliases,i,o,s,l;if(!r)return t;i=Qe({},t);for(o in r)if(o in i)for(l=r[o].split(","),s=l.length;s--;)i[l[s]]=i[o];return i},Jo=function(e,t,a,r){var i=t.ease||r||"power1.inOut",o,s;if(ue(t))s=a[e]||(a[e]=[]),t.forEach(function(l,m){return s.push({t:m/(t.length-1)*100,v:l,e:i})});else for(o in t)s=a[o]||(a[o]=[]),o==="ease"||s.push({t:parseFloat(e),v:t[o],e:i})},Ru=function(e,t,a,r,i){return W(e)?e.call(t,a,r,i):K(e)&&~e.indexOf("random(")?Ou(e):e},ba=zn+"repeat,repeatDelay,yoyo,repeatRefresh,yoyoEase,autoRevert",va={};re(ba+",id,stagger,delay,duration,paused,scrollTrigger",function(n){return va[n]=1});var q=function(n){Ut(e,n);function e(a,r,i,o){var s;typeof r=="number"&&(i.duration=r,r=i,i=null),s=n.call(this,o?r:Vu(r))||this;var l=s.vars,m=l.duration,c=l.delay,d=l.immediateRender,E=l.stagger,h=l.overwrite,F=l.keyframes,f=l.defaults,B=l.scrollTrigger,C=l.yoyoEase,p=r.parent||H,A=(ue(a)||zt(a)?Te(a[0]):"length"in r)?[a]:Ce(a),y,_,b,k,D,g,w,S;if(s._targets=A.length?Rn(A):xu("GSAP target "+a+" not found. https://gsap.com",!me.nullTargetWarn)||[],s._ptLookup=[],s._overwrite=h,F||E||Ju(m)||Ju(c)){if(r=s.vars,y=s.timeline=new te({data:"nested",defaults:f||{},targets:p&&p.data==="nested"?p.vars.targets:A}),y.kill(),y.parent=y._dp=xe(s),y._start=0,E||Ju(m)||Ju(c)){if(k=A.length,w=E&&sa(E),ge(E))for(D in E)~ba.indexOf(D)&&(S||(S={}),S[D]=E[D]);for(_=0;_<k;_++)b=an(r,va),b.stagger=0,C&&(b.yoyoEase=C),S&&Qe(b,S),g=A[_],b.duration=+Ru(m,xe(s),_,g,A),b.delay=(+Ru(c,xe(s),_,g,A)||0)-s._delay,!E&&k===1&&b.delay&&(s._delay=c=b.delay,s._start+=c,b.delay=0),y.to(g,b,w?w(_,g,A):0),y._ease=V.none;y.duration()?m=c=0:s.timeline=0}else if(F){Vu(he(y.vars.defaults,{ease:"none"})),y._ease=eu(F.ease||r.ease||"none");var N=0,M,$,Q;if(ue(F))F.forEach(function(G){return y.to(A,G,">")}),y.duration();else{b={};for(D in F)D==="ease"||D==="easeEach"||Jo(D,F[D],b,F.easeEach);for(D in b)for(M=b[D].sort(function(G,J){return G.t-J.t}),N=0,_=0;_<M.length;_++)$=M[_],Q={ease:$.e,duration:($.t-(_?M[_-1].t:0))/100*m},Q[D]=$.v,y.to(A,Q,N),N+=Q.duration;y.duration()<m&&y.to({},{duration:m-y.duration()})}}m||s.duration(m=y.duration())}else s.timeline=0;return h===!0&&!wn&&(je=xe(s),H.killTweensOf(A),je=0),be(p,xe(s),i),r.reversed&&s.reverse(),r.paused&&s.paused(!0),(d||!m&&!F&&s._start===Z(p._time)&&ae(d)&&So(xe(s))&&p.data!=="nested")&&(s._tTime=-I,s.render(Math.max(0,-c)||0)),B&&ta(xe(s),B),s}var t=e.prototype;return t.render=function(r,i,o){var s=this._time,l=this._tDur,m=this._dur,c=r<0,d=r>l-I&&!c?l:r<I?0:r,E,h,F,f,B,C,p,A,y;if(!m)To(this,r,i,o);else if(d!==this._tTime||!r||o||!this._initted&&this._tTime||this._startAt&&this._zTime<0!==c){if(E=d,A=this.timeline,this._repeat){if(f=m+this._rDelay,this._repeat<-1&&c)return this.totalTime(f*100+r,i,o);if(E=Z(d%f),d===l?(F=this._repeat,E=m):(F=~~(d/f),F&&F===Z(d/f)&&(E=m,F--),E>m&&(E=m)),C=this._yoyo&&F&1,C&&(y=this._yEase,E=m-E),B=Au(this._tTime,f),E===s&&!o&&this._initted&&F===B)return this._tTime=d,this;F!==B&&(A&&this._yEase&&Da(A,C),this.vars.repeatRefresh&&!C&&!this._lock&&this._time!==f&&this._initted&&(this._lock=o=1,this.render(Z(f*F),!0).invalidate()._lock=0))}if(!this._initted){if(aa(this,c?r:E,o,i,d))return this._tTime=0,this;if(s!==this._time&&!(o&&this.vars.repeatRefresh&&F!==B))return this;if(m!==this._dur)return this.render(r,i,o)}if(this._tTime=d,this._time=E,!this._act&&this._ts&&(this._act=1,this._lazy=0),this.ratio=p=(y||this._ease)(E/m),this._from&&(this.ratio=p=1-p),E&&!s&&!i&&!F&&(Ee(this,"onStart"),this._tTime!==d))return this;for(h=this._pt;h;)h.r(p,h.d),h=h._next;A&&A.render(r<0?r:A._dur*A._ease(E/this._dur),i,o)||this._startAt&&(this._zTime=r),this._onUpdate&&!i&&(c&&jn(this,r,i,o),Ee(this,"onUpdate")),this._repeat&&F!==B&&this.vars.onRepeat&&!i&&this.parent&&Ee(this,"onRepeat"),(d===this._tDur||!d)&&this._tTime===d&&(c&&!this._onUpdate&&jn(this,r,!0,!0),(r||!m)&&(d===this._tDur&&this._ts>0||!d&&this._ts<0)&&Ie(this,1),!i&&!(c&&!s)&&(d||s||C)&&(Ee(this,d===l?"onComplete":"onReverseComplete",!0),this._prom&&!(d<l&&this.timeScale()>0)&&this._prom()))}return this},t.targets=function(){return this._targets},t.invalidate=function(r){return(!r||!this.vars.runBackwards)&&(this._startAt=0),this._pt=this._op=this._onUpdate=this._lazy=this.ratio=0,this._ptLookup=[],this.timeline&&this.timeline.invalidate(r),n.prototype.invalidate.call(this,r)},t.resetTo=function(r,i,o,s,l){Iu||fe.wake(),this._ts||this.play();var m=Math.min(this._dur,(this._dp._time-this._start)*this._ts),c;return this._initted||Qn(this,m),c=this._ease(m/this._dur),Zo(this,r,i,o,s,c,m,l)?this.resetTo(r,i,o,s,1):(ln(this,0),this.parent||ea(this._dp,this,"_first","_last",this._dp._sort?"_start":0),this.render(0))},t.kill=function(r,i){if(i===void 0&&(i="all"),!r&&(!i||i==="all"))return this._lazy=this._pt=0,this.parent?Mu(this):this;if(this.timeline){var o=this.timeline.totalDuration();return this.timeline.killTweensOf(r,i,je&&je.vars.overwrite!==!0)._first||Mu(this),this.parent&&o!==this.timeline.totalDuration()&&Du(this,this._dur*this.timeline._tDur/o,0,1),this}var s=this._targets,l=r?Ce(r):s,m=this._ptLookup,c=this._pt,d,E,h,F,f,B,C;if((!i||i==="all")&&wo(s,l))return i==="all"&&(this._pt=0),Mu(this);for(d=this._op=this._op||[],i!=="all"&&(K(i)&&(f={},re(i,function(p){return f[p]=1}),i=f),i=Qo(s,i)),C=s.length;C--;)if(~l.indexOf(s[C])){E=m[C],i==="all"?(d[C]=i,F=E,h={}):(h=d[C]=d[C]||{},F=i);for(f in F)B=E&&E[f],B&&((!("kill"in B.d)||B.d.kill(f)===!0)&&rn(this,B,"_pt"),delete E[f]),h!=="all"&&(h[f]=1)}return this._initted&&!this._pt&&c&&Mu(this),this},e.to=function(r,i){return new e(r,i,arguments[2])},e.from=function(r,i){return $u(1,arguments)},e.delayedCall=function(r,i,o,s){return new e(i,0,{immediateRender:!1,lazy:!1,overwrite:!1,delay:r,onComplete:i,onReverseComplete:i,onCompleteParams:o,onReverseCompleteParams:o,callbackScope:s})},e.fromTo=function(r,i,o){return $u(2,arguments)},e.set=function(r,i){return i.duration=0,i.repeatDelay||(i.repeat=0),new e(r,i)},e.killTweensOf=function(r,i,o){return H.killTweensOf(r,i,o)},e}(zu);he(q.prototype,{_targets:[],_lazy:0,_startAt:0,_op:0,_onInit:0}),re("staggerTo,staggerFrom,staggerFromTo",function(n){q[n]=function(){var e=new te,t=Hn.call(arguments,0);return t.splice(n==="staggerFromTo"?5:4,0,0),e[n].apply(e,t)}});var Jn=function(e,t,a){return e[t]=a},ka=function(e,t,a){return e[t](a)},e5=function(e,t,a,r){return e[t](r.fp,a)},u5=function(e,t,a){return e.setAttribute(t,a)},et=function(e,t){return W(e[t])?ka:Sn(e[t])&&e.setAttribute?u5:Jn},wa=function(e,t){return t.set(t.t,t.p,Math.round((t.s+t.c*e)*1e6)/1e6,t)},n5=function(e,t){return t.set(t.t,t.p,!!(t.s+t.c*e),t)},Na=function(e,t){var a=t._pt,r="";if(!e&&t.b)r=t.b;else if(e===1&&t.e)r=t.e;else{for(;a;)r=a.p+(a.m?a.m(a.s+a.c*e):Math.round((a.s+a.c*e)*1e4)/1e4)+r,a=a._next;r+=t.c}t.set(t.t,t.p,r,t)},ut=function(e,t){for(var a=t._pt;a;)a.r(e,a.d),a=a._next},t5=function(e,t,a,r){for(var i=this._pt,o;i;)o=i._next,i.p===r&&i.modifier(e,t,a),i=o},a5=function(e){for(var t=this._pt,a,r;t;)r=t._next,t.p===e&&!t.op||t.op===e?rn(this,t,"_pt"):t.dep||(a=1),t=r;return!a},r5=function(e,t,a,r){r.mSet(e,t,r.m.call(r.tween,a,r.mt),r)},Sa=function(e){for(var t=e._pt,a,r,i,o;t;){for(a=t._next,r=i;r&&r.pr>t.pr;)r=r._next;(t._prev=r?r._prev:o)?t._prev._next=t:i=t,(t._next=r)?r._prev=t:o=t,t=a}e._pt=i},ie=function(){function n(t,a,r,i,o,s,l,m,c){this.t=a,this.s=i,this.c=o,this.p=r,this.r=s||wa,this.d=l||this,this.set=m||Jn,this.pr=c||0,this._next=t,t&&(t._prev=this)}var e=n.prototype;return e.modifier=function(a,r,i){this.mSet=this.mSet||this.set,this.set=r5,this.m=a,this.mt=i,this.tween=r},n}();re(zn+"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(n){return Mn[n]=1}),ce.TweenMax=ce.TweenLite=q,ce.TimelineLite=ce.TimelineMax=te,H=new te({sortChildren:!1,defaults:Bu,autoRemoveChildren:!0,id:"root",smoothChildTiming:!0}),me.stringFilter=pa;var nu=[],mn={},i5=[],xa=0,o5=0,nt=function(e){return(mn[e]||i5).map(function(t){return t()})},tt=function(){var e=Date.now(),t=[];e-xa>2&&(nt("matchMediaInit"),nu.forEach(function(a){var r=a.queries,i=a.conditions,o,s,l,m;for(s in r)o=ye.matchMedia(r[s]).matches,o&&(l=1),o!==i[s]&&(i[s]=o,m=1);m&&(a.revert(),l&&t.push(a))}),nt("matchMediaRevert"),t.forEach(function(a){return a.onMatch(a,function(r){return a.add(null,r)})}),xa=e,nt("matchMedia"))},Ta=function(){function n(t,a){this.selector=a&&Yn(a),this.data=[],this._r=[],this.isReverted=!1,this.id=o5++,t&&this.add(t)}var e=n.prototype;return e.add=function(a,r,i){W(a)&&(i=r,r=a,a=W);var o=this,s=function(){var m=j,c=o.selector,d;return m&&m!==o&&m.data.push(o),i&&(o.selector=Yn(i)),j=o,d=r.apply(o,arguments),W(d)&&o._r.push(d),j=m,o.selector=c,o.isReverted=!1,d};return o.last=s,a===W?s(o,function(l){return o.add(null,l)}):a?o[a]=s:s},e.ignore=function(a){var r=j;j=null,a(this),j=r},e.getTweens=function(){var a=[];return this.data.forEach(function(r){return r instanceof n?a.push.apply(a,r.getTweens()):r instanceof q&&!(r.parent&&r.parent.data==="nested")&&a.push(r)}),a},e.clear=function(){this._r.length=this.data.length=0},e.kill=function(a,r){var i=this;if(a?function(){for(var s=i.getTweens(),l=i.data.length,m;l--;)m=i.data[l],m.data==="isFlip"&&(m.revert(),m.getChildren(!0,!0,!1).forEach(function(c){return s.splice(s.indexOf(c),1)}));for(s.map(function(c){return{g:c._dur||c._delay||c._sat&&!c._sat.vars.immediateRender?c.globalTime(0):-1/0,t:c}}).sort(function(c,d){return d.g-c.g||-1/0}).forEach(function(c){return c.t.revert(a)}),l=i.data.length;l--;)m=i.data[l],m instanceof te?m.data!=="nested"&&(m.scrollTrigger&&m.scrollTrigger.revert(),m.kill()):!(m instanceof q)&&m.revert&&m.revert(a);i._r.forEach(function(c){return c(a,i)}),i.isReverted=!0}():this.data.forEach(function(s){return s.kill&&s.kill()}),this.clear(),r)for(var o=nu.length;o--;)nu[o].id===this.id&&nu.splice(o,1)},e.revert=function(a){this.kill(a||{})},n}(),s5=function(){function n(t){this.contexts=[],this.scope=t,j&&j.data.push(this)}var e=n.prototype;return e.add=function(a,r,i){ge(a)||(a={matches:a});var o=new Ta(0,i||this.scope),s=o.conditions={},l,m,c;j&&!o.selector&&(o.selector=j.selector),this.contexts.push(o),r=o.add("onMatch",r),o.queries=a;for(m in a)m==="all"?c=1:(l=ye.matchMedia(a[m]),l&&(nu.indexOf(o)<0&&nu.push(o),(s[m]=l.matches)&&(c=1),l.addListener?l.addListener(tt):l.addEventListener("change",tt)));return c&&r(o,function(d){return o.add(null,d)}),this},e.revert=function(a){this.kill(a||{})},e.kill=function(a){this.contexts.forEach(function(r){return r.kill(a,!0)})},n}(),cn={registerPlugin:function(){for(var e=arguments.length,t=new Array(e),a=0;a<e;a++)t[a]=arguments[a];t.forEach(function(r){return Fa(r)})},timeline:function(e){return new te(e)},getTweensOf:function(e,t){return H.getTweensOf(e,t)},getProperty:function(e,t,a,r){K(e)&&(e=Ce(e)[0]);var i=Ze(e||{}).get,o=a?Qt:Zt;return a==="native"&&(a=""),e&&(t?o((de[t]&&de[t].get||i)(e,t,a,r)):function(s,l,m){return o((de[s]&&de[s].get||i)(e,s,l,m))})},quickSetter:function(e,t,a){if(e=Ce(e),e.length>1){var r=e.map(function(c){return oe.quickSetter(c,t,a)}),i=r.length;return function(c){for(var d=i;d--;)r[d](c)}}e=e[0]||{};var o=de[t],s=Ze(e),l=s.harness&&(s.harness.aliases||{})[t]||t,m=o?function(c){var d=new o;_u._pt=0,d.init(e,a?c+a:c,_u,0,[e]),d.render(1,d),_u._pt&&ut(1,_u)}:s.set(e,l);return o?m:function(c){return m(e,l,a?c+a:c,s,1)}},quickTo:function(e,t,a){var r,i=oe.to(e,Qe((r={},r[t]="+=0.1",r.paused=!0,r),a||{})),o=function(l,m,c){return i.resetTo(t,l,m,c)};return o.tween=i,o},isTweening:function(e){return H.getTweensOf(e,!0).length>0},defaults:function(e){return e&&e.ease&&(e.ease=eu(e.ease,Bu.ease)),Jt(Bu,e||{})},config:function(e){return Jt(me,e||{})},registerEffect:function(e){var t=e.name,a=e.effect,r=e.plugins,i=e.defaults,o=e.extendTimeline;(r||"").split(",").forEach(function(s){return s&&!de[s]&&!ce[s]&&xu(t+" effect requires "+s+" plugin.")}),In[t]=function(s,l,m){return a(Ce(s),he(l||{},i),m)},o&&(te.prototype[t]=function(s,l,m){return this.add(In[t](s,ge(l)?l:(m=l)&&{},this),m)})},registerEase:function(e,t){V[e]=eu(t)},parseEase:function(e,t){return arguments.length?eu(e,t):V},getById:function(e){return H.getById(e)},exportRoot:function(e,t){e===void 0&&(e={});var a=new te(e),r,i;for(a.smoothChildTiming=ae(e.smoothChildTiming),H.remove(a),a._dp=0,a._time=a._tTime=H._time,r=H._first;r;)i=r._next,(t||!(!r._dur&&r instanceof q&&r.vars.onComplete===r._targets[0]))&&be(a,r,r._start-r._delay),r=i;return be(H,a,0),a},context:function(e,t){return e?new Ta(e,t):j},matchMedia:function(e){return new s5(e)},matchMediaRefresh:function(){return nu.forEach(function(e){var t=e.conditions,a,r;for(r in t)t[r]&&(t[r]=!1,a=1);a&&e.revert()})||tt()},addEventListener:function(e,t){var a=mn[e]||(mn[e]=[]);~a.indexOf(t)||a.push(t)},removeEventListener:function(e,t){var a=mn[e],r=a&&a.inde