@xcpcio/board-app 0.26.0 → 0.26.1

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/about.html CHANGED
@@ -1,4 +1,4 @@
1
- <!DOCTYPE html><html lang="en" data-critters-container><head><meta charset="UTF-8"><!-- <meta name="viewport" content="width=device-width, initial-scale=1.0"> --><link rel="apple-touch-icon" href="https://cdn.jsdelivr.net/npm/@xcpcio/board-app@0.26.0/dist/balloon-192x192.png"><link rel="mask-icon" href="https://cdn.jsdelivr.net/npm/@xcpcio/board-app@0.26.0/dist/balloon-512x512.svg" color="#00aba9"><meta name="msapplication-TileColor" content="#00aba9"><script>function normalizePath(_){for(;_.endsWith("/");)_=_.slice(0,-1);return _+"/"}{let _="__CDN_HOST__";_=normalizePath(_),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"}</script><script>!function(){var e=window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches,t=localStorage.getItem("vueuse-color-scheme")||"auto";("dark"===t||e&&"light"!==t)&&document.documentElement.classList.toggle("dark",!0)}()</script><script type="module" async crossorigin src="https://cdn.jsdelivr.net/npm/@xcpcio/board-app@0.26.0/dist/assets/app-229ad629.js"></script><link rel="manifest" href="/manifest.webmanifest"><style></style><link rel="modulepreload" crossorigin href="/assets/about-ed4e51a8.js"><title>About</title><meta name="description" content="XCPCIO-Board 主要收录 *CPC 系列竞赛的榜单。"><meta name="keywords" content="icpc, ccpc, rank, board, standings"><meta name="theme-color" content="#ffffff"><link rel="icon" type="image/svg+xml" href="/favicon.svg"><meta property="og:title" content="About"><meta name="twitter:title" content="About"></head><body class="font-sans"><div id="app" data-server-rendered="true"><!--[--><header class="header z-40" data-v-a79e7085><button title="Scroll to top" fixed bottom-6 right-6 z-100 h-10 w-10 rounded-full transition duration-300 print:hidden hover-bg-hex-8883 hover:op100 class="op0! pointer-events-none" data-v-a79e7085><div i-ri-arrow-up-line data-v-a79e7085></div></button><nav class="fixed nav" text-xl data-v-a79e7085><div class="spacer" data-v-a79e7085></div><div class="right" print:op0 data-v-a79e7085><a href="/" class icon-btn title="Home" focusable="false" data-v-a79e7085><div i-ion-balloon-sharp data-v-a79e7085></div></a><a icon-btn title="Change languages" data-v-a79e7085><div i-carbon-language data-v-a79e7085></div></a><a icon-btn title="Toggle dark mode" data-v-a79e7085><div i="carbon-sun dark:carbon-moon" data-v-a79e7085></div></a><a icon-btn rel="noreferrer" href="https://github.com/xcpcio/xcpcio" target="_blank" title="GitHub" data-v-a79e7085><div i-carbon-logo-github data-v-a79e7085></div></a></div></nav></header><main py-10 text-gray-700 dark:text-gray-200><div class="prose prose-sm m-auto text-left"><div class="text-center"><div i-carbon-dicom-overlay class="text-4xl -mb-6 m-auto"></div><h3>About</h3></div><p><a href="https://github.com/xcpcio/xcpcio" target="_blank" rel="noopener">Board - XCPCIO</a> is an opinionated ICPC/CCPC Board made by <a href="https://github.com/dup4" target="_blank" rel="noopener">@dup4</a>.</p><pre hidden></pre><div class="shiki-container language-js"><pre class="shiki shiki-dark vitesse-dark" style="background-color:#121212" tabindex="0"><code><span class="line"><span style="color:#758575DD">// syntax highlighting example</span></span>
1
+ <!DOCTYPE html><html lang="en" data-critters-container><head><meta charset="UTF-8"><!-- <meta name="viewport" content="width=device-width, initial-scale=1.0"> --><link rel="apple-touch-icon" href="https://cdn.jsdelivr.net/npm/@xcpcio/board-app@0.26.1/dist/balloon-192x192.png"><link rel="mask-icon" href="https://cdn.jsdelivr.net/npm/@xcpcio/board-app@0.26.1/dist/balloon-512x512.svg" color="#00aba9"><meta name="msapplication-TileColor" content="#00aba9"><script>function normalizePath(_){for(;_.endsWith("/");)_=_.slice(0,-1);return _+"/"}{let _="__CDN_HOST__";_=normalizePath(_),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"}</script><script>!function(){var e=window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches,t=localStorage.getItem("vueuse-color-scheme")||"auto";("dark"===t||e&&"light"!==t)&&document.documentElement.classList.toggle("dark",!0)}()</script><script type="module" async crossorigin src="https://cdn.jsdelivr.net/npm/@xcpcio/board-app@0.26.1/dist/assets/app-21014468.js"></script><link rel="manifest" href="/manifest.webmanifest"><style></style><link rel="modulepreload" crossorigin href="/assets/about-94580762.js"><title>About</title><meta name="description" content="XCPCIO-Board 主要收录 *CPC 系列竞赛的榜单。"><meta name="keywords" content="icpc, ccpc, rank, board, standings"><meta name="theme-color" content="#ffffff"><link rel="icon" type="image/svg+xml" href="/favicon.svg"><meta property="og:title" content="About"><meta name="twitter:title" content="About"></head><body class="font-sans"><div id="app" data-server-rendered="true"><!--[--><header class="header z-40" data-v-a79e7085><button title="Scroll to top" fixed bottom-6 right-6 z-100 h-10 w-10 rounded-full transition duration-300 print:hidden hover-bg-hex-8883 hover:op100 class="op0! pointer-events-none" data-v-a79e7085><div i-ri-arrow-up-line data-v-a79e7085></div></button><nav class="fixed nav" text-xl data-v-a79e7085><div class="spacer" data-v-a79e7085></div><div class="right" print:op0 data-v-a79e7085><a href="/" class icon-btn title="Home" focusable="false" data-v-a79e7085><div i-ion-balloon-sharp data-v-a79e7085></div></a><a icon-btn title="Change languages" data-v-a79e7085><div i-carbon-language data-v-a79e7085></div></a><a icon-btn title="Toggle dark mode" data-v-a79e7085><div i="carbon-sun dark:carbon-moon" data-v-a79e7085></div></a><a icon-btn rel="noreferrer" href="https://github.com/xcpcio/xcpcio" target="_blank" title="GitHub" data-v-a79e7085><div i-carbon-logo-github data-v-a79e7085></div></a></div></nav></header><main py-10 text-gray-700 dark:text-gray-200><div class="prose prose-sm m-auto text-left"><div class="text-center"><div i-carbon-dicom-overlay class="text-4xl -mb-6 m-auto"></div><h3>About</h3></div><p><a href="https://github.com/xcpcio/xcpcio" target="_blank" rel="noopener">Board - XCPCIO</a> is an opinionated ICPC/CCPC Board made by <a href="https://github.com/dup4" target="_blank" rel="noopener">@dup4</a>.</p><pre hidden></pre><div class="shiki-container language-js"><pre class="shiki shiki-dark vitesse-dark" style="background-color:#121212" tabindex="0"><code><span class="line"><span style="color:#758575DD">// syntax highlighting example</span></span>
2
2
  <span class="line"><span style="color:#cb7676">function</span><span style="color:#dbd7CAEE"> </span><span style="color:#80a665">board</span><span style="color:#666">()</span><span style="color:#dbd7CAEE"> </span><span style="color:#666">{</span></span>
3
3
  <span class="line"><span style="color:#dbd7CAEE"> </span><span style="color:#cb7676">const</span><span style="color:#dbd7CAEE"> </span><span style="color:#bd976a">foo</span><span style="color:#dbd7CAEE"> </span><span style="color:#666">=</span><span style="color:#dbd7CAEE"> </span><span style="color:#c98A7D99">"</span><span style="color:#c98a7d">bar</span><span style="color:#c98A7D99">"</span><span style="color:#666">;</span></span>
4
4
  <span class="line"><span style="color:#dbd7CAEE"> </span><span style="color:#bd976a">console</span><span style="color:#666">.</span><span style="color:#80a665">log</span><span style="color:#666">(</span><span style="color:#bd976a">foo</span><span style="color:#666">);</span></span>
@@ -8,4 +8,4 @@
8
8
  <span class="line"><span style="color:#393a34"> </span><span style="color:#ab5959">const</span><span style="color:#393a34"> </span><span style="color:#b07d48">foo</span><span style="color:#393a34"> </span><span style="color:#999">=</span><span style="color:#393a34"> </span><span style="color:#b5695999">"</span><span style="color:#b56959">bar</span><span style="color:#b5695999">"</span><span style="color:#999">;</span></span>
9
9
  <span class="line"><span style="color:#393a34"> </span><span style="color:#b07d48">console</span><span style="color:#999">.</span><span style="color:#59873a">log</span><span style="color:#999">(</span><span style="color:#b07d48">foo</span><span style="color:#999">);</span></span>
10
10
  <span class="line"><span style="color:#999">}</span></span>
11
- <span class="line"></span></code></pre></div><p>Check out the <a href="https://github.com/xcpcio/xcpcio" target="_blank" rel="noopener">GitHub repo</a> for more details.</p></div><footer mt-8 py-4 md:py-8 lg:py-10 w-full flex justify-center items-center><div text-center w-full><a href="/" class flex items-center justify-center text-2xl font-semibold text-gray-900 dark:text-white><div i-ion-balloon-sharp mr-4 h-8></div>Get more balloons</a><p my-6 text-gray-500 dark:text-gray-400 w-full flex justify-center>Open-source project of ICPC/CCPC Standings.</p><ul mb-6 w-full flex flex-wrap items-center justify-center text-gray-900 dark:text-white><li><a href="/" class mr-4 md:mr-6 hover:underline>Home</a></li><li><div class="v-popper v-popper--theme-tooltip" w-inherit><!--[--><!--[--><a href="https://github.com/xcpcio/xcpcio" class="mr-4 md:mr-6 hover:underline" rel="noreferrer" target="_blank" title="GitHub">GitHub</a><!--]--><div id="popper_8brq9jfl_7vybbm" class="v-popper__popper v-popper--theme-tooltip v-popper__popper--hidden v-popper__popper--hide-to" style="position:absolute;transform:translate3d(0,0,0)" aria-hidden="true" data-popper-placement><div class="v-popper__backdrop"></div><div class="v-popper__wrapper" style><div class="v-popper__inner"><!----></div><div class="v-popper__arrow-container" style="left:0;top:0"><div class="v-popper__arrow-outer"></div><div class="v-popper__arrow-inner"></div></div></div></div><!--]--></div></li><li><div class="v-popper v-popper--theme-tooltip" w-inherit><!--[--><!--[--><a href="mailto:hi@dup4.com" mr-4 md:mr-6 hover:underline>Contact</a><!--]--><div id="popper_tgyqqoyd_7vybbn" class="v-popper__popper v-popper--theme-tooltip v-popper__popper--hidden v-popper__popper--hide-to" style="position:absolute;transform:translate3d(0,0,0)" aria-hidden="true" data-popper-placement><div class="v-popper__backdrop"></div><div class="v-popper__wrapper" style><div class="v-popper__inner"><!----></div><div class="v-popper__arrow-container" style="left:0;top:0"><div class="v-popper__arrow-outer"></div><div class="v-popper__arrow-inner"></div></div></div></div><!--]--></div></li></ul><span text-sm text-gray-500 sm:text-center dark:text-gray-400 w-full>© 2020-PRESENT <a href="/" class hover:underline>XCPCIO™</a>. All Rights Reserved.</span></div></footer></main><!--]--></div><script>window.__INITIAL_STATE__='{"pinia":{}}'</script><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"),t=(e.src=umamiJSUrl,e.defer=!0,e.setAttribute("data-website-id",umamiWebsiteId),document.getElementsByTagName("script")[0]);t.parentNode.insertBefore(e,t)}()}catch(e){}try{var plausibleJSUrl=__PLAUSIBLE_JS_URL__,plausibleDataDomain=__PLAUSIBLE_DATA_DOMAIN__;!function(){var e=document.createElement("script"),t=(e.src=plausibleJSUrl,e.defer=!0,e.setAttribute("data-domain",plausibleDataDomain),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"),t=(e.src="https://hm.baidu.com/hm.js?"+baiduAnalyticsId,document.getElementsByTagName("script")[0]);t.parentNode.insertBefore(e,t)}()}catch(e){}try{var googleAnalyticsId=__GOOGLE_ANALYTICS_ID__;!function(){var e,t,a,r;location.port||(e=window,r=document,t="script",a="ga",e.GoogleAnalyticsObject=a,e.ga=e.ga||function(){(e.ga.q=e.ga.q||[]).push(arguments)},e.ga.l=+new Date,a=r.createElement(t),r=r.getElementsByTagName(t)[0],a.async=1,a.src="//www.google-analytics.com/analytics.js",r.parentNode.insertBefore(a,r),ga("create",""+googleAnalyticsId,"auto"),ga("send","pageview"))}()}catch(e){}</script></body></html>
11
+ <span class="line"></span></code></pre></div><p>Check out the <a href="https://github.com/xcpcio/xcpcio" target="_blank" rel="noopener">GitHub repo</a> for more details.</p></div><footer mt-8 py-4 md:py-8 lg:py-10 w-full flex justify-center items-center><div text-center w-full><a href="/" class flex items-center justify-center text-2xl font-semibold text-gray-900 dark:text-white><div i-ion-balloon-sharp mr-4 h-8></div>Get more balloons</a><p my-6 text-gray-500 dark:text-gray-400 w-full flex justify-center>Open-source project of ICPC/CCPC Standings.</p><ul mb-6 w-full flex flex-wrap items-center justify-center text-gray-900 dark:text-white><li><a href="/" class mr-4 md:mr-6 hover:underline>Home</a></li><li><div class="v-popper v-popper--theme-tooltip" w-inherit><!--[--><!--[--><a href="https://github.com/xcpcio/xcpcio" class="mr-4 md:mr-6 hover:underline" rel="noreferrer" target="_blank" title="GitHub">GitHub</a><!--]--><div id="popper_hxegee31_7xicmi" class="v-popper__popper v-popper--theme-tooltip v-popper__popper--hidden v-popper__popper--hide-to" style="position:absolute;transform:translate3d(0,0,0)" aria-hidden="true" data-popper-placement><div class="v-popper__backdrop"></div><div class="v-popper__wrapper" style><div class="v-popper__inner"><!----></div><div class="v-popper__arrow-container" style="left:0;top:0"><div class="v-popper__arrow-outer"></div><div class="v-popper__arrow-inner"></div></div></div></div><!--]--></div></li><li><div class="v-popper v-popper--theme-tooltip" w-inherit><!--[--><!--[--><a href="mailto:hi@dup4.com" mr-4 md:mr-6 hover:underline>Contact</a><!--]--><div id="popper_4pz4nil7_7xicmj" class="v-popper__popper v-popper--theme-tooltip v-popper__popper--hidden v-popper__popper--hide-to" style="position:absolute;transform:translate3d(0,0,0)" aria-hidden="true" data-popper-placement><div class="v-popper__backdrop"></div><div class="v-popper__wrapper" style><div class="v-popper__inner"><!----></div><div class="v-popper__arrow-container" style="left:0;top:0"><div class="v-popper__arrow-outer"></div><div class="v-popper__arrow-inner"></div></div></div></div><!--]--></div></li></ul><span text-sm text-gray-500 sm:text-center dark:text-gray-400 w-full>© 2020-PRESENT <a href="/" class hover:underline>XCPCIO™</a>. All Rights Reserved.</span></div></footer></main><!--]--></div><script>window.__INITIAL_STATE__='{"pinia":{}}'</script><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"),t=(e.src=umamiJSUrl,e.defer=!0,e.setAttribute("data-website-id",umamiWebsiteId),document.getElementsByTagName("script")[0]);t.parentNode.insertBefore(e,t)}()}catch(e){}try{var plausibleJSUrl=__PLAUSIBLE_JS_URL__,plausibleDataDomain=__PLAUSIBLE_DATA_DOMAIN__;!function(){var e=document.createElement("script"),t=(e.src=plausibleJSUrl,e.defer=!0,e.setAttribute("data-domain",plausibleDataDomain),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"),t=(e.src="https://hm.baidu.com/hm.js?"+baiduAnalyticsId,document.getElementsByTagName("script")[0]);t.parentNode.insertBefore(e,t)}()}catch(e){}try{var googleAnalyticsId=__GOOGLE_ANALYTICS_ID__;!function(){var e,t,a,r;location.port||(e=window,r=document,t="script",a="ga",e.GoogleAnalyticsObject=a,e.ga=e.ga||function(){(e.ga.q=e.ga.q||[]).push(arguments)},e.ga.l=+new Date,a=r.createElement(t),r=r.getElementsByTagName(t)[0],a.async=1,a.src="//www.google-analytics.com/analytics.js",r.parentNode.insertBefore(a,r),ga("create",""+googleAnalyticsId,"auto"),ga("send","pageview"))}()}catch(e){}</script></body></html>
@@ -1 +1 @@
1
- import{ag as V,ah as w,ai as B,aj as D,ak as P,al as N,am as W,an as z,ao as _,ap as $,aq as H,ar as G,as as Y,at as J,h as x,au as X,w as Q,av as A,aw as Z,ax as ee,ay as te,az as se,j as R,aA as re,aB as ne,a7 as ie,g as ue,q as ae,i as le,P as oe,D as ce,o as he,c as de,d as g,b as fe,E as pe,G as ye,t as k,l as ve}from"./app-229ad629.js";import{_ as Re}from"./TheInput.vue_vue_type_script_setup_true_lang-01db0210.js";class me extends V{constructor(e,t){super(),this.client=e,this.options=t,this.trackedProps=new Set,this.selectError=null,this.bindMethods(),this.setOptions(t)}bindMethods(){this.remove=this.remove.bind(this),this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(this.currentQuery.addObserver(this),j(this.currentQuery,this.options)&&this.executeFetch(),this.updateTimers())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return E(this.currentQuery,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return E(this.currentQuery,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.clearStaleTimeout(),this.clearRefetchInterval(),this.currentQuery.removeObserver(this)}setOptions(e,t){const s=this.options,u=this.currentQuery;if(this.options=this.client.defaultQueryOptions(e),w(s,this.options)||this.client.getQueryCache().notify({type:"observerOptionsUpdated",query:this.currentQuery,observer:this}),typeof this.options.enabled<"u"&&typeof this.options.enabled!="boolean")throw new Error("Expected enabled to be a boolean");this.options.queryKey||(this.options.queryKey=s.queryKey),this.updateQuery();const n=this.hasListeners();n&&q(this.currentQuery,u,this.options,s)&&this.executeFetch(),this.updateResult(t),n&&(this.currentQuery!==u||this.options.enabled!==s.enabled||this.options.staleTime!==s.staleTime)&&this.updateStaleTimeout();const i=this.computeRefetchInterval();n&&(this.currentQuery!==u||this.options.enabled!==s.enabled||i!==this.currentRefetchInterval)&&this.updateRefetchInterval(i)}getOptimisticResult(e){const t=this.client.getQueryCache().build(this.client,e),s=this.createResult(t,e);return ge(this,s,e)&&(this.currentResult=s,this.currentResultOptions=this.options,this.currentResultState=this.currentQuery.state),s}getCurrentResult(){return this.currentResult}trackResult(e){const t={};return Object.keys(e).forEach(s=>{Object.defineProperty(t,s,{configurable:!1,enumerable:!0,get:()=>(this.trackedProps.add(s),e[s])})}),t}getCurrentQuery(){return this.currentQuery}remove(){this.client.getQueryCache().remove(this.currentQuery)}refetch({refetchPage:e,...t}={}){return this.fetch({...t,meta:{refetchPage:e}})}fetchOptimistic(e){const t=this.client.defaultQueryOptions(e),s=this.client.getQueryCache().build(this.client,t);return s.isFetchingOptimistic=!0,s.fetch().then(()=>this.createResult(s,t))}fetch(e){var t;return this.executeFetch({...e,cancelRefetch:(t=e.cancelRefetch)!=null?t:!0}).then(()=>(this.updateResult(),this.currentResult))}executeFetch(e){this.updateQuery();let t=this.currentQuery.fetch(this.options,e);return e!=null&&e.throwOnError||(t=t.catch(B)),t}updateStaleTimeout(){if(this.clearStaleTimeout(),D||this.currentResult.isStale||!P(this.options.staleTime))return;const t=N(this.currentResult.dataUpdatedAt,this.options.staleTime)+1;this.staleTimeoutId=setTimeout(()=>{this.currentResult.isStale||this.updateResult()},t)}computeRefetchInterval(){var e;return typeof this.options.refetchInterval=="function"?this.options.refetchInterval(this.currentResult.data,this.currentQuery):(e=this.options.refetchInterval)!=null?e:!1}updateRefetchInterval(e){this.clearRefetchInterval(),this.currentRefetchInterval=e,!(D||this.options.enabled===!1||!P(this.currentRefetchInterval)||this.currentRefetchInterval===0)&&(this.refetchIntervalId=setInterval(()=>{(this.options.refetchIntervalInBackground||W.isFocused())&&this.executeFetch()},this.currentRefetchInterval))}updateTimers(){this.updateStaleTimeout(),this.updateRefetchInterval(this.computeRefetchInterval())}clearStaleTimeout(){this.staleTimeoutId&&(clearTimeout(this.staleTimeoutId),this.staleTimeoutId=void 0)}clearRefetchInterval(){this.refetchIntervalId&&(clearInterval(this.refetchIntervalId),this.refetchIntervalId=void 0)}createResult(e,t){const s=this.currentQuery,u=this.options,n=this.currentResult,i=this.currentResultState,l=this.currentResultOptions,a=e!==s,h=a?e.state:this.currentQueryInitialState,c=a?this.currentResult:this.previousQueryResult,{state:o}=e;let{dataUpdatedAt:d,error:m,errorUpdatedAt:b,fetchStatus:v,status:f}=o,U=!1,F=!1,y;if(t._optimisticResults){const p=this.hasListeners(),O=!p&&j(e,t),M=p&&q(e,s,t,u);(O||M)&&(v=z(e.options.networkMode)?"fetching":"paused",d||(f="loading")),t._optimisticResults==="isRestoring"&&(v="idle")}if(t.keepPreviousData&&!o.dataUpdatedAt&&c!=null&&c.isSuccess&&f!=="error")y=c.data,d=c.dataUpdatedAt,f=c.status,U=!0;else if(t.select&&typeof o.data<"u")if(n&&o.data===(i==null?void 0:i.data)&&t.select===this.selectFn)y=this.selectResult;else try{this.selectFn=t.select,y=t.select(o.data),y=_(n==null?void 0:n.data,y,t),this.selectResult=y,this.selectError=null}catch(p){this.selectError=p}else y=o.data;if(typeof t.placeholderData<"u"&&typeof y>"u"&&f==="loading"){let p;if(n!=null&&n.isPlaceholderData&&t.placeholderData===(l==null?void 0:l.placeholderData))p=n.data;else if(p=typeof t.placeholderData=="function"?t.placeholderData():t.placeholderData,t.select&&typeof p<"u")try{p=t.select(p),this.selectError=null}catch(O){this.selectError=O}typeof p<"u"&&(f="success",y=_(n==null?void 0:n.data,p,t),F=!0)}this.selectError&&(m=this.selectError,y=this.selectResult,b=Date.now(),f="error");const I=v==="fetching",S=f==="loading",C=f==="error";return{status:f,fetchStatus:v,isLoading:S,isSuccess:f==="success",isError:C,isInitialLoading:S&&I,data:y,dataUpdatedAt:d,error:m,errorUpdatedAt:b,failureCount:o.fetchFailureCount,failureReason:o.fetchFailureReason,errorUpdateCount:o.errorUpdateCount,isFetched:o.dataUpdateCount>0||o.errorUpdateCount>0,isFetchedAfterMount:o.dataUpdateCount>h.dataUpdateCount||o.errorUpdateCount>h.errorUpdateCount,isFetching:I,isRefetching:I&&!S,isLoadingError:C&&o.dataUpdatedAt===0,isPaused:v==="paused",isPlaceholderData:F,isPreviousData:U,isRefetchError:C&&o.dataUpdatedAt!==0,isStale:T(e,t),refetch:this.refetch,remove:this.remove}}updateResult(e){const t=this.currentResult,s=this.createResult(this.currentQuery,this.options);if(this.currentResultState=this.currentQuery.state,this.currentResultOptions=this.options,w(s,t))return;this.currentResult=s;const u={cache:!0},n=()=>{if(!t)return!0;const{notifyOnChangeProps:i}=this.options,l=typeof i=="function"?i():i;if(l==="all"||!l&&!this.trackedProps.size)return!0;const a=new Set(l??this.trackedProps);return this.options.useErrorBoundary&&a.add("error"),Object.keys(this.currentResult).some(h=>{const c=h;return this.currentResult[c]!==t[c]&&a.has(c)})};(e==null?void 0:e.listeners)!==!1&&n()&&(u.listeners=!0),this.notify({...u,...e})}updateQuery(){const e=this.client.getQueryCache().build(this.client,this.options);if(e===this.currentQuery)return;const t=this.currentQuery;this.currentQuery=e,this.currentQueryInitialState=e.state,this.previousQueryResult=this.currentResult,this.hasListeners()&&(t==null||t.removeObserver(this),e.addObserver(this))}onQueryUpdate(e){const t={};e.type==="success"?t.onSuccess=!e.manual:e.type==="error"&&!$(e.error)&&(t.onError=!0),this.updateResult(t),this.hasListeners()&&this.updateTimers()}notify(e){H.batch(()=>{if(e.onSuccess){var t,s,u,n;(t=(s=this.options).onSuccess)==null||t.call(s,this.currentResult.data),(u=(n=this.options).onSettled)==null||u.call(n,this.currentResult.data,null)}else if(e.onError){var i,l,a,h;(i=(l=this.options).onError)==null||i.call(l,this.currentResult.error),(a=(h=this.options).onSettled)==null||a.call(h,void 0,this.currentResult.error)}e.listeners&&this.listeners.forEach(({listener:c})=>{c(this.currentResult)}),e.cache&&this.client.getQueryCache().notify({query:this.currentQuery,type:"observerResultsUpdated"})})}}function be(r,e){return e.enabled!==!1&&!r.state.dataUpdatedAt&&!(r.state.status==="error"&&e.retryOnMount===!1)}function j(r,e){return be(r,e)||r.state.dataUpdatedAt>0&&E(r,e,e.refetchOnMount)}function E(r,e,t){if(e.enabled!==!1){const s=typeof t=="function"?t(r):t;return s==="always"||s!==!1&&T(r,e)}return!1}function q(r,e,t,s){return t.enabled!==!1&&(r!==e||s.enabled===!1)&&(!t.suspense||r.state.status!=="error")&&T(r,t)}function T(r,e){return r.isStaleByTime(e.staleTime)}function ge(r,e,t){return t.keepPreviousData?!1:t.placeholderData!==void 0?e.isPlaceholderData:!w(r.getCurrentResult(),e)}function Qe(r=""){var e;if(!((e=G())==null?void 0:e.proxy))throw new Error("vue-query hooks can only be used inside setup() function.");const s=J(r),u=Y(s);if(!u)throw new Error("No 'queryClient' found in Vue context, use 'VueQueryPlugin' to properly initialize the library.");return u}function Ie(r,e,t={},s={}){var u;const n=x(()=>Se(e,t,s)),i=(u=n.value.queryClient)!=null?u:Qe(n.value.queryClientKey),l=x(()=>{const d=i.defaultQueryOptions(n.value);return d._optimisticResults=i.isRestoring.value?"isRestoring":"optimistic",d}),a=new r(i,l.value),h=X(a.getCurrentResult());let c=()=>{};Q(i.isRestoring,d=>{d||(c(),c=a.subscribe(m=>{A(h,m)}))},{immediate:!0}),Q(l,()=>{a.setOptions(l.value),A(h,a.getCurrentResult())}),Z(()=>{c()});const o=()=>new Promise((d,m)=>{let b=()=>{};const v=()=>{if(l.value.enabled!==!1){const f=a.getOptimisticResult(l.value);f.isStale?(b(),a.fetchOptimistic(l.value).then(d,m)):(b(),d(f))}};v(),b=Q(l,v,{deep:!0})});return Q(()=>h.error,d=>{if(h.isError&&!h.isFetching&&ee(l.value.useErrorBoundary,[d,a.getCurrentQuery()]))throw d}),{...te(se(h)),suspense:o}}function Se(r,e={},t={}){const s=R(r),u=R(e),n=R(t);let i=s;return re(s)?typeof u=="function"?i={...n,queryKey:s,queryFn:u}:i={...u,queryKey:s}:i=s,ne(i)}function Ce(r,e,t){const s=Ie(me,r,e,t);return{...s,refetch:s.refetch.value,remove:s.remove.value}}const Oe=3,K=30*1e3;async function we(r,e){const t=r.startsWith("/")?r.slice(1):r;let s=`${window.DATA_HOST}${t}`;r.startsWith("http")&&(s=r),s.endsWith("/")&&(s=s.slice(0,-1));const u=await fetch(`${s}/config.json?t=${e??0}`),n=await fetch(`${s}/team.json?t=${e??0}`),i=await fetch(`${s}/run.json?t=${e??0}`);return Promise.all([u.json(),n.json(),i.json()]).then(a=>({contest:a[0],teams:a[1],submissions:a[2]}))}function Ae(r,e){return Ce({queryKey:[r,e.value.getTime()],queryFn:()=>we(r,e.value.getTime()),retry:Oe,staleTime:K,refetchInterval:K})}function Ee(){return ie("data-source","",{transform:String})}const Te={key:0,class:"flex flex-col items-center"},Ue={"w-128":""},Fe=g("div",{"py-2":""},null,-1),De=["disabled"],L="Data Source URL",ke=ue({__name:"DataSourceInput",setup(r){const{t:e}=ae(),t=Ee(),s=le(t.value),u=oe(),n=ce();function i(){n.push(`${u.fullPath}/?data-source=${s.value.trim()}`)}return(l,a)=>{const h=Re;return R(t).length===0?(he(),de("div",Te,[g("div",Ue,[fe(h,{modelValue:R(s),"onUpdate:modelValue":a[0]||(a[0]=c=>pe(s)?s.value=c:null),"w-full":"",placeholder:L,autocomplete:"false",onKeydown:ye(i,["enter"])},null,8,["modelValue","onKeydown"]),g("label",{class:"hidden",for:"input"},k(L))]),Fe,g("div",null,[g("button",{"m-3":"","text-sm":"",btn:"",disabled:R(s).length===0,onClick:i},k(R(e)("button.go")),9,De)])])):ve("",!0)}}});export{ke as _,Ee as g,Ae as u};
1
+ import{ag as V,ah as w,ai as B,aj as D,ak as P,al as N,am as W,an as z,ao as _,ap as $,aq as H,ar as G,as as Y,at as J,h as x,au as X,w as Q,av as A,aw as Z,ax as ee,ay as te,az as se,j as R,aA as re,aB as ne,a7 as ie,g as ue,q as ae,i as le,P as oe,D as ce,o as he,c as de,d as g,b as fe,E as pe,G as ye,t as k,l as ve}from"./app-21014468.js";import{_ as Re}from"./TheInput.vue_vue_type_script_setup_true_lang-4ea0bd97.js";class me extends V{constructor(e,t){super(),this.client=e,this.options=t,this.trackedProps=new Set,this.selectError=null,this.bindMethods(),this.setOptions(t)}bindMethods(){this.remove=this.remove.bind(this),this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(this.currentQuery.addObserver(this),j(this.currentQuery,this.options)&&this.executeFetch(),this.updateTimers())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return E(this.currentQuery,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return E(this.currentQuery,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.clearStaleTimeout(),this.clearRefetchInterval(),this.currentQuery.removeObserver(this)}setOptions(e,t){const s=this.options,u=this.currentQuery;if(this.options=this.client.defaultQueryOptions(e),w(s,this.options)||this.client.getQueryCache().notify({type:"observerOptionsUpdated",query:this.currentQuery,observer:this}),typeof this.options.enabled<"u"&&typeof this.options.enabled!="boolean")throw new Error("Expected enabled to be a boolean");this.options.queryKey||(this.options.queryKey=s.queryKey),this.updateQuery();const n=this.hasListeners();n&&q(this.currentQuery,u,this.options,s)&&this.executeFetch(),this.updateResult(t),n&&(this.currentQuery!==u||this.options.enabled!==s.enabled||this.options.staleTime!==s.staleTime)&&this.updateStaleTimeout();const i=this.computeRefetchInterval();n&&(this.currentQuery!==u||this.options.enabled!==s.enabled||i!==this.currentRefetchInterval)&&this.updateRefetchInterval(i)}getOptimisticResult(e){const t=this.client.getQueryCache().build(this.client,e),s=this.createResult(t,e);return ge(this,s,e)&&(this.currentResult=s,this.currentResultOptions=this.options,this.currentResultState=this.currentQuery.state),s}getCurrentResult(){return this.currentResult}trackResult(e){const t={};return Object.keys(e).forEach(s=>{Object.defineProperty(t,s,{configurable:!1,enumerable:!0,get:()=>(this.trackedProps.add(s),e[s])})}),t}getCurrentQuery(){return this.currentQuery}remove(){this.client.getQueryCache().remove(this.currentQuery)}refetch({refetchPage:e,...t}={}){return this.fetch({...t,meta:{refetchPage:e}})}fetchOptimistic(e){const t=this.client.defaultQueryOptions(e),s=this.client.getQueryCache().build(this.client,t);return s.isFetchingOptimistic=!0,s.fetch().then(()=>this.createResult(s,t))}fetch(e){var t;return this.executeFetch({...e,cancelRefetch:(t=e.cancelRefetch)!=null?t:!0}).then(()=>(this.updateResult(),this.currentResult))}executeFetch(e){this.updateQuery();let t=this.currentQuery.fetch(this.options,e);return e!=null&&e.throwOnError||(t=t.catch(B)),t}updateStaleTimeout(){if(this.clearStaleTimeout(),D||this.currentResult.isStale||!P(this.options.staleTime))return;const t=N(this.currentResult.dataUpdatedAt,this.options.staleTime)+1;this.staleTimeoutId=setTimeout(()=>{this.currentResult.isStale||this.updateResult()},t)}computeRefetchInterval(){var e;return typeof this.options.refetchInterval=="function"?this.options.refetchInterval(this.currentResult.data,this.currentQuery):(e=this.options.refetchInterval)!=null?e:!1}updateRefetchInterval(e){this.clearRefetchInterval(),this.currentRefetchInterval=e,!(D||this.options.enabled===!1||!P(this.currentRefetchInterval)||this.currentRefetchInterval===0)&&(this.refetchIntervalId=setInterval(()=>{(this.options.refetchIntervalInBackground||W.isFocused())&&this.executeFetch()},this.currentRefetchInterval))}updateTimers(){this.updateStaleTimeout(),this.updateRefetchInterval(this.computeRefetchInterval())}clearStaleTimeout(){this.staleTimeoutId&&(clearTimeout(this.staleTimeoutId),this.staleTimeoutId=void 0)}clearRefetchInterval(){this.refetchIntervalId&&(clearInterval(this.refetchIntervalId),this.refetchIntervalId=void 0)}createResult(e,t){const s=this.currentQuery,u=this.options,n=this.currentResult,i=this.currentResultState,l=this.currentResultOptions,a=e!==s,h=a?e.state:this.currentQueryInitialState,c=a?this.currentResult:this.previousQueryResult,{state:o}=e;let{dataUpdatedAt:d,error:m,errorUpdatedAt:b,fetchStatus:v,status:f}=o,U=!1,F=!1,y;if(t._optimisticResults){const p=this.hasListeners(),O=!p&&j(e,t),M=p&&q(e,s,t,u);(O||M)&&(v=z(e.options.networkMode)?"fetching":"paused",d||(f="loading")),t._optimisticResults==="isRestoring"&&(v="idle")}if(t.keepPreviousData&&!o.dataUpdatedAt&&c!=null&&c.isSuccess&&f!=="error")y=c.data,d=c.dataUpdatedAt,f=c.status,U=!0;else if(t.select&&typeof o.data<"u")if(n&&o.data===(i==null?void 0:i.data)&&t.select===this.selectFn)y=this.selectResult;else try{this.selectFn=t.select,y=t.select(o.data),y=_(n==null?void 0:n.data,y,t),this.selectResult=y,this.selectError=null}catch(p){this.selectError=p}else y=o.data;if(typeof t.placeholderData<"u"&&typeof y>"u"&&f==="loading"){let p;if(n!=null&&n.isPlaceholderData&&t.placeholderData===(l==null?void 0:l.placeholderData))p=n.data;else if(p=typeof t.placeholderData=="function"?t.placeholderData():t.placeholderData,t.select&&typeof p<"u")try{p=t.select(p),this.selectError=null}catch(O){this.selectError=O}typeof p<"u"&&(f="success",y=_(n==null?void 0:n.data,p,t),F=!0)}this.selectError&&(m=this.selectError,y=this.selectResult,b=Date.now(),f="error");const I=v==="fetching",S=f==="loading",C=f==="error";return{status:f,fetchStatus:v,isLoading:S,isSuccess:f==="success",isError:C,isInitialLoading:S&&I,data:y,dataUpdatedAt:d,error:m,errorUpdatedAt:b,failureCount:o.fetchFailureCount,failureReason:o.fetchFailureReason,errorUpdateCount:o.errorUpdateCount,isFetched:o.dataUpdateCount>0||o.errorUpdateCount>0,isFetchedAfterMount:o.dataUpdateCount>h.dataUpdateCount||o.errorUpdateCount>h.errorUpdateCount,isFetching:I,isRefetching:I&&!S,isLoadingError:C&&o.dataUpdatedAt===0,isPaused:v==="paused",isPlaceholderData:F,isPreviousData:U,isRefetchError:C&&o.dataUpdatedAt!==0,isStale:T(e,t),refetch:this.refetch,remove:this.remove}}updateResult(e){const t=this.currentResult,s=this.createResult(this.currentQuery,this.options);if(this.currentResultState=this.currentQuery.state,this.currentResultOptions=this.options,w(s,t))return;this.currentResult=s;const u={cache:!0},n=()=>{if(!t)return!0;const{notifyOnChangeProps:i}=this.options,l=typeof i=="function"?i():i;if(l==="all"||!l&&!this.trackedProps.size)return!0;const a=new Set(l??this.trackedProps);return this.options.useErrorBoundary&&a.add("error"),Object.keys(this.currentResult).some(h=>{const c=h;return this.currentResult[c]!==t[c]&&a.has(c)})};(e==null?void 0:e.listeners)!==!1&&n()&&(u.listeners=!0),this.notify({...u,...e})}updateQuery(){const e=this.client.getQueryCache().build(this.client,this.options);if(e===this.currentQuery)return;const t=this.currentQuery;this.currentQuery=e,this.currentQueryInitialState=e.state,this.previousQueryResult=this.currentResult,this.hasListeners()&&(t==null||t.removeObserver(this),e.addObserver(this))}onQueryUpdate(e){const t={};e.type==="success"?t.onSuccess=!e.manual:e.type==="error"&&!$(e.error)&&(t.onError=!0),this.updateResult(t),this.hasListeners()&&this.updateTimers()}notify(e){H.batch(()=>{if(e.onSuccess){var t,s,u,n;(t=(s=this.options).onSuccess)==null||t.call(s,this.currentResult.data),(u=(n=this.options).onSettled)==null||u.call(n,this.currentResult.data,null)}else if(e.onError){var i,l,a,h;(i=(l=this.options).onError)==null||i.call(l,this.currentResult.error),(a=(h=this.options).onSettled)==null||a.call(h,void 0,this.currentResult.error)}e.listeners&&this.listeners.forEach(({listener:c})=>{c(this.currentResult)}),e.cache&&this.client.getQueryCache().notify({query:this.currentQuery,type:"observerResultsUpdated"})})}}function be(r,e){return e.enabled!==!1&&!r.state.dataUpdatedAt&&!(r.state.status==="error"&&e.retryOnMount===!1)}function j(r,e){return be(r,e)||r.state.dataUpdatedAt>0&&E(r,e,e.refetchOnMount)}function E(r,e,t){if(e.enabled!==!1){const s=typeof t=="function"?t(r):t;return s==="always"||s!==!1&&T(r,e)}return!1}function q(r,e,t,s){return t.enabled!==!1&&(r!==e||s.enabled===!1)&&(!t.suspense||r.state.status!=="error")&&T(r,t)}function T(r,e){return r.isStaleByTime(e.staleTime)}function ge(r,e,t){return t.keepPreviousData?!1:t.placeholderData!==void 0?e.isPlaceholderData:!w(r.getCurrentResult(),e)}function Qe(r=""){var e;if(!((e=G())==null?void 0:e.proxy))throw new Error("vue-query hooks can only be used inside setup() function.");const s=J(r),u=Y(s);if(!u)throw new Error("No 'queryClient' found in Vue context, use 'VueQueryPlugin' to properly initialize the library.");return u}function Ie(r,e,t={},s={}){var u;const n=x(()=>Se(e,t,s)),i=(u=n.value.queryClient)!=null?u:Qe(n.value.queryClientKey),l=x(()=>{const d=i.defaultQueryOptions(n.value);return d._optimisticResults=i.isRestoring.value?"isRestoring":"optimistic",d}),a=new r(i,l.value),h=X(a.getCurrentResult());let c=()=>{};Q(i.isRestoring,d=>{d||(c(),c=a.subscribe(m=>{A(h,m)}))},{immediate:!0}),Q(l,()=>{a.setOptions(l.value),A(h,a.getCurrentResult())}),Z(()=>{c()});const o=()=>new Promise((d,m)=>{let b=()=>{};const v=()=>{if(l.value.enabled!==!1){const f=a.getOptimisticResult(l.value);f.isStale?(b(),a.fetchOptimistic(l.value).then(d,m)):(b(),d(f))}};v(),b=Q(l,v,{deep:!0})});return Q(()=>h.error,d=>{if(h.isError&&!h.isFetching&&ee(l.value.useErrorBoundary,[d,a.getCurrentQuery()]))throw d}),{...te(se(h)),suspense:o}}function Se(r,e={},t={}){const s=R(r),u=R(e),n=R(t);let i=s;return re(s)?typeof u=="function"?i={...n,queryKey:s,queryFn:u}:i={...u,queryKey:s}:i=s,ne(i)}function Ce(r,e,t){const s=Ie(me,r,e,t);return{...s,refetch:s.refetch.value,remove:s.remove.value}}const Oe=3,K=30*1e3;async function we(r,e){const t=r.startsWith("/")?r.slice(1):r;let s=`${window.DATA_HOST}${t}`;r.startsWith("http")&&(s=r),s.endsWith("/")&&(s=s.slice(0,-1));const u=await fetch(`${s}/config.json?t=${e??0}`),n=await fetch(`${s}/team.json?t=${e??0}`),i=await fetch(`${s}/run.json?t=${e??0}`);return Promise.all([u.json(),n.json(),i.json()]).then(a=>({contest:a[0],teams:a[1],submissions:a[2]}))}function Ae(r,e){return Ce({queryKey:[r,e.value.getTime()],queryFn:()=>we(r,e.value.getTime()),retry:Oe,staleTime:K,refetchInterval:K})}function Ee(){return ie("data-source","",{transform:String})}const Te={key:0,class:"flex flex-col items-center"},Ue={"w-128":""},Fe=g("div",{"py-2":""},null,-1),De=["disabled"],L="Data Source URL",ke=ue({__name:"DataSourceInput",setup(r){const{t:e}=ae(),t=Ee(),s=le(t.value),u=oe(),n=ce();function i(){n.push(`${u.fullPath}/?data-source=${s.value.trim()}`)}return(l,a)=>{const h=Re;return R(t).length===0?(he(),de("div",Te,[g("div",Ue,[fe(h,{modelValue:R(s),"onUpdate:modelValue":a[0]||(a[0]=c=>pe(s)?s.value=c:null),"w-full":"",placeholder:L,autocomplete:"false",onKeydown:ye(i,["enter"])},null,8,["modelValue","onKeydown"]),g("label",{class:"hidden",for:"input"},k(L))]),Fe,g("div",null,[g("button",{"m-3":"","text-sm":"",btn:"",disabled:R(s).length===0,onClick:i},k(R(e)("button.go")),9,De)])])):ve("",!0)}}});export{ke as _,Ee as g,Ae as u};
@@ -1 +1 @@
1
- import{g as o,aC as l,N as r,O as s,j as u,o as p,c as d,aD as i,E as m}from"./app-229ad629.js";const f=o({__name:"TheInput",props:{modelValue:null},emits:["update:modelValue"],setup(_){const{modelValue:e}=l("modelValue");return(a,t)=>r((p(),d("input",i({id:"input","onUpdate:modelValue":t[0]||(t[0]=n=>m(e)?e.value=n:null),type:"text"},a.$attrs,{p:"x-4 y-2","w-full":"",text:"center",bg:"transparent",border:"~ rounded gray-200 dark:gray-700",outline:"none active:none"}),null,16)),[[s,u(e)]])}});export{f as _};
1
+ import{g as o,aC as l,N as r,O as s,j as u,o as p,c as d,aD as i,E as m}from"./app-21014468.js";const f=o({__name:"TheInput",props:{modelValue:null},emits:["update:modelValue"],setup(_){const{modelValue:e}=l("modelValue");return(a,t)=>r((p(),d("input",i({id:"input","onUpdate:modelValue":t[0]||(t[0]=n=>m(e)?e.value=n:null),type:"text"},a.$attrs,{p:"x-4 y-2","w-full":"",text:"center",bg:"transparent",border:"~ rounded gray-200 dark:gray-700",outline:"none active:none"}),null,16)),[[s,u(e)]])}});export{f as _};