@xcpcio/board-app 0.53.0 → 0.53.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-CNaNh1cd.js +1 -0
- package/dist/assets/Board-D7W2MZ4t.js +1 -0
- package/dist/assets/Board-_AOcbImO.css +1 -0
- package/dist/assets/{ContestStateBadge-SaSIRVZw.js → ContestStateBadge-fTJw-IjF.js} +1 -1
- package/dist/assets/Countdown-1A-2QJ7m.js +1 -0
- package/dist/assets/DataSourceInput.vue_vue_type_script_setup_true_lang-CXts-riZ.js +1 -0
- package/dist/assets/{Footer.vue_vue_type_script_setup_true_lang-DtriOyxw.js → Footer.vue_vue_type_script_setup_true_lang-Bk0nFBfB.js} +1 -1
- package/dist/assets/{NavBar-CTO09sVc.js → NavBar-C6sQ5txU.js} +1 -1
- package/dist/assets/Resolver-A6qSPE_R.js +25 -0
- package/dist/assets/{RightArrowIcon-93I3m1Dg.js → RightArrowIcon-ClOVVo1B.js} +1 -1
- package/dist/assets/{TheInput.vue_vue_type_script_setup_true_lang-Bstp0Uq6.js → TheInput.vue_vue_type_script_setup_true_lang-D5spkHqx.js} +1 -1
- package/dist/assets/{Tooltip.vue_vue_type_script_setup_true_lang-IVJ6kO8Y.js → Tooltip.vue_vue_type_script_setup_true_lang-FgOX36Lq.js} +1 -1
- package/dist/assets/{_...all_-CajB1u6j.js → _...all_-BSvAEkM-.js} +1 -1
- package/dist/assets/_...all_-DmfbP4Ao.js +1 -0
- package/dist/assets/{_name_-CKcXFscu.js → _name_-AmLA_ZW6.js} +1 -1
- package/dist/assets/{about-Bt1E61e1.js → about-tPNAra1j.js} +1 -1
- package/dist/assets/board-D0VTebOf.js +1 -0
- package/dist/assets/{board-layout-BDGSSQnD.js → board-layout-C2v-fo1W.js} +1 -1
- package/dist/assets/{constant-D5AETBoS.js → constant-b2ZZlr_Y.js} +1 -1
- package/dist/assets/{default-g2FZdb_E.js → default-D4907N0j.js} +1 -1
- package/dist/assets/{headless-AGI21K3d.js → headless-C_cFBCtG.js} +1 -1
- package/dist/assets/{home-CIo2SGx9.js → home-CRZ6rGwZ.js} +1 -1
- package/dist/assets/{index-Ci3FURub.css → index-BjCWriHl.css} +1 -1
- package/dist/assets/{index-CsD1PvIl.js → index-BnOiKE-V.js} +1 -1
- package/dist/assets/index-Bvki346r.js +1 -0
- package/dist/assets/{index-Bqug296L.js → index-CVZtA3I-.js} +3 -3
- package/dist/assets/{index-CDb5YJlm.js → index-ClcpF-3G.js} +1 -1
- package/dist/assets/index-D5Eq7tNN.js +1 -0
- package/dist/assets/{index-B0AiC33S.js → index-DQYGiW5A.js} +1 -1
- package/dist/assets/{index-BJlHNlHk.js → index-Dar9HUtt.js} +1 -1
- package/dist/assets/{index-eEOWm26O.js → index-XjAdtRAz.js} +1 -1
- package/dist/assets/index-cu4LZbd6.js +1 -0
- package/dist/assets/{index-layout-B9ZsHAPN.js → index-layout-Bp7ERlAB.js} +1 -1
- package/dist/assets/{pagination-SF0231GF.js → pagination-CHOfWwrE.js} +1 -1
- package/dist/assets/query-C-pLpLZb.js +1 -0
- package/dist/assets/{test-BmgsMNrG.js → test-Bw2mUsPy.js} +1 -1
- package/dist/assets/{use-vmodel-DKmkNt1c.js → use-vmodel-BKVjZ-1P.js} +1 -1
- package/dist/assets/{user-DVMgLOCG.js → user-o9hs8HNN.js} +1 -1
- package/dist/assets/{virtual_pwa-register-G08q8i_v.js → virtual_pwa-register-8shrxAmh.js} +1 -1
- package/dist/index.html +1 -1
- package/dist/sw.js +1 -1
- package/package.json +3 -3
- package/src/components/board/Board.vue +10 -5
- package/src/components/board/Standings.less +4 -4
- package/src/components/board/Utility.vue +18 -3
- package/src/composables/useQueryBoardData.ts +28 -14
- package/src/pages/[...all].vue +15 -4
- package/src/shims.d.ts +1 -0
- package/src/styles/color.css +10 -0
- package/vite.config.ts +8 -8
- package/dist/assets/Board--Fj0eIxn.css +0 -1
- package/dist/assets/Board-DVycq7Hb.js +0 -1
- package/dist/assets/DataSourceInput.vue_vue_type_script_setup_true_lang-ButnX5NG.js +0 -1
- package/dist/assets/_...all_-DkFLHLY4.js +0 -1
- package/dist/assets/board-BuZxK-RS.js +0 -1
- package/dist/assets/index-BVqqkkh8.js +0 -25
- package/dist/assets/index-ByBDbX-Q.js +0 -1
- package/dist/assets/index-DtIE9gnq.js +0 -1
- package/dist/assets/useQueryBoardData-MYqwKv9X.js +0 -1
- /package/dist/assets/{index-De6dfmWB.css → Countdown-De6dfmWB.css} +0 -0
- /package/dist/assets/{index-DRiWpQTB.css → Resolver-DRiWpQTB.css} +0 -0
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{w as ot,_ as wt,T as re,h as xt,P as ie,a as ue}from"./pagination-SF0231GF.js";import{_ as bt,D as ce}from"./Tooltip.vue_vue_type_script_setup_true_lang-IVJ6kO8Y.js";import{_ as Ut}from"./TheInput.vue_vue_type_script_setup_true_lang-Bstp0Uq6.js";import{G as tt,_ as Tt,M as q,S as jt,C as It,e as de,I as me,f as Gt,g as Vt,T as pe,h as fe,a as ve,b as ge,d as _e,R as be}from"./index-BJlHNlHk.js";import{d as D,g as b,p as O,o as l,c as m,b as e,k as g,h as t,K as at,a as k,w as L,s as h,v as he,L as ye,z as V,M as ke,f as ct,N as Xt,u as et,C as ut,G as X,O as xe,P as Wt,F as N,E as U,T as zt,H as we,Q as gt,R as Se,S as Yt,U as qt,j as Y,n as E,V as $e,q as Te,W as Kt,J as Ce,A as Me,m as Oe,X as Ie,Y as ze,Z as Fe,$ as Pe,D as Be}from"./index-Bqug296L.js";import{_ as De}from"./use-vmodel-DKmkNt1c.js";import{a as Qt,u as Ae}from"./useQueryBoardData-MYqwKv9X.js";import{S as Ee,b as Ft,C as Le}from"./index-B0AiC33S.js";import{_ as K}from"./_plugin-vue_export-helper-DlAUqK2U.js";import{u as Ct}from"./index-CDb5YJlm.js";import{_ as Ne,a as Re}from"./ContestStateBadge-SaSIRVZw.js";import{T as Pt,D as He}from"./constant-D5AETBoS.js";const Ue={"ml-4":"","mt-2":""},je={"ml-4":"","mt-2":"",grid:"","grid-cols-6":"","gap-y-4":""},Ge={flex:"","items-center":"","w-full":"","col-span-5":""},Ve={key:0,flex:"","items-center":"","text-sm":""},Xe={key:1,flex:"","items-center":"","w-full":"","col-span-5":""},We={flex:"","items-center":"","w-full":"","col-span-5":""},Ye=D({__name:"GiantsOptions",props:{rank:null,orgOptions:null,teamsOptions:null,giants:null},emits:["update:giants"],setup(v,{emit:r}){const n=v,p=r,d=b({get(){return n.giants},set(c){p("update:giants",c)}}),u=O(d.value.filterOrganizations);function f(c,a){u.value=c,d.value.setFilterOrganizations(c)}const o=O(d.value.filterTeams);function _(c,a){o.value=c,d.value.setFilterTeams(c)}const i=b(()=>`${d.value.type===tt.BLUE?"Blue":"Red"} Team`),s=b(()=>d.value.type===tt.BLUE?"#0000FF":"#FF0000");return(c,a)=>{const y=Ut,w=bt;return l(),m("div",Ue,[e("div",{flex:"","text-sm":"",style:at({color:t(s)})},g(t(i)),5),e("div",je,[a[3]||(a[3]=e("div",{flex:"","items-center":"","text-sm":""}," Name: ",-1)),e("div",Ge,[k(y,{modelValue:t(d).name,"onUpdate:modelValue":a[0]||(a[0]=$=>t(d).name=$),"text-align":"left"},null,8,["modelValue"]),k(w,null,{popper:L(()=>a[2]||(a[2]=[e("div",null," Refresh Name ",-1)])),default:L(()=>[e("div",{"i-material-symbols-refresh":"","cursor-pointer":"",btn:"","text-2xl":"","ml-2":"",onClick:a[1]||(a[1]=$=>t(d).refreshName())})]),_:1})]),v.rank.contest.organization?(l(),m("div",Ve,g(v.rank.contest.organization)+": ",1)):h("",!0),v.rank.contest.organization?(l(),m("div",Xe,[k(t(ot),{options:v.orgOptions,"selected-options":t(u),onSelect:f},null,8,["options","selected-options"])])):h("",!0),a[4]||(a[4]=e("div",{"text-sm":"",flex:"","items-center":""}," Team: ",-1)),e("div",We,[k(t(ot),{options:v.teamsOptions,"selected-options":t(o),onSelect:_},null,8,["options","selected-options"])])])])}}}),qe={relative:"","inline-flex":"","items-center":"","cursor-pointer":""},Ke=D({__name:"TheCheckbox",props:{modelValue:{type:Boolean}},emits:["update:modelValue"],setup(v){const{modelValue:r}=De("modelValue");return(n,p)=>(l(),m("label",qe,[he(e("input",{"onUpdate:modelValue":p[0]||(p[0]=d=>V(r)?r.value=d:null),type:"checkbox",class:"sr-only peer"},null,512),[[ye,t(r)]]),p[1]||(p[1]=e("div",{class:"w-11 h-6 bg-gray-200 peer-focus:outline-none peer-focus:ring-4 peer-focus:ring-blue-300 dark:peer-focus:ring-blue-800 rounded-full peer dark:bg-gray-700 peer-checked:after:translate-x-full peer-checked:after:border-white after:content-[''] after:absolute after:top-[2px] after:left-[2px] after:bg-white after:border-gray-300 after:border after:rounded-full after:h-5 after:w-5 after:transition-all dark:border-gray-600 peer-checked:bg-blue-600"},null,-1)),ke(n.$slots,"default")]))}});function Qe(){return`filter-organizations-${ct().path}`}function Ze(){return`filter-teams-${ct().path}`}function Je(){const r=`filter-organizations-${ct().path}`;return Xt(r,[])}function tn(){const r=`filter-teams-${ct().path}`;return Xt(r,[])}const en={"w-full":"","font-bold":"","font-mono":"","text-base":"",flex:"","flex-col":"","gap-4":"","items-center":"","justify-center":""},nn={flex:"","flex-col":"","w-full":""},sn={"ml-8":"","mt-2":"",grid:"","grid-cols-6":"","gap-y-4":""},on={key:0,flex:"","items-center":"","text-sm":""},an={key:1,flex:"","items-center":"","w-full":"","col-span-5":""},ln={flex:"","items-center":"","w-full":"","col-span-5":""},rn={flex:"","flex-col":"","w-full":""},un={"ml-4":"","mt-2":""},cn={grid:"","grid-cols-8":"","items-center":""},dn={flex:"","flex-col":"","w-full":""},mn={"ml-4":"","mt-2":""},pn={flex:"","flex-row":""},fn={"w-full":"",flex:"","flex-row-reverse":"","items-center":"","gap-x-4":""},vn=D({__name:"OptionsModal",props:{isHidden:{type:Boolean},rank:null,rankOptions:null},emits:["update:isHidden","update:rankOptions"],setup(v,{emit:r}){const n=v,p=r,d=Tt.cloneDeep(n.rankOptions),{t:u}=et(),f=b({get(){return n.isHidden},set(B){p("update:isHidden",B)}}),o=b({get(){return n.rankOptions},set(B){p("update:rankOptions",B)}}),_=b(()=>n.rank),i=b(()=>u("type_menu.options")),s=O(!1);function c(){s.value=!0}function a(){s.value=!1}function y(B){s.value&&B.stopPropagation()}const w=b(()=>_.value.organizations.map(S=>({value:S,text:S}))),$=O(o.value.filterOrganizations);function C(B,S){$.value=B,o.value.setFilterOrganizations(B)}const T=b(()=>_.value.originTeams.map(S=>({value:S.id,text:S.organization?`${S.name} - ${S.organization}`:S.name}))),P=O(o.value.filterTeams);function j(B,S){P.value=B,o.value.setFilterTeams(B)}const Z=Qt();function lt(){o.value.battleOfGiants.persist?Z.value=o.value.battleOfGiants.ToBase64():Z.value=void 0}ut(()=>o.value.battleOfGiants.persist,()=>{lt()});async function rt(){o.value.setSelf(d),await Wt(),lt(),f.value=!0}const nt=Qe(),dt=Ze();function G(){localStorage.setItem(nt,JSON.stringify($.value)),localStorage.setItem(dt,JSON.stringify(P.value)),lt(),f.value=!0}return(B,S)=>{const st=Ke,mt=Ut,Q=Ye,it=wt;return l(),X(it,{"is-hidden":t(f),"onUpdate:isHidden":S[5]||(S[5]=W=>V(f)?f.value=W:null),title:t(i),width:"w-200",mt:"mt-4"},{default:L(()=>[e("div",en,[e("div",nn,[S[7]||(S[7]=e("div",{flex:""}," Filter ",-1)),e("div",sn,[t(_).contest.organization?(l(),m("div",on,g(t(_).contest.organization)+": ",1)):h("",!0),t(_).contest.organization?(l(),m("div",an,[k(t(ot),{options:t(w),"selected-options":t($),onSelect:C,onCompositionstart:c,onCompositionend:a,onKeydownCapture:xe(y,["delete"])},null,8,["options","selected-options"])])):h("",!0),S[6]||(S[6]=e("div",{"text-sm":"",flex:"","items-center":""}," Team: ",-1)),e("div",ln,[k(t(ot),{options:t(T),"selected-options":t(P),onSelect:j},null,8,["options","selected-options"])])])]),e("div",rn,[S[12]||(S[12]=e("div",{flex:""}," Battle of Giants ",-1)),e("div",un,[e("div",cn,[S[8]||(S[8]=e("span",{"text-sm":"","font-medium":"","text-gray-900":"","dark:text-gray-300":""}," Enable ",-1)),k(st,{modelValue:t(o).battleOfGiants.enable,"onUpdate:modelValue":S[0]||(S[0]=W=>t(o).battleOfGiants.enable=W)},null,8,["modelValue"]),S[9]||(S[9]=e("span",{"text-sm":"","font-medium":"","text-gray-900":"","dark:text-gray-300":""}," Equal Teams ",-1)),k(st,{modelValue:t(o).battleOfGiants.equalTeams,"onUpdate:modelValue":S[1]||(S[1]=W=>t(o).battleOfGiants.equalTeams=W)},null,8,["modelValue"]),S[10]||(S[10]=e("span",{"text-sm":"","font-medium":"","text-gray-900":"","dark:text-gray-300":""}," Persist ",-1)),k(st,{modelValue:t(o).battleOfGiants.persist,"onUpdate:modelValue":S[2]||(S[2]=W=>t(o).battleOfGiants.persist=W)},null,8,["modelValue"]),S[11]||(S[11]=e("span",{"text-sm":"","font-medium":"","text-gray-900":"","dark:text-gray-300":""}," TopX ",-1)),k(mt,{modelValue:t(o).battleOfGiants.topX,"onUpdate:modelValue":S[3]||(S[3]=W=>t(o).battleOfGiants.topX=W),"text-align":"left","text-type":"number"},null,8,["modelValue"])])]),k(Q,{rank:t(_),"org-options":t(w),"teams-options":t(T),giants:t(o).battleOfGiants.blueTeam},null,8,["rank","org-options","teams-options","giants"]),k(Q,{rank:t(_),"org-options":t(w),"teams-options":t(T),giants:t(o).battleOfGiants.redTeam},null,8,["rank","org-options","teams-options","giants"])]),e("div",dn,[S[14]||(S[14]=e("div",{flex:""}," Feature ",-1)),e("div",mn,[e("div",pn,[k(st,{modelValue:t(o).enableAnimatedSubmissions,"onUpdate:modelValue":S[4]||(S[4]=W=>t(o).enableAnimatedSubmissions=W)},{default:L(()=>S[13]||(S[13]=[e("span",{"ml-3":"","text-sm":"","font-medium":"","text-gray-900":"","dark:text-gray-300":""}," Submission Queue ",-1)])),_:1},8,["modelValue"])])])]),e("div",fn,[e("button",{type:"submit",class:"text-white bg-primary-700 hover:bg-primary-800 focus:ring-4 focus:outline-none focus:ring-primary-300 px-5 py-2.5 text-center dark:bg-primary-600 dark:hover:bg-primary-700 dark:focus:ring-primary-800","font-medium":"","text-sm":"","rounded-md":"",onClick:G},g(t(u)("button.confirm")),1),e("button",{type:"reset",class:"py-2.5 px-5 text-gray-900 focus:outline-none bg-white border border-gray-200 hover:bg-gray-100 hover:text-primary-700 focus:z-10 focus:ring-4 focus:ring-gray-200 dark:focus:ring-gray-700 dark:bg-gray-800 dark:text-gray-400 dark:border-gray-600 dark:hover:text-white dark:hover:bg-gray-700","font-medium":"","text-sm":"","rounded-md":"",onClick:rt},g(t(u)("button.cancel")),1)])])]),_:1},8,["is-hidden","title"])}}});function gn(v){const r={backgroundColor:"#fff",color:"#000"};if(v.awards.includes(q.GOLD))return r.backgroundColor="#fff566",r;if(v.awards.includes(q.SILVER))return r.backgroundColor="#ffadd2",r;if(v.awards.includes(q.BRONZE))return r.backgroundColor="#f0c0a0",r;if(v.awards.includes(q.HONORABLE))return r.backgroundColor="#e6f7ff",r}function _n(v){return v.isFirstSolved?"#3db03d":v.isAccepted()?"#e1ffb5":v.isPending()?"#c8d6fa":"#ffd0d0"}var _t=(v=>(v[v.SUBMISSION_STATUS=0]="SUBMISSION_STATUS",v[v.SUBMIT_TIMESTAMP=1]="SUBMIT_TIMESTAMP",v))(_t||{});const bn={"h-7":"","w-124":"","text-gray-200":"","font-mono":"",flex:"","flex-row":"","justify-center":"","items-center":"",class:"bg-resolver-bg-zero"},hn={"h-full":"","w-92":"","pl-1":"",truncate:""},yn={"h-full":"","w-4":""},kn=D({__name:"AnimatedSubmissionBlock",props:{item:null,lastBlockDisplayType:null},setup(v){const r=v,n=b(()=>r.item);function p(){const d=n.value.submission;if(r.lastBlockDisplayType===_t.SUBMISSION_STATUS)return Ee[d.status];if(r.lastBlockDisplayType===_t.SUBMIT_TIMESTAMP)return d.timestampToMinute}return(d,u)=>(l(),m("div",bn,[e("div",{"h-full":"","w-10":"",style:at(t(gn)(t(n).team)),flex:"","justify-center":"","items-center":""},[e("div",null,g(t(n).team.rank),1)],4),e("div",hn,g(t(n).displayName),1),e("div",yn,g(t(n).team.solvedProblemNum),1),e("div",{"h-full":"","w-6":"","border-b-3":"",flex:"","justify-center":"",style:at({borderColor:t(n).problem.balloonColor.background_color})},g(t(n).problem.label),5),e("div",{"h-full":"","w-12":"",flex:"","justify-center":"","font-sans":"","font-medium":"","text-zinc-800":"",style:at({backgroundColor:("getStandingsStatusColor"in d?d.getStandingsStatusColor:t(_n))(t(n).submission)})},g(p()),5)]))}}),xn={absolute:"",fixed:"","z-99":"","bottom-4":"","left-4":"","opacity-80":""},wn={flex:"","flex-col":""},Sn={flex:"","flex-col":"","mt-6":""},$n=D({__name:"AnimatedSubmissionsModal",props:{rank:null},setup(v){const r=v,n=b(()=>r.rank),p=b(()=>{const f=n.value.getSubmissions().sort(jt.compare).reverse();let o=0;const _=10,i=[];let s=0;const c=6,a=[];for(let y=0;y<f.length&&(s<c||o<_);y++){const w=f[y],$=w.teamId,C=w.problemId,T=n.value.teamsMap.get($);if(!T||n.value.filterTeamByOrg(T))continue;const P=n.value.contest.problemsMap.get(C);if(!P)continue;let j=T.name;T.organization&&(j=`${T.organization} - ${j}`);const Z={submission:w,team:T,problem:P,displayName:j};o<_&&(i.push(Z),++o),w.isSolved&&s<c&&(a.push(Z),++s)}return a.reverse(),i.reverse(),{acceptedRes:a,allRes:i}}),d=b(()=>p.value.acceptedRes),u=b(()=>p.value.allRes);return(f,o)=>{const _=kn;return l(),m("div",xn,[e("div",wn,[e("div",null,[k(zt,{name:"list",tag:"ul"},{default:L(()=>[(l(!0),m(N,null,U(t(d),i=>(l(),m("div",{key:i.submission.id},[k(_,{item:i,"last-block-display-type":t(_t).SUBMIT_TIMESTAMP},null,8,["item","last-block-display-type"])]))),128))]),_:1})])]),e("div",Sn,[e("div",null,[k(zt,{name:"list",tag:"ul"},{default:L(()=>[(l(!0),m(N,null,U(t(u),i=>(l(),m("div",{key:i.submission.id},[e("div",null,[k(_,{item:i,"last-block-display-type":t(_t).SUBMISSION_STATUS},null,8,["item","last-block-display-type"])])]))),128))]),_:1})])])])}}}),Tn=K($n,[["__scopeId","data-v-2db6a8b3"]]),Cn={"w-full":"",flex:"","mt-4":"","gap-4":""},Mn={btn:"",title:"Submissions",disabled:"true"},On={"w-full":"",flex:"","mt-4":"","gap-4":""},In=D({__name:"Utility",setup(v){const{t:r}=et(),n=ct(),p=we();function d(){p.push(`/resolver/?data-source=${n.path}`)}function u(){p.push(`/balloon/?data-source=${n.path}`)}function f(){p.push(`/countdown/?data-source=${n.path}`)}return(o,_)=>(l(),m(N,null,[e("div",Cn,[e("button",{btn:"",title:"Balloon",onClick:u},g(t(r)("type_menu.balloon")),1),e("button",Mn,g(t(r)("type_menu.submissions")),1)]),e("div",On,[e("button",{btn:"",title:"Resolver",onClick:d},g(t(r)("type_menu.resolver")),1),e("button",{btn:"",title:"Countdown",onClick:f},g(t(r)("type_menu.countdown")),1)])],64))}});var Zt={exports:{}};(function(v,r){(function(n,p){p()})(gt,function(){function n(i,s){return typeof s>"u"?s={autoBom:!1}:typeof s!="object"&&(console.warn("Deprecated: Expected third argument to be a object"),s={autoBom:!s}),s.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(i.type)?new Blob(["\uFEFF",i],{type:i.type}):i}function p(i,s,c){var a=new XMLHttpRequest;a.open("GET",i),a.responseType="blob",a.onload=function(){_(a.response,s,c)},a.onerror=function(){console.error("could not download file")},a.send()}function d(i){var s=new XMLHttpRequest;s.open("HEAD",i,!1);try{s.send()}catch{}return 200<=s.status&&299>=s.status}function u(i){try{i.dispatchEvent(new MouseEvent("click"))}catch{var s=document.createEvent("MouseEvents");s.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),i.dispatchEvent(s)}}var f=typeof window=="object"&&window.window===window?window:typeof self=="object"&&self.self===self?self:typeof gt=="object"&>.global===gt?gt:void 0,o=f.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),_=f.saveAs||(typeof window!="object"||window!==f?function(){}:"download"in HTMLAnchorElement.prototype&&!o?function(i,s,c){var a=f.URL||f.webkitURL,y=document.createElement("a");s=s||i.name||"download",y.download=s,y.rel="noopener",typeof i=="string"?(y.href=i,y.origin===location.origin?u(y):d(y.href)?p(i,s,c):u(y,y.target="_blank")):(y.href=a.createObjectURL(i),setTimeout(function(){a.revokeObjectURL(y.href)},4e4),setTimeout(function(){u(y)},0))}:"msSaveOrOpenBlob"in navigator?function(i,s,c){if(s=s||i.name||"download",typeof i!="string")navigator.msSaveOrOpenBlob(n(i,c),s);else if(d(i))p(i,s,c);else{var a=document.createElement("a");a.href=i,a.target="_blank",setTimeout(function(){u(a)})}}:function(i,s,c,a){if(a=a||open("","_blank"),a&&(a.document.title=a.document.body.innerText="downloading..."),typeof i=="string")return p(i,s,c);var y=i.type==="application/octet-stream",w=/constructor/i.test(f.HTMLElement)||f.safari,$=/CriOS\/[\d]+/.test(navigator.userAgent);if(($||y&&w||o)&&typeof FileReader<"u"){var C=new FileReader;C.onloadend=function(){var j=C.result;j=$?j:j.replace(/^data:[^;]*;/,"data:attachment/file;"),a?a.location.href=j:location=j,a=null},C.readAsDataURL(i)}else{var T=f.URL||f.webkitURL,P=T.createObjectURL(i);a?a.location=P:location.href=P,a=null,setTimeout(function(){T.revokeObjectURL(P)},4e4)}});f.saveAs=_.saveAs=_,v.exports=_})})(Zt);var zn=Zt.exports;const Bt=Se(zn);var Fn=setTimeout;function Pn(v,r){var n=r.useCachedSetTimeout?Fn:setTimeout;return new Promise(function(p){n(p,v)})}function Bn(v){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=r.useCachedSetTimeout,p=Pn(v,{useCachedSetTimeout:n});function d(u){return p.then(function(){return u})}return d.then=function(){return p.then.apply(p,arguments)},d.catch=Promise.resolve().catch,d}const Dn={flex:"","flex-col":""},An={"w-160":"","font-bold":""},En={"mt-8":""},Ln={key:0,flex:"","flex-row":"","justify-center":"","gap-4":""},Nn=["disabled"],Rn=["disabled"],Hn={key:1,flex:"","justify-center":""},Un=["disabled"],jn={key:2,flex:"","justify-center":""},Gn=["disabled"],Vn=D({__name:"Export",props:{rank:null},setup(v){const r=v,n=Yt.useToast(),{copy:p,isSupported:d}=qt(),u=b(()=>r.rank),f=O({value:"cf-dat",text:"Codeforces Gym Ghost(dat)"}),o=O([{value:"cf-dat",text:"Codeforces Gym Ghost(dat)"},{value:"general-xlsx",text:"Excel Table(xlsx)"},{value:"icpc-standings-csv",text:"ICPC Standings(csv)"}]),_=O({CfDatDownload:!1,CfDatCopy:!1,GeneralXLSXDownload:!1,ICPCStandingsCsvDownload:!1});async function i(){await Wt(),await Bn(16)}async function s(){_.value.CfDatDownload=!0,await i();const $=new It().convert(u.value),C=new Blob([$],{type:"text/plain;charset=utf-8"});Bt.saveAs(C,"contest.dat"),_.value.CfDatDownload=!1}async function c(){if(!d.value){n.warning("clipboard is not supported");return}_.value.CfDatCopy=!0,await i();const $=new It().convert(u.value);p($),_.value.CfDatCopy=!1,n.success("Copy Success")}async function a(){_.value.GeneralXLSXDownload=!0,await i(),new de().convertAndWrite(u.value,`${u.value.contest.name}.xlsx`),_.value.GeneralXLSXDownload=!1}async function y(){_.value.ICPCStandingsCsvDownload=!0,await i();const $=new me().convert(u.value),C=new Blob([$],{type:"text/csv;charset=utf-8"});Bt.saveAs(C,"standings.csv"),_.value.ICPCStandingsCsvDownload=!1}return(w,$)=>(l(),m("div",Dn,[e("div",An,[k(t(re),{modelValue:t(f),"onUpdate:modelValue":$[0]||($[0]=C=>V(f)?f.value=C:null),options:t(o),placeholder:"Export Type"},null,8,["modelValue","options"])]),e("div",En,[t(f).value==="cf-dat"?(l(),m("div",Ln,[e("button",{disabled:t(_).CfDatDownload,btn:"",onClick:s}," Download ",8,Nn),e("button",{disabled:t(_).CfDatCopy,btn:"",onClick:c}," Copy to Clipboard ",8,Rn)])):h("",!0),t(f).value==="general-xlsx"?(l(),m("div",Hn,[e("button",{disabled:t(_).GeneralXLSXDownload,btn:"",onClick:a}," Download ",8,Un)])):h("",!0),t(f).value==="icpc-standings-csv"?(l(),m("div",jn,[e("button",{disabled:t(_).ICPCStandingsCsvDownload,btn:"",onClick:y}," Download ",8,Gn)])):h("",!0)])]))}});function Mt(v,r,n,p,d,u){return{colors:u,chart:window.innerWidth<992?{type:"bar",backgroundColor:"transparent"}:{type:"column",backgroundColor:"transparent",height:"420px"},title:{text:v},xAxis:{categories:p,labels:{style:{fontSize:"16px"}},title:{text:r,style:{fontSize:"16px"}}},yAxis:{min:0,title:{text:n,style:{fontSize:"16px",height:"320px"}},stackLabels:{enabled:!0,style:{fontSize:"16px"}}},tooltip:{enabled:!0,headerFormat:"",pointFormat:"{series.name}:{point.y}"},plotOptions:{bar:{stacking:"normal"},column:{stacking:"normal"}},credits:{enabled:!1},series:d}}function Xn(v){const r=[];v.contest.problems.forEach((u,f)=>{r.push({problem_id:u.label,index:f,solved:u.statistics.acceptedNum})}),r.sort((u,f)=>u.solved>f.solved?-1:u.solved<f.solved?1:u.index<f.index?-1:u.index>f.index?1:0);const{cat:n,series:p,colors:d}=(()=>{const u=[],f=[];return r.forEach(i=>{u.push(i.problem_id),f.push(i.solved)}),{cat:u,series:[{name:"队伍数",showInLegend:!1,data:f}],colors:["rgb(124, 181, 236)"]}})();return Mt("题目通过数","题目编号","通过数",n,p,d)}function Wn(v){const r=v.rankStatistics.teamSolvedNum.map((u,f)=>({index:f,cnt:u})),{cat:n,series:p,colors:d}=(()=>{const u=[],f=[];return r.forEach(i=>{u.push(i.index),f.push(i.cnt)}),{cat:u,series:[{name:"队伍数",showInLegend:!1,data:f}],colors:["rgb(124, 181, 236)"]}})();return Mt("队伍过题数","过题数","队伍数",n,p,d)}function Yn(v){const{cat:r,series:n,colors:p}=(()=>{const d=[],u=[],f=[],o=[];return v.contest.problems.forEach(s=>{u.push(s.statistics.acceptedNum),f.push(s.statistics.rejectedNum),o.push(s.statistics.pendingNum),d.push(s.label)}),{cat:d,series:[{name:"Accepted",showInLegend:!1,data:u},{name:"Rejected",showInLegend:!1,data:f},{name:"Pending",showInLegend:!1,data:o}],colors:["#E1FFB5","#FFD0D0","#C8D6FA"]}})();return Mt("提交分类","题目编号","提交数",r,n,p)}function qn(v,r){const n=r.placeChartPoints.map(d=>{var u,f;return{x:d.timePoint,y:d.rank,showX:Gt(d.timePoint),lastSolved:(u=d.lastSolvedProblem)!=null&&u.label?`Last Solved Problem ${(f=d.lastSolvedProblem)==null?void 0:f.label}`:""}});return{chart:{type:"spline"},title:{text:"排名变化趋势图"},series:[{showInLegend:!1,allowPointSelect:!1,name:"rank",type:"spline",data:n,marker:{symbol:"circle",radius:4,lineWidth:2,fillColor:"yellow",lineColor:"yellow"}}],xAxis:[{allowDecimals:!1,title:{text:"Time(min)"},crosshair:!0}],yAxis:[{allowDecimals:!1,title:{text:"Place"},reversed:!0,gridLineWidth:1}],plotOptions:{line:{color:"#efbc47",dataLabels:{enabled:!1},enableMouseTracking:!0,marker:{enabled:!0,fillColor:"#fff566"}}},tooltip:{enabled:!0,headerFormat:"",pointFormat:"Time: {point.showX} <br/> Place: {point.y} <br/> {point.lastSolved}"},credits:{enabled:!1},exporting:{enabled:!0},navigation:{menuItemStyle:{fontSize:"10px"}}}}const Kn={class:"w-full",flex:"","flex-col":""},Qn={class:"sm:w-full md:w-[92%]","mx-auto":"","px-4":"","py-4":"","lg:px-6":"","lg:py-6":""},Zn={grid:"","grid-cols-3":"","gap-10":"","space-y-0":""},Jn={class:"mx-auto w-[16rem]","p-6":"","xl:p-8":"",flex:"","flex-col":"",border:"","border-gray-100":"","dark:border-gray-600":"","text-center":"","test-gray-900":"","bg-white":"","dark:bg-gray-800":"","dark:text-white":"",shadow:"","rounded-md":""},ts={"mb-4":"","text-2xl":"","font-semibold":""},es={class:"my-8 flex items-baseline justify-center"},ns={class:"mr-2 text-5xl font-extrabold"},ss={"mt-8":"","gap-8":"",flex:"","flex-col":""},os=D({__name:"Statistics",props:{rank:null},setup(v){const r=v,{t:n}=et(),p=b(()=>r.rank);function d(){const u=[];return u.push({title:"standings.statistics.head_data.problems",data:p.value.contest.problems.length}),u.push({title:"standings.statistics.head_data.teams",data:p.value.teams.length}),u.push({title:"standings.statistics.head_data.submissions",data:p.value.getSubmissions().length}),u}return(u,f)=>(l(),m("div",Kn,[e("section",null,[e("div",Qn,[e("div",Zn,[(l(!0),m(N,null,U(d(),o=>(l(),m("div",{key:o.title},[e("div",Jn,[e("h3",ts,g(t(n)(o.title)),1),e("div",es,[e("span",ns,g(o.data),1)])])]))),128))])])]),e("div",ss,[e("div",null,[k(t(xt.Chart),{options:("getSubmitChart"in u?u.getSubmitChart:t(Yn))(t(p))},null,8,["options"])]),e("div",null,[k(t(xt.Chart),{options:("getProblemChart"in u?u.getProblemChart:t(Xn))(t(p))},null,8,["options"])]),e("div",null,[k(t(xt.Chart),{options:("getTeamChart"in u?u.getTeamChart:t(Wn))(t(p))},null,8,["options"])])])]))}}),as=["src"],ls=D({__name:"ReactionVideoModal",props:{isOpen:{type:Boolean},submissionReaction:null,width:null},emits:["close"],setup(v,{emit:r}){const n=v,p=r,d=O(null);function u(){p("close")}function f(o){o.target===o.currentTarget&&u()}return ut(()=>n.isOpen,o=>{o&&d.value?d.value.play():d.value&&(d.value.pause(),d.value.currentTime=0)}),(o,_)=>v.isOpen?(l(),m("div",{key:0,fixed:"","inset-0":"",flex:"","items-center":"","justify-center":"","p-2":"","bg-black":"","bg-opacity-50":"","z-2999":"",onClick:f},[e("div",{"bg-white":"",shadow:"",relative:"","overflow-hidden":"",class:E(["h-[100%]",[v.width??"w-[540px]"]]),onClick:_[0]||(_[0]=$e(()=>{},["stop"]))},[e("video",{ref_key:"videoPlayer",ref:d,controls:"",autoplay:"",class:"w-full h-full"},[e("source",{src:v.submissionReaction.url,type:"video/mp4"},null,8,as),_[1]||(_[1]=Y(" Your browser does not support the video tag. "))],512),e("div",{absolute:"","top-0.5":"","right-0.5":"","text-black":"","rounded-md":"","p-2":"","transition-colors":"","duration-300":"","focus:outline-none":"","cursor-pointer":"",onClick:u},_[2]||(_[2]=[e("span",{"i-ion-close-circle-outline":"","text-2xl":""},null,-1)]))],2)])):h("",!0)}}),rs={"mx-auto":"","w-full":""},is={key:0,flex:"","justify-start":"","items-start":""},us={"space-y-3":"",flex:"","flex-col":"","px-4":"","py-3":"","lg:flex-row":"","lg:items-center":"","lg:justify-between":"","lg:space-x-4":"","lg:space-y-0":""},cs={flex:"","flex-shrink-0":"","flex-col":"","md:flex-row":"","md:items-center":"","lg:justify-end":"","space-y-3":"","md:space-x-3":"","md:space-y-0":""},ds={key:0,"w-48":""},ms={key:1,"w-48":""},ps={key:2,"w-68":""},fs={key:3,"w-48":""},vs={key:4},gs={class:"overflow-x-auto"},_s={class:"w-full text-left text-sm text-gray-500 dark:text-gray-400","font-medium":"","font-mono":""},bs={class:"bg-gray-50 text-xs uppercase text-gray-700 dark:bg-gray-700 dark:text-gray-400"},hs={key:0,scope:"col",class:"px-4 py-3"},ys={key:1,scope:"col",class:"px-4 py-3"},ks={key:2,scope:"col",class:"px-4 py-3"},xs={key:3,scope:"col",class:"px-4 py-3"},ws={key:4,scope:"col",class:"px-4 py-3"},Ss={"px-4":"","py-2":""},$s={key:0,class:"whitespace-nowrap px-4 py-2 text-gray-900 dark:text-white"},Ts={class:"whitespace-nowrap px-4 py-2 text-gray-900 dark:text-white"},Cs={key:1,class:"whitespace-nowrap px-4 py-2 text-gray-900 dark:text-white"},Ms={flex:"","items-center":""},Os={key:2,class:"whitespace-nowrap px-4 py-2 text-gray-900 dark:text-white"},Is={key:3,class:"whitespace-nowrap px-4 py-2 text-gray-900 dark:text-white"},zs={flex:"","items-center":""},Fs={class:"whitespace-nowrap px-4 py-2 text-gray-900 dark:text-white"},Ps={flex:"","items-center":""},Bs={key:4,class:"whitespace-nowrap px-4 py-2 text-gray-900 dark:text-white"},Ds=["onClick"],As=D({__name:"SubmissionsTable",props:{rank:null,submissions:null,pageSize:null,removeBorder:{type:Boolean},enableFilter:null},setup(v){const r=v,n=b(()=>r.rank),p=b(()=>r.enableFilter),d=b(()=>{if(!p.value)return!1;for(const[z,x]of Object.entries(p.value))if(x===!0)return!0;return!1}),u=O({orgNames:[],teamIds:[],languages:[],statuses:[]}),f=b(()=>n.value.organizations.map(x=>({value:x,text:x}))),o=O([]),_=O({});function i(z,x){o.value=z,_.value=x}const s=b(()=>n.value.originTeams.map(x=>({value:x.id,text:x.organization?`${x.name} - ${x.organization}`:x.name}))),c=O([]),a=O({});function y(z,x){c.value=z,a.value=x}const w=b(()=>n.value.languages.map(F=>({value:F,text:F}))),$=O([]),C=O({});function T(z,x){$.value=z,C.value=x}const P=b(()=>n.value.statuses.map(F=>({value:F,text:Ft[F]}))),j=O([]),Z=O({});function lt(z,x){j.value=z,Z.value=x}function rt(z){return z.value.toString()}const nt=b(()=>r.submissions.filter(x=>{const F=u.value;if(F.orgNames.length===0&&F.teamIds.length===0&&F.languages.length===0&&F.statuses.length===0)return!0;if(F.teamIds.length>0){for(const H of F.teamIds)if(H===x.teamId)return!0}if(F.orgNames.length>0){const H=n.value.teamsMap.get(x.teamId);for(const pt of F.orgNames)if(pt===(H==null?void 0:H.organization))return!0}if(F.languages.length>0){for(const H of F.languages)if(H===x.language)return!0}if(F.statuses.length>0){for(const H of F.statuses)if(H===x.status)return!0}return!1}).sort(jt.compare).reverse());function dt(){const z={orgNames:[],teamIds:[],languages:[],statuses:[]};z.orgNames=o.value.map(x=>x.value),z.teamIds=c.value.map(x=>x.value),z.languages=$.value.map(x=>x.value),z.statuses=j.value.map(x=>x.value),u.value=z}const G=O(new ie);G.value.currentPage=0,G.value.pageSize=r.pageSize??16,G.value.totalSize=nt.value.length,ut(nt,()=>{G.value.totalSize=nt.value.length,G.value.currentPage>=G.value.totalPage&&(G.value.currentPage=G.value.totalPage-1)});const B=b(()=>nt.value.slice(G.value.currentLeft,G.value.currentRight)),S=O(!1);function st(z){const x="bg-primary-100 text-primary-800 dark:bg-primary-900 dark:text-primary-300",F=z.problemId,H=n.value.contest.problemsMap.get(F);if(H==null||!H.balloonColor)return x}function mt(z){const x=z.problemId,F=n.value.contest.problemsMap.get(x);if(!(F==null||!F.balloonColor))return{backgroundColor:F.balloonColor.background_color,color:F.balloonColor.color}}const Q=O(!1),it=O(null);function W(z){it.value=z,Q.value=!0}function $t(){Q.value=!1}return(z,x)=>{var ft,M,I,R;const F=ls,H=bt,pt=ue;return l(),m("section",null,[e("div",rs,[t(Q)?(l(),m("div",is,[k(F,{"is-open":t(Q),"submission-reaction":t(it),onClose:$t},null,8,["is-open","submission-reaction"])])):h("",!0),e("div",{relative:"","overflow-hidden":"","bg-white":"","dark:bg-gray-800":"",class:E({"shadow-md":r.removeBorder!==!0,"sm:rounded-sm":r.removeBorder!==!0})},[e("div",us,[e("div",cs,[t(n).contest.organization&&((ft=t(p))!=null&&ft.organization)?(l(),m("div",ds,[k(t(ot),{options:t(f),"selected-options":t(o),placeholder:t(n).contest.organization,onSelect:i},null,8,["options","selected-options","placeholder"])])):h("",!0),(M=t(p))!=null&&M.team?(l(),m("div",ms,[k(t(ot),{options:t(s),"selected-options":t(c),placeholder:"Team",onSelect:y},null,8,["options","selected-options"])])):h("",!0),(I=t(p))!=null&&I.status?(l(),m("div",ps,[k(t(ot),{options:t(P),"selected-options":t(j),placeholder:"Status","custom-attr":rt,onSelect:lt},null,8,["options","selected-options"])])):h("",!0),(R=t(p))!=null&&R.language&&t(w).length>0?(l(),m("div",fs,[k(t(ot),{options:t(w),"selected-options":t($),placeholder:"Language",onSelect:T},null,8,["options","selected-options"])])):h("",!0),t(d)?(l(),m("div",vs,[e("button",{type:"button",class:"flex flex-shrink-0 items-center justify-center border border-gray-200 rounded-lg bg-white px-3 py-2 text-sm font-medium text-gray-900 focus:z-10 dark:border-gray-600 dark:bg-gray-800 hover:bg-gray-100 dark:text-gray-400 hover:text-primary-700 focus:outline-none focus:ring-4 focus:ring-gray-200 dark:hover:bg-gray-700 dark:hover:text-white dark:focus:ring-gray-700",onClick:dt},x[1]||(x[1]=[e("div",{"i-material-symbols-search":"","mr-1":"","h-5":"","w-5":""},null,-1),Y(" Filter ")]))])):h("",!0)])]),e("div",gs,[e("table",_s,[e("thead",bs,[e("tr",null,[x[2]||(x[2]=e("th",{scope:"col",class:"px-4 py-3"}," Problem ",-1)),t(n).contest.organization?(l(),m("th",hs,g(t(n).contest.organization),1)):h("",!0),x[3]||(x[3]=e("th",{scope:"col",class:"px-4 py-3"}," Team ",-1)),x[4]||(x[4]=e("th",{scope:"col",class:"px-4 py-3"}," Status ",-1)),t(n).contest.options.submissionHasTimeField?(l(),m("th",ys," Time ")):h("",!0),t(S)?(l(),m("th",ks," Memory ")):h("",!0),t(n).contest.options.submissionHasLanguageField?(l(),m("th",xs," Answer ")):h("",!0),x[5]||(x[5]=e("th",{scope:"col",class:"px-4 py-3"}," Submit Time ",-1)),t(n).contest.options.submissionEnableActionField?(l(),m("th",ws," Action ")):h("",!0)])]),e("tbody",null,[(l(!0),m(N,null,U(t(B),A=>{var ht,yt,vt;return l(),m("tr",{key:A.id,class:"border-b dark:border-gray-600 hover:bg-gray-100 dark:hover:bg-gray-700"},[e("td",Ss,[e("span",{class:E(["rounded px-2 py-0.5 text-sm",[st(A)]]),style:at(mt(A))},g((ht=t(n).contest.problemsMap.get(A.problemId))==null?void 0:ht.label),7)]),t(n).contest.organization?(l(),m("td",$s,g((yt=t(n).teamsMap.get(A.teamId))==null?void 0:yt.organization),1)):h("",!0),e("td",Ts,g((vt=t(n).teamsMap.get(A.teamId))==null?void 0:vt.name),1),e("td",{scope:"row",class:E([A.status.toString()]),"whitespace-nowrap":"","px-4":"","py-2":"",flex:"","items-center":"","font-bold":""},g(t(Ft)[A.status]),3),t(n).contest.options.submissionHasTimeField?(l(),m("td",Cs,[e("div",Ms,g(`${A.time??0} ms`),1)])):h("",!0),t(S)?(l(),m("td",Os," 0.47 ")):h("",!0),t(n).contest.options.submissionHasLanguageField?(l(),m("td",Is,[e("div",zs,g(A.language),1)])):h("",!0),e("td",Fs,[e("div",Ps,[k(H,null,{popper:L(()=>[Y(g(A.timestampDisplayFormatWithMilliSecond),1)]),default:L(()=>[Y(g(A.timestampDisplayFormatWithSecond)+" ",1)]),_:2},1024)])]),t(n).contest.options.submissionEnableActionField?(l(),m("td",Bs,[k(H,null,{popper:L(()=>x[6]||(x[6]=[Y(" Reaction Video ")])),default:L(()=>[A.reaction?(l(),m("div",{key:0,flex:"","items-center":"","justify-start":"","text-lg":"","cursor-pointer":"","i-material-symbols-slow-motion-video":"",onClick:Ot=>W(A.reaction)},null,8,Ds)):h("",!0)]),_:2},1024)])):h("",!0)])}),128))])])]),k(pt,{pagination:t(G),"onUpdate:pagination":x[0]||(x[0]=A=>V(G)?G.value=A:null)},null,8,["pagination"])],2)])])}}}),St=K(As,[["__scopeId","data-v-cef293c5"]]),Es={class:"statistics-0"},Ls=["colspan"],Ns={class:"stnd"},Rs={class:"statistics-1"},Hs=["colspan"],Us={class:"stnd"},js={class:"statistics-0"},Gs=["colspan"],Vs={class:"stnd"},Xs={class:"statistics-1"},Ws=["colspan"],Ys={class:"stnd"},qs={class:"statistics-0"},Ks=["colspan"],Qs={class:"stnd"},Zs={class:"statistics-1"},Js=["colspan"],to={class:"stnd"},eo={class:"statistics-0"},no=["colspan"],so={class:"stnd"},oo=D({__name:"BottomStatistics",props:{rank:null},setup(v){const r=v,{t:n}=et(),p=b(()=>r.rank);function d(){let s=3;return p.value.contest.organization&&s++,p.value.contest.badge&&s++,s}function u(s){return s.submittedNum===0?"NaN":`${Math.floor(s.attemptedNum*100/s.submittedNum)}%`}function f(s){return s.submittedNum===0?"NaN":`${Math.floor(s.acceptedNum*100/s.submittedNum)}%`}function o(s){return s.attemptedNum===0?"NaN":`${s.dirt}%`}function _(s){return s.firstSolveSubmissions.length===0?"Null":`${s.firstSolveSubmissions[0].timestampToMinute}`}function i(s){return s.lastSolveSubmissions.length===0?"Null":`${s.lastSolveSubmissions[0].timestampToMinute}`}return(s,c)=>(l(),m(N,null,[e("tr",Es,[e("td",{class:"empty",colspan:d()},null,8,Ls),e("td",Ns,[e("b",null,g(t(n)("standings.statistics.submitted")),1)]),(l(!0),m(N,null,U(t(p).contest.problems,a=>(l(),m("td",{key:a.id,class:"stnd"},[e("b",null,g(a.statistics.submittedNum),1)]))),128))]),e("tr",Rs,[e("td",{class:"empty",colspan:d()},null,8,Hs),e("td",Us,[e("b",null,g(t(n)("standings.statistics.attempted")),1)]),(l(!0),m(N,null,U(t(p).contest.problems,a=>(l(),m("td",{key:a.id,class:"stnd"},[e("b",null,g(a.statistics.attemptedNum),1),c[0]||(c[0]=e("br",null,null,-1)),e("b",null," ("+g(u(a.statistics))+") ",1)]))),128))]),e("tr",js,[e("td",{class:"empty",colspan:d()},null,8,Gs),e("td",Vs,[e("b",null,g(t(n)("standings.statistics.accepted")),1)]),(l(!0),m(N,null,U(t(p).contest.problems,a=>(l(),m("td",{key:a.id,class:"stnd"},[e("b",null,g(a.statistics.acceptedNum),1),c[1]||(c[1]=e("br",null,null,-1)),e("b",null," ("+g(f(a.statistics))+") ",1)]))),128))]),e("tr",Xs,[e("td",{class:"empty",colspan:d()},null,8,Ws),e("td",Ys,[e("b",null,g(t(n)("standings.statistics.dirt")),1)]),(l(!0),m(N,null,U(t(p).contest.problems,a=>(l(),m("td",{key:a.id,class:"stnd"},[e("b",null,g(a.statistics.attemptedNum-a.statistics.acceptedNum),1),c[2]||(c[2]=e("br",null,null,-1)),e("b",null," ("+g(o(a.statistics))+") ",1)]))),128))]),e("tr",qs,[e("td",{class:"empty",colspan:d()},null,8,Ks),e("td",Qs,[e("b",null,g(t(n)("standings.statistics.se")),1)]),(l(!0),m(N,null,U(t(p).contest.problems,a=>(l(),m("td",{key:a.id,class:"stnd"},[e("b",null,g(a.statistics.se.toFixed(2)),1)]))),128))]),e("tr",Zs,[e("td",{class:"empty",colspan:d()},null,8,Js),e("td",to,[e("b",null,g(t(n)("standings.statistics.first_solved")),1)]),(l(!0),m(N,null,U(t(p).contest.problems,a=>(l(),m("td",{key:a.id,class:"stnd"},[e("b",null,g(_(a.statistics)),1)]))),128))]),e("tr",eo,[e("td",{class:"empty",colspan:d()},null,8,no),e("td",so,[e("b",null,g(t(n)("standings.statistics.last_solved")),1)]),(l(!0),m(N,null,U(t(p).contest.problems,a=>(l(),m("td",{key:a.id,class:"stnd"},[e("b",null,g(i(a.statistics)),1)]))),128))])],64))}}),ao=K(oo,[["__scopeId","data-v-198c3ef3"]]),lo={"w-full":"","font-bold":"","font-mono":"",flex:"","items-center":"","justify-center":"",class:"mt-[-12px]"},ro=D({__name:"SubmissionsTableModal",props:{isHidden:{type:Boolean},rank:null,team:null,p:null},emits:["update:isHidden"],setup(v,{emit:r}){const n=v,p=r,d=b({get(){return n.isHidden},set(i){p("update:isHidden",i)}}),u=b(()=>n.rank),f=b(()=>n.team),o=b(()=>n.p),_=b(()=>`${f.value.name} - ${o.value.problem.label}`);return(i,s)=>{const c=St,a=wt;return l(),X(a,{"is-hidden":t(d),"onUpdate:isHidden":s[0]||(s[0]=y=>V(d)?d.value=y:null),title:t(_)},{default:L(()=>[e("div",lo,[k(c,{"w-full":"",rank:t(u),submissions:t(o).submissions,"page-size":8,"remove-border":!0},null,8,["rank","submissions"])])]),_:1},8,["is-hidden","title"])}}}),io=D({__name:"TeamProblemBlock",props:{rank:null,team:null,p:null},setup(v){const r=v,n=O(!0);function p(){n.value=!1}const d=b(()=>r.rank),u=b(()=>r.team),f=b(()=>r.p);function o(s){return s.isSolved?"+":s.isWrongAnswer?"-":s.isPending?`? ${s.pendingCount}`:""}function _(s){let c="";return s.isUnSubmitted||(c+=`${s.failedCount+Number(s.isSolved)}`),(s.isSolved&&d.value.contest.statusTimeDisplay.correct||s.isPending&&d.value.contest.statusTimeDisplay.pending||s.isWrongAnswer&&d.value.contest.statusTimeDisplay.incorrect)&&(c+=`/${Math.floor(s.lastSubmitTimestamp/60)}`),c}function i(s){return s.isFirstSolved?"first-solve":s.isSolved?"correct":s.isWrongAnswer?"incorrect":s.isPending?"pending":"unattempted"}return(s,c)=>{const a=ro;return l(),m("td",{class:E(["stnd",[i(t(f))]])},[e("div",{"cursor-pointer":"",flex:"","flex-col":"","justify-center":"","items-center":"",onClick:p},[e("div",null,g(o(t(f))),1),e("div",null,g(_(t(f))),1)]),e("div",null,[t(n)?h("",!0):(l(),X(a,{key:0,"is-hidden":t(n),"onUpdate:isHidden":c[0]||(c[0]=y=>V(n)?n.value=y:null),rank:t(d),team:t(u),p:t(f)},null,8,["is-hidden","rank","team","p"]))])],2)}}}),uo=K(io,[["__scopeId","data-v-68dd357b"]]),co={"text-gray-900":"","dark:text-white":"","text-xl":"","font-mono":"","font-semibold":"",italic:"",flex:"","flex-col":"","gap-2":"","justify-center":"","items-center":""},mo={flex:"","flex-col":"","items-start":"","gap-y-2":""},po={key:0},fo={key:1},vo={key:2,flex:"","flex-col":"","gap-2":""},go={key:3},_o=D({__name:"TeamAwards",props:{team:null,rank:null},setup(v){const r=v,n=b(()=>r.team),p=b(()=>r.rank),d=b(()=>r.team.problemStatistics.filter(o=>!!o.isFirstSolved).map(o=>o.problem.label).join(",")),u=b(()=>{const o=r.team.awards;return o.includes(q.GOLD)?{text:"Gold"}:o.includes(q.SILVER)?{text:"Silver"}:o.includes(q.BRONZE)?{text:"Bronze"}:o.includes(q.HONORABLE)?{text:"Honorable"}:null}),f=b(()=>{let o=n.value.rank;return p.value.contest.organization&&(o=n.value.organizationRank),o===1?"1st Place":o===2?"2nd Place":o===3?"3rd Place":""});return(o,_)=>(l(),m("div",co,[e("div",mo,[t(u)?(l(),m("div",po,g(t(u).text)+" Medalist ",1)):h("",!0),t(f).length>0?(l(),m("div",fo,g(t(f)),1)):h("",!0),t(d).length?(l(),m("div",vo,[e("div",null," First Solved Problem "+g(t(d)),1)])):h("",!0),t(n).solvedProblemNum>0?(l(),m("div",go," Solved "+g(t(n).solvedProblemNum)+" "+g(t(n).solvedProblemNum>1?"Problems":"Problem"),1)):h("",!0)])]))}}),bo={role:"group","inline-flex":"","flex-col":"","w-full":"","md:w-auto":"","md:flex-row":"","rounded-md":"","shadow-sm":""},ho=["onClick"],Jt=D({__name:"ModalMenu",props:{currentType:null,types:null},emits:["update:currentType"],setup(v,{emit:r}){const n=v,p=r,{t:d}=et(),u=b({get(){return n.currentType},set(_){p("update:currentType",_)}});function f(_){u.value=_}const o=b(()=>n.types.length);return(_,i)=>(l(),m("div",bo,[(l(!0),m(N,null,U(n.types,(s,c)=>(l(),m("button",{key:s,type:"button","px-4":"","py-2":"","my-2":"","text-sm":"","font-medium":"","text-gray-900":"","bg-white":"","dark:bg-gray-700":"","dark:text-white":"","border-gray-200":"","dark:border-gray-600":"","hover:bg-gray-100":"","dark:hover:bg-gray-600":"","hover:text-primary-700":"","dark:hover:text-white":"","focus:z-10":"","focus:ring-2":"","focus:ring-primary-700":"","focus:text-primary-700":"","dark:focus:ring-primary-500":"","dark:focus:text-white":"",class:E({"rounded-t-lg md:rounded-tr-none md:rounded-l-lg":c===0,"rounded-b-lg md:rounded-bl-none md:rounded-r-lg mr-2":c+1===t(o),border:c===0||c+1===t(o),"border-t border-x md:border-x-0 md:border-b":c>0&&c+1<t(o),"md:border-r-0":c===0,"md:border-l":c>0,"z-10 ring-2 ring-primary-700 text-primary-700 dark:ring-primary-600 dark:text-white":t(u)===s}),onClick:a=>f(s)},g(t(d)(`type_menu.${s}`)),11,ho))),128))]))}}),yo=["src"],te=D({__name:"Badge",props:{image:null,widthClass:null},setup(v){const r=v,n=b(()=>r.image),p=b(()=>r.widthClass?r.widthClass:"h-8 w-8");return(d,u)=>t(n).base64?(l(),m("img",{key:0,src:t(Vt)(t(n)),alt:"badge",class:E([t(p)])},null,10,yo)):h("",!0)}}),ko={"w-full":"","max-w-screen-xl":"","px-4":"","mx-auto":"","lg:px-12":""},xo={relative:"","overflow-hidden":"","bg-white":"","dark:bg-gray-800":""},wo={flex:"","flex-col":"","items-center":"","justify-between":"","md:flex-row":"","space-y-3":"","md:space-y-0":""},So={flex:"","flex-row":"","space-x-3":""},$o={"text-gray-900":"","dark:text-white":"","text-2xl":"","font-sans":"","font-semibold":"",italic:""},To={flex:"","flex-col":"","justify-start":"","items-start":""},Co={"w-full":"","font-bold":"","font-mono":"",flex:"","items-center":"","justify-center":""},Mo={key:0,"w-full":"",class:"mt-[-12px]"},Oo={key:1,"w-full":""},Io={key:2,"w-full":""},Dt="submissions",At="statistics",Et="awards",zo=D({__name:"TeamInfoModal",props:{isHidden:{type:Boolean},rank:null,team:null},emits:["update:isHidden"],setup(v,{emit:r}){const n=v,p=r,d=b({get(){return n.isHidden},set(s){p("update:isHidden",s)}}),u=O("submissions"),f=b(()=>n.rank),o=b(()=>n.team),_=b(()=>{let s="";return f.value.contest.organization&&o.value.organization.length>0&&(s+=`${o.value.organization} - `),s+=`${o.value.name}`,o.value.members&&(s+=` - ${o.value.members}`),o.value.coach&&(s+=` - ${o.value.coach}(coach)`),s}),i=[Dt,At,Et];return(s,c)=>{const a=te,y=bt,w=Jt,$=St,C=_o,T=wt;return l(),X(T,{"is-hidden":t(d),"onUpdate:isHidden":c[1]||(c[1]=P=>V(d)?d.value=P:null)},{header:L(()=>[e("div",ko,[e("div",xo,[e("div",wo,[e("div",So,[t(o).badge?(l(),X(a,{key:0,image:t(o).badge,"width-class":"h-8 w-8"},null,8,["image"])):h("",!0),k(y,null,{popper:L(()=>[e("div",To,[e("div",null," TeamID: "+g(t(o).id),1)])]),default:L(()=>[e("h3",$o,g(t(_)),1)]),_:1})]),k(w,{"current-type":t(u),"onUpdate:currentType":c[0]||(c[0]=P=>V(u)?u.value=P:null),types:i},null,8,["current-type"])])])])]),default:L(()=>[e("div",Co,[t(u)===Dt?(l(),m("div",Mo,[k($,{"w-full":"",rank:t(f),submissions:t(o).submissions,"page-size":8,"remove-border":!0},null,8,["rank","submissions"])])):h("",!0),t(u)===At?(l(),m("div",Oo,[k(t(xt.Chart),{options:("getTeamPlaceChart"in s?s.getTeamPlaceChart:t(qn))(t(f),t(o))},null,8,["options"])])):h("",!0),t(u)===Et?(l(),m("div",Io,[k(C,{team:t(o),rank:t(f)},null,8,["team","rank"])])):h("",!0)])]),_:1},8,["is-hidden"])}}}),Fo={},Po={class:"color-gray-700 dark:color-gray-200"};function Bo(v,r){return l(),m("div",Po,r[0]||(r[0]=[e("svg",{t:"1685666543416",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"3736",width:"16",height:"16"},[e("path",{d:"M661.333333 662.613333c0.213333 82.133333 28.8 169.386667 64 169.386667v170.666667H298.666667v-170.666667c35.2 0 63.786667-87.253333 64-169.386667a176.256 176.256 0 0 1 21.333333-1.28h21.333333c0 35.413333 47.786667 64 106.666667 64s106.666667-28.586667 106.666667-64h21.333333a176.256 176.256 0 0 1 21.333333 1.28z",fill:"#F3596B","p-id":"3737"}),e("path",{d:"M810.666667 832v170.666667h-85.333334v-170.666667c-35.2 0-63.786667-87.253333-64-169.386667A170.666667 170.666667 0 0 1 810.666667 832zM362.666667 662.613333c-0.213333 82.133333-28.8 169.386667-64 169.386667v170.666667h-85.333334v-170.666667a170.666667 170.666667 0 0 1 149.333334-169.386667z",fill:"#FFD0AA","p-id":"3738"}),e("path",{d:"M704 320v-85.333333c0-94.293333-97.706667-170.666667-192-170.666667a42.794667 42.794667 0 0 1 42.666667-42.666667h128a128 128 0 0 1 128 128v234.666667s0 85.333333 85.333333 85.333333c0 0-93.226667 134.613333-228.48 6.186667a166.229333 166.229333 0 0 0 13.866667-49.066667L682.666667 426.666667h21.333333a42.666667 42.666667 0 0 0 0-85.333334h-21.333333v-21.333333z",fill:"#FFCA6B","p-id":"3739"}),e("path",{d:"M704 234.666667H320c0-94.293333 97.706667-170.666667 192-170.666667s192 76.373333 192 170.666667z",fill:"#FFCA6B","p-id":"3740"}),e("path",{d:"M704 234.666667v85.333333H320v-85.333333h384z",fill:"#F3596B","p-id":"3741"}),e("path",{d:"M746.666667 384a42.794667 42.794667 0 0 1-42.666667 42.666667h-21.333333l-1.28-0.213334A172.8 172.8 0 0 0 682.666667 405.333333v-64h21.333333a42.794667 42.794667 0 0 1 42.666667 42.666667zM341.333333 405.333333a172.8 172.8 0 0 0 1.28 21.12L341.333333 426.666667h-21.333333a42.666667 42.666667 0 0 1 0-85.333334h21.333333zM618.666667 661.333333c0 35.413333-47.786667 64-106.666667 64s-106.666667-28.586667-106.666667-64a42.794667 42.794667 0 0 0 42.666667-42.666666v-55.04a171.712 171.712 0 0 0 128 0V618.666667a42.794667 42.794667 0 0 0 42.666667 42.666666z",fill:"#FFD0AA","p-id":"3742"}),e("path",{d:"M682.666667 341.333333v64a172.8 172.8 0 0 1-1.28 21.12 166.229333 166.229333 0 0 1-13.866667 49.066667A170.474667 170.474667 0 0 1 576 563.626667 170.538667 170.538667 0 0 1 341.333333 405.333333v-85.333333h341.333334z",fill:"#FFD0AA","p-id":"3743"}),e("path",{d:"M810.666667 1024H213.333333a21.333333 21.333333 0 0 1-21.333333-21.333333v-170.666667a192.213333 192.213333 0 0 1 192-192h21.333333a21.333333 21.333333 0 0 0 21.333334-21.333333v-64h42.666666v64a64 64 0 0 1-64 64h-21.333333a149.504 149.504 0 0 0-149.333333 149.333333v149.333333h554.666666v-149.333333a149.504 149.504 0 0 0-149.333333-149.333333h-21.333333a64 64 0 0 1-64-64v-64h42.666666v64a21.333333 21.333333 0 0 0 21.333334 21.333333h21.333333a192.213333 192.213333 0 0 1 192 192v170.666667a21.333333 21.333333 0 0 1-21.333333 21.333333z",fill:"#2A3244","p-id":"3744"}),e("path",{d:"M512 597.333333a192.234667 192.234667 0 0 1-192-192v-85.333333a21.333333 21.333333 0 0 1 21.333333-21.333333h341.333334a21.333333 21.333333 0 0 1 21.333333 21.333333v85.333333a192.234667 192.234667 0 0 1-192 192z m-149.333333-256v64a149.333333 149.333333 0 0 0 298.666666 0v-64z",fill:"#2A3244","p-id":"3745"}),e("path",{d:"M704 448h-21.333333v-42.666667h21.333333a21.333333 21.333333 0 0 0 0-42.666666h-21.333333v-42.666667h21.333333a64 64 0 0 1 0 128zM341.333333 448h-21.333333a64 64 0 0 1 0-128h21.333333v42.666667h-21.333333a21.333333 21.333333 0 0 0 0 42.666666h21.333333z",fill:"#2A3244","p-id":"3746"}),e("path",{d:"M704 341.333333H320a21.333333 21.333333 0 0 1-21.333333-21.333333v-85.333333a21.333333 21.333333 0 0 1 21.333333-21.333334h384a21.333333 21.333333 0 0 1 21.333333 21.333334v85.333333a21.333333 21.333333 0 0 1-21.333333 21.333333z m-362.666667-42.666666h341.333334v-42.666667H341.333333z",fill:"#2A3244","p-id":"3747"}),e("path",{d:"M725.333333 234.666667h-42.666666c0-84.096-91.733333-149.333333-170.666667-149.333334s-170.666667 65.237333-170.666667 149.333334h-42.666666c0-109.888 112.618667-192 213.333333-192s213.333333 82.112 213.333333 192z",fill:"#2A3244","p-id":"3748"}),e("path",{d:"M783.616 552.32c-46.122667 0-92.266667-22.805333-137.365333-67.904l30.165333-30.165333c39.701333 39.701333 78.613333 58.389333 115.648 55.018666a114.282667 114.282667 0 0 0 60.8-26.026666A105.92 105.92 0 0 1 789.333333 384V149.333333a106.794667 106.794667 0 0 0-106.666666-106.666666h-128a21.333333 21.333333 0 0 0-21.333334 21.333333h-42.666666a64 64 0 0 1 64-64h128a149.504 149.504 0 0 1 149.333333 149.333333v234.666667a60.842667 60.842667 0 0 0 64 64 21.333333 21.333333 0 0 1 17.536 33.472 174.72 174.72 0 0 1-117.333333 70.250667 130.133333 130.133333 0 0 1-12.586667 0.597333zM512 746.666667c-71.765333 0-128-37.482667-128-85.333334h42.666667c0 20.138667 36.48 42.666667 85.333333 42.666667s85.333333-22.528 85.333333-42.666667h42.666667c0 47.850667-56.234667 85.333333-128 85.333334zM746.666667 1002.666667h-42.666667v-154.709334c-43.968-23.274667-64-117.333333-64-186.624h42.666667c0 85.333333 29.866667 148.842667 42.666666 149.333334a22.08 22.08 0 0 1 21.333334 21.333333zM320 1002.666667h-42.666667v-170.666667a21.333333 21.333333 0 0 1 21.333334-21.333333c12.8-0.490667 42.666667-64 42.666666-149.333334h42.666667c0 69.354667-20.032 163.349333-64 186.624z",fill:"#2A3244","p-id":"3749"})],-1)]))}const Do=K(Fo,[["render",Bo]]),Ao={},Eo={class:"color-gray-700 dark:color-gray-200"};function Lo(v,r){return l(),m("div",Eo,r[0]||(r[0]=[e("svg",{t:"1685845881484",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"4847",width:"16",height:"16"},[e("path",{d:"M785.352203 933.397493c-4.074805 0-8.151657-0.970094-11.833513-3.007497l-261.311471-142.488225L250.942821 930.388972c-8.343015 4.559852-18.527982 3.8814-26.28669-1.599428-7.760754-5.5279-11.640108-14.987343-10.088776-24.347524l47.578622-285.365306L72.563154 429.470355c-6.594185-6.547113-8.971325-16.295128-6.110161-25.122167 2.814092-8.850575 10.379395-15.397688 19.546172-16.949021l285.512662-47.577598 118.529557-236.989529c4.172019-8.391111 12.803607-13.701047 22.165836-13.701047 9.359158 0 17.992793 5.309936 22.163789 13.701047l118.529557 236.989529 285.511639 47.577598c9.217942 1.551332 16.73208 8.051373 19.593244 16.949021 2.813069 8.875135 0.48607 18.575054-6.109138 25.122167L762.264369 619.077737l47.577598 285.365306c1.50119 9.360182-2.37714 18.819624-10.087753 24.347524C795.487028 931.797042 790.394033 933.397493 785.352203 933.397493zM512.206196 734.747153c4.073782 0 8.196683 0.968048 11.880585 3.006474l228.379431 124.545574-41.268916-247.634983c-1.308809-7.90504 1.257643-16.005532 6.932899-21.63167l164.55787-164.555823-250.398934-41.709961c-7.855922-1.308809-14.549368-6.304589-18.140149-13.408381l-101.942787-203.915249","p-id":"4848"})],-1)]))}const No=K(Ao,[["render",Lo]]),Ro={key:1,class:"empty flex items-center justify-center"},Ho={flex:""},Uo={"float-left":"","pl-2":"","font-serif":""},jo={key:0},Go={"flex-1":""},Vo=D({__name:"TeamUI",props:{ix:null,rank:null,team:null,isFilter:{type:Boolean},giantsType:null},setup(v){const r=v,n=O(null),p=Te(n),d=O(!0);function u(){d.value=!1}const f=b(()=>r.rank),o=b(()=>r.team);function _(s,c=!1){if(c){if(s.awards.includes(q.GOLD))return"gold";if(s.awards.includes(q.SILVER))return"silver";if(s.awards.includes(q.BRONZE))return"bronze";if(s.awards.includes(q.HONORABLE))return"honorable"}if(r.giantsType!==void 0)switch(r.giantsType){case tt.BLUE:return"bg-blue-400";case tt.RED:return"bg-red-400"}if(r.isFilter)return"filter-team";const a=(f.value.rankStatistics.getTeamSolvedNumIndex(s.solvedProblemNum)-1)%2,y=r.ix%2;return`stand${a}${y}`}function i(){return p.value||r.ix<32}return(s,c)=>{const a=te,y=No,w=Do,$=zo,C=uo;return l(),m("tr",{ref_key:"el",ref:n,class:E(["h-10",[r.isFilter?"filter-team":"",r.giantsType!==void 0?_(r.team):""]])},[i()?(l(),m("td",{key:0,class:E(["stnd",[_(t(o),!0)]])},g(t(o).rank),3)):h("",!0),t(f).contest.badge&&t(o).badge&&i()?(l(),m("td",Ro,[k(a,{image:t(o).badge,"width-class":"h-8 w-8"},null,8,["image"])])):h("",!0),t(f).contest.organization&&i()?(l(),m("td",{key:2,class:E(["stnd",[_(t(o))]])},[e("div",Ho,[e("div",Uo,[t(o).organizationRank>-1?(l(),m("div",jo,g(t(o).organizationRank),1)):h("",!0)]),e("div",Go,g(t(o).organization),1),c[1]||(c[1]=e("div",{"float-right":""},null,-1))])],2)):h("",!0),i()?(l(),m("td",{key:3,class:E(["stnd",[_(t(o))]])},[e("div",{"cursor-pointer":"",onClick:u},[e("span",null,g(t(o).name),1),t(o).group.includes("unofficial")?(l(),X(y,{key:0,"inline-block":""})):h("",!0),t(o).group.includes("girl")?(l(),X(w,{key:1,"inline-block":""})):h("",!0)]),e("div",null,[t(d)?h("",!0):(l(),X($,{key:0,"is-hidden":t(d),"onUpdate:isHidden":c[0]||(c[0]=T=>V(d)?d.value=T:null),rank:t(f),team:t(o)},null,8,["is-hidden","rank","team"]))])],2)):h("",!0),i()?(l(),m("td",{key:4,class:E(["stnd",[_(t(o))]])},g(t(o).solvedProblemNum),3)):h("",!0),i()?(l(),m("td",{key:5,class:E(["stnd",[_(t(o))]])},g(t(o).penaltyToMinute),3)):h("",!0),(l(!0),m(N,null,U(t(o).problemStatistics,T=>(l(),m(N,{key:T.problem.id},[i()?(l(),X(C,{key:0,rank:t(f),team:t(o),p:T},null,8,["rank","team","p"])):h("",!0)],64))),128)),i()?(l(),m("td",{key:6,class:E(["stnd",[_(t(o))]])},g(`${t(o).dirt}%`),3)):h("",!0),i()?(l(),m("td",{key:7,class:E(["stnd",[_(t(o))]])},g(`${t(o).se.toFixed(2)}`),3)):h("",!0)],2)}}}),Xo=K(Vo,[["__scopeId","data-v-e8acef14"]]),Wo={"w-full":"","max-w-screen-xl":"","px-4":"","mx-auto":"","lg:px-12":""},Yo={relative:"","overflow-hidden":"","bg-white":"","dark:bg-gray-800":""},qo={flex:"","flex-col":"","items-center":"","justify-between":"","md:flex-row":"","space-y-3":"","md:space-y-0":""},Ko={flex:"","flex-row":"","space-x-3":""},Qo={"text-gray-900":"","dark:text-white":"","text-2xl":"","font-sans":"","font-semibold":"",italic:""},Zo={"w-full":"","font-bold":"","font-mono":"",flex:"","items-center":"","justify-center":""},Jo={key:0,"w-full":"",class:"mt-[-12px]"},ta={key:1,"w-full":""},ea={key:2,"w-full":""},Lt="submissions",Nt="statistics",Rt="awards",na=D({__name:"ProblemInfoModal",props:{isHidden:{type:Boolean},rank:null,problem:null},emits:["update:isHidden"],setup(v,{emit:r}){const n=v,p=r,d=b({get(){return n.isHidden},set(c){p("update:isHidden",c)}}),u=O("submissions"),f=b(()=>n.rank),o=b(()=>n.problem),_=b(()=>`Problem ${o.value.label}`),i=b(()=>f.value.getSubmissions().filter(c=>c.problemId===o.value.id)),s=[Lt,Nt,Rt];return(c,a)=>{const y=Jt,w=St,$=wt;return l(),X($,{"is-hidden":t(d),"onUpdate:isHidden":a[1]||(a[1]=C=>V(d)?d.value=C:null)},{header:L(()=>[e("div",Wo,[e("div",Yo,[e("div",qo,[e("div",Ko,[e("h3",Qo,g(t(_)),1)]),k(y,{"current-type":t(u),"onUpdate:currentType":a[0]||(a[0]=C=>V(u)?u.value=C:null),types:s},null,8,["current-type"])])])])]),default:L(()=>[e("div",Zo,[t(u)===Lt?(l(),m("div",Jo,[k(w,{"w-full":"",rank:t(f),submissions:t(i),"page-size":8,"remove-border":!0,"enable-filter":{organization:!0,team:!0,language:!0,status:!0}},null,8,["rank","submissions"])])):h("",!0),t(u)===Nt?(l(),m("div",ta)):h("",!0),t(u)===Rt?(l(),m("div",ea)):h("",!0)])]),_:1},8,["is-hidden"])}}}),sa=D({__name:"ProblemBlock",props:{rank:null,problem:null},setup(v){const r=v,n=O(!0);function p(){n.value=!1}const d=b(()=>r.rank),u=b(()=>r.problem),f=b(()=>u.value.balloonColor);return(o,_)=>{const i=na;return l(),m("th",{key:t(u).id,class:"success","text-center":"",style:at([{width:"3rem"},{"background-color":t(f).background_color,color:t(f).color}])},[e("div",{"cursor-pointer":"",flex:"","flex-col":"","justify-center":"","items-center":"",onClick:p},[e("div",null,g(t(u).label),1),e("div",null,g(t(u).statistics.acceptedNum),1)]),e("div",null,[t(n)?h("",!0):(l(),X(i,{key:0,"is-hidden":t(n),"onUpdate:isHidden":_[0]||(_[0]=s=>V(n)?n.value=s:null),rank:t(d),problem:t(u)},null,8,["is-hidden","rank","problem"]))])],4)}}}),oa=K(sa,[["__scopeId","data-v-6d613751"]]),aa={"text-8xl":"","font-mono":"",flex:"","justify-center":"","items-center":""},la={flex:"","justify-end":"","items-center":"","text-blue-400":""},ra={flex:"","flex-col":"","items-center":"","justify-center":"","ml-4":""},ia={"text-6xl":""},ua={"text-4xl":""},ca={flex:"","justify-start":"","items-center":"","text-red-400":""},da={flex:"","flex-col":"","items-center":"","justify-center":"","mr-4":""},ma={"text-6xl":""},pa={"text-4xl":""},fa=D({__name:"GiantsScoreBoard",props:{battleOfGiants:null},setup(v){const r=v,n=b(()=>r.battleOfGiants);return(p,d)=>(l(),m("div",null,[e("div",aa,[e("div",la,[e("div",null,g(t(n).blueTeam.name),1),e("div",ra,[e("div",ia,g(t(n).blueTeam.totalSolvedProblemNum),1),e("div",ua,g(t(n).blueTeam.totalPenaltyToString),1)])]),d[0]||(d[0]=e("div",{flex:"","justify-center":"","items-center":"","ml-4":"","mr-4":""}," : ",-1)),e("div",ca,[e("div",da,[e("div",ma,g(t(n).redTeam.totalSolvedProblemNum),1),e("div",pa,g(t(n).redTeam.totalPenaltyToString),1)]),e("div",null,g(t(n).redTeam.name),1)])])]))}}),va={key:0,"mb-4":""},ga={class:"standings","font-mono":"","dark:text-gray-700":""},_a={class:"sticky top-0 z-99"},ba={class:"title",style:{width:"3rem"}},ha={key:0,class:"title",style:{width:"2rem"}},ya={class:"title",style:{width:"3rem"}},ka={class:"title",style:{width:"4rem"}},xa={class:"title",style:{width:"2.5rem"}},wa={class:"title",style:{width:"2.5rem"}},Sa=D({__name:"Standings",props:{rank:null},setup(v){const r=v,{t:n}=et(),p=b(()=>r.rank),d=b(()=>r.rank.teams),u=b(()=>r.rank.options),f=b(()=>r.rank.teams.filter(c=>!!(r.rank.organizations&&r.rank.options.filterOrganizationMap.has(c.organization)||r.rank.options.filterTeamMap.has(c.id)))),o=b(()=>{const s=u.value.battleOfGiants,c=s.blueTeam,a=s.redTeam;c.teams=[],a.teams=[];let y=0,w=0;for(const C of r.rank.teams){const T=c.filterOrganizationMap.has(C.organization)||c.filterTeamMap.has(C.id)?y>=s.topX?null:(y++,tt.BLUE):a.filterOrganizationMap.has(C.organization)||a.filterTeamMap.has(C.id)?w>=s.topX?null:(w++,tt.RED):null;if(T!==null&&(T===tt.BLUE?c.teams.push(C):a.teams.push(C),y===s.topX&&w===s.topX))break}if(s.equalTeams){for(;c.teams.length<a.teams.length;)a.teams.pop();for(;a.teams.length<c.teams.length;)c.teams.pop()}const $=[...c.teams.map(C=>({team:C,giantsType:tt.BLUE})),...a.teams.map(C=>({team:C,giantsType:tt.RED}))];return $.sort((C,T)=>pe.compare(C.team,T.team)),$}),_=b(()=>{let s=0;return p.value.teams.forEach(c=>{s=Math.max(s,c.organization.length)}),s}),i=b(()=>{let s=0;return p.value.teams.forEach(c=>{s=Math.max(s,c.name.length)}),s});return(s,c)=>{const a=fa,y=oa,w=bt,$=Xo,C=ao;return l(),m("div",null,[t(u).battleOfGiants.enable?(l(),m("div",va,[k(a,{"battle-of-giants":t(u).battleOfGiants},null,8,["battle-of-giants"])])):h("",!0),e("div",null,[e("table",ga,[e("thead",_a,[e("tr",null,[e("th",ba,g(t(n)("standings.place")),1),t(p).contest.badge?(l(),m("th",ha,g(t(p).contest.badge),1)):h("",!0),t(p).contest.organization?(l(),m("th",{key:1,class:"title",style:at({width:`${Math.min(32,Math.ceil(t(_)*1.1))}rem`})},g(t(p).contest.organization),5)):h("",!0),e("th",{class:"title",style:at({width:`${Math.min(32,Math.ceil(t(i)*1))}rem`})},g(t(n)("standings.team")),5),e("th",ya,g(t(n)("standings.solved")),1),e("th",ka,g(t(n)("standings.penalty")),1),(l(!0),m(N,null,U(t(p).contest.problems,T=>(l(),X(y,{key:`problem-block-${T.id}`,rank:t(p),problem:T},null,8,["rank","problem"]))),128)),e("th",xa,[k(w,{placement:"top"},{popper:L(()=>c[0]||(c[0]=[e("div",null,[Y(" number of submits on the "),e("br"),Y(" all solved problems / number "),e("br"),Y(" of the solved problems ")],-1)])),default:L(()=>[e("div",null,g(t(n)("standings.dirt")),1)]),_:1})]),e("th",wa,[k(w,{placement:"top"},{popper:L(()=>c[1]||(c[1]=[e("div",null,[Y(' "average hardness". '),e("br"),Y(" Problem, solved by N teams out of M, "),e("br"),Y(" have hardness (M-N)/M. ")],-1)])),default:L(()=>[e("div",null,g(t(n)("standings.se")),1)]),_:1})])])]),e("tbody",null,[t(u).battleOfGiants.enable?(l(!0),m(N,{key:0},U(t(o),(T,P)=>(l(),X($,{key:`giant-team-${T.team.id}`,ix:P,rank:t(p),team:T.team,"giants-type":T.giantsType},null,8,["ix","rank","team","giants-type"]))),128)):h("",!0),(l(!0),m(N,null,U(t(f),(T,P)=>(l(),X($,{key:`filter-${T.id}`,ix:P,rank:t(p),team:T,"is-filter":!0},null,8,["ix","rank","team"]))),128)),(l(!0),m(N,null,U(t(d),(T,P)=>(l(),X($,{key:T.id,ix:P,rank:t(p),team:T},null,8,["ix","rank","team"]))),128)),k(C,{rank:t(p)},null,8,["rank"])])])])])}}}),$a=K(Sa,[["__scopeId","data-v-3340f68a"]]),Ta={"font-mono":"",flex:""},Ca=["onClick"],Ma=["href"],Oa={key:1},Ia=D({__name:"SecondLevelMenu",props:{items:null,currentItem:null,queryParamName:null,reverseOrder:{type:Boolean},onChange:{type:Function}},emits:["update:currentItem"],setup(v,{emit:r}){const n=v,p=r,d=b(()=>{var a;for(const y of n.items)if(y.isDefault)return y.keyword;return(a=n.items)==null?void 0:a[0].keyword}),u=Ct(n.queryParamName,d.value,{transform:String}),f=b({get(){return n.currentItem},set(a){p("update:currentItem",a)}}),{t:o,locale:_}=et();function i(a){return a.title?o(a.title):a.titles?a.titles.get(_.value)??a.titles.get(a.defaultLang):""}function s(a){return f.value===a.keyword}function c(a){n.onChange&&n.onChange(a.keyword),!(a.link||a.isModal)&&(f.value=a.keyword,u.value=a.keyword)}return Kt(()=>{(()=>{var a;((a=u.value)==null?void 0:a.length)>0&&((()=>{for(const y of n.items)if(y.titles){for(const[w,$]of y.titles)if(u.value===$){u.value=y.keyword;return}}})(),f.value=u.value,n.onChange&&n.onChange(u.value))})()}),(a,y)=>(l(),m("div",Ta,[e("div",{class:E(["mr-[-4px]",{"flex-row-reverse":n.reverseOrder}]),flex:""},[(l(!0),m(N,null,U(n.items,w=>(l(),m("div",{key:w.keyword,class:E(["second-level-menu-item",[s(w)?"second-level-menu-item-current":""]]),onClick:$=>c(w)},[e("div",null,[w.link?(l(),m("a",{key:0,href:w.link,target:"_blank",title:"Resolver"},g(i(w)),9,Ma)):h("",!0),w.link?h("",!0):(l(),m("div",Oa,g(i(w)),1))])],10,Ca))),128))],2)]))}}),za=K(Ia,[["__scopeId","data-v-421d74d9"]]),Fa={},Pa={flex:"","items-center":"","justify-center":"","dark:text-black":""};function Ba(v,r){return l(),m("div",Pa,r[0]||(r[0]=[Ce('<table data-v-9e0d419f><tbody data-v-9e0d419f><tr data-v-9e0d419f><td class="gold" data-v-9e0d419f> Gold </td><td class="silver" data-v-9e0d419f> Silver </td><td class="bronze" data-v-9e0d419f> Bronze </td><td class="honorable" data-v-9e0d419f> Honorable </td><td class="first-solve" data-v-9e0d419f> First to solve problem </td><td class="correct" data-v-9e0d419f> Solved problem </td><td class="incorrect" data-v-9e0d419f> Attempted problem </td><td class="pending" data-v-9e0d419f> Pending judgement/Frozen </td></tr></tbody></table>',1)]))}const Da=K(Fa,[["render",Ba],["__scopeId","data-v-9e0d419f"]]),Aa={flex:""},Ea={flex:""},La={flex:""},Na=D({__name:"BoardTab",props:{rank:null},setup(v){const r=v,n=b(()=>r.rank),{t:p}=et(),d=Yt.useToast(),{copy:u,isSupported:f}=qt();let o=null;const _=O(null),i=O(null);function s(){return window?f.value?!0:(d.warning("clipboard is not supported"),o==null||o.hide(),!1):!1}function c(){d.success("copy success"),o==null||o.hide()}function a(){s()&&(u(window.location.href),c())}function y(){if(!s())return;const w=`<iframe src="${window.location.href}" border="0" frameborder="no" framespacing="0" allowfullscreen="true" style="width: 100%; height: 720px"></iframe>`;u(w),c()}return Kt(()=>{if(_.value&&i.value){const w={placement:"right",triggerType:"click",offsetSkidding:32,offsetDistance:5,delay:300};o=new ce(_.value,i.value,w)}}),(w,$)=>{const C=bt;return l(),m("div",Aa,[e("div",null,[k(C,{"w-inherit":""},{popper:L(()=>{var T;return[e("div",Ea,[e("div",null,g(t(p)("standings.options.calculation_of_penalty"))+": "+g(t(p)(`standings.options.${(T=t(n).contest.options)==null?void 0:T.calculationOfPenalty}`)),1)])]}),default:L(()=>[$[0]||($[0]=e("div",null,[e("div",{"i-material-symbols-info-outline":"","text-lg":""})],-1))]),_:1})]),$[1]||($[1]=e("div",{class:"border-l-[1px] border-r-[1px]","mx-2":"","h-6":"","border-color-black":"","dark:border-color-white":""},null,-1)),e("div",La,[e("div",{ref_key:"dropdownTriggerEl",ref:i,"i-material-symbols-share":"","text-lg":"","cursor-pointer":""},null,512),e("div",{ref_key:"dropdownTargetEl",ref:_,class:"z-9999 hidden divide-y divide-gray-100 rounded shadow w-36","bg-white":"","dark:bg-gray-700":""},[e("ul",{class:"py-2 text-sm text-gray-700 dark:text-gray-200"},[e("li",null,[e("div",{class:"block px-4 py-2 hover:bg-gray-100 dark:hover:bg-gray-600 dark:hover:text-white","cursor-pointer":"",onClick:a}," Copy Page Link ")]),e("li",null,[e("div",{class:"block px-4 py-2 hover:bg-gray-100 dark:hover:bg-gray-600 dark:hover:text-white","cursor-pointer":"",onClick:y}," Copy Page Code ")])])],512)])])}}}),Ra={key:0},Ha={key:0},Ua={key:0},ja={class:"max-w-[92%]"},Ga=["src"],Va={class:"max-w-[92%]"},Xa={class:"w-[92%]"},Wa={class:"flex font-bold font-mono"},Ya={class:"float-left"},qa={class:"pl-0.5"},Ka={class:"flex-1"},Qa={class:"float-right"},Za={class:"pl-0.5"},Ja={class:"mt-2"},tl={class:"mt-2 flex font-bold font-mono"},el={class:"float-left"},nl={class:"flex-1"},sl={class:"float-right"},ol={class:"mt-4 flex"},al={class:"float-left"},ll={class:"float-right"},rl={class:"w-[92%]",flex:"","justify-center":""},il={key:0},ul={key:1,class:"sm:w-full xl:w-[92%]"},cl={key:2,class:"sm:w-full xl:w-[92%]"},dl={key:3},ml={key:4},pl={key:2},Ht="sm:w-[1280px] xl:w-screen",kt="sm:w-[1260px] xl:w-screen",fl=D({__name:"Board",props:{dataSourceUrl:null},setup(v){const r=v,n=ct(),p=Me(Pt),{t:d}=et(),u=O(!1),f=O({}),o=O([]),_=O([]),i=O({}),s=Oe(),c=O(new fe),a=O(!1);(()=>{const M=Je(),I=tn();M.value.length>0&&c.value.setFilterOrganizations(M.value),I.value.length>0&&c.value.setFilterTeams(I.value)})(),(()=>{const M=Qt();M.value!==null&&M.value!==void 0&&c.value.battleOfGiants.FromBase64(M.value)})();const y=O("all");function w(M){M!==c.value.group&&c.value.setGroup(M)}(()=>{const M=Ct("group","all",{transform:String});y.value=M.value,c.value.setGroup(M.value)})();const $=Ct("replay-start-time",0,{transform:Number}),C=O(!1);function T(M={force:!1}){if(a.value&&M.force===!1||C.value===!0)return;C.value=!0;const I=new be(f.value,o.value,_.value);I.options=Tt.cloneDeep(c.value),I.setReplayTime($.value),I.buildRank(),i.value=I,C.value=!1}const{data:P,isError:j,error:Z,refetch:lt}=Ae(r.dataSourceUrl??n.path,s);ut(P,async()=>{var M,I,R;P.value===null||P.value===void 0||(f.value=ve((M=P.value)==null?void 0:M.contest),p.value=`${f.value.name} | ${Pt}`,o.value=ge((I=P.value)==null?void 0:I.teams),_.value=_e((R=P.value)==null?void 0:R.submissions),!c.value.enableFilterSubmissionsByTimestamp&&(T(),u.value=!0))},{immediate:!0});function rt(){u.value!==!1&&T()}ut(c.value,()=>{if(!i.value.options.isNeedReBuildRank(c.value)){i.value.options=Tt.cloneDeep(c.value);return}rt()});{let M=function(){$.value===0?I():(rt(),R())};const{pause:I,resume:R}=Ie(()=>{rt()},1e3);M(),ut($,()=>{M()})}const nt=O([{title:"type_menu.rank",keyword:"rank",isDefault:!0},{title:"type_menu.submissions",keyword:"submissions"},{title:"type_menu.statistics",keyword:"statistics"},{title:"type_menu.export",keyword:"export"},{title:"type_menu.utility",keyword:"utility"},{title:"type_menu.options",keyword:"options",isModal:!0}]),dt=b(()=>i.value.contest.group),G=b(()=>{const M=new Array;for(const[I,R]of dt.value){const A={titles:R.names,defaultLang:R.defaultLang,keyword:I,isDefault:R.isDefault};M.push(A)}return M}),B=O("rank"),S=O(!0);function st(M){M==="options"&&(S.value=!1)}function mt(){const M=document.documentElement.scrollHeight||document.body.scrollHeight,I=document.documentElement.scrollTop||document.body.scrollTop,R=window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight;return M-I===R}let Q=null;function it(){Q!==null&&clearInterval(Q)}ze("S",M=>{if(a.value=!a.value,a.value===!0){let R=0,A="DOWN";Q=setInterval(()=>{if(A==="DOWN"){if(mt()){A="UP",T({force:!0});return}R+=2}else{if(R===0){A="DOWN",T({force:!0});return}R-=2}window.scrollTo({top:R,behavior:"smooth"})},64)}else it()},{dedupe:!1});const W=b(()=>{const M=i.value.contest.getStartTime().format("YYYY-MM-DD HH:mm:ss");return`${d("standings.start_time")}${d("common.colon")}${M}`}),$t=b(()=>{const M=i.value.contest.getEndTime().format("YYYY-MM-DD HH:mm:ss");return`${d("standings.end_time")}${d("common.colon")}${M}`}),z=b(()=>{const M=i.value.contest.getContestElapsedTime(s.value);return`${d("standings.elapsed")}${d("common.colon")}${M}`}),x=b(()=>{const M=i.value.contest.getContestRemainingTime(s.value);return`${d("standings.remaining")}${d("common.colon")}${M}`}),F=b(()=>i.value.options.enableFilterSubmissionsByTimestamp?Le.PAUSED:i.value.contest.getContestState(s.value)),H=b(()=>Gt(i.value.options.timestamp)),pt=Fe(()=>{lt()},30*1e3),ft=Pe();return ut(ft,()=>{ft.value!=="hidden"&&pt()}),Be(()=>{it()}),(M,I)=>{const R=Na,A=Ne,ht=Re,yt=Da,vt=za,Ot=$a,ee=St,ne=os,se=Vn,oe=In,ae=Tn,le=vn;return l(),m("div",null,[t(u)?h("",!0):(l(),m("div",Ra,[e("div",{class:E([Ht]),flex:"","flex-col":"","gap-4":"","justify-center":"","items-center":""},[e("div",null,g(t(d)("common.loading"))+"... ",1),t(j)?(l(),m("div",Ha,g(t(Z)),1)):h("",!0)],2)])),t(u)?(l(),m("div",{key:1,class:E([Ht]),flex:"","flex-col":"","justify-center":"","items-center":""},[t(i).contest.banner?(l(),m("div",Ua,[e("div",{class:E([kt]),flex:"","justify-center":"","items-center":""},[e("div",ja,[e("img",{src:t(Vt)(t(i).contest.banner,`${"DATA_HOST"in M?M.DATA_HOST:t(He)}${t(n).path.slice(1)}`),alt:"banner"},null,8,Ga)])],2)])):h("",!0),!t(i).contest.banner||t(i).contest.banner&&t(i).contest.bannerMode==="ALL"?(l(),m("div",{key:1,class:E(["title",[kt]]),flex:"","justify-center":"","text-center":"","text-3xl":"","font-normal":"","font-serif":"","mb-2":""},[e("div",Va,g(t(i).contest.name),1)],2)):h("",!0),e("div",null,[k(R,{rank:t(i)},null,8,["rank"])]),e("div",{class:E([kt]),"mt-2":"",flex:"","flex-row":"","justify-center":""},[e("div",Xa,[e("div",Wa,[e("div",Ya,[Y(g(t(W)),1),e("sup",qa,g(t(i).contest.getStartTime().format("z")),1)]),e("div",Ka,[k(A,{state:t(F),"pending-time":t(i).contest.getContestPendingTime(t(s)),"paused-time":t(H)},null,8,["state","pending-time","paused-time"])]),e("div",Qa,[Y(g(t($t)),1),e("sup",Za,g(t(i).contest.endTime.format("z")),1)])]),e("div",Ja,[k(ht,{"rank-options":t(c),"onUpdate:rankOptions":I[0]||(I[0]=J=>V(c)?c.value=J:null),width:t(i).contest.getContestProgressRatio(t(s)),state:t(i).contest.getContestState(t(s)),"need-scroll":!0,rank:t(i),"elapsed-time":t(i).contest.getContestElapsedTime(t(s))},null,8,["rank-options","width","state","rank","elapsed-time"])]),e("div",tl,[e("div",el,g(t(z)),1),e("div",nl,[k(yt)]),e("div",sl,g(t(x)),1)]),e("div",ol,[e("div",al,[k(vt,{"current-item":t(y),"onUpdate:currentItem":I[1]||(I[1]=J=>V(y)?y.value=J:null),items:t(G),"query-param-name":"group","on-change":w},null,8,["current-item","items"])]),I[5]||(I[5]=e("div",{class:"flex-1"},null,-1)),e("div",ll,[k(vt,{"current-item":t(B),"onUpdate:currentItem":I[2]||(I[2]=J=>V(B)?B.value=J:null),items:t(nt),"reverse-order":!0,"query-param-name":"type","on-change":st},null,8,["current-item","items"])])])])],2),e("div",{"mt-4":"",class:E([kt]),flex:"","justify-center":""},[e("div",rl,[t(B)==="rank"?(l(),m("div",il,[k(Ot,{rank:t(i)},null,8,["rank"])])):h("",!0),t(B)==="submissions"?(l(),m("div",ul,[k(ee,{"w-full":"",rank:t(i),submissions:t(i).getSubmissions(),"enable-filter":{organization:!0,team:!0,language:!0,status:!0}},null,8,["rank","submissions"])])):h("",!0),t(B)==="statistics"?(l(),m("div",cl,[k(ne,{rank:t(i)},null,8,["rank"])])):h("",!0),t(B)==="export"?(l(),m("div",dl,[k(se,{rank:t(i)},null,8,["rank"])])):h("",!0),t(B)==="utility"?(l(),m("div",ml,[k(oe,{rank:t(i)},null,8,["rank"])])):h("",!0)])],2),t(c).enableAnimatedSubmissions?(l(),m("div",pl,[k(ae,{rank:t(i)},null,8,["rank"])])):h("",!0),t(S)?h("",!0):(l(),X(le,{key:3,"is-hidden":t(S),"onUpdate:isHidden":I[3]||(I[3]=J=>V(S)?S.value=J:null),"rank-options":t(c),"onUpdate:rankOptions":I[4]||(I[4]=J=>V(c)?c.value=J:null),rank:t(i)},null,8,["is-hidden","rank-options","rank"]))],2)):h("",!0)])}}}),Cl=K(fl,[["__scopeId","data-v-d9fc6e36"]]);export{Cl as _};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{_ as p}from"./TheInput.vue_vue_type_script_setup_true_lang-Bstp0Uq6.js";import{d as f,u as _,p as h,f as b,H as g,h as a,o as v,c as S,b as t,a as x,z as U,O as V,k as l,s as k}from"./index-Bqug296L.js";import{g as y}from"./useQueryBoardData-MYqwKv9X.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=y(),e=h(s.value),c=b(),d=g();function n(){d.push(`${c.fullPath}/?data-source=${e.value.trim()}`)}return(B,o)=>{const i=p;return a(s).length===0?(v(),S("div",w,[t("div",D,[x(i,{modelValue:a(e),"onUpdate:modelValue":o[0]||(o[0]=m=>U(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)])])):k("",!0)}}});export{K as _};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{_ as v}from"./Board-DVycq7Hb.js";import{d as _,H as y,u as l,r as B,o as c,c as a,b as i,k as p,h as n,a as m,w as h,j as d,f as C}from"./index-Bqug296L.js";import{b as u}from"./route-block-B_A1xBdJ.js";import"./pagination-SF0231GF.js";import"./Tooltip.vue_vue_type_script_setup_true_lang-IVJ6kO8Y.js";import"./TheInput.vue_vue_type_script_setup_true_lang-Bstp0Uq6.js";import"./use-vmodel-DKmkNt1c.js";import"./index-BJlHNlHk.js";import"./index-B0AiC33S.js";import"./useQueryBoardData-MYqwKv9X.js";import"./index-CDb5YJlm.js";import"./constant-D5AETBoS.js";import"./_plugin-vue_export-helper-DlAUqK2U.js";import"./ContestStateBadge-SaSIRVZw.js";const N=_({__name:"GoBack",setup(f){const s=y(),{t}=l();return(k,o)=>{const e=B("RouterLink");return c(),a("div",null,[i("div",{class:"m-3 text-sm btn",onClick:o[0]||(o[0]=r=>n(s).back())},p(n(t)("button.back")),1),m(e,{class:"m-3 text-sm btn",to:"/"},{default:h(()=>[d(p(n(t)("button.home")),1)]),_:1})])}}}),R={key:0,class:"flex flex-col items-center"},g={key:1},w=_({__name:"[...all]",setup(f){const{t:s}=l(),t=C(),o=!["camp","icpc","ccpc","provincial-contest"].some(e=>t.fullPath.startsWith(`/${e}`));return(e,r)=>{const x=N,b=v;return o?(c(),a("div",R,[r[0]||(r[0]=i("div",{"text-4xl":""},[i("div",{"i-carbon-warning":""})],-1)),d(" "+p(n(s)("not-found"))+" ",1),m(x)])):(c(),a("div",g,[m(b)]))}}});typeof u=="function"&&u(w);export{w as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{_ as i}from"./Board-DVycq7Hb.js";import{_ as u}from"./DataSourceInput.vue_vue_type_script_setup_true_lang-ButnX5NG.js";import{g as f}from"./useQueryBoardData-MYqwKv9X.js";import{d,o as t,c as e,a as n,h as a,s as l,F as B,G as g}from"./index-Bqug296L.js";import{b as c}from"./route-block-B_A1xBdJ.js";import{_ as h}from"./_plugin-vue_export-helper-DlAUqK2U.js";import"./pagination-SF0231GF.js";import"./Tooltip.vue_vue_type_script_setup_true_lang-IVJ6kO8Y.js";import"./TheInput.vue_vue_type_script_setup_true_lang-Bstp0Uq6.js";import"./use-vmodel-DKmkNt1c.js";import"./index-BJlHNlHk.js";import"./index-B0AiC33S.js";import"./index-CDb5YJlm.js";import"./ContestStateBadge-SaSIRVZw.js";import"./constant-D5AETBoS.js";const k={key:0},x=d({__name:"CustomBoard",setup(s){const o=f();return(r,b)=>{const _=u,p=i;return t(),e(B,null,[n(_),a(o).length>0?(t(),e("div",k,[n(p,{"data-source-url":a(o)},null,8,["data-source-url"])])):l("",!0)],64)}}}),m={};function C(s,o){const r=x;return t(),g(r)}typeof c=="function"&&c(m);const z=h(m,[["render",C]]);export{z as default};
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import{_ as xn}from"./Tooltip.vue_vue_type_script_setup_true_lang-IVJ6kO8Y.js";import{d as bi,g as je,p as mt,o as X,c as $,n as oi,h as C,b as Q,k as pt,a as se,w as ai,F as Xt,E as fr,j as De,s as $t,A as vn,u as Tn,m as wn,C as He,Y as bn,a3 as Re,W as Pn,T as Sn}from"./index-Bqug296L.js";import{_ as Pi}from"./_plugin-vue_export-helper-DlAUqK2U.js";import{a as kn,b as On,d as Cn,m as Mn}from"./index-BJlHNlHk.js";import{d as Xi}from"./constant-D5AETBoS.js";import{u as An,g as Dn}from"./useQueryBoardData-MYqwKv9X.js";import{_ as Rn}from"./DataSourceInput.vue_vue_type_script_setup_true_lang-ButnX5NG.js";import{b as $i}from"./route-block-B_A1xBdJ.js";import"./index-B0AiC33S.js";import"./index-CDb5YJlm.js";import"./TheInput.vue_vue_type_script_setup_true_lang-Bstp0Uq6.js";import"./use-vmodel-DKmkNt1c.js";const En={"w-20":"",flex:"","flex-shrink-0":"","justify-center":"","items-center":""},Fn={flex:"","flex-1":"","flex-col":"","justify-center":"","items-start":"","gap-y-3":""},zn={class:"resolver-team-name",truncate:"","overflow-hidden":""},In={flex:"","flex-row":"","text-sm":"","items-start":"","gap-x-2":""},Ln={"w-48":"",flex:"","flex-shrink-0":"","flex-row":"","justify-start":"","items-center":""},Bn={class:"w-1/3"},Nn={class:"w-2/3"},Vn=bi({__name:"ResolverTeamRow",props:{index:null,team:null,resolver:null},setup(u){const t=u,e=je(()=>t.index),i=je(()=>t.team),r=je(()=>t.resolver),n=mt(null);function s(o){return[o.organization,o.name].filter(l=>l).join(" - ")}return(o,a)=>{const l=xn;return X(),$("div",{ref_key:"el",ref:n,"h-24":""},[(X(),$("div",{key:0,"h-24":"",flex:"","flex-row":"","gap-x-4":"","font-mono":"","text-4xl":"",class:oi([C(e)%2===0?"bg-resolver-bg-zero":"bg-resolver-bg-one",C(r).duringAnimation&&C(r).currentTeamId===C(i).id?"bg-resolver-selected":"",!C(r).duringAnimation&&C(e)===C(r).currentIndex?"bg-resolver-selected":""])},[Q("div",En,[Q("div",null,pt(C(i).rank),1)]),Q("div",Fn,[se(l,null,{popper:ai(()=>[Q("div",null,pt(s(C(i))),1)]),default:ai(()=>[Q("div",zn,pt(s(C(i))),1)]),_:1}),Q("div",In,[(X(!0),$(Xt,null,fr(C(i).problemStatistics,(f,h)=>(X(),$("div",{key:f.problem.id,class:oi(["rounded w-22 h-7 flex justify-center items-center",[f.isAccepted?"bg-resolver-ac":"",f.isWrongAnswer?"bg-resolver-wa":"",f.isPending?"bg-resolver-pending":"",f.isUnSubmitted?"bg-resolver-untouched":"",C(r).problemFlashingEnded===!1&&C(e)===C(r).currentIndex&&C(r).currentProblemIndex===h?"resolver-uncover":""]])},[f.isAccepted?(X(),$(Xt,{key:0},[De(pt(`${f.failedCount+Number(f.isAccepted)}/${Math.floor(f.lastSubmitTimestamp/60)}`),1)],64)):$t("",!0),f.isWrongAnswer?(X(),$(Xt,{key:1},[De(pt(`${f.failedCount}/${Math.floor(f.lastSubmitTimestamp/60)}`),1)],64)):$t("",!0),f.isPending?(X(),$(Xt,{key:2},[De(pt(`${f.failedCount} + ${f.pendingCount}`),1)],64)):$t("",!0),f.isUnSubmitted?(X(),$(Xt,{key:3},[De(pt(f.problem.label),1)],64)):$t("",!0)],2))),128))])]),Q("div",Ln,[Q("div",Bn,pt(C(i).solvedProblemNum),1),Q("div",Nn,pt(C(i).penaltyToMinute),1)])],2))],512)}}}),Yn=Pi(Vn,[["__scopeId","data-v-d1b6b438"]]);function Pt(u){if(u===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return u}function _r(u,t){u.prototype=Object.create(t.prototype),u.prototype.constructor=u,u.__proto__=t}/*!
|
|
2
|
-
* GSAP 3.12.5
|
|
3
|
-
* https://gsap.com
|
|
4
|
-
*
|
|
5
|
-
* @license Copyright 2008-2024, GreenSock. All rights reserved.
|
|
6
|
-
* Subject to the terms at https://gsap.com/standard-license or for
|
|
7
|
-
* Club GSAP members, the agreement issued with that membership.
|
|
8
|
-
* @author: Jack Doyle, jack@greensock.com
|
|
9
|
-
*/var ut={autoSleep:120,force3D:"auto",nullTargetWarn:1,units:{lineHeight:""}},oe={duration:.5,overwrite:!1,delay:0},Si,j,F,_t=1e8,R=1/_t,ui=Math.PI*2,Un=ui/4,Xn=0,hr=Math.sqrt,$n=Math.cos,Gn=Math.sin,W=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"},wt=function(t){return typeof t=="object"},tt=function(t){return t!==!1},Oi=function(){return typeof window<"u"},Ee=function(t){return L(t)||W(t)},cr=typeof ArrayBuffer=="function"&&ArrayBuffer.isView||function(){},H=Array.isArray,li=/(?:-?\.?\d|\.)+/gi,dr=/[-+=.]*\d+[.e\-+]*\d*[e\-+]*\d*/g,te=/[-+=.]*\d+[.e-]*\d*[a-z%]*/g,Qe=/[-+=.]*\d+\.?\d*(?:e-|e\+)?\d*/gi,pr=/[+-]=-?[.\d]+/,mr=/[^,'"\[\]\s]+/gi,Wn=/^[+\-=e\s\d]*\d+[.\d]*([a-z]*|%)\s*$/i,z,gt,fi,Ci,lt={},Ne={},gr,yr=function(t){return(Ne=Ht(t,lt))&&nt},Mi=function(t,e){return console.warn("Invalid property",t,"set to",e,"Missing plugin? gsap.registerPlugin()")},xe=function(t,e){return!e&&console.warn(t)},xr=function(t,e){return t&&(lt[t]=e)&&Ne&&(Ne[t]=e)||lt},ve=function(){return 0},qn={suppressEvents:!0,isStart:!0,kill:!1},ze={suppressEvents:!0,kill:!1},Kn={suppressEvents:!0},Ai={},Rt=[],_i={},vr,st={},Ze={},Gi=30,Ie=[],Di="",Ri=function(t){var e=t[0],i,r;if(wt(e)||L(e)||(t=[t]),!(i=(e._gsap||{}).harness)){for(r=Ie.length;r--&&!Ie[r].targetTest(e););i=Ie[r]}for(r=t.length;r--;)t[r]&&(t[r]._gsap||(t[r]._gsap=new $r(t[r],i)))||t.splice(r,1);return t},Wt=function(t){return t._gsap||Ri(ht(t))[0]._gsap},Tr=function(t,e,i){return(i=t[e])&&L(i)?t[e]():ki(i)&&t.getAttribute&&t.getAttribute(e)||i},et=function(t,e){return(t=t.split(",")).forEach(e)||t},B=function(t){return Math.round(t*1e5)/1e5||0},G=function(t){return Math.round(t*1e7)/1e7||0},ie=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},jn=function(t,e){for(var i=e.length,r=0;t.indexOf(e[r])<0&&++r<i;);return r<i},Ve=function(){var t=Rt.length,e=Rt.slice(0),i,r;for(_i={},Rt.length=0,i=0;i<t;i++)r=e[i],r&&r._lazy&&(r.render(r._lazy[0],r._lazy[1],!0)._lazy=0)},wr=function(t,e,i,r){Rt.length&&!j&&Ve(),t.render(e,i,j&&e<0&&(t._initted||t._startAt)),Rt.length&&!j&&Ve()},br=function(t){var e=parseFloat(t);return(e||e===0)&&(t+"").match(mr).length<2?e:W(t)?t.trim():t},Pr=function(t){return t},ct=function(t,e){for(var i in e)i in t||(t[i]=e[i]);return t},Hn=function(t){return function(e,i){for(var r in i)r in e||r==="duration"&&t||r==="ease"||(e[r]=i[r])}},Ht=function(t,e){for(var i in e)t[i]=e[i];return t},Wi=function u(t,e){for(var i in e)i!=="__proto__"&&i!=="constructor"&&i!=="prototype"&&(t[i]=wt(e[i])?u(t[i]||(t[i]={}),e[i]):e[i]);return t},Ye=function(t,e){var i={},r;for(r in t)r in e||(i[r]=t[r]);return i},me=function(t){var e=t.parent||z,i=t.keyframes?Hn(H(t.keyframes)):ct;if(tt(t.inherit))for(;e;)i(t,e.vars.defaults),e=e.parent||e._dp;return t},Qn=function(t,e){for(var i=t.length,r=i===e.length;r&&i--&&t[i]===e[i];);return i<0},Sr=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},We=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},zt=function(t,e){t.parent&&(!e||t.parent.autoRemoveChildren)&&t.parent.remove&&t.parent.remove(t),t._act=0},qt=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},Zn=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&&(j?t._startAt.revert(ze):t.vars.immediateRender&&!t.vars.autoRevert||t._startAt.render(e,!0,r))},Jn=function u(t){return!t||t._ts&&u(t.parent)},qi=function(t){return t._repeat?ae(t._tTime,t=t.duration()+t._rDelay)*t:0},ae=function(t,e){var i=Math.floor(t/=e);return t&&i===t?i-1:i},Ue=function(t,e){return(t-e._start)*e._ts+(e._ts>=0?0:e._dirty?e.totalDuration():e._tDur)},qe=function(t){return t._end=G(t._start+(t._tDur/Math.abs(t._ts||t._rts||R)||0))},Ke=function(t,e){var i=t._dp;return i&&i.smoothChildTiming&&t._ts&&(t._start=G(i._time-(t._ts>0?e/t._ts:((t._dirty?t.totalDuration():t._tDur)-e)/-t._ts)),qe(t),i._dirty||qt(i,t)),t},kr=function(t,e){var i;if((e._time||!e._dur&&e._initted||e._start<t._time&&(e._dur||!e.add))&&(i=Ue(t.rawTime(),e),(!e._dur||Ce(0,e.totalDuration(),i)-e._tTime>R)&&e.render(i,!0)),qt(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}},yt=function(t,e,i,r){return e.parent&&zt(e),e._start=G((Ot(i)?i:i||t!==z?ft(t,i,e):t._time)+e._delay),e._end=G(e._start+(e.totalDuration()/Math.abs(e.timeScale())||0)),Sr(t,e,"_first","_last",t._sort?"_start":0),ci(e)||(t._recent=e),r||kr(t,e),t._ts<0&&Ke(t,t._tTime),t},Or=function(t,e){return(lt.ScrollTrigger||Mi("scrollTrigger",e))&<.ScrollTrigger.create(e,t)},Cr=function(t,e,i,r,n){if(Fi(t,e,n),!t._initted)return 1;if(!i&&t._pt&&!j&&(t._dur&&t.vars.lazy!==!1||!t._dur&&t.vars.lazy)&&vr!==ot.frame)return Rt.push(t),t._lazy=[n,r],1},ts=function u(t){var e=t.parent;return e&&e._ts&&e._initted&&!e._lock&&(e.rawTime()<0||u(e))},ci=function(t){var e=t.data;return e==="isFromStart"||e==="isStart"},es=function(t,e,i,r){var n=t.ratio,s=e<0||!e&&(!t._start&&ts(t)&&!(!t._initted&&ci(t))||(t._ts<0||t._dp._ts<0)&&!ci(t))?0:1,o=t._rDelay,a=0,l,f,h;if(o&&t._repeat&&(a=Ce(0,t._tDur,e),f=ae(a,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||j||r||t._zTime===R||!e&&t._zTime){if(!t._initted&&Cr(t,e,r,i,a))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=a,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"),a&&t._repeat&&!i&&t.parent&&at(t,"onRepeat"),(e>=t._tDur||e<0)&&t.ratio===s&&(s&&zt(t,1),!i&&!j&&(at(t,s?"onComplete":"onReverseComplete",!0),t._prom&&t._prom()))}else t._zTime||(t._zTime=e)},is=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=G(e)||0,o=t._tTime/t._tDur;return o&&!r&&(t._time*=s/t._dur),t._dur=s,t._tDur=n?n<0?1e10:G(s*(n+1)+t._rDelay*n):s,o>0&&!r&&Ke(t,t._tTime=t._tDur*o),t.parent&&qe(t),i||qt(t.parent,t),t},Ki=function(t){return t instanceof Z?qt(t):ue(t,t._dur)},rs={_start:0,endTime:ve,totalDuration:ve},ft=function u(t,e,i){var r=t.labels,n=t._recent||rs,s=t.duration()>=_t?n.endTime(!1):t._dur,o,a,l;return W(e)&&(isNaN(e)||e in r)?(a=e.charAt(0),l=e.substr(-1)==="%",o=e.indexOf("="),a==="<"||a===">"?(o>=0&&(e=e.replace(/=/,"")),(a==="<"?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]):(a=parseFloat(e.charAt(o-1)+e.substr(o+1)),l&&i&&(a=a/100*(H(i)?i[0]:i).totalDuration()),o>1?u(t,e.substr(0,o-1),i)+a:s+a)):e==null?s:+e},ge=function(t,e,i){var r=Ot(e[1]),n=(r?2:1)+(t<2?0:1),s=e[n],o,a;if(r&&(s.duration=e[1]),s.parent=i,t){for(o=s,a=i;a&&!("immediateRender"in o);)o=a.vars.defaults||{},a=tt(a.vars.inherit)&&a.parent;s.immediateRender=tt(o.immediateRender),t<2?s.runBackwards=1:s.startAt=e[n-1]}return new V(e[0],s,e[n+1])},Lt=function(t,e){return t||t===0?e(t):e},Ce=function(t,e,i){return i<t?t:i>e?e:i},K=function(t,e){return!W(t)||!(e=Wn.exec(t))?"":e[1]},ns=function(t,e,i){return Lt(i,function(r){return Ce(t,e,r)})},di=[].slice,Mr=function(t,e){return t&&wt(t)&&"length"in t&&(!e&&!t.length||t.length-1 in t&&wt(t[0]))&&!t.nodeType&&t!==gt},ss=function(t,e,i){return i===void 0&&(i=[]),t.forEach(function(r){var n;return W(r)&&!e||Mr(r,1)?(n=i).push.apply(n,ht(r)):i.push(r)})||i},ht=function(t,e,i){return F&&!e&&F.selector?F.selector(t):W(t)&&!i&&(fi||!le())?di.call((e||Ci).querySelectorAll(t),0):H(t)?ss(t,i):Mr(t)?di.call(t,0):t?[t]:[]},pi=function(t){return t=ht(t)[0]||xe("Invalid scope")||{},function(e){var i=t.current||t.nativeElement||t;return ht(e,i.querySelectorAll?i:i===t?xe("Invalid scope")||Ci.createElement("div"):t)}},Ar=function(t){return t.sort(function(){return .5-Math.random()})},Dr=function(t){if(L(t))return t;var e=wt(t)?t:{each:t},i=Kt(e.ease),r=e.from||0,n=parseFloat(e.base)||0,s={},o=r>0&&r<1,a=isNaN(r)||o,l=e.axis,f=r,h=r;return W(r)?f=h={center:.5,edges:.5,end:1}[r]||0:!o&&a&&(f=r[0],h=r[1]),function(c,d,m){var _=(m||e).length,p=s[_],x,g,v,T,y,b,P,S,w;if(!p){if(w=e.grid==="auto"?0:(e.grid||[1,_t])[1],!w){for(P=-_t;P<(P=m[w++].getBoundingClientRect().left)&&w<_;);w<_&&w--}for(p=s[_]=[],x=a?Math.min(w,_)*f-.5:r%w,g=w===_t?0:a?_*h/w-.5:r/w|0,P=0,S=_t,b=0;b<_;b++)v=b%w-x,T=g-(b/w|0),p[b]=y=l?Math.abs(l==="y"?T:v):hr(v*v+T*T),y>P&&(P=y),y<S&&(S=y);r==="random"&&Ar(p),p.max=P-S,p.min=S,p.v=_=(parseFloat(e.amount)||parseFloat(e.each)*(w>_?_-1:l?l==="y"?_/w:w:Math.max(w,_/w))||0)*(r==="edges"?-1:1),p.b=_<0?n-_:n,p.u=K(e.amount||e.each)||0,i=i&&_<0?Yr(i):i}return _=(p[c]-p.min)/p.max||0,G(p.b+(i?i(_):_)*p.v)+p.u}},mi=function(t){var e=Math.pow(10,((t+"").split(".")[1]||"").length);return function(i){var r=G(Math.round(parseFloat(i)/t)*t*e);return(r-r%1)/e+(Ot(i)?0:K(i))}},Rr=function(t,e){var i=H(t),r,n;return!i&&wt(t)&&(r=i=t.radius||_t,t.values?(t=ht(t.values),(n=!Ot(t[0]))&&(r*=r)):t=mi(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),a=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-a,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+K(s)}:mi(t))},Er=function(t,e,i,r){return Lt(H(t)?!e:i===!0?!!(i=0):!r,function(){return H(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})},os=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)}},as=function(t,e){return function(i){return t(parseFloat(i))+(e||K(i))}},us=function(t,e,i){return zr(t,e,0,1,i)},Fr=function(t,e,i){return Lt(i,function(r){return t[~~e(r)]})},ls=function u(t,e,i){var r=e-t;return H(t)?Fr(t,u(0,t.length),e):Lt(i,function(n){return(r+(n-t)%r)%r+t})},fs=function u(t,e,i){var r=e-t,n=r*2;return H(t)?Fr(t,u(0,t.length-1),e):Lt(i,function(s){return s=(n+(s-t)%n)%n||0,t+(s>r?n-s:s)})},Te=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?mr:li),i+=t.substr(e,r-e)+Er(o?n:+n[0],o?0:+n[1],+n[2]||1e-5),e=s+1;return i+t.substr(e,t.length-e)},zr=function(t,e,i,r,n){var s=e-t,o=r-i;return Lt(n,function(a){return i+((a-t)/s*o||0)})},_s=function u(t,e,i,r){var n=isNaN(t+e)?0:function(d){return(1-d)*t+d*e};if(!n){var s=W(t),o={},a,l,f,h,c;if(i===!0&&(r=1)&&(i=null),s)t={p:t},e={p:e};else if(H(t)&&!H(e)){for(f=[],h=t.length,c=h-2,l=1;l<h;l++)f.push(u(t[l-1],t[l]));h--,n=function(m){m*=h;var _=Math.min(c,~~m);return f[_](m-_)},i=e}else r||(t=Ht(H(t)?[]:{},t));if(!f){for(a in e)Ei.call(o,t,a,"get",e[a]);n=function(m){return Li(m,o)||(s?t.p:t)}}}return Lt(i,n)},ji=function(t,e,i){var r=t.labels,n=_t,s,o,a;for(s in r)o=r[s]-e,o<0==!!i&&o&&n>(o=Math.abs(o))&&(a=s,n=o);return a},at=function(t,e,i){var r=t.vars,n=r[e],s=F,o=t._ctx,a,l,f;if(n)return a=r[e+"Params"],l=r.callbackScope||t,i&&Rt.length&&Ve(),o&&(F=o),f=a?n.apply(l,a):n.call(l),F=s,f},de=function(t){return zt(t),t.scrollTrigger&&t.scrollTrigger.kill(!!j),t.progress()<1&&at(t,"onInterrupt"),t},ee,Ir=[],Lr=function(t){if(t)if(t=!t.name&&t.default||t,Oi()||t.headless){var e=t.name,i=L(t),r=e&&!i&&t.init?function(){this._props=[]}:t,n={init:ve,render:Li,add:Ei,kill:Os,modifier:ks,rawVars:0},s={targetTest:0,get:0,getSetter:Ii,aliases:{},register:0};if(le(),t!==r){if(st[e])return;ct(r,ct(Ye(t,n),s)),Ht(r.prototype,Ht(n,Ye(t,s))),st[r.prop=e]=r,t.targetTest&&(Ie.push(r),Ai[e]=1),e=(e==="css"?"CSS":e.charAt(0).toUpperCase()+e.substr(1))+"Plugin"}xr(e,r),t.register&&t.register(nt,r,it)}else Ir.push(t)},M=255,pe={aqua:[0,M,M],lime:[0,M,0],silver:[192,192,192],black:[0,0,0],maroon:[128,0,0],teal:[0,128,128],blue:[0,0,M],navy:[0,0,128],white:[M,M,M],olive:[128,128,0],yellow:[M,M,0],orange:[M,165,0],gray:[128,128,128],purple:[128,0,128],green:[0,128,0],red:[M,0,0],pink:[M,192,203],cyan:[0,M,M],transparent:[M,M,M,0]},Je=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)*M+.5|0},Br=function(t,e,i){var r=t?Ot(t)?[t>>16,t>>8&M,t&M]:0:pe.black,n,s,o,a,l,f,h,c,d,m;if(!r){if(t.substr(-1)===","&&(t=t.substr(0,t.length-1)),pe[t])r=pe[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&M,r&M,parseInt(t.substr(7),16)/255];t=parseInt(t.substr(1),16),r=[t>>16,t>>8&M,t&M]}else if(t.substr(0,3)==="hsl"){if(r=m=t.match(li),!e)a=+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]=Je(a+1/3,n,s),r[1]=Je(a,n,s),r[2]=Je(a-1/3,n,s);else if(~t.indexOf("="))return r=t.match(dr),i&&r.length<4&&(r[3]=1),r}else r=t.match(li)||pe.transparent;r=r.map(Number)}return e&&!m&&(n=r[0]/M,s=r[1]/M,o=r[2]/M,h=Math.max(n,s,o),c=Math.min(n,s,o),f=(h+c)/2,h===c?a=l=0:(d=h-c,l=f>.5?d/(2-h-c):d/(h+c),a=h===n?(s-o)/d+(s<o?6:0):h===s?(o-n)/d+2:(n-s)/d+4,a*=60),r[0]=~~(a+.5),r[1]=~~(l*100+.5),r[2]=~~(f*100+.5)),i&&r.length<4&&(r[3]=1),r},Nr=function(t){var e=[],i=[],r=-1;return t.split(Et).forEach(function(n){var s=n.match(te)||[];e.push.apply(e,s),i.push(r+=s.length+1)}),e.c=i,e},Hi=function(t,e,i){var r="",n=(t+r).match(Et),s=e?"hsla(":"rgba(",o=0,a,l,f,h;if(!n)return t;if(n=n.map(function(c){return(c=Br(c,e,1))&&s+(e?c[0]+","+c[1]+"%,"+c[2]+"%,"+c[3]:c.join(","))+")"}),i&&(f=Nr(t),a=i.c,a.join(r)!==f.c.join(r)))for(l=t.replace(Et,"1").split(te),h=l.length-1;o<h;o++)r+=l[o]+(~a.indexOf(o)?n.shift()||s+"0,0,0,0)":(f.length?f:n.length?n:i).shift());if(!l)for(l=t.split(Et),h=l.length-1;o<h;o++)r+=l[o]+n[o];return r+l[h]},Et=function(){var u="(?:\\b(?:(?:rgb|rgba|hsl|hsla)\\(.+?\\))|\\B#(?:[0-9a-f]{3,4}){1,2}\\b",t;for(t in pe)u+="|"+t+"\\b";return new RegExp(u+")","gi")}(),hs=/hsl[a]?\(/,Vr=function(t){var e=t.join(" "),i;if(Et.lastIndex=0,Et.test(e))return i=hs.test(e),t[1]=Hi(t[1],i),t[0]=Hi(t[0],i,Nr(t[1])),!0},we,ot=function(){var u=Date.now,t=500,e=33,i=u(),r=i,n=1e3/240,s=n,o=[],a,l,f,h,c,d,m=function _(p){var x=u()-r,g=p===!0,v,T,y,b;if((x>t||x<0)&&(i+=x-e),r+=x,y=r-i,v=y-s,(v>0||g)&&(b=++h.frame,c=y-h.time*1e3,h.time=y=y/1e3,s+=v+(v>=n?4:n-v),T=1),g||(a=l(_)),T)for(d=0;d<o.length;d++)o[d](y,c,b,p)};return h={time:0,frame:0,tick:function(){m(!0)},deltaRatio:function(p){return c/(1e3/(p||60))},wake:function(){gr&&(!fi&&Oi()&&(gt=fi=window,Ci=gt.document||{},lt.gsap=nt,(gt.gsapVersions||(gt.gsapVersions=[])).push(nt.version),yr(Ne||gt.GreenSockGlobals||!gt.gsap&>||{}),Ir.forEach(Lr)),f=typeof requestAnimationFrame<"u"&&requestAnimationFrame,a&&h.sleep(),l=f||function(p){return setTimeout(p,s-h.time*1e3+1|0)},we=1,m(2))},sleep:function(){(f?cancelAnimationFrame:clearTimeout)(a),we=0,l=ve},lagSmoothing:function(p,x){t=p||1/0,e=Math.min(x||33,t)},fps:function(p){n=1e3/(p||240),s=h.time*1e3+n},add:function(p,x,g){var v=x?function(T,y,b,P){p(T,y,b,P),h.remove(v)}:p;return h.remove(p),o[g?"unshift":"push"](v),le(),v},remove:function(p,x){~(x=o.indexOf(p))&&o.splice(x,1)&&d>=x&&d--},_listeners:o},h}(),le=function(){return!we&&ot.wake()},k={},cs=/^[\d.\-M][\d.\-,\s]/,ds=/["']/g,ps=function(t){for(var e={},i=t.substr(1,t.length-3).split(":"),r=i[0],n=1,s=i.length,o,a,l;n<s;n++)a=i[n],o=n!==s-1?a.lastIndexOf(","):a.length,l=a.substr(0,o),e[r]=isNaN(l)?l.replace(ds,"").trim():+l,r=a.substr(o+1).trim();return e},ms=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)},gs=function(t){var e=(t+"").split("("),i=k[e[0]];return i&&e.length>1&&i.config?i.config.apply(null,~t.indexOf("{")?[ps(e[1])]:ms(t).split(",").map(br)):k._CE&&cs.test(t)?k._CE("",t):i},Yr=function(t){return function(e){return 1-t(1-e)}},Ur=function u(t,e){for(var i=t._first,r;i;)i instanceof Z?u(i,e):i.vars.yoyoEase&&(!i._yoyo||!i._repeat)&&i._yoyo!==e&&(i.timeline?u(i.timeline,e):(r=i._ease,i._ease=i._yEase,i._yEase=r,i._yoyo=e)),i=i._next},Kt=function(t,e){return t&&(L(t)?t:k[t]||gs(t))||e},Zt=function(t,e,i,r){i===void 0&&(i=function(a){return 1-e(1-a)}),r===void 0&&(r=function(a){return a<.5?e(a*2)/2:1-e((1-a)*2)/2});var n={easeIn:e,easeOut:i,easeInOut:r},s;return et(t,function(o){k[o]=lt[o]=n,k[s=o.toLowerCase()]=i;for(var a in n)k[s+(a==="easeIn"?".in":a==="easeOut"?".out":".inOut")]=k[o+"."+a]=n[a]}),n},Xr=function(t){return function(e){return e<.5?(1-t(1-e*2))/2:.5+t((e-.5)*2)/2}},ti=function u(t,e,i){var r=e>=1?e:1,n=(i||(t?.3:.45))/(e<1?e:1),s=n/ui*(Math.asin(1/r)||0),o=function(f){return f===1?1:r*Math.pow(2,-10*f)*Gn((f-s)*n)+1},a=t==="out"?o:t==="in"?function(l){return 1-o(1-l)}:Xr(o);return n=ui/n,a.config=function(l,f){return u(t,l,f)},a},ei=function u(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)}:Xr(i);return r.config=function(n){return u(t,n)},r};et("Linear,Quad,Cubic,Quart,Quint,Strong",function(u,t){var e=t<5?t+1:t;Zt(u+",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})});k.Linear.easeNone=k.none=k.Linear.easeIn;Zt("Elastic",ti("in"),ti("out"),ti());(function(u,t){var e=1/t,i=2*e,r=2.5*e,n=function(o){return o<e?u*o*o:o<i?u*Math.pow(o-1.5/t,2)+.75:o<r?u*(o-=2.25/t)*o+.9375:u*Math.pow(o-2.625/t,2)+.984375};Zt("Bounce",function(s){return 1-n(1-s)},n)})(7.5625,2.75);Zt("Expo",function(u){return u?Math.pow(2,10*(u-1)):0});Zt("Circ",function(u){return-(hr(1-u*u)-1)});Zt("Sine",function(u){return u===1?1:-$n(u*Un)+1});Zt("Back",ei("in"),ei("out"),ei());k.SteppedEase=k.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*Ce(0,s,o)|0)+n)*i}}};oe.ease=k["quad.out"];et("onComplete,onUpdate,onStart,onRepeat,onReverseComplete,onInterrupt",function(u){return Di+=u+","+u+"Params,"});var $r=function(t,e){this.id=Xn++,t._gsap=this,this.target=t,this.harness=e,this.get=e?e.get:Tr,this.set=e?e.getSetter:Ii},be=function(){function u(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,F&&(this._ctx=F,F.data.push(this)),we||ot.wake()}var t=u.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(Ke(this,i),!n._dp||n.parent||kr(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)&&yt(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),wr(this,i,r)),this},t.time=function(i,r){return arguments.length?this.totalTime(Math.min(this.totalDuration(),i+qi(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?1:0},t.progress=function(i,r){return arguments.length?this.totalTime(this.duration()*(this._yoyo&&!(this.iteration()&1)?1-i:i)+qi(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?Ue(this.parent._time,this):this._tTime;return this._rts=+i||0,this._ts=this._ps||i===-R?0:this._rts,this.totalTime(Ce(-Math.abs(this._delay),this._tDur,n),r!==!1),qe(this),Zn(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)&&yt(r,this,i-this._delay),this}return this._start},t.endTime=function(i){return this._start+(tt(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?Ue(r.rawTime(i),this):this._tTime:this._tTime},t.revert=function(i){i===void 0&&(i=Kn);var r=j;return j=i,(this._initted||this._startAt)&&(this.timeline&&this.timeline.revert(i),this.totalTime(-.01,i.suppressEvents)),this.data!=="nested"&&i.kill!==!1&&this.kill(),j=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,Ki(this)):this._repeat===-2?1/0:this._repeat},t.repeatDelay=function(i){if(arguments.length){var r=this._time;return this._rDelay=i,Ki(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(ft(this,i),tt(r))},t.restart=function(i,r){return this.play().totalTime(i?-this._delay:0,tt(r))},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:Pr,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(){de(this)},u}();ct(be.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 Z=function(u){_r(t,u);function t(i,r){var n;return i===void 0&&(i={}),n=u.call(this,i)||this,n.labels={},n.smoothChildTiming=!!i.smoothChildTiming,n.autoRemoveChildren=!!i.autoRemoveChildren,n._sort=tt(i.sortChildren),z&&yt(i.parent||z,Pt(n),r),i.reversed&&n.reverse(),i.paused&&n.paused(!0),i.scrollTrigger&&Or(Pt(n),i.scrollTrigger),n}var e=t.prototype;return e.to=function(r,n,s){return ge(0,arguments,this),this},e.from=function(r,n,s){return ge(1,arguments,this),this},e.fromTo=function(r,n,s,o){return ge(2,arguments,this),this},e.set=function(r,n,s){return n.duration=0,n.parent=this,me(n).repeatDelay||(n.repeat=0),n.immediateRender=!!n.immediateRender,new V(r,n,ft(this,s),1),this},e.call=function(r,n,s){return yt(this,V.delayedCall(0,r,n),s)},e.staggerTo=function(r,n,s,o,a,l,f){return s.duration=n,s.stagger=s.stagger||o,s.onComplete=l,s.onCompleteParams=f,s.parent=this,new V(r,s,ft(this,a)),this},e.staggerFrom=function(r,n,s,o,a,l,f){return s.runBackwards=1,me(s).immediateRender=tt(s.immediateRender),this.staggerTo(r,n,s,o,a,l,f)},e.staggerFromTo=function(r,n,s,o,a,l,f,h){return o.startAt=s,me(o).immediateRender=tt(o.immediateRender),this.staggerTo(r,n,o,a,l,f,h)},e.render=function(r,n,s){var o=this._time,a=this._dirty?this.totalDuration():this._tDur,l=this._dur,f=r<=0?0:G(r),h=this._zTime<0!=r<0&&(this._initted||!l),c,d,m,_,p,x,g,v,T,y,b,P;if(this!==z&&f>a&&r>=0&&(f=a),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,x=!v,h&&(l||(o=this._zTime),(r||!n)&&(this._zTime=r)),this._repeat){if(b=this._yoyo,p=l+this._rDelay,this._repeat<-1&&r<0)return this.totalTime(p*100+r,n,s);if(c=G(f%p),f===a?(_=this._repeat,c=l):(_=~~(f/p),_&&_===f/p&&(c=l,_--),c>l&&(c=l)),y=ae(this._tTime,p),!o&&this._tTime&&y!==_&&this._tTime-y*p-this._dur<=0&&(y=_),b&&_&1&&(c=l-c,P=1),_!==y&&!this._lock){var S=b&&y&1,w=S===(b&&_&1);if(_<y&&(S=!S),o=S?0:f%l?l:f,this._lock=1,this.render(o||(P?0:G(_*p)),n,!l)._lock=0,this._tTime=f,!n&&this.parent&&at(this,"onRepeat"),this.vars.repeatRefresh&&!P&&(this.invalidate()._lock=1),o&&o!==this._time||x!==!this._ts||this.vars.onRepeat&&!this.parent&&!this._act)return this;if(l=this._dur,a=this._tDur,w&&(this._lock=2,o=S?l:-1e-4,this.render(o,!0),this.vars.repeatRefresh&&!P&&this.invalidate()),this._lock=0,!this._ts&&!x)return this;Ur(this,P)}}if(this._hasPause&&!this._forcing&&this._lock<2&&(g=is(this,G(o),G(c)),g&&(f-=c-(c=g._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&&c&&!n&&!_&&(at(this,"onStart"),this._tTime!==f))return this;if(c>=o&&r>=0)for(d=this._first;d;){if(m=d._next,(d._act||c>=d._start)&&d._ts&&g!==d){if(d.parent!==this)return this.render(r,n,s);if(d.render(d._ts>0?(c-d._start)*d._ts:(d._dirty?d.totalDuration():d._tDur)+(c-d._start)*d._ts,n,s),c!==this._time||!this._ts&&!x){g=0,m&&(f+=this._zTime=-R);break}}d=m}else{d=this._last;for(var O=r<0?r:c;d;){if(m=d._prev,(d._act||O<=d._end)&&d._ts&&g!==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||j&&(d._initted||d._startAt)),c!==this._time||!this._ts&&!x){g=0,m&&(f+=this._zTime=O?-R:R);break}}d=m}}if(g&&!n&&(this.pause(),g.render(c>=o?0:-R)._zTime=c>=o?1:-1,this._ts))return this._start=T,qe(this),this.render(r,n,s);this._onUpdate&&!n&&at(this,"onUpdate",!0),(f===a&&this._tTime>=this.totalDuration()||!f&&o)&&(T===this._start||Math.abs(v)!==Math.abs(this._ts))&&(this._lock||((r||!l)&&(f===a&&this._ts>0||!f&&this._ts<0)&&zt(this,1),!n&&!(r<0&&!o)&&(f||o||!a)&&(at(this,f===a&&r>=0?"onComplete":"onReverseComplete",!0),this._prom&&!(f<a&&this.timeScale()>0)&&this._prom())))}return this},e.add=function(r,n){var s=this;if(Ot(n)||(n=ft(this,n,r)),!(r instanceof be)){if(H(r))return r.forEach(function(o){return s.add(o,n)}),this;if(W(r))return this.addLabel(r,n);if(L(r))r=V.delayedCall(0,r);else return this}return this!==r?yt(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 a=[],l=this._first;l;)l._start>=o&&(l instanceof V?n&&a.push(l):(s&&a.push(l),r&&a.push.apply(a,l.getChildren(!0,n,s)))),l=l._next;return a},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 W(r)?this.removeLabel(r):L(r)?this.killTweensOf(r):(We(this,r),r===this._recent&&(this._recent=this._last),qt(this))},e.totalTime=function(r,n){return arguments.length?(this._forcing=1,!this._dp&&this._ts&&(this._start=G(ot.time-(this._ts>0?r/this._ts:(this.totalDuration()-r)/-this._ts))),u.prototype.totalTime.call(this,r,n),this._forcing=0,this):this._tTime},e.addLabel=function(r,n){return this.labels[r]=ft(this,n),this},e.removeLabel=function(r){return delete this.labels[r],this},e.addPause=function(r,n,s){var o=V.delayedCall(0,n||ve,s);return o.data="isPause",this._hasPause=1,yt(this,o,ft(this,r))},e.removePause=function(r){var n=this._first;for(r=ft(this,r);n;)n._start===r&&n.data==="isPause"&&zt(n),n=n._next},e.killTweensOf=function(r,n,s){for(var o=this.getTweensOf(r,s),a=o.length;a--;)Mt!==o[a]&&o[a].kill(r,n);return this},e.getTweensOf=function(r,n){for(var s=[],o=ht(r),a=this._first,l=Ot(n),f;a;)a instanceof V?jn(a._targets,o)&&(l?(!Mt||a._initted&&a._ts)&&a.globalTime(0)<=n&&a.globalTime(a.totalDuration())>n:!n||a.isActive())&&s.push(a):(f=a.getTweensOf(o,n)).length&&s.push.apply(s,f),a=a._next;return s},e.tweenTo=function(r,n){n=n||{};var s=this,o=ft(s,r),a=n,l=a.startAt,f=a.onStart,h=a.onStartParams,c=a.immediateRender,d,m=V.to(s,ct({ease:n.ease||"none",lazy:!1,immediateRender:!1,time:o,overwrite:"auto",duration:n.duration||Math.abs((o-(l&&"time"in l?l.time:s._time))/s.timeScale())||R,onStart:function(){if(s.pause(),!d){var p=n.duration||Math.abs((o-(l&&"time"in l?l.time:s._time))/s.timeScale());m._dur!==p&&ue(m,p,0,1).render(m._time,!0,!0),d=1}f&&f.apply(m,h||[])}},n));return c?m.render(0):m},e.tweenFromTo=function(r,n,s){return this.tweenTo(n,ct({startAt:{time:ft(this,r)}},s))},e.recent=function(){return this._recent},e.nextLabel=function(r){return r===void 0&&(r=this._time),ji(this,ft(this,r))},e.previousLabel=function(r){return r===void 0&&(r=this._time),ji(this,ft(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,a=this.labels,l;o;)o._start>=s&&(o._start+=r,o._end+=r),o=o._next;if(n)for(l in a)a[l]>=s&&(a[l]+=r);return qt(this)},e.invalidate=function(r){var n=this._first;for(this._lock=0;n;)n.invalidate(r),n=n._next;return u.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={}),qt(this)},e.totalDuration=function(r){var n=0,s=this,o=s._last,a=_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>a&&s._sort&&o._ts&&!s._lock?(s._lock=1,yt(s,o,f-o._delay,1)._lock=0):a=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),a=0),o._end>n&&o._ts&&(n=o._end),o=l;ue(s,s===z&&s._time>n?s._time:n,1,1),s._dirty=0}return s._tDur},t.updateRoot=function(r){if(z._ts&&(wr(z,Ue(r,z)),vr=ot.frame),ot.frame>=Gi){Gi+=ut.autoSleep||120;var n=z._first;if((!n||!n._ts)&&ut.autoSleep&&ot._listeners.length<2){for(;n&&!n._ts;)n=n._next;n||ot.sleep()}}},t}(be);ct(Z.prototype,{_lock:0,_hasPause:0,_forcing:0});var ys=function(t,e,i,r,n,s,o){var a=new it(this._pt,t,e,0,1,Hr,null,n),l=0,f=0,h,c,d,m,_,p,x,g;for(a.b=i,a.e=r,i+="",r+="",(x=~r.indexOf("random("))&&(r=Te(r)),s&&(g=[i,r],s(g,t,e),i=g[0],r=g[1]),c=i.match(Qe)||[];h=Qe.exec(r);)m=h[0],_=r.substring(l,h.index),d?d=(d+1)%5:_.substr(-5)==="rgba("&&(d=1),m!==c[f++]&&(p=parseFloat(c[f-1])||0,a._pt={_next:a._pt,p:_||f===1?_:",",s:p,c:m.charAt(1)==="="?ie(p,m)-p:parseFloat(m)-p,m:d&&d<4?Math.round:0},l=Qe.lastIndex);return a.c=l<r.length?r.substring(l,r.length):"",a.fp=o,(pr.test(r)||x)&&(a.e=0),this._pt=a,a},Ei=function(t,e,i,r,n,s,o,a,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?bs:Kr:zi,m;if(W(r)&&(~r.indexOf("random(")&&(r=Te(r)),r.charAt(1)==="="&&(m=ie(c,r)+(K(c)||0),(m||m===0)&&(r=m))),!f||c!==r||gi)return!isNaN(c*r)&&r!==""?(m=new it(this._pt,t,e,+c||0,r-(c||0),typeof h=="boolean"?Ss:jr,0,d),l&&(m.fp=l),o&&m.modifier(o,this,t),this._pt=m):(!h&&!(e in t)&&Mi(e,r),ys.call(this,t,e,c,r,d,a||ut.stringFilter,l))},xs=function(t,e,i,r,n){if(L(t)&&(t=ye(t,n,e,i,r)),!wt(t)||t.style&&t.nodeType||H(t)||cr(t))return W(t)?ye(t,n,e,i,r):t;var s={},o;for(o in t)s[o]=ye(t[o],n,e,i,r);return s},Gr=function(t,e,i,r,n,s){var o,a,l,f;if(st[t]&&(o=new st[t]).init(n,o.rawVars?e[t]:xs(e[t],r,n,s,i),i,r,s)!==!1&&(i._pt=a=new it(i._pt,n,t,0,1,o.render,o,0,o.priority),i!==ee))for(l=i._ptLookup[i._targets.indexOf(n)],f=o._props.length;f--;)l[o._props[f]]=a;return o},Mt,gi,Fi=function u(t,e,i){var r=t.vars,n=r.ease,s=r.startAt,o=r.immediateRender,a=r.lazy,l=r.onUpdate,f=r.runBackwards,h=r.yoyoEase,c=r.keyframes,d=r.autoRevert,m=t._dur,_=t._startAt,p=t._targets,x=t.parent,g=x&&x.data==="nested"?x.vars.targets:p,v=t._overwrite==="auto"&&!Si,T=t.timeline,y,b,P,S,w,O,E,A,D,q,Y,N,U;if(T&&(!c||!n)&&(n="none"),t._ease=Kt(n,oe.ease),t._yEase=h?Yr(Kt(h===!0?n:h,oe.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(A=p[0]?Wt(p[0]).harness:0,N=A&&r[A.prop],y=Ye(r,Ai),_&&(_._zTime<0&&_.progress(1),e<0&&f&&o&&!d?_.render(-1,!0):_.revert(f&&m?ze:qn),_._lazy=0),s){if(zt(t._startAt=V.set(p,ct({data:"isStart",overwrite:!1,parent:x,immediateRender:!0,lazy:!_&&tt(a),startAt:null,delay:0,onUpdate:l&&function(){return at(t,"onUpdate")},stagger:0},s))),t._startAt._dp=0,t._startAt._sat=t,e<0&&(j||!o&&!d)&&t._startAt.revert(ze),o&&m&&e<=0&&i<=0){e&&(t._zTime=e);return}}else if(f&&m&&!_){if(e&&(o=!1),P=ct({overwrite:!1,data:"isFromStart",lazy:o&&!_&&tt(a),immediateRender:o,stagger:0,parent:x},y),N&&(P[A.prop]=N),zt(t._startAt=V.set(p,P)),t._startAt._dp=0,t._startAt._sat=t,e<0&&(j?t._startAt.revert(ze):t._startAt.render(-1,!0)),t._zTime=e,!o)u(t._startAt,R,R);else if(!e)return}for(t._pt=t._ptCache=0,a=m&&tt(a)||a&&!m,b=0;b<p.length;b++){if(w=p[b],E=w._gsap||Ri(p)[b]._gsap,t._ptLookup[b]=q={},_i[E.id]&&Rt.length&&Ve(),Y=g===p?b:g.indexOf(w),A&&(D=new A).init(w,N||y,t,Y,g)!==!1&&(t._pt=S=new it(t._pt,w,D.name,0,1,D.render,D,0,D.priority),D._props.forEach(function(dt){q[dt]=S}),D.priority&&(O=1)),!A||N)for(P in y)st[P]&&(D=Gr(P,y,t,Y,w,g))?D.priority&&(O=1):q[P]=S=Ei.call(t,w,P,"get",y[P],Y,g,0,r.stringFilter);t._op&&t._op[b]&&t.kill(w,t._op[b]),v&&t._pt&&(Mt=t,z.killTweensOf(w,q,t.globalTime(e)),U=!t.parent,Mt=0),t._pt&&a&&(_i[E.id]=1)}O&&Qr(t),t._onInit&&t._onInit(t)}t._onUpdate=l,t._initted=(!t._op||t._pt)&&!U,c&&e<=0&&T.render(_t,!0,!0)},vs=function(t,e,i,r,n,s,o,a){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 gi=1,t.vars[e]="+=0",Fi(t,o),gi=0,a?xe(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=B(i)+K(h.e)),h.b&&(h.b=f.s+K(h.b))},Ts=function(t,e){var i=t[0]?Wt(t[0]).harness:0,r=i&&i.aliases,n,s,o,a;if(!r)return e;n=Ht({},e);for(s in r)if(s in n)for(a=r[s].split(","),o=a.length;o--;)n[a[o]]=n[s];return n},ws=function(t,e,i,r){var n=e.ease||r||"power1.inOut",s,o;if(H(e))o=i[t]||(i[t]=[]),e.forEach(function(a,l){return o.push({t:l/(e.length-1)*100,v:a,e:n})});else for(s in e)o=i[s]||(i[s]=[]),s==="ease"||o.push({t:parseFloat(t),v:e[s],e:n})},ye=function(t,e,i,r,n){return L(t)?t.call(e,i,r,n):W(t)&&~t.indexOf("random(")?Te(t):t},Wr=Di+"repeat,repeatDelay,yoyo,repeatRefresh,yoyoEase,autoRevert",qr={};et(Wr+",id,stagger,delay,duration,paused,scrollTrigger",function(u){return qr[u]=1});var V=function(u){_r(t,u);function t(i,r,n,s){var o;typeof r=="number"&&(n.duration=r,r=n,n=null),o=u.call(this,s?r:me(r))||this;var a=o.vars,l=a.duration,f=a.delay,h=a.immediateRender,c=a.stagger,d=a.overwrite,m=a.keyframes,_=a.defaults,p=a.scrollTrigger,x=a.yoyoEase,g=r.parent||z,v=(H(i)||cr(i)?Ot(i[0]):"length"in r)?[i]:ht(i),T,y,b,P,S,w,O,E;if(o._targets=v.length?Ri(v):xe("GSAP target "+i+" not found. https://gsap.com",!ut.nullTargetWarn)||[],o._ptLookup=[],o._overwrite=d,m||c||Ee(l)||Ee(f)){if(r=o.vars,T=o.timeline=new Z({data:"nested",defaults:_||{},targets:g&&g.data==="nested"?g.vars.targets:v}),T.kill(),T.parent=T._dp=Pt(o),T._start=0,c||Ee(l)||Ee(f)){if(P=v.length,O=c&&Dr(c),wt(c))for(S in c)~Wr.indexOf(S)&&(E||(E={}),E[S]=c[S]);for(y=0;y<P;y++)b=Ye(r,qr),b.stagger=0,x&&(b.yoyoEase=x),E&&Ht(b,E),w=v[y],b.duration=+ye(l,Pt(o),y,w,v),b.delay=(+ye(f,Pt(o),y,w,v)||0)-o._delay,!c&&P===1&&b.delay&&(o._delay=f=b.delay,o._start+=f,b.delay=0),T.to(w,b,O?O(y,w,v):0),T._ease=k.none;T.duration()?l=f=0:o.timeline=0}else if(m){me(ct(T.vars.defaults,{ease:"none"})),T._ease=Kt(m.ease||r.ease||"none");var A=0,D,q,Y;if(H(m))m.forEach(function(N){return T.to(v,N,">")}),T.duration();else{b={};for(S in m)S==="ease"||S==="easeEach"||ws(S,m[S],b,m.easeEach);for(S in b)for(D=b[S].sort(function(N,U){return N.t-U.t}),A=0,y=0;y<D.length;y++)q=D[y],Y={ease:q.e,duration:(q.t-(y?D[y-1].t:0))/100*l},Y[S]=q.v,T.to(v,Y,A),A+=Y.duration;T.duration()<l&&T.to({},{duration:l-T.duration()})}}l||o.duration(l=T.duration())}else o.timeline=0;return d===!0&&!Si&&(Mt=Pt(o),z.killTweensOf(v),Mt=0),yt(g,Pt(o),n),r.reversed&&o.reverse(),r.paused&&o.paused(!0),(h||!l&&!m&&o._start===G(g._time)&&tt(h)&&Jn(Pt(o))&&g.data!=="nested")&&(o._tTime=-R,o.render(Math.max(0,-f)||0)),p&&Or(Pt(o),p),o}var e=t.prototype;return e.render=function(r,n,s){var o=this._time,a=this._tDur,l=this._dur,f=r<0,h=r>a-R&&!f?a:r<R?0:r,c,d,m,_,p,x,g,v,T;if(!l)es(this,r,n,s);else if(h!==this._tTime||!r||s||!this._initted&&this._tTime||this._startAt&&this._zTime<0!==f){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=G(h%_),h===a?(m=this._repeat,c=l):(m=~~(h/_),m&&m===G(h/_)&&(c=l,m--),c>l&&(c=l)),x=this._yoyo&&m&1,x&&(T=this._yEase,c=l-c),p=ae(this._tTime,_),c===o&&!s&&this._initted&&m===p)return this._tTime=h,this;m!==p&&(v&&this._yEase&&Ur(v,x),this.vars.repeatRefresh&&!x&&!this._lock&&this._time!==_&&this._initted&&(this._lock=s=1,this.render(G(_*m),!0).invalidate()._lock=0))}if(!this._initted){if(Cr(this,f?r:c,s,n,h))return this._tTime=0,this;if(o!==this._time&&!(s&&this.vars.repeatRefresh&&m!==p))return this;if(l!==this._dur)return this.render(r,n,s)}if(this._tTime=h,this._time=c,!this._act&&this._ts&&(this._act=1,this._lazy=0),this.ratio=g=(T||this._ease)(c/l),this._from&&(this.ratio=g=1-g),c&&!o&&!n&&!m&&(at(this,"onStart"),this._tTime!==h))return this;for(d=this._pt;d;)d.r(g,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&&m!==p&&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)&&zt(this,1),!n&&!(f&&!o)&&(h||o||x)&&(at(this,h===a?"onComplete":"onReverseComplete",!0),this._prom&&!(h<a&&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),u.prototype.invalidate.call(this,r)},e.resetTo=function(r,n,s,o,a){we||ot.wake(),this._ts||this.play();var l=Math.min(this._dur,(this._dp._time-this._start)*this._ts),f;return this._initted||Fi(this,l),f=this._ease(l/this._dur),vs(this,r,n,s,o,f,l,a)?this.resetTo(r,n,s,o,1):(Ke(this,0),this.parent||Sr(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?de(this):this;if(this.timeline){var s=this.timeline.totalDuration();return this.timeline.killTweensOf(r,n,Mt&&Mt.vars.overwrite!==!0)._first||de(this),this.parent&&s!==this.timeline.totalDuration()&&ue(this,this._dur*this.timeline._tDur/s,0,1),this}var o=this._targets,a=r?ht(r):o,l=this._ptLookup,f=this._pt,h,c,d,m,_,p,x;if((!n||n==="all")&&Qn(o,a))return n==="all"&&(this._pt=0),de(this);for(h=this._op=this._op||[],n!=="all"&&(W(n)&&(_={},et(n,function(g){return _[g]=1}),n=_),n=Ts(o,n)),x=o.length;x--;)if(~a.indexOf(o[x])){c=l[x],n==="all"?(h[x]=n,m=c,d={}):(d=h[x]=h[x]||{},m=n);for(_ in m)p=c&&c[_],p&&((!("kill"in p.d)||p.d.kill(_)===!0)&&We(this,p,"_pt"),delete c[_]),d!=="all"&&(d[_]=1)}return this._initted&&!this._pt&&f&&de(this),this},t.to=function(r,n){return new t(r,n,arguments[2])},t.from=function(r,n){return ge(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 ge(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 z.killTweensOf(r,n,s)},t}(be);ct(V.prototype,{_targets:[],_lazy:0,_startAt:0,_op:0,_onInit:0});et("staggerTo,staggerFrom,staggerFromTo",function(u){V[u]=function(){var t=new Z,e=di.call(arguments,0);return e.splice(u==="staggerFromTo"?5:4,0,0),t[u].apply(t,e)}});var zi=function(t,e,i){return t[e]=i},Kr=function(t,e,i){return t[e](i)},bs=function(t,e,i,r){return t[e](r.fp,i)},Ps=function(t,e,i){return t.setAttribute(e,i)},Ii=function(t,e){return L(t[e])?Kr:ki(t[e])&&t.setAttribute?Ps:zi},jr=function(t,e){return e.set(e.t,e.p,Math.round((e.s+e.c*t)*1e6)/1e6,e)},Ss=function(t,e){return e.set(e.t,e.p,!!(e.s+e.c*t),e)},Hr=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)},Li=function(t,e){for(var i=e._pt;i;)i.r(t,i.d),i=i._next},ks=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},Os=function(t){for(var e=this._pt,i,r;e;)r=e._next,e.p===t&&!e.op||e.op===t?We(this,e,"_pt"):e.dep||(i=1),e=r;return!i},Cs=function(t,e,i,r){r.mSet(t,e,r.m.call(r.tween,i,r.mt),r)},Qr=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},it=function(){function u(e,i,r,n,s,o,a,l,f){this.t=i,this.s=n,this.c=s,this.p=r,this.r=o||jr,this.d=a||this,this.set=l||zi,this.pr=f||0,this._next=e,e&&(e._prev=this)}var t=u.prototype;return t.modifier=function(i,r,n){this.mSet=this.mSet||this.set,this.set=Cs,this.m=i,this.mt=n,this.tween=r},u}();et(Di+"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(u){return Ai[u]=1});lt.TweenMax=lt.TweenLite=V;lt.TimelineLite=lt.TimelineMax=Z;z=new Z({sortChildren:!1,defaults:oe,autoRemoveChildren:!0,id:"root",smoothChildTiming:!0});ut.stringFilter=Vr;var jt=[],Le={},Ms=[],Qi=0,As=0,ii=function(t){return(Le[t]||Ms).map(function(e){return e()})},yi=function(){var t=Date.now(),e=[];t-Qi>2&&(ii("matchMediaInit"),jt.forEach(function(i){var r=i.queries,n=i.conditions,s,o,a,l;for(o in r)s=gt.matchMedia(r[o]).matches,s&&(a=1),s!==n[o]&&(n[o]=s,l=1);l&&(i.revert(),a&&e.push(i))}),ii("matchMediaRevert"),e.forEach(function(i){return i.onMatch(i,function(r){return i.add(null,r)})}),Qi=t,ii("matchMedia"))},Zr=function(){function u(e,i){this.selector=i&&pi(i),this.data=[],this._r=[],this.isReverted=!1,this.id=As++,e&&this.add(e)}var t=u.prototype;return t.add=function(i,r,n){L(i)&&(n=r,r=i,i=L);var s=this,o=function(){var l=F,f=s.selector,h;return l&&l!==s&&l.data.push(s),n&&(s.selector=pi(n)),F=s,h=r.apply(s,arguments),L(h)&&s._r.push(h),F=l,s.selector=f,s.isReverted=!1,h};return s.last=o,i===L?o(s,function(a){return s.add(null,a)}):i?s[i]=o:o},t.ignore=function(i){var r=F;F=null,i(this),F=r},t.getTweens=function(){var i=[];return this.data.forEach(function(r){return r instanceof u?i.push.apply(i,r.getTweens()):r instanceof V&&!(r.parent&&r.parent.data==="nested")&&i.push(r)}),i},t.clear=function(){this._r.length=this.data.length=0},t.kill=function(i,r){var n=this;if(i?function(){for(var o=n.getTweens(),a=n.data.length,l;a--;)l=n.data[a],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)}),a=n.data.length;a--;)l=n.data[a],l instanceof Z?l.data!=="nested"&&(l.scrollTrigger&&l.scrollTrigger.revert(),l.kill()):!(l instanceof V)&&l.revert&&l.revert(i);n._r.forEach(function(f){return f(i,n)}),n.isReverted=!0}():this.data.forEach(function(o){return o.kill&&o.kill()}),this.clear(),r)for(var s=jt.length;s--;)jt[s].id===this.id&&jt.splice(s,1)},t.revert=function(i){this.kill(i||{})},u}(),Ds=function(){function u(e){this.contexts=[],this.scope=e,F&&F.data.push(this)}var t=u.prototype;return t.add=function(i,r,n){wt(i)||(i={matches:i});var s=new Zr(0,n||this.scope),o=s.conditions={},a,l,f;F&&!s.selector&&(s.selector=F.selector),this.contexts.push(s),r=s.add("onMatch",r),s.queries=i;for(l in i)l==="all"?f=1:(a=gt.matchMedia(i[l]),a&&(jt.indexOf(s)<0&&jt.push(s),(o[l]=a.matches)&&(f=1),a.addListener?a.addListener(yi):a.addEventListener("change",yi)));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)})},u}(),Xe={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 Lr(r)})},timeline:function(t){return new Z(t)},getTweensOf:function(t,e){return z.getTweensOf(t,e)},getProperty:function(t,e,i,r){W(t)&&(t=ht(t)[0]);var n=Wt(t||{}).get,s=i?Pr:br;return i==="native"&&(i=""),t&&(e?s((st[e]&&st[e].get||n)(t,e,i,r)):function(o,a,l){return s((st[o]&&st[o].get||n)(t,o,a,l))})},quickSetter:function(t,e,i){if(t=ht(t),t.length>1){var r=t.map(function(f){return nt.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=Wt(t),a=o.harness&&(o.harness.aliases||{})[e]||e,l=s?function(f){var h=new s;ee._pt=0,h.init(t,i?f+i:f,ee,0,[t]),h.render(1,h),ee._pt&&Li(1,ee)}:o.set(t,a);return s?l:function(f){return l(t,a,i?f+i:f,o,1)}},quickTo:function(t,e,i){var r,n=nt.to(t,Ht((r={},r[e]="+=0.1",r.paused=!0,r),i||{})),s=function(a,l,f){return n.resetTo(e,a,l,f)};return s.tween=n,s},isTweening:function(t){return z.getTweensOf(t,!0).length>0},defaults:function(t){return t&&t.ease&&(t.ease=Kt(t.ease,oe.ease)),Wi(oe,t||{})},config:function(t){return Wi(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]&&xe(e+" effect requires "+o+" plugin.")}),Ze[e]=function(o,a,l){return i(ht(o),ct(a||{},n),l)},s&&(Z.prototype[e]=function(o,a,l){return this.add(Ze[e](o,wt(a)?a:(l=a)&&{},this),l)})},registerEase:function(t,e){k[t]=Kt(e)},parseEase:function(t,e){return arguments.length?Kt(t,e):k},getById:function(t){return z.getById(t)},exportRoot:function(t,e){t===void 0&&(t={});var i=new Z(t),r,n;for(i.smoothChildTiming=tt(t.smoothChildTiming),z.remove(i),i._dp=0,i._time=i._tTime=z._time,r=z._first;r;)n=r._next,(e||!(!r._dur&&r instanceof V&&r.vars.onComplete===r._targets[0]))&&yt(i,r,r._start-r._delay),r=n;return yt(z,i,0),i},context:function(t,e){return t?new Zr(t,e):F},matchMedia:function(t){return new Ds(t)},matchMediaRefresh:function(){return jt.forEach(function(t){var e=t.conditions,i,r;for(r in e)e[r]&&(e[r]=!1,i=1);i&&t.revert()})||yi()},addEventListener:function(t,e){var i=Le[t]||(Le[t]=[]);~i.indexOf(e)||i.push(e)},removeEventListener:function(t,e){var i=Le[t],r=i&&i.indexOf(e);r>=0&&i.splice(r,1)},utils:{wrap:ls,wrapYoyo:fs,distribute:Dr,random:Er,snap:Rr,normalize:us,getUnit:K,clamp:ns,splitColor:Br,toArray:ht,selector:pi,mapRange:zr,pipe:os,unitize:as,interpolate:_s,shuffle:Ar},install:yr,effects:Ze,ticker:ot,updateRoot:Z.updateRoot,plugins:st,globalTimeline:z,core:{PropTween:it,globals:xr,Tween:V,Timeline:Z,Animation:be,getCache:Wt,_removeLinkedListItem:We,reverting:function(){return j},context:function(t){return t&&F&&(F.data.push(t),t._ctx=F),F},suppressOverwrites:function(t){return Si=t}}};et("to,from,fromTo,delayedCall,set,killTweensOf",function(u){return Xe[u]=V[u]});ot.add(Z.updateRoot);ee=Xe.to({},{duration:0});var Rs=function(t,e){for(var i=t._pt;i&&i.p!==e&&i.op!==e&&i.fp!==e;)i=i._next;return i},Es=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=Rs(s,r)),s&&s.modifier&&s.modifier(e[r],t,i[n],r))},ri=function(t,e){return{name:t,rawVars:1,init:function(r,n,s){s._onInit=function(o){var a,l;if(W(n)&&(a={},et(n,function(f){return a[f]=1}),n=a),e){a={};for(l in n)a[l]=e(n[l]);n=a}Es(o,n)}}}},nt=Xe.registerPlugin({name:"attr",init:function(t,e,i,r,n){var s,o,a;this.tween=i;for(s in e)a=t.getAttribute(s)||"",o=this.add(t,"setAttribute",(a||0)+"",e[s],r,n,0,0,s),o.op=s,o.b=a,this._props.push(s)},render:function(t,e){for(var i=e._pt;i;)j?i.set(i.t,i.p,i.b,i):i.r(t,i.d),i=i._next}},{name:"endArray",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)}},ri("roundProps",mi),ri("modifiers"),ri("snap",Rr))||Xe;V.version=Z.version=nt.version="3.12.5";gr=1;Oi()&&le();k.Power0;k.Power1;k.Power2;k.Power3;k.Power4;k.Linear;k.Quad;k.Cubic;k.Quart;k.Quint;k.Strong;k.Elastic;k.Back;k.SteppedEase;k.Bounce;k.Sine;k.Expo;k.Circ;/*!
|
|
10
|
-
* CSSPlugin 3.12.5
|
|
11
|
-
* https://gsap.com
|
|
12
|
-
*
|
|
13
|
-
* Copyright 2008-2024, GreenSock. All rights reserved.
|
|
14
|
-
* Subject to the terms at https://gsap.com/standard-license or for
|
|
15
|
-
* Club GSAP members, the agreement issued with that membership.
|
|
16
|
-
* @author: Jack Doyle, jack@greensock.com
|
|
17
|
-
*/var Zi,At,re,Bi,Gt,Ji,Ni,Fs=function(){return typeof window<"u"},Ct={},Ut=180/Math.PI,ne=Math.PI/180,Jt=Math.atan2,tr=1e8,Vi=/([A-Z])/g,zs=/(left|right|width|margin|padding|x)/i,Is=/[\s,\(]\S/,xt={autoAlpha:"opacity,visibility",scale:"scaleX,scaleY",alpha:"opacity"},xi=function(t,e){return e.set(e.t,e.p,Math.round((e.s+e.c*t)*1e4)/1e4+e.u,e)},Ls=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)},Bs=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)},Ns=function(t,e){var i=e.s+e.c*t;e.set(e.t,e.p,~~(i+(i<0?-.5:.5))+e.u,e)},Jr=function(t,e){return e.set(e.t,e.p,t?e.e:e.b,e)},tn=function(t,e){return e.set(e.t,e.p,t!==1?e.b:e.e,e)},Vs=function(t,e,i){return t.style[e]=i},Ys=function(t,e,i){return t.style.setProperty(e,i)},Us=function(t,e,i){return t._gsap[e]=i},Xs=function(t,e,i){return t._gsap.scaleX=t._gsap.scaleY=i},$s=function(t,e,i,r,n){var s=t._gsap;s.scaleX=s.scaleY=i,s.renderTransform(n,s)},Gs=function(t,e,i,r,n){var s=t._gsap;s[e]=i,s.renderTransform(n,s)},I="transform",rt=I+"Origin",Ws=function u(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=xt[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===rt&&(this.tfm.zOrigin=s.zOrigin);else return xt.transform.split(",").forEach(function(o){return u.call(i,o,e)});if(this.props.indexOf(I)>=0)return;s.svg&&(this.svgo=r.getAttribute("data-svg-origin"),this.props.push(rt,e,"")),t=I}(n||e)&&this.props.push(t,e,n[t])},en=function(t){t.translate&&(t.removeProperty("translate"),t.removeProperty("scale"),t.removeProperty("rotate"))},qs=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]?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(Vi,"-$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[I]&&(en(i),r.zOrigin&&i[rt]&&(i[rt]+=" "+r.zOrigin+"px",r.zOrigin=0,r.renderTransform()),r.uncache=1)}},rn=function(t,e){var i={target:t,props:[],revert:qs,save:Ws};return t._gsap||nt.core.getCache(t),e&&e.split(",").forEach(function(r){return i.save(r)}),i},nn,vi=function(t,e){var i=At.createElementNS?At.createElementNS((e||"http://www.w3.org/1999/xhtml").replace(/^https/,"http"),t):At.createElement(t);return i&&i.style?i:At.createElement(t)},Tt=function u(t,e,i){var r=getComputedStyle(t);return r[e]||r.getPropertyValue(e.replace(Vi,"-$1").toLowerCase())||r.getPropertyValue(e)||!i&&u(t,fe(e)||e,1)||""},er="O,Moz,ms,Ms,Webkit".split(","),fe=function(t,e,i){var r=e||Gt,n=r.style,s=5;if(t in n&&!i)return t;for(t=t.charAt(0).toUpperCase()+t.substr(1);s--&&!(er[s]+t in n););return s<0?null:(s===3?"ms":s>=0?er[s]:"")+t},Ti=function(){Fs()&&window.document&&(Zi=window,At=Zi.document,re=At.documentElement,Gt=vi("div")||{style:{}},vi("div"),I=fe(I),rt=I+"Origin",Gt.style.cssText="border-width:0;line-height:0;position:absolute;padding:0",nn=!!fe("perspective"),Ni=nt.core.reverting,Bi=1)},ni=function u(t){var e=vi("svg",this.ownerSVGElement&&this.ownerSVGElement.getAttribute("xmlns")||"http://www.w3.org/2000/svg"),i=this.parentNode,r=this.nextSibling,n=this.style.cssText,s;if(re.appendChild(e),e.appendChild(this),this.style.display="block",t)try{s=this.getBBox(),this._gsapBBox=this.getBBox,this.getBBox=u}catch{}else this._gsapBBox&&(s=this._gsapBBox());return i&&(r?i.insertBefore(this,r):i.appendChild(this)),re.removeChild(e),this.style.cssText=n,s},ir=function(t,e){for(var i=e.length;i--;)if(t.hasAttribute(e[i]))return t.getAttribute(e[i])},sn=function(t){var e;try{e=t.getBBox()}catch{e=ni.call(t,!0)}return e&&(e.width||e.height)||t.getBBox===ni||(e=ni.call(t,!0)),e&&!e.width&&!e.x&&!e.y?{x:+ir(t,["x","cx","x1"])||0,y:+ir(t,["y","cy","y1"])||0,width:0,height:0}:e},on=function(t){return!!(t.getCTM&&(!t.parentNode||t.ownerSVGElement)&&sn(t))},Qt=function(t,e){if(e){var i=t.style,r;e in Ct&&e!==rt&&(e=I),i.removeProperty?(r=e.substr(0,2),(r==="ms"||e.substr(0,6)==="webkit")&&(e="-"+e),i.removeProperty(r==="--"?e:e.replace(Vi,"-$1").toLowerCase())):i.removeAttribute(e)}},Dt=function(t,e,i,r,n,s){var o=new it(t._pt,e,i,0,1,s?tn:Jr);return t._pt=o,o.b=r,o.e=n,t._props.push(i),o},rr={deg:1,rad:1,turn:1},Ks={grid:1,flex:1},It=function u(t,e,i,r){var n=parseFloat(i)||0,s=(i+"").trim().substr((n+"").length)||"px",o=Gt.style,a=zs.test(e),l=t.tagName.toLowerCase()==="svg",f=(l?"client":"offset")+(a?"Width":"Height"),h=100,c=r==="px",d=r==="%",m,_,p,x;if(r===s||!n||rr[r]||rr[s])return n;if(s!=="px"&&!c&&(n=u(t,e,i,"px")),x=t.getCTM&&on(t),(d||s==="%")&&(Ct[e]||~e.indexOf("adius")))return m=x?t.getBBox()[a?"width":"height"]:t[f],B(d?n/m*h:n/100*m);if(o[a?"width":"height"]=h+(c?s:r),_=~e.indexOf("adius")||r==="em"&&t.appendChild&&!l?t:t.parentNode,x&&(_=(t.ownerSVGElement||{}).parentNode),(!_||_===At||!_.appendChild)&&(_=At.body),p=_._gsap,p&&d&&p.width&&a&&p.time===ot.time&&!p.uncache)return B(n/p.width*h);if(d&&(e==="height"||e==="width")){var g=t.style[e];t.style[e]=h+r,m=t[f],g?t.style[e]=g:Qt(t,e)}else(d||s==="%")&&!Ks[Tt(_,"display")]&&(o.position=Tt(t,"position")),_===t&&(o.position="static"),_.appendChild(Gt),m=Gt[f],_.removeChild(Gt),o.position="absolute";return a&&d&&(p=Wt(_),p.time=ot.time,p.width=_[f]),B(c?m*n/h:m&&n?h/m*n:0)},St=function(t,e,i,r){var n;return Bi||Ti(),e in xt&&e!=="transform"&&(e=xt[e],~e.indexOf(",")&&(e=e.split(",")[0])),Ct[e]&&e!=="transform"?(n=Se(t,r),n=e!=="transformOrigin"?n[e]:n.svg?n.origin:Ge(Tt(t,rt))+" "+n.zOrigin+"px"):(n=t.style[e],(!n||n==="auto"||r||~(n+"").indexOf("calc("))&&(n=$e[e]&&$e[e](t,e,i)||Tt(t,e)||Tr(t,e)||(e==="opacity"?1:0))),i&&!~(n+"").trim().indexOf(" ")?It(t,e,n,i)+i:n},js=function(t,e,i,r){if(!i||i==="none"){var n=fe(e,t,1),s=n&&Tt(t,n,1);s&&s!==i?(e=n,i=s):e==="borderColor"&&(i=Tt(t,"borderTopColor"))}var o=new it(this._pt,t.style,e,0,1,Hr),a=0,l=0,f,h,c,d,m,_,p,x,g,v,T,y;if(o.b=i,o.e=r,i+="",r+="",r==="auto"&&(_=t.style[e],t.style[e]=r,r=Tt(t,e)||r,_?t.style[e]=_:Qt(t,e)),f=[i,r],Vr(f),i=f[0],r=f[1],c=i.match(te)||[],y=r.match(te)||[],y.length){for(;h=te.exec(r);)p=h[0],g=r.substring(a,h.index),m?m=(m+1)%5:(g.substr(-5)==="rgba("||g.substr(-5)==="hsla(")&&(m=1),p!==(_=c[l++]||"")&&(d=parseFloat(_)||0,T=_.substr((d+"").length),p.charAt(1)==="="&&(p=ie(d,p)+T),x=parseFloat(p),v=p.substr((x+"").length),a=te.lastIndex-v.length,v||(v=v||ut.units[e]||T,a===r.length&&(r+=v,o.e+=v)),T!==v&&(d=It(t,e,_,v)||0),o._pt={_next:o._pt,p:g||l===1?g:",",s:d,c:x-d,m:m&&m<4||e==="zIndex"?Math.round:0});o.c=a<r.length?r.substring(a,r.length):""}else o.r=e==="display"&&r==="none"?tn:Jr;return pr.test(r)&&(o.e=0),this._pt=o,o},nr={top:"0%",bottom:"100%",left:"0%",right:"100%",center:"50%"},Hs=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]=nr[i]||i,e[1]=nr[r]||r,e.join(" ")},Qs=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,a,l;if(n==="all"||n===!0)r.cssText="",a=1;else for(n=n.split(","),l=n.length;--l>-1;)o=n[l],Ct[o]&&(a=1,o=o==="transformOrigin"?rt:I),Qt(i,o);a&&(Qt(i,I),s&&(s.svg&&i.removeAttribute("transform"),Se(i,1),s.uncache=1,en(r)))}},$e={clearProps:function(t,e,i,r,n){if(n.data!=="isFromStart"){var s=t._pt=new it(t._pt,e,i,0,0,Qs);return s.u=r,s.pr=-10,s.tween=n,t._props.push(i),1}}},Pe=[1,0,0,1,0,0],an={},un=function(t){return t==="matrix(1, 0, 0, 1, 0, 0)"||t==="none"||!t},sr=function(t){var e=Tt(t,I);return un(e)?Pe:e.substr(7).match(dr).map(B)},Yi=function(t,e){var i=t._gsap||Wt(t),r=t.style,n=sr(t),s,o,a,l;return i.svg&&t.getAttribute("transform")?(a=t.transform.baseVal.consolidate().matrix,n=[a.a,a.b,a.c,a.d,a.e,a.f],n.join(",")==="1,0,0,1,0,0"?Pe:n):(n===Pe&&!t.offsetParent&&t!==re&&!i.svg&&(a=r.display,r.display="block",s=t.parentNode,(!s||!t.offsetParent)&&(l=1,o=t.nextElementSibling,re.appendChild(t)),n=sr(t),a?r.display=a:Qt(t,"display"),l&&(o?s.insertBefore(t,o):s?s.appendChild(t):re.removeChild(t))),e&&n.length>6?[n[0],n[1],n[4],n[5],n[12],n[13]]:n)},wi=function(t,e,i,r,n,s){var o=t._gsap,a=n||Yi(t,!0),l=o.xOrigin||0,f=o.yOrigin||0,h=o.xOffset||0,c=o.yOffset||0,d=a[0],m=a[1],_=a[2],p=a[3],x=a[4],g=a[5],v=e.split(" "),T=parseFloat(v[0])||0,y=parseFloat(v[1])||0,b,P,S,w;i?a!==Pe&&(P=d*p-m*_)&&(S=T*(p/P)+y*(-_/P)+(_*g-p*x)/P,w=T*(-m/P)+y*(d/P)-(d*g-m*x)/P,T=S,y=w):(b=sn(t),T=b.x+(~v[0].indexOf("%")?T/100*b.width:T),y=b.y+(~(v[1]||v[0]).indexOf("%")?y/100*b.height:y)),r||r!==!1&&o.smooth?(x=T-l,g=y-f,o.xOffset=h+(x*d+g*_)-x,o.yOffset=c+(x*m+g*p)-g):o.xOffset=o.yOffset=0,o.xOrigin=T,o.yOrigin=y,o.smooth=!!r,o.origin=e,o.originIsAbsolute=!!i,t.style[rt]="0px 0px",s&&(Dt(s,o,"xOrigin",l,T),Dt(s,o,"yOrigin",f,y),Dt(s,o,"xOffset",h,o.xOffset),Dt(s,o,"yOffset",c,o.yOffset)),t.setAttribute("data-svg-origin",T+" "+y)},Se=function(t,e){var i=t._gsap||new $r(t);if("x"in i&&!e&&!i.uncache)return i;var r=t.style,n=i.scaleX<0,s="px",o="deg",a=getComputedStyle(t),l=Tt(t,rt)||"0",f,h,c,d,m,_,p,x,g,v,T,y,b,P,S,w,O,E,A,D,q,Y,N,U,dt,Ae,_e,he,Bt,Ui,bt,Nt;return f=h=c=_=p=x=g=v=T=0,d=m=1,i.svg=!!(t.getCTM&&on(t)),a.translate&&((a.translate!=="none"||a.scale!=="none"||a.rotate!=="none")&&(r[I]=(a.translate!=="none"?"translate3d("+(a.translate+" 0 0").split(" ").slice(0,3).join(", ")+") ":"")+(a.rotate!=="none"?"rotate("+a.rotate+") ":"")+(a.scale!=="none"?"scale("+a.scale.split(" ").join(",")+") ":"")+(a[I]!=="none"?a[I]:"")),r.scale=r.rotate=r.translate="none"),P=Yi(t,i.svg),i.svg&&(i.uncache?(dt=t.getBBox(),l=i.xOrigin-dt.x+"px "+(i.yOrigin-dt.y)+"px",U=""):U=!e&&t.getAttribute("data-svg-origin"),wi(t,U||l,!!U||i.originIsAbsolute,i.smooth!==!1,P)),y=i.xOrigin||0,b=i.yOrigin||0,P!==Pe&&(E=P[0],A=P[1],D=P[2],q=P[3],f=Y=P[4],h=N=P[5],P.length===6?(d=Math.sqrt(E*E+A*A),m=Math.sqrt(q*q+D*D),_=E||A?Jt(A,E)*Ut:0,g=D||q?Jt(D,q)*Ut+_:0,g&&(m*=Math.abs(Math.cos(g*ne))),i.svg&&(f-=y-(y*E+b*D),h-=b-(y*A+b*q))):(Nt=P[6],Ui=P[7],_e=P[8],he=P[9],Bt=P[10],bt=P[11],f=P[12],h=P[13],c=P[14],S=Jt(Nt,Bt),p=S*Ut,S&&(w=Math.cos(-S),O=Math.sin(-S),U=Y*w+_e*O,dt=N*w+he*O,Ae=Nt*w+Bt*O,_e=Y*-O+_e*w,he=N*-O+he*w,Bt=Nt*-O+Bt*w,bt=Ui*-O+bt*w,Y=U,N=dt,Nt=Ae),S=Jt(-D,Bt),x=S*Ut,S&&(w=Math.cos(-S),O=Math.sin(-S),U=E*w-_e*O,dt=A*w-he*O,Ae=D*w-Bt*O,bt=q*O+bt*w,E=U,A=dt,D=Ae),S=Jt(A,E),_=S*Ut,S&&(w=Math.cos(S),O=Math.sin(S),U=E*w+A*O,dt=Y*w+N*O,A=A*w-E*O,N=N*w-Y*O,E=U,Y=dt),p&&Math.abs(p)+Math.abs(_)>359.9&&(p=_=0,x=180-x),d=B(Math.sqrt(E*E+A*A+D*D)),m=B(Math.sqrt(N*N+Nt*Nt)),S=Jt(Y,N),g=Math.abs(S)>2e-4?S*Ut:0,T=bt?1/(bt<0?-bt:bt):0),i.svg&&(U=t.getAttribute("transform"),i.forceCSS=t.setAttribute("transform","")||!un(Tt(t,I)),U&&t.setAttribute("transform",U))),Math.abs(g)>90&&Math.abs(g)<270&&(n?(d*=-1,g+=_<=0?180:-180,_+=_<=0?180:-180):(m*=-1,g+=g<=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=B(d),i.scaleY=B(m),i.rotation=B(_)+o,i.rotationX=B(p)+o,i.rotationY=B(x)+o,i.skewX=g+o,i.skewY=v+o,i.transformPerspective=T+s,(i.zOrigin=parseFloat(l.split(" ")[2])||!e&&i.zOrigin||0)&&(r[rt]=Ge(l)),i.xOffset=i.yOffset=0,i.force3D=ut.force3D,i.renderTransform=i.svg?Js:nn?ln:Zs,i.uncache=0,i},Ge=function(t){return(t=t.split(" "))[0]+" "+t[1]},si=function(t,e,i){var r=K(e);return B(parseFloat(e)+parseFloat(It(t,"x",i+"px",r)))+r},Zs=function(t,e){e.z="0px",e.rotationY=e.rotationX="0deg",e.force3D=0,ln(t,e)},Vt="0deg",ce="0px",Yt=") ",ln=function(t,e){var i=e||this,r=i.xPercent,n=i.yPercent,s=i.x,o=i.y,a=i.z,l=i.rotation,f=i.rotationY,h=i.rotationX,c=i.skewX,d=i.skewY,m=i.scaleX,_=i.scaleY,p=i.transformPerspective,x=i.force3D,g=i.target,v=i.zOrigin,T="",y=x==="auto"&&t&&t!==1||x===!0;if(v&&(h!==Vt||f!==Vt)){var b=parseFloat(f)*ne,P=Math.sin(b),S=Math.cos(b),w;b=parseFloat(h)*ne,w=Math.cos(b),s=si(g,s,P*w*-v),o=si(g,o,-Math.sin(b)*-v),a=si(g,a,S*w*-v+v)}p!==ce&&(T+="perspective("+p+Yt),(r||n)&&(T+="translate("+r+"%, "+n+"%) "),(y||s!==ce||o!==ce||a!==ce)&&(T+=a!==ce||y?"translate3d("+s+", "+o+", "+a+") ":"translate("+s+", "+o+Yt),l!==Vt&&(T+="rotate("+l+Yt),f!==Vt&&(T+="rotateY("+f+Yt),h!==Vt&&(T+="rotateX("+h+Yt),(c!==Vt||d!==Vt)&&(T+="skew("+c+", "+d+Yt),(m!==1||_!==1)&&(T+="scale("+m+", "+_+Yt),g.style[I]=T||"translate(0, 0)"},Js=function(t,e){var i=e||this,r=i.xPercent,n=i.yPercent,s=i.x,o=i.y,a=i.rotation,l=i.skewX,f=i.skewY,h=i.scaleX,c=i.scaleY,d=i.target,m=i.xOrigin,_=i.yOrigin,p=i.xOffset,x=i.yOffset,g=i.forceCSS,v=parseFloat(s),T=parseFloat(o),y,b,P,S,w;a=parseFloat(a),l=parseFloat(l),f=parseFloat(f),f&&(f=parseFloat(f),l+=f,a+=f),a||l?(a*=ne,l*=ne,y=Math.cos(a)*h,b=Math.sin(a)*h,P=Math.sin(a-l)*-c,S=Math.cos(a-l)*c,l&&(f*=ne,w=Math.tan(l-f),w=Math.sqrt(1+w*w),P*=w,S*=w,f&&(w=Math.tan(f),w=Math.sqrt(1+w*w),y*=w,b*=w)),y=B(y),b=B(b),P=B(P),S=B(S)):(y=h,S=c,b=P=0),(v&&!~(s+"").indexOf("px")||T&&!~(o+"").indexOf("px"))&&(v=It(d,"x",s,"px"),T=It(d,"y",o,"px")),(m||_||p||x)&&(v=B(v+m-(m*y+_*P)+p),T=B(T+_-(m*b+_*S)+x)),(r||n)&&(w=d.getBBox(),v=B(v+r/100*w.width),T=B(T+n/100*w.height)),w="matrix("+y+","+b+","+P+","+S+","+v+","+T+")",d.setAttribute("transform",w),g&&(d.style[I]=w)},to=function(t,e,i,r,n){var s=360,o=W(n),a=parseFloat(n)*(o&&~n.indexOf("rad")?Ut:1),l=a-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*tr)%s-~~(l/s)*s:h==="ccw"&&l>0&&(l=(l-s*tr)%s-~~(l/s)*s)),t._pt=c=new it(t._pt,e,i,r,l,Ls),c.e=f,c.u="deg",t._props.push(i),c},or=function(t,e){for(var i in e)t[i]=e[i];return t},eo=function(t,e,i){var r=or({},i._gsap),n="perspective,force3D,transformOrigin,svgOrigin",s=i.style,o,a,l,f,h,c,d,m;r.svg?(l=i.getAttribute("transform"),i.setAttribute("transform",""),s[I]=e,o=Se(i,1),Qt(i,I),i.setAttribute("transform",l)):(l=getComputedStyle(i)[I],s[I]=e,o=Se(i,1),s[I]=l);for(a in Ct)l=r[a],f=o[a],l!==f&&n.indexOf(a)<0&&(d=K(l),m=K(f),h=d!==m?It(i,a,l,m):parseFloat(l),c=parseFloat(f),t._pt=new it(t._pt,o,a,h,c-h,xi),t._pt.u=m||0,t._props.push(a));or(o,r)};et("padding,margin,Width,Radius",function(u,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?u+o:"border"+o+u});$e[t>1?"border"+u:u]=function(o,a,l,f,h){var c,d;if(arguments.length<4)return c=s.map(function(m){return St(o,m,l)}),d=c.join(" "),d.split(c[0]).length===5?c[0]:d;c=(f+"").split(" "),d={},s.forEach(function(m,_){return d[m]=c[_]=c[_]||c[(_-1)/2|0]}),o.init(a,d,h)}});var fn={name:"css",register:Ti,targetTest:function(t){return t.style&&t.nodeType},init:function(t,e,i,r,n){var s=this._props,o=t.style,a=i.vars.startAt,l,f,h,c,d,m,_,p,x,g,v,T,y,b,P,S;Bi||Ti(),this.styles=this.styles||rn(t),S=this.styles.props,this.tween=i;for(_ in e)if(_!=="autoRound"&&(f=e[_],!(st[_]&&Gr(_,e,i,r,t,n)))){if(d=typeof f,m=$e[_],d==="function"&&(f=f.call(i,r,t,n),d=typeof f),d==="string"&&~f.indexOf("random(")&&(f=Te(f)),m)m(this,t,_,f,i)&&(P=1);else if(_.substr(0,2)==="--")l=(getComputedStyle(t).getPropertyValue(_)+"").trim(),f+="",Et.lastIndex=0,Et.test(l)||(p=K(l),x=K(f)),x?p!==x&&(l=It(t,_,l,x)+x):p&&(f+=p),this.add(o,"setProperty",l,f,r,n,0,0,_),s.push(_),S.push(_,0,o[_]);else if(d!=="undefined"){if(a&&_ in a?(l=typeof a[_]=="function"?a[_].call(i,r,t,n):a[_],W(l)&&~l.indexOf("random(")&&(l=Te(l)),K(l+"")||l==="auto"||(l+=ut.units[_]||K(St(t,_))||""),(l+"").charAt(1)==="="&&(l=St(t,_))):l=St(t,_),c=parseFloat(l),g=d==="string"&&f.charAt(1)==="="&&f.substr(0,2),g&&(f=f.substr(2)),h=parseFloat(f),_ in xt&&(_==="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"&&(_=xt[_],~_.indexOf(",")&&(_=_.split(",")[0]))),v=_ in Ct,v){if(this.styles.save(_),T||(y=t._gsap,y.renderTransform&&!e.parseTransform||Se(t,e.parseTransform),b=e.smoothOrigin!==!1&&y.smooth,T=this._pt=new it(this._pt,o,I,0,1,y.renderTransform,y,0,-1),T.dep=1),_==="scale")this._pt=new it(this._pt,y,"scaleY",y.scaleY,(g?ie(y.scaleY,g+h):h)-y.scaleY||0,xi),this._pt.u=0,s.push("scaleY",_),_+="X";else if(_==="transformOrigin"){S.push(rt,0,o[rt]),f=Hs(f),y.svg?wi(t,f,0,b,0,this):(x=parseFloat(f.split(" ")[2])||0,x!==y.zOrigin&&Dt(this,y,"zOrigin",y.zOrigin,x),Dt(this,o,_,Ge(l),Ge(f)));continue}else if(_==="svgOrigin"){wi(t,f,1,b,0,this);continue}else if(_ in an){to(this,y,_,c,g?ie(c,g+f):f);continue}else if(_==="smoothOrigin"){Dt(this,y,"smooth",y.smooth,f);continue}else if(_==="force3D"){y[_]=f;continue}else if(_==="transform"){eo(this,f,t);continue}}else _ in o||(_=fe(_)||_);if(v||(h||h===0)&&(c||c===0)&&!Is.test(f)&&_ in o)p=(l+"").substr((c+"").length),h||(h=0),x=K(f)||(_ in ut.units?ut.units[_]:p),p!==x&&(c=It(t,_,l,x)),this._pt=new it(this._pt,v?y:o,_,c,(g?ie(c,g+h):h)-c,!v&&(x==="px"||_==="zIndex")&&e.autoRound!==!1?Ns:xi),this._pt.u=x||0,p!==x&&x!=="%"&&(this._pt.b=l,this._pt.r=Bs);else if(_ in o)js.call(this,t,_,l,g?g+f:f);else if(_ in t)this.add(t,_,l||t[_],g?g+f:f,r,n);else if(_!=="parseTransform"){Mi(_,f);continue}v||(_ in o?S.push(_,0,o[_]):S.push(_,1,l||t[_])),s.push(_)}}P&&Qr(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:xt,getSetter:function(t,e,i){var r=xt[e];return r&&r.indexOf(",")<0&&(e=r),e in Ct&&e!==rt&&(t._gsap.x||St(t,"x"))?i&&Ji===i?e==="scale"?Xs:Us:(Ji=i||{})&&(e==="scale"?$s:Gs):t.style&&!ki(t.style[e])?Vs:~e.indexOf("-")?Ys:Ii(t,e)},core:{_removeProperty:Qt,_getMatrix:Yi}};nt.utils.checkPrefix=fe;nt.core.getStyleSaver=rn;(function(u,t,e,i){var r=et(u+","+t+","+e,function(n){Ct[n]=1});et(t,function(n){ut.units[n]="deg",an[n]=1}),xt[r[13]]=u+","+t,et(i,function(n){var s=n.split(":");xt[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");et("x,y,z,top,right,bottom,left,width,height,fontSize,padding,margin,perspective",function(u){ut.units[u]="px"});nt.registerPlugin(fn);var Be=nt.registerPlugin(fn)||nt;Be.core.Tween;/*!
|
|
18
|
-
* ScrollToPlugin 3.12.5
|
|
19
|
-
* https://gsap.com
|
|
20
|
-
*
|
|
21
|
-
* @license Copyright 2008-2024, GreenSock. All rights reserved.
|
|
22
|
-
* Subject to the terms at https://gsap.com/standard-license or for
|
|
23
|
-
* Club GSAP members, the agreement issued with that membership.
|
|
24
|
-
* @author: Jack Doyle, jack@greensock.com
|
|
25
|
-
*/var J,_n,kt,vt,Ft,hn,cn,Fe,dn=function(){return typeof window<"u"},pn=function(){return J||dn()&&(J=window.gsap)&&J.registerPlugin&&J},mn=function(t){return typeof t=="string"},ar=function(t){return typeof t=="function"},ke=function(t,e){var i=e==="x"?"Width":"Height",r="scroll"+i,n="client"+i;return t===kt||t===vt||t===Ft?Math.max(vt[r],Ft[r])-(kt["inner"+i]||vt[n]||Ft[n]):t[r]-t["offset"+i]},Oe=function(t,e){var i="scroll"+(e==="x"?"Left":"Top");return t===kt&&(t.pageXOffset!=null?i="page"+e.toUpperCase()+"Offset":t=vt[i]!=null?vt:Ft),function(){return t[i]}},io=function(t,e,i,r){if(ar(t)&&(t=t(e,i,r)),typeof t!="object")return mn(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"&&ar(t[s])?t[s](e,i,r):t[s];return n},gn=function(t,e){if(t=hn(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===kt||e===Ft,n=r?{top:vt.clientTop-(kt.pageYOffset||vt.scrollTop||Ft.scrollTop||0),left:vt.clientLeft-(kt.pageXOffset||vt.scrollLeft||Ft.scrollLeft||0)}:e.getBoundingClientRect(),s={x:i.left-n.left,y:i.top-n.top};return!r&&e&&(s.x+=Oe(e,"x")(),s.y+=Oe(e,"y")()),s},ur=function(t,e,i,r,n){return!isNaN(t)&&typeof t!="object"?parseFloat(t)-n:mn(t)&&t.charAt(1)==="="?parseFloat(t.substr(2))*(t.charAt(0)==="-"?-1:1)+r-n:t==="max"?ke(e,i)-n:Math.min(ke(e,i),gn(t,e)[i]-n)},lr=function(){J=pn(),dn()&&J&&typeof document<"u"&&document.body&&(kt=window,Ft=document.body,vt=document.documentElement,hn=J.utils.toArray,J.config({autoKillThreshold:7}),cn=J.config(),_n=1)},Me={version:"3.12.5",name:"scrollTo",rawVars:1,register:function(t){J=t,lr()},init:function(t,e,i,r,n){_n||lr();var s=this,o=J.getProperty(t,"scrollSnapType");s.isWin=t===kt,s.target=t,s.tween=i,e=io(e,r,t,n),s.vars=e,s.autoKill=!!e.autoKill,s.getX=Oe(t,"x"),s.getY=Oe(t,"y"),s.x=s.xPrev=s.getX(),s.y=s.yPrev=s.getY(),Fe||(Fe=J.core.globals().ScrollTrigger),J.getProperty(t,"scrollBehavior")==="smooth"&&J.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,ur(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,ur(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,a=e.yPrev,l=e.isWin,f=e.snap,h=e.snapInline,c,d,m,_,p;i;)i.r(t,i.d),i=i._next;c=l||!e.skipX?e.getX():o,d=l||!e.skipY?e.getY():a,m=d-a,_=c-o,p=cn.autoKillThreshold,e.x<0&&(e.x=0),e.y<0&&(e.y=0),s&&(!e.skipX&&(_>p||_<-p)&&c<ke(r,"x")&&(e.skipX=1),!e.skipY&&(m>p||m<-p)&&d<ke(r,"y")&&(e.skipY=1),e.skipX&&e.skipY&&(n.kill(),e.vars.onAutoKill&&e.vars.onAutoKill.apply(n,e.vars.onAutoKillParams||[]))),l?kt.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,Fe&&Fe.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}};Me.max=ke;Me.getOffset=gn;Me.buildGetter=Oe;pn()&&J.registerPlugin(Me);const ro={"text-gray-200":"","w-screen":"","h-screen":""},no={key:0},so={flex:"","flex-col":"","justify-center":"","items-center":"","w-screen":"","h-screen":"","text-xl":"",italic:"",class:"bg-[#323443]"},oo={key:0},ao={key:1},uo={class:"bg-resolver-bg-1",flex:"","flex-col":"","justify-between":"","font-mono":"","w-screen":"","h-screen":"","overflow-hidden":""},lo=bi({__name:"Resolver",props:{dataSourceUrl:null},setup(u){const t=u;Be.registerPlugin(Me);const e=vn(Xi),{t:i}=Tn(),r=mt(!1),n=mt(!1),s=mt(!1),o=mt({}),a=mt([]),l=mt([]),f=mt({}),h=wn();function c(){const g=new Mn(o.value,a.value,l.value);g.buildResolver(),f.value=g}const{data:d,isError:m,error:_}=An(t.dataSourceUrl,h,!0);He(d,async()=>{var g,v,T;d.value===null||d.value===void 0||(o.value=kn((g=d.value)==null?void 0:g.contest),e.value=`${o.value.name} | ${Xi}`,a.value=On((v=d.value)==null?void 0:v.teams),l.value=Cn((T=d.value)==null?void 0:T.submissions),c(),r.value=!0)},{immediate:!0}),bn([" "],g=>{g.preventDefault()}),Re(["n"," "],()=>{if(!s.value){n.value=!0;return}f.value.next()},{dedupe:!0}),Re(["r"],()=>{f.value.rewind()},{dedupe:!0}),Re(["w"],()=>{f.value.currentIndex--}),Re(["s"],()=>{f.value.currentIndex++});const p=mt(null),x=mt(null);return Pn(()=>{He(()=>n.value,async()=>{if(!s.value&&n.value&&p.value){const g=p.value.scrollHeight,v=p.value.clientHeight;Be.to(p.value,{duration:Math.round(f.value.teams.length*.5),scrollTop:g-v,ease:"power1.inOut",onComplete:()=>{s.value=!0}})}},{immediate:!0}),He(()=>f.value.currentIndex,async()=>{if(s.value&&p.value&&x.value){const g=p.value.getBoundingClientRect(),v=g.height,T=x.value.getBoundingClientRect(),y=T.height,b=v-3*y,S=T.top-g.top-b;Be.to(p.value,{duration:2.5,ease:"power1.out",scrollTop:`+=${S}`})}},{flush:"post"})}),(g,v)=>{const T=Yn;return X(),$("div",ro,[C(r)?(X(),$("div",ao,[Q("div",null,[Q("div",uo,[Q("div",{ref_key:"resolverRef",ref:p,"h-full":"","overflow-y-auto":""},[se(Sn,{name:"resolver",tag:"ul"},{default:ai(()=>[(X(!0),$(Xt,null,fr(C(f).teams,(y,b)=>(X(),$("div",{key:y.id,ref_for:!0,ref:P=>{b===C(f).currentIndex&&(x.value=P)},class:oi([y.id===C(f).currentTeamId?"z-999":"z-0"]),"position-relative":""},[se(T,{index:b,team:y,resolver:C(f)},null,8,["index","team","resolver"])],2))),128))]),_:1})],512)])])])):(X(),$("div",no,[Q("div",so,[Q("div",null,pt(C(i)("common.loading"))+"... ",1),C(m)?(X(),$("div",oo,pt(C(_)),1)):$t("",!0)])]))])}}}),fo=Pi(lo,[["__scopeId","data-v-8e4ac916"]]),_o={key:0},ho={"mt-20":""},co={key:1},po=bi({__name:"CustomResolver",setup(u){const t=Dn();return(e,i)=>{const r=Rn,n=fo;return X(),$(Xt,null,[C(t).length===0?(X(),$("div",_o,[Q("div",ho,[se(r)])])):$t("",!0),C(t).length>0?(X(),$("div",co,[se(n,{"data-source-url":C(t)},null,8,["data-source-url"])])):$t("",!0)],64)}}}),yn={};function mo(u,t){const e=po;return X(),$("div",null,[se(e)])}typeof $i=="function"&&$i(yn);const Mo=Pi(yn,[["render",mo]]);export{Mo as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{d as w,g as h,p as _,q as V,o,c as t,h as e,n as F,b as s,K as C,k as v,s as k,A as I,u as z,m as R,C as A,F as j,E as O,G as q,a as g}from"./index-Bqug296L.js";import{a as G,b as K,d as M,B as Q,R as X}from"./index-BJlHNlHk.js";import{B as S}from"./constant-D5AETBoS.js";import{u as H,g as J}from"./useQueryBoardData-MYqwKv9X.js";import{_ as P}from"./DataSourceInput.vue_vue_type_script_setup_true_lang-ButnX5NG.js";import{b as D}from"./route-block-B_A1xBdJ.js";import{_ as W}from"./_plugin-vue_export-helper-DlAUqK2U.js";import"./index-B0AiC33S.js";import"./index-CDb5YJlm.js";import"./TheInput.vue_vue_type_script_setup_true_lang-Bstp0Uq6.js";import"./use-vmodel-DKmkNt1c.js";const Y={flex:"","flex-1":"","flex-col":"","justify-center":"","items-start":""},Z={class:"resolver-team-name",truncate:"","overflow-hidden":""},ee={"w-32":"",flex:"","flex-shrink-0":"","flex-row":"","justify-start":"","items-center":""},oe=w({__name:"BalloonBlock",props:{index:null,balloon:null},setup(d){const n=d,i=h(()=>n.index),a=h(()=>n.balloon),l=_(null),r=V(l);function x(c){return[c.location,c.organization,c.name].filter(y=>y).join(" - ")}const f=h(()=>a.value.problem.balloonColor);return(c,p)=>(o(),t("div",{ref_key:"el",ref:l,"h-24":""},[e(r)?(o(),t("div",{key:0,"h-24":"",flex:"","flex-row":"","gap-x-4":"","font-mono":"","text-4xl":"",class:F([e(i)%2===0?"bg-resolver-bg-0":"bg-resolver-bg-1"])},[s("div",{"w-20":"",flex:"","flex-shrink-0":"","justify-center":"","items-center":"",style:C({backgroundColor:e(f).background_color})},[s("div",{style:C({color:e(f).color})},v(e(a).problem.label),5)],4),s("div",Y,[s("div",Z,v(x(e(a).team)),1),p[0]||(p[0]=s("div",{flex:"","flex-row":"","text-sm":"","items-start":"","gap-x-2":""},null,-1))]),s("div",ee,v(e(a).submission.timestampToMinute),1)],2)):k("",!0)],512))}}),te={class:"bg-[#323443]","text-gray-200":"","w-screen":"","h-screen":""},se={key:0},ne={flex:"","flex-col":"","justify-center":"","items-center":"","w-screen":"","h-screen":"","text-xl":"",italic:""},ae={key:0},le={key:1},re={flex:"","flex-col":"","justify-between":""},ce=w({__name:"Balloon",props:{dataSourceUrl:null},setup(d){const n=d,i=I(S),{t:a}=z(),l=_(!1),r=_({}),x=_([]),f=_([]),c=_({}),p=R();function y(){const m=new X(r.value,x.value,f.value);m.buildBalloons(),c.value=m}const{data:u,isError:T,error:E}=H(n.dataSourceUrl,p);A(u,async()=>{var m,B,b;u.value===null||u.value===void 0||(r.value=G((m=u.value)==null?void 0:m.contest),i.value=`${r.value.name} | ${S}`,x.value=K((B=u.value)==null?void 0:B.teams),f.value=M((b=u.value)==null?void 0:b.submissions),y(),l.value=!0)},{immediate:!0});const L=h(()=>c.value.balloons.sort(Q.compare).reverse().slice(0,256));return(m,B)=>{const b=oe;return o(),t("div",te,[e(l)?(o(),t("div",le,[s("div",re,[(o(!0),t(j,null,O(e(L),($,U)=>(o(),q(b,{key:$.key,index:U,balloon:$},null,8,["index","balloon"]))),128))])])):(o(),t("div",se,[s("div",ne,[s("div",null,v(e(a)("common.loading"))+"... ",1),e(T)?(o(),t("div",ae,v(e(E)),1)):k("",!0)])]))])}}}),ie={key:0},ue={"mt-20":""},me={key:1},_e=w({__name:"CustomBalloon",setup(d){const n=J();return(i,a)=>{const l=P,r=ce;return o(),t(j,null,[e(n).length===0?(o(),t("div",ie,[s("div",ue,[g(l)])])):k("",!0),e(n).length>0?(o(),t("div",me,[g(r,{"data-source-url":e(n)},null,8,["data-source-url"])])):k("",!0)],64)}}}),N={};function de(d,n){const i=_e;return o(),t("div",null,[g(i)])}typeof D=="function"&&D(N);const $e=W(N,[["render",de]]);export{$e as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as N}from"./index-BJlHNlHk.js";import{C as $}from"./index-B0AiC33S.js";import{d as x,u as b,A as D,m as I,p as v,C as T,o,c as s,h as t,b as r,k as c,s as l,n as h,a as m,F as U}from"./index-Bqug296L.js";import{b as C}from"./constant-D5AETBoS.js";import{u as E,g as B}from"./useQueryBoardData-MYqwKv9X.js";import{_ as y}from"./_plugin-vue_export-helper-DlAUqK2U.js";import{_ as F}from"./DataSourceInput.vue_vue_type_script_setup_true_lang-ButnX5NG.js";import{b as g}from"./route-block-B_A1xBdJ.js";import"./index-CDb5YJlm.js";import"./TheInput.vue_vue_type_script_setup_true_lang-Bstp0Uq6.js";import"./use-vmodel-DKmkNt1c.js";const V={class:"bg-[#323443]","text-gray-200":"","w-screen":"","h-screen":""},j={key:0},L={flex:"","flex-col":"","justify-center":"","items-center":"","w-screen":"","h-screen":"","text-xl":"",italic:""},O={key:0},P={key:1},z={flex:"","flex-col":"","items-center":"","justify-center":"","font-mono":""},A={key:0},G={key:1},Q=x({__name:"Countdown",props:{dataSourceUrl:null},setup(u){const a=u,{t:i}=b(),p=D(C),n=I(),e=v({}),f=v(!1),{data:_,isError:k,error:w}=E(a.dataSourceUrl,n);return T(_,async()=>{var d;_.value===null||_.value===void 0||(e.value=N((d=_.value)==null?void 0:d.contest),p.value=`${e.value.name} | ${C}`,f.value=!0)},{immediate:!0}),(d,M)=>(o(),s("div",V,[t(f)?(o(),s("div",P,[r("div",z,[r("div",{"mt-20":"","text-6xl":"",class:h([t(e).getContestState(t(n)).toString()])},c(t(e).getContestState(t(n))),3),r("div",{"mt-20":"",class:h(["text-[320px]",[t(e).getContestState(t(n)).toString()]])},[t(e).getContestState(t(n))===t($).PENDING?(o(),s("div",A,c(t(e).getContestPendingTime(t(n))),1)):(o(),s("div",G,c(t(e).getContestElapsedTime(t(n))),1))],2)])])):(o(),s("div",j,[r("div",L,[r("div",null,c(t(i)("common.loading"))+"... ",1),t(k)?(o(),s("div",O,c(t(w)),1)):l("",!0)])]))]))}}),W=y(Q,[["__scopeId","data-v-2d2a8baf"]]),X={key:0},q={"mt-20":""},H={key:1},J=x({__name:"CustomCountdown",setup(u){const a=B();return(i,p)=>{const n=F,e=W;return o(),s(U,null,[t(a).length===0?(o(),s("div",X,[r("div",q,[m(n)])])):l("",!0),t(a).length>0?(o(),s("div",H,[m(e,{"data-source-url":t(a)},null,8,["data-source-url"])])):l("",!0)],64)}}}),S={};function K(u,a){const i=J;return o(),s("div",null,[m(i)])}typeof g=="function"&&g(S);const it=y(S,[["render",K]]);export{it as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var at=r=>{throw TypeError(r)};var K=(r,t,s)=>t.has(r)||at("Cannot "+s);var e=(r,t,s)=>(K(r,t,"read from private field"),s?s.call(r):t.get(r)),b=(r,t,s)=>t.has(r)?at("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(r):t.set(r,s),l=(r,t,s,i)=>(K(r,t,"write to private field"),i?i.call(r,s):t.set(r,s),s),f=(r,t,s)=>(K(r,t,"access private method"),s);import{u as mt}from"./index-CDb5YJlm.js";import{a4 as gt,a5 as ot,a6 as w,a7 as G,a8 as B,a9 as Ot,aa as ht,ab as ut,ac as Ct,ad as St,ae as wt,af as ct,ag as It,ah as Tt,ai as Et,aj as Qt,g as vt,ak as Dt,al as Ft,C as W,am as lt,an as Ut,ao as dt,ap as jt}from"./index-Bqug296L.js";import{a as xt}from"./constant-D5AETBoS.js";var v,n,k,m,D,M,T,S,N,A,L,F,U,E,_,u,$,Y,H,J,X,Z,q,tt,yt,bt,Pt=(bt=class extends gt{constructor(t,s){super();b(this,u);b(this,v);b(this,n);b(this,k);b(this,m);b(this,D);b(this,M);b(this,T);b(this,S);b(this,N);b(this,A);b(this,L);b(this,F);b(this,U);b(this,E);b(this,_,new Set);this.options=s,l(this,v,t),l(this,S,null),l(this,T,ot()),this.options.experimental_prefetchInRender||e(this,T).reject(new Error("experimental_prefetchInRender feature flag is not enabled")),this.bindMethods(),this.setOptions(s)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(e(this,n).addObserver(this),ft(e(this,n),this.options)?f(this,u,$).call(this):this.updateResult(),f(this,u,X).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return et(e(this,n),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return et(e(this,n),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,f(this,u,Z).call(this),f(this,u,q).call(this),e(this,n).removeObserver(this)}setOptions(t,s){const i=this.options,o=e(this,n);if(this.options=e(this,v).defaultQueryOptions(t),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof w(this.options.enabled,e(this,n))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");f(this,u,tt).call(this),e(this,n).setOptions(this.options),i._defaulted&&!G(this.options,i)&&e(this,v).getQueryCache().notify({type:"observerOptionsUpdated",query:e(this,n),observer:this});const a=this.hasListeners();a&&pt(e(this,n),o,this.options,i)&&f(this,u,$).call(this),this.updateResult(s),a&&(e(this,n)!==o||w(this.options.enabled,e(this,n))!==w(i.enabled,e(this,n))||B(this.options.staleTime,e(this,n))!==B(i.staleTime,e(this,n)))&&f(this,u,Y).call(this);const c=f(this,u,H).call(this);a&&(e(this,n)!==o||w(this.options.enabled,e(this,n))!==w(i.enabled,e(this,n))||c!==e(this,E))&&f(this,u,J).call(this,c)}getOptimisticResult(t){const s=e(this,v).getQueryCache().build(e(this,v),t),i=this.createResult(s,t);return At(this,i)&&(l(this,m,i),l(this,M,this.options),l(this,D,e(this,n).state)),i}getCurrentResult(){return e(this,m)}trackResult(t,s){const i={};return Object.keys(t).forEach(o=>{Object.defineProperty(i,o,{configurable:!1,enumerable:!0,get:()=>(this.trackProp(o),s==null||s(o),t[o])})}),i}trackProp(t){e(this,_).add(t)}getCurrentQuery(){return e(this,n)}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){const s=e(this,v).defaultQueryOptions(t),i=e(this,v).getQueryCache().build(e(this,v),s);return i.isFetchingOptimistic=!0,i.fetch().then(()=>this.createResult(i,s))}fetch(t){return f(this,u,$).call(this,{...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),e(this,m)))}createResult(t,s){var nt;const i=e(this,n),o=this.options,a=e(this,m),c=e(this,D),p=e(this,M),R=t!==i?t.state:e(this,k),{state:g}=t;let d={...g},Q=!1,h;if(s._optimisticResults){const O=this.hasListeners(),z=!O&&ft(t,s),Rt=O&&pt(t,i,s,o);(z||Rt)&&(d={...d,...wt(g.data,t.options)}),s._optimisticResults==="isRestoring"&&(d.fetchStatus="idle")}let{error:I,errorUpdatedAt:j,status:C}=d;if(s.select&&d.data!==void 0)if(a&&d.data===(c==null?void 0:c.data)&&s.select===e(this,N))h=e(this,A);else try{l(this,N,s.select),h=s.select(d.data),h=ct(a==null?void 0:a.data,h,s),l(this,A,h),l(this,S,null)}catch(O){l(this,S,O)}else h=d.data;if(s.placeholderData!==void 0&&h===void 0&&C==="pending"){let O;if(a!=null&&a.isPlaceholderData&&s.placeholderData===(p==null?void 0:p.placeholderData))O=a.data;else if(O=typeof s.placeholderData=="function"?s.placeholderData((nt=e(this,L))==null?void 0:nt.state.data,e(this,L)):s.placeholderData,s.select&&O!==void 0)try{O=s.select(O),l(this,S,null)}catch(z){l(this,S,z)}O!==void 0&&(C="success",h=ct(a==null?void 0:a.data,O,s),Q=!0)}e(this,S)&&(I=e(this,S),h=e(this,A),j=Date.now(),C="error");const x=d.fetchStatus==="fetching",P=C==="pending",V=C==="error",it=P&&x,rt=h!==void 0;return{status:C,fetchStatus:d.fetchStatus,isPending:P,isSuccess:C==="success",isError:V,isInitialLoading:it,isLoading:it,data:h,dataUpdatedAt:d.dataUpdatedAt,error:I,errorUpdatedAt:j,failureCount:d.fetchFailureCount,failureReason:d.fetchFailureReason,errorUpdateCount:d.errorUpdateCount,isFetched:d.dataUpdateCount>0||d.errorUpdateCount>0,isFetchedAfterMount:d.dataUpdateCount>R.dataUpdateCount||d.errorUpdateCount>R.errorUpdateCount,isFetching:x,isRefetching:x&&!P,isLoadingError:V&&!rt,isPaused:d.fetchStatus==="paused",isPlaceholderData:Q,isRefetchError:V&&rt,isStale:st(t,s),refetch:this.refetch,promise:e(this,T)}}updateResult(t){const s=e(this,m),i=this.createResult(e(this,n),this.options);if(l(this,D,e(this,n).state),l(this,M,this.options),e(this,D).data!==void 0&&l(this,L,e(this,n)),G(i,s))return;if(this.options.experimental_prefetchInRender){const c=R=>{i.status==="error"?R.reject(i.error):i.data!==void 0&&R.resolve(i.data)},p=()=>{const R=l(this,T,i.promise=ot());c(R)},y=e(this,T);switch(y.status){case"pending":c(y);break;case"fulfilled":(i.status==="error"||i.data!==y.value)&&p();break;case"rejected":(i.status!=="error"||i.error!==y.reason)&&p();break}}l(this,m,i);const o={},a=()=>{if(!s)return!0;const{notifyOnChangeProps:c}=this.options,p=typeof c=="function"?c():c;if(p==="all"||!p&&!e(this,_).size)return!0;const y=new Set(p??e(this,_));return this.options.throwOnError&&y.add("error"),Object.keys(e(this,m)).some(R=>{const g=R;return e(this,m)[g]!==s[g]&&y.has(g)})};(t==null?void 0:t.listeners)!==!1&&a()&&(o.listeners=!0),f(this,u,yt).call(this,{...o,...t})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&f(this,u,X).call(this)}},v=new WeakMap,n=new WeakMap,k=new WeakMap,m=new WeakMap,D=new WeakMap,M=new WeakMap,T=new WeakMap,S=new WeakMap,N=new WeakMap,A=new WeakMap,L=new WeakMap,F=new WeakMap,U=new WeakMap,E=new WeakMap,_=new WeakMap,u=new WeakSet,$=function(t){f(this,u,tt).call(this);let s=e(this,n).fetch(this.options,t);return t!=null&&t.throwOnError||(s=s.catch(Ot)),s},Y=function(){f(this,u,Z).call(this);const t=B(this.options.staleTime,e(this,n));if(ht||e(this,m).isStale||!ut(t))return;const i=Ct(e(this,m).dataUpdatedAt,t)+1;l(this,F,setTimeout(()=>{e(this,m).isStale||this.updateResult()},i))},H=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(e(this,n)):this.options.refetchInterval)??!1},J=function(t){f(this,u,q).call(this),l(this,E,t),!(ht||w(this.options.enabled,e(this,n))===!1||!ut(e(this,E))||e(this,E)===0)&&l(this,U,setInterval(()=>{(this.options.refetchIntervalInBackground||St.isFocused())&&f(this,u,$).call(this)},e(this,E)))},X=function(){f(this,u,Y).call(this),f(this,u,J).call(this,f(this,u,H).call(this))},Z=function(){e(this,F)&&(clearTimeout(e(this,F)),l(this,F,void 0))},q=function(){e(this,U)&&(clearInterval(e(this,U)),l(this,U,void 0))},tt=function(){const t=e(this,v).getQueryCache().build(e(this,v),this.options);if(t===e(this,n))return;const s=e(this,n);l(this,n,t),l(this,k,t.state),this.hasListeners()&&(s==null||s.removeObserver(this),t.addObserver(this))},yt=function(t){It.batch(()=>{t.listeners&&this.listeners.forEach(s=>{s(e(this,m))}),e(this,v).getQueryCache().notify({query:e(this,n),type:"observerResultsUpdated"})})},bt);function Mt(r,t){return w(t.enabled,r)!==!1&&r.state.data===void 0&&!(r.state.status==="error"&&t.retryOnMount===!1)}function ft(r,t){return Mt(r,t)||r.state.data!==void 0&&et(r,t,t.refetchOnMount)}function et(r,t,s){if(w(t.enabled,r)!==!1){const i=typeof s=="function"?s(r):s;return i==="always"||i!==!1&&st(r,t)}return!1}function pt(r,t,s,i){return(r!==t||w(i.enabled,r)===!1)&&(!s.suspense||r.state.status!=="error")&&st(r,s)}function st(r,t){return w(t.enabled,r)!==!1&&r.isStaleByTime(B(t.staleTime,r))}function At(r,t){return!G(r.getCurrentResult(),t)}function Lt(r=""){if(!Tt())throw new Error("vue-query hooks can only be used inside setup() function or functions that support injection context.");const t=Qt(r),s=Et(t);if(!s)throw new Error("No 'queryClient' found in Vue context, use 'VueQueryPlugin' to properly initialize the library.");return s}function _t(r,t,s){const i=Lt(),o=vt(()=>{const h=Dt(t);typeof h.enabled=="function"&&(h.enabled=h.enabled());const I=i.defaultQueryOptions(h);return I._optimisticResults=i.isRestoring.value?"isRestoring":"optimistic",I}),a=new r(i,o.value),c=Ft(a.getCurrentResult());let p=()=>{};W(i.isRestoring,h=>{h||(p(),p=a.subscribe(I=>{lt(c,I)}))},{immediate:!0});const y=()=>{a.setOptions(o.value),lt(c,a.getCurrentResult())};W(o,y),Ut(()=>{p()});const R=(...h)=>(y(),c.refetch(...h)),g=()=>new Promise((h,I)=>{let j=()=>{};const C=()=>{if(o.value.enabled!==!1){a.setOptions(o.value);const x=a.getOptimisticResult(o.value);x.isStale?(j(),a.fetchOptimistic(o.value).then(h,P=>{dt(o.value.throwOnError,[P,a.getCurrentQuery()])?I(P):h(a.getCurrentResult())})):(j(),h(x))}};C(),j=W(o,C)});W(()=>c.error,h=>{if(c.isError&&!c.isFetching&&dt(o.value.throwOnError,[h,a.getCurrentQuery()]))throw h});const Q=jt(c);for(const h in c)typeof c[h]=="function"&&(Q[h]=c[h]);return Q.suspense=g,Q.refetch=R,Q}function $t(r,t){return _t(Pt,r)}function Gt(){return mt("data-source","",{transform:String})}function Yt(){return mt("battle-of-giants","",{transform:String})}const kt=3;async function Nt(r,t){const s=r.startsWith("/")?r.slice(1):r;let i=`${window.DATA_HOST}${s}`;r.startsWith("http")&&(i=r),i.endsWith("/")&&(i=i.slice(0,-1));const o=await fetch(`${i}/config.json?t=${t??0}`),a=await fetch(`${i}/team.json?t=${t??0}`),c=await fetch(`${i}/run.json?t=${t??0}`),{status:p,statusText:y}=o;if(p>=300||p<200)throw new Error(`fetch data failed. [status=${p}] [statusText=${y}]`);return Promise.all([o.json(),a.json(),c.json()]).then(g=>({contest:g[0],teams:g[1],submissions:g[2]}))}function Ht(r,t,s=!1){let i=3e4,o=i;const a=vt(()=>Math.floor(t.value.getTime()/1e3/10));return xt.value==="I18N"&&(i=10*1e3,o=i),s&&(i=Number.POSITIVE_INFINITY,o=!1),$t({queryKey:[r,a.value],queryFn:()=>Nt(r,a.value),retry:kt,staleTime:i,refetchInterval:o})}export{Yt as a,Gt as g,Ht as u};
|
|
File without changes
|
|
File without changes
|