@remjx/clappy-button-web-component
Version:
clappy button svelte
6 lines • 177 kB
JavaScript
var app=function(t){"use strict";function D(){}!function(){var t={WEBSITE_HOSTNAME:"clappybutton.com",CLAPPY_BUTTON_BUILD_ENV:"production",CLAPPY_BUTTON_PKG_VERSION:"0.5.0",DEV_NETWORK_IP:"10.1.1.43"};try{if(process)return process.env=Object.assign({},process.env),Object.assign(process.env,t)}catch(t){}globalThis.process={env:t}}();const q=t=>t;function c(t){return t()}function d(){return Object.create(null)}function V(t){t.forEach(c)}function m(t){return"function"==typeof t}function n(t,e){return t!=t?e==e:t!==e||t&&"object"==typeof t||"function"==typeof t}function e(t){return 0===Object.keys(t).length}function Q(t,e,n){t.$$.on_destroy.push(function(t,e){if(null==t)return D;const n=t.subscribe(...e);return n.unsubscribe?()=>n.unsubscribe():n}(e,[n]))}function u(t,e,n,r){if(t){r=a(t,e,n,r);return t[0](r)}}function a(t,e,n,r){return t[1]&&r?function(t,e){for(const n in e)t[n]=e[n];return t}(n.ctx.slice(),t[1](r(e))):n.ctx}function h(t,e,n,r,i,o,s){o=function(t,e,n,r){if(t[2]&&r){var i=t[2](r(n));if(void 0===e.dirty)return i;if("object"!=typeof i)return e.dirty|i;{const s=[];var o=Math.max(e.dirty.length,i.length);for(let t=0;t<o;t+=1)s[t]=e.dirty[t]|i[t];return s}}return e.dirty}(e,r,i,o);o&&(s=a(e,n,r,s),t.p(s,o))}function v(t,e,n=e){return t.set(n),e}var r="undefined"!=typeof window;let _=r?()=>window.performance.now():()=>Date.now(),g=r?t=>requestAnimationFrame(t):D;const C=new Set;function y(e){C.forEach(t=>{t.c(e)||(C.delete(t),t.f())}),0!==C.size&&g(y)}function W(t,e){t.appendChild(e)}function Y(t,e,n){t.insertBefore(e,n||null)}function Z(t){t.parentNode.removeChild(t)}function H(t){return document.createElement(t)}function j(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}function A(t){return document.createTextNode(t)}function K(){return A(" ")}function f(){return A("")}function G(t,e,n,r){return t.addEventListener(e,n,r),()=>t.removeEventListener(e,n,r)}function X(t,e,n){null==n?t.removeAttribute(e):t.getAttribute(e)!==n&&t.setAttribute(e,n)}function O(t,e){t.wholeText!==(e=""+e)&&(t.data=e)}function N(t,e){t.value=null==e?"":e}function J(t,e,n,r){t.style.setProperty(e,n,r?"important":"")}function tt(t,e,n){t.classList[n?"add":"remove"](e)}function o(t,e){const n=document.createEvent("CustomEvent");return n.initCustomEvent(t,!1,!1,e),n}function i(t){const e={};for(const n of t)e[n.name]=n.value;return e}const $=new Set;let w=0;function b(t,e,n,r,i,o,s,a=0){var c=16.666/r;let l="{\n";for(let t=0;t<=1;t+=c){var u=e+(n-e)*o(t);l+=100*t+`%{${s(u,1-u)}}\n`}var d=l+`100% {${s(n,1-n)}}\n}`,a=`__svelte_${function(t){let e=5381,n=t.length;for(;n--;)e=(e<<5)-e^t.charCodeAt(n);return e>>>0}(d)}_${a}`;const h=t.getRootNode();$.add(h);const f=h.__svelte_stylesheet||(h.__svelte_stylesheet=h.appendChild(H("style")).sheet),p=h.__svelte_rules||(h.__svelte_rules={});p[a]||(p[a]=!0,f.insertRule(`@keyframes ${a} ${d}`,f.cssRules.length));d=t.style.animation||"";return t.style.animation=`${d?`${d}, `:""}${a} ${r}ms linear ${i}ms 1 both`,w+=1,a}function s(t,e){const n=(t.style.animation||"").split(", "),r=n.filter(e?t=>t.indexOf(e)<0:t=>-1===t.indexOf("__svelte"));var i=n.length-r.length;i&&(t.style.animation=r.join(", "),w-=i,w||g(()=>{w||($.forEach(t=>{const e=t.__svelte_stylesheet;let n=e.cssRules.length;for(;n--;)e.deleteRule(n);t.__svelte_rules={}}),$.clear())}))}let p;function x(t){p=t}function l(){if(!p)throw new Error("Function called outside component initialization");return p}function et(t){l().$$.on_mount.push(t)}function nt(t){l().$$.on_destroy.push(t)}function rt(){const i=l();return(t,e)=>{const n=i.$$.callbacks[t];if(n){const r=o(t,e);n.slice().forEach(t=>{t.call(i,r)})}}}function it(t,e){l().$$.context.set(t,e)}function L(t){return l().$$.context.get(t)}const T=[],ot=[],E=[],M=[],S=Promise.resolve();let k=!1;function z(){k||(k=!0,S.then(B))}function st(){return z(),S}function I(t){E.push(t)}let P=!1;const R=new Set;function B(){if(!P){P=!0;do{for(let t=0;t<T.length;t+=1){var e=T[t];x(e),function(t){{var e;null!==t.fragment&&(t.update(),V(t.before_update),e=t.dirty,t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,e),t.after_update.forEach(I))}}(e.$$)}for(x(null),T.length=0;ot.length;)ot.pop()();for(let t=0;t<E.length;t+=1){const n=E[t];R.has(n)||(R.add(n),n())}}while(E.length=0,T.length);for(;M.length;)M.pop()();k=!1,P=!1,R.clear()}}let F;function U(t,e,n){t.dispatchEvent(o(`${e?"intro":"outro"}${n}`))}const at=new Set;let ct;function lt(){ct={r:0,c:[],p:ct}}function ut(){ct.r||V(ct.c),ct=ct.p}function dt(t,e){t&&t.i&&(at.delete(t),t.i(e))}function ht(t,e,n,r){t&&t.o&&(at.has(t)||(at.add(t),ct.c.push(()=>{at.delete(t),r&&(n&&t.d(1),r())}),t.o(e)))}const ft={duration:0};function pt(a,t,e,n){let c=t(a,e),l=n?0:1,u=null,d=null,h=null;function f(){h&&s(a,h)}function p(t,e){var n=t.b-l;return e*=Math.abs(n),{a:l,b:t.b,d:n,duration:e,start:t.start,end:t.start+e,group:t.group}}function r(t){const{delay:e=0,duration:n=300,easing:r=q,tick:i=D,css:o}=c||ft,s={start:_()+e,b:t};t||(s.group=ct,ct.r+=1),u||d?d=s:(o&&(f(),h=b(a,l,t,n,e,r,o)),t&&i(0,1),u=p(s,n),I(()=>U(a,t,"start")),function(e){let n;0===C.size&&g(y),new Promise(t=>{C.add(n={c:e,f:t})})}(t=>{return d&&t>d.start&&(u=p(d,n),d=null,U(a,u.b,"start"),o&&(f(),h=b(a,l,u.b,u.duration,0,r,c.css))),u&&(t>=u.end?(i(l=u.b,1-l),U(a,u.b,"end"),d||(u.b?f():--u.group.r||V(u.group.c)),u=null):t>=u.start&&(t=t-u.start,l=u.a+u.d*r(t/u.duration),i(l,1-l))),!(!u&&!d)}))}return{run(t){m(c)?(F||(F=Promise.resolve(),F.then(()=>{F=null})),F.then(()=>{c=c(),r(t)})):r(t)},end(){f(),u=d=null}}}var mt,_t="undefined"!=typeof window?window:"undefined"!=typeof globalThis?globalThis:global;function gt(t){t&&t.c()}function vt(e,t,n,r){const{fragment:i,on_mount:o,on_destroy:s,after_update:a}=e.$$;i&&i.m(t,n),r||I(()=>{var t=o.map(c).filter(m);s?s.push(...t):V(t),e.$$.on_mount=[]}),a.forEach(I)}function Ct(t,e){const n=t.$$;null!==n.fragment&&(V(n.on_destroy),n.fragment&&n.fragment.d(e),n.on_destroy=n.fragment=null,n.ctx=[])}function yt(r,t,e,n,i,o,s=[-1]){var a=p;x(r);const c=r.$$={fragment:null,ctx:null,props:o,update:D,not_equal:i,bound:d(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(a?a.$$.context:[]),callbacks:d(),dirty:s,skip_bound:!1};let l=!1;if(c.ctx=e?e(r,t.props||{},(t,e,...n)=>{n=n.length?n[0]:e;return c.ctx&&i(c.ctx[t],c.ctx[t]=n)&&(!c.skip_bound&&c.bound[t]&&c.bound[t](n),l&&(n=t,-1===(t=r).$$.dirty[0]&&(T.push(t),z(),t.$$.dirty.fill(0)),t.$$.dirty[n/31|0]|=1<<n%31)),e}):[],c.update(),l=!0,V(c.before_update),c.fragment=!!n&&n(c.ctx),t.target){if(t.hydrate){const u=(n=t.target,Array.from(n.childNodes));c.fragment&&c.fragment.l(u),u.forEach(Z)}else c.fragment&&c.fragment.c();t.intro&&dt(r.$$.fragment),vt(r,t.target,t.anchor,t.customElement),B()}x(a)}let $t;"function"==typeof HTMLElement&&($t=class extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"})}connectedCallback(){const{on_mount:t}=this.$$;this.$$.on_disconnect=t.map(c).filter(m);for(const e in this.$$.slotted)this.appendChild(this.$$.slotted[e])}attributeChangedCallback(t,e,n){this[t]=n}disconnectedCallback(){V(this.$$.on_disconnect)}$destroy(){Ct(this,1),this.$destroy=D}$on(t,e){const n=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return n.push(e),()=>{var t=n.indexOf(e);-1!==t&&n.splice(t,1)}}$set(t){this.$$set&&!e(t)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}});class wt{$destroy(){Ct(this,1),this.$destroy=D}$on(t,e){const n=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return n.push(e),()=>{var t=n.indexOf(e);-1!==t&&n.splice(t,1)}}$set(t){this.$$set&&!e(t)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}}const bt="production"===process.env.CLAPPY_BUTTON_BUILD_ENV?`https://d2y3zermlwbtzy.cloudfront.net/v${process.env.CLAPPY_BUTTON_PKG_VERSION}/bundle.css`:"development"===process.env.CLAPPY_BUTTON_BUILD_ENV?`http://${process.env.DEV_NETWORK_IP}:5000/bundle.css`:"http://localhost:5000/bundle.css",xt="clappy-button-css",Lt=`<style data-description="${xt}">
@import url('https://fonts.googleapis.com/css2?family=Signika:wght@500&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@400&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP&display=swap');
@import url('${bt}');
</style>`;const Tt=[];function Et(r,i=D){let o;const s=[];function a(t){if(n(r,t)&&(r=t,o)){t=!Tt.length;for(let t=0;t<s.length;t+=1){const e=s[t];e[1](),Tt.push(e,r)}if(t){for(let t=0;t<Tt.length;t+=2)Tt[t][0](Tt[t+1]);Tt.length=0}}}return{set:a,update:function(t){a(t(r))},subscribe:function(t,e=D){const n=[t,e];return s.push(n),1===s.length&&(o=i(a)||D),t(r),()=>{var t=s.indexOf(n);-1!==t&&s.splice(t,1),0===s.length&&(o(),o=null)}}}}(M1=mt=mt||{}).LANDING="LANDING",M1.ERROR="ERROR",M1.AUTH_SUCCESS="AUTH_SUCCESS",M1.REQUIRE_CLAP_CONFIRMATION="REQUIRE_CLAP_CONFIRMATION";const Mt=Et(void 0),At=Et(!1),Ot=Et(!1),Nt=Et(!1),St=Et(mt.LANDING),kt=Et(void 0);function Dt(t){let n;return{c(){n=H("div"),X(n,"id","wait-for-css-placeholder"),J(n,"height","175px"),J(n,"width","100px")},m(t,e){Y(t,n,e)},p:D,i:D,o:D,d(t){t&&Z(n)}}}function zt(t){let n;const r=t[4].default,i=u(r,t,t[3],null);return{c(){i&&i.c()},m(t,e){i&&i.m(t,e),n=!0},p(t,e){i&&i.p&&8&e&&h(i,r,t,t[3],e,null,null)},i(t){n||(dt(i,t),n=!0)},o(t){ht(i,t),n=!1},d(t){i&&i.d(t)}}}function It(n){let r,i,o,s,a,c,l,u;const d=[zt,Dt],h=[];function f(t){return t[0]?0:1}return s=f(n),a=h[s]=d[s](n),{c(){r=H("link"),i=K(),o=H("div"),a.c(),X(r,"rel","stylesheet"),X(r,"href",bt),X(o,"id","clappy-button-wrapper")},m(t,e){Y(t,r,e),Y(t,i,e),Y(t,o,e),h[s].m(o,null),c=!0,l||(u=G(r,"load",n[1]),l=!0)},p(t,[e]){let n=s;s=f(t),s===n?h[s].p(t,e):(lt(),ht(h[n],1,1,()=>{h[n]=null}),ut(),a=h[s],a?a.p(t,e):(a=h[s]=d[s](t),a.c()),dt(a,1),a.m(o,null))},i(t){c||(dt(a),c=!0)},o(t){ht(a),c=!1},d(t){t&&Z(r),t&&Z(i),t&&Z(o),h[s].d(),l=!1,u()}}}function Pt(t,e,n){let{$$slots:r={},$$scope:i}=e;var{touserid:o=void 0}=e;return et(()=>{var t=document.getElementById("clappy-button-loading-placeholder");t&&t.remove(),document.querySelector(`style[data-description="${xt}"]`)||document.head.insertAdjacentHTML("beforeend",Lt)}),t.$$set=t=>{"touserid"in t&&n(2,o=t.touserid),"$$scope"in t&&n(3,i=t.$$scope)},[!(t.$$.update=()=>{4&t.$$.dirty&&Mt.set(Number(o))}),function(){n(0,!0)},o,i,r]}class Rt extends wt{constructor(t){super(),yt(this,t,Pt,It,n,{touserid:2})}}const{window:Bt}=_t;function Ft(r){let i,o,s,a,c,l,e,n,u,d,h,f=r[0].closeButton&&Ut(r);var p=r[1];return p&&(l=new p({})),{c(){i=H("div"),o=H("div"),s=H("div"),f&&f.c(),a=K(),c=H("div"),l&>(l.$$.fragment),X(c,"class","content svelte-3eyn57"),X(c,"style",r[8]),X(s,"class","window svelte-3eyn57"),X(s,"role","dialog"),X(s,"aria-modal","true"),X(s,"style",r[7]),X(o,"class","window-wrap svelte-3eyn57"),X(o,"style",r[6]),X(i,"class","bg svelte-3eyn57"),X(i,"style",r[5])},m(t,e){Y(t,i,e),W(i,o),W(o,s),f&&f.m(s,null),W(s,a),W(s,c),l&&vt(l,c,null),r[37](s),r[38](o),r[39](i),u=!0,d||(h=[G(s,"introstart",function(){m(r[12])&&r[12].apply(this,arguments)}),G(s,"outrostart",function(){m(r[13])&&r[13].apply(this,arguments)}),G(s,"introend",function(){m(r[14])&&r[14].apply(this,arguments)}),G(s,"outroend",function(){m(r[15])&&r[15].apply(this,arguments)}),G(i,"click",r[19])],d=!0)},p(t,e){if((r=t)[0].closeButton?f?(f.p(r,e),1&e[0]&&dt(f,1)):(f=Ut(r),f.c(),dt(f,1),f.m(s,a)):f&&(lt(),ht(f,1,1,()=>{f=null}),ut()),p!==(p=r[1])){if(l){lt();const n=l;ht(n.$$.fragment,1,0,()=>{Ct(n,1)}),ut()}p?(l=new p({}),gt(l.$$.fragment),dt(l.$$.fragment,1),vt(l,c,null)):l=null}(!u||256&e[0])&&X(c,"style",r[8]),(!u||128&e[0])&&X(s,"style",r[7]),(!u||64&e[0])&&X(o,"style",r[6]),(!u||32&e[0])&&X(i,"style",r[5])},i(t){u||(dt(f),l&&dt(l.$$.fragment,t),I(()=>{e=e||pt(s,r[11],r[0].transitionWindowProps,!0),e.run(1)}),I(()=>{n=n||pt(i,r[10],r[0].transitionBgProps,!0),n.run(1)}),u=!0)},o(t){ht(f),l&&ht(l.$$.fragment,t),e=e||pt(s,r[11],r[0].transitionWindowProps,!1),e.run(0),n=n||pt(i,r[10],r[0].transitionBgProps,!1),n.run(0),u=!1},d(t){t&&Z(i),f&&f.d(),l&&Ct(l),r[37](null),t&&e&&e.end(),r[38](null),r[39](null),t&&n&&n.end(),d=!1,V(h)}}}function Ut(t){let n,r,i,o,s;const a=[Wt,Vt],c=[];function l(t,e){return 1&e[0]&&(n=!!t[16](t[0].closeButton)),n?0:1}return r=l(t,[-1]),i=c[r]=a[r](t),{c(){i.c(),o=f()},m(t,e){c[r].m(t,e),Y(t,o,e),s=!0},p(t,e){let n=r;r=l(t,e),r===n?c[r].p(t,e):(lt(),ht(c[n],1,1,()=>{c[n]=null}),ut(),i=c[r],i?i.p(t,e):(i=c[r]=a[r](t),i.c()),dt(i,1),i.m(o.parentNode,o))},i(t){s||(dt(i),s=!0)},o(t){ht(i),s=!1},d(t){c[r].d(t),t&&Z(o)}}}function Vt(n){let r,i,o;return{c(){r=H("button"),X(r,"class","close svelte-3eyn57"),X(r,"style",n[9])},m(t,e){Y(t,r,e),i||(o=G(r,"click",n[17]),i=!0)},p(t,e){512&e[0]&&X(r,"style",t[9])},i:D,o:D,d(t){t&&Z(r),i=!1,o()}}}function Wt(t){let r,i,n;var o=t[0].closeButton;function s(t){return{props:{onClose:t[17]}}}return o&&(r=new o(s(t))),{c(){r&>(r.$$.fragment),i=f()},m(t,e){r&&vt(r,t,e),Y(t,i,e),n=!0},p(t,e){if(o!==(o=t[0].closeButton)){if(r){lt();const n=r;ht(n.$$.fragment,1,0,()=>{Ct(n,1)}),ut()}o?(r=new o(s(t)),gt(r.$$.fragment),dt(r.$$.fragment,1),vt(r,i.parentNode,i)):r=null}},i(t){n||(r&&dt(r.$$.fragment,t),n=!0)},o(t){r&&ht(r.$$.fragment,t),n=!1},d(t){t&&Z(i),r&&Ct(r,t)}}}function Yt(n){let r,i,o,s,a=n[1]&&Ft(n);const c=n[36].default,l=u(c,n,n[35],null);return{c(){a&&a.c(),r=K(),l&&l.c()},m(t,e){a&&a.m(t,e),Y(t,r,e),l&&l.m(t,e),i=!0,o||(s=G(Bt,"keydown",n[18]),o=!0)},p(t,e){t[1]?a?(a.p(t,e),2&e[0]&&dt(a,1)):(a=Ft(t),a.c(),dt(a,1),a.m(r.parentNode,r)):a&&(lt(),ht(a,1,1,()=>{a=null}),ut()),l&&l.p&&16&e[1]&&h(l,c,t,t[35],e,null,null)},i(t){i||(dt(a),dt(l,t),i=!0)},o(t){ht(a),ht(l,t),i=!1},d(t){a&&a.d(t),t&&Z(r),l&&l.d(t),o=!1,s()}}}function Zt(){return(Zt=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n,r=arguments[e];for(n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t}).apply(this,arguments)}function Ht(t,e,s){let{$$slots:n={},$$scope:r}=e;function a(){return(a=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n,r=arguments[e];for(n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t}).apply(this,arguments)}function i(t,e,n,r){var i,o;void 0===n&&(n={}),void 0===r&&(r={}),s(1,(i=t,void 0===(o=e=void 0===e?{}:e)&&(o={}),B=function(t){return new i(Zt({},t,{props:Zt({},o,t.props)}))})),s(0,R=a({},P,n)),s(5,h=F(R.styleBg)),s(6,f=F(R.styleWindowWrap)),s(7,p=F(R.styleWindow)),s(8,m=F(R.styleContent)),s(9,_=F(R.styleCloseButton)),s(10,g=R.transitionBg),s(11,v=R.transitionWindow),H(),s(12,V=t=>{r.onOpen&&r.onOpen(t),y("open"),y("opening")}),s(13,W=t=>{r.onClose&&r.onClose(t),y("close"),y("closing")}),s(14,Y=t=>{r.onOpened&&r.onOpened(t),y("opened")}),s(15,Z=t=>{r.onClosed&&r.onClosed(t),y("closed")})}function o(t){s(13,W=(t=void 0===t?{}:t).onClose||W),s(15,Z=t.onClosed||Z),s(1,B=null),j()}var c,l,u,d,h,f,p,m,_,g,v,C,y=rt(),$=it,{show:w=null}=e,{key:b="simple-modal"}=e,{closeButton:x=!0}=e,{closeOnEsc:L=!0}=e,{closeOnOuterClick:T=!0}=e,{styleBg:E={}}=e,{styleWindowWrap:M={}}=e,{styleWindow:A={}}=e,{styleContent:O={}}=e,{styleCloseButton:N={}}=e,{setContext:S=$}=e,{transitionBg:k=function(t,{delay:e=0,duration:n=400,easing:r=q}={}){const i=+getComputedStyle(t).opacity;return{delay:e,duration:n,easing:r,css:t=>`opacity: ${t*i}`}}}=e,{transitionBgProps:D={duration:250}}=e,{transitionWindow:z=k}=e,{transitionWindowProps:I=D}=e,P={closeButton:x,closeOnEsc:L,closeOnOuterClick:T,styleBg:E,styleWindowWrap:M,styleWindow:A,styleContent:O,styleCloseButton:N,transitionBg:k,transitionBgProps:D,transitionWindow:z,transitionWindowProps:I},R=a({},P),B=null,F=n=>Object.keys(n).reduce((t,e)=>t+"; "+e.replace(/([a-zA-Z])(?=[A-Z])/g,"$1-").toLowerCase()+": "+n[e],""),U=t=>!!(t&&t.constructor&&t.call&&t.apply),e=()=>{},V=e,W=e,Y=e,Z=e,H=()=>{d=window.scrollY,C=document.body.style.overflow,document.body.style.top="-"+d+"px",document.body.style.overflow="hidden"},j=()=>{document.body.style.top="",document.body.style.overflow=C||"",window.scrollTo(0,d)};return S(b,{open:i,close:o}),nt(()=>{o()}),t.$$set=t=>{"show"in t&&s(20,w=t.show),"key"in t&&s(21,b=t.key),"closeButton"in t&&s(22,x=t.closeButton),"closeOnEsc"in t&&s(23,L=t.closeOnEsc),"closeOnOuterClick"in t&&s(24,T=t.closeOnOuterClick),"styleBg"in t&&s(25,E=t.styleBg),"styleWindowWrap"in t&&s(26,M=t.styleWindowWrap),"styleWindow"in t&&s(27,A=t.styleWindow),"styleContent"in t&&s(28,O=t.styleContent),"styleCloseButton"in t&&s(29,N=t.styleCloseButton),"setContext"in t&&s(30,S=t.setContext),"transitionBg"in t&&s(31,k=t.transitionBg),"transitionBgProps"in t&&s(32,D=t.transitionBgProps),"transitionWindow"in t&&s(33,z=t.transitionWindow),"transitionWindowProps"in t&&s(34,I=t.transitionWindowProps),"$$scope"in t&&s(35,r=t.$$scope)},t.$$.update=()=>{1048576&t.$$.dirty[0]&&(U(w)?i(w):o())},[R,B,c,l,u,h,f,p,m,_,g,v,V,W,Y,Z,U,o,t=>{var e,n;R.closeOnEsc&&B&&"Escape"===t.key&&(t.preventDefault(),o()),B&&"Tab"===t.key&&(n=u.querySelectorAll("*"),-1===(n=(e=Array.from(n).filter(t=>0<=t.tabIndex)).indexOf(document.activeElement))&&t.shiftKey&&(n=0),n+=e.length+(t.shiftKey?-1:1),e[n%=e.length].focus(),t.preventDefault())},t=>{!R.closeOnOuterClick||t.target!==c&&t.target!==l||(t.preventDefault(),o())},w,b,x,L,T,E,M,A,O,N,S,k,D,z,I,r,n,function(t){ot[t?"unshift":"push"](()=>{s(4,u=t)})},function(t){ot[t?"unshift":"push"](()=>{s(3,l=t)})},function(t){ot[t?"unshift":"push"](()=>{s(2,c=t)})}]}class jt extends wt{constructor(t){super(),yt(this,t,Ht,Yt,n,{show:20,key:21,closeButton:22,closeOnEsc:23,closeOnOuterClick:24,styleBg:25,styleWindowWrap:26,styleWindow:27,styleContent:28,styleCloseButton:29,setContext:30,transitionBg:31,transitionBgProps:32,transitionWindow:33,transitionWindowProps:34},[-1,-1])}}function qt(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Kt(t,e){t.prototype=Object.create(e.prototype),(t.prototype.constructor=t).__proto__=e}function Gt(t){return"string"==typeof t}function Xt(t){return"function"==typeof t}function Qt(t){return"number"==typeof t}function Jt(t){return void 0===t}function t2(t){return"object"==typeof t}function e2(t){return!1!==t}function n2(){return"undefined"!=typeof window}function r2(t){return Xt(t)||Gt(t)}function i2(t){return(Ge=o1(t,Ke))&&on}function o2(t,e){return console.warn("Invalid property",t,"set to",e,"Missing plugin? gsap.registerPlugin()")}function s2(t,e){return!e&&console.warn(t)}function a2(t,e){return t&&(Ke[t]=e)&&Ge&&(Ge[t]=e)||Ke}function c2(){return 0}function l2(t){var e,n,r=t[0];if(t2(r)||Xt(r)||(t=[t]),!(e=(r._gsap||{}).harness)){for(n=r1.length;n--&&!r1[n].targetTest(r););e=r1[n]}for(n=t.length;n--;)t[n]&&(t[n]._gsap||(t[n]._gsap=new N1(t[n],e)))||t.splice(n,1);return t}function u2(t){return t._gsap||l2(h1(t))[0]._gsap}function d2(t,e,n){return(n=t[e])&&Xt(n)?t[e]():Jt(n)&&t.getAttribute&&t.getAttribute(e)||n}function h2(t,e){return(t=t.split(",")).forEach(e)||t}function f2(t){return Math.round(1e5*t)/1e5||0}function p2(){var t,e,n=Qe.length,r=Qe.slice(0);for(Je={},t=Qe.length=0;t<n;t++)(e=r[t])&&e._lazy&&(e.render(e._lazy[0],e._lazy[1],!0)._lazy=0)}function m2(t,e,n,r){Qe.length&&p2(),t.render(e,n,r),Qe.length&&p2()}function _2(t){var e=parseFloat(t);return(e||0===e)&&(t+"").match(je).length<2?e:Gt(t)?t.trim():t}function g2(t){return t}function v2(t,e){for(var n in e)n in t||(t[n]=e[n]);return t}function C2(t,e){for(var n in e)n in t||"duration"===n||"ease"===n||(t[n]=e[n])}function y2(t,e){for(var n in e)"__proto__"!==n&&"constructor"!==n&&"prototype"!==n&&(t[n]=t2(e[n])?y2(t[n]||(t[n]={}),e[n]):e[n]);return t}function $2(t,e){var n,r={};for(n in t)n in e||(r[n]=t[n]);return r}function w2(t){var e=t.parent||ae,n=t.keyframes?C2:v2;if(e2(t.inherit))for(;e;)n(t,e.vars.defaults),e=e.parent||e._dp;return t}function b2(t,e,n,r){void 0===n&&(n="_first"),void 0===r&&(r="_last");var i=e._prev,o=e._next;i?i._next=o:t[n]===e&&(t[n]=o),o?o._prev=i:t[r]===e&&(t[r]=i),e._next=e._prev=e.parent=null}function x2(t,e){!t.parent||e&&!t.parent.autoRemoveChildren||t.parent.remove(t),t._act=0}function L2(t,e){if(t&&(!e||e._end>t._dur||e._start<0))for(var n=t;n;)n._dirty=1,n=n.parent;return t}function T2(t){return!t||t._ts&&T2(t.parent)}function E2(t){return t._repeat?s1(t._tTime,t=t.duration()+t._rDelay)*t:0}function M2(t,e){return(t-e._start)*e._ts+(0<=e._ts?0:e._dirty?e.totalDuration():e._tDur)}function A2(t){return t._end=f2(t._start+(t._tDur/Math.abs(t._ts||t._rts||ke)||0))}function O2(t,e){var n=t._dp;return n&&n.smoothChildTiming&&t._ts&&(t._start=f2(n._time-(0<t._ts?e/t._ts:((t._dirty?t.totalDuration():t._tDur)-e)/-t._ts)),A2(t),n._dirty||L2(n,t)),t}function N2(t,e){var n;if((e._time||e._initted&&!e._dur)&&(n=M2(t.rawTime(),e),(!e._dur||u1(0,e.totalDuration(),n)-e._tTime>ke)&&e.render(n,!0)),L2(t,e)._dp&&t._initted&&t._time>=t._dur&&t._ts){if(t._dur<t.duration())for(n=t;n._dp;)0<=n.rawTime()&&n.totalTime(n._tTime),n=n._dp;t._zTime=-ke}}function S2(t,e,n,r){return e.parent&&x2(e),e._start=f2((Qt(n)?n:n||t!==ae?l1(t,n,e):t._time)+e._delay),e._end=f2(e._start+(e.totalDuration()/Math.abs(e.timeScale())||0)),function(t,e,n,r,i){void 0===n&&(n="_first");var o,s=t[r=void 0===r?"_last":r];if(i)for(o=e[i];s&&s[i]>o;)s=s._prev;s?(e._next=s._next,s._next=e):(e._next=t[n],t[n]=e),e._next?e._next._prev=e:t[r]=e,e._prev=s,e.parent=e._dp=t}(t,e,"_first","_last",t._sort?"_start":0),a1(e)||(t._recent=e),r||N2(t,e),t}function k2(t,e){return(Ke.ScrollTrigger||o2("scrollTrigger",e))&&Ke.ScrollTrigger.create(e,t)}function D2(t,e,n,r){return P1(t,e),t._initted?!n&&t._pt&&(t._dur&&!1!==t.vars.lazy||!t._dur&&t.vars.lazy)&&he!==$1.frame?(Qe.push(t),t._lazy=[e,r]):void 0:1}function z2(t){return(t=t.parent)&&t._ts&&t._initted&&!t._lock&&(t.rawTime()<0||z2(t))}function I2(t,e,n,r){var i=t._repeat,o=f2(e)||0;return(e=t._tTime/t._tDur)&&!r&&(t._time*=o/t._dur),t._dur=o,t._tDur=i?i<0?1e10:f2(o*(i+1)+t._rDelay*i):o,e&&!r?O2(t,t._tTime=t._tDur*e):t.parent&&A2(t),n||L2(t.parent,t),t}function P2(t){return t instanceof k1?L2(t):I2(t,t._dur)}function R2(t,e,n){var r,i,o=Qt(e[1]),s=(o?2:1)+(t<2?0:1),a=e[s];if(o&&(a.duration=e[1]),a.parent=n,t){for(r=a,i=n;i&&!("immediateRender"in r);)r=i.vars.defaults||{},i=e2(i.vars.inherit)&&i.parent;a.immediateRender=e2(r.immediateRender),t<2?a.runBackwards=1:a.startAt=e[s-1]}return new U1(e[0],a,e[1+s])}function B2(t,e){return t||0===t?e(t):e}function F2(t){if("string"!=typeof t)return"";var e=qe.exec(t);return e?t.substr(e.index+e[0].length):""}function U2(t,e){return t&&t2(t)&&"length"in t&&(!e&&!t.length||t.length-1 in t&&t2(t[0]))&&!t.nodeType&&t!==ce}function V2(t){return t.sort(function(){return.5-Math.random()})}function W2(t){if(Xt(t))return t;var f=t2(t)?t:{each:t},p=E1(f.ease),m=f.from||0,_=parseFloat(f.base)||0,g={},t=0<m&&m<1,v=isNaN(m)||t,C=f.axis,y=m,$=m;return Gt(m)?y=$={center:.5,edges:.5,end:1}[m]||0:!t&&v&&(y=m[0],$=m[1]),function(t,e,n){var r,i,o,s,a,c,l,u,d=(n||f).length,h=g[d];if(!h){if(!(u="auto"===f.grid?0:(f.grid||[1,Se])[1])){for(c=-Se;c<(c=n[u++].getBoundingClientRect().left)&&u<d;);u--}for(h=g[d]=[],r=v?Math.min(u,d)*y-.5:m%u,i=v?d*$/u-.5:m/u|0,l=Se,a=c=0;a<d;a++)o=a%u-r,s=i-(a/u|0),h[a]=s=C?Math.abs("y"===C?s:o):Pe(o*o+s*s),c<s&&(c=s),s<l&&(l=s);"random"===m&&V2(h),h.max=c-l,h.min=l,h.v=d=(parseFloat(f.amount)||parseFloat(f.each)*(d<u?d-1:C?"y"===C?d/u:u:Math.max(u,d/u))||0)*("edges"===m?-1:1),h.b=d<0?_-d:_,h.u=F2(f.amount||f.each)||0,p=p&&d<0?T1(p):p}return d=(h[t]-h.min)/h.max||0,f2(h.b+(p?p(d):d)*h.v)+h.u}}function Y2(n){var r=n<1?Math.pow(10,(n+"").length-2):1;return function(t){var e=Math.round(parseFloat(t)/n)*n*r;return(e-e%1)/r+(Qt(t)?0:F2(t))}}function Z2(t,e,n,r){return B2(Ue(t)?!e:!0===n?!!(n=0):!r,function(){return Ue(t)?t[~~(Math.random()*t.length)]:(n=n||1e-5)&&(r=n<1?Math.pow(10,(n+"").length-2):1)&&Math.floor(Math.round((t-n/2+Math.random()*(e-t+.99*n))/n)*n*r)/r})}function H2(e,n,t){return B2(t,function(t){return e[~~n(t)]})}function j2(e,t,n){var r=t-e;return Ue(e)?H2(e,j2(0,e.length),t):B2(n,function(t){return(r+(t-e)%r)%r+e})}function q2(t){for(var e,n,r,i,o=0,s="";~(e=t.indexOf("random(",o));)r=t.indexOf(")",e),i="["===t.charAt(e+7),n=t.substr(e+7,r-e-7).match(i?je:Ve),s+=t.substr(o,e-o)+Z2(i?n:+n[0],i?0:+n[1],+n[2]||1e-5),o=r+1;return s+t.substr(o,t.length-o)}function K2(t,e,n){var r,i,o,s=t.labels,a=Se;for(r in s)(i=s[r]-e)<0==!!n&&i&&a>(i=Math.abs(i))&&(o=r,a=i);return o}function G2(t){return x2(t),t.scrollTrigger&&t.scrollTrigger.kill(!1),t.progress()<1&&_1(t,"onInterrupt"),t}function X2(t,e,n){return(6*(t=t<0?t+1:1<t?t-1:t)<1?e+(n-e)*t*6:t<.5?n:3*t<2?e+(n-e)*(2/3-t)*6:e)*g1+.5|0}function Q2(t,e,n){var r,i,o,s,a,c,l,u=t?Qt(t)?[t>>16,t>>8&g1,t&g1]:0:v1.black;if(!u){if(","===t.substr(-1)&&(t=t.substr(0,t.length-1)),v1[t])u=v1[t];else if("#"===t.charAt(0)){if(9===(t=t.length<6?"#"+(r=t.charAt(1))+r+(i=t.charAt(2))+i+(o=t.charAt(3))+o+(5===t.length?t.charAt(4)+t.charAt(4):""):t).length)return[(u=parseInt(t.substr(1,6),16))>>16,u>>8&g1,u&g1,parseInt(t.substr(7),16)/255];u=[(t=parseInt(t.substr(1),16))>>16,t>>8&g1,t&g1]}else if("hsl"===t.substr(0,3))if(u=l=t.match(Ve),e){if(~t.indexOf("="))return u=t.match(We),n&&u.length<4&&(u[3]=1),u}else s=+u[0]%360/360,a=+u[1]/100,r=2*(c=+u[2]/100)-(i=c<=.5?c*(a+1):c+a-c*a),3<u.length&&(u[3]*=1),u[0]=X2(s+1/3,r,i),u[1]=X2(s,r,i),u[2]=X2(s-1/3,r,i);else u=t.match(Ve)||v1.transparent;u=u.map(Number)}return e&&!l&&(r=u[0]/g1,i=u[1]/g1,o=u[2]/g1,c=((t=Math.max(r,i,o))+(e=Math.min(r,i,o)))/2,t===e?s=a=0:(l=t-e,a=.5<c?l/(2-t-e):l/(t+e),s=t===r?(i-o)/l+(i<o?6:0):t===i?(o-r)/l+2:(r-i)/l+4,s*=60),u[0]=~~(s+.5),u[1]=~~(100*a+.5),u[2]=~~(100*c+.5)),n&&u.length<4&&(u[3]=1),u}function J2(t){var e=[],n=[],r=-1;return t.split(C1).forEach(function(t){t=t.match(Ye)||[];e.push.apply(e,t),n.push(r+=t.length+1)}),e.c=n,e}function te(t,e,n){var r,i,o,s,a="",c=(t+a).match(C1),l=e?"hsla(":"rgba(",u=0;if(!c)return t;if(c=c.map(function(t){return(t=Q2(t,e,1))&&l+(e?t[0]+","+t[1]+"%,"+t[2]+"%,"+t[3]:t.join(","))+")"}),n&&(o=J2(t),(r=n.c).join(a)!==o.c.join(a)))for(s=(i=t.replace(C1,"1").split(Ye)).length-1;u<s;u++)a+=i[u]+(~r.indexOf(u)?c.shift()||l+"0,0,0,0)":(o.length?o:c.length?c:n).shift());if(!i)for(s=(i=t.split(C1)).length-1;u<s;u++)a+=i[u]+c[u];return a+i[s]}function ee(t){var e=t.join(" ");if(C1.lastIndex=0,C1.test(e))return e=y1.test(e),t[1]=te(t[1],e),t[0]=te(t[0],e,J2(t[1])),!0}function ne(t){var e,n,r,i=(t+"").split("("),o=b1[i[0]];return o&&1<i.length&&o.config?o.config.apply(null,~t.indexOf("{")?[function(t){for(var e,n,r,i={},o=t.substr(1,t.length-3).split(":"),s=o[0],a=1,c=o.length;a<c;a++)n=o[a],e=a!==c-1?n.lastIndexOf(","):n.length,r=n.substr(0,e),i[s]=isNaN(r)?r.replace(L1,"").trim():+r,s=n.substr(e+1).trim();return i}(i[1])]:(n=(e=t).indexOf("(")+1,r=e.indexOf(")"),i=e.indexOf("(",n),e.substring(n,~i&&i<r?e.indexOf(")",r+1):r).split(",").map(_2))):b1._CE&&x1.test(t)?b1._CE("",t):o}function re(t,e){for(var n,r=t._first;r;)r instanceof k1?re(r,e):!r.vars.yoyoEase||r._yoyo&&r._repeat||r._yoyo===e||(r.timeline?re(r.timeline,e):(n=r._ease,r._ease=r._yEase,r._yEase=n,r._yoyo=e)),r=r._next}function ie(t,e,n,r){void 0===n&&(n=function(t){return 1-e(1-t)}),void 0===r&&(r=function(t){return t<.5?e(2*t)/2:1-e(2*(1-t))/2});var i,o={easeIn:e,easeOut:n,easeInOut:r};return h2(t,function(t){for(var e in b1[t]=Ke[t]=o,b1[i=t.toLowerCase()]=n,o)b1[i+("easeIn"===e?".in":"easeOut"===e?".out":".inOut")]=b1[t+"."+e]=o[e]}),1}function oe(e){return function(t){return t<.5?(1-e(1-2*t))/2:.5+e(2*(t-.5))/2}}var se,ae,ce,le,ue,de,he,fe,pe,me,_e,ge,ve,Ce,ye,$e,we,be,xe,Le,Te,Ee,Me,Ae,Oe={autoSleep:120,force3D:"auto",nullTargetWarn:1,units:{lineHeight:""}},Ne={duration:.5,overwrite:!1,delay:0},Se=1e8,ke=1e-8,De=2*Math.PI,ze=De/4,Ie=0,Pe=Math.sqrt,Re=Math.cos,Be=Math.sin,Fe="function"==typeof ArrayBuffer&&ArrayBuffer.isView||function(){},Ue=Array.isArray,Ve=/(?:-?\.?\d|\.)+/gi,We=/[-+=.]*\d+[.e\-+]*\d*[e\-+]*\d*/g,Ye=/[-+=.]*\d+[.e-]*\d*[a-z%]*/g,Ze=/[-+=.]*\d+\.?\d*(?:e-|e\+)?\d*/gi,He=/[+-]=-?[.\d]+/,je=/[^,'"\[\]\s]+/gi,qe=/[\d.+\-=]+(?:e[-+]\d*)*/i,Ke={},Ge={},Xe={},Qe=[],Je={},t1={},e1={},n1=30,r1=[],i1="",o1=function(t,e){for(var n in e)t[n]=e[n];return t},s1=function(t,e){e=Math.floor(t/=e);return t&&e===t?e-1:e},a1=function(t){t=t.data;return"isFromStart"===t||"isStart"===t},c1={_start:0,endTime:c2,totalDuration:c2},l1=function t(e,n,r){var i,o,s,a=e.labels,c=e._recent||c1,l=e.duration()>=Se?c.endTime(!1):e._dur;return Gt(n)&&(isNaN(n)||n in a)?(o=n.charAt(0),s="%"===n.substr(-1),i=n.indexOf("="),"<"===o||">"===o?(0<=i&&(n=n.replace(/=/,"")),("<"===o?c._start:c.endTime(0<=c._repeat))+(parseFloat(n.substr(1))||0)*(s?(i<0?c:r).totalDuration()/100:1)):i<0?(n in a||(a[n]=l),a[n]):(o=parseFloat(n.charAt(i-1)+n.substr(i+1)),s&&r&&(o=o/100*(Ue(r)?r[0]:r).totalDuration()),1<i?t(e,n.substr(0,i-1),r)+o:l+o)):null==n?l:+n},u1=function(t,e,n){return n<t?t:e<n?e:n},d1=[].slice,h1=function(t,e,n){return!Gt(t)||n||!le&&w1()?Ue(t)?(r=n,void 0===i&&(i=[]),t.forEach(function(t){return Gt(t)&&!r||U2(t,1)?i.push.apply(i,h1(t)):i.push(t)})||i):U2(t)?d1.call(t,0):t?[t]:[]:d1.call((e||ue).querySelectorAll(t),0);var r,i},f1=function(c,t){var l,u,e=Ue(c);return!e&&t2(c)&&(l=e=c.radius||Se,c.values?(c=h1(c.values),(u=!Qt(c[0]))&&(l*=l)):c=Y2(c.increment)),B2(t,e?Xt(c)?function(t){return u=c(t),Math.abs(u-t)<=l?u:t}:function(t){for(var e,n,r=parseFloat(u?t.x:t),i=parseFloat(u?t.y:0),o=Se,s=0,a=c.length;a--;)(e=u?(e=c[a].x-r)*e+(n=c[a].y-i)*n:Math.abs(c[a]-r))<o&&(o=e,s=a);return s=!l||o<=l?c[s]:t,u||s===t||Qt(t)?s:s+F2(t)}:Y2(c))},p1=function t(e,n,r){var i=n-e,o=2*i;return Ue(e)?H2(e,t(0,e.length-1),n):B2(r,function(t){return e+(i<(t=(o+(t-e)%o)%o||0)?o-t:t)})},m1=function(e,t,n,r,i){var o=t-e,s=r-n;return B2(i,function(t){return n+((t-e)/o*s||0)})},r=function t(e,n,r,i){var o=isNaN(e+n)?0:function(t){return(1-t)*e+t*n};if(!o){var s,a,c,l,u,d=Gt(e),h={};if(!0===r&&(i=1)&&(r=null),d)e={p:e},n={p:n};else if(Ue(e)&&!Ue(n)){for(c=[],l=e.length,u=l-2,a=1;a<l;a++)c.push(t(e[a-1],e[a]));l--,o=function(t){t*=l;var e=Math.min(u,~~t);return c[e](t-e)},r=n}else i||(e=o1(Ue(e)?[]:{},e));if(!c){for(s in n)I1.call(h,e,s,"get",n[s]);o=function(t){return X1(t,h)||(d?e.p:e)}}}return B2(r,o)},_1=function(t,e,n){var r=t.vars,i=r[e];if(i)return e=r[e+"Params"],t=r.callbackScope||t,n&&Qe.length&&p2(),e?i.apply(t,e):i.call(t)},g1=255,v1={aqua:[0,g1,g1],lime:[0,g1,0],silver:[192,192,192],black:[0,0,0],maroon:[128,0,0],teal:[0,128,128],blue:[0,0,g1],navy:[0,0,128],white:[g1,g1,g1],olive:[128,128,0],yellow:[g1,g1,0],orange:[g1,165,0],gray:[128,128,128],purple:[128,0,128],green:[0,128,0],red:[g1,0,0],pink:[g1,192,203],cyan:[0,g1,g1],transparent:[g1,g1,g1,0]},C1=function(){var t,e="(?:\\b(?:(?:rgb|rgba|hsl|hsla)\\(.+?\\))|\\B#(?:[0-9a-f]{3,4}){1,2}\\b";for(t in v1)e+="|"+t+"\\b";return new RegExp(e+")","gi")}(),y1=/hsl[a]?\(/,$1=(Ce=Date.now,ye=500,$e=33,we=Ce(),be=we,Le=xe=1e3/240,Ee={time:0,frame:0,tick:function(){A1(!0)},deltaRatio:function(t){return ge/(1e3/(t||60))},wake:function(){de&&(!le&&n2()&&(ce=le=window,ue=ce.document||{},Ke.gsap=on,(ce.gsapVersions||(ce.gsapVersions=[])).push(on.version),i2(Ge||ce.GreenSockGlobals||!ce.gsap&&ce||{}),_e=ce.requestAnimationFrame),pe&&Ee.sleep(),me=_e||function(t){return setTimeout(t,Le-1e3*Ee.time+1|0)},fe=1,A1(2))},sleep:function(){(_e?ce.cancelAnimationFrame:clearTimeout)(pe),fe=0,me=c2},lagSmoothing:function(t,e){ye=t||1e8,$e=Math.min(e,ye,0)},fps:function(t){xe=1e3/(t||240),Le=1e3*Ee.time+xe},add:function(t){Te.indexOf(t)<0&&Te.push(t),w1()},remove:function(t){~(t=Te.indexOf(t))&&Te.splice(t,1)&&t<=ve&&ve--},_listeners:Te=[]}),w1=function(){return!fe&&$1.wake()},b1={},x1=/^[\d.\-M][\d.\-,\s]/,L1=/["']/g,T1=function(e){return function(t){return 1-e(1-t)}},E1=function(t,e){return t&&(Xt(t)?t:b1[t]||ne(t))||e},M1=function n(r,t,e){function i(t){return 1===t?1:o*Math.pow(2,-10*t)*Be((t-s)*a)+1}var o=1<=t?t:1,s=(a=(e||(r?.3:.45))/(t<1?t:1))/De*(Math.asin(1/o)||0),t="out"===r?i:"in"===r?function(t){return 1-i(1-t)}:oe(i),a=De/a;return t.config=function(t,e){return n(r,t,e)},t},_t=function e(n,r){void 0===r&&(r=1.70158);function i(t){return t?--t*t*((r+1)*t+r)+1:0}var t="out"===n?i:"in"===n?function(t){return 1-i(1-t)}:oe(i);return t.config=function(t){return e(n,t)},t};function A1(t){var e,n,r,i=Ce()-be,o=!0===t;if(ye<i&&(we+=i-$e),(0<(i=(n=(be+=i)-we)-Le)||o)&&(r=++Ee.frame,ge=n-1e3*Ee.time,Ee.time=n/=1e3,Le+=i+(xe<=i?4:xe-i),e=1),o||(pe=me(A1)),e)for(ve=0;ve<Te.length;ve++)Te[ve](n,ge,r,t)}function O1(t){return t<Ae?Me*t*t:t<.7272727272727273?Me*Math.pow(t-1.5/2.75,2)+.75:t<.9090909090909092?Me*(t-=2.25/2.75)*t+.9375:Me*Math.pow(t-2.625/2.75,2)+.984375}h2("Linear,Quad,Cubic,Quart,Quint,Strong",function(t,e){var n=e<5?e+1:e;ie(t+",Power"+(n-1),e?function(t){return Math.pow(t,n)}:function(t){return t},function(t){return 1-Math.pow(1-t,n)},function(t){return t<.5?Math.pow(2*t,n)/2:1-Math.pow(2*(1-t),n)/2})}),b1.Linear.easeNone=b1.none=b1.Linear.easeIn,ie("Elastic",M1("in"),M1("out"),M1()),Me=7.5625,Ae=1/2.75,ie("Bounce",function(t){return 1-O1(1-t)},O1),ie("Expo",function(t){return t?Math.pow(2,10*(t-1)):0}),ie("Circ",function(t){return-(Pe(1-t*t)-1)}),ie("Sine",function(t){return 1===t?1:1-Re(t*ze)}),ie("Back",_t("in"),_t("out"),_t()),b1.SteppedEase=b1.steps=Ke.SteppedEase={config:function(t,e){var n=1/(t=void 0===t?1:t),r=t+(e?0:1),i=e?1:0;return function(t){return((r*u1(0,.99999999,t)|0)+i)*n}}},Ne.ease=b1["quad.out"],h2("onComplete,onUpdate,onStart,onRepeat,onReverseComplete,onInterrupt",function(t){return i1+=t+","+t+"Params,"});var N1=function(t,e){this.id=Ie++,(t._gsap=this).target=t,this.harness=e,this.get=e?e.get:d2,this.set=e?e.getSetter:j1},S1=function(){function t(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,I2(this,+t.duration,1,1),this.data=t.data,fe||$1.wake()}var e=t.prototype;return e.delay=function(t){return t||0===t?(this.parent&&this.parent.smoothChildTiming&&this.startTime(this._start+t-this._delay),this._delay=t,this):this._delay},e.duration=function(t){return arguments.length?this.totalDuration(0<this._repeat?t+(t+this._rDelay)*this._repeat:t):this.totalDuration()&&this._dur},e.totalDuration=function(t){return arguments.length?(this._dirty=0,I2(this,this._repeat<0?t:(t-this._repeat*this._rDelay)/(this._repeat+1))):this._tDur},e.totalTime=function(t,e){if(w1(),!arguments.length)return this._tTime;var n=this._dp;if(n&&n.smoothChildTiming&&this._ts){for(O2(this,t),!n._dp||n.parent||N2(n,this);n.parent;)n.parent._time!==n._start+(0<=n._ts?n._tTime/n._ts:(n.totalDuration()-n._tTime)/-n._ts)&&n.totalTime(n._tTime,!0),n=n.parent;!this.parent&&this._dp.autoRemoveChildren&&(0<this._ts&&t<this._tDur||this._ts<0&&0<t||!this._tDur&&!t)&&S2(this._dp,this,this._start-this._delay)}return(this._tTime!==t||!this._dur&&!e||this._initted&&Math.abs(this._zTime)===ke||!t&&!this._initted&&(this.add||this._ptLookup))&&(this._ts||(this._pTime=t),m2(this,t,e)),this},e.time=function(t,e){return arguments.length?this.totalTime(Math.min(this.totalDuration(),t+E2(this))%this._dur||(t?this._dur:0),e):this._time},e.totalProgress=function(t,e){return arguments.length?this.totalTime(this.totalDuration()*t,e):this.totalDuration()?Math.min(1,this._tTime/this._tDur):this.ratio},e.progress=function(t,e){return arguments.length?this.totalTime(this.duration()*(!this._yoyo||1&this.iteration()?t:1-t)+E2(this),e):this.duration()?Math.min(1,this._time/this._dur):this.ratio},e.iteration=function(t,e){var n=this.duration()+this._rDelay;return arguments.length?this.totalTime(this._time+(t-1)*n,e):this._repeat?s1(this._tTime,n)+1:1},e.timeScale=function(t){if(!arguments.length)return this._rts===-ke?0:this._rts;if(this._rts===t)return this;var e=this.parent&&this._ts?M2(this.parent._time,this):this._tTime;return this._rts=+t||0,this._ts=this._ps||t===-ke?0:this._rts,function(t){for(var e=t.parent;e&&e.parent;)e._dirty=1,e.totalDuration(),e=e.parent;return t}(this.totalTime(u1(-this._delay,this._tDur,e),!0))},e.paused=function(t){return arguments.length?(this._ps!==t&&((this._ps=t)?(this._pTime=this._tTime||Math.max(-this._delay,this.rawTime()),this._ts=this._act=0):(w1(),this._ts=this._rts,this.totalTime(this.parent&&!this.parent.smoothChildTiming?this.rawTime():this._tTime||this._pTime,1===this.progress()&&(this._tTime-=ke)&&Math.abs(this._zTime)!==ke))),this):this._ps},e.startTime=function(t){if(arguments.length){this._start=t;var e=this.parent||this._dp;return!e||!e._sort&&this.parent||S2(e,this,t-this._delay),this}return this._start},e.endTime=function(t){return this._start+(e2(t)?this.totalDuration():this.duration())/Math.abs(this._ts)},e.rawTime=function(t){var e=this.parent||this._dp;return e?t&&(!this._ts||this._repeat&&this._time&&this.totalProgress()<1)?this._tTime%(this._dur+this._rDelay):this._ts?M2(e.rawTime(t),this):this._tTime:this._tTime},e.globalTime=function(t){for(var e=this,n=arguments.length?t:e.rawTime();e;)n=e._start+n/(e._ts||1),e=e._dp;return n},e.repeat=function(t){return arguments.length?(this._repeat=t===1/0?-2:t,P2(this)):-2===this._repeat?1/0:this._repeat},e.repeatDelay=function(t){return arguments.length?(this._rDelay=t,P2(this)):this._rDelay},e.yoyo=function(t){return arguments.length?(this._yoyo=t,this):this._yoyo},e.seek=function(t,e){return this.totalTime(l1(this,t),e2(e))},e.restart=function(t,e){return this.play().totalTime(t?-this._delay:0,e2(e))},e.play=function(t,e){return null!=t&&this.seek(t,e),this.reversed(!1).paused(!1)},e.reverse=function(t,e){return null!=t&&this.seek(t||this.totalDuration(),e),this.reversed(!0).paused(!1)},e.pause=function(t,e){return null!=t&&this.seek(t,e),this.paused(!0)},e.resume=function(){return this.paused(!1)},e.reversed=function(t){return arguments.length?(!!t!==this.reversed()&&this.timeScale(-this._rts||(t?-ke:0)),this):this._rts<0},e.invalidate=function(){return this._initted=this._act=0,this._zTime=-ke,this},e.isActive=function(){var t,e=this.parent||this._dp,n=this._start;return!(e&&!(this._ts&&this._initted&&e.isActive()&&(t=e.rawTime(!0))>=n&&t<this.endTime(!0)-ke))},e.eventCallback=function(t,e,n){var r=this.vars;return 1<arguments.length?(e?(r[t]=e,n&&(r[t+"Params"]=n),"onUpdate"===t&&(this._onUpdate=e)):delete r[t],this):r[t]},e.then=function(r){var i=this;return new Promise(function(e){function t(){var t=i.then;i.then=null,Xt(n)&&(n=n(i))&&(n.then||n===i)&&(i.then=t),e(n),i.then=t}var n=Xt(r)?r:g2;i._initted&&1===i.totalProgress()&&0<=i._ts||!i._tTime&&i._ts<0?t():i._prom=t})},e.kill=function(){G2(this)},t}();v2(S1.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:-ke,_prom:0,_ps:!1,_rts:1});var k1=function(r){function t(t,e){var n;return(n=r.call(this,t=void 0===t?{}:t)||this).labels={},n.smoothChildTiming=!!t.smoothChildTiming,n.autoRemoveChildren=!!t.autoRemoveChildren,n._sort=e2(t.sortChildren),ae&&S2(t.parent||ae,qt(n),e),t.reversed&&n.reverse(),t.paused&&n.paused(!0),t.scrollTrigger&&k2(qt(n),t.scrollTrigger),n}Kt(t,r);var e=t.prototype;return e.to=function(t,e,n){return R2(0,arguments,this),this},e.from=function(t,e,n){return R2(1,arguments,this),this},e.fromTo=function(t,e,n,r){return R2(2,arguments,this),this},e.set=function(t,e,n){return e.duration=0,e.parent=this,w2(e).repeatDelay||(e.repeat=0),e.immediateRender=!!e.immediateRender,new U1(t,e,l1(this,n),1),this},e.call=function(t,e,n){return S2(this,U1.delayedCall(0,t,e),n)},e.staggerTo=function(t,e,n,r,i,o,s){return n.duration=e,n.stagger=n.stagger||r,n.onComplete=o,n.onCompleteParams=s,n.parent=this,new U1(t,n,l1(this,i)),this},e.staggerFrom=function(t,e,n,r,i,o,s){return n.runBackwards=1,w2(n).immediateRender=e2(n.immediateRender),this.staggerTo(t,e,n,r,i,o,s)},e.staggerFromTo=function(t,e,n,r,i,o,s,a){return r.startAt=n,w2(r).immediateRender=e2(r.immediateRender),this.staggerTo(t,e,r,i,o,s,a)},e.render=function(t,e,n){var r,i,o,s,a,c,l,u,d,h,f=this._time,p=this._dirty?this.totalDuration():this._tDur,m=this._dur,_=this!==ae&&p-ke<t&&0<=t?p:t<ke?0:t,g=this._zTime<0!=t<0&&(this._initted||!m);if(_!==this._tTime||n||g){if(f!==this._time&&m&&(_+=this._time-f,t+=this._time-f),r=_,u=this._start,a=!(l=this._ts),g&&(m||(f=this._zTime),!t&&e||(this._zTime=t)),this._repeat){if(v=this._yoyo,s=m+this._rDelay,this._repeat<-1&&t<0)return this.totalTime(100*s+t,e,n);if(r=f2(_%s),_===p?(o=this._repeat,r=m):((o=~~(_/s))&&o===_/s&&(r=m,o--),m<r&&(r=m)),d=s1(this._tTime,s),v&&1&o&&(r=m-r,h=1),o!==(d=!f&&this._tTime&&d!==o?o:d)&&!this._lock){var g=v&&1&d,v=g===(v&&1&o),f=(g=o<d?!g:g)?0:m;if(this._lock=1,this.render(f||(h?0:f2(o*s)),e,!m)._lock=0,this._tTime=_,!e&&this.parent&&_1(this,"onRepeat"),this.vars.repeatRefresh&&!h&&(this.invalidate()._lock=1),f&&f!==this._time||a!=!this._ts||this.vars.onRepeat&&!this.parent&&!this._act)return this;if(m=this._dur,p=this._tDur,v&&(this._lock=2,this.render(f=g?m:-1e-4,!0),this.vars.repeatRefresh&&!h&&this.invalidate()),this._lock=0,!this._ts&&!a)return this;re(this,h)}}if(this._hasPause&&!this._forcing&&this._lock<2&&(c=function(t,e,n){var r;if(e<n)for(r=t._first;r&&r._start<=n;){if(!r._dur&&"isPause"===r.data&&r._start>e)return r;r=r._next}else for(r=t._last;r&&r._start>=n;){if(!r._dur&&"isPause"===r.data&&r._start<e)return r;r=r._prev}}(this,f2(f),f2(r)))&&(_-=r-(r=c._start)),this._tTime=_,this._time=r,this._act=!l,this._initted||(this._onUpdate=this.vars.onUpdate,this._initted=1,this._zTime=t,f=0),!f&&r&&!e&&(_1(this,"onStart"),this._tTime!==_))return this;if(f<=r&&0<=t)for(C=this._first;C;){if(i=C._next,(C._act||r>=C._start)&&C._ts&&c!==C){if(C.parent!==this)return this.render(t,e,n);if(C.render(0<C._ts?(r-C._start)*C._ts:(C._dirty?C.totalDuration():C._tDur)+(r-C._start)*C._ts,e,n),r!==this._time||!this._ts&&!a){c=0,i&&(_+=this._zTime=-ke);break}}C=i}else for(var C=this._last,y=t<0?t:r;C;){if(i=C._prev,(C._act||y<=C._end)&&C._ts&&c!==C){if(C.parent!==this)return this.render(t,e,n);if(C.render(0<C._ts?(y-C._start)*C._ts:(C._dirty?C.totalDuration():C._tDur)+(y-C._start)*C._ts,e,n),r!==this._time||!this._ts&&!a){c=0,i&&(_+=this._zTime=y?-ke:ke);break}}C=i}if(c&&!e&&(this.pause(),c.render(f<=r?0:-ke)._zTime=f<=r?1:-1,this._ts))return this._start=u,A2(this),this.render(t,e,n);this._onUpdate&&!e&&_1(this,"onUpdate",!0),(_===p&&p>=this.totalDuration()||!_&&f)&&(u!==this._start&&Math.abs(l)===Math.abs(this._ts)||this._lock||(!t&&m||!(_===p&&0<this._ts||!_&&this._ts<0)||x2(this,1),e||t<0&&!f||!_&&!f&&p||(_1(this,_===p&&0<=t?"onComplete":"onReverseComplete",!0),!this._prom||_<p&&0<this.timeScale()||this._prom())))}return this},e.add=function(t,e){var n=this;if(Qt(e)||(e=l1(this,e,t)),!(t instanceof S1)){if(Ue(t))return t.forEach(function(t){return n.add(t,e)}),this;if(Gt(t))return this.addLabel(t,e);if(!Xt(t))return this;t=U1.delayedCall(0,t)}return this!==t?S2(this,t,e):this},e.getChildren=function(t,e,n,r){void 0===t&&(t=!0),void 0===e&&(e=!0),void 0===n&&(n=!0),void 0===r&&(r=-Se);for(var i=[],o=this._first;o;)o._start>=r&&(o instanceof U1?e&&i.push(o):(n&&i.push(o),t&&i.push.apply(i,o.getChildren(!0,e,n)))),o=o._next;return i},e.getById=function(t){for(var e=this.getChildren(1,1,1),n=e.length;n--;)if(e[n].vars.id===t)return e[n]},e.remove=function(t){return Gt(t)?this.removeLabel(t):Xt(t)?this.killTweensOf(t):(b2(this,t),t===this._recent&&(this._recent=this._last),L2(this))},e.totalTime=function(t,e){return arguments.length?(this._forcing=1,!this._dp&&this._ts&&(this._start=f2($1.time-(0<this._ts?t/this._ts:(this.totalDuration()-t)/-this._ts))),r.prototype.totalTime.call(this,t,e),this._forcing=0,this):this._tTime},e.addLabel=function(t,e){return this.labels[t]=l1(this,e),this},e.removeLabel=function(t){return delete this.labels[t],this},e.addPause=function(t,e,n){n=U1.delayedCall(0,e||c2,n);return n.data="isPause",this._hasPause=1,S2(this,n,l1(this,t))},e.removePause=function(t){var e=this._first;for(t=l1(this,t);e;)e._start===t&&"isPause"===e.data&&x2(e),e=e._next},e.killTweensOf=function(t,e,n){for(var r=this.getTweensOf(t,n),i=r.length;i--;)z1!==r[i]&&r[i].kill(t,e);return this},e.getTweensOf=function(t,e){for(var n,r=[],i=h1(t),o=this._first,s=Qt(e);o;)o instanceof U1?function(t,e){for(var n=e.length,r=0;t.indexOf(e[r])<0&&++r<n;);return r<n}(o._targets,i)&&(s?(!z1||o._initted&&o._ts)&&o.globalTime(0)<=e&&o.globalTime(o.totalDuration())>e:!e||o.isActive())&&r.push(o):(n=o.getTweensOf(i,e)).length&&r.push.apply(r,n),o=o._next;return r},e.tweenTo=function(t,e){e=e||{};var n,r=this,i=l1(r,t),t=e,o=t.startAt,s=t.onStart,a=t.onStartParams,t=t.immediateRender,c=U1.to(r,v2({ease:e.ease||"none",lazy:!1,immediateRender:!1,time:i,overwrite:"auto",duration:e.duration||Math.abs((i-(o&&"time"in o?o.time:r._time))/r.timeScale())||ke,onStart:function(){var t;r.pause(),n||(t=e.duration||Math.abs((i-(o&&"time"in o?o.time:r._time))/r.timeScale()),c._dur!==t&&I2(c,t,0,1).render(c._time,!0,!0),n=1),s&&s.apply(c,a||[])}},e));return t?c.render(0):c},e.tweenFromTo=function(t,e,n){return this.tweenTo(e,v2({startAt:{time:l1(this,t)}},n))},e.recent=function(){return this._recent},e.nextLabel=function(t){return void 0===t&&(t=this._time),K2(this,l1(this,t))},e.previousLabel=function(t){return void 0===t&&(t=this._time),K2(this,l1(this,t),1)},e.currentLabel=function(t){return arguments.length?this.seek(t,!0):this.previousLabel(this._time+ke)},e.shiftChildren=function(t,e,n){void 0===n&&(n=0);for(var r,i=this._first,o=this.labels;i;)i._start>=n&&(i._start+=t,i._end+=t),i=i._next;if(e)for(r in o)o[r]>=n&&(o[r]+=t);return L2(this)},e.invalidate=function(){var t=this._first;for(this._lock=0;t;)t.invalidate(),t=t._next;return r.prototype.invalidate.call(this)},e.clear=function(t){void 0===t&&(t=!0);for(var e,n=this._first;n;)e=n._next,this.remove(n),n=e;return this._dp&&(this._time=this._tTime=this._pTime=0),t&&(this.labels={}),L2(this)},e.totalDuration=function(t){var e,n,r,i=0,o=this,s=o._last,a=Se;if(arguments.length)return o.timeScale((o._repeat<0?o.duration():o.totalDuration())/(o.reversed()?-t:t));if(o._dirty){for(r=o.parent;s;)e=s._prev,s._dirty&&s.totalDuration(),a<(n=s._start)&&o._sort&&s._ts&&!o._lock?(o._lock=1,S2(o,s,n-s._delay,1)._lock=0):a=n,n<0&&s._ts&&(i-=n,(!r&&!o._dp||r&&r.smoothChildTiming)&&(o._start+=n/o._ts,o._time-=n,o._tTime-=n),o.shiftChildren(-n,!1,-1/0),a=0),s._end>i&&s._ts&&(i=s._end),s=e;I2(o,o===ae&&o._time>i?o._time:i,1,1),o._dirty=0}return o._tDur},t.updateRoot=function(t){if(ae._ts&&(m2(ae,M2(t,ae)),he=$1.frame),$1.frame>=n1){n1+=Oe.autoSleep||120;var e=ae._first;if((!e||!e._ts)&&Oe.autoSleep&&$1._listeners.length<2){for(;e&&!e._ts;)e=e._next;e||$1.sleep()}}},t}(S1);v2(k1.prototype,{_lock:0,_hasPause:0,_forcing:0});function D1(t,e,n,r,i,o){var s,a,c,l;if(t1[t]&&!1!==(s=new t1[t]).init(i,s.rawVars?e[t]:function(t,e,n,r,i){if(Xt(t)&&(t=R1(t,i,e,n,r)),!t2(t)||t.style&&t.nodeType||Ue(t)||Fe(t))return Gt(t)?R1(t,i,e,n,r):t;var o,s={};for(o in t)s[o]=R1(t[o],i,e,n,r);return s}(e[t],r,i,o,n),n,r,o)&&(n._pt=a=new en(n._pt,i,t,0,1,s.render,s,0,s.priority),n!==rn))for(c=n._ptLookup[n._targets.indexOf(i)],l=s._props.length;l--;)c[s._props[l]]=a;return s}var z1,I1=function(t,e,n,r,i,o,s,a,c){Xt(r)&&(r=r(i||0,t,o));var l,i=t[e],o="get"!==n?n:Xt(i)?c?t[e.indexOf("set")||!Xt(t["get"+e.substr(3)])?e:"get"+e.substr(3)](c):t[e]():i,n=Xt(i)?c?H1:Z1:Y1;if(Gt(r)&&"="===(r=~r.indexOf("random(")?q2(r):r).charAt(1)&&(!(l=parseFloat(o)+parseFloat(r.substr(2))*("-"===r.charAt(0)?-1:1)+(F2(o)||0))&&0!==l||(r=l)),o!==r)return isNaN(o*r)||""===r?(i||e in t||o2(e,r),function(t,e,n,r,i,o,s){var a,c,l,u,d,h=new en(this._pt,t,e,0,1,G1,null,i),f=0,p=0;for(h.b=n,h.e=r,n+="",(i=~(r+="").indexOf("random("))&&(r=q2(r)),o&&(o(o=[n,r],t,e),n=o[0],r=o[1]),a=n.match(Ze)||[];d=Ze.exec(r);)l=d[0],u=r.substring(f,d.index),c?c=(c+1)%5:"rgba("===u.substr(-5)&&(c=1),l!==a[p++]&&(d=parseFloat(a[p-1])||0,h._pt={_next:h._pt,p:u||1===p?u:",",s:d,c:"="===l.charAt(1)?parseFloat(l.substr(2))*("-"===l.charAt(0)?-1:1):parseFloat(l)-d,m:c&&c<4?Math.round:0},f=Ze.lastIndex);return h.c=f<r.length?r.substring(f,r.length):"",h.fp=s,(He.test(r)||i)&&(h.e=0),this._pt=h}.call(this,t,e,o,r,n,a||Oe.stringFilter,c)):(l=new en(this._pt,t,e,+o||0,r-(o||0),"boolean"==typeof i?K1:q1,0,n),c&&(l.fp=c),s&&l.modifier(s,this,t),this._pt=l)},P1=function t(e,n){var r,i,o,s,a,c,l,u,d,h,f,p,m,_=e.vars,g=_.ease,v=_.startAt,C=_.immediateRender,y=_.lazy,$=_.onUpdate,w=_.onUpdateParams,b=_.callbackScope,x=_.runBackwards,L=_.yoyoEase,T=_.keyframes,E=_.autoRevert,M=e._dur,A=e._startAt,O=e._targets,N=e.parent,S=N&&"nested"===N.data?N.parent._targets:O,k="auto"===e._overwrite&&!se,D=e.timeline;if(e._ease=E1(g=!(!D||T&&g)?"none":g,Ne.ease),e._yEase=L?T1(E1(!0===L?g:L,Ne.ease)):0,L&&e._yoyo&&!e._repeat&&(L=e._yEase,e._yEase=e._ease,e._ease=L),e._from=!D&&!!_.runBackwards,!D){if(p=(u=O[0]?u2(O[0]).harness:0)&&_[u.prop],r=$2(_,Xe),A&&A.render(-1,!0).kill(),v)if(x2(e._startAt=U1.set(O,v2({data:"isStart",overwrite:!1,parent:N,immediateRender:!0,lazy:e2(y),startAt:null,delay:0,onUpdate:$,onUpdateParams:w,callbackScope:b,stagger:0},v))),n<0&&!C&&!E&&e._startAt.render(-1,!0),C){if(0<n&&!E&&(e._startAt=0),M&&n<=0)return void(n&&(e._zTime=n))}else!1===E&&(e._startAt=0);else if(x&&M)if(A)E||(e._startAt=0);else if(o=v2({overwrite:!1,data:"isFromStart",lazy:(C=n?!1:C)&&e2(y),immediateRender:C,stagger:0,parent:N},r),p&&(o[u.prop]=p),x2(e._startAt=U1.set(O,o)),n<0&&e._startAt.render(-1,!0),C){if(!n)return}else t(e._startAt,ke);for(e._pt=0,y=M&&e2(y)||y&&!M,i=0;i<O.length;i++){if(l=(a=O[i])._gsap||l2(O)[i]._gsap,e._ptLookup[i]=h={},Je[l.id]&&Qe.length&&p2(),f=S===O?i:S.indexOf(a),u&&!1!==(d=new u).init(a,p||r,e,f,S)&&(e._pt=s=new en(e._pt,a,d.name,0,1,d.render,d,0,d.priority),d._props.forEach(function(t){h[t]=s}),d.priority&&(c=1)),!u||p)for(o in r)t1[o]&&(d=D1(o,r,e,f,a,S))?d.priority&&(c=1):h[o]=s=I1.call(e,a,o,"get",r[o],f,S,0,_.stringFilter);e._op&&e._op[i]&&e.kill(a,e._op[i]),k&&e._pt&&(z1=e,ae.killTweensOf(a,h,e.globalTime(0)),m