1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3285],{82431:function(e,t,a){a.d(t,{Z:function(){return n}});let n=(0,a(79205).Z)("RefreshCw",[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]])},51013:function(e,t,a){a.d(t,{NU:function(){return m},ZP:function(){return d},nF:function(){return u}});var n=a(57437);a(2265);var s=a(76865),i=a(82431),r=a(64954),o=a(7888),l=a(92804),c=a(93448);function d(e){let{isLoading:t=!1,error:a=null,onRetry:d,isEmpty:u=!1,emptyTitle:f="ìì§ ì무ê²ë ììµëë¤",emptyDescription:b,emptyAction:p,skeleton:x,subject:h,size:g="md",className:v,children:w}=e;return a?(0,n.jsxs)("div",{role:"alert",className:(0,c.cn)("flex flex-col items-center justify-center text-center px-6 py-14 gap-3",v),children:[(0,n.jsx)(s.Z,{size:22,className:"text-red-600 dark:text-red-400","aria-hidden":"true"}),(0,n.jsxs)("div",{children:[(0,n.jsx)("p",{className:"text-[14px] font-semibold text-zinc-900 dark:text-zinc-100 break-keep",children:h?"".concat(h).concat((0,l.Ge)(h,"ì","를")," ë¶ë¬ì¤ì§ 못íìµëë¤"):"ë´ì©ì ë¶ë¬ì¤ì§ 못íìµëë¤"}),(0,n.jsx)("p",{className:"mt-1 text-[13px] text-zinc-600 dark:text-zinc-300 break-keep max-w-[320px]",children:(0,o.q)(a,"ì ì í ë¤ì ìëí´ ì£¼ì¸ì. ê³ì ì ëë©´ ë¤í¸ìí¬ ìí를 íì¸í´ 주ì¸ì.")})]}),d&&(0,n.jsxs)("button",{type:"button",onClick:d,className:"inline-flex items-center gap-1.5 min-h-[44px] px-4 rounded-xl text-[13px] font-semibold bg-zinc-100 dark:bg-zinc-800 text-zinc-800 dark:text-zinc-100 hover:bg-zinc-200 dark:hover:bg-zinc-700 active:scale-[0.97] transition",children:[(0,n.jsx)(i.Z,{size:14,"aria-hidden":"true"}),"ë¤ì ìë"]})]}):t?(0,n.jsxs)("div",{className:v,"aria-busy":"true","aria-live":"polite",children:[null!=x?x:(0,n.jsx)(m,{}),(0,n.jsx)("span",{className:"sr-only",children:"ë¶ë¬ì¤ë ì¤"})]}):u?(0,n.jsx)(r.Z,{title:f,description:b,action:p,size:g,className:v}):(0,n.jsx)(n.Fragment,{children:w})}function m(e){let{rows:t=5,className:a}=e;return(0,n.jsx)("div",{className:(0,c.cn)("space-y-2 py-2",a),"aria-hidden":"true",children:Array.from({length:t}).map((e,t)=>(0,n.jsxs)("div",{className:"flex items-center gap-2.5 px-2 py-1",children:[(0,n.jsx)("div",{className:"w-24 h-3 rounded bg-zinc-200/80 dark:bg-zinc-800 animate-pulse"}),(0,n.jsx)("div",{className:"flex-1 h-2 rounded-full bg-zinc-200/80 dark:bg-zinc-800 animate-pulse",style:{maxWidth:"".concat(70-8*t,"%")}})]},t))})}function u(e){let{cells:t=12,className:a,cellClassName:s}=e;return(0,n.jsx)("div",{className:(0,c.cn)("grid grid-cols-2 sm:grid-cols-3 lg:grid-cols-4 gap-3 p-4",a),"aria-hidden":"true",children:Array.from({length:t}).map((e,t)=>(0,n.jsx)("div",{className:(0,c.cn)("h-20 rounded-xl bg-zinc-200/70 dark:bg-zinc-800 animate-pulse",s),style:{animationDelay:"".concat(t%6*60,"ms")}},t))})}},13285:function(e,t,a){a.r(t),a.d(t,{default:function(){return j}});var n=a(57437),s=a(29),i=a.n(s),r=a(51013),o=a(2265),l=a(48736),c=a(17625),d=a(93448),m=a(4908),u=a(96214),f=a(64954);let b=[{value:"sans",label:"ê³ ë",fontStack:'Pretendard, -apple-system, BlinkMacSystemFont, "Malgun Gothic", "Apple SD Gothic Neo", sans-serif'},{value:"serif",label:"ëª
ì¡°",fontStack:'"Noto Serif KR", "Batang", "BatangChe", serif'},{value:"round",label:"주ì",fontStack:'"Jua", sans-serif'},{value:"cursive",label:"ëëí",fontStack:'"Nanum Pen Script", cursive'},{value:"batang",label:"ê³ ì´ë°í",fontStack:'"Gowun Batang", serif'},{value:"black",label:"íì°ì¤",fontStack:'"Black Han Sans", sans-serif'},{value:"flower",label:"ê°ìê½",fontStack:'"Gamja Flower", cursive'},{value:"stylish",label:"ì¤íì¼",fontStack:'"Stylish", sans-serif'}],p=[{value:"#ffffff",label:"White"},{value:"#f9fafb",label:"Gray"},{value:"#fff1f2",label:"Rose"},{value:"#fff7ed",label:"Orange"},{value:"#fefce8",label:"Yellow"},{value:"#f0fdf4",label:"Green"},{value:"#eff6ff",label:"Blue"},{value:"#faf5ff",label:"Purple"}],x=(e,t)=>{let a=e.number,n=e.classNum||0,s=e.grade||0;switch(t.numberFormat){case"2-digit":return String(a).padStart(2,"0");case"4-digit":return"".concat(s).concat(n).concat(String(a).padStart(2,"0"));case"5-digit":return"".concat(s).concat(String(n).padStart(2,"0")).concat(String(a).padStart(2,"0"));default:return String(a)}},h=(0,o.memo)(e=>{let{pages:t,config:a,safeRows:s,safeCols:i}=e,r=(0,o.useRef)(null),[l,c]=(0,o.useState)(1),m=(0,o.useCallback)(()=>{let e=r.current;if(e)c(Math.min((e.clientWidth-96)/793.700787411,(e.clientHeight-96)/1122.5196850527,1))},[]);return(0,o.useEffect)(()=>{m();let e=r.current;if(!e)return;let t=new ResizeObserver(m);return t.observe(e),()=>t.disconnect()},[m]),(0,n.jsx)("div",{ref:r,className:"flex-1 bg-[#111] overflow-auto flex flex-col items-center nametag-preview",style:{padding:24},children:(0,n.jsx)("div",{className:"flex flex-col items-center print:block",style:{gap:24*l}
1,children:0===t.length||1===t.length&&0===t[0].length?(0,n.jsx)("div",{className:"bg-white shadow-2xl print:shadow-none box-border flex flex-col items-center justify-center p-8 print:hidden",style:{width:"210mm",height:"297mm",transform:"scale(".concat(l,")"),transformOrigin:"top center"},children:(0,n.jsx)(f.Z,{size:"lg",title:"íìí íìì´ ììµëë¤",description:"ë´ì íê¸ íì ëª
ë¨ì 먼ì ë±ë¡í´ 주ì¸ì."})}):t.map((e,t)=>(0,n.jsx)("div",{className:"bg-white shadow-2xl box-border nametag-page relative group",style:{width:"210mm",height:"297mm",padding:"".concat(a.padding,"mm"),transform:"scale(".concat(l,")"),transformOrigin:"top center",marginBottom:"".concat(1122.5196850527*(l-1),"px")},children:(0,n.jsx)("div",{className:"w-full h-full grid",style:{gridTemplateColumns:"repeat(".concat(i,", 1fr)"),gridTemplateRows:"repeat(".concat(s,", 1fr)"),gap:"".concat(a.gap,"mm")},children:e.map((e,t)=>{var s;return(0,n.jsx)("div",{className:(0,d.cn)("flex items-center justify-center text-black break-inside-avoid overflow-hidden relative border border-gray-400"),style:{fontSize:"".concat(a.fontSize,"pt"),borderRadius:"".concat(a.borderRadius,"mm"),fontFamily:null===(s=b.find(e=>e.value===a.fontFamily))||void 0===s?void 0:s.fontStack,backgroundColor:a.backgroundColor},children:(0,n.jsxs)("div",{className:(0,d.cn)("flex gap-[0.2em] items-center justify-center w-full h-full","above"===a.numberPosition?"flex-col":"flex-row"),children:[a.showNumber&&(0,n.jsx)("div",{className:"font-bold leading-none opacity-80",style:{fontSize:"0.5em"},children:x(e,a)}),a.showName&&(0,n.jsx)("div",{className:"font-bold leading-none whitespace-nowrap",style:{writingMode:"vertical"===a.orientation?"vertical-rl":"horizontal-tb",textOrientation:"vertical"===a.orientation?"upright":void 0},children:e.name})]})},e.id)})})},t))})})},(e,t)=>e.config===t.config&&e.pages===t.pages);h.displayName="NameTagPreview";let g=(0,o.memo)(e=>{let{options:t,value:a,onChange:s,labels:i,disabled:r=!1}=e;return(0,n.jsx)("div",{className:(0,d.cn)("flex bg-[#111] rounded-lg p-1 border border-[#222] w-full h-[36px]",r&&"opacity-30 pointer-events-none"),children:t.map(e=>(0,n.jsx)("button",{onClick:()=>s(e),className:(0,d.cn)("flex-1 px-3 text-xs font-bold rounded transition duration-200 h-full flex items-center justify-center whitespace-nowrap nametag-toggle-btn",a===e?"text-white":"text-[#444] hover:text-[#666]"),children:i[e]},e))})});g.displayName="SegmentedControl";let v=(0,o.memo)(e=>{let{options:t}=e;return(0,n.jsx)("div",{className:"flex bg-[#111] rounded-lg p-1 border border-[#222] w-full h-[36px]",children:t.map((e,t)=>(0,n.jsx)("button",{onClick:e.onChange,className:(0,d.cn)("flex-1 px-3 text-xs font-bold rounded transition duration-200 h-full flex items-center justify-center whitespace-nowrap nametag-toggle-btn",e.checked?"text-white":"text-[#444] hover:text-[#666]"),children:e.label},t))})});v.displayName="MultiToggleGroup";let w=(0,o.memo)(e=>{let{label:t,value:a,onChange:s,min:r,max:o,step:l=1,formatValue:c}=e,d=o===r?0:(a-r)/(o-r)*100;return(0,n.jsxs)("div",{className:"jsx-8f2c0640cd85d973 flex items-center justify-between gap-4 h-[32px]",children:[(0,n.jsx)("label",{className:"jsx-8f2c0640cd85d973 text-xs text-[#888] font-medium shrink-0 w-16 text-left",children:t}),(0,n.jsxs)("div",{className:"jsx-8f2c0640cd85d973 flex-1 flex items-center gap-3 relative",children:[(0,n.jsx)("input",{type:"range",min:r,max:o,step:l,value:a,onChange:e=>s(parseFloat(e.target.value)),style:{background:"linear-gradient(to right, var(--slider-fill, #666) 0%, var(--slider-fill, #666) ".concat(d,"%, var(--slider-empty, #222) ").concat(d,"%, var(--slider-empty, #222) 100%)")},className:"jsx-8f2c0640cd85d973 w-full h-1.5 bg-[#222] rounded-lg appearance-none cursor-pointer outline-none focus-visible:ring-2 focus-visible:ring-white slider-thumb-styles"}),(0,n.jsx)("span",{className:"jsx-8f2c0640cd85d973 text-sm text-white w-6 text-right font-mono font-bold nametag-slider-value",children:c?c(a):a})]}),(0,n.jsx)(i(),{id:"8f2c0640cd85d973",children:".slider-thumb-styles.jsx-8f2c0640cd85d973::-webkit-slider-thumb{-webkit-appearance:none;-moz-appearance:none;-ms-appearance:none;appearance:none;width:16px;height:16px;background:#e0e0e0;-webkit-border-radius:50%;-moz-border-radius:50%;border-radius:50%;cursor:pointer;border:2px solid#333;-webkit-transition:-webkit-transform.1s ease,background.2s;-moz-transition:-moz-transform.1s ease,background.2s;-o-transition:-o-transform.1s ease,background.2s;transition:-webkit-transform.1s ease,background.2s;transition:-moz-transform.1s ease,background.2s;transition:-o-transform.1s ease,background.2s;transition:transform.1s ease,background.2s}.slider-thumb-styles.jsx-8f2c0640cd85d973::-webkit-slider-thumb:hover{-webkit-transform:scale(1.2);-moz-transform:scale(1.2);-ms-transform:scale(1.2);
1-o-transform:scale(1.2);transform:scale(1.2);background:white}.slider-thumb-styles.jsx-8f2c0640cd85d973::-moz-range-thumb{width:16px;height:16px;background:#e0e0e0;border:none;-webkit-border-radius:50%;-moz-border-radius:50%;border-radius:50%;cursor:pointer;border:2px solid#333;-webkit-transition:-webkit-transform.1s ease,background.2s;-moz-transition:-moz-transform.1s ease,background.2s;-o-transition:-o-transform.1s ease,background.2s;transition:-webkit-transform.1s ease,background.2s;transition:-moz-transform.1s ease,background.2s;transition:-o-transform.1s ease,background.2s;transition:transform.1s ease,background.2s}.slider-thumb-styles.jsx-8f2c0640cd85d973::-moz-range-thumb:hover{-webkit-transform:scale(1.2);-moz-transform:scale(1.2);-ms-transform:scale(1.2);-o-transform:scale(1.2);transform:scale(1.2);background:white}"})]})});function j(){let{students:e,isLoading:t}=(0,m.AF)(),a=(0,o.useMemo)(()=>[...e.filter(e=>"ë´ì íê¸"===e.homeClassId)].sort((e,t)=>e.number-t.number),[e]),[s,f]=(0,o.useState)(()=>{{let e=localStorage.getItem("saemo-nametag-config");if(e)try{return JSON.parse(e)}catch(e){console.error("Failed to parse nametag config",e)}}return u.DEMO_NAMETAG_CONFIG}),j=(0,o.useDeferredValue)(s);(0,o.useEffect)(()=>{localStorage.setItem("saemo-nametag-config",JSON.stringify(j))},[j]);let y=Math.max(1,Math.round(j.rows)),N=Math.max(1,Math.round(j.cols)),z=(0,o.useMemo)(()=>{let e=y*N,t=[];if(0===a.length)t.push([]);else for(let n=0;n<a.length;n+=e)t.push(a.slice(n,n+e));return t},[a,y,N]);return t&&0===e.length?(0,n.jsxs)("div",{className:"flex-1 overflow-hidden","aria-busy":"true","aria-live":"polite",children:[(0,n.jsx)(r.nF,{cells:12}),(0,n.jsx)("span",{className:"sr-only",children:"ë¶ë¬ì¤ë ì¤"})]}):(0,n.jsxs)("div",{className:"jsx-c5b6f16ec328d378 h-full flex flex-col md:flex-row bg-[#0D0D0D] overflow-x-hidden overflow-y-auto md:overflow-hidden text-white nametag-root",children:[(0,n.jsx)(i(),{id:"e7fa976f9aec1f3",children:'@import url("https://fonts.googleapis.com/css2?family=Black+Han+Sans&family=Gamja+Flower&family=Gowun+Batang&family=Jua&family=Nanum+Pen+Script&family=Noto+Serif+KR:wght@400;700&family=Stylish&display=swap");'}),(0,n.jsxs)("div",{className:"jsx-c5b6f16ec328d378 w-full md:w-80 border-b md:border-b-0 md:border-r border-[#1a1a1a] flex flex-col bg-[#0D0D0D] shrink-0 print:hidden overflow-y-auto custom-scrollbar nav-rail-shadow sub-sidebar-enter",children:[(0,n.jsxs)("div",{className:"jsx-c5b6f16ec328d378 p-6 space-y-8 mt-4",children:[(0,n.jsx)("div",{className:"jsx-c5b6f16ec328d378 space-y-4 text-left",children:(0,n.jsxs)("div",{className:"jsx-c5b6f16ec328d378 space-y-2",children:[(0,n.jsx)(w,{label:"í",value:s.rows,onChange:e=>f(t=>({...t,rows:e})),min:1,max:20,step:1}),(0,n.jsx)(w,{label:"ì´",value:s.cols,onChange:e=>f(t=>({...t,cols:e})),min:1,max:10,step:1}),(0,n.jsx)(w,{label:"ê³¡ë¥ (mm)",value:s.borderRadius,onChange:e=>f(t=>({...t,borderRadius:e})),min:0,max:20,step:1}),(0,n.jsx)(w,{label:"ê¸ì í¬ê¸°",value:s.fontSize,onChange:e=>f(t=>({...t,fontSize:e})),min:10,max:150,step:1})]})}),(0,n.jsxs)("div",{className:"jsx-c5b6f16ec328d378 space-y-4",children:[(0,n.jsxs)("div",{className:"jsx-c5b6f16ec328d378 flex items-center gap-4",children:[(0,n.jsx)("span",{className:"jsx-c5b6f16ec328d378 text-xs text-[#888] font-medium shrink-0 w-16 text-left",children:"êµ¬ì± ìì"}),(0,n.jsx)("div",{className:"jsx-c5b6f16ec328d378 flex-1",children:(0,n.jsx)(v,{options:[{label:"íë²",checked:s.showNumber,onChange:()=>f(e=>({...e,showNumber:!e.showNumber}))},{label:"ì´ë¦",checked:s.showName,onChange:()=>f(e=>({...e,showName:!e.showName}))}]})})]}),(0,n.jsxs)("div",{className:"jsx-c5b6f16ec328d378 flex items-center gap-4",children:[(0,n.jsx)("span",{className:"jsx-c5b6f16ec328d378 text-xs text-[#888] font-medium shrink-0 w-16 text-left",children:"í
ì¤í¸ ë°©í¥"}),(0,n.jsx)("div",{className:"jsx-c5b6f16ec328d378 flex-1",children:(0,n.jsx)(g,{options:["horizontal","vertical"],value:s.orientation,onChange:e=>f(t=>({...t,orientation:e})),labels:{horizontal:"ê°ë¡",vertical:"ì¸ë¡"}})})]}),(0,n.jsxs)("div",{className:"jsx-c5b6f16ec328d378 "+((0,d.cn)("flex items-center gap-4 transition-opacity duration-200",!s.showNumber&&"opacity-30")||""),children:[(0,n.jsx)("span",{className:"jsx-c5b6f16ec328d378 text-xs text-[#888] font-medium shrink-0 w-16 text-left",children:"íë² íì"}),(0,n.jsx)("div",{className:"jsx-c5b6f16ec328d378 flex-1",children:(0,n.jsx)(g,{options:["2-digit","4-digit","5-digit"],value:s.numberFormat,onChange:e=>f(t=>({...t,numberFormat:e})),labels:{"2-digit":"2ì리","4-digit":"4ì리","5-digit":"5ì리"},disabled:!s.showNumber})})]}),(0,n.jsxs)("div",{className:"jsx-c5b6f16ec328d378 "+((0,d.cn)("flex items-center gap-4 transition-opacity duration-200",!s.showNumber&&"opacity-30")||""),children:[(0,n.jsx)("span",{className:"jsx-c5b6f16ec328d378 text-xs text-[#888] font-medium shrink-0 w-16 text-left",children:"íë² ìì¹"}),(0,n.jsx)("div",{className:"jsx-c5b6f16ec328d378 flex-1",children:(0,n.jsx)(g,{options:["above","left"],value:s.numberPosition,onChange:e=>f(t=>({...t,numberPosition:e})),labels:{above:"ì´ë¦ ì",left:"ì´ë¦ ì¼ìª½"},disabled:!s.showNumber})})]}),(0,n.jsxs)("div",{className:"jsx-c5b6f16ec328d378 flex items-start gap-4",children:[(0,n.jsx)("span",{className:"jsx-c5b6f16ec328d378 text-xs text-[#888] font-medium shrink-0 w-16 text-left mt-2",children:"ê¸ê¼´"}),(0,n.jsx)("div",{className:"jsx-c5b6f16ec328d378 flex-1 grid grid-cols-4 gap-2",children:b.map(e=>(0,n.jsx)("button",{onClick:()=>f(t=>({...t,fontFamily:e.value})),title:e.label,style:{fontFamily:e.fontStack},className:"jsx-c5b6f16ec328d378 "+((0,d.cn)("flex flex-col items-center justify-center rounded-lg border text-xs transition w-10 h-10 font-choice-btn",s.fontFamily===e.value?"bg-[#1A1A1A] border-white text-white":"bg-[#111] border-[#222] text-[#666] hover:border-[#444]")||""),children:(0,n.jsx)("span",{className:"jsx-c5b6f16ec328d378 text-base font-medium leading-none",children:"ê°"})},e.value))})]}),(0,n.jsxs)("div",{className:"jsx-c5b6f16ec328d378 flex items-start gap-4",children:[(0,n.jsx)("span",{className:"jsx-c5b6f16ec328d378 text-xs text-[#888] font-medium shrink-0 w-16 text-left mt-2",children:"ë°°ê²½ì"}),(0,n.jsx)("div",{className:"jsx-c5b6f16ec328d378 flex-1 grid grid-cols-4 gap-2",children:p.map(e=>(0,n.jsx)("button",{onClick:()=>f(t=>({...t,backgroundColor:e.value})),style:{backgroundColor:e.value},title:e.label,className:"jsx-c5b6f16ec328d378 "+((0,d.cn)("w-10 h-10 rounded-lg border-2 transition hover:scale-105 color-choice-btn",s.backgroundColor===e.value?"border-blue-500 shadow-lg scale-105":"border-transparent")||"")},e.value))})]})]})]}),(0,n.jsxs)("div",{className:"jsx-c5b6f16ec328d378 mt-auto p-6 flex gap-3",children:[(0,n.jsxs)("button",{onClick:()=>k({...s,rows:y,cols:N},z,e=>x(e,s),b),className:"jsx-c5b6f16ec328d378 flex-1 flex items-center justify-center gap-2 px-3 py-2 bg-[#333] hover:bg-[#444] text-white text-sm font-medium rounded-lg transition active:scale-95 border border-[#444]",children:[(0,n.jsx)(l.Z,{size:16}),(0,n.jsx)("span",{className:"jsx-c5b6f16ec328d378",children:"íê¸ íì¼"})]}),(0,n.jsxs)("button",{onClick:()=>{window.print()},className:"jsx-c5b6f16ec328d378 flex-1 flex items-center justify-center gap-2 px-3 py-2 bg-[#333] hover:bg-[#444] text-white text-sm font-medium rounded-lg transition active:scale-95 border border-[#444]",children:[(0,n.jsx)(c.Z,{size:16}),(0,n.jsx)("span",{className:"jsx-c5b6f16ec328d378",children:"ì¸ìí기"})]})]})]}),(0,n.jsx)(h,{pages:z,config:j,safeRows:y,safeCols:N}),(0,n.jsx)(i(),{id:"4713eb2a2ce3606c",children:"@media print{@page{size:A4 portrait;margin:0}html,body{margin:0!important;padding:0!important;height:auto!important;overflow:visible!important;background:white!important;-webkit-print-color-adjust:exact;color-adjust:exact;print-color-adjust:exact}main,section{height:auto!important;overflow:visible!important}.nametag-root{display:block!important;height:auto!important;overflow:visible!important;background:white!important}.nametag-preview{display:block!important;height:auto!important;overflow:visible!important;padding:0!important;background:white!important}.nametag-preview>div{display:block!important;height:auto!important}.nametag-page{width:210mm!important;height:297mm!important;margin:0!important;-webkit-box-sizing:border-box!important;-moz-box-sizing:border-box!important;box-sizing:border-box!important;-webkit-box-shadow:none!important;-moz-box-shadow:none!important;box-shadow:none!important;-webkit-transform:none!important;-moz-transform:none!important;-ms-transform:none!important;-o-transform:none!important;transform:none!important;page-break-after:always;page-break-inside:avoid;overflow:hidden!important}.nametag-page>*{height:100%!important}.nametag-page:last-child{page-break-after:auto}}"})]})}w.displayName="SliderControl";let k=(e,t,a,n)=>{var s;let i=(null===(s=n.find(t=>t.value===e.fontFamily))||void 0===s?void 0:s.fontStack)||"sans-serif",r=2
110-2*e.padding,o=297-2*e.padding,l=e.gap*(e.cols-1),c=e.gap*(e.rows-1),m=(r-l)/e.cols,u=(o-c)/e.rows,f="vertical"===e.orientation?"writing-mode: vertical-rl; text-orientation: upright;":"",b='<!DOCTYPE html>\n<html lang="ko">\n<head>\n<meta charset="UTF-8">\n<style>\n@import url(\'https://fonts.googleapis.com/css2?family=Black+Han+Sans&family=Gamja+Flower&family=Gowun+Batang&family=Jua&family=Nanum+Pen+Script&family=Noto+Serif+KR:wght@400;700&family=Stylish&display=swap\');\n@page { size: A4 portrait; margin: 0; }\n* { margin: 0; padding: 0; box-sizing: border-box; }\nbody { margin: 0; padding: 0; }\ntable {\n width: '.concat(r,"mm;\n border-collapse: separate;\n border-spacing: ").concat(e.gap,"mm;\n margin: 0;\n padding: 0;\n table-layout: fixed;\n}\n.page-wrapper {\n width: 210mm;\n height: 297mm;\n padding: ").concat(e.padding,"mm;\n padding-left: ").concat(e.padding-e.gap,"mm;\n padding-top: ").concat(e.padding-e.gap,"mm;\n box-sizing: border-box;\n overflow: hidden;\n page-break-after: always;\n}\n.page-wrapper:last-child { page-break-after: auto; }\ntd {\n width: ").concat(m,"mm;\n height: ").concat(u,"mm;\n border: 1px solid #9ca3af;\n border-radius: ").concat(e.borderRadius,"mm;\n background-color: ").concat(e.backgroundColor,";\n font-family: ").concat(i,";\n font-size: ").concat(e.fontSize,"pt;\n text-align: center;\n vertical-align: middle;\n overflow: hidden;\n -webkit-print-color-adjust: exact;\n print-color-adjust: exact;\n}\ntd.empty {\n border-color: transparent;\n background: transparent;\n}\n.num {\n font-size: 0.5em;\n font-weight: bold;\n opacity: 0.8;\n line-height: 1;\n}\n.name {\n font-weight: bold;\n line-height: 1;\n white-space: nowrap;\n ").concat(f,"\n}\n</style>\n</head>\n<body>\n");t.forEach(t=>{b+='<div class="page-wrapper"><table>';let n=0;for(let s=0;s<e.rows;s++){b+="<tr>";for(let s=0;s<e.cols;s++){let s=t[n];s?(b+="<td>",e.showNumber&&(b+='<div class="num">'.concat(a(s),"</div>")),e.showName&&(b+='<div class="name">'.concat(s.name,"</div>")),b+="</td>"):b+='<td class="empty"></td>',n++}b+="</tr>"}b+="</table></div>"});let p=new Blob([b+="</body></html>"],{type:"application/force-download"}),x=window.URL.createObjectURL(p),h=document.createElement("a");h.href=x,h.download="ì´ë¦í_".concat((0,d.RJ)(),".hwp"),document.body.appendChild(h),h.click(),document.body.removeChild(h),window.URL.revokeObjectURL(x)}},7888:function(e,t,a){a.d(t,{q:function(){return n}});function n(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"ìì²ì ì²ë¦¬íì§ ëª»íìµëë¤. ì ì í ë¤ì ìëí´ ì£¼ì¸ì.",a=e instanceof Error?e.message:String(null!=e?e:""),n=a.toLowerCase();return n.trim()?/[ê°-í£]/.test(a)&&!/error|exception|prisma|econn|timeout|undefined|null|\bp\d{4}\b|stack|<|\bat\s/i.test(a)?a:n.includes("unauthorized")||n.includes("unauthenticated")||n.includes("ë¡ê·¸ì¸ ì¸ì
")?"ë¡ê·¸ì¸ì´ íìíê±°ë ì¸ì
ì´ ë§ë£ëììµëë¤. íì´ì§ë¥¼ ìë¡ê³ 침í ë¤ ë¤ì ìëí´ ì£¼ì¸ì.":n.includes("permission denied")||n.includes("forbidden")||n.includes("access denied")||n.includes(" 403")?"ì´ ìì
ì ìíí ê¶íì´ ììµëë¤.":n.includes("not found")||n.includes("no such")||n.includes("does not exist")?"ëìì ì°¾ì ì ììµëë¤. 목ë¡ì ìë¡ê³ 침í ë¤ ë¤ì ìëí´ ì£¼ì¸ì.":n.includes("transaction")&&(n.includes("closed")||n.includes("timeout")||n.includes("aborted")||n.includes("expired"))?"í ë²ì ì²ë¦¬í ìì´ ë§ì ìê°ì´ ì´ê³¼ëììµëë¤. ëë ì ë¤ì ìëí´ ì£¼ì¸ì.":n.includes("econnreset")||n.includes("econnrefused")||n.includes("fetch failed")||n.includes("socket hang up")||n.includes("enotfound")||n.includes("network")?"ìë² ì°ê²°ì´ ë¶ìì í©ëë¤. ì ì í ë¤ì ìëí´ ì£¼ì¸ì.":n.includes("timeout")||n.includes("timed out")||n.includes("etimedout")?"ìë² ìëµ ìê°ì´ ì´ê³¼ëììµëë¤. ì ì í ë¤ì ìëí´ ì£¼ì¸ì.":n.includes("unique constraint")||n.includes("p2002")||n.includes("duplicate key")?"ì´ë¯¸ ë±ë¡ëì´ ìë í목ì
ëë¤.":n.includes("no file provided")||n.includes("file provided")?"íì¼ì´ 첨ë¶ëì§ ìììµëë¤. íì¼ì
1 ì íí ë¤ ë¤ì ìëí´ ì£¼ì¸ì.":n.includes("prisma")||/\bp\d{4}\b/.test(n)||n.includes("database")||n.includes("column ")||n.includes("relation ")?"ë°ì´í°ë¥¼ ì ì¥íë ì¤ ë¬¸ì ê° ë°ìíìµëë¤. ì ì í ë¤ì ìëí´ ì£¼ì¸ì.":t:t}},92804:function(e,t,a){a.d(t,{Ge:function(){return n}});function n(e,t,a){return!function(e){let t=e.trim().slice(-1);if(!t)return!1;let a=t.charCodeAt(0);return a>=44032&&a<=55203?(a-44032)%28!=0:t>="0"&&t<="9"&&["0","1","3","6","7","8"].includes(t)}(e)?a:t}}}]);
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.