UNPKG

various-ui

Version:

This is a test version of the Vue 3 component library

9 lines 347 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 Zu=t=>typeof t=="string"?document.querySelector(`#${t}`):t,me=(t,e)=>{var n;let a=Zu(t);if(!a)a=document.createElement("div"),a.id=t,document.body.appendChild(a);else for(let r=0,i=((n=a==null?void 0:a.children)==null?void 0:n.length)||0;r<i;r++)if(e&&(a==null?void 0:a.children[r])==e)return;a.appendChild(e)},Ae=(t,e)=>{var n;const a=Zu(t);for(let r=0,i=((n=a==null?void 0:a.children)==null?void 0:n.length)||0;r<i;r++)if(e&&(a==null?void 0:a.children[r])==e){a.removeChild(e);break}},De=(t,e)=>t?t==e?!0:De(t.parentElement,e):!1;var co=Object.freeze({__proto__:null,append:me,includes:De,remove:Ae,use:Zu}),Vt=typeof global=="object"&&global&&global.Object===Object&&global,Eo=typeof self=="object"&&self&&self.Object===Object&&self,ye=Vt||Eo||Function("return this")(),Ie=ye.Symbol,$t=Object.prototype,fo=$t.hasOwnProperty,Fo=$t.toString,Nu=Ie?Ie.toStringTag:void 0;function Bo(t){var e=fo.call(t,Nu),n=t[Nu];try{t[Nu]=void 0;var a=!0}catch(i){}var r=Fo.call(t);return a&&(e?t[Nu]=n:delete t[Nu]),r}var ho=Object.prototype,Co=ho.toString;function po(t){return Co.call(t)}var Ao="[object Null]",Do="[object Undefined]",Pt=Ie?Ie.toStringTag:void 0;function be(t){return t==null?t===void 0?Do:Ao:Pt&&Pt in Object(t)?Bo(t):po(t)}function ve(t){return t!=null&&typeof t=="object"}var _o="[object Symbol]";function Ot(t){return typeof t=="symbol"||ve(t)&&be(t)==_o}var go=NaN;function Mt(t){return typeof t=="number"?t:Ot(t)?go:+t}function yo(t,e){for(var n=-1,a=t==null?0:t.length,r=Array(a);++n<a;)r[n]=e(t[n],n,t);return r}var bo=Array.isArray,Qe=bo,vo=1/0,Ut=Ie?Ie.prototype:void 0,zt=Ut?Ut.toString:void 0;function Qu(t){if(typeof t=="string")return t;if(Qe(t))return yo(t,Qu)+"";if(Ot(t))return zt?zt.call(t):"";var e=t+"";return e=="0"&&1/t==-vo?"-0":e}function Ju(t,e){return function(n,a){var r;if(n===void 0&&a===void 0)return e;if(n!==void 0&&(r=n),a!==void 0){if(r===void 0)return a;typeof n=="string"||typeof a=="string"?(n=Qu(n),a=Qu(a)):(n=Mt(n),a=Mt(a)),r=t(n,a)}return r}}var ko=Ju(function(t,e){return t+e},0),wo=ko;function Re(t){var e=typeof t;return t!=null&&(e=="object"||e=="function")}var xo="[object AsyncFunction]",No="[object Function]",So="[object GeneratorFunction]",To="[object Proxy]";function It(t){if(!Re(t))return!1;var e=be(t);return e==No||e==So||e==xo||e==To}var bn=ye["__core-js_shared__"],Rt=function(){var t=/[^.]+$/.exec(bn&&bn.keys&&bn.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}();function Vo(t){return!!Rt&&Rt in t}var $o=Function.prototype,Po=$o.toString;function Je(t){if(t!=null){try{return Po.call(t)}catch(e){}try{return t+""}catch(e){}}return""}var Oo=/[\\^$.*+?()[\]{}|]/g,Mo=/^\[object .+?Constructor\]$/,Uo=Function.prototype,zo=Object.prototype,Io=Uo.toString,Ro=zo.hasOwnProperty,jo=RegExp("^"+Io.call(Ro).replace(Oo,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Lo(t){if(!Re(t)||Vo(t))return!1;var e=It(t)?jo:Mo;return e.test(Je(t))}function Yo(t,e){return t==null?void 0:t[e]}function eu(t,e){var n=Yo(t,e);return Lo(n)?n:void 0}var vn=eu(ye,"WeakMap"),jt=Object.create,Ho=function(){function t(){}return function(e){if(!Re(e))return{};if(jt)return jt(e);t.prototype=e;var n=new t;return t.prototype=void 0,n}}();function Wo(t,e){var n=-1,a=t.length;for(e||(e=Array(a));++n<a;)e[n]=t[n];return e}var Lt=function(){try{var t=eu(Object,"defineProperty");return t({},"",{}),t}catch(e){}}();function Xo(t,e){for(var n=-1,a=t==null?0:t.length;++n<a&&e(t[n],n,t)!==!1;);return t}var qo=9007199254740991,Go=/^(?:0|[1-9]\d*)$/;function Ko(t,e){var n=typeof t;return e=e==null?qo:e,!!e&&(n=="number"||n!="symbol"&&Go.test(t))&&t>-1&&t%1==0&&t<e}function Yt(t,e,n){e=="__proto__"&&Lt?Lt(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n}function Ht(t,e){return t===e||t!==t&&e!==e}var Zo=Object.prototype,Qo=Zo.hasOwnProperty;function Wt(t,e,n){var a=t[e];(!(Qo.call(t,e)&&Ht(a,n))||n===void 0&&!(e in t))&&Yt(t,e,n)}function en(t,e,n,a){var r=!n;n||(n={});for(var i=-1,o=e.length;++i<o;){var s=e[i],l=a?a(n[s],t[s],s,n,t):void 0;l===void 0&&(l=t[s]),r?Yt(n,s,l):Wt(n,s,l)}return n}var Jo=9007199254740991;function Xt(t){return typeof t=="number"&&t>-1&&t%1==0&&t<=Jo}function qt(t){return t!=null&&Xt(t.length)&&!It(t)}var e5=Object.prototype;function kn(t){var e=t&&t.constructor,n=typeof e=="function"&&e.prototype||e5;return t===n}function u5(t,e){for(var n=-1,a=Array(t);++n<t;)a[n]=e(n);return a}var n5="[object Arguments]";function Gt(t){return ve(t)&&be(t)==n5}var Kt=Object.prototype,t5=Kt.hasOwnProperty,a5=Kt.propertyIsEnumerable,r5=Gt(function(){return arguments}())?Gt:function(t){return ve(t)&&t5.call(t,"callee")&&!a5.call(t,"callee")};function i5(){return!1}var Zt=typeof v=="object"&&v&&!v.nodeType&&v,Qt=Zt&&typeof module=="object"&&module&&!module.nodeType&&module,o5=Qt&&Qt.exports===Zt,Jt=o5?ye.Buffer:void 0,s5=Jt?Jt.isBuffer:void 0,ea=s5||i5,l5="[object Arguments]",m5="[object Array]",c5="[object Boolean]",d5="[object Date]",E5="[object Error]",f5="[object Function]",F5="[object Map]",B5="[object Number]",h5="[object Object]",C5="[object RegExp]",p5="[object Set]",A5="[object String]",D5="[object WeakMap]",_5="[object ArrayBuffer]",g5="[object DataView]",y5="[object Float32Array]",b5="[object Float64Array]",v5="[object Int8Array]",k5="[object Int16Array]",w5="[object Int32Array]",x5="[object Uint8Array]",N5="[object Uint8ClampedArray]",S5="[object Uint16Array]",T5="[object Uint32Array]",R={};R[y5]=R[b5]=R[v5]=R[k5]=R[w5]=R[x5]=R[N5]=R[S5]=R[T5]=!0,R[l5]=R[m5]=R[_5]=R[c5]=R[g5]=R[d5]=R[E5]=R[f5]=R[F5]=R[B5]=R[h5]=R[C5]=R[p5]=R[A5]=R[D5]=!1;function V5(t){return ve(t)&&Xt(t.length)&&!!R[be(t)]}function un(t){return function(e){return t(e)}}var ua=typeof v=="object"&&v&&!v.nodeType&&v,Su=ua&&typeof module=="object"&&module&&!module.nodeType&&module,$5=Su&&Su.exports===ua,wn=$5&&Vt.process,je=function(){try{var t=Su&&Su.require&&Su.require("util").types;return t||wn&&wn.binding&&wn.binding("util")}catch(e){}}(),na=je&&je.isTypedArray,P5=na?un(na):V5,O5=Object.prototype,M5=O5.hasOwnProperty;function ta(t,e){var n=Qe(t),a=!n&&r5(t),r=!n&&!a&&ea(t),i=!n&&!a&&!r&&P5(t),o=n||a||r||i,s=o?u5(t.length,String):[],l=s.length;for(var m in t)(e||M5.call(t,m))&&!(o&&(m=="length"||r&&(m=="offset"||m=="parent")||i&&(m=="buffer"||m=="byteLength"||m=="byteOffset")||Ko(m,l)))&&s.push(m);return s}function aa(t,e){return function(n){return t(e(n))}}var U5=aa(Object.keys,Object),z5=Object.prototype,I5=z5.hasOwnProperty;function R5(t){if(!kn(t))return U5(t);var e=[];for(var n in Object(t))I5.call(t,n)&&n!="constructor"&&e.push(n);return e}function xn(t){return qt(t)?ta(t):R5(t)}function j5(t){var e=[];if(t!=null)for(var n in Object(t))e.push(n);return e}var L5=Object.prototype,Y5=L5.hasOwnProperty;function H5(t){if(!Re(t))return j5(t);var e=kn(t),n=[];for(var a in t)a=="constructor"&&(e||!Y5.call(t,a))||n.push(a);return n}function Nn(t){return qt(t)?ta(t,!0):H5(t)}var Tu=eu(Object,"create");function W5(){this.__data__=Tu?Tu(null):{},this.size=0}function X5(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}var q5="__lodash_hash_undefined__",G5=Object.prototype,K5=G5.hasOwnProperty;function Z5(t){var e=this.__data__;if(Tu){var n=e[t];return n===q5?void 0:n}return K5.call(e,t)?e[t]:void 0}var Q5=Object.prototype,J5=Q5.hasOwnProperty;function es(t){var e=this.__data__;return Tu?e[t]!==void 0:J5.call(e,t)}var us="__lodash_hash_undefined__";function ns(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=Tu&&e===void 0?us:e,this}function uu(t){var e=-1,n=t==null?0:t.length;for(this.clear();++e<n;){var a=t[e];this.set(a[0],a[1])}}uu.prototype.clear=W5,uu.prototype.delete=X5,uu.prototype.get=Z5,uu.prototype.has=es,uu.prototype.set=ns;function ts(){this.__data__=[],this.size=0}function nn(t,e){for(var n=t.length;n--;)if(Ht(t[n][0],e))return n;return-1}var as=Array.prototype,rs=as.splice;function is(t){var e=this.__data__,n=nn(e,t);if(n<0)return!1;var a=e.length-1;return n==a?e.pop():rs.call(e,n,1),--this.size,!0}function os(t){var e=this.__data__,n=nn(e,t);return n<0?void 0:e[n][1]}function ss(t){return nn(this.__data__,t)>-1}function ls(t,e){var n=this.__data__,a=nn(n,t);return a<0?(++this.size,n.push([t,e])):n[a][1]=e,this}function Ve(t){var e=-1,n=t==null?0:t.length;for(this.clear();++e<n;){var a=t[e];this.set(a[0],a[1])}}Ve.prototype.clear=ts,Ve.prototype.delete=is,Ve.prototype.get=os,Ve.prototype.has=ss,Ve.prototype.set=ls;var Vu=eu(ye,"Map");function ms(){this.size=0,this.__data__={hash:new uu,map:new(Vu||Ve),string:new uu}}function cs(t){var e=typeof t;return e=="string"||e=="number"||e=="symbol"||e=="boolean"?t!=="__proto__":t===null}function tn(t,e){var n=t.__data__;return cs(e)?n[typeof e=="string"?"string":"hash"]:n.map}function ds(t){var e=tn(this,t).delete(t);return this.size-=e?1:0,e}function Es(t){return tn(this,t).get(t)}function fs(t){return tn(this,t).has(t)}function Fs(t,e){var n=tn(this,t),a=n.size;return n.set(t,e),this.size+=n.size==a?0:1,this}function hu(t){var e=-1,n=t==null?0:t.length;for(this.clear();++e<n;){var a=t[e];this.set(a[0],a[1])}}hu.prototype.clear=ms,hu.prototype.delete=ds,hu.prototype.get=Es,hu.prototype.has=fs,hu.prototype.set=Fs;function Bs(t){return t==null?"":Qu(t)}function ra(t,e){for(var n=-1,a=e.length,r=t.length;++n<a;)t[r+n]=e[n];return t}var ia=aa(Object.getPrototypeOf,Object);function hs(t,e,n){var a=-1,r=t.length;e<0&&(e=-e>r?0:r+e),n=n>r?r:n,n<0&&(n+=r),r=e>n?0:n-e>>>0,e>>>=0;for(var i=Array(r);++a<r;)i[a]=t[a+e];return i}function Cs(t,e,n){var a=t.length;return n=n===void 0?a:n,!e&&n>=a?t:hs(t,e,n)}var ps="\\ud800-\\udfff",As="\\u0300-\\u036f",Ds="\\ufe20-\\ufe2f",_s="\\u20d0-\\u20ff",gs=As+Ds+_s,ys="\\ufe0e\\ufe0f",bs="\\u200d",vs=RegExp("["+bs+ps+gs+ys+"]");function oa(t){return vs.test(t)}function ks(t){return t.split("")}var sa="\\ud800-\\udfff",ws="\\u0300-\\u036f",xs="\\ufe20-\\ufe2f",Ns="\\u20d0-\\u20ff",Ss=ws+xs+Ns,Ts="\\ufe0e\\ufe0f",Vs="["+sa+"]",Sn="["+Ss+"]",Tn="\\ud83c[\\udffb-\\udfff]",$s="(?:"+Sn+"|"+Tn+")",la="[^"+sa+"]",ma="(?:\\ud83c[\\udde6-\\uddff]){2}",ca="[\\ud800-\\udbff][\\udc00-\\udfff]",Ps="\\u200d",da=$s+"?",Ea="["+Ts+"]?",Os="(?:"+Ps+"(?:"+[la,ma,ca].join("|")+")"+Ea+da+")*",Ms=Ea+da+Os,Us="(?:"+[la+Sn+"?",Sn,ma,ca,Vs].join("|")+")",zs=RegExp(Tn+"(?="+Tn+")|"+Us+Ms,"g");function Is(t){return t.match(zs)||[]}function Rs(t){return oa(t)?Is(t):ks(t)}function js(t){return function(e){e=Bs(e);var n=oa(e)?Rs(e):void 0,a=n?n[0]:e.charAt(0),r=n?Cs(n,1).join(""):e.slice(1);return a[t]()+r}}var Ls=js("toUpperCase"),Ys=Ls;function Hs(){this.__data__=new Ve,this.size=0}function Ws(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n}function Xs(t){return this.__data__.get(t)}function qs(t){return this.__data__.has(t)}var Gs=200;function Ks(t,e){var n=this.__data__;if(n instanceof Ve){var a=n.__data__;if(!Vu||a.length<Gs-1)return a.push([t,e]),this.size=++n.size,this;n=this.__data__=new hu(a)}return n.set(t,e),this.size=n.size,this}function Cu(t){var e=this.__data__=new Ve(t);this.size=e.size}Cu.prototype.clear=Hs,Cu.prototype.delete=Ws,Cu.prototype.get=Xs,Cu.prototype.has=qs,Cu.prototype.set=Ks;function Zs(t,e){return t&&en(e,xn(e),t)}function Qs(t,e){return t&&en(e,Nn(e),t)}var fa=typeof v=="object"&&v&&!v.nodeType&&v,Fa=fa&&typeof module=="object"&&module&&!module.nodeType&&module,Js=Fa&&Fa.exports===fa,Ba=Js?ye.Buffer:void 0,ha=Ba?Ba.allocUnsafe:void 0;function el(t,e){if(e)return t.slice();var n=t.length,a=ha?ha(n):new t.constructor(n);return t.copy(a),a}function ul(t,e){for(var n=-1,a=t==null?0:t.length,r=0,i=[];++n<a;){var o=t[n];e(o,n,t)&&(i[r++]=o)}return i}function Ca(){return[]}var nl=Object.prototype,tl=nl.propertyIsEnumerable,pa=Object.getOwnPropertySymbols,Vn=pa?function(t){return t==null?[]:(t=Object(t),ul(pa(t),function(e){return tl.call(t,e)}))}:Ca;function al(t,e){return en(t,Vn(t),e)}var rl=Object.getOwnPropertySymbols,Aa=rl?function(t){for(var e=[];t;)ra(e,Vn(t)),t=ia(t);return e}:Ca;function il(t,e){return en(t,Aa(t),e)}function Da(t,e,n){var a=e(t);return Qe(t)?a:ra(a,n(t))}function ol(t){return Da(t,xn,Vn)}function sl(t){return Da(t,Nn,Aa)}var $n=eu(ye,"DataView"),Pn=eu(ye,"Promise"),On=eu(ye,"Set"),_a="[object Map]",ll="[object Object]",ga="[object Promise]",ya="[object Set]",ba="[object WeakMap]",va="[object DataView]",ml=Je($n),cl=Je(Vu),dl=Je(Pn),El=Je(On),fl=Je(vn),nu=be;($n&&nu(new $n(new ArrayBuffer(1)))!=va||Vu&&nu(new Vu)!=_a||Pn&&nu(Pn.resolve())!=ga||On&&nu(new On)!=ya||vn&&nu(new vn)!=ba)&&(nu=function(t){var e=be(t),n=e==ll?t.constructor:void 0,a=n?Je(n):"";if(a)switch(a){case ml:return va;case cl:return _a;case dl:return ga;case El:return ya;case fl:return ba}return e});var Mn=nu,Fl=Object.prototype,Bl=Fl.hasOwnProperty;function hl(t){var e=t.length,n=new t.constructor(e);return e&&typeof t[0]=="string"&&Bl.call(t,"index")&&(n.index=t.index,n.input=t.input),n}var ka=ye.Uint8Array;function Un(t){var e=new t.constructor(t.byteLength);return new ka(e).set(new ka(t)),e}function Cl(t,e){var n=e?Un(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)}var pl=/\w*$/;function Al(t){var e=new t.constructor(t.source,pl.exec(t));return e.lastIndex=t.lastIndex,e}var wa=Ie?Ie.prototype:void 0,xa=wa?wa.valueOf:void 0;function Dl(t){return xa?Object(xa.call(t)):{}}function _l(t,e){var n=e?Un(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)}var gl="[object Boolean]",yl="[object Date]",bl="[object Map]",vl="[object Number]",kl="[object RegExp]",wl="[object Set]",xl="[object String]",Nl="[object Symbol]",Sl="[object ArrayBuffer]",Tl="[object DataView]",Vl="[object Float32Array]",$l="[object Float64Array]",Pl="[object Int8Array]",Ol="[object Int16Array]",Ml="[object Int32Array]",Ul="[object Uint8Array]",zl="[object Uint8ClampedArray]",Il="[object Uint16Array]",Rl="[object Uint32Array]";function jl(t,e,n){var a=t.constructor;switch(e){case Sl:return Un(t);case gl:case yl:return new a(+t);case Tl:return Cl(t,n);case Vl:case $l:case Pl:case Ol:case Ml:case Ul:case zl:case Il:case Rl:return _l(t,n);case bl:return new a;case vl:case xl:return new a(t);case kl:return Al(t);case wl:return new a;case Nl:return Dl(t)}}function Ll(t){return typeof t.constructor=="function"&&!kn(t)?Ho(ia(t)):{}}var Yl="[object Map]";function Hl(t){return ve(t)&&Mn(t)==Yl}var Na=je&&je.isMap,Wl=Na?un(Na):Hl,Xl="[object Set]";function ql(t){return ve(t)&&Mn(t)==Xl}var Sa=je&&je.isSet,Gl=Sa?un(Sa):ql,Kl=1,Zl=2,Ql=4,Ta="[object Arguments]",Jl="[object Array]",em="[object Boolean]",um="[object Date]",nm="[object Error]",Va="[object Function]",tm="[object GeneratorFunction]",am="[object Map]",rm="[object Number]",$a="[object Object]",im="[object RegExp]",om="[object Set]",sm="[object String]",lm="[object Symbol]",mm="[object WeakMap]",cm="[object ArrayBuffer]",dm="[object DataView]",Em="[object Float32Array]",fm="[object Float64Array]",Fm="[object Int8Array]",Bm="[object Int16Array]",hm="[object Int32Array]",Cm="[object Uint8Array]",pm="[object Uint8ClampedArray]",Am="[object Uint16Array]",Dm="[object Uint32Array]",z={};z[Ta]=z[Jl]=z[cm]=z[dm]=z[em]=z[um]=z[Em]=z[fm]=z[Fm]=z[Bm]=z[hm]=z[am]=z[rm]=z[$a]=z[im]=z[om]=z[sm]=z[lm]=z[Cm]=z[pm]=z[Am]=z[Dm]=!0,z[nm]=z[Va]=z[mm]=!1;function an(t,e,n,a,r,i){var o,s=e&Kl,l=e&Zl,m=e&Ql;if(n&&(o=r?n(t,a,r,i):n(t)),o!==void 0)return o;if(!Re(t))return t;var c=Qe(t);if(c){if(o=hl(t),!s)return Wo(t,o)}else{var d=Mn(t),E=d==Va||d==tm;if(ea(t))return el(t,s);if(d==$a||d==Ta||E&&!r){if(o=l||E?{}:Ll(t),!s)return l?il(t,Qs(o,t)):al(t,Zs(o,t))}else{if(!z[d])return r?t:{};o=jl(t,d,s)}}i||(i=new Cu);var B=i.get(t);if(B)return B;i.set(t,o),Gl(t)?t.forEach(function(h){o.add(an(h,e,n,h,t,i))}):Wl(t)&&t.forEach(function(h,C){o.set(C,an(h,e,n,C,t,i))});var F=m?l?sl:ol:l?Nn:xn,f=c?void 0:F(t);return Xo(f||t,function(h,C){f&&(C=h,h=t[C]),Wt(o,C,an(h,e,n,C,t,i))}),o}var _m=1,gm=4;function $u(t){return an(t,_m|gm)}var ym=Ju(function(t,e){return t/e},1),bm=ym,vm="[object String]";function km(t){return typeof t=="string"||!Qe(t)&&ve(t)&&be(t)==vm}var wm="[object Boolean]";function xm(t){return t===!0||t===!1||ve(t)&&be(t)==wm}var Nm="[object Date]";function Sm(t){return ve(t)&&be(t)==Nm}var Pa=je&&je.isDate,Tm=Pa?un(Pa):Sm,Vm=Tm,$m="[object Number]";function T(t){return typeof t=="number"||ve(t)&&be(t)==$m}var Pm=Ju(function(t,e){return t*e},1),Om=Pm,Mm=Ju(function(t,e){return t-e},0),Um=Mm,zm=Object.freeze({__proto__:null,add:wo,cloneDeep:$u,divide:bm,isArray:Qe,isBoolean:xm,isDate:Vm,isNumber:T,isObject:Re,isString:km,multiply:Om,objectPick:(t,e,n)=>{if(Re(t)){const a={};for(const r in t)t.hasOwnProperty(r)&&(!n||!n.includes(r))&&e(t[r])&&(a[r]=t[r]);return a}else return t},random:(t,e,n)=>{if(t=t||0,e=e||1,e<t){let r=t;t=e,e=r}const a=t+(e-t)*Math.random();if(n)return a;{const r=a.toString().split(".");return r.length==1?a:Number(r.slice(-1)[0].charAt(0))>=5?Math.ceil(a):Math.floor(a)}},subtract:Um,upperFirst:Ys});const Oa=t=>{const e=t.getBoundingClientRect();return{rootY:e.top+window.scrollY,rootX:e.left+window.scrollX,visibleY:e.top,visibleX:e.left,width:e.width,height:e.height}},Im=(t,e,n)=>t<n.min?n.min:t+e>n.max?n.max-e:t;function $e(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Ma(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__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 ce={autoSleep:120,force3D:"auto",nullTargetWarn:1,units:{lineHeight:""}},pu={duration:.5,overwrite:!1,delay:0},zn,ee,j,Be=1e8,I=1/Be,In=Math.PI*2,Rm=In/4,jm=0,Ua=Math.sqrt,Lm=Math.cos,Ym=Math.sin,K=function(e){return typeof e=="string"},W=function(e){return typeof e=="function"},Pe=function(e){return typeof e=="number"},Rn=function(e){return typeof e=="undefined"},ke=function(e){return typeof e=="object"},ae=function(e){return e!==!1},jn=function(){return typeof window!="undefined"},rn=function(e){return W(e)||K(e)},za=typeof ArrayBuffer=="function"&&ArrayBuffer.isView||function(){},ue=Array.isArray,Ln=/(?:-?\.?\d|\.)+/gi,Ia=/[-+=.]*\d+[.e\-+]*\d*[e\-+]*\d*/g,Au=/[-+=.]*\d+[.e-]*\d*[a-z%]*/g,Yn=/[-+=.]*\d+\.?\d*(?:e-|e\+)?\d*/gi,Ra=/[+-]=-?[.\d]+/,ja=/[^,'"\[\]\s]+/gi,Hm=/^[+\-=e\s\d]*\d+[.\d]*([a-z]*|%)\s*$/i,Y,we,Hn,Wn,de={},on={},La,Ya=function(e){return(on=au(e,de))&&oe},Xn=function(e,n){return console.warn("Invalid property",e,"set to",n,"Missing plugin? gsap.registerPlugin()")},Pu=function(e,n){return!n&&console.warn(e)},Ha=function(e,n){return e&&(de[e]=n)&&on&&(on[e]=n)||de},Ou=function(){return 0},Wm={suppressEvents:!0,isStart:!0,kill:!1},sn={suppressEvents:!0,kill:!1},Xm={suppressEvents:!0},qn={},Le=[],Gn={},Wa,Ee={},Kn={},Xa=30,ln=[],Zn="",Qn=function(e){var n=e[0],a,r;if(ke(n)||W(n)||(e=[e]),!(a=(n._gsap||{}).harness)){for(r=ln.length;r--&&!ln[r].targetTest(n););a=ln[r]}for(r=e.length;r--;)e[r]&&(e[r]._gsap||(e[r]._gsap=new _r(e[r],a)))||e.splice(r,1);return e},tu=function(e){return e._gsap||Qn(pe(e))[0]._gsap},qa=function(e,n,a){return(a=e[n])&&W(a)?e[n]():Rn(a)&&e.getAttribute&&e.getAttribute(n)||a},re=function(e,n){return(e=e.split(",")).forEach(n)||e},X=function(e){return Math.round(e*1e5)/1e5||0},Z=function(e){return Math.round(e*1e7)/1e7||0},Du=function(e,n){var a=n.charAt(0),r=parseFloat(n.substr(2));return e=parseFloat(e),a==="+"?e+r:a==="-"?e-r:a==="*"?e*r:e/r},qm=function(e,n){for(var a=n.length,r=0;e.indexOf(n[r])<0&&++r<a;);return r<a},mn=function(){var e=Le.length,n=Le.slice(0),a,r;for(Gn={},Le.length=0,a=0;a<e;a++)r=n[a],r&&r._lazy&&(r.render(r._lazy[0],r._lazy[1],!0)._lazy=0)},Ga=function(e,n,a,r){Le.length&&!ee&&mn(),e.render(n,a,r||ee&&n<0&&(e._initted||e._startAt)),Le.length&&!ee&&mn()},Ka=function(e){var n=parseFloat(e);return(n||n===0)&&(e+"").match(ja).length<2?n:K(e)?e.trim():e},Za=function(e){return e},he=function(e,n){for(var a in n)a in e||(e[a]=n[a]);return e},Gm=function(e){return function(n,a){for(var r in a)r in n||r==="duration"&&e||r==="ease"||(n[r]=a[r])}},au=function(e,n){for(var a in n)e[a]=n[a];return e},Qa=function t(e,n){for(var a in n)a!=="__proto__"&&a!=="constructor"&&a!=="prototype"&&(e[a]=ke(n[a])?t(e[a]||(e[a]={}),n[a]):n[a]);return e},cn=function(e,n){var a={},r;for(r in e)r in n||(a[r]=e[r]);return a},Mu=function(e){var n=e.parent||Y,a=e.keyframes?Gm(ue(e.keyframes)):he;if(ae(e.inherit))for(;n;)a(e,n.vars.defaults),n=n.parent||n._dp;return e},Km=function(e,n){for(var a=e.length,r=a===n.length;r&&a--&&e[a]===n[a];);return a<0},Ja=function(e,n,a,r,i){a===void 0&&(a="_first"),r===void 0&&(r="_last");var o=e[r],s;if(i)for(s=n[i];o&&o[i]>s;)o=o._prev;return o?(n._next=o._next,o._next=n):(n._next=e[a],e[a]=n),n._next?n._next._prev=n:e[r]=n,n._prev=o,n.parent=n._dp=e,n},dn=function(e,n,a,r){a===void 0&&(a="_first"),r===void 0&&(r="_last");var i=n._prev,o=n._next;i?i._next=o:e[a]===n&&(e[a]=o),o?o._prev=i:e[r]===n&&(e[r]=i),n._next=n._prev=n.parent=null},Ye=function(e,n){e.parent&&(!n||e.parent.autoRemoveChildren)&&e.parent.remove&&e.parent.remove(e),e._act=0},ru=function(e,n){if(e&&(!n||n._end>e._dur||n._start<0))for(var a=e;a;)a._dirty=1,a=a.parent;return e},Zm=function(e){for(var n=e.parent;n&&n.parent;)n._dirty=1,n.totalDuration(),n=n.parent;return e},Jn=function(e,n,a,r){return e._startAt&&(ee?e._startAt.revert(sn):e.vars.immediateRender&&!e.vars.autoRevert||e._startAt.render(n,!0,r))},Qm=function t(e){return!e||e._ts&&t(e.parent)},er=function(e){return e._repeat?_u(e._tTime,e=e.duration()+e._rDelay)*e:0},_u=function(e,n){var a=Math.floor(e/=n);return e&&a===e?a-1:a},En=function(e,n){return(e-n._start)*n._ts+(n._ts>=0?0:n._dirty?n.totalDuration():n._tDur)},fn=function(e){return e._end=Z(e._start+(e._tDur/Math.abs(e._ts||e._rts||I)||0))},Fn=function(e,n){var a=e._dp;return a&&a.smoothChildTiming&&e._ts&&(e._start=Z(a._time-(e._ts>0?n/e._ts:((e._dirty?e.totalDuration():e._tDur)-n)/-e._ts)),fn(e),a._dirty||ru(a,e)),e},ur=function(e,n){var a;if((n._time||!n._dur&&n._initted||n._start<e._time&&(n._dur||!n.add))&&(a=En(e.rawTime(),n),(!n._dur||zu(0,n.totalDuration(),a)-n._tTime>I)&&n.render(a,!0)),ru(e,n)._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}},xe=function(e,n,a,r){return n.parent&&Ye(n),n._start=Z((Pe(a)?a:a||e!==Y?Ce(e,a,n):e._time)+n._delay),n._end=Z(n._start+(n.totalDuration()/Math.abs(n.timeScale())||0)),Ja(e,n,"_first","_last",e._sort?"_start":0),et(n)||(e._recent=n),r||ur(e,n),e._ts<0&&Fn(e,e._tTime),e},nr=function(e,n){return(de.ScrollTrigger||Xn("scrollTrigger",n))&&de.ScrollTrigger.create(n,e)},tr=function(e,n,a,r,i){if(lt(e,n,i),!e._initted)return 1;if(!a&&e._pt&&!ee&&(e._dur&&e.vars.lazy!==!1||!e._dur&&e.vars.lazy)&&Wa!==Fe.frame)return Le.push(e),e._lazy=[i,r],1},Jm=function t(e){var n=e.parent;return n&&n._ts&&n._initted&&!n._lock&&(n.rawTime()<0||t(n))},et=function(e){var n=e.data;return n==="isFromStart"||n==="isStart"},ec=function(e,n,a,r){var i=e.ratio,o=n<0||!n&&(!e._start&&Jm(e)&&!(!e._initted&&et(e))||(e._ts<0||e._dp._ts<0)&&!et(e))?0:1,s=e._rDelay,l=0,m,c,d;if(s&&e._repeat&&(l=zu(0,e._tDur,n),c=_u(l,s),e._yoyo&&c&1&&(o=1-o),c!==_u(e._tTime,s)&&(i=1-o,e.vars.repeatRefresh&&e._initted&&e.invalidate())),o!==i||ee||r||e._zTime===I||!n&&e._zTime){if(!e._initted&&tr(e,n,r,a,l))return;for(d=e._zTime,e._zTime=n||(a?I:0),a||(a=n&&!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;n<0&&Jn(e,n,a,!0),e._onUpdate&&!a&&fe(e,"onUpdate"),l&&e._repeat&&!a&&e.parent&&fe(e,"onRepeat"),(n>=e._tDur||n<0)&&e.ratio===o&&(o&&Ye(e,1),!a&&!ee&&(fe(e,o?"onComplete":"onReverseComplete",!0),e._prom&&e._prom()))}else e._zTime||(e._zTime=n)},uc=function(e,n,a){var r;if(a>n)for(r=e._first;r&&r._start<=a;){if(r.data==="isPause"&&r._start>n)return r;r=r._next}else for(r=e._last;r&&r._start>=a;){if(r.data==="isPause"&&r._start<n)return r;r=r._prev}},gu=function(e,n,a,r){var i=e._repeat,o=Z(n)||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&&Fn(e,e._tTime=e._tDur*s),e.parent&&fn(e),a||ru(e.parent,e),e},ar=function(e){return e instanceof te?ru(e):gu(e,e._dur)},nc={_start:0,endTime:Ou,totalDuration:Ou},Ce=function t(e,n,a){var r=e.labels,i=e._recent||nc,o=e.duration()>=Be?i.endTime(!1):e._dur,s,l,m;return K(n)&&(isNaN(n)||n in r)?(l=n.charAt(0),m=n.substr(-1)==="%",s=n.indexOf("="),l==="<"||l===">"?(s>=0&&(n=n.replace(/=/,"")),(l==="<"?i._start:i.endTime(i._repeat>=0))+(parseFloat(n.substr(1))||0)*(m?(s<0?i:a).totalDuration()/100:1)):s<0?(n in r||(r[n]=o),r[n]):(l=parseFloat(n.charAt(s-1)+n.substr(s+1)),m&&a&&(l=l/100*(ue(a)?a[0]:a).totalDuration()),s>1?t(e,n.substr(0,s-1),a)+l:o+l)):n==null?o:+n},Uu=function(e,n,a){var r=Pe(n[1]),i=(r?2:1)+(e<2?0:1),o=n[i],s,l;if(r&&(o.duration=n[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=n[i-1]}return new q(n[0],o,n[i+1])},He=function(e,n){return e||e===0?n(e):n},zu=function(e,n,a){return a<e?e:a>n?n:a},ne=function(e,n){return!K(e)||!(n=Hm.exec(e))?"":n[1]},tc=function(e,n,a){return He(a,function(r){return zu(e,n,r)})},ut=[].slice,rr=function(e,n){return e&&ke(e)&&"length"in e&&(!n&&!e.length||e.length-1 in e&&ke(e[0]))&&!e.nodeType&&e!==we},ac=function(e,n,a){return a===void 0&&(a=[]),e.forEach(function(r){var i;return K(r)&&!n||rr(r,1)?(i=a).push.apply(i,pe(r)):a.push(r)})||a},pe=function(e,n,a){return j&&!n&&j.selector?j.selector(e):K(e)&&!a&&(Hn||!bu())?ut.call((n||Wn).querySelectorAll(e),0):ue(e)?ac(e,a):rr(e)?ut.call(e,0):e?[e]:[]},nt=function(e){return e=pe(e)[0]||Pu("Invalid scope")||{},function(n){var a=e.current||e.nativeElement||e;return pe(n,a.querySelectorAll?a:a===e?Pu("Invalid scope")||Wn.createElement("div"):e)}},ir=function(e){return e.sort(function(){return .5-Math.random()})},or=function(e){if(W(e))return e;var n=ke(e)?e:{each:e},a=iu(n.ease),r=n.from||0,i=parseFloat(n.base)||0,o={},s=r>0&&r<1,l=isNaN(r)||s,m=n.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,B,F){var f=(F||n).length,h=o[f],C,p,A,y,D,b,k,_,g;if(!h){if(g=n.grid==="auto"?0:(n.grid||[1,Be])[1],!g){for(k=-Be;k<(k=F[g++].getBoundingClientRect().left)&&g<f;);g<f&&g--}for(h=o[f]=[],C=l?Math.min(g,f)*c-.5:r%g,p=g===Be?0:l?f*d/g-.5:r/g|0,k=0,_=Be,b=0;b<f;b++)A=b%g-C,y=p-(b/g|0),h[b]=D=m?Math.abs(m==="y"?y:A):Ua(A*A+y*y),D>k&&(k=D),D<_&&(_=D);r==="random"&&ir(h),h.max=k-_,h.min=_,h.v=f=(parseFloat(n.amount)||parseFloat(n.each)*(g>f?f-1:m?m==="y"?f/g:g:Math.max(g,f/g))||0)*(r==="edges"?-1:1),h.b=f<0?i-f:i,h.u=ne(n.amount||n.each)||0,a=a&&f<0?pr(a):a}return f=(h[E]-h.min)/h.max||0,Z(h.b+(a?a(f):f)*h.v)+h.u}},tt=function(e){var n=Math.pow(10,((e+"").split(".")[1]||"").length);return function(a){var r=Z(Math.round(parseFloat(a)/e)*e*n);return(r-r%1)/n+(Pe(a)?0:ne(a))}},sr=function(e,n){var a=ue(e),r,i;return!a&&ke(e)&&(r=a=e.radius||Be,e.values?(e=pe(e.values),(i=!Pe(e[0]))&&(r*=r)):e=tt(e.increment)),He(n,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=Be,c=0,d=e.length,E,B;d--;)i?(E=e[d].x-s,B=e[d].y-l,E=E*E+B*B):E=Math.abs(e[d]-s),E<m&&(m=E,c=d);return c=!r||m<=r?e[c]:o,i||c===o||Pe(o)?c:c+ne(o)}:tt(e))},lr=function(e,n,a,r){return He(ue(e)?!n: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()*(n-e+a*.99))/a)*a*r)/r})},rc=function(){for(var e=arguments.length,n=new Array(e),a=0;a<e;a++)n[a]=arguments[a];return function(r){return n.reduce(function(i,o){return o(i)},r)}},ic=function(e,n){return function(a){return e(parseFloat(a))+(n||ne(a))}},oc=function(e,n,a){return cr(e,n,0,1,a)},mr=function(e,n,a){return He(a,function(r){return e[~~n(r)]})},sc=function t(e,n,a){var r=n-e;return ue(e)?mr(e,t(0,e.length),n):He(a,function(i){return(r+(i-e)%r)%r+e})},lc=function t(e,n,a){var r=n-e,i=r*2;return ue(e)?mr(e,t(0,e.length-1),n):He(a,function(o){return o=(i+(o-e)%i)%i||0,e+(o>r?i-o:o)})},Iu=function(e){for(var n=0,a="",r,i,o,s;~(r=e.indexOf("random(",n));)o=e.indexOf(")",r),s=e.charAt(r+7)==="[",i=e.substr(r+7,o-r-7).match(s?ja:Ln),a+=e.substr(n,r-n)+lr(s?i:+i[0],s?0:+i[1],+i[2]||1e-5),n=o+1;return a+e.substr(n,e.length-n)},cr=function(e,n,a,r,i){var o=n-e,s=r-a;return He(i,function(l){return a+((l-e)/o*s||0)})},mc=function t(e,n,a,r){var i=isNaN(e+n)?0:function(B){return(1-B)*e+B*n};if(!i){var o=K(e),s={},l,m,c,d,E;if(a===!0&&(r=1)&&(a=null),o)e={p:e},n={p:n};else if(ue(e)&&!ue(n)){for(c=[],d=e.length,E=d-2,m=1;m<d;m++)c.push(t(e[m-1],e[m]));d--,i=function(F){F*=d;var f=Math.min(E,~~F);return c[f](F-f)},a=n}else r||(e=au(ue(e)?[]:{},e));if(!c){for(l in n)ot.call(s,e,l,"get",n[l]);i=function(F){return dt(F,s)||(o?e.p:e)}}}return He(a,i)},dr=function(e,n,a){var r=e.labels,i=Be,o,s,l;for(o in r)s=r[o]-n,s<0==!!a&&s&&i>(s=Math.abs(s))&&(l=o,i=s);return l},fe=function(e,n,a){var r=e.vars,i=r[n],o=j,s=e._ctx,l,m,c;if(i)return l=r[n+"Params"],m=r.callbackScope||e,a&&Le.length&&mn(),s&&(j=s),c=l?i.apply(m,l):i.call(m),j=o,c},Ru=function(e){return Ye(e),e.scrollTrigger&&e.scrollTrigger.kill(!!ee),e.progress()<1&&fe(e,"onInterrupt"),e},yu,Er=[],fr=function(e){if(e)if(e=!e.name&&e.default||e,jn()||e.headless){var n=e.name,a=W(e),r=n&&!a&&e.init?function(){this._props=[]}:e,i={init:Ou,render:dt,add:ot,kill:vc,modifier:bc,rawVars:0},o={targetTest:0,get:0,getSetter:ct,aliases:{},register:0};if(bu(),e!==r){if(Ee[n])return;he(r,he(cn(e,i),o)),au(r.prototype,au(i,cn(e,o))),Ee[r.prop=n]=r,e.targetTest&&(ln.push(r),qn[n]=1),n=(n==="css"?"CSS":n.charAt(0).toUpperCase()+n.substr(1))+"Plugin"}Ha(n,r),e.register&&e.register(oe,r,ie)}else Er.push(e)},U=255,ju={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]},at=function(e,n,a){return e+=e<0?1:e>1?-1:0,(e*6<1?n+(a-n)*e*6:e<.5?a:e*3<2?n+(a-n)*(2/3-e)*6:n)*U+.5|0},Fr=function(e,n,a){var r=e?Pe(e)?[e>>16,e>>8&U,e&U]:0:ju.black,i,o,s,l,m,c,d,E,B,F;if(!r){if(e.substr(-1)===","&&(e=e.substr(0,e.length-1)),ju[e])r=ju[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(Ln),!n)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]=at(l+1/3,i,o),r[1]=at(l,i,o),r[2]=at(l-1/3,i,o);else if(~e.indexOf("="))return r=e.match(Ia),a&&r.length<4&&(r[3]=1),r}else r=e.match(Ln)||ju.transparent;r=r.map(Number)}return n&&!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:(B=d-E,m=c>.5?B/(2-d-E):B/(d+E),l=d===i?(o-s)/B+(o<s?6:0):d===o?(s-i)/B+2:(i-o)/B+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},Br=function(e){var n=[],a=[],r=-1;return e.split(We).forEach(function(i){var o=i.match(Au)||[];n.push.apply(n,o),a.push(r+=o.length+1)}),n.c=a,n},hr=function(e,n,a){var r="",i=(e+r).match(We),o=n?"hsla(":"rgba(",s=0,l,m,c,d;if(!i)return e;if(i=i.map(function(E){return(E=Fr(E,n,1))&&o+(n?E[0]+","+E[1]+"%,"+E[2]+"%,"+E[3]:E.join(","))+")"}),a&&(c=Br(e),l=a.c,l.join(r)!==c.c.join(r)))for(m=e.replace(We,"1").split(Au),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(We),d=m.length-1;s<d;s++)r+=m[s]+i[s];return r+m[d]},We=function(){var t="(?:\\b(?:(?:rgb|rgba|hsl|hsla)\\(.+?\\))|\\B#(?:[0-9a-f]{3,4}){1,2}\\b",e;for(e in ju)t+="|"+e+"\\b";return new RegExp(t+")","gi")}(),cc=/hsl[a]?\(/,Cr=function(e){var n=e.join(" "),a;if(We.lastIndex=0,We.test(n))return a=cc.test(n),e[1]=hr(e[1],a),e[0]=hr(e[0],a,Br(e[1])),!0},Lu,Fe=function(){var t=Date.now,e=500,n=33,a=t(),r=a,i=1e3/240,o=i,s=[],l,m,c,d,E,B,F=function f(h){var C=t()-r,p=h===!0,A,y,D,b;if((C>e||C<0)&&(a+=C-n),r+=C,D=r-a,A=D-o,(A>0||p)&&(b=++d.frame,E=D-d.time*1e3,d.time=D=D/1e3,o+=A+(A>=i?4:i-A),y=1),p||(l=m(f)),y)for(B=0;B<s.length;B++)s[B](D,E,b,h)};return d={time:0,frame:0,tick:function(){F(!0)},deltaRatio:function(h){return E/(1e3/(h||60))},wake:function(){La&&(!Hn&&jn()&&(we=Hn=window,Wn=we.document||{},de.gsap=oe,(we.gsapVersions||(we.gsapVersions=[])).push(oe.version),Ya(on||we.GreenSockGlobals||!we.gsap&&we||{}),Er.forEach(fr)),c=typeof requestAnimationFrame!="undefined"&&requestAnimationFrame,l&&d.sleep(),m=c||function(h){return setTimeout(h,o-d.time*1e3+1|0)},Lu=1,F(2))},sleep:function(){(c?cancelAnimationFrame:clearTimeout)(l),Lu=0,m=Ou},lagSmoothing:function(h,C){e=h||1/0,n=Math.min(C||33,e)},fps:function(h){i=1e3/(h||240),o=d.time*1e3+i},add:function(h,C,p){var A=C?function(y,D,b,k){h(y,D,b,k),d.remove(A)}:h;return d.remove(h),s[p?"unshift":"push"](A),bu(),A},remove:function(h,C){~(C=s.indexOf(h))&&s.splice(C,1)&&B>=C&&B--},_listeners:s},d}(),bu=function(){return!Lu&&Fe.wake()},V={},dc=/^[\d.\-M][\d.\-,\s]/,Ec=/["']/g,fc=function(e){for(var n={},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),n[r]=isNaN(m)?m.replace(Ec,"").trim():+m,r=l.substr(s+1).trim();return n},Fc=function(e){var n=e.indexOf("(")+1,a=e.indexOf(")"),r=e.indexOf("(",n);return e.substring(n,~r&&r<a?e.indexOf(")",a+1):a)},Bc=function(e){var n=(e+"").split("("),a=V[n[0]];return a&&n.length>1&&a.config?a.config.apply(null,~e.indexOf("{")?[fc(n[1])]:Fc(e).split(",").map(Ka)):V._CE&&dc.test(e)?V._CE("",e):a},pr=function(e){return function(n){return 1-e(1-n)}},Ar=function t(e,n){for(var a=e._first,r;a;)a instanceof te?t(a,n):a.vars.yoyoEase&&(!a._yoyo||!a._repeat)&&a._yoyo!==n&&(a.timeline?t(a.timeline,n):(r=a._ease,a._ease=a._yEase,a._yEase=r,a._yoyo=n)),a=a._next},iu=function(e,n){return e&&(W(e)?e:V[e]||Bc(e))||n},ou=function(e,n,a,r){a===void 0&&(a=function(l){return 1-n(1-l)}),r===void 0&&(r=function(l){return l<.5?n(l*2)/2:1-n((1-l)*2)/2});var i={easeIn:n,easeOut:a,easeInOut:r},o;return re(e,function(s){V[s]=de[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},Dr=function(e){return function(n){return n<.5?(1-e(1-n*2))/2:.5+e((n-.5)*2)/2}},rt=function t(e,n,a){var r=n>=1?n:1,i=(a||(e?.3:.45))/(n<1?n:1),o=i/In*(Math.asin(1/r)||0),s=function(c){return c===1?1:r*Math.pow(2,-10*c)*Ym((c-o)*i)+1},l=e==="out"?s:e==="in"?function(m){return 1-s(1-m)}:Dr(s);return i=In/i,l.config=function(m,c){return t(e,m,c)},l},it=function t(e,n){n===void 0&&(n=1.70158);var a=function(o){return o?--o*o*((n+1)*o+n)+1:0},r=e==="out"?a:e==="in"?function(i){return 1-a(1-i)}:Dr(a);return r.config=function(i){return t(e,i)},r};re("Linear,Quad,Cubic,Quart,Quint,Strong",function(t,e){var n=e<5?e+1:e;ou(t+",Power"+(n-1),e?function(a){return Math.pow(a,n)}:function(a){return a},function(a){return 1-Math.pow(1-a,n)},function(a){return a<.5?Math.pow(a*2,n)/2:1-Math.pow((1-a)*2,n)/2})}),V.Linear.easeNone=V.none=V.Linear.easeIn,ou("Elastic",rt("in"),rt("out"),rt()),function(t,e){var n=1/e,a=2*n,r=2.5*n,i=function(s){return s<n?t*s*s:s<a?t*Math.pow(s-1.5/e,2)+.75:s<r?t*(s-=2.25/e)*s+.9375:t*Math.pow(s-2.625/e,2)+.984375};ou("Bounce",function(o){return 1-i(1-o)},i)}(7.5625,2.75),ou("Expo",function(t){return t?Math.pow(2,10*(t-1)):0}),ou("Circ",function(t){return-(Ua(1-t*t)-1)}),ou("Sine",function(t){return t===1?1:-Lm(t*Rm)+1}),ou("Back",it("in"),it("out"),it()),V.SteppedEase=V.steps=de.SteppedEase={config:function(e,n){e===void 0&&(e=1);var a=1/e,r=e+(n?0:1),i=n?1:0,o=1-I;return function(s){return((r*zu(0,o,s)|0)+i)*a}}},pu.ease=V["quad.out"],re("onComplete,onUpdate,onStart,onRepeat,onReverseComplete,onInterrupt",function(t){return Zn+=t+","+t+"Params,"});var _r=function(e,n){this.id=jm++,e._gsap=this,this.target=e,this.harness=n,this.get=n?n.get:qa,this.set=n?n.getSetter:ct},Yu=function(){function t(n){this.vars=n,this._delay=+n.delay||0,(this._repeat=n.repeat===1/0?-2:n.repeat||0)&&(this._rDelay=n.repeatDelay||0,this._yoyo=!!n.yoyo||!!n.yoyoEase),this._ts=1,gu(this,+n.duration,1,1),this.data=n.data,j&&(this._ctx=j,j.data.push(this)),Lu||Fe.wake()}var e=t.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,gu(this,this._repeat<0?a:(a-this._repeat*this._rDelay)/(this._repeat+1))):this._tDur},e.totalTime=function(a,r){if(bu(),!arguments.length)return this._tTime;var i=this._dp;if(i&&i.smoothChildTiming&&this._ts){for(Fn(this,a),!i._dp||i.parent||ur(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)&&xe(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),Ga(this,a,r)),this},e.time=function(a,r){return arguments.length?this.totalTime(Math.min(this.totalDuration(),a+er(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)+er(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?_u(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?En(this.parent._time,this):this._tTime;return this._rts=+a||0,this._ts=this._ps||a===-I?0:this._rts,this.totalTime(zu(-Math.abs(this._delay),this._tDur,i),r!==!1),fn(this),Zm(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):(bu(),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)&&xe(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?En(r.rawTime(a),this):this._tTime:this._tTime},e.revert=function(a){a===void 0&&(a=Xm);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,ar(this)):this._repeat===-2?1/0:this._repeat},e.repeatDelay=function(a){if(arguments.length){var r=this._time;return this._rDelay=a,ar(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(Ce(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:Za,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(){Ru(this)},t}();he(Yu.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(t){Ma(e,t);function e(a,r){var i;return a===void 0&&(a={}),i=t.call(this,a)||this,i.labels={},i.smoothChildTiming=!!a.smoothChildTiming,i.autoRemoveChildren=!!a.autoRemoveChildren,i._sort=ae(a.sortChildren),Y&&xe(a.parent||Y,$e(i),r),a.reversed&&i.reverse(),a.paused&&i.paused(!0),a.scrollTrigger&&nr($e(i),a.scrollTrigger),i}var n=e.prototype;return n.to=function(r,i,o){return Uu(0,arguments,this),this},n.from=function(r,i,o){return Uu(1,arguments,this),this},n.fromTo=function(r,i,o,s){return Uu(2,arguments,this),this},n.set=function(r,i,o){return i.duration=0,i.parent=this,Mu(i).repeatDelay||(i.repeat=0),i.immediateRender=!!i.immediateRender,new q(r,i,Ce(this,o),1),this},n.call=function(r,i,o){return xe(this,q.delayedCall(0,r,i),o)},n.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,Ce(this,l)),this},n.staggerFrom=function(r,i,o,s,l,m,c){return o.runBackwards=1,Mu(o).immediateRender=ae(o.immediateRender),this.staggerTo(r,i,o,s,l,m,c)},n.staggerFromTo=function(r,i,o,s,l,m,c,d){return s.startAt=o,Mu(s).immediateRender=ae(s.immediateRender),this.staggerTo(r,i,s,l,m,c,d)},n.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,B,F,f,h,C,p,A,y,D,b,k;if(this!==Y&&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,h=m+this._rDelay,this._repeat<-1&&r<0)return this.totalTime(h*100+r,i,o);if(E=Z(c%h),c===l?(f=this._repeat,E=m):(f=~~(c/h),f&&f===c/h&&(E=m,f--),E>m&&(E=m)),D=_u(this._tTime,h),!s&&this._tTime&&D!==f&&this._tTime-D*h-this._dur<=0&&(D=f),b&&f&1&&(E=m-E,k=1),f!==D&&!this._lock){var _=b&&D&1,g=_===(b&&f&1);if(f<D&&(_=!_),s=_?0:c%m?m:c,this._lock=1,this.render(s||(k?0:Z(f*h)),i,!m)._lock=0,this._tTime=c,!i&&this.parent&&fe(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=_?m:-1e-4,this.render(s,!0),this.vars.repeatRefresh&&!k&&this.invalidate()),this._lock=0,!this._ts&&!C)return this;Ar(this,k)}}if(this._hasPause&&!this._forcing&&this._lock<2&&(p=uc(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&&(fe(this,"onStart"),this._tTime!==c))return this;if(E>=s&&r>=0)for(B=this._first;B;){if(F=B._next,(B._act||E>=B._start)&&B._ts&&p!==B){if(B.parent!==this)return this.render(r,i,o);if(B.render(B._ts>0?(E-B._start)*B._ts:(B._dirty?B.totalDuration():B._tDur)+(E-B._start)*B._ts,i,o),E!==this._time||!this._ts&&!C){p=0,F&&(c+=this._zTime=-I);break}}B=F}else{B=this._last;for(var w=r<0?r:E;B;){if(F=B._prev,(B._act||w<=B._end)&&B._ts&&p!==B){if(B.parent!==this)return this.render(r,i,o);if(B.render(B._ts>0?(w-B._start)*B._ts:(B._dirty?B.totalDuration():B._tDur)+(w-B._start)*B._ts,i,o||ee&&(B._initted||B._startAt)),E!==this._time||!this._ts&&!C){p=0,F&&(c+=this._zTime=w?-I:I);break}}B=F}}if(p&&!i&&(this.pause(),p.render(E>=s?0:-I)._zTime=E>=s?1:-1,this._ts))return this._start=y,fn(this),this.render(r,i,o);this._onUpdate&&!i&&fe(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)&&Ye(this,1),!i&&!(r<0&&!s)&&(c||s||!l)&&(fe(this,c===l&&r>=0?"onComplete":"onReverseComplete",!0),this._prom&&!(c<l&&this.timeScale()>0)&&this._prom())))}return this},n.add=function(r,i){var o=this;if(Pe(i)||(i=Ce(this,i,r)),!(r instanceof Yu)){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?xe(this,r,i):this},n.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=-Be);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},n.getById=function(r){for(var i=this.getChildren(1,1,1),o=i.length;o--;)if(i[o].vars.id===r)return i[o]},n.remove=function(r){return K(r)?this.removeLabel(r):W(r)?this.killTweensOf(r):(dn(this,r),r===this._recent&&(this._recent=this._last),ru(this))},n.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))),t.prototype.totalTime.call(this,r,i),this._forcing=0,this):this._tTime},n.addLabel=function(r,i){return this.labels[r]=Ce(this,i),this},n.removeLabel=function(r){return delete this.labels[r],this},n.addPause=function(r,i,o){var s=q.delayedCall(0,i||Ou,o);return s.data="isPause",this._hasPause=1,xe(this,s,Ce(this,r))},n.removePause=function(r){var i=this._first;for(r=Ce(this,r);i;)i._start===r&&i.data==="isPause"&&Ye(i),i=i._next},n.killTweensOf=function(r,i,o){for(var s=this.getTweensOf(r,o),l=s.length;l--;)Xe!==s[l]&&s[l].kill(r,i);return this},n.getTweensOf=function(r,i){for(var o=[],s=pe(r),l=this._first,m=Pe(i),c;l;)l instanceof q?qm(l._targets,s)&&(m?(!Xe||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},n.tweenTo=function(r,i){i=i||{};var o=this,s=Ce(o,r),l=i,m=l.startAt,c=l.onStart,d=l.onStartParams,E=l.immediateRender,B,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(),!B){var h=i.duration||Math.abs((s-(m&&"time"in m?m.time:o._time))/o.timeScale());F._dur!==h&&gu(F,h,0,1).render(F._time,!0,!0),B=1}c&&c.apply(F,d||[])}},i));return E?F.render(0):F},n.tweenFromTo=function(r,i,o){return this.tweenTo(i,he({startAt:{time:Ce(this,r)}},o))},n.recent=function(){return this._recent},n.nextLabel=function(r){return r===void 0&&(r=this._time),dr(this,Ce(this,r))},n.previousLabel=function(r){return r===void 0&&(r=this._time),dr(this,Ce(this,r),1)},n.currentLabel=function(r){return arguments.length?this.seek(r,!0):this.previousLabel(this._time+I)},n.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 ru(this)},n.invalidate=function(r){var i=this._first;for(this._lock=0;i;)i.invalidate(r),i=i._next;return t.prototype.invalidate.call(this,r)},n.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={}),ru(this)},n.totalDuration=function(r){var i=0,o=this,s=o._last,l=Be,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,xe(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;gu(o,o===Y&&o._time>i?o._time:i,1,1),o._dirty=0}return o._tDur},e.updateRoot=function(r){if(Y._ts&&(Ga(Y,En(r,Y)),Wa=Fe.frame),Fe.frame>=Xa){Xa+=ce.autoSleep||120;var i=Y._first;if((!i||!i._ts)&&ce.autoSleep&&Fe._listeners.length<2){for(;i&&!i._ts;)i=i._next;i||Fe.sleep()}}},e}(Yu);he(te.prototype,{_lock:0,_hasPause:0,_forcing:0});var hc=function(e,n,a,r,i,o,s){var l=new ie(this._pt,e,n,0,1,wr,null,i),m=