@xcpcio/board-app 0.69.2 → 0.69.4
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-uTXpjEyT.js → Balloon.vue_vue_type_script_setup_true_lang-BYUKhrtC.js} +1 -1
- package/dist/assets/{Board-BVen75jV.js → Board-B9qlHyDI.js} +1 -1
- package/dist/assets/{ContestStateBadge-Bka1vlys.js → ContestStateBadge-CCVy2wZJ.js} +1 -1
- package/dist/assets/{Countdown-CuCYTlxc.js → Countdown-cd9telur.js} +1 -1
- package/dist/assets/{DataSourceInput.vue_vue_type_script_setup_true_lang-BSR2VCtr.js → DataSourceInput.vue_vue_type_script_setup_true_lang-B5xllChj.js} +1 -1
- package/dist/assets/{Footer-Cat0xWt3.js → Footer-ClNjZVUX.js} +1 -1
- package/dist/assets/{NavBar-CTJpqa1c.js → NavBar--v06rckE.js} +1 -1
- package/dist/assets/{Resolver-CA2dYvtd.js → Resolver-leMWgtXW.js} +1 -1
- package/dist/assets/{RightArrowIcon-DqhLTM22.js → RightArrowIcon-C7gnivmE.js} +1 -1
- package/dist/assets/{TheInput.vue_vue_type_script_setup_true_lang-dVwMfhGZ.js → TheInput.vue_vue_type_script_setup_true_lang-Cq-GdaDA.js} +1 -1
- package/dist/assets/{Tooltip.vue_vue_type_script_setup_true_lang-CD6pyetv.js → Tooltip.vue_vue_type_script_setup_true_lang-B47ETaN9.js} +1 -1
- package/dist/assets/{_...all_-_WtEQ4EM.js → _...all_-DB8qOqv8.js} +1 -1
- package/dist/assets/{_...all_-DIhc4Rje.js → _...all_-a-Uvc7a9.js} +1 -1
- package/dist/assets/{_name_-DJL9b75J.js → _name_-BUzaHppL.js} +1 -1
- package/dist/assets/{about-GHlai5GX.js → about-DI_NGucr.js} +1 -1
- package/dist/assets/board-iHKEEikR.js +1 -0
- package/dist/assets/{board-layout-B5o6b4kc.js → board-layout-BHEsJV7B.js} +1 -1
- package/dist/assets/constant-CZ5yULfd.js +1 -0
- package/dist/assets/{dayjs-BQfTCxeN.js → dayjs-CZgaplJl.js} +1 -1
- package/dist/assets/{default-VEZ9IcKC.js → default-DWmoYCsL.js} +1 -1
- package/dist/assets/{headless-BsvNToua.js → headless-CdZcsu6X.js} +1 -1
- package/dist/assets/{home-DqbfvXjR.js → home-Ca7VxYvt.js} +1 -1
- package/dist/assets/{index-Biy_Zewt.js → index-B0Nibdcu.js} +1 -1
- package/dist/assets/{index-BKcY3Swi.js → index-B94pQy55.js} +4 -4
- package/dist/assets/index-BRDPFAYp.js +1 -0
- package/dist/assets/index-Bng_iWYy.js +1 -0
- package/dist/assets/{index-Cflw9R76.js → index-CrdVtfk1.js} +1 -1
- package/dist/assets/index-DEzYdclv.js +1 -0
- package/dist/assets/{index-layout-DZ-wXoYi.js → index-layout-BcC1Tv9X.js} +1 -1
- package/dist/assets/{pagination-DOI9pV_R.js → pagination-nWSlxTuW.js} +1 -1
- package/dist/assets/{person-CSt0lZte.js → person-CJEnqSCh.js} +1 -1
- package/dist/assets/{query-BhmpY-wC.js → query-DRKvftyM.js} +1 -1
- package/dist/assets/{rank-C4H4NPpa.js → rank-CihvP4tD.js} +1 -1
- package/dist/assets/{test-CV0Sv4fJ.js → test-plNUzEC6.js} +1 -1
- package/dist/assets/{use-vmodel-B4t9FIsp.js → use-vmodel-DYni6XFa.js} +1 -1
- package/dist/assets/{useQueryBoardData-ByPXHJzy.js → useQueryBoardData-DfePVUs0.js} +1 -1
- package/dist/assets/{user-BKO65tKF.js → user-Cbn7G8ga.js} +1 -1
- package/dist/assets/{virtual_pwa-register-DhDx7RWe.js → virtual_pwa-register-DHt7vHCS.js} +1 -1
- package/dist/index.html +1 -1
- package/dist/sw.js +1 -1
- package/package.json +3 -3
- package/dist/assets/board-D1IA4Bp7.js +0 -1
- package/dist/assets/constant-D2ypMDfj.js +0 -1
- package/dist/assets/index-C16ic14K.js +0 -1
- package/dist/assets/index-Hm5mPsdo.js +0 -1
- package/dist/assets/index-sErGfwye.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{I as n}from"./dayjs-
|
|
1
|
+
import{I as n}from"./dayjs-CZgaplJl.js";class e{constructor(r){this.name=r??new n}toIPerson(){return{name:this.name.toI18NStringSet(),cf_id:this.cfID,icpc_id:this.icpcID}}static fromIPerson(r){const c=new e;return c.name=n.fromIText(r.name),c.cfID=r.cf_id,c.icpcID=r.icpc_id,c}}function m(t){if(!t)return[];if(typeof t=="string"){for(const r of" ,、|")if(t.includes(r))return t.split(r).map(c=>new e(n.fromIText(c)));return[new e(n.fromIText(t))]}return Array.isArray(t)?t.length>0&&typeof t[0]=="object"&&"name"in t[0]?t.map(r=>e.fromIPerson(r)):t.map(r=>new e(n.fromIText(r))):[new e(n.fromIText(t))]}export{e as P,m as c};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{I as fi,c as Un,d as Xr,g as Pf}from"./dayjs-
|
|
1
|
+
import{I as fi,c as Un,d as Xr,g as Pf}from"./dayjs-CZgaplJl.js";import{R as Qr,M as _p,g as bp,H as mp,av as vp,aw as wp,ax as Vr,P as yp,C as xp}from"./index-B94pQy55.js";var je=(i=>(i.UNKNOWN="Unknown",i.GOLD="Gold",i.SILVER="Silver",i.BRONZE="Bronze",i.HONORABLE="Honorable",i))(je||{});class No{constructor(){this.medalType="Unknown",this.minRank=0,this.maxRank=0}}function D_(i){return["Gold","Silver","Bronze","Honorable"].includes(i)}var nr={exports:{}};/**
|
|
2
2
|
* @license
|
|
3
3
|
* Lodash <https://lodash.com/>
|
|
4
4
|
* Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{k as H,_ as f,P as $,T as q,M as T,A as R}from"./query-BhmpY-wC.js";import{I as F}from"./dayjs-BQfTCxeN.js";import{c as A}from"./person-CSt0lZte.js";var r=(e=>(e.PENDING="PENDING",e.WAITING="WAITING",e.PREPARING="PREPARING",e.COMPILING="COMPILING",e.RUNNING="RUNNING",e.JUDGING="JUDGING",e.FROZEN="FROZEN",e.ACCEPTED="ACCEPTED",e.CORRECT="CORRECT",e.PARTIALLY_CORRECT="PARTIALLY_CORRECT",e.REJECTED="REJECTED",e.WRONG_ANSWER="WRONG_ANSWER",e.NO_OUTPUT="NO_OUTPUT",e.COMPILATION_ERROR="COMPILATION_ERROR",e.PRESENTATION_ERROR="PRESENTATION_ERROR",e.RUNTIME_ERROR="RUNTIME_ERROR",e.TIME_LIMIT_EXCEEDED="TIME_LIMIT_EXCEEDED",e.MEMORY_LIMIT_EXCEEDED="MEMORY_LIMIT_EXCEEDED",e.OUTPUT_LIMIT_EXCEEDED="OUTPUT_LIMIT_EXCEEDED",e.IDLENESS_LIMIT_EXCEEDED="IDLENESS_LIMIT_EXCEEDED",e.HACKED="HACKED",e.JUDGEMENT_FAILED="JUDGEMENT_FAILED",e.CONFIGURATION_ERROR="CONFIGURATION_ERROR",e.FILE_ERROR="FILE_ERROR",e.SYSTEM_ERROR="SYSTEM_ERROR",e.CANCELED="CANCELED",e.SKIPPED="SKIPPED",e.SECURITY_VIOLATED="SECURITY_VIOLATED",e.DENIAL_OF_JUDGEMENT="DENIAL_OF_JUDGEMENT",e.UNKNOWN="UNKNOWN",e.UNDEFINED="UNDEFINED",e))(r||{});const _t={PENDING:"Pending",WAITING:"Waiting",PREPARING:"Preparing",COMPILING:"Compiling",RUNNING:"Running",JUDGING:"Judging",FROZEN:"Frozen",ACCEPTED:"Accepted",CORRECT:"Correct",PARTIALLY_CORRECT:"Partially Correct",REJECTED:"Rejected",WRONG_ANSWER:"Wrong Answer",NO_OUTPUT:"No Output",COMPILATION_ERROR:"Compilation Error",PRESENTATION_ERROR:"Presentation Error",RUNTIME_ERROR:"Runtime Error",TIME_LIMIT_EXCEEDED:"Time Limit Exceeded",MEMORY_LIMIT_EXCEEDED:"Memory Limit Exceeded",OUTPUT_LIMIT_EXCEEDED:"Output Limit Exceeded",IDLENESS_LIMIT_EXCEEDED:"Idleness Limit Exceeded",HACKED:"Hacked",JUDGEMENT_FAILED:"Judgement Failed",CONFIGURATION_ERROR:"Configuration Error",FILE_ERROR:"File Error",SYSTEM_ERROR:"System Error",CANCELED:"Canceled",SKIPPED:"Skipped",SECURITY_VIOLATED:"Security Violated",DENIAL_OF_JUDGEMENT:"Denial Of Judgement",UNKNOWN:"Unknown",UNDEFINED:"Undefined"},Dt={PENDING:"PD",WAITING:"PD",PREPARING:"PD",COMPILING:"PD",RUNNING:"PD",JUDGING:"PD",FROZEN:"?",ACCEPTED:"AC",CORRECT:"AC",PARTIALLY_CORRECT:"RJ",REJECTED:"RJ",WRONG_ANSWER:"WA",NO_OUTPUT:"NO",COMPILATION_ERROR:"CE",PRESENTATION_ERROR:"PE",RUNTIME_ERROR:"RTE",TIME_LIMIT_EXCEEDED:"TLE",MEMORY_LIMIT_EXCEEDED:"MLE",OUTPUT_LIMIT_EXCEEDED:"OLE",IDLENESS_LIMIT_EXCEEDED:"ILE",HACKED:"RJ",JUDGEMENT_FAILED:"RJ",CONFIGURATION_ERROR:"RJ",FILE_ERROR:"RJ",SYSTEM_ERROR:"RJ",CANCELED:"RJ",SKIPPED:"RJ",SECURITY_VIOLATED:"RJ",DENIAL_OF_JUDGEMENT:"RJ",UNKNOWN:"RJ",UNDEFINED:"RJ"};function Q(e){return e=e.toUpperCase().replace(" ","_"),["OK","AC",r.ACCEPTED.toString()].includes(e)||[r.CORRECT.toString()].includes(e)?r.ACCEPTED:[r.PARTIALLY_CORRECT.toString()].includes(e)?r.PARTIALLY_CORRECT:["WA",r.WRONG_ANSWER.toString()].includes(e)?r.WRONG_ANSWER:["RJ","INCORRECT",r.REJECTED.toString()].includes(e)?r.REJECTED:["NO",r.NO_OUTPUT.toString()].includes(e)?r.NO_OUTPUT:["PD",r.PENDING.toString()].includes(e)?r.PENDING:[r.WAITING.toString()].includes(e)?r.WAITING:[r.JUDGING.toString()].includes(e)?r.JUDGING:[r.FROZEN.toString()].includes(e)?r.FROZEN:["CE",r.COMPILATION_ERROR.toString()].includes(e)?r.COMPILATION_ERROR:["PE",r.PRESENTATION_ERROR.toString()].includes(e)?r.PRESENTATION_ERROR:["TL","TLE",r.TIME_LIMIT_EXCEEDED.toString()].includes(e)?r.TIME_LIMIT_EXCEEDED:["ML","MLE",r.MEMORY_LIMIT_EXCEEDED.toString()].includes(e)?r.MEMORY_LIMIT_EXCEEDED:["OL","OLE",r.OUTPUT_LIMIT_EXCEEDED.toString()].includes(e)?r.OUTPUT_LIMIT_EXCEEDED:["IL","ILE",r.IDLENESS_LIMIT_EXCEEDED.toString()].includes(e)?r.IDLENESS_LIMIT_EXCEEDED:["RT","RE","RTE",r.RUNTIME_ERROR.toString()].includes(e)?r.RUNTIME_ERROR:["JE",r.JUDGEMENT_FAILED.toString()].includes(e)?r.JUDGEMENT_FAILED:["SE",r.SYSTEM_ERROR.toString()].includes(e)?r.SYSTEM_ERROR:[r.HACKED.toString()].includes(e)?r.HACKED:[r.CONFIGURATION_ERROR.toString()].includes(e)?r.CONFIGURATION_ERROR:[r.CANCELED.toString()].includes(e)?r.CANCELED:[r.SKIPPED.toString()].includes(e)?r.SKIPPED:[r.SECURITY_VIOLATED.toString()].includes(e)?r.SECURITY_VIOLATED:[r.DENIAL_OF_JUDGEMENT.toString()].includes(e)?r.DENIAL_OF_JUDGEMENT:r.UNKNOWN}function tt(e){return[r.ACCEPTED,r.CORRECT].includes(e)}function et(e){return[r.RUNTIME_ERROR,r.TIME_LIMIT_EXCEEDED,r.MEMORY_LIMIT_EXCEEDED,r.OUTPUT_LIMIT_EXCEEDED,r.IDLENESS_LIMIT_EXCEEDED,r.WRONG_ANSWER,r.REJECTED,r.NO_OUTPUT,r.JUDGEMENT_FAILED,r.HACKED].includes(e)}function it(e){return[r.PENDING,r.WAITING,r.COMPILING,r.JUDGING,r.FROZEN].includes(e)}function st(e){return[r.COMPILATION_ERROR,r.PRESENTATION_ERROR,r.CONFIGURATION_ERROR,r.SYSTEM_ERROR,r.CANCELED,r.SKIPPED,r.UNKNOWN,r.UNDEFINED].includes(e)}class b{constructor(){this.status=r.UNKNOWN,this.isIgnore=!1,this.isSolved=!1,this.isFirstSolved=!1,this.id="",this.teamId="",this.problemId="",this.timestamp=0,this.timestampUnit="second"}isAccepted(){return tt(this.status)}isRejected(){return et(this.status)}isPending(){return it(this.status)}isNotCalculatedPenaltyStatus(){return st(this.status)}get timestampToMinute(){return this.timestampUnit==="nanosecond"?Math.floor(this.timestamp/60/1e3/1e3/1e3):this.timestampUnit==="microsecond"?Math.floor(this.timestamp/60/1e3/1e3):this.timestampUnit==="millisecond"?Math.floor(this.timestamp/60/1e3):Math.floor(this.timestamp/60)}get timestampToSecond(){return this.timestampUnit==="nanosecond"?Math.floor(this.timestamp/1e3/1e3/1e3):this.timestampUnit==="microsecond"?Math.floor(this.timestamp/1e3/1e3):this.timestampUnit==="millisecond"?Math.floor(this.timestamp/1e3):this.timestamp}get timestampDisplayFormatWithSecond(){const t=this.timestampToSecond,i=Math.floor(t/3600),s=Math.floor(t%3600/60),n=t%60,a=m=>m.toString().padStart(2,"0");return`${a(i)}:${a(s)}:${a(n)}`}get timestampDisplayFormatWithMilliSecond(){let t=this.timestampDisplayFormatWithSecond;if(this.timestampUnit==="millisecond"){const i=(this.timestamp%1e3).toString().padStart(3,"0");t+=`.${i}`}return t}static compare(t,i){if(t.timestamp!==i.timestamp)return t.timestamp-i.timestamp;if(t.teamId===i.teamId){if(t.isAccepted()&&!i.isAccepted())return-1;if(!t.isAccepted()&&i.isAccepted())return 1}return t.id<i.id?-1:t.id===i.id?0:1}}function O(e,t){const i=new b;return i.id=String(e.id??e.submission_id??""),i.teamId=String(e.team_id),i.problemId=String(e.problem_id),i.timestamp=e.timestamp,i.status=Q(e.status),i.isIgnore=e.is_ignore??!1,e.time&&(i.time=e.time),e.language&&(i.language=e.language),e.reaction?i.reaction=e.reaction:t?.options.reactionVideoUrlTemplate&&(i.reaction={url:t.options.reactionVideoUrlTemplate.replace(/\$\{submission_id\}/,i.id)}),i}function Ct(e,t){return Array.isArray(e)?e.map((i,s)=>O({...i,id:i.submission_id??String(s)},t)):Object.entries(e).map(([s,n])=>O({...n,id:n.submission_id??s},t))}class p{constructor(){this.id="",this.name=new F,this.organization="",this.group=[],this.tag=[],this.coaches=[],this.members=[],this.rank=0,this.originalRank=0,this.organizationRank=-1,this.solvedProblemNum=0,this.attemptedProblemNum=0,this.lastSolvedProblem=null,this.lastSolvedProblemStatistics=null,this.penalty=0,this.problemStatistics=[],this.problemStatisticsMap=new Map,this.submissions=[],this.placeChartPoints=[],this.awards=[],this.missingPhoto=!1,this.se=0}reset(){this.rank=0,this.originalRank=0,this.organizationRank=-1,this.solvedProblemNum=0,this.attemptedProblemNum=0,this.lastSolvedProblem=null,this.lastSolvedProblemStatistics=null,this.penalty=0,this.problemStatistics=[],this.problemStatisticsMap=new Map,this.submissions=[],this.placeChartPoints=[],this.awards=[],this.se=0}get penaltyToMinute(){return Math.floor(this.penalty/60)}get isUnofficial(){return this.group.includes("unofficial")}get isGirl(){return this.group.includes("girl")}get isEffectiveTeam(){return this.solvedProblemNum>0}get dirt(){const t=this.attemptedProblemNum,i=this.solvedProblemNum;return H(t,i)}membersToString(t){return this.members.map(i=>i.name.getOrDefault(t)).join(", ")}coachesToString(t){return this.coaches.map(i=>i.name.getOrDefault(t)).join(", ")}calcSE(t){let i=0,s=0;if(this.problemStatistics.forEach(a=>{a.isSolved&&(i+=1,s+=a.problem.statistics.acceptedNum)}),t===0||i===0)return 0;const n=(i*t-s)/t/i;return this.se=Math.round(n*100)/100,this.se}calcSolvedData(t){this.solvedProblemNum=0,this.attemptedProblemNum=0,this.penalty=0;for(const i of this.problemStatistics)i.isAccepted&&(this.solvedProblemNum++,this.attemptedProblemNum+=i.failedCount+1,t?.calculationOfPenalty==="in_seconds"||t?.calculationOfPenalty==="accumulate_in_seconds_and_finally_to_the_minute"?this.penalty+=i.penaltyInSecond:this.penalty+=i.penalty);t?.calculationOfPenalty==="accumulate_in_seconds_and_finally_to_the_minute"&&(this.penalty=Math.floor(this.penalty/60)*60)}calcAwards(t){if(t)for(const i of t)this.rank>=i.minRank&&this.rank<=i.maxRank&&this.awards.push(i.medalType)}isEqualRank(t){return this.solvedProblemNum===t.solvedProblemNum&&this.penalty===t.penalty&&this.lastSolvedProblemStatistics?.solvedTimestampToMinute===t.lastSolvedProblemStatistics?.solvedTimestampToMinute}postProcessPlaceChartPoints(){if(this.placeChartPoints.length===0)return;const t=[];t.push(this.placeChartPoints[0]);for(let i=1;i<this.placeChartPoints.length-1;i++){const s=this.placeChartPoints[i],n=t[t.length-1];(s.rank!==n.rank||s.lastSolvedProblem!==n.lastSolvedProblem)&&t.push(s)}this.placeChartPoints.length>1&&t.push(this.placeChartPoints[this.placeChartPoints.length-1]),this.placeChartPoints=t}static compare(t,i){return t.solvedProblemNum!==i.solvedProblemNum?i.solvedProblemNum-t.solvedProblemNum:t.penalty!==i.penalty?t.penalty-i.penalty:t.lastSolvedProblemStatistics&&i.lastSolvedProblemStatistics?t.lastSolvedProblemStatistics.solvedTimestampToMinute-i.lastSolvedProblemStatistics.solvedTimestampToMinute:t.name<i.name?-1:t.name>i.name?1:0}}function M(e){const t=new p;t.id=e.id??e.team_id??"",t.name=F.fromIText(e.name??e.team_name??""),t.organization=e.organization??"",t.group=f.cloneDeep(e.group??[]),t.tag=f.cloneDeep(e.tag??[]),t.coaches=A(e.coach),t.members=A(e.members),e.official&&t.group.push("official"),e.unofficial&&t.group.push("unofficial"),e.girl&&t.group.push("girl");{const i=e;for(const s of Object.keys(i))s!=="missing_photo"&&(i[s]===1||i[s]===!0)&&t.group.push(s)}return t.group=[...new Set(t.group)],t.group.sort(),t.badge=e.badge,e.missing_photo&&(t.missingPhoto=!0),t.photo=e.photo,e.location&&(t.location=e.location),e.icpc_id&&(t.icpcID=e.icpc_id),t}function Pt(e){return Array.isArray(e)?e.map(t=>M(t)):Object.entries(e).map(([i,s])=>M({...s,team_id:s.team_id??i}))}class nt{constructor(){this.problem=new $,this.team=new p,this.submission=new b}get key(){return`balloon-${this.team.id}-${this.problem.id}`}static compare(t,i){return b.compare(t.submission,i.submission)}}const G="3.7.8",rt=G,h=typeof Buffer=="function",y=typeof TextDecoder=="function"?new TextDecoder:void 0,U=typeof TextEncoder=="function"?new TextEncoder:void 0,at="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",d=Array.prototype.slice.call(at),I=(e=>{let t={};return e.forEach((i,s)=>t[i]=s),t})(d),ot=/^(?:[A-Za-z\d+\/]{4})*?(?:[A-Za-z\d+\/]{2}(?:==)?|[A-Za-z\d+\/]{3}=?)?$/,u=String.fromCharCode.bind(String),L=typeof Uint8Array.from=="function"?Uint8Array.from.bind(Uint8Array):e=>new Uint8Array(Array.prototype.slice.call(e,0)),k=e=>e.replace(/=/g,"").replace(/[+\/]/g,t=>t=="+"?"-":"_"),w=e=>e.replace(/[^A-Za-z0-9\+\/]/g,""),B=e=>{let t,i,s,n,a="";const l=e.length%3;for(let m=0;m<e.length;){if((i=e.charCodeAt(m++))>255||(s=e.charCodeAt(m++))>255||(n=e.charCodeAt(m++))>255)throw new TypeError("invalid character found");t=i<<16|s<<8|n,a+=d[t>>18&63]+d[t>>12&63]+d[t>>6&63]+d[t&63]}return l?a.slice(0,l-3)+"===".substring(l):a},P=typeof btoa=="function"?e=>btoa(e):h?e=>Buffer.from(e,"binary").toString("base64"):B,D=h?e=>Buffer.from(e).toString("base64"):e=>{let i=[];for(let s=0,n=e.length;s<n;s+=4096)i.push(u.apply(null,e.subarray(s,s+4096)));return P(i.join(""))},N=(e,t=!1)=>t?k(D(e)):D(e),lt=e=>{if(e.length<2){var t=e.charCodeAt(0);return t<128?e:t<2048?u(192|t>>>6)+u(128|t&63):u(224|t>>>12&15)+u(128|t>>>6&63)+u(128|t&63)}else{var t=65536+(e.charCodeAt(0)-55296)*1024+(e.charCodeAt(1)-56320);return u(240|t>>>18&7)+u(128|t>>>12&63)+u(128|t>>>6&63)+u(128|t&63)}},mt=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,z=e=>e.replace(mt,lt),v=h?e=>Buffer.from(e,"utf8").toString("base64"):U?e=>D(U.encode(e)):e=>P(z(e)),E=(e,t=!1)=>t?k(v(e)):v(e),x=e=>E(e,!0),ct=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,ut=e=>{switch(e.length){case 4:var t=(7&e.charCodeAt(0))<<18|(63&e.charCodeAt(1))<<12|(63&e.charCodeAt(2))<<6|63&e.charCodeAt(3),i=t-65536;return u((i>>>10)+55296)+u((i&1023)+56320);case 3:return u((15&e.charCodeAt(0))<<12|(63&e.charCodeAt(1))<<6|63&e.charCodeAt(2));default:return u((31&e.charCodeAt(0))<<6|63&e.charCodeAt(1))}},W=e=>e.replace(ct,ut),X=e=>{if(e=e.replace(/\s+/g,""),!ot.test(e))throw new TypeError("malformed base64.");e+="==".slice(2-(e.length&3));let t,i,s,n=[];for(let a=0;a<e.length;)t=I[e.charAt(a++)]<<18|I[e.charAt(a++)]<<12|(i=I[e.charAt(a++)])<<6|(s=I[e.charAt(a++)]),i===64?n.push(u(t>>16&255)):s===64?n.push(u(t>>16&255,t>>8&255)):n.push(u(t>>16&255,t>>8&255,t&255));return n.join("")},S=typeof atob=="function"?e=>atob(w(e)):h?e=>Buffer.from(e,"base64").toString("binary"):X,Y=h?e=>L(Buffer.from(e,"base64")):e=>L(S(e).split("").map(t=>t.charCodeAt(0))),K=e=>Y(j(e)),Et=h?e=>Buffer.from(e,"base64").toString("utf8"):y?e=>y.decode(Y(e)):e=>W(S(e)),j=e=>w(e.replace(/[-_]/g,t=>t=="-"?"+":"/")),C=e=>Et(j(e)),ht=e=>{if(typeof e!="string")return!1;const t=e.replace(/\s+/g,"").replace(/={0,2}$/,"");return!/[^\s0-9a-zA-Z\+/]/.test(t)||!/[^\s0-9a-zA-Z\-_]/.test(t)},V=e=>({value:e,enumerable:!1,writable:!0,configurable:!0}),Z=function(){const e=(t,i)=>Object.defineProperty(String.prototype,t,V(i));e("fromBase64",function(){return C(this)}),e("toBase64",function(t){return E(this,t)}),e("toBase64URI",function(){return E(this,!0)}),e("toBase64URL",function(){return E(this,!0)}),e("toUint8Array",function(){return K(this)})},J=function(){const e=(t,i)=>Object.defineProperty(Uint8Array.prototype,t,V(i));e("toBase64",function(t){return N(this,t)}),e("toBase64URI",function(){return N(this,!0)}),e("toBase64URL",function(){return N(this,!0)})},dt=()=>{Z(),J()},_={version:G,VERSION:rt,atob:S,atobPolyfill:X,btoa:P,btoaPolyfill:B,fromBase64:C,toBase64:E,encode:E,encodeURI:x,encodeURL:x,utob:z,btou:W,decode:C,isValid:ht,fromUint8Array:N,toUint8Array:K,extendString:Z,extendUint8Array:J,extendBuiltins:dt};var ft=(e=>(e[e.BLUE=0]="BLUE",e[e.RED=1]="RED",e))(ft||{});class g{constructor(t=0){this.type=t,this.name=`${t===0?"Blue":"Red"} Team`,this.teams=[],this.filterOrganizations=[],this.filterOrganizationMap=new Map,this.filterTeams=[],this.filterTeamMap=new Map}setFilterOrganizations(t){const i=new Map;t.forEach(s=>{i.set(s.value,s)}),this.filterOrganizations=t,this.filterOrganizationMap=i}setFilterTeams(t){const i=new Map;t.forEach(s=>{i.set(s.value,s)}),this.filterTeams=t,this.filterTeamMap=i}refreshName(){return this.filterOrganizations.length>0?this.name=this.filterOrganizations[0].text:this.name=`${this.type===0?"Blue":"Red"} Team`,this.name}get totalSolvedProblemNum(){let t=0;return this.teams.forEach(i=>{t+=i.solvedProblemNum}),t}get totalPenalty(){let t=0;return this.teams.forEach(i=>{t+=i.penaltyToMinute}),t}get totalPenaltyToString(){const t=this.totalPenalty,i=a=>a<10?`0${a}`:String(a),s=Math.floor(t/60),n=Math.floor(t%60);return[i(s),i(n)].join(":")}toJSON(){return{type:this.type,name:this.name,filterOrganizations:this.filterOrganizations,filterTeams:this.filterTeams}}}class pt{constructor(){this.enable=!1,this.topX=5,this.equalTeams=!0,this.persist=!1,this.blueTeam=new g(0),this.redTeam=new g(1)}ToBase64(){return _.encode(JSON.stringify(this))}FromBase64(t){if(t.length===0||_.isValid(t)===!1)return;const i=JSON.parse(_.decode(t));this.enable=i.enable,this.topX=i.topX,this.equalTeams=i.equalTeams,this.persist=i.persist,this.blueTeam=new g(0),this.blueTeam.name=i.blueTeam.name,this.blueTeam.setFilterOrganizations(i.blueTeam.filterOrganizations),this.blueTeam.setFilterTeams(i.blueTeam.filterTeams),this.redTeam=new g(1),this.redTeam.name=i.redTeam.name,this.redTeam.setFilterOrganizations(i.redTeam.filterOrganizations),this.redTeam.setFilterTeams(i.redTeam.filterTeams)}}class Tt{constructor(){this.teamSolvedNum=[],this.teamSolvedNumIndex=[],this.maxSolvedProblems=0,this.effectiveTeamNum=0,this.totalTeamNum=0}reset(){this.teamSolvedNum=[],this.teamSolvedNumIndex=[],this.maxSolvedProblems=0,this.effectiveTeamNum=0,this.totalTeamNum=0}getTeamSolvedNumIndex(t){return this.teamSolvedNumIndex[t]??0}}class Rt{constructor(){this.enableFilterSubmissionsByTimestamp=!1,this.width=0,this.timestamp=0,this.enableFilterTeamsByGroup=!1,this.group="all",this.filterOrganizations=[],this.filterOrganizationMap=new Map,this.filterTeams=[],this.filterTeamMap=new Map,this.enableAnimatedSubmissions=!1,this.battleOfGiants=new pt}setSelf(t){this.enableFilterSubmissionsByTimestamp=t.enableFilterSubmissionsByTimestamp,this.width=t.width,this.timestamp=t.timestamp,this.enableFilterTeamsByGroup=t.enableFilterTeamsByGroup,this.group=t.group,this.filterOrganizations=t.filterOrganizations,this.filterOrganizationMap=t.filterOrganizationMap,this.filterTeams=t.filterTeams,this.filterTeamMap=t.filterTeamMap,this.enableAnimatedSubmissions=t.enableAnimatedSubmissions,this.battleOfGiants=t.battleOfGiants}setWidth(t,i){this.width=t,this.timestamp=Math.floor((i.getEndTime().unix()-i.getStartTime().unix())*this.width*1e-4),this.enableFilterSubmissionsByTimestamp=!0}disableFilterSubmissionByTimestamp(){this.enableFilterSubmissionsByTimestamp=!1}setGroup(t){this.group=t,this.enableFilterTeamsByGroup=!0,this.group==="all"&&this.disableFilterTeamsByGroup()}disableFilterTeamsByGroup(){this.enableFilterTeamsByGroup=!1,this.group="all"}setFilterOrganizations(t){const i=new Map;t.forEach(s=>{i.set(s.value,s)}),this.filterOrganizations=t,this.filterOrganizationMap=i}setFilterTeams(t){const i=new Map;t.forEach(s=>{i.set(s.value,s)}),this.filterTeams=t,this.filterTeamMap=i}isNeedReBuildRank(t){return this.enableFilterSubmissionsByTimestamp!==t.enableFilterSubmissionsByTimestamp||this.width!==t.width||this.timestamp!==t.timestamp||this.enableFilterTeamsByGroup!==t.enableFilterTeamsByGroup||this.group!==t.group}}class St{constructor(t,i,s){this.contest=t,this.teams=f.cloneDeep(i),this.teamsMap=new Map(this.teams.map(n=>[n.id,n])),this.submissions=f.cloneDeep(s).sort(b.compare);{const n=this.contest.options,a=f.cloneDeep(n.submissionTimestampUnit);this.submissions.forEach(l=>{l.timestampUnit=a,l.time&&(n.submissionHasTimeField=!0),l.language&&(n.submissionHasLanguageField=!0)})}this.submissionsMap=new Map(this.submissions.map(n=>[n.id,n])),this.organizations=this.buildOrganizations(),this.originTeams=this.teams.map(n=>n),this.originTeams.sort(p.compare),this.rankStatistics=new Tt,this.options=new Rt,this.balloons=[];{const n=new Set;this.submissions.forEach(a=>{a.language&&n.add(a.language)}),this.languages=[...n].sort()}{const n=new Set;this.submissions.forEach(a=>{n.add(a.status)}),this.statuses=[...n].sort()}}cleanRank(){(()=>{this.teams=[];for(const[t,i]of this.teamsMap)this.filterTeamByOrg(i)||this.teams.push(i)})();for(const t of this.teams)t.reset(),t.problemStatistics=this.contest.problems.map(i=>{const s=new q;return s.problem=i,s.contestPenalty=this.contest.penalty,s}),t.problemStatisticsMap=new Map(t.problemStatistics.map(i=>[i.problem.id,i]));this.contest.problems.forEach(t=>{t.statistics.reset()})}buildRank(){return(()=>{this.cleanRank(),this.teams.forEach(s=>s.placeChartPoints.push({timePoint:0,rank:1,lastSolvedProblem:null})),this.rankStatistics.reset(),this.rankStatistics.teamSolvedNum=Array.from({length:this.contest.problems.length+1}).fill(0),this.rankStatistics.teamSolvedNumIndex=Array.from({length:this.contest.problems.length+1}).fill(0);let t=0;const i=this.getSubmissions();for(let s=0;s<i.length;s++){const n=i[s],a=n.teamId,l=n.problemId,m=this.teamsMap.get(a),c=this.contest.problemsMap.get(l);(()=>{if(m===void 0||this.filterTeamByOrg(m)||c===void 0)return;const o=m.problemStatisticsMap.get(l);if(o.submissions.push(n),m.submissions.push(n),c.statistics.submittedNum++,o.isSolved){n.isSolved=!1,n.isFirstSolved=!1;return}if(n.isIgnore||n.isNotCalculatedPenaltyStatus()){c.statistics.ignoreNum++,o.ignoreCount++;return}if(o.isSubmitted=!0,o.lastSubmitTimestamp=n.timestampToSecond,o.totalCount++,n.isAccepted()){for(n.isSolved=!0,o.isSolved=!0,o.solvedTimestamp=n.timestampToSecond,c.statistics.acceptedNum++,c.statistics.attemptedNum+=o.failedCount+1,(c.statistics.firstSolveSubmissions.length===0||c.statistics.firstSolveSubmissions[c.statistics.firstSolveSubmissions.length-1].timestamp===n.timestamp)&&(n.isFirstSolved=!0,o.isFirstSolved=!0,c.statistics.firstSolveSubmissions.push(n));c.statistics.lastSolveSubmissions.length>0;)c.statistics.lastSolveSubmissions.pop();c.statistics.lastSolveSubmissions.push(n),m.lastSolvedProblem=c,m.lastSolvedProblemStatistics=o}n.isRejected()&&(o.failedCount++,c.statistics.rejectedNum++),n.isPending()&&(o.pendingCount++,c.statistics.pendingNum++)})(),(n.timestampToMinute>t||s===i.length-1)&&(this.teams.forEach(o=>o.calcSolvedData(this.contest.options)),this.teams.sort(p.compare),this.buildTeamRank(),this.teams.forEach(o=>o.placeChartPoints.push({timePoint:n.timestampToMinute,rank:o.rank,lastSolvedProblem:o.lastSolvedProblem}))),t=n.timestampToMinute}this.teams.forEach(s=>s.calcSolvedData(this.contest.options)),this.teams.sort(p.compare),this.buildTeamRank(),this.buildOrgRank(),this.rankStatistics.effectiveTeamNum=this.teams.filter(s=>s.isEffectiveTeam).length,this.rankStatistics.totalTeamNum=this.teams.length,this.teams.forEach(s=>s.calcSE(this.rankStatistics.totalTeamNum)),this.contest.problems.forEach(s=>s.statistics.calcSE(this.rankStatistics.totalTeamNum)),this.buildAwards(),this.teams.forEach(s=>s.calcAwards(this.contest.awards?.get(this.options.group))),this.teams.forEach(s=>s.postProcessPlaceChartPoints())})(),(()=>{for(const t of this.teams)this.rankStatistics.teamSolvedNum[t.solvedProblemNum]++;{let t=0;const i=this.rankStatistics.teamSolvedNum,s=this.rankStatistics.teamSolvedNumIndex;for(let n=s.length-1;n>=0;n--)t+=i[n]>0?1:0,s[n]=t}this.teams.length>0&&(this.rankStatistics.maxSolvedProblems=this.teams[0].solvedProblemNum)})(),this}buildTeamRank(){let t=1,i=1,s=null;for(const n of this.teams)n.rank=t++,n.originalRank=i++,s!==null&&n.isEqualRank(s)&&(n.rank=s.rank),s=n}buildOrgRank(){if(!this.contest.organization)return;let t=1,i=null;const s=new Set;for(const n of this.teams){const a=n.organization;s.has(a)||(s.add(a),n.organizationRank=t++,i!==null&&n.isEqualRank(i)&&(n.organizationRank=i.organizationRank),i=n)}}buildOrganizations(){if(!this.contest.organization)return[];const t=new Array,i=new Set;return this.teams.forEach(s=>{const n=s.organization;i.has(n)||(t.push(n),i.add(n))}),t.sort(),t}buildAwards(){if(this.contest.medal==="ccpc"){this.contest.awards=new Map;const t=this.rankStatistics.effectiveTeamNum,i=[],s=new R,n=new R,a=new R,l=new R;s.medalType=T.GOLD,s.minRank=1,s.maxRank=Math.ceil(t*.1),s.maxRank>=s.minRank&&i.push(s),n.medalType=T.SILVER,n.minRank=s.maxRank+1,n.maxRank=Math.ceil(t*.3),n.maxRank>=n.minRank&&i.push(n),a.medalType=T.BRONZE,a.minRank=n.maxRank+1,a.maxRank=Math.ceil(t*.6),a.maxRank>=a.minRank&&i.push(a),l.medalType=T.HONORABLE,l.minRank=a.maxRank+1,this.teams.forEach(m=>{m.solvedProblemNum>0&&(l.maxRank=Math.max(l.maxRank,m.rank))}),l.maxRank>=l.minRank&&i.push(l),this.contest.awards.set("official",i)}}filterTeamByOrg(t){const i=this.options;return!!(i.enableFilterTeamsByGroup&&!t.group?.includes(i.group))}getSubmissions(){return this.contest.replayContestStartTimestamp===void 0&&this.options.enableFilterSubmissionsByTimestamp===!1?this.submissions:this.submissions.filter(t=>!(this.contest.replayContestStartTimestamp!==void 0&&t.timestampToSecond>this.contest.replayContestStartTimestamp||this.options.enableFilterSubmissionsByTimestamp&&t.timestampToSecond>this.options.timestamp))}buildBalloons(){this.balloons=[],this.cleanRank();const t=this.getSubmissions();for(let i=0;i<t.length;i++){const s=t[i],n=s.teamId,a=s.problemId,l=this.teamsMap.get(n),m=this.contest.problemsMap.get(a);(()=>{if(l===void 0||m===void 0)return;const c=l.problemStatisticsMap.get(a);if(!c.isSolved&&s.isAccepted()){c.isSolved=!0,c.solvedTimestamp=s.timestampToSecond;const o=new nt;o.team=l,o.problem=m,o.submission=s,this.balloons.push(o)}})()}}setReplayTime(t){this.contest.setReplayTime(t)}}export{nt as B,ft as G,St as R,r as S,p as T,Ct as a,st as b,Pt as c,it as d,Dt as e,b as f,et as g,_t as h,tt as i,Rt as j};
|
|
1
|
+
import{k as H,_ as f,P as $,T as q,M as T,A as R}from"./query-DRKvftyM.js";import{I as F}from"./dayjs-CZgaplJl.js";import{c as A}from"./person-CJEnqSCh.js";var r=(e=>(e.PENDING="PENDING",e.WAITING="WAITING",e.PREPARING="PREPARING",e.COMPILING="COMPILING",e.RUNNING="RUNNING",e.JUDGING="JUDGING",e.FROZEN="FROZEN",e.ACCEPTED="ACCEPTED",e.CORRECT="CORRECT",e.PARTIALLY_CORRECT="PARTIALLY_CORRECT",e.REJECTED="REJECTED",e.WRONG_ANSWER="WRONG_ANSWER",e.NO_OUTPUT="NO_OUTPUT",e.COMPILATION_ERROR="COMPILATION_ERROR",e.PRESENTATION_ERROR="PRESENTATION_ERROR",e.RUNTIME_ERROR="RUNTIME_ERROR",e.TIME_LIMIT_EXCEEDED="TIME_LIMIT_EXCEEDED",e.MEMORY_LIMIT_EXCEEDED="MEMORY_LIMIT_EXCEEDED",e.OUTPUT_LIMIT_EXCEEDED="OUTPUT_LIMIT_EXCEEDED",e.IDLENESS_LIMIT_EXCEEDED="IDLENESS_LIMIT_EXCEEDED",e.HACKED="HACKED",e.JUDGEMENT_FAILED="JUDGEMENT_FAILED",e.CONFIGURATION_ERROR="CONFIGURATION_ERROR",e.FILE_ERROR="FILE_ERROR",e.SYSTEM_ERROR="SYSTEM_ERROR",e.CANCELED="CANCELED",e.SKIPPED="SKIPPED",e.SECURITY_VIOLATED="SECURITY_VIOLATED",e.DENIAL_OF_JUDGEMENT="DENIAL_OF_JUDGEMENT",e.UNKNOWN="UNKNOWN",e.UNDEFINED="UNDEFINED",e))(r||{});const _t={PENDING:"Pending",WAITING:"Waiting",PREPARING:"Preparing",COMPILING:"Compiling",RUNNING:"Running",JUDGING:"Judging",FROZEN:"Frozen",ACCEPTED:"Accepted",CORRECT:"Correct",PARTIALLY_CORRECT:"Partially Correct",REJECTED:"Rejected",WRONG_ANSWER:"Wrong Answer",NO_OUTPUT:"No Output",COMPILATION_ERROR:"Compilation Error",PRESENTATION_ERROR:"Presentation Error",RUNTIME_ERROR:"Runtime Error",TIME_LIMIT_EXCEEDED:"Time Limit Exceeded",MEMORY_LIMIT_EXCEEDED:"Memory Limit Exceeded",OUTPUT_LIMIT_EXCEEDED:"Output Limit Exceeded",IDLENESS_LIMIT_EXCEEDED:"Idleness Limit Exceeded",HACKED:"Hacked",JUDGEMENT_FAILED:"Judgement Failed",CONFIGURATION_ERROR:"Configuration Error",FILE_ERROR:"File Error",SYSTEM_ERROR:"System Error",CANCELED:"Canceled",SKIPPED:"Skipped",SECURITY_VIOLATED:"Security Violated",DENIAL_OF_JUDGEMENT:"Denial Of Judgement",UNKNOWN:"Unknown",UNDEFINED:"Undefined"},Dt={PENDING:"PD",WAITING:"PD",PREPARING:"PD",COMPILING:"PD",RUNNING:"PD",JUDGING:"PD",FROZEN:"?",ACCEPTED:"AC",CORRECT:"AC",PARTIALLY_CORRECT:"RJ",REJECTED:"RJ",WRONG_ANSWER:"WA",NO_OUTPUT:"NO",COMPILATION_ERROR:"CE",PRESENTATION_ERROR:"PE",RUNTIME_ERROR:"RTE",TIME_LIMIT_EXCEEDED:"TLE",MEMORY_LIMIT_EXCEEDED:"MLE",OUTPUT_LIMIT_EXCEEDED:"OLE",IDLENESS_LIMIT_EXCEEDED:"ILE",HACKED:"RJ",JUDGEMENT_FAILED:"RJ",CONFIGURATION_ERROR:"RJ",FILE_ERROR:"RJ",SYSTEM_ERROR:"RJ",CANCELED:"RJ",SKIPPED:"RJ",SECURITY_VIOLATED:"RJ",DENIAL_OF_JUDGEMENT:"RJ",UNKNOWN:"RJ",UNDEFINED:"RJ"};function Q(e){return e=e.toUpperCase().replace(" ","_"),["OK","AC",r.ACCEPTED.toString()].includes(e)||[r.CORRECT.toString()].includes(e)?r.ACCEPTED:[r.PARTIALLY_CORRECT.toString()].includes(e)?r.PARTIALLY_CORRECT:["WA",r.WRONG_ANSWER.toString()].includes(e)?r.WRONG_ANSWER:["RJ","INCORRECT",r.REJECTED.toString()].includes(e)?r.REJECTED:["NO",r.NO_OUTPUT.toString()].includes(e)?r.NO_OUTPUT:["PD",r.PENDING.toString()].includes(e)?r.PENDING:[r.WAITING.toString()].includes(e)?r.WAITING:[r.JUDGING.toString()].includes(e)?r.JUDGING:[r.FROZEN.toString()].includes(e)?r.FROZEN:["CE",r.COMPILATION_ERROR.toString()].includes(e)?r.COMPILATION_ERROR:["PE",r.PRESENTATION_ERROR.toString()].includes(e)?r.PRESENTATION_ERROR:["TL","TLE",r.TIME_LIMIT_EXCEEDED.toString()].includes(e)?r.TIME_LIMIT_EXCEEDED:["ML","MLE",r.MEMORY_LIMIT_EXCEEDED.toString()].includes(e)?r.MEMORY_LIMIT_EXCEEDED:["OL","OLE",r.OUTPUT_LIMIT_EXCEEDED.toString()].includes(e)?r.OUTPUT_LIMIT_EXCEEDED:["IL","ILE",r.IDLENESS_LIMIT_EXCEEDED.toString()].includes(e)?r.IDLENESS_LIMIT_EXCEEDED:["RT","RE","RTE",r.RUNTIME_ERROR.toString()].includes(e)?r.RUNTIME_ERROR:["JE",r.JUDGEMENT_FAILED.toString()].includes(e)?r.JUDGEMENT_FAILED:["SE",r.SYSTEM_ERROR.toString()].includes(e)?r.SYSTEM_ERROR:[r.HACKED.toString()].includes(e)?r.HACKED:[r.CONFIGURATION_ERROR.toString()].includes(e)?r.CONFIGURATION_ERROR:[r.CANCELED.toString()].includes(e)?r.CANCELED:[r.SKIPPED.toString()].includes(e)?r.SKIPPED:[r.SECURITY_VIOLATED.toString()].includes(e)?r.SECURITY_VIOLATED:[r.DENIAL_OF_JUDGEMENT.toString()].includes(e)?r.DENIAL_OF_JUDGEMENT:r.UNKNOWN}function tt(e){return[r.ACCEPTED,r.CORRECT].includes(e)}function et(e){return[r.RUNTIME_ERROR,r.TIME_LIMIT_EXCEEDED,r.MEMORY_LIMIT_EXCEEDED,r.OUTPUT_LIMIT_EXCEEDED,r.IDLENESS_LIMIT_EXCEEDED,r.WRONG_ANSWER,r.REJECTED,r.NO_OUTPUT,r.JUDGEMENT_FAILED,r.HACKED].includes(e)}function it(e){return[r.PENDING,r.WAITING,r.COMPILING,r.JUDGING,r.FROZEN].includes(e)}function st(e){return[r.COMPILATION_ERROR,r.PRESENTATION_ERROR,r.CONFIGURATION_ERROR,r.SYSTEM_ERROR,r.CANCELED,r.SKIPPED,r.UNKNOWN,r.UNDEFINED].includes(e)}class b{constructor(){this.status=r.UNKNOWN,this.isIgnore=!1,this.isSolved=!1,this.isFirstSolved=!1,this.id="",this.teamId="",this.problemId="",this.timestamp=0,this.timestampUnit="second"}isAccepted(){return tt(this.status)}isRejected(){return et(this.status)}isPending(){return it(this.status)}isNotCalculatedPenaltyStatus(){return st(this.status)}get timestampToMinute(){return this.timestampUnit==="nanosecond"?Math.floor(this.timestamp/60/1e3/1e3/1e3):this.timestampUnit==="microsecond"?Math.floor(this.timestamp/60/1e3/1e3):this.timestampUnit==="millisecond"?Math.floor(this.timestamp/60/1e3):Math.floor(this.timestamp/60)}get timestampToSecond(){return this.timestampUnit==="nanosecond"?Math.floor(this.timestamp/1e3/1e3/1e3):this.timestampUnit==="microsecond"?Math.floor(this.timestamp/1e3/1e3):this.timestampUnit==="millisecond"?Math.floor(this.timestamp/1e3):this.timestamp}get timestampDisplayFormatWithSecond(){const t=this.timestampToSecond,i=Math.floor(t/3600),s=Math.floor(t%3600/60),n=t%60,a=m=>m.toString().padStart(2,"0");return`${a(i)}:${a(s)}:${a(n)}`}get timestampDisplayFormatWithMilliSecond(){let t=this.timestampDisplayFormatWithSecond;if(this.timestampUnit==="millisecond"){const i=(this.timestamp%1e3).toString().padStart(3,"0");t+=`.${i}`}return t}static compare(t,i){if(t.timestamp!==i.timestamp)return t.timestamp-i.timestamp;if(t.teamId===i.teamId){if(t.isAccepted()&&!i.isAccepted())return-1;if(!t.isAccepted()&&i.isAccepted())return 1}return t.id<i.id?-1:t.id===i.id?0:1}}function O(e,t){const i=new b;return i.id=String(e.id??e.submission_id??""),i.teamId=String(e.team_id),i.problemId=String(e.problem_id),i.timestamp=e.timestamp,i.status=Q(e.status),i.isIgnore=e.is_ignore??!1,e.time&&(i.time=e.time),e.language&&(i.language=e.language),e.reaction?i.reaction=e.reaction:t?.options.reactionVideoUrlTemplate&&(i.reaction={url:t.options.reactionVideoUrlTemplate.replace(/\$\{submission_id\}/,i.id)}),i}function Ct(e,t){return Array.isArray(e)?e.map((i,s)=>O({...i,id:i.submission_id??String(s)},t)):Object.entries(e).map(([s,n])=>O({...n,id:n.submission_id??s},t))}class p{constructor(){this.id="",this.name=new F,this.organization="",this.group=[],this.tag=[],this.coaches=[],this.members=[],this.rank=0,this.originalRank=0,this.organizationRank=-1,this.solvedProblemNum=0,this.attemptedProblemNum=0,this.lastSolvedProblem=null,this.lastSolvedProblemStatistics=null,this.penalty=0,this.problemStatistics=[],this.problemStatisticsMap=new Map,this.submissions=[],this.placeChartPoints=[],this.awards=[],this.missingPhoto=!1,this.se=0}reset(){this.rank=0,this.originalRank=0,this.organizationRank=-1,this.solvedProblemNum=0,this.attemptedProblemNum=0,this.lastSolvedProblem=null,this.lastSolvedProblemStatistics=null,this.penalty=0,this.problemStatistics=[],this.problemStatisticsMap=new Map,this.submissions=[],this.placeChartPoints=[],this.awards=[],this.se=0}get penaltyToMinute(){return Math.floor(this.penalty/60)}get isUnofficial(){return this.group.includes("unofficial")}get isGirl(){return this.group.includes("girl")}get isEffectiveTeam(){return this.solvedProblemNum>0}get dirt(){const t=this.attemptedProblemNum,i=this.solvedProblemNum;return H(t,i)}membersToString(t){return this.members.map(i=>i.name.getOrDefault(t)).join(", ")}coachesToString(t){return this.coaches.map(i=>i.name.getOrDefault(t)).join(", ")}calcSE(t){let i=0,s=0;if(this.problemStatistics.forEach(a=>{a.isSolved&&(i+=1,s+=a.problem.statistics.acceptedNum)}),t===0||i===0)return 0;const n=(i*t-s)/t/i;return this.se=Math.round(n*100)/100,this.se}calcSolvedData(t){this.solvedProblemNum=0,this.attemptedProblemNum=0,this.penalty=0;for(const i of this.problemStatistics)i.isAccepted&&(this.solvedProblemNum++,this.attemptedProblemNum+=i.failedCount+1,t?.calculationOfPenalty==="in_seconds"||t?.calculationOfPenalty==="accumulate_in_seconds_and_finally_to_the_minute"?this.penalty+=i.penaltyInSecond:this.penalty+=i.penalty);t?.calculationOfPenalty==="accumulate_in_seconds_and_finally_to_the_minute"&&(this.penalty=Math.floor(this.penalty/60)*60)}calcAwards(t){if(t)for(const i of t)this.rank>=i.minRank&&this.rank<=i.maxRank&&this.awards.push(i.medalType)}isEqualRank(t){return this.solvedProblemNum===t.solvedProblemNum&&this.penalty===t.penalty&&this.lastSolvedProblemStatistics?.solvedTimestampToMinute===t.lastSolvedProblemStatistics?.solvedTimestampToMinute}postProcessPlaceChartPoints(){if(this.placeChartPoints.length===0)return;const t=[];t.push(this.placeChartPoints[0]);for(let i=1;i<this.placeChartPoints.length-1;i++){const s=this.placeChartPoints[i],n=t[t.length-1];(s.rank!==n.rank||s.lastSolvedProblem!==n.lastSolvedProblem)&&t.push(s)}this.placeChartPoints.length>1&&t.push(this.placeChartPoints[this.placeChartPoints.length-1]),this.placeChartPoints=t}static compare(t,i){return t.solvedProblemNum!==i.solvedProblemNum?i.solvedProblemNum-t.solvedProblemNum:t.penalty!==i.penalty?t.penalty-i.penalty:t.lastSolvedProblemStatistics&&i.lastSolvedProblemStatistics?t.lastSolvedProblemStatistics.solvedTimestampToMinute-i.lastSolvedProblemStatistics.solvedTimestampToMinute:t.name<i.name?-1:t.name>i.name?1:0}}function M(e){const t=new p;t.id=e.id??e.team_id??"",t.name=F.fromIText(e.name??e.team_name??""),t.organization=e.organization??"",t.group=f.cloneDeep(e.group??[]),t.tag=f.cloneDeep(e.tag??[]),t.coaches=A(e.coach),t.members=A(e.members),e.official&&t.group.push("official"),e.unofficial&&t.group.push("unofficial"),e.girl&&t.group.push("girl");{const i=e;for(const s of Object.keys(i))s!=="missing_photo"&&(i[s]===1||i[s]===!0)&&t.group.push(s)}return t.group=[...new Set(t.group)],t.group.sort(),t.badge=e.badge,e.missing_photo&&(t.missingPhoto=!0),t.photo=e.photo,e.location&&(t.location=e.location),e.icpc_id&&(t.icpcID=e.icpc_id),t}function Pt(e){return Array.isArray(e)?e.map(t=>M(t)):Object.entries(e).map(([i,s])=>M({...s,team_id:s.team_id??i}))}class nt{constructor(){this.problem=new $,this.team=new p,this.submission=new b}get key(){return`balloon-${this.team.id}-${this.problem.id}`}static compare(t,i){return b.compare(t.submission,i.submission)}}const G="3.7.8",rt=G,h=typeof Buffer=="function",y=typeof TextDecoder=="function"?new TextDecoder:void 0,U=typeof TextEncoder=="function"?new TextEncoder:void 0,at="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",d=Array.prototype.slice.call(at),I=(e=>{let t={};return e.forEach((i,s)=>t[i]=s),t})(d),ot=/^(?:[A-Za-z\d+\/]{4})*?(?:[A-Za-z\d+\/]{2}(?:==)?|[A-Za-z\d+\/]{3}=?)?$/,u=String.fromCharCode.bind(String),L=typeof Uint8Array.from=="function"?Uint8Array.from.bind(Uint8Array):e=>new Uint8Array(Array.prototype.slice.call(e,0)),k=e=>e.replace(/=/g,"").replace(/[+\/]/g,t=>t=="+"?"-":"_"),w=e=>e.replace(/[^A-Za-z0-9\+\/]/g,""),B=e=>{let t,i,s,n,a="";const l=e.length%3;for(let m=0;m<e.length;){if((i=e.charCodeAt(m++))>255||(s=e.charCodeAt(m++))>255||(n=e.charCodeAt(m++))>255)throw new TypeError("invalid character found");t=i<<16|s<<8|n,a+=d[t>>18&63]+d[t>>12&63]+d[t>>6&63]+d[t&63]}return l?a.slice(0,l-3)+"===".substring(l):a},P=typeof btoa=="function"?e=>btoa(e):h?e=>Buffer.from(e,"binary").toString("base64"):B,D=h?e=>Buffer.from(e).toString("base64"):e=>{let i=[];for(let s=0,n=e.length;s<n;s+=4096)i.push(u.apply(null,e.subarray(s,s+4096)));return P(i.join(""))},N=(e,t=!1)=>t?k(D(e)):D(e),lt=e=>{if(e.length<2){var t=e.charCodeAt(0);return t<128?e:t<2048?u(192|t>>>6)+u(128|t&63):u(224|t>>>12&15)+u(128|t>>>6&63)+u(128|t&63)}else{var t=65536+(e.charCodeAt(0)-55296)*1024+(e.charCodeAt(1)-56320);return u(240|t>>>18&7)+u(128|t>>>12&63)+u(128|t>>>6&63)+u(128|t&63)}},mt=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,z=e=>e.replace(mt,lt),v=h?e=>Buffer.from(e,"utf8").toString("base64"):U?e=>D(U.encode(e)):e=>P(z(e)),E=(e,t=!1)=>t?k(v(e)):v(e),x=e=>E(e,!0),ct=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,ut=e=>{switch(e.length){case 4:var t=(7&e.charCodeAt(0))<<18|(63&e.charCodeAt(1))<<12|(63&e.charCodeAt(2))<<6|63&e.charCodeAt(3),i=t-65536;return u((i>>>10)+55296)+u((i&1023)+56320);case 3:return u((15&e.charCodeAt(0))<<12|(63&e.charCodeAt(1))<<6|63&e.charCodeAt(2));default:return u((31&e.charCodeAt(0))<<6|63&e.charCodeAt(1))}},W=e=>e.replace(ct,ut),X=e=>{if(e=e.replace(/\s+/g,""),!ot.test(e))throw new TypeError("malformed base64.");e+="==".slice(2-(e.length&3));let t,i,s,n=[];for(let a=0;a<e.length;)t=I[e.charAt(a++)]<<18|I[e.charAt(a++)]<<12|(i=I[e.charAt(a++)])<<6|(s=I[e.charAt(a++)]),i===64?n.push(u(t>>16&255)):s===64?n.push(u(t>>16&255,t>>8&255)):n.push(u(t>>16&255,t>>8&255,t&255));return n.join("")},S=typeof atob=="function"?e=>atob(w(e)):h?e=>Buffer.from(e,"base64").toString("binary"):X,Y=h?e=>L(Buffer.from(e,"base64")):e=>L(S(e).split("").map(t=>t.charCodeAt(0))),K=e=>Y(j(e)),Et=h?e=>Buffer.from(e,"base64").toString("utf8"):y?e=>y.decode(Y(e)):e=>W(S(e)),j=e=>w(e.replace(/[-_]/g,t=>t=="-"?"+":"/")),C=e=>Et(j(e)),ht=e=>{if(typeof e!="string")return!1;const t=e.replace(/\s+/g,"").replace(/={0,2}$/,"");return!/[^\s0-9a-zA-Z\+/]/.test(t)||!/[^\s0-9a-zA-Z\-_]/.test(t)},V=e=>({value:e,enumerable:!1,writable:!0,configurable:!0}),Z=function(){const e=(t,i)=>Object.defineProperty(String.prototype,t,V(i));e("fromBase64",function(){return C(this)}),e("toBase64",function(t){return E(this,t)}),e("toBase64URI",function(){return E(this,!0)}),e("toBase64URL",function(){return E(this,!0)}),e("toUint8Array",function(){return K(this)})},J=function(){const e=(t,i)=>Object.defineProperty(Uint8Array.prototype,t,V(i));e("toBase64",function(t){return N(this,t)}),e("toBase64URI",function(){return N(this,!0)}),e("toBase64URL",function(){return N(this,!0)})},dt=()=>{Z(),J()},_={version:G,VERSION:rt,atob:S,atobPolyfill:X,btoa:P,btoaPolyfill:B,fromBase64:C,toBase64:E,encode:E,encodeURI:x,encodeURL:x,utob:z,btou:W,decode:C,isValid:ht,fromUint8Array:N,toUint8Array:K,extendString:Z,extendUint8Array:J,extendBuiltins:dt};var ft=(e=>(e[e.BLUE=0]="BLUE",e[e.RED=1]="RED",e))(ft||{});class g{constructor(t=0){this.type=t,this.name=`${t===0?"Blue":"Red"} Team`,this.teams=[],this.filterOrganizations=[],this.filterOrganizationMap=new Map,this.filterTeams=[],this.filterTeamMap=new Map}setFilterOrganizations(t){const i=new Map;t.forEach(s=>{i.set(s.value,s)}),this.filterOrganizations=t,this.filterOrganizationMap=i}setFilterTeams(t){const i=new Map;t.forEach(s=>{i.set(s.value,s)}),this.filterTeams=t,this.filterTeamMap=i}refreshName(){return this.filterOrganizations.length>0?this.name=this.filterOrganizations[0].text:this.name=`${this.type===0?"Blue":"Red"} Team`,this.name}get totalSolvedProblemNum(){let t=0;return this.teams.forEach(i=>{t+=i.solvedProblemNum}),t}get totalPenalty(){let t=0;return this.teams.forEach(i=>{t+=i.penaltyToMinute}),t}get totalPenaltyToString(){const t=this.totalPenalty,i=a=>a<10?`0${a}`:String(a),s=Math.floor(t/60),n=Math.floor(t%60);return[i(s),i(n)].join(":")}toJSON(){return{type:this.type,name:this.name,filterOrganizations:this.filterOrganizations,filterTeams:this.filterTeams}}}class pt{constructor(){this.enable=!1,this.topX=5,this.equalTeams=!0,this.persist=!1,this.blueTeam=new g(0),this.redTeam=new g(1)}ToBase64(){return _.encode(JSON.stringify(this))}FromBase64(t){if(t.length===0||_.isValid(t)===!1)return;const i=JSON.parse(_.decode(t));this.enable=i.enable,this.topX=i.topX,this.equalTeams=i.equalTeams,this.persist=i.persist,this.blueTeam=new g(0),this.blueTeam.name=i.blueTeam.name,this.blueTeam.setFilterOrganizations(i.blueTeam.filterOrganizations),this.blueTeam.setFilterTeams(i.blueTeam.filterTeams),this.redTeam=new g(1),this.redTeam.name=i.redTeam.name,this.redTeam.setFilterOrganizations(i.redTeam.filterOrganizations),this.redTeam.setFilterTeams(i.redTeam.filterTeams)}}class Tt{constructor(){this.teamSolvedNum=[],this.teamSolvedNumIndex=[],this.maxSolvedProblems=0,this.effectiveTeamNum=0,this.totalTeamNum=0}reset(){this.teamSolvedNum=[],this.teamSolvedNumIndex=[],this.maxSolvedProblems=0,this.effectiveTeamNum=0,this.totalTeamNum=0}getTeamSolvedNumIndex(t){return this.teamSolvedNumIndex[t]??0}}class Rt{constructor(){this.enableFilterSubmissionsByTimestamp=!1,this.width=0,this.timestamp=0,this.enableFilterTeamsByGroup=!1,this.group="all",this.filterOrganizations=[],this.filterOrganizationMap=new Map,this.filterTeams=[],this.filterTeamMap=new Map,this.enableAnimatedSubmissions=!1,this.battleOfGiants=new pt}setSelf(t){this.enableFilterSubmissionsByTimestamp=t.enableFilterSubmissionsByTimestamp,this.width=t.width,this.timestamp=t.timestamp,this.enableFilterTeamsByGroup=t.enableFilterTeamsByGroup,this.group=t.group,this.filterOrganizations=t.filterOrganizations,this.filterOrganizationMap=t.filterOrganizationMap,this.filterTeams=t.filterTeams,this.filterTeamMap=t.filterTeamMap,this.enableAnimatedSubmissions=t.enableAnimatedSubmissions,this.battleOfGiants=t.battleOfGiants}setWidth(t,i){this.width=t,this.timestamp=Math.floor((i.getEndTime().unix()-i.getStartTime().unix())*this.width*1e-4),this.enableFilterSubmissionsByTimestamp=!0}disableFilterSubmissionByTimestamp(){this.enableFilterSubmissionsByTimestamp=!1}setGroup(t){this.group=t,this.enableFilterTeamsByGroup=!0,this.group==="all"&&this.disableFilterTeamsByGroup()}disableFilterTeamsByGroup(){this.enableFilterTeamsByGroup=!1,this.group="all"}setFilterOrganizations(t){const i=new Map;t.forEach(s=>{i.set(s.value,s)}),this.filterOrganizations=t,this.filterOrganizationMap=i}setFilterTeams(t){const i=new Map;t.forEach(s=>{i.set(s.value,s)}),this.filterTeams=t,this.filterTeamMap=i}isNeedReBuildRank(t){return this.enableFilterSubmissionsByTimestamp!==t.enableFilterSubmissionsByTimestamp||this.width!==t.width||this.timestamp!==t.timestamp||this.enableFilterTeamsByGroup!==t.enableFilterTeamsByGroup||this.group!==t.group}}class St{constructor(t,i,s){this.contest=t,this.teams=f.cloneDeep(i),this.teamsMap=new Map(this.teams.map(n=>[n.id,n])),this.submissions=f.cloneDeep(s).sort(b.compare);{const n=this.contest.options,a=f.cloneDeep(n.submissionTimestampUnit);this.submissions.forEach(l=>{l.timestampUnit=a,l.time&&(n.submissionHasTimeField=!0),l.language&&(n.submissionHasLanguageField=!0)})}this.submissionsMap=new Map(this.submissions.map(n=>[n.id,n])),this.organizations=this.buildOrganizations(),this.originTeams=this.teams.map(n=>n),this.originTeams.sort(p.compare),this.rankStatistics=new Tt,this.options=new Rt,this.balloons=[];{const n=new Set;this.submissions.forEach(a=>{a.language&&n.add(a.language)}),this.languages=[...n].sort()}{const n=new Set;this.submissions.forEach(a=>{n.add(a.status)}),this.statuses=[...n].sort()}}cleanRank(){(()=>{this.teams=[];for(const[t,i]of this.teamsMap)this.filterTeamByOrg(i)||this.teams.push(i)})();for(const t of this.teams)t.reset(),t.problemStatistics=this.contest.problems.map(i=>{const s=new q;return s.problem=i,s.contestPenalty=this.contest.penalty,s}),t.problemStatisticsMap=new Map(t.problemStatistics.map(i=>[i.problem.id,i]));this.contest.problems.forEach(t=>{t.statistics.reset()})}buildRank(){return(()=>{this.cleanRank(),this.teams.forEach(s=>s.placeChartPoints.push({timePoint:0,rank:1,lastSolvedProblem:null})),this.rankStatistics.reset(),this.rankStatistics.teamSolvedNum=Array.from({length:this.contest.problems.length+1}).fill(0),this.rankStatistics.teamSolvedNumIndex=Array.from({length:this.contest.problems.length+1}).fill(0);let t=0;const i=this.getSubmissions();for(let s=0;s<i.length;s++){const n=i[s],a=n.teamId,l=n.problemId,m=this.teamsMap.get(a),c=this.contest.problemsMap.get(l);(()=>{if(m===void 0||this.filterTeamByOrg(m)||c===void 0)return;const o=m.problemStatisticsMap.get(l);if(o.submissions.push(n),m.submissions.push(n),c.statistics.submittedNum++,o.isSolved){n.isSolved=!1,n.isFirstSolved=!1;return}if(n.isIgnore||n.isNotCalculatedPenaltyStatus()){c.statistics.ignoreNum++,o.ignoreCount++;return}if(o.isSubmitted=!0,o.lastSubmitTimestamp=n.timestampToSecond,o.totalCount++,n.isAccepted()){for(n.isSolved=!0,o.isSolved=!0,o.solvedTimestamp=n.timestampToSecond,c.statistics.acceptedNum++,c.statistics.attemptedNum+=o.failedCount+1,(c.statistics.firstSolveSubmissions.length===0||c.statistics.firstSolveSubmissions[c.statistics.firstSolveSubmissions.length-1].timestamp===n.timestamp)&&(n.isFirstSolved=!0,o.isFirstSolved=!0,c.statistics.firstSolveSubmissions.push(n));c.statistics.lastSolveSubmissions.length>0;)c.statistics.lastSolveSubmissions.pop();c.statistics.lastSolveSubmissions.push(n),m.lastSolvedProblem=c,m.lastSolvedProblemStatistics=o}n.isRejected()&&(o.failedCount++,c.statistics.rejectedNum++),n.isPending()&&(o.pendingCount++,c.statistics.pendingNum++)})(),(n.timestampToMinute>t||s===i.length-1)&&(this.teams.forEach(o=>o.calcSolvedData(this.contest.options)),this.teams.sort(p.compare),this.buildTeamRank(),this.teams.forEach(o=>o.placeChartPoints.push({timePoint:n.timestampToMinute,rank:o.rank,lastSolvedProblem:o.lastSolvedProblem}))),t=n.timestampToMinute}this.teams.forEach(s=>s.calcSolvedData(this.contest.options)),this.teams.sort(p.compare),this.buildTeamRank(),this.buildOrgRank(),this.rankStatistics.effectiveTeamNum=this.teams.filter(s=>s.isEffectiveTeam).length,this.rankStatistics.totalTeamNum=this.teams.length,this.teams.forEach(s=>s.calcSE(this.rankStatistics.totalTeamNum)),this.contest.problems.forEach(s=>s.statistics.calcSE(this.rankStatistics.totalTeamNum)),this.buildAwards(),this.teams.forEach(s=>s.calcAwards(this.contest.awards?.get(this.options.group))),this.teams.forEach(s=>s.postProcessPlaceChartPoints())})(),(()=>{for(const t of this.teams)this.rankStatistics.teamSolvedNum[t.solvedProblemNum]++;{let t=0;const i=this.rankStatistics.teamSolvedNum,s=this.rankStatistics.teamSolvedNumIndex;for(let n=s.length-1;n>=0;n--)t+=i[n]>0?1:0,s[n]=t}this.teams.length>0&&(this.rankStatistics.maxSolvedProblems=this.teams[0].solvedProblemNum)})(),this}buildTeamRank(){let t=1,i=1,s=null;for(const n of this.teams)n.rank=t++,n.originalRank=i++,s!==null&&n.isEqualRank(s)&&(n.rank=s.rank),s=n}buildOrgRank(){if(!this.contest.organization)return;let t=1,i=null;const s=new Set;for(const n of this.teams){const a=n.organization;s.has(a)||(s.add(a),n.organizationRank=t++,i!==null&&n.isEqualRank(i)&&(n.organizationRank=i.organizationRank),i=n)}}buildOrganizations(){if(!this.contest.organization)return[];const t=new Array,i=new Set;return this.teams.forEach(s=>{const n=s.organization;i.has(n)||(t.push(n),i.add(n))}),t.sort(),t}buildAwards(){if(this.contest.medal==="ccpc"){this.contest.awards=new Map;const t=this.rankStatistics.effectiveTeamNum,i=[],s=new R,n=new R,a=new R,l=new R;s.medalType=T.GOLD,s.minRank=1,s.maxRank=Math.ceil(t*.1),s.maxRank>=s.minRank&&i.push(s),n.medalType=T.SILVER,n.minRank=s.maxRank+1,n.maxRank=Math.ceil(t*.3),n.maxRank>=n.minRank&&i.push(n),a.medalType=T.BRONZE,a.minRank=n.maxRank+1,a.maxRank=Math.ceil(t*.6),a.maxRank>=a.minRank&&i.push(a),l.medalType=T.HONORABLE,l.minRank=a.maxRank+1,this.teams.forEach(m=>{m.solvedProblemNum>0&&(l.maxRank=Math.max(l.maxRank,m.rank))}),l.maxRank>=l.minRank&&i.push(l),this.contest.awards.set("official",i)}}filterTeamByOrg(t){const i=this.options;return!!(i.enableFilterTeamsByGroup&&!t.group?.includes(i.group))}getSubmissions(){return this.contest.replayContestStartTimestamp===void 0&&this.options.enableFilterSubmissionsByTimestamp===!1?this.submissions:this.submissions.filter(t=>!(this.contest.replayContestStartTimestamp!==void 0&&t.timestampToSecond>this.contest.replayContestStartTimestamp||this.options.enableFilterSubmissionsByTimestamp&&t.timestampToSecond>this.options.timestamp))}buildBalloons(){this.balloons=[],this.cleanRank();const t=this.getSubmissions();for(let i=0;i<t.length;i++){const s=t[i],n=s.teamId,a=s.problemId,l=this.teamsMap.get(n),m=this.contest.problemsMap.get(a);(()=>{if(l===void 0||m===void 0)return;const c=l.problemStatisticsMap.get(a);if(!c.isSolved&&s.isAccepted()){c.isSolved=!0,c.solvedTimestamp=s.timestampToSecond;const o=new nt;o.team=l,o.problem=m,o.submission=s,this.balloons.push(o)}})()}}setReplayTime(t){this.contest.setReplayTime(t)}}export{nt as B,ft as G,St as R,r as S,p as T,Ct as a,st as b,Pt as c,it as d,Dt as e,b as f,et as g,_t as h,tt as i,Rt as j};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{_ as p}from"./TheInput.vue_vue_type_script_setup_true_lang-
|
|
1
|
+
import{_ as p}from"./TheInput.vue_vue_type_script_setup_true_lang-Cq-GdaDA.js";import{d as c,m as f,H as _,u as b,c as h,o as v,b as e,k as a,h as s,a as x,a2 as y,z as g}from"./index-B94pQy55.js";import{u as k}from"./user-Cbn7G8ga.js";import{b as l}from"./route-block-B_A1xBdJ.js";import"./use-vmodel-DYni6XFa.js";const V={flex:"","flex-col":"","justify-center":"","items-center":""},w={"text-sm":"","opacity-75":""},I={"w-48":""},B={class:"hidden",for:"input"},C=["disabled"],N=c({name:"IndexPage",__name:"test",setup(R){const i=k(),o=f(i.savedName),u=_();function r(){o.value&&u.push(`/hi/${encodeURIComponent(o.value)}`)}const{t:n}=b();return(U,t)=>{const d=p;return v(),h("div",V,[t[1]||(t[1]=e("div",{"text-4xl":""},[e("div",{"i-carbon-campsite":""})],-1)),t[2]||(t[2]=e("p",null,[e("a",{rel:"noreferrer",href:"https://github.com/antfu/vitesse",target:"_blank"}," Vitesse ")],-1)),e("p",null,[e("em",w,a(s(n)("intro.desc")),1)]),t[3]||(t[3]=e("div",{"py-4":""},null,-1)),e("div",I,[x(d,{modelValue:s(o),"onUpdate:modelValue":t[0]||(t[0]=m=>g(o)?o.value=m:null),placeholder:s(n)("intro.whats-your-name"),autocomplete:"false",onKeydown:y(r,["enter"])},null,8,["modelValue","placeholder"]),e("label",B,a(s(n)("intro.whats-your-name")),1)]),e("div",null,[e("button",{"m-3":"","text-sm":"",btn:"",disabled:!s(o),onClick:r},a(s(n)("button.go")),9,C)])])}}});typeof l=="function"&&l(N);export{N as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{aA as c,aB as r}from"./index-
|
|
1
|
+
import{aA as c,aB as r}from"./index-B94pQy55.js";const d=(...p)=>{const s=c().proxy.$props,t=Object.create(null);for(const e of p)if(typeof e=="string")t[e]=r(s,e,void 0,{eventName:`update:${e}`,passive:!0});else{const[o,n=o,a=`update:${o}`,u={}]=e;t[o]=r(s,n,void 0,{eventName:a,passive:!0,...u})}return t};export{d as _};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a5 as V,a6 as j,a7 as f,a8 as D,a9 as w,aa as z,ab as k,ac as M,ad as B,ae as T,af as H,ag as K,ah as L,ai as Y,aj as G,ak as J,al as X,f as W,am as Z,an as q,ao as tt,C as Q,ap as $,aq as et,ar as A,as as st,at as it,au as nt}from"./index-
|
|
1
|
+
import{a5 as V,a6 as j,a7 as f,a8 as D,a9 as w,aa as z,ab as k,ac as M,ad as B,ae as T,af as H,ag as K,ah as L,ai as Y,aj as G,ak as J,al as X,f as W,am as Z,an as q,ao as tt,C as Q,ap as $,aq as et,ar as A,as as st,at as it,au as nt}from"./index-B94pQy55.js";import{b as at}from"./constant-CZ5yULfd.js";var rt=class extends V{constructor(t,e){super(),this.options=e,this.#s=t,this.#n=null,this.#i=j(),this.bindMethods(),this.setOptions(e)}#s;#t=void 0;#p=void 0;#e=void 0;#r;#u;#i;#n;#b;#c;#d;#o;#h;#a;#f=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(this.#t.addObserver(this),_(this.#t,this.options)?this.#l():this.updateResult(),this.#y())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return U(this.#t,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return U(this.#t,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#O(),this.#g(),this.#t.removeObserver(this)}setOptions(t){const e=this.options,i=this.#t;if(this.options=this.#s.defaultQueryOptions(t),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof f(this.options.enabled,this.#t)!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");this.#w(),this.#t.setOptions(this.options),e._defaulted&&!D(this.options,e)&&this.#s.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#t,observer:this});const s=this.hasListeners();s&&N(this.#t,i,this.options,e)&&this.#l(),this.updateResult(),s&&(this.#t!==i||f(this.options.enabled,this.#t)!==f(e.enabled,this.#t)||w(this.options.staleTime,this.#t)!==w(e.staleTime,this.#t))&&this.#v();const n=this.#m();s&&(this.#t!==i||f(this.options.enabled,this.#t)!==f(e.enabled,this.#t)||n!==this.#a)&&this.#R(n)}getOptimisticResult(t){const e=this.#s.getQueryCache().build(this.#s,t),i=this.createResult(e,t);return ht(this,i)&&(this.#e=i,this.#u=this.options,this.#r=this.#t.state),i}getCurrentResult(){return this.#e}trackResult(t,e){return new Proxy(t,{get:(i,s)=>(this.trackProp(s),e?.(s),s==="promise"&&!this.options.experimental_prefetchInRender&&this.#i.status==="pending"&&this.#i.reject(new Error("experimental_prefetchInRender feature flag is not enabled")),Reflect.get(i,s))})}trackProp(t){this.#f.add(t)}getCurrentQuery(){return this.#t}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){const e=this.#s.defaultQueryOptions(t),i=this.#s.getQueryCache().build(this.#s,e);return i.fetch().then(()=>this.createResult(i,e))}fetch(t){return this.#l({...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#e))}#l(t){this.#w();let e=this.#t.fetch(this.options,t);return t?.throwOnError||(e=e.catch(z)),e}#v(){this.#O();const t=w(this.options.staleTime,this.#t);if(k||this.#e.isStale||!M(t))return;const i=B(this.#e.dataUpdatedAt,t)+1;this.#o=T.setTimeout(()=>{this.#e.isStale||this.updateResult()},i)}#m(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(this.#t):this.options.refetchInterval)??!1}#R(t){this.#g(),this.#a=t,!(k||f(this.options.enabled,this.#t)===!1||!M(this.#a)||this.#a===0)&&(this.#h=T.setInterval(()=>{(this.options.refetchIntervalInBackground||H.isFocused())&&this.#l()},this.#a))}#y(){this.#v(),this.#R(this.#m())}#O(){this.#o&&(T.clearTimeout(this.#o),this.#o=void 0)}#g(){this.#h&&(T.clearInterval(this.#h),this.#h=void 0)}createResult(t,e){const i=this.#t,s=this.options,n=this.#e,r=this.#r,l=this.#u,v=t!==i?t.state:this.#p,{state:O}=t;let a={...O},C=!1,h;if(e._optimisticResults){const c=this.hasListeners(),I=!c&&_(t,e),y=c&&N(t,i,e,s);(I||y)&&(a={...a,...K(O.data,t.options)}),e._optimisticResults==="isRestoring"&&(a.fetchStatus="idle")}let{error:o,errorUpdatedAt:b,status:d}=a;h=a.data;let g=!1;if(e.placeholderData!==void 0&&h===void 0&&d==="pending"){let c;n?.isPlaceholderData&&e.placeholderData===l?.placeholderData?(c=n.data,g=!0):c=typeof e.placeholderData=="function"?e.placeholderData(this.#d?.state.data,this.#d):e.placeholderData,c!==void 0&&(d="success",h=L(n?.data,c,e),C=!0)}if(e.select&&h!==void 0&&!g)if(n&&h===r?.data&&e.select===this.#b)h=this.#c;else try{this.#b=e.select,h=e.select(h),h=L(n?.data,h,e),this.#c=h,this.#n=null}catch(c){this.#n=c}this.#n&&(o=this.#n,h=this.#c,b=Date.now(),d="error");const m=a.fetchStatus==="fetching",R=d==="pending",E=d==="error",P=R&&m,x=h!==void 0,p={status:d,fetchStatus:a.fetchStatus,isPending:R,isSuccess:d==="success",isError:E,isInitialLoading:P,isLoading:P,data:h,dataUpdatedAt:a.dataUpdatedAt,error:o,errorUpdatedAt:b,failureCount:a.fetchFailureCount,failureReason:a.fetchFailureReason,errorUpdateCount:a.errorUpdateCount,isFetched:a.dataUpdateCount>0||a.errorUpdateCount>0,isFetchedAfterMount:a.dataUpdateCount>v.dataUpdateCount||a.errorUpdateCount>v.errorUpdateCount,isFetching:m,isRefetching:m&&!R,isLoadingError:E&&!x,isPaused:a.fetchStatus==="paused",isPlaceholderData:C,isRefetchError:E&&x,isStale:F(t,e),refetch:this.refetch,promise:this.#i,isEnabled:f(e.enabled,t)!==!1};if(this.options.experimental_prefetchInRender){const c=S=>{p.status==="error"?S.reject(p.error):p.data!==void 0&&S.resolve(p.data)},I=()=>{const S=this.#i=p.promise=j();c(S)},y=this.#i;switch(y.status){case"pending":t.queryHash===i.queryHash&&c(y);break;case"fulfilled":(p.status==="error"||p.data!==y.value)&&I();break;case"rejected":(p.status!=="error"||p.error!==y.reason)&&I();break}}return p}updateResult(){const t=this.#e,e=this.createResult(this.#t,this.options);if(this.#r=this.#t.state,this.#u=this.options,this.#r.data!==void 0&&(this.#d=this.#t),D(e,t))return;this.#e=e;const i=()=>{if(!t)return!0;const{notifyOnChangeProps:s}=this.options,n=typeof s=="function"?s():s;if(n==="all"||!n&&!this.#f.size)return!0;const r=new Set(n??this.#f);return this.options.throwOnError&&r.add("error"),Object.keys(this.#e).some(l=>{const u=l;return this.#e[u]!==t[u]&&r.has(u)})};this.#C({listeners:i()})}#w(){const t=this.#s.getQueryCache().build(this.#s,this.options);if(t===this.#t)return;const e=this.#t;this.#t=t,this.#p=t.state,this.hasListeners()&&(e?.removeObserver(this),t.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#y()}#C(t){Y.batch(()=>{t.listeners&&this.listeners.forEach(e=>{e(this.#e)}),this.#s.getQueryCache().notify({query:this.#t,type:"observerResultsUpdated"})})}};function ot(t,e){return f(e.enabled,t)!==!1&&t.state.data===void 0&&!(t.state.status==="error"&&e.retryOnMount===!1)}function _(t,e){return ot(t,e)||t.state.data!==void 0&&U(t,e,e.refetchOnMount)}function U(t,e,i){if(f(e.enabled,t)!==!1&&w(e.staleTime,t)!=="static"){const s=typeof i=="function"?i(t):i;return s==="always"||s!==!1&&F(t,e)}return!1}function N(t,e,i,s){return(t!==e||f(s.enabled,t)===!1)&&(!i.suspense||t.state.status!=="error")&&F(t,i)}function F(t,e){return f(e.enabled,t)!==!1&&t.isStaleByTime(w(e.staleTime,t))}function ht(t,e){return!D(t.getCurrentResult(),e)}function lt(t=""){if(!G())throw new Error("vue-query hooks can only be used inside setup() function or functions that support injection context.");const e=X(t),i=J(e);if(!i)throw new Error("No 'queryClient' found in Vue context, use 'VueQueryPlugin' to properly initialize the library.");return i}function ut(t,e,i){const s=lt(),n=W(()=>{const o=Z(e);typeof o.enabled=="function"&&(o.enabled=o.enabled());const b=s.defaultQueryOptions(o);return b._optimisticResults=s.isRestoring?.value?"isRestoring":"optimistic",b}),r=new t(s,n.value),l=n.value.shallow?q(r.getCurrentResult()):tt(r.getCurrentResult());let u=()=>{};s.isRestoring&&Q(s.isRestoring,o=>{o||(u(),u=r.subscribe(b=>{$(l,b)}))},{immediate:!0});const v=()=>{r.setOptions(n.value),$(l,r.getCurrentResult())};Q(n,v),et(()=>{u()});const O=(...o)=>(v(),l.refetch(...o)),a=()=>new Promise((o,b)=>{let d=()=>{};const g=()=>{if(n.value.enabled!==!1){r.setOptions(n.value);const m=r.getOptimisticResult(n.value);m.isStale?(d(),r.fetchOptimistic(n.value).then(o,R=>{A(n.value.throwOnError,[R,r.getCurrentQuery()])?b(R):o(r.getCurrentResult())})):(d(),o(m))}};g(),d=Q(n,g)});Q(()=>l.error,o=>{if(l.isError&&!l.isFetching&&A(n.value.throwOnError,[o,r.getCurrentQuery()]))throw o});const C=n.value.shallow?st(l):it(l),h=nt(C);for(const o in l)typeof l[o]=="function"&&(h[o]=l[o]);return h.suspense=a,h.refetch=O,h}function ct(t,e){return ut(rt,t)}const dt=3;async function ft(t,e){const i=t.startsWith("/")?t.slice(1):t;let s=`${window.DATA_HOST}${i}`;const n={allInOne:!1};if(s.includes("#")){const a=new URLSearchParams(s.split("#")[1]);n.allInOne=a.get("allInOne")==="true",s=s.split("#")[0]}t.startsWith("http")&&(s=t),s.endsWith("/")&&(s=s.slice(0,-1));const r=a=>a.includes("?")?`${a}&t=${e??0}`:`${a}?t=${e??0}`,l=n.allInOne?[await fetch(r(s))]:[await fetch(r(`${s}/config.json`)),await fetch(r(`${s}/team.json`)),await fetch(r(`${s}/run.json`))],{status:u,statusText:v}=l[0];if(u>=300||u<200)throw new Error(`fetch data failed. [status=${u}] [statusText=${v}]`);return Promise.all(l.map(a=>a.json())).then(a=>n.allInOne?a[0]:{contest:a[0],teams:a[1],submissions:a[2]})}function mt(t,e,i=!1){let s=3e4,n=s;const r=W(()=>Math.floor(e.value.getTime()/1e3/10));return at.value==="I18N"&&(s=10*1e3,n=s),i&&(s=Number.POSITIVE_INFINITY,n=!1),ct({queryKey:[t,r.value],queryFn:()=>ft(t,r.value),retry:dt,staleTime:s,refetchInterval:n})}export{mt as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{ay as n,m as r,f as t}from"./index-
|
|
1
|
+
import{ay as n,m as r,f as t}from"./index-B94pQy55.js";const f=n("user",()=>{const e=r(""),s=r(new Set),o=t(()=>Array.from(s.value)),u=t(()=>o.value.filter(a=>a!==e.value));function m(a){e.value&&s.value.add(e.value),e.value=a}return{setNewName:m,otherNames:u,savedName:e}});export{f as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{_ as f}from"./index-
|
|
1
|
+
import{_ as f}from"./index-B94pQy55.js";function p(n={}){const{immediate:s=!1,onNeedRefresh:u,onOfflineReady:o,onRegistered:d,onRegisteredSW:r,onRegisterError:i}=n;let t,a;const c=async(e=!0)=>{await a};async function l(){if("serviceWorker"in navigator){if(t=await f(async()=>{const{Workbox:e}=await import("./workbox-window.prod.es5-CwtvwXb3.js");return{Workbox:e}},[],import.meta.url).then(({Workbox:e})=>new e("/sw.js",{scope:"/",type:"classic"})).catch(e=>{i?.(e)}),!t)return;t.addEventListener("activated",e=>{(e.isUpdate||e.isExternal)&&window.location.reload()}),t.addEventListener("installed",e=>{e.isUpdate||o?.()}),t.register({immediate:s}).then(e=>{r?r("/sw.js",e):d?.(e)}).catch(e=>{i?.(e)})}}return a=l(),c}export{p as registerSW};
|
package/dist/index.html
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
<!doctype html><html lang="en-US" dir="ltr"><head><meta charset="UTF-8"/><title>Board - XCPCIO</title><script>!function(e,t,a,n){e[n]=e[n]||[],e[n].push({"gtm.start":(new Date).getTime(),event:"gtm.js"});var g=t.getElementsByTagName(a)[0],m=t.createElement(a);m.async=!0,m.src="https://www.googletagmanager.com/gtm.js?id=GTM-WHLF55BJ",g.parentNode.insertBefore(m,g)}(window,document,"script","dataLayer")</script><link rel="icon" href="https://cdn.jsdelivr.net/npm/@xcpcio/board-app@0.69.
|
|
1
|
+
<!doctype html><html lang="en-US" dir="ltr"><head><meta charset="UTF-8"/><title>Board - XCPCIO</title><script>!function(e,t,a,n){e[n]=e[n]||[],e[n].push({"gtm.start":(new Date).getTime(),event:"gtm.js"});var g=t.getElementsByTagName(a)[0],m=t.createElement(a);m.async=!0,m.src="https://www.googletagmanager.com/gtm.js?id=GTM-WHLF55BJ",g.parentNode.insertBefore(m,g)}(window,document,"script","dataLayer")</script><link rel="icon" href="https://cdn.jsdelivr.net/npm/@xcpcio/board-app@0.69.4/dist/balloon-512x512.svg" type="image/svg+xml"/><link rel="mask-icon" href="https://cdn.jsdelivr.net/npm/@xcpcio/board-app@0.69.4/dist/balloon-512x512.svg" color="#00aba9"/><link rel="apple-touch-icon" href="https://cdn.jsdelivr.net/npm/@xcpcio/board-app@0.69.4/dist/balloon-192x192.png"/><meta name="msapplication-TileColor" content="#00aba9"/><meta name="author" content="Dup4"/><meta name="title" content="Board - XCPCIO"/><meta name="description" content="The ICPC Series Competition Leaderboard Visualization Engine."/><meta name="keywords" content="ICPC, Rank, Board, Leaderboard, ScoreBoard, Standings"/><meta property="og:site_name" content="XCPCIO"/><meta property="og:title" content="Board - XCPCIO"/><meta property="og:description" content="The ICPC Series Competition Leaderboard Visualization Engine."/><meta property="og:type" content="website"/><meta property="og:image" content="https://xcpcio.com/og.png"/><meta property="og:image:type" content="image/png"/><meta property="og:image:width" content="1200"/><meta property="og:image:height" content="630"/><meta name="twitter:title" content="Board - XCPCIO"/><meta name="twitter:description" content="The ICPC Series Competition Leaderboard Visualization Engine."/><meta name="twitter:card" content="summary_large_image"/><meta name="twitter:image" content="https://xcpcio.com/og.png"/><script>function normalizePath(_){for(;_.endsWith("/");)_=_.slice(0,-1);return`${_}/`}{let _="https://cdn.jsdelivr.net/npm/@xcpcio/board-app@0.69.4/dist";_=normalizePath(_),window.CDN_HOST=_,window.__toAssetUrl=_=>window.CDN_HOST+_}try{let _=__DATA_HOST__;_=normalizePath(_),window.DATA_HOST=_}catch(_){window.DATA_HOST="/data/"}try{let _=__DATA_REGION__;window.DATA_REGION=_}catch(_){window.DATA_REGION="CN"}try{let _=__DEFAULT_LANG__;window.DEFAULT_LANG=_}catch(_){window.DEFAULT_LANG="en"}</script><script>!function(){localStorage.getItem("vueuse-color-scheme")||localStorage.setItem("vueuse-color-scheme","light");const e=window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches,o=localStorage.getItem("vueuse-color-scheme")||"auto";("dark"===o||e&&"light"!==o)&&document.documentElement.classList.toggle("dark",!0)}()</script><script type="module" crossorigin src="https://cdn.jsdelivr.net/npm/@xcpcio/board-app@0.69.4/dist/assets/index-B94pQy55.js"></script><link rel="stylesheet" crossorigin href="https://cdn.jsdelivr.net/npm/@xcpcio/board-app@0.69.4/dist/assets/index-BGJAeisZ.css"><link rel="manifest" href="/manifest.webmanifest"></head><body class="font-sans"><noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-WHLF55BJ" height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript><div id="app"></div><noscript>This website requires JavaScript to function properly. Please enable JavaScript to continue.</noscript><script>try{var umamiJSUrl=__UMAMI_JS_URL__,umamiWebsiteId=__UMAMI_WEBSITE_ID__;!function(){var e=document.createElement("script");e.src=umamiJSUrl,e.defer=!0,e.setAttribute("data-website-id",umamiWebsiteId);var t=document.getElementsByTagName("script")[0];t.parentNode.insertBefore(e,t)}()}catch(e){}try{var baiduAnalyticsId=__BAIDU_ANALYTICS_ID__,_hmt=_hmt||[];!function(){var e=document.createElement("script");e.src=`https://hm.baidu.com/hm.js?${baiduAnalyticsId}`;var t=document.getElementsByTagName("script")[0];t.parentNode.insertBefore(e,t)}()}catch(e){}</script></body></html>
|
package/dist/sw.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
if(!self.define){let s,e={};const l=(l,n)=>(l=new URL(l+".js",n).href,e[l]||new Promise((e=>{if("document"in self){const s=document.createElement("script");s.src=l,s.onload=e,document.head.appendChild(s)}else s=l,importScripts(l),e()})).then((()=>{let s=e[l];if(!s)throw new Error(`Module ${l} didn’t register its module`);return s})));self.define=(n,r)=>{const i=s||("document"in self?document.currentScript.src:"")||location.href;if(e[i])return;let u={};const t=s=>l(s,i),o={module:{uri:i},exports:u,require:t};e[i]=Promise.all(n.map((s=>o[s]||t(s)))).then((s=>(r(...s),u)))}}define(["./workbox-7ee6f867"],(function(s){"use strict";self.skipWaiting(),s.clientsClaim(),s.precacheAndRoute([{url:"assets/_..-5I0UWqRG.css",revision:null},{url:"assets/_...all_-
|
|
1
|
+
if(!self.define){let s,e={};const l=(l,n)=>(l=new URL(l+".js",n).href,e[l]||new Promise((e=>{if("document"in self){const s=document.createElement("script");s.src=l,s.onload=e,document.head.appendChild(s)}else s=l,importScripts(l),e()})).then((()=>{let s=e[l];if(!s)throw new Error(`Module ${l} didn’t register its module`);return s})));self.define=(n,r)=>{const i=s||("document"in self?document.currentScript.src:"")||location.href;if(e[i])return;let u={};const t=s=>l(s,i),o={module:{uri:i},exports:u,require:t};e[i]=Promise.all(n.map((s=>o[s]||t(s)))).then((s=>(r(...s),u)))}}define(["./workbox-7ee6f867"],(function(s){"use strict";self.skipWaiting(),s.clientsClaim(),s.precacheAndRoute([{url:"assets/_..-5I0UWqRG.css",revision:null},{url:"assets/_...all_-a-Uvc7a9.js",revision:null},{url:"assets/_...all_-DB8qOqv8.js",revision:null},{url:"assets/_name_-BUzaHppL.js",revision:null},{url:"assets/_plugin-vue_export-helper-DlAUqK2U.js",revision:null},{url:"assets/about-DI_NGucr.js",revision:null},{url:"assets/Balloon.vue_vue_type_script_setup_true_lang-BYUKhrtC.js",revision:null},{url:"assets/Board-B9qlHyDI.js",revision:null},{url:"assets/Board-C89Lc-cb.css",revision:null},{url:"assets/board-iHKEEikR.js",revision:null},{url:"assets/board-layout-BHEsJV7B.js",revision:null},{url:"assets/constant-CZ5yULfd.js",revision:null},{url:"assets/ContestStateBadge-CCVy2wZJ.js",revision:null},{url:"assets/ContestStateBadge-D6uf8wH-.css",revision:null},{url:"assets/Countdown-cd9telur.js",revision:null},{url:"assets/Countdown-CGwMuG9S.css",revision:null},{url:"assets/DataSourceInput.vue_vue_type_script_setup_true_lang-B5xllChj.js",revision:null},{url:"assets/dayjs-CZgaplJl.js",revision:null},{url:"assets/default-DWmoYCsL.js",revision:null},{url:"assets/en-DYzJz2c1.js",revision:null},{url:"assets/Footer-ClNjZVUX.js",revision:null},{url:"assets/headless-CdZcsu6X.js",revision:null},{url:"assets/home-Ca7VxYvt.js",revision:null},{url:"assets/index-B0Nibdcu.js",revision:null},{url:"assets/index-B94pQy55.js",revision:null},{url:"assets/index-Bce8wPYb.css",revision:null},{url:"assets/index-BGJAeisZ.css",revision:null},{url:"assets/index-Bng_iWYy.js",revision:null},{url:"assets/index-BRDPFAYp.js",revision:null},{url:"assets/index-CrdVtfk1.js",revision:null},{url:"assets/index-D-msPqye.css",revision:null},{url:"assets/index-DEzYdclv.js",revision:null},{url:"assets/index-layout-BcC1Tv9X.js",revision:null},{url:"assets/NavBar--v06rckE.js",revision:null},{url:"assets/NavBar-aT2xEvYz.css",revision:null},{url:"assets/pagination-nWSlxTuW.js",revision:null},{url:"assets/person-CJEnqSCh.js",revision:null},{url:"assets/query-DRKvftyM.js",revision:null},{url:"assets/rank-CihvP4tD.js",revision:null},{url:"assets/Resolver-leMWgtXW.js",revision:null},{url:"assets/Resolver-ZGkKM3bm.css",revision:null},{url:"assets/RightArrowIcon-C7gnivmE.js",revision:null},{url:"assets/route-block-B_A1xBdJ.js",revision:null},{url:"assets/test-plNUzEC6.js",revision:null},{url:"assets/TheInput.vue_vue_type_script_setup_true_lang-Cq-GdaDA.js",revision:null},{url:"assets/Tooltip-DzyPDwbo.css",revision:null},{url:"assets/Tooltip.vue_vue_type_script_setup_true_lang-B47ETaN9.js",revision:null},{url:"assets/use-vmodel-DYni6XFa.js",revision:null},{url:"assets/useQueryBoardData-DfePVUs0.js",revision:null},{url:"assets/user-Cbn7G8ga.js",revision:null},{url:"assets/virtual_pwa-register-DHt7vHCS.js",revision:null},{url:"assets/workbox-window.prod.es5-CwtvwXb3.js",revision:null},{url:"assets/zh-CN-Cbd_t3aN.js",revision:null},{url:"index.html",revision:"4817ba65e317b4567b8ebea4e217e04f"},{url:"balloon2-192x192.png",revision:"c857ae6d9dfae118ab4397d4358422bd"},{url:"balloon2-512x512.png",revision:"065594f4f743fe3884793c03d3fe7d9e"},{url:"favicon.svg",revision:"5a744f4ccbb122d4a0575be779ddcd43"},{url:"safari-pinned-tab.svg",revision:"5eaf74d1c43d30e0af743b68a3f48504"},{url:"manifest.webmanifest",revision:"2a3579b4def3b981643d514aab210ae8"}],{}),s.cleanupOutdatedCaches(),s.registerRoute(new s.NavigationRoute(s.createHandlerBoundToURL("index.html")))}));
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xcpcio/board-app",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.69.
|
|
4
|
+
"version": "0.69.4",
|
|
5
5
|
"description": "The ICPC Series Competition Leaderboard Visualization Engine",
|
|
6
6
|
"author": "Dup4 <hi@dup4.com>",
|
|
7
7
|
"license": "MIT",
|
|
@@ -53,8 +53,8 @@
|
|
|
53
53
|
"vue-router": "^4.5.1",
|
|
54
54
|
"vue-search-select": "^3.2.0",
|
|
55
55
|
"vue-toast-notification": "^3.1.3",
|
|
56
|
-
"@xcpcio/core": "0.69.
|
|
57
|
-
"@xcpcio/types": "0.69.
|
|
56
|
+
"@xcpcio/core": "0.69.4",
|
|
57
|
+
"@xcpcio/types": "0.69.4"
|
|
58
58
|
},
|
|
59
59
|
"devDependencies": {
|
|
60
60
|
"@iconify/json": "^2.2.394",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{_ as i}from"./Board-BVen75jV.js";import{_ as u}from"./DataSourceInput.vue_vue_type_script_setup_true_lang-BSR2VCtr.js";import{b as f}from"./query-BhmpY-wC.js";import{d,c as e,o as t,a as n,q as l,h as a,F as B,G as h}from"./index-BKcY3Swi.js";import{b as c}from"./route-block-B_A1xBdJ.js";import{_ as k}from"./_plugin-vue_export-helper-DlAUqK2U.js";import"./pagination-DOI9pV_R.js";import"./Tooltip.vue_vue_type_script_setup_true_lang-CD6pyetv.js";import"./TheInput.vue_vue_type_script_setup_true_lang-dVwMfhGZ.js";import"./use-vmodel-B4t9FIsp.js";import"./rank-C4H4NPpa.js";import"./dayjs-BQfTCxeN.js";import"./person-CSt0lZte.js";import"./ContestStateBadge-Bka1vlys.js";import"./constant-D2ypMDfj.js";import"./useQueryBoardData-ByPXHJzy.js";const b={key:0},x=d({__name:"CustomBoard",setup(s){const o=f();return(r,g)=>{const _=u,p=i;return t(),e(B,null,[n(_),a(o).length>0?(t(),e("div",b,[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(),h(r)}typeof c=="function"&&c(m);const z=k(m,[["render",C]]);export{z as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{f as t}from"./index-BKcY3Swi.js";const a="0.69.2",T="https://github.com/xcpcio/xcpcio",c="b3e8d9bad3",I="https://xcpcio.com",r="Board - XCPCIO",_="Rating - XCPCIO",O="Balloon - XCPCIO",C="Resolver - XCPCIO",d="Countdown - XCPCIO",e=t(()=>window?window.CDN_HOST:""),o=t(()=>window?window.DATA_HOST:""),i=t(()=>o.value.replace("/data/","/rating-data/")),A=t(()=>window?window.DATA_REGION:"");export{a as A,O as B,e as C,o as D,T as G,i as R,r as T,I as X,c as a,A as b,d as c,_ as d,C as e};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{_ as u}from"./Resolver-CA2dYvtd.js";import{_ as l}from"./DataSourceInput.vue_vue_type_script_setup_true_lang-BSR2VCtr.js";import{b as d}from"./query-BhmpY-wC.js";import{d as f,c as e,o as t,F as h,q as c,h as r,b as v,a as n}from"./index-BKcY3Swi.js";import{b as a}from"./route-block-B_A1xBdJ.js";import{_ as k}from"./_plugin-vue_export-helper-DlAUqK2U.js";import"./rank-C4H4NPpa.js";import"./dayjs-BQfTCxeN.js";import"./person-CSt0lZte.js";import"./constant-D2ypMDfj.js";import"./useQueryBoardData-ByPXHJzy.js";import"./TheInput.vue_vue_type_script_setup_true_lang-dVwMfhGZ.js";import"./use-vmodel-B4t9FIsp.js";const x={key:0},b={"mt-20":""},g={key:1},y=f({__name:"CustomResolver",setup(m){const o=d();return(s,B)=>{const i=l,p=u;return t(),e(h,null,[r(o).length===0?(t(),e("div",x,[v("div",b,[n(i)])])):c("",!0),r(o).length>0?(t(),e("div",g,[n(p,{"data-source-url":r(o)},null,8,["data-source-url"])])):c("",!0)],64)}}}),_={};function C(m,o){const s=y;return t(),e("div",null,[n(s)])}typeof a=="function"&&a(_);const w=k(_,[["render",C]]);export{w as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{_ as u}from"./Balloon.vue_vue_type_script_setup_true_lang-uTXpjEyT.js";import{_ as l}from"./DataSourceInput.vue_vue_type_script_setup_true_lang-BSR2VCtr.js";import{b as d}from"./query-BhmpY-wC.js";import{d as f,c as t,o as e,F as h,q as s,h as r,b as B,a as n}from"./index-BKcY3Swi.js";import{b as c}from"./route-block-B_A1xBdJ.js";import{_ as k}from"./_plugin-vue_export-helper-DlAUqK2U.js";import"./constant-D2ypMDfj.js";import"./rank-C4H4NPpa.js";import"./dayjs-BQfTCxeN.js";import"./person-CSt0lZte.js";import"./useQueryBoardData-ByPXHJzy.js";import"./TheInput.vue_vue_type_script_setup_true_lang-dVwMfhGZ.js";import"./use-vmodel-B4t9FIsp.js";const x={key:0},b={"mt-20":""},v={key:1},y=f({__name:"CustomBalloon",setup(_){const o=d();return(a,g)=>{const i=l,p=u;return e(),t(h,null,[r(o).length===0?(e(),t("div",x,[B("div",b,[n(i)])])):s("",!0),r(o).length>0?(e(),t("div",v,[n(p,{"data-source-url":r(o)},null,8,["data-source-url"])])):s("",!0)],64)}}}),m={};function C(_,o){const a=y;return e(),t("div",null,[n(a)])}typeof c=="function"&&c(m);const z=k(m,[["render",C]]);export{z as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{_ as p}from"./Countdown-CuCYTlxc.js";import{_ as d}from"./DataSourceInput.vue_vue_type_script_setup_true_lang-BSR2VCtr.js";import{b as f}from"./query-BhmpY-wC.js";import{d as l,c as t,o as e,F as h,q as c,h as n,b as C,a as r}from"./index-BKcY3Swi.js";import{b as a}from"./route-block-B_A1xBdJ.js";import{_ as k}from"./_plugin-vue_export-helper-DlAUqK2U.js";import"./constant-D2ypMDfj.js";import"./useQueryBoardData-ByPXHJzy.js";import"./TheInput.vue_vue_type_script_setup_true_lang-dVwMfhGZ.js";import"./use-vmodel-B4t9FIsp.js";import"./dayjs-BQfTCxeN.js";const x={key:0},b={"mt-20":""},g={key:1},v=l({__name:"CustomCountdown",setup(m){const o=f();return(s,w)=>{const u=d,i=p;return e(),t(h,null,[n(o).length===0?(e(),t("div",x,[C("div",b,[r(u)])])):c("",!0),n(o).length>0?(e(),t("div",g,[r(i,{"data-source-url":n(o)},null,8,["data-source-url"])])):c("",!0)],64)}}}),_={};function y(m,o){const s=v;return e(),t("div",null,[r(s)])}typeof a=="function"&&a(_);const Q=k(_,[["render",y]]);export{Q as default};
|