@xcpcio/board-app 0.75.1 → 0.75.2
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-D1FgknH-.js → Balloon.vue_vue_type_script_setup_true_lang-Cw5mKlP6.js} +1 -1
- package/dist/assets/{Board-DjCZZlDZ.js → Board-B_focp30.js} +4 -9
- package/dist/assets/ContestStateBadge-2eB9UgeA.js +1 -0
- package/dist/assets/{Countdown-D_UUNiMj.js → Countdown-_e1WmD1Z.js} +1 -1
- package/dist/assets/{DataSourceInput.vue_vue_type_script_setup_true_lang-WXUmTUzJ.js → DataSourceInput.vue_vue_type_script_setup_true_lang-B1XI4zsB.js} +1 -1
- package/dist/assets/{NavBar-Bh02f6cT.js → NavBar-DqffB-To.js} +1 -1
- package/dist/assets/Resolver-Cdswx7dD.js +1 -0
- package/dist/assets/{RightArrowIcon-UwLTIJrW.js → RightArrowIcon-ASzKllar.js} +1 -1
- package/dist/assets/TheInput.vue_vue_type_script_setup_true_lang-C3GiJV4o.js +1 -0
- package/dist/assets/{Tooltip.vue_vue_type_script_setup_true_lang-CqovKM2f.js → Tooltip.vue_vue_type_script_setup_true_lang-BzjHrCex.js} +1 -1
- package/dist/assets/{_...all_-BXkOsr0e.js → _...all_-D-RS9GfB.js} +1 -1
- package/dist/assets/{_...all_-CgZvPdCs.js → _...all_-DncsZYI5.js} +1 -1
- package/dist/assets/{board-layout-BJ9XOEk7.js → board-layout-_R9n85-s.js} +1 -1
- package/dist/assets/constant-B4A9F229.js +1 -0
- package/dist/assets/{dayjs-DHI77Sx3.js → dayjs-CDQeLdpE.js} +1 -1
- package/dist/assets/default-6Bf5Es_S.js +1 -0
- package/dist/assets/{headless-CT9JmEUq.js → headless-BOt-atch.js} +1 -1
- package/dist/assets/index-99Hkl89C.js +15 -0
- package/dist/assets/index-BAMguiM5.css +1 -0
- package/dist/assets/{index-BPfG3xFX.js → index-Bwa4u3Zk.js} +1 -1
- package/dist/assets/{index-DfhIQ1rz.js → index-C0X9msh5.js} +1 -1
- package/dist/assets/index-C9dK3x8P.js +1 -0
- package/dist/assets/{index-C6xFsYYS.js → index-Cs7d6jbK.js} +1 -1
- package/dist/assets/{index-Cvxk8k_Q.js → index-Di6laDi4.js} +1 -1
- package/dist/assets/index-RAMlsvVJ.js +1 -0
- package/dist/assets/{index-layout-DYzYhlvo.js → index-layout-ClOXvNqI.js} +1 -1
- package/dist/assets/{pagination-MGvyo3KY.js → pagination-BWHNOXqm.js} +1 -1
- package/dist/assets/{person-BwrHTBeO.js → person-hQawOM24.js} +1 -1
- package/dist/assets/{rank-XvBOaFgJ.js → rank-DGk2KbBp.js} +1 -1
- package/dist/assets/{use-vmodel-Byn458t1.js → use-vmodel-BwR2Z-3A.js} +2 -21
- package/dist/index.html +1 -1
- package/package.json +22 -22
- package/dist/assets/ContestStateBadge-BcWWr0vn.js +0 -1
- package/dist/assets/Resolver-oax2vTMR.js +0 -22
- package/dist/assets/TheInput.vue_vue_type_script_setup_true_lang-C4V5Kgtf.js +0 -1
- package/dist/assets/constant-DBo_2lNG.js +0 -1
- package/dist/assets/default-DXQxfsL1.js +0 -1
- package/dist/assets/index-B1MSy4n9.css +0 -5
- package/dist/assets/index-CHIQkSeX.js +0 -1
- package/dist/assets/index-C_1CeIsX.js +0 -71
- package/dist/assets/index-DoiqlG5Q.js +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{j as i,k as A}from"./use-vmodel-BwR2Z-3A.js";import{e as U,h as F,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-99Hkl89C.js";import{c as j,g as q}from"./dayjs-CDQeLdpE.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:new URL(s.url,e==="/"?window.location.host:e).toString():s?.base64?`data:image/${s.type??"png"};base64,${s.base64}`:""}const H=U({__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=F({get(){return t.rankOptions},set(l){M("update:rank-options",l)}}),N=F(()=>{switch(t.state){case i.PENDING:return"am-progress-bar-secondary";case i.RUNNING:return"am-progress-bar-success";case i.FROZEN:return"am-progress-bar-danger";case i.FINISHED:return"am-progress-bar-primary";case i.PAUSED:return"am-progress-bar-danger"}return""}),r=n(!1),S=n(!1),m=n(0),_=n(t.width),w=n(0),d=A(),o=n(null),L=n(null),p=n(null),T=n(null),R=n(null);function $(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 B=o.value.offsetWidth*Number.parseInt(L.value.style?.width)*.01;a>=B&&(a=B,r.value=!1);let u=0;a>0&&(u=Math.round((a+p.value.offsetWidth)/o.value.offsetWidth*1e4)),u>1e4&&(u=1e4),u===1e4&&(r.value=!1),window.getSelection()?.removeAllRanges(),m.value=u,w.value=a,_.value=u*.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,w.value)}px`:`max(calc(0%), min(calc(${t.width}%), calc(100% - 10px)))`}return G(()=>{t.needScroll===!0&&(o.value.onmouseenter=()=>{T.value.classList.add("in")},o.value.onmouseleave=()=>{T.value.classList.remove("in")}),d.value!==-1?(r.value=!0,m.value=Math.max(0,Math.min(1e4,d.value)),_.value=m.value*.01,w.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:T,class:"tooltip tooltip-top",style:I({marginLeft:"-32px",bottom:"22px",left:P()})},[c("div",{ref_key:"tooltipInner",ref:R,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:$},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=U({__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(i).PENDING?(g(),v("div",Q,k(e.pendingTime),1)):E("",!0),e.pausedTime&&e.state===x(i).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};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as h,j as y}from"./use-vmodel-
|
|
1
|
+
import{c as h,j as y}from"./use-vmodel-BwR2Z-3A.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 a,u as e,b as n,q as D,t as c,n as d,s as E}from"./index-99Hkl89C.js";import{c as u}from"./constant-B4A9F229.js";import{u as I}from"./TheInput.vue_vue_type_script_setup_true_lang-C3GiJV4o.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(),t=l({}),i=l(!1),{data:r,isError:x,error:C}=I(m.dataSourceUrl);return T(r,async()=>{r.value===null||r.value===void 0||(t.value=h(r.value?.contest),g.value=`${t.value.name.getOrDefault(p.value)} | ${u}`,i.value=!0)},{immediate:!0}),(q,z)=>(a(),o("div",U,[e(i)?(a(),o("div",F,[n("div",L,[n("div",{"mt-20":"","text-6xl":"",class:d([e(t).getContestState(e(s)).toString()])},c(e(t).getContestState(e(s))),3),n("div",{"mt-20":"",class:d(["text-[320px]",[e(t).getContestState(e(s)).toString()]])},[e(t).getContestState(e(s))===e(y).PENDING?(a(),o("div",P,c(e(t).getContestPendingTime(e(s))),1)):(a(),o("div",V,c(e(t).getContestElapsedTime(e(s))),1))],2)])])):(a(),o("div",j,[n("div",O,[n("div",null,c(e(f)("common.loading"))+"... ",1),e(x)?(a(),o("div",b,c(e(C)),1)):D("",!0)])]))]))}}),H=B($,[["__scopeId","data-v-3fea17a2"]]);export{H as _};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{_ as p}from"./TheInput.vue_vue_type_script_setup_true_lang-
|
|
1
|
+
import{_ as p}from"./TheInput.vue_vue_type_script_setup_true_lang-C3GiJV4o.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-99Hkl89C.js";import{b as k}from"./use-vmodel-BwR2Z-3A.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 _};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{_ as w}from"./Tooltip.vue_vue_type_script_setup_true_lang-
|
|
1
|
+
import{_ as w}from"./Tooltip.vue_vue_type_script_setup_true_lang-BzjHrCex.js";import{G as _,A as y,a as O,C as R,D as S,b as D,X as G}from"./constant-B4A9F229.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-99Hkl89C.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};
|
|
@@ -0,0 +1 @@
|
|
|
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}from"./index-99Hkl89C.js";import{_ as pr}from"./_plugin-vue_export-helper-DlAUqK2U.js";import{T as Xi,d as $i,c as On}from"./use-vmodel-BwR2Z-3A.js";import{T as Zt,R as Gi,f as Cn,c as Rn,a as Mn}from"./rank-DGk2KbBp.js";import{e as Wi}from"./constant-B4A9F229.js";import{u as Dn}from"./TheInput.vue_vue_type_script_setup_true_lang-C3GiJV4o.js";class An{constructor(){this.id=0,this.team=new Zt,this.problemIx=0,this.beforeTeamProblemStatistics=new Xi,this.afterTeamProblemStatistics=new Xi}}class In extends Gi{constructor(t,e,i){i.sort(Cn.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 An;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 En extends In{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 Fn={"w-20":"",flex:"","flex-shrink-0":"","justify-center":"","items-center":""},zn={flex:"","flex-1":"","flex-col":"","justify-center":"","items-start":"","gap-y-3":""},Ln={class:"resolver-team-name",truncate:"","overflow-hidden":""},Nn={flex:"","flex-row":"","text-sm":"","items-start":"","gap-x-2":""},Bn={"w-48":"",flex:"","flex-shrink-0":"","flex-row":"","justify-start":"","items-center":""},Un={class:"w-1/3"},Vn={class:"w-2/3"},Yn=_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(h=>h).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",Fn,[nt("div",null,gt(I(i).rank),1)]),nt("div",zn,[nt("div",Ln,gt(u(I(i))),1),nt("div",Nn,[(Z(!0),Q(Qt,null,dr(I(i).problemStatistics,(h,c)=>(Z(),Q("div",{key:h.problem.id,class:oi(["rounded w-22 h-7 flex justify-center items-center",[h.isAccepted?"bg-resolver-ac":"",h.isWrongAnswer?"bg-resolver-wa":"",h.isPending?"bg-resolver-pending":"",h.isUnSubmitted?"bg-resolver-untouched":"",I(r).problemFlashingEnded===!1&&I(e)===I(r).currentIndex&&I(r).currentProblemIndex===c?"resolver-uncover":""]])},[h.isAccepted?(Z(),Q(Qt,{key:0},[Ie(gt(`${h.failedCount+Number(h.isAccepted)}/${Math.floor(h.lastSubmitTimestamp/60)}`),1)],64)):me("",!0),h.isWrongAnswer?(Z(),Q(Qt,{key:1},[Ie(gt(`${h.failedCount}/${Math.floor(h.lastSubmitTimestamp/60)}`),1)],64)):me("",!0),h.isPending?(Z(),Q(Qt,{key:2},[Ie(gt(`${h.failedCount} + ${h.pendingCount}`),1)],64)):me("",!0),h.isUnSubmitted?(Z(),Q(Qt,{key:3},[Ie(gt(h.problem.label),1)],64)):me("",!0)],2))),128))])]),nt("div",Bn,[nt("div",Un,gt(I(i).solvedProblemNum),1),nt("div",Vn,gt(I(i).penaltyToMinute),1)])],2))],512))}}),Xn=pr(Yn,[["__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}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,$n=ai/4,Gn=0,gr=Math.sqrt,Wn=Math.cos,qn=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,Kn=/^[+\-=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},jn={suppressEvents:!0,isStart:!0,kill:!1},Le={suppressEvents:!0,kill:!1},Hn={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},Qn=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},Zn=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?Zn(j(t.keyframes)):ft;if(J(t.inherit))for(;e;)i(t,e.vars.defaults),e=e.parent||e._dp;return t},Jn=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},ts=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))},es=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},is=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"},rs=function(t,e,i,r){var n=t.ratio,s=e<0||!e&&(!t._start&&is(t)&&!(!t._initted&&_i(t))||(t._ts<0||t._dp._ts<0)&&!_i(t))?0:1,o=t._rDelay,u=0,l,f,h;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(h=t._zTime,t._zTime=e||(i?R:0),i||(i=e&&!h),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)},ns=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)},ss={_start:0,endTime:we,totalDuration:we},ht=function a(t,e,i){var r=t.labels,n=t._recent||ss,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=Kn.exec(t))?"":e[1]},os=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},as=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)?as(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,h=r;return $(r)?f=h={center:.5,edges:.5,end:1}[r]||0:!o&&u&&(f=r[0],h=r[1]),function(c,d,p){var _=(p||e).length,m=s[_],y,x,v,T,g,w,k,S,b;if(!m){if(b=e.grid==="auto"?0:(e.grid||[1,_t])[1],!b){for(k=-_t;k<(k=p[b++].getBoundingClientRect().left)&&b<_;);b<_&&b--}for(m=s[_]=[],y=u?Math.min(b,_)*f-.5:r%b,x=b===_t?0:u?_*h/b-.5:r/b|0,k=0,S=_t,w=0;w<_;w++)v=w%b-y,T=x-(w/b|0),m[w]=g=l?Math.abs(l==="y"?T:v):gr(v*v+T*T),g>k&&(k=g),g<S&&(S=g);r==="random"&&Fr(m),m.max=k-S,m.min=S,m.v=_=(parseFloat(e.amount)||parseFloat(e.each)*(b>_?_-1:l?l==="y"?_/b:b:Math.max(b,_/b))||0)*(r==="edges"?-1:1),m.b=_<0?n-_:n,m.u=q(e.amount||e.each)||0,i=i&&_<0?Wr(i):i}return _=(m[c]-m.min)/m.max||0,V(m.b+(i?i(_):_)*m.v)+m.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,h=t.length,c,d;h--;)n?(c=t[h].x-o,d=t[h].y-u,c=c*c+d*d):c=Math.abs(t[h]-o),c<l&&(l=c,f=h);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})},us=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)}},ls=function(t,e){return function(i){return t(parseFloat(i))+(e||q(i))}},fs=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)]})},hs=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})},_s=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)})},cs=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,h,c;if(i===!0&&(r=1)&&(i=null),s)t={p:t},e={p:e};else if(j(t)&&!j(e)){for(f=[],h=t.length,c=h-2,l=1;l<h;l++)f.push(a(t[l-1],t[l]));h--,n=function(p){p*=h;var _=Math.min(c,~~p);return f[_](p-_)},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(p){return zi(p,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:Rs,modifier:Cs,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,h,c,d,p;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=p=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&&!p&&(n=r[0]/C,s=r[1]/C,o=r[2]/C,h=Math.max(n,s,o),c=Math.min(n,s,o),f=(h+c)/2,h===c?u=l=0:(d=h-c,l=f>.5?d/(2-h-c):d/(h+c),u=h===n?(s-o)/d+(s<o?6:0):h===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,h;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),h=l.length-1;o<h;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),h=l.length-1;o<h;o++)r+=l[o]+n[o];return r+l[h]},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")})(),ds=/hsl[a]?\(/,Gr=function(t){var e=t.join(" "),i;if(It.lastIndex=0,It.test(e))return i=ds.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,h,c,d,p=function _(m){var y=a()-r,x=m===!0,v,T,g,w;if((y>t||y<0)&&(i+=y-e),r+=y,g=r-i,v=g-s,(v>0||x)&&(w=++h.frame,c=g-h.time*1e3,h.time=g=g/1e3,s+=v+(v>=n?4:n-v),T=1),x||(u=l(_)),T)for(d=0;d<o.length;d++)o[d](g,c,w,m)};return h={time:0,frame:0,tick:function(){p(!0)},deltaRatio:function(m){return c/(1e3/(m||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&&h.sleep(),l=f||function(m){return setTimeout(m,s-h.time*1e3+1|0)},Se=1,p(2))},sleep:function(){(f?cancelAnimationFrame:clearTimeout)(u),Se=0,l=we},lagSmoothing:function(m,y){t=m||1/0,e=Math.min(y||33,t)},fps:function(m){n=1e3/(m||240),s=h.time*1e3+n},add:function(m,y,x){var v=y?function(T,g,w,k){m(T,g,w,k),h.remove(v)}:m;return h.remove(m),o[x?"unshift":"push"](v),le(),v},remove:function(m,y){~(y=o.indexOf(m))&&o.splice(y,1)&&d>=y&&d--},_listeners:o},h})(),le=function(){return!Se&&ot.wake()},P={},ps=/^[\d.\-M][\d.\-,\s]/,ms=/["']/g,gs=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(ms,"").trim():+l,r=u.substr(o+1).trim();return e},ys=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)},xs=function(t){var e=(t+"").split("("),i=P[e[0]];return i&&e.length>1&&i.config?i.config.apply(null,~t.indexOf("{")?[gs(e[1])]:ys(t).split(",").map(Cr)):P._CE&&ps.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]||xs(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)*qn((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:-Wn(a*$n)+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=Gn++,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),ts(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=Hn);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,h){return o.startAt=s,xe(o).immediateRender=J(o.immediateRender),this.staggerTo(r,n,o,u,l,f,h)},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),h=this._zTime<0!=r<0&&(this._initted||!l),c,d,p,_,m,y,x,v,T,g,w,k;if(this!==F&&f>u&&r>=0&&(f=u),f!==this._tTime||s||h){if(o!==this._time&&l&&(f+=this._time-o,r+=this._time-o),c=f,T=this._start,v=this._ts,y=!v,h&&(l||(o=this._zTime),(r||!n)&&(this._zTime=r)),this._repeat){if(w=this._yoyo,m=l+this._rDelay,this._repeat<-1&&r<0)return this.totalTime(m*100+r,n,s);if(c=V(f%m),f===u?(_=this._repeat,c=l):(g=V(f/m),_=~~g,_&&_===g&&(c=l,_--),c>l&&(c=l)),g=ae(this._tTime,m),!o&&this._tTime&&g!==_&&this._tTime-g*m-this._dur<=0&&(g=_),w&&_&1&&(c=l-c,k=1),_!==g&&!this._lock){var S=w&&g&1,b=S===(w&&_&1);if(_<g&&(S=!S),o=S?0:f%l?l:f,this._lock=1,this.render(o||(k?0:V(_*m)),n,!l)._lock=0,this._tTime=f,!n&&this.parent&&at(this,"onRepeat"),this.vars.repeatRefresh&&!k&&(this.invalidate()._lock=1),o&&o!==this._time||y!==!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&&!k&&this.invalidate()),this._lock=0,!this._ts&&!y)return this;qr(this,k)}}if(this._hasPause&&!this._forcing&&this._lock<2&&(x=ns(this,V(o),V(c)),x&&(f-=c-(c=x._start))),this._tTime=f,this._time=c,this._act=!v,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(p=d._next,(d._act||c>=d._start)&&d._ts&&x!==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&&!y){x=0,p&&(f+=this._zTime=-R);break}}d=p}else{d=this._last;for(var O=r<0?r:c;d;){if(p=d._prev,(d._act||O<=d._end)&&d._ts&&x!==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&&!y){x=0,p&&(f+=this._zTime=O?-R:R);break}}d=p}}if(x&&!n&&(this.pause(),x.render(c>=o?0:-R)._zTime=c>=o?1:-1,this._ts))return this._start=T,je(this),this.render(r,n,s);this._onUpdate&&!n&&at(this,"onUpdate",!0),(f===u&&this._tTime>=this.totalDuration()||!f&&o)&&(T===this._start||Math.abs(v)!==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?Qn(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,h=u.onStartParams,c=u.immediateRender,d,p=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 m=n.duration||Math.abs((o-(l&&"time"in l?l.time:s._time))/s.timeScale());p._dur!==m&&ue(p,m,0,1).render(p._time,!0,!0),d=1}f&&f.apply(p,h||[])}},n));return c?p.render(0):p},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,h;if(arguments.length)return s.timeScale((s._repeat<0?s.duration():s.totalDuration())/(s.reversed()?-r:r));if(s._dirty){for(h=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,(!h&&!s._dp||h&&h.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 vs=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,h,c,d,p,_,m,y,x;for(u.b=i,u.e=r,i+="",r+="",(y=~r.indexOf("random("))&&(r=ke(r)),s&&(x=[i,r],s(x,t,e),i=x[0],r=x[1]),c=i.match(Ze)||[];h=Ze.exec(r);)p=h[0],_=r.substring(l,h.index),d?d=(d+1)%5:_.substr(-5)==="rgba("&&(d=1),p!==c[f++]&&(m=parseFloat(c[f-1])||0,u._pt={_next:u._pt,p:_||f===1?_:",",s:m,c:p.charAt(1)==="="?ee(m,p)-m:parseFloat(p)-m,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)||y)&&(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 h=t[e],c=i!=="get"?i:L(h)?l?t[e.indexOf("set")||!L(t["get"+e.substr(3)])?e:"get"+e.substr(3)](l):t[e]():h,d=L(h)?l?Ss:Jr:Ei,p;if($(r)&&(~r.indexOf("random(")&&(r=ke(r)),r.charAt(1)==="="&&(p=ee(c,r)+(q(c)||0),(p||p===0)&&(r=p))),!f||c!==r||mi)return!isNaN(c*r)&&r!==""?(p=new et(this._pt,t,e,+c||0,r-(c||0),typeof h=="boolean"?Os:tn,0,d),l&&(p.fp=l),o&&p.modifier(o,this,t),this._pt=p):(!h&&!(e in t)&&Oi(e,r),vs.call(this,t,e,c,r,d,u||ut.stringFilter,l))},Ts=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]:Ts(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,h=r.yoyoEase,c=r.keyframes,d=r.autoRevert,p=t._dur,_=t._startAt,m=t._targets,y=t.parent,x=y&&y.data==="nested"?y.vars.targets:m,v=t._overwrite==="auto"&&!wi,T=t.timeline,g,w,k,S,b,O,A,M,D,G,Y,B,X;if(T&&(!c||!n)&&(n="none"),t._ease=Wt(n,se.ease),t._yEase=h?Wr(Wt(h===!0?n:h,se.ease)):0,h&&t._yoyo&&!t._repeat&&(h=t._yEase,t._yEase=t._ease,t._ease=h),t._from=!T&&!!r.runBackwards,!T||c&&!r.stagger){if(M=m[0]?$t(m[0]).harness:0,B=M&&r[M.prop],g=Xe(r,Ci),_&&(_._zTime<0&&_.progress(1),e<0&&f&&o&&!d?_.render(-1,!0):_.revert(f&&p?Le:jn),_._lazy=0),s){if(Ft(t._startAt=U.set(m,ft({data:"isStart",overwrite:!1,parent:y,immediateRender:!0,lazy:!_&&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&&p&&e<=0&&i<=0){e&&(t._zTime=e);return}}else if(f&&p&&!_){if(e&&(o=!1),k=ft({overwrite:!1,data:"isFromStart",lazy:o&&!_&&J(u),immediateRender:o,stagger:0,parent:y},g),B&&(k[M.prop]=B),Ft(t._startAt=U.set(m,k)),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=p&&J(u)||u&&!p,w=0;w<m.length;w++){if(b=m[w],A=b._gsap||Mi(m)[w]._gsap,t._ptLookup[w]=G={},fi[A.id]&&At.length&&Ye(),Y=x===m?w:x.indexOf(b),M&&(D=new M).init(b,B||g,t,Y,x)!==!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(k in g)st[k]&&(D=Hr(k,g,t,Y,b,x))?D.priority&&(O=1):G[k]=S=Ai.call(t,b,k,"get",g[k],Y,x,0,r.stringFilter);t._op&&t._op[w]&&t.kill(b,t._op[w]),v&&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&&T.render(_t,!0,!0)},bs=function(t,e,i,r,n,s,o,u){var l=(t._pt&&t._ptCache||(t._ptCache={}))[e],f,h,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--;)h=l[d],f=h._pt||h,f.s=(r||r===0)&&!n?r:f.s+(r||0)+s*f.c,f.c=i-f.s,h.e&&(h.e=N(i)+q(h.e)),h.b&&(h.b=f.s+q(h.b))},ws=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},ks=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,h=u.immediateRender,c=u.stagger,d=u.overwrite,p=u.keyframes,_=u.defaults,m=u.scrollTrigger,y=u.yoyoEase,x=r.parent||F,v=(j(i)||yr(i)?Ot(i[0]):"length"in r)?[i]:ct(i),T,g,w,k,S,b,O,A;if(o._targets=v.length?Mi(v):be("GSAP target "+i+" not found. https://gsap.com",!ut.nullTargetWarn)||[],o._ptLookup=[],o._overwrite=d,p||c||Fe(l)||Fe(f)){if(r=o.vars,T=o.timeline=new H({data:"nested",defaults:_||{},targets:x&&x.data==="nested"?x.vars.targets:v}),T.kill(),T.parent=T._dp=kt(o),T._start=0,c||Fe(l)||Fe(f)){if(k=v.length,O=c&&zr(c),bt(c))for(S in c)~Qr.indexOf(S)&&(A||(A={}),A[S]=c[S]);for(g=0;g<k;g++)w=Xe(r,Zr),w.stagger=0,y&&(w.yoyoEase=y),A&&oe(w,A),b=v[g],w.duration=+Te(l,kt(o),g,b,v),w.delay=(+Te(f,kt(o),g,b,v)||0)-o._delay,!c&&k===1&&w.delay&&(o._delay=f=w.delay,o._start+=f,w.delay=0),T.to(b,w,O?O(g,b,v):0),T._ease=P.none;T.duration()?l=f=0:o.timeline=0}else if(p){xe(ft(T.vars.defaults,{ease:"none"})),T._ease=Wt(p.ease||r.ease||"none");var M=0,D,G,Y;if(j(p))p.forEach(function(B){return T.to(v,B,">")}),T.duration();else{w={};for(S in p)S==="ease"||S==="easeEach"||ks(S,p[S],w,p.easeEach);for(S in w)for(D=w[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,T.to(v,Y,M),M+=Y.duration;T.duration()<l&&T.to({},{duration:l-T.duration()})}}l||o.duration(l=T.duration())}else o.timeline=0;return d===!0&&!wi&&(Rt=kt(o),F.killTweensOf(v),Rt=0),xt(x,kt(o),n),r.reversed&&o.reverse(),r.paused&&o.paused(!0),(h||!l&&!p&&o._start===V(x._time)&&J(h)&&es(kt(o))&&x.data!=="nested")&&(o._tTime=-R,o.render(Math.max(0,-f)||0)),m&&Ar(kt(o),m),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,h=r>u-R&&!f?u:r<R?0:r,c,d,p,_,m,y,x,v,T;if(!l)rs(this,r,n,s);else if(h!==this._tTime||!r||s||!this._initted&&this._tTime||this._startAt&&this._zTime<0!==f||this._lazy){if(c=h,v=this.timeline,this._repeat){if(_=l+this._rDelay,this._repeat<-1&&f)return this.totalTime(_*100+r,n,s);if(c=V(h%_),h===u?(p=this._repeat,c=l):(m=V(h/_),p=~~m,p&&p===m?(c=l,p--):c>l&&(c=l)),y=this._yoyo&&p&1,y&&(T=this._yEase,c=l-c),m=ae(this._tTime,_),c===o&&!s&&this._initted&&p===m)return this._tTime=h,this;p!==m&&(v&&this._yEase&&qr(v,y),this.vars.repeatRefresh&&!y&&!this._lock&&c!==_&&this._initted&&(this._lock=s=1,this.render(V(_*p),!0).invalidate()._lock=0))}if(!this._initted){if(Ir(this,f?r:c,s,n,h))return this._tTime=0,this;if(o!==this._time&&!(s&&this.vars.repeatRefresh&&p!==m))return this;if(l!==this._dur)return this.render(r,n,s)}if(this._tTime=h,this._time=c,!this._act&&this._ts&&(this._act=1,this._lazy=0),this.ratio=x=(T||this._ease)(c/l),this._from&&(this.ratio=x=1-x),!o&&h&&!n&&!m&&(at(this,"onStart"),this._tTime!==h))return this;for(d=this._pt;d;)d.r(x,d.d),d=d._next;v&&v.render(r<0?r:v._dur*v._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&&p!==m&&this.vars.onRepeat&&!n&&this.parent&&at(this,"onRepeat"),(h===this._tDur||!h)&&this._tTime===h&&(f&&!this._onUpdate&&hi(this,r,!0,!0),(r||!l)&&(h===this._tDur&&this._ts>0||!h&&this._ts<0)&&Ft(this,1),!n&&!(f&&!o)&&(h||o||y)&&(at(this,h===u?"onComplete":"onReverseComplete",!0),this._prom&&!(h<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),bs(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,h,c,d,p,_,m,y;if((!n||n==="all")&&Jn(o,u))return n==="all"&&(this._pt=0),ge(this);for(h=this._op=this._op||[],n!=="all"&&($(n)&&(_={},tt(n,function(x){return _[x]=1}),n=_),n=ws(o,n)),y=o.length;y--;)if(~u.indexOf(o[y])){c=l[y],n==="all"?(h[y]=n,p=c,d={}):(d=h[y]=h[y]||{},p=n);for(_ in p)m=c&&c[_],m&&((!("kill"in m.d)||m.d.kill(_)===!0)&&Ke(this,m,"_pt"),delete c[_]),d!=="all"&&(d[_]=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)},Ss=function(t,e,i,r){return t[e](r.fp,i)},Ps=function(t,e,i){return t.setAttribute(e,i)},Fi=function(t,e){return L(t[e])?Jr:ki(t[e])&&t.setAttribute?Ps:Ei},tn=function(t,e){return e.set(e.t,e.p,Math.round((e.s+e.c*t)*1e6)/1e6,e)},Os=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},Cs=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},Rs=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},Ms=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=Ms,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={},Ds=[],Ji=0,As=0,ri=function(t){return(Be[t]||Ds).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=As++,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,h;return l&&l!==s&&l.data.push(s),n&&(s.selector=di(n)),E=s,h=r.apply(s,arguments),L(h)&&s._r.push(h),E=l,s.selector=f,s.isReverted=!1,h};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,h){return h.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})(),Is=(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(h){return s.add(null,h)}),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 h=n;h--;)r[h](f)}}t=t[0]||{};var s=st[e],o=$t(t),u=o.harness&&(o.harness.aliases||{})[e]||e,l=s?function(f){var h=new s;te._pt=0,h.init(t,i?f+i:f,te,0,[t]),h.render(1,h),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 Is(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:hs,wrapYoyo:_s,distribute:zr,random:Nr,snap:Lr,normalize:fs,getUnit:q,clamp:os,splitColor:Xr,toArray:ct,selector:di,mapRange:Ur,pipe:us,unitize:ls,interpolate:cs,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 Es=function(t,e){for(var i=t._pt;i&&i.p!==e&&i.op!==e&&i.fp!==e;)i=i._next;return i},Fs=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=Es(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}Fs(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;var tr,Mt,ie,Li,Xt,er,Ni,zs=function(){return typeof window<"u"},Ct={},Yt=180/Math.PI,re=Math.PI/180,Ht=Math.atan2,ir=1e8,Bi=/([A-Z])/g,Ls=/(left|right|width|margin|padding|x)/i,Ns=/[\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)},Bs=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)},Vs=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)},Ys=function(t,e,i){return t.style[e]=i},Xs=function(t,e,i){return t.style.setProperty(e,i)},$s=function(t,e,i){return t._gsap[e]=i},Gs=function(t,e,i){return t._gsap.scaleX=t._gsap.scaleY=i},Ws=function(t,e,i,r,n){var s=t._gsap;s.scaleX=s.scaleY=i,s.renderTransform(n,s)},qs=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"))},js=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:js,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(){zs()&&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},Hs={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=Ls.test(e),l=t.tagName.toLowerCase()==="svg",f=(l?"client":"offset")+(u?"Width":"Height"),h=100,c=r==="px",d=r==="%",p,_,m,y;if(r===s||!n||or[r]||or[s])return n;if(s!=="px"&&!c&&(n=a(t,e,i,"px")),y=t.getCTM&&hn(t),(d||s==="%")&&(Ct[e]||~e.indexOf("adius")))return p=y?t.getBBox()[u?"width":"height"]:t[f],N(d?n/p*h:n/100*p);if(o[u?"width":"height"]=h+(c?s:r),_=r!=="rem"&&~e.indexOf("adius")||r==="em"&&t.appendChild&&!l?t:t.parentNode,y&&(_=(t.ownerSVGElement||{}).parentNode),(!_||_===Mt||!_.appendChild)&&(_=Mt.body),m=_._gsap,m&&d&&m.width&&u&&m.time===ot.time&&!m.uncache)return N(n/m.width*h);if(d&&(e==="height"||e==="width")){var x=t.style[e];t.style[e]=h+r,p=t[f],x?t.style[e]=x:Kt(t,e)}else(d||s==="%")&&!Hs[dt(_,"display")]&&(o.position=dt(t,"position")),_===t&&(o.position="static"),_.appendChild(Xt),p=Xt[f],_.removeChild(Xt),o.position="absolute";return u&&d&&(m=$t(_),m.time=ot.time,m.width=_[f]),N(c?p*n/h:p&&n?h/p*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},Qs=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,h,c,d,p,_,m,y,x,v,T,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"&&(_=t.style[e],t.style[e]=r,r=dt(t,e)||r,_?t.style[e]=_: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(;h=Jt.exec(r);)m=h[0],x=r.substring(u,h.index),p?p=(p+1)%5:(x.substr(-5)==="rgba("||x.substr(-5)==="hsla(")&&(p=1),m!==(_=c[l++]||"")&&(d=parseFloat(_)||0,T=_.substr((d+"").length),m.charAt(1)==="="&&(m=ee(d,m)+T),y=parseFloat(m),v=m.substr((y+"").length),u=Jt.lastIndex-v.length,v||(v=v||ut.units[e]||T,u===r.length&&(r+=v,o.e+=v)),T!==v&&(d=zt(t,e,_,v)||0),o._pt={_next:o._pt,p:x||l===1?x:",",s:d,c:y-d,m:p&&p<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%"},Zs=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(" ")},Js=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,Js);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,h=o.xOffset||0,c=o.yOffset||0,d=u[0],p=u[1],_=u[2],m=u[3],y=u[4],x=u[5],v=e.split(" "),T=parseFloat(v[0])||0,g=parseFloat(v[1])||0,w,k,S,b;i?u!==Oe&&(k=d*m-p*_)&&(S=T*(m/k)+g*(-_/k)+(_*x-m*y)/k,b=T*(-p/k)+g*(d/k)-(d*x-p*y)/k,T=S,g=b):(w=fn(t),T=w.x+(~v[0].indexOf("%")?T/100*w.width:T),g=w.y+(~(v[1]||v[0]).indexOf("%")?g/100*w.height:g)),r||r!==!1&&o.smooth?(y=T-l,x=g-f,o.xOffset=h+(y*d+x*_)-y,o.yOffset=c+(y*p+x*m)-x):o.xOffset=o.yOffset=0,o.xOrigin=T,o.yOrigin=g,o.smooth=!!r,o.origin=e,o.originIsAbsolute=!!i,t.style[it]="0px 0px",s&&(Dt(s,o,"xOrigin",l,T),Dt(s,o,"yOrigin",f,g),Dt(s,o,"xOffset",h,o.xOffset),Dt(s,o,"yOffset",c,o.yOffset)),t.setAttribute("data-svg-origin",T+" "+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,h,c,d,p,_,m,y,x,v,T,g,w,k,S,b,O,A,M,D,G,Y,B,X,pt,Ae,_e,ce,Nt,Vi,wt,Bt;return f=h=c=_=m=y=x=v=T=0,d=p=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"),k=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,k)),g=i.xOrigin||0,w=i.yOrigin||0,k!==Oe&&(A=k[0],M=k[1],D=k[2],G=k[3],f=Y=k[4],h=B=k[5],k.length===6?(d=Math.sqrt(A*A+M*M),p=Math.sqrt(G*G+D*D),_=A||M?Ht(M,A)*Yt:0,x=D||G?Ht(D,G)*Yt+_:0,x&&(p*=Math.abs(Math.cos(x*re))),i.svg&&(f-=g-(g*A+w*D),h-=w-(g*M+w*G))):(Bt=k[6],Vi=k[7],_e=k[8],ce=k[9],Nt=k[10],wt=k[11],f=k[12],h=k[13],c=k[14],S=Ht(Bt,Nt),m=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),y=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),_=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),m&&Math.abs(m)+Math.abs(_)>359.9&&(m=_=0,y=180-y),d=N(Math.sqrt(A*A+M*M+D*D)),p=N(Math.sqrt(B*B+Bt*Bt)),S=Ht(Y,B),x=Math.abs(S)>2e-4?S*Yt:0,T=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(x)>90&&Math.abs(x)<270&&(n?(d*=-1,x+=_<=0?180:-180,_+=_<=0?180:-180):(p*=-1,x+=x<=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=h-((i.yPercent=h&&(!e&&i.yPercent||(Math.round(t.offsetHeight/2)===Math.round(-h)?-50:0)))?t.offsetHeight*i.yPercent/100:0)+s,i.z=c+s,i.scaleX=N(d),i.scaleY=N(p),i.rotation=N(_)+o,i.rotationX=N(m)+o,i.rotationY=N(y)+o,i.skewX=x+o,i.skewY=v+o,i.transformPerspective=T+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?eo:ln?dn:to,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},to=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,h=i.rotationX,c=i.skewX,d=i.skewY,p=i.scaleX,_=i.scaleY,m=i.transformPerspective,y=i.force3D,x=i.target,v=i.zOrigin,T="",g=y==="auto"&&t&&t!==1||y===!0;if(v&&(h!==Ut||f!==Ut)){var w=parseFloat(f)*re,k=Math.sin(w),S=Math.cos(w),b;w=parseFloat(h)*re,b=Math.cos(w),s=si(x,s,k*b*-v),o=si(x,o,-Math.sin(w)*-v),u=si(x,u,S*b*-v+v)}m!==de&&(T+="perspective("+m+Vt),(r||n)&&(T+="translate("+r+"%, "+n+"%) "),(g||s!==de||o!==de||u!==de)&&(T+=u!==de||g?"translate3d("+s+", "+o+", "+u+") ":"translate("+s+", "+o+Vt),l!==Ut&&(T+="rotate("+l+Vt),f!==Ut&&(T+="rotateY("+f+Vt),h!==Ut&&(T+="rotateX("+h+Vt),(c!==Ut||d!==Ut)&&(T+="skew("+c+", "+d+Vt),(p!==1||_!==1)&&(T+="scale("+p+", "+_+Vt),x.style[z]=T||"translate(0, 0)"},eo=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,h=i.scaleX,c=i.scaleY,d=i.target,p=i.xOrigin,_=i.yOrigin,m=i.xOffset,y=i.yOffset,x=i.forceCSS,v=parseFloat(s),T=parseFloat(o),g,w,k,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)*h,w=Math.sin(u)*h,k=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),k*=b,S*=b,f&&(b=Math.tan(f),b=Math.sqrt(1+b*b),g*=b,w*=b)),g=N(g),w=N(w),k=N(k),S=N(S)):(g=h,S=c,w=k=0),(v&&!~(s+"").indexOf("px")||T&&!~(o+"").indexOf("px"))&&(v=zt(d,"x",s,"px"),T=zt(d,"y",o,"px")),(p||_||m||y)&&(v=N(v+p-(p*g+_*k)+m),T=N(T+_-(p*w+_*S)+y)),(r||n)&&(b=d.getBBox(),v=N(v+r/100*b.width),T=N(T+n/100*b.height)),b="matrix("+g+","+w+","+k+","+S+","+v+","+T+")",d.setAttribute("transform",b),x&&(d.style[z]=b)},io=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",h,c;return o&&(h=n.split("_")[1],h==="short"&&(l%=s,l!==l%(s/2)&&(l+=l<0?s:-s)),h==="cw"&&l<0?l=(l+s*ir)%s-~~(l/s)*s:h==="ccw"&&l>0&&(l=(l-s*ir)%s-~~(l/s)*s)),t._pt=c=new et(t._pt,e,i,r,l,Bs),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},ro=function(t,e,i){var r=lr({},i._gsap),n="perspective,force3D,transformOrigin,svgOrigin",s=i.style,o,u,l,f,h,c,d,p;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),p=q(f),h=d!==p?zt(i,u,l,p):parseFloat(l),c=parseFloat(f),t._pt=new et(t._pt,o,u,h,c-h,yi),t._pt.u=p||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,h){var c,d;if(arguments.length<4)return c=s.map(function(p){return St(o,p,l)}),d=c.join(" "),d.split(c[0]).length===5?c[0]:d;c=(f+"").split(" "),d={},s.forEach(function(p,_){return d[p]=c[_]=c[_]||c[(_-1)/2|0]}),o.init(u,d,h)}});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,h,c,d,p,_,m,y,x,v,T,g,w,k,S;Li||vi(),this.styles=this.styles||un(t),S=this.styles.props,this.tween=i;for(_ in e)if(_!=="autoRound"&&(f=e[_],!(st[_]&&Hr(_,e,i,r,t,n)))){if(d=typeof f,p=We[_],d==="function"&&(f=f.call(i,r,t,n),d=typeof f),d==="string"&&~f.indexOf("random(")&&(f=ke(f)),p)p(this,t,_,f,i)&&(k=1);else if(_.substr(0,2)==="--")l=(getComputedStyle(t).getPropertyValue(_)+"").trim(),f+="",It.lastIndex=0,It.test(l)||(m=q(l),y=q(f)),y?m!==y&&(l=zt(t,_,l,y)+y):m&&(f+=m),this.add(o,"setProperty",l,f,r,n,0,0,_),s.push(_),S.push(_,0,o[_]);else if(d!=="undefined"){if(u&&_ in u?(l=typeof u[_]=="function"?u[_].call(i,r,t,n):u[_],$(l)&&~l.indexOf("random(")&&(l=ke(l)),q(l+"")||l==="auto"||(l+=ut.units[_]||q(St(t,_))||""),(l+"").charAt(1)==="="&&(l=St(t,_))):l=St(t,_),c=parseFloat(l),x=d==="string"&&f.charAt(1)==="="&&f.substr(0,2),x&&(f=f.substr(2)),h=parseFloat(f),_ in vt&&(_==="autoAlpha"&&(c===1&&St(t,"visibility")==="hidden"&&h&&(c=0),S.push("visibility",0,o.visibility),Dt(this,o,"visibility",c?"inherit":"hidden",h?"inherit":"hidden",!h)),_!=="scale"&&_!=="transform"&&(_=vt[_],~_.indexOf(",")&&(_=_.split(",")[0]))),v=_ in Ct,v){if(this.styles.save(_),d==="string"&&f.substring(0,6)==="var(--"&&(f=dt(t,f.substring(4,f.indexOf(")"))),h=parseFloat(f)),T||(g=t._gsap,g.renderTransform&&!e.parseTransform||Ce(t,e.parseTransform),w=e.smoothOrigin!==!1&&g.smooth,T=this._pt=new et(this._pt,o,z,0,1,g.renderTransform,g,0,-1),T.dep=1),_==="scale")this._pt=new et(this._pt,g,"scaleY",g.scaleY,(x?ee(g.scaleY,x+h):h)-g.scaleY||0,yi),this._pt.u=0,s.push("scaleY",_),_+="X";else if(_==="transformOrigin"){S.push(it,0,o[it]),f=Zs(f),g.svg?Ti(t,f,0,w,0,this):(y=parseFloat(f.split(" ")[2])||0,y!==g.zOrigin&&Dt(this,g,"zOrigin",g.zOrigin,y),Dt(this,o,_,qe(l),qe(f)));continue}else if(_==="svgOrigin"){Ti(t,f,1,w,0,this);continue}else if(_ in _n){io(this,g,_,c,x?ee(c,x+f):f);continue}else if(_==="smoothOrigin"){Dt(this,g,"smooth",g.smooth,f);continue}else if(_==="force3D"){g[_]=f;continue}else if(_==="transform"){ro(this,f,t);continue}}else _ in o||(_=fe(_)||_);if(v||(h||h===0)&&(c||c===0)&&!Ns.test(f)&&_ in o)m=(l+"").substr((c+"").length),h||(h=0),y=q(f)||(_ in ut.units?ut.units[_]:m),m!==y&&(c=zt(t,_,l,y)),this._pt=new et(this._pt,v?g:o,_,c,(x?ee(c,x+h):h)-c,!v&&(y==="px"||_==="zIndex")&&e.autoRound!==!1?Vs:yi),this._pt.u=y||0,m!==y&&y!=="%"&&(this._pt.b=l,this._pt.r=Us);else if(_ in o)Qs.call(this,t,_,l,x?x+f:f);else if(_ in t)this.add(t,_,l||t[_],x?x+f:f,r,n);else if(_!=="parseTransform"){Oi(_,f);continue}v||(_ in o?S.push(_,0,o[_]):typeof t[_]=="function"?S.push(_,2,t[_]()):S.push(_,1,l||t[_])),s.push(_)}}k&&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"?Gs:$s:(er=i||{})&&(e==="scale"?Ws:qs):t.style&&!ki(t.style[e])?Ys:~e.indexOf("-")?Xs: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;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]}},no=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=no(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,h=e.snapInline,c,d,p,_,m;i;)i.r(t,i.d),i=i._next;c=l||!e.skipX?e.getX():o,d=l||!e.skipY?e.getY():u,p=d-u,_=c-o,m=ne.autoKillThreshold,e.x<0&&(e.x=0),e.y<0&&(e.y=0),s&&(!e.skipX&&(_>m||_<-m)&&c<Re(r,"x")&&(e.skipX=1),!e.skipY&&(p>m||p<-m)&&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,h?r.style.scrollSnapType=h: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 so={"text-gray-200":"","w-screen":"","h-screen":""},oo={key:0},ao={flex:"","flex-col":"","justify-center":"","items-center":"","w-screen":"","h-screen":"","text-xl":"",italic:"",class:"bg-[#323443]"},uo={key:0},lo={key:1},fo={class:"bg-resolver-bg-1",flex:"","flex-col":"","justify-between":"","font-mono":"","w-screen":"","h-screen":"","overflow-hidden":""},ho=_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([]),h=mt([]),c=mt({});function d(){const v=new En(l.value,f.value,h.value);v.buildResolver(),c.value=v}const{data:p,isError:_,error:m}=Dn(t.dataSourceUrl,!0);Qe(p,async()=>{p.value===null||p.value===void 0||(l.value=On(p.value?.contest),e.value=`${l.value.name.getOrDefault(n.value)} | ${Wi}`,f.value=Rn(p.value?.teams),h.value=Mn(p.value?.submissions,l.value),d(),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),x=mt(null);return kn(()=>{Qe(()=>o.value,async()=>{if(!u.value&&o.value&&y.value){const v=y.value.scrollHeight,T=y.value.clientHeight;Ue.to(y.value,{duration:Math.round(c.value.teams.length*.2),scrollTop:v-T,ease:"power1.inOut",onComplete:()=>{u.value=!0}})}},{immediate:!0}),Qe(()=>c.value.currentIndex,async()=>{if(u.value&&y.value&&x.value){const v=y.value.getBoundingClientRect(),T=v.height,g=x.value.getBoundingClientRect(),w=g.height,k=T-3*w,b=g.top-v.top-k;Ue.to(y.value,{duration:2.5,ease:"power1.out",scrollTop:`+=${b}`})}},{flush:"post"})}),(v,T)=>{const g=Xn;return Z(),Q("div",so,[I(s)?(Z(),Q("div",lo,[nt("div",null,[nt("div",fo,[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,k)=>(Z(),Q("div",{key:w.id,ref_for:!0,ref:S=>{k===I(c).currentIndex&&(x.value=S)},class:oi([w.id===I(c).currentTeamId?"z-999":"z-0"]),"position-relative":""},[Yi(g,{index:k,team:w,resolver:I(c)},null,8,["index","team","resolver"])],2))),128))]),_:1})],512)])])])):(Z(),Q("div",oo,[nt("div",ao,[nt("div",null,gt(I(i)("common.loading"))+"... ",1),I(_)?(Z(),Q("div",uo,gt(I(m)),1)):me("",!0)])]))])}}}),xo=pr(ho,[["__scopeId","data-v-2833de0b"]]);export{xo 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-99Hkl89C.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 p,a5 as Q,a6 as O,a7 as B,a8 as k,a9 as j,aa as z,ab as I,ac as H,ad as K,ae as M,af as N,ag as G,ah as J,ai as X,h as Y,aj as Z,ak as q,al as tt,C as x,am as A,an as et,ao as L,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-99Hkl89C.js";import{_ as ft}from"./use-vmodel-BwR2Z-3A.js";var pt=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),V(this.#t,this.options)?this.#l():this.updateResult(),this.#R())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return _(this.#t,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return _(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,s=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 p(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 n=this.hasListeners();n&&$(this.#t,s,this.options,e)&&this.#l(),this.updateResult(),n&&(this.#t!==s||p(this.options.enabled,this.#t)!==p(e.enabled,this.#t)||O(this.options.staleTime,this.#t)!==O(e.staleTime,this.#t))&&this.#b();const i=this.#m();n&&(this.#t!==s||p(this.options.enabled,this.#t)!==p(e.enabled,this.#t)||i!==this.#a)&&this.#y(i)}getOptimisticResult(t){const e=this.#s.getQueryCache().build(this.#s,t),s=this.createResult(e,t);return bt(this,s)&&(this.#e=s,this.#u=this.options,this.#r=this.#t.state),s}getCurrentResult(){return this.#e}trackResult(t,e){return new Proxy(t,{get:(s,n)=>(this.trackProp(n),e?.(n),n==="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(s,n))})}trackProp(t){this.#f.add(t)}getCurrentQuery(){return this.#t}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){const e=this.#s.defaultQueryOptions(t),s=this.#s.getQueryCache().build(this.#s,e);return s.fetch().then(()=>this.createResult(s,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}#b(){this.#g();const t=O(this.options.staleTime,this.#t);if(k||this.#e.isStale||!j(t))return;const s=z(this.#e.dataUpdatedAt,t)+1;this.#o=I.setTimeout(()=>{this.#e.isStale||this.updateResult()},s)}#m(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(this.#t):this.options.refetchInterval)??!1}#y(t){this.#O(),this.#a=t,!(k||p(this.options.enabled,this.#t)===!1||!j(this.#a)||this.#a===0)&&(this.#h=I.setInterval(()=>{(this.options.refetchIntervalInBackground||H.isFocused())&&this.#l()},this.#a))}#R(){this.#b(),this.#y(this.#m())}#g(){this.#o&&(I.clearTimeout(this.#o),this.#o=void 0)}#O(){this.#h&&(I.clearInterval(this.#h),this.#h=void 0)}createResult(t,e){const s=this.#t,n=this.options,i=this.#e,a=this.#r,l=this.#u,u=t!==s?t.state:this.#p,{state:w}=t;let h={...w},C=!1,o;if(e._optimisticResults){const d=this.hasListeners(),S=!d&&V(t,e),R=d&&$(t,s,e,n);(S||R)&&(h={...h,...K(w.data,t.options)}),e._optimisticResults==="isRestoring"&&(h.fetchStatus="idle")}let{error:r,errorUpdatedAt:f,status:c}=h;o=h.data;let g=!1;if(e.placeholderData!==void 0&&o===void 0&&c==="pending"){let d;i?.isPlaceholderData&&e.placeholderData===l?.placeholderData?(d=i.data,g=!0):d=typeof e.placeholderData=="function"?e.placeholderData(this.#d?.state.data,this.#d):e.placeholderData,d!==void 0&&(c="success",o=M(i?.data,d,e),C=!0)}if(e.select&&o!==void 0&&!g)if(i&&o===a?.data&&e.select===this.#v)o=this.#c;else try{this.#v=e.select,o=e.select(o),o=M(i?.data,o,e),this.#c=o,this.#n=null}catch(d){this.#n=d}this.#n&&(r=this.#n,o=this.#c,f=Date.now(),c="error");const m=h.fetchStatus==="fetching",y=c==="pending",E=c==="error",U=y&&m,P=o!==void 0,v={status:c,fetchStatus:h.fetchStatus,isPending:y,isSuccess:c==="success",isError:E,isInitialLoading:U,isLoading:U,data:o,dataUpdatedAt:h.dataUpdatedAt,error:r,errorUpdatedAt:f,failureCount:h.fetchFailureCount,failureReason:h.fetchFailureReason,errorUpdateCount:h.errorUpdateCount,isFetched:h.dataUpdateCount>0||h.errorUpdateCount>0,isFetchedAfterMount:h.dataUpdateCount>u.dataUpdateCount||h.errorUpdateCount>u.errorUpdateCount,isFetching:m,isRefetching:m&&!y,isLoadingError:E&&!P,isPaused:h.fetchStatus==="paused",isPlaceholderData:C,isRefetchError:E&&P,isStale:D(t,e),refetch:this.refetch,promise:this.#i,isEnabled:p(e.enabled,t)!==!1};if(this.options.experimental_prefetchInRender){const d=T=>{v.status==="error"?T.reject(v.error):v.data!==void 0&&T.resolve(v.data)},S=()=>{const T=this.#i=v.promise=F();d(T)},R=this.#i;switch(R.status){case"pending":t.queryHash===s.queryHash&&d(R);break;case"fulfilled":(v.status==="error"||v.data!==R.value)&&S();break;case"rejected":(v.status!=="error"||v.error!==R.reason)&&S();break}}return v}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 s=()=>{if(!t)return!0;const{notifyOnChangeProps:n}=this.options,i=typeof n=="function"?n():n;if(i==="all"||!i&&!this.#f.size)return!0;const a=new Set(i??this.#f);return this.options.throwOnError&&a.add("error"),Object.keys(this.#e).some(l=>{const b=l;return this.#e[b]!==t[b]&&a.has(b)})};this.#C({listeners:s()})}#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){N.batch(()=>{t.listeners&&this.listeners.forEach(e=>{e(this.#e)}),this.#s.getQueryCache().notify({query:this.#t,type:"observerResultsUpdated"})})}};function vt(t,e){return p(e.enabled,t)!==!1&&t.state.data===void 0&&!(t.state.status==="error"&&e.retryOnMount===!1)}function V(t,e){return vt(t,e)||t.state.data!==void 0&&_(t,e,e.refetchOnMount)}function _(t,e,s){if(p(e.enabled,t)!==!1&&O(e.staleTime,t)!=="static"){const n=typeof s=="function"?s(t):s;return n==="always"||n!==!1&&D(t,e)}return!1}function $(t,e,s,n){return(t!==e||p(n.enabled,t)===!1)&&(!s.suspense||t.state.status!=="error")&&D(t,s)}function D(t,e){return p(e.enabled,t)!==!1&&t.isStaleByTime(O(e.staleTime,t))}function bt(t,e){return!Q(t.getCurrentResult(),e)}function mt(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),s=J(e);if(!s)throw new Error("No 'queryClient' found in Vue context, use 'VueQueryPlugin' to properly initialize the library.");return s}function yt(t,e,s){const n=mt(),i=Y(()=>{let r=e;typeof r=="function"&&(r=r());const f=Z(r);typeof f.enabled=="function"&&(f.enabled=f.enabled());const c=n.defaultQueryOptions(f);return c._optimisticResults=n.isRestoring?.value?"isRestoring":"optimistic",c}),a=new t(n,i.value),l=i.value.shallow?q(a.getCurrentResult()):tt(a.getCurrentResult());let b=()=>{};n.isRestoring&&x(n.isRestoring,r=>{r||(b(),b=a.subscribe(f=>{A(l,f)}))},{immediate:!0});const u=()=>{a.setOptions(i.value),A(l,a.getCurrentResult())};x(i,u),et(()=>{b()});const w=(...r)=>(u(),l.refetch(...r)),h=()=>new Promise((r,f)=>{let c=()=>{};const g=()=>{if(i.value.enabled!==!1){a.setOptions(i.value);const m=a.getOptimisticResult(i.value);m.isStale?(c(),a.fetchOptimistic(i.value).then(r,y=>{L(i.value.throwOnError,[y,a.getCurrentQuery()])?f(y):r(a.getCurrentResult())})):(c(),r(m))}};g(),c=x(i,g)});x(()=>l.error,r=>{if(l.isError&&!l.isFetching&&L(i.value.throwOnError,[r,a.getCurrentQuery()]))throw r});const C=i.value.shallow?st(l):it(l),o=nt(C);for(const r in l)typeof l[r]=="function"&&(o[r]=l[r]);return o.suspense=h,o.refetch=w,o}function Rt(t,e){return yt(pt,t)}async function gt(t){const e=t.startsWith("/")?t.slice(1):t;let s=`${window.DATA_HOST}${e}`;const n={allInOne:!1};if(s.includes("#")){const u=new URLSearchParams(s.split("#")[1]);n.allInOne=u.get("allInOne")==="true",s=s.split("#")[0]}t.startsWith("http")&&(s=t),s.endsWith("/")&&(s=s.slice(0,-1));const i=n.allInOne?[await fetch(s)]:[await fetch(`${s}/config.json`),await fetch(`${s}/team.json`),await fetch(`${s}/run.json`)],{status:a,statusText:l}=i[0];if(a>=300||a<200)throw new Error(`fetch data failed. [status=${a}] [statusText=${l}]`);return Promise.all(i.map(u=>u.json())).then(u=>n.allInOne?u[0]:{contest:u[0],teams:u[1],submissions:u[2]})}function Tt(t,e=!1){let i=window.REFETCH_INTERVAL;return e&&(i=!1),Rt({queryKey:[t],queryFn:()=>gt(t),retry:3,staleTime:3e4,refetchInterval:i})}const Ot=["type","text"],It=at({__name:"TheInput",props:{textAlign:null,textType:null,modelValue:null},emits:["update:modelValue"],setup(t){const e=t,{modelValue:s}=ft("modelValue");return(n,i)=>rt((ut(),lt("input",ct({id:"input","onUpdate:modelValue":i[0]||(i[0]=a=>dt(s)?s.value=a:null)},n.$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,Ot)),[[ot,ht(s)]])}});export{It as _,Tt as u};
|