@xcpcio/board-app 0.73.1 → 0.74.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/404.html +1 -1
- package/dist/assets/Balloon.vue_vue_type_script_setup_true_lang-CeyD9H5H.js +1 -0
- package/dist/assets/{Board-Cqw_GFPX.js → Board-BFvoTH8d.js} +5 -5
- package/dist/assets/ContestStateBadge-BR1f4Iq-.js +1 -0
- package/dist/assets/Countdown-jAwRBsgJ.js +1 -0
- package/dist/assets/DataSourceInput.vue_vue_type_script_setup_true_lang-kagtc8bk.js +1 -0
- package/dist/assets/NavBar-BLPM7t11.js +1 -0
- package/dist/assets/{Resolver-odXTcg4v.js → Resolver-C8uCNFNR.js} +4 -4
- package/dist/assets/{RightArrowIcon-BUVB4PcZ.js → RightArrowIcon-CxTngzuT.js} +1 -1
- package/dist/assets/TheInput.vue_vue_type_script_setup_true_lang-MKAklEWs.js +1 -0
- package/dist/assets/{Tooltip.vue_vue_type_script_setup_true_lang-vH11Q1Kc.js → Tooltip.vue_vue_type_script_setup_true_lang-BUnVSWCB.js} +1 -1
- package/dist/assets/_...all_-CnkT4PVb.js +1 -0
- package/dist/assets/{_...all_-D0T-OXY6.js → _...all_-D7WBSwOv.js} +1 -1
- package/dist/assets/board-layout-Bu9E-8ti.js +1 -0
- package/dist/assets/constant-z3sbugPT.js +1 -0
- package/dist/assets/{dayjs-CTwHCgNb.js → dayjs-CsJI1pvO.js} +1 -1
- package/dist/assets/default-CV0hqP0u.js +1 -0
- package/dist/assets/{headless-Csc7i5Qz.js → headless-D_J5o7dw.js} +1 -1
- package/dist/assets/index-8PXU_sno.js +71 -0
- package/dist/assets/index-B1MSy4n9.css +5 -0
- package/dist/assets/{index-Bt3Q0cTR.js → index-BVGQ976A.js} +1 -1
- package/dist/assets/index-Bv_d-8W3.js +1 -0
- package/dist/assets/{index-BgiZ27_2.js → index-CsWAnEBP.js} +2 -2
- package/dist/assets/index-DlnVAFjF.js +1 -0
- package/dist/assets/index-HBssAgsv.js +1 -0
- package/dist/assets/index-WgD2LlAm.js +1 -0
- package/dist/assets/index-layout-maIkLl-c.js +1 -0
- package/dist/assets/{pagination-BYgair5F.js → pagination-z8KCjwk9.js} +3 -3
- package/dist/assets/{person-DX7u9Sa0.js → person-BKesfx6Y.js} +1 -1
- package/dist/assets/rank-DYdp7LSn.js +1 -0
- package/dist/assets/use-vmodel-BLyWK6hZ.js +39 -0
- package/dist/index.html +1 -1
- package/package.json +4 -7
- package/src/components.d.ts +2 -2
- package/src/typed-router.d.ts +3 -18
- package/vite.config.ts +1 -31
- package/dist/assets/Balloon.vue_vue_type_script_setup_true_lang-BIwyaas2.js +0 -1
- package/dist/assets/ContestStateBadge-c8X8TnRM.js +0 -1
- package/dist/assets/Countdown-C8vv8_A7.js +0 -1
- package/dist/assets/DataSourceInput.vue_vue_type_script_setup_true_lang-DDGtS1fZ.js +0 -1
- package/dist/assets/Footer-CsFKhzRo.js +0 -1
- package/dist/assets/NavBar-8MEEHfMi.js +0 -1
- package/dist/assets/TheInput.vue_vue_type_script_setup_true_lang-DK_nCS-q.js +0 -1
- package/dist/assets/_...all_-DsrMzm0B.js +0 -1
- package/dist/assets/_name_-Q6uO4OvA.js +0 -1
- package/dist/assets/about-6K4bLjIL.js +0 -5
- package/dist/assets/board-CdxpokP6.js +0 -1
- package/dist/assets/board-layout-DTiKJFhr.js +0 -1
- package/dist/assets/constant-UkUMYS7s.js +0 -1
- package/dist/assets/default-0Dj2gFM3.js +0 -1
- package/dist/assets/home-pqiOmpdS.js +0 -1
- package/dist/assets/index-COAPxWgF.js +0 -1
- package/dist/assets/index-CQ1wUkw4.css +0 -5
- package/dist/assets/index-CQKud_R7.js +0 -1
- package/dist/assets/index-DHuuYClc.js +0 -1
- package/dist/assets/index-YUJOYuUP.js +0 -71
- package/dist/assets/index-layout-EraWOXxf.js +0 -1
- package/dist/assets/query-pqGZ6xxB.js +0 -39
- package/dist/assets/rank-BXdOaS_b.js +0 -1
- package/dist/assets/test-DED1PV_E.js +0 -1
- package/dist/assets/use-vmodel-DoyWYfPP.js +0 -1
- package/dist/assets/useQueryBoardData-DeC81rZB.js +0 -1
- package/dist/assets/user-BSro7P6Z.js +0 -1
- package/dist/assets/virtual_pwa-register-BdcP16Ar.js +0 -1
- package/dist/assets/workbox-window.prod.es5-CwtvwXb3.js +0 -2
- package/dist/manifest.webmanifest +0 -1
- package/dist/sw.js +0 -1
- package/dist/workbox-7ee6f867.js +0 -1
- package/src/layouts/home.vue +0 -12
- package/src/modules/README.md +0 -11
- package/src/modules/pwa.ts +0 -15
- package/src/pages/about.md +0 -21
- package/src/pages/hi/[name].vue +0 -50
- package/src/pages/test.vue +0 -65
- /package/src/components/{icon → common}/RightArrowIcon.vue +0 -0
- /package/src/components/{table → common}/TablePagination.vue +0 -0
- /package/src/pages/{board.vue → board/index.vue} +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{j as u,k as A}from"./use-vmodel-BLyWK6hZ.js";import{e as F,h as B,m as n,U as G,D as V,c as v,o as g,b as c,I,n as D,u as x,q as E,F as X,t as k}from"./index-8PXU_sno.js";import{c as j,g as q}from"./dayjs-CsJI1pvO.js";import{_ as C}from"./_plugin-vue_export-helper-DlAUqK2U.js";function ae(s,e){return s?.url?!e||s.url.startsWith("http")?s.url:`${e}/${s.url}`:s?.base64?`data:image/${s.type??"png"};base64,${s.base64}`:""}const H=F({__name:"Progress",props:{width:null,state:null,needScroll:{type:Boolean},rank:null,rankOptions:null,elapsedTime:null},emits:["update:rank-options"],setup(s,{emit:e}){const t=s,M=e,h=B({get(){return t.rankOptions},set(l){M("update:rank-options",l)}}),N=B(()=>{switch(t.state){case u.PENDING:return"am-progress-bar-secondary";case u.RUNNING:return"am-progress-bar-success";case u.FROZEN:return"am-progress-bar-danger";case u.FINISHED:return"am-progress-bar-primary";case u.PAUSED:return"am-progress-bar-danger"}return""}),r=n(!1),S=n(!1),m=n(0),_=n(t.width),T=n(0),d=A(),o=n(null),L=n(null),p=n(null),W=n(null),U=n(null);function R(l){S.value=!0;const f=l.clientX-p.value.offsetLeft,b=w=>{if(!S.value)return;r.value=!0;let a=w.clientX-f;a=Math.max(a,0),a=Math.min(a,o.value.offsetWidth-p.value.offsetWidth);const $=o.value.offsetWidth*Number.parseInt(L.value.style?.width)*.01;a>=$&&(a=$,r.value=!1);let i=0;a>0&&(i=Math.round((a+p.value.offsetWidth)/o.value.offsetWidth*1e4)),i>1e4&&(i=1e4),i===1e4&&(r.value=!1),window.getSelection()?.removeAllRanges(),m.value=i,T.value=a,_.value=i*.01},y=()=>{document.removeEventListener("mouseup",y),document.removeEventListener("mousemove",b),S.value=!1,r.value===!0?(d.value=m.value,h.value?.setWidth(m.value,t.rank.contest)):(d.value=void 0,h.value?.disableFilterSubmissionByTimestamp())};document.addEventListener("mousemove",b),document.addEventListener("mouseup",y)}function z(){const l=t.rank.contest.getStartTime(),f=t.rank.contest.getEndTime(),b=f.unix()-l.unix(),y=Math.floor(b*_.value*.01),w=j(),a=Math.max(0,Math.min(w.unix(),f.unix())-l.unix());return q(Math.min(y,a))}function O(){return r.value===!0?z():t.elapsedTime}function P(){return r.value===!0?`${Math.max(0,T.value)}px`:`max(calc(0%), min(calc(${t.width}%), calc(100% - 10px)))`}return G(()=>{t.needScroll===!0&&(o.value.onmouseenter=()=>{W.value.classList.add("in")},o.value.onmouseleave=()=>{W.value.classList.remove("in")}),d.value!==-1?(r.value=!0,m.value=Math.max(0,Math.min(1e4,d.value)),_.value=m.value*.01,T.value=_.value*.01*o.value.offsetWidth-p.value.offsetWidth,h.value?.setWidth(d.value,t.rank.contest)):h.value?.disableFilterSubmissionByTimestamp()}),V(()=>{}),(l,f)=>(g(),v("div",{ref_key:"scroll",ref:o,class:"am-progress am-progress-striped am-active","w-full":"",style:{position:"relative"}},[c("div",{ref_key:"mask",ref:L,class:D(["am-progress-bar",[x(N)]]),style:I({width:`${t.width}%`})},[t.needScroll?(g(),v(X,{key:0},[c("div",{ref_key:"tooltip",ref:W,class:"tooltip tooltip-top",style:I({marginLeft:"-32px",bottom:"22px",left:P()})},[c("div",{ref_key:"tooltipInner",ref:U,class:"tooltip-inner"},k(O()),513)],4),c("div",{ref_key:"bar",ref:p,class:D(["am-progress-bar am-progress-cursor am-progress-scroll-size z-99",[x(N)]]),style:I({left:P()}),onMousedown:R},null,38)],64)):E("",!0)],6)],512))}}),ne=C(H,[["__scopeId","data-v-4607820e"]]),J={flex:"","flex-row":"","items-center":"","justify-center":""},Q={key:0,"ml-2":""},Z={key:1,"ml-2":""},K=F({__name:"ContestStateBadge",props:{state:null,pendingTime:null,pausedTime:null},setup(s){const e=s;return(t,M)=>(g(),v("div",J,[c("div",{class:D(["label",e.state])},null,2),c("div",null,k(e.state),1),e.pendingTime&&e.state===x(u).PENDING?(g(),v("div",Q,k(e.pendingTime),1)):E("",!0),e.pausedTime&&e.state===x(u).PAUSED?(g(),v("div",Z,k(e.pausedTime),1)):E("",!0)]))}}),re=C(K,[["__scopeId","data-v-68586c4d"]]);export{re as _,ne as a,ae as g};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{c as h,j as y}from"./use-vmodel-BLyWK6hZ.js";import{e as S,f as k,h as N,A as w,m as l,C as T,c as o,o as n,u as t,b as a,q as D,t as c,n as d,s as E}from"./index-8PXU_sno.js";import{c as u}from"./constant-z3sbugPT.js";import{u as I}from"./TheInput.vue_vue_type_script_setup_true_lang-MKAklEWs.js";import{_ as B}from"./_plugin-vue_export-helper-DlAUqK2U.js";const U={class:"bg-[#323443]","text-gray-200":"","w-screen":"","h-screen":""},j={key:0},O={flex:"","flex-col":"","justify-center":"","items-center":"","w-screen":"","h-screen":"","text-xl":"",italic:""},b={key:0},F={key:1},L={flex:"","flex-col":"","items-center":"","justify-center":"","font-mono":""},P={key:0},V={key:1},$=S({__name:"Countdown",props:{dataSourceUrl:null},setup(_){const m=_,{t:f,locale:v}=k(),p=N(()=>v.value),g=w(u),s=E(),e=l({}),i=l(!1),{data:r,isError:x,error:C}=I(m.dataSourceUrl,s);return T(r,async()=>{r.value===null||r.value===void 0||(e.value=h(r.value?.contest),g.value=`${e.value.name.getOrDefault(p.value)} | ${u}`,i.value=!0)},{immediate:!0}),(q,z)=>(n(),o("div",U,[t(i)?(n(),o("div",F,[a("div",L,[a("div",{"mt-20":"","text-6xl":"",class:d([t(e).getContestState(t(s)).toString()])},c(t(e).getContestState(t(s))),3),a("div",{"mt-20":"",class:d(["text-[320px]",[t(e).getContestState(t(s)).toString()]])},[t(e).getContestState(t(s))===t(y).PENDING?(n(),o("div",P,c(t(e).getContestPendingTime(t(s))),1)):(n(),o("div",V,c(t(e).getContestElapsedTime(t(s))),1))],2)])])):(n(),o("div",j,[a("div",O,[a("div",null,c(t(f)("common.loading"))+"... ",1),t(x)?(n(),o("div",b,c(t(C)),1)):D("",!0)])]))]))}}),H=B($,[["__scopeId","data-v-22f76880"]]);export{H as _};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{_ as p}from"./TheInput.vue_vue_type_script_setup_true_lang-MKAklEWs.js";import{e as f,f as _,m as b,i as h,H as v,c as S,q as x,u as a,o as y,b as t,a as U,$ as V,z as g,t as l}from"./index-8PXU_sno.js";import{b as k}from"./use-vmodel-BLyWK6hZ.js";const w={key:0,class:"flex flex-col items-center"},D={"w-128":""},I=["disabled"],u="Data Source URL",K=f({__name:"DataSourceInput",setup(R){const{t:r}=_(),s=k(),e=b(s.value),c=h(),d=v();function n(){d.push(`${c.fullPath}/?data-source=${e.value.trim()}`)}return($,o)=>{const i=p;return a(s).length===0?(y(),S("div",w,[t("div",D,[U(i,{modelValue:a(e),"onUpdate:modelValue":o[0]||(o[0]=m=>g(e)?e.value=m:null),"w-full":"",placeholder:u,autocomplete:"false",onKeydown:V(n,["enter"])},null,8,["modelValue"]),t("label",{class:"hidden",for:"input"},l(u))]),o[1]||(o[1]=t("div",{"py-2":""},null,-1)),t("div",null,[t("button",{"m-3":"","text-sm":"",btn:"",disabled:a(e).length===0,onClick:n},l(a(r)("button.go")),9,I)])])):x("",!0)}}});export{K as _};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{_ as w}from"./Tooltip.vue_vue_type_script_setup_true_lang-BUnVSWCB.js";import{G as _,A as y,a as O,C as R,D as S,b as D,X as G}from"./constant-z3sbugPT.js";import{_ as g}from"./_plugin-vue_export-helper-DlAUqK2U.js";import{c as v,o as b,b as t,a,w as r,d,r as T,u as l,t as f,e as c,f as x,g as L,h as N,i as E,n as m,j as P,k as U,l as B}from"./index-8PXU_sno.js";const $={},j={"mt-8":"","py-4":"","md:py-8":"","lg:py-10":"","w-full":"",flex:"","justify-center":"","items-center":""},V={"text-center":"","w-full":""},X={"mb-6":"","w-full":"",flex:"","flex-wrap":"","items-center":"","justify-center":"","text-gray-900":"","dark:text-white":""},z={"mr-4":"","md:mr-6":""},M=["href"],W={flex:"","justify-center":"","items-start":"","flex-col":""},q={"mr-4":"","md:mr-6":""},F={flex:"","justify-center":"","items-start":"","flex-col":""},J={"text-sm":"","text-gray-500":"","sm:text-center":"","dark:text-gray-400":"","w-full":""};function K(n,o){const s=T("RouterLink"),u=w;return b(),v("footer",j,[t("div",V,[a(s,{flex:"","items-center":"","justify-center":"","text-2xl":"","font-semibold":"","text-gray-900":"","dark:text-white":"",to:"/"},{default:r(()=>[...o[0]||(o[0]=[t("div",{"i-ion-balloon-sharp":"","mr-4":"","h-8":""},null,-1),d(" Get more balloons ",-1)])]),_:1}),o[6]||(o[6]=t("p",{"my-6":"","text-gray-500":"","dark:text-gray-400":"","w-full":"",flex:"","justify-center":""}," The ICPC Series Competition Leaderboard Visualization Engine. ",-1)),t("ul",X,[t("li",null,[a(s,{to:"/","mr-4":"","md:mr-6":"","hover:underline":""},{default:r(()=>[...o[1]||(o[1]=[d(" Home ",-1)])]),_:1})]),t("li",null,[t("div",z,[a(u,null,{popper:r(()=>[t("div",W,[t("div",null,"Tag: "+f("APP_VERSION"in n?n.APP_VERSION:l(y)),1),t("div",null,"Sha: "+f("GITHUB_SHA"in n?n.GITHUB_SHA:l(O)),1)])]),default:r(()=>[t("a",{href:"GITHUB_URL"in n?n.GITHUB_URL:l(_),"hover:underline":"",rel:"noreferrer",target:"_blank",title:"GitHub"}," GitHub ",8,M)]),_:1})])]),t("li",null,[t("div",q,[a(u,null,{popper:r(()=>[t("div",F,[t("div",null,"CDN Host: "+f("CDN_HOST"in n?n.CDN_HOST:l(R)),1),t("div",null,"DATA Host: "+f("DATA_HOST"in n?n.DATA_HOST:l(S)),1),t("div",null,"Data Region: "+f("DATA_REGION"in n?n.DATA_REGION:l(D)),1)])]),default:r(()=>[o[2]||(o[2]=t("a",{href:"mailto:hi@dup4.com","hover:underline":""}," Contact ",-1))]),_:1})])])]),t("span",J,[o[4]||(o[4]=d("© 2020-PRESENT ",-1)),a(s,{to:"/","hover:underline":""},{default:r(()=>[...o[3]||(o[3]=[d("XCPCIO™",-1)])]),_:1}),o[5]||(o[5]=d(". All Rights Reserved.",-1))])])])}const st=g($,[["render",K]]),Q={class:"right","print:op0":""},Y=["title"],Z=["title"],tt=["href"],et=["href"],ot=c({__name:"NavBar",props:{width:null},setup(n){const o=n,{t:s,locale:u}=x(),{y:H}=L(),h=E();function C(){window.scrollTo({top:0,behavior:"smooth"})}async function k(){const i=U,e=i[(i.indexOf(u.value)+1)%i.length];await B(e),u.value=e}const A=N(()=>h.fullPath.startsWith("/rating")?"/rating":"/");return(i,e)=>{const I=T("RouterLink");return b(),v("header",{class:m(["header z-40",[o?.width??""]])},[t("button",{title:"Scroll to top",fixed:"","bottom-6":"","right-6":"","z-100":"","h-10":"","w-10":"","rounded-full":"",transition:"","duration-300":"","print:hidden":"","hover-bg-hex-8883":"","hover:op100":"",class:m(l(H)>300?"op30":"op0! pointer-events-none"),onClick:e[0]||(e[0]=p=>C())},[...e[3]||(e[3]=[t("div",{"i-ri-arrow-up-line":""},null,-1)])],2),t("nav",{class:m(["nav",[o?.width?"":"fixed"]]),"text-xl":""},[e[9]||(e[9]=t("div",{class:"spacer"},null,-1)),t("div",Q,[a(I,{"icon-btn":"",title:l(s)("button.home"),to:l(A),focusable:"false"},{default:r(()=>[...e[4]||(e[4]=[t("div",{"i-ion-balloon-sharp":""},null,-1)])]),_:1},8,["title","to"]),t("a",{"icon-btn":"",title:l(s)("button.toggle_langs"),onClick:e[1]||(e[1]=p=>k())},[...e[5]||(e[5]=[t("div",{"i-carbon-language":""},null,-1)])],8,Y),t("a",{"icon-btn":"",title:l(s)("button.toggle_dark"),onClick:e[2]||(e[2]=p=>("toggleDark"in i?i.toggleDark:l(P))())},[...e[6]||(e[6]=[t("div",{i:"carbon-sun dark:carbon-moon"},null,-1)])],8,Z),t("a",{"icon-btn":"",rel:"noreferrer",href:"GITHUB_URL"in i?i.GITHUB_URL:l(_),target:"_blank",title:"GitHub"},[...e[7]||(e[7]=[t("div",{"i-carbon-logo-github":""},null,-1)])],8,tt),t("a",{"icon-btn":"",rel:"noreferrer",href:"XCPCIO_HOME"in i?i.XCPCIO_HOME:l(G),target:"_blank",title:"GitHub"},[...e[8]||(e[8]=[t("div",{"i-simple-icons-githubsponsors":""},null,-1)])],8,et)])],2)],2)}}}),at=g(ot,[["__scopeId","data-v-f4512469"]]);export{at as _,st as a};
|
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{e as _r,h as pe,m as mt,f as cr,c as Q,o as Z,n as oi,u as I,b as nt,t as gt,F as Qt,E as dr,q as me,d as Ie,A as bn,C as Qe,X as wn,a1 as Ee,U as kn,a as Yi,w as Sn,T as Pn,s as On}from"./index-8PXU_sno.js";import{_ as pr}from"./_plugin-vue_export-helper-DlAUqK2U.js";import{T as Xi,d as $i,c as Cn}from"./use-vmodel-BLyWK6hZ.js";import{T as Zt,R as Gi,f as Rn,c as Mn,a as Dn}from"./rank-DYdp7LSn.js";import{e as Wi}from"./constant-z3sbugPT.js";import{u as An}from"./TheInput.vue_vue_type_script_setup_true_lang-MKAklEWs.js";class In{constructor(){this.id=0,this.team=new Zt,this.problemIx=0,this.beforeTeamProblemStatistics=new Xi,this.afterTeamProblemStatistics=new Xi}}class En extends Gi{constructor(t,e,i){i.sort(Rn.compare);let r=i,n=i;{let s=t.unFreezeDurationTimestamp;t.options.submissionTimestampUnit==="millisecond"&&(s*=1e3),t.options.submissionTimestampUnit==="microsecond"&&(s*=1e6),t.options.submissionTimestampUnit==="nanosecond"&&(s*=1e9);const o=$i.sortedIndex(i.map(u=>u.timestamp),s);r=i.slice(0,o+1),n=i.slice(o,-1)}super(t,e,r),this.finalRank=new Gi(t,e,i),this.operations=[],this.beforeFreezeSubmissions=r,this.afterFreezeSubmissions=n}buildResolver(){this.buildRank(),this.finalRank.buildRank(),this.teams.forEach(t=>t.rank=t.originalRank),this.finalRank.teams.forEach(t=>t.rank=t.originalRank);for(const t of this.afterFreezeSubmissions){const e=t.teamId,i=t.problemId,r=this.teamsMap.get(e),n=this.contest.problemsMap.get(i);if(r===void 0||n===void 0)continue;const s=r.problemStatisticsMap.get(i);s.pendingCount++,s.totalCount++,s.isAccepted||(s.lastSubmitTimestamp=t.timestamp)}{const t=$i.cloneDeep(this.teams);for(let e=this.teams.length-1;e>=0;){const i=t[e],r=i.id;let n=0,s=-1;for(const o of i.problemStatistics){if(s++,!o.isPending)continue;n++;const u=this.teamsMap.get(r)?.problemStatistics[s],l=this.finalRank.teamsMap.get(r)?.problemStatistics[s],f=new In;f.id=this.operations.length,f.team=this.teamsMap.get(r),f.problemIx=s,f.beforeTeamProblemStatistics=u,f.afterTeamProblemStatistics=l,this.operations.push(f),i.problemStatistics[s]=l,i.calcSolvedData(this.contest.options);break}{let o=e;for(;o>0&&Zt.compare(t[o],t[o-1])<0;)[t[o],t[o-1]]=[t[o-1],t[o]],o--}n===0&&e--}}}}class Fn extends En{constructor(t,e,i){super(t,e,i),this.FLASHING_TIME_MS=100,this.ROLLING_TIME_MS=600,this.maxIndex=0,this.currentIndex=0,this.maxOpIndex=0,this.currentOpIndex=0,this.oldRank=-1,this.newRank=-1,this.currentTeamId="",this.currentProblemIndex=-1,this.problemFlashingEnded=!0,this.duringAnimation=!1,this.startScrollUp=!1,this.startScrollDown=!1}buildResolver(){super.buildResolver(),this.maxIndex=this.teams.length-1,this.currentIndex=this.maxIndex,this.maxOpIndex=this.operations.length-1,this.currentOpIndex=0,this.oldRank=-1,this.newRank=-1,this.currentTeamId="",this.currentProblemIndex=-1,this.problemFlashingEnded=!0,this.duringAnimation=!1,this.startScrollUp=!1,this.startScrollDown=!1}next(){if(this.duringAnimation)return;if(this.currentOpIndex>this.maxOpIndex){this.currentIndex>0&&this.currentIndex--;return}const t=this.operations[this.currentOpIndex],e=t.problemIx,i=t.team.id,r=this.teamsMap.get(i),n=r.rank;if(this.currentIndex+1>n){this.currentIndex--;return}if(this.currentIndex+1===n){r.problemStatistics[e]=t.afterTeamProblemStatistics,r.calcSolvedData(this.contest.options),this.currentProblemIndex=e,this.currentTeamId=i;{this.oldRank=r.rank,this.newRank=this.oldRank;for(let s=this.currentIndex-1;s>=0&&Zt.compare(r,this.teams[s])<0;s--)this.newRank=this.teams[s].rank}this.currentOpIndex++;{let s=this.oldRank-1;for(;s>=0&&Zt.compare(this.teams[s],this.teams[s-1])<0;)[this.teams[s],this.teams[s-1]]=[this.teams[s-1],this.teams[s]],this.teams[s].rank=s+1,this.teams[s-1].rank=s,s--}}}rewind(){if(this.duringAnimation||this.currentOpIndex<1)return;this.currentOpIndex--;const t=this.operations[this.currentOpIndex],e=t.problemIx,i=t.team.id,r=this.teamsMap.get(i);r.problemStatistics[e]=t.beforeTeamProblemStatistics,r.calcSolvedData(this.contest.options),this.currentProblemIndex=e,this.currentTeamId=i;{this.oldRank=r.rank,this.newRank=this.oldRank;for(let n=this.currentIndex+1;n<=this.maxIndex&&Zt.compare(r,this.teams[n])>0;n++)this.newRank=this.teams[n].rank}{let n=this.oldRank-1,s=n;for(;n<this.maxIndex&&Zt.compare(this.teams[n],this.teams[n+1])>0;)[this.teams[n],this.teams[n+1]]=[this.teams[n+1],this.teams[n]],this.teams[n].rank=n+1,this.teams[n+1].rank=n+2,s=n+1,n++;this.currentIndex=s}}}const zn={"w-20":"",flex:"","flex-shrink-0":"","justify-center":"","items-center":""},Ln={flex:"","flex-1":"","flex-col":"","justify-center":"","items-start":"","gap-y-3":""},Nn={class:"resolver-team-name",truncate:"","overflow-hidden":""},Bn={flex:"","flex-row":"","text-sm":"","items-start":"","gap-x-2":""},Un={"w-48":"",flex:"","flex-shrink-0":"","flex-row":"","justify-start":"","items-center":""},Vn={class:"w-1/3"},Yn={class:"w-2/3"},Xn=_r({__name:"ResolverTeamRow",props:{index:null,team:null,resolver:null},setup(a){const t=a,e=pe(()=>t.index),i=pe(()=>t.team),r=pe(()=>t.resolver),n=mt(null),{locale:s}=cr(),o=pe(()=>s.value);function u(l){return[l.organization?.name.getOrDefault(o.value),l.name.getOrDefault(o.value)].filter(_=>_).join(" - ")}return(l,f)=>(Z(),Q("div",{ref_key:"el",ref:n,"h-24":""},[(Z(),Q("div",{key:0,"h-24":"",flex:"","flex-row":"","gap-x-4":"","font-mono":"","text-4xl":"",class:oi([I(e)%2===0?"bg-resolver-bg-zero":"bg-resolver-bg-one",I(r).duringAnimation&&I(r).currentTeamId===I(i).id?"bg-resolver-selected":"",!I(r).duringAnimation&&I(e)===I(r).currentIndex?"bg-resolver-selected":""])},[nt("div",zn,[nt("div",null,gt(I(i).rank),1)]),nt("div",Ln,[nt("div",Nn,gt(u(I(i))),1),nt("div",Bn,[(Z(!0),Q(Qt,null,dr(I(i).problemStatistics,(_,c)=>(Z(),Q("div",{key:_.problem.id,class:oi(["rounded w-22 h-7 flex justify-center items-center",[_.isAccepted?"bg-resolver-ac":"",_.isWrongAnswer?"bg-resolver-wa":"",_.isPending?"bg-resolver-pending":"",_.isUnSubmitted?"bg-resolver-untouched":"",I(r).problemFlashingEnded===!1&&I(e)===I(r).currentIndex&&I(r).currentProblemIndex===c?"resolver-uncover":""]])},[_.isAccepted?(Z(),Q(Qt,{key:0},[Ie(gt(`${_.failedCount+Number(_.isAccepted)}/${Math.floor(_.lastSubmitTimestamp/60)}`),1)],64)):me("",!0),_.isWrongAnswer?(Z(),Q(Qt,{key:1},[Ie(gt(`${_.failedCount}/${Math.floor(_.lastSubmitTimestamp/60)}`),1)],64)):me("",!0),_.isPending?(Z(),Q(Qt,{key:2},[Ie(gt(`${_.failedCount} + ${_.pendingCount}`),1)],64)):me("",!0),_.isUnSubmitted?(Z(),Q(Qt,{key:3},[Ie(gt(_.problem.label),1)],64)):me("",!0)],2))),128))])]),nt("div",Un,[nt("div",Vn,gt(I(i).solvedProblemNum),1),nt("div",Yn,gt(I(i).penaltyToMinute),1)])],2))],512))}}),$n=pr(Xn,[["__scopeId","data-v-672c0a86"]]);function kt(a){if(a===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return a}function mr(a,t){a.prototype=Object.create(t.prototype),a.prototype.constructor=a,a.__proto__=t}/*!
|
|
2
2
|
* GSAP 3.13.0
|
|
3
3
|
* https://gsap.com
|
|
4
4
|
*
|
|
5
5
|
* @license Copyright 2008-2025, GreenSock. All rights reserved.
|
|
6
6
|
* Subject to the terms at https://gsap.com/standard-license
|
|
7
7
|
* @author: Jack Doyle, jack@greensock.com
|
|
8
|
-
*/var ut={autoSleep:120,force3D:"auto",nullTargetWarn:1,units:{lineHeight:""}},se={duration:.5,overwrite:!1,delay:0},wi,W,E,_t=1e8,R=1/_t,ai=Math.PI*2,Gn=ai/4,Wn=0,gr=Math.sqrt,qn=Math.cos,jn=Math.sin,$=function(t){return typeof t=="string"},L=function(t){return typeof t=="function"},Ot=function(t){return typeof t=="number"},ki=function(t){return typeof t>"u"},bt=function(t){return typeof t=="object"},J=function(t){return t!==!1},Si=function(){return typeof window<"u"},Fe=function(t){return L(t)||$(t)},yr=typeof ArrayBuffer=="function"&&ArrayBuffer.isView||function(){},K=Array.isArray,ui=/(?:-?\.?\d|\.)+/gi,xr=/[-+=.]*\d+[.e\-+]*\d*[e\-+]*\d*/g,Jt=/[-+=.]*\d+[.e-]*\d*[a-z%]*/g,Ze=/[-+=.]*\d+\.?\d*(?:e-|e\+)?\d*/gi,vr=/[+-]=-?[.\d]+/,Tr=/[^,'"\[\]\s]+/gi,Kn=/^[+\-=e\s\d]*\d+[.\d]*([a-z]*|%)\s*$/i,F,yt,li,Pi,lt={},Ue={},br,wr=function(t){return(Ue=oe(t,lt))&&rt},Oi=function(t,e){return console.warn("Invalid property",t,"set to",e,"Missing plugin? gsap.registerPlugin()")},be=function(t,e){return!e&&console.warn(t)},kr=function(t,e){return t&&(lt[t]=e)&&Ue&&(Ue[t]=e)||lt},we=function(){return 0},Hn={suppressEvents:!0,isStart:!0,kill:!1},Le={suppressEvents:!0,kill:!1},Qn={suppressEvents:!0},Ci={},At=[],fi={},Sr,st={},Je={},qi=30,Ne=[],Ri="",Mi=function(t){var e=t[0],i,r;if(bt(e)||L(e)||(t=[t]),!(i=(e._gsap||{}).harness)){for(r=Ne.length;r--&&!Ne[r].targetTest(e););i=Ne[r]}for(r=t.length;r--;)t[r]&&(t[r]._gsap||(t[r]._gsap=new Kr(t[r],i)))||t.splice(r,1);return t},$t=function(t){return t._gsap||Mi(ct(t))[0]._gsap},Pr=function(t,e,i){return(i=t[e])&&L(i)?t[e]():ki(i)&&t.getAttribute&&t.getAttribute(e)||i},tt=function(t,e){return(t=t.split(",")).forEach(e)||t},N=function(t){return Math.round(t*1e5)/1e5||0},U=function(t){return Math.round(t*1e7)/1e7||0},ee=function(t,e){var i=e.charAt(0),r=parseFloat(e.substr(2));return t=parseFloat(t),i==="+"?t+r:i==="-"?t-r:i==="*"?t*r:t/r},Zn=function(t,e){for(var i=e.length,r=0;t.indexOf(e[r])<0&&++r<i;);return r<i},Ye=function(){var t=At.length,e=At.slice(0),i,r;for(fi={},At.length=0,i=0;i<t;i++)r=e[i],r&&r._lazy&&(r.render(r._lazy[0],r._lazy[1],!0)._lazy=0)},Di=function(t){return!!(t._initted||t._startAt||t.add)},Or=function(t,e,i,r){At.length&&!W&&Ye(),t.render(e,i,!!(W&&e<0&&Di(t))),At.length&&!W&&Ye()},Cr=function(t){var e=parseFloat(t);return(e||e===0)&&(t+"").match(Tr).length<2?e:$(t)?t.trim():t},Rr=function(t){return t},ft=function(t,e){for(var i in e)i in t||(t[i]=e[i]);return t},Jn=function(t){return function(e,i){for(var r in i)r in e||r==="duration"&&t||r==="ease"||(e[r]=i[r])}},oe=function(t,e){for(var i in e)t[i]=e[i];return t},ji=function a(t,e){for(var i in e)i!=="__proto__"&&i!=="constructor"&&i!=="prototype"&&(t[i]=bt(e[i])?a(t[i]||(t[i]={}),e[i]):e[i]);return t},Xe=function(t,e){var i={},r;for(r in t)r in e||(i[r]=t[r]);return i},xe=function(t){var e=t.parent||F,i=t.keyframes?Jn(K(t.keyframes)):ft;if(J(t.inherit))for(;e;)i(t,e.vars.defaults),e=e.parent||e._dp;return t},ts=function(t,e){for(var i=t.length,r=i===e.length;r&&i--&&t[i]===e[i];);return i<0},Mr=function(t,e,i,r,n){var s=t[r],o;if(n)for(o=e[n];s&&s[n]>o;)s=s._prev;return s?(e._next=s._next,s._next=e):(e._next=t[i],t[i]=e),e._next?e._next._prev=e:t[r]=e,e._prev=s,e.parent=e._dp=t,e},je=function(t,e,i,r){i===void 0&&(i="_first"),r===void 0&&(r="_last");var n=e._prev,s=e._next;n?n._next=s:t[i]===e&&(t[i]=s),s?s._prev=n:t[r]===e&&(t[r]=n),e._next=e._prev=e.parent=null},Ft=function(t,e){t.parent&&(!e||t.parent.autoRemoveChildren)&&t.parent.remove&&t.parent.remove(t),t._act=0},Gt=function(t,e){if(t&&(!e||e._end>t._dur||e._start<0))for(var i=t;i;)i._dirty=1,i=i.parent;return t},es=function(t){for(var e=t.parent;e&&e.parent;)e._dirty=1,e.totalDuration(),e=e.parent;return t},hi=function(t,e,i,r){return t._startAt&&(W?t._startAt.revert(Le):t.vars.immediateRender&&!t.vars.autoRevert||t._startAt.render(e,!0,r))},is=function a(t){return!t||t._ts&&a(t.parent)},Ki=function(t){return t._repeat?ae(t._tTime,t=t.duration()+t._rDelay)*t:0},ae=function(t,e){var i=Math.floor(t=U(t/e));return t&&i===t?i-1:i},$e=function(t,e){return(t-e._start)*e._ts+(e._ts>=0?0:e._dirty?e.totalDuration():e._tDur)},Ke=function(t){return t._end=U(t._start+(t._tDur/Math.abs(t._ts||t._rts||R)||0))},He=function(t,e){var i=t._dp;return i&&i.smoothChildTiming&&t._ts&&(t._start=U(i._time-(t._ts>0?e/t._ts:((t._dirty?t.totalDuration():t._tDur)-e)/-t._ts)),Ke(t),i._dirty||Gt(i,t)),t},Dr=function(t,e){var i;if((e._time||!e._dur&&e._initted||e._start<t._time&&(e._dur||!e.add))&&(i=$e(t.rawTime(),e),(!e._dur||De(0,e.totalDuration(),i)-e._tTime>R)&&e.render(i,!0)),Gt(t,e)._dp&&t._initted&&t._time>=t._dur&&t._ts){if(t._dur<t.duration())for(i=t;i._dp;)i.rawTime()>=0&&i.totalTime(i._tTime),i=i._dp;t._zTime=-R}},xt=function(t,e,i,r){return e.parent&&Ft(e),e._start=U((Ot(i)?i:i||t!==F?ht(t,i,e):t._time)+e._delay),e._end=U(e._start+(e.totalDuration()/Math.abs(e.timeScale())||0)),Mr(t,e,"_first","_last",t._sort?"_start":0),_i(e)||(t._recent=e),r||Dr(t,e),t._ts<0&&He(t,t._tTime),t},Ar=function(t,e){return(lt.ScrollTrigger||Oi("scrollTrigger",e))&<.ScrollTrigger.create(e,t)},Ir=function(t,e,i,r,n){if(Ii(t,e,n),!t._initted)return 1;if(!i&&t._pt&&!W&&(t._dur&&t.vars.lazy!==!1||!t._dur&&t.vars.lazy)&&Sr!==ot.frame)return At.push(t),t._lazy=[n,r],1},rs=function a(t){var e=t.parent;return e&&e._ts&&e._initted&&!e._lock&&(e.rawTime()<0||a(e))},_i=function(t){var e=t.data;return e==="isFromStart"||e==="isStart"},ns=function(t,e,i,r){var n=t.ratio,s=e<0||!e&&(!t._start&&rs(t)&&!(!t._initted&&_i(t))||(t._ts<0||t._dp._ts<0)&&!_i(t))?0:1,o=t._rDelay,u=0,l,f,_;if(o&&t._repeat&&(u=De(0,t._tDur,e),f=ae(u,o),t._yoyo&&f&1&&(s=1-s),f!==ae(t._tTime,o)&&(n=1-s,t.vars.repeatRefresh&&t._initted&&t.invalidate())),s!==n||W||r||t._zTime===R||!e&&t._zTime){if(!t._initted&&Ir(t,e,r,i,u))return;for(_=t._zTime,t._zTime=e||(i?R:0),i||(i=e&&!_),t.ratio=s,t._from&&(s=1-s),t._time=0,t._tTime=u,l=t._pt;l;)l.r(s,l.d),l=l._next;e<0&&hi(t,e,i,!0),t._onUpdate&&!i&&at(t,"onUpdate"),u&&t._repeat&&!i&&t.parent&&at(t,"onRepeat"),(e>=t._tDur||e<0)&&t.ratio===s&&(s&&Ft(t,1),!i&&!W&&(at(t,s?"onComplete":"onReverseComplete",!0),t._prom&&t._prom()))}else t._zTime||(t._zTime=e)},ss=function(t,e,i){var r;if(i>e)for(r=t._first;r&&r._start<=i;){if(r.data==="isPause"&&r._start>e)return r;r=r._next}else for(r=t._last;r&&r._start>=i;){if(r.data==="isPause"&&r._start<e)return r;r=r._prev}},ue=function(t,e,i,r){var n=t._repeat,s=U(e)||0,o=t._tTime/t._tDur;return o&&!r&&(t._time*=s/t._dur),t._dur=s,t._tDur=n?n<0?1e10:U(s*(n+1)+t._rDelay*n):s,o>0&&!r&&He(t,t._tTime=t._tDur*o),t.parent&&Ke(t),i||Gt(t.parent,t),t},Hi=function(t){return t instanceof H?Gt(t):ue(t,t._dur)},os={_start:0,endTime:we,totalDuration:we},ht=function a(t,e,i){var r=t.labels,n=t._recent||os,s=t.duration()>=_t?n.endTime(!1):t._dur,o,u,l;return $(e)&&(isNaN(e)||e in r)?(u=e.charAt(0),l=e.substr(-1)==="%",o=e.indexOf("="),u==="<"||u===">"?(o>=0&&(e=e.replace(/=/,"")),(u==="<"?n._start:n.endTime(n._repeat>=0))+(parseFloat(e.substr(1))||0)*(l?(o<0?n:i).totalDuration()/100:1)):o<0?(e in r||(r[e]=s),r[e]):(u=parseFloat(e.charAt(o-1)+e.substr(o+1)),l&&i&&(u=u/100*(K(i)?i[0]:i).totalDuration()),o>1?a(t,e.substr(0,o-1),i)+u:s+u)):e==null?s:+e},ve=function(t,e,i){var r=Ot(e[1]),n=(r?2:1)+(t<2?0:1),s=e[n],o,u;if(r&&(s.duration=e[1]),s.parent=i,t){for(o=s,u=i;u&&!("immediateRender"in o);)o=u.vars.defaults||{},u=J(u.vars.inherit)&&u.parent;s.immediateRender=J(o.immediateRender),t<2?s.runBackwards=1:s.startAt=e[n-1]}return new V(e[0],s,e[n+1])},Lt=function(t,e){return t||t===0?e(t):e},De=function(t,e,i){return i<t?t:i>e?e:i},q=function(t,e){return!$(t)||!(e=Kn.exec(t))?"":e[1]},as=function(t,e,i){return Lt(i,function(r){return De(t,e,r)})},ci=[].slice,Er=function(t,e){return t&&bt(t)&&"length"in t&&(!e&&!t.length||t.length-1 in t&&bt(t[0]))&&!t.nodeType&&t!==yt},us=function(t,e,i){return i===void 0&&(i=[]),t.forEach(function(r){var n;return $(r)&&!e||Er(r,1)?(n=i).push.apply(n,ct(r)):i.push(r)})||i},ct=function(t,e,i){return E&&!e&&E.selector?E.selector(t):$(t)&&!i&&(li||!le())?ci.call((e||Pi).querySelectorAll(t),0):K(t)?us(t,i):Er(t)?ci.call(t,0):t?[t]:[]},di=function(t){return t=ct(t)[0]||be("Invalid scope")||{},function(e){var i=t.current||t.nativeElement||t;return ct(e,i.querySelectorAll?i:i===t?be("Invalid scope")||Pi.createElement("div"):t)}},Fr=function(t){return t.sort(function(){return .5-Math.random()})},zr=function(t){if(L(t))return t;var e=bt(t)?t:{each:t},i=Wt(e.ease),r=e.from||0,n=parseFloat(e.base)||0,s={},o=r>0&&r<1,u=isNaN(r)||o,l=e.axis,f=r,_=r;return $(r)?f=_={center:.5,edges:.5,end:1}[r]||0:!o&&u&&(f=r[0],_=r[1]),function(c,d,m){var h=(m||e).length,p=s[h],x,y,T,v,g,k,w,S,b;if(!p){if(b=e.grid==="auto"?0:(e.grid||[1,_t])[1],!b){for(w=-_t;w<(w=m[b++].getBoundingClientRect().left)&&b<h;);b<h&&b--}for(p=s[h]=[],x=u?Math.min(b,h)*f-.5:r%b,y=b===_t?0:u?h*_/b-.5:r/b|0,w=0,S=_t,k=0;k<h;k++)T=k%b-x,v=y-(k/b|0),p[k]=g=l?Math.abs(l==="y"?v:T):gr(T*T+v*v),g>w&&(w=g),g<S&&(S=g);r==="random"&&Fr(p),p.max=w-S,p.min=S,p.v=h=(parseFloat(e.amount)||parseFloat(e.each)*(b>h?h-1:l?l==="y"?h/b:b:Math.max(b,h/b))||0)*(r==="edges"?-1:1),p.b=h<0?n-h:n,p.u=q(e.amount||e.each)||0,i=i&&h<0?Wr(i):i}return h=(p[c]-p.min)/p.max||0,U(p.b+(i?i(h):h)*p.v)+p.u}},pi=function(t){var e=Math.pow(10,((t+"").split(".")[1]||"").length);return function(i){var r=U(Math.round(parseFloat(i)/t)*t*e);return(r-r%1)/e+(Ot(i)?0:q(i))}},Lr=function(t,e){var i=K(t),r,n;return!i&&bt(t)&&(r=i=t.radius||_t,t.values?(t=ct(t.values),(n=!Ot(t[0]))&&(r*=r)):t=pi(t.increment)),Lt(e,i?L(t)?function(s){return n=t(s),Math.abs(n-s)<=r?n:s}:function(s){for(var o=parseFloat(n?s.x:s),u=parseFloat(n?s.y:0),l=_t,f=0,_=t.length,c,d;_--;)n?(c=t[_].x-o,d=t[_].y-u,c=c*c+d*d):c=Math.abs(t[_]-o),c<l&&(l=c,f=_);return f=!r||l<=r?t[f]:s,n||f===s||Ot(s)?f:f+q(s)}:pi(t))},Nr=function(t,e,i,r){return Lt(K(t)?!e:i===!0?!!(i=0):!r,function(){return K(t)?t[~~(Math.random()*t.length)]:(i=i||1e-5)&&(r=i<1?Math.pow(10,(i+"").length-2):1)&&Math.floor(Math.round((t-i/2+Math.random()*(e-t+i*.99))/i)*i*r)/r})},ls=function(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];return function(r){return e.reduce(function(n,s){return s(n)},r)}},fs=function(t,e){return function(i){return t(parseFloat(i))+(e||q(i))}},hs=function(t,e,i){return Vr(t,e,0,1,i)},Br=function(t,e,i){return Lt(i,function(r){return t[~~e(r)]})},_s=function a(t,e,i){var r=e-t;return K(t)?Br(t,a(0,t.length),e):Lt(i,function(n){return(r+(n-t)%r)%r+t})},cs=function a(t,e,i){var r=e-t,n=r*2;return K(t)?Br(t,a(0,t.length-1),e):Lt(i,function(s){return s=(n+(s-t)%n)%n||0,t+(s>r?n-s:s)})},ke=function(t){for(var e=0,i="",r,n,s,o;~(r=t.indexOf("random(",e));)s=t.indexOf(")",r),o=t.charAt(r+7)==="[",n=t.substr(r+7,s-r-7).match(o?Tr:ui),i+=t.substr(e,r-e)+Nr(o?n:+n[0],o?0:+n[1],+n[2]||1e-5),e=s+1;return i+t.substr(e,t.length-e)},Vr=function(t,e,i,r,n){var s=e-t,o=r-i;return Lt(n,function(u){return i+((u-t)/s*o||0)})},ds=function a(t,e,i,r){var n=isNaN(t+e)?0:function(d){return(1-d)*t+d*e};if(!n){var s=$(t),o={},u,l,f,_,c;if(i===!0&&(r=1)&&(i=null),s)t={p:t},e={p:e};else if(K(t)&&!K(e)){for(f=[],_=t.length,c=_-2,l=1;l<_;l++)f.push(a(t[l-1],t[l]));_--,n=function(m){m*=_;var h=Math.min(c,~~m);return f[h](m-h)},i=e}else r||(t=oe(K(t)?[]:{},t));if(!f){for(u in e)Ai.call(o,t,u,"get",e[u]);n=function(m){return zi(m,o)||(s?t.p:t)}}}return Lt(i,n)},Qi=function(t,e,i){var r=t.labels,n=_t,s,o,u;for(s in r)o=r[s]-e,o<0==!!i&&o&&n>(o=Math.abs(o))&&(u=s,n=o);return u},at=function(t,e,i){var r=t.vars,n=r[e],s=E,o=t._ctx,u,l,f;if(n)return u=r[e+"Params"],l=r.callbackScope||t,i&&At.length&&Ye(),o&&(E=o),f=u?n.apply(l,u):n.call(l),E=s,f},ge=function(t){return Ft(t),t.scrollTrigger&&t.scrollTrigger.kill(!!W),t.progress()<1&&at(t,"onInterrupt"),t},te,Ur=[],Yr=function(t){if(t)if(t=!t.name&&t.default||t,Si()||t.headless){var e=t.name,i=L(t),r=e&&!i&&t.init?function(){this._props=[]}:t,n={init:we,render:zi,add:Ai,kill:Ms,modifier:Rs,rawVars:0},s={targetTest:0,get:0,getSetter:Fi,aliases:{},register:0};if(le(),t!==r){if(st[e])return;ft(r,ft(Xe(t,n),s)),oe(r.prototype,oe(n,Xe(t,s))),st[r.prop=e]=r,t.targetTest&&(Ne.push(r),Ci[e]=1),e=(e==="css"?"CSS":e.charAt(0).toUpperCase()+e.substr(1))+"Plugin"}kr(e,r),t.register&&t.register(rt,r,et)}else Ur.push(t)},C=255,ye={aqua:[0,C,C],lime:[0,C,0],silver:[192,192,192],black:[0,0,0],maroon:[128,0,0],teal:[0,128,128],blue:[0,0,C],navy:[0,0,128],white:[C,C,C],olive:[128,128,0],yellow:[C,C,0],orange:[C,165,0],gray:[128,128,128],purple:[128,0,128],green:[0,128,0],red:[C,0,0],pink:[C,192,203],cyan:[0,C,C],transparent:[C,C,C,0]},ti=function(t,e,i){return t+=t<0?1:t>1?-1:0,(t*6<1?e+(i-e)*t*6:t<.5?i:t*3<2?e+(i-e)*(2/3-t)*6:e)*C+.5|0},Xr=function(t,e,i){var r=t?Ot(t)?[t>>16,t>>8&C,t&C]:0:ye.black,n,s,o,u,l,f,_,c,d,m;if(!r){if(t.substr(-1)===","&&(t=t.substr(0,t.length-1)),ye[t])r=ye[t];else if(t.charAt(0)==="#"){if(t.length<6&&(n=t.charAt(1),s=t.charAt(2),o=t.charAt(3),t="#"+n+n+s+s+o+o+(t.length===5?t.charAt(4)+t.charAt(4):"")),t.length===9)return r=parseInt(t.substr(1,6),16),[r>>16,r>>8&C,r&C,parseInt(t.substr(7),16)/255];t=parseInt(t.substr(1),16),r=[t>>16,t>>8&C,t&C]}else if(t.substr(0,3)==="hsl"){if(r=m=t.match(ui),!e)u=+r[0]%360/360,l=+r[1]/100,f=+r[2]/100,s=f<=.5?f*(l+1):f+l-f*l,n=f*2-s,r.length>3&&(r[3]*=1),r[0]=ti(u+1/3,n,s),r[1]=ti(u,n,s),r[2]=ti(u-1/3,n,s);else if(~t.indexOf("="))return r=t.match(xr),i&&r.length<4&&(r[3]=1),r}else r=t.match(ui)||ye.transparent;r=r.map(Number)}return e&&!m&&(n=r[0]/C,s=r[1]/C,o=r[2]/C,_=Math.max(n,s,o),c=Math.min(n,s,o),f=(_+c)/2,_===c?u=l=0:(d=_-c,l=f>.5?d/(2-_-c):d/(_+c),u=_===n?(s-o)/d+(s<o?6:0):_===s?(o-n)/d+2:(n-s)/d+4,u*=60),r[0]=~~(u+.5),r[1]=~~(l*100+.5),r[2]=~~(f*100+.5)),i&&r.length<4&&(r[3]=1),r},$r=function(t){var e=[],i=[],r=-1;return t.split(It).forEach(function(n){var s=n.match(Jt)||[];e.push.apply(e,s),i.push(r+=s.length+1)}),e.c=i,e},Zi=function(t,e,i){var r="",n=(t+r).match(It),s=e?"hsla(":"rgba(",o=0,u,l,f,_;if(!n)return t;if(n=n.map(function(c){return(c=Xr(c,e,1))&&s+(e?c[0]+","+c[1]+"%,"+c[2]+"%,"+c[3]:c.join(","))+")"}),i&&(f=$r(t),u=i.c,u.join(r)!==f.c.join(r)))for(l=t.replace(It,"1").split(Jt),_=l.length-1;o<_;o++)r+=l[o]+(~u.indexOf(o)?n.shift()||s+"0,0,0,0)":(f.length?f:n.length?n:i).shift());if(!l)for(l=t.split(It),_=l.length-1;o<_;o++)r+=l[o]+n[o];return r+l[_]},It=(function(){var a="(?:\\b(?:(?:rgb|rgba|hsl|hsla)\\(.+?\\))|\\B#(?:[0-9a-f]{3,4}){1,2}\\b",t;for(t in ye)a+="|"+t+"\\b";return new RegExp(a+")","gi")})(),ps=/hsl[a]?\(/,Gr=function(t){var e=t.join(" "),i;if(It.lastIndex=0,It.test(e))return i=ps.test(e),t[1]=Zi(t[1],i),t[0]=Zi(t[0],i,$r(t[1])),!0},Se,ot=(function(){var a=Date.now,t=500,e=33,i=a(),r=i,n=1e3/240,s=n,o=[],u,l,f,_,c,d,m=function h(p){var x=a()-r,y=p===!0,T,v,g,k;if((x>t||x<0)&&(i+=x-e),r+=x,g=r-i,T=g-s,(T>0||y)&&(k=++_.frame,c=g-_.time*1e3,_.time=g=g/1e3,s+=T+(T>=n?4:n-T),v=1),y||(u=l(h)),v)for(d=0;d<o.length;d++)o[d](g,c,k,p)};return _={time:0,frame:0,tick:function(){m(!0)},deltaRatio:function(p){return c/(1e3/(p||60))},wake:function(){br&&(!li&&Si()&&(yt=li=window,Pi=yt.document||{},lt.gsap=rt,(yt.gsapVersions||(yt.gsapVersions=[])).push(rt.version),wr(Ue||yt.GreenSockGlobals||!yt.gsap&&yt||{}),Ur.forEach(Yr)),f=typeof requestAnimationFrame<"u"&&requestAnimationFrame,u&&_.sleep(),l=f||function(p){return setTimeout(p,s-_.time*1e3+1|0)},Se=1,m(2))},sleep:function(){(f?cancelAnimationFrame:clearTimeout)(u),Se=0,l=we},lagSmoothing:function(p,x){t=p||1/0,e=Math.min(x||33,t)},fps:function(p){n=1e3/(p||240),s=_.time*1e3+n},add:function(p,x,y){var T=x?function(v,g,k,w){p(v,g,k,w),_.remove(T)}:p;return _.remove(p),o[y?"unshift":"push"](T),le(),T},remove:function(p,x){~(x=o.indexOf(p))&&o.splice(x,1)&&d>=x&&d--},_listeners:o},_})(),le=function(){return!Se&&ot.wake()},P={},ms=/^[\d.\-M][\d.\-,\s]/,gs=/["']/g,ys=function(t){for(var e={},i=t.substr(1,t.length-3).split(":"),r=i[0],n=1,s=i.length,o,u,l;n<s;n++)u=i[n],o=n!==s-1?u.lastIndexOf(","):u.length,l=u.substr(0,o),e[r]=isNaN(l)?l.replace(gs,"").trim():+l,r=u.substr(o+1).trim();return e},xs=function(t){var e=t.indexOf("(")+1,i=t.indexOf(")"),r=t.indexOf("(",e);return t.substring(e,~r&&r<i?t.indexOf(")",i+1):i)},vs=function(t){var e=(t+"").split("("),i=P[e[0]];return i&&e.length>1&&i.config?i.config.apply(null,~t.indexOf("{")?[ys(e[1])]:xs(t).split(",").map(Cr)):P._CE&&ms.test(t)?P._CE("",t):i},Wr=function(t){return function(e){return 1-t(1-e)}},qr=function a(t,e){for(var i=t._first,r;i;)i instanceof H?a(i,e):i.vars.yoyoEase&&(!i._yoyo||!i._repeat)&&i._yoyo!==e&&(i.timeline?a(i.timeline,e):(r=i._ease,i._ease=i._yEase,i._yEase=r,i._yoyo=e)),i=i._next},Wt=function(t,e){return t&&(L(t)?t:P[t]||vs(t))||e},Kt=function(t,e,i,r){i===void 0&&(i=function(u){return 1-e(1-u)}),r===void 0&&(r=function(u){return u<.5?e(u*2)/2:1-e((1-u)*2)/2});var n={easeIn:e,easeOut:i,easeInOut:r},s;return tt(t,function(o){P[o]=lt[o]=n,P[s=o.toLowerCase()]=i;for(var u in n)P[s+(u==="easeIn"?".in":u==="easeOut"?".out":".inOut")]=P[o+"."+u]=n[u]}),n},jr=function(t){return function(e){return e<.5?(1-t(1-e*2))/2:.5+t((e-.5)*2)/2}},ei=function a(t,e,i){var r=e>=1?e:1,n=(i||(t?.3:.45))/(e<1?e:1),s=n/ai*(Math.asin(1/r)||0),o=function(f){return f===1?1:r*Math.pow(2,-10*f)*jn((f-s)*n)+1},u=t==="out"?o:t==="in"?function(l){return 1-o(1-l)}:jr(o);return n=ai/n,u.config=function(l,f){return a(t,l,f)},u},ii=function a(t,e){e===void 0&&(e=1.70158);var i=function(s){return s?--s*s*((e+1)*s+e)+1:0},r=t==="out"?i:t==="in"?function(n){return 1-i(1-n)}:jr(i);return r.config=function(n){return a(t,n)},r};tt("Linear,Quad,Cubic,Quart,Quint,Strong",function(a,t){var e=t<5?t+1:t;Kt(a+",Power"+(e-1),t?function(i){return Math.pow(i,e)}:function(i){return i},function(i){return 1-Math.pow(1-i,e)},function(i){return i<.5?Math.pow(i*2,e)/2:1-Math.pow((1-i)*2,e)/2})});P.Linear.easeNone=P.none=P.Linear.easeIn;Kt("Elastic",ei("in"),ei("out"),ei());(function(a,t){var e=1/t,i=2*e,r=2.5*e,n=function(o){return o<e?a*o*o:o<i?a*Math.pow(o-1.5/t,2)+.75:o<r?a*(o-=2.25/t)*o+.9375:a*Math.pow(o-2.625/t,2)+.984375};Kt("Bounce",function(s){return 1-n(1-s)},n)})(7.5625,2.75);Kt("Expo",function(a){return Math.pow(2,10*(a-1))*a+a*a*a*a*a*a*(1-a)});Kt("Circ",function(a){return-(gr(1-a*a)-1)});Kt("Sine",function(a){return a===1?1:-qn(a*Gn)+1});Kt("Back",ii("in"),ii("out"),ii());P.SteppedEase=P.steps=lt.SteppedEase={config:function(t,e){t===void 0&&(t=1);var i=1/t,r=t+(e?0:1),n=e?1:0,s=1-R;return function(o){return((r*De(0,s,o)|0)+n)*i}}};se.ease=P["quad.out"];tt("onComplete,onUpdate,onStart,onRepeat,onReverseComplete,onInterrupt",function(a){return Ri+=a+","+a+"Params,"});var Kr=function(t,e){this.id=Wn++,t._gsap=this,this.target=t,this.harness=e,this.get=e?e.get:Pr,this.set=e?e.getSetter:Fi},Pe=(function(){function a(e){this.vars=e,this._delay=+e.delay||0,(this._repeat=e.repeat===1/0?-2:e.repeat||0)&&(this._rDelay=e.repeatDelay||0,this._yoyo=!!e.yoyo||!!e.yoyoEase),this._ts=1,ue(this,+e.duration,1,1),this.data=e.data,E&&(this._ctx=E,E.data.push(this)),Se||ot.wake()}var t=a.prototype;return t.delay=function(i){return i||i===0?(this.parent&&this.parent.smoothChildTiming&&this.startTime(this._start+i-this._delay),this._delay=i,this):this._delay},t.duration=function(i){return arguments.length?this.totalDuration(this._repeat>0?i+(i+this._rDelay)*this._repeat:i):this.totalDuration()&&this._dur},t.totalDuration=function(i){return arguments.length?(this._dirty=0,ue(this,this._repeat<0?i:(i-this._repeat*this._rDelay)/(this._repeat+1))):this._tDur},t.totalTime=function(i,r){if(le(),!arguments.length)return this._tTime;var n=this._dp;if(n&&n.smoothChildTiming&&this._ts){for(He(this,i),!n._dp||n.parent||Dr(n,this);n&&n.parent;)n.parent._time!==n._start+(n._ts>=0?n._tTime/n._ts:(n.totalDuration()-n._tTime)/-n._ts)&&n.totalTime(n._tTime,!0),n=n.parent;!this.parent&&this._dp.autoRemoveChildren&&(this._ts>0&&i<this._tDur||this._ts<0&&i>0||!this._tDur&&!i)&&xt(this._dp,this,this._start-this._delay)}return(this._tTime!==i||!this._dur&&!r||this._initted&&Math.abs(this._zTime)===R||!i&&!this._initted&&(this.add||this._ptLookup))&&(this._ts||(this._pTime=i),Or(this,i,r)),this},t.time=function(i,r){return arguments.length?this.totalTime(Math.min(this.totalDuration(),i+Ki(this))%(this._dur+this._rDelay)||(i?this._dur:0),r):this._time},t.totalProgress=function(i,r){return arguments.length?this.totalTime(this.totalDuration()*i,r):this.totalDuration()?Math.min(1,this._tTime/this._tDur):this.rawTime()>=0&&this._initted?1:0},t.progress=function(i,r){return arguments.length?this.totalTime(this.duration()*(this._yoyo&&!(this.iteration()&1)?1-i:i)+Ki(this),r):this.duration()?Math.min(1,this._time/this._dur):this.rawTime()>0?1:0},t.iteration=function(i,r){var n=this.duration()+this._rDelay;return arguments.length?this.totalTime(this._time+(i-1)*n,r):this._repeat?ae(this._tTime,n)+1:1},t.timeScale=function(i,r){if(!arguments.length)return this._rts===-R?0:this._rts;if(this._rts===i)return this;var n=this.parent&&this._ts?$e(this.parent._time,this):this._tTime;return this._rts=+i||0,this._ts=this._ps||i===-R?0:this._rts,this.totalTime(De(-Math.abs(this._delay),this.totalDuration(),n),r!==!1),Ke(this),es(this)},t.paused=function(i){return arguments.length?(this._ps!==i&&(this._ps=i,i?(this._pTime=this._tTime||Math.max(-this._delay,this.rawTime()),this._ts=this._act=0):(le(),this._ts=this._rts,this.totalTime(this.parent&&!this.parent.smoothChildTiming?this.rawTime():this._tTime||this._pTime,this.progress()===1&&Math.abs(this._zTime)!==R&&(this._tTime-=R)))),this):this._ps},t.startTime=function(i){if(arguments.length){this._start=i;var r=this.parent||this._dp;return r&&(r._sort||!this.parent)&&xt(r,this,i-this._delay),this}return this._start},t.endTime=function(i){return this._start+(J(i)?this.totalDuration():this.duration())/Math.abs(this._ts||1)},t.rawTime=function(i){var r=this.parent||this._dp;return r?i&&(!this._ts||this._repeat&&this._time&&this.totalProgress()<1)?this._tTime%(this._dur+this._rDelay):this._ts?$e(r.rawTime(i),this):this._tTime:this._tTime},t.revert=function(i){i===void 0&&(i=Qn);var r=W;return W=i,Di(this)&&(this.timeline&&this.timeline.revert(i),this.totalTime(-.01,i.suppressEvents)),this.data!=="nested"&&i.kill!==!1&&this.kill(),W=r,this},t.globalTime=function(i){for(var r=this,n=arguments.length?i:r.rawTime();r;)n=r._start+n/(Math.abs(r._ts)||1),r=r._dp;return!this.parent&&this._sat?this._sat.globalTime(i):n},t.repeat=function(i){return arguments.length?(this._repeat=i===1/0?-2:i,Hi(this)):this._repeat===-2?1/0:this._repeat},t.repeatDelay=function(i){if(arguments.length){var r=this._time;return this._rDelay=i,Hi(this),r?this.time(r):this}return this._rDelay},t.yoyo=function(i){return arguments.length?(this._yoyo=i,this):this._yoyo},t.seek=function(i,r){return this.totalTime(ht(this,i),J(r))},t.restart=function(i,r){return this.play().totalTime(i?-this._delay:0,J(r)),this._dur||(this._zTime=-R),this},t.play=function(i,r){return i!=null&&this.seek(i,r),this.reversed(!1).paused(!1)},t.reverse=function(i,r){return i!=null&&this.seek(i||this.totalDuration(),r),this.reversed(!0).paused(!1)},t.pause=function(i,r){return i!=null&&this.seek(i,r),this.paused(!0)},t.resume=function(){return this.paused(!1)},t.reversed=function(i){return arguments.length?(!!i!==this.reversed()&&this.timeScale(-this._rts||(i?-R:0)),this):this._rts<0},t.invalidate=function(){return this._initted=this._act=0,this._zTime=-R,this},t.isActive=function(){var i=this.parent||this._dp,r=this._start,n;return!!(!i||this._ts&&this._initted&&i.isActive()&&(n=i.rawTime(!0))>=r&&n<this.endTime(!0)-R)},t.eventCallback=function(i,r,n){var s=this.vars;return arguments.length>1?(r?(s[i]=r,n&&(s[i+"Params"]=n),i==="onUpdate"&&(this._onUpdate=r)):delete s[i],this):s[i]},t.then=function(i){var r=this;return new Promise(function(n){var s=L(i)?i:Rr,o=function(){var l=r.then;r.then=null,L(s)&&(s=s(r))&&(s.then||s===r)&&(r.then=l),n(s),r.then=l};r._initted&&r.totalProgress()===1&&r._ts>=0||!r._tTime&&r._ts<0?o():r._prom=o})},t.kill=function(){ge(this)},a})();ft(Pe.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:-R,_prom:0,_ps:!1,_rts:1});var H=(function(a){mr(t,a);function t(i,r){var n;return i===void 0&&(i={}),n=a.call(this,i)||this,n.labels={},n.smoothChildTiming=!!i.smoothChildTiming,n.autoRemoveChildren=!!i.autoRemoveChildren,n._sort=J(i.sortChildren),F&&xt(i.parent||F,kt(n),r),i.reversed&&n.reverse(),i.paused&&n.paused(!0),i.scrollTrigger&&Ar(kt(n),i.scrollTrigger),n}var e=t.prototype;return e.to=function(r,n,s){return ve(0,arguments,this),this},e.from=function(r,n,s){return ve(1,arguments,this),this},e.fromTo=function(r,n,s,o){return ve(2,arguments,this),this},e.set=function(r,n,s){return n.duration=0,n.parent=this,xe(n).repeatDelay||(n.repeat=0),n.immediateRender=!!n.immediateRender,new V(r,n,ht(this,s),1),this},e.call=function(r,n,s){return xt(this,V.delayedCall(0,r,n),s)},e.staggerTo=function(r,n,s,o,u,l,f){return s.duration=n,s.stagger=s.stagger||o,s.onComplete=l,s.onCompleteParams=f,s.parent=this,new V(r,s,ht(this,u)),this},e.staggerFrom=function(r,n,s,o,u,l,f){return s.runBackwards=1,xe(s).immediateRender=J(s.immediateRender),this.staggerTo(r,n,s,o,u,l,f)},e.staggerFromTo=function(r,n,s,o,u,l,f,_){return o.startAt=s,xe(o).immediateRender=J(o.immediateRender),this.staggerTo(r,n,o,u,l,f,_)},e.render=function(r,n,s){var o=this._time,u=this._dirty?this.totalDuration():this._tDur,l=this._dur,f=r<=0?0:U(r),_=this._zTime<0!=r<0&&(this._initted||!l),c,d,m,h,p,x,y,T,v,g,k,w;if(this!==F&&f>u&&r>=0&&(f=u),f!==this._tTime||s||_){if(o!==this._time&&l&&(f+=this._time-o,r+=this._time-o),c=f,v=this._start,T=this._ts,x=!T,_&&(l||(o=this._zTime),(r||!n)&&(this._zTime=r)),this._repeat){if(k=this._yoyo,p=l+this._rDelay,this._repeat<-1&&r<0)return this.totalTime(p*100+r,n,s);if(c=U(f%p),f===u?(h=this._repeat,c=l):(g=U(f/p),h=~~g,h&&h===g&&(c=l,h--),c>l&&(c=l)),g=ae(this._tTime,p),!o&&this._tTime&&g!==h&&this._tTime-g*p-this._dur<=0&&(g=h),k&&h&1&&(c=l-c,w=1),h!==g&&!this._lock){var S=k&&g&1,b=S===(k&&h&1);if(h<g&&(S=!S),o=S?0:f%l?l:f,this._lock=1,this.render(o||(w?0:U(h*p)),n,!l)._lock=0,this._tTime=f,!n&&this.parent&&at(this,"onRepeat"),this.vars.repeatRefresh&&!w&&(this.invalidate()._lock=1),o&&o!==this._time||x!==!this._ts||this.vars.onRepeat&&!this.parent&&!this._act)return this;if(l=this._dur,u=this._tDur,b&&(this._lock=2,o=S?l:-1e-4,this.render(o,!0),this.vars.repeatRefresh&&!w&&this.invalidate()),this._lock=0,!this._ts&&!x)return this;qr(this,w)}}if(this._hasPause&&!this._forcing&&this._lock<2&&(y=ss(this,U(o),U(c)),y&&(f-=c-(c=y._start))),this._tTime=f,this._time=c,this._act=!T,this._initted||(this._onUpdate=this.vars.onUpdate,this._initted=1,this._zTime=r,o=0),!o&&f&&!n&&!g&&(at(this,"onStart"),this._tTime!==f))return this;if(c>=o&&r>=0)for(d=this._first;d;){if(m=d._next,(d._act||c>=d._start)&&d._ts&&y!==d){if(d.parent!==this)return this.render(r,n,s);if(d.render(d._ts>0?(c-d._start)*d._ts:(d._dirty?d.totalDuration():d._tDur)+(c-d._start)*d._ts,n,s),c!==this._time||!this._ts&&!x){y=0,m&&(f+=this._zTime=-R);break}}d=m}else{d=this._last;for(var O=r<0?r:c;d;){if(m=d._prev,(d._act||O<=d._end)&&d._ts&&y!==d){if(d.parent!==this)return this.render(r,n,s);if(d.render(d._ts>0?(O-d._start)*d._ts:(d._dirty?d.totalDuration():d._tDur)+(O-d._start)*d._ts,n,s||W&&Di(d)),c!==this._time||!this._ts&&!x){y=0,m&&(f+=this._zTime=O?-R:R);break}}d=m}}if(y&&!n&&(this.pause(),y.render(c>=o?0:-R)._zTime=c>=o?1:-1,this._ts))return this._start=v,Ke(this),this.render(r,n,s);this._onUpdate&&!n&&at(this,"onUpdate",!0),(f===u&&this._tTime>=this.totalDuration()||!f&&o)&&(v===this._start||Math.abs(T)!==Math.abs(this._ts))&&(this._lock||((r||!l)&&(f===u&&this._ts>0||!f&&this._ts<0)&&Ft(this,1),!n&&!(r<0&&!o)&&(f||o||!u)&&(at(this,f===u&&r>=0?"onComplete":"onReverseComplete",!0),this._prom&&!(f<u&&this.timeScale()>0)&&this._prom())))}return this},e.add=function(r,n){var s=this;if(Ot(n)||(n=ht(this,n,r)),!(r instanceof Pe)){if(K(r))return r.forEach(function(o){return s.add(o,n)}),this;if($(r))return this.addLabel(r,n);if(L(r))r=V.delayedCall(0,r);else return this}return this!==r?xt(this,r,n):this},e.getChildren=function(r,n,s,o){r===void 0&&(r=!0),n===void 0&&(n=!0),s===void 0&&(s=!0),o===void 0&&(o=-_t);for(var u=[],l=this._first;l;)l._start>=o&&(l instanceof V?n&&u.push(l):(s&&u.push(l),r&&u.push.apply(u,l.getChildren(!0,n,s)))),l=l._next;return u},e.getById=function(r){for(var n=this.getChildren(1,1,1),s=n.length;s--;)if(n[s].vars.id===r)return n[s]},e.remove=function(r){return $(r)?this.removeLabel(r):L(r)?this.killTweensOf(r):(r.parent===this&&je(this,r),r===this._recent&&(this._recent=this._last),Gt(this))},e.totalTime=function(r,n){return arguments.length?(this._forcing=1,!this._dp&&this._ts&&(this._start=U(ot.time-(this._ts>0?r/this._ts:(this.totalDuration()-r)/-this._ts))),a.prototype.totalTime.call(this,r,n),this._forcing=0,this):this._tTime},e.addLabel=function(r,n){return this.labels[r]=ht(this,n),this},e.removeLabel=function(r){return delete this.labels[r],this},e.addPause=function(r,n,s){var o=V.delayedCall(0,n||we,s);return o.data="isPause",this._hasPause=1,xt(this,o,ht(this,r))},e.removePause=function(r){var n=this._first;for(r=ht(this,r);n;)n._start===r&&n.data==="isPause"&&Ft(n),n=n._next},e.killTweensOf=function(r,n,s){for(var o=this.getTweensOf(r,s),u=o.length;u--;)Rt!==o[u]&&o[u].kill(r,n);return this},e.getTweensOf=function(r,n){for(var s=[],o=ct(r),u=this._first,l=Ot(n),f;u;)u instanceof V?Zn(u._targets,o)&&(l?(!Rt||u._initted&&u._ts)&&u.globalTime(0)<=n&&u.globalTime(u.totalDuration())>n:!n||u.isActive())&&s.push(u):(f=u.getTweensOf(o,n)).length&&s.push.apply(s,f),u=u._next;return s},e.tweenTo=function(r,n){n=n||{};var s=this,o=ht(s,r),u=n,l=u.startAt,f=u.onStart,_=u.onStartParams,c=u.immediateRender,d,m=V.to(s,ft({ease:n.ease||"none",lazy:!1,immediateRender:!1,time:o,overwrite:"auto",duration:n.duration||Math.abs((o-(l&&"time"in l?l.time:s._time))/s.timeScale())||R,onStart:function(){if(s.pause(),!d){var p=n.duration||Math.abs((o-(l&&"time"in l?l.time:s._time))/s.timeScale());m._dur!==p&&ue(m,p,0,1).render(m._time,!0,!0),d=1}f&&f.apply(m,_||[])}},n));return c?m.render(0):m},e.tweenFromTo=function(r,n,s){return this.tweenTo(n,ft({startAt:{time:ht(this,r)}},s))},e.recent=function(){return this._recent},e.nextLabel=function(r){return r===void 0&&(r=this._time),Qi(this,ht(this,r))},e.previousLabel=function(r){return r===void 0&&(r=this._time),Qi(this,ht(this,r),1)},e.currentLabel=function(r){return arguments.length?this.seek(r,!0):this.previousLabel(this._time+R)},e.shiftChildren=function(r,n,s){s===void 0&&(s=0);for(var o=this._first,u=this.labels,l;o;)o._start>=s&&(o._start+=r,o._end+=r),o=o._next;if(n)for(l in u)u[l]>=s&&(u[l]+=r);return Gt(this)},e.invalidate=function(r){var n=this._first;for(this._lock=0;n;)n.invalidate(r),n=n._next;return a.prototype.invalidate.call(this,r)},e.clear=function(r){r===void 0&&(r=!0);for(var n=this._first,s;n;)s=n._next,this.remove(n),n=s;return this._dp&&(this._time=this._tTime=this._pTime=0),r&&(this.labels={}),Gt(this)},e.totalDuration=function(r){var n=0,s=this,o=s._last,u=_t,l,f,_;if(arguments.length)return s.timeScale((s._repeat<0?s.duration():s.totalDuration())/(s.reversed()?-r:r));if(s._dirty){for(_=s.parent;o;)l=o._prev,o._dirty&&o.totalDuration(),f=o._start,f>u&&s._sort&&o._ts&&!s._lock?(s._lock=1,xt(s,o,f-o._delay,1)._lock=0):u=f,f<0&&o._ts&&(n-=f,(!_&&!s._dp||_&&_.smoothChildTiming)&&(s._start+=f/s._ts,s._time-=f,s._tTime-=f),s.shiftChildren(-f,!1,-1/0),u=0),o._end>n&&o._ts&&(n=o._end),o=l;ue(s,s===F&&s._time>n?s._time:n,1,1),s._dirty=0}return s._tDur},t.updateRoot=function(r){if(F._ts&&(Or(F,$e(r,F)),Sr=ot.frame),ot.frame>=qi){qi+=ut.autoSleep||120;var n=F._first;if((!n||!n._ts)&&ut.autoSleep&&ot._listeners.length<2){for(;n&&!n._ts;)n=n._next;n||ot.sleep()}}},t})(Pe);ft(H.prototype,{_lock:0,_hasPause:0,_forcing:0});var Ts=function(t,e,i,r,n,s,o){var u=new et(this._pt,t,e,0,1,en,null,n),l=0,f=0,_,c,d,m,h,p,x,y;for(u.b=i,u.e=r,i+="",r+="",(x=~r.indexOf("random("))&&(r=ke(r)),s&&(y=[i,r],s(y,t,e),i=y[0],r=y[1]),c=i.match(Ze)||[];_=Ze.exec(r);)m=_[0],h=r.substring(l,_.index),d?d=(d+1)%5:h.substr(-5)==="rgba("&&(d=1),m!==c[f++]&&(p=parseFloat(c[f-1])||0,u._pt={_next:u._pt,p:h||f===1?h:",",s:p,c:m.charAt(1)==="="?ee(p,m)-p:parseFloat(m)-p,m:d&&d<4?Math.round:0},l=Ze.lastIndex);return u.c=l<r.length?r.substring(l,r.length):"",u.fp=o,(vr.test(r)||x)&&(u.e=0),this._pt=u,u},Ai=function(t,e,i,r,n,s,o,u,l,f){L(r)&&(r=r(n||0,t,s));var _=t[e],c=i!=="get"?i:L(_)?l?t[e.indexOf("set")||!L(t["get"+e.substr(3)])?e:"get"+e.substr(3)](l):t[e]():_,d=L(_)?l?Ps:Jr:Ei,m;if($(r)&&(~r.indexOf("random(")&&(r=ke(r)),r.charAt(1)==="="&&(m=ee(c,r)+(q(c)||0),(m||m===0)&&(r=m))),!f||c!==r||mi)return!isNaN(c*r)&&r!==""?(m=new et(this._pt,t,e,+c||0,r-(c||0),typeof _=="boolean"?Cs:tn,0,d),l&&(m.fp=l),o&&m.modifier(o,this,t),this._pt=m):(!_&&!(e in t)&&Oi(e,r),Ts.call(this,t,e,c,r,d,u||ut.stringFilter,l))},bs=function(t,e,i,r,n){if(L(t)&&(t=Te(t,n,e,i,r)),!bt(t)||t.style&&t.nodeType||K(t)||yr(t))return $(t)?Te(t,n,e,i,r):t;var s={},o;for(o in t)s[o]=Te(t[o],n,e,i,r);return s},Hr=function(t,e,i,r,n,s){var o,u,l,f;if(st[t]&&(o=new st[t]).init(n,o.rawVars?e[t]:bs(e[t],r,n,s,i),i,r,s)!==!1&&(i._pt=u=new et(i._pt,n,t,0,1,o.render,o,0,o.priority),i!==te))for(l=i._ptLookup[i._targets.indexOf(n)],f=o._props.length;f--;)l[o._props[f]]=u;return o},Rt,mi,Ii=function a(t,e,i){var r=t.vars,n=r.ease,s=r.startAt,o=r.immediateRender,u=r.lazy,l=r.onUpdate,f=r.runBackwards,_=r.yoyoEase,c=r.keyframes,d=r.autoRevert,m=t._dur,h=t._startAt,p=t._targets,x=t.parent,y=x&&x.data==="nested"?x.vars.targets:p,T=t._overwrite==="auto"&&!wi,v=t.timeline,g,k,w,S,b,O,A,M,D,G,Y,B,X;if(v&&(!c||!n)&&(n="none"),t._ease=Wt(n,se.ease),t._yEase=_?Wr(Wt(_===!0?n:_,se.ease)):0,_&&t._yoyo&&!t._repeat&&(_=t._yEase,t._yEase=t._ease,t._ease=_),t._from=!v&&!!r.runBackwards,!v||c&&!r.stagger){if(M=p[0]?$t(p[0]).harness:0,B=M&&r[M.prop],g=Xe(r,Ci),h&&(h._zTime<0&&h.progress(1),e<0&&f&&o&&!d?h.render(-1,!0):h.revert(f&&m?Le:Hn),h._lazy=0),s){if(Ft(t._startAt=V.set(p,ft({data:"isStart",overwrite:!1,parent:x,immediateRender:!0,lazy:!h&&J(u),startAt:null,delay:0,onUpdate:l&&function(){return at(t,"onUpdate")},stagger:0},s))),t._startAt._dp=0,t._startAt._sat=t,e<0&&(W||!o&&!d)&&t._startAt.revert(Le),o&&m&&e<=0&&i<=0){e&&(t._zTime=e);return}}else if(f&&m&&!h){if(e&&(o=!1),w=ft({overwrite:!1,data:"isFromStart",lazy:o&&!h&&J(u),immediateRender:o,stagger:0,parent:x},g),B&&(w[M.prop]=B),Ft(t._startAt=V.set(p,w)),t._startAt._dp=0,t._startAt._sat=t,e<0&&(W?t._startAt.revert(Le):t._startAt.render(-1,!0)),t._zTime=e,!o)a(t._startAt,R,R);else if(!e)return}for(t._pt=t._ptCache=0,u=m&&J(u)||u&&!m,k=0;k<p.length;k++){if(b=p[k],A=b._gsap||Mi(p)[k]._gsap,t._ptLookup[k]=G={},fi[A.id]&&At.length&&Ye(),Y=y===p?k:y.indexOf(b),M&&(D=new M).init(b,B||g,t,Y,y)!==!1&&(t._pt=S=new et(t._pt,b,D.name,0,1,D.render,D,0,D.priority),D._props.forEach(function(pt){G[pt]=S}),D.priority&&(O=1)),!M||B)for(w in g)st[w]&&(D=Hr(w,g,t,Y,b,y))?D.priority&&(O=1):G[w]=S=Ai.call(t,b,w,"get",g[w],Y,y,0,r.stringFilter);t._op&&t._op[k]&&t.kill(b,t._op[k]),T&&t._pt&&(Rt=t,F.killTweensOf(b,G,t.globalTime(e)),X=!t.parent,Rt=0),t._pt&&u&&(fi[A.id]=1)}O&&rn(t),t._onInit&&t._onInit(t)}t._onUpdate=l,t._initted=(!t._op||t._pt)&&!X,c&&e<=0&&v.render(_t,!0,!0)},ws=function(t,e,i,r,n,s,o,u){var l=(t._pt&&t._ptCache||(t._ptCache={}))[e],f,_,c,d;if(!l)for(l=t._ptCache[e]=[],c=t._ptLookup,d=t._targets.length;d--;){if(f=c[d][e],f&&f.d&&f.d._pt)for(f=f.d._pt;f&&f.p!==e&&f.fp!==e;)f=f._next;if(!f)return mi=1,t.vars[e]="+=0",Ii(t,o),mi=0,u?be(e+" not eligible for reset"):1;l.push(f)}for(d=l.length;d--;)_=l[d],f=_._pt||_,f.s=(r||r===0)&&!n?r:f.s+(r||0)+s*f.c,f.c=i-f.s,_.e&&(_.e=N(i)+q(_.e)),_.b&&(_.b=f.s+q(_.b))},ks=function(t,e){var i=t[0]?$t(t[0]).harness:0,r=i&&i.aliases,n,s,o,u;if(!r)return e;n=oe({},e);for(s in r)if(s in n)for(u=r[s].split(","),o=u.length;o--;)n[u[o]]=n[s];return n},Ss=function(t,e,i,r){var n=e.ease||r||"power1.inOut",s,o;if(K(e))o=i[t]||(i[t]=[]),e.forEach(function(u,l){return o.push({t:l/(e.length-1)*100,v:u,e:n})});else for(s in e)o=i[s]||(i[s]=[]),s==="ease"||o.push({t:parseFloat(t),v:e[s],e:n})},Te=function(t,e,i,r,n){return L(t)?t.call(e,i,r,n):$(t)&&~t.indexOf("random(")?ke(t):t},Qr=Ri+"repeat,repeatDelay,yoyo,repeatRefresh,yoyoEase,autoRevert",Zr={};tt(Qr+",id,stagger,delay,duration,paused,scrollTrigger",function(a){return Zr[a]=1});var V=(function(a){mr(t,a);function t(i,r,n,s){var o;typeof r=="number"&&(n.duration=r,r=n,n=null),o=a.call(this,s?r:xe(r))||this;var u=o.vars,l=u.duration,f=u.delay,_=u.immediateRender,c=u.stagger,d=u.overwrite,m=u.keyframes,h=u.defaults,p=u.scrollTrigger,x=u.yoyoEase,y=r.parent||F,T=(K(i)||yr(i)?Ot(i[0]):"length"in r)?[i]:ct(i),v,g,k,w,S,b,O,A;if(o._targets=T.length?Mi(T):be("GSAP target "+i+" not found. https://gsap.com",!ut.nullTargetWarn)||[],o._ptLookup=[],o._overwrite=d,m||c||Fe(l)||Fe(f)){if(r=o.vars,v=o.timeline=new H({data:"nested",defaults:h||{},targets:y&&y.data==="nested"?y.vars.targets:T}),v.kill(),v.parent=v._dp=kt(o),v._start=0,c||Fe(l)||Fe(f)){if(w=T.length,O=c&&zr(c),bt(c))for(S in c)~Qr.indexOf(S)&&(A||(A={}),A[S]=c[S]);for(g=0;g<w;g++)k=Xe(r,Zr),k.stagger=0,x&&(k.yoyoEase=x),A&&oe(k,A),b=T[g],k.duration=+Te(l,kt(o),g,b,T),k.delay=(+Te(f,kt(o),g,b,T)||0)-o._delay,!c&&w===1&&k.delay&&(o._delay=f=k.delay,o._start+=f,k.delay=0),v.to(b,k,O?O(g,b,T):0),v._ease=P.none;v.duration()?l=f=0:o.timeline=0}else if(m){xe(ft(v.vars.defaults,{ease:"none"})),v._ease=Wt(m.ease||r.ease||"none");var M=0,D,G,Y;if(K(m))m.forEach(function(B){return v.to(T,B,">")}),v.duration();else{k={};for(S in m)S==="ease"||S==="easeEach"||Ss(S,m[S],k,m.easeEach);for(S in k)for(D=k[S].sort(function(B,X){return B.t-X.t}),M=0,g=0;g<D.length;g++)G=D[g],Y={ease:G.e,duration:(G.t-(g?D[g-1].t:0))/100*l},Y[S]=G.v,v.to(T,Y,M),M+=Y.duration;v.duration()<l&&v.to({},{duration:l-v.duration()})}}l||o.duration(l=v.duration())}else o.timeline=0;return d===!0&&!wi&&(Rt=kt(o),F.killTweensOf(T),Rt=0),xt(y,kt(o),n),r.reversed&&o.reverse(),r.paused&&o.paused(!0),(_||!l&&!m&&o._start===U(y._time)&&J(_)&&is(kt(o))&&y.data!=="nested")&&(o._tTime=-R,o.render(Math.max(0,-f)||0)),p&&Ar(kt(o),p),o}var e=t.prototype;return e.render=function(r,n,s){var o=this._time,u=this._tDur,l=this._dur,f=r<0,_=r>u-R&&!f?u:r<R?0:r,c,d,m,h,p,x,y,T,v;if(!l)ns(this,r,n,s);else if(_!==this._tTime||!r||s||!this._initted&&this._tTime||this._startAt&&this._zTime<0!==f||this._lazy){if(c=_,T=this.timeline,this._repeat){if(h=l+this._rDelay,this._repeat<-1&&f)return this.totalTime(h*100+r,n,s);if(c=U(_%h),_===u?(m=this._repeat,c=l):(p=U(_/h),m=~~p,m&&m===p?(c=l,m--):c>l&&(c=l)),x=this._yoyo&&m&1,x&&(v=this._yEase,c=l-c),p=ae(this._tTime,h),c===o&&!s&&this._initted&&m===p)return this._tTime=_,this;m!==p&&(T&&this._yEase&&qr(T,x),this.vars.repeatRefresh&&!x&&!this._lock&&c!==h&&this._initted&&(this._lock=s=1,this.render(U(h*m),!0).invalidate()._lock=0))}if(!this._initted){if(Ir(this,f?r:c,s,n,_))return this._tTime=0,this;if(o!==this._time&&!(s&&this.vars.repeatRefresh&&m!==p))return this;if(l!==this._dur)return this.render(r,n,s)}if(this._tTime=_,this._time=c,!this._act&&this._ts&&(this._act=1,this._lazy=0),this.ratio=y=(v||this._ease)(c/l),this._from&&(this.ratio=y=1-y),!o&&_&&!n&&!p&&(at(this,"onStart"),this._tTime!==_))return this;for(d=this._pt;d;)d.r(y,d.d),d=d._next;T&&T.render(r<0?r:T._dur*T._ease(c/this._dur),n,s)||this._startAt&&(this._zTime=r),this._onUpdate&&!n&&(f&&hi(this,r,n,s),at(this,"onUpdate")),this._repeat&&m!==p&&this.vars.onRepeat&&!n&&this.parent&&at(this,"onRepeat"),(_===this._tDur||!_)&&this._tTime===_&&(f&&!this._onUpdate&&hi(this,r,!0,!0),(r||!l)&&(_===this._tDur&&this._ts>0||!_&&this._ts<0)&&Ft(this,1),!n&&!(f&&!o)&&(_||o||x)&&(at(this,_===u?"onComplete":"onReverseComplete",!0),this._prom&&!(_<u&&this.timeScale()>0)&&this._prom()))}return this},e.targets=function(){return this._targets},e.invalidate=function(r){return(!r||!this.vars.runBackwards)&&(this._startAt=0),this._pt=this._op=this._onUpdate=this._lazy=this.ratio=0,this._ptLookup=[],this.timeline&&this.timeline.invalidate(r),a.prototype.invalidate.call(this,r)},e.resetTo=function(r,n,s,o,u){Se||ot.wake(),this._ts||this.play();var l=Math.min(this._dur,(this._dp._time-this._start)*this._ts),f;return this._initted||Ii(this,l),f=this._ease(l/this._dur),ws(this,r,n,s,o,f,l,u)?this.resetTo(r,n,s,o,1):(He(this,0),this.parent||Mr(this._dp,this,"_first","_last",this._dp._sort?"_start":0),this.render(0))},e.kill=function(r,n){if(n===void 0&&(n="all"),!r&&(!n||n==="all"))return this._lazy=this._pt=0,this.parent?ge(this):this.scrollTrigger&&this.scrollTrigger.kill(!!W),this;if(this.timeline){var s=this.timeline.totalDuration();return this.timeline.killTweensOf(r,n,Rt&&Rt.vars.overwrite!==!0)._first||ge(this),this.parent&&s!==this.timeline.totalDuration()&&ue(this,this._dur*this.timeline._tDur/s,0,1),this}var o=this._targets,u=r?ct(r):o,l=this._ptLookup,f=this._pt,_,c,d,m,h,p,x;if((!n||n==="all")&&ts(o,u))return n==="all"&&(this._pt=0),ge(this);for(_=this._op=this._op||[],n!=="all"&&($(n)&&(h={},tt(n,function(y){return h[y]=1}),n=h),n=ks(o,n)),x=o.length;x--;)if(~u.indexOf(o[x])){c=l[x],n==="all"?(_[x]=n,m=c,d={}):(d=_[x]=_[x]||{},m=n);for(h in m)p=c&&c[h],p&&((!("kill"in p.d)||p.d.kill(h)===!0)&&je(this,p,"_pt"),delete c[h]),d!=="all"&&(d[h]=1)}return this._initted&&!this._pt&&f&&ge(this),this},t.to=function(r,n){return new t(r,n,arguments[2])},t.from=function(r,n){return ve(1,arguments)},t.delayedCall=function(r,n,s,o){return new t(n,0,{immediateRender:!1,lazy:!1,overwrite:!1,delay:r,onComplete:n,onReverseComplete:n,onCompleteParams:s,onReverseCompleteParams:s,callbackScope:o})},t.fromTo=function(r,n,s){return ve(2,arguments)},t.set=function(r,n){return n.duration=0,n.repeatDelay||(n.repeat=0),new t(r,n)},t.killTweensOf=function(r,n,s){return F.killTweensOf(r,n,s)},t})(Pe);ft(V.prototype,{_targets:[],_lazy:0,_startAt:0,_op:0,_onInit:0});tt("staggerTo,staggerFrom,staggerFromTo",function(a){V[a]=function(){var t=new H,e=ci.call(arguments,0);return e.splice(a==="staggerFromTo"?5:4,0,0),t[a].apply(t,e)}});var Ei=function(t,e,i){return t[e]=i},Jr=function(t,e,i){return t[e](i)},Ps=function(t,e,i,r){return t[e](r.fp,i)},Os=function(t,e,i){return t.setAttribute(e,i)},Fi=function(t,e){return L(t[e])?Jr:ki(t[e])&&t.setAttribute?Os:Ei},tn=function(t,e){return e.set(e.t,e.p,Math.round((e.s+e.c*t)*1e6)/1e6,e)},Cs=function(t,e){return e.set(e.t,e.p,!!(e.s+e.c*t),e)},en=function(t,e){var i=e._pt,r="";if(!t&&e.b)r=e.b;else if(t===1&&e.e)r=e.e;else{for(;i;)r=i.p+(i.m?i.m(i.s+i.c*t):Math.round((i.s+i.c*t)*1e4)/1e4)+r,i=i._next;r+=e.c}e.set(e.t,e.p,r,e)},zi=function(t,e){for(var i=e._pt;i;)i.r(t,i.d),i=i._next},Rs=function(t,e,i,r){for(var n=this._pt,s;n;)s=n._next,n.p===r&&n.modifier(t,e,i),n=s},Ms=function(t){for(var e=this._pt,i,r;e;)r=e._next,e.p===t&&!e.op||e.op===t?je(this,e,"_pt"):e.dep||(i=1),e=r;return!i},Ds=function(t,e,i,r){r.mSet(t,e,r.m.call(r.tween,i,r.mt),r)},rn=function(t){for(var e=t._pt,i,r,n,s;e;){for(i=e._next,r=n;r&&r.pr>e.pr;)r=r._next;(e._prev=r?r._prev:s)?e._prev._next=e:n=e,(e._next=r)?r._prev=e:s=e,e=i}t._pt=n},et=(function(){function a(e,i,r,n,s,o,u,l,f){this.t=i,this.s=n,this.c=s,this.p=r,this.r=o||tn,this.d=u||this,this.set=l||Ei,this.pr=f||0,this._next=e,e&&(e._prev=this)}var t=a.prototype;return t.modifier=function(i,r,n){this.mSet=this.mSet||this.set,this.set=Ds,this.m=i,this.mt=n,this.tween=r},a})();tt(Ri+"parent,duration,ease,delay,overwrite,runBackwards,startAt,yoyo,immediateRender,repeat,repeatDelay,data,paused,reversed,lazy,callbackScope,stringFilter,id,yoyoEase,stagger,inherit,repeatRefresh,keyframes,autoRevert,scrollTrigger",function(a){return Ci[a]=1});lt.TweenMax=lt.TweenLite=V;lt.TimelineLite=lt.TimelineMax=H;F=new H({sortChildren:!1,defaults:se,autoRemoveChildren:!0,id:"root",smoothChildTiming:!0});ut.stringFilter=Gr;var qt=[],Be={},As=[],Ji=0,Is=0,ri=function(t){return(Be[t]||As).map(function(e){return e()})},gi=function(){var t=Date.now(),e=[];t-Ji>2&&(ri("matchMediaInit"),qt.forEach(function(i){var r=i.queries,n=i.conditions,s,o,u,l;for(o in r)s=yt.matchMedia(r[o]).matches,s&&(u=1),s!==n[o]&&(n[o]=s,l=1);l&&(i.revert(),u&&e.push(i))}),ri("matchMediaRevert"),e.forEach(function(i){return i.onMatch(i,function(r){return i.add(null,r)})}),Ji=t,ri("matchMedia"))},nn=(function(){function a(e,i){this.selector=i&&di(i),this.data=[],this._r=[],this.isReverted=!1,this.id=Is++,e&&this.add(e)}var t=a.prototype;return t.add=function(i,r,n){L(i)&&(n=r,r=i,i=L);var s=this,o=function(){var l=E,f=s.selector,_;return l&&l!==s&&l.data.push(s),n&&(s.selector=di(n)),E=s,_=r.apply(s,arguments),L(_)&&s._r.push(_),E=l,s.selector=f,s.isReverted=!1,_};return s.last=o,i===L?o(s,function(u){return s.add(null,u)}):i?s[i]=o:o},t.ignore=function(i){var r=E;E=null,i(this),E=r},t.getTweens=function(){var i=[];return this.data.forEach(function(r){return r instanceof a?i.push.apply(i,r.getTweens()):r instanceof V&&!(r.parent&&r.parent.data==="nested")&&i.push(r)}),i},t.clear=function(){this._r.length=this.data.length=0},t.kill=function(i,r){var n=this;if(i?(function(){for(var o=n.getTweens(),u=n.data.length,l;u--;)l=n.data[u],l.data==="isFlip"&&(l.revert(),l.getChildren(!0,!0,!1).forEach(function(f){return o.splice(o.indexOf(f),1)}));for(o.map(function(f){return{g:f._dur||f._delay||f._sat&&!f._sat.vars.immediateRender?f.globalTime(0):-1/0,t:f}}).sort(function(f,_){return _.g-f.g||-1/0}).forEach(function(f){return f.t.revert(i)}),u=n.data.length;u--;)l=n.data[u],l instanceof H?l.data!=="nested"&&(l.scrollTrigger&&l.scrollTrigger.revert(),l.kill()):!(l instanceof V)&&l.revert&&l.revert(i);n._r.forEach(function(f){return f(i,n)}),n.isReverted=!0})():this.data.forEach(function(o){return o.kill&&o.kill()}),this.clear(),r)for(var s=qt.length;s--;)qt[s].id===this.id&&qt.splice(s,1)},t.revert=function(i){this.kill(i||{})},a})(),Es=(function(){function a(e){this.contexts=[],this.scope=e,E&&E.data.push(this)}var t=a.prototype;return t.add=function(i,r,n){bt(i)||(i={matches:i});var s=new nn(0,n||this.scope),o=s.conditions={},u,l,f;E&&!s.selector&&(s.selector=E.selector),this.contexts.push(s),r=s.add("onMatch",r),s.queries=i;for(l in i)l==="all"?f=1:(u=yt.matchMedia(i[l]),u&&(qt.indexOf(s)<0&&qt.push(s),(o[l]=u.matches)&&(f=1),u.addListener?u.addListener(gi):u.addEventListener("change",gi)));return f&&r(s,function(_){return s.add(null,_)}),this},t.revert=function(i){this.kill(i||{})},t.kill=function(i){this.contexts.forEach(function(r){return r.kill(i,!0)})},a})(),Ge={registerPlugin:function(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];e.forEach(function(r){return Yr(r)})},timeline:function(t){return new H(t)},getTweensOf:function(t,e){return F.getTweensOf(t,e)},getProperty:function(t,e,i,r){$(t)&&(t=ct(t)[0]);var n=$t(t||{}).get,s=i?Rr:Cr;return i==="native"&&(i=""),t&&(e?s((st[e]&&st[e].get||n)(t,e,i,r)):function(o,u,l){return s((st[o]&&st[o].get||n)(t,o,u,l))})},quickSetter:function(t,e,i){if(t=ct(t),t.length>1){var r=t.map(function(f){return rt.quickSetter(f,e,i)}),n=r.length;return function(f){for(var _=n;_--;)r[_](f)}}t=t[0]||{};var s=st[e],o=$t(t),u=o.harness&&(o.harness.aliases||{})[e]||e,l=s?function(f){var _=new s;te._pt=0,_.init(t,i?f+i:f,te,0,[t]),_.render(1,_),te._pt&&zi(1,te)}:o.set(t,u);return s?l:function(f){return l(t,u,i?f+i:f,o,1)}},quickTo:function(t,e,i){var r,n=rt.to(t,ft((r={},r[e]="+=0.1",r.paused=!0,r.stagger=0,r),i||{})),s=function(u,l,f){return n.resetTo(e,u,l,f)};return s.tween=n,s},isTweening:function(t){return F.getTweensOf(t,!0).length>0},defaults:function(t){return t&&t.ease&&(t.ease=Wt(t.ease,se.ease)),ji(se,t||{})},config:function(t){return ji(ut,t||{})},registerEffect:function(t){var e=t.name,i=t.effect,r=t.plugins,n=t.defaults,s=t.extendTimeline;(r||"").split(",").forEach(function(o){return o&&!st[o]&&!lt[o]&&be(e+" effect requires "+o+" plugin.")}),Je[e]=function(o,u,l){return i(ct(o),ft(u||{},n),l)},s&&(H.prototype[e]=function(o,u,l){return this.add(Je[e](o,bt(u)?u:(l=u)&&{},this),l)})},registerEase:function(t,e){P[t]=Wt(e)},parseEase:function(t,e){return arguments.length?Wt(t,e):P},getById:function(t){return F.getById(t)},exportRoot:function(t,e){t===void 0&&(t={});var i=new H(t),r,n;for(i.smoothChildTiming=J(t.smoothChildTiming),F.remove(i),i._dp=0,i._time=i._tTime=F._time,r=F._first;r;)n=r._next,(e||!(!r._dur&&r instanceof V&&r.vars.onComplete===r._targets[0]))&&xt(i,r,r._start-r._delay),r=n;return xt(F,i,0),i},context:function(t,e){return t?new nn(t,e):E},matchMedia:function(t){return new Es(t)},matchMediaRefresh:function(){return qt.forEach(function(t){var e=t.conditions,i,r;for(r in e)e[r]&&(e[r]=!1,i=1);i&&t.revert()})||gi()},addEventListener:function(t,e){var i=Be[t]||(Be[t]=[]);~i.indexOf(e)||i.push(e)},removeEventListener:function(t,e){var i=Be[t],r=i&&i.indexOf(e);r>=0&&i.splice(r,1)},utils:{wrap:_s,wrapYoyo:cs,distribute:zr,random:Nr,snap:Lr,normalize:hs,getUnit:q,clamp:as,splitColor:Xr,toArray:ct,selector:di,mapRange:Vr,pipe:ls,unitize:fs,interpolate:ds,shuffle:Fr},install:wr,effects:Je,ticker:ot,updateRoot:H.updateRoot,plugins:st,globalTimeline:F,core:{PropTween:et,globals:kr,Tween:V,Timeline:H,Animation:Pe,getCache:$t,_removeLinkedListItem:je,reverting:function(){return W},context:function(t){return t&&E&&(E.data.push(t),t._ctx=E),E},suppressOverwrites:function(t){return wi=t}}};tt("to,from,fromTo,delayedCall,set,killTweensOf",function(a){return Ge[a]=V[a]});ot.add(H.updateRoot);te=Ge.to({},{duration:0});var Fs=function(t,e){for(var i=t._pt;i&&i.p!==e&&i.op!==e&&i.fp!==e;)i=i._next;return i},zs=function(t,e){var i=t._targets,r,n,s;for(r in e)for(n=i.length;n--;)s=t._ptLookup[n][r],s&&(s=s.d)&&(s._pt&&(s=Fs(s,r)),s&&s.modifier&&s.modifier(e[r],t,i[n],r))},ni=function(t,e){return{name:t,headless:1,rawVars:1,init:function(r,n,s){s._onInit=function(o){var u,l;if($(n)&&(u={},tt(n,function(f){return u[f]=1}),n=u),e){u={};for(l in n)u[l]=e(n[l]);n=u}zs(o,n)}}}},rt=Ge.registerPlugin({name:"attr",init:function(t,e,i,r,n){var s,o,u;this.tween=i;for(s in e)u=t.getAttribute(s)||"",o=this.add(t,"setAttribute",(u||0)+"",e[s],r,n,0,0,s),o.op=s,o.b=u,this._props.push(s)},render:function(t,e){for(var i=e._pt;i;)W?i.set(i.t,i.p,i.b,i):i.r(t,i.d),i=i._next}},{name:"endArray",headless:1,init:function(t,e){for(var i=e.length;i--;)this.add(t,i,t[i]||0,e[i],0,0,0,0,0,1)}},ni("roundProps",pi),ni("modifiers"),ni("snap",Lr))||Ge;V.version=H.version=rt.version="3.13.0";br=1;Si()&&le();P.Power0;P.Power1;P.Power2;P.Power3;P.Power4;P.Linear;P.Quad;P.Cubic;P.Quart;P.Quint;P.Strong;P.Elastic;P.Back;P.SteppedEase;P.Bounce;P.Sine;P.Expo;P.Circ;/*!
|
|
8
|
+
*/var ut={autoSleep:120,force3D:"auto",nullTargetWarn:1,units:{lineHeight:""}},se={duration:.5,overwrite:!1,delay:0},wi,W,E,_t=1e8,R=1/_t,ai=Math.PI*2,Gn=ai/4,Wn=0,gr=Math.sqrt,qn=Math.cos,Kn=Math.sin,$=function(t){return typeof t=="string"},L=function(t){return typeof t=="function"},Ot=function(t){return typeof t=="number"},ki=function(t){return typeof t>"u"},bt=function(t){return typeof t=="object"},J=function(t){return t!==!1},Si=function(){return typeof window<"u"},Fe=function(t){return L(t)||$(t)},yr=typeof ArrayBuffer=="function"&&ArrayBuffer.isView||function(){},j=Array.isArray,ui=/(?:-?\.?\d|\.)+/gi,xr=/[-+=.]*\d+[.e\-+]*\d*[e\-+]*\d*/g,Jt=/[-+=.]*\d+[.e-]*\d*[a-z%]*/g,Ze=/[-+=.]*\d+\.?\d*(?:e-|e\+)?\d*/gi,vr=/[+-]=-?[.\d]+/,Tr=/[^,'"\[\]\s]+/gi,jn=/^[+\-=e\s\d]*\d+[.\d]*([a-z]*|%)\s*$/i,F,yt,li,Pi,lt={},Ve={},br,wr=function(t){return(Ve=oe(t,lt))&&rt},Oi=function(t,e){return console.warn("Invalid property",t,"set to",e,"Missing plugin? gsap.registerPlugin()")},be=function(t,e){return!e&&console.warn(t)},kr=function(t,e){return t&&(lt[t]=e)&&Ve&&(Ve[t]=e)||lt},we=function(){return 0},Hn={suppressEvents:!0,isStart:!0,kill:!1},Le={suppressEvents:!0,kill:!1},Qn={suppressEvents:!0},Ci={},At=[],fi={},Sr,st={},Je={},qi=30,Ne=[],Ri="",Mi=function(t){var e=t[0],i,r;if(bt(e)||L(e)||(t=[t]),!(i=(e._gsap||{}).harness)){for(r=Ne.length;r--&&!Ne[r].targetTest(e););i=Ne[r]}for(r=t.length;r--;)t[r]&&(t[r]._gsap||(t[r]._gsap=new jr(t[r],i)))||t.splice(r,1);return t},$t=function(t){return t._gsap||Mi(ct(t))[0]._gsap},Pr=function(t,e,i){return(i=t[e])&&L(i)?t[e]():ki(i)&&t.getAttribute&&t.getAttribute(e)||i},tt=function(t,e){return(t=t.split(",")).forEach(e)||t},N=function(t){return Math.round(t*1e5)/1e5||0},V=function(t){return Math.round(t*1e7)/1e7||0},ee=function(t,e){var i=e.charAt(0),r=parseFloat(e.substr(2));return t=parseFloat(t),i==="+"?t+r:i==="-"?t-r:i==="*"?t*r:t/r},Zn=function(t,e){for(var i=e.length,r=0;t.indexOf(e[r])<0&&++r<i;);return r<i},Ye=function(){var t=At.length,e=At.slice(0),i,r;for(fi={},At.length=0,i=0;i<t;i++)r=e[i],r&&r._lazy&&(r.render(r._lazy[0],r._lazy[1],!0)._lazy=0)},Di=function(t){return!!(t._initted||t._startAt||t.add)},Or=function(t,e,i,r){At.length&&!W&&Ye(),t.render(e,i,!!(W&&e<0&&Di(t))),At.length&&!W&&Ye()},Cr=function(t){var e=parseFloat(t);return(e||e===0)&&(t+"").match(Tr).length<2?e:$(t)?t.trim():t},Rr=function(t){return t},ft=function(t,e){for(var i in e)i in t||(t[i]=e[i]);return t},Jn=function(t){return function(e,i){for(var r in i)r in e||r==="duration"&&t||r==="ease"||(e[r]=i[r])}},oe=function(t,e){for(var i in e)t[i]=e[i];return t},Ki=function a(t,e){for(var i in e)i!=="__proto__"&&i!=="constructor"&&i!=="prototype"&&(t[i]=bt(e[i])?a(t[i]||(t[i]={}),e[i]):e[i]);return t},Xe=function(t,e){var i={},r;for(r in t)r in e||(i[r]=t[r]);return i},xe=function(t){var e=t.parent||F,i=t.keyframes?Jn(j(t.keyframes)):ft;if(J(t.inherit))for(;e;)i(t,e.vars.defaults),e=e.parent||e._dp;return t},ts=function(t,e){for(var i=t.length,r=i===e.length;r&&i--&&t[i]===e[i];);return i<0},Mr=function(t,e,i,r,n){var s=t[r],o;if(n)for(o=e[n];s&&s[n]>o;)s=s._prev;return s?(e._next=s._next,s._next=e):(e._next=t[i],t[i]=e),e._next?e._next._prev=e:t[r]=e,e._prev=s,e.parent=e._dp=t,e},Ke=function(t,e,i,r){i===void 0&&(i="_first"),r===void 0&&(r="_last");var n=e._prev,s=e._next;n?n._next=s:t[i]===e&&(t[i]=s),s?s._prev=n:t[r]===e&&(t[r]=n),e._next=e._prev=e.parent=null},Ft=function(t,e){t.parent&&(!e||t.parent.autoRemoveChildren)&&t.parent.remove&&t.parent.remove(t),t._act=0},Gt=function(t,e){if(t&&(!e||e._end>t._dur||e._start<0))for(var i=t;i;)i._dirty=1,i=i.parent;return t},es=function(t){for(var e=t.parent;e&&e.parent;)e._dirty=1,e.totalDuration(),e=e.parent;return t},hi=function(t,e,i,r){return t._startAt&&(W?t._startAt.revert(Le):t.vars.immediateRender&&!t.vars.autoRevert||t._startAt.render(e,!0,r))},is=function a(t){return!t||t._ts&&a(t.parent)},ji=function(t){return t._repeat?ae(t._tTime,t=t.duration()+t._rDelay)*t:0},ae=function(t,e){var i=Math.floor(t=V(t/e));return t&&i===t?i-1:i},$e=function(t,e){return(t-e._start)*e._ts+(e._ts>=0?0:e._dirty?e.totalDuration():e._tDur)},je=function(t){return t._end=V(t._start+(t._tDur/Math.abs(t._ts||t._rts||R)||0))},He=function(t,e){var i=t._dp;return i&&i.smoothChildTiming&&t._ts&&(t._start=V(i._time-(t._ts>0?e/t._ts:((t._dirty?t.totalDuration():t._tDur)-e)/-t._ts)),je(t),i._dirty||Gt(i,t)),t},Dr=function(t,e){var i;if((e._time||!e._dur&&e._initted||e._start<t._time&&(e._dur||!e.add))&&(i=$e(t.rawTime(),e),(!e._dur||De(0,e.totalDuration(),i)-e._tTime>R)&&e.render(i,!0)),Gt(t,e)._dp&&t._initted&&t._time>=t._dur&&t._ts){if(t._dur<t.duration())for(i=t;i._dp;)i.rawTime()>=0&&i.totalTime(i._tTime),i=i._dp;t._zTime=-R}},xt=function(t,e,i,r){return e.parent&&Ft(e),e._start=V((Ot(i)?i:i||t!==F?ht(t,i,e):t._time)+e._delay),e._end=V(e._start+(e.totalDuration()/Math.abs(e.timeScale())||0)),Mr(t,e,"_first","_last",t._sort?"_start":0),_i(e)||(t._recent=e),r||Dr(t,e),t._ts<0&&He(t,t._tTime),t},Ar=function(t,e){return(lt.ScrollTrigger||Oi("scrollTrigger",e))&<.ScrollTrigger.create(e,t)},Ir=function(t,e,i,r,n){if(Ii(t,e,n),!t._initted)return 1;if(!i&&t._pt&&!W&&(t._dur&&t.vars.lazy!==!1||!t._dur&&t.vars.lazy)&&Sr!==ot.frame)return At.push(t),t._lazy=[n,r],1},rs=function a(t){var e=t.parent;return e&&e._ts&&e._initted&&!e._lock&&(e.rawTime()<0||a(e))},_i=function(t){var e=t.data;return e==="isFromStart"||e==="isStart"},ns=function(t,e,i,r){var n=t.ratio,s=e<0||!e&&(!t._start&&rs(t)&&!(!t._initted&&_i(t))||(t._ts<0||t._dp._ts<0)&&!_i(t))?0:1,o=t._rDelay,u=0,l,f,_;if(o&&t._repeat&&(u=De(0,t._tDur,e),f=ae(u,o),t._yoyo&&f&1&&(s=1-s),f!==ae(t._tTime,o)&&(n=1-s,t.vars.repeatRefresh&&t._initted&&t.invalidate())),s!==n||W||r||t._zTime===R||!e&&t._zTime){if(!t._initted&&Ir(t,e,r,i,u))return;for(_=t._zTime,t._zTime=e||(i?R:0),i||(i=e&&!_),t.ratio=s,t._from&&(s=1-s),t._time=0,t._tTime=u,l=t._pt;l;)l.r(s,l.d),l=l._next;e<0&&hi(t,e,i,!0),t._onUpdate&&!i&&at(t,"onUpdate"),u&&t._repeat&&!i&&t.parent&&at(t,"onRepeat"),(e>=t._tDur||e<0)&&t.ratio===s&&(s&&Ft(t,1),!i&&!W&&(at(t,s?"onComplete":"onReverseComplete",!0),t._prom&&t._prom()))}else t._zTime||(t._zTime=e)},ss=function(t,e,i){var r;if(i>e)for(r=t._first;r&&r._start<=i;){if(r.data==="isPause"&&r._start>e)return r;r=r._next}else for(r=t._last;r&&r._start>=i;){if(r.data==="isPause"&&r._start<e)return r;r=r._prev}},ue=function(t,e,i,r){var n=t._repeat,s=V(e)||0,o=t._tTime/t._tDur;return o&&!r&&(t._time*=s/t._dur),t._dur=s,t._tDur=n?n<0?1e10:V(s*(n+1)+t._rDelay*n):s,o>0&&!r&&He(t,t._tTime=t._tDur*o),t.parent&&je(t),i||Gt(t.parent,t),t},Hi=function(t){return t instanceof H?Gt(t):ue(t,t._dur)},os={_start:0,endTime:we,totalDuration:we},ht=function a(t,e,i){var r=t.labels,n=t._recent||os,s=t.duration()>=_t?n.endTime(!1):t._dur,o,u,l;return $(e)&&(isNaN(e)||e in r)?(u=e.charAt(0),l=e.substr(-1)==="%",o=e.indexOf("="),u==="<"||u===">"?(o>=0&&(e=e.replace(/=/,"")),(u==="<"?n._start:n.endTime(n._repeat>=0))+(parseFloat(e.substr(1))||0)*(l?(o<0?n:i).totalDuration()/100:1)):o<0?(e in r||(r[e]=s),r[e]):(u=parseFloat(e.charAt(o-1)+e.substr(o+1)),l&&i&&(u=u/100*(j(i)?i[0]:i).totalDuration()),o>1?a(t,e.substr(0,o-1),i)+u:s+u)):e==null?s:+e},ve=function(t,e,i){var r=Ot(e[1]),n=(r?2:1)+(t<2?0:1),s=e[n],o,u;if(r&&(s.duration=e[1]),s.parent=i,t){for(o=s,u=i;u&&!("immediateRender"in o);)o=u.vars.defaults||{},u=J(u.vars.inherit)&&u.parent;s.immediateRender=J(o.immediateRender),t<2?s.runBackwards=1:s.startAt=e[n-1]}return new U(e[0],s,e[n+1])},Lt=function(t,e){return t||t===0?e(t):e},De=function(t,e,i){return i<t?t:i>e?e:i},q=function(t,e){return!$(t)||!(e=jn.exec(t))?"":e[1]},as=function(t,e,i){return Lt(i,function(r){return De(t,e,r)})},ci=[].slice,Er=function(t,e){return t&&bt(t)&&"length"in t&&(!e&&!t.length||t.length-1 in t&&bt(t[0]))&&!t.nodeType&&t!==yt},us=function(t,e,i){return i===void 0&&(i=[]),t.forEach(function(r){var n;return $(r)&&!e||Er(r,1)?(n=i).push.apply(n,ct(r)):i.push(r)})||i},ct=function(t,e,i){return E&&!e&&E.selector?E.selector(t):$(t)&&!i&&(li||!le())?ci.call((e||Pi).querySelectorAll(t),0):j(t)?us(t,i):Er(t)?ci.call(t,0):t?[t]:[]},di=function(t){return t=ct(t)[0]||be("Invalid scope")||{},function(e){var i=t.current||t.nativeElement||t;return ct(e,i.querySelectorAll?i:i===t?be("Invalid scope")||Pi.createElement("div"):t)}},Fr=function(t){return t.sort(function(){return .5-Math.random()})},zr=function(t){if(L(t))return t;var e=bt(t)?t:{each:t},i=Wt(e.ease),r=e.from||0,n=parseFloat(e.base)||0,s={},o=r>0&&r<1,u=isNaN(r)||o,l=e.axis,f=r,_=r;return $(r)?f=_={center:.5,edges:.5,end:1}[r]||0:!o&&u&&(f=r[0],_=r[1]),function(c,d,m){var h=(m||e).length,p=s[h],x,y,T,v,g,k,w,S,b;if(!p){if(b=e.grid==="auto"?0:(e.grid||[1,_t])[1],!b){for(w=-_t;w<(w=m[b++].getBoundingClientRect().left)&&b<h;);b<h&&b--}for(p=s[h]=[],x=u?Math.min(b,h)*f-.5:r%b,y=b===_t?0:u?h*_/b-.5:r/b|0,w=0,S=_t,k=0;k<h;k++)T=k%b-x,v=y-(k/b|0),p[k]=g=l?Math.abs(l==="y"?v:T):gr(T*T+v*v),g>w&&(w=g),g<S&&(S=g);r==="random"&&Fr(p),p.max=w-S,p.min=S,p.v=h=(parseFloat(e.amount)||parseFloat(e.each)*(b>h?h-1:l?l==="y"?h/b:b:Math.max(b,h/b))||0)*(r==="edges"?-1:1),p.b=h<0?n-h:n,p.u=q(e.amount||e.each)||0,i=i&&h<0?Wr(i):i}return h=(p[c]-p.min)/p.max||0,V(p.b+(i?i(h):h)*p.v)+p.u}},pi=function(t){var e=Math.pow(10,((t+"").split(".")[1]||"").length);return function(i){var r=V(Math.round(parseFloat(i)/t)*t*e);return(r-r%1)/e+(Ot(i)?0:q(i))}},Lr=function(t,e){var i=j(t),r,n;return!i&&bt(t)&&(r=i=t.radius||_t,t.values?(t=ct(t.values),(n=!Ot(t[0]))&&(r*=r)):t=pi(t.increment)),Lt(e,i?L(t)?function(s){return n=t(s),Math.abs(n-s)<=r?n:s}:function(s){for(var o=parseFloat(n?s.x:s),u=parseFloat(n?s.y:0),l=_t,f=0,_=t.length,c,d;_--;)n?(c=t[_].x-o,d=t[_].y-u,c=c*c+d*d):c=Math.abs(t[_]-o),c<l&&(l=c,f=_);return f=!r||l<=r?t[f]:s,n||f===s||Ot(s)?f:f+q(s)}:pi(t))},Nr=function(t,e,i,r){return Lt(j(t)?!e:i===!0?!!(i=0):!r,function(){return j(t)?t[~~(Math.random()*t.length)]:(i=i||1e-5)&&(r=i<1?Math.pow(10,(i+"").length-2):1)&&Math.floor(Math.round((t-i/2+Math.random()*(e-t+i*.99))/i)*i*r)/r})},ls=function(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];return function(r){return e.reduce(function(n,s){return s(n)},r)}},fs=function(t,e){return function(i){return t(parseFloat(i))+(e||q(i))}},hs=function(t,e,i){return Ur(t,e,0,1,i)},Br=function(t,e,i){return Lt(i,function(r){return t[~~e(r)]})},_s=function a(t,e,i){var r=e-t;return j(t)?Br(t,a(0,t.length),e):Lt(i,function(n){return(r+(n-t)%r)%r+t})},cs=function a(t,e,i){var r=e-t,n=r*2;return j(t)?Br(t,a(0,t.length-1),e):Lt(i,function(s){return s=(n+(s-t)%n)%n||0,t+(s>r?n-s:s)})},ke=function(t){for(var e=0,i="",r,n,s,o;~(r=t.indexOf("random(",e));)s=t.indexOf(")",r),o=t.charAt(r+7)==="[",n=t.substr(r+7,s-r-7).match(o?Tr:ui),i+=t.substr(e,r-e)+Nr(o?n:+n[0],o?0:+n[1],+n[2]||1e-5),e=s+1;return i+t.substr(e,t.length-e)},Ur=function(t,e,i,r,n){var s=e-t,o=r-i;return Lt(n,function(u){return i+((u-t)/s*o||0)})},ds=function a(t,e,i,r){var n=isNaN(t+e)?0:function(d){return(1-d)*t+d*e};if(!n){var s=$(t),o={},u,l,f,_,c;if(i===!0&&(r=1)&&(i=null),s)t={p:t},e={p:e};else if(j(t)&&!j(e)){for(f=[],_=t.length,c=_-2,l=1;l<_;l++)f.push(a(t[l-1],t[l]));_--,n=function(m){m*=_;var h=Math.min(c,~~m);return f[h](m-h)},i=e}else r||(t=oe(j(t)?[]:{},t));if(!f){for(u in e)Ai.call(o,t,u,"get",e[u]);n=function(m){return zi(m,o)||(s?t.p:t)}}}return Lt(i,n)},Qi=function(t,e,i){var r=t.labels,n=_t,s,o,u;for(s in r)o=r[s]-e,o<0==!!i&&o&&n>(o=Math.abs(o))&&(u=s,n=o);return u},at=function(t,e,i){var r=t.vars,n=r[e],s=E,o=t._ctx,u,l,f;if(n)return u=r[e+"Params"],l=r.callbackScope||t,i&&At.length&&Ye(),o&&(E=o),f=u?n.apply(l,u):n.call(l),E=s,f},ge=function(t){return Ft(t),t.scrollTrigger&&t.scrollTrigger.kill(!!W),t.progress()<1&&at(t,"onInterrupt"),t},te,Vr=[],Yr=function(t){if(t)if(t=!t.name&&t.default||t,Si()||t.headless){var e=t.name,i=L(t),r=e&&!i&&t.init?function(){this._props=[]}:t,n={init:we,render:zi,add:Ai,kill:Ms,modifier:Rs,rawVars:0},s={targetTest:0,get:0,getSetter:Fi,aliases:{},register:0};if(le(),t!==r){if(st[e])return;ft(r,ft(Xe(t,n),s)),oe(r.prototype,oe(n,Xe(t,s))),st[r.prop=e]=r,t.targetTest&&(Ne.push(r),Ci[e]=1),e=(e==="css"?"CSS":e.charAt(0).toUpperCase()+e.substr(1))+"Plugin"}kr(e,r),t.register&&t.register(rt,r,et)}else Vr.push(t)},C=255,ye={aqua:[0,C,C],lime:[0,C,0],silver:[192,192,192],black:[0,0,0],maroon:[128,0,0],teal:[0,128,128],blue:[0,0,C],navy:[0,0,128],white:[C,C,C],olive:[128,128,0],yellow:[C,C,0],orange:[C,165,0],gray:[128,128,128],purple:[128,0,128],green:[0,128,0],red:[C,0,0],pink:[C,192,203],cyan:[0,C,C],transparent:[C,C,C,0]},ti=function(t,e,i){return t+=t<0?1:t>1?-1:0,(t*6<1?e+(i-e)*t*6:t<.5?i:t*3<2?e+(i-e)*(2/3-t)*6:e)*C+.5|0},Xr=function(t,e,i){var r=t?Ot(t)?[t>>16,t>>8&C,t&C]:0:ye.black,n,s,o,u,l,f,_,c,d,m;if(!r){if(t.substr(-1)===","&&(t=t.substr(0,t.length-1)),ye[t])r=ye[t];else if(t.charAt(0)==="#"){if(t.length<6&&(n=t.charAt(1),s=t.charAt(2),o=t.charAt(3),t="#"+n+n+s+s+o+o+(t.length===5?t.charAt(4)+t.charAt(4):"")),t.length===9)return r=parseInt(t.substr(1,6),16),[r>>16,r>>8&C,r&C,parseInt(t.substr(7),16)/255];t=parseInt(t.substr(1),16),r=[t>>16,t>>8&C,t&C]}else if(t.substr(0,3)==="hsl"){if(r=m=t.match(ui),!e)u=+r[0]%360/360,l=+r[1]/100,f=+r[2]/100,s=f<=.5?f*(l+1):f+l-f*l,n=f*2-s,r.length>3&&(r[3]*=1),r[0]=ti(u+1/3,n,s),r[1]=ti(u,n,s),r[2]=ti(u-1/3,n,s);else if(~t.indexOf("="))return r=t.match(xr),i&&r.length<4&&(r[3]=1),r}else r=t.match(ui)||ye.transparent;r=r.map(Number)}return e&&!m&&(n=r[0]/C,s=r[1]/C,o=r[2]/C,_=Math.max(n,s,o),c=Math.min(n,s,o),f=(_+c)/2,_===c?u=l=0:(d=_-c,l=f>.5?d/(2-_-c):d/(_+c),u=_===n?(s-o)/d+(s<o?6:0):_===s?(o-n)/d+2:(n-s)/d+4,u*=60),r[0]=~~(u+.5),r[1]=~~(l*100+.5),r[2]=~~(f*100+.5)),i&&r.length<4&&(r[3]=1),r},$r=function(t){var e=[],i=[],r=-1;return t.split(It).forEach(function(n){var s=n.match(Jt)||[];e.push.apply(e,s),i.push(r+=s.length+1)}),e.c=i,e},Zi=function(t,e,i){var r="",n=(t+r).match(It),s=e?"hsla(":"rgba(",o=0,u,l,f,_;if(!n)return t;if(n=n.map(function(c){return(c=Xr(c,e,1))&&s+(e?c[0]+","+c[1]+"%,"+c[2]+"%,"+c[3]:c.join(","))+")"}),i&&(f=$r(t),u=i.c,u.join(r)!==f.c.join(r)))for(l=t.replace(It,"1").split(Jt),_=l.length-1;o<_;o++)r+=l[o]+(~u.indexOf(o)?n.shift()||s+"0,0,0,0)":(f.length?f:n.length?n:i).shift());if(!l)for(l=t.split(It),_=l.length-1;o<_;o++)r+=l[o]+n[o];return r+l[_]},It=(function(){var a="(?:\\b(?:(?:rgb|rgba|hsl|hsla)\\(.+?\\))|\\B#(?:[0-9a-f]{3,4}){1,2}\\b",t;for(t in ye)a+="|"+t+"\\b";return new RegExp(a+")","gi")})(),ps=/hsl[a]?\(/,Gr=function(t){var e=t.join(" "),i;if(It.lastIndex=0,It.test(e))return i=ps.test(e),t[1]=Zi(t[1],i),t[0]=Zi(t[0],i,$r(t[1])),!0},Se,ot=(function(){var a=Date.now,t=500,e=33,i=a(),r=i,n=1e3/240,s=n,o=[],u,l,f,_,c,d,m=function h(p){var x=a()-r,y=p===!0,T,v,g,k;if((x>t||x<0)&&(i+=x-e),r+=x,g=r-i,T=g-s,(T>0||y)&&(k=++_.frame,c=g-_.time*1e3,_.time=g=g/1e3,s+=T+(T>=n?4:n-T),v=1),y||(u=l(h)),v)for(d=0;d<o.length;d++)o[d](g,c,k,p)};return _={time:0,frame:0,tick:function(){m(!0)},deltaRatio:function(p){return c/(1e3/(p||60))},wake:function(){br&&(!li&&Si()&&(yt=li=window,Pi=yt.document||{},lt.gsap=rt,(yt.gsapVersions||(yt.gsapVersions=[])).push(rt.version),wr(Ve||yt.GreenSockGlobals||!yt.gsap&&yt||{}),Vr.forEach(Yr)),f=typeof requestAnimationFrame<"u"&&requestAnimationFrame,u&&_.sleep(),l=f||function(p){return setTimeout(p,s-_.time*1e3+1|0)},Se=1,m(2))},sleep:function(){(f?cancelAnimationFrame:clearTimeout)(u),Se=0,l=we},lagSmoothing:function(p,x){t=p||1/0,e=Math.min(x||33,t)},fps:function(p){n=1e3/(p||240),s=_.time*1e3+n},add:function(p,x,y){var T=x?function(v,g,k,w){p(v,g,k,w),_.remove(T)}:p;return _.remove(p),o[y?"unshift":"push"](T),le(),T},remove:function(p,x){~(x=o.indexOf(p))&&o.splice(x,1)&&d>=x&&d--},_listeners:o},_})(),le=function(){return!Se&&ot.wake()},P={},ms=/^[\d.\-M][\d.\-,\s]/,gs=/["']/g,ys=function(t){for(var e={},i=t.substr(1,t.length-3).split(":"),r=i[0],n=1,s=i.length,o,u,l;n<s;n++)u=i[n],o=n!==s-1?u.lastIndexOf(","):u.length,l=u.substr(0,o),e[r]=isNaN(l)?l.replace(gs,"").trim():+l,r=u.substr(o+1).trim();return e},xs=function(t){var e=t.indexOf("(")+1,i=t.indexOf(")"),r=t.indexOf("(",e);return t.substring(e,~r&&r<i?t.indexOf(")",i+1):i)},vs=function(t){var e=(t+"").split("("),i=P[e[0]];return i&&e.length>1&&i.config?i.config.apply(null,~t.indexOf("{")?[ys(e[1])]:xs(t).split(",").map(Cr)):P._CE&&ms.test(t)?P._CE("",t):i},Wr=function(t){return function(e){return 1-t(1-e)}},qr=function a(t,e){for(var i=t._first,r;i;)i instanceof H?a(i,e):i.vars.yoyoEase&&(!i._yoyo||!i._repeat)&&i._yoyo!==e&&(i.timeline?a(i.timeline,e):(r=i._ease,i._ease=i._yEase,i._yEase=r,i._yoyo=e)),i=i._next},Wt=function(t,e){return t&&(L(t)?t:P[t]||vs(t))||e},jt=function(t,e,i,r){i===void 0&&(i=function(u){return 1-e(1-u)}),r===void 0&&(r=function(u){return u<.5?e(u*2)/2:1-e((1-u)*2)/2});var n={easeIn:e,easeOut:i,easeInOut:r},s;return tt(t,function(o){P[o]=lt[o]=n,P[s=o.toLowerCase()]=i;for(var u in n)P[s+(u==="easeIn"?".in":u==="easeOut"?".out":".inOut")]=P[o+"."+u]=n[u]}),n},Kr=function(t){return function(e){return e<.5?(1-t(1-e*2))/2:.5+t((e-.5)*2)/2}},ei=function a(t,e,i){var r=e>=1?e:1,n=(i||(t?.3:.45))/(e<1?e:1),s=n/ai*(Math.asin(1/r)||0),o=function(f){return f===1?1:r*Math.pow(2,-10*f)*Kn((f-s)*n)+1},u=t==="out"?o:t==="in"?function(l){return 1-o(1-l)}:Kr(o);return n=ai/n,u.config=function(l,f){return a(t,l,f)},u},ii=function a(t,e){e===void 0&&(e=1.70158);var i=function(s){return s?--s*s*((e+1)*s+e)+1:0},r=t==="out"?i:t==="in"?function(n){return 1-i(1-n)}:Kr(i);return r.config=function(n){return a(t,n)},r};tt("Linear,Quad,Cubic,Quart,Quint,Strong",function(a,t){var e=t<5?t+1:t;jt(a+",Power"+(e-1),t?function(i){return Math.pow(i,e)}:function(i){return i},function(i){return 1-Math.pow(1-i,e)},function(i){return i<.5?Math.pow(i*2,e)/2:1-Math.pow((1-i)*2,e)/2})});P.Linear.easeNone=P.none=P.Linear.easeIn;jt("Elastic",ei("in"),ei("out"),ei());(function(a,t){var e=1/t,i=2*e,r=2.5*e,n=function(o){return o<e?a*o*o:o<i?a*Math.pow(o-1.5/t,2)+.75:o<r?a*(o-=2.25/t)*o+.9375:a*Math.pow(o-2.625/t,2)+.984375};jt("Bounce",function(s){return 1-n(1-s)},n)})(7.5625,2.75);jt("Expo",function(a){return Math.pow(2,10*(a-1))*a+a*a*a*a*a*a*(1-a)});jt("Circ",function(a){return-(gr(1-a*a)-1)});jt("Sine",function(a){return a===1?1:-qn(a*Gn)+1});jt("Back",ii("in"),ii("out"),ii());P.SteppedEase=P.steps=lt.SteppedEase={config:function(t,e){t===void 0&&(t=1);var i=1/t,r=t+(e?0:1),n=e?1:0,s=1-R;return function(o){return((r*De(0,s,o)|0)+n)*i}}};se.ease=P["quad.out"];tt("onComplete,onUpdate,onStart,onRepeat,onReverseComplete,onInterrupt",function(a){return Ri+=a+","+a+"Params,"});var jr=function(t,e){this.id=Wn++,t._gsap=this,this.target=t,this.harness=e,this.get=e?e.get:Pr,this.set=e?e.getSetter:Fi},Pe=(function(){function a(e){this.vars=e,this._delay=+e.delay||0,(this._repeat=e.repeat===1/0?-2:e.repeat||0)&&(this._rDelay=e.repeatDelay||0,this._yoyo=!!e.yoyo||!!e.yoyoEase),this._ts=1,ue(this,+e.duration,1,1),this.data=e.data,E&&(this._ctx=E,E.data.push(this)),Se||ot.wake()}var t=a.prototype;return t.delay=function(i){return i||i===0?(this.parent&&this.parent.smoothChildTiming&&this.startTime(this._start+i-this._delay),this._delay=i,this):this._delay},t.duration=function(i){return arguments.length?this.totalDuration(this._repeat>0?i+(i+this._rDelay)*this._repeat:i):this.totalDuration()&&this._dur},t.totalDuration=function(i){return arguments.length?(this._dirty=0,ue(this,this._repeat<0?i:(i-this._repeat*this._rDelay)/(this._repeat+1))):this._tDur},t.totalTime=function(i,r){if(le(),!arguments.length)return this._tTime;var n=this._dp;if(n&&n.smoothChildTiming&&this._ts){for(He(this,i),!n._dp||n.parent||Dr(n,this);n&&n.parent;)n.parent._time!==n._start+(n._ts>=0?n._tTime/n._ts:(n.totalDuration()-n._tTime)/-n._ts)&&n.totalTime(n._tTime,!0),n=n.parent;!this.parent&&this._dp.autoRemoveChildren&&(this._ts>0&&i<this._tDur||this._ts<0&&i>0||!this._tDur&&!i)&&xt(this._dp,this,this._start-this._delay)}return(this._tTime!==i||!this._dur&&!r||this._initted&&Math.abs(this._zTime)===R||!i&&!this._initted&&(this.add||this._ptLookup))&&(this._ts||(this._pTime=i),Or(this,i,r)),this},t.time=function(i,r){return arguments.length?this.totalTime(Math.min(this.totalDuration(),i+ji(this))%(this._dur+this._rDelay)||(i?this._dur:0),r):this._time},t.totalProgress=function(i,r){return arguments.length?this.totalTime(this.totalDuration()*i,r):this.totalDuration()?Math.min(1,this._tTime/this._tDur):this.rawTime()>=0&&this._initted?1:0},t.progress=function(i,r){return arguments.length?this.totalTime(this.duration()*(this._yoyo&&!(this.iteration()&1)?1-i:i)+ji(this),r):this.duration()?Math.min(1,this._time/this._dur):this.rawTime()>0?1:0},t.iteration=function(i,r){var n=this.duration()+this._rDelay;return arguments.length?this.totalTime(this._time+(i-1)*n,r):this._repeat?ae(this._tTime,n)+1:1},t.timeScale=function(i,r){if(!arguments.length)return this._rts===-R?0:this._rts;if(this._rts===i)return this;var n=this.parent&&this._ts?$e(this.parent._time,this):this._tTime;return this._rts=+i||0,this._ts=this._ps||i===-R?0:this._rts,this.totalTime(De(-Math.abs(this._delay),this.totalDuration(),n),r!==!1),je(this),es(this)},t.paused=function(i){return arguments.length?(this._ps!==i&&(this._ps=i,i?(this._pTime=this._tTime||Math.max(-this._delay,this.rawTime()),this._ts=this._act=0):(le(),this._ts=this._rts,this.totalTime(this.parent&&!this.parent.smoothChildTiming?this.rawTime():this._tTime||this._pTime,this.progress()===1&&Math.abs(this._zTime)!==R&&(this._tTime-=R)))),this):this._ps},t.startTime=function(i){if(arguments.length){this._start=i;var r=this.parent||this._dp;return r&&(r._sort||!this.parent)&&xt(r,this,i-this._delay),this}return this._start},t.endTime=function(i){return this._start+(J(i)?this.totalDuration():this.duration())/Math.abs(this._ts||1)},t.rawTime=function(i){var r=this.parent||this._dp;return r?i&&(!this._ts||this._repeat&&this._time&&this.totalProgress()<1)?this._tTime%(this._dur+this._rDelay):this._ts?$e(r.rawTime(i),this):this._tTime:this._tTime},t.revert=function(i){i===void 0&&(i=Qn);var r=W;return W=i,Di(this)&&(this.timeline&&this.timeline.revert(i),this.totalTime(-.01,i.suppressEvents)),this.data!=="nested"&&i.kill!==!1&&this.kill(),W=r,this},t.globalTime=function(i){for(var r=this,n=arguments.length?i:r.rawTime();r;)n=r._start+n/(Math.abs(r._ts)||1),r=r._dp;return!this.parent&&this._sat?this._sat.globalTime(i):n},t.repeat=function(i){return arguments.length?(this._repeat=i===1/0?-2:i,Hi(this)):this._repeat===-2?1/0:this._repeat},t.repeatDelay=function(i){if(arguments.length){var r=this._time;return this._rDelay=i,Hi(this),r?this.time(r):this}return this._rDelay},t.yoyo=function(i){return arguments.length?(this._yoyo=i,this):this._yoyo},t.seek=function(i,r){return this.totalTime(ht(this,i),J(r))},t.restart=function(i,r){return this.play().totalTime(i?-this._delay:0,J(r)),this._dur||(this._zTime=-R),this},t.play=function(i,r){return i!=null&&this.seek(i,r),this.reversed(!1).paused(!1)},t.reverse=function(i,r){return i!=null&&this.seek(i||this.totalDuration(),r),this.reversed(!0).paused(!1)},t.pause=function(i,r){return i!=null&&this.seek(i,r),this.paused(!0)},t.resume=function(){return this.paused(!1)},t.reversed=function(i){return arguments.length?(!!i!==this.reversed()&&this.timeScale(-this._rts||(i?-R:0)),this):this._rts<0},t.invalidate=function(){return this._initted=this._act=0,this._zTime=-R,this},t.isActive=function(){var i=this.parent||this._dp,r=this._start,n;return!!(!i||this._ts&&this._initted&&i.isActive()&&(n=i.rawTime(!0))>=r&&n<this.endTime(!0)-R)},t.eventCallback=function(i,r,n){var s=this.vars;return arguments.length>1?(r?(s[i]=r,n&&(s[i+"Params"]=n),i==="onUpdate"&&(this._onUpdate=r)):delete s[i],this):s[i]},t.then=function(i){var r=this;return new Promise(function(n){var s=L(i)?i:Rr,o=function(){var l=r.then;r.then=null,L(s)&&(s=s(r))&&(s.then||s===r)&&(r.then=l),n(s),r.then=l};r._initted&&r.totalProgress()===1&&r._ts>=0||!r._tTime&&r._ts<0?o():r._prom=o})},t.kill=function(){ge(this)},a})();ft(Pe.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:-R,_prom:0,_ps:!1,_rts:1});var H=(function(a){mr(t,a);function t(i,r){var n;return i===void 0&&(i={}),n=a.call(this,i)||this,n.labels={},n.smoothChildTiming=!!i.smoothChildTiming,n.autoRemoveChildren=!!i.autoRemoveChildren,n._sort=J(i.sortChildren),F&&xt(i.parent||F,kt(n),r),i.reversed&&n.reverse(),i.paused&&n.paused(!0),i.scrollTrigger&&Ar(kt(n),i.scrollTrigger),n}var e=t.prototype;return e.to=function(r,n,s){return ve(0,arguments,this),this},e.from=function(r,n,s){return ve(1,arguments,this),this},e.fromTo=function(r,n,s,o){return ve(2,arguments,this),this},e.set=function(r,n,s){return n.duration=0,n.parent=this,xe(n).repeatDelay||(n.repeat=0),n.immediateRender=!!n.immediateRender,new U(r,n,ht(this,s),1),this},e.call=function(r,n,s){return xt(this,U.delayedCall(0,r,n),s)},e.staggerTo=function(r,n,s,o,u,l,f){return s.duration=n,s.stagger=s.stagger||o,s.onComplete=l,s.onCompleteParams=f,s.parent=this,new U(r,s,ht(this,u)),this},e.staggerFrom=function(r,n,s,o,u,l,f){return s.runBackwards=1,xe(s).immediateRender=J(s.immediateRender),this.staggerTo(r,n,s,o,u,l,f)},e.staggerFromTo=function(r,n,s,o,u,l,f,_){return o.startAt=s,xe(o).immediateRender=J(o.immediateRender),this.staggerTo(r,n,o,u,l,f,_)},e.render=function(r,n,s){var o=this._time,u=this._dirty?this.totalDuration():this._tDur,l=this._dur,f=r<=0?0:V(r),_=this._zTime<0!=r<0&&(this._initted||!l),c,d,m,h,p,x,y,T,v,g,k,w;if(this!==F&&f>u&&r>=0&&(f=u),f!==this._tTime||s||_){if(o!==this._time&&l&&(f+=this._time-o,r+=this._time-o),c=f,v=this._start,T=this._ts,x=!T,_&&(l||(o=this._zTime),(r||!n)&&(this._zTime=r)),this._repeat){if(k=this._yoyo,p=l+this._rDelay,this._repeat<-1&&r<0)return this.totalTime(p*100+r,n,s);if(c=V(f%p),f===u?(h=this._repeat,c=l):(g=V(f/p),h=~~g,h&&h===g&&(c=l,h--),c>l&&(c=l)),g=ae(this._tTime,p),!o&&this._tTime&&g!==h&&this._tTime-g*p-this._dur<=0&&(g=h),k&&h&1&&(c=l-c,w=1),h!==g&&!this._lock){var S=k&&g&1,b=S===(k&&h&1);if(h<g&&(S=!S),o=S?0:f%l?l:f,this._lock=1,this.render(o||(w?0:V(h*p)),n,!l)._lock=0,this._tTime=f,!n&&this.parent&&at(this,"onRepeat"),this.vars.repeatRefresh&&!w&&(this.invalidate()._lock=1),o&&o!==this._time||x!==!this._ts||this.vars.onRepeat&&!this.parent&&!this._act)return this;if(l=this._dur,u=this._tDur,b&&(this._lock=2,o=S?l:-1e-4,this.render(o,!0),this.vars.repeatRefresh&&!w&&this.invalidate()),this._lock=0,!this._ts&&!x)return this;qr(this,w)}}if(this._hasPause&&!this._forcing&&this._lock<2&&(y=ss(this,V(o),V(c)),y&&(f-=c-(c=y._start))),this._tTime=f,this._time=c,this._act=!T,this._initted||(this._onUpdate=this.vars.onUpdate,this._initted=1,this._zTime=r,o=0),!o&&f&&!n&&!g&&(at(this,"onStart"),this._tTime!==f))return this;if(c>=o&&r>=0)for(d=this._first;d;){if(m=d._next,(d._act||c>=d._start)&&d._ts&&y!==d){if(d.parent!==this)return this.render(r,n,s);if(d.render(d._ts>0?(c-d._start)*d._ts:(d._dirty?d.totalDuration():d._tDur)+(c-d._start)*d._ts,n,s),c!==this._time||!this._ts&&!x){y=0,m&&(f+=this._zTime=-R);break}}d=m}else{d=this._last;for(var O=r<0?r:c;d;){if(m=d._prev,(d._act||O<=d._end)&&d._ts&&y!==d){if(d.parent!==this)return this.render(r,n,s);if(d.render(d._ts>0?(O-d._start)*d._ts:(d._dirty?d.totalDuration():d._tDur)+(O-d._start)*d._ts,n,s||W&&Di(d)),c!==this._time||!this._ts&&!x){y=0,m&&(f+=this._zTime=O?-R:R);break}}d=m}}if(y&&!n&&(this.pause(),y.render(c>=o?0:-R)._zTime=c>=o?1:-1,this._ts))return this._start=v,je(this),this.render(r,n,s);this._onUpdate&&!n&&at(this,"onUpdate",!0),(f===u&&this._tTime>=this.totalDuration()||!f&&o)&&(v===this._start||Math.abs(T)!==Math.abs(this._ts))&&(this._lock||((r||!l)&&(f===u&&this._ts>0||!f&&this._ts<0)&&Ft(this,1),!n&&!(r<0&&!o)&&(f||o||!u)&&(at(this,f===u&&r>=0?"onComplete":"onReverseComplete",!0),this._prom&&!(f<u&&this.timeScale()>0)&&this._prom())))}return this},e.add=function(r,n){var s=this;if(Ot(n)||(n=ht(this,n,r)),!(r instanceof Pe)){if(j(r))return r.forEach(function(o){return s.add(o,n)}),this;if($(r))return this.addLabel(r,n);if(L(r))r=U.delayedCall(0,r);else return this}return this!==r?xt(this,r,n):this},e.getChildren=function(r,n,s,o){r===void 0&&(r=!0),n===void 0&&(n=!0),s===void 0&&(s=!0),o===void 0&&(o=-_t);for(var u=[],l=this._first;l;)l._start>=o&&(l instanceof U?n&&u.push(l):(s&&u.push(l),r&&u.push.apply(u,l.getChildren(!0,n,s)))),l=l._next;return u},e.getById=function(r){for(var n=this.getChildren(1,1,1),s=n.length;s--;)if(n[s].vars.id===r)return n[s]},e.remove=function(r){return $(r)?this.removeLabel(r):L(r)?this.killTweensOf(r):(r.parent===this&&Ke(this,r),r===this._recent&&(this._recent=this._last),Gt(this))},e.totalTime=function(r,n){return arguments.length?(this._forcing=1,!this._dp&&this._ts&&(this._start=V(ot.time-(this._ts>0?r/this._ts:(this.totalDuration()-r)/-this._ts))),a.prototype.totalTime.call(this,r,n),this._forcing=0,this):this._tTime},e.addLabel=function(r,n){return this.labels[r]=ht(this,n),this},e.removeLabel=function(r){return delete this.labels[r],this},e.addPause=function(r,n,s){var o=U.delayedCall(0,n||we,s);return o.data="isPause",this._hasPause=1,xt(this,o,ht(this,r))},e.removePause=function(r){var n=this._first;for(r=ht(this,r);n;)n._start===r&&n.data==="isPause"&&Ft(n),n=n._next},e.killTweensOf=function(r,n,s){for(var o=this.getTweensOf(r,s),u=o.length;u--;)Rt!==o[u]&&o[u].kill(r,n);return this},e.getTweensOf=function(r,n){for(var s=[],o=ct(r),u=this._first,l=Ot(n),f;u;)u instanceof U?Zn(u._targets,o)&&(l?(!Rt||u._initted&&u._ts)&&u.globalTime(0)<=n&&u.globalTime(u.totalDuration())>n:!n||u.isActive())&&s.push(u):(f=u.getTweensOf(o,n)).length&&s.push.apply(s,f),u=u._next;return s},e.tweenTo=function(r,n){n=n||{};var s=this,o=ht(s,r),u=n,l=u.startAt,f=u.onStart,_=u.onStartParams,c=u.immediateRender,d,m=U.to(s,ft({ease:n.ease||"none",lazy:!1,immediateRender:!1,time:o,overwrite:"auto",duration:n.duration||Math.abs((o-(l&&"time"in l?l.time:s._time))/s.timeScale())||R,onStart:function(){if(s.pause(),!d){var p=n.duration||Math.abs((o-(l&&"time"in l?l.time:s._time))/s.timeScale());m._dur!==p&&ue(m,p,0,1).render(m._time,!0,!0),d=1}f&&f.apply(m,_||[])}},n));return c?m.render(0):m},e.tweenFromTo=function(r,n,s){return this.tweenTo(n,ft({startAt:{time:ht(this,r)}},s))},e.recent=function(){return this._recent},e.nextLabel=function(r){return r===void 0&&(r=this._time),Qi(this,ht(this,r))},e.previousLabel=function(r){return r===void 0&&(r=this._time),Qi(this,ht(this,r),1)},e.currentLabel=function(r){return arguments.length?this.seek(r,!0):this.previousLabel(this._time+R)},e.shiftChildren=function(r,n,s){s===void 0&&(s=0);for(var o=this._first,u=this.labels,l;o;)o._start>=s&&(o._start+=r,o._end+=r),o=o._next;if(n)for(l in u)u[l]>=s&&(u[l]+=r);return Gt(this)},e.invalidate=function(r){var n=this._first;for(this._lock=0;n;)n.invalidate(r),n=n._next;return a.prototype.invalidate.call(this,r)},e.clear=function(r){r===void 0&&(r=!0);for(var n=this._first,s;n;)s=n._next,this.remove(n),n=s;return this._dp&&(this._time=this._tTime=this._pTime=0),r&&(this.labels={}),Gt(this)},e.totalDuration=function(r){var n=0,s=this,o=s._last,u=_t,l,f,_;if(arguments.length)return s.timeScale((s._repeat<0?s.duration():s.totalDuration())/(s.reversed()?-r:r));if(s._dirty){for(_=s.parent;o;)l=o._prev,o._dirty&&o.totalDuration(),f=o._start,f>u&&s._sort&&o._ts&&!s._lock?(s._lock=1,xt(s,o,f-o._delay,1)._lock=0):u=f,f<0&&o._ts&&(n-=f,(!_&&!s._dp||_&&_.smoothChildTiming)&&(s._start+=f/s._ts,s._time-=f,s._tTime-=f),s.shiftChildren(-f,!1,-1/0),u=0),o._end>n&&o._ts&&(n=o._end),o=l;ue(s,s===F&&s._time>n?s._time:n,1,1),s._dirty=0}return s._tDur},t.updateRoot=function(r){if(F._ts&&(Or(F,$e(r,F)),Sr=ot.frame),ot.frame>=qi){qi+=ut.autoSleep||120;var n=F._first;if((!n||!n._ts)&&ut.autoSleep&&ot._listeners.length<2){for(;n&&!n._ts;)n=n._next;n||ot.sleep()}}},t})(Pe);ft(H.prototype,{_lock:0,_hasPause:0,_forcing:0});var Ts=function(t,e,i,r,n,s,o){var u=new et(this._pt,t,e,0,1,en,null,n),l=0,f=0,_,c,d,m,h,p,x,y;for(u.b=i,u.e=r,i+="",r+="",(x=~r.indexOf("random("))&&(r=ke(r)),s&&(y=[i,r],s(y,t,e),i=y[0],r=y[1]),c=i.match(Ze)||[];_=Ze.exec(r);)m=_[0],h=r.substring(l,_.index),d?d=(d+1)%5:h.substr(-5)==="rgba("&&(d=1),m!==c[f++]&&(p=parseFloat(c[f-1])||0,u._pt={_next:u._pt,p:h||f===1?h:",",s:p,c:m.charAt(1)==="="?ee(p,m)-p:parseFloat(m)-p,m:d&&d<4?Math.round:0},l=Ze.lastIndex);return u.c=l<r.length?r.substring(l,r.length):"",u.fp=o,(vr.test(r)||x)&&(u.e=0),this._pt=u,u},Ai=function(t,e,i,r,n,s,o,u,l,f){L(r)&&(r=r(n||0,t,s));var _=t[e],c=i!=="get"?i:L(_)?l?t[e.indexOf("set")||!L(t["get"+e.substr(3)])?e:"get"+e.substr(3)](l):t[e]():_,d=L(_)?l?Ps:Jr:Ei,m;if($(r)&&(~r.indexOf("random(")&&(r=ke(r)),r.charAt(1)==="="&&(m=ee(c,r)+(q(c)||0),(m||m===0)&&(r=m))),!f||c!==r||mi)return!isNaN(c*r)&&r!==""?(m=new et(this._pt,t,e,+c||0,r-(c||0),typeof _=="boolean"?Cs:tn,0,d),l&&(m.fp=l),o&&m.modifier(o,this,t),this._pt=m):(!_&&!(e in t)&&Oi(e,r),Ts.call(this,t,e,c,r,d,u||ut.stringFilter,l))},bs=function(t,e,i,r,n){if(L(t)&&(t=Te(t,n,e,i,r)),!bt(t)||t.style&&t.nodeType||j(t)||yr(t))return $(t)?Te(t,n,e,i,r):t;var s={},o;for(o in t)s[o]=Te(t[o],n,e,i,r);return s},Hr=function(t,e,i,r,n,s){var o,u,l,f;if(st[t]&&(o=new st[t]).init(n,o.rawVars?e[t]:bs(e[t],r,n,s,i),i,r,s)!==!1&&(i._pt=u=new et(i._pt,n,t,0,1,o.render,o,0,o.priority),i!==te))for(l=i._ptLookup[i._targets.indexOf(n)],f=o._props.length;f--;)l[o._props[f]]=u;return o},Rt,mi,Ii=function a(t,e,i){var r=t.vars,n=r.ease,s=r.startAt,o=r.immediateRender,u=r.lazy,l=r.onUpdate,f=r.runBackwards,_=r.yoyoEase,c=r.keyframes,d=r.autoRevert,m=t._dur,h=t._startAt,p=t._targets,x=t.parent,y=x&&x.data==="nested"?x.vars.targets:p,T=t._overwrite==="auto"&&!wi,v=t.timeline,g,k,w,S,b,O,A,M,D,G,Y,B,X;if(v&&(!c||!n)&&(n="none"),t._ease=Wt(n,se.ease),t._yEase=_?Wr(Wt(_===!0?n:_,se.ease)):0,_&&t._yoyo&&!t._repeat&&(_=t._yEase,t._yEase=t._ease,t._ease=_),t._from=!v&&!!r.runBackwards,!v||c&&!r.stagger){if(M=p[0]?$t(p[0]).harness:0,B=M&&r[M.prop],g=Xe(r,Ci),h&&(h._zTime<0&&h.progress(1),e<0&&f&&o&&!d?h.render(-1,!0):h.revert(f&&m?Le:Hn),h._lazy=0),s){if(Ft(t._startAt=U.set(p,ft({data:"isStart",overwrite:!1,parent:x,immediateRender:!0,lazy:!h&&J(u),startAt:null,delay:0,onUpdate:l&&function(){return at(t,"onUpdate")},stagger:0},s))),t._startAt._dp=0,t._startAt._sat=t,e<0&&(W||!o&&!d)&&t._startAt.revert(Le),o&&m&&e<=0&&i<=0){e&&(t._zTime=e);return}}else if(f&&m&&!h){if(e&&(o=!1),w=ft({overwrite:!1,data:"isFromStart",lazy:o&&!h&&J(u),immediateRender:o,stagger:0,parent:x},g),B&&(w[M.prop]=B),Ft(t._startAt=U.set(p,w)),t._startAt._dp=0,t._startAt._sat=t,e<0&&(W?t._startAt.revert(Le):t._startAt.render(-1,!0)),t._zTime=e,!o)a(t._startAt,R,R);else if(!e)return}for(t._pt=t._ptCache=0,u=m&&J(u)||u&&!m,k=0;k<p.length;k++){if(b=p[k],A=b._gsap||Mi(p)[k]._gsap,t._ptLookup[k]=G={},fi[A.id]&&At.length&&Ye(),Y=y===p?k:y.indexOf(b),M&&(D=new M).init(b,B||g,t,Y,y)!==!1&&(t._pt=S=new et(t._pt,b,D.name,0,1,D.render,D,0,D.priority),D._props.forEach(function(pt){G[pt]=S}),D.priority&&(O=1)),!M||B)for(w in g)st[w]&&(D=Hr(w,g,t,Y,b,y))?D.priority&&(O=1):G[w]=S=Ai.call(t,b,w,"get",g[w],Y,y,0,r.stringFilter);t._op&&t._op[k]&&t.kill(b,t._op[k]),T&&t._pt&&(Rt=t,F.killTweensOf(b,G,t.globalTime(e)),X=!t.parent,Rt=0),t._pt&&u&&(fi[A.id]=1)}O&&rn(t),t._onInit&&t._onInit(t)}t._onUpdate=l,t._initted=(!t._op||t._pt)&&!X,c&&e<=0&&v.render(_t,!0,!0)},ws=function(t,e,i,r,n,s,o,u){var l=(t._pt&&t._ptCache||(t._ptCache={}))[e],f,_,c,d;if(!l)for(l=t._ptCache[e]=[],c=t._ptLookup,d=t._targets.length;d--;){if(f=c[d][e],f&&f.d&&f.d._pt)for(f=f.d._pt;f&&f.p!==e&&f.fp!==e;)f=f._next;if(!f)return mi=1,t.vars[e]="+=0",Ii(t,o),mi=0,u?be(e+" not eligible for reset"):1;l.push(f)}for(d=l.length;d--;)_=l[d],f=_._pt||_,f.s=(r||r===0)&&!n?r:f.s+(r||0)+s*f.c,f.c=i-f.s,_.e&&(_.e=N(i)+q(_.e)),_.b&&(_.b=f.s+q(_.b))},ks=function(t,e){var i=t[0]?$t(t[0]).harness:0,r=i&&i.aliases,n,s,o,u;if(!r)return e;n=oe({},e);for(s in r)if(s in n)for(u=r[s].split(","),o=u.length;o--;)n[u[o]]=n[s];return n},Ss=function(t,e,i,r){var n=e.ease||r||"power1.inOut",s,o;if(j(e))o=i[t]||(i[t]=[]),e.forEach(function(u,l){return o.push({t:l/(e.length-1)*100,v:u,e:n})});else for(s in e)o=i[s]||(i[s]=[]),s==="ease"||o.push({t:parseFloat(t),v:e[s],e:n})},Te=function(t,e,i,r,n){return L(t)?t.call(e,i,r,n):$(t)&&~t.indexOf("random(")?ke(t):t},Qr=Ri+"repeat,repeatDelay,yoyo,repeatRefresh,yoyoEase,autoRevert",Zr={};tt(Qr+",id,stagger,delay,duration,paused,scrollTrigger",function(a){return Zr[a]=1});var U=(function(a){mr(t,a);function t(i,r,n,s){var o;typeof r=="number"&&(n.duration=r,r=n,n=null),o=a.call(this,s?r:xe(r))||this;var u=o.vars,l=u.duration,f=u.delay,_=u.immediateRender,c=u.stagger,d=u.overwrite,m=u.keyframes,h=u.defaults,p=u.scrollTrigger,x=u.yoyoEase,y=r.parent||F,T=(j(i)||yr(i)?Ot(i[0]):"length"in r)?[i]:ct(i),v,g,k,w,S,b,O,A;if(o._targets=T.length?Mi(T):be("GSAP target "+i+" not found. https://gsap.com",!ut.nullTargetWarn)||[],o._ptLookup=[],o._overwrite=d,m||c||Fe(l)||Fe(f)){if(r=o.vars,v=o.timeline=new H({data:"nested",defaults:h||{},targets:y&&y.data==="nested"?y.vars.targets:T}),v.kill(),v.parent=v._dp=kt(o),v._start=0,c||Fe(l)||Fe(f)){if(w=T.length,O=c&&zr(c),bt(c))for(S in c)~Qr.indexOf(S)&&(A||(A={}),A[S]=c[S]);for(g=0;g<w;g++)k=Xe(r,Zr),k.stagger=0,x&&(k.yoyoEase=x),A&&oe(k,A),b=T[g],k.duration=+Te(l,kt(o),g,b,T),k.delay=(+Te(f,kt(o),g,b,T)||0)-o._delay,!c&&w===1&&k.delay&&(o._delay=f=k.delay,o._start+=f,k.delay=0),v.to(b,k,O?O(g,b,T):0),v._ease=P.none;v.duration()?l=f=0:o.timeline=0}else if(m){xe(ft(v.vars.defaults,{ease:"none"})),v._ease=Wt(m.ease||r.ease||"none");var M=0,D,G,Y;if(j(m))m.forEach(function(B){return v.to(T,B,">")}),v.duration();else{k={};for(S in m)S==="ease"||S==="easeEach"||Ss(S,m[S],k,m.easeEach);for(S in k)for(D=k[S].sort(function(B,X){return B.t-X.t}),M=0,g=0;g<D.length;g++)G=D[g],Y={ease:G.e,duration:(G.t-(g?D[g-1].t:0))/100*l},Y[S]=G.v,v.to(T,Y,M),M+=Y.duration;v.duration()<l&&v.to({},{duration:l-v.duration()})}}l||o.duration(l=v.duration())}else o.timeline=0;return d===!0&&!wi&&(Rt=kt(o),F.killTweensOf(T),Rt=0),xt(y,kt(o),n),r.reversed&&o.reverse(),r.paused&&o.paused(!0),(_||!l&&!m&&o._start===V(y._time)&&J(_)&&is(kt(o))&&y.data!=="nested")&&(o._tTime=-R,o.render(Math.max(0,-f)||0)),p&&Ar(kt(o),p),o}var e=t.prototype;return e.render=function(r,n,s){var o=this._time,u=this._tDur,l=this._dur,f=r<0,_=r>u-R&&!f?u:r<R?0:r,c,d,m,h,p,x,y,T,v;if(!l)ns(this,r,n,s);else if(_!==this._tTime||!r||s||!this._initted&&this._tTime||this._startAt&&this._zTime<0!==f||this._lazy){if(c=_,T=this.timeline,this._repeat){if(h=l+this._rDelay,this._repeat<-1&&f)return this.totalTime(h*100+r,n,s);if(c=V(_%h),_===u?(m=this._repeat,c=l):(p=V(_/h),m=~~p,m&&m===p?(c=l,m--):c>l&&(c=l)),x=this._yoyo&&m&1,x&&(v=this._yEase,c=l-c),p=ae(this._tTime,h),c===o&&!s&&this._initted&&m===p)return this._tTime=_,this;m!==p&&(T&&this._yEase&&qr(T,x),this.vars.repeatRefresh&&!x&&!this._lock&&c!==h&&this._initted&&(this._lock=s=1,this.render(V(h*m),!0).invalidate()._lock=0))}if(!this._initted){if(Ir(this,f?r:c,s,n,_))return this._tTime=0,this;if(o!==this._time&&!(s&&this.vars.repeatRefresh&&m!==p))return this;if(l!==this._dur)return this.render(r,n,s)}if(this._tTime=_,this._time=c,!this._act&&this._ts&&(this._act=1,this._lazy=0),this.ratio=y=(v||this._ease)(c/l),this._from&&(this.ratio=y=1-y),!o&&_&&!n&&!p&&(at(this,"onStart"),this._tTime!==_))return this;for(d=this._pt;d;)d.r(y,d.d),d=d._next;T&&T.render(r<0?r:T._dur*T._ease(c/this._dur),n,s)||this._startAt&&(this._zTime=r),this._onUpdate&&!n&&(f&&hi(this,r,n,s),at(this,"onUpdate")),this._repeat&&m!==p&&this.vars.onRepeat&&!n&&this.parent&&at(this,"onRepeat"),(_===this._tDur||!_)&&this._tTime===_&&(f&&!this._onUpdate&&hi(this,r,!0,!0),(r||!l)&&(_===this._tDur&&this._ts>0||!_&&this._ts<0)&&Ft(this,1),!n&&!(f&&!o)&&(_||o||x)&&(at(this,_===u?"onComplete":"onReverseComplete",!0),this._prom&&!(_<u&&this.timeScale()>0)&&this._prom()))}return this},e.targets=function(){return this._targets},e.invalidate=function(r){return(!r||!this.vars.runBackwards)&&(this._startAt=0),this._pt=this._op=this._onUpdate=this._lazy=this.ratio=0,this._ptLookup=[],this.timeline&&this.timeline.invalidate(r),a.prototype.invalidate.call(this,r)},e.resetTo=function(r,n,s,o,u){Se||ot.wake(),this._ts||this.play();var l=Math.min(this._dur,(this._dp._time-this._start)*this._ts),f;return this._initted||Ii(this,l),f=this._ease(l/this._dur),ws(this,r,n,s,o,f,l,u)?this.resetTo(r,n,s,o,1):(He(this,0),this.parent||Mr(this._dp,this,"_first","_last",this._dp._sort?"_start":0),this.render(0))},e.kill=function(r,n){if(n===void 0&&(n="all"),!r&&(!n||n==="all"))return this._lazy=this._pt=0,this.parent?ge(this):this.scrollTrigger&&this.scrollTrigger.kill(!!W),this;if(this.timeline){var s=this.timeline.totalDuration();return this.timeline.killTweensOf(r,n,Rt&&Rt.vars.overwrite!==!0)._first||ge(this),this.parent&&s!==this.timeline.totalDuration()&&ue(this,this._dur*this.timeline._tDur/s,0,1),this}var o=this._targets,u=r?ct(r):o,l=this._ptLookup,f=this._pt,_,c,d,m,h,p,x;if((!n||n==="all")&&ts(o,u))return n==="all"&&(this._pt=0),ge(this);for(_=this._op=this._op||[],n!=="all"&&($(n)&&(h={},tt(n,function(y){return h[y]=1}),n=h),n=ks(o,n)),x=o.length;x--;)if(~u.indexOf(o[x])){c=l[x],n==="all"?(_[x]=n,m=c,d={}):(d=_[x]=_[x]||{},m=n);for(h in m)p=c&&c[h],p&&((!("kill"in p.d)||p.d.kill(h)===!0)&&Ke(this,p,"_pt"),delete c[h]),d!=="all"&&(d[h]=1)}return this._initted&&!this._pt&&f&&ge(this),this},t.to=function(r,n){return new t(r,n,arguments[2])},t.from=function(r,n){return ve(1,arguments)},t.delayedCall=function(r,n,s,o){return new t(n,0,{immediateRender:!1,lazy:!1,overwrite:!1,delay:r,onComplete:n,onReverseComplete:n,onCompleteParams:s,onReverseCompleteParams:s,callbackScope:o})},t.fromTo=function(r,n,s){return ve(2,arguments)},t.set=function(r,n){return n.duration=0,n.repeatDelay||(n.repeat=0),new t(r,n)},t.killTweensOf=function(r,n,s){return F.killTweensOf(r,n,s)},t})(Pe);ft(U.prototype,{_targets:[],_lazy:0,_startAt:0,_op:0,_onInit:0});tt("staggerTo,staggerFrom,staggerFromTo",function(a){U[a]=function(){var t=new H,e=ci.call(arguments,0);return e.splice(a==="staggerFromTo"?5:4,0,0),t[a].apply(t,e)}});var Ei=function(t,e,i){return t[e]=i},Jr=function(t,e,i){return t[e](i)},Ps=function(t,e,i,r){return t[e](r.fp,i)},Os=function(t,e,i){return t.setAttribute(e,i)},Fi=function(t,e){return L(t[e])?Jr:ki(t[e])&&t.setAttribute?Os:Ei},tn=function(t,e){return e.set(e.t,e.p,Math.round((e.s+e.c*t)*1e6)/1e6,e)},Cs=function(t,e){return e.set(e.t,e.p,!!(e.s+e.c*t),e)},en=function(t,e){var i=e._pt,r="";if(!t&&e.b)r=e.b;else if(t===1&&e.e)r=e.e;else{for(;i;)r=i.p+(i.m?i.m(i.s+i.c*t):Math.round((i.s+i.c*t)*1e4)/1e4)+r,i=i._next;r+=e.c}e.set(e.t,e.p,r,e)},zi=function(t,e){for(var i=e._pt;i;)i.r(t,i.d),i=i._next},Rs=function(t,e,i,r){for(var n=this._pt,s;n;)s=n._next,n.p===r&&n.modifier(t,e,i),n=s},Ms=function(t){for(var e=this._pt,i,r;e;)r=e._next,e.p===t&&!e.op||e.op===t?Ke(this,e,"_pt"):e.dep||(i=1),e=r;return!i},Ds=function(t,e,i,r){r.mSet(t,e,r.m.call(r.tween,i,r.mt),r)},rn=function(t){for(var e=t._pt,i,r,n,s;e;){for(i=e._next,r=n;r&&r.pr>e.pr;)r=r._next;(e._prev=r?r._prev:s)?e._prev._next=e:n=e,(e._next=r)?r._prev=e:s=e,e=i}t._pt=n},et=(function(){function a(e,i,r,n,s,o,u,l,f){this.t=i,this.s=n,this.c=s,this.p=r,this.r=o||tn,this.d=u||this,this.set=l||Ei,this.pr=f||0,this._next=e,e&&(e._prev=this)}var t=a.prototype;return t.modifier=function(i,r,n){this.mSet=this.mSet||this.set,this.set=Ds,this.m=i,this.mt=n,this.tween=r},a})();tt(Ri+"parent,duration,ease,delay,overwrite,runBackwards,startAt,yoyo,immediateRender,repeat,repeatDelay,data,paused,reversed,lazy,callbackScope,stringFilter,id,yoyoEase,stagger,inherit,repeatRefresh,keyframes,autoRevert,scrollTrigger",function(a){return Ci[a]=1});lt.TweenMax=lt.TweenLite=U;lt.TimelineLite=lt.TimelineMax=H;F=new H({sortChildren:!1,defaults:se,autoRemoveChildren:!0,id:"root",smoothChildTiming:!0});ut.stringFilter=Gr;var qt=[],Be={},As=[],Ji=0,Is=0,ri=function(t){return(Be[t]||As).map(function(e){return e()})},gi=function(){var t=Date.now(),e=[];t-Ji>2&&(ri("matchMediaInit"),qt.forEach(function(i){var r=i.queries,n=i.conditions,s,o,u,l;for(o in r)s=yt.matchMedia(r[o]).matches,s&&(u=1),s!==n[o]&&(n[o]=s,l=1);l&&(i.revert(),u&&e.push(i))}),ri("matchMediaRevert"),e.forEach(function(i){return i.onMatch(i,function(r){return i.add(null,r)})}),Ji=t,ri("matchMedia"))},nn=(function(){function a(e,i){this.selector=i&&di(i),this.data=[],this._r=[],this.isReverted=!1,this.id=Is++,e&&this.add(e)}var t=a.prototype;return t.add=function(i,r,n){L(i)&&(n=r,r=i,i=L);var s=this,o=function(){var l=E,f=s.selector,_;return l&&l!==s&&l.data.push(s),n&&(s.selector=di(n)),E=s,_=r.apply(s,arguments),L(_)&&s._r.push(_),E=l,s.selector=f,s.isReverted=!1,_};return s.last=o,i===L?o(s,function(u){return s.add(null,u)}):i?s[i]=o:o},t.ignore=function(i){var r=E;E=null,i(this),E=r},t.getTweens=function(){var i=[];return this.data.forEach(function(r){return r instanceof a?i.push.apply(i,r.getTweens()):r instanceof U&&!(r.parent&&r.parent.data==="nested")&&i.push(r)}),i},t.clear=function(){this._r.length=this.data.length=0},t.kill=function(i,r){var n=this;if(i?(function(){for(var o=n.getTweens(),u=n.data.length,l;u--;)l=n.data[u],l.data==="isFlip"&&(l.revert(),l.getChildren(!0,!0,!1).forEach(function(f){return o.splice(o.indexOf(f),1)}));for(o.map(function(f){return{g:f._dur||f._delay||f._sat&&!f._sat.vars.immediateRender?f.globalTime(0):-1/0,t:f}}).sort(function(f,_){return _.g-f.g||-1/0}).forEach(function(f){return f.t.revert(i)}),u=n.data.length;u--;)l=n.data[u],l instanceof H?l.data!=="nested"&&(l.scrollTrigger&&l.scrollTrigger.revert(),l.kill()):!(l instanceof U)&&l.revert&&l.revert(i);n._r.forEach(function(f){return f(i,n)}),n.isReverted=!0})():this.data.forEach(function(o){return o.kill&&o.kill()}),this.clear(),r)for(var s=qt.length;s--;)qt[s].id===this.id&&qt.splice(s,1)},t.revert=function(i){this.kill(i||{})},a})(),Es=(function(){function a(e){this.contexts=[],this.scope=e,E&&E.data.push(this)}var t=a.prototype;return t.add=function(i,r,n){bt(i)||(i={matches:i});var s=new nn(0,n||this.scope),o=s.conditions={},u,l,f;E&&!s.selector&&(s.selector=E.selector),this.contexts.push(s),r=s.add("onMatch",r),s.queries=i;for(l in i)l==="all"?f=1:(u=yt.matchMedia(i[l]),u&&(qt.indexOf(s)<0&&qt.push(s),(o[l]=u.matches)&&(f=1),u.addListener?u.addListener(gi):u.addEventListener("change",gi)));return f&&r(s,function(_){return s.add(null,_)}),this},t.revert=function(i){this.kill(i||{})},t.kill=function(i){this.contexts.forEach(function(r){return r.kill(i,!0)})},a})(),Ge={registerPlugin:function(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];e.forEach(function(r){return Yr(r)})},timeline:function(t){return new H(t)},getTweensOf:function(t,e){return F.getTweensOf(t,e)},getProperty:function(t,e,i,r){$(t)&&(t=ct(t)[0]);var n=$t(t||{}).get,s=i?Rr:Cr;return i==="native"&&(i=""),t&&(e?s((st[e]&&st[e].get||n)(t,e,i,r)):function(o,u,l){return s((st[o]&&st[o].get||n)(t,o,u,l))})},quickSetter:function(t,e,i){if(t=ct(t),t.length>1){var r=t.map(function(f){return rt.quickSetter(f,e,i)}),n=r.length;return function(f){for(var _=n;_--;)r[_](f)}}t=t[0]||{};var s=st[e],o=$t(t),u=o.harness&&(o.harness.aliases||{})[e]||e,l=s?function(f){var _=new s;te._pt=0,_.init(t,i?f+i:f,te,0,[t]),_.render(1,_),te._pt&&zi(1,te)}:o.set(t,u);return s?l:function(f){return l(t,u,i?f+i:f,o,1)}},quickTo:function(t,e,i){var r,n=rt.to(t,ft((r={},r[e]="+=0.1",r.paused=!0,r.stagger=0,r),i||{})),s=function(u,l,f){return n.resetTo(e,u,l,f)};return s.tween=n,s},isTweening:function(t){return F.getTweensOf(t,!0).length>0},defaults:function(t){return t&&t.ease&&(t.ease=Wt(t.ease,se.ease)),Ki(se,t||{})},config:function(t){return Ki(ut,t||{})},registerEffect:function(t){var e=t.name,i=t.effect,r=t.plugins,n=t.defaults,s=t.extendTimeline;(r||"").split(",").forEach(function(o){return o&&!st[o]&&!lt[o]&&be(e+" effect requires "+o+" plugin.")}),Je[e]=function(o,u,l){return i(ct(o),ft(u||{},n),l)},s&&(H.prototype[e]=function(o,u,l){return this.add(Je[e](o,bt(u)?u:(l=u)&&{},this),l)})},registerEase:function(t,e){P[t]=Wt(e)},parseEase:function(t,e){return arguments.length?Wt(t,e):P},getById:function(t){return F.getById(t)},exportRoot:function(t,e){t===void 0&&(t={});var i=new H(t),r,n;for(i.smoothChildTiming=J(t.smoothChildTiming),F.remove(i),i._dp=0,i._time=i._tTime=F._time,r=F._first;r;)n=r._next,(e||!(!r._dur&&r instanceof U&&r.vars.onComplete===r._targets[0]))&&xt(i,r,r._start-r._delay),r=n;return xt(F,i,0),i},context:function(t,e){return t?new nn(t,e):E},matchMedia:function(t){return new Es(t)},matchMediaRefresh:function(){return qt.forEach(function(t){var e=t.conditions,i,r;for(r in e)e[r]&&(e[r]=!1,i=1);i&&t.revert()})||gi()},addEventListener:function(t,e){var i=Be[t]||(Be[t]=[]);~i.indexOf(e)||i.push(e)},removeEventListener:function(t,e){var i=Be[t],r=i&&i.indexOf(e);r>=0&&i.splice(r,1)},utils:{wrap:_s,wrapYoyo:cs,distribute:zr,random:Nr,snap:Lr,normalize:hs,getUnit:q,clamp:as,splitColor:Xr,toArray:ct,selector:di,mapRange:Ur,pipe:ls,unitize:fs,interpolate:ds,shuffle:Fr},install:wr,effects:Je,ticker:ot,updateRoot:H.updateRoot,plugins:st,globalTimeline:F,core:{PropTween:et,globals:kr,Tween:U,Timeline:H,Animation:Pe,getCache:$t,_removeLinkedListItem:Ke,reverting:function(){return W},context:function(t){return t&&E&&(E.data.push(t),t._ctx=E),E},suppressOverwrites:function(t){return wi=t}}};tt("to,from,fromTo,delayedCall,set,killTweensOf",function(a){return Ge[a]=U[a]});ot.add(H.updateRoot);te=Ge.to({},{duration:0});var Fs=function(t,e){for(var i=t._pt;i&&i.p!==e&&i.op!==e&&i.fp!==e;)i=i._next;return i},zs=function(t,e){var i=t._targets,r,n,s;for(r in e)for(n=i.length;n--;)s=t._ptLookup[n][r],s&&(s=s.d)&&(s._pt&&(s=Fs(s,r)),s&&s.modifier&&s.modifier(e[r],t,i[n],r))},ni=function(t,e){return{name:t,headless:1,rawVars:1,init:function(r,n,s){s._onInit=function(o){var u,l;if($(n)&&(u={},tt(n,function(f){return u[f]=1}),n=u),e){u={};for(l in n)u[l]=e(n[l]);n=u}zs(o,n)}}}},rt=Ge.registerPlugin({name:"attr",init:function(t,e,i,r,n){var s,o,u;this.tween=i;for(s in e)u=t.getAttribute(s)||"",o=this.add(t,"setAttribute",(u||0)+"",e[s],r,n,0,0,s),o.op=s,o.b=u,this._props.push(s)},render:function(t,e){for(var i=e._pt;i;)W?i.set(i.t,i.p,i.b,i):i.r(t,i.d),i=i._next}},{name:"endArray",headless:1,init:function(t,e){for(var i=e.length;i--;)this.add(t,i,t[i]||0,e[i],0,0,0,0,0,1)}},ni("roundProps",pi),ni("modifiers"),ni("snap",Lr))||Ge;U.version=H.version=rt.version="3.13.0";br=1;Si()&&le();P.Power0;P.Power1;P.Power2;P.Power3;P.Power4;P.Linear;P.Quad;P.Cubic;P.Quart;P.Quint;P.Strong;P.Elastic;P.Back;P.SteppedEase;P.Bounce;P.Sine;P.Expo;P.Circ;/*!
|
|
9
9
|
* CSSPlugin 3.13.0
|
|
10
10
|
* https://gsap.com
|
|
11
11
|
*
|
|
12
12
|
* Copyright 2008-2025, GreenSock. All rights reserved.
|
|
13
13
|
* Subject to the terms at https://gsap.com/standard-license
|
|
14
14
|
* @author: Jack Doyle, jack@greensock.com
|
|
15
|
-
*/var tr,Mt,ie,Li,Xt,er,Ni,Ls=function(){return typeof window<"u"},Ct={},Yt=180/Math.PI,re=Math.PI/180,Ht=Math.atan2,ir=1e8,Bi=/([A-Z])/g,Ns=/(left|right|width|margin|padding|x)/i,Bs=/[\s,\(]\S/,vt={autoAlpha:"opacity,visibility",scale:"scaleX,scaleY",alpha:"opacity"},yi=function(t,e){return e.set(e.t,e.p,Math.round((e.s+e.c*t)*1e4)/1e4+e.u,e)},Vs=function(t,e){return e.set(e.t,e.p,t===1?e.e:Math.round((e.s+e.c*t)*1e4)/1e4+e.u,e)},Us=function(t,e){return e.set(e.t,e.p,t?Math.round((e.s+e.c*t)*1e4)/1e4+e.u:e.b,e)},Ys=function(t,e){var i=e.s+e.c*t;e.set(e.t,e.p,~~(i+(i<0?-.5:.5))+e.u,e)},sn=function(t,e){return e.set(e.t,e.p,t?e.e:e.b,e)},on=function(t,e){return e.set(e.t,e.p,t!==1?e.b:e.e,e)},Xs=function(t,e,i){return t.style[e]=i},$s=function(t,e,i){return t.style.setProperty(e,i)},Gs=function(t,e,i){return t._gsap[e]=i},Ws=function(t,e,i){return t._gsap.scaleX=t._gsap.scaleY=i},qs=function(t,e,i,r,n){var s=t._gsap;s.scaleX=s.scaleY=i,s.renderTransform(n,s)},js=function(t,e,i,r,n){var s=t._gsap;s[e]=i,s.renderTransform(n,s)},z="transform",it=z+"Origin",Ks=function a(t,e){var i=this,r=this.target,n=r.style,s=r._gsap;if(t in Ct&&n){if(this.tfm=this.tfm||{},t!=="transform")t=vt[t]||t,~t.indexOf(",")?t.split(",").forEach(function(o){return i.tfm[o]=St(r,o)}):this.tfm[t]=s.x?s[t]:St(r,t),t===it&&(this.tfm.zOrigin=s.zOrigin);else return vt.transform.split(",").forEach(function(o){return a.call(i,o,e)});if(this.props.indexOf(z)>=0)return;s.svg&&(this.svgo=r.getAttribute("data-svg-origin"),this.props.push(it,e,"")),t=z}(n||e)&&this.props.push(t,e,n[t])},an=function(t){t.translate&&(t.removeProperty("translate"),t.removeProperty("scale"),t.removeProperty("rotate"))},Hs=function(){var t=this.props,e=this.target,i=e.style,r=e._gsap,n,s;for(n=0;n<t.length;n+=3)t[n+1]?t[n+1]===2?e[t[n]](t[n+2]):e[t[n]]=t[n+2]:t[n+2]?i[t[n]]=t[n+2]:i.removeProperty(t[n].substr(0,2)==="--"?t[n]:t[n].replace(Bi,"-$1").toLowerCase());if(this.tfm){for(s in this.tfm)r[s]=this.tfm[s];r.svg&&(r.renderTransform(),e.setAttribute("data-svg-origin",this.svgo||"")),n=Ni(),(!n||!n.isStart)&&!i[z]&&(an(i),r.zOrigin&&i[it]&&(i[it]+=" "+r.zOrigin+"px",r.zOrigin=0,r.renderTransform()),r.uncache=1)}},un=function(t,e){var i={target:t,props:[],revert:Hs,save:Ks};return t._gsap||rt.core.getCache(t),e&&t.style&&t.nodeType&&e.split(",").forEach(function(r){return i.save(r)}),i},ln,xi=function(t,e){var i=Mt.createElementNS?Mt.createElementNS((e||"http://www.w3.org/1999/xhtml").replace(/^https/,"http"),t):Mt.createElement(t);return i&&i.style?i:Mt.createElement(t)},dt=function a(t,e,i){var r=getComputedStyle(t);return r[e]||r.getPropertyValue(e.replace(Bi,"-$1").toLowerCase())||r.getPropertyValue(e)||!i&&a(t,fe(e)||e,1)||""},rr="O,Moz,ms,Ms,Webkit".split(","),fe=function(t,e,i){var r=e||Xt,n=r.style,s=5;if(t in n&&!i)return t;for(t=t.charAt(0).toUpperCase()+t.substr(1);s--&&!(rr[s]+t in n););return s<0?null:(s===3?"ms":s>=0?rr[s]:"")+t},vi=function(){Ls()&&window.document&&(tr=window,Mt=tr.document,ie=Mt.documentElement,Xt=xi("div")||{style:{}},xi("div"),z=fe(z),it=z+"Origin",Xt.style.cssText="border-width:0;line-height:0;position:absolute;padding:0",ln=!!fe("perspective"),Ni=rt.core.reverting,Li=1)},nr=function(t){var e=t.ownerSVGElement,i=xi("svg",e&&e.getAttribute("xmlns")||"http://www.w3.org/2000/svg"),r=t.cloneNode(!0),n;r.style.display="block",i.appendChild(r),ie.appendChild(i);try{n=r.getBBox()}catch{}return i.removeChild(r),ie.removeChild(i),n},sr=function(t,e){for(var i=e.length;i--;)if(t.hasAttribute(e[i]))return t.getAttribute(e[i])},fn=function(t){var e,i;try{e=t.getBBox()}catch{e=nr(t),i=1}return e&&(e.width||e.height)||i||(e=nr(t)),e&&!e.width&&!e.x&&!e.y?{x:+sr(t,["x","cx","x1"])||0,y:+sr(t,["y","cy","y1"])||0,width:0,height:0}:e},hn=function(t){return!!(t.getCTM&&(!t.parentNode||t.ownerSVGElement)&&fn(t))},jt=function(t,e){if(e){var i=t.style,r;e in Ct&&e!==it&&(e=z),i.removeProperty?(r=e.substr(0,2),(r==="ms"||e.substr(0,6)==="webkit")&&(e="-"+e),i.removeProperty(r==="--"?e:e.replace(Bi,"-$1").toLowerCase())):i.removeAttribute(e)}},Dt=function(t,e,i,r,n,s){var o=new et(t._pt,e,i,0,1,s?on:sn);return t._pt=o,o.b=r,o.e=n,t._props.push(i),o},or={deg:1,rad:1,turn:1},Qs={grid:1,flex:1},zt=function a(t,e,i,r){var n=parseFloat(i)||0,s=(i+"").trim().substr((n+"").length)||"px",o=Xt.style,u=Ns.test(e),l=t.tagName.toLowerCase()==="svg",f=(l?"client":"offset")+(u?"Width":"Height"),_=100,c=r==="px",d=r==="%",m,h,p,x;if(r===s||!n||or[r]||or[s])return n;if(s!=="px"&&!c&&(n=a(t,e,i,"px")),x=t.getCTM&&hn(t),(d||s==="%")&&(Ct[e]||~e.indexOf("adius")))return m=x?t.getBBox()[u?"width":"height"]:t[f],N(d?n/m*_:n/100*m);if(o[u?"width":"height"]=_+(c?s:r),h=r!=="rem"&&~e.indexOf("adius")||r==="em"&&t.appendChild&&!l?t:t.parentNode,x&&(h=(t.ownerSVGElement||{}).parentNode),(!h||h===Mt||!h.appendChild)&&(h=Mt.body),p=h._gsap,p&&d&&p.width&&u&&p.time===ot.time&&!p.uncache)return N(n/p.width*_);if(d&&(e==="height"||e==="width")){var y=t.style[e];t.style[e]=_+r,m=t[f],y?t.style[e]=y:jt(t,e)}else(d||s==="%")&&!Qs[dt(h,"display")]&&(o.position=dt(t,"position")),h===t&&(o.position="static"),h.appendChild(Xt),m=Xt[f],h.removeChild(Xt),o.position="absolute";return u&&d&&(p=$t(h),p.time=ot.time,p.width=h[f]),N(c?m*n/_:m&&n?_/m*n:0)},St=function(t,e,i,r){var n;return Li||vi(),e in vt&&e!=="transform"&&(e=vt[e],~e.indexOf(",")&&(e=e.split(",")[0])),Ct[e]&&e!=="transform"?(n=Ce(t,r),n=e!=="transformOrigin"?n[e]:n.svg?n.origin:qe(dt(t,it))+" "+n.zOrigin+"px"):(n=t.style[e],(!n||n==="auto"||r||~(n+"").indexOf("calc("))&&(n=We[e]&&We[e](t,e,i)||dt(t,e)||Pr(t,e)||(e==="opacity"?1:0))),i&&!~(n+"").trim().indexOf(" ")?zt(t,e,n,i)+i:n},Zs=function(t,e,i,r){if(!i||i==="none"){var n=fe(e,t,1),s=n&&dt(t,n,1);s&&s!==i?(e=n,i=s):e==="borderColor"&&(i=dt(t,"borderTopColor"))}var o=new et(this._pt,t.style,e,0,1,en),u=0,l=0,f,_,c,d,m,h,p,x,y,T,v,g;if(o.b=i,o.e=r,i+="",r+="",r.substring(0,6)==="var(--"&&(r=dt(t,r.substring(4,r.indexOf(")")))),r==="auto"&&(h=t.style[e],t.style[e]=r,r=dt(t,e)||r,h?t.style[e]=h:jt(t,e)),f=[i,r],Gr(f),i=f[0],r=f[1],c=i.match(Jt)||[],g=r.match(Jt)||[],g.length){for(;_=Jt.exec(r);)p=_[0],y=r.substring(u,_.index),m?m=(m+1)%5:(y.substr(-5)==="rgba("||y.substr(-5)==="hsla(")&&(m=1),p!==(h=c[l++]||"")&&(d=parseFloat(h)||0,v=h.substr((d+"").length),p.charAt(1)==="="&&(p=ee(d,p)+v),x=parseFloat(p),T=p.substr((x+"").length),u=Jt.lastIndex-T.length,T||(T=T||ut.units[e]||v,u===r.length&&(r+=T,o.e+=T)),v!==T&&(d=zt(t,e,h,T)||0),o._pt={_next:o._pt,p:y||l===1?y:",",s:d,c:x-d,m:m&&m<4||e==="zIndex"?Math.round:0});o.c=u<r.length?r.substring(u,r.length):""}else o.r=e==="display"&&r==="none"?on:sn;return vr.test(r)&&(o.e=0),this._pt=o,o},ar={top:"0%",bottom:"100%",left:"0%",right:"100%",center:"50%"},Js=function(t){var e=t.split(" "),i=e[0],r=e[1]||"50%";return(i==="top"||i==="bottom"||r==="left"||r==="right")&&(t=i,i=r,r=t),e[0]=ar[i]||i,e[1]=ar[r]||r,e.join(" ")},to=function(t,e){if(e.tween&&e.tween._time===e.tween._dur){var i=e.t,r=i.style,n=e.u,s=i._gsap,o,u,l;if(n==="all"||n===!0)r.cssText="",u=1;else for(n=n.split(","),l=n.length;--l>-1;)o=n[l],Ct[o]&&(u=1,o=o==="transformOrigin"?it:z),jt(i,o);u&&(jt(i,z),s&&(s.svg&&i.removeAttribute("transform"),r.scale=r.rotate=r.translate="none",Ce(i,1),s.uncache=1,an(r)))}},We={clearProps:function(t,e,i,r,n){if(n.data!=="isFromStart"){var s=t._pt=new et(t._pt,e,i,0,0,to);return s.u=r,s.pr=-10,s.tween=n,t._props.push(i),1}}},Oe=[1,0,0,1,0,0],_n={},cn=function(t){return t==="matrix(1, 0, 0, 1, 0, 0)"||t==="none"||!t},ur=function(t){var e=dt(t,z);return cn(e)?Oe:e.substr(7).match(xr).map(N)},Vi=function(t,e){var i=t._gsap||$t(t),r=t.style,n=ur(t),s,o,u,l;return i.svg&&t.getAttribute("transform")?(u=t.transform.baseVal.consolidate().matrix,n=[u.a,u.b,u.c,u.d,u.e,u.f],n.join(",")==="1,0,0,1,0,0"?Oe:n):(n===Oe&&!t.offsetParent&&t!==ie&&!i.svg&&(u=r.display,r.display="block",s=t.parentNode,(!s||!t.offsetParent&&!t.getBoundingClientRect().width)&&(l=1,o=t.nextElementSibling,ie.appendChild(t)),n=ur(t),u?r.display=u:jt(t,"display"),l&&(o?s.insertBefore(t,o):s?s.appendChild(t):ie.removeChild(t))),e&&n.length>6?[n[0],n[1],n[4],n[5],n[12],n[13]]:n)},Ti=function(t,e,i,r,n,s){var o=t._gsap,u=n||Vi(t,!0),l=o.xOrigin||0,f=o.yOrigin||0,_=o.xOffset||0,c=o.yOffset||0,d=u[0],m=u[1],h=u[2],p=u[3],x=u[4],y=u[5],T=e.split(" "),v=parseFloat(T[0])||0,g=parseFloat(T[1])||0,k,w,S,b;i?u!==Oe&&(w=d*p-m*h)&&(S=v*(p/w)+g*(-h/w)+(h*y-p*x)/w,b=v*(-m/w)+g*(d/w)-(d*y-m*x)/w,v=S,g=b):(k=fn(t),v=k.x+(~T[0].indexOf("%")?v/100*k.width:v),g=k.y+(~(T[1]||T[0]).indexOf("%")?g/100*k.height:g)),r||r!==!1&&o.smooth?(x=v-l,y=g-f,o.xOffset=_+(x*d+y*h)-x,o.yOffset=c+(x*m+y*p)-y):o.xOffset=o.yOffset=0,o.xOrigin=v,o.yOrigin=g,o.smooth=!!r,o.origin=e,o.originIsAbsolute=!!i,t.style[it]="0px 0px",s&&(Dt(s,o,"xOrigin",l,v),Dt(s,o,"yOrigin",f,g),Dt(s,o,"xOffset",_,o.xOffset),Dt(s,o,"yOffset",c,o.yOffset)),t.setAttribute("data-svg-origin",v+" "+g)},Ce=function(t,e){var i=t._gsap||new Kr(t);if("x"in i&&!e&&!i.uncache)return i;var r=t.style,n=i.scaleX<0,s="px",o="deg",u=getComputedStyle(t),l=dt(t,it)||"0",f,_,c,d,m,h,p,x,y,T,v,g,k,w,S,b,O,A,M,D,G,Y,B,X,pt,Ae,_e,ce,Nt,Ui,wt,Bt;return f=_=c=h=p=x=y=T=v=0,d=m=1,i.svg=!!(t.getCTM&&hn(t)),u.translate&&((u.translate!=="none"||u.scale!=="none"||u.rotate!=="none")&&(r[z]=(u.translate!=="none"?"translate3d("+(u.translate+" 0 0").split(" ").slice(0,3).join(", ")+") ":"")+(u.rotate!=="none"?"rotate("+u.rotate+") ":"")+(u.scale!=="none"?"scale("+u.scale.split(" ").join(",")+") ":"")+(u[z]!=="none"?u[z]:"")),r.scale=r.rotate=r.translate="none"),w=Vi(t,i.svg),i.svg&&(i.uncache?(pt=t.getBBox(),l=i.xOrigin-pt.x+"px "+(i.yOrigin-pt.y)+"px",X=""):X=!e&&t.getAttribute("data-svg-origin"),Ti(t,X||l,!!X||i.originIsAbsolute,i.smooth!==!1,w)),g=i.xOrigin||0,k=i.yOrigin||0,w!==Oe&&(A=w[0],M=w[1],D=w[2],G=w[3],f=Y=w[4],_=B=w[5],w.length===6?(d=Math.sqrt(A*A+M*M),m=Math.sqrt(G*G+D*D),h=A||M?Ht(M,A)*Yt:0,y=D||G?Ht(D,G)*Yt+h:0,y&&(m*=Math.abs(Math.cos(y*re))),i.svg&&(f-=g-(g*A+k*D),_-=k-(g*M+k*G))):(Bt=w[6],Ui=w[7],_e=w[8],ce=w[9],Nt=w[10],wt=w[11],f=w[12],_=w[13],c=w[14],S=Ht(Bt,Nt),p=S*Yt,S&&(b=Math.cos(-S),O=Math.sin(-S),X=Y*b+_e*O,pt=B*b+ce*O,Ae=Bt*b+Nt*O,_e=Y*-O+_e*b,ce=B*-O+ce*b,Nt=Bt*-O+Nt*b,wt=Ui*-O+wt*b,Y=X,B=pt,Bt=Ae),S=Ht(-D,Nt),x=S*Yt,S&&(b=Math.cos(-S),O=Math.sin(-S),X=A*b-_e*O,pt=M*b-ce*O,Ae=D*b-Nt*O,wt=G*O+wt*b,A=X,M=pt,D=Ae),S=Ht(M,A),h=S*Yt,S&&(b=Math.cos(S),O=Math.sin(S),X=A*b+M*O,pt=Y*b+B*O,M=M*b-A*O,B=B*b-Y*O,A=X,Y=pt),p&&Math.abs(p)+Math.abs(h)>359.9&&(p=h=0,x=180-x),d=N(Math.sqrt(A*A+M*M+D*D)),m=N(Math.sqrt(B*B+Bt*Bt)),S=Ht(Y,B),y=Math.abs(S)>2e-4?S*Yt:0,v=wt?1/(wt<0?-wt:wt):0),i.svg&&(X=t.getAttribute("transform"),i.forceCSS=t.setAttribute("transform","")||!cn(dt(t,z)),X&&t.setAttribute("transform",X))),Math.abs(y)>90&&Math.abs(y)<270&&(n?(d*=-1,y+=h<=0?180:-180,h+=h<=0?180:-180):(m*=-1,y+=y<=0?180:-180)),e=e||i.uncache,i.x=f-((i.xPercent=f&&(!e&&i.xPercent||(Math.round(t.offsetWidth/2)===Math.round(-f)?-50:0)))?t.offsetWidth*i.xPercent/100:0)+s,i.y=_-((i.yPercent=_&&(!e&&i.yPercent||(Math.round(t.offsetHeight/2)===Math.round(-_)?-50:0)))?t.offsetHeight*i.yPercent/100:0)+s,i.z=c+s,i.scaleX=N(d),i.scaleY=N(m),i.rotation=N(h)+o,i.rotationX=N(p)+o,i.rotationY=N(x)+o,i.skewX=y+o,i.skewY=T+o,i.transformPerspective=v+s,(i.zOrigin=parseFloat(l.split(" ")[2])||!e&&i.zOrigin||0)&&(r[it]=qe(l)),i.xOffset=i.yOffset=0,i.force3D=ut.force3D,i.renderTransform=i.svg?io:ln?dn:eo,i.uncache=0,i},qe=function(t){return(t=t.split(" "))[0]+" "+t[1]},si=function(t,e,i){var r=q(e);return N(parseFloat(e)+parseFloat(zt(t,"x",i+"px",r)))+r},eo=function(t,e){e.z="0px",e.rotationY=e.rotationX="0deg",e.force3D=0,dn(t,e)},Vt="0deg",de="0px",Ut=") ",dn=function(t,e){var i=e||this,r=i.xPercent,n=i.yPercent,s=i.x,o=i.y,u=i.z,l=i.rotation,f=i.rotationY,_=i.rotationX,c=i.skewX,d=i.skewY,m=i.scaleX,h=i.scaleY,p=i.transformPerspective,x=i.force3D,y=i.target,T=i.zOrigin,v="",g=x==="auto"&&t&&t!==1||x===!0;if(T&&(_!==Vt||f!==Vt)){var k=parseFloat(f)*re,w=Math.sin(k),S=Math.cos(k),b;k=parseFloat(_)*re,b=Math.cos(k),s=si(y,s,w*b*-T),o=si(y,o,-Math.sin(k)*-T),u=si(y,u,S*b*-T+T)}p!==de&&(v+="perspective("+p+Ut),(r||n)&&(v+="translate("+r+"%, "+n+"%) "),(g||s!==de||o!==de||u!==de)&&(v+=u!==de||g?"translate3d("+s+", "+o+", "+u+") ":"translate("+s+", "+o+Ut),l!==Vt&&(v+="rotate("+l+Ut),f!==Vt&&(v+="rotateY("+f+Ut),_!==Vt&&(v+="rotateX("+_+Ut),(c!==Vt||d!==Vt)&&(v+="skew("+c+", "+d+Ut),(m!==1||h!==1)&&(v+="scale("+m+", "+h+Ut),y.style[z]=v||"translate(0, 0)"},io=function(t,e){var i=e||this,r=i.xPercent,n=i.yPercent,s=i.x,o=i.y,u=i.rotation,l=i.skewX,f=i.skewY,_=i.scaleX,c=i.scaleY,d=i.target,m=i.xOrigin,h=i.yOrigin,p=i.xOffset,x=i.yOffset,y=i.forceCSS,T=parseFloat(s),v=parseFloat(o),g,k,w,S,b;u=parseFloat(u),l=parseFloat(l),f=parseFloat(f),f&&(f=parseFloat(f),l+=f,u+=f),u||l?(u*=re,l*=re,g=Math.cos(u)*_,k=Math.sin(u)*_,w=Math.sin(u-l)*-c,S=Math.cos(u-l)*c,l&&(f*=re,b=Math.tan(l-f),b=Math.sqrt(1+b*b),w*=b,S*=b,f&&(b=Math.tan(f),b=Math.sqrt(1+b*b),g*=b,k*=b)),g=N(g),k=N(k),w=N(w),S=N(S)):(g=_,S=c,k=w=0),(T&&!~(s+"").indexOf("px")||v&&!~(o+"").indexOf("px"))&&(T=zt(d,"x",s,"px"),v=zt(d,"y",o,"px")),(m||h||p||x)&&(T=N(T+m-(m*g+h*w)+p),v=N(v+h-(m*k+h*S)+x)),(r||n)&&(b=d.getBBox(),T=N(T+r/100*b.width),v=N(v+n/100*b.height)),b="matrix("+g+","+k+","+w+","+S+","+T+","+v+")",d.setAttribute("transform",b),y&&(d.style[z]=b)},ro=function(t,e,i,r,n){var s=360,o=$(n),u=parseFloat(n)*(o&&~n.indexOf("rad")?Yt:1),l=u-r,f=r+l+"deg",_,c;return o&&(_=n.split("_")[1],_==="short"&&(l%=s,l!==l%(s/2)&&(l+=l<0?s:-s)),_==="cw"&&l<0?l=(l+s*ir)%s-~~(l/s)*s:_==="ccw"&&l>0&&(l=(l-s*ir)%s-~~(l/s)*s)),t._pt=c=new et(t._pt,e,i,r,l,Vs),c.e=f,c.u="deg",t._props.push(i),c},lr=function(t,e){for(var i in e)t[i]=e[i];return t},no=function(t,e,i){var r=lr({},i._gsap),n="perspective,force3D,transformOrigin,svgOrigin",s=i.style,o,u,l,f,_,c,d,m;r.svg?(l=i.getAttribute("transform"),i.setAttribute("transform",""),s[z]=e,o=Ce(i,1),jt(i,z),i.setAttribute("transform",l)):(l=getComputedStyle(i)[z],s[z]=e,o=Ce(i,1),s[z]=l);for(u in Ct)l=r[u],f=o[u],l!==f&&n.indexOf(u)<0&&(d=q(l),m=q(f),_=d!==m?zt(i,u,l,m):parseFloat(l),c=parseFloat(f),t._pt=new et(t._pt,o,u,_,c-_,yi),t._pt.u=m||0,t._props.push(u));lr(o,r)};tt("padding,margin,Width,Radius",function(a,t){var e="Top",i="Right",r="Bottom",n="Left",s=(t<3?[e,i,r,n]:[e+n,e+i,r+i,r+n]).map(function(o){return t<2?a+o:"border"+o+a});We[t>1?"border"+a:a]=function(o,u,l,f,_){var c,d;if(arguments.length<4)return c=s.map(function(m){return St(o,m,l)}),d=c.join(" "),d.split(c[0]).length===5?c[0]:d;c=(f+"").split(" "),d={},s.forEach(function(m,h){return d[m]=c[h]=c[h]||c[(h-1)/2|0]}),o.init(u,d,_)}});var pn={name:"css",register:vi,targetTest:function(t){return t.style&&t.nodeType},init:function(t,e,i,r,n){var s=this._props,o=t.style,u=i.vars.startAt,l,f,_,c,d,m,h,p,x,y,T,v,g,k,w,S;Li||vi(),this.styles=this.styles||un(t),S=this.styles.props,this.tween=i;for(h in e)if(h!=="autoRound"&&(f=e[h],!(st[h]&&Hr(h,e,i,r,t,n)))){if(d=typeof f,m=We[h],d==="function"&&(f=f.call(i,r,t,n),d=typeof f),d==="string"&&~f.indexOf("random(")&&(f=ke(f)),m)m(this,t,h,f,i)&&(w=1);else if(h.substr(0,2)==="--")l=(getComputedStyle(t).getPropertyValue(h)+"").trim(),f+="",It.lastIndex=0,It.test(l)||(p=q(l),x=q(f)),x?p!==x&&(l=zt(t,h,l,x)+x):p&&(f+=p),this.add(o,"setProperty",l,f,r,n,0,0,h),s.push(h),S.push(h,0,o[h]);else if(d!=="undefined"){if(u&&h in u?(l=typeof u[h]=="function"?u[h].call(i,r,t,n):u[h],$(l)&&~l.indexOf("random(")&&(l=ke(l)),q(l+"")||l==="auto"||(l+=ut.units[h]||q(St(t,h))||""),(l+"").charAt(1)==="="&&(l=St(t,h))):l=St(t,h),c=parseFloat(l),y=d==="string"&&f.charAt(1)==="="&&f.substr(0,2),y&&(f=f.substr(2)),_=parseFloat(f),h in vt&&(h==="autoAlpha"&&(c===1&&St(t,"visibility")==="hidden"&&_&&(c=0),S.push("visibility",0,o.visibility),Dt(this,o,"visibility",c?"inherit":"hidden",_?"inherit":"hidden",!_)),h!=="scale"&&h!=="transform"&&(h=vt[h],~h.indexOf(",")&&(h=h.split(",")[0]))),T=h in Ct,T){if(this.styles.save(h),d==="string"&&f.substring(0,6)==="var(--"&&(f=dt(t,f.substring(4,f.indexOf(")"))),_=parseFloat(f)),v||(g=t._gsap,g.renderTransform&&!e.parseTransform||Ce(t,e.parseTransform),k=e.smoothOrigin!==!1&&g.smooth,v=this._pt=new et(this._pt,o,z,0,1,g.renderTransform,g,0,-1),v.dep=1),h==="scale")this._pt=new et(this._pt,g,"scaleY",g.scaleY,(y?ee(g.scaleY,y+_):_)-g.scaleY||0,yi),this._pt.u=0,s.push("scaleY",h),h+="X";else if(h==="transformOrigin"){S.push(it,0,o[it]),f=Js(f),g.svg?Ti(t,f,0,k,0,this):(x=parseFloat(f.split(" ")[2])||0,x!==g.zOrigin&&Dt(this,g,"zOrigin",g.zOrigin,x),Dt(this,o,h,qe(l),qe(f)));continue}else if(h==="svgOrigin"){Ti(t,f,1,k,0,this);continue}else if(h in _n){ro(this,g,h,c,y?ee(c,y+f):f);continue}else if(h==="smoothOrigin"){Dt(this,g,"smooth",g.smooth,f);continue}else if(h==="force3D"){g[h]=f;continue}else if(h==="transform"){no(this,f,t);continue}}else h in o||(h=fe(h)||h);if(T||(_||_===0)&&(c||c===0)&&!Bs.test(f)&&h in o)p=(l+"").substr((c+"").length),_||(_=0),x=q(f)||(h in ut.units?ut.units[h]:p),p!==x&&(c=zt(t,h,l,x)),this._pt=new et(this._pt,T?g:o,h,c,(y?ee(c,y+_):_)-c,!T&&(x==="px"||h==="zIndex")&&e.autoRound!==!1?Ys:yi),this._pt.u=x||0,p!==x&&x!=="%"&&(this._pt.b=l,this._pt.r=Us);else if(h in o)Zs.call(this,t,h,l,y?y+f:f);else if(h in t)this.add(t,h,l||t[h],y?y+f:f,r,n);else if(h!=="parseTransform"){Oi(h,f);continue}T||(h in o?S.push(h,0,o[h]):typeof t[h]=="function"?S.push(h,2,t[h]()):S.push(h,1,l||t[h])),s.push(h)}}w&&rn(this)},render:function(t,e){if(e.tween._time||!Ni())for(var i=e._pt;i;)i.r(t,i.d),i=i._next;else e.styles.revert()},get:St,aliases:vt,getSetter:function(t,e,i){var r=vt[e];return r&&r.indexOf(",")<0&&(e=r),e in Ct&&e!==it&&(t._gsap.x||St(t,"x"))?i&&er===i?e==="scale"?Ws:Gs:(er=i||{})&&(e==="scale"?qs:js):t.style&&!ki(t.style[e])?Xs:~e.indexOf("-")?$s:Fi(t,e)},core:{_removeProperty:jt,_getMatrix:Vi}};rt.utils.checkPrefix=fe;rt.core.getStyleSaver=un;(function(a,t,e,i){var r=tt(a+","+t+","+e,function(n){Ct[n]=1});tt(t,function(n){ut.units[n]="deg",_n[n]=1}),vt[r[13]]=a+","+t,tt(i,function(n){var s=n.split(":");vt[s[1]]=r[s[0]]})})("x,y,z,scale,scaleX,scaleY,xPercent,yPercent","rotation,rotationX,rotationY,skewX,skewY","transform,transformOrigin,svgOrigin,force3D,smoothOrigin,transformPerspective","0:translateX,1:translateY,2:translateZ,8:rotate,8:rotationZ,8:rotateZ,9:rotateX,10:rotateY");tt("x,y,z,top,right,bottom,left,width,height,fontSize,padding,margin,perspective",function(a){ut.units[a]="px"});rt.registerPlugin(pn);var Ve=rt.registerPlugin(pn)||rt;Ve.core.Tween;/*!
|
|
15
|
+
*/var tr,Mt,ie,Li,Xt,er,Ni,Ls=function(){return typeof window<"u"},Ct={},Yt=180/Math.PI,re=Math.PI/180,Ht=Math.atan2,ir=1e8,Bi=/([A-Z])/g,Ns=/(left|right|width|margin|padding|x)/i,Bs=/[\s,\(]\S/,vt={autoAlpha:"opacity,visibility",scale:"scaleX,scaleY",alpha:"opacity"},yi=function(t,e){return e.set(e.t,e.p,Math.round((e.s+e.c*t)*1e4)/1e4+e.u,e)},Us=function(t,e){return e.set(e.t,e.p,t===1?e.e:Math.round((e.s+e.c*t)*1e4)/1e4+e.u,e)},Vs=function(t,e){return e.set(e.t,e.p,t?Math.round((e.s+e.c*t)*1e4)/1e4+e.u:e.b,e)},Ys=function(t,e){var i=e.s+e.c*t;e.set(e.t,e.p,~~(i+(i<0?-.5:.5))+e.u,e)},sn=function(t,e){return e.set(e.t,e.p,t?e.e:e.b,e)},on=function(t,e){return e.set(e.t,e.p,t!==1?e.b:e.e,e)},Xs=function(t,e,i){return t.style[e]=i},$s=function(t,e,i){return t.style.setProperty(e,i)},Gs=function(t,e,i){return t._gsap[e]=i},Ws=function(t,e,i){return t._gsap.scaleX=t._gsap.scaleY=i},qs=function(t,e,i,r,n){var s=t._gsap;s.scaleX=s.scaleY=i,s.renderTransform(n,s)},Ks=function(t,e,i,r,n){var s=t._gsap;s[e]=i,s.renderTransform(n,s)},z="transform",it=z+"Origin",js=function a(t,e){var i=this,r=this.target,n=r.style,s=r._gsap;if(t in Ct&&n){if(this.tfm=this.tfm||{},t!=="transform")t=vt[t]||t,~t.indexOf(",")?t.split(",").forEach(function(o){return i.tfm[o]=St(r,o)}):this.tfm[t]=s.x?s[t]:St(r,t),t===it&&(this.tfm.zOrigin=s.zOrigin);else return vt.transform.split(",").forEach(function(o){return a.call(i,o,e)});if(this.props.indexOf(z)>=0)return;s.svg&&(this.svgo=r.getAttribute("data-svg-origin"),this.props.push(it,e,"")),t=z}(n||e)&&this.props.push(t,e,n[t])},an=function(t){t.translate&&(t.removeProperty("translate"),t.removeProperty("scale"),t.removeProperty("rotate"))},Hs=function(){var t=this.props,e=this.target,i=e.style,r=e._gsap,n,s;for(n=0;n<t.length;n+=3)t[n+1]?t[n+1]===2?e[t[n]](t[n+2]):e[t[n]]=t[n+2]:t[n+2]?i[t[n]]=t[n+2]:i.removeProperty(t[n].substr(0,2)==="--"?t[n]:t[n].replace(Bi,"-$1").toLowerCase());if(this.tfm){for(s in this.tfm)r[s]=this.tfm[s];r.svg&&(r.renderTransform(),e.setAttribute("data-svg-origin",this.svgo||"")),n=Ni(),(!n||!n.isStart)&&!i[z]&&(an(i),r.zOrigin&&i[it]&&(i[it]+=" "+r.zOrigin+"px",r.zOrigin=0,r.renderTransform()),r.uncache=1)}},un=function(t,e){var i={target:t,props:[],revert:Hs,save:js};return t._gsap||rt.core.getCache(t),e&&t.style&&t.nodeType&&e.split(",").forEach(function(r){return i.save(r)}),i},ln,xi=function(t,e){var i=Mt.createElementNS?Mt.createElementNS((e||"http://www.w3.org/1999/xhtml").replace(/^https/,"http"),t):Mt.createElement(t);return i&&i.style?i:Mt.createElement(t)},dt=function a(t,e,i){var r=getComputedStyle(t);return r[e]||r.getPropertyValue(e.replace(Bi,"-$1").toLowerCase())||r.getPropertyValue(e)||!i&&a(t,fe(e)||e,1)||""},rr="O,Moz,ms,Ms,Webkit".split(","),fe=function(t,e,i){var r=e||Xt,n=r.style,s=5;if(t in n&&!i)return t;for(t=t.charAt(0).toUpperCase()+t.substr(1);s--&&!(rr[s]+t in n););return s<0?null:(s===3?"ms":s>=0?rr[s]:"")+t},vi=function(){Ls()&&window.document&&(tr=window,Mt=tr.document,ie=Mt.documentElement,Xt=xi("div")||{style:{}},xi("div"),z=fe(z),it=z+"Origin",Xt.style.cssText="border-width:0;line-height:0;position:absolute;padding:0",ln=!!fe("perspective"),Ni=rt.core.reverting,Li=1)},nr=function(t){var e=t.ownerSVGElement,i=xi("svg",e&&e.getAttribute("xmlns")||"http://www.w3.org/2000/svg"),r=t.cloneNode(!0),n;r.style.display="block",i.appendChild(r),ie.appendChild(i);try{n=r.getBBox()}catch{}return i.removeChild(r),ie.removeChild(i),n},sr=function(t,e){for(var i=e.length;i--;)if(t.hasAttribute(e[i]))return t.getAttribute(e[i])},fn=function(t){var e,i;try{e=t.getBBox()}catch{e=nr(t),i=1}return e&&(e.width||e.height)||i||(e=nr(t)),e&&!e.width&&!e.x&&!e.y?{x:+sr(t,["x","cx","x1"])||0,y:+sr(t,["y","cy","y1"])||0,width:0,height:0}:e},hn=function(t){return!!(t.getCTM&&(!t.parentNode||t.ownerSVGElement)&&fn(t))},Kt=function(t,e){if(e){var i=t.style,r;e in Ct&&e!==it&&(e=z),i.removeProperty?(r=e.substr(0,2),(r==="ms"||e.substr(0,6)==="webkit")&&(e="-"+e),i.removeProperty(r==="--"?e:e.replace(Bi,"-$1").toLowerCase())):i.removeAttribute(e)}},Dt=function(t,e,i,r,n,s){var o=new et(t._pt,e,i,0,1,s?on:sn);return t._pt=o,o.b=r,o.e=n,t._props.push(i),o},or={deg:1,rad:1,turn:1},Qs={grid:1,flex:1},zt=function a(t,e,i,r){var n=parseFloat(i)||0,s=(i+"").trim().substr((n+"").length)||"px",o=Xt.style,u=Ns.test(e),l=t.tagName.toLowerCase()==="svg",f=(l?"client":"offset")+(u?"Width":"Height"),_=100,c=r==="px",d=r==="%",m,h,p,x;if(r===s||!n||or[r]||or[s])return n;if(s!=="px"&&!c&&(n=a(t,e,i,"px")),x=t.getCTM&&hn(t),(d||s==="%")&&(Ct[e]||~e.indexOf("adius")))return m=x?t.getBBox()[u?"width":"height"]:t[f],N(d?n/m*_:n/100*m);if(o[u?"width":"height"]=_+(c?s:r),h=r!=="rem"&&~e.indexOf("adius")||r==="em"&&t.appendChild&&!l?t:t.parentNode,x&&(h=(t.ownerSVGElement||{}).parentNode),(!h||h===Mt||!h.appendChild)&&(h=Mt.body),p=h._gsap,p&&d&&p.width&&u&&p.time===ot.time&&!p.uncache)return N(n/p.width*_);if(d&&(e==="height"||e==="width")){var y=t.style[e];t.style[e]=_+r,m=t[f],y?t.style[e]=y:Kt(t,e)}else(d||s==="%")&&!Qs[dt(h,"display")]&&(o.position=dt(t,"position")),h===t&&(o.position="static"),h.appendChild(Xt),m=Xt[f],h.removeChild(Xt),o.position="absolute";return u&&d&&(p=$t(h),p.time=ot.time,p.width=h[f]),N(c?m*n/_:m&&n?_/m*n:0)},St=function(t,e,i,r){var n;return Li||vi(),e in vt&&e!=="transform"&&(e=vt[e],~e.indexOf(",")&&(e=e.split(",")[0])),Ct[e]&&e!=="transform"?(n=Ce(t,r),n=e!=="transformOrigin"?n[e]:n.svg?n.origin:qe(dt(t,it))+" "+n.zOrigin+"px"):(n=t.style[e],(!n||n==="auto"||r||~(n+"").indexOf("calc("))&&(n=We[e]&&We[e](t,e,i)||dt(t,e)||Pr(t,e)||(e==="opacity"?1:0))),i&&!~(n+"").trim().indexOf(" ")?zt(t,e,n,i)+i:n},Zs=function(t,e,i,r){if(!i||i==="none"){var n=fe(e,t,1),s=n&&dt(t,n,1);s&&s!==i?(e=n,i=s):e==="borderColor"&&(i=dt(t,"borderTopColor"))}var o=new et(this._pt,t.style,e,0,1,en),u=0,l=0,f,_,c,d,m,h,p,x,y,T,v,g;if(o.b=i,o.e=r,i+="",r+="",r.substring(0,6)==="var(--"&&(r=dt(t,r.substring(4,r.indexOf(")")))),r==="auto"&&(h=t.style[e],t.style[e]=r,r=dt(t,e)||r,h?t.style[e]=h:Kt(t,e)),f=[i,r],Gr(f),i=f[0],r=f[1],c=i.match(Jt)||[],g=r.match(Jt)||[],g.length){for(;_=Jt.exec(r);)p=_[0],y=r.substring(u,_.index),m?m=(m+1)%5:(y.substr(-5)==="rgba("||y.substr(-5)==="hsla(")&&(m=1),p!==(h=c[l++]||"")&&(d=parseFloat(h)||0,v=h.substr((d+"").length),p.charAt(1)==="="&&(p=ee(d,p)+v),x=parseFloat(p),T=p.substr((x+"").length),u=Jt.lastIndex-T.length,T||(T=T||ut.units[e]||v,u===r.length&&(r+=T,o.e+=T)),v!==T&&(d=zt(t,e,h,T)||0),o._pt={_next:o._pt,p:y||l===1?y:",",s:d,c:x-d,m:m&&m<4||e==="zIndex"?Math.round:0});o.c=u<r.length?r.substring(u,r.length):""}else o.r=e==="display"&&r==="none"?on:sn;return vr.test(r)&&(o.e=0),this._pt=o,o},ar={top:"0%",bottom:"100%",left:"0%",right:"100%",center:"50%"},Js=function(t){var e=t.split(" "),i=e[0],r=e[1]||"50%";return(i==="top"||i==="bottom"||r==="left"||r==="right")&&(t=i,i=r,r=t),e[0]=ar[i]||i,e[1]=ar[r]||r,e.join(" ")},to=function(t,e){if(e.tween&&e.tween._time===e.tween._dur){var i=e.t,r=i.style,n=e.u,s=i._gsap,o,u,l;if(n==="all"||n===!0)r.cssText="",u=1;else for(n=n.split(","),l=n.length;--l>-1;)o=n[l],Ct[o]&&(u=1,o=o==="transformOrigin"?it:z),Kt(i,o);u&&(Kt(i,z),s&&(s.svg&&i.removeAttribute("transform"),r.scale=r.rotate=r.translate="none",Ce(i,1),s.uncache=1,an(r)))}},We={clearProps:function(t,e,i,r,n){if(n.data!=="isFromStart"){var s=t._pt=new et(t._pt,e,i,0,0,to);return s.u=r,s.pr=-10,s.tween=n,t._props.push(i),1}}},Oe=[1,0,0,1,0,0],_n={},cn=function(t){return t==="matrix(1, 0, 0, 1, 0, 0)"||t==="none"||!t},ur=function(t){var e=dt(t,z);return cn(e)?Oe:e.substr(7).match(xr).map(N)},Ui=function(t,e){var i=t._gsap||$t(t),r=t.style,n=ur(t),s,o,u,l;return i.svg&&t.getAttribute("transform")?(u=t.transform.baseVal.consolidate().matrix,n=[u.a,u.b,u.c,u.d,u.e,u.f],n.join(",")==="1,0,0,1,0,0"?Oe:n):(n===Oe&&!t.offsetParent&&t!==ie&&!i.svg&&(u=r.display,r.display="block",s=t.parentNode,(!s||!t.offsetParent&&!t.getBoundingClientRect().width)&&(l=1,o=t.nextElementSibling,ie.appendChild(t)),n=ur(t),u?r.display=u:Kt(t,"display"),l&&(o?s.insertBefore(t,o):s?s.appendChild(t):ie.removeChild(t))),e&&n.length>6?[n[0],n[1],n[4],n[5],n[12],n[13]]:n)},Ti=function(t,e,i,r,n,s){var o=t._gsap,u=n||Ui(t,!0),l=o.xOrigin||0,f=o.yOrigin||0,_=o.xOffset||0,c=o.yOffset||0,d=u[0],m=u[1],h=u[2],p=u[3],x=u[4],y=u[5],T=e.split(" "),v=parseFloat(T[0])||0,g=parseFloat(T[1])||0,k,w,S,b;i?u!==Oe&&(w=d*p-m*h)&&(S=v*(p/w)+g*(-h/w)+(h*y-p*x)/w,b=v*(-m/w)+g*(d/w)-(d*y-m*x)/w,v=S,g=b):(k=fn(t),v=k.x+(~T[0].indexOf("%")?v/100*k.width:v),g=k.y+(~(T[1]||T[0]).indexOf("%")?g/100*k.height:g)),r||r!==!1&&o.smooth?(x=v-l,y=g-f,o.xOffset=_+(x*d+y*h)-x,o.yOffset=c+(x*m+y*p)-y):o.xOffset=o.yOffset=0,o.xOrigin=v,o.yOrigin=g,o.smooth=!!r,o.origin=e,o.originIsAbsolute=!!i,t.style[it]="0px 0px",s&&(Dt(s,o,"xOrigin",l,v),Dt(s,o,"yOrigin",f,g),Dt(s,o,"xOffset",_,o.xOffset),Dt(s,o,"yOffset",c,o.yOffset)),t.setAttribute("data-svg-origin",v+" "+g)},Ce=function(t,e){var i=t._gsap||new jr(t);if("x"in i&&!e&&!i.uncache)return i;var r=t.style,n=i.scaleX<0,s="px",o="deg",u=getComputedStyle(t),l=dt(t,it)||"0",f,_,c,d,m,h,p,x,y,T,v,g,k,w,S,b,O,A,M,D,G,Y,B,X,pt,Ae,_e,ce,Nt,Vi,wt,Bt;return f=_=c=h=p=x=y=T=v=0,d=m=1,i.svg=!!(t.getCTM&&hn(t)),u.translate&&((u.translate!=="none"||u.scale!=="none"||u.rotate!=="none")&&(r[z]=(u.translate!=="none"?"translate3d("+(u.translate+" 0 0").split(" ").slice(0,3).join(", ")+") ":"")+(u.rotate!=="none"?"rotate("+u.rotate+") ":"")+(u.scale!=="none"?"scale("+u.scale.split(" ").join(",")+") ":"")+(u[z]!=="none"?u[z]:"")),r.scale=r.rotate=r.translate="none"),w=Ui(t,i.svg),i.svg&&(i.uncache?(pt=t.getBBox(),l=i.xOrigin-pt.x+"px "+(i.yOrigin-pt.y)+"px",X=""):X=!e&&t.getAttribute("data-svg-origin"),Ti(t,X||l,!!X||i.originIsAbsolute,i.smooth!==!1,w)),g=i.xOrigin||0,k=i.yOrigin||0,w!==Oe&&(A=w[0],M=w[1],D=w[2],G=w[3],f=Y=w[4],_=B=w[5],w.length===6?(d=Math.sqrt(A*A+M*M),m=Math.sqrt(G*G+D*D),h=A||M?Ht(M,A)*Yt:0,y=D||G?Ht(D,G)*Yt+h:0,y&&(m*=Math.abs(Math.cos(y*re))),i.svg&&(f-=g-(g*A+k*D),_-=k-(g*M+k*G))):(Bt=w[6],Vi=w[7],_e=w[8],ce=w[9],Nt=w[10],wt=w[11],f=w[12],_=w[13],c=w[14],S=Ht(Bt,Nt),p=S*Yt,S&&(b=Math.cos(-S),O=Math.sin(-S),X=Y*b+_e*O,pt=B*b+ce*O,Ae=Bt*b+Nt*O,_e=Y*-O+_e*b,ce=B*-O+ce*b,Nt=Bt*-O+Nt*b,wt=Vi*-O+wt*b,Y=X,B=pt,Bt=Ae),S=Ht(-D,Nt),x=S*Yt,S&&(b=Math.cos(-S),O=Math.sin(-S),X=A*b-_e*O,pt=M*b-ce*O,Ae=D*b-Nt*O,wt=G*O+wt*b,A=X,M=pt,D=Ae),S=Ht(M,A),h=S*Yt,S&&(b=Math.cos(S),O=Math.sin(S),X=A*b+M*O,pt=Y*b+B*O,M=M*b-A*O,B=B*b-Y*O,A=X,Y=pt),p&&Math.abs(p)+Math.abs(h)>359.9&&(p=h=0,x=180-x),d=N(Math.sqrt(A*A+M*M+D*D)),m=N(Math.sqrt(B*B+Bt*Bt)),S=Ht(Y,B),y=Math.abs(S)>2e-4?S*Yt:0,v=wt?1/(wt<0?-wt:wt):0),i.svg&&(X=t.getAttribute("transform"),i.forceCSS=t.setAttribute("transform","")||!cn(dt(t,z)),X&&t.setAttribute("transform",X))),Math.abs(y)>90&&Math.abs(y)<270&&(n?(d*=-1,y+=h<=0?180:-180,h+=h<=0?180:-180):(m*=-1,y+=y<=0?180:-180)),e=e||i.uncache,i.x=f-((i.xPercent=f&&(!e&&i.xPercent||(Math.round(t.offsetWidth/2)===Math.round(-f)?-50:0)))?t.offsetWidth*i.xPercent/100:0)+s,i.y=_-((i.yPercent=_&&(!e&&i.yPercent||(Math.round(t.offsetHeight/2)===Math.round(-_)?-50:0)))?t.offsetHeight*i.yPercent/100:0)+s,i.z=c+s,i.scaleX=N(d),i.scaleY=N(m),i.rotation=N(h)+o,i.rotationX=N(p)+o,i.rotationY=N(x)+o,i.skewX=y+o,i.skewY=T+o,i.transformPerspective=v+s,(i.zOrigin=parseFloat(l.split(" ")[2])||!e&&i.zOrigin||0)&&(r[it]=qe(l)),i.xOffset=i.yOffset=0,i.force3D=ut.force3D,i.renderTransform=i.svg?io:ln?dn:eo,i.uncache=0,i},qe=function(t){return(t=t.split(" "))[0]+" "+t[1]},si=function(t,e,i){var r=q(e);return N(parseFloat(e)+parseFloat(zt(t,"x",i+"px",r)))+r},eo=function(t,e){e.z="0px",e.rotationY=e.rotationX="0deg",e.force3D=0,dn(t,e)},Ut="0deg",de="0px",Vt=") ",dn=function(t,e){var i=e||this,r=i.xPercent,n=i.yPercent,s=i.x,o=i.y,u=i.z,l=i.rotation,f=i.rotationY,_=i.rotationX,c=i.skewX,d=i.skewY,m=i.scaleX,h=i.scaleY,p=i.transformPerspective,x=i.force3D,y=i.target,T=i.zOrigin,v="",g=x==="auto"&&t&&t!==1||x===!0;if(T&&(_!==Ut||f!==Ut)){var k=parseFloat(f)*re,w=Math.sin(k),S=Math.cos(k),b;k=parseFloat(_)*re,b=Math.cos(k),s=si(y,s,w*b*-T),o=si(y,o,-Math.sin(k)*-T),u=si(y,u,S*b*-T+T)}p!==de&&(v+="perspective("+p+Vt),(r||n)&&(v+="translate("+r+"%, "+n+"%) "),(g||s!==de||o!==de||u!==de)&&(v+=u!==de||g?"translate3d("+s+", "+o+", "+u+") ":"translate("+s+", "+o+Vt),l!==Ut&&(v+="rotate("+l+Vt),f!==Ut&&(v+="rotateY("+f+Vt),_!==Ut&&(v+="rotateX("+_+Vt),(c!==Ut||d!==Ut)&&(v+="skew("+c+", "+d+Vt),(m!==1||h!==1)&&(v+="scale("+m+", "+h+Vt),y.style[z]=v||"translate(0, 0)"},io=function(t,e){var i=e||this,r=i.xPercent,n=i.yPercent,s=i.x,o=i.y,u=i.rotation,l=i.skewX,f=i.skewY,_=i.scaleX,c=i.scaleY,d=i.target,m=i.xOrigin,h=i.yOrigin,p=i.xOffset,x=i.yOffset,y=i.forceCSS,T=parseFloat(s),v=parseFloat(o),g,k,w,S,b;u=parseFloat(u),l=parseFloat(l),f=parseFloat(f),f&&(f=parseFloat(f),l+=f,u+=f),u||l?(u*=re,l*=re,g=Math.cos(u)*_,k=Math.sin(u)*_,w=Math.sin(u-l)*-c,S=Math.cos(u-l)*c,l&&(f*=re,b=Math.tan(l-f),b=Math.sqrt(1+b*b),w*=b,S*=b,f&&(b=Math.tan(f),b=Math.sqrt(1+b*b),g*=b,k*=b)),g=N(g),k=N(k),w=N(w),S=N(S)):(g=_,S=c,k=w=0),(T&&!~(s+"").indexOf("px")||v&&!~(o+"").indexOf("px"))&&(T=zt(d,"x",s,"px"),v=zt(d,"y",o,"px")),(m||h||p||x)&&(T=N(T+m-(m*g+h*w)+p),v=N(v+h-(m*k+h*S)+x)),(r||n)&&(b=d.getBBox(),T=N(T+r/100*b.width),v=N(v+n/100*b.height)),b="matrix("+g+","+k+","+w+","+S+","+T+","+v+")",d.setAttribute("transform",b),y&&(d.style[z]=b)},ro=function(t,e,i,r,n){var s=360,o=$(n),u=parseFloat(n)*(o&&~n.indexOf("rad")?Yt:1),l=u-r,f=r+l+"deg",_,c;return o&&(_=n.split("_")[1],_==="short"&&(l%=s,l!==l%(s/2)&&(l+=l<0?s:-s)),_==="cw"&&l<0?l=(l+s*ir)%s-~~(l/s)*s:_==="ccw"&&l>0&&(l=(l-s*ir)%s-~~(l/s)*s)),t._pt=c=new et(t._pt,e,i,r,l,Us),c.e=f,c.u="deg",t._props.push(i),c},lr=function(t,e){for(var i in e)t[i]=e[i];return t},no=function(t,e,i){var r=lr({},i._gsap),n="perspective,force3D,transformOrigin,svgOrigin",s=i.style,o,u,l,f,_,c,d,m;r.svg?(l=i.getAttribute("transform"),i.setAttribute("transform",""),s[z]=e,o=Ce(i,1),Kt(i,z),i.setAttribute("transform",l)):(l=getComputedStyle(i)[z],s[z]=e,o=Ce(i,1),s[z]=l);for(u in Ct)l=r[u],f=o[u],l!==f&&n.indexOf(u)<0&&(d=q(l),m=q(f),_=d!==m?zt(i,u,l,m):parseFloat(l),c=parseFloat(f),t._pt=new et(t._pt,o,u,_,c-_,yi),t._pt.u=m||0,t._props.push(u));lr(o,r)};tt("padding,margin,Width,Radius",function(a,t){var e="Top",i="Right",r="Bottom",n="Left",s=(t<3?[e,i,r,n]:[e+n,e+i,r+i,r+n]).map(function(o){return t<2?a+o:"border"+o+a});We[t>1?"border"+a:a]=function(o,u,l,f,_){var c,d;if(arguments.length<4)return c=s.map(function(m){return St(o,m,l)}),d=c.join(" "),d.split(c[0]).length===5?c[0]:d;c=(f+"").split(" "),d={},s.forEach(function(m,h){return d[m]=c[h]=c[h]||c[(h-1)/2|0]}),o.init(u,d,_)}});var pn={name:"css",register:vi,targetTest:function(t){return t.style&&t.nodeType},init:function(t,e,i,r,n){var s=this._props,o=t.style,u=i.vars.startAt,l,f,_,c,d,m,h,p,x,y,T,v,g,k,w,S;Li||vi(),this.styles=this.styles||un(t),S=this.styles.props,this.tween=i;for(h in e)if(h!=="autoRound"&&(f=e[h],!(st[h]&&Hr(h,e,i,r,t,n)))){if(d=typeof f,m=We[h],d==="function"&&(f=f.call(i,r,t,n),d=typeof f),d==="string"&&~f.indexOf("random(")&&(f=ke(f)),m)m(this,t,h,f,i)&&(w=1);else if(h.substr(0,2)==="--")l=(getComputedStyle(t).getPropertyValue(h)+"").trim(),f+="",It.lastIndex=0,It.test(l)||(p=q(l),x=q(f)),x?p!==x&&(l=zt(t,h,l,x)+x):p&&(f+=p),this.add(o,"setProperty",l,f,r,n,0,0,h),s.push(h),S.push(h,0,o[h]);else if(d!=="undefined"){if(u&&h in u?(l=typeof u[h]=="function"?u[h].call(i,r,t,n):u[h],$(l)&&~l.indexOf("random(")&&(l=ke(l)),q(l+"")||l==="auto"||(l+=ut.units[h]||q(St(t,h))||""),(l+"").charAt(1)==="="&&(l=St(t,h))):l=St(t,h),c=parseFloat(l),y=d==="string"&&f.charAt(1)==="="&&f.substr(0,2),y&&(f=f.substr(2)),_=parseFloat(f),h in vt&&(h==="autoAlpha"&&(c===1&&St(t,"visibility")==="hidden"&&_&&(c=0),S.push("visibility",0,o.visibility),Dt(this,o,"visibility",c?"inherit":"hidden",_?"inherit":"hidden",!_)),h!=="scale"&&h!=="transform"&&(h=vt[h],~h.indexOf(",")&&(h=h.split(",")[0]))),T=h in Ct,T){if(this.styles.save(h),d==="string"&&f.substring(0,6)==="var(--"&&(f=dt(t,f.substring(4,f.indexOf(")"))),_=parseFloat(f)),v||(g=t._gsap,g.renderTransform&&!e.parseTransform||Ce(t,e.parseTransform),k=e.smoothOrigin!==!1&&g.smooth,v=this._pt=new et(this._pt,o,z,0,1,g.renderTransform,g,0,-1),v.dep=1),h==="scale")this._pt=new et(this._pt,g,"scaleY",g.scaleY,(y?ee(g.scaleY,y+_):_)-g.scaleY||0,yi),this._pt.u=0,s.push("scaleY",h),h+="X";else if(h==="transformOrigin"){S.push(it,0,o[it]),f=Js(f),g.svg?Ti(t,f,0,k,0,this):(x=parseFloat(f.split(" ")[2])||0,x!==g.zOrigin&&Dt(this,g,"zOrigin",g.zOrigin,x),Dt(this,o,h,qe(l),qe(f)));continue}else if(h==="svgOrigin"){Ti(t,f,1,k,0,this);continue}else if(h in _n){ro(this,g,h,c,y?ee(c,y+f):f);continue}else if(h==="smoothOrigin"){Dt(this,g,"smooth",g.smooth,f);continue}else if(h==="force3D"){g[h]=f;continue}else if(h==="transform"){no(this,f,t);continue}}else h in o||(h=fe(h)||h);if(T||(_||_===0)&&(c||c===0)&&!Bs.test(f)&&h in o)p=(l+"").substr((c+"").length),_||(_=0),x=q(f)||(h in ut.units?ut.units[h]:p),p!==x&&(c=zt(t,h,l,x)),this._pt=new et(this._pt,T?g:o,h,c,(y?ee(c,y+_):_)-c,!T&&(x==="px"||h==="zIndex")&&e.autoRound!==!1?Ys:yi),this._pt.u=x||0,p!==x&&x!=="%"&&(this._pt.b=l,this._pt.r=Vs);else if(h in o)Zs.call(this,t,h,l,y?y+f:f);else if(h in t)this.add(t,h,l||t[h],y?y+f:f,r,n);else if(h!=="parseTransform"){Oi(h,f);continue}T||(h in o?S.push(h,0,o[h]):typeof t[h]=="function"?S.push(h,2,t[h]()):S.push(h,1,l||t[h])),s.push(h)}}w&&rn(this)},render:function(t,e){if(e.tween._time||!Ni())for(var i=e._pt;i;)i.r(t,i.d),i=i._next;else e.styles.revert()},get:St,aliases:vt,getSetter:function(t,e,i){var r=vt[e];return r&&r.indexOf(",")<0&&(e=r),e in Ct&&e!==it&&(t._gsap.x||St(t,"x"))?i&&er===i?e==="scale"?Ws:Gs:(er=i||{})&&(e==="scale"?qs:Ks):t.style&&!ki(t.style[e])?Xs:~e.indexOf("-")?$s:Fi(t,e)},core:{_removeProperty:Kt,_getMatrix:Ui}};rt.utils.checkPrefix=fe;rt.core.getStyleSaver=un;(function(a,t,e,i){var r=tt(a+","+t+","+e,function(n){Ct[n]=1});tt(t,function(n){ut.units[n]="deg",_n[n]=1}),vt[r[13]]=a+","+t,tt(i,function(n){var s=n.split(":");vt[s[1]]=r[s[0]]})})("x,y,z,scale,scaleX,scaleY,xPercent,yPercent","rotation,rotationX,rotationY,skewX,skewY","transform,transformOrigin,svgOrigin,force3D,smoothOrigin,transformPerspective","0:translateX,1:translateY,2:translateZ,8:rotate,8:rotationZ,8:rotateZ,9:rotateX,10:rotateY");tt("x,y,z,top,right,bottom,left,width,height,fontSize,padding,margin,perspective",function(a){ut.units[a]="px"});rt.registerPlugin(pn);var Ue=rt.registerPlugin(pn)||rt;Ue.core.Tween;/*!
|
|
16
16
|
* ScrollToPlugin 3.13.0
|
|
17
17
|
* https://gsap.com
|
|
18
18
|
*
|
|
19
19
|
* @license Copyright 2008-2025, GreenSock. All rights reserved.
|
|
20
20
|
* Subject to the terms at https://gsap.com/standard-license
|
|
21
21
|
* @author: Jack Doyle, jack@greensock.com
|
|
22
|
-
*/var
|
|
22
|
+
*/var K,mn,Pt,Tt,Et,gn,ne,ze,yn=function(){return typeof window<"u"},xn=function(){return K||yn()&&(K=window.gsap)&&K.registerPlugin&&K},vn=function(t){return typeof t=="string"},fr=function(t){return typeof t=="function"},Re=function(t,e){var i=e==="x"?"Width":"Height",r="scroll"+i,n="client"+i;return t===Pt||t===Tt||t===Et?Math.max(Tt[r],Et[r])-(Pt["inner"+i]||Tt[n]||Et[n]):t[r]-t["offset"+i]},Me=function(t,e){var i="scroll"+(e==="x"?"Left":"Top");return t===Pt&&(t.pageXOffset!=null?i="page"+e.toUpperCase()+"Offset":t=Tt[i]!=null?Tt:Et),function(){return t[i]}},so=function(t,e,i,r){if(fr(t)&&(t=t(e,i,r)),typeof t!="object")return vn(t)&&t!=="max"&&t.charAt(1)!=="="?{x:t,y:t}:{y:t};if(t.nodeType)return{y:t,x:t};var n={},s;for(s in t)n[s]=s!=="onAutoKill"&&fr(t[s])?t[s](e,i,r):t[s];return n},Tn=function(t,e){if(t=gn(t)[0],!t||!t.getBoundingClientRect)return console.warn("scrollTo target doesn't exist. Using 0")||{x:0,y:0};var i=t.getBoundingClientRect(),r=!e||e===Pt||e===Et,n=r?{top:Tt.clientTop-(Pt.pageYOffset||Tt.scrollTop||Et.scrollTop||0),left:Tt.clientLeft-(Pt.pageXOffset||Tt.scrollLeft||Et.scrollLeft||0)}:e.getBoundingClientRect(),s={x:i.left-n.left,y:i.top-n.top};return!r&&e&&(s.x+=Me(e,"x")(),s.y+=Me(e,"y")()),s},hr=function(t,e,i,r,n){return!isNaN(t)&&typeof t!="object"?parseFloat(t)-n:vn(t)&&t.charAt(1)==="="?parseFloat(t.substr(2))*(t.charAt(0)==="-"?-1:1)+r-n:t==="max"?Re(e,i)-n:Math.min(Re(e,i),Tn(t,e)[i]-n)},bi=function(){K=xn(),yn()&&K&&typeof document<"u"&&document.body&&(Pt=window,Et=document.body,Tt=document.documentElement,gn=K.utils.toArray,K.config({autoKillThreshold:7}),ne=K.config(),mn=1)},he={version:"3.13.0",name:"scrollTo",rawVars:1,register:function(t){K=t,bi()},init:function(t,e,i,r,n){mn||bi();var s=this,o=K.getProperty(t,"scrollSnapType");s.isWin=t===Pt,s.target=t,s.tween=i,e=so(e,r,t,n),s.vars=e,s.autoKill=!!("autoKill"in e?e:ne).autoKill,s.getX=Me(t,"x"),s.getY=Me(t,"y"),s.x=s.xPrev=s.getX(),s.y=s.yPrev=s.getY(),ze||(ze=K.core.globals().ScrollTrigger),K.getProperty(t,"scrollBehavior")==="smooth"&&K.set(t,{scrollBehavior:"auto"}),o&&o!=="none"&&(s.snap=1,s.snapInline=t.style.scrollSnapType,t.style.scrollSnapType="none"),e.x!=null?(s.add(s,"x",s.x,hr(e.x,t,"x",s.x,e.offsetX||0),r,n),s._props.push("scrollTo_x")):s.skipX=1,e.y!=null?(s.add(s,"y",s.y,hr(e.y,t,"y",s.y,e.offsetY||0),r,n),s._props.push("scrollTo_y")):s.skipY=1},render:function(t,e){for(var i=e._pt,r=e.target,n=e.tween,s=e.autoKill,o=e.xPrev,u=e.yPrev,l=e.isWin,f=e.snap,_=e.snapInline,c,d,m,h,p;i;)i.r(t,i.d),i=i._next;c=l||!e.skipX?e.getX():o,d=l||!e.skipY?e.getY():u,m=d-u,h=c-o,p=ne.autoKillThreshold,e.x<0&&(e.x=0),e.y<0&&(e.y=0),s&&(!e.skipX&&(h>p||h<-p)&&c<Re(r,"x")&&(e.skipX=1),!e.skipY&&(m>p||m<-p)&&d<Re(r,"y")&&(e.skipY=1),e.skipX&&e.skipY&&(n.kill(),e.vars.onAutoKill&&e.vars.onAutoKill.apply(n,e.vars.onAutoKillParams||[]))),l?Pt.scrollTo(e.skipX?c:e.x,e.skipY?d:e.y):(e.skipY||(r.scrollTop=e.y),e.skipX||(r.scrollLeft=e.x)),f&&(t===1||t===0)&&(d=r.scrollTop,c=r.scrollLeft,_?r.style.scrollSnapType=_:r.style.removeProperty("scroll-snap-type"),r.scrollTop=d+1,r.scrollLeft=c+1,r.scrollTop=d,r.scrollLeft=c),e.xPrev=e.x,e.yPrev=e.y,ze&&ze.update()},kill:function(t){var e=t==="scrollTo",i=this._props.indexOf(t);return(e||t==="scrollTo_x")&&(this.skipX=1),(e||t==="scrollTo_y")&&(this.skipY=1),i>-1&&this._props.splice(i,1),!this._props.length}};he.max=Re;he.getOffset=Tn;he.buildGetter=Me;he.config=function(a){ne||bi()||(ne=K.config());for(var t in a)ne[t]=a[t]};xn()&&K.registerPlugin(he);const oo={"text-gray-200":"","w-screen":"","h-screen":""},ao={key:0},uo={flex:"","flex-col":"","justify-center":"","items-center":"","w-screen":"","h-screen":"","text-xl":"",italic:"",class:"bg-[#323443]"},lo={key:0},fo={key:1},ho={class:"bg-resolver-bg-1",flex:"","flex-col":"","justify-between":"","font-mono":"","w-screen":"","h-screen":"","overflow-hidden":""},_o=_r({__name:"Resolver",props:{dataSourceUrl:null},setup(a){const t=a;Ue.registerPlugin(he);const e=bn(Wi),{t:i,locale:r}=cr(),n=pe(()=>r.value),s=mt(!1),o=mt(!1),u=mt(!1),l=mt({}),f=mt([]),_=mt([]),c=mt({}),d=On();function m(){const v=new Fn(l.value,f.value,_.value);v.buildResolver(),c.value=v}const{data:h,isError:p,error:x}=An(t.dataSourceUrl,d,!0);Qe(h,async()=>{h.value===null||h.value===void 0||(l.value=Cn(h.value?.contest),e.value=`${l.value.name.getOrDefault(n.value)} | ${Wi}`,f.value=Mn(h.value?.teams),_.value=Dn(h.value?.submissions,l.value),m(),s.value=!0)},{immediate:!0}),wn([" "],v=>{v.preventDefault()}),Ee(["n"," "],()=>{if(!u.value){o.value=!0;return}c.value.next()},{dedupe:!0}),Ee(["r"],()=>{c.value.rewind()},{dedupe:!0}),Ee(["w"],()=>{c.value.currentIndex--}),Ee(["s"],()=>{c.value.currentIndex++});const y=mt(null),T=mt(null);return kn(()=>{Qe(()=>o.value,async()=>{if(!u.value&&o.value&&y.value){const v=y.value.scrollHeight,g=y.value.clientHeight;Ue.to(y.value,{duration:Math.round(c.value.teams.length*.2),scrollTop:v-g,ease:"power1.inOut",onComplete:()=>{u.value=!0}})}},{immediate:!0}),Qe(()=>c.value.currentIndex,async()=>{if(u.value&&y.value&&T.value){const v=y.value.getBoundingClientRect(),g=v.height,k=T.value.getBoundingClientRect(),w=k.height,S=g-3*w,O=k.top-v.top-S;Ue.to(y.value,{duration:2.5,ease:"power1.out",scrollTop:`+=${O}`})}},{flush:"post"})}),(v,g)=>{const k=$n;return Z(),Q("div",oo,[I(s)?(Z(),Q("div",fo,[nt("div",null,[nt("div",ho,[nt("div",{ref_key:"resolverRef",ref:y,"h-full":"","overflow-y-auto":""},[Yi(Pn,{name:"resolver",tag:"ul"},{default:Sn(()=>[(Z(!0),Q(Qt,null,dr(I(c).teams,(w,S)=>(Z(),Q("div",{key:w.id,ref_for:!0,ref:b=>{S===I(c).currentIndex&&(T.value=b)},class:oi([w.id===I(c).currentTeamId?"z-999":"z-0"]),"position-relative":""},[Yi(k,{index:S,team:w,resolver:I(c)},null,8,["index","team","resolver"])],2))),128))]),_:1})],512)])])])):(Z(),Q("div",ao,[nt("div",uo,[nt("div",null,gt(I(i)("common.loading"))+"... ",1),I(p)?(Z(),Q("div",lo,gt(I(x)),1)):me("",!0)])]))])}}}),vo=pr(_o,[["__scopeId","data-v-ed2062e9"]]);export{vo as _};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{_ as t}from"./_plugin-vue_export-helper-DlAUqK2U.js";import{c as e,o as l,b as o}from"./index-
|
|
1
|
+
import{_ as t}from"./_plugin-vue_export-helper-DlAUqK2U.js";import{c as e,o as l,b as o}from"./index-8PXU_sno.js";const s={},n={class:"color-gray-700 dark:color-gray-200"};function a(c,r){return l(),e("div",n,[...r[0]||(r[0]=[o("svg",{stroke:"currentColor",fill:"currentColor",strokeWidth:"0",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"1161",width:"30",height:"30"},[o("path",{d:"M837.9904 570.0608H124.5696a29.0304 29.0304 0 0 1-29.0304-29.0304V482.9696a29.0304 29.0304 0 0 1 29.0304-29.0304h713.4208z",fill:"currentColor","p-id":"1162"}),o("path",{d:"M561.3056 808.96l-40.96-40.96a28.928 28.928 0 0 1 0-40.96l215.04-215.04-215.04-215.04a28.9792 28.9792 0 0 1 0-40.96l40.96-40.96a28.9792 28.9792 0 0 1 40.96 0l296.96 296.96-296.96 296.96a28.9792 28.9792 0 0 1-40.96 0z",fill:"currentColor","p-id":"1163"})],-1)])])}const d=t(s,[["render",a]]);export{d as _};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a2 as W,a3 as F,a4 as f,a5 as Q,a6 as w,a7 as B,a8 as k,a9 as M,aa as z,ab as T,ac as H,ad as K,ae as j,af as Y,ag as G,ah as J,ai as X,h as N,aj as Z,ak as q,al as tt,C as x,am as A,an as et,ao as $,ap as st,aq as it,ar as nt,e as at,v as rt,as as ot,u as ht,c as lt,o as ut,y as ct,z as dt}from"./index-8PXU_sno.js";import{b as ft}from"./constant-z3sbugPT.js";import{_ as pt}from"./use-vmodel-BLyWK6hZ.js";var vt=class extends W{constructor(t,e){super(),this.options=e,this.#s=t,this.#n=null,this.#i=F(),this.bindMethods(),this.setOptions(e)}#s;#t=void 0;#p=void 0;#e=void 0;#r;#u;#i;#n;#v;#c;#d;#o;#h;#a;#f=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(this.#t.addObserver(this),L(this.#t,this.options)?this.#l():this.updateResult(),this.#R())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return D(this.#t,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return D(this.#t,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#g(),this.#O(),this.#t.removeObserver(this)}setOptions(t){const e=this.options,i=this.#t;if(this.options=this.#s.defaultQueryOptions(t),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof f(this.options.enabled,this.#t)!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");this.#w(),this.#t.setOptions(this.options),e._defaulted&&!Q(this.options,e)&&this.#s.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#t,observer:this});const s=this.hasListeners();s&&V(this.#t,i,this.options,e)&&this.#l(),this.updateResult(),s&&(this.#t!==i||f(this.options.enabled,this.#t)!==f(e.enabled,this.#t)||w(this.options.staleTime,this.#t)!==w(e.staleTime,this.#t))&&this.#m();const n=this.#b();s&&(this.#t!==i||f(this.options.enabled,this.#t)!==f(e.enabled,this.#t)||n!==this.#a)&&this.#y(n)}getOptimisticResult(t){const e=this.#s.getQueryCache().build(this.#s,t),i=this.createResult(e,t);return bt(this,i)&&(this.#e=i,this.#u=this.options,this.#r=this.#t.state),i}getCurrentResult(){return this.#e}trackResult(t,e){return new Proxy(t,{get:(i,s)=>(this.trackProp(s),e?.(s),s==="promise"&&(this.trackProp("data"),!this.options.experimental_prefetchInRender&&this.#i.status==="pending"&&this.#i.reject(new Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(i,s))})}trackProp(t){this.#f.add(t)}getCurrentQuery(){return this.#t}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){const e=this.#s.defaultQueryOptions(t),i=this.#s.getQueryCache().build(this.#s,e);return i.fetch().then(()=>this.createResult(i,e))}fetch(t){return this.#l({...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#e))}#l(t){this.#w();let e=this.#t.fetch(this.options,t);return t?.throwOnError||(e=e.catch(B)),e}#m(){this.#g();const t=w(this.options.staleTime,this.#t);if(k||this.#e.isStale||!M(t))return;const i=z(this.#e.dataUpdatedAt,t)+1;this.#o=T.setTimeout(()=>{this.#e.isStale||this.updateResult()},i)}#b(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(this.#t):this.options.refetchInterval)??!1}#y(t){this.#O(),this.#a=t,!(k||f(this.options.enabled,this.#t)===!1||!M(this.#a)||this.#a===0)&&(this.#h=T.setInterval(()=>{(this.options.refetchIntervalInBackground||H.isFocused())&&this.#l()},this.#a))}#R(){this.#m(),this.#y(this.#b())}#g(){this.#o&&(T.clearTimeout(this.#o),this.#o=void 0)}#O(){this.#h&&(T.clearInterval(this.#h),this.#h=void 0)}createResult(t,e){const i=this.#t,s=this.options,n=this.#e,r=this.#r,l=this.#u,m=t!==i?t.state:this.#p,{state:g}=t;let a={...g},C=!1,h;if(e._optimisticResults){const c=this.hasListeners(),I=!c&&L(t,e),R=c&&V(t,i,e,s);(I||R)&&(a={...a,...K(g.data,t.options)}),e._optimisticResults==="isRestoring"&&(a.fetchStatus="idle")}let{error:o,errorUpdatedAt:v,status:d}=a;h=a.data;let O=!1;if(e.placeholderData!==void 0&&h===void 0&&d==="pending"){let c;n?.isPlaceholderData&&e.placeholderData===l?.placeholderData?(c=n.data,O=!0):c=typeof e.placeholderData=="function"?e.placeholderData(this.#d?.state.data,this.#d):e.placeholderData,c!==void 0&&(d="success",h=j(n?.data,c,e),C=!0)}if(e.select&&h!==void 0&&!O)if(n&&h===r?.data&&e.select===this.#v)h=this.#c;else try{this.#v=e.select,h=e.select(h),h=j(n?.data,h,e),this.#c=h,this.#n=null}catch(c){this.#n=c}this.#n&&(o=this.#n,h=this.#c,v=Date.now(),d="error");const b=a.fetchStatus==="fetching",y=d==="pending",E=d==="error",U=y&&b,_=h!==void 0,p={status:d,fetchStatus:a.fetchStatus,isPending:y,isSuccess:d==="success",isError:E,isInitialLoading:U,isLoading:U,data:h,dataUpdatedAt:a.dataUpdatedAt,error:o,errorUpdatedAt:v,failureCount:a.fetchFailureCount,failureReason:a.fetchFailureReason,errorUpdateCount:a.errorUpdateCount,isFetched:a.dataUpdateCount>0||a.errorUpdateCount>0,isFetchedAfterMount:a.dataUpdateCount>m.dataUpdateCount||a.errorUpdateCount>m.errorUpdateCount,isFetching:b,isRefetching:b&&!y,isLoadingError:E&&!_,isPaused:a.fetchStatus==="paused",isPlaceholderData:C,isRefetchError:E&&_,isStale:P(t,e),refetch:this.refetch,promise:this.#i,isEnabled:f(e.enabled,t)!==!1};if(this.options.experimental_prefetchInRender){const c=S=>{p.status==="error"?S.reject(p.error):p.data!==void 0&&S.resolve(p.data)},I=()=>{const S=this.#i=p.promise=F();c(S)},R=this.#i;switch(R.status){case"pending":t.queryHash===i.queryHash&&c(R);break;case"fulfilled":(p.status==="error"||p.data!==R.value)&&I();break;case"rejected":(p.status!=="error"||p.error!==R.reason)&&I();break}}return p}updateResult(){const t=this.#e,e=this.createResult(this.#t,this.options);if(this.#r=this.#t.state,this.#u=this.options,this.#r.data!==void 0&&(this.#d=this.#t),Q(e,t))return;this.#e=e;const i=()=>{if(!t)return!0;const{notifyOnChangeProps:s}=this.options,n=typeof s=="function"?s():s;if(n==="all"||!n&&!this.#f.size)return!0;const r=new Set(n??this.#f);return this.options.throwOnError&&r.add("error"),Object.keys(this.#e).some(l=>{const u=l;return this.#e[u]!==t[u]&&r.has(u)})};this.#C({listeners:i()})}#w(){const t=this.#s.getQueryCache().build(this.#s,this.options);if(t===this.#t)return;const e=this.#t;this.#t=t,this.#p=t.state,this.hasListeners()&&(e?.removeObserver(this),t.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#R()}#C(t){Y.batch(()=>{t.listeners&&this.listeners.forEach(e=>{e(this.#e)}),this.#s.getQueryCache().notify({query:this.#t,type:"observerResultsUpdated"})})}};function mt(t,e){return f(e.enabled,t)!==!1&&t.state.data===void 0&&!(t.state.status==="error"&&e.retryOnMount===!1)}function L(t,e){return mt(t,e)||t.state.data!==void 0&&D(t,e,e.refetchOnMount)}function D(t,e,i){if(f(e.enabled,t)!==!1&&w(e.staleTime,t)!=="static"){const s=typeof i=="function"?i(t):i;return s==="always"||s!==!1&&P(t,e)}return!1}function V(t,e,i,s){return(t!==e||f(s.enabled,t)===!1)&&(!i.suspense||t.state.status!=="error")&&P(t,i)}function P(t,e){return f(e.enabled,t)!==!1&&t.isStaleByTime(w(e.staleTime,t))}function bt(t,e){return!Q(t.getCurrentResult(),e)}function yt(t=""){if(!G())throw new Error("vue-query hooks can only be used inside setup() function or functions that support injection context.");const e=X(t),i=J(e);if(!i)throw new Error("No 'queryClient' found in Vue context, use 'VueQueryPlugin' to properly initialize the library.");return i}function Rt(t,e,i){const s=yt(),n=N(()=>{const o=Z(e);typeof o.enabled=="function"&&(o.enabled=o.enabled());const v=s.defaultQueryOptions(o);return v._optimisticResults=s.isRestoring?.value?"isRestoring":"optimistic",v}),r=new t(s,n.value),l=n.value.shallow?q(r.getCurrentResult()):tt(r.getCurrentResult());let u=()=>{};s.isRestoring&&x(s.isRestoring,o=>{o||(u(),u=r.subscribe(v=>{A(l,v)}))},{immediate:!0});const m=()=>{r.setOptions(n.value),A(l,r.getCurrentResult())};x(n,m),et(()=>{u()});const g=(...o)=>(m(),l.refetch(...o)),a=()=>new Promise((o,v)=>{let d=()=>{};const O=()=>{if(n.value.enabled!==!1){r.setOptions(n.value);const b=r.getOptimisticResult(n.value);b.isStale?(d(),r.fetchOptimistic(n.value).then(o,y=>{$(n.value.throwOnError,[y,r.getCurrentQuery()])?v(y):o(r.getCurrentResult())})):(d(),o(b))}};O(),d=x(n,O)});x(()=>l.error,o=>{if(l.isError&&!l.isFetching&&$(n.value.throwOnError,[o,r.getCurrentQuery()]))throw o});const C=n.value.shallow?st(l):it(l),h=nt(C);for(const o in l)typeof l[o]=="function"&&(h[o]=l[o]);return h.suspense=a,h.refetch=g,h}function gt(t,e){return Rt(vt,t)}const Ot=3;async function wt(t,e){const i=t.startsWith("/")?t.slice(1):t;let s=`${window.DATA_HOST}${i}`;const n={allInOne:!1};if(s.includes("#")){const a=new URLSearchParams(s.split("#")[1]);n.allInOne=a.get("allInOne")==="true",s=s.split("#")[0]}t.startsWith("http")&&(s=t),s.endsWith("/")&&(s=s.slice(0,-1));const r=a=>a.includes("?")?`${a}&t=${e??0}`:`${a}?t=${e??0}`,l=n.allInOne?[await fetch(r(s))]:[await fetch(r(`${s}/config.json`)),await fetch(r(`${s}/team.json`)),await fetch(r(`${s}/run.json`))],{status:u,statusText:m}=l[0];if(u>=300||u<200)throw new Error(`fetch data failed. [status=${u}] [statusText=${m}]`);return Promise.all(l.map(a=>a.json())).then(a=>n.allInOne?a[0]:{contest:a[0],teams:a[1],submissions:a[2]})}function Et(t,e,i=!1){let s=3e4,n=s;const r=N(()=>Math.floor(e.value.getTime()/1e3/10));return ft.value==="I18N"&&(s=10*1e3,n=s),i&&(s=Number.POSITIVE_INFINITY,n=!1),gt({queryKey:[t,r.value],queryFn:()=>wt(t,r.value),retry:Ot,staleTime:s,refetchInterval:n})}const Ct=["type","text"],Qt=at({__name:"TheInput",props:{textAlign:null,textType:null,modelValue:null},emits:["update:modelValue"],setup(t){const e=t,{modelValue:i}=pt("modelValue");return(s,n)=>rt((ut(),lt("input",ct({id:"input","onUpdate:modelValue":n[0]||(n[0]=r=>dt(i)?i.value=r:null)},s.$attrs,{type:e.textType??"text",text:e.textAlign??"center",p:"x-4 y-2","w-full":"",bg:"transparent",border:"~ rounded gray-200 dark:gray-700",outline:"none active:none"}),null,16,Ct)),[[ot,ht(i)]])}});export{Qt as _,Et as u};
|