PageSourceSearch

https://www.machuda.kr/_next/static/chunks/2367-b95a1d8625623988.js

js machuda.kr collected 2026-10-05 17:59:47 UTC 8,354 bytes, 1 lines download raw bytes

1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="ac83ec4c-2371-4588-908b-d5dea8124428",e._sentryDebugIdIdentifier="sentry-dbid-ac83ec4c-2371-4588-908b-d5dea8124428")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2367],{14388:function(e,t){"use strict";t.Z={src:"/_next/static/media/clamp.f176e7fc.svg",height:24,width:24,blurWidth:0,blurHeight:0}},95363:function(e,t,n){"use strict";n.d(t,{i2:function(){return u},iz:function(){return d}});var s=n(4480),o=n(86996),r=(n(11163),n(67294)),l=n(22293),a=n(50345),c=n(96637),i=n(66062);function u(e){let{keys:t,loadPrev:n=!0,shouldShuffleOptions:o=!1,loadProblem:a,enabled:u=!0}=e;const[d,p]=(0,r.useState)(!1),m=(0,s.Zl)(l.m3),x=(0,i.Z)({queryKey:["pastExamProblemListQuery",...t],queryFn:async e=>{let{signal:t}=e;return a(t)},refetchOnWindowFocus:!1,refetchOnReconnect:!1,enabled:u&&t.every(Boolean)});return(0,r.useEffect)((()=>{if(x.isSuccess&&!x.isFetching){if(0===x.data.length)return void m([]);const e=x.data.map((e=>{var t,s;const r=null!==(s=null===(t=e.optionList)||void 0===t?void 0:t.map(((t,n)=>({number:n+1,content:t,solution:e.optionSolutionList?e.optionSolutionList[n]:""}))))&&void 0!==s?s:[];var l;return{problem:{...e},solvingInfo:{myAnswer:n&&null!==(l=e.myAnswer)&&void 0!==l?l:0,status:0,mySolution:""},optionList:o?(0,c.Sy)(r):r}}));m(e),p(!0)}}),[n,x.data,x.isFetching,x.isSuccess,x.isLoading,m,o]),{...x,isProblemReady:d}}const d=e=>{const{yearFilter:t,subjectFilter:n,levelFilter:s,subjectName:r,keyword:l,enabled:u=!0}=e,d="string"===typeof r?r:"",p=e=>{const t={"\uc0c1":"3","\uc911":"2","\ud558":"1"};if("string"===typeof e?e=e.split(",").map((e=>e.trim())):Array.isArray(e)||(e=[]),!e.length||e.includes("\uc804\uccb4"))return["1","2","3"];const n=e.map((e=>t[e])).filter((e=>void 0!==e));return n.length>0?n:["1","2","3"]};return(0,i.Z)({queryKey:["searchPracticalProblem",r,l,t,n,s],queryFn:async e=>{let{signal:r}=e,c=[];if("\uc804\uccb4"===t){const e=(new Date).getFullYear()%100;c=Array.from({length:e-7+1},((e,t)=>String(7+t).padStart(2,"0")))}else if(t&&"\uc804\uccb4"!==t){const[e,n]=t.split("-"),s=[];for(let t=parseInt(e,10);t<=parseInt(n,10);t++)s.push(t.toString().slice(-2));c=s}const i={keyword:l,years:c,levels:p(s),chapters:(null!==n&&void 0!==n?n:[]).map((e=>e.toString()))},{response:u}=await(0,a.e$)("/problem/search?subjectName=".concat(encodeURIComponent((0,o.aF)(d))),i,r);return u},refetchOnWindowFocus:!1,refetchOnReconnect:!1,enabled:u&&Boolean(l)&&(0,c.S5)(r)})}},67502:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var s=n(67294);function o(){(0,s.useLayoutEffect)((()=>(document.body.style.overflow="hidden",()=>{document.body.style.overflow="auto",requestAnimationFrame((()=>{requestAnimationFrame((()=>{document.documentElement.offsetHeight}))}))})),[])}},6595:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});var s=n(85893),o=n(67294);function r(e){let{children:t,nowPage:n}=e;const r=(0,o.useRef)(null),l=r.current;return(0,o.useEffect)((()=>{l&&l.scrollTo({top:0,behavior:"smooth"})}),[n]),(0,s.jsx)("div",{className:"Problem-Layout px-[32px] pb-[12px] mobile:px-[24px] desktop:px-0",children:(0,s.jsx)("div",{className:"Problem-Body",ref:r,children:t})})}},3375:function(e,t,n){"use strict";var s=n(85893),o=n(67294),r=n(14388),l=n(25675),a=n.n(l),c=n(73311);t.Z=function(e){let{nowPage:t,movePage:n,totalPage:l,children:i}=e;const u=(0,o.useCallback)((()=>{(0,c.D)(t),n(t)}),[n,t]),d=(0,o.useCallback)((()=>{(0,c.G)(t+2),n(t+2)}),[n,t]);return(0,o.useEffect)((()=>{const e=e=>{"ArrowRight"===e.code&&t<l-1&&d(),"ArrowLeft"===e.code&&t>0&&u()};return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)}),[d,u,t,l]),(0,s.jsx)("div",{className:"w-full justify-center shadow-BottomUtility",children:(0,s.jsxs)("div",{className:"Problem-Component-Container flex min-h-[76px] items-center justify-between border-t px-[32px] py-[12px] desktop:px-0",children:[t>0?(0,s.jsx)("button",{type:"button",className:"h-[32px] px-[8px]",onClick:u,children:(0,s.jsx)(a(),{src:r.Z,alt:"\uc774\uc804"})}):(0,s.jsx)("div",{}),i,t<l-1?(0,s.jsx)("button",{type:"button",className:"h-[32px] px-[8px]",onClick:d,children:(0,s.jsx)(a(),{src:r.Z,className:"rotate-180",alt:"\uc774\uc804"})}):(0,s.jsx)("div",{})]})})}},94494:function(e,t,n){"use strict";var s=n(85893),o=(n(67294),n(11911),n(96637)),r=n(52830),l=n.n(r),a=n(13773);t.Z=function(e){let{texContent:t,className:n,style:r}=e;const c=(0,a.E)(null!==t&&void 0!==t?t:"");return(0,s.jsx)("span",{className:(0,o.q4)("custom-katex block text-left text-ProblemM break-keep",n,l().customKatex),style:r,dangerouslySetInnerHTML:{__html:c}})}},13773:function(e,t,n){"use strict";n.d(t,{E:function(){return c}});var s=n(41008);const o="<tex>",r="</tex>",l=new RegExp("\\".concat(o,"(.*?)\\").concat(r),"g"),a=new RegExp("\\".concat(o,"(.*?)\\").concat(r)),c=e=>e.replace(/<tex(?=[^A-Za-z0-9>/])/g,"<tex>").replace(l,(e=>{const t=e.split(a)[1];if(!t)return"";try{return s.ZP.renderToString((e=>e.replace(/[\u200B\u200C\u200D\uFEFF]/g,""))(t),{throwOnError:!1,colorIsTextColor:!0,displayMode:!0,strict:!1})}catch(n){return'<span class="katex-error">'.concat((e=>e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;"))(t),"</span>")}}))},16860:function(e,t,n){"use strict";var s=n(85893),o=(n(67294),n(96637)),r=n(67502);t.Z=function(e){let{children:t}=e;return(0,r.Z)(),(0,s.jsx)("div",{className:(0,o.q4)("absolute left-0 top-0 h-full flex w-screen flex-col items-center overflow-hidden bg-White mobile:pt-[24px] pt-[40px] desktop:min-w-[1280px]"),children:t})}},26847:function(e,t,n){"use strict";n.d(t,{Z:function(){return p}});var s=n(85893),o=n(67294),r=n(11163),l=n(4480),a=n(58155),c=n(22293);function i(e){let{problemIndex:t,problemPageInfo:n,movePage:l,closeModal:a}=e;const c=(0,r.useRouter)(),i=(0,o.useMemo)((()=>0!==n.solvingInfo.myAnswer?c.pathname.includes("/exam")?"text-White bg-Gray900":n.solvingInfo.myAnswer===n.problem.answer?"bg-Green400 text-White border-Green400":"bg-Red400 text-White border-Red400":""),[n.problem.answer,n.solvingInfo.myAnswer,c.pathname]);return(0,s.jsx)("button",{onClick:()=>{a(),l(t+1)},className:"flex min-h-[45px] min-w-[45px] items-center justify-center rounded-full border border-Gray900 p-[8px] ".concat(i),children:(0,s.jsx)("p",{children:t+1})})}var u=function(e){let{nowPage:t,totalPage:n,movePage:r,statusButton:u=!0}=e;const d=(0,l.sJ)(c.if),[p,m]=(0,o.useState)(!1);return(0,s.jsxs)(a.fy,{open:p,onOpenChange:e=>{m(e)},children:[(0,s.jsx)(a.hg,{disabled:!1===u,asChild:!0,children:(0,s.jsxs)("button",{type:"button",className:"Absolute-Center-X flex items-center justify-center gap-x-[8px] text-TitleS",children:[(0,s.jsx)("div",{className:"w-[95px]",children:(0,s.jsxs)("p",{children:[t," /",(0,s.jsxs)("span",{className:"text-Gray700",children:[" ",n]})]})}),u&&(0,s.jsx)("div",{className:"Button-Small Button-Skeleton Button-Primary",children:(0,s.jsx)("p",{children:"\ubb38\uc81c\uc120\ud0dd"})})]})}),(0,s.jsxs)(a.cZ,{className:"desktop:min-w-[1000px]",children:[(0,s.jsxs)(a.fK,{children:[(0,s.jsx)(a.$N,{children:"\ubb38\uc81c \uc804\uccb4 \ubcf4\uae30"}),(0,s.jsx)(a.Be,{children:"\ubc88\ud638\ub97c \ub204\ub974\uba74 \ud574\ub2f9 \ubc88\ud638\ub85c \uc774\ub3d9\ud574\uc694"})]}),(0,s.jsx)(a.hY,{className:"grid h-auto max-h-[350px] min-h-[50px] grid-cols-10 gap-x-[16px] gap-y-[24px] mobile:grid-cols-4 tablet:grid-cols-6",children:d.map(((e,t)=>(0,s.jsx)("div",{className:"flex items-center justify-center",children:(0,s.jsx)(a.GG,{asChild:!0,children:(0,s.jsx)(i,{problemIndex:t,problemPageInfo:e,movePage:r,closeModal:()=>{m(!1)}})})},e.problem.pastProblemId)))})]})]})},d=n(3375);var p=function(e){let{nowPage:t,movePage:n,totalPage:o,statusButton:r=!0}=e;return(0,s.jsx)(d.Z,{nowPage:t,movePage:n,totalPage:o,children:(0,s.jsx)(u,{nowPage:t+1,totalPage:o,movePage:n,statusButton:r})})}},52830:function(e){e.exports={"custom-katex":"styles_custom-katex__cHxnH","katex-display":"styles_katex-display__gq15C",katex:"styles_katex__yNWkp","katex-html":"styles_katex-html__MZKKM","katex-mathml":"styles_katex-mathml___v5U9"}}}]);

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.