PageSourceSearch

https://usaco.guide/_next/static/chunks/9622.dd2b0e554b6efc02.js

js usaco.guide collected 2026-10-03 22:09:54 UTC 5,509 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9622],{57241:(e,r,t)=>{t.r(r),t.d(r,{EditorTopNav:()=>k});var a=t(37876),s=t(14232);let n=s.forwardRef(function({title:e,titleId:r,...t},a){return s.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:a,"aria-labelledby":r},t),e?s.createElement("title",{id:r},e):null,s.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m11.25 11.25.041-.02a.75.75 0 0 1 1.063.852l-.708 2.836a.75.75 0 0 0 1.063.853l.041-.021M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Zm-9-3.75h.008v.008H12V8.25Z"}))});var l=t(15039),i=t.n(l),o=t(85278),d=t(48230),c=t.n(d),x=t(3753),m=t(43495),h=t(1893),g=t(63030),u=t(48436);let k=()=>{let e=(0,o.md)(x.Ky),r=(0,o.Xr)(x.re),t=(0,m.D)(),s=(0,h.br)(),l=(0,h.vV)(),d=(0,h.XI)(),k=async()=>{if(e&&confirm("Reload file from GitHub? Your local changes will be lost.")){let t=await (0,u.E)(e.path);r({...e,markdown:t.markdown,problems:t.problems})}};return(0,a.jsxs)("div",{className:"flex items-center justify-between border-b border-gray-200 px-4 dark:border-gray-800 dark:bg-gray-900",children:[(0,a.jsxs)("div",{className:"flex items-center space-x-4",children:[(0,a.jsxs)("div",{className:"mr-8 flex flex-nowrap items-center space-x-2 py-2 whitespace-nowrap",children:[(0,a.jsx)("div",{className:"h-8 w-8 shrink-0",children:(0,a.jsx)(g.A,{})}),(0,a.jsx)(c(),{href:"/dashboard",children:(0,a.jsx)("span",{className:"text-xl font-medium tracking-tight",children:"Guide Editor"})})]}),e?.path&&(0,a.jsx)("button",{className:"inline-flex items-center space-x-2 rounded-md px-3 py-2 text-sm font-medium text-gray-500 transition hover:bg-gray-100 hover:text-gray-700 focus:outline-hidden dark:text-gray-400 dark:hover:bg-gray-800 dark:hover:text-gray-300",onClick:k,children:"Reload Content from GitHub"}),e?.path&&(0,a.jsx)("a",{href:`https://github.com/cpinitiative/usaco-guide/blob/master/${encodeURI(e?.path)}`,target:"_blank",className:"inline-flex items-center space-x-2 rounded-md px-3 py-2 text-sm font-medium text-gray-500 transition hover:bg-gray-100 hover:text-gray-700 focus:outline-hidden dark:text-gray-400 dark:hover:bg-gray-800 dark:hover:text-gray-300",rel:"noreferrer",children:"View File on GitHub →"})]}),(0,a.jsxs)("div",{className:"flex items-center",children:[(0,a.jsx)("nav",{className:"flex space-x-1","aria-label":"Tabs",children:["cpp","java","py"].map(e=>(0,a.jsx)("button",{className:i()(e===s?"bg-gray-100 text-gray-700 dark:bg-gray-800 dark:text-gray-300":"text-gray-500 hover:text-gray-700 dark:text-gray-400 dark:hover:text-gray-300","rounded-md px-3 py-2 text-sm font-medium transition focus:outline-hidden"),onClick:()=>l(e),children:h.lX[e]},e))}),(0,a.jsx)("div",{className:"mx-4 block h-6 self-center border-l border-gray-200 dark:border-gray-700"}),(0,a.jsxs)("a",{href:"/general/adding-solution",target:"_blank",rel:"noreferrer",className:"group inline-flex items-center space-x-2 text-sm font-medium text-gray-600 transition hover:text-black dark:text-gray-400 dark:hover:text-gray-200",children:[(0,a.jsx)(n,{className:"h-6 w-6 text-gray-400 transition group-hover:text-gray-500 dark:group-hover:text-gray-300"}),(0,a.jsx)("span",{children:"Documentation"})]}),(0,a.jsx)("div",{className:"mx-4 block h-6 self-center border-l border-gray-200 dark:border-gray-700"}),(0,a.jsx)("button",{onClick:()=>d(t?"light":"dark"),className:"dark:hover:text-dark-high-emphasis -mx-1 rounded-full border-2 border-transparent p-1 text-gray-400 transition hover:text-gray-300 focus:bg-gray-100 focus:text-gray-500 focus:outline-hidden dark:text-gray-400 dark:focus:bg-gray-700",children:t?(0,a.jsx)("svg",{className:"h-6 w-6",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:(0,a.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12 3v1m0 16v1m9-9h-1M4 12H3m15.364 6.364l-.707-.707M6.343 6.343l-.707-.707m12.728 0l-.707.707M6.343 17.657l-.707.707M16 12a4 4 0 11-8 0 4 4 0 018 0z"})}):(0,a.jsx)("svg",{className:"h-6 w-6",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:(0,a.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M20.354 15.354A9 9 0 018.646 3.646 9.003 9.003 0 0012 21a9.003 9.003 0 008.354-5.646z"})})})]})]})}},63030:(e,r,t)=>{t.d(r,{A:()=>l});var a=t(37876),s=t(15039),n=t.n(s);function l({className:e}){return(0,a.jsxs)("svg",{className:n()("inline-block",e),id:"Layer_1","data-name":"Layer 1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 100 100",children:[(0,a.jsx)("g",{children:(0,a.jsx)("path",{className:"fill-current text-[#139] dark:text-blue-500",d:"M50,5A45,45,0,1,1,5,50,45.05,45.05,0,0,1,50,5m0-5a50,50,0,1,0,50,50A50,50,0,0,0,50,0Z"})}),(0,a.jsx)("line",{className:"stroke-current stroke-[7px] text-[#001d4a] dark:text-blue-600",style:{strokeMiterlimit:10},x1:"50",y1:"27",x2:"73.29",y2:"65.64"}),(0,a.jsx)("line",{className:"stroke-current stroke-[7px] text-[#001d4a] dark:text-blue-600",style:{strokeMiterlimit:10},x1:"50",y1:"27",x2:"28.56",y2:"67"}),(0,a.jsx)("circle",{className:"fill-current text-[#139] dark:text-blue-500",cx:"50",cy:"27",r:"10"}),(0,a.jsx)("circle",{className:"fill-current text-[#139] dark:text-blue-500",cx:"28.56",cy:"67",r:"10"}),(0,a.jsx)("circle",{className:"fill-current text-[#139] dark:text-blue-500",cx:"73.29",cy:"65.64",r:"10"})]})}}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.